xref: /trunk/main/cui/source/customize/macropg.hrc (revision 8414840e)
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
24#ifndef _MACROPG_HRC
25#define _MACROPG_HRC
26
27#ifndef _SVT_CONTROLDIMS_HRC_
28#include <svtools/controldims.hrc>
29#endif
30
31#define 	LB_EVENT				1
32#define 	PB_ASSIGN				2
33#define 	PB_DELETE				3
34#define		STR_EVENT				4
35#define		STR_ASSMACRO			5
36#define 	FT_ASSIGN				6
37#define 	PB_ASSIGN_COMPONENT		7
38
39// Starting new IDs with 30 as eventdlg.hrc also includes this file
40#define		IMG_MACRO				30
41#define		IMG_COMPONENT			31
42#define		IMG_MACRO_H				32
43#define		IMG_COMPONENT_H			33
44
45#define		RID_PB_OK				41
46#define		RID_PB_CANCEL			42
47#define		RID_PB_HELP				43
48#define		FT_METHOD				44
49#define		EDIT_METHOD				45
50
51
52// COL0<---------------WIDTH_1_2--------------->COL3<->COL4<----WIDTH4---->COL5
53//     <--WIDTH1-->COL1<-SPACE1->COL2<--WIDTH2->
54
55#define	WIDTH_TP		260										// of whole tabpage
56#define	COL5			(WIDTH_TP-RSC_SP_DLG_INNERBORDER_RIGHT)
57#define	COL4			(COL5-RSC_CD_PUSHBUTTON_WIDTH)
58#define	COL3			(COL4-RSC_SP_CTRL_X)
59#define	COL0			(RSC_SP_TBPG_INNERBORDER_LEFT)
60#define	WIDTH1_2		(COL3-COL0)								// width of upper listbox
61#define SPACE1			4										// space between lower listboxes
62#define WIDTH1			((WIDTH1_2-SPACE1)/2)					// width of lower left listbox
63#define	WIDTH2			(WIDTH1_2-WIDTH1-SPACE1)				// width of lower right listbox
64#define COL1			(COL0+WIDTH1)
65#define	COL2			(COL1+SPACE1)
66
67#define HEIGHT0			158										// of upper listbox
68#define HEIGHT_TP		(HEIGHT0+6)								// of whole tabpage
69#define	ROW0			6										// more than RSC_SP_FLGR_INNERBORDER_TOP cause of bad design
70#define	ROW0A			(ROW0+RSC_CD_FIXEDTEXT_HEIGHT+SPACE1)
71#define	ROW1			(ROW0A+RSC_CD_PUSHBUTTON_HEIGHT)		// Assign button
72#define	ROW2			(ROW1+RSC_SP_CTRL_GROUP_Y)
73#define	ROW3			(ROW2+RSC_CD_PUSHBUTTON_HEIGHT)			// Assign component button
74#define	ROW4			(ROW3+RSC_SP_CTRL_GROUP_Y)
75#define	ROW5_REMOVE		(ROW4+RSC_SP_CTRL_GROUP_Y)				// Remove button
76#define	ROW5			(ROW4+RSC_CD_DROPDOWN_HEIGHT)			// script type listbox (hidden)
77#define	ROW6			(ROW0+HEIGHT0)
78#define	ROW7			(ROW6+RSC_SP_CTRL_Y)
79#define	HEIGHT_EXTRA7	(RSC_CD_FIXEDTEXT_HEIGHT)				// additional height for FT_LABEL4LB_MACROS
80#define	ROW7A			(ROW7+HEIGHT_EXTRA7)
81#define	ROW8			(ROW7+RSC_CD_FIXEDTEXT_HEIGHT+HEIGHT_EXTRA7)// label for lower listboxes (2 lines!)
82#define	ROW9			(HEIGHT_TP-RSC_SP_TBPG_INNERBORDER_BOTTOM)
83#define	HEIGHT8			(ROW9-ROW8)								// of lower listboxes
84
85#define	COMP_EDIT_WIDTH	100
86#define	COMP_DIST_Y		6
87#define	COMP_WIDTH		(COMP_EDIT_WIDTH+RSC_CD_PUSHBUTTON_WIDTH+3*COMP_DIST_Y)
88#define	COMP_COL0		COMP_DIST_Y
89#define	COMP_COL1		(COMP_COL0+COMP_EDIT_WIDTH+COMP_DIST_Y)
90#define	COMP_ROW0		6
91#define	COMP_ROW1		(COMP_ROW0+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
92#define	COMP_ROW2		(COMP_ROW1+RSC_CD_PUSHBUTTON_HEIGHT+2*RSC_SP_CTRL_GROUP_Y)
93#define	COMP_ROWEDIT	(COMP_ROW0+RSC_CD_FIXEDTEXT_HEIGHT+2)
94#define	COMP_HEIGHT		(COMP_ROW2+RSC_CD_PUSHBUTTON_HEIGHT+2*RSC_SP_CTRL_GROUP_Y)
95
96#endif
97
98