26#include <com/sun/star/office/XAnnotation.hpp>
56void CreateChangeUndo(
const css::uno::Reference< css::office::XAnnotation >& xAnnotation);
58sal_uInt32
getAnnotationId(
const css::uno::Reference <css::office::XAnnotation>& xAnnotation);
63 css::uno::Reference<css::office::XAnnotation>
const & rxAnnotation);
66 css::uno::Reference<css::office::XAnnotation>
const & rxAnnotation);
77 public ::cppu::WeakComponentImplHelper<css::office::XAnnotation>,
81 explicit Annotation(
const css::uno::Reference<css::uno::XComponentContext>& context,
SdPage* pPage );
92 virtual css::uno::Any SAL_CALL
queryInterface(css::uno::Type
const & type)
override;
93 virtual void SAL_CALL
acquire() noexcept
override { ::cppu::WeakComponentImplHelper<css::office::XAnnotation>::acquire(); }
94 virtual void SAL_CALL
release() noexcept
override { ::cppu::WeakComponentImplHelper<css::office::XAnnotation>::release(); }
97 virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL
getPropertySetInfo()
override;
98 virtual void SAL_CALL
setPropertyValue(
const OUString & aPropertyName,
const css::uno::Any & aValue)
override;
99 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString & PropertyName)
override;
100 virtual void SAL_CALL
addPropertyChangeListener(
const OUString & aPropertyName,
const css::uno::Reference<css::beans::XPropertyChangeListener> & xListener)
override;
101 virtual void SAL_CALL
removePropertyChangeListener(
const OUString & aPropertyName,
const css::uno::Reference<css::beans::XPropertyChangeListener> & aListener)
override;
102 virtual void SAL_CALL
addVetoableChangeListener(
const OUString & PropertyName,
const css::uno::Reference<css::beans::XVetoableChangeListener> & aListener)
override;
103 virtual void SAL_CALL
removeVetoableChangeListener(
const OUString & PropertyName,
const css::uno::Reference<css::beans::XVetoableChangeListener> & aListener)
override;
106 virtual css::uno::Any SAL_CALL
getAnchor()
override;
107 virtual css::geometry::RealPoint2D SAL_CALL
getPosition()
override;
108 virtual void SAL_CALL
setPosition(
const css::geometry::RealPoint2D & the_value)
override;
109 virtual css::geometry::RealSize2D SAL_CALL
getSize()
override;
110 virtual void SAL_CALL
setSize(
const css::geometry::RealSize2D& _size)
override;
111 virtual OUString SAL_CALL
getAuthor()
override;
112 virtual void SAL_CALL
setAuthor(
const OUString & the_value)
override;
114 virtual void SAL_CALL
setInitials(
const OUString & the_value)
override;
115 virtual css::util::DateTime SAL_CALL
getDateTime()
override;
116 virtual void SAL_CALL
setDateTime(
const css::util::DateTime & the_value)
override;
117 virtual css::uno::Reference<css::text::XText> SAL_CALL
getTextRange()
override;
147 virtual void SAL_CALL
disposing()
override;
SdrModel & getSdrModelFromSdrPage() const
css::geometry::RealPoint2D m_Position
Annotation & operator=(const Annotation &)=delete
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL disposing() override
virtual void SAL_CALL setPosition(const css::geometry::RealPoint2D &the_value) override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Annotation(const css::uno::Reference< css::uno::XComponentContext > &context, SdPage *pPage)
virtual void SAL_CALL setSize(const css::geometry::RealSize2D &_size) override
void createCustomAnnotationMarker()
virtual css::geometry::RealSize2D SAL_CALL getSize() override
css::util::DateTime m_DateTime
CustomAnnotationMarker & getCustomAnnotationMarker()
virtual void SAL_CALL setAuthor(const OUString &the_value) override
virtual void SAL_CALL setDateTime(const css::util::DateTime &the_value) override
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &type) override
bool hasCustomAnnotationMarker() const
Annotation(const Annotation &)=delete
rtl::Reference< TextApiObject > m_TextRange
virtual css::uno::Reference< css::text::XText > SAL_CALL getTextRange() override
virtual void SAL_CALL release() noexcept override
virtual OUString SAL_CALL getInitials() override
std::unique_ptr< CustomAnnotationMarker > m_pCustomAnnotationMarker
virtual css::util::DateTime SAL_CALL getDateTime() override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Any SAL_CALL getAnchor() override
css::geometry::RealSize2D m_Size
virtual css::geometry::RealPoint2D SAL_CALL getPosition() override
virtual OUString SAL_CALL getAuthor() override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
static sal_uInt32 m_nLastId
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL acquire() noexcept override
virtual void SAL_CALL setInitials(const OUString &the_value) override
void setIsFreeText(bool value)
sal_uInt32 getAnnotationId(const uno::Reference< office::XAnnotation > &xAnnotation)
void createAnnotation(uno::Reference< office::XAnnotation > &xAnnotation, SdPage *pPage)
void LOKCommentNotifyAll(CommentNotificationType nType, uno::Reference< office::XAnnotation > const &rxAnnotation)
const SdPage * getAnnotationPage(const uno::Reference< office::XAnnotation > &xAnnotation)
void CreateChangeUndo(const uno::Reference< office::XAnnotation > &xAnnotation)
std::unique_ptr< SdrUndoAction > CreateUndoInsertOrRemoveAnnotation(const uno::Reference< office::XAnnotation > &xAnnotation, bool bInsert)
void LOKCommentNotify(CommentNotificationType nType, const SfxViewShell *pViewShell, uno::Reference< office::XAnnotation > const &rxAnnotation)
std::vector< basegfx::B2DPolygon > maPolygons