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

#include <notesuno.hxx>

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

Public Member Functions

 ScAnnotationObj (ScDocShell *pDocSh, const ScAddress &rPos)
 
virtual ~ScAnnotationObj () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent () override
 XChild. More...
 
virtual void SAL_CALL setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override
 
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursor () override
 XSimpleText. More...
 
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursorByRange (const css::uno::Reference< css::text::XTextRange > &aTextPosition) override
 
virtual void SAL_CALL insertString (const css::uno::Reference< css::text::XTextRange > &xRange, const OUString &aString, sal_Bool bAbsorb) override
 
virtual void SAL_CALL insertControlCharacter (const css::uno::Reference< css::text::XTextRange > &xRange, sal_Int16 nControlCharacter, sal_Bool bAbsorb) override
 
virtual css::uno::Reference< css::text::XText > SAL_CALL getText () override
 XTextRange. More...
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart () override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd () override
 
virtual OUString SAL_CALL getString () override
 
virtual void SAL_CALL setString (const OUString &aString) override
 
virtual css::table::CellAddress SAL_CALL getPosition () override
 XSheetAnnotation. More...
 
virtual OUString SAL_CALL getAuthor () override
 
virtual OUString SAL_CALL getDate () override
 
virtual sal_Bool SAL_CALL getIsVisible () override
 
virtual void SAL_CALL setIsVisible (sal_Bool bIsVisible) override
 
virtual css::uno::Reference< css::drawing::XShape > SAL_CALL getAnnotationShape () override
 XSheetAnnotationShapeSupplier. More...
 
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

SvxUnoTextGetUnoText ()
 
const ScPostItImplGetNote () const
 

Private Attributes

ScDocShellpDocShell
 
ScAddress aCellPos
 
rtl::Reference< SvxUnoTextpUnoText
 

Detailed Description

Definition at line 36 of file notesuno.hxx.

Constructor & Destructor Documentation

◆ ScAnnotationObj()

ScAnnotationObj::ScAnnotationObj ( ScDocShell pDocSh,
const ScAddress rPos 
)

Definition at line 56 of file notesuno.cxx.

◆ ~ScAnnotationObj()

ScAnnotationObj::~ScAnnotationObj ( )
overridevirtual

Definition at line 66 of file notesuno.cxx.

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

Member Function Documentation

◆ createTextCursor()

uno::Reference< text::XTextCursor > SAL_CALL ScAnnotationObj::createTextCursor ( )
overridevirtual

XSimpleText.

Definition at line 105 of file notesuno.cxx.

References SvxUnoTextBase::createTextCursor(), and GetUnoText().

◆ createTextCursorByRange()

uno::Reference< text::XTextCursor > SAL_CALL ScAnnotationObj::createTextCursorByRange ( const css::uno::Reference< css::text::XTextRange > &  aTextPosition)
overridevirtual

Definition at line 112 of file notesuno.cxx.

References SvxUnoTextBase::createTextCursorByRange(), and GetUnoText().

◆ getAnnotationShape()

uno::Reference< drawing::XShape > SAL_CALL ScAnnotationObj::getAnnotationShape ( )
overridevirtual

XSheetAnnotationShapeSupplier.

Definition at line 206 of file notesuno.cxx.

References aCellPos, and ImplGetNote().

◆ getAuthor()

OUString SAL_CALL ScAnnotationObj::getAuthor ( )
overridevirtual

Definition at line 176 of file notesuno.cxx.

References ScPostIt::GetAuthor(), and ImplGetNote().

◆ getDate()

OUString SAL_CALL ScAnnotationObj::getDate ( )
overridevirtual

Definition at line 183 of file notesuno.cxx.

References ScPostIt::GetDate(), and ImplGetNote().

◆ getEnd()

uno::Reference< text::XTextRange > SAL_CALL ScAnnotationObj::getEnd ( )
overridevirtual

Definition at line 158 of file notesuno.cxx.

References SvxUnoTextBase::getEnd(), and GetUnoText().

◆ getImplementationName()

virtual OUString SAL_CALL ScAnnotationObj::getImplementationName ( )
overridevirtual

XServiceInfo.

◆ getIsVisible()

sal_Bool SAL_CALL ScAnnotationObj::getIsVisible ( )
overridevirtual

Definition at line 190 of file notesuno.cxx.

References ImplGetNote(), and ScPostIt::IsCaptionShown().

◆ getParent()

uno::Reference< uno::XInterface > SAL_CALL ScAnnotationObj::getParent ( )
overridevirtual

XChild.

find and reset existing object ???

Definition at line 84 of file notesuno.cxx.

References aCellPos, and pDocShell.

◆ getPosition()

table::CellAddress SAL_CALL ScAnnotationObj::getPosition ( )
overridevirtual

XSheetAnnotation.

Definition at line 166 of file notesuno.cxx.

References aCellPos, ScAddress::Col(), ScAddress::Row(), and ScAddress::Tab().

◆ getStart()

uno::Reference< text::XTextRange > SAL_CALL ScAnnotationObj::getStart ( )
overridevirtual

Definition at line 152 of file notesuno.cxx.

References SvxUnoTextBase::getStart(), and GetUnoText().

◆ getString()

OUString SAL_CALL ScAnnotationObj::getString ( )
overridevirtual

Definition at line 120 of file notesuno.cxx.

References SvxUnoTextBase::getString(), and GetUnoText().

◆ getSupportedServiceNames()

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

◆ getText()

uno::Reference< text::XText > SAL_CALL ScAnnotationObj::getText ( )
overridevirtual

XTextRange.

Definition at line 146 of file notesuno.cxx.

References SvxUnoTextBase::getText(), and GetUnoText().

◆ GetUnoText()

SvxUnoText & ScAnnotationObj::GetUnoText ( )
private

◆ ImplGetNote()

const ScPostIt * ScAnnotationObj::ImplGetNote ( ) const
private

◆ insertControlCharacter()

void SAL_CALL ScAnnotationObj::insertControlCharacter ( const css::uno::Reference< css::text::XTextRange > &  xRange,
sal_Int16  nControlCharacter,
sal_Bool  bAbsorb 
)
overridevirtual

Definition at line 139 of file notesuno.cxx.

References GetUnoText(), and SvxUnoTextBase::insertControlCharacter().

◆ insertString()

void SAL_CALL ScAnnotationObj::insertString ( const css::uno::Reference< css::text::XTextRange > &  xRange,
const OUString &  aString,
sal_Bool  bAbsorb 
)
overridevirtual

Definition at line 132 of file notesuno.cxx.

References GetUnoText(), and SvxUnoTextBase::insertString().

◆ Notify()

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

Reimplemented from SfxListener.

Definition at line 74 of file notesuno.cxx.

References SfxHint::GetId(), and pDocShell.

◆ setIsVisible()

void SAL_CALL ScAnnotationObj::setIsVisible ( sal_Bool  bIsVisible)
overridevirtual

Definition at line 197 of file notesuno.cxx.

References aCellPos, ScDocShell::GetDocFunc(), pDocShell, and ScDocFunc::ShowNote().

◆ setParent()

void SAL_CALL ScAnnotationObj::setParent ( const css::uno::Reference< css::uno::XInterface > &  Parent)
overridevirtual

exception or what ??!

Definition at line 97 of file notesuno.cxx.

◆ setString()

void SAL_CALL ScAnnotationObj::setString ( const OUString &  aString)
overridevirtual

Definition at line 126 of file notesuno.cxx.

References GetUnoText(), and SvxUnoTextBase::setString().

◆ supportsService()

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

Member Data Documentation

◆ aCellPos

ScAddress ScAnnotationObj::aCellPos
private

◆ pDocShell

ScDocShell* ScAnnotationObj::pDocShell
private

Definition at line 99 of file notesuno.hxx.

Referenced by getParent(), GetUnoText(), ImplGetNote(), Notify(), setIsVisible(), and ~ScAnnotationObj().

◆ pUnoText

rtl::Reference<SvxUnoText> ScAnnotationObj::pUnoText
private

Definition at line 101 of file notesuno.hxx.

Referenced by GetUnoText().


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