merge the formfield patch from ooo-build
[ooovba.git] / chart2 / source / controller / chartapiwrapper / WrappedScaleProperty.hxx
blobecefe0b0d5b432d351df822cc26d056f35f9a7ee
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: WrappedScaleProperty.hxx,v $
10 * $Revision: 1.5 $
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_SCALE_PROPERTY_HXX
31 #define CHART_WRAPPED_SCALE_PROPERTY_HXX
33 #include "WrappedProperty.hxx"
34 #include "Chart2ModelContact.hxx"
36 #include <boost/shared_ptr.hpp>
37 #include <vector>
39 //.............................................................................
40 namespace chart
42 namespace wrapper
45 class WrappedScaleProperty : public WrappedProperty
47 public:
48 enum tScaleProperty
50 SCALE_PROP_MAX
51 , SCALE_PROP_MIN
52 , SCALE_PROP_ORIGIN
53 , SCALE_PROP_STEPMAIN
54 , SCALE_PROP_STEPHELP //deprecated property
55 , SCALE_PROP_STEPHELP_COUNT
56 , SCALE_PROP_AUTO_MAX
57 , SCALE_PROP_AUTO_MIN
58 , SCALE_PROP_AUTO_ORIGIN
59 , SCALE_PROP_AUTO_STEPMAIN
60 , SCALE_PROP_AUTO_STEPHELP
61 , SCALE_PROP_LOGARITHMIC
62 , SCALE_PROP_REVERSEDIRECTION
65 public:
66 WrappedScaleProperty( tScaleProperty eScaleProperty, ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
67 virtual ~WrappedScaleProperty();
69 static void addWrappedProperties( std::vector< WrappedProperty* >& rList, ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
71 virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
72 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);
74 virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
75 throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
77 protected: //methods
78 void setPropertyValue( tScaleProperty eScaleProperty, const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
79 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);
80 ::com::sun::star::uno::Any getPropertyValue( tScaleProperty eScaleProperty, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
81 throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
83 private: //member
84 ::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
85 tScaleProperty m_eScaleProperty;
87 mutable ::com::sun::star::uno::Any m_aOuterValue;
90 } // namespace wrapper
91 } // namespace chart
92 //.............................................................................
94 // CHART_WRAPPED_SCALE_PROPERTY_HXX
95 #endif