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