summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2017-11-10 09:00:52 -0500
committerAshod Nakashian <ashnakash@gmail.com>2017-11-11 17:03:02 +0100
commit8b312e9d69874d1c4d1e76acaf95f27da5072455 (patch)
tree1b2fa6d40d86c02d1ec18e5801d2789d00d0cca0 /sw/inc
parenteaa7f27ca89d4048934baff6b2c3e1b9d6a5b1a4 (diff)
RDF: support cloning of all entries for a given type
This is currently unused, but can come in handy later on when we implement copy/pasting of metadata fields. Change-Id: Idd4d6c186fa5c75e06f0ab1b0dfcbc85b6343116 Reviewed-on: https://gerrit.libreoffice.org/44602 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/rdfhelper.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/inc/rdfhelper.hxx b/sw/inc/rdfhelper.hxx
index bf72a5be40be..5ec56b8a1935 100644
--- a/sw/inc/rdfhelper.hxx
+++ b/sw/inc/rdfhelper.hxx
@@ -55,6 +55,13 @@ public:
const css::uno::Reference<css::rdf::XResource>& xSubject,
const OUString& rKey, const OUString& rValue);
+ /// Clone all statements in the graph of type rType, if any exists, from one subject to another.
+ static void cloneStatements(const css::uno::Reference<css::frame::XModel>& xSrcModel,
+ const css::uno::Reference<css::frame::XModel>& xDstModel,
+ const OUString& rType,
+ const css::uno::Reference<css::rdf::XResource>& xSrcSubject,
+ const css::uno::Reference<css::rdf::XResource>& xDstSubject);
+
/// Remove all statements in the graph of type rType, if any exists.
static void clearStatements(const css::uno::Reference<css::frame::XModel>& xModel,
const OUString& rType,