diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-15 20:18:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-17 10:04:38 +0200 |
commit | 573562e72a5fd85b75006fbc8869c73903a6e504 (patch) | |
tree | 866cfff40b7974ab4a9541214a93c104c10f593b /cui | |
parent | a944d4c2aacafdac78eabd7fb0f8909a66d935eb (diff) |
weld DirectSQLDialog
Change-Id: I8f97068bb38a1fb888d60251f8f25506044c8451
Reviewed-on: https://gerrit.libreoffice.org/78970
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 20 | ||||
-rw-r--r-- | cui/source/inc/SpellDialog.hxx | 1 |
2 files changed, 0 insertions, 21 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index 5e9e6f4d764f..ab03a51c4e15 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -28,8 +28,6 @@ #include <unotools/lingucfg.hxx> #include <editeng/colritem.hxx> #include <editeng/eeitem.hxx> -#include <editeng/fhgtitem.hxx> -#include <editeng/fontitem.hxx> #include <editeng/langitem.hxx> #include <editeng/splwrap.hxx> #include <editeng/unolingu.hxx> @@ -1106,24 +1104,6 @@ SentenceEditWindow_Impl::SentenceEditWindow_Impl() { } -// tdf#127033 want to use UI font so override makeEditEngine to enable that -void SentenceEditWindow_Impl::makeEditEngine() -{ - SfxItemPool* pItemPool = EditEngine::CreatePool(); - - vcl::Font aAppFont(Application::GetSettings().GetStyleSettings().GetAppFont()); - - pItemPool->SetPoolDefaultItem(SvxFontItem(aAppFont.GetFamilyType(),aAppFont.GetFamilyName(),"",PITCH_DONTKNOW,RTL_TEXTENCODING_DONTKNOW,EE_CHAR_FONTINFO)); - pItemPool->SetPoolDefaultItem(SvxFontItem(aAppFont.GetFamilyType(),aAppFont.GetFamilyName(),"",PITCH_DONTKNOW,RTL_TEXTENCODING_DONTKNOW,EE_CHAR_FONTINFO_CJK)); - pItemPool->SetPoolDefaultItem(SvxFontItem(aAppFont.GetFamilyType(),aAppFont.GetFamilyName(),"",PITCH_DONTKNOW,RTL_TEXTENCODING_DONTKNOW,EE_CHAR_FONTINFO_CTL)); - - pItemPool->SetPoolDefaultItem(SvxFontHeightItem(aAppFont.GetFontHeight() * 20, 100, EE_CHAR_FONTHEIGHT)); - pItemPool->SetPoolDefaultItem(SvxFontHeightItem(aAppFont.GetFontHeight() * 20, 100, EE_CHAR_FONTHEIGHT_CJK)); - pItemPool->SetPoolDefaultItem(SvxFontHeightItem(aAppFont.GetFontHeight() * 20, 100, EE_CHAR_FONTHEIGHT_CTL)); - - m_xEditEngine.reset(new EditEngine(pItemPool)); -} - void SentenceEditWindow_Impl::SetDrawingArea(weld::DrawingArea* pDrawingArea) { Size aSize(pDrawingArea->get_approximate_digit_width() * 60, diff --git a/cui/source/inc/SpellDialog.hxx b/cui/source/inc/SpellDialog.hxx index 51b80bd77b79..65de78342f7e 100644 --- a/cui/source/inc/SpellDialog.hxx +++ b/cui/source/inc/SpellDialog.hxx @@ -68,7 +68,6 @@ private: protected: virtual bool KeyInput( const KeyEvent& rKEvt ) override; - virtual void makeEditEngine() override; public: SentenceEditWindow_Impl(); |