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