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

#include <annotationtag.hxx>

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

Public Member Functions

 AnnotationTag (AnnotationManagerImpl &rManager, ::sd::View &rView, const css::uno::Reference< css::office::XAnnotation > &xAnnotation, Color const &rColor, int nIndex, const vcl::Font &rFont)
 
virtual ~AnnotationTag () override
 
virtual bool MouseButtonDown (const MouseEvent &, SmartHdl &) override
 returns true if the AnnotationTag handled the event. More...
 
virtual bool KeyInput (const KeyEvent &rKEvt) override
 returns true if the SmartTag consumes this event. More...
 
virtual bool Command (const CommandEvent &rCEvt) override
 returns true if the SmartTag consumes this event. More...
 
virtual sal_Int32 GetMarkablePointCount () const override
 
virtual sal_Int32 GetMarkedPointCount () const override
 
virtual bool MarkPoint (SdrHdl &rHdl, bool bUnmark) override
 
virtual void CheckPossibilities () override
 
virtual bool MarkPoints (const ::tools::Rectangle *pRect, bool bUnmark) override
 
void Move (int nDX, int nDY)
 
bool OnMove (const KeyEvent &rKEvt)
 
BitmapEx CreateAnnotationBitmap (bool)
 
const css::uno::Reference< css::office::XAnnotation > & GetAnnotation () const
 
void OpenPopup (bool bEdit)
 
void ClosePopup ()
 
- Public Member Functions inherited from sd::SmartTag
 SmartTag (::sd::View &rView)
 
virtual ~SmartTag () override
 
virtual bool MouseButtonDown (const MouseEvent &, SmartHdl &)
 returns true if the SmartTag consumes this event. More...
 
virtual bool KeyInput (const KeyEvent &rKEvt)
 returns true if the SmartTag consumes this event. More...
 
virtual bool Command (const CommandEvent &rCEvt)
 returns true if the SmartTag consumes this event. More...
 
bool isSelected () const
 returns true if this smart tag is currently selected More...
 
::sd::ViewgetView () const
 
- Public Member Functions inherited from sd::SimpleReferenceComponent
 SimpleReferenceComponent ()
 
void acquire ()
 @ATTENTION The results are undefined if, for any individual instance of SimpleReferenceComponent, the total number of calls to acquire() exceeds the total number of calls to release() by a platform dependent amount (which, hopefully, is quite large). More...
 
void release ()
 
void Dispose ()
 
bool isDisposed () const
 

Private Member Functions

virtual void addCustomHandles (SdrHdlList &rHandlerList) override
 
virtual bool getContext (SdrViewContext &rContext) override
 
virtual void disposing () override
 
virtual void select () override
 
virtual void deselect () override
 
 DECL_LINK (WindowEventHandler, VclWindowEvent &, void)
 
 DECL_LINK (PopupModeEndHdl, weld::Popover &, void)
 

Private Attributes

AnnotationManagerImplmrManager
 
css::uno::Reference< css::office::XAnnotation > mxAnnotation
 
std::unique_ptr< AnnotationWindowmpAnnotationWindow
 
Color maColor
 
int mnIndex
 
const vcl::FontmrFont
 
Size maSize
 
VclPtr< vcl::WindowmpListenWindow
 
Point maMouseDownPos
 

Additional Inherited Members

virtual sal_Int32 GetMarkablePointCount () const
 
virtual sal_Int32 GetMarkedPointCount () const
 
virtual bool MarkPoint (SdrHdl &rHdl, bool bUnmark)
 
virtual void CheckPossibilities ()
 
virtual bool MarkPoints (const ::tools::Rectangle *pRect, bool bUnmark)
 
virtual void addCustomHandles (SdrHdlList &rHandlerList)
 
virtual void select ()
 
virtual void deselect ()
 
virtual bool getContext (SdrViewContext &rContext)
 
virtual void disposing () override
 
- Protected Member Functions inherited from sd::SimpleReferenceComponent
virtual void disposing ()
 
virtual ~SimpleReferenceComponent ()
 
- Protected Attributes inherited from sd::SmartTag
::sd::ViewmrView
 
bool mbSelected
 

Detailed Description

Definition at line 34 of file annotationtag.hxx.

Constructor & Destructor Documentation

◆ AnnotationTag()

sd::AnnotationTag::AnnotationTag ( AnnotationManagerImpl rManager,
::sd::View rView,
const css::uno::Reference< css::office::XAnnotation > &  xAnnotation,
Color const &  rColor,
int  nIndex,
const vcl::Font rFont 
)

Definition at line 277 of file annotationtag.cxx.

References maColor, mnIndex, and nIndex.

◆ ~AnnotationTag()

sd::AnnotationTag::~AnnotationTag ( )
overridevirtual

Member Function Documentation

◆ addCustomHandles()

void sd::AnnotationTag::addCustomHandles ( SdrHdlList rHandlerList)
overrideprivatevirtual

◆ CheckPossibilities()

void sd::AnnotationTag::CheckPossibilities ( )
overridevirtual

Reimplemented from sd::SmartTag.

