LibreOffice Module toolkit (master) 1
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
toolkit::UnoControlRoadmapModel Class Referencefinal

#include <roadmapcontrol.hxx>

Inheritance diagram for toolkit::UnoControlRoadmapModel:
[legend]
Collaboration diagram for toolkit::UnoControlRoadmapModel:
[legend]

Public Member Functions

 UnoControlRoadmapModel (const css::uno::Reference< css::uno::XComponentContext > &i_factory)
 
 UnoControlRoadmapModel (const UnoControlRoadmapModel &rModel)
 
rtl::Reference< UnoControlModelClone () const override
 
OUString SAL_CALL getServiceName () override
 
OUString SAL_CALL getImplementationName () override
 
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32 Index) override
 
virtual void SAL_CALL insertByIndex (sal_Int32 Index, const css::uno::Any &Element) override
 
virtual void SAL_CALL removeByIndex (sal_Int32 Index) override
 
virtual void SAL_CALL replaceByIndex (sal_Int32 Index, const css::uno::Any &Element) override
 
virtual void SAL_CALL addContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override
 
virtual void SAL_CALL removeContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override
 
css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &rType) override
 
void SAL_CALL acquire () noexcept override
 
void SAL_CALL release () noexcept override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual css::uno::Reference< XInterface > SAL_CALL createInstance () override
 
virtual css::uno::Reference< XInterface > SAL_CALL createInstanceWithArguments (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
- Public Member Functions inherited from UnoControlModel
 UnoControlModel (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
 UnoControlModel (const UnoControlModel &rModel)
 
virtual rtl::Reference< UnoControlModelClone () const =0
 
css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
void SAL_CALL acquire () noexcept override
 
void SAL_CALL release () noexcept override
 
css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &rType) override
 
css::uno::Reference< css::util::XCloneable > SAL_CALL createClone () override
 
void SAL_CALL dispose () override
 
void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
css::beans::PropertyState SAL_CALL getPropertyState (const OUString &PropertyName) override
 
css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override
 
void SAL_CALL setPropertyToDefault (const OUString &PropertyName) override
 
css::uno::Any SAL_CALL getPropertyDefault (const OUString &aPropertyName) override
 
OUString SAL_CALL getServiceName () override
 
void SAL_CALL write (const css::uno::Reference< css::io::XObjectOutputStream > &OutStream) override
 
void SAL_CALL read (const css::uno::Reference< css::io::XObjectInputStream > &InStream) override
 
OUString SAL_CALL getImplementationName () override
 
sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
::cppu::IPropertyArrayHelpergetInfoHelper () override=0
 
bool convertFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
void setFastPropertyValue_NoBroadcast (std::unique_lock< std::mutex > &rGuard, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
void getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const override
 
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
void SAL_CALL setPropertyValues (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) override
 
- Public Member Functions inherited from cppu::WeakAggImplHelper6< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6 >
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
 
- Public Member Functions inherited from cppu::OWeakAggObject
 OWeakAggObject ()
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL setDelegator (const css::uno::Reference< css::uno::XInterface > &Delegator) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &rType) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 
- Public Member Functions inherited from comphelper::OPropertySetHelper
 OPropertySetHelper ()
 
 OPropertySetHelper (bool bIgnoreRuntimeExceptionsWhileFiring)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
void disposing (std::unique_lock< std::mutex > &rGuard)
 
virtual void SAL_CALL setPropertyValue (const ::rtl::OUString &rPropertyName, const css::uno::Any &aValue) override final
 
virtual css::uno::Any SAL_CALL getPropertyValue (const ::rtl::OUString &aPropertyName) override final
 
virtual void SAL_CALL addPropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override final
 
virtual void SAL_CALL removePropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override final
 
virtual void SAL_CALL addVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override final
 
virtual void SAL_CALL removeVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override final
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) override final
 
