xref: /aoo42x/main/cui/source/tabpages/macroass.hrc (revision 8414840e)
1*8414840eSAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*8414840eSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*8414840eSAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*8414840eSAndrew Rist * distributed with this work for additional information
6*8414840eSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*8414840eSAndrew Rist * to you under the Apache License, Version 2.0 (the
8*8414840eSAndrew Rist * "License"); you may not use this file except in compliance
9*8414840eSAndrew Rist * with the License.  You may obtain a copy of the License at
10*8414840eSAndrew Rist *
11*8414840eSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*8414840eSAndrew Rist *
13*8414840eSAndrew Rist * Unless required by applicable law or agreed to in writing,
14*8414840eSAndrew Rist * software distributed under the License is distributed on an
15*8414840eSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*8414840eSAndrew Rist * KIND, either express or implied.  See the License for the
17*8414840eSAndrew Rist * specific language governing permissions and limitations
18*8414840eSAndrew Rist * under the License.
19*8414840eSAndrew Rist *
20*8414840eSAndrew Rist *************************************************************/
21*8414840eSAndrew Rist
22*8414840eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef _MACROASS_HRC
25cdf0e10cSrcweir#define _MACROASS_HRC
26cdf0e10cSrcweir
27cdf0e10cSrcweir#ifndef _SVT_CONTROLDIMS_HRC_
28cdf0e10cSrcweir#include <svtools/controldims.hrc>
29cdf0e10cSrcweir#endif
30cdf0e10cSrcweir
31cdf0e10cSrcweir#define 	LB_EVENT				2
32cdf0e10cSrcweir#define 	PB_ASSIGN				3
33cdf0e10cSrcweir#define 	PB_DELETE				4
34cdf0e10cSrcweir#define 	FT_MACRO				5
35cdf0e10cSrcweir#define 	LB_GROUP				6
36cdf0e10cSrcweir#define   	LB_MACROS				7
37cdf0e10cSrcweir    // FREE
38cdf0e10cSrcweir#define		FT_LABEL4LB_MACROS		9
39cdf0e10cSrcweir#define 	STR_JAVASCRIPT			10
40cdf0e10cSrcweir#define 	STR_MACROS				11
41cdf0e10cSrcweir#define		ED_JAVASCRIPT			12
42cdf0e10cSrcweir#define		STR_EVENT				13
43cdf0e10cSrcweir#define		STR_ASSMACRO			14
44cdf0e10cSrcweir
45cdf0e10cSrcweir
46cdf0e10cSrcweir// COL0<---------------WIDTH_1_2--------------->COL3<->COL4<----WIDTH4---->COL5
47cdf0e10cSrcweir//     <--WIDTH1-->COL1<-SPACE1->COL2<--WIDTH2->
48cdf0e10cSrcweir
49cdf0e10cSrcweir#define	WIDTH_TP		260										// of whole tabpage
50cdf0e10cSrcweir#define	COL5			(WIDTH_TP-RSC_SP_DLG_INNERBORDER_RIGHT)
51cdf0e10cSrcweir#define	COL4			(COL5-RSC_CD_PUSHBUTTON_WIDTH)
52cdf0e10cSrcweir#define	COL3			(COL4-RSC_SP_CTRL_X)
53cdf0e10cSrcweir#define	COL0			(RSC_SP_TBPG_INNERBORDER_LEFT)
54cdf0e10cSrcweir#define	WIDTH1_2		(COL3-COL0)								// width of upper listbox
55cdf0e10cSrcweir#define SPACE1			4										// space between lower listboxes
56cdf0e10cSrcweir#define WIDTH1			((WIDTH1_2-SPACE1)/2)					// width of lower left listbox
57cdf0e10cSrcweir#define	WIDTH2			(WIDTH1_2-WIDTH1-SPACE1)				// width of lower right listbox
58cdf0e10cSrcweir#define COL1			(COL0+WIDTH1)
59cdf0e10cSrcweir#define	COL2			(COL1+SPACE1)
60cdf0e10cSrcweir
61cdf0e10cSrcweir#define HEIGHT_TP		185										// of whole tabpage
62cdf0e10cSrcweir#define HEIGHT0			62										// of upper listbox
63cdf0e10cSrcweir#define	ROW0			6										// more than RSC_SP_FLGR_INNERBORDER_TOP cause of bad design
64cdf0e10cSrcweir#define	ROW1			(ROW0+RSC_CD_PUSHBUTTON_HEIGHT)			// Assign button
65cdf0e10cSrcweir#define	ROW2			(ROW1+RSC_SP_CTRL_GROUP_Y)
66cdf0e10cSrcweir#define	ROW3			(ROW2+RSC_CD_PUSHBUTTON_HEIGHT)			// Remove button
67cdf0e10cSrcweir#define	ROW4			(ROW3+RSC_SP_CTRL_GROUP_Y)
68cdf0e10cSrcweir#define	ROW5			(ROW4+RSC_CD_DROPDOWN_HEIGHT)			// script type listbox (hidden)
69cdf0e10cSrcweir#define	ROW6			(ROW0+HEIGHT0)
70cdf0e10cSrcweir#define	ROW7			(ROW6+RSC_SP_CTRL_Y)
71cdf0e10cSrcweir#define	HEIGHT_EXTRA7	(RSC_CD_FIXEDTEXT_HEIGHT)				// additional height for FT_LABEL4LB_MACROS
72cdf0e10cSrcweir#define	ROW7A			(ROW7+HEIGHT_EXTRA7)
73cdf0e10cSrcweir#define	ROW8			(ROW7+RSC_CD_FIXEDTEXT_HEIGHT+HEIGHT_EXTRA7)// label for lower listboxes (2 lines!)
74cdf0e10cSrcweir#define	ROW9			(HEIGHT_TP-RSC_SP_TBPG_INNERBORDER_BOTTOM)
75cdf0e10cSrcweir#define	HEIGHT8			(ROW9-ROW8)								// of lower listboxes
76cdf0e10cSrcweir
77cdf0e10cSrcweir#endif
78cdf0e10cSrcweir
79