// AbiWord
// Copyright (C) 1998,1999 AbiSource, Inc.
// 
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
// 02111-1307, USA.
//////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////
// THIS FILE IS INCLUDED BY .cpp AND .rc FILES.
//
// *** RC.exe IS BRAIN-DAMAGED.  GIVING THIS FILE AN .rc2
// *** EXTENSION MAKES #INCLUDING THIS FILE FROM Win32Main.rc
// *** WORK -- IF THE SUFFIX IS .h ONLY THE #DEFINES WORK, THE
// *** DIALOGS DO NOT GET COMPILED.
//
//////////////////////////////////////////////////////////////////
// the main dialog
#define AP_RID_DIALOG_OPTIONS_TAB				1001
#define AP_RID_DIALOG_OPTIONS_BTN_SAVE			1002
#define AP_RID_DIALOG_OPTIONS_BTN_DEFAULT		1003
#define AP_RID_DIALOG_OPTIONS_BTN_OK			IDOK
#define AP_RID_DIALOG_OPTIONS_BTN_CANCEL		IDCANCEL

// sub-dialog for the "TOOLBARS" tab
#define AP_RID_DIALOG_OPTIONS_FRM_Toolbars				1100
#define AP_RID_DIALOG_OPTIONS_CHK_ViewShowStandardBar	1101
#define AP_RID_DIALOG_OPTIONS_CHK_ViewShowFormatBar		1102
#define AP_RID_DIALOG_OPTIONS_CHK_ViewShowExtraBar		1103
#define AP_RID_DIALOG_OPTIONS_FRM_ButtonStyle			1104
#define AP_RID_DIALOG_OPTIONS_RDO_Icons					1105
#define AP_RID_DIALOG_OPTIONS_RDO_Text					1106
#define AP_RID_DIALOG_OPTIONS_RDO_IconsAndText			1107
#define AP_RID_DIALOG_OPTIONS_CHK_ViewToolTips			1108

// sub-dialog for the "SPELL" tab
#define AP_RID_DIALOG_OPTIONS_FRM_SpellGeneral          1200
#define AP_RID_DIALOG_OPTIONS_CHK_SpellCheckAsType		1201
#define AP_RID_DIALOG_OPTIONS_CHK_SpellHideErrors		1202
#define AP_RID_DIALOG_OPTIONS_CHK_SpellSuggest			1203
#define AP_RID_DIALOG_OPTIONS_CHK_SpellMainOnly			1204
#define AP_RID_DIALOG_OPTIONS_FRM_SpellIgnore			1205
#define AP_RID_DIALOG_OPTIONS_CHK_SpellUppercase		1206
#define AP_RID_DIALOG_OPTIONS_CHK_SpellNumbers			1207
#define AP_RID_DIALOG_OPTIONS_CHK_SpellInternet			1208
#define AP_RID_DIALOG_OPTIONS_LBL_CUSTOMDICT			1209
#define AP_RID_DIALOG_OPTIONS_COMBO_CUSTOMDICT			1210
#define AP_RID_DIALOG_OPTIONS_BTN_CUSTOMDICT			1211
#define AP_RID_DIALOG_OPTIONS_LBL_IGNOREDWORD			1212
#define AP_RID_DIALOG_OPTIONS_BTN_IGNOREDRESET			1213
#define AP_RID_DIALOG_OPTIONS_BTN_IGNOREDEDIT			1214

// sub-dialog for the "LAYOUT" tab
#define AP_RID_DIALOG_OPTIONS_FRM_SHOWHIDE				1300
#define AP_RID_DIALOG_OPTIONS_CHK_ViewShowRuler			1301
#define AP_RID_DIALOG_OPTIONS_CHK_ViewShowStatusBar		1302
#define AP_RID_DIALOG_OPTIONS_CHK_ViewCursorBlink		1303
#define AP_RID_DIALOG_OPTIONS_FRM_VIEWFRAME				1304
#define AP_RID_DIALOG_OPTIONS_CHK_ViewAll				1305
#define AP_RID_DIALOG_OPTIONS_CHK_ViewHiddenText		1306
#define AP_RID_DIALOG_OPTIONS_CHK_ViewUnprintable		1307
#define AP_RID_DIALOG_OPTIONS_LBL_UNITS					1308
#define AP_RID_DIALOG_OPTIONS_COMBO_UNITS				1309
#define AP_RID_DIALOG_OPTIONS_LBL_DefaultPageSize		1310
#define AP_RID_DIALOG_OPTIONS_COMBO_DefaultPageSize		1311
#define AP_RID_DIALOG_OPTIONS_CHK_SmartQuotesEnable		1312

