Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / svx / source / dialog / ClassificationEditView.hxx
blob225efe1243db68d0ab9887edd28954ed47ce1979
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_CLASSIFICATIONEDITVIEW_HXX
12 #define INCLUDED_SVX_CLASSIFICATIONEDITVIEW_HXX
14 #include <sal/config.h>
15 #include <svx/weldeditview.hxx>
17 namespace svx {
19 class ClassificationEditEngine final : public EditEngine
21 public:
22 ClassificationEditEngine(SfxItemPool* pItemPool);
24 virtual OUString CalcFieldValue(const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, std::optional<Color>& rTxtColor, std::optional<Color>& rFldColor, std::optional<FontLineStyle>& rFldLineStyle) override;
27 class ClassificationEditView final : public WeldEditView
29 public:
30 ClassificationEditView();
31 virtual ~ClassificationEditView() override;
33 virtual void makeEditEngine() override;
35 void InsertField(const SvxFieldItem& rField);
37 void InvertSelectionWeight();
39 ClassificationEditEngine& getEditEngine()
41 return *static_cast<ClassificationEditEngine*>(m_xEditEngine.get());
44 EditView& getEditView()
46 return *m_xEditView;
50 } // end svx namespace
52 #endif // INCLUDED_SVX_CLASSIFICATIONEDITVIEW_HXX
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */