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                         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);
48 
49     virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
50                         throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
51 
52     virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
53                         throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
54 
55     friend class WrappedLinkNumberFormatProperty;
56 private:
57     ::boost::shared_ptr< Chart2ModelContact >   m_spChart2ModelContact;
58     mutable ::com::sun::star::uno::Any m_aOuterValue;
59     WrappedLinkNumberFormatProperty* m_pWrappedLinkNumberFormatProperty;
60 };
61 
62 class WrappedLinkNumberFormatProperty : public WrappedProperty
63 {
64 public:
65     WrappedLinkNumberFormatProperty( WrappedNumberFormatProperty* pWrappedNumberFormatProperty );
66     virtual ~WrappedLinkNumberFormatProperty();
67 
68     virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
69                         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);
70 
71     virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
72                         throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
73 
74     virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
75                         throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
76 
77     friend class WrappedNumberFormatProperty;
78 private:
79     WrappedNumberFormatProperty* m_pWrappedNumberFormatProperty;
80 };
81 
82 //.............................................................................
83 } //namespace wrapper
84 } //namespace chart
85 //.............................................................................
86 
87 // CHART2_WRAPPEDNUMBERFORMATPROPERTY_HXX
88 #endif
89