22#include <com/sun/star/document/XEventListener.hpp>
24#include <rtl/ustring.hxx>
49 css::document::XEventListener
60 virtual void disposing (std::unique_lock<std::mutex>&)
override;
63 virtual void SAL_CALL
notifyEvent(
const css::document::EventObject& Event )
override;
64 virtual void SAL_CALL
disposing(
const css::lang::EventObject&
Source )
override;
76 void SelectAnnotation(
const css::uno::Reference< css::office::XAnnotation >& xAnnotation,
bool bEdit =
false );
80 void DeleteAnnotation(
const css::uno::Reference< css::office::XAnnotation >& xAnnotation );
122 css::uno::Reference< css::drawing::XDrawView >
mxView;
130 css::uno::Reference<css::office::XAnnotation>
GetAnnotationById(sal_uInt32 nAnnotationId);
css::uno::Reference< css::drawing::XDrawView > mxView
static Color GetColorLight(sal_uInt16 aAuthorIndex)
void onTagSelected(AnnotationTag const &rTag)
DECL_LINK(EventMultiplexerListener, tools::EventMultiplexerEvent &, void)
void onSelectionChanged()
SdDrawDocument * GetDoc()
css::uno::Reference< css::office::XAnnotation > mxSelectedAnnotation
css::uno::Reference< css::office::XAnnotationAccess > mxCurrentPage
void SelectAnnotation(const css::uno::Reference< css::office::XAnnotation > &xAnnotation, bool bEdit=false)
void ShowAnnotations(bool bShow)
void ExecuteEditAnnotation(SfxRequest const &rReq)
SdPage * GetNextPage(SdPage const *pPage, bool bForward)
css::uno::Reference< css::office::XAnnotation > GetAnnotationById(sal_uInt32 nAnnotationId)
void DeleteAnnotationsByAuthor(std::u16string_view sAuthor)
void DeleteAllAnnotations()
void SelectNextAnnotation(bool bForward)
AnnotationManagerImpl(ViewShellBase &rViewShellBase)
void onTagDeselected(AnnotationTag const &rTag)
ImplSVEvent * mnUpdateTagsEvent
void DeleteAnnotation(const css::uno::Reference< css::office::XAnnotation > &xAnnotation)
void ExecuteDeleteAnnotation(SfxRequest const &rReq)
void GetSelectedAnnotation(css::uno::Reference< css::office::XAnnotation > &xAnnotation)
virtual void disposing(std::unique_lock< std::mutex > &) override
void InsertAnnotation(const OUString &rText)
void ExecuteInsertAnnotation(SfxRequest const &rReq)
static Color GetColorDark(sal_uInt16 aAuthorIndex)
static Color GetColor(sal_uInt16 aAuthorIndex)
void ExecuteAnnotation(SfxRequest const &rRequest)
SdPage * GetCurrentPage()
void ExecuteAnnotationTagContextMenu(const css::uno::Reference< css::office::XAnnotation > &xAnnotation, weld::Widget *pParent, const ::tools::Rectangle &rContextRect)
void UpdateTags(bool bSynchron=false)
DECL_LINK(UpdateTagsHdl, void *, void)
virtual void SAL_CALL notifyEvent(const css::document::EventObject &Event) override
std::vector< rtl::Reference< AnnotationTag > > maTagVector
void GetAnnotationState(SfxItemSet &rItemSet)
void ExecuteReplyToAnnotation(SfxRequest const &rReq)
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
comphelper::WeakComponentImplHelper< css::document::XEventListener > AnnotationManagerImplBase
SfxItemPool * GetAnnotationPool()
css::util::DateTime getCurrentDateTime()
OUString getAnnotationDateTimeString(const Reference< XAnnotation > &xAnnotation)