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

#include <annotationmanagerimpl.hxx>

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

Public Member Functions

 AnnotationManagerImpl (ViewShellBase &rViewShellBase)
 
void init ()
 
virtual void disposing (std::unique_lock< std::mutex > &) override
 
virtual void SAL_CALL notifyEvent (const css::document::EventObject &Event) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
void ExecuteAnnotation (SfxRequest const &rRequest)
 
void GetAnnotationState (SfxItemSet &rItemSet)
 
void ExecuteInsertAnnotation (SfxRequest const &rReq)
 
void ExecuteDeleteAnnotation (SfxRequest const &rReq)
 
void ExecuteEditAnnotation (SfxRequest const &rReq)
 
void ExecuteReplyToAnnotation (SfxRequest const &rReq)
 
void SelectNextAnnotation (bool bForward)
 
void SelectAnnotation (const css::uno::Reference< css::office::XAnnotation > &xAnnotation, bool bEdit=false)
 
void GetSelectedAnnotation (css::uno::Reference< css::office::XAnnotation > &xAnnotation)
 
void InsertAnnotation (const OUString &rText)
 
void DeleteAnnotation (const css::uno::Reference< css::office::XAnnotation > &xAnnotation)
 
void DeleteAnnotationsByAuthor (std::u16string_view sAuthor)
 
void DeleteAllAnnotations ()
 
void ExecuteAnnotationTagContextMenu (const css::uno::Reference< css::office::XAnnotation > &xAnnotation, weld::Widget *pParent, const ::tools::Rectangle &rContextRect)
 
void onTagSelected (AnnotationTag const &rTag)
 
void onTagDeselected (AnnotationTag const &rTag)
 
void onSelectionChanged ()
 
void addListener ()
 
void removeListener ()
 
void invalidateSlots ()
 
 DECL_LINK (EventMultiplexerListener, tools::EventMultiplexerEvent &, void)
 
 DECL_LINK (UpdateTagsHdl, void *, void)
 
void UpdateTags (bool bSynchron=false)
 
void CreateTags ()
 
void DisposeTags ()
 
SdPageGetNextPage (SdPage const *pPage, bool bForward)
 
SdPageGetCurrentPage ()
 
SdDrawDocumentGetDoc ()
 
void ShowAnnotations (bool bShow)
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Static Public Member Functions

static Color GetColorDark (sal_uInt16 aAuthorIndex)
 
static Color GetColorLight (sal_uInt16 aAuthorIndex)
 
static Color GetColor (sal_uInt16 aAuthorIndex)
 

Private Member Functions

css::uno::Reference< css::office::XAnnotation > GetAnnotationById (sal_uInt32 nAnnotationId)
 

Private Attributes

ViewShellBasemrBase
 
SdDrawDocumentmpDoc
 
std::vector< rtl::Reference< AnnotationTag > > maTagVector
 
css::uno::Reference< css::drawing::XDrawView > mxView
 
css::uno::Reference< css::office::XAnnotationAccess > mxCurrentPage
 
css::uno::Reference< css::office::XAnnotation > mxSelectedAnnotation
 
bool mbShowAnnotations
 
ImplSVEventmnUpdateTagsEvent
 
vcl::Font maFont
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

Definition at line 52 of file annotationmanagerimpl.hxx.

Constructor & Destructor Documentation

◆ AnnotationManagerImpl()

sd::AnnotationManagerImpl::AnnotationManagerImpl ( ViewShellBase rViewShellBase)
explicit

Member Function Documentation

◆ addListener()

void sd::AnnotationManagerImpl::addListener ( )

Definition at line 998 of file annotationmanager.cxx.

References sd::ViewShellBase::GetEventMultiplexer(), LINK, and mrBase.

Referenced by init().

◆ CreateTags()

void sd::AnnotationManagerImpl::CreateTags ( )

◆ DECL_LINK() [1/2]

sd::AnnotationManagerImpl::DECL_LINK ( EventMultiplexerListener  ,
tools::EventMultiplexerEvent ,
void   
)

◆ DECL_LINK() [2/2]

sd::AnnotationManagerImpl::DECL_LINK ( UpdateTagsHdl  ,
void *  ,
void   
)

◆ DeleteAllAnnotations()

void sd::AnnotationManagerImpl::DeleteAllAnnotations ( )

◆ DeleteAnnotation()

void sd::AnnotationManagerImpl::DeleteAnnotation ( const css::uno::Reference< css::office::XAnnotation > &  xAnnotation)

◆ DeleteAnnotationsByAuthor()

void sd::AnnotationManagerImpl::DeleteAnnotationsByAuthor ( std::u16string_view  sAuthor)

◆ DisposeTags()

void sd::AnnotationManagerImpl::DisposeTags ( )

Definition at line 988 of file annotationmanager.cxx.

References maTagVector.

Referenced by disposing().

◆ disposing() [1/2]

void SAL_CALL sd::AnnotationManagerImpl::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 247 of file annotationmanager.cxx.

◆ disposing() [2/2]

void sd::AnnotationManagerImpl::disposing ( std::unique_lock< std::mutex > &  )
overridevirtual

◆ ExecuteAnnotation()

void sd::AnnotationManagerImpl::ExecuteAnnotation ( SfxRequest const &  rRequest)

◆ ExecuteAnnotationTagContextMenu()

void sd::AnnotationManagerImpl::ExecuteAnnotationTagContextMenu ( const css::uno::Reference< css::office::XAnnotation > &  xAnnotation,
weld::Widget pParent,
const ::tools::Rectangle rContextRect 
)

◆ ExecuteDeleteAnnotation()

void sd::AnnotationManagerImpl::ExecuteDeleteAnnotation ( SfxRequest const &  rReq)

