LibreOffice Module reportdesign (master) 1
Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
rptui::GeometryHandler Class Reference

#include <GeometryHandler.hxx>

Inheritance diagram for rptui::GeometryHandler:
[legend]
Collaboration diagram for rptui::GeometryHandler:
[legend]

Classes

class  OBlocker
 

Public Member Functions

 GeometryHandler (css::uno::Reference< css::uno::XComponentContext > const &context)
 
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
 
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
 
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
 

Protected Member Functions

virtual ~GeometryHandler () override
 

Private Member Functions

void impl_setCounterFunction_throw ()
 sets the counter function at the data field. More...
 
bool impl_dialogFilter_nothrow (OUString &_out_rSelectedClause, ::osl::ClearableMutexGuard &_rClearBeforeDialog) const
 executes a dialog for choosing a filter criterion for a database report More...
 
sal_uInt32 impl_getDataFieldType_throw (const OUString &_sDataField=OUString()) const
 returns the data field type depending on the data field of the report control More...
 
css::uno::Any getConstantValue (bool bToControlValue, const TranslateId *pResId, const css::uno::Any &_aValue, const OUString &_sConstantName, const OUString &PropertyName)
 
css::beans::Property getProperty (const OUString &PropertyName)
 
void checkPosAndSize (const css::awt::Point &_aNewPos, const css::awt::Size &_aSize)
 
OUString impl_convertToFormula (const css::uno::Any &_rControlValue)
 
void impl_initFieldList_nothrow (css::uno::Sequence< OUString > &_rFieldNames) const
 
void impl_createFunction (const OUString &_sFunctionName, std::u16string_view _sDataField, const DefaultFunction &_aFunction)
 Creates the function defined by the function template. More...
 
bool impl_isCounterFunction_throw (const OUString &_sQuotedFunctionName, OUString &Out_sScope) const
 check whether the given function name is a counter function. More...
 
void resetOwnProperties (::osl::ResettableMutexGuard &_aGuard, const OUString &_sOldFunctionName, const OUString &_sOldScope, const sal_uInt32 _nOldDataFieldType)
 clear the own properties like function and scope and send a notification More...
 
bool impl_isDataField (const OUString &_sName) const
 checks whether the name is a field or a parameter More...
 
void impl_fillFormulaList_nothrow (::std::vector< OUString > &_out_rList) const
 return all formula in a semicolon separated list More...
 
void impl_fillScopeList_nothrow (::std::vector< OUString > &_out_rList) const
 return all group names in a semicolon separated list starting with the group where this control is contained in. More...
 
void impl_fillMimeTypes_nothrow (::std::vector< OUString > &_out_rList) const
 return all supported output formats of the report definition More...
 
OUString impl_ConvertMimeTypeToUI_nothrow (const OUString &_sMimetype) const
 return the one supported output formats of the report definition More...
 
OUString impl_ConvertUIToMimeType_nothrow (const OUString &_sUIName) const
 return the MimeType for the given UI Name More...
 
css::uno::Reference< css::report::XFunctionsSupplier > fillScope_throw (OUString &_rsNamePostfix)
 get the functions supplier for the set scope, default is the surrounding group. More...
 
bool isDefaultFunction (const OUString &_sQuotedFunction, OUString &Out_rDataField, const css::uno::Reference< css::report::XFunctionsSupplier > &_xFunctionsSupplier=css::uno::Reference< css::report::XFunctionsSupplier >(), bool _bSet=false) const
 checks if the given function is a default function we know. More...
 
bool impl_isDefaultFunction_nothrow (const css::uno::Reference< css::report::XFunction > &_xFunction, OUString &_rDataField, OUString &_rsDefaultFunctionName) const
 checks if the given function is a default function we know. More...
 
void loadDefaultFunctions ()
 fills the member m_aDefaultFunctions More...
 
void createDefaultFunction (::osl::ResettableMutexGuard &_aGuard, const OUString &_sFunction, std::u16string_view _sDataField)
 creates a default function of the _sFunction for the data field _sDataField The new function will only be created if it didn't exist. More...
 
void removeFunction ()
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL propertyChange (const css::beans::PropertyChangeEvent &evt) override
 
 GeometryHandler (GeometryHandler const &)=delete
 
void operator= (GeometryHandler const &)=delete
 
virtual void SAL_CALL disposing () override
 

Static Private Member Functions

