// 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_PARA_TAB					1001
#define AP_RID_DIALOG_PARA_BTN_TABS				1002
#define AP_RID_DIALOG_PARA_BTN_OK				IDOK
#define AP_RID_DIALOG_PARA_BTN_CANCEL			IDCANCEL

// used on each tab
#define AP_RID_DIALOG_PARA_LINE					-1
#define AP_RID_DIALOG_PARA_TEXT_PREVIEW			1003
#define AP_RID_DIALOG_PARA_PREVIEW				1004

// first tab
#define AP_RID_DIALOG_PARA_TEXT_ALIGN			1010
#define AP_RID_DIALOG_PARA_COMBO_ALIGN			1011
#define AP_RID_DIALOG_PARA_TEXT_LEVEL			1012
#define AP_RID_DIALOG_PARA_COMBO_LEVEL			1013
#define AP_RID_DIALOG_PARA_TEXT_INDENT			1014
#define AP_RID_DIALOG_PARA_TEXT_LEFT			1015
#define AP_RID_DIALOG_PARA_EDIT_LEFT			1016
#define AP_RID_DIALOG_PARA_SPIN_LEFT			1017
#define AP_RID_DIALOG_PARA_TEXT_RIGHT			1018
#define AP_RID_DIALOG_PARA_EDIT_RIGHT			1019
#define AP_RID_DIALOG_PARA_SPIN_RIGHT			1020
#define AP_RID_DIALOG_PARA_TEXT_HANG			1021
#define AP_RID_DIALOG_PARA_COMBO_HANG			1022
#define AP_RID_DIALOG_PARA_TEXT_BY				1023
#define AP_RID_DIALOG_PARA_EDIT_BY				1024
#define AP_RID_DIALOG_PARA_SPIN_BY				1025
#define AP_RID_DIALOG_PARA_TEXT_SPACING			1026
#define AP_RID_DIALOG_PARA_TEXT_BEFORE			1027
#define AP_RID_DIALOG_PARA_EDIT_BEFORE			1028
#define AP_RID_DIALOG_PARA_SPIN_BEFORE			1029
#define AP_RID_DIALOG_PARA_TEXT_AFTER			1030
#define AP_RID_DIALOG_PARA_EDIT_AFTER			1031
#define AP_RID_DIALOG_PARA_SPIN_AFTER			1032
#define AP_RID_DIALOG_PARA_TEXT_LEAD			1033
#define AP_RID_DIALOG_PARA_COMBO_LEAD			1034
#define AP_RID_DIALOG_PARA_TEXT_AT				1035
#define AP_RID_DIALOG_PARA_EDIT_AT				1036
#define AP_RID_DIALOG_PARA_SPIN_AT				1037
#define AP_RID_DIALOG_PARA_CHECK_BIDI			1038

// second tab
#define AP_RID_DIALOG_PARA_TEXT_PAGE			1050
#define AP_RID_DIALOG_PARA_CHECK_WIDOW			1051
#define AP_RID_DIALOG_PARA_CHECK_NEXT			1052
#define AP_RID_DIALOG_PARA_CHECK_TOGETHER		1053
#define AP_RID_DIALOG_PARA_CHECK_BREAK			1054
#define AP_RID_DIALOG_PARA_CHECK_SUPPRESS		1055
#define AP_RID_DIALOG_PARA_CHECK_NOHYPHEN		1056


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

AP_RID_DIALOG_PARAGRAPH DIALOG DISCARDABLE  0, 0, 278, 262
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Paragraph"
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "Tab1",				AP_RID_DIALOG_PARA_TAB,
										"SysTabControl32",
										TCS_FOCUSONBUTTONDOWN | WS_TABSTOP,7,6,264,231,
										WS_EX_CONTROLPARENT
	CONTROL			""					AP_RID_DIALOG_PARA_PREVIEW,		"Static",0,1,1,1,1
    PUSHBUTTON      "&Tabs...",			AP_RID_DIALOG_PARA_BTN_TABS,	7,243,50,14
    DEFPUSHBUTTON   "OK",				AP_RID_DIALOG_PARA_BTN_OK,		167,243,50,14
    PUSHBUTTON      "Cancel",			AP_RID_DIALOG_PARA_BTN_CANCEL,	221,243,50,14
