1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
11 #ifndef INCLUDED_SVX_CLASSIFICATIONCOMMON_HXX
12 #define INCLUDED_SVX_CLASSIFICATIONCOMMON_HXX
14 #include <sal/config.h>
15 #include <svx/svxdllapi.h>
17 #include <sfx2/classificationhelper.hxx>
19 namespace com::sun::star::beans
21 class XPropertyContainer
;
23 namespace com::sun::star::beans
29 class ClassificationResult
;
32 namespace svx::classification
34 SVX_DLLPUBLIC OUString
35 convertClassificationResultToString(std::vector
<svx::ClassificationResult
> const& rResults
);
37 SVX_DLLPUBLIC OUString
38 getProperty(css::uno::Reference
<css::beans::XPropertyContainer
> const& rxPropertyContainer
,
39 OUString
const& rName
);
41 SVX_DLLPUBLIC
bool containsProperty(css::uno::Sequence
<css::beans::Property
> const& rProperties
,
42 std::u16string_view rName
);
45 removeAllProperties(css::uno::Reference
<css::beans::XPropertyContainer
> const& rxPropertyContainer
);
47 SVX_DLLPUBLIC
bool addOrInsertDocumentProperty(
48 css::uno::Reference
<css::beans::XPropertyContainer
> const& rxPropertyContainer
,
49 OUString
const& rsKey
, OUString
const& rsValue
);
51 SVX_DLLPUBLIC
void insertFullTextualRepresentationAsDocumentProperty(
52 css::uno::Reference
<css::beans::XPropertyContainer
> const& rxPropertyContainer
,
53 sfx::ClassificationKeyCreator
const& rKeyCreator
,
54 std::vector
<svx::ClassificationResult
> const& rResults
);
57 insertCreationOrigin(css::uno::Reference
<css::beans::XPropertyContainer
> const& rxPropertyContainer
,
58 sfx::ClassificationKeyCreator
const& rKeyCreator
,
59 sfx::ClassificationCreationOrigin eOrigin
);
61 } // end svx::classification namespace
63 #endif // INCLUDED_SVX_CLASSIFICATIONCOMMON_HXX
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */