summaryrefslogtreecommitdiff
path: root/sd/source/ui/annotations
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2024-04-18 22:41:04 +0900
committerTomaž Vajngerl <quikee@gmail.com>2024-04-26 10:43:56 +0200
commitd126f57fd4bbba7ac0e4218ed30524cb9bbb5859 (patch)
treeed2ee1488dc018be981613fea88a9313e3acbd89 /sd/source/ui/annotations
parentd119f504bf279a1bbe2e5840cfd5cbfa295fca8f (diff)
annot: move UndoAnnotation and deps. to svx, adapt svx Annotation
This moves UndoAnnotation and dependent classes to svx, refactor the code to in sdr::annotaion::Annotation so annotations in sd module still work as they have before. Change-Id: I3769069a636c30c55bc1fcf2406d990f1b44baa6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166493 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sd/source/ui/annotations')
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index 8a844e8dc118..41f86dda60ee 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -231,7 +231,7 @@ void SAL_CALL AnnotationManagerImpl::notifyEvent( const css::document::EventObje
Reference< XAnnotation > xAnnotation( aEvent.Source, uno::UNO_QUERY );
if ( auto pAnnotation = dynamic_cast<sd::Annotation*>(xAnnotation.get()) )
{
- LOKCommentNotify(CommentNotificationType::Remove, &mrBase, pAnnotation);
+ LOKCommentNotify(sdr::annotation::CommentNotificationType::Remove, &mrBase, *pAnnotation);
}
}
@@ -426,7 +426,7 @@ void AnnotationManagerImpl::ExecuteEditAnnotation(SfxRequest const & rReq)
xText->setString(sText);
}
- LOKCommentNotifyAll(CommentNotificationType::Modify, xAnnotation);
+ LOKCommentNotifyAll(sdr::annotation::CommentNotificationType::Modify, *xAnnotation);
}
if (mpDoc->IsUndoEnabled())
@@ -523,7 +523,7 @@ void AnnotationManagerImpl::InsertAnnotation(const OUString& rText)
mpDoc->EndUndo();
// Tell our LOK clients about new comment added
- LOKCommentNotifyAll(CommentNotificationType::Add, xAnnotation);
+ LOKCommentNotifyAll(sdr::annotation::CommentNotificationType::Add, *xAnnotation);
UpdateTags(true);
SelectAnnotation( xAnnotation, true );
@@ -621,7 +621,7 @@ void AnnotationManagerImpl::ExecuteReplyToAnnotation( SfxRequest const & rReq )
xAnnotation->setDateTime( getCurrentDateTime() );
// Tell our LOK clients about this (comment modification)
- LOKCommentNotifyAll(CommentNotificationType::Modify, xAnnotation);
+ LOKCommentNotifyAll(sdr::annotation::CommentNotificationType::Modify, *xAnnotation);
if( mpDoc->IsUndoEnabled() )
mpDoc->EndUndo();