[Libreoffice-commits] core.git: cui/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Mar 14 14:08:26 UTC 2019
cui/source/tabpages/chardlg.cxx | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
New commits:
commit 4fe72e0fa13dc6032739c9e8493ef24eb5537ea3
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Thu Mar 14 15:38:56 2019 +0200
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Thu Mar 14 16:07:08 2019 +0200
Hide the font preview on iOS
There are enough problems making the dialogs look and work sanely in
the iOS app without the preview being placed completely wrongly and
covering other controls.
Note that I am not actually able to test this here in the master
branch, as the iOS app does not work when built from the master branch
of the online repo (and this master branch of core). The corresponding
change to the cp-6.0 branch of core did work as expected (with the
online bits of the app built from the collabora-online-4 branch).
Change-Id: I383ae6b1fcacb41b20f97e17436aa26531e13c69
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index b260ed85db00..317327e12a07 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -251,7 +251,9 @@ SvxCharNamePage::SvxCharNamePage(TabPageParent pParent, const SfxItemSet& rInSet
, m_xCTLFontFeaturesButton(m_xBuilder->weld_button("ctl_features_button"))
{
m_xPreviewWin.reset(new weld::CustomWeld(*m_xBuilder, "preview", m_aPreviewWin));
-
+#ifdef IOS
+ m_xPreviewWin->hide();
+#endif
m_pImpl->m_aNoStyleText = CuiResId( RID_SVXSTR_CHARNAME_NOSTYLE );
SvtLanguageOptions aLanguageOptions;
@@ -1358,6 +1360,9 @@ SvxCharEffectsPage::SvxCharEffectsPage(TabPageParent pParent, const SfxItemSet&
, m_xA11yWarningFT(m_xBuilder->weld_label("a11ywarning"))
{
m_xPreviewWin.reset(new weld::CustomWeld(*m_xBuilder, "preview", m_aPreviewWin));
+#ifdef IOS
+ m_xPreviewWin->hide();
+#endif
m_xFontColorLB->SetSlotId(SID_ATTR_CHAR_COLOR);
m_xOverlineColorLB->SetSlotId(SID_ATTR_CHAR_COLOR);
m_xUnderlineColorLB->SetSlotId(SID_ATTR_CHAR_COLOR);
@@ -2479,6 +2484,9 @@ SvxCharPositionPage::SvxCharPositionPage(TabPageParent pParent, const SfxItemSet
, m_xPairKerningBtn(m_xBuilder->weld_check_button("pairkerning"))
{
m_xPreviewWin.reset(new weld::CustomWeld(*m_xBuilder, "preview", m_aPreviewWin));
+#ifdef IOS
+ m_xPreviewWin->hide();
+#endif
Initialize();
}
@@ -3073,6 +3081,9 @@ SvxCharTwoLinesPage::SvxCharTwoLinesPage(TabPageParent pParent, const SfxItemSet
m_xEndBracketLB->append(OUString::number(TWOLINE_CLOSE[i].second), CuiResId(TWOLINE_CLOSE[i].first));
m_xPreviewWin.reset(new weld::CustomWeld(*m_xBuilder, "preview", m_aPreviewWin));
+#ifdef IOS
+ m_xPreviewWin->hide();
+#endif
Initialize();
}
More information about the Libreoffice-commits
mailing list