LibreOffice Module starmath (master) 1
smediteng.hxx
Go to the documentation of this file.
1/* This file is part of the LibreOffice project.
2 *
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/.
6 */
7
8#pragma once
9
10#include <editeng/editeng.hxx>
11#include <unotools/lingucfg.hxx>
12
13class SmEditEngine final : public EditEngine
14{
15public:
16 SmEditEngine(SfxItemPool* pItemPool);
17 SmEditEngine(const SmEditEngine&) = delete;
18
19public:
23 void executeZoom(EditView* pEditView = nullptr);
24
28 static void setSmItemPool(SfxItemPool* mpItemPool, const SvtLinguOptions& maLangOptions);
29
30 // Deal with text scaling
31private:
32 sal_Int32 m_nOldZoom;
33 sal_Int32 m_nNewZoom;
35
41 bool checkZoom();
42
48 void updateZoom();
49
50 // Gather information for more complex tasks
51private:
53
58};
59/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
void executeZoom(EditView *pEditView=nullptr)
Runs checkZoom and if true runs updateZoom.
Definition: smediteng.cxx:65
sal_Int32 m_nOldZoom
Definition: smediteng.hxx:32
sal_Int32 m_nNewZoom
Definition: smediteng.hxx:33
ESelection m_aAllSelection
Definition: smediteng.hxx:52
static void setSmItemPool(SfxItemPool *mpItemPool, const SvtLinguOptions &maLangOptions)
Sets up default font parameters for the item pool.
Definition: smediteng.cxx:109
void updateAllESelection()
Finds the ESelection which contains all the text.
Definition: smediteng.cxx:101
bool checkZoom()
Checks if the zoom of smeditwindow has changed.
Definition: smediteng.cxx:60
sal_Int32 m_nDefaultFontSize
Definition: smediteng.hxx:34
SmEditEngine(const SmEditEngine &)=delete
void updateZoom()
Updates the zoom of smeditwindow.
Definition: smediteng.cxx:78
SmEditEngine(SfxItemPool *pItemPool)
Definition: smediteng.cxx:23