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 rtl::Reference< ScAutoFormatObjGetObjectByIndex_Impl (sal_uInt16 nIndex)
static rtl::Reference< ScAutoFormatObjGetObjectByName_Impl (std::u16string_view 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 148 of file afmtuno.cxx.

ScAutoFormatsObj::~ScAutoFormatsObj ( )

Definition at line 154 of file afmtuno.cxx.

Member Function Documentation

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

Definition at line 263 of file afmtuno.cxx.

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

Definition at line 277 of file afmtuno.cxx.

References GetObjectByIndex_Impl().

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

Definition at line 299 of file afmtuno.cxx.

References GetObjectByName_Impl().

sal_Int32 SAL_CALL ScAutoFormatsObj::getCount ( )

Definition at line 271 of file afmtuno.cxx.

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

Referenced by hasElements().

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

Definition at line 308 of file afmtuno.cxx.

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

uno::Type SAL_CALL ScAutoFormatsObj::getElementType ( )

Definition at line 286 of file afmtuno.cxx.

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

virtual OUString SAL_CALL ScAutoFormatsObj::getImplementationName ( )
rtl::Reference< ScAutoFormatObj > ScAutoFormatsObj::GetObjectByIndex_Impl ( sal_uInt16  nIndex)

Definition at line 168 of file afmtuno.cxx.

References ScGlobal::GetOrCreateAutoFormat(), and size.

Referenced by getByIndex(), and GetObjectByName_Impl().

rtl::Reference< ScAutoFormatObj > ScAutoFormatsObj::GetObjectByName_Impl ( std::u16string_view  aName)
virtual css::uno::Sequence< OUString > SAL_CALL ScAutoFormatsObj::getSupportedServiceNames ( )
sal_Bool SAL_CALL ScAutoFormatsObj::hasByName ( const OUString &  aName)

Definition at line 323 of file afmtuno.cxx.

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

sal_Bool SAL_CALL ScAutoFormatsObj::hasElements ( )

Definition at line 291 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 244 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 236 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: