1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef CHART_WRAPPED_GAPWIDTH_PROPERTY_HXX 24 #define CHART_WRAPPED_GAPWIDTH_PROPERTY_HXX 25 26 #include "WrappedDefaultProperty.hxx" 27 #include "Chart2ModelContact.hxx" 28 29 #include <boost/shared_ptr.hpp> 30 31 namespace chart 32 { 33 namespace wrapper 34 { 35 36 class WrappedBarPositionProperty_Base : public WrappedDefaultProperty 37 { 38 public: 39 WrappedBarPositionProperty_Base( 40 const ::rtl::OUString& rOuterName 41 , const ::rtl::OUString& rInnerSequencePropertyName 42 , sal_Int32 nDefaultValue 43 , ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); 44 virtual ~WrappedBarPositionProperty_Base(); 45 46 virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const 47 throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 48 49 virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const 50 throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 51 52 void setDimensionAndAxisIndex( sal_Int32 nDimensionIndex, sal_Int32 nAxisIndex ); 53 54 protected: 55 sal_Int32 m_nDimensionIndex; 56 sal_Int32 m_nAxisIndex; 57 ::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact; 58 59 sal_Int32 m_nDefaultValue; 60 ::rtl::OUString m_InnerSequencePropertyName; 61 62 mutable ::com::sun::star::uno::Any m_aOuterValue; 63 }; 64 65 class WrappedGapwidthProperty : public WrappedBarPositionProperty_Base 66 { 67 public: 68 WrappedGapwidthProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); 69 virtual ~WrappedGapwidthProperty(); 70 }; 71 72 class WrappedBarOverlapProperty : public WrappedBarPositionProperty_Base 73 { 74 public: 75 WrappedBarOverlapProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); 76 virtual ~WrappedBarOverlapProperty(); 77 }; 78 79 } // namespace wrapper 80 } // namespace chart 81 82 // CHART_WRAPPED_GAPWIDTH_PROPERTY_HXX 83 #endif 84