LibreOffice Module svx (master)  1
ClassificationEditView.hxx
Go to the documentation of this file.
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 #ifndef INCLUDED_SVX_CLASSIFICATIONEDITVIEW_HXX
12 #define INCLUDED_SVX_CLASSIFICATIONEDITVIEW_HXX
13 
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>
19 
20 namespace svx {
21 
23 {
24 public:
26 
27  virtual OUString CalcFieldValue(const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, std::optional<Color>& rTxtColor, std::optional<Color>& rFldColor) override;
28 };
29 
31 {
32 public:
34  virtual ~ClassificationEditView() override;
35 
36  virtual void makeEditEngine() override;
37 
38  void InsertField(const SvxFieldItem& rField);
39 
40  void InvertSelectionWeight();
41 
43  {
44  return *static_cast<ClassificationEditEngine*>(m_xEditEngine.get());
45  }
46 
48  {
49  return *m_xEditView;
50  }
51 };
52 
53 } // end svx namespace
54 
55 #endif // INCLUDED_SVX_CLASSIFICATIONEDITVIEW_HXX
56 
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual OUString CalcFieldValue(const SvxFieldItem &rField, sal_Int32 nPara, sal_Int32 nPos, std::optional< Color > &rTxtColor, std::optional< Color > &rFldColor) override
virtual void makeEditEngine() override
ClassificationEditEngine(SfxItemPool *pItemPool)
void InsertField(const SvxFieldItem &rField)
std::unique_ptr< EditView > m_xEditView
virtual ~ClassificationEditView() override
std::unique_ptr< EditEngine > m_xEditEngine
ClassificationEditEngine & getEditEngine()
sal_uInt16 nPos