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