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 _BASCTL_MANAGELANG_HRC 25#define _BASCTL_MANAGELANG_HRC 26 27// Include ----------------------------------------------------------------------- 28 29#include <svtools/controldims.hrc> 30 31// Dialog Control Id's ----------------------------------------------------------- 32 33#define FT_LANGUAGE 1 34#define LB_LANGUAGE 2 35#define PB_ADD_LANG 3 36#define PB_DEL_LANG 4 37#define PB_MAKE_DEFAULT 5 38#define FT_INFO 6 39#define FL_BUTTONS 7 40#define PB_HELP 8 41#define PB_CLOSE 9 42#define STR_DEF_LANG 10 43#define STR_DELETE 11 44#define STR_CREATE_LANG 12 45 46#define FT_DEF_LANGUAGE 1 47#define LB_DEF_LANGUAGE 2 48#define LB_ADD_LANGUAGE 3 49#define FT_DEF_INFO 4 50#define FL_DEF_BUTTONS 5 51#define PB_DEF_OK 6 52#define PB_DEF_CANCEL 7 53#define PB_DEF_HELP 8 54#define STR_ADDLANG_TITLE 9 55#define STR_ADDLANG_LABEL 10 56#define STR_ADDLANG_INFO 11 57 58// Metrics ----------------------------------------------------------------------- 59 60#define MANAGE_DLG_WIDTH 240 61#define MANAGE_DLG_HEIGHT 180 62#define INFO_LINES_COUNT 3 63 64#define MANAGE_COL1 RSC_SP_DLG_INNERBORDER_LEFT 65#define MANAGE_COL2 (MANAGE_DLG_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT - 2*RSC_CD_PUSHBUTTON_WIDTH - RSC_SP_CTRL_X) 66#define MANAGE_COL3 (MANAGE_COL2 + RSC_CD_PUSHBUTTON_WIDTH + RSC_SP_CTRL_X) 67 68#define MANAGE_ROW1 RSC_SP_DLG_INNERBORDER_TOP 69#define MANAGE_ROW2 (MANAGE_ROW1 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y) 70#define MANAGE_ROW3 (MANAGE_ROW2 + RSC_CD_PUSHBUTTON_HEIGHT + RSC_SP_CTRL_GROUP_Y) 71 72#define MANAGE_ROW7 (MANAGE_DLG_HEIGHT - RSC_SP_DLG_INNERBORDER_BOTTOM - RSC_CD_PUSHBUTTON_HEIGHT) 73#define MANAGE_ROW6 (MANAGE_ROW7 - RSC_SP_FLGR_SPACE_Y - RSC_CD_FIXEDLINE_HEIGHT) 74#define MANAGE_ROW5 (MANAGE_ROW6 - RSC_SP_FLGR_SPACE_Y - INFO_LINES_COUNT*RSC_CD_FIXEDTEXT_HEIGHT) 75#define MANAGE_ROW4 (MANAGE_ROW5 - RSC_SP_CTRL_GROUP_Y - RSC_CD_PUSHBUTTON_HEIGHT) 76#define MANAGE_ROW4A (MANAGE_ROW4 + RSC_CD_PUSHBUTTON_HEIGHT) 77 78#define MANAGE_LB_WIDTH (MANAGE_COL3 - RSC_SP_CTRL_X - RSC_SP_DLG_INNERBORDER_LEFT) 79#define MANAGE_LB_HEIGHT (MANAGE_ROW4A - MANAGE_ROW2) 80 81#define SETDEF_DLG_WIDTH 180 82#define SETDEF_DLG_HEIGHT 165 83 84#define SETDEF_COL1 RSC_SP_DLG_INNERBORDER_LEFT 85#define SETDEF_COL2 (SETDEF_DLG_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT - 3*RSC_CD_PUSHBUTTON_WIDTH - RSC_SP_CTRL_GROUP_X - RSC_SP_CTRL_X) 86#define SETDEF_COL3 (SETDEF_COL2 + RSC_CD_PUSHBUTTON_WIDTH + RSC_SP_CTRL_GROUP_X) 87#define SETDEF_COL4 (SETDEF_COL3 + RSC_CD_PUSHBUTTON_WIDTH + RSC_SP_CTRL_X) 88#define SETDEF_COL4A (SETDEF_COL4 + RSC_CD_PUSHBUTTON_WIDTH) 89 90#define SETDEF_ROW1 RSC_SP_DLG_INNERBORDER_TOP 91#define SETDEF_ROW2 (SETDEF_ROW1 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y) 92 93#define SETDEF_ROW5 (SETDEF_DLG_HEIGHT - RSC_SP_DLG_INNERBORDER_BOTTOM - RSC_CD_PUSHBUTTON_HEIGHT) 94#define SETDEF_ROW4 (SETDEF_ROW5 - RSC_SP_FLGR_SPACE_Y - RSC_CD_FIXEDLINE_HEIGHT) 95#define SETDEF_ROW3 (SETDEF_ROW4 - RSC_SP_FLGR_SPACE_Y - INFO_LINES_COUNT*RSC_CD_FIXEDTEXT_HEIGHT) 96#define SETDEF_ROW3A (SETDEF_ROW3 - RSC_SP_CTRL_GROUP_Y) 97 98#define SETDEF_LB_WIDTH (SETDEF_COL4A - SETDEF_COL1) 99#define SETDEF_LB_HEIGHT (SETDEF_ROW3A - SETDEF_ROW2) 100 101#endif // _BASCTL_MANAGELANG_HRC 102 103