summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-27 12:12:04 +0000
committerEike Rathke <erack@redhat.com>2014-01-27 13:01:03 +0000
commit1abf248b24d0804bed361acdb4052cefbd1a918f (patch)
tree1b95519ca8b2e21e784fb0f95dde9e7883003447
parentc16eef21687f5d1f9b2bd789b1cf8b953bf2cd33 (diff)
Resolves: fdo#74057 wordlist truncated on left
Change-Id: Ia6b8c02fc0d79fef974f5a0462856f05256c76f8 (cherry picked from commit 58dfc97ca697875c36b7ddf14f5505a93d7b9cf8) Reviewed-on: https://gerrit.libreoffice.org/7688 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r--cui/source/inc/autocdlg.hxx2
-rw-r--r--cui/source/tabpages/autocdlg.cxx19
2 files changed, 19 insertions, 2 deletions
diff --git a/cui/source/inc/autocdlg.hxx b/cui/source/inc/autocdlg.hxx
index faf5af02dc7d..86c718ed1d64 100644
--- a/cui/source/inc/autocdlg.hxx
+++ b/cui/source/inc/autocdlg.hxx
@@ -258,6 +258,7 @@ private:
LanguageType eOldLanguage,
LanguageType eNewLanguage);
+ void setTabs();
public:
OfaAutocorrReplacePage( Window* pParent, const SfxItemSet& rSet );
~OfaAutocorrReplacePage();
@@ -269,6 +270,7 @@ public:
virtual void ActivatePage( const SfxItemSet& );
virtual int DeactivatePage( SfxItemSet* pSet = 0 );
virtual void Resize();
+ virtual void StateChanged(StateChangedType nStateChange);
void SetLanguage(LanguageType eSet);
void DeleteEntry(OUString sShort, OUString sLong);
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 5f5c69ec1306..b5c1e77fa648 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -869,13 +869,28 @@ OfaAutocorrReplacePage::OfaAutocorrReplacePage( Window* pParent,
m_pShortED->SetSpaces(true);
}
-void OfaAutocorrReplacePage::Resize()
+void OfaAutocorrReplacePage::setTabs()
{
- SfxTabPage::Resize();
m_pReplaceTLB->SetTab(0, m_pShortED->GetPosPixel().X(), MAP_PIXEL);
m_pReplaceTLB->SetTab(1, m_pReplaceED->GetPosPixel().X(), MAP_PIXEL);
}
+void OfaAutocorrReplacePage::StateChanged(StateChangedType nStateChange)
+{
+ SfxTabPage::StateChanged(nStateChange);
+
+ if (nStateChange == STATE_CHANGE_INITSHOW)
+ {
+ setTabs();
+ }
+}
+
+void OfaAutocorrReplacePage::Resize()
+{
+ SfxTabPage::Resize();
+ setTabs();
+}
+
OfaAutocorrReplacePage::~OfaAutocorrReplacePage()
{
aDoubleStringTable.clear();