LibreOffice Module sd (master) 1
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
sd::Annotation Class Referencefinal

#include <Annotation.hxx>

Inheritance diagram for sd::Annotation:
[legend]
Collaboration diagram for sd::Annotation:
[legend]

Public Member Functions

 Annotation (const css::uno::Reference< css::uno::XComponentContext > &context, SdPage *pPage)
 
 Annotation (const Annotation &)=delete
 
Annotationoperator= (const Annotation &)=delete
 
SdPageGetPage () const
 
SdrModelGetModel ()
 
sal_uInt32 GetId () const
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &type) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) 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
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual css::uno::Any SAL_CALL getAnchor () override
 
virtual css::geometry::RealPoint2D SAL_CALL getPosition () override
 
virtual void SAL_CALL setPosition (const css::geometry::RealPoint2D &the_value) override
 
virtual css::geometry::RealSize2D SAL_CALL getSize () override
 
virtual void SAL_CALL setSize (const css::geometry::RealSize2D &_size) override
 
virtual OUString SAL_CALL getAuthor () override
 
virtual void SAL_CALL setAuthor (const OUString &the_value) override
 
virtual OUString SAL_CALL getInitials () override
 
virtual void SAL_CALL setInitials (const OUString &the_value) override
 
virtual css::util::DateTime SAL_CALL getDateTime () override
 
virtual void SAL_CALL setDateTime (const css::util::DateTime &the_value) override
 
virtual css::uno::Reference< css::text::XText > SAL_CALL getTextRange () override
 
void createChangeUndo ()
 
void createCustomAnnotationMarker ()
 
CustomAnnotationMarkergetCustomAnnotationMarker ()
 
bool hasCustomAnnotationMarker () const
 
void setIsFreeText (bool value)
 
bool isFreeText () const
 

Static Public Attributes

static sal_uInt32 m_nLastId = 1
 

Private Member Functions

virtual void SAL_CALL disposing () override
 

Private Attributes

sal_uInt32 m_nId
 
SdPagempPage
 
css::geometry::RealPoint2D m_Position
 
css::geometry::RealSize2D m_Size
 
OUString m_Author
 
OUString m_Initials
 
css::util::DateTime m_DateTime
 
rtl::Reference< TextApiObjectm_TextRange
 
std::unique_ptr< CustomAnnotationMarkerm_pCustomAnnotationMarker
 
bool m_bIsFreeText
 
- Private Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Additional Inherited Members

- Protected Types inherited from cppu::PropertySetMixinImpl
enum  Implements
 
- Protected Member Functions inherited from cppu::PropertySetMixin< css::office::XAnnotation >
 PropertySetMixin (css::uno::Reference< css::uno::XComponentContext > const &context, Implements implements, css::uno::Sequence< rtl::OUString > const &absentOptional)
 
 ~PropertySetMixin ()
 
- Protected Member Functions inherited from cppu::PropertySetMixinImpl
void prepareSet (rtl::OUString const &propertyName, css::uno::Any const &oldValue, css::uno::Any const &newValue, BoundListeners *boundListeners)
 
void dispose ()
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &type) SAL_OVERRIDE
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () SAL_OVERRIDE
 
virtual void SAL_CALL setPropertyValue (rtl::OUString const &propertyName, css::uno::Any const &value) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL getPropertyValue (rtl::OUString const &propertyName) SAL_OVERRIDE
 
virtual void SAL_CALL addPropertyChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XPropertyChangeListener > const &listener) SAL_OVERRIDE
 
virtual void SAL_CALL removePropertyChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XPropertyChangeListener > const &listener) SAL_OVERRIDE
 
virtual void SAL_CALL addVetoableChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XVetoableChangeListener > const &listener) SAL_OVERRIDE
 
virtual void SAL_CALL removeVetoableChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XVetoableChangeListener > const &listener) SAL_OVERRIDE
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 handle, css::uno::Any const &value) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 handle) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPropertyValues () SAL_OVERRIDE
 
virtual void SAL_CALL setPropertyValues (css::uno::Sequence< css::beans::PropertyValue > const &props) SAL_OVERRIDE
 