virtual void SAL_CALL setPropertyValues (const css::uno::Sequence<::rtl::OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues (const css::uno::Sequence<::rtl::OUString > &PropertyNames) override final
 
virtual void SAL_CALL addPropertiesChangeListener (const css::uno::Sequence<::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override final
 
virtual void SAL_CALL removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override final
 
virtual void SAL_CALL firePropertiesChangeEvent (const css::uno::Sequence<::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override final
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 
- Public Member Functions inherited from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >
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
 

Private Types

typedef ::std::vector< css::uno::Reference< XInterface > > RoadmapItemHolderList
 

Private Member Functions

void MakeRMItemValidation (sal_Int32 Index, const css::uno::Reference< XInterface > &xRoadmapItem)
 
css::container::ContainerEvent GetContainerEvent (sal_Int32 Index, const css::uno::Reference< XInterface > &)
 
void SetRMItemDefaultProperties (const css::uno::Reference< XInterface > &)
 
sal_Int32 GetUniqueID ()
 
css::uno::Any ImplGetDefaultValue (sal_uInt16 nPropId) const override
 
::cppu::IPropertyArrayHelpergetInfoHelper () override
 

Static Private Member Functions

static sal_Int16 GetCurrentItemID (const css::uno::Reference< css::beans::XPropertySet > &xPropertySet)
 

Private Attributes

ContainerListenerMultiplexer maContainerListeners
 
RoadmapItemHolderList maRoadmapItems
 

Additional Inherited Members

- Static Public Member Functions inherited from comphelper::OPropertySetHelper
static css::uno::Sequence< css::uno::Type > getTypes ()
 
static css::uno::Reference< css::beans::XPropertySetInfo > createPropertySetInfo (cppu::IPropertyArrayHelper &rProperties)
 
- Protected Member Functions inherited from GraphicControlModel
 GraphicControlModel (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
 GraphicControlModel (const GraphicControlModel &_rSource)
 
void setFastPropertyValue_NoBroadcast (std::unique_lock< std::mutex > &rGuard, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
css::uno::Any ImplGetDefaultValue (sal_uInt16 nPropId) const override
 
- Protected Member Functions inherited from UnoControlModel
void ImplRegisterProperty (sal_uInt16 nPropType)
 
void ImplRegisterProperties (const std::vector< sal_uInt16 > &rIds)
 
void ImplRegisterProperty (sal_uInt16 nPropId, const css::uno::Any &rDefault)
 
css::uno::Sequence< sal_Int32 > ImplGetPropertyIds () const
 
virtual css::uno::Any ImplGetDefaultValue (sal_uInt16 nPropId) const
 
bool ImplHasProperty (sal_uInt16 nPropId) const
 
virtual void ImplNormalizePropertySequence (const sal_Int32 _nCount, sal_Int32 *_pHandles, css::uno::Any *_pValues, sal_Int32 *_pValidHandles) const
 called before setting multiple properties, allows to care for property dependencies More...
 
template<typename T >
void UNO_CONTROL_MODEL_REGISTER_PROPERTIES ()
 
void setFastPropertyValueImpl (std::unique_lock< std::mutex > &rGuard, sal_Int32 nHandle, const css::uno::Any &aValue) override
 
css::beans::PropertyState getPropertyStateImpl (std::unique_lock< std::mutex > &rGuard, const OUString &PropertyName)
 
void setPropertyValuesImpl (std::unique_lock< std::mutex > &rGuard, const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values)
 
- Protected Member Functions inherited from cppu::OWeakAggObject
virtual ~OWeakAggObject () SAL_OVERRIDE
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 
- Protected Member Functions inherited from comphelper::OPropertySetHelper
 ~OPropertySetHelper ()
 
virtual void setFastPropertyValueImpl (std::unique_lock< std::mutex > &rGuard, sal_Int32 nHandle, const css::uno::Any &rValue)
 
virtual css::uno::Any getPropertyValueImpl (std::unique_lock< std::mutex > &rGuard, const ::rtl::OUString &aPropertyName)
 
void fire (std::unique_lock< std::mutex > &rGuard, sal_Int32 *pnHandles, const css::uno::Any *pNewValues, const css::uno::Any *pOldValues, sal_Int32 nCount, bool bVetoable)
 
void setFastPropertyValues (std::unique_lock< std::mutex > &rGuard, sal_Int32 nSeqLen, sal_Int32 *pHandles, const css::uno::Any *pValues, sal_Int32 nHitCount)
 
virtual cppu::IPropertyArrayHelpergetInfoHelper ()=0
 
virtual bool convertFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)=0
 
virtual void setFastPropertyValue_NoBroadcast (std::unique_lock< std::mutex > &rGuard, sal_Int32 nHandle, const css::uno::Any &rValue)=0
 
virtual void getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const=0
 
void setDependentFastPropertyValue (std::unique_lock< std::mutex > &rGuard, sal_Int32 i_handle, const css::uno::Any &i_value)
 
- Protected Member Functions inherited from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >
 ~ImplHelper3 () SAL_NOEXCEPT
 
- Static Protected Member Functions inherited from UnoControlModel
static void ImplEnsureHandleOrder (const sal_Int32 _nCount, sal_Int32 *_pHandles, css::uno::Any *_pValues, sal_Int32 _nFirstHandle, sal_Int32 _nSecondHandle)
 ensures that two property values in a sequence have a certain order More...
 
- Protected Attributes inherited from UnoControlModel
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
- Protected Attributes inherited from cppu::OWeakAggObject
css::uno::WeakReferenceHelper xDelegator
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

Definition at line 67 of file roadmapcontrol.hxx.

Member Typedef Documentation

◆ RoadmapItemHolderList

typedef ::std::vector< css::uno::Reference< XInterface > > toolkit::UnoControlRoadmapModel::RoadmapItemHolderList
private

Definition at line 74 of file roadmapcontrol.hxx.

Constructor & Destructor Documentation

◆ UnoControlRoadmapModel() [1/2]

toolkit::UnoControlRoadmapModel::UnoControlRoadmapModel ( const css::uno::Reference< css::uno::XComponentContext > &  i_factory)

Referenced by Clone().

◆ UnoControlRoadmapModel() [2/2]

toolkit::UnoControlRoadmapModel::UnoControlRoadmapModel ( const UnoControlRoadmapModel rModel)
inline

Definition at line 90 of file roadmapcontrol.hxx.

Member Function Documentation

◆ acquire()

void SAL_CALL toolkit::UnoControlRoadmapModel::acquire ( )
inlineoverridevirtualnoexcept

◆ addContainerListener()

void SAL_CALL toolkit::UnoControlRoadmapModel::addContainerListener ( const css::uno::Reference< css::container::XContainerListener > &  xListener)
overridevirtual

Definition at line 345 of file roadmapcontrol.cxx.

◆ Clone()

rtl::Reference< UnoControlModel > toolkit::UnoControlRoadmapModel::Clone ( ) const
inlineoverridevirtual

Implements UnoControlModel.

Definition at line 94 of file roadmapcontrol.hxx.

References UnoControlRoadmapModel().

◆ createInstance()

Reference< XInterface > SAL_CALL toolkit::UnoControlRoadmapModel::createInstance ( )
overridevirtual

Definition at line 129 of file roadmapcontrol.cxx.

◆ createInstanceWithArguments()

Reference< XInterface > SAL_CALL toolkit::UnoControlRoadmapModel::createInstanceWithArguments ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

Definition at line 137 of file roadmapcontrol.cxx.

◆ getByIndex()

Any SAL_CALL toolkit::UnoControlRoadmapModel::getByIndex ( sal_Int32  Index)
overridevirtual

◆ GetContainerEvent()

ContainerEvent toolkit::UnoControlRoadmapModel::GetContainerEvent ( sal_Int32  Index,
const css::uno::Reference< XInterface > &   
)
private

Definition at line 249 of file roadmapcontrol.cxx.

References aEvent.

◆ getCount()

sal_Int32 SAL_CALL toolkit::UnoControlRoadmapModel::getCount ( )
override

Definition at line 174 of file roadmapcontrol.cxx.

◆ GetCurrentItemID()

sal_Int16 toolkit::UnoControlRoadmapModel::GetCurrentItemID ( const css::uno::Reference< css::beans::XPropertySet > &  xPropertySet)
staticprivate

Definition at line 259 of file roadmapcontrol.cxx.

References Any, BASEPROPERTY_CURRENTITEMID, and GetPropertyName().

◆ getElementType()

Type SAL_CALL toolkit::UnoControlRoadmapModel::getElementType ( )
overridevirtual

Definition at line 332 of file roadmapcontrol.cxx.

References cppu::UnoType< typename T >::get().

◆ getImplementationName()

OUString toolkit::UnoControlRoadmapModel::getImplementationName ( )
override

Definition at line 84 of file roadmapcontrol.cxx.

◆ getInfoHelper()

cppu::IPropertyArrayHelper & toolkit::UnoControlRoadmapModel::getInfoHelper ( )
overrideprivatevirtual

Implements UnoControlModel.

Definition at line 158 of file roadmapcontrol.cxx.

References aHelper.

◆ getPropertySetInfo()

Reference< XPropertySetInfo > toolkit::UnoControlRoadmapModel::getPropertySetInfo ( )
overridevirtual

Definition at line 167 of file roadmapcontrol.cxx.

◆ getServiceName()

OUString toolkit::UnoControlRoadmapModel::getServiceName ( )
override

Definition at line 79 of file roadmapcontrol.cxx.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > toolkit::UnoControlRoadmapModel::getSupportedServiceNames ( )
override

Definition at line 90 of file roadmapcontrol.cxx.

◆ GetUniqueID()

sal_Int32 toolkit::UnoControlRoadmapModel::GetUniqueID ( )
private

Definition at line 221 of file roadmapcontrol.cxx.

References Any.

◆ hasElements()

sal_Bool SAL_CALL toolkit::UnoControlRoadmapModel::hasElements ( )
overridevirtual

Definition at line 339 of file roadmapcontrol.cxx.

◆ ImplGetDefaultValue()

Any toolkit::UnoControlRoadmapModel::ImplGetDefaultValue ( sal_uInt16  nPropId) const
overrideprivatevirtual

◆ insertByIndex()

void SAL_CALL toolkit::UnoControlRoadmapModel::insertByIndex ( sal_Int32  Index,
const css::uno::Any &  Element 
)
overridevirtual

◆ MakeRMItemValidation()

void toolkit::UnoControlRoadmapModel::MakeRMItemValidation ( sal_Int32  Index,
const css::uno::Reference< XInterface > &  xRoadmapItem 
)
private

◆ queryAggregation()

css::uno::Any SAL_CALL toolkit::UnoControlRoadmapModel::queryAggregation ( const css::uno::Type &  rType)
overridevirtual

◆ queryInterface()

css::uno::Any SAL_CALL toolkit::UnoControlRoadmapModel::queryInterface ( const css::uno::Type &  rType)
inlineoverridevirtual

◆ release()

void SAL_CALL toolkit::UnoControlRoadmapModel::release ( )
inlineoverridevirtualnoexcept

◆ removeByIndex()

void SAL_CALL toolkit::UnoControlRoadmapModel::removeByIndex ( sal_Int32  Index)
overridevirtual

◆ removeContainerListener()

void SAL_CALL toolkit::UnoControlRoadmapModel::removeContainerListener ( const css::uno::Reference< css::container::XContainerListener > &  xListener)
overridevirtual

Definition at line 350 of file roadmapcontrol.cxx.

◆ replaceByIndex()

void SAL_CALL toolkit::UnoControlRoadmapModel::replaceByIndex ( sal_Int32  Index,
const css::uno::Any &  Element 
)
overridevirtual

Definition at line 319 of file roadmapcontrol.cxx.

References aEvent.

◆ SetRMItemDefaultProperties()

void toolkit::UnoControlRoadmapModel::SetRMItemDefaultProperties ( const css::uno::Reference< XInterface > &  )
private

Definition at line 201 of file roadmapcontrol.cxx.

References Any.

Member Data Documentation

◆ maContainerListeners

ContainerListenerMultiplexer toolkit::UnoControlRoadmapModel::maContainerListeners
private

Definition at line 76 of file roadmapcontrol.hxx.

◆ maRoadmapItems

RoadmapItemHolderList toolkit::UnoControlRoadmapModel::maRoadmapItems
private

Definition at line 77 of file roadmapcontrol.hxx.


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