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 48 virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const; 49 50 void setDimensionAndAxisIndex( sal_Int32 nDimensionIndex, sal_Int32 nAxisIndex ); 51 52 protected: 53 sal_Int32 m_nDimensionIndex; 54 sal_Int32 m_nAxisIndex; 55 ::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact; 56 57 sal_Int32 m_nDefaultValue; 58 ::rtl::OUString m_InnerSequencePropertyName; 59 60 mutable ::com::sun::star::uno::Any m_aOuterValue; 61 }; 62 63 class WrappedGapwidthProperty : public WrappedBarPositionProperty_Base 64 { 65 public: 66 WrappedGapwidthProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); 67 virtual ~WrappedGapwidthProperty(); 68 }; 69 70 class WrappedBarOverlapProperty : public WrappedBarPositionProperty_Base 71 { 72 public: 73 WrappedBarOverlapProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); 74 virtual ~WrappedBarOverlapProperty(); 75 }; 76 77 } // namespace wrapper 78 } // namespace chart 79 80 // CHART_WRAPPED_GAPWIDTH_PROPERTY_HXX 81 #endif 82