- Protected Attributes inherited from cppu::PropertySetMixinImpl
 IMPLEMENTS_PROPERTY_SET
 
 IMPLEMENTS_FAST_PROPERTY_SET
 
 IMPLEMENTS_PROPERTY_ACCESS
 

Detailed Description

Definition at line 76 of file Annotation.hxx.

Constructor & Destructor Documentation

◆ Annotation() [1/2]

sd::Annotation::Annotation ( const css::uno::Reference< css::uno::XComponentContext > &  context,
SdPage pPage 
)
explicit

◆ Annotation() [2/2]

sd::Annotation::Annotation ( const Annotation )
delete

Member Function Documentation

◆ acquire()

virtual void SAL_CALL sd::Annotation::acquire ( )
inlineoverridevirtualnoexcept

Definition at line 93 of file Annotation.hxx.

◆ addPropertyChangeListener()

void SAL_CALL sd::Annotation::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

◆ addVetoableChangeListener()

void SAL_CALL sd::Annotation::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

◆ createChangeUndo()

void sd::Annotation::createChangeUndo ( )

◆ createCustomAnnotationMarker()

void sd::Annotation::createCustomAnnotationMarker ( )
inline

Definition at line 121 of file Annotation.hxx.

References m_pCustomAnnotationMarker.

Referenced by SdPdfFilter::Import().

◆ disposing()

void SAL_CALL sd::Annotation::disposing ( )
overrideprivatevirtual

Definition at line 134 of file Annotation.cxx.

References mpPage.

◆ getAnchor()

uno::Any SAL_CALL sd::Annotation::getAnchor ( )
overridevirtual

Definition at line 185 of file Annotation.cxx.

References m_aMutex, and mpPage.

◆ getAuthor()

OUString SAL_CALL sd::Annotation::getAuthor ( )
overridevirtual

Definition at line 231 of file Annotation.cxx.

References m_aMutex.

◆ getCustomAnnotationMarker()

CustomAnnotationMarker & sd::Annotation::getCustomAnnotationMarker ( )
inline

Definition at line 126 of file Annotation.hxx.

References m_pCustomAnnotationMarker.

◆ getDateTime()

util::DateTime SAL_CALL sd::Annotation::getDateTime ( )
overridevirtual

Definition at line 263 of file Annotation.cxx.

References m_aMutex.

◆ GetId()

sal_uInt32 sd::Annotation::GetId ( ) const
inline

Definition at line 89 of file Annotation.hxx.

References m_nId.

Referenced by sd::getAnnotationId().

◆ getInitials()

OUString SAL_CALL sd::Annotation::getInitials ( )
overridevirtual

Definition at line 247 of file Annotation.cxx.

References m_aMutex.

◆ GetModel()

SdrModel * sd::Annotation::GetModel ( )
inline

Definition at line 88 of file Annotation.hxx.

References SdrPage::getSdrModelFromSdrPage(), and mpPage.

◆ GetPage()

SdPage * sd::Annotation::GetPage ( ) const
inline

Definition at line 87 of file Annotation.hxx.

References mpPage.

Referenced by sd::getAnnotationPage().

◆ getPosition()

geometry::RealPoint2D SAL_CALL sd::Annotation::getPosition ( )
overridevirtual

Definition at line 198 of file Annotation.cxx.

References m_aMutex.

◆ getPropertySetInfo()

uno::Reference< beans::XPropertySetInfo > SAL_CALL sd::Annotation::getPropertySetInfo ( )
overridevirtual

Reimplemented from cppu::PropertySetMixinImpl.

Definition at line 150 of file Annotation.cxx.

◆ getPropertyValue()

uno::Any SAL_CALL sd::Annotation::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

Definition at line 160 of file Annotation.cxx.

◆ getSize()

geometry::RealSize2D SAL_CALL sd::Annotation::getSize ( )
overridevirtual

Definition at line 215 of file Annotation.cxx.

References m_aMutex.

◆ getTextRange()

uno::Reference< text::XText > SAL_CALL sd::Annotation::getTextRange ( )
overridevirtual

Definition at line 296 of file Annotation.cxx.

References m_aMutex, and mpPage.

◆ hasCustomAnnotationMarker()

