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 char **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, const OUString &_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, const OUString &_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 char **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 67 of file GeometryHandler.hxx.

Constructor & Destructor Documentation

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

Definition at line 216 of file GeometryHandler.cxx.

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

Member Function Documentation

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
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.

void SAL_CALL rptui::GeometryHandler::addPropertyChangeListener ( const css::uno::Reference< css::beans::XPropertyChangeListener > &  Listener)
overridevirtual
void rptui::GeometryHandler::checkPosAndSize ( const css::awt::Point &  _aNewPos,
const css::awt::Size &  _aSize 
)
private
uno::Any SAL_CALL rptui::GeometryHandler::convertToControlValue ( const OUString &  PropertyName,
const css::uno::Any &  PropertyValue,
const css::uno::Type &  ControlValueType 
)
overridevirtual
uno::Any SAL_CALL rptui::GeometryHandler::convertToPropertyValue ( const OUString &  PropertyName,
const css::uno::Any &  ControlValue 
)
overridevirtual
void rptui::GeometryHandler::createDefaultFunction ( ::osl::ResettableMutexGuard &  _aGuard,
const OUString &  _sFunction,
const OUString &  _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 1917 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::OSimpleListenerContainer< class, class >::notify(), PROPERTY_DATAFIELD, and PROPERTY_SCOPE.

Referenced by setPropertyValue().

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.

virtual void SAL_CALL rptui::GeometryHandler::disposing ( const css::lang::EventObject &  Source)
overrideprivatevirtual
void SAL_CALL rptui::GeometryHandler::disposing ( )
overrideprivatevirtual
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 1725 of file GeometryHandler.cxx.

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

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

uno::Sequence< OUString > SAL_CALL rptui::GeometryHandler::getActuatingProperties ( )
overridevirtual
uno::Any rptui::GeometryHandler::getConstantValue ( bool  bToControlValue,
const char **  pResId,
const css::uno::Any &  _aValue,
const OUString &  _sConstantName,
const OUString &  PropertyName 
)
private
OUString SAL_CALL rptui::GeometryHandler::getImplementationName ( )
overridevirtual

Definition at line 220 of file GeometryHandler.cxx.

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().

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.

uno::Any SAL_CALL rptui::GeometryHandler::getPropertyValue ( const OUString &  PropertyName)
overridevirtual
uno::Sequence< OUString > SAL_CALL rptui::GeometryHandler::getSupersededProperties ( )
overridevirtual
uno::Sequence< beans::Property > SAL_CALL rptui::GeometryHandler::getSupportedProperties ( )
overridevirtual
uno::Sequence< OUString > SAL_CALL rptui::GeometryHandler::getSupportedServiceNames ( )
overridevirtual

Definition at line 230 of file GeometryHandler.cxx.

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 1660 of file GeometryHandler.cxx.

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

Referenced by getPropertyValue(), and impl_fillMimeTypes_nothrow().

OUString rptui::GeometryHandler::impl_convertToFormula ( const css::uno::Any &  _rControlValue)
private
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 1641 of file GeometryHandler.cxx.

References impl_fillMimeTypes_nothrow(), m_xReportComponent, and nPos.

Referenced by setPropertyValue().

void rptui::GeometryHandler::impl_createFunction ( const OUString &  _sFunctionName,
const OUString &  _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 2084 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, and removeFunction().

Referenced by createDefaultFunction(), and impl_setCounterFunction_throw().

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 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 1541 of file GeometryHandler.cxx.

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

Referenced by onInteractivePropertySelection().

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 1625 of file GeometryHandler.cxx.

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

Referenced by describePropertyLine().

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 1672 of file GeometryHandler.cxx.

References impl_ConvertMimeTypeToUI_nothrow(), and m_xReportComponent.

Referenced by describePropertyLine(), and impl_ConvertUIToMimeType_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 1694 of file GeometryHandler.cxx.

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

Referenced by describePropertyLine().

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 2133 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().

void rptui::GeometryHandler::impl_initFieldList_nothrow ( css::uno::Sequence< OUString > &  _rFieldNames) const
private
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 2050 of file GeometryHandler.cxx.

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

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

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().

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 1840 of file GeometryHandler.cxx.

References i18nutil::SearchOptions2::AlgorithmType2, end, m_aDefaultFunctions, utl::TextSearch::SearchForward(), and void().

Referenced by isDefaultFunction(), and setPropertyValue().

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 2119 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().

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

Referenced by describePropertyLine().

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
void SAL_CALL rptui::GeometryHandler::inspect ( const css::uno::Reference< css::uno::XInterface > &  Component)
overridevirtual
sal_Bool SAL_CALL rptui::GeometryHandler::isComposable ( const OUString &  PropertyName)
overridevirtual
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 1789 of file GeometryHandler.cxx.

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

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

void rptui::GeometryHandler::loadDefaultFunctions ( )
private
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
void rptui::GeometryHandler::operator= ( GeometryHandler const &  )
privatedelete
void SAL_CALL rptui::GeometryHandler::propertyChange ( const css::beans::PropertyChangeEvent &  evt)
overrideprivatevirtual
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.

void rptui::GeometryHandler::removeFunction ( )
private

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

Definition at line 1963 of file GeometryHandler.cxx.

References m_aFunctionNames, m_bNewFunction, and m_xFunction.

Referenced by impl_createFunction(), and setPropertyValue().

void SAL_CALL rptui::GeometryHandler::removePropertyChangeListener ( const css::uno::Reference< css::beans::XPropertyChangeListener > &  _rxListener)
overridevirtual
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 1984 of file GeometryHandler.cxx.

References m_aPropertyListeners, m_nDataFieldType, m_sDefaultFunction, m_sScope, comphelper::OSimpleListenerContainer< class, class >::notify(), PROPERTY_FORMULALIST, PROPERTY_SCOPE, and PROPERTY_TYPE.

Referenced by propertyChange(), and setPropertyValue().

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

Definition at line 225 of file GeometryHandler.cxx.

References cppu::supportsService().

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

Definition at line 1536 of file GeometryHandler.cxx.

References m_xFormComponentHandler.

Member Data Documentation

DefaultFunction rptui::GeometryHandler::m_aCounterFunction
private
::std::vector< DefaultFunction > rptui::GeometryHandler::m_aDefaultFunctions
private
css::uno::Sequence< OUString > rptui::GeometryHandler::m_aFieldNames
private

Definition at line 282 of file GeometryHandler.hxx.

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

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

Definition at line 283 of file GeometryHandler.hxx.

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

PropertyChangeListeners rptui::GeometryHandler::m_aPropertyListeners
private
bool rptui::GeometryHandler::m_bIn
private
bool rptui::GeometryHandler::m_bNewFunction
mutableprivate
sal_uInt32 rptui::GeometryHandler::m_nDataFieldType
private
OUString rptui::GeometryHandler::m_sDefaultFunction
mutableprivate
OUString rptui::GeometryHandler::m_sScope
mutableprivate
css::uno::Reference< css::uno::XComponentContext > rptui::GeometryHandler::m_xContext
private
css::uno::Reference< css::inspection::XPropertyHandler > rptui::GeometryHandler::m_xFormComponentHandler
private
css::uno::Reference< css::report::XFunction> rptui::GeometryHandler::m_xFunction
mutableprivate
css::uno::Reference< css::beans::XPropertySet > rptui::GeometryHandler::m_xReportComponent
private
css::uno::Reference< css::sdbc::XRowSet > rptui::GeometryHandler::m_xRowSet
mutableprivate
css::uno::Reference< css::script::XTypeConverter > rptui::GeometryHandler::m_xTypeConverter
private

type converter, needed on various occasions

Definition at line 293 of file GeometryHandler.hxx.

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


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