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::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 146 of file afmtuno.cxx.

◆ ~ScAutoFormatsObj()

ScAutoFormatsObj::~ScAutoFormatsObj ( )
overridevirtual

Definition at line 152 of file afmtuno.cxx.

Member Function Documentation

◆ createEnumeration()

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

Definition at line 261 of file afmtuno.cxx.

◆ getByIndex()

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

Definition at line 275 of file afmtuno.cxx.

References GetObjectByIndex_Impl(), and nIndex.

◆ getByName()

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

Definition at line 297 of file afmtuno.cxx.

References aName, and GetObjectByName_Impl().

◆ getCount()

sal_Int32 SAL_CALL ScAutoFormatsObj::getCount ( )
overridevirtual

Definition at line 269 of file afmtuno.cxx.

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

Referenced by hasElements().

◆ getElementNames()

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

Definition at line 306 of file afmtuno.cxx.

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

◆ getElementType()

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

Definition at line 284 of file afmtuno.cxx.

References cppu::UnoType< typename T >::get().

◆ getImplementationName()

virtual OUString SAL_CALL ScAutoFormatsObj::getImplementationName ( )
overridevirtual

◆ GetObjectByIndex_Impl()

rtl::Reference< ScAutoFormatObj > ScAutoFormatsObj::GetObjectByIndex_Impl ( sal_uInt16  nIndex)
staticprivate

Definition at line 166 of file afmtuno.cxx.

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

Referenced by getByIndex(), and GetObjectByName_Impl().

◆ GetObjectByName_Impl()

rtl::Reference< ScAutoFormatObj > ScAutoFormatsObj::GetObjectByName_Impl ( std::u16string_view  aName)
staticprivate

◆ getSupportedServiceNames()

virtual css::uno::Sequence< OUString > SAL_CALL ScAutoFormatsObj::getSupportedServiceNames ( )
overridevirtual

◆ hasByName()

sal_Bool SAL_CALL ScAutoFormatsObj::hasByName ( const OUString &  aName)
overridevirtual

Definition at line 321 of file afmtuno.cxx.

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

◆ hasElements()

sal_Bool SAL_CALL ScAutoFormatsObj::hasElements ( )
overridevirtual

Definition at line 289 of file afmtuno.cxx.

References getCount().

◆ insertByName()

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

◆ removeByName()

void SAL_CALL ScAutoFormatsObj::removeByName ( const OUString &  Name)
overridevirtual

notify to other objects

Definition at line 242 of file afmtuno.cxx.

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

Referenced by replaceByName().

◆ replaceByName()

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

combine?

Definition at line 234 of file afmtuno.cxx.

References aName, insertByName(), and removeByName().

◆ supportsService()

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

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