Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / sw / inc / rdfhelper.hxx
blobbb644964089eeb255c75ab60a303a51a990972a3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_SW_INC_RDFHELPER_HXX
11 #define INCLUDED_SW_INC_RDFHELPER_HXX
13 #include <map>
15 #include <rtl/ustring.hxx>
17 #include <swdllapi.h>
19 class SwTextNode;
21 /// Provides access to RDF metadata on core objects.
22 class SW_DLLPUBLIC SwRDFHelper
24 public:
25 /// Gets all (rTextNode, key, value) statements in RDF graphs of type rType.
26 static std::map<OUString, OUString> getTextNodeStatements(const OUString& rType, const SwTextNode& rTextNode);
27 /// Add an (rTextNode, key, value) statement in the graph of type rType -- or if it does not exist, create a graph at rPath first.
28 static void addTextNodeStatement(const OUString& rType, const OUString& rPath, SwTextNode& rTextNode, const OUString& rKey, const OUString& rValue);
31 #endif // INCLUDED_SW_INC_RDFHELPER_HXX
33 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */