1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28#include "chinese_dictionarydialog.hrc"
29#include "chinese_direction.hrc"
30
31#ifndef _SVT_CONTROLDIMS_HRC_
32#include <svtools/controldims.hrc>
33#endif
34
35//-----------------------------------------------------------------------------
36//defines for positions and sizes:
37
38#define FULL_WIDTH (245)
39#define FULL_HEIGHT (165)
40
41#define ROW_1 (RSC_SP_DLG_INNERBORDER_TOP)
42#define ROW_2 (ROW_1+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
43#define ROW_3 (ROW_2+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
44#define ROW_4 (ROW_3+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_CTRL_GROUP_Y)
45#define ROW_5 (ROW_4+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
46#define ROW_6 (ROW_5+RSC_CD_TEXTBOX_HEIGHT+RSC_SP_CTRL_DESC_Y)
47
48#define ROW_5a (ROW_5+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
49#define ROW_5b (ROW_5a+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
50
51#define ROW_8 (FULL_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM-RSC_CD_PUSHBUTTON_HEIGHT)
52#define ROW_7 (ROW_8-RSC_CD_FIXEDLINE_HEIGHT-2)
53
54#define LIST_HEIGHT (ROW_7-RSC_SP_CTRL_Y-ROW_6)
55
56#define COL_WIDTH 60
57#define BUTTONCOL_WIDTH 40
58#define COL_1 (RSC_SP_DLG_INNERBORDER_LEFT+RSC_SP_FLGR_SPACE_X)
59#define COL_2 (COL_1+COL_WIDTH+1)
60#define COL_3 (COL_2+COL_WIDTH+1)
61#define COL_4 (FULL_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT-BUTTONCOL_WIDTH)
62
63#define REST_COL_WIDTH (COL_4-COL_3-RSC_SP_CTRL_GROUP_X)
64
65//-----------------------------------------------------------------------------
66
67ModalDialog DLG_CHINESEDICTIONARY
68{
69    HelpID = "svx:ModalDialog:DLG_CHINESEDICTIONARY";
70	//HelpId = ;
71	Size = MAP_APPFONT( FULL_WIDTH, FULL_HEIGHT );
72	OutputSize = TRUE;
73	Closeable = TRUE ;
74	Moveable = TRUE ;
75	SVLook = TRUE;
76
77	Text [ en-US ] = "Edit Dictionary";
78
79    DIRECTION_RADIOBUTTONS( COL_1, ROW_1, FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT )
80
81    CheckBox CB_REVERSE
82	{
83        HelpID = "svx:CheckBox:DLG_CHINESEDICTIONARY:CB_REVERSE";
84		Pos = MAP_APPFONT ( COL_1, ROW_3 ) ;
85		Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT , RSC_CD_CHECKBOX_HEIGHT ) ;
86
87		Text [ en-US ] = "Reverse mapping";
88	};
89
90	FixedText FT_TERM
91	{
92        Pos = MAP_APPFONT ( COL_1 , ROW_4 ) ;
93        Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
94		Text [ en-US ] = "Term";
95	};
96	Edit ED_TERM
97	{
98	    HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_TERM";
99		Border = TRUE ;
100		Pos = MAP_APPFONT ( COL_1 , ROW_5 ) ;
101		Size = MAP_APPFONT ( COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
102	};
103
104
105	FixedText FT_MAPPING
106	{
107        Pos = MAP_APPFONT ( COL_2 , ROW_4 ) ;
108        Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
109		Text [ en-US ] = "Mapping";
110	};
111	Edit ED_MAPPING
112	{
113	    HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_MAPPING";
114		Border = TRUE ;
115		Pos = MAP_APPFONT ( COL_2 , ROW_5 ) ;
116		Size = MAP_APPFONT ( COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
117	};
118
119	FixedText FT_PROPERTY
120	{
121        Pos = MAP_APPFONT ( COL_3 , ROW_4 ) ;
122        Size = MAP_APPFONT ( REST_COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
123		Text [ en-US ] = "Property";
124	};
125    ListBox LB_PROPERTY
126	{
127        HelpID = "svx:ListBox:DLG_CHINESEDICTIONARY:LB_PROPERTY";
128		Border = TRUE ;
129		Pos = MAP_APPFONT ( COL_3 , ROW_5 ) ;
130		Size = MAP_APPFONT ( REST_COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
131		DropDown = TRUE ;
132
133        stringlist [ en-US ] =
134		{
135		    < "Other" ; Default ; > ;
136			< "Foreign" ; > ;
137			< "First name" ; > ;
138			< "Last name" ; > ;
139			< "Title" ; > ;
140			< "Status" ; > ;
141			< "Place name" ; > ;
142			< "Business" ; > ;
143			< "Adjective" ; > ;
144			< "Idiom" ; > ;
145			< "Abbreviation" ; > ;
146			< "Numerical" ; > ;
147			< "Noun" ; > ;
148			< "Verb" ; > ;
149			< "Brand name" ; > ;
150		};
151	};
152
153	Control CT_MAPPINGLIST
154	{
155	    Pos = MAP_APPFONT ( COL_1, ROW_6 ) ;
156        Size = MAP_APPFONT ( COL_4 - COL_1 - RSC_SP_CTRL_GROUP_X, LIST_HEIGHT ) ;
157        TabStop = TRUE ;
158	};
159
160	PushButton PB_ADD
161	{
162	    HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_ADD";
163		Pos = MAP_APPFONT( COL_4, ROW_5 );
164		Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
165
166		Text [ en-US ] = "~Add";
167	};
168	PushButton PB_MODIFY
169	{
170	    HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_MODIFY";
171		Pos = MAP_APPFONT( COL_4, ROW_5a );
172		Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
173
174		Text [ en-US ] = "~Modify";
175	};
176	PushButton PB_DELETE
177	{
178	    HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_DELETE";
179		Pos = MAP_APPFONT( COL_4, ROW_5b );
180		Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
181
182		Text [ en-US ] = "~Delete";
183	};
184
185    FixedLine FL_BOTTOMLINE
186	{
187        Pos = MAP_APPFONT ( 0 , ROW_7 ) ;
188        Size = MAP_APPFONT ( FULL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ;
189	};
190
191	BUTTONS_OK_CANCEL_HELP_ABREAST( FULL_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT, ROW_8 )
192};
193