Bump version to 6.4-15
[LibreOffice.git] / include / svx / ClassificationEditView.hxx
blob614b1d2b6a0995c7754b439592d452e6778892b7
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/svxdllapi.h>
16 #include <svx/weldeditview.hxx>
17 #include <editeng/svxenum.hxx>
18 #include <vcl/customweld.hxx>
20 namespace svx {
22 class ClassificationEditEngine final : public EditEngine
24 public:
25 ClassificationEditEngine(SfxItemPool* pItemPool);
27 virtual OUString CalcFieldValue(const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, boost::optional<Color>& rTxtColor, boost::optional<Color>& rFldColor) override;
30 class SVX_DLLPUBLIC ClassificationEditView final : public WeldEditView
32 public:
33 ClassificationEditView();
34 virtual ~ClassificationEditView() override;
36 virtual void makeEditEngine() override;
38 void SetCharAttributes();
40 void InsertField(const SvxFieldItem& rField);
42 void InvertSelectionWeight();
44 void SetNumType(SvxNumType eNumType);
46 ClassificationEditEngine& getEditEngine()
48 return *static_cast<ClassificationEditEngine*>(m_xEditEngine.get());
51 EditView& getEditView()
53 return *m_xEditView;
57 } // end svx namespace
59 #endif // INCLUDED_SVX_CLASSIFICATIONEDITVIEW_HXX
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */