Kaydet (Commit) 1817746c authored tarafından Andras Timar's avatar Andras Timar Kaydeden (comit) Kohei Yoshida

fdo#44896 accomodate localized text expansion

Signed-off-by: 's avatarKohei Yoshida <kohei.yoshida@suse.com>
üst 9925d802
......@@ -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) );
}
......
......@@ -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 ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment