1 /* This file is part of the LibreOffice project.
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #include <editeng/editeng.hxx>
11 #include <unotools/lingucfg.hxx>
13 class SmEditEngine final
: public EditEngine
16 SmEditEngine(SfxItemPool
* pItemPool
);
17 SmEditEngine(const SmEditEngine
&) = delete;
21 * Runs checkZoom and if true runs updateZoom
23 void executeZoom(EditView
* pEditView
= nullptr);
26 * Sets up default font parameters for the item pool.
28 static void setSmItemPool(SfxItemPool
* mpItemPool
, const SvtLinguOptions
& maLangOptions
);
30 // Deal with text scaling
34 sal_Int32 m_nDefaultFontSize
;
37 * Checks if the zoom of smeditwindow has changed.
38 * m_nNewZoom is updated.
39 * @return zoom has changed
44 * Updates the zoom of smeditwindow.
45 * m_nOldZoom is set to m_nNewZoom.
50 // Gather information for more complex tasks
52 ESelection m_aAllSelection
;
55 * Finds the ESelection which contains all the text.
57 void updateAllESelection();
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */