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

#include <styleuno.hxx>

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

Public Member Functions

 ScStyleFamiliesObj (ScDocShell *pDocSh)
 
virtual ~ScStyleFamiliesObj () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
virtual sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32 Index) 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 void SAL_CALL loadStylesFromURL (const OUString &URL, const css::uno::Sequence< css::beans::PropertyValue > &aOptions) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getStyleLoaderOptions () override
 
virtual void SAL_CALL loadStylesFromDocument (const css::uno::Reference< css::lang::XComponent > &aSourceComponent, const css::uno::Sequence< css::beans::PropertyValue > &aOptions) 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
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Private Member Functions

rtl::Reference< ScStyleFamilyObjGetObjectByType_Impl (SfxStyleFamily nType) const
 
rtl::Reference< ScStyleFamilyObjGetObjectByIndex_Impl (sal_uInt32 nIndex) const
 
rtl::Reference< ScStyleFamilyObjGetObjectByName_Impl (std::u16string_view aName) const
 
void loadStylesFromDocShell (ScDocShell *pSource, const css::uno::Sequence< css::beans::PropertyValue > &aOptions)
 

Private Attributes

ScDocShellpDocShell
 

Detailed Description

Definition at line 47 of file styleuno.hxx.

Constructor & Destructor Documentation

◆ ScStyleFamiliesObj()

ScStyleFamiliesObj::ScStyleFamiliesObj ( ScDocShell pDocSh)

Definition at line 432 of file styleuno.cxx.

References ScDocument::AddUnoObject(), ScDocShell::GetDocument(), and pDocShell.

◆ ~ScStyleFamiliesObj()

ScStyleFamiliesObj::~ScStyleFamiliesObj ( )
overridevirtual

Definition at line 438 of file styleuno.cxx.

References ScDocShell::GetDocument(), pDocShell, and ScDocument::RemoveUnoObject().

Member Function Documentation

◆ getByIndex()

uno::Any SAL_CALL ScStyleFamiliesObj::getByIndex ( sal_Int32  Index)
overridevirtual

Definition at line 503 of file styleuno.cxx.

References GetObjectByIndex_Impl(), and nIndex.

◆ getByName()

uno::Any SAL_CALL ScStyleFamiliesObj::getByName ( const OUString &  aName)
overridevirtual

Definition at line 526 of file styleuno.cxx.

References aName, and GetObjectByName_Impl().

◆ getCount()

sal_Int32 SAL_CALL ScStyleFamiliesObj::getCount ( )
overridevirtual

Definition at line 498 of file styleuno.cxx.

References SC_STYLE_FAMILY_COUNT.

Referenced by hasElements().

◆ getElementNames()

uno::Sequence< OUString > SAL_CALL ScStyleFamiliesObj::getElementNames ( )
overridevirtual

Definition at line 536 of file styleuno.cxx.

References SC_FAMILYNAME_CELL, SC_FAMILYNAME_GRAPHIC, and SC_FAMILYNAME_PAGE.

◆ getElementType()

uno::Type SAL_CALL ScStyleFamiliesObj::getElementType ( )
overridevirtual

Definition at line 513 of file styleuno.cxx.

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

◆ getImplementationName()

virtual OUString SAL_CALL ScStyleFamiliesObj::getImplementationName ( )
overridevirtual

◆ GetObjectByIndex_Impl()

rtl::Reference< ScStyleFamilyObj > ScStyleFamiliesObj::GetObjectByIndex_Impl ( sal_uInt32  nIndex) const
private

Definition at line 473 of file styleuno.cxx.

References aStyleFamilyTypes, GetObjectByType_Impl(), nIndex, and SC_STYLE_FAMILY_COUNT.

Referenced by getByIndex().

◆ GetObjectByName_Impl()

rtl::Reference< ScStyleFamilyObj > ScStyleFamiliesObj::GetObjectByName_Impl ( std::u16string_view  aName) const
private

Definition at line 481 of file styleuno.cxx.

References aName, pDocShell, SC_FAMILYNAME_CELL, SC_FAMILYNAME_GRAPHIC, and SC_FAMILYNAME_PAGE.

Referenced by getByName().

◆ GetObjectByType_Impl()

rtl::Reference< ScStyleFamilyObj > ScStyleFamiliesObj::GetObjectByType_Impl ( SfxStyleFamily  nType) const
private

Definition at line 458 of file styleuno.cxx.

References nType, and pDocShell.

Referenced by GetObjectByIndex_Impl().

◆ getStyleLoaderOptions()

uno::Sequence< beans::PropertyValue > SAL_CALL ScStyleFamiliesObj::getStyleLoaderOptions ( )
overridevirtual

◆ getSupportedServiceNames()

virtual css::uno::Sequence< OUString > SAL_CALL ScStyleFamiliesObj::getSupportedServiceNames ( )
overridevirtual

◆ hasByName()

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

Definition at line 541 of file styleuno.cxx.

References aName, SC_FAMILYNAME_CELL, SC_FAMILYNAME_GRAPHIC, and SC_FAMILYNAME_PAGE.

◆ hasElements()

sal_Bool SAL_CALL ScStyleFamiliesObj::hasElements ( )
overridevirtual

Definition at line 518 of file styleuno.cxx.

References getCount().

◆ loadStylesFromDocShell()

void ScStyleFamiliesObj::loadStylesFromDocShell ( ScDocShell pSource,
const css::uno::Sequence< css::beans::PropertyValue > &  aOptions 
)
private

◆ loadStylesFromDocument()

void SAL_CALL ScStyleFamiliesObj::loadStylesFromDocument ( const css::uno::Reference< css::lang::XComponent > &  aSourceComponent,
const css::uno::Sequence< css::beans::PropertyValue > &  aOptions 
)
overridevirtual

◆ loadStylesFromURL()

void SAL_CALL ScStyleFamiliesObj::loadStylesFromURL ( const OUString &  URL,
const css::uno::Sequence< css::beans::PropertyValue > &  aOptions 
)
overridevirtual

use aOptions (like Writer) set flag to disable filter option dialogs when importing

Definition at line 548 of file styleuno.cxx.

References aURL, ScDocumentLoader::GetDocShell(), and loadStylesFromDocShell().

◆ Notify()

void ScStyleFamiliesObj::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

Reimplemented from SfxListener.

Definition at line 446 of file styleuno.cxx.

References SfxHint::GetId(), and pDocShell.

◆ supportsService()

virtual sal_Bool SAL_CALL ScStyleFamiliesObj::supportsService ( const OUString &  ServiceName)
overridevirtual

Member Data Documentation

◆ pDocShell

ScDocShell* ScStyleFamiliesObj::pDocShell
private

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