summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-06 14:57:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:09 +0100
commit7a895dab6d95f05053c822e0f492287bb60585a5 (patch)
tree7b631f0a2f0cb2049518fb9ec71cb019be3ce2df /cui
parent6fc18f9679cb1c344221450ac802d66ac09efe58 (diff)
implement override [height|width]-request
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/chardlg.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index 100054ada02f..c5e7496cb975 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -347,6 +347,20 @@ SvxCharNamePage::SvxCharNamePage( Window* pParent, const SfxItemSet& rInSet )
m_pWestFontLanguageLB->setChildProperty<sal_Int32>(sLeftAttach, 3);
m_pWestFontLanguageLB->setChildProperty<sal_Int32>(sTopAttach, 2);
+ if (!bCJK)
+ {
+ //10 lines
+ sal_Int32 nHeight = m_pWestFontSizeLB->CalcWindowSizePixel(10);
+
+ rtl::OString sHeightRequest(RTL_CONSTASCII_STRINGPARAM("height-request"));
+ m_pWestFontNameLB->setChildProperty<sal_Int32>(sHeightRequest,
+ nHeight);
+ m_pWestFontStyleLB->setChildProperty<sal_Int32>(sHeightRequest,
+ nHeight);
+ m_pWestFontSizeLB->setChildProperty<sal_Int32>(sHeightRequest,
+ nHeight);
+ }
+
m_pEastLine = new FixedLine(m_pGrid, CUI_RES( FL_EAST ) );
m_pEastLine->setChildProperty<sal_Int32>(sLeftAttach, 0);
m_pEastLine->setChildProperty<sal_Int32>(sTopAttach, 3);