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