merge the formfield patch from ooo-build
[ooovba.git] / chart2 / source / controller / chartapiwrapper / WrappedGapwidthProperty.hxx
blobd66aa12896b3b3b38f410302649bf60484e0fdd4
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: WrappedGapwidthProperty.hxx,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef CHART_WRAPPED_GAPWIDTH_PROPERTY_HXX
31 #define CHART_WRAPPED_GAPWIDTH_PROPERTY_HXX
33 #include "WrappedDefaultProperty.hxx"
34 #include "Chart2ModelContact.hxx"
36 #include <boost/shared_ptr.hpp>
38 namespace chart
40 namespace wrapper
43 class WrappedBarPositionProperty_Base : public WrappedDefaultProperty
45 public:
46 WrappedBarPositionProperty_Base(
47 const ::rtl::OUString& rOuterName
48 , const ::rtl::OUString& rInnerSequencePropertyName
49 , sal_Int32 nDefaultValue
50 , ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
51 virtual ~WrappedBarPositionProperty_Base();
53 virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
54 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);
56 virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
57 throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
59 void setDimensionAndAxisIndex( sal_Int32 nDimensionIndex, sal_Int32 nAxisIndex );
61 protected:
62 sal_Int32 m_nDimensionIndex;
63 sal_Int32 m_nAxisIndex;
64 ::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
66 sal_Int32 m_nDefaultValue;
67 ::rtl::OUString m_InnerSequencePropertyName;
69 mutable ::com::sun::star::uno::Any m_aOuterValue;
72 class WrappedGapwidthProperty : public WrappedBarPositionProperty_Base
74 public:
75 WrappedGapwidthProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
76 virtual ~WrappedGapwidthProperty();
79 class WrappedBarOverlapProperty : public WrappedBarPositionProperty_Base
81 public:
82 WrappedBarOverlapProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
83 virtual ~WrappedBarOverlapProperty();
86 } // namespace wrapper
87 } // namespace chart
89 // CHART_WRAPPED_GAPWIDTH_PROPERTY_HXX
90 #endif