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