1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir#include "svtools/controldims.hrc" 29*cdf0e10cSrcweir#include "dp_gui.hrc" 30*cdf0e10cSrcweir 31*cdf0e10cSrcweirModelessDialog RID_DLG_EXTENSION_MANAGER 32*cdf0e10cSrcweir{ 33*cdf0e10cSrcweir HelpId = HID_PACKAGE_MANAGER; 34*cdf0e10cSrcweir Text [ en-US ] = "Extension Manager"; 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir Size = MAP_APPFONT( 300, 200 ); 37*cdf0e10cSrcweir OutputSize = TRUE; 38*cdf0e10cSrcweir SVLook = TRUE; 39*cdf0e10cSrcweir Moveable = TRUE; 40*cdf0e10cSrcweir Closeable = TRUE; 41*cdf0e10cSrcweir Sizeable = TRUE; 42*cdf0e10cSrcweir Hide = TRUE; 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir PushButton RID_EM_BTN_ADD 45*cdf0e10cSrcweir { 46*cdf0e10cSrcweir HelpID = "desktop:PushButton:RID_DLG_EXTENSION_MANAGER:RID_EM_BTN_ADD"; 47*cdf0e10cSrcweir TabStop = TRUE; 48*cdf0e10cSrcweir Text [ en-US ] = "~Add..."; 49*cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 50*cdf0e10cSrcweir }; 51*cdf0e10cSrcweir 52*cdf0e10cSrcweir PushButton RID_EM_BTN_CHECK_UPDATES 53*cdf0e10cSrcweir { 54*cdf0e10cSrcweir HelpID = "desktop:PushButton:RID_DLG_EXTENSION_MANAGER:RID_EM_BTN_CHECK_UPDATES"; 55*cdf0e10cSrcweir TabStop = TRUE; 56*cdf0e10cSrcweir Text [ en-US ] = "Check for ~Updates..."; 57*cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 58*cdf0e10cSrcweir }; 59*cdf0e10cSrcweir 60*cdf0e10cSrcweir FixedText RID_EM_FT_GET_EXTENSIONS 61*cdf0e10cSrcweir { 62*cdf0e10cSrcweir NoLabel = TRUE; 63*cdf0e10cSrcweir TabStop = TRUE; 64*cdf0e10cSrcweir Text [ en-US ] = "Get more extensions online..."; 65*cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ); 66*cdf0e10cSrcweir }; 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir FixedText RID_EM_FT_PROGRESS 69*cdf0e10cSrcweir { 70*cdf0e10cSrcweir Hide = TRUE; 71*cdf0e10cSrcweir Right = TRUE; 72*cdf0e10cSrcweir Text [ en-US ] = "Adding %EXTENSION_NAME"; 73*cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ); 74*cdf0e10cSrcweir }; 75*cdf0e10cSrcweir 76*cdf0e10cSrcweir CancelButton RID_EM_BTN_CANCEL 77*cdf0e10cSrcweir { 78*cdf0e10cSrcweir TabStop = TRUE; 79*cdf0e10cSrcweir Hide = TRUE; 80*cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 81*cdf0e10cSrcweir }; 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir OKButton RID_EM_BTN_CLOSE 84*cdf0e10cSrcweir { 85*cdf0e10cSrcweir TabStop = TRUE; 86*cdf0e10cSrcweir DefButton = TRUE; 87*cdf0e10cSrcweir Text [ en-US ] = "Close"; 88*cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 89*cdf0e10cSrcweir }; 90*cdf0e10cSrcweir 91*cdf0e10cSrcweir HelpButton RID_EM_BTN_HELP 92*cdf0e10cSrcweir { 93*cdf0e10cSrcweir TabStop = TRUE; 94*cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 95*cdf0e10cSrcweir }; 96*cdf0e10cSrcweir}; 97*cdf0e10cSrcweir 98*cdf0e10cSrcweirModalDialog RID_DLG_UPDATE_REQUIRED 99*cdf0e10cSrcweir{ 100*cdf0e10cSrcweir HelpId = HID_PACKAGE_MANAGER_UPD_REQ; 101*cdf0e10cSrcweir Text [ en-US ] = "Extension Update Required"; 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir Size = MAP_APPFONT( 300, 200 ); 104*cdf0e10cSrcweir OutputSize = TRUE; 105*cdf0e10cSrcweir SVLook = TRUE; 106*cdf0e10cSrcweir Moveable = TRUE; 107*cdf0e10cSrcweir Closeable = TRUE; 108*cdf0e10cSrcweir Sizeable = TRUE; 109*cdf0e10cSrcweir Hide = TRUE; 110*cdf0e10cSrcweir 111*cdf0e10cSrcweir FixedText RID_EM_FT_MSG 112*cdf0e10cSrcweir { 113*cdf0e10cSrcweir Text [ en-US ] = "%PRODUCTNAME has been updated to a new version. Some installed %PRODUCTNAME extensions are not compatible with this version and need to be updated before they can be used."; 114*cdf0e10cSrcweir WordBreak = TRUE; 115*cdf0e10cSrcweir NoLabel = TRUE; 116*cdf0e10cSrcweir Size = MAP_APPFONT( 280, 3*RSC_BS_CHARHEIGHT ); 117*cdf0e10cSrcweir Pos = MAP_APPFONT( 5, 5 ); 118*cdf0e10cSrcweir }; 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir FixedText RID_EM_FT_PROGRESS 121*cdf0e10cSrcweir { 122*cdf0e10cSrcweir Hide = TRUE; 123*cdf0e10cSrcweir Right = TRUE; 124*cdf0e10cSrcweir Text [ en-US ] = "Adding %EXTENSION_NAME"; 125*cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ); 126*cdf0e10cSrcweir }; 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir HelpButton RID_EM_BTN_HELP 129*cdf0e10cSrcweir { 130*cdf0e10cSrcweir TabStop = TRUE; 131*cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 132*cdf0e10cSrcweir }; 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir PushButton RID_EM_BTN_CHECK_UPDATES 135*cdf0e10cSrcweir { 136*cdf0e10cSrcweir HelpID = "desktop:PushButton:RID_DLG_UPDATE_REQUIRED:RID_EM_BTN_CHECK_UPDATES"; 137*cdf0e10cSrcweir TabStop = TRUE; 138*cdf0e10cSrcweir Text [ en-US ] = "Check for ~Updates..."; 139*cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 140*cdf0e10cSrcweir }; 141*cdf0e10cSrcweir 142*cdf0e10cSrcweir PushButton RID_EM_BTN_CLOSE 143*cdf0e10cSrcweir { 144*cdf0e10cSrcweir HelpID = "desktop:PushButton:RID_DLG_UPDATE_REQUIRED:RID_EM_BTN_CLOSE"; 145*cdf0e10cSrcweir TabStop = TRUE; 146*cdf0e10cSrcweir DefButton = TRUE; 147*cdf0e10cSrcweir Text [ en-US ] = "Disable all"; 148*cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 149*cdf0e10cSrcweir }; 150*cdf0e10cSrcweir 151*cdf0e10cSrcweir CancelButton RID_EM_BTN_CANCEL 152*cdf0e10cSrcweir { 153*cdf0e10cSrcweir TabStop = TRUE; 154*cdf0e10cSrcweir Hide = TRUE; 155*cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 156*cdf0e10cSrcweir }; 157*cdf0e10cSrcweir 158*cdf0e10cSrcweir}; 159*cdf0e10cSrcweir 160*cdf0e10cSrcweirImage RID_IMG_WARNING 161*cdf0e10cSrcweir{ 162*cdf0e10cSrcweir ImageBitmap = Bitmap { File = "caution_16.png"; }; 163*cdf0e10cSrcweir}; 164*cdf0e10cSrcweir 165*cdf0e10cSrcweirImage RID_IMG_WARNING_HC 166*cdf0e10cSrcweir{ 167*cdf0e10cSrcweir ImageBitmap = Bitmap { File = "caution_16_h.png"; }; 168*cdf0e10cSrcweir}; 169*cdf0e10cSrcweir 170*cdf0e10cSrcweirImage RID_IMG_LOCKED 171*cdf0e10cSrcweir{ 172*cdf0e10cSrcweir ImageBitmap = Bitmap { File = "lock_16.png"; }; 173*cdf0e10cSrcweir}; 174*cdf0e10cSrcweir 175*cdf0e10cSrcweirImage RID_IMG_LOCKED_HC 176*cdf0e10cSrcweir{ 177*cdf0e10cSrcweir ImageBitmap = Bitmap { File = "lock_16_h.png"; }; 178*cdf0e10cSrcweir}; 179*cdf0e10cSrcweir 180*cdf0e10cSrcweirImage RID_IMG_SHARED 181*cdf0e10cSrcweir{ 182*cdf0e10cSrcweir ImageBitmap = Bitmap { File = "shared_16.png"; }; 183*cdf0e10cSrcweir}; 184*cdf0e10cSrcweir 185*cdf0e10cSrcweirImage RID_IMG_SHARED_HC 186*cdf0e10cSrcweir{ 187*cdf0e10cSrcweir ImageBitmap = Bitmap { File = "shared_16_h.png"; }; 188*cdf0e10cSrcweir}; 189*cdf0e10cSrcweir 190*cdf0e10cSrcweirImage RID_IMG_EXTENSION 191*cdf0e10cSrcweir{ 192*cdf0e10cSrcweir ImageBitmap = Bitmap { File = "extension_32.png"; }; 193*cdf0e10cSrcweir}; 194*cdf0e10cSrcweir 195*cdf0e10cSrcweirImage RID_IMG_EXTENSION_HC 196*cdf0e10cSrcweir{ 197*cdf0e10cSrcweir ImageBitmap = Bitmap { File = "extension_32_h.png"; }; 198*cdf0e10cSrcweir}; 199*cdf0e10cSrcweir 200*cdf0e10cSrcweirQueryBox RID_QUERYBOX_INSTALL_FOR_ALL 201*cdf0e10cSrcweir{ 202*cdf0e10cSrcweir Buttons = WB_YES_NO_CANCEL; 203*cdf0e10cSrcweir DefButton = WB_DEF_YES; 204*cdf0e10cSrcweir Message[en-US] = "Make sure that no further users are working with the same %PRODUCTNAME, when installing an extension for all users in a multi user environment.\n\nFor whom do you want to install the extension?\n"; 205*cdf0e10cSrcweir}; 206*cdf0e10cSrcweir 207*cdf0e10cSrcweir 208*cdf0e10cSrcweir// Dialog layout 209*cdf0e10cSrcweir// --------------------------------------------------- 210*cdf0e10cSrcweir// row 1 | multi line edit 211*cdf0e10cSrcweir// --------------------------------------------------- 212*cdf0e10cSrcweir// row 2 | fixed text 213*cdf0e10cSrcweir// --------------------------------------------------- 214*cdf0e10cSrcweir// row 3 | img | fixed text | fixed text | button 215*cdf0e10cSrcweir// ---------------------------------------------------- 216*cdf0e10cSrcweir// row 4 | img | fixed text | fixed text 217*cdf0e10cSrcweir// --------------------------------------------------- 218*cdf0e10cSrcweir// row 5 |fixed line 219*cdf0e10cSrcweir// --------------------------------------------------- 220*cdf0e10cSrcweir// row 6 | | |button | button 221*cdf0e10cSrcweir// --------------------------------------------------- 222*cdf0e10cSrcweir// | col 1 | col 2 | col3 | col4 | col5 223*cdf0e10cSrcweir 224*cdf0e10cSrcweir//To change the overall size of the multi line edit change 225*cdf0e10cSrcweir//ROW1_HEIGHT and COL3_WIDTH 226*cdf0e10cSrcweir 227*cdf0e10cSrcweir#define ROW1_Y RSC_SP_DLG_INNERBORDER_TOP 228*cdf0e10cSrcweir#define ROW1_HEIGHT 16*RSC_CD_FIXEDTEXT_HEIGHT 229*cdf0e10cSrcweir#define ROW2_Y ROW1_Y+ROW1_HEIGHT+RSC_SP_CTRL_GROUP_Y 230*cdf0e10cSrcweir#define ROW2_HEIGHT 2*RSC_CD_FIXEDTEXT_HEIGHT 231*cdf0e10cSrcweir#define ROW3_Y ROW2_Y+ROW2_HEIGHT+RSC_SP_CTRL_GROUP_Y 232*cdf0e10cSrcweir#define ROW3_HEIGHT 3*RSC_CD_FIXEDTEXT_HEIGHT 233*cdf0e10cSrcweir#define ROW4_Y ROW3_Y+ROW3_HEIGHT+RSC_SP_CTRL_GROUP_Y 234*cdf0e10cSrcweir#define ROW4_HEIGHT 3*RSC_CD_FIXEDTEXT_HEIGHT 235*cdf0e10cSrcweir#define ROW5_Y ROW4_Y+ROW4_HEIGHT+RSC_SP_CTRL_GROUP_Y 236*cdf0e10cSrcweir#define ROW5_HEIGHT RSC_CD_FIXEDTEXT_HEIGHT 237*cdf0e10cSrcweir#define ROW6_Y ROW5_Y+ROW5_HEIGHT+RSC_SP_CTRL_GROUP_Y 238*cdf0e10cSrcweir#define ROW6_HEIGHT RSC_CD_PUSHBUTTON_HEIGHT 239*cdf0e10cSrcweir 240*cdf0e10cSrcweir#define LIC_DLG_HEIGHT ROW6_Y+ROW6_HEIGHT+RSC_SP_DLG_INNERBORDER_BOTTOM 241*cdf0e10cSrcweir 242*cdf0e10cSrcweir#define COL1_X RSC_SP_DLG_INNERBORDER_LEFT 243*cdf0e10cSrcweir#define IMG_ARROW_WIDTH 16 244*cdf0e10cSrcweir#define COL1_WIDTH IMG_ARROW_WIDTH 245*cdf0e10cSrcweir#define COL2_X COL1_X+COL1_WIDTH 246*cdf0e10cSrcweir#define COL2_WIDTH 10 247*cdf0e10cSrcweir#define COL3_X COL2_X+COL2_WIDTH+RSC_SP_CTRL_GROUP_X 248*cdf0e10cSrcweir#define COL3_WIDTH 150 249*cdf0e10cSrcweir#define COL4_X COL3_X+COL3_WIDTH 250*cdf0e10cSrcweir#define COL4_WIDTH RSC_CD_PUSHBUTTON_WIDTH+RSC_SP_CTRL_GROUP_X 251*cdf0e10cSrcweir#define COL5_X COL4_X+COL4_WIDTH 252*cdf0e10cSrcweir 253*cdf0e10cSrcweir#define LIC_DLG_WIDTH COL5_X+RSC_CD_PUSHBUTTON_WIDTH+RSC_SP_DLG_INNERBORDER_RIGHT 254*cdf0e10cSrcweir#define BODYWIDTH LIC_DLG_WIDTH-RSC_SP_DLG_INNERBORDER_LEFT-RSC_SP_DLG_INNERBORDER_RIGHT 255*cdf0e10cSrcweir 256*cdf0e10cSrcweir 257