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
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 

Private Member Functions

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

Private Attributes

ScDocShellpDocShell
 

Detailed Description

Definition at line 49 of file styleuno.hxx.

Constructor & Destructor Documentation

ScStyleFamiliesObj::ScStyleFamiliesObj ( ScDocShell pDocSh)

Definition at line 411 of file styleuno.cxx.

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

ScStyleFamiliesObj::~ScStyleFamiliesObj ( )
overridevirtual

Definition at line 417 of file styleuno.cxx.

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

Member Function Documentation

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

Definition at line 478 of file styleuno.cxx.

References GetObjectByIndex_Impl().

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

Definition at line 502 of file styleuno.cxx.

References GetObjectByName_Impl().

sal_Int32 SAL_CALL ScStyleFamiliesObj::getCount ( )
overridevirtual

Definition at line 473 of file styleuno.cxx.

References SC_STYLE_FAMILY_COUNT.

Referenced by hasElements().

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

Definition at line 512 of file styleuno.cxx.

References SC_FAMILYNAME_CELL, and SC_FAMILYNAME_PAGE.

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

Definition at line 488 of file styleuno.cxx.

References cppu::UnoType< class >::get().

virtual OUString SAL_CALL ScStyleFamiliesObj::getImplementationName ( )
overridevirtual
ScStyleFamilyObj * ScStyleFamiliesObj::GetObjectByIndex_Impl ( sal_uInt32  nIndex) const
private

Definition at line 450 of file styleuno.cxx.

References aStyleFamilyTypes, GetObjectByType_Impl(), and SC_STYLE_FAMILY_COUNT.

Referenced by getByIndex().

ScStyleFamilyObj * ScStyleFamiliesObj::GetObjectByName_Impl ( const OUString &  aName) const
private

Definition at line 458 of file styleuno.cxx.

References pDocShell, SC_FAMILYNAME_CELL, and SC_FAMILYNAME_PAGE.

Referenced by getByName().

ScStyleFamilyObj * ScStyleFamiliesObj::GetObjectByType_Impl ( SfxStyleFamily  nType) const
private

Definition at line 437 of file styleuno.cxx.

References pDocShell.

Referenced by GetObjectByIndex_Impl().

uno::Sequence< beans::PropertyValue > SAL_CALL ScStyleFamiliesObj::getStyleLoaderOptions ( )
overridevirtual
virtual css::uno::Sequence< OUString > SAL_CALL ScStyleFamiliesObj::getSupportedServiceNames ( )
overridevirtual
sal_Bool SAL_CALL ScStyleFamiliesObj::hasByName ( const OUString &  aName)
overridevirtual

Definition at line 517 of file styleuno.cxx.

References SC_FAMILYNAME_CELL, and SC_FAMILYNAME_PAGE.

sal_Bool SAL_CALL ScStyleFamiliesObj::hasElements ( )
overridevirtual

Definition at line 494 of file styleuno.cxx.

References getCount().

void ScStyleFamiliesObj::loadStylesFromDocShell ( ScDocShell pSource,
const css::uno::Sequence< css::beans::PropertyValue > &  aOptions 
)
private
void SAL_CALL ScStyleFamiliesObj::loadStylesFromDocument ( const css::uno::Reference< css::lang::XComponent > &  aSourceComponent,
const css::uno::Sequence< css::beans::PropertyValue > &  aOptions 
)
overridevirtual
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 524 of file styleuno.cxx.

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

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

Reimplemented from SfxListener.

Definition at line 425 of file styleuno.cxx.

References SfxHint::GetId(), and pDocShell.

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

Member Data Documentation

ScDocShell* ScStyleFamiliesObj::pDocShell
private

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