summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-02-19 18:51:13 +0530
committerPranav Kant <pranavk@collabora.co.uk>2017-02-20 13:58:13 +0530
commit80d1ada96010a943ff1793139d176086f4598d98 (patch)
tree9348b9b80c924bb5765ee6a2c87d8e12e6c80abb /sd/source/ui/unoidl
parent46be94e3dc721d936de9699c1e24e5853b00c0fd (diff)
sd lok: Use IDs in ViewAnnotations output
Change-Id: Ifb1f55ad5a1d21d63f9b37a83e3218c40dfa0b59
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 3fcc45b58b0f..efd1b2dfd476 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -78,6 +78,7 @@
#include "ViewShellBase.hxx"
#include <UnoDocumentSettings.hxx>
+#include <Annotation.hxx>
#include <drawdoc.hxx>
#include <glob.hrc>
#include <sdresid.hxx>
@@ -2380,7 +2381,7 @@ OUString SdXImpressDocument::getPostIts()
uno::Reference<office::XAnnotation> xAnnotation(aPageAnnotation);
boost::property_tree::ptree aAnnotation;
-
+ aAnnotation.put("id", sd::getAnnotationId(xAnnotation));
aAnnotation.put("author", xAnnotation->getAuthor());
aAnnotation.put("dateTime", utl::toISO8601(xAnnotation->getDateTime()));
uno::Reference<text::XText> xText(xAnnotation->getTextRange());