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/weldeditview.hxx>
16 
17 namespace svx {
18 
20 {
21 public:
23 
24  virtual OUString CalcFieldValue(const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, std::optional<Color>& rTxtColor, std::optional<Color>& rFldColor) override;
25 };
26 
28 {
29 public:
31  virtual ~ClassificationEditView() override;
32 
33  virtual void makeEditEngine() override;
34 
35  void InsertField(const SvxFieldItem& rField);
36 
37  void InvertSelectionWeight();
38 
40  {
41  return *static_cast<ClassificationEditEngine*>(m_xEditEngine.get());
42  }
43 
45  {
46  return *m_xEditView;
47  }
48 };
49 
50 } // end svx namespace
51 
52 #endif // INCLUDED_SVX_CLASSIFICATIONEDITVIEW_HXX
53 
54 /* 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