summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-03-10 08:18:41 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-03-10 14:31:54 +0100
commit6a114b8ffaac52322c318d2dba543a2ad52cc892 (patch)
tree1306b5d7caedc5a36aded233257e5b4708f21065 /sw/source/uibase
parent1b98d7a3c4f1de39226e44e5b27351d8bfbbe6c0 (diff)
sw: make metadata available in copy result
The "copy" part of copy&paste works in sw by creating a separate SwDoc, then copying the selection of the original SwDoc into it, so filters can easily just export the whole clipboard document. A side effect of this is that the clipboard document has no documnent shell, that would contain the metadata. Add a new member to MetaFieldManager that can store metadata in the clipboard case, let SwTransferable::GetData() write metadata there, and finally adapt the RTF export to look for metadata there as well. Change-Id: Icfe32abca4290af8bf5b24a34160c43d4c87c04a
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index 76ffde6c01b8..0e2b838b397a 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -123,6 +123,7 @@
#include <vcl/svapp.hxx>
#include <swserv.hxx>
#include <calbck.hxx>
+#include <fmtmeta.hxx>
#include <vcl/GraphicNativeTransform.hxx>
#include <vcl/GraphicNativeMetadata.hxx>
@@ -380,6 +381,8 @@ namespace
rDest.ReplaceStyles(rSrc, false);
rSrcWrtShell.Copy(&rDest);
+
+ rDest.GetMetaFieldManager().copyDocumentProperties(rSrc);
}
void lclCheckAndPerformRotation(Graphic& aGraphic)