Kaydet (Commit) 813e8bc2 authored tarafından Faisal M. Al-Otaibi's avatar Faisal M. Al-Otaibi

Convert sc general option page to .ui format

Change-Id: I06487f74b8dfdf27b067c1bdb6e47a5fa8babf30
üst 2f7ed5fb
...@@ -85,6 +85,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/scalc,\ ...@@ -85,6 +85,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/scalc,\
sc/uiconfig/scalc/ui/optdefaultpage \ sc/uiconfig/scalc/ui/optdefaultpage \
sc/uiconfig/scalc/ui/printeroptions \ sc/uiconfig/scalc/ui/printeroptions \
sc/uiconfig/scalc/ui/protectsheetdlg \ sc/uiconfig/scalc/ui/protectsheetdlg \
sc/uiconfig/scalc/ui/scgeneralpage \
sc/uiconfig/scalc/ui/sheetprintpage \ sc/uiconfig/scalc/ui/sheetprintpage \
sc/uiconfig/scalc/ui/rightfooterdialog \ sc/uiconfig/scalc/ui/rightfooterdialog \
sc/uiconfig/scalc/ui/rightheaderdialog \ sc/uiconfig/scalc/ui/rightheaderdialog \
......
...@@ -68,7 +68,6 @@ ...@@ -68,7 +68,6 @@
#define HID_SCPAGE_SUBT_GROUP3 "SC_HID_SCPAGE_SUBT_GROUP3" #define HID_SCPAGE_SUBT_GROUP3 "SC_HID_SCPAGE_SUBT_GROUP3"
#define HID_SCPAGE_CONTENT "SC_HID_SCPAGE_CONTENT" #define HID_SCPAGE_CONTENT "SC_HID_SCPAGE_CONTENT"
#define HID_SCPAGE_LAYOUT "SC_HID_SCPAGE_LAYOUT"
#define HID_SC_NAVIGATOR "SC_HID_SC_NAVIGATOR" #define HID_SC_NAVIGATOR "SC_HID_SC_NAVIGATOR"
......
...@@ -830,6 +830,7 @@ ...@@ -830,6 +830,7 @@
#define SCSTR_ORIENTATION_BOTTOMTOP (STR_START + 111) #define SCSTR_ORIENTATION_BOTTOMTOP (STR_START + 111)
#define SCSTR_ORIENTATION_STANDARD (STR_START + 112) #define SCSTR_ORIENTATION_STANDARD (STR_START + 112)
#define SCSTR_AUTHOR (STR_START + 113) #define SCSTR_AUTHOR (STR_START + 113)
#define SCSTR_UNIT (STR_START + 114)
// accessibility // accessibility
......
...@@ -77,16 +77,11 @@ ...@@ -77,16 +77,11 @@
#define CB_SYNCZOOM 35 #define CB_SYNCZOOM 35
// TP_LAYOUT // TP_LAYOUT
#define GB_LINK 1
#define RB_ALWAYS 2
#define RB_REQUEST 3
#define RB_NEVER 4
#define CB_DOCONLY 5 #define CB_DOCONLY 5
#define CB_MERGE_PARA_DIST 6 #define CB_MERGE_PARA_DIST 6
#define GB_COMPAT 7 #define GB_COMPAT 7
#define CB_AUTO_UPDATE_FIELDS 8 #define CB_AUTO_UPDATE_FIELDS 8
#define CB_AUTO_UPDATE_CHARTS 9 #define CB_AUTO_UPDATE_CHARTS 9
#define FT_UPDATE_LINKS 10
#define GB_WINDOW 50 #define GB_WINDOW 50
#define CB_ROWCOLHEADER 51 #define CB_ROWCOLHEADER 51
...@@ -98,30 +93,14 @@ ...@@ -98,30 +93,14 @@
#define FT_COLOR 58 #define FT_COLOR 58
#define LB_COLOR 59 #define LB_COLOR 59
#define CB_GUIDELINE 60 #define CB_GUIDELINE 60
#define GB_UNIT 61
#define LB_UNIT 62
#define ST_UNIT 63
#define MF_TAB 65
#define CB_PAGEBREAKS 66 #define CB_PAGEBREAKS 66
#define FT_TAB 69
#define FT_UNIT 70
#define FL_SEPARATOR1 71 #define FL_SEPARATOR1 71
#define FL_SEPARATOR2 72 #define FL_SEPARATOR2 72
#define FL_SEPARATOR 73
#define FT_GRID 74 #define FT_GRID 74
#define LB_GRID 75 #define LB_GRID 75
// TP_INPUT // TP_INPUT
#define GB_OPTIONS 70
#define CB_ALIGN 71
#define LB_ALIGN 72
#define CB_EDITMODE 73
#define CB_FORMAT 74
#define CB_RFIND 75 #define CB_RFIND 75
#define CB_EXPREF 76
#define CB_MARKHDR 77
#define CB_TEXTFMT 78
#define CB_REPLWARN 79
// TP_FORMULA // TP_FORMULA
......
...@@ -103,28 +103,21 @@ public: ...@@ -103,28 +103,21 @@ public:
class ScDocument; class ScDocument;
class ScTpLayoutOptions : public SfxTabPage class ScTpLayoutOptions : public SfxTabPage
{ {
FixedLine aUnitGB; ListBox* m_pUnitLB;
FixedText aUnitFT; MetricField* m_pTabMF;
ListBox aUnitLB;
FixedText aTabFT; RadioButton* m_pAlwaysRB;
MetricField aTabMF; RadioButton* m_pRequestRB;
RadioButton* m_pNeverRB;
FixedLine aSeparatorFL;
FixedLine aLinkGB; CheckBox* m_pAlignCB;
FixedText aLinkFT; ListBox* m_pAlignLB;
RadioButton aAlwaysRB; CheckBox* m_pEditModeCB;
RadioButton aRequestRB; CheckBox* m_pFormatCB;
RadioButton aNeverRB; CheckBox* m_pExpRefCB;
CheckBox* m_pMarkHdrCB;
FixedLine aOptionsGB; CheckBox* m_pTextFmtCB;
CheckBox aAlignCB; CheckBox* m_pReplWarnCB;
ListBox aAlignLB;
CheckBox aEditModeCB;
CheckBox aFormatCB;
CheckBox aExpRefCB;
CheckBox aMarkHdrCB;
CheckBox aTextFmtCB;
CheckBox aReplWarnCB;
SvxStringArray aUnitArr; SvxStringArray aUnitArr;
......
This diff is collapsed.
...@@ -538,183 +538,4 @@ TabPage RID_SCPAGE_CONTENT ...@@ -538,183 +538,4 @@ TabPage RID_SCPAGE_CONTENT
}; };
}; };
TabPage RID_SCPAGE_LAYOUT
{
HelpId = HID_SCPAGE_LAYOUT ;
SVLook = TRUE ;
Hide = TRUE ;
Pos = MAP_APPFONT ( 0 , 0 ) ;
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
FixedLine GB_UNIT
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 115 , 8 ) ;
Text [ en-US ] = "Metrics";
};
FixedText FT_UNIT
{
Pos = MAP_APPFONT ( 12 , 16 ) ;
Size = MAP_APPFONT ( 60 , 8 ) ;
Text [ en-US ] = "Measurement ~unit";
};
ListBox LB_UNIT
{
HelpID = "sc:ListBox:RID_SCPAGE_LAYOUT:LB_UNIT";
Border = TRUE ;
Pos = MAP_APPFONT ( 72 , 14 ) ;
Size = MAP_APPFONT ( 46 , 52 ) ;
DropDown = TRUE ;
};
StringArray ST_UNIT
{
ItemList [ en-US ] =
{
< "Millimeter" ; FUNIT_MM ; > ;
< "Centimeter" ; FUNIT_CM ; > ;
< "Meter" ; FUNIT_M ; > ;
< "Kilometer" ; FUNIT_KM ; > ;
< "Inch" ; FUNIT_INCH ; > ;
< "Foot" ; FUNIT_FOOT ; > ;
< "Miles" ; FUNIT_MILE ; > ;
< "Pica" ; FUNIT_PICA ; > ;
< "Point" ; FUNIT_POINT ; > ;
};
};
FixedText FT_TAB
{
Pos = MAP_APPFONT ( 12 , 32 ) ;
Size = MAP_APPFONT ( 60 , 8 ) ;
Text [ en-US ] = "~Tab stops";
};
MetricField MF_TAB
{
HelpID = "sc:MetricField:RID_SCPAGE_LAYOUT:MF_TAB";
Border = TRUE ;
Pos = MAP_APPFONT ( 72 , 30 ) ;
Size = MAP_APPFONT ( 46 , 12 ) ;
Left = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
DecimalDigits = 2 ;
Unit = FUNIT_CM ;
SpinSize = 10 ;
Minimum = 50 ;
Maximum = 9999 ;
First = 50 ;
Last = 2000 ;
};
FixedLine FL_SEPARATOR
{
Pos = MAP_APPFONT ( 124 , 14 ) ;
Size = MAP_APPFONT ( 1 , 49 ) ;
};
FixedLine GB_LINK
{
Pos = MAP_APPFONT ( 127 , 3 ) ;
Size = MAP_APPFONT ( 127 , 8 ) ;
Text [ en-US ] = "Updating";
};
FixedText FT_UPDATE_LINKS
{
Pos = MAP_APPFONT ( 133 , 14 ) ;
Size = MAP_APPFONT ( 121 , 8 ) ;
Text [ en-US ] = "Update links when opening";
};
RadioButton RB_ALWAYS
{
HelpID = "sc:RadioButton:RID_SCPAGE_LAYOUT:RB_ALWAYS";
Pos = MAP_APPFONT ( 139 , 25 ) ;
Size = MAP_APPFONT ( 112 , 10 ) ;
TabStop = TRUE ;
Text [ en-US ] = "~Always";
};
RadioButton RB_REQUEST
{
HelpID = "sc:RadioButton:RID_SCPAGE_LAYOUT:RB_REQUEST";
Pos = MAP_APPFONT ( 139 , 39 ) ;
Size = MAP_APPFONT ( 112 , 10 ) ;
TabStop = TRUE ;
Text [ en-US ] = "~On request";
};
RadioButton RB_NEVER
{
HelpID = "sc:RadioButton:RID_SCPAGE_LAYOUT:RB_NEVER";
Pos = MAP_APPFONT ( 139 , 53 ) ;
Size = MAP_APPFONT ( 112 , 10 ) ;
TabStop = TRUE ;
Text [ en-US ] = "~Never";
};
FixedLine GB_OPTIONS
{
Pos = MAP_APPFONT ( 6 , 69 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Input settings";
};
CheckBox CB_ALIGN
{
HelpID = "sc:CheckBox:RID_SCPAGE_LAYOUT:CB_ALIGN";
Pos = MAP_APPFONT ( 12 , 82 ) ;
Size = MAP_APPFONT ( 175 , 10 ) ;
Text [ en-US ] = "Press Enter to ~move selection" ;
};
ListBox LB_ALIGN
{
HelpID = "sc:ListBox:RID_SCPAGE_LAYOUT:LB_ALIGN";
Pos = MAP_APPFONT ( 191 , 80 ) ;
Size = MAP_APPFONT ( 60 , 60 ) ;
Border = TRUE ;
DropDown = TRUE ;
// Reihenfolge der Strings wie enum ScDirection
StringList [ en-US ] =
{
< "Down" ; Default ; > ;
< "Right" ; Default ; > ;
< "Up" ; Default ; > ;
< "Left" ; Default ; > ;
};
};
CheckBox CB_EDITMODE
{
HelpID = "sc:CheckBox:RID_SCPAGE_LAYOUT:CB_EDITMODE";
Pos = MAP_APPFONT ( 12 , 96 ) ;
Size = MAP_APPFONT ( 239 , 10 ) ;
Text [ en-US ] = "Press Enter to switch to ~edit mode" ;
};
CheckBox CB_FORMAT
{
HelpID = "sc:CheckBox:RID_SCPAGE_LAYOUT:CB_FORMAT";
Pos = MAP_APPFONT ( 12 , 110 ) ;
Size = MAP_APPFONT ( 239 , 10 ) ;
Text [ en-US ] = "Expand ~formatting" ;
};
CheckBox CB_EXPREF
{
HelpID = "sc:CheckBox:RID_SCPAGE_LAYOUT:CB_EXPREF";
Pos = MAP_APPFONT ( 12 , 124 ) ;
Size = MAP_APPFONT ( 239 , 10 ) ;
Text [ en-US ] = "Expand ~references when new columns/rows are inserted" ;
};
CheckBox CB_MARKHDR
{
HelpID = "sc:CheckBox:RID_SCPAGE_LAYOUT:CB_MARKHDR";
Pos = MAP_APPFONT ( 12 , 138 ) ;
Size = MAP_APPFONT ( 239 , 10 ) ;
Text [ en-US ] = "Highlight sele~ction in column/row headers" ;
};
CheckBox CB_TEXTFMT
{
HelpID = "sc:CheckBox:RID_SCPAGE_LAYOUT:CB_TEXTFMT";
Pos = MAP_APPFONT ( 12 , 152 ) ;
Size = MAP_APPFONT ( 239 , 10 ) ;
Text [ en-US ] = "Use printer metrics for text formatting";
};
CheckBox CB_REPLWARN
{
HelpID = "sc:CheckBox:RID_SCPAGE_LAYOUT:CB_REPLWARN";
Pos = MAP_APPFONT ( 12 , 166 ) ;
Size = MAP_APPFONT ( 239 , 10 ) ;
Text [ en-US ] = "Show overwrite ~warning when pasting data";
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -854,4 +854,19 @@ String SCSTR_AUTHOR ...@@ -854,4 +854,19 @@ String SCSTR_AUTHOR
Text [ en-US ] = "By author" ; Text [ en-US ] = "By author" ;
}; };
StringArray SCSTR_UNIT
{
ItemList [ en-US ] =
{
< "Millimeter" ; FUNIT_MM ; > ;
< "Centimeter" ; FUNIT_CM ; > ;
< "Meter" ; FUNIT_M ; > ;
< "Kilometer" ; FUNIT_KM ; > ;
< "Inch" ; FUNIT_INCH ; > ;
< "Foot" ; FUNIT_FOOT ; > ;
< "Miles" ; FUNIT_MILE ; > ;
< "Pica" ; FUNIT_PICA ; > ;
< "Point" ; FUNIT_POINT ; > ;
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This diff is collapsed.
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