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