Resolves: fdo#74057 wordlist truncated on left
Change-Id: Ia6b8c02fc0d79fef974f5a0462856f05256c76f8
This commit is contained in:
@@ -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);
|
||||
|
@@ -872,11 +872,26 @@ OfaAutocorrReplacePage::OfaAutocorrReplacePage( Window* pParent,
|
||||
m_pShortED->SetSpaces(true);
|
||||
}
|
||||
|
||||
void OfaAutocorrReplacePage::setTabs()
|
||||
{
|
||||
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();
|
||||
m_pReplaceTLB->SetTab(0, m_pShortED->GetPosPixel().X(), MAP_PIXEL);
|
||||
m_pReplaceTLB->SetTab(1, m_pReplaceED->GetPosPixel().X(), MAP_PIXEL);
|
||||
setTabs();
|
||||
}
|
||||
|
||||
OfaAutocorrReplacePage::~OfaAutocorrReplacePage()
|
||||
|
Reference in New Issue
Block a user