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

convert word completion page to .ui format

Change-Id: I4f60b5530428ad39bf7e9bea58b09d4228e11bb3
üst 80689919
......@@ -168,6 +168,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
cui/uiconfig/ui/thesaurus \
cui/uiconfig/ui/transparencytabpage \
cui/uiconfig/ui/twolinespage \
cui/uiconfig/ui/wordcompletionpage \
cui/uiconfig/ui/zoomdialog \
))
......
......@@ -399,36 +399,36 @@ public:
class OfaAutoCompleteTabPage : public SfxTabPage
{
using TabPage::ActivatePage;
public:
class AutoCompleteMultiListBox : public MultiListBox
{
OfaAutoCompleteTabPage& rPage;
OfaAutoCompleteTabPage* m_pPage;
public:
AutoCompleteMultiListBox( OfaAutoCompleteTabPage& rPg,
const ResId& rResId )
: MultiListBox( &rPg, rResId ), rPage( rPg ) {}
AutoCompleteMultiListBox(Window *pParent, WinBits nBits)
: MultiListBox(pParent, nBits)
, m_pPage(NULL)
{
}
void SetPage(OfaAutoCompleteTabPage *pPage) { m_pPage = pPage; }
virtual bool PreNotify( NotifyEvent& rNEvt );
};
CheckBox aCBActiv; ///<Enable word completion
CheckBox aCBAppendSpace;///<Append space
CheckBox aCBAsTip; ///<Show as tip
CheckBox aCBCollect;///<Collect words
CheckBox aCBRemoveList;///<...save the list for later use...
FixedText aFTExpandKey;
ListBox aDCBExpandKey;
FixedText aFTMinWordlen;
NumericField aNFMinWordlen;
FixedText aFTMaxEntries;
NumericField aNFMaxEntries;
AutoCompleteMultiListBox aLBEntries;
PushButton aPBEntries;
private:
using TabPage::ActivatePage;
CheckBox* m_pCBActiv; ///<Enable word completion
CheckBox* m_pCBAppendSpace;///<Append space
CheckBox* m_pCBAsTip; ///<Show as tip
CheckBox* m_pCBCollect;///<Collect words
CheckBox* m_pCBRemoveList;///<...save the list for later use...
ListBox* m_pDCBExpandKey;
NumericField* m_pNFMinWordlen;
NumericField* m_pNFMaxEntries;
AutoCompleteMultiListBox* m_pLBEntries;
PushButton* m_pPBEntries;
editeng::SortedAutoCompleteStrings* m_pAutoCompleteList;
sal_uInt16 nAutoCmpltListCnt;
sal_uInt16 m_nAutoCmpltListCnt;
DECL_LINK( CheckHdl, CheckBox* );
......
......@@ -95,9 +95,6 @@
#define RID_SVXSTR_CHARNAME_STYLE (RID_SVX_START + 242)
#define RID_SVXSTR_CHARNAME_TYPEFACE (RID_SVX_START + 243)
// autocor
#define RID_OFAPAGE_AUTOCOMPLETE_OPTIONS (RID_OFA_START + 119)
// options
#define RID_SVXSTR_DIAGRAM_ROW (RID_SVX_START + 1162)
#define RID_OFAPAGE_CONNPOOLOPTIONS (RID_OFA_START + 122)
......
......@@ -197,7 +197,6 @@
#define HID_TPCOLOR_CMYK_1 "CUI_HID_TPCOLOR_CMYK_1"
#define HID_TPCOLOR_CMYK_2 "CUI_HID_TPCOLOR_CMYK_2"
#define HID_TPCOLOR_CMYK_3 "CUI_HID_TPCOLOR_CMYK_3"
#define HID_OFAPAGE_AUTOCOMPLETE_OPTIONS "CUI_HID_OFAPAGE_AUTOCOMPLETE_OPTIONS"
#define HID_MEASURE_CTL_POSITION "CUI_HID_MEASURE_CTL_POSITION"
#define HID_VALUESET_NUM "CUI_HID_VALUESET_NUM"
......
......@@ -22,140 +22,6 @@
#include "helpid.hrc"
#include <svx/svxids.hrc>
/**************************************************************************/
/* */
/* Beschreibung: automatische Wortergnzung */
/* */
/**************************************************************************/
TabPage RID_OFAPAGE_AUTOCOMPLETE_OPTIONS
{
HelpId = HID_OFAPAGE_AUTOCOMPLETE_OPTIONS ;
OutputSize = TRUE ;
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
SVLook = TRUE ;
Hide = TRUE ;
CheckBox CB_ACTIV
{
HelpID = "cui:CheckBox:RID_OFAPAGE_AUTOCOMPLETE_OPTIONS:CB_ACTIV";
Pos = MAP_APPFONT( 4, 3 );
Size = MAP_APPFONT( 116, 10 );
Text [ en-US ] = "Enable word ~completion";
};
CheckBox CB_APPEND_SPACE
{
HelpID = "cui:CheckBox:RID_OFAPAGE_AUTOCOMPLETE_OPTIONS:CB_APPEND_SPACE";
Pos = MAP_APPFONT( 10, 17 );
Size = MAP_APPFONT( 110, 10 );
Text [ en-US ] = "~Append space";
};
CheckBox CB_AS_TIP
{
HelpID = "cui:CheckBox:RID_OFAPAGE_AUTOCOMPLETE_OPTIONS:CB_AS_TIP";
Pos = MAP_APPFONT( 10, 31 );
Size = MAP_APPFONT( 110, 10 );
Text [ en-US ] = "~Show as tip";
};
CheckBox CB_COLLECT
{
HelpID = "cui:CheckBox:RID_OFAPAGE_AUTOCOMPLETE_OPTIONS:CB_COLLECT";
Pos = MAP_APPFONT( 4, 45 );
Size = MAP_APPFONT( 116, 10 );
Text [ en-US ] = "C~ollect words";
};
CheckBox CB_REMOVE_LIST
{
HelpID = "cui:CheckBox:RID_OFAPAGE_AUTOCOMPLETE_OPTIONS:CB_REMOVE_LIST";
Pos = MAP_APPFONT( 10, 59 );
Size = MAP_APPFONT( 110, 40 );
WordBreak = TRUE;
Text [ en-US ] = "~When closing a document, remove the words collected from it from the list";
};
FixedText FT_EXPAND_KEY
{
Pos = MAP_APPFONT( 4, 102 );
Size = MAP_APPFONT( 116, 8 );
Text [ en-US ] = "Acc~ept with";
};
ListBox DCB_EXPAND_KEY
{
HelpID = "cui:ListBox:RID_OFAPAGE_AUTOCOMPLETE_OPTIONS:DCB_EXPAND_KEY";
Pos = MAP_APPFONT( 4, 113 );
Size = MAP_APPFONT( 116, 60 );
TabStop = TRUE;
DropDown = TRUE;
Group = TRUE;
Sort = FALSE;
};
FixedText FT_MIN_WORDLEN
{
Pos = MAP_APPFONT( 4, 129 );
Size = MAP_APPFONT( 116, 8 );
Text [ en-US ] = "Mi~n. word length";
};
NumericField NF_MIN_WORDLEN
{
HelpID = "cui:NumericField:RID_OFAPAGE_AUTOCOMPLETE_OPTIONS:NF_MIN_WORDLEN";
Border = TRUE;
Pos = MAP_APPFONT( 4, 140 );
Size = MAP_APPFONT( 30, 12 );
TabStop = TRUE ;
Left = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Value = 10 ;
Minimum = 5 ;
First = 5 ;
Last = 100 ;
Maximum = 100 ;
SpinSize = 1 ;
};
FixedText FT_MAX_ENTRIES
{
Pos = MAP_APPFONT( 4, 156 );
Size = MAP_APPFONT( 116, 8 );
Text [ en-US ] = "~Max. entries";
};
NumericField NF_MAX_ENTRIES
{
HelpID = "cui:NumericField:RID_OFAPAGE_AUTOCOMPLETE_OPTIONS:NF_MAX_ENTRIES";
Border = TRUE;
Pos = MAP_APPFONT( 4, 167 );
Size = MAP_APPFONT( 30, 12 );
TabStop = TRUE ;
Left = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Value = 500 ;
Maximum = 10000;
Last = 10000 ;
First = 50 ;
Minimum = 50;
SpinSize = 25 ;
};
MultiListBox LB_ENTRIES
{
HelpID = "cui:MultiListBox:RID_OFAPAGE_AUTOCOMPLETE_OPTIONS:LB_ENTRIES";
Pos = MAP_APPFONT( 127, 3 );
Size = MAP_APPFONT( 121, 158 );
TabStop = TRUE;
DropDown = FALSE;
Group = TRUE;
Border = TRUE;
Sort = TRUE;
SimpleMode = TRUE;
};
PushButton PB_ENTRIES
{
HelpID = "cui:PushButton:RID_OFAPAGE_AUTOCOMPLETE_OPTIONS:PB_ENTRIES";
Pos = MAP_APPFONT( 127, 165 );
Size = MAP_APPFONT( 121, 14 );
TabStop = TRUE ;
Text [ en-US ] = "~Delete Entry";
};
Text [ en-US ] = "Word Completion";
};
/**************************************************************************/
/* */
/* Beschreibung: Smart Tag Options */
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
<interface>
<!-- interface-requires gtk+ 3.0 -->
<requires lib="gtk+" version="3.0"/>
<!-- interface-requires LibreOffice 1.0 -->
<object class="GtkDialog" id="AutoCorrectDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="title" translatable="yes">AutoCorrect</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
......
This diff is collapsed.
......@@ -284,6 +284,9 @@
<glade-widget-class title="MultiLine Edit" name="svtlo-MultiLineEditSyntaxHighlight"
generic-name="MultiLineEdit" parent="GtkTextView"
icon-name="widget-gtk-textview"/>
<glade-widget-class title="AutoComplete MultiLine Edit" name="cuilo-AutoCompleteMultiListBox"
generic-name="MultiLineEdit" parent="GtkTextView"
icon-name="widget-gtk-textview"/>
<glade-widget-class title="SvtFormattedField" name="svtlo-FormattedField"
generic-name="Formatted Field" parent="GtkSpinButton"
icon-name="widget-gtk-textentry"/>
......
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