LibreOffice Module svx (master) 1
ClassificationCommon.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 *
9 */
10
11#ifndef INCLUDED_SVX_CLASSIFICATIONCOMMON_HXX
12#define INCLUDED_SVX_CLASSIFICATIONCOMMON_HXX
13
14#include <sal/config.h>
15#include <svx/svxdllapi.h>
16#include <vector>
18
20{
21class XPropertyContainer;
22}
24{
25struct Property;
26}
27namespace svx
28{
29class ClassificationResult;
30}
31
32namespace svx::classification
33{
34SVX_DLLPUBLIC OUString
35convertClassificationResultToString(std::vector<svx::ClassificationResult> const& rResults);
36
37SVX_DLLPUBLIC OUString
38getProperty(css::uno::Reference<css::beans::XPropertyContainer> const& rxPropertyContainer,
39 OUString const& rName);
40
41SVX_DLLPUBLIC bool containsProperty(css::uno::Sequence<css::beans::Property> const& rProperties,
42 std::u16string_view rName);
43
45removeAllProperties(css::uno::Reference<css::beans::XPropertyContainer> const& rxPropertyContainer);
46
48 css::uno::Reference<css::beans::XPropertyContainer> const& rxPropertyContainer,
49 OUString const& rsKey, OUString const& rsValue);
50
52 css::uno::Reference<css::beans::XPropertyContainer> const& rxPropertyContainer,
53 sfx::ClassificationKeyCreator const& rKeyCreator,
54 std::vector<svx::ClassificationResult> const& rResults);
55
57insertCreationOrigin(css::uno::Reference<css::beans::XPropertyContainer> const& rxPropertyContainer,
58 sfx::ClassificationKeyCreator const& rKeyCreator,
60
61} // end svx::classification namespace
62
63#endif // INCLUDED_SVX_CLASSIFICATIONCOMMON_HXX
64
65/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ClassificationCreationOrigin
bool containsProperty(uno::Sequence< beans::Property > const &rProperties, std::u16string_view rName)
OUString convertClassificationResultToString(std::vector< svx::ClassificationResult > const &rResults)
OUString getProperty(uno::Reference< beans::XPropertyContainer > const &rxPropertyContainer, OUString const &rName)
void insertFullTextualRepresentationAsDocumentProperty(uno::Reference< beans::XPropertyContainer > const &rxPropertyContainer, sfx::ClassificationKeyCreator const &rKeyCreator, std::vector< svx::ClassificationResult > const &rResults)
void insertCreationOrigin(uno::Reference< beans::XPropertyContainer > const &rxPropertyContainer, sfx::ClassificationKeyCreator const &rKeyCreator, sfx::ClassificationCreationOrigin eOrigin)
bool addOrInsertDocumentProperty(uno::Reference< beans::XPropertyContainer > const &rxPropertyContainer, OUString const &rsKey, OUString const &rsValue)
void removeAllProperties(uno::Reference< beans::XPropertyContainer > const &rxPropertyContainer)
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28