summaryrefslogtreecommitdiff
path: root/sw/inc/rdfhelper.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-09-17 11:37:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-09-17 18:01:18 +0200
commitc69ad797408fd93afec2c5ac47ba94eba5e4c81c (patch)
treeddb8b42bd10a72e84b57f880270004f435060b33 /sw/inc/rdfhelper.hxx
parent08b8585f66073d90e5e11db9b8b3fbcbdaf2adc2 (diff)
use more concrete UNO types in sw
Change-Id: I0f84ce7116441abb2359ee756c912ae663baa2fe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173545 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/rdfhelper.hxx')
-rw-r--r--sw/inc/rdfhelper.hxx21
1 files changed, 11 insertions, 10 deletions
diff --git a/sw/inc/rdfhelper.hxx b/sw/inc/rdfhelper.hxx
index ee346c499fe2..164f99683495 100644
--- a/sw/inc/rdfhelper.hxx
+++ b/sw/inc/rdfhelper.hxx
@@ -12,6 +12,7 @@
#include <map>
+#include <rtl/ref.hxx>
#include <rtl/ustring.hxx>
#include "swdllapi.h"
@@ -20,7 +21,7 @@
#include <com/sun/star/uno/Sequence.h>
class SwTextNode;
-
+class SwXTextDocument;
namespace com::sun::star {
namespace frame {
class XModel;
@@ -43,44 +44,44 @@ public:
/// Gets all graph-names in RDF of a given type.
static css::uno::Sequence<css::uno::Reference<css::rdf::XURI>>
- getGraphNames(const css::uno::Reference<css::frame::XModel>& xModel, const OUString& rType);
+ getGraphNames(const rtl::Reference<SwXTextDocument>& xModel, const OUString& rType);
/// Gets all (XResource, key, value) statements in RDF graphs given the graph-names.
static std::map<OUString, OUString>
- getStatements(const css::uno::Reference<css::frame::XModel>& xModel,
+ getStatements(const rtl::Reference<SwXTextDocument>& xModel,
const css::uno::Sequence<css::uno::Reference<css::rdf::XURI>>& rGraphNames,
const css::uno::Reference<css::rdf::XResource>& xSubject);
/// Gets all (XResource, key, value) statements in RDF graphs of type rType.
static std::map<OUString, OUString>
- getStatements(const css::uno::Reference<css::frame::XModel>& xModel, const OUString& rType,
+ getStatements(const rtl::Reference<SwXTextDocument>& xModel, const OUString& rType,
const css::uno::Reference<css::rdf::XResource>& xSubject);
/// Add an (XResource, key, value) statement in the graph of type rType -- or if it does not exist, create a graph at rPath first.
- static void addStatement(const css::uno::Reference<css::frame::XModel>& xModel,
+ static void addStatement(const rtl::Reference<SwXTextDocument>& xModel,
const OUString& rType, const OUString& rPath,
const css::uno::Reference<css::rdf::XResource>& xSubject,
const OUString& rKey, const OUString& rValue);
/// Check if a graph of type rType exists.
- static bool hasMetadataGraph(const css::uno::Reference<css::frame::XModel>& xModel,
+ static bool hasMetadataGraph(const rtl::Reference<SwXTextDocument>& xModel,
const OUString& rType);
/// Remove an (XResource, key, value) statement in the graph of type rType, if it exists.
- static void removeStatement(const css::uno::Reference<css::frame::XModel>& xModel,
+ static void removeStatement(const rtl::Reference<SwXTextDocument>& xModel,
const OUString& rType,
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,
+ static void cloneStatements(const rtl::Reference<SwXTextDocument>& xSrcModel,
+ const rtl::Reference<SwXTextDocument>& 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,
+ static void clearStatements(const rtl::Reference<SwXTextDocument>& xModel,
const OUString& rType,
const css::uno::Reference<css::rdf::XResource>& xSubject);