static void implCreateListLikeControl (const css::uno::Reference< css::inspection::XPropertyControlFactory > &_rxControlFactory, css::inspection::LineDescriptor &out_Descriptor, const TranslateId *pResId, bool _bReadOnlyControl, bool _bTrueIfListBoxFalseIfComboBox)
 
static void implCreateListLikeControl (const css::uno::Reference< css::inspection::XPropertyControlFactory > &_rxControlFactory, css::inspection::LineDescriptor &out_Descriptor, const ::std::vector< OUString > &_aEntries, bool _bReadOnlyControl, bool _bTrueIfListBoxFalseIfComboBox)
 

Private Attributes

PropertyChangeListeners m_aPropertyListeners
 
css::uno::Sequence< OUString > m_aFieldNames
 
css::uno::Sequence< OUString > m_aParamNames
 
TFunctions m_aFunctionNames
 
::std::vector< DefaultFunctionm_aDefaultFunctions
 
DefaultFunction m_aCounterFunction
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::report::XFunction > m_xFunction
 
css::uno::Reference< css::inspection::XPropertyHandler > m_xFormComponentHandler
 
css::uno::Reference< css::beans::XPropertySetm_xReportComponent
 delegatee More...
 
css::uno::Reference< css::sdbc::XRowSet > m_xRowSet
 inspectee More...
 
css::uno::Reference< css::script::XTypeConverter > m_xTypeConverter
 type converter, needed on various occasions More...
 
OUString m_sDefaultFunction
 
OUString m_sScope
 
sal_uInt32 m_nDataFieldType
 
bool m_bNewFunction
 
bool m_bIn
 
- Private Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 68 of file GeometryHandler.hxx.

Constructor & Destructor Documentation

◆ GeometryHandler() [1/2]

rptui::GeometryHandler::GeometryHandler ( css::uno::Reference< css::uno::XComponentContext > const &  context)
explicit

◆ ~GeometryHandler()

rptui::GeometryHandler::~GeometryHandler ( )
overrideprotectedvirtual

Definition at line 216 of file GeometryHandler.cxx.

◆ GeometryHandler() [2/2]

rptui::GeometryHandler::GeometryHandler ( GeometryHandler const &  )
privatedelete

Member Function Documentation

◆ actuatingPropertyChanged()

void SAL_CALL rptui::GeometryHandler::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 
)
overridevirtual

◆ addEventListener()

void SAL_CALL rptui::GeometryHandler::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

Definition at line 255 of file GeometryHandler.cxx.

References m_xFormComponentHandler.

◆ addPropertyChangeListener()

void SAL_CALL rptui::GeometryHandler::addPropertyChangeListener ( const css::uno::Reference< css::beans::XPropertyChangeListener > &  Listener)
overridevirtual

◆ checkPosAndSize()

void rptui::GeometryHandler::checkPosAndSize ( const css::awt::Point &  _aNewPos,
const css::awt::Size &  _aSize 
)
private

◆ convertToControlValue()

uno::Any SAL_CALL rptui::GeometryHandler::convertToControlValue ( const OUString &  PropertyName,
const css::uno::Any &  PropertyValue,
const css::uno::Type &  ControlValueType 
)
overridevirtual

◆ convertToPropertyValue()

uno::Any SAL_CALL rptui::GeometryHandler::convertToPropertyValue ( const OUString &  PropertyName,
const css::uno::Any &  ControlValue 
)
overridevirtual

◆ createDefaultFunction()

void rptui::GeometryHandler::createDefaultFunction ( ::osl::ResettableMutexGuard &  _aGuard,
const OUString &  _sFunction,
std::u16string_view  _sDataField 
)
private

creates a default function of the _sFunction for the data field _sDataField The new function will only be created if it didn't exist.

Parameters
_aGuardWill be cleared, when a new function was created.
_sFunctionThe name of the function.
_sDataFieldThe name of the data field.

Definition at line 1920 of file GeometryHandler.cxx.

References aEvent, fillScope_throw(), impl_convertToFormula(), impl_createFunction(), isDefaultFunction(), m_aDefaultFunctions, m_aFunctionNames, m_aPropertyListeners, m_bIn, m_sScope, m_xFunction, m_xReportComponent, comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach(), PROPERTY_DATAFIELD, PROPERTY_SCOPE, and TOOLS_WARN_EXCEPTION.

Referenced by setPropertyValue().

◆ describePropertyLine()

