2010-10-27 12:33:13 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-10-01 16:08:38 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2007-07-09 10:56:41 +00:00
|
|
|
|
2014-04-18 18:54:04 +02:00
|
|
|
#ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_GEOMETRYHANDLER_HXX
|
|
|
|
#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_GEOMETRYHANDLER_HXX
|
2007-07-09 10:56:41 +00:00
|
|
|
|
2014-05-14 21:04:19 +02:00
|
|
|
#include <sal/config.h>
|
|
|
|
#include <com/sun/star/uno/XComponentContext.hpp>
|
2015-08-25 17:01:11 +09:00
|
|
|
#include <cppuhelper/compbase.hxx>
|
2014-05-14 21:04:19 +02:00
|
|
|
#include <cppuhelper/basemutex.hxx>
|
2017-05-20 18:13:25 +02:00
|
|
|
#include <com/sun/star/awt/Point.hpp>
|
|
|
|
#include <com/sun/star/awt/Size.hpp>
|
2014-05-14 21:04:19 +02:00
|
|
|
#include <com/sun/star/inspection/XPropertyHandler.hpp>
|
|
|
|
#include <com/sun/star/script/XTypeConverter.hpp>
|
|
|
|
#include <com/sun/star/beans/XPropertySet.hpp>
|
|
|
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
2017-05-20 18:13:25 +02:00
|
|
|
#include <com/sun/star/report/XFunctionsSupplier.hpp>
|
2007-11-20 18:10:00 +00:00
|
|
|
#include <com/sun/star/beans/XPropertyChangeListener.hpp>
|
2007-07-09 10:56:41 +00:00
|
|
|
#include <com/sun/star/sdbc/XRowSet.hpp>
|
|
|
|
#include <memory>
|
2007-11-20 18:10:00 +00:00
|
|
|
#include <comphelper/stl_types.hxx>
|
|
|
|
#include <comphelper/listenernotification.hxx>
|
2007-07-09 10:56:41 +00:00
|
|
|
#include "metadata.hxx"
|
|
|
|
|
2014-02-25 19:49:46 +01:00
|
|
|
|
2007-07-09 10:56:41 +00:00
|
|
|
namespace rptui
|
|
|
|
{
|
2014-02-25 19:49:46 +01:00
|
|
|
|
2007-07-09 10:56:41 +00:00
|
|
|
|
2007-11-20 18:10:00 +00:00
|
|
|
struct DefaultFunction
|
|
|
|
{
|
2015-10-23 15:43:36 +02:00
|
|
|
css::beans::Optional< OUString> m_sInitialFormula;
|
|
|
|
OUString m_sName;
|
|
|
|
OUString m_sSearchString;
|
|
|
|
OUString m_sFormula;
|
2014-05-02 08:38:50 +02:00
|
|
|
bool m_bPreEvaluated;
|
2007-11-20 18:10:00 +00:00
|
|
|
|
2016-04-13 14:47:14 +02:00
|
|
|
const OUString& getName() const { return m_sName; }
|
2007-11-20 18:10:00 +00:00
|
|
|
} ;
|
|
|
|
|
2007-07-09 10:56:41 +00:00
|
|
|
class OPropertyInfoService;
|
2015-10-23 15:43:36 +02:00
|
|
|
typedef ::std::pair< css::uno::Reference< css::report::XFunction>, css::uno::Reference< css::report::XFunctionsSupplier> > TFunctionPair;
|
2013-04-07 12:06:47 +02:00
|
|
|
typedef ::std::multimap< OUString,TFunctionPair, ::comphelper::UStringMixLess > TFunctions;
|
2015-10-23 15:43:36 +02:00
|
|
|
typedef ::comphelper::OSimpleListenerContainer < css::beans::XPropertyChangeListener
|
|
|
|
, css::beans::PropertyChangeEvent
|
2007-11-20 18:10:00 +00:00
|
|
|
> PropertyChangeListeners;
|
2015-10-23 15:43:36 +02:00
|
|
|
typedef ::cppu::WeakComponentImplHelper< css::inspection::XPropertyHandler
|
|
|
|
, css::beans::XPropertyChangeListener
|
|
|
|
, css::lang::XServiceInfo> GeometryHandler_Base;
|
2007-07-09 10:56:41 +00:00
|
|
|
|
|
|
|
class GeometryHandler:
|
|
|
|
private ::cppu::BaseMutex,
|
|
|
|
public GeometryHandler_Base
|
|
|
|
{
|
2007-11-20 18:10:00 +00:00
|
|
|
/** sets the counter function at the data field.
|
|
|
|
* If the counter function doesn't exist it will be created.
|
|
|
|
*/
|
|
|
|
void impl_setCounterFunction_throw();
|
|
|
|
|
2018-01-17 20:10:53 +01:00
|
|
|
/** executes a dialog for choosing a filter criterion for a database report
|
2007-07-09 10:56:41 +00:00
|
|
|
@param _out_rSelectedClause
|
|
|
|
the filter or order clause as chosen by the user
|
|
|
|
@precond
|
|
|
|
we're really inspecting a database form (well, a RowSet at least)
|
|
|
|
@return
|
|
|
|
<TRUE/> if and only if the user successfully chose a clause
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
bool impl_dialogFilter_nothrow( OUString& _out_rSelectedClause, ::osl::ClearableMutexGuard& _rClearBeforeDialog ) const;
|
2007-07-09 10:56:41 +00:00
|
|
|
|
2007-11-20 18:10:00 +00:00
|
|
|
/** returns the data field type depending on the data field of the report control
|
|
|
|
*
|
|
|
|
* \param _sDataField if the data field is not empty it will be used as data field, otherwise the data field will be used.
|
|
|
|
* \return the data field type
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
sal_uInt32 impl_getDataFieldType_throw(const OUString& _sDataField = OUString()) const;
|
2007-11-20 18:10:00 +00:00
|
|
|
|
2017-06-11 20:56:30 +01:00
|
|
|
css::uno::Any getConstantValue(bool bToControlValue,const char** pResId,const css::uno::Any& _aValue,const OUString& _sConstantName,const OUString & PropertyName );
|
2015-10-23 15:43:36 +02:00
|
|
|
css::beans::Property getProperty(const OUString & PropertyName);
|
2015-05-05 14:04:30 +02:00
|
|
|
static void implCreateListLikeControl(
|
2015-10-23 15:43:36 +02:00
|
|
|
const css::uno::Reference< css::inspection::XPropertyControlFactory >& _rxControlFactory
|
|
|
|
,css::inspection::LineDescriptor & out_Descriptor
|
2017-06-11 20:56:30 +01:00
|
|
|
,const char** pResId
|
2014-05-02 08:38:50 +02:00
|
|
|
,bool _bReadOnlyControl
|
|
|
|
,bool _bTrueIfListBoxFalseIfComboBox
|
2007-07-09 10:56:41 +00:00
|
|
|
);
|
2015-05-05 14:04:30 +02:00
|
|
|
static void implCreateListLikeControl(
|
2015-10-23 15:43:36 +02:00
|
|
|
const css::uno::Reference< css::inspection::XPropertyControlFactory >& _rxControlFactory
|
|
|
|
,css::inspection::LineDescriptor & out_Descriptor
|
2013-04-07 12:06:47 +02:00
|
|
|
,const ::std::vector< OUString>& _aEntries
|
2014-05-02 08:38:50 +02:00
|
|
|
,bool _bReadOnlyControl
|
|
|
|
,bool _bTrueIfListBoxFalseIfComboBox
|
2007-07-09 10:56:41 +00:00
|
|
|
);
|
2015-10-23 15:43:36 +02:00
|
|
|
void checkPosAndSize( const css::awt::Point& _aNewPos,
|
|
|
|
const css::awt::Size& _aSize);
|
2007-07-09 10:56:41 +00:00
|
|
|
|
2015-10-23 15:43:36 +02:00
|
|
|
OUString impl_convertToFormula( const css::uno::Any& _rControlValue );
|
2007-11-20 18:10:00 +00:00
|
|
|
|
2015-10-23 15:43:36 +02:00
|
|
|
void impl_initFieldList_nothrow( css::uno::Sequence< OUString >& _rFieldNames ) const;
|
2007-11-20 18:10:00 +00:00
|
|
|
|
|
|
|
/** Creates the function defined by the function template
|
|
|
|
*
|
|
|
|
* \param _sFunctionName the function name
|
|
|
|
* \param _sDataField the data field
|
|
|
|
* \param _aFunction the function template
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
void impl_createFunction(const OUString& _sFunctionName,const OUString& _sDataField,const DefaultFunction& _aFunction);
|
2007-11-20 18:10:00 +00:00
|
|
|
|
2015-06-23 09:58:19 +02:00
|
|
|
/** check whether the given function name is a counter function.
|
2007-11-20 18:10:00 +00:00
|
|
|
*
|
|
|
|
* \param _sQuotedFunctionName the quoted function name to check
|
2016-04-22 09:37:31 +02:00
|
|
|
* \param Out_sScope the scope of the function
|
2007-11-20 18:10:00 +00:00
|
|
|
* \return When true it is a counter functions otherwise false.
|
|
|
|
*/
|
2016-04-22 09:37:31 +02:00
|
|
|
bool impl_isCounterFunction_throw(const OUString& _sQuotedFunctionName,OUString& Out_sScope) const;
|
2007-11-20 18:10:00 +00:00
|
|
|
|
|
|
|
/** clear the own properties like function and scope and send a notification
|
|
|
|
*
|
|
|
|
* \param _aGuard
|
|
|
|
* \param _sOldFunctionName
|
|
|
|
* \param _sOldScope
|
|
|
|
* \param _nOldDataFieldType
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
void resetOwnProperties(::osl::ResettableMutexGuard& _aGuard,const OUString& _sOldFunctionName,const OUString& _sOldScope,const sal_uInt32 _nOldDataFieldType);
|
2007-11-20 18:10:00 +00:00
|
|
|
|
|
|
|
/** checks whether the name is a field or a parameter
|
|
|
|
*
|
|
|
|
* \param _sName the name to check
|
|
|
|
* \return true when it is a field or parameter otherwise false
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
bool impl_isDataField(const OUString& _sName) const;
|
2007-11-20 18:10:00 +00:00
|
|
|
|
2013-02-23 17:20:45 +01:00
|
|
|
/**return all formula in a semicolon separated list
|
2007-11-20 18:10:00 +00:00
|
|
|
*
|
|
|
|
* \param _rList the localized function names
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
void impl_fillFormulaList_nothrow(::std::vector< OUString >& _out_rList) const;
|
2007-11-20 18:10:00 +00:00
|
|
|
|
2013-02-23 17:20:45 +01:00
|
|
|
/** return all group names in a semicolon separated list starting with the group where this control is contained in.
|
2007-11-20 18:10:00 +00:00
|
|
|
*
|
|
|
|
* \param _rList fills the list with all scope names.
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
void impl_fillScopeList_nothrow(::std::vector< OUString >& _out_rList) const;
|
2007-11-20 18:10:00 +00:00
|
|
|
|
2008-12-10 13:41:25 +00:00
|
|
|
/** return all supported output formats of the report definition
|
|
|
|
*
|
|
|
|
* \param _rList fills the list with all mime types
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
void impl_fillMimeTypes_nothrow(::std::vector< OUString >& _out_rList) const;
|
2008-12-10 13:41:25 +00:00
|
|
|
|
|
|
|
/** return the one supported output formats of the report definition
|
|
|
|
*
|
|
|
|
* \param _sMimetype the mimetype
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString impl_ConvertMimeTypeToUI_nothrow(const OUString& _sMimetype) const;
|
2008-12-10 13:41:25 +00:00
|
|
|
|
|
|
|
/** return the MimeType for the given UI Name
|
|
|
|
*
|
|
|
|
* \param _sUIName the doc ui name
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString impl_ConvertUIToMimeType_nothrow(const OUString& _sUIName) const;
|
2008-12-10 13:41:25 +00:00
|
|
|
|
2007-11-20 18:10:00 +00:00
|
|
|
/** get the functions supplier for the set scope, default is the surrounding group.
|
|
|
|
*
|
2014-03-13 10:32:14 +02:00
|
|
|
* \param _rsNamePostfix the name postfix which can be used when the scope as name part is needed
|
2007-11-20 18:10:00 +00:00
|
|
|
* \return the function supplier
|
|
|
|
*/
|
2015-10-23 15:43:36 +02:00
|
|
|
css::uno::Reference< css::report::XFunctionsSupplier> fillScope_throw(OUString& _rsNamePostfix);
|
2007-11-20 18:10:00 +00:00
|
|
|
|
|
|
|
/** checks if the given function is a default function we know.
|
|
|
|
*
|
|
|
|
* \param _sQuotedFunction the quoted function name
|
2016-04-22 09:37:31 +02:00
|
|
|
* \param Out_rDataField the data field which is used in the function
|
2013-02-23 15:28:03 +01:00
|
|
|
* \param _xFunctionsSupplier the function supplier to search or empty if not used
|
2011-01-14 17:40:56 +01:00
|
|
|
* \param _bSet If set to sal_True than the m_sDefaultFunction and m_sScope vars will be set if successful.
|
2007-11-20 18:10:00 +00:00
|
|
|
* \return sal_True with known otherwise sal_False
|
|
|
|
*/
|
2014-05-02 08:38:50 +02:00
|
|
|
bool isDefaultFunction(const OUString& _sQuotedFunction
|
2016-04-22 09:37:31 +02:00
|
|
|
,OUString& Out_rDataField
|
2015-10-23 15:43:36 +02:00
|
|
|
,const css::uno::Reference< css::report::XFunctionsSupplier>& _xFunctionsSupplier = css::uno::Reference< css::report::XFunctionsSupplier>()
|
2007-11-20 18:10:00 +00:00
|
|
|
,bool _bSet = false) const;
|
|
|
|
|
|
|
|
/** checks if the given function is a default function we know.
|
|
|
|
*
|
|
|
|
* \param _xFunction
|
|
|
|
* \param _rDataField
|
|
|
|
* \param _rsDefaultFunctionName
|
|
|
|
* \return
|
|
|
|
*/
|
2015-10-23 15:43:36 +02:00
|
|
|
bool impl_isDefaultFunction_nothrow( const css::uno::Reference< css::report::XFunction>& _xFunction
|
2013-04-07 12:06:47 +02:00
|
|
|
,OUString& _rDataField
|
|
|
|
,OUString& _rsDefaultFunctionName) const;
|
2007-11-20 18:10:00 +00:00
|
|
|
|
2013-04-15 05:32:37 +02:00
|
|
|
/** fills the member m_aDefaultFunctions
|
2007-11-20 18:10:00 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
void loadDefaultFunctions();
|
|
|
|
|
2017-03-24 11:48:58 +01:00
|
|
|
/** creates a default function of the _sFunction for the data field _sDataField
|
2007-11-20 18:10:00 +00:00
|
|
|
* The new function will only be created if it didn't exist.
|
|
|
|
*
|
|
|
|
* \param _aGuard Will be cleared, when a new function was created.
|
|
|
|
* \param _sFunction The name of the function.
|
|
|
|
* \param _sDataField The name of the data field.
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
void createDefaultFunction(::osl::ResettableMutexGuard& _aGuard ,const OUString& _sFunction,const OUString& _sDataField);
|
2007-11-20 18:10:00 +00:00
|
|
|
|
|
|
|
void removeFunction();
|
|
|
|
|
|
|
|
class OBlocker
|
|
|
|
{
|
|
|
|
bool& m_bIn;
|
|
|
|
public:
|
|
|
|
OBlocker(bool& _bIn) : m_bIn(_bIn){ m_bIn = true; }
|
|
|
|
~OBlocker() { m_bIn = false; }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// XEventListener
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual void SAL_CALL disposing(const css::lang::EventObject& Source) override;
|
2007-11-20 18:10:00 +00:00
|
|
|
// XPropertyChangeListener
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual void SAL_CALL propertyChange(const css::beans::PropertyChangeEvent& evt) override;
|
2007-07-09 10:56:41 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
// XServiceInfo - static versions
|
2017-01-19 17:54:38 +01:00
|
|
|
/// @throws css::uno::RuntimeException
|
2017-01-26 12:28:58 +01:00
|
|
|
static OUString getImplementationName_Static( );
|
2017-01-19 17:54:38 +01:00
|
|
|
/// @throws css::uno::RuntimeException
|
2017-01-26 12:28:58 +01:00
|
|
|
static css::uno::Sequence< OUString > getSupportedServiceNames_static( );
|
No need to keep these whitelisted functions decorated with SAL_CALL
The only effect SAL_CALL effectively has on LO-internal code is to change non-
static member functions from __thiscall to __cdecl in MSVC (where all other
functions are __cdecl by default, anyway). (For 3rd-party code, it could be
argued that SAL_CALL is useful on function declarations in the URE stable
interface other than non-static member functions, too, in case 3rd-party code
uses a compiler switch to change the default calling convention to something
other than __cdecl. But loplugin:salcall exempts the URE stable interface,
anyway.)
One could argue that SAL_CALL, even if today it effectively only affects non-
static member functions in MSVC, could be extended in the future to affect more
functions on more platforms. However, the current code would already not
support that. For example, 3af500580b1c82eabd60335c9ebc458a3f68850c
"loplugin:salcall fix functions" changed FrameControl_createInstance in
UnoControls/source/base/registercontrols.cxx to no longer be SAL_CALL, even
though its address (in ctl_component_getFacrory, in the same file) is passed to
cppuhelper::createSingleFactory as an argument of type
cppu::ComponentInstantiation, which is a pointer to SAL_CALL function.
Change-Id: I3acbf7314a3d7868ed70e35bb5c47bc11a0b7ff6
Reviewed-on: https://gerrit.libreoffice.org/46436
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-12-14 08:45:02 +01:00
|
|
|
static css::uno::Reference< css::uno::XInterface >
|
2015-10-23 15:43:36 +02:00
|
|
|
create(const css::uno::Reference< css::uno::XComponentContext >&);
|
2007-07-09 10:56:41 +00:00
|
|
|
|
|
|
|
public:
|
2015-10-23 15:43:36 +02:00
|
|
|
explicit GeometryHandler(css::uno::Reference< css::uno::XComponentContext > const & context);
|
2007-07-09 10:56:41 +00:00
|
|
|
|
|
|
|
// XServiceInfo
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual OUString SAL_CALL getImplementationName( ) override;
|
|
|
|
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
|
|
|
|
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
|
2015-10-23 15:43:36 +02:00
|
|
|
|
|
|
|
// css::lang::XComponent:
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > & xListener) override;
|
|
|
|
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > & aListener) override;
|
2015-10-23 15:43:36 +02:00
|
|
|
|
|
|
|
// css::inspection::XPropertyHandler:
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual void SAL_CALL inspect(const css::uno::Reference< css::uno::XInterface > & Component) override;
|
|
|
|
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString & PropertyName) override;
|
|
|
|
virtual void SAL_CALL setPropertyValue(const OUString & PropertyName, const css::uno::Any & Value) override;
|
|
|
|
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString & PropertyName) override;
|
|
|
|
virtual css::inspection::LineDescriptor SAL_CALL describePropertyLine(const OUString& PropertyName, const css::uno::Reference< css::inspection::XPropertyControlFactory >& ControlFactory ) override;
|
|
|
|
virtual css::uno::Any SAL_CALL convertToPropertyValue(const OUString & PropertyName, const css::uno::Any & ControlValue) override;
|
|
|
|
virtual css::uno::Any SAL_CALL convertToControlValue(const OUString & PropertyName, const css::uno::Any & PropertyValue, const css::uno::Type & ControlValueType) override;
|
|
|
|
virtual void SAL_CALL addPropertyChangeListener(const css::uno::Reference< css::beans::XPropertyChangeListener > & Listener) override;
|
|
|
|
virtual void SAL_CALL removePropertyChangeListener(const css::uno::Reference< css::beans::XPropertyChangeListener > & _rxListener) override;
|
|
|
|
virtual css::uno::Sequence< css::beans::Property > SAL_CALL getSupportedProperties() override;
|
|
|
|
virtual css::uno::Sequence< OUString > SAL_CALL getSupersededProperties() override;
|
|
|
|
virtual css::uno::Sequence< OUString > SAL_CALL getActuatingProperties() override;
|
|
|
|
virtual sal_Bool SAL_CALL isComposable(const OUString & PropertyName) override;
|
|
|
|
virtual css::inspection::InteractiveSelectionResult SAL_CALL onInteractivePropertySelection(const OUString & PropertyName, sal_Bool Primary, css::uno::Any & out_Data, const css::uno::Reference< css::inspection::XObjectInspectorUI > & InspectorUI) override;
|
|
|
|
virtual void SAL_CALL actuatingPropertyChanged(const OUString & ActuatingPropertyName, const css::uno::Any & NewValue, const css::uno::Any & OldValue, const css::uno::Reference< css::inspection::XObjectInspectorUI > & InspectorUI, sal_Bool FirstTimeInit) override;
|
|
|
|
virtual sal_Bool SAL_CALL suspend(sal_Bool Suspend) override;
|
2007-07-09 10:56:41 +00:00
|
|
|
|
|
|
|
protected:
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~GeometryHandler() override;
|
2007-07-09 10:56:41 +00:00
|
|
|
private:
|
2015-10-12 15:25:41 +02:00
|
|
|
GeometryHandler(GeometryHandler &) = delete;
|
|
|
|
void operator =(GeometryHandler &) = delete;
|
2007-07-09 10:56:41 +00:00
|
|
|
|
2015-01-08 23:08:34 +01:00
|
|
|
// override WeakComponentImplHelperBase::disposing()
|
2007-07-09 10:56:41 +00:00
|
|
|
// This function is called upon disposing the component,
|
|
|
|
// if your component needs special work when it becomes
|
|
|
|
// disposed, do it here.
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void SAL_CALL disposing() override;
|
2007-07-09 10:56:41 +00:00
|
|
|
|
2015-10-23 15:43:36 +02:00
|
|
|
PropertyChangeListeners m_aPropertyListeners;
|
|
|
|
css::uno::Sequence< OUString > m_aFieldNames;
|
|
|
|
css::uno::Sequence< OUString > m_aParamNames;
|
|
|
|
TFunctions m_aFunctionNames;
|
|
|
|
::std::vector< DefaultFunction > m_aDefaultFunctions;
|
|
|
|
DefaultFunction m_aCounterFunction;
|
|
|
|
css::uno::Reference< css::uno::XComponentContext > m_xContext;
|
|
|
|
mutable css::uno::Reference< css::report::XFunction> m_xFunction;
|
|
|
|
css::uno::Reference< css::inspection::XPropertyHandler > m_xFormComponentHandler; /// delegatee
|
|
|
|
css::uno::Reference< css::beans::XPropertySet > m_xReportComponent; /// inspectee
|
|
|
|
mutable css::uno::Reference< css::sdbc::XRowSet > m_xRowSet;
|
2007-07-09 10:56:41 +00:00
|
|
|
/// type converter, needed on various occasions
|
2015-10-23 15:43:36 +02:00
|
|
|
css::uno::Reference< css::script::XTypeConverter > m_xTypeConverter;
|
|
|
|
mutable OUString m_sDefaultFunction;
|
|
|
|
mutable OUString m_sScope;
|
|
|
|
sal_uInt32 m_nDataFieldType;
|
|
|
|
mutable bool m_bNewFunction;
|
|
|
|
bool m_bIn;
|
2007-07-09 10:56:41 +00:00
|
|
|
};
|
2014-02-25 19:49:46 +01:00
|
|
|
|
2007-07-09 10:56:41 +00:00
|
|
|
} // namespace rptui
|
2014-02-25 19:49:46 +01:00
|
|
|
|
2007-07-09 10:56:41 +00:00
|
|
|
|
|
|
|
#endif // RPT_GeometryHandler_HXX
|
2010-10-27 12:33:13 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|