Kaydet (Commit) 260df50a authored tarafından Tsutomu Uchino's avatar Tsutomu Uchino Kaydeden (comit) Caolán McNamara

Related: #i56998# use FUNIT_PERCENT instead of FUNIT_CUSTOM...

with percent CustomUnitText on metric fields

(cherry picked from commit 4f5b26a9)

Conflicts:
	chart2/source/controller/dialogs/tp_3D_SceneGeometry.src
	chart2/source/controller/dialogs/tp_SeriesToAxis.src
	cui/source/dialogs/zoom.src
	cui/source/options/optgdlg.src
	cui/source/tabpages/autocdlg.src
	cui/source/tabpages/backgrnd.src
	cui/source/tabpages/chardlg.src
	cui/source/tabpages/grfpage.src
	cui/source/tabpages/numpages.src
	cui/source/tabpages/paragrph.src
	cui/source/tabpages/tabarea.src
	cui/source/tabpages/tabline.src
	cui/source/tabpages/tparea.cxx
	cui/source/tabpages/tplnedef.cxx
	sc/source/ui/pagedlg/pagedlg.src
	sd/source/ui/animations/CustomAnimationDialog.src
	starmath/source/dialog.cxx
	starmath/source/smres.src
	svx/source/dialog/fontwork.cxx
	svx/source/sidebar/area/AreaPropertyPanel.src
	svx/source/sidebar/graphic/GraphicPropertyPanel.src
	svx/source/sidebar/line/LinePropertyPanel.src
	svx/source/tbxctrls/fontworkgallery.src
	sw/source/ui/frmdlg/column.src
	sw/source/ui/misc/pgfnote.src

