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#ifndef RPTUI_CONDFORMAT_HRC
28#define RPTUI_CONDFORMAT_HRC
29
30#define CHECKBOX_HEIGHT      8
31#define FIXEDTEXT_WIDTH		60
32#define FIXEDTEXT_HEIGHT     8
33#define EDIT_WIDTH          75
34#define RELATED_CONTROLS     4
35#define UNRELATED_CONTROLS   7
36#define EDIT_HEIGHT         12
37#define BUTTON_HEIGHT       14
38#define BUTTON_WIDTH        50
39#define COND_TYPE_WIDTH     50
40#define COND_OP_WIDTH       75
41#define OPERATOR_SEP_WIDTH  15
42#define SCROLLBAR_WIDTH     8
43#define IMAGE_BUTTON_WIDTH  12
44#define IMAGE_BUTTON_HEIGHT 14
45
46
47#define FL_FORMAT                   1
48#define FL_CONDITION_HEADER         2
49#define CRTL_FORMAT_PREVIEW         3
50#define TB_FORMAT                   4
51#define LB_COND_TYPE                5
52#define LB_OP                       6
53#define ED_CONDITION_LHS            7
54#define FT_AND                      8
55#define PB_OK                       9
56#define PB_CANCEL                   10
57#define PB_HELP                     11
58#define FL_SEPARATOR1               12
59#define ED_CONDITION_RHS            13
60#define CT_CONDITION                14
61#define CT_DEFAULT                  15
62#define CT_CONDITION_1              16
63#define CT_CONDITION_2              17
64#define SB_ALL_CONDITIONS           18
65#define WND_COND_PLAYGROUND         19
66#define BTN_MOVE_UP                 20
67#define BTN_MOVE_DOWN               21
68#define BTN_ADD_CONDITION           22
69#define BTN_REMOVE_CONDITION        23
70#define IMG_MOVE_UP_HC              24
71#define IMG_MOVE_DOWN_HC            25
72
73#define ROW_0_POS       ( RELATED_CONTROLS )
74#define ROW_0_HEIGTH    ( FIXEDTEXT_HEIGHT )
75#define ROW_1_POS       ( ROW_0_POS + ROW_0_HEIGTH + UNRELATED_CONTROLS )
76#define ROW_1_HEIGTH    ( EDIT_HEIGHT )
77#define ROW_2_POS       ( ROW_1_POS + ROW_1_HEIGTH + UNRELATED_CONTROLS )
78#define ROW_2_HEIGHT    ( 3 * FIXEDTEXT_HEIGHT )
79#define ROW_3_POS       ( ROW_2_POS + ROW_2_HEIGHT + RELATED_CONTROLS )
80#define ROW_3_HEIGHT    ( IMAGE_BUTTON_HEIGHT )
81
82#define CONDITION_WIDTH     ( 6*UNRELATED_CONTROLS + COND_TYPE_WIDTH + COND_OP_WIDTH + 2*EDIT_WIDTH + OPERATOR_SEP_WIDTH )
83#define COND_DLG_WIDTH      ( CONDITION_WIDTH + SCROLLBAR_WIDTH + UNRELATED_CONTROLS )
84#define CONDITION_HEIGHT    ( ROW_3_POS + ROW_3_HEIGHT )
85#define COND_DLG_HEIGHT     ( CONDITION_HEIGHT + 3*RELATED_CONTROLS + BUTTON_HEIGHT + 1 )
86
87#endif // RPTUI_PAGENUMBER_HRC
88