inspection::LineDescriptor SAL_CALL rptui::GeometryHandler::describePropertyLine ( const OUString &  PropertyName,
const css::uno::Reference< css::inspection::XPropertyControlFactory > &  ControlFactory 
)
overridevirtual

Definition at line 671 of file GeometryHandler.cxx.

References VCLUnoHelper::ConvertToMeasurementUnit(), DATA_OR_FORMULA, DataProperty, rptui::HelpIdUrl::getHelpURL(), SvtSysLocale::GetLocaleData(), LocaleDataWrapper::getMeasurementSystemEnum(), rptui::OPropertyInfoService::getPropertyHelpId(), rptui::OPropertyInfoService::getPropertyId(), rptui::OPropertyInfoService::getPropertyTranslation(), rptui::OPropertyInfoService::getPropertyUIFlags(), i, impl_fillFormulaList_nothrow(), impl_fillMimeTypes_nothrow(), impl_fillScopeList_nothrow(), implCreateListLikeControl(), m_aFieldNames, m_aFunctionNames, m_aParamNames, m_nDataFieldType, m_xFormComponentHandler, m_xReportComponent, nCount, nId, nLeftMargin, nRightMargin, PROPERTY_ID_AREA, PROPERTY_ID_BACKCOLOR, PROPERTY_ID_BACKTRANSPARENT, PROPERTY_ID_CANGROW, PROPERTY_ID_CANSHRINK, PROPERTY_ID_CONDITIONALPRINTEXPRESSION, PROPERTY_ID_CONTROLBACKGROUND, PROPERTY_ID_CONTROLBACKGROUNDTRANSPARENT, PROPERTY_ID_DATAFIELD, PROPERTY_ID_DEEPTRAVERSING, PROPERTY_ID_FONT, PROPERTY_ID_FORCENEWPAGE, PROPERTY_ID_FORMULA, PROPERTY_ID_FORMULALIST, PROPERTY_ID_GROUPKEEPTOGETHER, PROPERTY_ID_HEIGHT, PROPERTY_ID_INITIALFORMULA, PROPERTY_ID_KEEPTOGETHER, PROPERTY_ID_MIMETYPE, PROPERTY_ID_NEWROWORCOL, PROPERTY_ID_PAGEFOOTEROPTION, PROPERTY_ID_PAGEHEADEROPTION, PROPERTY_ID_PARAADJUST, PROPERTY_ID_POSITIONX, PROPERTY_ID_POSITIONY, PROPERTY_ID_PREEVALUATED, PROPERTY_ID_PRESERVEIRI, PROPERTY_ID_PRINTREPEATEDVALUES, PROPERTY_ID_PRINTWHENGROUPCHANGE, PROPERTY_ID_REPEATSECTION, PROPERTY_ID_RESETPAGENUMBER, PROPERTY_ID_SCOPE, PROPERTY_ID_STARTNEWCOLUMN, PROPERTY_ID_TYPE, PROPERTY_ID_VERTICALALIGN, PROPERTY_ID_VISIBLE, PROPERTY_ID_WIDTH, PROPERTY_LEFTMARGIN, PROPERTY_PAPERSIZE, PROPERTY_RIGHTMARGIN, u, UID_RPT_PROP_FORMULA, UID_RPT_RPT_PROP_DLG_AREA, UID_RPT_RPT_PROP_DLG_FONT_TYPE, and USER_DEF_FUNCTION.

◆ disposing() [1/2]

void SAL_CALL rptui::GeometryHandler::disposing ( )
overrideprivatevirtual

◆ disposing() [2/2]

virtual void SAL_CALL rptui::GeometryHandler::disposing ( const css::lang::EventObject &  Source)
overrideprivatevirtual

◆ fillScope_throw()

uno::Reference< report::XFunctionsSupplier > rptui::GeometryHandler::fillScope_throw ( OUString &  _rsNamePostfix)
private

get the functions supplier for the set scope, default is the surrounding group.

Parameters
_rsNamePostfixthe name postfix which can be used when the scope as name part is needed
Returns
the function supplier

Definition at line 1728 of file GeometryHandler.cxx.

References i, m_sScope, m_xReportComponent, nCount, and RptResId().

Referenced by createDefaultFunction(), impl_createFunction(), impl_setCounterFunction_throw(), and setPropertyValue().

◆ getActuatingProperties()

uno::Sequence< OUString > SAL_CALL rptui::GeometryHandler::getActuatingProperties ( )
overridevirtual

