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

#include <docuno.hxx>

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

Public Member Functions

 ScAnnotationsObj (ScDocShell *pDocSh, SCTAB nT)
 
virtual ~ScAnnotationsObj () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
ScDocShellGetDocShell () const
 
virtual void SAL_CALL insertNew (const css::table::CellAddress &aPosition, const OUString &aText) override
 XSheetAnnotations. More...
 
virtual void SAL_CALL removeByIndex (sal_Int32 nIndex) override
 
virtual sal_Int32 SAL_CALL getCount () override
 XIndexAccess. More...
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32 Index) override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 XEnumerationAccess. More...
 
virtual css::uno::Type SAL_CALL getElementType () override
 XElementAccess. More...
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual OUString SAL_CALL getImplementationName () override
 XServiceInfo. More...
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Private Member Functions

bool GetAddressByIndex_Impl (sal_Int32 nIndex, ScAddress &rPos) const
 
rtl::Reference< ScAnnotationObjGetObjectByIndex_Impl (sal_Int32 nIndex) const
 

Private Attributes

ScDocShellpDocShell
 
SCTAB nTab
 Collection belongs to the sheet. More...
 

Detailed Description

Definition at line 671 of file docuno.hxx.

Constructor & Destructor Documentation

◆ ScAnnotationsObj()

ScAnnotationsObj::ScAnnotationsObj ( ScDocShell pDocSh,
SCTAB  nT 
)

Definition at line 4643 of file docuno.cxx.

◆ ~ScAnnotationsObj()

ScAnnotationsObj::~ScAnnotationsObj ( )
overridevirtual

Definition at line 4650 of file docuno.cxx.

References ScDocShell::GetDocument(), pDocShell, and ScDocument::RemoveUnoObject().

Member Function Documentation

◆ createEnumeration()

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

XEnumerationAccess.

iterate directly (more efficiently)?

Definition at line 4722 of file docuno.cxx.

◆ GetAddressByIndex_Impl()

bool ScAnnotationsObj::GetAddressByIndex_Impl ( sal_Int32  nIndex,
ScAddress rPos 
) const
private

◆ getByIndex()

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

Definition at line 4745 of file docuno.cxx.

References GetObjectByIndex_Impl(), and nIndex.

◆ getCount()

sal_Int32 SAL_CALL ScAnnotationsObj::getCount ( )
overridevirtual

◆ GetDocShell()

ScDocShell * ScAnnotationsObj::GetDocShell ( ) const
inline

Definition at line 690 of file docuno.hxx.

◆ getElementType()

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

XElementAccess.

Definition at line 4755 of file docuno.cxx.

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

◆ getImplementationName()

virtual OUString SAL_CALL ScAnnotationsObj::getImplementationName ( )
overridevirtual

XServiceInfo.

◆ GetObjectByIndex_Impl()

rtl::Reference< ScAnnotationObj > ScAnnotationsObj::GetObjectByIndex_Impl ( sal_Int32  nIndex) const
private

Definition at line 4678 of file docuno.cxx.

References GetAddressByIndex_Impl(), nIndex, and pDocShell.

Referenced by getByIndex().

◆ getSupportedServiceNames()

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

◆ hasElements()

sal_Bool SAL_CALL ScAnnotationsObj::hasElements ( )
overridevirtual

Definition at line 4760 of file docuno.cxx.

References getCount().

◆ insertNew()

void SAL_CALL ScAnnotationsObj::insertNew ( const css::table::CellAddress &  aPosition,
const OUString &  aText 
)
overridevirtual

XSheetAnnotations.

Definition at line 4691 of file docuno.cxx.

References ScDocShell::GetDocFunc(), nTab, pDocShell, and ScDocFunc::ReplaceNote().

◆ Notify()

void ScAnnotationsObj::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

adjust nTab when updating references!!!

Reimplemented from SfxListener.

Definition at line 4658 of file docuno.cxx.

References SfxHint::GetId(), and pDocShell.

◆ removeByIndex()

void SAL_CALL ScAnnotationsObj::removeByIndex ( sal_Int32  nIndex)
overridevirtual

◆ supportsService()

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

Member Data Documentation

◆ nTab

SCTAB ScAnnotationsObj::nTab
private

Collection belongs to the sheet.

Definition at line 679 of file docuno.hxx.

Referenced by GetAddressByIndex_Impl(), getCount(), and insertNew().

◆ pDocShell

ScDocShell* ScAnnotationsObj::pDocShell
private

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