// sub-dialog for the "SCHEMES" tab
#define AP_RID_DIALOG_OPTIONS_FRM_PreferenceScheme		1400
#define AP_RID_DIALOG_OPTIONS_CHK_PrefsAutoSave			1401
#define AP_RID_DIALOG_OPTIONS_LBL_CURRENTSCHEME			1402
#define AP_RID_DIALOG_OPTIONS_COMBO_CURRENTSCHEME		1403
#define AP_RID_DIALOG_OPTIONS_FRM_BidiOptions			1404
#define AP_RID_DIALOG_OPTIONS_CHK_OtherDirectionRtl		1405
#define AP_RID_DIALOG_OPTIONS_FRM_AutoSaveOptions		1406
#define AP_RID_DIALOG_OPTIONS_CHK_AutoSaveFile			1407
#define AP_RID_DIALOG_OPTIONS_TXT_AutoSavePeriod		1408
#define AP_RID_DIALOG_OPTIONS_SPN_AutoSavePeriodSpin	1409
#define AP_RID_DIALOG_OPTIONS_LBL_AutoSaveMinutes		1410
#define AP_RID_DIALOG_OPTIONS_LBL_AutoSaveExtension		1411
#define AP_RID_DIALOG_OPTIONS_TXT_AutoSaveExtension		1412

#ifdef RC_INVOKED
// NOTE -- these placeholder strings get overridden at runtime 
// NOTE -- they're just here to make sizing easier

// The main tab dialog
AP_RID_DIALOG_OPTIONS DIALOG DISCARDABLE  0, 0, 271, 168
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Options"
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "Tab1",AP_RID_DIALOG_OPTIONS_TAB,"SysTabControl32",
                    TCS_FOCUSONBUTTONDOWN | WS_TABSTOP,7,7,257,137,
                    WS_EX_CONTROLPARENT
    PUSHBUTTON      "Sa&ve",AP_RID_DIALOG_OPTIONS_BTN_SAVE,49,149,50,14
    PUSHBUTTON      "De&faults",AP_RID_DIALOG_OPTIONS_BTN_DEFAULT,104,149,50,
                    14
    DEFPUSHBUTTON   "OK",AP_RID_DIALOG_OPTIONS_BTN_OK,159,149,50,14
    PUSHBUTTON      "Cancel",AP_RID_DIALOG_OPTIONS_BTN_CANCEL,214,149,50,14
END

// The sub-dialog for the TOOLBARS tab of the Preference dialog
AP_RID_DIALOG_OPT_TOOLBARS DIALOG DISCARDABLE  0, 0, 250, 115
STYLE DS_CONTROL | WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    GROUPBOX        "Toolbars",AP_RID_DIALOG_OPTIONS_FRM_Toolbars,2,2,123,111
    CONTROL         "&Standard Toolbar",
                    AP_RID_DIALOG_OPTIONS_CHK_ViewShowStandardBar,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,5,15,110,10
    CONTROL         "&Format Toolbar",
                    AP_RID_DIALOG_OPTIONS_CHK_ViewShowFormatBar,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,5,30,110,10
    CONTROL         "&Extra Toolbar",
                    AP_RID_DIALOG_OPTIONS_CHK_ViewShowExtraBar,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,5,45,110,10
    GROUPBOX        "Button Style",AP_RID_DIALOG_OPTIONS_FRM_ButtonStyle,127,2,120,93
    CONTROL         "Icons",AP_RID_DIALOG_OPTIONS_RDO_Icons,"Button",
                    BS_AUTORADIOBUTTON | WS_TABSTOP,132,15,110,10
    CONTROL         "Text",AP_RID_DIALOG_OPTIONS_RDO_Text,"Button",
                    BS_AUTORADIOBUTTON | WS_TABSTOP,132,30,110,10
    CONTROL         "Icons and Text",AP_RID_DIALOG_OPTIONS_RDO_IconsAndText,
                    "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,132,45,110,10
    CONTROL         "View Tooltips",AP_RID_DIALOG_OPTIONS_CHK_ViewToolTips,
                    "Button",BS_AUTOCHECKBOX,132,103,110,10
END

// The sub-dialog for the SPELL tab of the Options dialog
AP_RID_DIALOG_OPT_SPELL DIALOG DISCARDABLE  0, 0, 250, 115
STYLE DS_CONTROL | WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    GROUPBOX        "General",AP_RID_DIALOG_OPTIONS_FRM_SpellGeneral,2,2,133,
                    75
    CONTROL         "Check s&pelling as you type",
                    AP_RID_DIALOG_OPTIONS_CHK_SpellCheckAsType,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,5,15,120,10
    CONTROL         "Hide &spelling errors in the document",
                    AP_RID_DIALOG_OPTIONS_CHK_SpellHideErrors,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,5,30,120,10
    CONTROL         "A&lways suggest corrections",
                    AP_RID_DIALOG_OPTIONS_CHK_SpellSuggest,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,5,45,120,10
    CONTROL         "Suggest from &main only",
                    AP_RID_DIALOG_OPTIONS_CHK_SpellMainOnly,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,5,60,120,10
    GROUPBOX        "Ignore",AP_RID_DIALOG_OPTIONS_FRM_SpellIgnore,137,2,110,
                    75
    CONTROL         "Ignore words in &UPPERCASE",
                    AP_RID_DIALOG_OPTIONS_CHK_SpellUppercase,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,140,15,100,10
    CONTROL         "Ignore words with num&bers",
                    AP_RID_DIALOG_OPTIONS_CHK_SpellNumbers,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,140,30,100,10
    CONTROL         "Ignore Internet and &file addresses",
                    AP_RID_DIALOG_OPTIONS_CHK_SpellInternet,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,140,45,100,10
    RTEXT           "Custom Dictionary:",
                    AP_RID_DIALOG_OPTIONS_LBL_CUSTOMDICT,5,82,75,12,
                    SS_CENTERIMAGE
    COMBOBOX        AP_RID_DIALOG_OPTIONS_COMBO_CUSTOMDICT,85,82,79,50,
                    CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_DISABLED
    PUSHBUTTON      "Dictionary...",AP_RID_DIALOG_OPTIONS_BTN_CUSTOMDICT,168,82,79,14,
					WS_DISABLED
    RTEXT           "Ignored Words:",AP_RID_DIALOG_OPTIONS_LBL_IGNOREDWORD,
                    5,100,75,12,SS_CENTERIMAGE
    PUSHBUTTON      "&Reset",AP_RID_DIALOG_OPTIONS_BTN_IGNOREDRESET,85,100,
                    79,14,WS_DISABLED
    PUSHBUTTON      "&Edit...",AP_RID_DIALOG_OPTIONS_BTN_IGNOREDEDIT,168,100,
                    79,14,WS_DISABLED

END

