LibreOffice Module toolkit (master) 1
|
#include <controlmodelcontainerbase.hxx>
Public Types | |
enum | ChildOperation { Insert = 0 , Remove } |
typedef ::std::pair< css::uno::Reference< css::awt::XControlModel >, OUString > | UnoControlModelHolder |
typedef ::std::vector< css::uno::Reference< css::awt::XControlModel > > | ModelGroup |
typedef ::std::vector< ModelGroup > | AllGroups |
Public Member Functions | |
ControlModelContainerBase (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
ControlModelContainerBase (const ControlModelContainerBase &rModel) | |
virtual | ~ControlModelContainerBase () override |
rtl::Reference< UnoControlModel > | Clone () const override |
void SAL_CALL | addContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override |
void SAL_CALL | removeContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override |
css::uno::Type SAL_CALL | getElementType () override |
sal_Bool SAL_CALL | hasElements () override |
void SAL_CALL | replaceByName (const OUString &aName, const css::uno::Any &aElement) override |
css::uno::Any SAL_CALL | getByName (const OUString &aName) override |
css::uno::Sequence< OUString > SAL_CALL | getElementNames () override |
sal_Bool SAL_CALL | hasByName (const OUString &aName) override |
void SAL_CALL | insertByName (const OUString &aName, const css::uno::Any &aElement) override |
void SAL_CALL | removeByName (const OUString &Name) override |
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
css::uno::Reference< css::uno::XInterface > SAL_CALL | createInstance (const OUString &aServiceSpecifier) override |
css::uno::Reference< css::uno::XInterface > SAL_CALL | createInstanceWithArguments (const OUString &ServiceSpecifier, const css::uno::Sequence< css::uno::Any > &Arguments) override |
css::uno::Sequence< OUString > SAL_CALL | getAvailableServiceNames () override |
void SAL_CALL | dispose () override |
virtual sal_Bool SAL_CALL | getGroupControl () override |
virtual void SAL_CALL | setGroupControl (sal_Bool GroupControl) override |
virtual void SAL_CALL | setControlModels (const css::uno::Sequence< css::uno::Reference< css::awt::XControlModel > > &Controls) override |
virtual css::uno::Sequence< css::uno::Reference< css::awt::XControlModel > > SAL_CALL | getControlModels () override |
virtual void SAL_CALL | setGroup (const css::uno::Sequence< css::uno::Reference< css::awt::XControlModel > > &Group, const OUString &GroupName) override |
virtual sal_Int32 SAL_CALL | getGroupCount () override |
virtual void SAL_CALL | getGroup (sal_Int32 nGroup, css::uno::Sequence< css::uno::Reference< css::awt::XControlModel > > &Group, OUString &Name) override |
virtual void SAL_CALL | getGroupByName (const OUString &Name, css::uno::Sequence< css::uno::Reference< css::awt::XControlModel > > &Group) override |
virtual void SAL_CALL | addChangesListener (const css::uno::Reference< css::util::XChangesListener > &aListener) override |
virtual void SAL_CALL | removeChangesListener (const css::uno::Reference< css::util::XChangesListener > &aListener) override |
virtual void SAL_CALL | propertyChange (const css::beans::PropertyChangeEvent &evt) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &evt) override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &rArguments) override |
virtual ::sal_Int16 SAL_CALL | getTabPageID () override |
virtual sal_Bool SAL_CALL | getEnabled () override |
virtual void SAL_CALL | setEnabled (sal_Bool _enabled) override |
virtual OUString SAL_CALL | getTitle () override |
virtual void SAL_CALL | setTitle (const OUString &_title) override |
virtual OUString SAL_CALL | getImageURL () override |
virtual void SAL_CALL | setImageURL (const OUString &_imageurl) override |
virtual OUString SAL_CALL | getToolTip () override |
virtual void SAL_CALL | setToolTip (const OUString &_tooltip) override |
Public Member Functions inherited from cppu::AggImplInheritanceHelper8< class BaseClass, class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8 > | |
AggImplInheritanceHelper8 () | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT 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 | |
void | Clone_Impl (ControlModelContainerBase &_rClone) const |
css::uno::Any | ImplGetDefaultValue (sal_uInt16 nPropId) const override |
::cppu::IPropertyArrayHelper & | getInfoHelper () override |
UnoControlModelHolderVector::iterator | ImplFindElement (std::u16string_view rName) |
void | updateUserFormChildren (const css::uno::Reference< css::container::XNameContainer > &xAllChildren, const OUString &aName, ChildOperation Operation, const css::uno::Reference< css::awt::XControlModel > &xTarget) |
void | startControlListening (const css::uno::Reference< css::awt::XControlModel > &_rxChildModel) |
void | stopControlListening (const css::uno::Reference< css::awt::XControlModel > &_rxChildModel) |
void | implNotifyTabModelChange (const OUString &_rAccessor) |
void | implUpdateGroupStructure () |
Protected Member Functions inherited from cppu::AggImplInheritanceHelper8< class BaseClass, class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8 > | |
AggImplInheritanceHelper8 (T1 const &arg1) | |
AggImplInheritanceHelper8 (T1 const &arg1, T2 const &arg2) | |
AggImplInheritanceHelper8 (T1 const &arg1, T2 const &arg2, T3 const &arg3) | |
AggImplInheritanceHelper8 (T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4) | |
AggImplInheritanceHelper8 (T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5) | |
AggImplInheritanceHelper8 (T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6) | |
Protected Attributes | |
ContainerListenerMultiplexer | maContainerListeners |
::comphelper::OInterfaceContainerHelper4< css::util::XChangesListener > | maChangeListeners |
UnoControlModelHolderVector | maModels |
AllGroups | maGroups |
bool | mbGroupsUpToDate |
OUString | m_sImageURL |
OUString | m_sTooltip |
sal_Int16 | m_nTabPageId |
Private Types | |
typedef ::std::vector< UnoControlModelHolder > | UnoControlModelHolderVector |
Friends | |
struct | CloneControlModel |
struct | CompareControlModel |
Definition at line 59 of file controlmodelcontainerbase.hxx.
typedef ::std::vector< ModelGroup > ControlModelContainerBase::AllGroups |
Definition at line 74 of file controlmodelcontainerbase.hxx.
typedef ::std::vector< css::uno::Reference< css::awt::XControlModel > > ControlModelContainerBase::ModelGroup |
Definition at line 73 of file controlmodelcontainerbase.hxx.
typedef ::std::pair< css::uno::Reference< css::awt::XControlModel >, OUString > ControlModelContainerBase::UnoControlModelHolder |
Definition at line 66 of file controlmodelcontainerbase.hxx.
|
private |
Definition at line 68 of file controlmodelcontainerbase.hxx.
Enumerator | |
---|---|
Insert | |
Remove |
Definition at line 62 of file controlmodelcontainerbase.hxx.
ControlModelContainerBase::ControlModelContainerBase | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext | ) |
Referenced by Clone().
ControlModelContainerBase::ControlModelContainerBase | ( | const ControlModelContainerBase & | rModel | ) |
Definition at line 177 of file controlmodelcontainerbase.cxx.
|
overridevirtual |
Definition at line 185 of file controlmodelcontainerbase.cxx.
References maModels, and mbGroupsUpToDate.
|
overridevirtual |
Definition at line 847 of file controlmodelcontainerbase.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), m_aMutex, and maChangeListeners.
|
override |
Definition at line 408 of file controlmodelcontainerbase.cxx.
References maContainerListeners.
|
override |
Definition at line 264 of file controlmodelcontainerbase.cxx.
References Clone_Impl(), and ControlModelContainerBase().
|
protected |
Definition at line 256 of file controlmodelcontainerbase.cxx.
References maModels.
Referenced by Clone(), UnoMultiPageModel::Clone(), UnoPageModel::Clone(), and UnoFrameModel::Clone().
|
override |
Definition at line 279 of file controlmodelcontainerbase.cxx.
References m_xContext.
Referenced by createInstanceWithArguments().
|
override |
Definition at line 366 of file controlmodelcontainerbase.cxx.
References createInstance(), and ENSURE_OR_RETURN.
|
override |
Definition at line 213 of file controlmodelcontainerbase.cxx.
References UnoControlModel::dispose(), comphelper::OInterfaceContainerHelper4< class ListenerT >::disposeAndClear(), m_aMutex, maChangeListeners, maContainerListeners, maModels, and mbGroupsUpToDate.
|
overridevirtual |
Definition at line 1008 of file controlmodelcontainerbase.cxx.
|
override |
Definition at line 375 of file controlmodelcontainerbase.cxx.
|
override |
Definition at line 477 of file controlmodelcontainerbase.cxx.
References aName, Any, ImplFindElement(), lcl_throwNoSuchElementException(), and maModels.
|
overridevirtual |
Definition at line 660 of file controlmodelcontainerbase.cxx.
References DBG_ASSERT, getTabIndexPropertyName(), maModels, and xModel.
Referenced by implUpdateGroupStructure().
|
override |
Definition at line 486 of file controlmodelcontainerbase.cxx.
References maModels.
|
override |
Definition at line 419 of file controlmodelcontainerbase.cxx.
References cppu::UnoType< typename T >::get().
|
overridevirtual |
Definition at line 734 of file controlmodelcontainerbase.cxx.
References BASEPROPERTY_ENABLED, GetPropertyName(), and getPropertyValue().
|
overridevirtual |
Definition at line 814 of file controlmodelcontainerbase.cxx.
References implUpdateGroupStructure(), maGroups, o3tl::make_unsigned(), and SAL_WARN.
Referenced by getGroupByName().
|
overridevirtual |
Definition at line 838 of file controlmodelcontainerbase.cxx.
References getGroup().
|
overridevirtual |
Reimplemented in UnoMultiPageModel, and UnoPageModel.
Definition at line 613 of file controlmodelcontainerbase.cxx.
|
overridevirtual |
Definition at line 804 of file controlmodelcontainerbase.cxx.
References implUpdateGroupStructure(), and maGroups.
|
overridevirtual |
Definition at line 758 of file controlmodelcontainerbase.cxx.
References m_sImageURL.
|
overrideprotected |
Definition at line 207 of file controlmodelcontainerbase.cxx.
References aHelper.
Referenced by getPropertySetInfo().
|
override |
Definition at line 251 of file controlmodelcontainerbase.cxx.
References getInfoHelper().
|
override |
Definition at line 730 of file controlmodelcontainerbase.cxx.
References m_nTabPageId.
|
overridevirtual |
Definition at line 746 of file controlmodelcontainerbase.cxx.
References BASEPROPERTY_TITLE, GetPropertyName(), and getPropertyValue().
|
overridevirtual |
Definition at line 768 of file controlmodelcontainerbase.cxx.
References m_sTooltip.
|
override |
Definition at line 500 of file controlmodelcontainerbase.cxx.
References aName, ImplFindElement(), and maModels.
|
override |
Definition at line 425 of file controlmodelcontainerbase.cxx.
References maModels.
|
protected |
Definition at line 273 of file controlmodelcontainerbase.cxx.
References maModels.
Referenced by getByName(), hasByName(), insertByName(), removeByName(), and replaceByName().
|
overrideprotected |
Definition at line 191 of file controlmodelcontainerbase.cxx.
References Any, BASEPROPERTY_DEFAULTCONTROL, UnoControlModel::ImplGetDefaultValue(), and szServiceName_UnoControlDialog.
Referenced by UnoMultiPageModel::ImplGetDefaultValue(), UnoPageModel::ImplGetDefaultValue(), and UnoFrameModel::ImplGetDefaultValue().
|
protected |
Definition at line 861 of file controlmodelcontainerbase.cxx.
References aEvent, comphelper::OInterfaceContainerHelper4< class ListenerT >::getElements(), m_aMutex, and maChangeListeners.
Referenced by insertByName(), propertyChange(), removeByName(), and replaceByName().
|
protected |
Definition at line 880 of file controlmodelcontainerbase.cxx.
References getControlModels(), maGroups, and mbGroupsUpToDate.
Referenced by getGroup(), and getGroupCount().
|
overridevirtual |
Reimplemented in UnoControlTabPageModel.
Definition at line 718 of file controlmodelcontainerbase.cxx.
References m_nTabPageId, and nPageId.
|
override |
Definition at line 505 of file controlmodelcontainerbase.cxx.
References aEvent, aName, Any, BASEPROPERTY_DIALOGSOURCEURL, BASEPROPERTY_IMAGEURL, BASEPROPERTY_USERFORMCONTAINEES, getPhysicalLocation(), GetPropertyName(), getPropertyValue(), ImplFindElement(), implNotifyTabModelChange(), Insert, lcl_throwElementExistException(), lcl_throwIllegalArgumentException(), maContainerListeners, maModels, mbGroupsUpToDate, startControlListening(), and updateUserFormChildren().
Referenced by UnoControlTabPageModel::initialize(), and UnoMultiPageModel::insertByName().
|
overridevirtual |
Definition at line 982 of file controlmodelcontainerbase.cxx.
References DBG_ASSERT, implNotifyTabModelChange(), maModels, and mbGroupsUpToDate.
|
override |
Definition at line 568 of file controlmodelcontainerbase.cxx.
References aEvent, aName, Any, BASEPROPERTY_USERFORMCONTAINEES, DBG_UNHANDLED_EXCEPTION, Exception, GetPropertyName(), getPropertyValue(), ImplFindElement(), implNotifyTabModelChange(), lcl_throwNoSuchElementException(), maContainerListeners, maModels, mbGroupsUpToDate, PROPERTY_RESOURCERESOLVER, Remove, stopControlListening(), and updateUserFormChildren().
|
overridevirtual |
Definition at line 854 of file controlmodelcontainerbase.cxx.
References m_aMutex, maChangeListeners, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
override |
Definition at line 413 of file controlmodelcontainerbase.cxx.
References maContainerListeners.
|
override |
Definition at line 431 of file controlmodelcontainerbase.cxx.
References aEvent, aName, BASEPROPERTY_USERFORMCONTAINEES, GetPropertyName(), getPropertyValue(), ImplFindElement(), implNotifyTabModelChange(), Insert, lcl_throwIllegalArgumentException(), lcl_throwNoSuchElementException(), maContainerListeners, maModels, Remove, startControlListening(), stopControlListening(), and updateUserFormChildren().
|
overridevirtual |
Definition at line 625 of file controlmodelcontainerbase.cxx.
References Any, getTabIndexPropertyName(), maModels, and mbGroupsUpToDate.
|
overridevirtual |
Definition at line 741 of file controlmodelcontainerbase.cxx.
References Any, BASEPROPERTY_ENABLED, GetPropertyName(), and setPropertyValue().
|
overridevirtual |
Definition at line 708 of file controlmodelcontainerbase.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 619 of file controlmodelcontainerbase.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 762 of file controlmodelcontainerbase.cxx.
References Any, BASEPROPERTY_IMAGEURL, GetPropertyName(), m_sImageURL, and setPropertyValue().
|
overridevirtual |
Definition at line 753 of file controlmodelcontainerbase.cxx.
References Any, BASEPROPERTY_TITLE, GetPropertyName(), and setPropertyValue().
|
overridevirtual |
Definition at line 772 of file controlmodelcontainerbase.cxx.
References m_sTooltip.
|
protected |
Definition at line 1013 of file controlmodelcontainerbase.cxx.
References getTabIndexPropertyName().
Referenced by insertByName(), and replaceByName().
|
protected |
Definition at line 1027 of file controlmodelcontainerbase.cxx.
References getTabIndexPropertyName().
Referenced by removeByName(), and replaceByName().
|
protected |
css::lang::IllegalArgumentException | |
css::container::ElementExistException | |
css::lang::WrappedTargetException | |
css::uno::RuntimeException |
Definition at line 1772 of file controlmodelcontainerbase.cxx.
References aName, BASEPROPERTY_USERFORMCONTAINEES, GetPropertyName(), Insert, Remove, updateUserFormChildren(), and xTarget.
Referenced by insertByName(), removeByName(), replaceByName(), and updateUserFormChildren().
|
friend |
Definition at line 76 of file controlmodelcontainerbase.hxx.
|
friend |
Definition at line 77 of file controlmodelcontainerbase.hxx.
|
protected |
Definition at line 89 of file controlmodelcontainerbase.hxx.
Referenced by getTabPageID(), initialize(), and UnoControlTabPageModel::initialize().
|
protected |
Definition at line 87 of file controlmodelcontainerbase.hxx.
Referenced by getImageURL(), and setImageURL().
|
protected |
Definition at line 88 of file controlmodelcontainerbase.hxx.
Referenced by getToolTip(), and setToolTip().
|
protected |
Definition at line 81 of file controlmodelcontainerbase.hxx.
Referenced by addChangesListener(), dispose(), implNotifyTabModelChange(), and removeChangesListener().
|
protected |
Definition at line 80 of file controlmodelcontainerbase.hxx.
Referenced by addContainerListener(), dispose(), insertByName(), removeByName(), removeContainerListener(), and replaceByName().
|
protected |
Definition at line 84 of file controlmodelcontainerbase.hxx.
Referenced by getGroup(), getGroupCount(), and implUpdateGroupStructure().
|
protected |
Definition at line 82 of file controlmodelcontainerbase.hxx.
Referenced by Clone_Impl(), dispose(), getByName(), getControlModels(), getElementNames(), hasByName(), hasElements(), ImplFindElement(), insertByName(), propertyChange(), removeByName(), replaceByName(), setControlModels(), and ~ControlModelContainerBase().
|
protected |
Definition at line 85 of file controlmodelcontainerbase.hxx.
Referenced by dispose(), implUpdateGroupStructure(), insertByName(), propertyChange(), removeByName(), setControlModels(), and ~ControlModelContainerBase().