LibreOffice Module reportdesign (master) 1
|
#include <GeometryHandler.hxx>
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< DefaultFunction > | m_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::XPropertySet > | m_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 |
Definition at line 68 of file GeometryHandler.hxx.
|
explicit |
|
overrideprotectedvirtual |
Definition at line 216 of file GeometryHandler.cxx.
|
privatedelete |
|
overridevirtual |
Definition at line 1456 of file GeometryHandler.cxx.
References COUNTER, DATA_OR_FORMULA, FUNCTION, rptui::OPropertyInfoService::getPropertyId(), cppu::BaseMutex::m_aMutex, m_nDataFieldType, m_sDefaultFunction, m_sScope, m_xFormComponentHandler, m_xReportComponent, nId, PROPERTY_BACKCOLOR, PROPERTY_CONTROLBACKGROUND, PROPERTY_DATAFIELD, PROPERTY_FORMULALIST, PROPERTY_ID_BACKTRANSPARENT, PROPERTY_ID_CONTROLBACKGROUNDTRANSPARENT, PROPERTY_ID_DATAFIELD, PROPERTY_ID_FORMULALIST, PROPERTY_ID_TYPE, PROPERTY_SCOPE, and USER_DEF_FUNCTION.
|
overridevirtual |
Definition at line 255 of file GeometryHandler.cxx.
References m_xFormComponentHandler.
|
overridevirtual |
Definition at line 1242 of file GeometryHandler.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), cppu::BaseMutex::m_aMutex, m_aPropertyListeners, and m_xFormComponentHandler.
|
private |
Definition at line 1600 of file GeometryHandler.cxx.
References tools::Rectangle::GetIntersection(), i, m_xReportComponent, nCount, RptResId(), VCLPoint(), VCLSize(), Point::X(), and Point::Y().
Referenced by setPropertyValue().
|
overridevirtual |
Definition at line 1104 of file GeometryHandler.cxx.
References COL_TRANSPARENT(), getConstantValue(), rptui::OPropertyInfoService::getPropertyId(), uno::Any::hasValue(), isDefaultFunction(), cppu::BaseMutex::m_aMutex, m_nDataFieldType, m_sDefaultFunction, m_sScope, m_xContext, m_xFormComponentHandler, m_xReportComponent, m_xTypeConverter, o3tl::make_unsigned(), nId, PROPERTY_FONT, 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_INITIALFORMULA, PROPERTY_ID_KEEPTOGETHER, PROPERTY_ID_MIMETYPE, PROPERTY_ID_NEWROWORCOL, PROPERTY_ID_PAGEFOOTEROPTION, PROPERTY_ID_PAGEHEADEROPTION, PROPERTY_ID_PARAADJUST, PROPERTY_ID_POSITIONX, 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_LEFTMARGIN, RptResId(), SAL_N_ELEMENTS, and TOOLS_WARN_EXCEPTION.
|
overridevirtual |
Definition at line 919 of file GeometryHandler.cxx.
References COL_TRANSPARENT(), getConstantValue(), getProperty(), rptui::OPropertyInfoService::getPropertyId(), uno::Any::hasValue(), i, impl_convertToFormula(), isDefaultFunction(), cppu::BaseMutex::m_aMutex, m_xContext, m_xFormComponentHandler, m_xFunction, m_xReportComponent, m_xTypeConverter, nId, PROPERTY_FONT, 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_INITIALFORMULA, PROPERTY_ID_KEEPTOGETHER, PROPERTY_ID_MIMETYPE, PROPERTY_ID_NEWROWORCOL, PROPERTY_ID_PAGEFOOTEROPTION, PROPERTY_ID_PAGEHEADEROPTION, PROPERTY_ID_PARAADJUST, PROPERTY_ID_POSITIONX, 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_LEFTMARGIN, RESARRAY_INDEX_NOTFOUND, RptResId(), TOOLS_WARN_EXCEPTION, and uno::Any::Type.
|
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.
_aGuard | Will be cleared, when a new function was created. |
_sFunction | The name of the function. |
_sDataField | The 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().
|
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.
|
overrideprivatevirtual |
Definition at line 239 of file GeometryHandler.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::clear(), m_aPropertyListeners, m_xFormComponentHandler, m_xReportComponent, m_xRowSet, m_xTypeConverter, and PROPERTY_DATAFIELD.
|
overrideprivatevirtual |
|
private |
get the functions supplier for the set scope, default is the surrounding group.
_rsNamePostfix | the name postfix which can be used when the scope as name part is needed |
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().
|
overridevirtual |
Definition at line 1354 of file GeometryHandler.cxx.
References aSeq, cppu::BaseMutex::m_aMutex, m_xFormComponentHandler, PROPERTY_BACKTRANSPARENT, PROPERTY_CONTROLBACKGROUNDTRANSPARENT, PROPERTY_DATAFIELD, PROPERTY_FORMULALIST, and PROPERTY_TYPE.
|
private |
Definition at line 895 of file GeometryHandler.cxx.
References aSeq, getProperty(), i, m_xContext, m_xTypeConverter, and RptResId().
Referenced by convertToControlValue(), and convertToPropertyValue().
|
overridevirtual |
Definition at line 220 of file GeometryHandler.cxx.
|
private |
Definition at line 882 of file GeometryHandler.cxx.
References getSupportedProperties(), and x.
Referenced by convertToPropertyValue(), and getConstantValue().
|
overridevirtual |
Definition at line 628 of file GeometryHandler.cxx.
References cppu::BaseMutex::m_aMutex, and m_xFormComponentHandler.
|
overridevirtual |
Definition at line 314 of file GeometryHandler.cxx.
References COL_TRANSPARENT(), COUNTER, DATA_OR_FORMULA, FUNCTION, rptui::OPropertyInfoService::getPropertyId(), impl_ConvertMimeTypeToUI_nothrow(), impl_getDataFieldType_throw(), impl_isCounterFunction_throw(), isDefaultFunction(), cppu::BaseMutex::m_aMutex, m_nDataFieldType, m_sDefaultFunction, m_sScope, m_xReportComponent, nId, PROPERTY_DATAFIELD, PROPERTY_ID_BACKCOLOR, PROPERTY_ID_CONDITIONALPRINTEXPRESSION, PROPERTY_ID_CONTROLBACKGROUND, PROPERTY_ID_DATAFIELD, PROPERTY_ID_FORMULA, PROPERTY_ID_FORMULALIST, PROPERTY_ID_INITIALFORMULA, PROPERTY_ID_MIMETYPE, PROPERTY_ID_SCOPE, PROPERTY_ID_TYPE, UNDEF_DATA, and USER_DEF_FUNCTION.
|
overridevirtual |
Definition at line 1337 of file GeometryHandler.cxx.
References m_xReportComponent, PROPERTY_DATAFIELD, PROPERTY_HEIGHT, PROPERTY_POSITIONX, PROPERTY_POSITIONY, and PROPERTY_WIDTH.
|
overridevirtual |
Definition at line 1257 of file GeometryHandler.cxx.
References aSeq, rptui::OPropertyInfoService::getExcludeProperties(), m_xFormComponentHandler, m_xReportComponent, PROPERTY_AUTOGROW, PROPERTY_BACKCOLOR, PROPERTY_BACKTRANSPARENT, PROPERTY_CANGROW, PROPERTY_CANSHRINK, PROPERTY_CONDITIONALPRINTEXPRESSION, PROPERTY_CONTROLBACKGROUND, PROPERTY_CONTROLBACKGROUNDTRANSPARENT, PROPERTY_DATAFIELD, PROPERTY_DEEPTRAVERSING, PROPERTY_FONT, PROPERTY_FORCENEWPAGE, PROPERTY_FORMULA, PROPERTY_FORMULALIST, PROPERTY_HEIGHT, PROPERTY_INITIALFORMULA, PROPERTY_KEEPTOGETHER, PROPERTY_LABEL, PROPERTY_MIMETYPE, PROPERTY_PAGEFOOTEROPTION, PROPERTY_PAGEHEADEROPTION, PROPERTY_PARAADJUST, PROPERTY_POSITIONX, PROPERTY_POSITIONY, PROPERTY_PREEVALUATED, PROPERTY_PRESERVEIRI, PROPERTY_PRINTREPEATEDVALUES, PROPERTY_PRINTWHENGROUPCHANGE, PROPERTY_REPEATSECTION, PROPERTY_RESETPAGENUMBER, PROPERTY_SCOPE, PROPERTY_STARTNEWCOLUMN, PROPERTY_TYPE, PROPERTY_VERTICALALIGN, PROPERTY_VISIBLE, PROPERTY_WIDTH, and x.
Referenced by getProperty().
|
overridevirtual |
Definition at line 230 of file GeometryHandler.cxx.
|
private |
return the one supported output formats of the report definition
_sMimetype | the 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().
|
private |
Definition at line 182 of file GeometryHandler.cxx.
References rptui::ReportFormula::Expression, rptui::ReportFormula::Field, rptui::ReportFormula::getCompleteFormula(), impl_isDataField(), rptui::ReportFormula::isValid(), and sName.
Referenced by convertToPropertyValue(), createDefaultFunction(), impl_setCounterFunction_throw(), and setPropertyValue().
|
private |
return the MimeType for the given UI Name
_sUIName | the doc ui name |
Definition at line 1644 of file GeometryHandler.cxx.
References impl_fillMimeTypes_nothrow(), m_xReportComponent, and nPos.
Referenced by setPropertyValue().
|
private |
Creates the function defined by the function template.
_sFunctionName | the function name |
_sDataField | the data field |
_aFunction | the 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().
|
private |
executes a dialog for choosing a filter criterion for a database report
_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) |
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().
|
private |
return all formula in a semicolon separated list
_rList | the 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().
|
private |
return all supported output formats of the report definition
_rList | fills 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().
|
private |
return all group names in a semicolon separated list starting with the group where this control is contained in.
_rList | fills 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().
|
private |
returns the data field type depending on the data field of the report control
_sDataField | if the data field is not empty it will be used as data field, otherwise the data field will be used. |
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().
|
private |
Definition at line 2022 of file GeometryHandler.cxx.
References Application::GetFrameWeld(), m_xContext, m_xRowSet, PROPERTY_COMMAND, PROPERTY_COMMANDTYPE, and TOOLS_WARN_EXCEPTION.
Referenced by inspect().
|
private |
check whether the given function name is a counter function.
_sQuotedFunctionName | the quoted function name to check |
Out_sScope | the scope of the function |
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().
|
private |
checks whether the name is a field or a parameter
_sName | the name to check |
Definition at line 171 of file GeometryHandler.cxx.
References m_aFieldNames, and m_aParamNames.
Referenced by impl_convertToFormula(), and impl_getDataFieldType_throw().
|
private |
checks if the given function is a default function we know.
_xFunction | |
_rDataField | |
_rsDefaultFunctionName |
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().
|
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().
|
staticprivate |
|
staticprivate |
Referenced by describePropertyLine().
|
overridevirtual |
Definition at line 268 of file GeometryHandler.cxx.
References rptui::getParameterNames(), impl_initFieldList_nothrow(), m_aFieldNames, m_aFunctionNames, cppu::BaseMutex::m_aMutex, m_aParamNames, m_bNewFunction, m_nDataFieldType, m_sDefaultFunction, m_sScope, m_xFormComponentHandler, m_xFunction, m_xReportComponent, m_xRowSet, PROPERTY_DATAFIELD, and u.
|
overridevirtual |
Definition at line 1370 of file GeometryHandler.cxx.
References rptui::OPropertyInfoService::isComposable(), and m_xFormComponentHandler.
|
private |
checks if the given function is a default function we know.
_sQuotedFunction | the quoted function name |
Out_rDataField | the data field which is used in the function |
_xFunctionsSupplier | the function supplier to search or empty if not used |
_bSet | If set to sal_True than the m_sDefaultFunction and m_sScope vars will be set if successful. |
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().
|
private |
fills the member m_aDefaultFunctions
Definition at line 1882 of file GeometryHandler.cxx.
References m_aCounterFunction, m_aDefaultFunctions, rptui::DefaultFunction::m_bPreEvaluated, rptui::DefaultFunction::m_sFormula, rptui::DefaultFunction::m_sInitialFormula, rptui::DefaultFunction::m_sName, rptui::DefaultFunction::m_sSearchString, and RptResId().
|
overridevirtual |
Definition at line 1375 of file GeometryHandler.cxx.
References impl_dialogFilter_nothrow(), cppu::BaseMutex::m_aMutex, m_aPropertyListeners, m_xContext, m_xFormComponentHandler, m_xReportComponent, m_xRowSet, comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach(), rptui::openAreaDialog(), rptui::openCharDialog(), rptui::openDialogFormula_nothrow(), PROPERTY_AREA, PROPERTY_CONDITIONALPRINTEXPRESSION, PROPERTY_DATAFIELD, PROPERTY_FILLCOLOR, PROPERTY_FILTER, PROPERTY_FONT, PROPERTY_FORMULA, PROPERTY_INITIALFORMULA, and sFormula.
|
privatedelete |
|
overrideprivatevirtual |
Definition at line 2173 of file GeometryHandler.cxx.
References COUNTER, FUNCTION, impl_getDataFieldType_throw(), impl_isCounterFunction_throw(), isDefaultFunction(), cppu::BaseMutex::m_aMutex, m_bIn, m_nDataFieldType, m_sDefaultFunction, m_sScope, m_xReportComponent, PROPERTY_DATAFIELD, resetOwnProperties(), and UNDEF_DATA.
|
overridevirtual |
Definition at line 260 of file GeometryHandler.cxx.
References m_xFormComponentHandler.
|
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().
|
overridevirtual |
Definition at line 1249 of file GeometryHandler.cxx.
References cppu::BaseMutex::m_aMutex, m_aPropertyListeners, m_xFormComponentHandler, and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
|
private |
clear the own properties like function and scope and send a notification
_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().
|
overridevirtual |
Definition at line 408 of file GeometryHandler.cxx.
References aEvent, rptui::applyCharacterSettings(), checkPosAndSize(), COUNTER, createDefaultFunction(), fillScope_throw(), FUNCTION, rptui::OPropertyInfoService::getPropertyId(), impl_convertToFormula(), impl_ConvertUIToMimeType_nothrow(), impl_getDataFieldType_throw(), impl_isCounterFunction_throw(), impl_isDefaultFunction_nothrow(), impl_setCounterFunction_throw(), isDefaultFunction(), m_aFunctionNames, cppu::BaseMutex::m_aMutex, m_aPropertyListeners, m_bIn, m_bNewFunction, m_nDataFieldType, m_sDefaultFunction, m_sScope, m_xFunction, m_xReportComponent, nId, comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach(), PROPERTY_DATAFIELD, PROPERTY_ID_DATAFIELD, PROPERTY_ID_FONT, PROPERTY_ID_FORMULA, PROPERTY_ID_FORMULALIST, PROPERTY_ID_HEIGHT, PROPERTY_ID_INITIALFORMULA, PROPERTY_ID_MIMETYPE, PROPERTY_ID_POSITIONX, PROPERTY_ID_POSITIONY, PROPERTY_ID_SCOPE, PROPERTY_ID_TYPE, PROPERTY_ID_WIDTH, PROPERTY_SCOPE, removeFunction(), resetOwnProperties(), UNDEF_DATA, USER_DEF_FUNCTION, and Value.
|
overridevirtual |
Definition at line 225 of file GeometryHandler.cxx.
References ServiceName, and cppu::supportsService().
Definition at line 1539 of file GeometryHandler.cxx.
References m_xFormComponentHandler.
|
private |
Definition at line 287 of file GeometryHandler.hxx.
Referenced by impl_isCounterFunction_throw(), impl_setCounterFunction_throw(), and loadDefaultFunctions().
|
private |
Definition at line 286 of file GeometryHandler.hxx.
Referenced by createDefaultFunction(), impl_fillFormulaList_nothrow(), impl_isDefaultFunction_nothrow(), and loadDefaultFunctions().
|
private |
Definition at line 283 of file GeometryHandler.hxx.
Referenced by describePropertyLine(), impl_isDataField(), and inspect().
|
private |
Definition at line 285 of file GeometryHandler.hxx.
Referenced by createDefaultFunction(), describePropertyLine(), impl_createFunction(), impl_fillFormulaList_nothrow(), impl_getDataFieldType_throw(), impl_isCounterFunction_throw(), impl_setCounterFunction_throw(), inspect(), isDefaultFunction(), removeFunction(), and setPropertyValue().
|
private |
Definition at line 284 of file GeometryHandler.hxx.
Referenced by describePropertyLine(), impl_isDataField(), and inspect().
|
private |
Definition at line 282 of file GeometryHandler.hxx.
Referenced by addPropertyChangeListener(), createDefaultFunction(), disposing(), onInteractivePropertySelection(), removePropertyChangeListener(), resetOwnProperties(), and setPropertyValue().
|
private |
Definition at line 299 of file GeometryHandler.hxx.
Referenced by createDefaultFunction(), impl_setCounterFunction_throw(), propertyChange(), and setPropertyValue().
|
mutableprivate |
Definition at line 298 of file GeometryHandler.hxx.
Referenced by impl_createFunction(), inspect(), removeFunction(), and setPropertyValue().
|
private |
Definition at line 297 of file GeometryHandler.hxx.
Referenced by actuatingPropertyChanged(), convertToControlValue(), describePropertyLine(), getPropertyValue(), impl_fillFormulaList_nothrow(), inspect(), propertyChange(), resetOwnProperties(), and setPropertyValue().
|
mutableprivate |
Definition at line 295 of file GeometryHandler.hxx.
Referenced by actuatingPropertyChanged(), convertToControlValue(), getPropertyValue(), inspect(), isDefaultFunction(), propertyChange(), resetOwnProperties(), and setPropertyValue().
|
mutableprivate |
Definition at line 296 of file GeometryHandler.hxx.
Referenced by actuatingPropertyChanged(), convertToControlValue(), createDefaultFunction(), fillScope_throw(), getPropertyValue(), inspect(), isDefaultFunction(), propertyChange(), resetOwnProperties(), and setPropertyValue().
|
private |
Definition at line 288 of file GeometryHandler.hxx.
Referenced by convertToControlValue(), convertToPropertyValue(), getConstantValue(), impl_ConvertMimeTypeToUI_nothrow(), impl_createFunction(), impl_dialogFilter_nothrow(), impl_initFieldList_nothrow(), and onInteractivePropertySelection().
|
private |
Definition at line 290 of file GeometryHandler.hxx.
Referenced by actuatingPropertyChanged(), addEventListener(), addPropertyChangeListener(), convertToControlValue(), convertToPropertyValue(), describePropertyLine(), disposing(), getActuatingProperties(), getPropertyState(), getSupportedProperties(), inspect(), isComposable(), onInteractivePropertySelection(), removeEventListener(), removePropertyChangeListener(), and suspend().
|
mutableprivate |
Definition at line 289 of file GeometryHandler.hxx.
Referenced by convertToPropertyValue(), createDefaultFunction(), impl_createFunction(), inspect(), isDefaultFunction(), removeFunction(), and setPropertyValue().
|
private |
delegatee
Definition at line 291 of file GeometryHandler.hxx.
Referenced by actuatingPropertyChanged(), checkPosAndSize(), convertToControlValue(), convertToPropertyValue(), createDefaultFunction(), describePropertyLine(), disposing(), fillScope_throw(), getPropertyValue(), getSupersededProperties(), getSupportedProperties(), impl_ConvertUIToMimeType_nothrow(), impl_dialogFilter_nothrow(), impl_fillMimeTypes_nothrow(), impl_fillScopeList_nothrow(), impl_getDataFieldType_throw(), impl_setCounterFunction_throw(), inspect(), isDefaultFunction(), onInteractivePropertySelection(), propertyChange(), and setPropertyValue().
|
mutableprivate |
inspectee
Definition at line 292 of file GeometryHandler.hxx.
Referenced by disposing(), impl_dialogFilter_nothrow(), impl_initFieldList_nothrow(), inspect(), and onInteractivePropertySelection().
|
private |
type converter, needed on various occasions
Definition at line 294 of file GeometryHandler.hxx.
Referenced by convertToControlValue(), convertToPropertyValue(), disposing(), and getConstantValue().