/src/libreoffice/svx/source/dialog/ClassificationEditView.hxx
Line | Count | Source (jump to first uncovered line) |
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 | | #pragma once |
12 | | |
13 | | #include <sal/config.h> |
14 | | #include <svx/weldeditview.hxx> |
15 | | |
16 | | namespace svx { |
17 | | |
18 | | class ClassificationEditEngine final : public EditEngine |
19 | | { |
20 | | public: |
21 | | ClassificationEditEngine(SfxItemPool* pItemPool); |
22 | | |
23 | | 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; |
24 | | }; |
25 | | |
26 | | class ClassificationEditView final : public WeldEditView |
27 | | { |
28 | | public: |
29 | | ClassificationEditView(); |
30 | | virtual ~ClassificationEditView() override; |
31 | | |
32 | | virtual void makeEditEngine() override; |
33 | | |
34 | | void InsertField(const SvxFieldItem& rField); |
35 | | |
36 | | void InvertSelectionWeight(); |
37 | | |
38 | | ClassificationEditEngine& getEditEngine() |
39 | 0 | { |
40 | 0 | return *static_cast<ClassificationEditEngine*>(m_xEditEngine.get()); |
41 | 0 | } |
42 | | |
43 | | EditView& getEditView() |
44 | 0 | { |
45 | 0 | return *m_xEditView; |
46 | 0 | } |
47 | | }; |
48 | | |
49 | | } // end svx namespace |
50 | | |
51 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |