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:
Collaboration diagram for ScAutoFormatsObj:

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 ( )

Definition at line 157 of file afmtuno.cxx.

Member Function Documentation

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

Definition at line 266 of file afmtuno.cxx.

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

Definition at line 280 of file afmtuno.cxx.

References GetObjectByIndex_Impl().

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

Definition at line 303 of file afmtuno.cxx.

References GetObjectByName_Impl().

sal_Int32 SAL_CALL ScAutoFormatsObj::getCount ( )

Definition at line 274 of file afmtuno.cxx.

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

Referenced by hasElements().

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

Definition at line 312 of file afmtuno.cxx.

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

uno::Type SAL_CALL ScAutoFormatsObj::getElementType ( )

Definition at line 289 of file afmtuno.cxx.

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

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

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)
virtual css::uno::Sequence< OUString > SAL_CALL ScAutoFormatsObj::getSupportedServiceNames ( )
sal_Bool SAL_CALL ScAutoFormatsObj::hasByName ( const OUString &  aName)

Definition at line 327 of file afmtuno.cxx.

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

sal_Bool SAL_CALL ScAutoFormatsObj::hasElements ( )

Definition at line 295 of file afmtuno.cxx.

References getCount().

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

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 


Definition at line 239 of file afmtuno.cxx.

References insertByName(), and removeByName().

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

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