bool sd::Annotation::hasCustomAnnotationMarker ( ) const
inline

Definition at line 131 of file Annotation.hxx.

References m_pCustomAnnotationMarker.

◆ isFreeText()

bool sd::Annotation::isFreeText ( ) const
inline

Definition at line 138 of file Annotation.hxx.

References m_bIsFreeText.

◆ operator=()

Annotation & sd::Annotation::operator= ( const Annotation )
delete

◆ queryInterface()

uno::Any sd::Annotation::queryInterface ( css::uno::Type const &  type)
overridevirtual

Reimplemented from cppu::PropertySetMixinImpl.

Definition at line 144 of file Annotation.cxx.

References type.

◆ release()

virtual void SAL_CALL sd::Annotation::release ( )
inlineoverridevirtualnoexcept

Definition at line 94 of file Annotation.hxx.

◆ removePropertyChangeListener()

void SAL_CALL sd::Annotation::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

◆ removeVetoableChangeListener()

void SAL_CALL sd::Annotation::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

◆ setAuthor()

void SAL_CALL sd::Annotation::setAuthor ( const OUString &  the_value)
overridevirtual

Definition at line 237 of file Annotation.cxx.

References m_aMutex.

◆ setDateTime()

void SAL_CALL sd::Annotation::setDateTime ( const css::util::DateTime &  the_value)
overridevirtual

Definition at line 269 of file Annotation.cxx.

References m_aMutex.

◆ setInitials()

void SAL_CALL sd::Annotation::setInitials ( const OUString &  the_value)
overridevirtual

Definition at line 253 of file Annotation.cxx.

References m_aMutex.

◆ setIsFreeText()

void sd::Annotation::setIsFreeText ( bool  value)
inline

Definition at line 136 of file Annotation.hxx.

References m_bIsFreeText, and value.

Referenced by SdPdfFilter::Import().

◆ setPosition()

void SAL_CALL sd::Annotation::setPosition ( const css::geometry::RealPoint2D &  the_value)
overridevirtual

Definition at line 204 of file Annotation.cxx.

References m_aMutex.

◆ setPropertyValue()

void SAL_CALL sd::Annotation::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

Definition at line 155 of file Annotation.cxx.

References cppu::PropertySetMixinImpl::setPropertyValue().

◆ setSize()

void SAL_CALL sd::Annotation::setSize ( const css::geometry::RealSize2D &  _size)
overridevirtual

Definition at line 221 of file Annotation.cxx.

References m_aMutex.

Member Data Documentation

◆ m_Author

OUString sd::Annotation::m_Author
private

Definition at line 153 of file Annotation.hxx.

◆ m_bIsFreeText

bool sd::Annotation::m_bIsFreeText
private

Definition at line 159 of file Annotation.hxx.

Referenced by isFreeText(), and setIsFreeText().

◆ m_DateTime

css::util::DateTime sd::Annotation::m_DateTime
private

Definition at line 155 of file Annotation.hxx.

◆ m_Initials

OUString sd::Annotation::m_Initials
private

Definition at line 154 of file Annotation.hxx.

◆ m_nId

sal_uInt32 sd::Annotation::m_nId
private

Definition at line 149 of file Annotation.hxx.

Referenced by GetId().

◆ m_nLastId

sal_uInt32 sd::Annotation::m_nLastId = 1
static

Definition at line 85 of file Annotation.hxx.

◆ m_pCustomAnnotationMarker

std::unique_ptr<CustomAnnotationMarker> sd::Annotation::m_pCustomAnnotationMarker
private

◆ m_Position

css::geometry::RealPoint2D sd::Annotation::m_Position
private

Definition at line 151 of file Annotation.hxx.

◆ m_Size

css::geometry::RealSize2D sd::Annotation::m_Size
private

Definition at line 152 of file Annotation.hxx.

◆ m_TextRange

rtl::Reference<TextApiObject> sd::Annotation::m_TextRange
private

Definition at line 156 of file Annotation.hxx.

◆ mpPage

SdPage* sd::Annotation::mpPage
private

Definition at line 150 of file Annotation.hxx.

Referenced by GetModel(), and GetPage().


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