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
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 

Private Member Functions

bool GetAddressByIndex_Impl (sal_Int32 nIndex, ScAddress &rPos) const
 
ScAnnotationObjGetObjectByIndex_Impl (sal_Int32 nIndex) const
 

Private Attributes

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

Detailed Description

Definition at line 663 of file docuno.hxx.

Constructor & Destructor Documentation

ScAnnotationsObj::ScAnnotationsObj ( ScDocShell pDocSh,
SCTAB  nT 
)

Definition at line 4481 of file docuno.cxx.

ScAnnotationsObj::~ScAnnotationsObj ( )
overridevirtual

Definition at line 4488 of file docuno.cxx.

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

Member Function Documentation

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

XEnumerationAccess.

iterate directly (more efficiently)?

Definition at line 4560 of file docuno.cxx.

bool ScAnnotationsObj::GetAddressByIndex_Impl ( sal_Int32  nIndex,
ScAddress rPos 
) const
private
uno::Any SAL_CALL ScAnnotationsObj::getByIndex ( sal_Int32  Index)
overridevirtual

Definition at line 4583 of file docuno.cxx.

References GetObjectByIndex_Impl().

sal_Int32 SAL_CALL ScAnnotationsObj::getCount ( )
overridevirtual
ScDocShell* ScAnnotationsObj::GetDocShell ( ) const
inline

Definition at line 682 of file docuno.hxx.

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

XElementAccess.

Definition at line 4593 of file docuno.cxx.

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

virtual OUString SAL_CALL ScAnnotationsObj::getImplementationName ( )
overridevirtual

XServiceInfo.

ScAnnotationObj * ScAnnotationsObj::GetObjectByIndex_Impl ( sal_Int32  nIndex) const
private

Definition at line 4516 of file docuno.cxx.

References GetAddressByIndex_Impl(), and pDocShell.

Referenced by getByIndex().

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

Definition at line 4599 of file docuno.cxx.

References getCount().

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

XSheetAnnotations.

Definition at line 4529 of file docuno.cxx.

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

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

adjust nTab when updating references!!!

Reimplemented from SfxListener.

Definition at line 4496 of file docuno.cxx.

References SfxHint::GetId(), and pDocShell.

void SAL_CALL ScAnnotationsObj::removeByIndex ( sal_Int32  nIndex)
overridevirtual
virtual sal_Bool SAL_CALL ScAnnotationsObj::supportsService ( const OUString &  ServiceName)
overridevirtual

Member Data Documentation

SCTAB ScAnnotationsObj::nTab
private

Collection belongs to the sheet.

Definition at line 671 of file docuno.hxx.

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

ScDocShell* ScAnnotationsObj::pDocShell
private

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