1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef RPTUI_CONDFORMAT_HRC
24#define RPTUI_CONDFORMAT_HRC
25
26#define CHECKBOX_HEIGHT      8
27#define FIXEDTEXT_WIDTH		60
28#define FIXEDTEXT_HEIGHT     8
29#define EDIT_WIDTH          75
30#define RELATED_CONTROLS     4
31#define UNRELATED_CONTROLS   7
32#define EDIT_HEIGHT         12
33#define BUTTON_HEIGHT       14
34#define BUTTON_WIDTH        50
35#define COND_TYPE_WIDTH     50
36#define COND_OP_WIDTH       75
37#define OPERATOR_SEP_WIDTH  15
38#define SCROLLBAR_WIDTH     8
39#define IMAGE_BUTTON_WIDTH  12
40#define IMAGE_BUTTON_HEIGHT 14
41
42
43#define FL_FORMAT                   1
44#define FL_CONDITION_HEADER         2
45#define CRTL_FORMAT_PREVIEW         3
46#define TB_FORMAT                   4
47#define LB_COND_TYPE                5
48#define LB_OP                       6
49#define ED_CONDITION_LHS            7
50#define FT_AND                      8
51#define PB_OK                       9
52#define PB_CANCEL                   10
53#define PB_HELP                     11
54#define FL_SEPARATOR1               12
55#define ED_CONDITION_RHS            13
56#define CT_CONDITION                14
57#define CT_DEFAULT                  15
58#define CT_CONDITION_1              16
59#define CT_CONDITION_2              17
60#define SB_ALL_CONDITIONS           18
61#define WND_COND_PLAYGROUND         19
62#define BTN_MOVE_UP                 20
63#define BTN_MOVE_DOWN               21
64#define BTN_ADD_CONDITION           22
65#define BTN_REMOVE_CONDITION        23
66#define IMG_MOVE_UP_HC              24
67#define IMG_MOVE_DOWN_HC            25
68
69#define ROW_0_POS       ( RELATED_CONTROLS )
70#define ROW_0_HEIGTH    ( FIXEDTEXT_HEIGHT )
71#define ROW_1_POS       ( ROW_0_POS + ROW_0_HEIGTH + UNRELATED_CONTROLS )
72#define ROW_1_HEIGTH    ( EDIT_HEIGHT )
73#define ROW_2_POS       ( ROW_1_POS + ROW_1_HEIGTH + UNRELATED_CONTROLS )
74#define ROW_2_HEIGHT    ( 3 * FIXEDTEXT_HEIGHT )
75#define ROW_3_POS       ( ROW_2_POS + ROW_2_HEIGHT + RELATED_CONTROLS )
76#define ROW_3_HEIGHT    ( IMAGE_BUTTON_HEIGHT )
77
78#define CONDITION_WIDTH     ( 6*UNRELATED_CONTROLS + COND_TYPE_WIDTH + COND_OP_WIDTH + 2*EDIT_WIDTH + OPERATOR_SEP_WIDTH )
79#define COND_DLG_WIDTH      ( CONDITION_WIDTH + SCROLLBAR_WIDTH + UNRELATED_CONTROLS )
80#define CONDITION_HEIGHT    ( ROW_3_POS + ROW_3_HEIGHT )
81#define COND_DLG_HEIGHT     ( CONDITION_HEIGHT + 3*RELATED_CONTROLS + BUTTON_HEIGHT + 1 )
82
83#endif // RPTUI_PAGENUMBER_HRC
84