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_WIDTH 60
35 #define FIXEDTEXT_HEIGHT 8
37 #define RELATED_CONTROLS 4
38 #define UNRELATED_CONTROLS 7
39 #define EDIT_HEIGHT 12
40 #define BUTTON_HEIGHT 14
41 #define BUTTON_WIDTH 50
42 #define COND_TYPE_WIDTH 50
43 #define COND_OP_WIDTH 75
44 #define OPERATOR_SEP_WIDTH 15
45 #define SCROLLBAR_WIDTH 8
46 #define IMAGE_BUTTON_WIDTH 12
47 #define IMAGE_BUTTON_HEIGHT 14
51 #define FL_CONDITION_HEADER 2
52 #define CRTL_FORMAT_PREVIEW 3
54 #define LB_COND_TYPE 5
56 #define ED_CONDITION_LHS 7
61 #define FL_SEPARATOR1 12
62 #define ED_CONDITION_RHS 13
63 #define CT_CONDITION 14
65 #define CT_CONDITION_1 16
66 #define CT_CONDITION_2 17
67 #define SB_ALL_CONDITIONS 18
68 #define WND_COND_PLAYGROUND 19
69 #define BTN_MOVE_UP 20
70 #define BTN_MOVE_DOWN 21
71 #define BTN_ADD_CONDITION 22
72 #define BTN_REMOVE_CONDITION 23
73 #define IMG_MOVE_UP_HC 24
74 #define IMG_MOVE_DOWN_HC 25
76 #define ROW_0_POS ( RELATED_CONTROLS )
77 #define ROW_0_HEIGTH ( FIXEDTEXT_HEIGHT )
78 #define ROW_1_POS ( ROW_0_POS + ROW_0_HEIGTH + UNRELATED_CONTROLS )
79 #define ROW_1_HEIGTH ( EDIT_HEIGHT )
80 #define ROW_2_POS ( ROW_1_POS + ROW_1_HEIGTH + UNRELATED_CONTROLS )
81 #define ROW_2_HEIGHT ( 3 * FIXEDTEXT_HEIGHT )
82 #define ROW_3_POS ( ROW_2_POS + ROW_2_HEIGHT + RELATED_CONTROLS )
83 #define ROW_3_HEIGHT ( IMAGE_BUTTON_HEIGHT )
85 #define CONDITION_WIDTH ( 6*UNRELATED_CONTROLS + COND_TYPE_WIDTH + COND_OP_WIDTH + 2*EDIT_WIDTH + OPERATOR_SEP_WIDTH )
86 #define COND_DLG_WIDTH ( CONDITION_WIDTH + SCROLLBAR_WIDTH + UNRELATED_CONTROLS )
87 #define CONDITION_HEIGHT ( ROW_3_POS + ROW_3_HEIGHT )
88 #define COND_DLG_HEIGHT ( CONDITION_HEIGHT + 3*RELATED_CONTROLS + BUTTON_HEIGHT + 1 )
90 #endif // RPTUI_PAGENUMBER_HRC