update dev300-m57
[ooovba.git] / svtools / inc / controldims.hrc
blobe0a507902b299a21e662578bd5c80264d70670df
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  * 
5  * Copyright 2008 by Sun Microsystems, Inc.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * $RCSfile: controldims.hrc,v $
10  * $Revision: 1.5 $
11  *
12  * This file is part of OpenOffice.org.
13  *
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.
17  *
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).
23  *
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.
28  *
29  ************************************************************************/
31 #ifndef _SVT_CONTROLDIMS_HRC_
32 #define _SVT_CONTROLDIMS_HRC_
35 // From: Dialogue Specification and Guidelines - Visual Design V1.3
36 // by Christian Jansen
40 // Usage:
41 // ======
43 // all values have to be mapped by MAP_APPFONT
46 // Base
47 #define RSC_BS_CHARHEIGHT                                       8
48 #define RSC_BS_CHARWIDTH                                        4
50 // control dimensions
51 #define RSC_CD_PUSHBUTTON_WIDTH                         50
52 #define RSC_CD_PUSHBUTTON_HEIGHT                        14              
54 #define RSC_CD_FIXEDTEXT_HEIGHT                         RSC_BS_CHARHEIGHT
55 #define RSC_CD_FIXEDLINE_HEIGHT                         RSC_BS_CHARHEIGHT
56 #define RSC_CD_FIXEDLINE_WIDTH                          RSC_BS_CHARWIDTH        // for vertical FixedLines
58 #define RSC_CD_DROPDOWN_HEIGHT                          12              // also combobox and dropdown list
59 #define RSC_CD_TEXTBOX_HEIGHT                           12              // also numeric fields etc.
61 #define RSC_CD_CHECKBOX_HEIGHT                          10              // also tristate
62 #define RSC_CD_RADIOBUTTON_HEIGHT                       10
64 // spacings
65 #define RSC_SP_CTRL_X                                           6               // controls that are unrelated
66 #define RSC_SP_CTRL_Y                                           7
67 #define RSC_SP_CTRL_GROUP_X                                     3               // related controls, or controls in a groupbox
68 #define RSC_SP_CTRL_GROUP_Y                                     4
69 #define RSC_SP_CTRL_DESC_X                                      3               // between description text and related control
70 #define RSC_SP_CTRL_DESC_Y                                      3
72 // overruled spacings between certain controls
73 #define RSC_SP_FLGR_SPACE_X                                     6               // between groupings made with FixedLine
74 #define RSC_SP_FLGR_SPACE_Y                                     4
75 #define RSC_SP_GRP_SPACE_X                                      6               // between groupings made with GroupBox
76 #define RSC_SP_GRP_SPACE_Y                                      6
77 #define RSC_SP_TXT_SPACE_X                                      5               // spacing between text paragraphs
78 #define RSC_SP_TXT_SPACE_Y                                      7
79 #define RSC_SP_CHK_TEXTINDENT                           8               // x indent of text aligned to checkbox title
81 // dialog inner border
82 #define RSC_SP_DLG_INNERBORDER_LEFT                     6
83 #define RSC_SP_DLG_INNERBORDER_TOP                      6
84 #define RSC_SP_DLG_INNERBORDER_RIGHT            6
85 #define RSC_SP_DLG_INNERBORDER_BOTTOM           6
87 // tab page inner border
88 #define RSC_SP_TBPG_INNERBORDER_LEFT            6               // for tabpage groupings
89 #define RSC_SP_TBPG_INNERBORDER_TOP                     3
90 #define RSC_SP_TBPG_INNERBORDER_RIGHT           6
91 #define RSC_SP_TBPG_INNERBORDER_BOTTOM          6
93 // FixedLine group inner border
94 #define RSC_SP_FLGR_INNERBORDER_LEFT            6               // for FixedLine groupings
95 #define RSC_SP_FLGR_INNERBORDER_TOP                     3
96 #define RSC_SP_FLGR_INNERBORDER_RIGHT           0
97 #define RSC_SP_FLGR_INNERBORDER_BOTTOM          0
99 // GroupBox inner border
100 #define RSC_SP_GRP_INNERBORDER_LEFT                     6               // for GroupBox groupings
101 #define RSC_SP_GRP_INNERBORDER_TOP                      6
102 #define RSC_SP_GRP_INNERBORDER_RIGHT            6
103 #define RSC_SP_GRP_INNERBORDER_BOTTOM           6
105 #endif // _SVT_CONTROLDIMS_HRC_