Kaydet (Commit) dbf5cf4a authored tarafından Caolán McNamara's avatar Caolán McNamara

convert apply autofmt page to .ui

Change-Id: Ibe15351220420900d808cb65d934af1922429e82
üst 4e3f7d32
......@@ -13,6 +13,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
cui/uiconfig/ui/aboutdialog \
cui/uiconfig/ui/acorexceptpage \
cui/uiconfig/ui/acorreplacepage \
cui/uiconfig/ui/applyautofmtpage \
cui/uiconfig/ui/areatabpage \
cui/uiconfig/ui/asiantypography \
cui/uiconfig/ui/autocorrectdialog \
......
......@@ -126,14 +126,8 @@ class OfaSwAutoFmtOptionsPage : public SfxTabPage
{
using TabPage::ActivatePage;
SvSimpleTableContainer m_aCheckLBContainer;
OfaACorrCheckListBox aCheckLB;
PushButton aEditPB;
FixedText aHeader1Expl;
FixedText aHeader2Expl;
String sHeader1;
String sHeader2;
OfaACorrCheckListBox* m_pCheckLB;
PushButton* m_pEditPB;
String sDeleteEmptyPara;
String sUseReplaceTbl;
......
......@@ -114,7 +114,6 @@
// autocor
#define RID_OFAPAGE_AUTOCOMPLETE_OPTIONS (RID_OFA_START + 119)
#define RID_OFAPAGE_AUTOCORR_OPTIONS (RID_OFA_START + 102)
#define RID_OFAPAGE_AUTOFMT_APPLY (RID_OFA_START + 110)
#define RID_OFAPAGE_AUTOCORR_QUOTE (RID_OFA_START + 109)
......@@ -420,6 +419,27 @@
#define RID_SVXSTR_AUTO_ENTRY (RID_SVX_START + 1203)
#define RID_SVXDLG_CERTPATH (RID_SVX_START + 1204)
#define RID_SVXSTR_USE_REPLACE (RID_SVX_START + 1205)
#define RID_SVXSTR_CPTL_STT_WORD (RID_SVX_START + 1206)
#define RID_SVXSTR_CPTL_STT_SENT (RID_SVX_START + 1207)
#define RID_SVXSTR_BOLD_UNDER (RID_SVX_START + 1208)
#define RID_SVXSTR_NO_DBL_SPACES (RID_SVX_START + 1209)
#define RID_SVXSTR_DETECT_URL (RID_SVX_START + 1210)
#define RID_SVXSTR_DASH (RID_SVX_START + 1211)
#define RID_SVXSTR_CORRECT_ACCIDENTAL_CAPS_LOCK (RID_SVX_START + 1212)
#define RID_SVXSTR_NON_BREAK_SPACE (RID_SVX_START + 1213)
#define RID_SVXSTR_ORDINAL (RID_SVX_START + 1214)
#define RID_SVXSTR_DEL_EMPTY_PARA (RID_SVX_START + 1215)
#define RID_SVXSTR_USER_STYLE (RID_SVX_START + 1216)
#define RID_SVXSTR_BULLET (RID_SVX_START + 1217)
#define RID_SVXSTR_RIGHT_MARGIN (RID_SVX_START + 1218)
#define RID_SVXSTR_NUM (RID_SVX_START + 1219)
#define RID_SVXSTR_BORDER (RID_SVX_START + 1220)
#define RID_SVXSTR_CREATE_TABLE (RID_SVX_START + 1221)
#define RID_SVXSTR_REPLACE_TEMPLATES (RID_SVX_START + 1222)
#define RID_SVXSTR_DEL_SPACES_AT_STT_END (RID_SVX_START + 1223)
#define RID_SVXSTR_DEL_SPACES_BETWEEN_LINES (RID_SVX_START + 1224)
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -231,7 +231,6 @@
#define HID_TPCOLOR_CMYK_2 "CUI_HID_TPCOLOR_CMYK_2"
#define HID_TPCOLOR_CMYK_3 "CUI_HID_TPCOLOR_CMYK_3"
#define HID_OFAPAGE_AUTOCORR_OPTIONS "CUI_HID_OFAPAGE_AUTOCORR_OPTIONS"
#define HID_OFAPAGE_AUTOFMT_OPTIONS "CUI_HID_OFAPAGE_AUTOFMT_OPTIONS"
#define HID_OFAPAGE_AUTOCORR_QUOTE "CUI_HID_OFAPAGE_AUTOCORR_QUOTE"
#define HID_OFAPAGE_AUTOCOMPLETE_OPTIONS "CUI_HID_OFAPAGE_AUTOCOMPLETE_OPTIONS"
#define HID_PAGE_CONNECTION "CUI_HID_PAGE_CONNECTION"
......
......@@ -49,25 +49,9 @@
#define CB_SGL_TYPO 57
#define ST_STANDARD 58
#define PB_EDIT 61
#define ST_DEL_EMPTY_PARA 62
#define ST_USER_STYLE 67
#define ST_BULLET 68
#define STR_DEL_SPACES_AT_STT_END 69
#define STR_DEL_SPACES_BETWEEN_LINES 70
#define ST_RIGHT_MARGIN 74
#define STR_NUM 75
#define STR_BORDER 76
#define STR_TABLE 77
#define STR_REPLACE_TEMPLATES 78
#define FL_PRCNT 79
#define STR_HEADER 90
#define STR_HEADER1 92
#define STR_HEADER2 93
#define FT_HEADER1_EXPLANATION 94
#define FT_HEADER2_EXPLANATION 95
#define ED_RIGHT_MARGIN 100
#define BT_OK 101
......@@ -87,18 +71,8 @@
#define LB_ENTRIES 132
#define PB_ENTRIES 133
#define ST_USE_REPLACE 200
#define ST_CPTL_STT_WORD 201
#define ST_CPTL_STT_SENT 202
#define ST_BOLD_UNDER 203
#define STR_NO_DBL_SPACES 204
#define ST_DETECT_URL 205
#define ST_ORDINAL 206
#define ST_NON_BREAK_SPACE 207
#define ST_DASH 208
#define FT_LANG 209
#define LB_LANG 210
#define ST_CORRECT_ACCIDENTAL_CAPS_LOCK 211
#define CB_SMARTTAGS 220
#define FT_SMARTTAGS 221
......
......@@ -22,40 +22,6 @@
#include "helpid.hrc"
#include <svx/svxids.hrc> // SID_AUTOFORMAT
#define COMMON_CLB_ENTRIES \
String ST_USE_REPLACE \
{ \
Text [ en-US ] = "Use replacement table" ; \
}; \
String ST_CPTL_STT_WORD \
{ \
Text [ en-US ] = "Correct TWo INitial CApitals" ; \
}; \
String ST_CPTL_STT_SENT \
{ \
Text [ en-US ] = "Capitalize first letter of every sentence" ; \
}; \
String ST_BOLD_UNDER \
{ \
Text [ en-US ] = "Automatic *bold* and _underline_" ; \
}; \
String STR_NO_DBL_SPACES \
{ \
Text [ en-US ] = "Ignore double spaces" ; \
}; \
String ST_DETECT_URL \
{ \
Text [ en-US ] = "URL Recognition" ; \
}; \
String ST_DASH \
{ \
Text [ en-US ] = "Replace dashes" ; \
}; \
String ST_CORRECT_ACCIDENTAL_CAPS_LOCK \
{ \
Text [ en-US ] = "Correct accidental use of cAPS LOCK key" ; \
};
/**************************************************************************/
/* */
/* Beschreibung: Autokorrektur-Optionen */
......@@ -76,91 +42,6 @@ TabPage RID_OFAPAGE_AUTOCORR_OPTIONS
Border = TRUE ;
TabStop = TRUE ;
};
COMMON_CLB_ENTRIES
};
TabPage RID_OFAPAGE_AUTOFMT_APPLY
{
HelpID = HID_OFAPAGE_AUTOFMT_OPTIONS ;
SVLook = TRUE ;
Hide = TRUE ;
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
Control CLB_SETTINGS
{
Pos = MAP_APPFONT ( 6 , 6 ) ;
Size = MAP_APPFONT ( 248 , 149 ) ;
Border = TRUE ;
TabStop = TRUE ;
};
PushButton PB_EDIT
{
HelpID = "cui:PushButton:RID_OFAPAGE_AUTOFMT_APPLY:PB_EDIT";
Pos = MAP_APPFONT ( 6 , 162 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "~Edit..." ;
TabStop = TRUE ;
};
String STR_HEADER1
{
Text [ en-US ] = "[M]" ;
};
String STR_HEADER2
{
Text [ en-US ] = "[T]" ;
};
FixedText FT_HEADER1_EXPLANATION
{
Pos = MAP_APPFONT ( 80 , 159 ) ;
Size = MAP_APPFONT ( 174 , 8 ) ;
Text [ en-US ] = "[M]: Replace while modifying existing text" ;
};
FixedText FT_HEADER2_EXPLANATION
{
Pos = MAP_APPFONT ( 80 , 171 ) ;
Size = MAP_APPFONT ( 174 , 8 ) ;
Text [ en-US ] = "[T]: AutoFormat/AutoCorrect while typing" ;
};
COMMON_CLB_ENTRIES
String ST_DEL_EMPTY_PARA
{
Text [ en-US ] = "Remove blank paragraphs" ;
};
String ST_USER_STYLE
{
Text [ en-US ] = "Replace Custom Styles" ;
};
String ST_BULLET
{
Text [ en-US ] = "Replace bullets with: " ;
};
String ST_RIGHT_MARGIN
{
Text [ en-US ] = "Combine single line paragraphs if length greater than" ;
};
String STR_NUM
{
Text [ en-US ] = "Apply numbering - symbol: " ;
};
String STR_BORDER
{
Text [ en-US ] = "Apply border" ;
};
String STR_TABLE
{
Text [ en-US ] = "Create table" ;
};
String STR_REPLACE_TEMPLATES
{
Text [ en-US ] = "Apply Styles" ;
};
String STR_DEL_SPACES_AT_STT_END
{
Text [ en-US ] = "Delete spaces and tabs at beginning and end of paragraph";
};
String STR_DEL_SPACES_BETWEEN_LINES
{
Text [ en-US ] = "Delete spaces and tabs at end and start of line";
};
};
/**************************************************************************/
......@@ -191,14 +72,6 @@ TabPage RID_OFAPAGE_AUTOCORR_QUOTE
{
Text [ en-US ] = "[T]" ;
};
String ST_NON_BREAK_SPACE
{
Text [ en-US ] = "Add non breaking space before specific punctuation marks in french text" ;
};
String ST_ORDINAL
{
Text [ en-US ] = "Format ordinal numbers suffixes (1st -> 1^st)" ;
};
FixedLine FL_SINGLE
{
Pos = MAP_APPFONT ( 4 , 90 ) ;
......
......@@ -147,5 +147,85 @@ String RID_SVXSTR_CHARNAME_TYPEFACE
{
Text [ en-US ] = "Typeface";
};
String RID_SVXSTR_USE_REPLACE
{
Text [ en-US ] = "Use replacement table" ;
};
String RID_SVXSTR_CPTL_STT_WORD
{
Text [ en-US ] = "Correct TWo INitial CApitals" ;
};
String RID_SVXSTR_CPTL_STT_SENT
{
Text [ en-US ] = "Capitalize first letter of every sentence" ;
};
String RID_SVXSTR_BOLD_UNDER
{
Text [ en-US ] = "Automatic *bold* and _underline_" ;
};
String RID_SVXSTR_NO_DBL_SPACES
{
Text [ en-US ] = "Ignore double spaces" ;
};
String RID_SVXSTR_DETECT_URL
{
Text [ en-US ] = "URL Recognition" ;
};
String RID_SVXSTR_DASH
{
Text [ en-US ] = "Replace dashes" ;
};
String RID_SVXSTR_CORRECT_ACCIDENTAL_CAPS_LOCK
{
Text [ en-US ] = "Correct accidental use of cAPS LOCK key" ;
};
String RID_SVXSTR_NON_BREAK_SPACE
{
Text [ en-US ] = "Add non breaking space before specific punctuation marks in french text" ;
};
String RID_SVXSTR_ORDINAL
{
Text [ en-US ] = "Format ordinal numbers suffixes (1st -> 1^st)" ;
};
String RID_SVXSTR_DEL_EMPTY_PARA
{
Text [ en-US ] = "Remove blank paragraphs" ;
};
String RID_SVXSTR_USER_STYLE
{
Text [ en-US ] = "Replace Custom Styles" ;
};
String RID_SVXSTR_BULLET
{
Text [ en-US ] = "Replace bullets with: " ;
};
String RID_SVXSTR_RIGHT_MARGIN
{
Text [ en-US ] = "Combine single line paragraphs if length greater than" ;
};
String RID_SVXSTR_NUM
{
Text [ en-US ] = "Apply numbering - symbol: " ;
};
String RID_SVXSTR_BORDER
{
Text [ en-US ] = "Apply border" ;
};
String RID_SVXSTR_CREATE_TABLE
{
Text [ en-US ] = "Create table" ;
};
String RID_SVXSTR_REPLACE_TEMPLATES
{
Text [ en-US ] = "Apply Styles" ;
};
String RID_SVXSTR_DEL_SPACES_AT_STT_END
{
Text [ en-US ] = "Delete spaces and tabs at beginning and end of paragraph";
};
String RID_SVXSTR_DEL_SPACES_BETWEEN_LINES
{
Text [ en-US ] = "Delete spaces and tabs at end and start of line";
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<!-- interface-requires LibreOffice 1.0 -->
<object class="GtkBox" id="ApplyAutoFmtPage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="border_width">6</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="row_spacing">12</property>
<child>
<object class="GtkGrid" id="grid2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
<child>
<object class="GtkButton" id="edit">
<property name="label" translatable="yes">_Edit...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">[M]: Replace while modifying existing text</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">[T]: AutoFormat/AutoCorrect while typing</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkGrid" id="grid3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="column_homogeneous">True</property>
<child>
<object class="GtkLabel" id="m">
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<property name="label" translatable="yes">[M]</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="t">
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<property name="label" translatable="yes">[T]</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="svtlo-SvSimpleTableContainer" id="list">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child internal-child="selection">
<object class="GtkTreeSelection" id="Simple Table Container-selection1"/>
</child>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">2</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</object>
</interface>
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