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
;
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
);
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
);
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: */