50 return &aAnnotationPropertySet_Impl;
60 pDocShell->GetDocument().AddUnoObject(*
this);
76 if ( rHint.
GetId() == SfxHintId::Dying )
113 const uno::Reference<text::XTextRange>& aTextPosition )
133 const OUString& aString,
sal_Bool bAbsorb )
140 sal_Int16 nControlCharacter,
sal_Bool bAbsorb )
169 table::CellAddress aAdr;
180 return pNote ? pNote->
GetAuthor() : OUString();
187 return pNote ? pNote->
GetDate() : OUString();
209 uno::Reference < drawing::XShape > xShape;
212 xShape.set( pCaption->getUnoShape(), uno::UNO_QUERY );
222 uno::Reference<text::XText>() );
SvxUnoText & GetUnoText()
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.
virtual css::uno::Reference< css::drawing::XShape > SAL_CALL getAnnotationShape() override
XSheetAnnotationShapeSupplier.
virtual void SAL_CALL setIsVisible(sal_Bool bIsVisible) override
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent() override
XChild.
virtual void SAL_CALL insertString(const css::uno::Reference< css::text::XTextRange > &xRange, const OUString &aString, sal_Bool bAbsorb) override
virtual sal_Bool SAL_CALL getIsVisible() override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override
virtual css::uno::Reference< css::text::XText > SAL_CALL getText() override
XTextRange.
virtual css::table::CellAddress SAL_CALL getPosition() override
XSheetAnnotation.
virtual OUString SAL_CALL getDate() override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual ~ScAnnotationObj() override
virtual void SAL_CALL setString(const OUString &aString) override
rtl::Reference< SvxUnoText > pUnoText
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursorByRange(const css::uno::Reference< css::text::XTextRange > &aTextPosition) override
virtual void SAL_CALL insertControlCharacter(const css::uno::Reference< css::text::XTextRange > &xRange, sal_Int16 nControlCharacter, sal_Bool bAbsorb) override
virtual OUString SAL_CALL getString() override
const ScPostIt * ImplGetNote() const
virtual OUString SAL_CALL getAuthor() override
really derive cell from range?
SC_DLLPUBLIC bool ShowNote(const ScAddress &rPos, bool bShow)
const ScDocument & GetDocument() const
SC_DLLPUBLIC ScPostIt * GetNote(const ScAddress &rPos)
void RemoveUnoObject(SfxListener &rObject)
Additional class containing cell annotation data.
const OUString & GetDate() const
Returns the creation date of this note.
const OUString & GetAuthor() const
Returns the author date of this note.
bool IsCaptionShown() const
Returns true, if the caption object is visible.
static SdrItemPool & GetGlobalDrawObjectItemPool()
virtual css::uno::Reference< css::text::XText > SAL_CALL getText() override
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursor() 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 setString(const OUString &aString) override
virtual void SAL_CALL insertControlCharacter(const css::uno::Reference< css::text::XTextRange > &xRange, sal_Int16 nControlCharacter, sal_Bool bAbsorb) override
virtual OUString SAL_CALL getString() override
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursorByRange(const css::uno::Reference< css::text::XTextRange > &aTextPosition) override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override
#define SC_SIMPLE_SERVICE_INFO(ClassName, ClassNameAscii, ServiceAscii)
static const SvxItemPropertySet * lcl_GetAnnotationPropertySet()
#define SVX_UNOEDIT_CHAR_PROPERTIES
#define SVX_UNOEDIT_NUMBERING_PROPERTY
#define SVX_UNOEDIT_PARA_PROPERTIES
#define SVX_UNOEDIT_FONT_PROPERTIES