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