◆ getConstantValue()

uno::Any rptui::GeometryHandler::getConstantValue ( bool  bToControlValue,
const TranslateId pResId,
const css::uno::Any &  _aValue,
const OUString &  _sConstantName,
const OUString &  PropertyName 
)
private

◆ getImplementationName()

OUString SAL_CALL rptui::GeometryHandler::getImplementationName ( )
overridevirtual

Definition at line 220 of file GeometryHandler.cxx.

◆ getProperty()

beans::Property rptui::GeometryHandler::getProperty ( const OUString &  PropertyName)
private

Definition at line 882 of file GeometryHandler.cxx.

References getSupportedProperties(), and x.

Referenced by convertToPropertyValue(), and getConstantValue().

◆ getPropertyState()

beans::PropertyState SAL_CALL rptui::GeometryHandler::getPropertyState ( const OUString &  PropertyName)
overridevirtual

Definition at line 628 of file GeometryHandler.cxx.

References cppu::BaseMutex::m_aMutex, and m_xFormComponentHandler.

◆ getPropertyValue()

uno::Any SAL_CALL rptui::GeometryHandler::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

◆ getSupersededProperties()

uno::Sequence< OUString > SAL_CALL rptui::GeometryHandler::getSupersededProperties ( )
overridevirtual

◆ getSupportedProperties()

uno::Sequence< beans::Property > SAL_CALL rptui::GeometryHandler::getSupportedProperties ( )
overridevirtual

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL rptui::GeometryHandler::getSupportedServiceNames ( )
overridevirtual

Definition at line 230 of file GeometryHandler.cxx.

◆ impl_ConvertMimeTypeToUI_nothrow()

OUString rptui::GeometryHandler::impl_ConvertMimeTypeToUI_nothrow ( const OUString &  _sMimetype) const
private

return the one supported output formats of the report definition

Parameters
_sMimetypethe mimetype

Definition at line 1663 of file GeometryHandler.cxx.

References SfxFilter::GetDefaultFilter(), comphelper::MimeConfigurationHelper::GetDocServiceNameFromMediaType(), and m_xContext.

Referenced by getPropertyValue(), and impl_fillMimeTypes_nothrow().

◆ impl_convertToFormula()

OUString rptui::GeometryHandler::impl_convertToFormula ( const css::uno::Any &  _rControlValue)
private

◆ impl_ConvertUIToMimeType_nothrow()

OUString rptui::GeometryHandler::impl_ConvertUIToMimeType_nothrow ( const OUString &  _sUIName) const
private

return the MimeType for the given UI Name

Parameters
_sUINamethe doc ui name

Definition at line 1644 of file GeometryHandler.cxx.

References impl_fillMimeTypes_nothrow(), m_xReportComponent, and nPos.

Referenced by setPropertyValue().

◆ impl_createFunction()

void rptui::GeometryHandler::impl_createFunction ( const OUString &  _sFunctionName,
std::u16string_view  _sDataField,
const DefaultFunction _aFunction 
)
private

Creates the function defined by the function template.

Parameters
_sFunctionNamethe function name
_sDataFieldthe data field
_aFunctionthe function template

Definition at line 2087 of file GeometryHandler.cxx.

References fillScope_throw(), m_aFunctionNames, m_bNewFunction, rptui::DefaultFunction::m_bPreEvaluated, rptui::DefaultFunction::m_sFormula, rptui::DefaultFunction::m_sInitialFormula, m_xContext, m_xFunction, removeFunction(), sFormula, and u.

Referenced by createDefaultFunction(), and impl_setCounterFunction_throw().

◆ impl_dialogFilter_nothrow()

bool rptui::GeometryHandler::impl_dialogFilter_nothrow ( OUString &  _out_rSelectedClause,
::osl::ClearableMutexGuard &  _rClearBeforeDialog 
) const
private

executes a dialog for choosing a filter criterion for a database report

Parameters
_out_rSelectedClausethe filter or order clause as chosen by the user @precond we're really inspecting a database form (well, a RowSet at least)
Returns
<TRUE> if and only if the user successfully chose a clause

Definition at line 1544 of file GeometryHandler.cxx.

References dbtools::SQLExceptionInfo::isValid(), m_xContext, m_xReportComponent, m_xRowSet, PROPERTY_ACTIVECONNECTION, RptResId(), TOOLS_WARN_EXCEPTION, and xFactory.

Referenced by onInteractivePropertySelection().

