diff options
author | Andras Timar <atimar@suse.com> | 2012-01-18 23:48:43 +0100 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-18 23:44:54 -0500 |
commit | 1817746ceb22329f0291acc5f6bb9c2a7d7a7fe4 (patch) | |
tree | 25c50908ec0576ead4fa5bc133804db6079f7e5d /sc | |
parent | 9925d8023102d9b1c21da74faca829a61102da6a (diff) |
fdo#44896 accomodate localized text expansion
Signed-off-by: Kohei Yoshida <kohei.yoshida@suse.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/optdlg/tpdefaults.cxx | 11 | ||||
-rw-r--r-- | sc/source/ui/src/optdlg.src | 4 |
2 files changed, 13 insertions, 2 deletions
diff --git a/sc/source/ui/optdlg/tpdefaults.cxx b/sc/source/ui/optdlg/tpdefaults.cxx index bd1cc6847d18..afced223420b 100644 --- a/sc/source/ui/optdlg/tpdefaults.cxx +++ b/sc/source/ui/optdlg/tpdefaults.cxx @@ -50,6 +50,17 @@ ScTpDefaultsOptions::ScTpDefaultsOptions(Window *pParent, const SfxItemSet &rCor rCoreAttrs.Get(GetWhich(SID_SCDOCOPTIONS))); mpLocalOptions.reset(new ScDocOptions(rItem.GetDocOptions())); + long nTxtW = aFtNSheets.GetCtrlTextWidth( aFtNSheets.GetText() ); + long nCtrlW = aFtNSheets.GetSizePixel().Width(); + if ( nTxtW >= nCtrlW ) + { + Size aNewSize = aFtNSheets.GetSizePixel(); + aNewSize.Width() += ( nTxtW - nCtrlW ); + aFtNSheets.SetSizePixel( aNewSize ); + Point aNewPoint = aEdNSheets.GetPosPixel(); + aNewPoint.X() += ( nTxtW - nCtrlW ); + aEdNSheets.SetPosPixel( aNewPoint ); + } aEdNSheets.SetModifyHdl( LINK(this, ScTpDefaultsOptions, NumModifiedHdl) ); } diff --git a/sc/source/ui/src/optdlg.src b/sc/source/ui/src/optdlg.src index a8f82a5c9cc3..801262827576 100644 --- a/sc/source/ui/src/optdlg.src +++ b/sc/source/ui/src/optdlg.src @@ -926,14 +926,14 @@ TabPage RID_SCPAGE_DEFAULTS FixedText FT_NSHEETS { Pos = MAP_APPFONT ( 12 , 16 ) ; - Size = MAP_APPFONT ( 120 , 8 ) ; + Size = MAP_APPFONT ( 110 , 8 ) ; Text [ en-US ] = "Number of worksheets in new document"; }; NumericField ED_NSHEETS { HelpID = "sc:NumericField:RID_SCPAGE_CALC:ED_NSHEETS"; Border = TRUE ; - Pos = MAP_APPFONT ( 150 , 14 ) ; + Pos = MAP_APPFONT ( 130 , 14 ) ; Size = MAP_APPFONT ( 25 , 12 ) ; Minimum = 1 ; Maximum = 32000 ; |