◆ ExecuteEditAnnotation()

void sd::AnnotationManagerImpl::ExecuteEditAnnotation ( SfxRequest const &  rReq)

◆ ExecuteInsertAnnotation()

void sd::AnnotationManagerImpl::ExecuteInsertAnnotation ( SfxRequest const &  rReq)

◆ ExecuteReplyToAnnotation()

void sd::AnnotationManagerImpl::ExecuteReplyToAnnotation ( SfxRequest const &  rReq)

◆ GetAnnotationById()

Reference< XAnnotation > sd::AnnotationManagerImpl::GetAnnotationById ( sal_uInt32  nAnnotationId)
private

◆ GetAnnotationState()

void sd::AnnotationManagerImpl::GetAnnotationState ( SfxItemSet rItemSet)

◆ GetColor()

Color sd::AnnotationManagerImpl::GetColor ( sal_uInt16  aAuthorIndex)
static

◆ GetColorDark()

Color sd::AnnotationManagerImpl::GetColorDark ( sal_uInt16  aAuthorIndex)
static

◆ GetColorLight()

Color sd::AnnotationManagerImpl::GetColorLight ( sal_uInt16  aAuthorIndex)
static

◆ GetCurrentPage()

SdPage * sd::AnnotationManagerImpl::GetCurrentPage ( )

◆ GetDoc()

SdDrawDocument * sd::AnnotationManagerImpl::GetDoc ( )
inline

Definition at line 112 of file annotationmanagerimpl.hxx.

References mpDoc.

Referenced by sd::AnnotationTag::Move().

◆ GetNextPage()

SdPage * sd::AnnotationManagerImpl::GetNextPage ( SdPage const *  pPage,
bool  bForward 
)

◆ GetSelectedAnnotation()

void sd::AnnotationManagerImpl::GetSelectedAnnotation ( css::uno::Reference< css::office::XAnnotation > &  xAnnotation)

◆ init()

void sd::AnnotationManagerImpl::init ( )

◆ InsertAnnotation()

void sd::AnnotationManagerImpl::InsertAnnotation ( const OUString &  rText)

◆ invalidateSlots()

void sd::AnnotationManagerImpl::invalidateSlots ( )

Definition at line 874 of file annotationmanager.cxx.

References sd::getBindings(), SfxBindings::Invalidate(), and mrBase.

Referenced by onTagDeselected(), and onTagSelected().

◆ notifyEvent()

void SAL_CALL sd::AnnotationManagerImpl::notifyEvent ( const css::document::EventObject &  Event)
overridevirtual

Definition at line 224 of file annotationmanager.cxx.

References aEvent, sd::LOKCommentNotify(), mrBase, sd::Remove, and UpdateTags().

◆ onSelectionChanged()

void sd::AnnotationManagerImpl::onSelectionChanged ( )

◆ onTagDeselected()

void sd::AnnotationManagerImpl::onTagDeselected ( AnnotationTag const &  rTag)

◆ onTagSelected()

void sd::AnnotationManagerImpl::onTagSelected ( AnnotationTag const &  rTag)

◆ removeListener()

void sd::AnnotationManagerImpl::removeListener ( )

Definition at line 1004 of file annotationmanager.cxx.

References sd::ViewShellBase::GetEventMultiplexer(), LINK, and mrBase.

Referenced by disposing().

◆ SelectAnnotation()

void sd::AnnotationManagerImpl::SelectAnnotation ( const css::uno::Reference< css::office::XAnnotation > &  xAnnotation,
bool  bEdit = false 
)

◆ SelectNextAnnotation()

void sd::AnnotationManagerImpl::SelectNextAnnotation ( bool  bForward)

◆ ShowAnnotations()

void sd::AnnotationManagerImpl::ShowAnnotations ( bool  bShow)

◆ UpdateTags()

void sd::AnnotationManagerImpl::UpdateTags ( bool  bSynchron = false)

Member Data Documentation

◆ maFont

vcl::Font sd::AnnotationManagerImpl::maFont
private

Definition at line 128 of file annotationmanagerimpl.hxx.

Referenced by CreateTags().

◆ maTagVector

std::vector< rtl::Reference< AnnotationTag > > sd::AnnotationManagerImpl::maTagVector
private

Definition at line 120 of file annotationmanagerimpl.hxx.

Referenced by CreateTags(), DisposeTags(), and SelectAnnotation().

◆ mbShowAnnotations

bool sd::AnnotationManagerImpl::mbShowAnnotations
private

◆ mnUpdateTagsEvent

ImplSVEvent* sd::AnnotationManagerImpl::mnUpdateTagsEvent
private

Definition at line 127 of file annotationmanagerimpl.hxx.

Referenced by disposing(), and UpdateTags().

◆ mpDoc

SdDrawDocument* sd::AnnotationManagerImpl::mpDoc
private

◆ mrBase

ViewShellBase& sd::AnnotationManagerImpl::mrBase
private

◆ mxCurrentPage

css::uno::Reference< css::office::XAnnotationAccess > sd::AnnotationManagerImpl::mxCurrentPage
private

Definition at line 123 of file annotationmanagerimpl.hxx.

Referenced by CreateTags(), disposing(), and onSelectionChanged().

◆ mxSelectedAnnotation

css::uno::Reference< css::office::XAnnotation > sd::AnnotationManagerImpl::mxSelectedAnnotation
private

◆ mxView

css::uno::Reference< css::drawing::XDrawView > sd::AnnotationManagerImpl::mxView
private

Definition at line 122 of file annotationmanagerimpl.hxx.

Referenced by disposing(), init(), onSelectionChanged(), and UpdateTags().


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