Bump version to 6.4-15
[LibreOffice.git] / include / svx / ClassificationCommon.hxx
blob52fc3db393e8ec86bdd50c7cf8106cca5356ad5a
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/.
9 */
11 #ifndef INCLUDED_SVX_CLASSIFICATIONCOMMON_HXX
12 #define INCLUDED_SVX_CLASSIFICATIONCOMMON_HXX
14 #include <sal/config.h>
15 #include <svx/svxdllapi.h>
16 #include <vector>
17 #include <sfx2/classificationhelper.hxx>
19 namespace com::sun::star::beans
21 class XPropertyContainer;
23 namespace com::sun::star::beans
25 struct Property;
27 namespace svx
29 class ClassificationResult;
32 namespace svx
34 namespace classification
36 SVX_DLLPUBLIC OUString
37 convertClassificationResultToString(std::vector<svx::ClassificationResult> const& rResults);
39 SVX_DLLPUBLIC OUString
40 getProperty(css::uno::Reference<css::beans::XPropertyContainer> const& rxPropertyContainer,
41 OUString const& rName);
43 SVX_DLLPUBLIC bool containsProperty(css::uno::Sequence<css::beans::Property> const& rProperties,
44 OUString const& rName);
46 SVX_DLLPUBLIC void
47 removeAllProperties(css::uno::Reference<css::beans::XPropertyContainer> const& rxPropertyContainer);
49 SVX_DLLPUBLIC bool addOrInsertDocumentProperty(
50 css::uno::Reference<css::beans::XPropertyContainer> const& rxPropertyContainer,
51 OUString const& rsKey, OUString const& rsValue);
53 SVX_DLLPUBLIC void insertFullTextualRepresentationAsDocumentProperty(
54 css::uno::Reference<css::beans::XPropertyContainer> const& rxPropertyContainer,
55 sfx::ClassificationKeyCreator const& rKeyCreator,
56 std::vector<svx::ClassificationResult> const& rResults);
58 SVX_DLLPUBLIC void
59 insertCreationOrigin(css::uno::Reference<css::beans::XPropertyContainer> const& rxPropertyContainer,
60 sfx::ClassificationKeyCreator const& rKeyCreator,
61 sfx::ClassificationCreationOrigin eOrigin);
63 } // end svx::classification namespace
65 #endif // INCLUDED_SVX_CLASSIFICATIONCOMMON_HXX
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */