xref: /trunk/main/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.hxx (revision 91144cd0085a7583d2099b982122deb2184ab956)
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 CHART2_WRAPPEDNUMBERFORMATPROPERTY_HXX
24 #define CHART2_WRAPPEDNUMBERFORMATPROPERTY_HXX
25 
26 #include "WrappedDirectStateProperty.hxx"
27 #include "Chart2ModelContact.hxx"
28 
29 #include <boost/shared_ptr.hpp>
30 
31 //.............................................................................
32 namespace chart
33 {
34 namespace wrapper
35 {
36 //.............................................................................
37 
38 class WrappedLinkNumberFormatProperty;
39 
40 class WrappedNumberFormatProperty : public WrappedDirectStateProperty
41 {
42 public:
43     WrappedNumberFormatProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
44     virtual ~WrappedNumberFormatProperty();
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     virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const;
51 
52     friend class WrappedLinkNumberFormatProperty;
53 private:
54     ::boost::shared_ptr< Chart2ModelContact >   m_spChart2ModelContact;
55     mutable ::com::sun::star::uno::Any m_aOuterValue;
56     WrappedLinkNumberFormatProperty* m_pWrappedLinkNumberFormatProperty;
57 };
58 
59 class WrappedLinkNumberFormatProperty : public WrappedProperty
60 {
61 public:
62     WrappedLinkNumberFormatProperty( WrappedNumberFormatProperty* pWrappedNumberFormatProperty );
63     virtual ~WrappedLinkNumberFormatProperty();
64 
65     virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const;
66 
67     virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const;
68 
69     virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const;
70 
71     friend class WrappedNumberFormatProperty;
72 private:
73     WrappedNumberFormatProperty* m_pWrappedNumberFormatProperty;
74 };
75 
76 //.............................................................................
77 } //namespace wrapper
78 } //namespace chart
79 //.............................................................................
80 
81 // CHART2_WRAPPEDNUMBERFORMATPROPERTY_HXX
82 #endif
83