LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SdStyleFamily Class Referencefinal

#include <stlfamily.hxx>

Inheritance diagram for SdStyleFamily:
[legend]
Collaboration diagram for SdStyleFamily:
[legend]

Public Member Functions

 SdStyleFamily (rtl::Reference< SfxStyleSheetPool > xPool, SfxStyleFamily nFamily)
 creates the style family for the given SfxStyleFamily More...
 
 SdStyleFamily (const rtl::Reference< SfxStyleSheetPool > &xPool, const SdPage *pMasterPage)
 creates the presentation family for the given masterpage More...
 
virtual ~SdStyleFamily () override
 
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 OUString SAL_CALL getName () override
 
virtual void SAL_CALL setName (const OUString &aName) override
 
virtual css::uno::Any SAL_CALL getByName (const OUString &aName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override
 
virtual sal_Bool SAL_CALL hasByName (const OUString &aName) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32 Index) override
 
virtual void SAL_CALL insertByName (const OUString &aName, const css::uno::Any &aElement) override
 
virtual void SAL_CALL removeByName (const OUString &Name) override
 
virtual void SAL_CALL replaceByName (const OUString &aName, const css::uno::Any &aElement) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance () override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
virtual void SAL_CALL dispose () 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 css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 

Private Member Functions

void throwIfDisposed () const
 
SdStyleSheetGetValidNewSheet (const css::uno::Any &rElement)
 
SdStyleSheetGetSheetByName (const OUString &rName)
 

Private Attributes

SfxStyleFamily mnFamily
 
rtl::Reference< SfxStyleSheetPoolmxPool
 
std::unique_ptr< SdStyleFamilyImplmpImpl
 

Detailed Description

Definition at line 42 of file stlfamily.hxx.

Constructor & Destructor Documentation

◆ SdStyleFamily() [1/2]

SdStyleFamily::SdStyleFamily ( rtl::Reference< SfxStyleSheetPool xPool,
SfxStyleFamily  nFamily 
)

creates the style family for the given SfxStyleFamily

Definition at line 99 of file stlfamily.cxx.

◆ SdStyleFamily() [2/2]

SdStyleFamily::SdStyleFamily ( const rtl::Reference< SfxStyleSheetPool > &  xPool,
const SdPage pMasterPage 
)

creates the presentation family for the given masterpage

Definition at line 105 of file stlfamily.cxx.

References mpImpl.

◆ ~SdStyleFamily()

SdStyleFamily::~SdStyleFamily ( )
overridevirtual

Definition at line 114 of file stlfamily.cxx.

References DBG_ASSERT, and mxPool.

Member Function Documentation

◆ addEventListener()

void SAL_CALL SdStyleFamily::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

Definition at line 455 of file stlfamily.cxx.

◆ addPropertyChangeListener()

void SdStyleFamily::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Definition at line 494 of file stlfamily.cxx.

◆ addVetoableChangeListener()

void SdStyleFamily::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 504 of file stlfamily.cxx.

◆ createInstance()

Reference< XInterface > SAL_CALL SdStyleFamily::createInstance ( )
overridevirtual

◆ createInstanceWithArguments()

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

Definition at line 440 of file stlfamily.cxx.

References createInstance().

◆ dispose()

void SAL_CALL SdStyleFamily::dispose ( void  )
overridevirtual

Definition at line 447 of file stlfamily.cxx.

References mpImpl, and mxPool.

◆ getByIndex()

Any SAL_CALL SdStyleFamily::getByIndex ( sal_Int32  Index)
overridevirtual

Definition at line 344 of file stlfamily.cxx.

References Any, mnFamily, mpImpl, mxPool, and throwIfDisposed().

◆ getByName()

Any SAL_CALL SdStyleFamily::getByName ( const OUString &  aName)
overridevirtual

Definition at line 214 of file stlfamily.cxx.

References Any, GetSheetByName(), and throwIfDisposed().

◆ getCount()

sal_Int32 SAL_CALL SdStyleFamily::getCount ( )
overridevirtual

Definition at line 321 of file stlfamily.cxx.

References mnFamily, mpImpl, mxPool, nCount, and throwIfDisposed().

◆ getElementNames()

Sequence< OUString > SAL_CALL SdStyleFamily::getElementNames ( )
overridevirtual

Definition at line 221 of file stlfamily.cxx.

References SdStyleSheet::GetApiName(), mnFamily, mpImpl, mxPool, and throwIfDisposed().

◆ getElementType()

Type SAL_CALL SdStyleFamily::getElementType ( )
overridevirtual

