blob: 5d776ff9726b8fe47513d27461b4f467bd983851 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef RPTUI_CONDFORMAT_HRC
#define RPTUI_CONDFORMAT_HRC
#define CHECKBOX_HEIGHT 8
#define FIXEDTEXT_WIDTH 60
#define FIXEDTEXT_HEIGHT 8
#define EDIT_WIDTH 75
#define RELATED_CONTROLS 4
#define UNRELATED_CONTROLS 7
#define EDIT_HEIGHT 12
#define BUTTON_HEIGHT 14
#define BUTTON_WIDTH 50
#define COND_TYPE_WIDTH 50
#define COND_OP_WIDTH 75
#define OPERATOR_SEP_WIDTH 15
#define SCROLLBAR_WIDTH 8
#define IMAGE_BUTTON_WIDTH 12
#define IMAGE_BUTTON_HEIGHT 14
#define ROW_0_POS ( RELATED_CONTROLS )
#define ROW_0_HEIGHT ( FIXEDTEXT_HEIGHT )
#define ROW_1_POS ( ROW_0_POS + ROW_0_HEIGHT + UNRELATED_CONTROLS )
#define ROW_1_HEIGHT ( EDIT_HEIGHT )
#define ROW_2_POS ( ROW_1_POS + ROW_1_HEIGHT + UNRELATED_CONTROLS )
#define ROW_2_HEIGHT ( 3 * FIXEDTEXT_HEIGHT )
#define ROW_3_POS ( ROW_2_POS + ROW_2_HEIGHT + RELATED_CONTROLS )
#define ROW_3_HEIGHT ( IMAGE_BUTTON_HEIGHT )
#define CONDITION_WIDTH ( 6*UNRELATED_CONTROLS + COND_TYPE_WIDTH + COND_OP_WIDTH + 2*EDIT_WIDTH + OPERATOR_SEP_WIDTH )
#define COND_DLG_WIDTH ( CONDITION_WIDTH + SCROLLBAR_WIDTH + UNRELATED_CONTROLS )
#define CONDITION_HEIGHT ( ROW_3_POS + ROW_3_HEIGHT )
#define COND_DLG_HEIGHT ( CONDITION_HEIGHT + 3*RELATED_CONTROLS + BUTTON_HEIGHT + 1 )
#endif // RPTUI_PAGENUMBER_HRC
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|