summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/autocdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/tabpages/autocdlg.cxx')
-rw-r--r--cui/source/tabpages/autocdlg.cxx19
1 files changed, 17 insertions, 2 deletions
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 73348d78f695..3a4acaf4b3bf 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -872,13 +872,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();