1158fda6aSAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3158fda6aSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4158fda6aSAndrew Rist * or more contributor license agreements. See the NOTICE file 5158fda6aSAndrew Rist * distributed with this work for additional information 6158fda6aSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7158fda6aSAndrew Rist * to you under the Apache License, Version 2.0 (the 8158fda6aSAndrew Rist * "License"); you may not use this file except in compliance 9158fda6aSAndrew Rist * with the License. You may obtain a copy of the License at 10158fda6aSAndrew Rist * 11158fda6aSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12158fda6aSAndrew Rist * 13158fda6aSAndrew Rist * Unless required by applicable law or agreed to in writing, 14158fda6aSAndrew Rist * software distributed under the License is distributed on an 15158fda6aSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16158fda6aSAndrew Rist * KIND, either express or implied. See the License for the 17158fda6aSAndrew Rist * specific language governing permissions and limitations 18158fda6aSAndrew Rist * under the License. 19158fda6aSAndrew Rist * 20158fda6aSAndrew Rist *************************************************************/ 21158fda6aSAndrew Rist 22*4b87ead9Smseidel 23cdf0e10cSrcweir 24cdf0e10cSrcweir#include "svtools/controldims.hrc" 25cdf0e10cSrcweir#include "dp_gui.hrc" 26cdf0e10cSrcweir 27cdf0e10cSrcweirModelessDialog RID_DLG_EXTENSION_MANAGER 28cdf0e10cSrcweir{ 29cdf0e10cSrcweir HelpId = HID_PACKAGE_MANAGER; 30cdf0e10cSrcweir Text [ en-US ] = "Extension Manager"; 31cdf0e10cSrcweir 32cdf0e10cSrcweir Size = MAP_APPFONT( 300, 200 ); 33cdf0e10cSrcweir OutputSize = TRUE; 34cdf0e10cSrcweir SVLook = TRUE; 35cdf0e10cSrcweir Moveable = TRUE; 36cdf0e10cSrcweir Closeable = TRUE; 37cdf0e10cSrcweir Sizeable = TRUE; 38cdf0e10cSrcweir Hide = TRUE; 39cdf0e10cSrcweir 40cdf0e10cSrcweir PushButton RID_EM_BTN_ADD 41cdf0e10cSrcweir { 42cdf0e10cSrcweir HelpID = "desktop:PushButton:RID_DLG_EXTENSION_MANAGER:RID_EM_BTN_ADD"; 43cdf0e10cSrcweir TabStop = TRUE; 44cdf0e10cSrcweir Text [ en-US ] = "~Add..."; 45cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 46cdf0e10cSrcweir }; 47cdf0e10cSrcweir 48cdf0e10cSrcweir PushButton RID_EM_BTN_CHECK_UPDATES 49cdf0e10cSrcweir { 50cdf0e10cSrcweir HelpID = "desktop:PushButton:RID_DLG_EXTENSION_MANAGER:RID_EM_BTN_CHECK_UPDATES"; 51cdf0e10cSrcweir TabStop = TRUE; 52cdf0e10cSrcweir Text [ en-US ] = "Check for ~Updates..."; 53cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 54cdf0e10cSrcweir }; 55cdf0e10cSrcweir 56cdf0e10cSrcweir FixedText RID_EM_FT_GET_EXTENSIONS 57cdf0e10cSrcweir { 58cdf0e10cSrcweir NoLabel = TRUE; 59cdf0e10cSrcweir TabStop = TRUE; 60cdf0e10cSrcweir Text [ en-US ] = "Get more extensions online..."; 61cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ); 62cdf0e10cSrcweir }; 63cdf0e10cSrcweir 64cdf0e10cSrcweir FixedText RID_EM_FT_PROGRESS 65cdf0e10cSrcweir { 66cdf0e10cSrcweir Hide = TRUE; 67cdf0e10cSrcweir Right = TRUE; 68cdf0e10cSrcweir Text [ en-US ] = "Adding %EXTENSION_NAME"; 69cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ); 70cdf0e10cSrcweir }; 71cdf0e10cSrcweir 72cdf0e10cSrcweir CancelButton RID_EM_BTN_CANCEL 73cdf0e10cSrcweir { 74cdf0e10cSrcweir TabStop = TRUE; 75cdf0e10cSrcweir Hide = TRUE; 76cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 77cdf0e10cSrcweir }; 78cdf0e10cSrcweir 79cdf0e10cSrcweir OKButton RID_EM_BTN_CLOSE 80cdf0e10cSrcweir { 81cdf0e10cSrcweir TabStop = TRUE; 82cdf0e10cSrcweir DefButton = TRUE; 83cdf0e10cSrcweir Text [ en-US ] = "Close"; 84cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 85cdf0e10cSrcweir }; 86cdf0e10cSrcweir 87cdf0e10cSrcweir HelpButton RID_EM_BTN_HELP 88cdf0e10cSrcweir { 89cdf0e10cSrcweir TabStop = TRUE; 90cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 91cdf0e10cSrcweir }; 92cdf0e10cSrcweir}; 93cdf0e10cSrcweir 94cdf0e10cSrcweirModalDialog RID_DLG_UPDATE_REQUIRED 95cdf0e10cSrcweir{ 96cdf0e10cSrcweir HelpId = HID_PACKAGE_MANAGER_UPD_REQ; 97cdf0e10cSrcweir Text [ en-US ] = "Extension Update Required"; 98cdf0e10cSrcweir 99cdf0e10cSrcweir Size = MAP_APPFONT( 300, 200 ); 100cdf0e10cSrcweir OutputSize = TRUE; 101cdf0e10cSrcweir SVLook = TRUE; 102cdf0e10cSrcweir Moveable = TRUE; 103cdf0e10cSrcweir Closeable = TRUE; 104cdf0e10cSrcweir Sizeable = TRUE; 105cdf0e10cSrcweir Hide = TRUE; 106cdf0e10cSrcweir 107cdf0e10cSrcweir FixedText RID_EM_FT_MSG 108cdf0e10cSrcweir { 109cdf0e10cSrcweir 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."; 110cdf0e10cSrcweir WordBreak = TRUE; 111cdf0e10cSrcweir NoLabel = TRUE; 112cdf0e10cSrcweir Size = MAP_APPFONT( 280, 3*RSC_BS_CHARHEIGHT ); 113cdf0e10cSrcweir Pos = MAP_APPFONT( 5, 5 ); 114cdf0e10cSrcweir }; 115cdf0e10cSrcweir 116cdf0e10cSrcweir FixedText RID_EM_FT_PROGRESS 117cdf0e10cSrcweir { 118cdf0e10cSrcweir Hide = TRUE; 119cdf0e10cSrcweir Right = TRUE; 120cdf0e10cSrcweir Text [ en-US ] = "Adding %EXTENSION_NAME"; 121cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ); 122cdf0e10cSrcweir }; 123cdf0e10cSrcweir 124cdf0e10cSrcweir HelpButton RID_EM_BTN_HELP 125cdf0e10cSrcweir { 126cdf0e10cSrcweir TabStop = TRUE; 127cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 128cdf0e10cSrcweir }; 129cdf0e10cSrcweir 130cdf0e10cSrcweir PushButton RID_EM_BTN_CHECK_UPDATES 131cdf0e10cSrcweir { 132cdf0e10cSrcweir HelpID = "desktop:PushButton:RID_DLG_UPDATE_REQUIRED:RID_EM_BTN_CHECK_UPDATES"; 133cdf0e10cSrcweir TabStop = TRUE; 134cdf0e10cSrcweir Text [ en-US ] = "Check for ~Updates..."; 135cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 136cdf0e10cSrcweir }; 137cdf0e10cSrcweir 138cdf0e10cSrcweir PushButton RID_EM_BTN_CLOSE 139cdf0e10cSrcweir { 140cdf0e10cSrcweir HelpID = "desktop:PushButton:RID_DLG_UPDATE_REQUIRED:RID_EM_BTN_CLOSE"; 141cdf0e10cSrcweir TabStop = TRUE; 142cdf0e10cSrcweir DefButton = TRUE; 143cdf0e10cSrcweir Text [ en-US ] = "Disable all"; 144cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 145cdf0e10cSrcweir }; 146cdf0e10cSrcweir 147cdf0e10cSrcweir CancelButton RID_EM_BTN_CANCEL 148cdf0e10cSrcweir { 149cdf0e10cSrcweir TabStop = TRUE; 150cdf0e10cSrcweir Hide = TRUE; 151cdf0e10cSrcweir Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 152cdf0e10cSrcweir }; 153cdf0e10cSrcweir 154cdf0e10cSrcweir}; 155cdf0e10cSrcweir 156cdf0e10cSrcweirImage RID_IMG_WARNING 157cdf0e10cSrcweir{ 158cdf0e10cSrcweir ImageBitmap = Bitmap { File = "caution_16.png"; }; 159cdf0e10cSrcweir}; 160cdf0e10cSrcweir 161cdf0e10cSrcweirImage RID_IMG_WARNING_HC 162cdf0e10cSrcweir{ 163cdf0e10cSrcweir ImageBitmap = Bitmap { File = "caution_16_h.png"; }; 164cdf0e10cSrcweir}; 165cdf0e10cSrcweir 166cdf0e10cSrcweirImage RID_IMG_LOCKED 167cdf0e10cSrcweir{ 168cdf0e10cSrcweir ImageBitmap = Bitmap { File = "lock_16.png"; }; 169cdf0e10cSrcweir}; 170cdf0e10cSrcweir 171cdf0e10cSrcweirImage RID_IMG_LOCKED_HC 172cdf0e10cSrcweir{ 173cdf0e10cSrcweir ImageBitmap = Bitmap { File = "lock_16_h.png"; }; 174cdf0e10cSrcweir}; 175cdf0e10cSrcweir 176cdf0e10cSrcweirImage RID_IMG_SHARED 177cdf0e10cSrcweir{ 178cdf0e10cSrcweir ImageBitmap = Bitmap { File = "shared_16.png"; }; 179cdf0e10cSrcweir}; 180cdf0e10cSrcweir 181cdf0e10cSrcweirImage RID_IMG_SHARED_HC 182cdf0e10cSrcweir{ 183cdf0e10cSrcweir ImageBitmap = Bitmap { File = "shared_16_h.png"; }; 184cdf0e10cSrcweir}; 185cdf0e10cSrcweir 186cdf0e10cSrcweirImage RID_IMG_EXTENSION 187cdf0e10cSrcweir{ 188cdf0e10cSrcweir ImageBitmap = Bitmap { File = "extension_32.png"; }; 189cdf0e10cSrcweir}; 190cdf0e10cSrcweir 191cdf0e10cSrcweirImage RID_IMG_EXTENSION_HC 192cdf0e10cSrcweir{ 193cdf0e10cSrcweir ImageBitmap = Bitmap { File = "extension_32_h.png"; }; 194cdf0e10cSrcweir}; 195cdf0e10cSrcweir 196cdf0e10cSrcweirQueryBox RID_QUERYBOX_INSTALL_FOR_ALL 197cdf0e10cSrcweir{ 198cdf0e10cSrcweir Buttons = WB_YES_NO_CANCEL; 199cdf0e10cSrcweir DefButton = WB_DEF_YES; 200cdf0e10cSrcweir 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"; 201cdf0e10cSrcweir}; 202cdf0e10cSrcweir 203cdf0e10cSrcweir 204cdf0e10cSrcweir// Dialog layout 205cdf0e10cSrcweir// --------------------------------------------------- 206cdf0e10cSrcweir// row 1 | multi line edit 207cdf0e10cSrcweir// --------------------------------------------------- 208cdf0e10cSrcweir// row 2 | fixed text 209cdf0e10cSrcweir// --------------------------------------------------- 210cdf0e10cSrcweir// row 3 | img | fixed text | fixed text | button 211cdf0e10cSrcweir// ---------------------------------------------------- 212cdf0e10cSrcweir// row 4 | img | fixed text | fixed text 213cdf0e10cSrcweir// --------------------------------------------------- 214cdf0e10cSrcweir// row 5 |fixed line 215cdf0e10cSrcweir// --------------------------------------------------- 216cdf0e10cSrcweir// row 6 | | |button | button 217cdf0e10cSrcweir// --------------------------------------------------- 218cdf0e10cSrcweir// | col 1 | col 2 | col3 | col4 | col5 219cdf0e10cSrcweir 220cdf0e10cSrcweir//To change the overall size of the multi line edit change 221cdf0e10cSrcweir//ROW1_HEIGHT and COL3_WIDTH 222cdf0e10cSrcweir 223cdf0e10cSrcweir#define ROW1_Y RSC_SP_DLG_INNERBORDER_TOP 224cdf0e10cSrcweir#define ROW1_HEIGHT 16*RSC_CD_FIXEDTEXT_HEIGHT 225cdf0e10cSrcweir#define ROW2_Y ROW1_Y+ROW1_HEIGHT+RSC_SP_CTRL_GROUP_Y 226cdf0e10cSrcweir#define ROW2_HEIGHT 2*RSC_CD_FIXEDTEXT_HEIGHT 227cdf0e10cSrcweir#define ROW3_Y ROW2_Y+ROW2_HEIGHT+RSC_SP_CTRL_GROUP_Y 228cdf0e10cSrcweir#define ROW3_HEIGHT 3*RSC_CD_FIXEDTEXT_HEIGHT 229cdf0e10cSrcweir#define ROW4_Y ROW3_Y+ROW3_HEIGHT+RSC_SP_CTRL_GROUP_Y 230cdf0e10cSrcweir#define ROW4_HEIGHT 3*RSC_CD_FIXEDTEXT_HEIGHT 231cdf0e10cSrcweir#define ROW5_Y ROW4_Y+ROW4_HEIGHT+RSC_SP_CTRL_GROUP_Y 232cdf0e10cSrcweir#define ROW5_HEIGHT RSC_CD_FIXEDTEXT_HEIGHT 233cdf0e10cSrcweir#define ROW6_Y ROW5_Y+ROW5_HEIGHT+RSC_SP_CTRL_GROUP_Y 234cdf0e10cSrcweir#define ROW6_HEIGHT RSC_CD_PUSHBUTTON_HEIGHT 235cdf0e10cSrcweir 236cdf0e10cSrcweir#define LIC_DLG_HEIGHT ROW6_Y+ROW6_HEIGHT+RSC_SP_DLG_INNERBORDER_BOTTOM 237cdf0e10cSrcweir 238cdf0e10cSrcweir#define COL1_X RSC_SP_DLG_INNERBORDER_LEFT 239cdf0e10cSrcweir#define IMG_ARROW_WIDTH 16 240cdf0e10cSrcweir#define COL1_WIDTH IMG_ARROW_WIDTH 241cdf0e10cSrcweir#define COL2_X COL1_X+COL1_WIDTH 242cdf0e10cSrcweir#define COL2_WIDTH 10 243cdf0e10cSrcweir#define COL3_X COL2_X+COL2_WIDTH+RSC_SP_CTRL_GROUP_X 244cdf0e10cSrcweir#define COL3_WIDTH 150 245cdf0e10cSrcweir#define COL4_X COL3_X+COL3_WIDTH 246cdf0e10cSrcweir#define COL4_WIDTH RSC_CD_PUSHBUTTON_WIDTH+RSC_SP_CTRL_GROUP_X 247cdf0e10cSrcweir#define COL5_X COL4_X+COL4_WIDTH 248cdf0e10cSrcweir 249cdf0e10cSrcweir#define LIC_DLG_WIDTH COL5_X+RSC_CD_PUSHBUTTON_WIDTH+RSC_SP_DLG_INNERBORDER_RIGHT 250cdf0e10cSrcweir#define BODYWIDTH LIC_DLG_WIDTH-RSC_SP_DLG_INNERBORDER_LEFT-RSC_SP_DLG_INNERBORDER_RIGHT 251cdf0e10cSrcweir 252cdf0e10cSrcweir 253