END

AP_RID_DIALOG_PARA_TAB1 DIALOG DISCARDABLE  0, 0, 260, 214
STYLE DS_CONTROL | WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    LTEXT           "Ali&gnment:",		AP_RID_DIALOG_PARA_TEXT_ALIGN,	2,6,43,8
    COMBOBOX							AP_RID_DIALOG_PARA_COMBO_ALIGN,	54,4,52,59,
										CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    CONTROL         "Bidi:",			AP_RID_DIALOG_PARA_CHECK_BIDI,	
										"Button", BS_AUTOCHECKBOX | WS_TABSTOP, 141,6,110,8
    LTEXT           "&Outline level:",	AP_RID_DIALOG_PARA_TEXT_LEVEL,	141,6,43,8,NOT WS_VISIBLE
    COMBOBOX							AP_RID_DIALOG_PARA_COMBO_LEVEL,	198,4,52,97,
										CBS_DROPDOWNLIST | NOT WS_VISIBLE | WS_VSCROLL | WS_TABSTOP
    CONTROL         "",					AP_RID_DIALOG_PARA_LINE,		"Static",SS_ETCHEDHORZ,2,27,256,1
    LTEXT           "Indentation",		AP_RID_DIALOG_PARA_TEXT_INDENT,	2,23,40,8
    LTEXT           "&Left:",			AP_RID_DIALOG_PARA_TEXT_LEFT,	12,38,15,8
    EDITTEXT							AP_RID_DIALOG_PARA_EDIT_LEFT,	54,36,52,12,ES_AUTOHSCROLL
    CONTROL         "Spin1",			AP_RID_DIALOG_PARA_SPIN_LEFT,
										"msctls_updown32",
										UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS,106,35,11,14
    LTEXT           "&Right:",			AP_RID_DIALOG_PARA_TEXT_RIGHT,	12,55,20,8
    EDITTEXT							AP_RID_DIALOG_PARA_EDIT_RIGHT,	54,53,52,12,ES_AUTOHSCROLL
    CONTROL         "Spin1",			AP_RID_DIALOG_PARA_SPIN_RIGHT,
										"msctls_updown32",
										UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS,106,52,11,14
    LTEXT           "&Special:",		AP_RID_DIALOG_PARA_TEXT_HANG,	142,42,26,8
    COMBOBOX							AP_RID_DIALOG_PARA_COMBO_HANG,	141,53,52,55,
										CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    LTEXT           "&By:",				AP_RID_DIALOG_PARA_TEXT_BY,		198,42,11,8
    EDITTEXT							AP_RID_DIALOG_PARA_EDIT_BY,		198,53,52,12,ES_AUTOHSCROLL
    CONTROL         "Spin1",			AP_RID_DIALOG_PARA_SPIN_BY,
										"msctls_updown32",
										UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS,232,36,11,14
    CONTROL         "",					AP_RID_DIALOG_PARA_LINE,		"Static",SS_ETCHEDHORZ,2,83,256,1
    LTEXT           "Spacing",			AP_RID_DIALOG_PARA_TEXT_SPACING,2,79,31,8
    LTEXT           "&Before:",			AP_RID_DIALOG_PARA_TEXT_BEFORE,	12,95,24,8
    EDITTEXT							AP_RID_DIALOG_PARA_EDIT_BEFORE,	54,93,52,12,ES_AUTOHSCROLL
    CONTROL         "Spin1",			AP_RID_DIALOG_PARA_SPIN_BEFORE,
										"msctls_updown32",
										UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS,106,92,11,14
    LTEXT           "Aft&er:",			AP_RID_DIALOG_PARA_TEXT_AFTER,	12,111,18,8
    EDITTEXT							AP_RID_DIALOG_PARA_EDIT_AFTER,	54,109,52,12,ES_AUTOHSCROLL
    CONTROL         "Spin1",			AP_RID_DIALOG_PARA_SPIN_AFTER,
										"msctls_updown32",
										UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS,106,109,11,14
    LTEXT           "Li&ne spacing:",	AP_RID_DIALOG_PARA_TEXT_LEAD,	142,98,43,8
    COMBOBOX							AP_RID_DIALOG_PARA_COMBO_LEAD,	141,109,52,75,
										CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    LTEXT           "&At:",				AP_RID_DIALOG_PARA_TEXT_AT,		198,98,10,8
    EDITTEXT							AP_RID_DIALOG_PARA_EDIT_AT,		198,109,52,12,ES_AUTOHSCROLL
    CONTROL         "Spin1",			AP_RID_DIALOG_PARA_SPIN_AT,
										"msctls_updown32",
										UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS,232,93,11,14
    CONTROL         "",					AP_RID_DIALOG_PARA_LINE,		"Static",SS_ETCHEDHORZ,2,136,256,1
    LTEXT           "Preview",			AP_RID_DIALOG_PARA_TEXT_PREVIEW,2,132,30,8
    CONTROL         "(preview)",		AP_RID_DIALOG_PARA_PREVIEW,
										"Button",BS_OWNERDRAW,			14,145,233,65
END

AP_RID_DIALOG_PARA_TAB2 DIALOG DISCARDABLE  0, 0, 260, 214
STYLE DS_CONTROL | WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "",					AP_RID_DIALOG_PARA_LINE,		"Static",SS_ETCHEDHORZ,2,10,256,1
    LTEXT           "Pagination",		AP_RID_DIALOG_PARA_TEXT_PAGE,	2,6,38,8
    CONTROL         "&Widow/Orphan control",
										AP_RID_DIALOG_PARA_CHECK_WIDOW,
										"Button",BS_AUTO3STATE | WS_TABSTOP,14,18,101,10
    CONTROL         "Keep with ne&xt",	
										AP_RID_DIALOG_PARA_CHECK_NEXT,
										"Button",BS_AUTO3STATE | WS_TABSTOP,150,18,101,10
    CONTROL         "&Keep lines together",	
										AP_RID_DIALOG_PARA_CHECK_TOGETHER,
										"Button",BS_AUTO3STATE | WS_TABSTOP,14,32,101,10
    CONTROL         "Page &break before",	
										AP_RID_DIALOG_PARA_CHECK_BREAK,
										"Button",BS_AUTO3STATE | WS_TABSTOP,150,32,101,10
    CONTROL         "",					AP_RID_DIALOG_PARA_LINE,		"Static",SS_ETCHEDHORZ,2,56,256,1
    CONTROL         "&Suppress line numbers",	
										AP_RID_DIALOG_PARA_CHECK_SUPPRESS,
										"Button",BS_AUTO3STATE | WS_TABSTOP,14,64,101,10
    CONTROL         "&Don't hyphenate",		
										AP_RID_DIALOG_PARA_CHECK_NOHYPHEN,
										"Button",BS_AUTO3STATE | WS_TABSTOP,14,78,101,10
    CONTROL         "",					AP_RID_DIALOG_PARA_LINE,		"Static",SS_ETCHEDHORZ,2,136,256,1
    LTEXT           "Preview",			AP_RID_DIALOG_PARA_TEXT_PREVIEW,2,132,30,8
    CONTROL         "(preview)",		AP_RID_DIALOG_PARA_PREVIEW,
										"Button",BS_OWNERDRAW,			14,145,233,65
END
#endif /* RC_INVOKED */
