xref: /aoo41x/main/cui/source/tabpages/macroass.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 _MACROASS_HRC
25#define _MACROASS_HRC
26
27#ifndef _SVT_CONTROLDIMS_HRC_
28#include <svtools/controldims.hrc>
29#endif
30
31#define 	LB_EVENT				2
32#define 	PB_ASSIGN				3
33#define 	PB_DELETE				4
34#define 	FT_MACRO				5
35#define 	LB_GROUP				6
36#define   	LB_MACROS				7
37    // FREE
38#define		FT_LABEL4LB_MACROS		9
39#define 	STR_JAVASCRIPT			10
40#define 	STR_MACROS				11
41#define		ED_JAVASCRIPT			12
42#define		STR_EVENT				13
43#define		STR_ASSMACRO			14
44
45
46// COL0<---------------WIDTH_1_2--------------->COL3<->COL4<----WIDTH4---->COL5
47//     <--WIDTH1-->COL1<-SPACE1->COL2<--WIDTH2->
48
49#define	WIDTH_TP		260										// of whole tabpage
50#define	COL5			(WIDTH_TP-RSC_SP_DLG_INNERBORDER_RIGHT)
51#define	COL4			(COL5-RSC_CD_PUSHBUTTON_WIDTH)
52#define	COL3			(COL4-RSC_SP_CTRL_X)
53#define	COL0			(RSC_SP_TBPG_INNERBORDER_LEFT)
54#define	WIDTH1_2		(COL3-COL0)								// width of upper listbox
55#define SPACE1			4										// space between lower listboxes
56#define WIDTH1			((WIDTH1_2-SPACE1)/2)					// width of lower left listbox
57#define	WIDTH2			(WIDTH1_2-WIDTH1-SPACE1)				// width of lower right listbox
58#define COL1			(COL0+WIDTH1)
59#define	COL2			(COL1+SPACE1)
60
61#define HEIGHT_TP		185										// of whole tabpage
62#define HEIGHT0			62										// of upper listbox
63#define	ROW0			6										// more than RSC_SP_FLGR_INNERBORDER_TOP cause of bad design
64#define	ROW1			(ROW0+RSC_CD_PUSHBUTTON_HEIGHT)			// Assign button
65#define	ROW2			(ROW1+RSC_SP_CTRL_GROUP_Y)
66#define	ROW3			(ROW2+RSC_CD_PUSHBUTTON_HEIGHT)			// Remove button
67#define	ROW4			(ROW3+RSC_SP_CTRL_GROUP_Y)
68#define	ROW5			(ROW4+RSC_CD_DROPDOWN_HEIGHT)			// script type listbox (hidden)
69#define	ROW6			(ROW0+HEIGHT0)
70#define	ROW7			(ROW6+RSC_SP_CTRL_Y)
71#define	HEIGHT_EXTRA7	(RSC_CD_FIXEDTEXT_HEIGHT)				// additional height for FT_LABEL4LB_MACROS
72#define	ROW7A			(ROW7+HEIGHT_EXTRA7)
73#define	ROW8			(ROW7+RSC_CD_FIXEDTEXT_HEIGHT+HEIGHT_EXTRA7)// label for lower listboxes (2 lines!)
74#define	ROW9			(HEIGHT_TP-RSC_SP_TBPG_INNERBORDER_BOTTOM)
75#define	HEIGHT8			(ROW9-ROW8)								// of lower listboxes
76
77#endif
78
79