◆ impl_fillFormulaList_nothrow()

void rptui::GeometryHandler::impl_fillFormulaList_nothrow ( ::std::vector< OUString > &  _out_rList) const
private

return all formula in a semicolon separated list

Parameters
_rListthe localized function names

Definition at line 1628 of file GeometryHandler.cxx.

References FUNCTION, m_aDefaultFunctions, m_aFunctionNames, m_nDataFieldType, and USER_DEF_FUNCTION.

Referenced by describePropertyLine().

◆ impl_fillMimeTypes_nothrow()

void rptui::GeometryHandler::impl_fillMimeTypes_nothrow ( ::std::vector< OUString > &  _out_rList) const
private

return all supported output formats of the report definition

Parameters
_rListfills the list with all mime types

Definition at line 1675 of file GeometryHandler.cxx.

References impl_ConvertMimeTypeToUI_nothrow(), m_xReportComponent, and TOOLS_WARN_EXCEPTION.

Referenced by describePropertyLine(), and impl_ConvertUIToMimeType_nothrow().

◆ impl_fillScopeList_nothrow()

void rptui::GeometryHandler::impl_fillScopeList_nothrow ( ::std::vector< OUString > &  _out_rList) const
private

return all group names in a semicolon separated list starting with the group where this control is contained in.

Parameters
_rListfills the list with all scope names.

Definition at line 1697 of file GeometryHandler.cxx.

References rptui::getPositionInIndexAccess(), i, m_xReportComponent, nPos, RptResId(), and TOOLS_WARN_EXCEPTION.

Referenced by describePropertyLine().

◆ impl_getDataFieldType_throw()

sal_uInt32 rptui::GeometryHandler::impl_getDataFieldType_throw ( const OUString &  _sDataField = OUString()) const
private

returns the data field type depending on the data field of the report control

Parameters
_sDataFieldif the data field is not empty it will be used as data field, otherwise the data field will be used.
Returns
the data field type

Definition at line 2136 of file GeometryHandler.cxx.

References COUNTER, DATA_OR_FORMULA, FUNCTION, impl_isCounterFunction_throw(), impl_isDataField(), isDefaultFunction(), m_aFunctionNames, m_xReportComponent, PROPERTY_DATAFIELD, UNDEF_DATA, and USER_DEF_FUNCTION.

Referenced by getPropertyValue(), propertyChange(), and setPropertyValue().

◆ impl_initFieldList_nothrow()

void rptui::GeometryHandler::impl_initFieldList_nothrow ( css::uno::Sequence< OUString > &  _rFieldNames) const
private

◆ impl_isCounterFunction_throw()

bool rptui::GeometryHandler::impl_isCounterFunction_throw ( const OUString &  _sQuotedFunctionName,
OUString &  Out_sScope 
) const
private

check whether the given function name is a counter function.

Parameters
_sQuotedFunctionNamethe quoted function name to check
Out_sScopethe scope of the function
Returns
When true it is a counter functions otherwise false.

Definition at line 2053 of file GeometryHandler.cxx.

References i18nutil::SearchOptions2::AlgorithmType2, end, m_aCounterFunction, m_aFunctionNames, rptui::DefaultFunction::m_sSearchString, RptResId(), i18nutil::SearchOptions2::searchFlag, utl::TextSearch::SearchForward(), i18nutil::SearchOptions2::searchString, sFormula, and start.

Referenced by getPropertyValue(), impl_getDataFieldType_throw(), impl_setCounterFunction_throw(), propertyChange(), and setPropertyValue().

◆ impl_isDataField()

bool rptui::GeometryHandler::impl_isDataField ( const OUString &  _sName) const
private

checks whether the name is a field or a parameter

Parameters
_sNamethe name to check
Returns
true when it is a field or parameter otherwise false

Definition at line 171 of file GeometryHandler.cxx.

References m_aFieldNames, and m_aParamNames.

Referenced by impl_convertToFormula(), and impl_getDataFieldType_throw().

◆ impl_isDefaultFunction_nothrow()

bool rptui::GeometryHandler::impl_isDefaultFunction_nothrow ( const css::uno::Reference< css::report::XFunction > &  _xFunction,
OUString &  _rDataField,
OUString &  _rsDefaultFunctionName 
) const
private

checks if the given function is a default function we know.

Parameters
_xFunction
_rDataField
_rsDefaultFunctionName
Returns

Definition at line 1843 of file GeometryHandler.cxx.

