LibreOffice Module extensions (master) 1
|
#include <eformspropertyhandler.hxx>
Public Member Functions | |
EFormsPropertyHandler (const css::uno::Reference< css::uno::XComponentContext > &_rxContext) | |
Public Member Functions inherited from cppu::ImplHelper1< class Ifc1 > | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
Protected Member Functions | |
virtual | ~EFormsPropertyHandler () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &_rPropertyName) override |
virtual void SAL_CALL | setPropertyValue (const OUString &_rPropertyName, const css::uno::Any &_rValue) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getActuatingProperties () override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupersededProperties () override |
virtual css::inspection::LineDescriptor SAL_CALL | describePropertyLine (const OUString &_rPropertyName, const css::uno::Reference< css::inspection::XPropertyControlFactory > &_rxControlFactory) override |
virtual css::inspection::InteractiveSelectionResult SAL_CALL | onInteractivePropertySelection (const OUString &_rPropertyName, sal_Bool _bPrimary, css::uno::Any &_rData, const css::uno::Reference< css::inspection::XObjectInspectorUI > &_rxInspectorUI) override |
virtual void SAL_CALL | actuatingPropertyChanged (const OUString &_rActuatingPropertyName, const css::uno::Any &_rNewValue, const css::uno::Any &_rOldValue, const css::uno::Reference< css::inspection::XObjectInspectorUI > &_rxInspectorUI, sal_Bool) override |
virtual css::uno::Any SAL_CALL | convertToPropertyValue (const OUString &_rPropertyName, const css::uno::Any &_rControlValue) override |
virtual css::uno::Any SAL_CALL | convertToControlValue (const OUString &_rPropertyName, const css::uno::Any &_rPropertyValue, const css::uno::Type &_rControlValueType) override |
virtual void SAL_CALL | addPropertyChangeListener (const css::uno::Reference< css::beans::XPropertyChangeListener > &_rxListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const css::uno::Reference< css::beans::XPropertyChangeListener > &_rxListener) override |
virtual css::uno::Sequence< css::beans::Property > | doDescribeSupportedProperties () const override |
virtual void | onNewComponent () override |
called when XPropertyHandler::inspect has been called, and we thus have a new component to inspect More... | |
OUString | getModelNamePropertyValue () const |
returns the value of the PROPERTY_XML_DATA_MODEL property. More... | |
Protected Member Functions inherited from pcr::PropertyHandlerComponent | |
PropertyHandlerComponent (const css::uno::Reference< css::uno::XComponentContext > &_rxContext) | |
virtual OUString SAL_CALL | getImplementationName () override=0 |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) final override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override=0 |
Protected Member Functions inherited from pcr::PropertyHandler | |
PropertyHandler (const css::uno::Reference< css::uno::XComponentContext > &_rxContext) | |
virtual | ~PropertyHandler () override |
virtual void SAL_CALL | inspect (const css::uno::Reference< css::uno::XInterface > &_rxIntrospectee) 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 css::uno::Any SAL_CALL | convertToPropertyValue (const OUString &_rPropertyName, const css::uno::Any &_rControlValue) override |
virtual css::uno::Any SAL_CALL | convertToControlValue (const OUString &_rPropertyName, const css::uno::Any &_rPropertyValue, const css::uno::Type &_rControlValueType) override |
virtual css::beans::PropertyState SAL_CALL | getPropertyState (const OUString &_rPropertyName) override |
virtual css::inspection::LineDescriptor SAL_CALL | describePropertyLine (const OUString &_rPropertyName, const css::uno::Reference< css::inspection::XPropertyControlFactory > &_rxControlFactory) override |
virtual sal_Bool SAL_CALL | isComposable (const OUString &_rPropertyName) override |
virtual css::inspection::InteractiveSelectionResult SAL_CALL | onInteractivePropertySelection (const OUString &_rPropertyName, sal_Bool _bPrimary, css::uno::Any &_rData, const css::uno::Reference< css::inspection::XObjectInspectorUI > &_rxInspectorUI) override |
virtual void SAL_CALL | actuatingPropertyChanged (const OUString &_rActuatingPropertyName, const css::uno::Any &_rNewValue, const css::uno::Any &_rOldValue, const css::uno::Reference< css::inspection::XObjectInspectorUI > &_rxInspectorUI, sal_Bool _bFirstTimeInit) override |
virtual void SAL_CALL | addPropertyChangeListener (const css::uno::Reference< css::beans::XPropertyChangeListener > &_rxListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const css::uno::Reference< css::beans::XPropertyChangeListener > &_rxListener) override |
virtual sal_Bool SAL_CALL | suspend (sal_Bool _bSuspend) override |
virtual void SAL_CALL | disposing () override |
virtual css::uno::Sequence< css::beans::Property > | doDescribeSupportedProperties () const =0 |
virtual void | onNewComponent () |
called when XPropertyHandler::inspect has been called, and we thus have a new component to inspect More... | |
void | firePropertyChange (const OUString &_rPropName, PropertyId _nPropId, const css::uno::Any &_rOldValue, const css::uno::Any &_rNewValue) |
fires the change in a property value to our listener (if any) More... | |
weld::Window * | impl_getDefaultDialogFrame_nothrow () const |
retrieves a window which can be used as parent for dialogs More... | |
PropertyId | impl_getPropertyId_throwUnknownProperty (const OUString &_rPropertyName) const |
retrieves the property id for a given property name More... | |
PropertyId | impl_getPropertyId_throwRuntime (const OUString &_rPropertyName) const |
retrieves the property id for a given property name More... | |
PropertyId | impl_getPropertyId_nothrow (const OUString &_rPropertyName) const |
retrieves the property id for a given property name More... | |
void | addStringPropertyDescription (std::vector< css::beans::Property > &_rProperties, const OUString &_rPropertyName) const |
adds a description for the given string property to the given property vector Most probably to be called from within getSupportedProperties More... | |
void | addInt32PropertyDescription (std::vector< css::beans::Property > &_rProperties, const OUString &_rPropertyName, sal_Int16 _nAttribs=0) const |
adds a description for the given int32 property to the given property vector More... | |
void | addInt16PropertyDescription (std::vector< css::beans::Property > &_rProperties, const OUString &_rPropertyName, sal_Int16 _nAttribs=0) const |
adds a description for the given int16 property to the given property vector More... | |
void | addDoublePropertyDescription (std::vector< css::beans::Property > &_rProperties, const OUString &_rPropertyName, sal_Int16 _nAttribs) const |
adds a description for the given double property to the given property vector More... | |
void | addDatePropertyDescription (std::vector< css::beans::Property > &_rProperties, const OUString &_rPropertyName, sal_Int16 _nAttribs) const |
adds a description for the given date property to the given property vector More... | |
void | addTimePropertyDescription (std::vector< css::beans::Property > &_rProperties, const OUString &_rPropertyName, sal_Int16 _nAttribs) const |
adds a description for the given time property to the given property vector More... | |
void | addDateTimePropertyDescription (std::vector< css::beans::Property > &_rProperties, const OUString &_rPropertyName, sal_Int16 _nAttribs) const |
adds a description for the given DateTime property to the given property vector More... | |
void | implAddPropertyDescription (std::vector< css::beans::Property > &_rProperties, const OUString &_rPropertyName, const css::uno::Type &_rType, sal_Int16 _nAttribs=0) const |
adds a Property, given by name only, to a given vector of Properties More... | |
const css::beans::Property * | impl_getPropertyFromId_nothrow (PropertyId _nPropId) const |
retrieves a property given by handle More... | |
const css::beans::Property & | impl_getPropertyFromId_throw (PropertyId _nPropId) const |
retrieves a property given by handle More... | |
bool | impl_isSupportedProperty_nothrow (PropertyId _nPropId) const |
determines whether a given property id is part of our supported properties More... | |
const css::beans::Property & | impl_getPropertyFromName_throw (const OUString &_rPropertyName) const |
retrieves a property given by name More... | |
OUString | impl_getPropertyNameFromId_nothrow (PropertyId _nPropId) const |
get the name of a property given by handle More... | |
css::uno::Reference< css::frame::XModel > | impl_getContextDocument_nothrow () const |
returns the value of the ContextDocument property in the ComponentContext which was used to create this handler. More... | |
void | impl_setContextDocumentModified_nothrow () const |
marks the context document as modified More... | |
bool | impl_componentHasProperty_throw (const OUString &_rPropName) const |
determines whether our component has a given property More... | |
sal_Int16 | impl_getDocumentMeasurementUnit_throw () const |
determines the default measure unit for the document in which our component lives More... | |
Protected Member Functions inherited from cppu::ImplHelper1< class Ifc1 > | |
~ImplHelper1 () SAL_NOEXCEPT | |
Private Attributes | |
std::unique_ptr< EFormsHelper > | m_pHelper |
OUString | m_sBindingLessModelName |
current value of the Model property, if there is no binding, yet More... | |
bool | m_bSimulatingModelChange |
are we currently simulating a propertyChange event of the Model property? More... | |
Additional Inherited Members | |
Protected Attributes inherited from pcr::PropertyHandler | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
the context in which the instance was created More... | |
css::uno::Reference< css::beans::XPropertySet > | m_xComponent |
the component we're inspecting More... | |
css::uno::Reference< css::beans::XPropertySetInfo > | m_xComponentPropertyInfo |
info about our component's properties More... | |
css::uno::Reference< css::script::XTypeConverter > | m_xTypeConverter |
type converter, needed on various occasions More... | |
std::unique_ptr< OPropertyInfoService > | m_pInfoService |
access to property meta data More... | |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Definition at line 36 of file eformspropertyhandler.hxx.
|
explicit |
Definition at line 54 of file eformspropertyhandler.cxx.
|
overrideprotectedvirtual |
Definition at line 61 of file eformspropertyhandler.cxx.
|
overrideprotectedvirtual |
Reimplemented from pcr::PropertyHandler.
Definition at line 541 of file eformspropertyhandler.cxx.
References DBG_ASSERT, pcr::PropertyHandler::impl_getPropertyId_throwRuntime(), cppu::BaseMutex::m_aMutex, m_bSimulatingModelChange, m_pHelper, PROPERTY_BIND_EXPRESSION, PROPERTY_BINDING_NAME, PROPERTY_ID_BINDING_NAME, PROPERTY_ID_XML_DATA_MODEL, PROPERTY_XSD_CALCULATION, PROPERTY_XSD_CONSTRAINT, PROPERTY_XSD_DATA_TYPE, PROPERTY_XSD_READONLY, PROPERTY_XSD_RELEVANT, and PROPERTY_XSD_REQUIRED.
|
overrideprotectedvirtual |
Reimplemented from pcr::PropertyHandler.
Definition at line 523 of file eformspropertyhandler.cxx.
References pcr::PropertyHandler::addPropertyChangeListener(), cppu::BaseMutex::m_aMutex, and m_pHelper.
|
overrideprotectedvirtual |
Reimplemented from pcr::PropertyHandler.
Definition at line 342 of file eformspropertyhandler.cxx.
References Any, pcr::EFormsHelper::Binding, pcr::PropertyHandler::convertToControlValue(), pcr::EFormsHelper::getModelElementUIName(), cppu::BaseMutex::m_aMutex, m_pHelper, pcr::PropertyHandler::m_pInfoService, and PROPERTY_ID_LIST_BINDING.
|
overrideprotectedvirtual |
Reimplemented from pcr::PropertyHandler.
Definition at line 307 of file eformspropertyhandler.cxx.
References Any, pcr::EFormsHelper::Binding, pcr::PropertyHandler::convertToPropertyValue(), cppu::BaseMutex::m_aMutex, m_pHelper, pcr::PropertyHandler::m_pInfoService, and PROPERTY_ID_LIST_BINDING.
|
overrideprotectedvirtual |
Reimplemented from pcr::PropertyHandler.
Definition at line 399 of file eformspropertyhandler.cxx.
References pcr::EFormsHelper::Binding, pcr::PropertyHandlerHelper::createComboBoxControl(), pcr::PropertyHandlerHelper::createListBoxControl(), pcr::HelpIdUrl::getHelpURL(), getModelNamePropertyValue(), pcr::PropertyHandler::impl_getPropertyId_throwUnknownProperty(), cppu::BaseMutex::m_aMutex, m_pHelper, pcr::PropertyHandler::m_pInfoService, PROPERTY_ID_BIND_EXPRESSION, PROPERTY_ID_BINDING_NAME, PROPERTY_ID_LIST_BINDING, PROPERTY_ID_XML_DATA_MODEL, PROPERTY_ID_XSD_CALCULATION, PROPERTY_ID_XSD_CONSTRAINT, PROPERTY_ID_XSD_READONLY, PROPERTY_ID_XSD_RELEVANT, PROPERTY_ID_XSD_REQUIRED, UID_PROP_DLG_BIND_EXPRESSION, UID_PROP_DLG_XSD_CALCULATION, UID_PROP_DLG_XSD_CONSTRAINT, UID_PROP_DLG_XSD_READONLY, UID_PROP_DLG_XSD_RELEVANT, and UID_PROP_DLG_XSD_REQUIRED.
|
overrideprotectedvirtual |
Implements pcr::PropertyHandler.
Definition at line 276 of file eformspropertyhandler.cxx.
References pcr::PropertyHandler::addStringPropertyDescription(), aProperties, comphelper::containerToSequence(), pcr::PropertyHandler::implAddPropertyDescription(), m_pHelper, PROPERTY_BIND_EXPRESSION, PROPERTY_BINDING_NAME, PROPERTY_LIST_BINDING, PROPERTY_XML_DATA_MODEL, PROPERTY_XSD_CALCULATION, PROPERTY_XSD_CONSTRAINT, PROPERTY_XSD_READONLY, PROPERTY_XSD_RELEVANT, and PROPERTY_XSD_REQUIRED.
|
overrideprotectedvirtual |
Reimplemented from pcr::PropertyHandler.
Definition at line 376 of file eformspropertyhandler.cxx.
References comphelper::containerToSequence(), cppu::BaseMutex::m_aMutex, m_pHelper, PROPERTY_BINDING_NAME, and PROPERTY_XML_DATA_MODEL.
|
overrideprotectedvirtual |
Implements pcr::PropertyHandlerComponent.
Definition at line 66 of file eformspropertyhandler.cxx.
|
protected |
returns the value of the PROPERTY_XML_DATA_MODEL property.
An extra method is necessary here, which respects both the value set at our helper, and <member>m_sBindingLessModelName</member>
Definition at line 78 of file eformspropertyhandler.cxx.
References m_pHelper, and m_sBindingLessModelName.
Referenced by describePropertyLine(), getPropertyValue(), and setPropertyValue().
|
overrideprotectedvirtual |
Definition at line 87 of file eformspropertyhandler.cxx.
References Any, DBG_ASSERT, Exception, getModelNamePropertyValue(), pcr::PropertyHandler::impl_getPropertyId_throwUnknownProperty(), cppu::BaseMutex::m_aMutex, m_pHelper, PROPERTY_ID_BIND_EXPRESSION, PROPERTY_ID_BINDING_NAME, PROPERTY_ID_LIST_BINDING, PROPERTY_ID_XML_DATA_MODEL, PROPERTY_ID_XSD_CALCULATION, PROPERTY_ID_XSD_CONSTRAINT, PROPERTY_ID_XSD_READONLY, PROPERTY_ID_XSD_RELEVANT, PROPERTY_ID_XSD_REQUIRED, and TOOLS_WARN_EXCEPTION.
Referenced by setPropertyValue().
|
overrideprotectedvirtual |
Reimplemented from pcr::PropertyHandler.
Definition at line 389 of file eformspropertyhandler.cxx.
References cppu::BaseMutex::m_aMutex, m_pHelper, and PROPERTY_INPUT_REQUIRED.
|
overrideprotectedvirtual |
Implements pcr::PropertyHandlerComponent.
Definition at line 72 of file eformspropertyhandler.cxx.
|
overrideprotectedvirtual |
Reimplemented from pcr::PropertyHandler.
Definition at line 464 of file eformspropertyhandler.cxx.
References Any, Exception, pcr::PropertyHandler::impl_getPropertyId_throwUnknownProperty(), cppu::BaseMutex::m_aMutex, m_pHelper, pcr::PropertyHandler::m_xContext, PROPERTY_ID_BIND_EXPRESSION, PROPERTY_ID_BINDING_NAME, PROPERTY_ID_XSD_CALCULATION, PROPERTY_ID_XSD_CONSTRAINT, PROPERTY_ID_XSD_READONLY, PROPERTY_ID_XSD_RELEVANT, PROPERTY_ID_XSD_REQUIRED, TOOLS_WARN_EXCEPTION, and xModel.
|
overrideprotectedvirtual |
called when XPropertyHandler::inspect has been called, and we thus have a new component to inspect
Reimplemented from pcr::PropertyHandler.
Definition at line 263 of file eformspropertyhandler.cxx.
References DBG_ASSERT, pcr::PropertyHandler::impl_getContextDocument_nothrow(), pcr::EFormsHelper::isEForm(), cppu::BaseMutex::m_aMutex, m_pHelper, pcr::PropertyHandler::m_xComponent, and pcr::PropertyHandler::onNewComponent().
|
overrideprotectedvirtual |
Reimplemented from pcr::PropertyHandler.
Definition at line 532 of file eformspropertyhandler.cxx.
References cppu::BaseMutex::m_aMutex, m_pHelper, and pcr::PropertyHandler::removePropertyChangeListener().
|
overrideprotectedvirtual |
Definition at line 147 of file eformspropertyhandler.cxx.
References Any, DBG_ASSERT, Exception, pcr::PropertyHandler::firePropertyChange(), getModelNamePropertyValue(), getPropertyValue(), pcr::PropertyHandler::impl_getPropertyId_throwUnknownProperty(), pcr::PropertyHandler::impl_setContextDocumentModified_nothrow(), cppu::BaseMutex::m_aMutex, m_bSimulatingModelChange, m_pHelper, m_sBindingLessModelName, PROPERTY_BIND_EXPRESSION, PROPERTY_BINDING_NAME, PROPERTY_ID_BIND_EXPRESSION, PROPERTY_ID_BINDING_NAME, PROPERTY_ID_LIST_BINDING, PROPERTY_ID_XML_DATA_MODEL, PROPERTY_ID_XSD_CALCULATION, PROPERTY_ID_XSD_CONSTRAINT, PROPERTY_ID_XSD_READONLY, PROPERTY_ID_XSD_RELEVANT, PROPERTY_ID_XSD_REQUIRED, PROPERTY_XML_DATA_MODEL, and TOOLS_WARN_EXCEPTION.
|
private |
are we currently simulating a propertyChange event of the Model property?
Definition at line 45 of file eformspropertyhandler.hxx.
Referenced by actuatingPropertyChanged(), and setPropertyValue().
|
private |
Definition at line 39 of file eformspropertyhandler.hxx.
Referenced by actuatingPropertyChanged(), addPropertyChangeListener(), convertToControlValue(), convertToPropertyValue(), describePropertyLine(), doDescribeSupportedProperties(), getActuatingProperties(), getModelNamePropertyValue(), getPropertyValue(), getSupersededProperties(), onInteractivePropertySelection(), onNewComponent(), removePropertyChangeListener(), and setPropertyValue().
|
private |
current value of the Model property, if there is no binding, yet
Definition at line 42 of file eformspropertyhandler.hxx.
Referenced by getModelNamePropertyValue(), and setPropertyValue().