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 rtl::Reference< ScAutoFormatObjGetObjectByIndex_Impl (sal_uInt16 nIndex)
 
static rtl::Reference< ScAutoFormatObjGetObjectByName_Impl (std::u16string_view aName)
 

Detailed Description

Definition at line 40 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 ( )
overridevirtual

Definition at line 154 of file afmtuno.cxx.

Member Function Documentation

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

Definition at line 263 of file afmtuno.cxx.

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

Definition at line 277 of file afmtuno.cxx.

References GetObjectByIndex_Impl().

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

Definition at line 300 of file afmtuno.cxx.

References GetObjectByName_Impl().

sal_Int32 SAL_CALL ScAutoFormatsObj::getCount ( )
overridevirtual

Definition at line 271 of file afmtuno.cxx.

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

Referenced by hasElements().

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

Definition at line 309 of file afmtuno.cxx.

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

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

Definition at line 286 of file afmtuno.cxx.

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

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

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

Definition at line 324 of file afmtuno.cxx.

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

sal_Bool SAL_CALL ScAutoFormatsObj::hasElements ( )
overridevirtual

Definition at line 292 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 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 
)
overridevirtual

combine?

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