1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifndef RPT_GEOMETRYHANDLER_HXX
29*cdf0e10cSrcweir #define RPT_GEOMETRYHANDLER_HXX
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #include "sal/config.h"
32*cdf0e10cSrcweir #include "com/sun/star/uno/XComponentContext.hpp"
33*cdf0e10cSrcweir #include "cppuhelper/compbase3.hxx"
34*cdf0e10cSrcweir #include "cppuhelper/basemutex.hxx"
35*cdf0e10cSrcweir #include "com/sun/star/inspection/XPropertyHandler.hpp"
36*cdf0e10cSrcweir #include "com/sun/star/script/XTypeConverter.hpp"
37*cdf0e10cSrcweir #include "com/sun/star/beans/XPropertySet.hpp"
38*cdf0e10cSrcweir #include "com/sun/star/lang/XServiceInfo.hpp"
39*cdf0e10cSrcweir #include "com/sun/star/report/XReportComponent.hpp"
40*cdf0e10cSrcweir #include "com/sun/star/report/XFunction.hpp"
41*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyChangeListener.hpp>
42*cdf0e10cSrcweir #include <com/sun/star/sdbc/XRowSet.hpp>
43*cdf0e10cSrcweir #include <memory>
44*cdf0e10cSrcweir #include <comphelper/stl_types.hxx>
45*cdf0e10cSrcweir #include <comphelper/listenernotification.hxx>
46*cdf0e10cSrcweir #include "metadata.hxx"
47*cdf0e10cSrcweir 
48*cdf0e10cSrcweir //........................................................................
49*cdf0e10cSrcweir namespace rptui
50*cdf0e10cSrcweir {
51*cdf0e10cSrcweir //........................................................................
52*cdf0e10cSrcweir 
53*cdf0e10cSrcweir     struct DefaultFunction
54*cdf0e10cSrcweir     {
55*cdf0e10cSrcweir         com::sun::star::beans::Optional< ::rtl::OUString>   m_sInitialFormula;
56*cdf0e10cSrcweir         ::rtl::OUString                                     m_sName;
57*cdf0e10cSrcweir         ::rtl::OUString                                     m_sSearchString;
58*cdf0e10cSrcweir         ::rtl::OUString                                     m_sFormula;
59*cdf0e10cSrcweir         ::sal_Bool                                          m_bPreEvaluated;
60*cdf0e10cSrcweir         ::sal_Bool                                          m_bDeepTraversing;
61*cdf0e10cSrcweir 
62*cdf0e10cSrcweir         inline ::rtl::OUString getName() const { return m_sName; }
63*cdf0e10cSrcweir     } ;
64*cdf0e10cSrcweir 
65*cdf0e10cSrcweir     class OPropertyInfoService;
66*cdf0e10cSrcweir     typedef ::std::pair< ::com::sun::star::uno::Reference< ::com::sun::star::report::XFunction>, ::com::sun::star::uno::Reference< ::com::sun::star::report::XFunctionsSupplier> > TFunctionPair;
67*cdf0e10cSrcweir     typedef ::std::multimap< ::rtl::OUString,TFunctionPair, ::comphelper::UStringMixLess > TFunctions;
68*cdf0e10cSrcweir     typedef ::comphelper::OSimpleListenerContainer  <   ::com::sun::star::beans::XPropertyChangeListener
69*cdf0e10cSrcweir                                                     ,   ::com::sun::star::beans::PropertyChangeEvent
70*cdf0e10cSrcweir                                                     >   PropertyChangeListeners;
71*cdf0e10cSrcweir     typedef ::cppu::WeakComponentImplHelper3<   ::com::sun::star::inspection::XPropertyHandler
72*cdf0e10cSrcweir                                             ,   ::com::sun::star::beans::XPropertyChangeListener
73*cdf0e10cSrcweir                                             ,   ::com::sun::star::lang::XServiceInfo> GeometryHandler_Base;
74*cdf0e10cSrcweir 
75*cdf0e10cSrcweir     class GeometryHandler:
76*cdf0e10cSrcweir         private ::cppu::BaseMutex,
77*cdf0e10cSrcweir         public GeometryHandler_Base
78*cdf0e10cSrcweir     {
79*cdf0e10cSrcweir         /** sets the counter function at the data field.
80*cdf0e10cSrcweir         *   If the counter function doesn't exist it will be created.
81*cdf0e10cSrcweir         */
82*cdf0e10cSrcweir         void impl_setCounterFunction_throw();
83*cdf0e10cSrcweir 
84*cdf0e10cSrcweir         /** executes a dialog for chosing a filter criterion for a database report
85*cdf0e10cSrcweir             @param _out_rSelectedClause
86*cdf0e10cSrcweir                 the filter or order clause as chosen by the user
87*cdf0e10cSrcweir             @precond
88*cdf0e10cSrcweir                 we're really inspecting a database form (well, a RowSet at least)
89*cdf0e10cSrcweir             @return
90*cdf0e10cSrcweir                 <TRUE/> if and only if the user successfully chose a clause
91*cdf0e10cSrcweir         */
92*cdf0e10cSrcweir         bool impl_dialogFilter_nothrow( ::rtl::OUString& _out_rSelectedClause, ::osl::ClearableMutexGuard& _rClearBeforeDialog ) const;
93*cdf0e10cSrcweir 
94*cdf0e10cSrcweir         /** returns the data field type depending on the data field of the report control
95*cdf0e10cSrcweir         *
96*cdf0e10cSrcweir         * \param _sDataField if the data field is not empty it will be used as data field, otherwise the data field will be used.
97*cdf0e10cSrcweir         * \return the data field type
98*cdf0e10cSrcweir         */
99*cdf0e10cSrcweir         sal_uInt32 impl_getDataFieldType_throw(const ::rtl::OUString& _sDataField = ::rtl::OUString()) const;
100*cdf0e10cSrcweir 
101*cdf0e10cSrcweir         ::com::sun::star::uno::Any getConstantValue(sal_Bool bToControlValue,sal_uInt16 nResId,const ::com::sun::star::uno::Any& _aValue,const ::rtl::OUString& _sConstantName,const ::rtl::OUString & PropertyName );
102*cdf0e10cSrcweir         ::com::sun::star::beans::Property getProperty(const ::rtl::OUString & PropertyName);
103*cdf0e10cSrcweir         void implCreateListLikeControl(
104*cdf0e10cSrcweir                 const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlFactory >& _rxControlFactory
105*cdf0e10cSrcweir                 ,::com::sun::star::inspection::LineDescriptor & out_Descriptor
106*cdf0e10cSrcweir                 ,sal_uInt16 _nResId
107*cdf0e10cSrcweir                 ,sal_Bool _bReadOnlyControl
108*cdf0e10cSrcweir                 ,sal_Bool _bTrueIfListBoxFalseIfComboBox
109*cdf0e10cSrcweir             );
110*cdf0e10cSrcweir         void implCreateListLikeControl(
111*cdf0e10cSrcweir                 const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlFactory >& _rxControlFactory
112*cdf0e10cSrcweir                 ,::com::sun::star::inspection::LineDescriptor & out_Descriptor
113*cdf0e10cSrcweir                 ,const ::std::vector< ::rtl::OUString>& _aEntries
114*cdf0e10cSrcweir                 ,sal_Bool _bReadOnlyControl
115*cdf0e10cSrcweir                 ,sal_Bool _bTrueIfListBoxFalseIfComboBox
116*cdf0e10cSrcweir             );
117*cdf0e10cSrcweir         void checkPosAndSize(   const ::com::sun::star::awt::Point& _aNewPos,
118*cdf0e10cSrcweir                                 const ::com::sun::star::awt::Size& _aSize);
119*cdf0e10cSrcweir 
120*cdf0e10cSrcweir         ::rtl::OUString impl_convertToFormula( const ::com::sun::star::uno::Any& _rControlValue );
121*cdf0e10cSrcweir 
122*cdf0e10cSrcweir         void impl_initFieldList_nothrow( ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rFieldNames ) const;
123*cdf0e10cSrcweir 
124*cdf0e10cSrcweir         /** Creates the function defined by the function template
125*cdf0e10cSrcweir         *
126*cdf0e10cSrcweir         * \param _sFunctionName the function name
127*cdf0e10cSrcweir         * \param _sDataField the data field
128*cdf0e10cSrcweir         * \param _aFunction the function template
129*cdf0e10cSrcweir         */
130*cdf0e10cSrcweir         void impl_createFunction(const ::rtl::OUString& _sFunctionName,const ::rtl::OUString& _sDataField,const DefaultFunction& _aFunction);
131*cdf0e10cSrcweir 
132*cdf0e10cSrcweir         /** check whether the given function name is a countr function.
133*cdf0e10cSrcweir         *
134*cdf0e10cSrcweir         * \param _sQuotedFunctionName the quoted function name to check
135*cdf0e10cSrcweir         * \param _Out_sScope the scope of the function
136*cdf0e10cSrcweir         * \return When true it is a counter functions otherwise false.
137*cdf0e10cSrcweir         */
138*cdf0e10cSrcweir         bool impl_isCounterFunction_throw(const ::rtl::OUString& _sQuotedFunctionName,::rtl::OUString& _Out_sScope) const;
139*cdf0e10cSrcweir 
140*cdf0e10cSrcweir         /** clear the own properties like function and scope and send a notification
141*cdf0e10cSrcweir         *
142*cdf0e10cSrcweir         * \param _aGuard
143*cdf0e10cSrcweir         * \param _sOldFunctionName
144*cdf0e10cSrcweir         * \param _sOldScope
145*cdf0e10cSrcweir         * \param _nOldDataFieldType
146*cdf0e10cSrcweir         */
147*cdf0e10cSrcweir        void resetOwnProperties(::osl::ResettableMutexGuard& _aGuard,const ::rtl::OUString& _sOldFunctionName,const ::rtl::OUString& _sOldScope,const sal_uInt32 _nOldDataFieldType);
148*cdf0e10cSrcweir 
149*cdf0e10cSrcweir         /** checks whether the name is a field or a parameter
150*cdf0e10cSrcweir         *
151*cdf0e10cSrcweir         * \param _sName the name to check
152*cdf0e10cSrcweir         * \return true when it is a field or parameter otherwise false
153*cdf0e10cSrcweir         */
154*cdf0e10cSrcweir         bool impl_isDataField(const ::rtl::OUString& _sName) const;
155*cdf0e10cSrcweir 
156*cdf0e10cSrcweir         /**return all formula in a semicolon seperated list
157*cdf0e10cSrcweir         *
158*cdf0e10cSrcweir         * \param _rList the localized function names
159*cdf0e10cSrcweir         */
160*cdf0e10cSrcweir         void impl_fillFormulaList_nothrow(::std::vector< ::rtl::OUString >& _out_rList) const;
161*cdf0e10cSrcweir 
162*cdf0e10cSrcweir         /** return all group names in a semicolon seperated list starting with the group where this control is contained in.
163*cdf0e10cSrcweir         *
164*cdf0e10cSrcweir         * \param _rList fills the list with all scope names.
165*cdf0e10cSrcweir         */
166*cdf0e10cSrcweir         void impl_fillScopeList_nothrow(::std::vector< ::rtl::OUString >& _out_rList) const;
167*cdf0e10cSrcweir 
168*cdf0e10cSrcweir         /** return all supported output formats of the report definition
169*cdf0e10cSrcweir         *
170*cdf0e10cSrcweir         * \param _rList fills the list with all mime types
171*cdf0e10cSrcweir         */
172*cdf0e10cSrcweir         void impl_fillMimeTypes_nothrow(::std::vector< ::rtl::OUString >& _out_rList) const;
173*cdf0e10cSrcweir 
174*cdf0e10cSrcweir         /** return the one supported output formats of the report definition
175*cdf0e10cSrcweir         *
176*cdf0e10cSrcweir         * \param _sMimetype the mimetype
177*cdf0e10cSrcweir         */
178*cdf0e10cSrcweir         ::rtl::OUString impl_ConvertMimeTypeToUI_nothrow(const ::rtl::OUString& _sMimetype) const;
179*cdf0e10cSrcweir 
180*cdf0e10cSrcweir         /** return the MimeType for the given UI Name
181*cdf0e10cSrcweir         *
182*cdf0e10cSrcweir         * \param _sUIName the doc ui name
183*cdf0e10cSrcweir         */
184*cdf0e10cSrcweir         ::rtl::OUString impl_ConvertUIToMimeType_nothrow(const ::rtl::OUString& _sUIName) const;
185*cdf0e10cSrcweir 
186*cdf0e10cSrcweir         /** get the functions supplier for the set scope, default is the surrounding group.
187*cdf0e10cSrcweir         *
188*cdf0e10cSrcweir         * \param _rsNamePostFix the name post fix which canbe used when the scope as name part is needed
189*cdf0e10cSrcweir         * \return the function supplier
190*cdf0e10cSrcweir         */
191*cdf0e10cSrcweir         ::com::sun::star::uno::Reference< ::com::sun::star::report::XFunctionsSupplier> fillScope_throw(::rtl::OUString& _rsNamePostFix);
192*cdf0e10cSrcweir 
193*cdf0e10cSrcweir         /** checks if the given function is a default function we know.
194*cdf0e10cSrcweir         *
195*cdf0e10cSrcweir         * \param _sQuotedFunction the quoted function name
196*cdf0e10cSrcweir         * \param _Out_rDataField the data field which is used in the function
197*cdf0e10cSrcweir         * \param _xFunctionsSupplier teh function supplier to search or empty if not used
198*cdf0e10cSrcweir         * \param _bSet If set to sal_True than the m_sDefaultFunction and m_sScope vars will be set if successful.
199*cdf0e10cSrcweir         * \return sal_True with known otherwise sal_False
200*cdf0e10cSrcweir         */
201*cdf0e10cSrcweir         sal_Bool isDefaultFunction(const ::rtl::OUString& _sQuotedFunction
202*cdf0e10cSrcweir                                     ,::rtl::OUString& _Out_rDataField
203*cdf0e10cSrcweir                                     ,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XFunctionsSupplier>& _xFunctionsSupplier = ::com::sun::star::uno::Reference< ::com::sun::star::report::XFunctionsSupplier>()
204*cdf0e10cSrcweir                                     ,bool _bSet = false) const;
205*cdf0e10cSrcweir 
206*cdf0e10cSrcweir         /** checks if the given function is a default function we know.
207*cdf0e10cSrcweir         *
208*cdf0e10cSrcweir         * \param _xFunction
209*cdf0e10cSrcweir         * \param _rDataField
210*cdf0e10cSrcweir         * \param _rsDefaultFunctionName
211*cdf0e10cSrcweir         * \return
212*cdf0e10cSrcweir         */
213*cdf0e10cSrcweir         sal_Bool impl_isDefaultFunction_nothrow( const ::com::sun::star::uno::Reference< ::com::sun::star::report::XFunction>& _xFunction
214*cdf0e10cSrcweir                                             ,::rtl::OUString& _rDataField
215*cdf0e10cSrcweir                                             ,::rtl::OUString& _rsDefaultFunctionName) const;
216*cdf0e10cSrcweir 
217*cdf0e10cSrcweir         /** fills the memeber m_aDefaultFunctions
218*cdf0e10cSrcweir         *
219*cdf0e10cSrcweir         */
220*cdf0e10cSrcweir         void loadDefaultFunctions();
221*cdf0e10cSrcweir 
222*cdf0e10cSrcweir         /** creates a default functionof the _sFunction for the data field _sDataField
223*cdf0e10cSrcweir         *   The new function will only be created if it didn't exist.
224*cdf0e10cSrcweir         *
225*cdf0e10cSrcweir         * \param _aGuard        Will be cleared, when a new function was created.
226*cdf0e10cSrcweir         * \param _sFunction     The name of the function.
227*cdf0e10cSrcweir         * \param _sDataField    The name of the data field.
228*cdf0e10cSrcweir         */
229*cdf0e10cSrcweir         void createDefaultFunction(::osl::ResettableMutexGuard& _aGuard ,const ::rtl::OUString& _sFunction,const ::rtl::OUString& _sDataField);
230*cdf0e10cSrcweir 
231*cdf0e10cSrcweir         void removeFunction();
232*cdf0e10cSrcweir 
233*cdf0e10cSrcweir         class OBlocker
234*cdf0e10cSrcweir         {
235*cdf0e10cSrcweir             bool& m_bIn;
236*cdf0e10cSrcweir         public:
237*cdf0e10cSrcweir             OBlocker(bool& _bIn) : m_bIn(_bIn){ m_bIn = true; }
238*cdf0e10cSrcweir             ~OBlocker() { m_bIn = false; }
239*cdf0e10cSrcweir         };
240*cdf0e10cSrcweir 
241*cdf0e10cSrcweir 
242*cdf0e10cSrcweir         // XEventListener
243*cdf0e10cSrcweir 		virtual void SAL_CALL disposing(const ::com::sun::star::lang::EventObject& Source) throw( ::com::sun::star::uno::RuntimeException );
244*cdf0e10cSrcweir         // XPropertyChangeListener
245*cdf0e10cSrcweir 		virtual void SAL_CALL propertyChange(const ::com::sun::star::beans::PropertyChangeEvent& evt) throw(::com::sun::star::uno::RuntimeException);
246*cdf0e10cSrcweir 
247*cdf0e10cSrcweir     public:
248*cdf0e10cSrcweir         // XServiceInfo - static versions
249*cdf0e10cSrcweir 		static ::rtl::OUString getImplementationName_Static(  ) throw(::com::sun::star::uno::RuntimeException);
250*cdf0e10cSrcweir 		static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_static(  ) throw(::com::sun::star::uno::RuntimeException);
251*cdf0e10cSrcweir 		static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
252*cdf0e10cSrcweir 						create(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >&);
253*cdf0e10cSrcweir 
254*cdf0e10cSrcweir     public:
255*cdf0e10cSrcweir         explicit GeometryHandler(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & context);
256*cdf0e10cSrcweir 
257*cdf0e10cSrcweir         // XServiceInfo
258*cdf0e10cSrcweir 		virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
259*cdf0e10cSrcweir 		virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
260*cdf0e10cSrcweir 		virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw(::com::sun::star::uno::RuntimeException);
261*cdf0e10cSrcweir 
262*cdf0e10cSrcweir         // ::com::sun::star::lang::XComponent:
263*cdf0e10cSrcweir         virtual void SAL_CALL addEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & xListener)   throw (::com::sun::star::uno::RuntimeException);
264*cdf0e10cSrcweir         virtual void SAL_CALL removeEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw (::com::sun::star::uno::RuntimeException);
265*cdf0e10cSrcweir 
266*cdf0e10cSrcweir         // ::com::sun::star::inspection::XPropertyHandler:
267*cdf0e10cSrcweir         virtual void SAL_CALL inspect(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & Component) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::NullPointerException);
268*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(const ::rtl::OUString & PropertyName) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::beans::UnknownPropertyException);
269*cdf0e10cSrcweir         virtual void SAL_CALL setPropertyValue(const ::rtl::OUString & PropertyName, const ::com::sun::star::uno::Any & Value) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::beans::UnknownPropertyException);
270*cdf0e10cSrcweir         virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState(const ::rtl::OUString & PropertyName) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::beans::UnknownPropertyException);
271*cdf0e10cSrcweir         virtual ::com::sun::star::inspection::LineDescriptor SAL_CALL describePropertyLine(const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlFactory >& ControlFactory ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::NullPointerException, ::com::sun::star::uno::RuntimeException);
272*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Any SAL_CALL convertToPropertyValue(const ::rtl::OUString & PropertyName, const ::com::sun::star::uno::Any & ControlValue) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::beans::UnknownPropertyException);
273*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Any SAL_CALL convertToControlValue(const ::rtl::OUString & PropertyName, const ::com::sun::star::uno::Any & PropertyValue, const ::com::sun::star::uno::Type & ControlValueType) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::beans::UnknownPropertyException);
274*cdf0e10cSrcweir         virtual void SAL_CALL addPropertyChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener > & Listener) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::NullPointerException);
275*cdf0e10cSrcweir         virtual void SAL_CALL removePropertyChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener > & _rxListener) throw (::com::sun::star::uno::RuntimeException);
276*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getSupportedProperties() throw (::com::sun::star::uno::RuntimeException);
277*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupersededProperties() throw (::com::sun::star::uno::RuntimeException);
278*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getActuatingProperties() throw (::com::sun::star::uno::RuntimeException);
279*cdf0e10cSrcweir         virtual ::sal_Bool SAL_CALL isComposable(const ::rtl::OUString & PropertyName) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::beans::UnknownPropertyException);
280*cdf0e10cSrcweir         virtual ::com::sun::star::inspection::InteractiveSelectionResult SAL_CALL onInteractivePropertySelection(const ::rtl::OUString & PropertyName, ::sal_Bool Primary, ::com::sun::star::uno::Any & out_Data, const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XObjectInspectorUI > & InspectorUI) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::NullPointerException);
281*cdf0e10cSrcweir         virtual void SAL_CALL actuatingPropertyChanged(const ::rtl::OUString & ActuatingPropertyName, const ::com::sun::star::uno::Any & NewValue, const ::com::sun::star::uno::Any & OldValue, const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XObjectInspectorUI > & InspectorUI, ::sal_Bool FirstTimeInit) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::NullPointerException);
282*cdf0e10cSrcweir         virtual ::sal_Bool SAL_CALL suspend(::sal_Bool Suspend) throw (::com::sun::star::uno::RuntimeException);
283*cdf0e10cSrcweir 
284*cdf0e10cSrcweir     protected:
285*cdf0e10cSrcweir         virtual ~GeometryHandler();
286*cdf0e10cSrcweir     private:
287*cdf0e10cSrcweir         GeometryHandler(GeometryHandler &); // not defined
288*cdf0e10cSrcweir         void operator =(GeometryHandler &); // not defined
289*cdf0e10cSrcweir 
290*cdf0e10cSrcweir         // overload WeakComponentImplHelperBase::disposing()
291*cdf0e10cSrcweir         // This function is called upon disposing the component,
292*cdf0e10cSrcweir         // if your component needs special work when it becomes
293*cdf0e10cSrcweir         // disposed, do it here.
294*cdf0e10cSrcweir         virtual void SAL_CALL disposing();
295*cdf0e10cSrcweir 
296*cdf0e10cSrcweir         PropertyChangeListeners                                                             m_aPropertyListeners;
297*cdf0e10cSrcweir         ::com::sun::star::uno::Sequence< ::rtl::OUString >                                  m_aFieldNames;
298*cdf0e10cSrcweir         ::com::sun::star::uno::Sequence< ::rtl::OUString >                                  m_aParamNames;
299*cdf0e10cSrcweir         TFunctions                                                                          m_aFunctionNames;
300*cdf0e10cSrcweir         ::std::vector< DefaultFunction >                                                    m_aDefaultFunctions;
301*cdf0e10cSrcweir         DefaultFunction                                                                     m_aCounterFunction;
302*cdf0e10cSrcweir         ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >        m_xContext;
303*cdf0e10cSrcweir         mutable ::com::sun::star::uno::Reference< ::com::sun::star::report::XFunction>      m_xFunction;
304*cdf0e10cSrcweir         ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyHandler >  m_xFormComponentHandler; /// delegatee
305*cdf0e10cSrcweir         ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >           m_xReportComponent; /// inspectee
306*cdf0e10cSrcweir         mutable ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet >         m_xRowSet;
307*cdf0e10cSrcweir         /// type converter, needed on various occasions
308*cdf0e10cSrcweir         ::com::sun::star::uno::Reference< ::com::sun::star::script::XTypeConverter >        m_xTypeConverter;
309*cdf0e10cSrcweir         /// access to property meta data
310*cdf0e10cSrcweir         ::std::auto_ptr< OPropertyInfoService >                                             m_pInfoService;
311*cdf0e10cSrcweir         mutable ::rtl::OUString                                                             m_sDefaultFunction;
312*cdf0e10cSrcweir         mutable ::rtl::OUString                                                             m_sScope;
313*cdf0e10cSrcweir         sal_uInt32                                                                          m_nDataFieldType;
314*cdf0e10cSrcweir         mutable bool                                                                        m_bNewFunction;
315*cdf0e10cSrcweir         bool                                                                                m_bIn;
316*cdf0e10cSrcweir     };
317*cdf0e10cSrcweir //........................................................................
318*cdf0e10cSrcweir } // namespace rptui
319*cdf0e10cSrcweir //........................................................................
320*cdf0e10cSrcweir 
321*cdf0e10cSrcweir #endif // RPT_GeometryHandler_HXX
322