References i18nutil::SearchOptions2::AlgorithmType2, end, m_aDefaultFunctions, i18nutil::SearchOptions2::searchFlag, utl::TextSearch::SearchForward(), i18nutil::SearchOptions2::searchString, sFormula, start, and TOOLS_WARN_EXCEPTION.

Referenced by isDefaultFunction(), and setPropertyValue().

◆ impl_setCounterFunction_throw()

void rptui::GeometryHandler::impl_setCounterFunction_throw ( )
private

sets the counter function at the data field.

If the counter function doesn't exist it will be created.

Definition at line 2122 of file GeometryHandler.cxx.

References fillScope_throw(), impl_convertToFormula(), impl_createFunction(), impl_isCounterFunction_throw(), m_aCounterFunction, m_aFunctionNames, m_bIn, rptui::DefaultFunction::m_sName, m_xReportComponent, and PROPERTY_DATAFIELD.

Referenced by setPropertyValue().

◆ implCreateListLikeControl() [1/2]

static void rptui::GeometryHandler::implCreateListLikeControl ( const css::uno::Reference< css::inspection::XPropertyControlFactory > &  _rxControlFactory,
css::inspection::LineDescriptor &  out_Descriptor,
const ::std::vector< OUString > &  _aEntries,
bool  _bReadOnlyControl,
bool  _bTrueIfListBoxFalseIfComboBox 
)
staticprivate

◆ implCreateListLikeControl() [2/2]

static void rptui::GeometryHandler::implCreateListLikeControl ( const css::uno::Reference< css::inspection::XPropertyControlFactory > &  _rxControlFactory,
css::inspection::LineDescriptor &  out_Descriptor,
const TranslateId pResId,
bool  _bReadOnlyControl,
bool  _bTrueIfListBoxFalseIfComboBox 
)
staticprivate

Referenced by describePropertyLine().

◆ inspect()

void SAL_CALL rptui::GeometryHandler::inspect ( const css::uno::Reference< css::uno::XInterface > &  Component)
overridevirtual

◆ isComposable()

sal_Bool SAL_CALL rptui::GeometryHandler::isComposable ( const OUString &  PropertyName)
overridevirtual

◆ isDefaultFunction()

bool rptui::GeometryHandler::isDefaultFunction ( const OUString &  _sQuotedFunction,
OUString &  Out_rDataField,
const css::uno::Reference< css::report::XFunctionsSupplier > &  _xFunctionsSupplier = css::uno::Reference< css::report::XFunctionsSupplier>(),
bool  _bSet = false 
) const
private

checks if the given function is a default function we know.

Parameters
_sQuotedFunctionthe quoted function name
Out_rDataFieldthe data field which is used in the function
_xFunctionsSupplierthe function supplier to search or empty if not used
_bSetIf set to sal_True than the m_sDefaultFunction and m_sScope vars will be set if successful.
Returns
sal_True with known otherwise sal_False

Definition at line 1792 of file GeometryHandler.cxx.

References impl_isDefaultFunction_nothrow(), m_aFunctionNames, m_sDefaultFunction, m_sScope, m_xFunction, m_xReportComponent, RptResId(), and TOOLS_WARN_EXCEPTION.

Referenced by convertToControlValue(), convertToPropertyValue(), createDefaultFunction(), getPropertyValue(), impl_getDataFieldType_throw(), propertyChange(), and setPropertyValue().

◆ loadDefaultFunctions()

void rptui::GeometryHandler::loadDefaultFunctions ( )
private

◆ onInteractivePropertySelection()

inspection::InteractiveSelectionResult SAL_CALL rptui::GeometryHandler::onInteractivePropertySelection ( const OUString &  PropertyName,
sal_Bool  Primary,
css::uno::Any &  out_Data,
const css::uno::Reference< css::inspection::XObjectInspectorUI > &  InspectorUI 
)
overridevirtual

◆ operator=()

void rptui::GeometryHandler::operator= ( GeometryHandler const &  )
privatedelete

◆ propertyChange()

void SAL_CALL rptui::GeometryHandler::propertyChange ( const css::beans::PropertyChangeEvent &  evt)
overrideprivatevirtual

◆ removeEventListener()

void SAL_CALL rptui::GeometryHandler::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

Definition at line 260 of file GeometryHandler.cxx.

References m_xFormComponentHandler.

◆ removeFunction()

void rptui::GeometryHandler::removeFunction ( )
private