Definition at line 439 of file annotationtag.cxx.

◆ ClosePopup()

void sd::AnnotationTag::ClosePopup ( )

Definition at line 616 of file annotationtag.cxx.

References mpAnnotationWindow.

Referenced by deselect(), and disposing().

◆ Command()

bool sd::AnnotationTag::Command ( const CommandEvent rCEvt)
overridevirtual

◆ CreateAnnotationBitmap()

BitmapEx sd::AnnotationTag::CreateAnnotationBitmap ( bool  bSelected)

◆ DECL_LINK() [1/2]

sd::AnnotationTag::DECL_LINK ( PopupModeEndHdl  ,
weld::Popover ,
void   
)
private

◆ DECL_LINK() [2/2]

sd::AnnotationTag::DECL_LINK ( WindowEventHandler  ,
VclWindowEvent ,
void   
)
private

◆ deselect()

void sd::AnnotationTag::deselect ( )
overrideprivatevirtual

◆ disposing()

void sd::AnnotationTag::disposing ( )
overrideprivatevirtual

Reimplemented from sd::SmartTag.

Definition at line 485 of file annotationtag.cxx.

References ClosePopup(), sd::SmartTag::disposing(), LINK, mpListenWindow, and mxAnnotation.

◆ GetAnnotation()

const css::uno::Reference< css::office::XAnnotation > & sd::AnnotationTag::GetAnnotation ( ) const
inline

◆ getContext()

bool sd::AnnotationTag::getContext ( SdrViewContext rContext)
overrideprivatevirtual

Reimplemented from sd::SmartTag.

Definition at line 463 of file annotationtag.cxx.

◆ GetMarkablePointCount()

sal_Int32 sd::AnnotationTag::GetMarkablePointCount ( ) const
overridevirtual

Reimplemented from sd::SmartTag.

Definition at line 443 of file annotationtag.cxx.

◆ GetMarkedPointCount()

sal_Int32 sd::AnnotationTag::GetMarkedPointCount ( ) const
overridevirtual

Reimplemented from sd::SmartTag.

Definition at line 448 of file annotationtag.cxx.

◆ KeyInput()

bool sd::AnnotationTag::KeyInput ( const KeyEvent rKEvt)
overridevirtual

◆ MarkPoint()

bool sd::AnnotationTag::MarkPoint ( SdrHdl rHdl,
bool  bUnmark 
)
overridevirtual

Reimplemented from sd::SmartTag.

Definition at line 453 of file annotationtag.cxx.

◆ MarkPoints()

bool sd::AnnotationTag::MarkPoints ( const ::tools::Rectangle pRect,
bool  bUnmark 
)
overridevirtual

Reimplemented from sd::SmartTag.

Definition at line 458 of file annotationtag.cxx.

◆ MouseButtonDown()

bool sd::AnnotationTag::MouseButtonDown ( const MouseEvent rMEvt,
SmartHdl  
)
overridevirtual

◆ Move()

void sd::AnnotationTag::Move ( int  nDX,
int  nDY 
)

◆ OnMove()

bool sd::AnnotationTag::OnMove ( const KeyEvent rKEvt)

◆ OpenPopup()

void sd::AnnotationTag::OpenPopup ( bool  bEdit)

◆ select()

void sd::AnnotationTag::select ( )
overrideprivatevirtual

Member Data Documentation

◆ maColor

Color sd::AnnotationTag::maColor
private

Definition at line 79 of file annotationtag.hxx.

Referenced by CreateAnnotationBitmap().

◆ maMouseDownPos

Point sd::AnnotationTag::maMouseDownPos
private

Definition at line 84 of file annotationtag.hxx.

Referenced by MouseButtonDown().

◆ maSize

Size sd::AnnotationTag::maSize
private

Definition at line 82 of file annotationtag.hxx.

Referenced by CreateAnnotationBitmap(), OpenPopup(), and select().

◆ mnIndex

int sd::AnnotationTag::mnIndex
private

Definition at line 80 of file annotationtag.hxx.

Referenced by CreateAnnotationBitmap().

◆ mpAnnotationWindow

std::unique_ptr<AnnotationWindow> sd::AnnotationTag::mpAnnotationWindow
private

Definition at line 78 of file annotationtag.hxx.

Referenced by ClosePopup(), and OpenPopup().

◆ mpListenWindow

VclPtr<vcl::Window> sd::AnnotationTag::mpListenWindow
private

Definition at line 83 of file annotationtag.hxx.

Referenced by disposing(), and MouseButtonDown().

◆ mrFont

const vcl::Font& sd::AnnotationTag::mrFont
private

Definition at line 81 of file annotationtag.hxx.

Referenced by CreateAnnotationBitmap().

◆ mrManager

AnnotationManagerImpl& sd::AnnotationTag::mrManager
private

Definition at line 76 of file annotationtag.hxx.

Referenced by Command(), deselect(), KeyInput(), Move(), and select().

◆ mxAnnotation

css::uno::Reference< css::office::XAnnotation > sd::AnnotationTag::mxAnnotation
private

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