xref: /trunk/main/cui/source/customize/macropg.hrc (revision cdf0e10c)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28#ifndef _MACROPG_HRC
29#define _MACROPG_HRC
30
31#ifndef _SVT_CONTROLDIMS_HRC_
32#include <svtools/controldims.hrc>
33#endif
34
35#define 	LB_EVENT				1
36#define 	PB_ASSIGN				2
37#define 	PB_DELETE				3
38#define		STR_EVENT				4
39#define		STR_ASSMACRO			5
40#define 	FT_ASSIGN				6
41#define 	PB_ASSIGN_COMPONENT		7
42
43// Starting new IDs with 30 as eventdlg.hrc also includes this file
44#define		IMG_MACRO				30
45#define		IMG_COMPONENT			31
46#define		IMG_MACRO_H				32
47#define		IMG_COMPONENT_H			33
48
49#define		RID_PB_OK				41
50#define		RID_PB_CANCEL			42
51#define		RID_PB_HELP				43
52#define		FT_METHOD				44
53#define		EDIT_METHOD				45
54
55
56// COL0<---------------WIDTH_1_2--------------->COL3<->COL4<----WIDTH4---->COL5
57//     <--WIDTH1-->COL1<-SPACE1->COL2<--WIDTH2->
58
59#define	WIDTH_TP		260										// of whole tabpage
60#define	COL5			(WIDTH_TP-RSC_SP_DLG_INNERBORDER_RIGHT)
61#define	COL4			(COL5-RSC_CD_PUSHBUTTON_WIDTH)
62#define	COL3			(COL4-RSC_SP_CTRL_X)
63#define	COL0			(RSC_SP_TBPG_INNERBORDER_LEFT)
64#define	WIDTH1_2		(COL3-COL0)								// width of upper listbox
65#define SPACE1			4										// space between lower listboxes
66#define WIDTH1			((WIDTH1_2-SPACE1)/2)					// width of lower left listbox
67#define	WIDTH2			(WIDTH1_2-WIDTH1-SPACE1)				// width of lower right listbox
68#define COL1			(COL0+WIDTH1)
69#define	COL2			(COL1+SPACE1)
70
71#define HEIGHT0			158										// of upper listbox
72#define HEIGHT_TP		(HEIGHT0+6)								// of whole tabpage
73#define	ROW0			6										// more than RSC_SP_FLGR_INNERBORDER_TOP cause of bad design
74#define	ROW0A			(ROW0+RSC_CD_FIXEDTEXT_HEIGHT+SPACE1)
75#define	ROW1			(ROW0A+RSC_CD_PUSHBUTTON_HEIGHT)		// Assign button
76#define	ROW2			(ROW1+RSC_SP_CTRL_GROUP_Y)
77#define	ROW3			(ROW2+RSC_CD_PUSHBUTTON_HEIGHT)			// Assign component button
78#define	ROW4			(ROW3+RSC_SP_CTRL_GROUP_Y)
79#define	ROW5_REMOVE		(ROW4+RSC_SP_CTRL_GROUP_Y)				// Remove button
80#define	ROW5			(ROW4+RSC_CD_DROPDOWN_HEIGHT)			// script type listbox (hidden)
81#define	ROW6			(ROW0+HEIGHT0)
82#define	ROW7			(ROW6+RSC_SP_CTRL_Y)
83#define	HEIGHT_EXTRA7	(RSC_CD_FIXEDTEXT_HEIGHT)				// additional height for FT_LABEL4LB_MACROS
84#define	ROW7A			(ROW7+HEIGHT_EXTRA7)
85#define	ROW8			(ROW7+RSC_CD_FIXEDTEXT_HEIGHT+HEIGHT_EXTRA7)// label for lower listboxes (2 lines!)
86#define	ROW9			(HEIGHT_TP-RSC_SP_TBPG_INNERBORDER_BOTTOM)
87#define	HEIGHT8			(ROW9-ROW8)								// of lower listboxes
88
89#define	COMP_EDIT_WIDTH	100
90#define	COMP_DIST_Y		6
91#define	COMP_WIDTH		(COMP_EDIT_WIDTH+RSC_CD_PUSHBUTTON_WIDTH+3*COMP_DIST_Y)
92#define	COMP_COL0		COMP_DIST_Y
93#define	COMP_COL1		(COMP_COL0+COMP_EDIT_WIDTH+COMP_DIST_Y)
94#define	COMP_ROW0		6
95#define	COMP_ROW1		(COMP_ROW0+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
96#define	COMP_ROW2		(COMP_ROW1+RSC_CD_PUSHBUTTON_HEIGHT+2*RSC_SP_CTRL_GROUP_Y)
97#define	COMP_ROWEDIT	(COMP_ROW0+RSC_CD_FIXEDTEXT_HEIGHT+2)
98#define	COMP_HEIGHT		(COMP_ROW2+RSC_CD_PUSHBUTTON_HEIGHT+2*RSC_SP_CTRL_GROUP_Y)
99
100#endif
101
102