diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-12-02 14:09:42 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-12-02 17:16:16 +0100 |
commit | 5402ac4e006b9aac6944f7fb9f1a9f256a754472 (patch) | |
tree | 6c257cc513629b8b26a3067e926a9cf4f218c8ea /sw/inc/rdfhelper.hxx | |
parent | 6054cfcb6e8531791f3daaf5c78f60050b67e761 (diff) |
sw: initial SwRDFHelper
The purpose of this class is to provide access to the subset of the RDF
metadata that's interesting for core code and for internal filters.
Change-Id: Ibecba302dd839b537a36b9f7a15f012c6ea26869
Diffstat (limited to 'sw/inc/rdfhelper.hxx')
-rw-r--r-- | sw/inc/rdfhelper.hxx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sw/inc/rdfhelper.hxx b/sw/inc/rdfhelper.hxx new file mode 100644 index 000000000000..d9787cb0e402 --- /dev/null +++ b/sw/inc/rdfhelper.hxx @@ -0,0 +1,31 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_SW_INC_RDFHELPER_HXX +#define INCLUDED_SW_INC_RDFHELPER_HXX + +#include <map> + +#include <rtl/ustring.hxx> + +#include <swdllapi.h> + +class SwTextNode; + +/// Provides access to RDF metadata on core objects. +class SW_DLLPUBLIC SwRDFHelper +{ +public: + /// Gets all (rTextNode, key, value) statements in RDF graphs of type rType. + static std::map<OUString, OUString> getTextNodeStatements(const OUString& rType, SwTextNode& rTextNode); +}; + +#endif // INCLUDED_SW_INC_RDFHELPER_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |