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

#include <afmtuno.hxx>

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

Public Member Functions

 ScAutoFormatsObj ()
 
virtual ~ScAutoFormatsObj () 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::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 css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 
virtual sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32 Index) 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
 

Static Private Member Functions

static ScAutoFormatObjGetObjectByIndex_Impl (sal_uInt16 nIndex)
 
static ScAutoFormatObjGetObjectByName_Impl (const OUString &aName)
 

Detailed Description

Definition at line 41 of file afmtuno.hxx.

Constructor & Destructor Documentation

ScAutoFormatsObj::ScAutoFormatsObj ( )

This object should only exist once and it must be known to Auto-Format-Data, so that changes can be broadcasted

Definition at line 151 of file afmtuno.cxx.

ScAutoFormatsObj::~ScAutoFormatsObj ( )
overridevirtual

Definition at line 157 of file afmtuno.cxx.

Member Function Documentation

uno::Reference< container::XEnumeration > SAL_CALL ScAutoFormatsObj::createEnumeration ( )
overridevirtual

Definition at line 266 of file afmtuno.cxx.

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

Definition at line 280 of file afmtuno.cxx.

References GetObjectByIndex_Impl().

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

Definition at line 303 of file afmtuno.cxx.

References GetObjectByName_Impl().

sal_Int32 SAL_CALL ScAutoFormatsObj::getCount ( )
overridevirtual

Definition at line 274 of file afmtuno.cxx.

References ScGlobal::GetOrCreateAutoFormat(), and ScAutoFormat::size().

Referenced by hasElements().

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

Definition at line 312 of file afmtuno.cxx.

References aSeq, ScGlobal::GetOrCreateAutoFormat(), i, and ScAutoFormat::size().

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

Definition at line 289 of file afmtuno.cxx.

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

virtual OUString SAL_CALL ScAutoFormatsObj::getImplementationName ( )
overridevirtual
ScAutoFormatObj * ScAutoFormatsObj::GetObjectByIndex_Impl ( sal_uInt16  nIndex)
staticprivate

Definition at line 171 of file afmtuno.cxx.

References ScGlobal::GetOrCreateAutoFormat(), and size.

Referenced by getByIndex(), and GetObjectByName_Impl().

ScAutoFormatObj * ScAutoFormatsObj::GetObjectByName_Impl ( const OUString &  aName)
staticprivate
virtual css::uno::Sequence< OUString > SAL_CALL ScAutoFormatsObj::getSupportedServiceNames ( )
overridevirtual
sal_Bool SAL_CALL ScAutoFormatsObj::hasByName ( const OUString &  aName)
overridevirtual

Definition at line 327 of file afmtuno.cxx.

References ScGlobal::GetOrCreateAutoFormat(), and lcl_FindAutoFormatIndex().

sal_Bool SAL_CALL ScAutoFormatsObj::hasElements ( )
overridevirtual

Definition at line 295 of file afmtuno.cxx.

References getCount().

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

notify to other objects

Definition at line 247 of file afmtuno.cxx.

References ScAutoFormat::end(), ScAutoFormat::erase(), ScAutoFormat::find(), ScGlobal::GetOrCreateAutoFormat(), and ScAutoFormat::Save().

Referenced by replaceByName().

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

combine?

Definition at line 239 of file afmtuno.cxx.

References insertByName(), and removeByName().

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

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