diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-04-18 09:46:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-04-18 10:06:05 +0100 |
commit | ac1f7e13b03acbe7e98541731eb79c6be7e08c55 (patch) | |
tree | 2b5a37504c624b5e308ab5b5cb658b2a74d3e413 /cui | |
parent | a8e1ed87ff7ccd24ccbcd74cc7689e0eda2fec36 (diff) |
make replace column list align with replace editbox
Change-Id: I23c813bde254c65ce3279784aa0650c879fdd992
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/inc/autocdlg.hxx | 1 | ||||
-rw-r--r-- | cui/source/tabpages/autocdlg.cxx | 15 |
2 files changed, 12 insertions, 4 deletions
diff --git a/cui/source/inc/autocdlg.hxx b/cui/source/inc/autocdlg.hxx index 653c0756e6e1..d953ad2b2d19 100644 --- a/cui/source/inc/autocdlg.hxx +++ b/cui/source/inc/autocdlg.hxx @@ -277,6 +277,7 @@ public: virtual void Reset( const SfxItemSet& rSet ); virtual void ActivatePage( const SfxItemSet& ); virtual int DeactivatePage( SfxItemSet* pSet = 0 ); + virtual void Resize(); void SetLanguage(LanguageType eSet); void DeleteEntry(String sShort, String sLong); diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 08cd644bc4ee..1ea6a9f1233c 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -874,8 +874,8 @@ OfaAutocorrReplacePage::OfaAutocorrReplacePage( Window* pParent, pCompareClass->loadDefaultCollator( aLanguageTag.getLocale(), 0 ); pCharClass = new CharClass( aLanguageTag ); - static long nTabs[] = { 2 /* Tab-Count */, 1, 61 }; - m_pReplaceTLB->SetTabs( &nTabs[0], MAP_APPFONT ); + static long aTabs[] = { 2 /* Tab-Count */, 1, 61 }; + m_pReplaceTLB->SetTabs( &aTabs[0], MAP_APPFONT ); m_pReplaceTLB->SetStyle( m_pReplaceTLB->GetStyle()|WB_HSCROLL|WB_CLIPCHILDREN ); m_pReplaceTLB->SetSelectHdl( LINK(this, OfaAutocorrReplacePage, SelectHdl) ); @@ -886,8 +886,15 @@ OfaAutocorrReplacePage::OfaAutocorrReplacePage( Window* pParent, m_pShortED->SetActionHdl( LINK(this, OfaAutocorrReplacePage, NewDelHdl) ); m_pReplaceED->SetActionHdl( LINK(this, OfaAutocorrReplacePage, NewDelHdl) ); - m_pReplaceED->SetSpaces( sal_True ); - m_pShortED->SetSpaces( sal_True ); + m_pReplaceED->SetSpaces(true); + m_pShortED->SetSpaces(true); +} + +void OfaAutocorrReplacePage::Resize() +{ + SfxTabPage::Resize(); + m_pReplaceTLB->SetTab(0, m_pShortED->GetPosPixel().X(), MAP_PIXEL); + m_pReplaceTLB->SetTab(1, m_pReplaceED->GetPosPixel().X(), MAP_PIXEL); } OfaAutocorrReplacePage::~OfaAutocorrReplacePage() |