Change-Id: I8acc5f7fc80d4366750ad38fabbf49b02f013f7c
üst 4d1b8459
...@@ -321,8 +321,7 @@ ModalDialog RID_CUI_DIALOG_COLORPICKER ...@@ -321,8 +321,7 @@ ModalDialog RID_CUI_DIALOG_COLORPICKER
Spin = TRUE ; Spin = TRUE ;
Maximum = 100 ; Maximum = 100 ;
Last = 100 ; Last = 100 ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
}; };
FixedText CT_BRIGHTNESS FixedText CT_BRIGHTNESS
...@@ -343,8 +342,7 @@ ModalDialog RID_CUI_DIALOG_COLORPICKER ...@@ -343,8 +342,7 @@ ModalDialog RID_CUI_DIALOG_COLORPICKER
Spin = TRUE ; Spin = TRUE ;
Maximum = 100 ; Maximum = 100 ;
Last = 100 ; Last = 100 ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
}; };
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
...@@ -376,8 +374,7 @@ ModalDialog RID_CUI_DIALOG_COLORPICKER ...@@ -376,8 +374,7 @@ ModalDialog RID_CUI_DIALOG_COLORPICKER
Spin = TRUE ; Spin = TRUE ;
Maximum = 100 ; Maximum = 100 ;
Last = 100 ; Last = 100 ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
}; };
FixedText CT_MAGENTA FixedText CT_MAGENTA
...@@ -398,8 +395,7 @@ ModalDialog RID_CUI_DIALOG_COLORPICKER ...@@ -398,8 +395,7 @@ ModalDialog RID_CUI_DIALOG_COLORPICKER
Spin = TRUE ; Spin = TRUE ;
Maximum = 100 ; Maximum = 100 ;
Last = 100 ; Last = 100 ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
}; };
FixedText CT_YELLOW FixedText CT_YELLOW
...@@ -420,8 +416,7 @@ ModalDialog RID_CUI_DIALOG_COLORPICKER ...@@ -420,8 +416,7 @@ ModalDialog RID_CUI_DIALOG_COLORPICKER
Spin = TRUE ; Spin = TRUE ;
Maximum = 100 ; Maximum = 100 ;
Last = 100 ; Last = 100 ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
}; };
FixedText CT_KEY FixedText CT_KEY
...@@ -442,8 +437,7 @@ ModalDialog RID_CUI_DIALOG_COLORPICKER ...@@ -442,8 +437,7 @@ ModalDialog RID_CUI_DIALOG_COLORPICKER
Spin = TRUE ; Spin = TRUE ;
Maximum = 100 ; Maximum = 100 ;
Last = 100 ; Last = 100 ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
}; };
// ------------------------------------------------------ // ------------------------------------------------------
......
...@@ -174,8 +174,7 @@ ModalDialog RID_SVX_GRFFILTER_DLG_SOLARIZE ...@@ -174,8 +174,7 @@ ModalDialog RID_SVX_GRFFILTER_DLG_SOLARIZE
Spin = TRUE ; Spin = TRUE ;
Maximum = 100 ; Maximum = 100 ;
StrictFormat = TRUE ; StrictFormat = TRUE ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
Last = 100 ; Last = 100 ;
SpinSize = 1 ; SpinSize = 1 ;
}; };
...@@ -255,8 +254,7 @@ ModalDialog RID_SVX_GRFFILTER_DLG_SEPIA ...@@ -255,8 +254,7 @@ ModalDialog RID_SVX_GRFFILTER_DLG_SEPIA
Minimum = 1 ; Minimum = 1 ;
Maximum = 100 ; Maximum = 100 ;
StrictFormat = TRUE ; StrictFormat = TRUE ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
First = 1 ; First = 1 ;
Last = 100 ; Last = 100 ;
SpinSize = 1 ; SpinSize = 1 ;
......
...@@ -445,7 +445,7 @@ IMPL_LINK( SvxLineDefTabPage, ChangeMetricHdl_Impl, void *, p ) ...@@ -445,7 +445,7 @@ IMPL_LINK( SvxLineDefTabPage, ChangeMetricHdl_Impl, void *, p )
SetMetricValue( *m_pMtrLength2, nTmp2, ePoolUnit ); SetMetricValue( *m_pMtrLength2, nTmp2, ePoolUnit );
SetMetricValue( *m_pMtrDistance, nTmp3, ePoolUnit ); SetMetricValue( *m_pMtrDistance, nTmp3, ePoolUnit );
} }
else if( m_pCbxSynchronize->IsChecked() && m_pMtrLength1->GetUnit() != FUNIT_CUSTOM ) else if( m_pCbxSynchronize->IsChecked() && m_pMtrLength1->GetUnit() != FUNIT_PERCENT )
{ {
long nTmp1, nTmp2, nTmp3; long nTmp1, nTmp2, nTmp3;
...@@ -467,10 +467,9 @@ IMPL_LINK( SvxLineDefTabPage, ChangeMetricHdl_Impl, void *, p ) ...@@ -467,10 +467,9 @@ IMPL_LINK( SvxLineDefTabPage, ChangeMetricHdl_Impl, void *, p )
m_pMtrLength2->SetDecimalDigits( 0 ); m_pMtrLength2->SetDecimalDigits( 0 );
m_pMtrDistance->SetDecimalDigits( 0 ); m_pMtrDistance->SetDecimalDigits( 0 );
m_pMtrLength1->SetUnit( FUNIT_CUSTOM ); m_pMtrLength1->SetUnit( FUNIT_PERCENT );
m_pMtrLength2->SetUnit( FUNIT_CUSTOM ); m_pMtrLength2->SetUnit( FUNIT_PERCENT );
m_pMtrDistance->SetUnit( FUNIT_CUSTOM ); m_pMtrDistance->SetUnit( FUNIT_PERCENT );
SetMetricValue( *m_pMtrLength1, nTmp1, ePoolUnit ); SetMetricValue( *m_pMtrLength1, nTmp1, ePoolUnit );
SetMetricValue( *m_pMtrLength2, nTmp2, ePoolUnit ); SetMetricValue( *m_pMtrLength2, nTmp2, ePoolUnit );
......
...@@ -808,9 +808,8 @@ void SmDistanceDialog::SetCategory(sal_uInt16 nCategory) ...@@ -808,9 +808,8 @@ void SmDistanceDialog::SetCategory(sal_uInt16 nCategory)
sal_uInt16 nDigits; sal_uInt16 nDigits;
if (nCategory < 9) if (nCategory < 9)
{ {
eUnit = FUNIT_CUSTOM; eUnit = FUNIT_PERCENT;
nDigits = 0; nDigits = 0;
pMF->SetCustomUnitText(OUString('%'));
} }
else else
{ {
......
...@@ -303,19 +303,19 @@ Menu RID_VIEWMENU ...@@ -303,19 +303,19 @@ Menu RID_VIEWMENU
{ {
Identifier = SID_ZOOM_50_PERCENT; Identifier = SID_ZOOM_50_PERCENT;
HelpId = CMD_SID_VIEW050 ; HelpId = CMD_SID_VIEW050 ;
Text [ en-US ] = "~View 50%" ; Text [ en-US ] = "~View 50 %" ;
}; };
MenuItem MenuItem
{ {
Identifier = SID_ZOOM_100_PERCENT ; Identifier = SID_ZOOM_100_PERCENT ;
HelpId = CMD_SID_VIEW100 ; HelpId = CMD_SID_VIEW100 ;
Text [ en-US ] = "View ~100%" ; Text [ en-US ] = "View ~100 %" ;
}; };
MenuItem MenuItem
{ {
Identifier = SID_ZOOM_200_PERCENT ; Identifier = SID_ZOOM_200_PERCENT ;
HelpId = CMD_SID_VIEW200 ; HelpId = CMD_SID_VIEW200 ;
Text [ en-US ] = "View ~200%" ; Text [ en-US ] = "View ~200 %" ;
}; };
MenuItem MenuItem
{ {
......
...@@ -95,8 +95,7 @@ DockingWindow RID_SVXDLG_BMPMASK ...@@ -95,8 +95,7 @@ DockingWindow RID_SVXDLG_BMPMASK
Maximum = 99 ; Maximum = 99 ;
Last = 99 ; Last = 99 ;
SpinSize = 1 ; SpinSize = 1 ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
}; };
ListBox LB_1 ListBox LB_1
{ {
...@@ -138,8 +137,7 @@ DockingWindow RID_SVXDLG_BMPMASK ...@@ -138,8 +137,7 @@ DockingWindow RID_SVXDLG_BMPMASK
Maximum = 99 ; Maximum = 99 ;
Last = 99 ; Last = 99 ;
SpinSize = 1 ; SpinSize = 1 ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
}; };
ListBox LB_2 ListBox LB_2
{ {
...@@ -181,8 +179,7 @@ DockingWindow RID_SVXDLG_BMPMASK ...@@ -181,8 +179,7 @@ DockingWindow RID_SVXDLG_BMPMASK
Maximum = 99 ; Maximum = 99 ;
Last = 99 ; Last = 99 ;
SpinSize = 1 ; SpinSize = 1 ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
}; };
ListBox LB_3 ListBox LB_3
{ {
...@@ -224,8 +221,7 @@ DockingWindow RID_SVXDLG_BMPMASK ...@@ -224,8 +221,7 @@ DockingWindow RID_SVXDLG_BMPMASK
Maximum = 99 ; Maximum = 99 ;
Last = 99 ; Last = 99 ;
SpinSize = 1 ; SpinSize = 1 ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
}; };
ListBox LB_4 ListBox LB_4
{ {
......
...@@ -179,9 +179,8 @@ FloatingWindow RID_SVXDLG_CONTOUR ...@@ -179,9 +179,8 @@ FloatingWindow RID_SVXDLG_CONTOUR
Maximum = 99 ; Maximum = 99 ;
Last = 99 ; Last = 99 ;
SpinSize = 1 ; SpinSize = 1 ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
QuickHelpText [ en-US ] = "Color Tolerance" ; QuickHelpText [ en-US ] = "Color Tolerance" ;
CustomUnitText [ en-US ] = "%" ;
}; };
Control CTL_CONTOUR Control CTL_CONTOUR
{ {
......
...@@ -516,7 +516,7 @@ void SvxFontWorkDialog::SetShadow_Impl(const XFormTextShadowItem* pItem, ...@@ -516,7 +516,7 @@ void SvxFontWorkDialog::SetShadow_Impl(const XFormTextShadowItem* pItem,
aMtrFldShadowX.SetMax( 1800); aMtrFldShadowX.SetMax( 1800);
aMtrFldShadowX.SetSpinSize(10); aMtrFldShadowX.SetSpinSize(10);
aMtrFldShadowY.SetUnit(FUNIT_CUSTOM); aMtrFldShadowY.SetUnit(FUNIT_PERCENT);
aMtrFldShadowY.SetDecimalDigits(0); aMtrFldShadowY.SetDecimalDigits(0);
aMtrFldShadowY.SetMin(-999); aMtrFldShadowY.SetMin(-999);
aMtrFldShadowY.SetMax( 999); aMtrFldShadowY.SetMax( 999);
......
...@@ -288,7 +288,6 @@ DockingWindow RID_SVXDLG_FONTWORK ...@@ -288,7 +288,6 @@ DockingWindow RID_SVXDLG_FONTWORK
Last = 5000000 ; Last = 5000000 ;
SpinSize = 50 ; SpinSize = 50 ;
QuickHelpText [ en-US ] = "Distance Y" ; QuickHelpText [ en-US ] = "Distance Y" ;
CustomUnitText [ en-US ] = "%" ;
}; };
ListBox CLB_SHADOW_COLOR ListBox CLB_SHADOW_COLOR
{ {
......
...@@ -240,8 +240,7 @@ DockingWindow RID_SVXFLOAT_3D ...@@ -240,8 +240,7 @@ DockingWindow RID_SVXFLOAT_3D
SpinSize = 5 ; SpinSize = 5 ;
Maximum = 100 ; Maximum = 100 ;
Last = 100 ; Last = 100 ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
}; };
FixedText FT_BACKSCALE FixedText FT_BACKSCALE
{ {
...@@ -261,8 +260,7 @@ DockingWindow RID_SVXFLOAT_3D ...@@ -261,8 +260,7 @@ DockingWindow RID_SVXFLOAT_3D
Spin = TRUE ; Spin = TRUE ;
SpinSize = 5 ; SpinSize = 5 ;
Maximum = 10000 ; Maximum = 10000 ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
Last = 10000 ; Last = 10000 ;
}; };
FixedText FT_END_ANGLE FixedText FT_END_ANGLE
...@@ -1148,8 +1146,7 @@ DockingWindow RID_SVXFLOAT_3D ...@@ -1148,8 +1146,7 @@ DockingWindow RID_SVXFLOAT_3D
TabStop = TRUE ; TabStop = TRUE ;
Repeat = TRUE ; Repeat = TRUE ;
Spin = TRUE ; Spin = TRUE ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
Minimum = 1 ; Minimum = 1 ;
First = 1 ; First = 1 ;
Maximum = 100 ; Maximum = 100 ;
......
...@@ -78,14 +78,13 @@ Control RID_POPUPPANEL_AREAPAGE_TRGR ...@@ -78,14 +78,13 @@ Control RID_POPUPPANEL_AREAPAGE_TRGR
Border = TRUE ; Border = TRUE ;
Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ; Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_CENTER_X ; HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_CENTER_X ;
QuickHelpText [ en-US ] = "Specify the horizontal offset percentage from the center for the gradient shading style. 50% is the horizontal center." ; QuickHelpText [ en-US ] = "Specify the horizontal offset percentage from the center for the gradient shading style. 50 % is the horizontal center." ;
TabStop = TRUE ; TabStop = TRUE ;
Repeat = TRUE ; Repeat = TRUE ;
Spin = TRUE ; Spin = TRUE ;
Maximum = 100 ; Maximum = 100 ;
StrictFormat = TRUE ; StrictFormat = TRUE ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
Last = 100 ; Last = 100 ;
SpinSize = 5 ; SpinSize = 5 ;
}; };
...@@ -99,14 +98,13 @@ Control RID_POPUPPANEL_AREAPAGE_TRGR ...@@ -99,14 +98,13 @@ Control RID_POPUPPANEL_AREAPAGE_TRGR
Border = TRUE ; Border = TRUE ;
Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ; Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_CENTER_Y ; HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_CENTER_Y ;
QuickHelpText [ en-US ] = "Specify the vertical offset percentage from the center for the gradient shading style. 50% is the vertical center." ; QuickHelpText [ en-US ] = "Specify the vertical offset percentage from the center for the gradient shading style. 50 % is the vertical center." ;
TabStop = TRUE ; TabStop = TRUE ;
Repeat = TRUE ; Repeat = TRUE ;
Spin = TRUE ; Spin = TRUE ;
Maximum = 100 ; Maximum = 100 ;
StrictFormat = TRUE ; StrictFormat = TRUE ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
Last = 100 ; Last = 100 ;
SpinSize = 5 ; SpinSize = 5 ;
}; };
...@@ -140,14 +138,13 @@ Control RID_POPUPPANEL_AREAPAGE_TRGR ...@@ -140,14 +138,13 @@ Control RID_POPUPPANEL_AREAPAGE_TRGR
Border = TRUE ; Border = TRUE ;
Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ; Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_SVALUE ; HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_SVALUE ;
QuickHelpText [ en-US ] = "Enter a transparency value for the beginning point of the gradient, where 0% is fully opaque and 100% is fully transparent." ; QuickHelpText [ en-US ] = "Enter a transparency value for the beginning point of the gradient, where 0% is fully opaque and 100 % is fully transparent." ;
TabStop = TRUE ; TabStop = TRUE ;
Repeat = TRUE ; Repeat = TRUE ;
Spin = TRUE ; Spin = TRUE ;
Maximum = 100 ; Maximum = 100 ;
StrictFormat = TRUE ; StrictFormat = TRUE ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
Last = 100 ; Last = 100 ;
SpinSize = 5 ; SpinSize = 5 ;
}; };
...@@ -161,14 +158,13 @@ Control RID_POPUPPANEL_AREAPAGE_TRGR ...@@ -161,14 +158,13 @@ Control RID_POPUPPANEL_AREAPAGE_TRGR
Border = TRUE ; Border = TRUE ;
Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ; Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_EVALUE ; HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_EVALUE ;
QuickHelpText [ en-US ] = "Enter a transparency value for the endpoint of the gradient, where 0% is fully opaque and 100% is fully transparent." ; QuickHelpText [ en-US ] = "Enter a transparency value for the endpoint of the gradient, where 0 % is fully opaque and 100 % is fully transparent." ;
TabStop = TRUE ; TabStop = TRUE ;
Repeat = TRUE ; Repeat = TRUE ;
Spin = TRUE ; Spin = TRUE ;
Maximum = 100 ; Maximum = 100 ;
StrictFormat = TRUE ; StrictFormat = TRUE ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
Last = 100 ; Last = 100 ;
SpinSize = 5 ; SpinSize = 5 ;
}; };
...@@ -188,8 +184,7 @@ Control RID_POPUPPANEL_AREAPAGE_TRGR ...@@ -188,8 +184,7 @@ Control RID_POPUPPANEL_AREAPAGE_TRGR
Spin = TRUE ; Spin = TRUE ;
Maximum = 100 ; Maximum = 100 ;
StrictFormat = TRUE ; StrictFormat = TRUE ;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%" ;
Last = 100 ; Last = 100 ;
SpinSize = 5 ; SpinSize = 5 ;
}; };
......
...@@ -296,8 +296,7 @@ Control RID_POPUPPANEL_PARAPAGE_LINESPACING ...@@ -296,8 +296,7 @@ Control RID_POPUPPANEL_PARAPAGE_LINESPACING
Maximum = 200; Maximum = 200;
Value = 100; Value = 100;
StrictFormat = TRUE; StrictFormat = TRUE;
Unit = FUNIT_CUSTOM ; Unit = FUNIT_PERCENT ;
CustomUnitText = "%";
First = 50; First = 50;
Last = 200; Last = 200;
SpinSize = 1; SpinSize = 1;
......
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