merge the formfield patch from ooo-build
[ooovba.git] / svx / source / cui / optgdlg.hrc
blobbea3f7234137b8242fc0d37497c489e67d8b257b
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  * 
5  * Copyright 2008 by Sun Microsystems, Inc.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * $RCSfile: optgdlg.hrc,v $
10  * $Revision: 1.22 $
11  *
12  * This file is part of OpenOffice.org.
13  *
14  * OpenOffice.org is free software: you can redistribute it and/or modify
15  * it under the terms of the GNU Lesser General Public License version 3
16  * only, as published by the Free Software Foundation.
17  *
18  * OpenOffice.org is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU Lesser General Public License version 3 for more details
22  * (a copy is included in the LICENSE file that accompanied this code).
23  *
24  * You should have received a copy of the GNU Lesser General Public License
25  * version 3 along with OpenOffice.org.  If not, see
26  * <http://www.openoffice.org/license.html>
27  * for a copy of the LGPLv3 License.
28  *
29  ************************************************************************/
30 #ifndef _SVX_OPTGDLG_HRC
31 #define _SVX_OPTGDLG_HRC
32 #include <svtools/controldims.hrc>
34 // defines for positions and sizes ---------------------------------------
36 #define WHOLE_WIDTH                             248
37 #define EDIT_WIDTH                              30
38 #define UNIT_WIDTH                              40
40 #define COLSPACE                                RSC_SP_CTRL_DESC_X
41 #define COL0                                    6
42 #define COL1                                    (COL0+6)
43 #define COL2                                    (COL1+10)
44 #define COL3                                    (COL2+100)
45 #define COL4                                    (COL3+COLSPACE)
46 #define COL5                                    (COL4+EDIT_WIDTH)
47 #define COL6                                    (COL5+COLSPACE)
49 #define ROWSPACE                                RSC_SP_CTRL_DESC_Y
50 #define ROW0                                    3
51 #define ROW1                                    (ROW0+RSC_CD_FIXEDLINE_HEIGHT+ROWSPACE)
52 #define ROW2                                    (ROW1+RSC_CD_CHECKBOX_HEIGHT+ROWSPACE)
53 #define ROW3                                    (ROW2+RSC_CD_CHECKBOX_HEIGHT+ROWSPACE)
54 #define ROW4                                    (ROW3+RSC_CD_CHECKBOX_HEIGHT+ROWSPACE)
55 #define ROW5                    (ROW4+RSC_CD_PUSHBUTTON_HEIGHT+ROWSPACE)
56 #define ROW6                    (ROW5+RSC_CD_DROPDOWN_HEIGHT+ROWSPACE)
57 #define ROW7                                    (ROW6+RSC_CD_FIXEDLINE_HEIGHT+ROWSPACE)
58 #define ROW8                                    (ROW7+RSC_CD_CHECKBOX_HEIGHT+ROWSPACE)
59 #define ROW9                                    (ROW8+RSC_CD_CHECKBOX_HEIGHT+ROWSPACE)
60 #define ROW10                                   (ROW9+RSC_CD_FIXEDLINE_HEIGHT+ROWSPACE)
61 #define ROW11                                   (ROW10+RSC_CD_CHECKBOX_HEIGHT+ROWSPACE)
62 #define ROW12                                   (ROW11+RSC_CD_FIXEDLINE_HEIGHT+ROWSPACE)
64 #define DIFF(v1,v2)                                             (v2-v1)
65 #define OFFS_TEXTBOX_FIXEDTEXT(base)    (base+(RSC_CD_TEXTBOX_HEIGHT-RSC_CD_FIXEDTEXT_HEIGHT)/2)
66 //#define OFFS_PUSHBUTTON_FIXEDTEXT(base)       (base+(RSC_CD_PUSHBUTTON_HEIGHT-RSC_CD_FIXEDTEXT_HEIGHT)/2)
68 #define ROW_MF_SCALING          (13)
69 #define ROW_FT_ICONSIZESTYLE    (ROW_MF_SCALING+RSC_CD_DROPDOWN_HEIGHT+ROWSPACE)
70 #define ROW_LB_ICONSIZESTYLE    (ROW_FT_ICONSIZESTYLE+RSC_CD_FIXEDTEXT_HEIGHT+ROWSPACE)
71 #define ROW_CB_SYSTEM_FONT      (ROW_LB_ICONSIZESTYLE+RSC_CD_DROPDOWN_HEIGHT+ROWSPACE)
72 #define ROW_CB_FONTANTIALIASING (ROW_CB_SYSTEM_FONT+ (2 * RSC_CD_FIXEDLINE_HEIGHT) +ROWSPACE)
73 #define ROW_NF_AA_POINTLIMIT    (ROW_CB_FONTANTIALIASING+RSC_CD_FIXEDLINE_HEIGHT+ROWSPACE)
75 #define ROW_FL_MENU             (ROW_NF_AA_POINTLIMIT+RSC_CD_DROPDOWN_HEIGHT+RSC_SP_FLGR_SPACE_X)
76 #define ROW_FT_MENU_ICONS       (ROW_FL_MENU + RSC_CD_FIXEDLINE_HEIGHT + ROWSPACE)
77 #define ROW_LB_MENU_ICONS       (ROW_FT_MENU_ICONS + RSC_CD_FIXEDLINE_HEIGHT + ROWSPACE)
79 #define ROW_FL_FONTLISTS        (ROW_LB_MENU_ICONS + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_FLGR_SPACE_X)
80 #define ROW_CB_FONT_SHOW        (ROW_FL_FONTLISTS + RSC_CD_FIXEDLINE_HEIGHT + ROWSPACE)
81 #define ROW_CB_FONT_HISTORY     (ROW_CB_FONT_SHOW + RSC_CD_CHECKBOX_HEIGHT + ROWSPACE)
83 // #i95644# start on top with rendering section
84 #define ROW_FL_RENDERING        (3)
85 #define ROW_CB_USE_HARDACCELL   (ROW_FL_RENDERING + RSC_CD_FIXEDLINE_HEIGHT + ROWSPACE)
86 #define ROW_CB_USE_ANTIALIASE   (ROW_CB_USE_HARDACCELL + RSC_CD_CHECKBOX_HEIGHT + ROWSPACE)
88 // #i95644# set Menu to follow vertically (was (ROW_FL_MENU)) previously)
89 #define ROW_FL_MOUSE            (ROW_CB_USE_ANTIALIASE + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_SPACE_X)
90 #define ROW_FT_MOUSEPOS         (ROW_FL_MOUSE + RSC_CD_FIXEDLINE_HEIGHT + ROWSPACE)
91 #define ROW_LB_MOUSEPOS         (ROW_FT_MOUSEPOS + RSC_CD_FIXEDTEXT_HEIGHT + ROWSPACE)
92 #define ROW_FT_MOUSEMIDDLE      (ROW_LB_MOUSEPOS + RSC_CD_DROPDOWN_HEIGHT + ROWSPACE)
93 #define ROW_LB_MOUSEMIDDLE      (ROW_FT_MOUSEMIDDLE + RSC_CD_FIXEDTEXT_HEIGHT + ROWSPACE)
95 // #i97672#
96 #define ROW_FL_SELECTION                (ROW_LB_MOUSEMIDDLE + RSC_CD_DROPDOWN_HEIGHT + RSC_SP_FLGR_SPACE_X)
97 #define ROW_CB_SELECTION        (ROW_FL_SELECTION + RSC_CD_FIXEDLINE_HEIGHT + ROWSPACE)
99 // tabpage general -------------------------------------------------------
101 #define FL_HELP                                         10
102 #define CB_TOOLTIP                                      11
103 #define CB_EXTHELP                                      12
104 #define CB_HELPAGENT                            13
105 #define PB_HELPAGENT_RESET                      14
106 #define FT_HELPFORMAT                           15
107 #define LB_HELPFORMAT                           16
109 //#define FL_FILEDLG                 20
110 //#define CB_FILEDLG                 21
112 //#define FL_DOCSTATUS               30
113 //#define CB_DOCSTATUS               31
115 #define FL_TWOFIGURE                            40
116 #define FT_INTERPRET                            41
117 #define NF_YEARVALUE                            42
118 #define FT_TOYEAR                                       43
119 #define FL_PRINTDLG                 44
120 #define CB_PRINTDLG                 45
122 // tabpage view ----------------------------------------------------------
123 // #i95644# 10 .. 14 freed, may be reused
125 #define FL_USERINTERFACE                        20
126 #define FT_WINDOWSIZE                           21
127 #define MF_WINDOWSIZE                           22
129 #define FL_MOUSE                                        30
130 #define LB_MOUSEPOS                                     31
131 #define FT_MOUSEPOS                                     32
132 #define FT_MOUSEMIDDLE                          33
133 #define LB_MOUSEMIDDLE                          34
135 #define FT_MENU_ICONS                           40
136 #define LB_MENU_ICONS                           41
137 #define FL_MENU                                         42
138 #define FL_FONTLISTS                            43
140 #define LB_ICONSIZE                                     54
141 #define FT_ICONSIZESTYLE                        55
142 #define LB_ICONSTYLE                            56
143 #define CB_SYSTEM_FONT                          57
144 #define STR_ICONSIZE                    58
146 #define CB_FONT_SHOW                            60
147 #define CB_FONT_HISTORY                         62
149 #define CB_FONTANTIALIASING                     63
150 #define NF_AA_POINTLIMIT                        64
151 #define FT_POINTLIMIT_LABEL                     65
152 #define FT_POINTLIMIT_UNIT                      66
154 #define FL_RENDERING                67
155 #define CB_USE_HARDACCELL           68
156 #define CB_USE_ANTIALIASE                       69
158 // #i97672#
159 #define FL_SELECTION                            70
160 #define CB_SELECTION                            71
161 #define MF_SELECTION                            72
163 // tabpage languages -----------------------------------------------------
165 #define FL_UI_LANG                              1
166 #define FT_UI_LANG              2
167 #define LB_UI_LANG              3
168 #define FL_LINGU_LANG               4
169 #define FT_WEST_LANG                5
170 #define LB_WEST_LANG                6
171 #define FT_ASIAN_LANG               7
172 #define LB_ASIAN_LANG               8
173 #define FT_COMPLEX_LANG         9
174 #define LB_COMPLEX_LANG         10
175 #define CB_CURRENT_DOC          11
176 #define FL_ENHANCED             12
177 #define CB_ASIANSUPPORT         13
178 #define CB_CTLSUPPORT           15
179 #define FT_LOCALESETTING        16
180 #define LB_LOCALESETTING        17
181 #define FT_CURRENCY             18
182 #define LB_CURRENCY             19
183 #define FI_WEST_LANG            20
184 #define FI_ASIAN_LANG           21
185 #define FI_COMPLEX_LANG         22
186 #define FI_ASIANSUPPORT         23
187 #define FI_CTLSUPPORT           24
188 #define FI_LOCALESETTING        25
189 #define FI_CURRENCY             26
190 #define FT_DECIMALSEPARATOR     27
191 #define CB_DECIMALSEPARATOR     28
192 #define FI_USERINTERFACE        29
193 #define FT_USERINTERFACE        30
194 #define LB_USERINTERFACE        31
195 #define STR_IB_LANGCHANGE_TITLE 32
197 #define FL_FILEDLG                  53
198 #define FI_FILEDLG_RO               54
199 #define CB_FILEDLG                  55
200 #define FT_GRAPHICCACHE_UNIT        56
201 #define FT_GRAPHICOBJECTCACHE_UNIT  57
202 #define FT_GRAPHICOBJECTTIME_UNIT   58
203 #define FT_HELPAGENT_TIME_UNIT      59
204 #define FL_DOCSTATUS                60
205 #define CB_DOCSTATUS                61
206 #define CB_ODMADLG                  62
207 #endif // #ifndef _SVX_OPTGDLG_HRC
209 // ******************************************************************* EOF