merge the formfield patch from ooo-build
[ooovba.git] / chart2 / source / controller / chartapiwrapper / WrappedCharacterHeightProperty.hxx
blob1eb0627f73d0fe3a9cfc36267cf529b5a67a0eb3
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: WrappedCharacterHeightProperty.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_CHARACTERHEIGHT_PROPERTY_HXX
31 #define CHART_WRAPPED_CHARACTERHEIGHT_PROPERTY_HXX
33 #include "WrappedProperty.hxx"
35 #include <vector>
37 //.............................................................................
38 namespace chart
40 namespace wrapper
43 class ReferenceSizePropertyProvider;
45 class WrappedCharacterHeightProperty_Base : public WrappedProperty
47 public:
48 WrappedCharacterHeightProperty_Base( const ::rtl::OUString& rOuterEqualsInnerName, ReferenceSizePropertyProvider* pRefSizePropProvider );
49 virtual ~WrappedCharacterHeightProperty_Base();
51 virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
52 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);
54 virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
55 throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
57 virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
58 throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
60 virtual ::com::sun::star::beans::PropertyState getPropertyState( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
61 throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
63 protected:
64 virtual ::com::sun::star::uno::Any convertInnerToOuterValue( const ::com::sun::star::uno::Any& rInnerValue ) const;
65 virtual ::com::sun::star::uno::Any convertOuterToInnerValue( const ::com::sun::star::uno::Any& rOuterValue ) const;
67 protected:
68 ReferenceSizePropertyProvider* m_pRefSizePropProvider;
71 //-----------------------------------------------------------------------------
73 class WrappedCharacterHeightProperty : public WrappedCharacterHeightProperty_Base
75 public:
76 WrappedCharacterHeightProperty( ReferenceSizePropertyProvider* pRefSizePropProvider );
77 virtual ~WrappedCharacterHeightProperty();
79 static void addWrappedProperties( std::vector< WrappedProperty* >& rList, ReferenceSizePropertyProvider* pRefSizePropProvider );
82 //-----------------------------------------------------------------------------
84 class WrappedAsianCharacterHeightProperty : public WrappedCharacterHeightProperty_Base
86 public:
87 WrappedAsianCharacterHeightProperty( ReferenceSizePropertyProvider* pRefSizePropProvider );
88 virtual ~WrappedAsianCharacterHeightProperty();
91 //-----------------------------------------------------------------------------
93 class WrappedComplexCharacterHeightProperty : public WrappedCharacterHeightProperty_Base
95 public:
96 WrappedComplexCharacterHeightProperty( ReferenceSizePropertyProvider* pRefSizePropProvider );
97 virtual ~WrappedComplexCharacterHeightProperty();
100 } //namespace wrapper
101 } //namespace chart
102 //.............................................................................
104 // CHART_WRAPPED_CHARACTERHEIGHT_PROPERTY_HXX
105 #endif