Definition at line 293 of file stlfamily.cxx.

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

◆ getImplementationName()

OUString SAL_CALL SdStyleFamily::getImplementationName ( )
overridevirtual

Definition at line 171 of file stlfamily.cxx.

◆ getName()

OUString SAL_CALL SdStyleFamily::getName ( )
overridevirtual

Definition at line 187 of file stlfamily.cxx.

References SdStyleSheet::GetFamilyString(), mnFamily, mpImpl, nIndex, and SD_LT_SEPARATOR.

Referenced by getPropertyValue().

◆ getPropertySetInfo()

Reference< XPropertySetInfo > SdStyleFamily::getPropertySetInfo ( )
overridevirtual

Definition at line 465 of file stlfamily.cxx.

◆ getPropertyValue()

Any SdStyleFamily::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

Definition at line 476 of file stlfamily.cxx.

References Any, getName(), mnFamily, sDisplayName, and SdResId().

◆ GetSheetByName()

SdStyleSheet * SdStyleFamily::GetSheetByName ( const OUString &  rName)
private
Exceptions
css::container::NoSuchElementException
css::lang::WrappedTargetException

Definition at line 136 of file stlfamily.cxx.

References SdStyleSheet::GetApiName(), mnFamily, mpImpl, and mxPool.

Referenced by getByName(), removeByName(), and replaceByName().

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL SdStyleFamily::getSupportedServiceNames ( )
overridevirtual

Definition at line 181 of file stlfamily.cxx.

◆ GetValidNewSheet()

SdStyleSheet * SdStyleFamily::GetValidNewSheet ( const css::uno::Any &  rElement)
private
Exceptions
css::lang::IllegalArgumentException

Definition at line 125 of file stlfamily.cxx.

References mnFamily, and mxPool.

Referenced by insertByName(), and replaceByName().

◆ hasByName()

sal_Bool SAL_CALL SdStyleFamily::hasByName ( const OUString &  aName)
overridevirtual

Definition at line 259 of file stlfamily.cxx.

References aName, SdStyleSheet::GetApiName(), mnFamily, mpImpl, mxPool, and throwIfDisposed().

◆ hasElements()

sal_Bool SAL_CALL SdStyleFamily::hasElements ( )
overridevirtual

Definition at line 298 of file stlfamily.cxx.

References mnFamily, mxPool, and throwIfDisposed().

◆ insertByName()

void SAL_CALL SdStyleFamily::insertByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
overridevirtual

◆ removeByName()

void SAL_CALL SdStyleFamily::removeByName ( const OUString &  Name)
overridevirtual

Definition at line 398 of file stlfamily.cxx.

References GetSheetByName(), mxPool, and throwIfDisposed().

◆ removeEventListener()

void SAL_CALL SdStyleFamily::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

Definition at line 459 of file stlfamily.cxx.

◆ removePropertyChangeListener()

void SdStyleFamily::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

Definition at line 499 of file stlfamily.cxx.

◆ removeVetoableChangeListener()

void SdStyleFamily::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 509 of file stlfamily.cxx.

◆ replaceByName()

void SAL_CALL SdStyleFamily::replaceByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
overridevirtual

Definition at line 413 of file stlfamily.cxx.

References GetSheetByName(), GetValidNewSheet(), mxPool, and throwIfDisposed().

◆ setName()

void SAL_CALL SdStyleFamily::setName ( const OUString &  aName)
overridevirtual

Definition at line 208 of file stlfamily.cxx.

◆ setPropertyValue()

void SdStyleFamily::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

Definition at line 471 of file stlfamily.cxx.

◆ supportsService()

sal_Bool SAL_CALL SdStyleFamily::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 176 of file stlfamily.cxx.

References ServiceName, and cppu::supportsService().

◆ throwIfDisposed()

void SdStyleFamily::throwIfDisposed ( ) const
private
Exceptions
css::uno::RuntimeException

Definition at line 119 of file stlfamily.cxx.

References mxPool.

Referenced by createInstance(), getByIndex(), getByName(), getCount(), getElementNames(), hasByName(), hasElements(), insertByName(), removeByName(), and replaceByName().

Member Data Documentation

◆ mnFamily

SfxStyleFamily SdStyleFamily::mnFamily
private

◆ mpImpl

std::unique_ptr<SdStyleFamilyImpl> SdStyleFamily::mpImpl
private

◆ mxPool

rtl::Reference< SfxStyleSheetPool > SdStyleFamily::mxPool
private

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