1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef CHART_WRAPPED_ADDIN_PROPERTY_HXX
28 #define CHART_WRAPPED_ADDIN_PROPERTY_HXX
29 
30 #include "WrappedProperty.hxx"
31 #include "ChartDocumentWrapper.hxx"
32 
33 //.............................................................................
34 namespace chart
35 {
36 //.............................................................................
37 namespace wrapper
38 {
39 
40 class WrappedAddInProperty : public WrappedProperty
41 {
42 public:
43     WrappedAddInProperty( ChartDocumentWrapper& rChartDocumentWrapper );
44     virtual ~WrappedAddInProperty();
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 private:
53     ChartDocumentWrapper& m_rChartDocumentWrapper;
54 };
55 
56 class WrappedBaseDiagramProperty : public WrappedProperty
57 {
58 public:
59     WrappedBaseDiagramProperty( ChartDocumentWrapper& rChartDocumentWrapper );
60     virtual ~WrappedBaseDiagramProperty();
61 
62     virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
63                         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);
64 
65     virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
66                         throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
67 
68 private:
69     ChartDocumentWrapper& m_rChartDocumentWrapper;
70 };
71 
72 class WrappedAdditionalShapesProperty : public WrappedProperty
73 {
74 public:
75     WrappedAdditionalShapesProperty( ChartDocumentWrapper& rChartDocumentWrapper );
76     virtual ~WrappedAdditionalShapesProperty();
77 
78     virtual void setPropertyValue( 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 
81     virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
82                         throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
83 
84 private:
85     ChartDocumentWrapper& m_rChartDocumentWrapper;
86 };
87 
88 class WrappedRefreshAddInAllowedProperty : public WrappedProperty
89 {
90 public:
91     WrappedRefreshAddInAllowedProperty( ChartDocumentWrapper& rChartDocumentWrapper );
92     virtual ~WrappedRefreshAddInAllowedProperty();
93 
94     virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
95                         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);
96 
97     virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
98                         throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
99 
100 private:
101     ChartDocumentWrapper& m_rChartDocumentWrapper;
102 };
103 
104 }
105 
106 //.............................................................................
107 } //namespace chart
108 //.............................................................................
109 
110 // CHART_WRAPPED_ADDIN_PROPERTY_HXX
111 #endif
112