// The sub-dialog for the LAYOUT tab of the Options dialog
AP_RID_DIALOG_OPT_LAYOUT DIALOG DISCARDABLE  0, 0, 250, 115
STYLE DS_CONTROL | WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    GROUPBOX        "Show/Hide...",AP_RID_DIALOG_OPTIONS_FRM_SHOWHIDE,2,2,123,
                    60
    CONTROL         "&Rule",
                    AP_RID_DIALOG_OPTIONS_CHK_ViewShowRuler,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,5,15,110,10
    CONTROL         "&Status Bar",
                    AP_RID_DIALOG_OPTIONS_CHK_ViewShowStatusBar,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,5,30,110,10
    CONTROL         "&Cursor &blink",
                    AP_RID_DIALOG_OPTIONS_CHK_ViewCursorBlink,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,5,45,110,10
    GROUPBOX        "View...",AP_RID_DIALOG_OPTIONS_FRM_VIEWFRAME,127,2,120,60
    CONTROL         "&All",AP_RID_DIALOG_OPTIONS_CHK_ViewAll,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,132,15,110,10
    CONTROL         "&Hidden Text",AP_RID_DIALOG_OPTIONS_CHK_ViewHiddenText,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,132,30,110,10
    CONTROL         "Invisible &layout marks",AP_RID_DIALOG_OPTIONS_CHK_ViewUnprintable,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,132,45,110,10
    RTEXT           "Units:",AP_RID_DIALOG_OPTIONS_LBL_UNITS,
                    5,65,75,12,SS_CENTERIMAGE
    COMBOBOX        AP_RID_DIALOG_OPTIONS_COMBO_UNITS,85,65,162,75,
                    CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    RTEXT           "Default page size:",AP_RID_DIALOG_OPTIONS_LBL_DefaultPageSize,
                    5,80,75,12,SS_CENTERIMAGE
    COMBOBOX        AP_RID_DIALOG_OPTIONS_COMBO_DefaultPageSize,85,80,162,75,
                    CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
	AUTOCHECKBOX    "Enable smart quotes",
                    AP_RID_DIALOG_OPTIONS_CHK_SmartQuotesEnable, 15, 100, 75, 10

END

// The sub-dialog for the PREFERENCES tab of the Options dialog
AP_RID_DIALOG_OPT_PREF DIALOG DISCARDABLE  0, 0, 250, 115
STYLE DS_CONTROL | WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
	GROUPBOX		"Preference Schemes",
					AP_RID_DIALOG_OPTIONS_FRM_PreferenceScheme, 2,2,245,45
    CONTROL         "Automatically save preferences",
                    AP_RID_DIALOG_OPTIONS_CHK_PrefsAutoSave,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,5,15,235,10
    LTEXT           "Current preferences scheme:",
                    AP_RID_DIALOG_OPTIONS_LBL_CURRENTSCHEME,5,30,100,10
    COMBOBOX        AP_RID_DIALOG_OPTIONS_COMBO_CURRENTSCHEME,105,30,140,75,
                    CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_DISABLED
	GROUPBOX		"Auto Save", AP_RID_DIALOG_OPTIONS_FRM_AutoSaveOptions,
					2, 47, 245, 30
	CONTROL			"Auto save current file each", AP_RID_DIALOG_OPTIONS_CHK_AutoSaveFile ,
					"Button", BS_AUTOCHECKBOX | WS_TABSTOP,
					5, 60, 100, 10
    EDITTEXT        AP_RID_DIALOG_OPTIONS_TXT_AutoSavePeriod,105,58,30,12, ES_LEFT | WS_BORDER | WS_TABSTOP | ES_READONLY
    CONTROL         "Spin",	AP_RID_DIALOG_OPTIONS_SPN_AutoSavePeriodSpin,	
							"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | 
							UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS,
					132,60,8,8
    LTEXT           "minutes",	AP_RID_DIALOG_OPTIONS_LBL_AutoSaveMinutes,
					135,60,50,8
    LTEXT           "With extension:",	AP_RID_DIALOG_OPTIONS_LBL_AutoSaveExtension,
					165,60,50,8
    EDITTEXT        AP_RID_DIALOG_OPTIONS_TXT_AutoSaveExtension,
					215,58,25,12, ES_LEFT | WS_BORDER | WS_TABSTOP

	GROUPBOX		"Bi-Directional Options...", AP_RID_DIALOG_OPTIONS_FRM_BidiOptions,
					2, 79, 245, 30
	CONTROL			"Default to right-to-left direction of text:", AP_RID_DIALOG_OPTIONS_CHK_OtherDirectionRtl ,
					"Button", BS_AUTOCHECKBOX | WS_TABSTOP,
					5, 92, 235, 10

END

#endif /* RC_INVOKED */
