diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-03-07 14:05:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-03-07 14:06:17 +0000 |
commit | 5ecb308bd3e8381d86f57206c0eed5f32d459956 (patch) | |
tree | ad0de6bd4115ef111c24fdd5d6df51cb5f930fc0 /cui/source | |
parent | 69b76536a033cefed8e024557742a9988b949d62 (diff) |
rename setInitialLayoutSize to setOptimalLayoutSize
and add a mechanism to know that we're in true
initial layout mode
Change-Id: I4ff61160ae67a7ccf1cb8b25c41870c195d32b94
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/fontsubs.cxx | 3 | ||||
-rw-r--r-- | cui/source/options/webconninfo.cxx | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index 412a0b828121..f098a287a217 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -371,7 +371,7 @@ void SpellDialog::UpdateBoxes_Impl() } if (bOldShowExplain != (bool) m_pExplainLink->IsVisible() || bOldShowGrammar != (bool) m_pCheckGrammarCB->IsVisible()) - setInitialLayoutSize(); + setOptimalLayoutSize(); } // ----------------------------------------------------------------------- diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx index 2f94e8b95aef..0702c99cfe43 100644 --- a/cui/source/options/fontsubs.cxx +++ b/cui/source/options/fontsubs.cxx @@ -410,7 +410,8 @@ void SvxFontSubstCheckListBox::setColSizes() void SvxFontSubstCheckListBox::Resize() { SvxSimpleTable::Resize(); - setColSizes(); + if (isInitialLayout(this)) + setColSizes(); } void SvxFontSubstCheckListBox::SetTabs() diff --git a/cui/source/options/webconninfo.cxx b/cui/source/options/webconninfo.cxx index eb59b4ec3b87..d56ebb8d94b8 100644 --- a/cui/source/options/webconninfo.cxx +++ b/cui/source/options/webconninfo.cxx @@ -28,6 +28,7 @@ #include <comphelper/processfactory.hxx> #include <comphelper/docpasswordrequest.hxx> #include "svtools/treelistentry.hxx" +#include <vcl/layout.hxx> using namespace ::com::sun::star; @@ -78,7 +79,8 @@ void PasswordTable::Resort( bool bForced ) void PasswordTable::Resize() { SvxSimpleTable::Resize(); - setColWidths(); + if (isInitialLayout(this)) + setColWidths(); } void PasswordTable::setColWidths() |