TODO: insert new method in XFunctions: removeFunction(xfunction)

Definition at line 1966 of file GeometryHandler.cxx.

References m_aFunctionNames, m_bNewFunction, and m_xFunction.

Referenced by impl_createFunction(), and setPropertyValue().

◆ removePropertyChangeListener()

void SAL_CALL rptui::GeometryHandler::removePropertyChangeListener ( const css::uno::Reference< css::beans::XPropertyChangeListener > &  _rxListener)
overridevirtual

◆ resetOwnProperties()

void rptui::GeometryHandler::resetOwnProperties ( ::osl::ResettableMutexGuard &  _aGuard,
const OUString &  _sOldFunctionName,
const OUString &  _sOldScope,
const sal_uInt32  _nOldDataFieldType 
)
private

clear the own properties like function and scope and send a notification

Parameters
_aGuard
_sOldFunctionName
_sOldScope
_nOldDataFieldType

Definition at line 1987 of file GeometryHandler.cxx.

References m_aPropertyListeners, m_nDataFieldType, m_sDefaultFunction, m_sScope, comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach(), PROPERTY_FORMULALIST, PROPERTY_SCOPE, and PROPERTY_TYPE.

Referenced by propertyChange(), and setPropertyValue().

◆ setPropertyValue()

void SAL_CALL rptui::GeometryHandler::setPropertyValue ( const OUString &  PropertyName,
const css::uno::Any &  Value 
)
overridevirtual

◆ supportsService()

sal_Bool SAL_CALL rptui::GeometryHandler::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 225 of file GeometryHandler.cxx.

References ServiceName, and cppu::supportsService().

◆ suspend()

sal_Bool SAL_CALL rptui::GeometryHandler::suspend ( sal_Bool  Suspend)
overridevirtual

Definition at line 1539 of file GeometryHandler.cxx.

References m_xFormComponentHandler.

Member Data Documentation

◆ m_aCounterFunction

DefaultFunction rptui::GeometryHandler::m_aCounterFunction
private

◆ m_aDefaultFunctions

::std::vector< DefaultFunction > rptui::GeometryHandler::m_aDefaultFunctions
private

◆ m_aFieldNames

css::uno::Sequence< OUString > rptui::GeometryHandler::m_aFieldNames
private

Definition at line 283 of file GeometryHandler.hxx.

Referenced by describePropertyLine(), impl_isDataField(), and inspect().

◆ m_aFunctionNames

TFunctions rptui::GeometryHandler::m_aFunctionNames
private

◆ m_aParamNames

css::uno::Sequence< OUString > rptui::GeometryHandler::m_aParamNames
private

Definition at line 284 of file GeometryHandler.hxx.

Referenced by describePropertyLine(), impl_isDataField(), and inspect().

◆ m_aPropertyListeners

PropertyChangeListeners rptui::GeometryHandler::m_aPropertyListeners
private

◆ m_bIn

bool rptui::GeometryHandler::m_bIn
private

◆ m_bNewFunction

bool rptui::GeometryHandler::m_bNewFunction
mutableprivate

◆ m_nDataFieldType

sal_uInt32 rptui::GeometryHandler::m_nDataFieldType
private

◆ m_sDefaultFunction

OUString rptui::GeometryHandler::m_sDefaultFunction
mutableprivate

◆ m_sScope

OUString rptui::GeometryHandler::m_sScope
mutableprivate

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > rptui::GeometryHandler::m_xContext
private

◆ m_xFormComponentHandler

css::uno::Reference< css::inspection::XPropertyHandler > rptui::GeometryHandler::m_xFormComponentHandler
private

◆ m_xFunction

css::uno::Reference< css::report::XFunction> rptui::GeometryHandler::m_xFunction
mutableprivate

◆ m_xReportComponent

css::uno::Reference< css::beans::XPropertySet > rptui::GeometryHandler::m_xReportComponent
private

◆ m_xRowSet

css::uno::Reference< css::sdbc::XRowSet > rptui::GeometryHandler::m_xRowSet
mutableprivate

◆ m_xTypeConverter

css::uno::Reference< css::script::XTypeConverter > rptui::GeometryHandler::m_xTypeConverter
private

type converter, needed on various occasions

Definition at line 294 of file GeometryHandler.hxx.

Referenced by convertToControlValue(), convertToPropertyValue(), disposing(), and getConstantValue().


The documentation for this class was generated from the following files: