1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: CondFormat.hrc,v $
12 * This file is part of OpenOffice.org.
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.
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).
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.
29 ************************************************************************/
30 #ifndef RPTUI_CONDFORMAT_HRC
31 #define RPTUI_CONDFORMAT_HRC
33 #define CHECKBOX_HEIGHT 8
34 #define FIXEDTEXT_HEIGHT 8
36 #define RELATED_CONTROLS 4
37 #define UNRELATED_CONTROLS 7
38 #define EDIT_HEIGHT 12
39 #define BUTTON_HEIGHT 14
40 #define BUTTON_WIDTH 50
41 #define COND_TYPE_WIDTH 50
42 #define COND_OP_WIDTH 75
43 #define OPERATOR_SEP_WIDTH 15
44 #define SCROLLBAR_WIDTH 8
45 #define IMAGE_BUTTON_WIDTH 12
46 #define IMAGE_BUTTON_HEIGHT 14
50 #define FL_CONDITION_HEADER 2
51 #define CRTL_FORMAT_PREVIEW 3
53 #define LB_COND_TYPE 5
55 #define ED_CONDITION_LHS 7
60 #define FL_SEPARATOR1 12
61 #define ED_CONDITION_RHS 13
62 #define CT_CONDITION 14
64 #define CT_CONDITION_1 16
65 #define CT_CONDITION_2 17
66 #define SB_ALL_CONDITIONS 18
67 #define WND_COND_PLAYGROUND 19
68 #define BTN_MOVE_UP 20
69 #define BTN_MOVE_DOWN 21
70 #define BTN_ADD_CONDITION 22
71 #define BTN_REMOVE_CONDITION 23
72 #define IMG_MOVE_UP_HC 24
73 #define IMG_MOVE_DOWN_HC 25
75 #define ROW_0_POS ( RELATED_CONTROLS )
76 #define ROW_0_HEIGTH ( FIXEDTEXT_HEIGHT )
77 #define ROW_1_POS ( ROW_0_POS + ROW_0_HEIGTH + UNRELATED_CONTROLS )
78 #define ROW_1_HEIGTH ( EDIT_HEIGHT )
79 #define ROW_2_POS ( ROW_1_POS + ROW_1_HEIGTH + UNRELATED_CONTROLS )
80 #define ROW_2_HEIGHT ( 3 * FIXEDTEXT_HEIGHT )
81 #define ROW_3_POS ( ROW_2_POS + ROW_2_HEIGHT + RELATED_CONTROLS )
82 #define ROW_3_HEIGHT ( IMAGE_BUTTON_HEIGHT )
84 #define CONDITION_WIDTH ( 6*UNRELATED_CONTROLS + COND_TYPE_WIDTH + COND_OP_WIDTH + 2*EDIT_WIDTH + OPERATOR_SEP_WIDTH )
85 #define COND_DLG_WIDTH ( CONDITION_WIDTH + SCROLLBAR_WIDTH + UNRELATED_CONTROLS )
86 #define CONDITION_HEIGHT ( ROW_3_POS + ROW_3_HEIGHT )
87 #define COND_DLG_HEIGHT ( CONDITION_HEIGHT + 3*RELATED_CONTROLS + BUTTON_HEIGHT + 1 )
89 #endif // RPTUI_PAGENUMBER_HRC