1*0e2af6afSAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*0e2af6afSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*0e2af6afSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*0e2af6afSAndrew Rist * distributed with this work for additional information 6*0e2af6afSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*0e2af6afSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*0e2af6afSAndrew Rist * "License"); you may not use this file except in compliance 9*0e2af6afSAndrew Rist * with the License. You may obtain a copy of the License at 10*0e2af6afSAndrew Rist * 11*0e2af6afSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*0e2af6afSAndrew Rist * 13*0e2af6afSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*0e2af6afSAndrew Rist * software distributed under the License is distributed on an 15*0e2af6afSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*0e2af6afSAndrew Rist * KIND, either express or implied. See the License for the 17*0e2af6afSAndrew Rist * specific language governing permissions and limitations 18*0e2af6afSAndrew Rist * under the License. 19*0e2af6afSAndrew Rist * 20*0e2af6afSAndrew Rist *************************************************************/ 21*0e2af6afSAndrew Rist 22*0e2af6afSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // include -------------------------------------------------------------- 25cdf0e10cSrcweir 26cdf0e10cSrcweir#include "optjava.hrc" 27cdf0e10cSrcweir#include <cuires.hrc> 28cdf0e10cSrcweir#include "helpid.hrc" 29cdf0e10cSrcweir 30cdf0e10cSrcweir// RID_SVXPAGE_OPTIONS_JAVA ---------------------------------------------- 31cdf0e10cSrcweir 32cdf0e10cSrcweirTabPage RID_SVXPAGE_OPTIONS_JAVA 33cdf0e10cSrcweir{ 34cdf0e10cSrcweir HelpId = HID_OPTIONS_JAVA ; 35cdf0e10cSrcweir OutputSize = TRUE ; 36cdf0e10cSrcweir SVLook = TRUE ; 37cdf0e10cSrcweir Hide = TRUE ; 38cdf0e10cSrcweir Size = MAP_APPFONT ( 260 , 185 ) ; 39cdf0e10cSrcweir Text [ en-US ] = "Java" ; 40cdf0e10cSrcweir 41cdf0e10cSrcweir FixedLine FL_JAVA 42cdf0e10cSrcweir { 43cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 3 ) ; 44cdf0e10cSrcweir Size = MAP_APPFONT ( 248 , 8 ) ; 45cdf0e10cSrcweir Text [ en-US ] = "Java options" ; 46cdf0e10cSrcweir }; 47cdf0e10cSrcweir CheckBox CB_JAVA_ENABLE 48cdf0e10cSrcweir { 49cdf0e10cSrcweir HelpID = "cui:CheckBox:RID_SVXPAGE_OPTIONS_JAVA:CB_JAVA_ENABLE"; 50cdf0e10cSrcweir Pos = MAP_APPFONT ( 12, 14 ) ; 51cdf0e10cSrcweir Size = MAP_APPFONT ( 242 , 10 ) ; 52cdf0e10cSrcweir Text [ en-US ] = "~Use a Java runtime environment" ; 53cdf0e10cSrcweir }; 54cdf0e10cSrcweir FixedText FT_JAVA_FOUND 55cdf0e10cSrcweir { 56cdf0e10cSrcweir Pos = MAP_APPFONT ( 21 , 27 ) ; 57cdf0e10cSrcweir Size = MAP_APPFONT ( 233 , 8 ) ; 58cdf0e10cSrcweir Text [ en-US ] = "~Java runtime environments (JRE) already installed:" ; 59cdf0e10cSrcweir }; 60cdf0e10cSrcweir Control LB_JAVA 61cdf0e10cSrcweir { 62cdf0e10cSrcweir Pos = MAP_APPFONT ( 21 , 38 ) ; 63cdf0e10cSrcweir Size = MAP_APPFONT ( 177 , 130 ) ; 64cdf0e10cSrcweir Border = TRUE ; 65cdf0e10cSrcweir TabStop = TRUE ; 66cdf0e10cSrcweir }; 67cdf0e10cSrcweir FixedText FT_JAVA_PATH 68cdf0e10cSrcweir { 69cdf0e10cSrcweir Pos = MAP_APPFONT ( 21 , 171 ) ; 70cdf0e10cSrcweir Size = MAP_APPFONT ( 233 , 8 ) ; 71cdf0e10cSrcweir NoLabel = TRUE ; 72cdf0e10cSrcweir }; 73cdf0e10cSrcweir PushButton PB_ADD 74cdf0e10cSrcweir { 75cdf0e10cSrcweir HelpID = "cui:PushButton:RID_SVXPAGE_OPTIONS_JAVA:PB_ADD"; 76cdf0e10cSrcweir Pos = MAP_APPFONT ( 204 , 38 ) ; 77cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 78cdf0e10cSrcweir Text [ en-US ] = "~Add..." ; 79cdf0e10cSrcweir }; 80cdf0e10cSrcweir PushButton PB_PARAMETER 81cdf0e10cSrcweir { 82cdf0e10cSrcweir HelpID = "cui:PushButton:RID_SVXPAGE_OPTIONS_JAVA:PB_PARAMETER"; 83cdf0e10cSrcweir Pos = MAP_APPFONT ( 204 , 55 ) ; 84cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 85cdf0e10cSrcweir Text [ en-US ] = "~Parameters..." ; 86cdf0e10cSrcweir }; 87cdf0e10cSrcweir PushButton PB_CLASSPATH 88cdf0e10cSrcweir { 89cdf0e10cSrcweir HelpID = "cui:PushButton:RID_SVXPAGE_OPTIONS_JAVA:PB_CLASSPATH"; 90cdf0e10cSrcweir Pos = MAP_APPFONT ( 204 , 72 ) ; 91cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 92cdf0e10cSrcweir Text [ en-US ] = "~Class Path..." ; 93cdf0e10cSrcweir }; 94cdf0e10cSrcweir String STR_INSTALLED_IN 95cdf0e10cSrcweir { 96cdf0e10cSrcweir Text [ en-US ] = "Location: " ; 97cdf0e10cSrcweir }; 98cdf0e10cSrcweir String STR_ACCESSIBILITY 99cdf0e10cSrcweir { 100cdf0e10cSrcweir Text [ en-US ] = "with accessibility support" ; 101cdf0e10cSrcweir }; 102cdf0e10cSrcweir String STR_ADDDLGTEXT 103cdf0e10cSrcweir { 104cdf0e10cSrcweir Text [ en-US ] = "Select a Java Runtime Environment" ; 105cdf0e10cSrcweir }; 106cdf0e10cSrcweir String STR_HEADER_VENDOR 107cdf0e10cSrcweir { 108cdf0e10cSrcweir Text [ en-US ] = "Vendor" ; 109cdf0e10cSrcweir }; 110cdf0e10cSrcweir String STR_HEADER_VERSION 111cdf0e10cSrcweir { 112cdf0e10cSrcweir Text [ en-US ] = "Version" ; 113cdf0e10cSrcweir }; 114cdf0e10cSrcweir String STR_HEADER_FEATURES 115cdf0e10cSrcweir { 116cdf0e10cSrcweir Text [ en-US ] = "Features" ; 117cdf0e10cSrcweir }; 118cdf0e10cSrcweir}; 119cdf0e10cSrcweir 120cdf0e10cSrcweir// RID_SVXDLG_JAVA_PARAMETER --------------------------------------------- 121cdf0e10cSrcweir 122cdf0e10cSrcweirModalDialog RID_SVXDLG_JAVA_PARAMETER 123cdf0e10cSrcweir{ 124cdf0e10cSrcweir HelpId = HID_OPTIONS_JAVA_PARAMETER ; 125cdf0e10cSrcweir OutputSize = TRUE ; 126cdf0e10cSrcweir SVLook = TRUE ; 127cdf0e10cSrcweir Size = MAP_APPFONT ( 270 , 140 ) ; 128cdf0e10cSrcweir Text [ en-US ] = "Java Start Parameters" ; 129cdf0e10cSrcweir Moveable = TRUE ; 130cdf0e10cSrcweir FixedText FT_PARAMETER 131cdf0e10cSrcweir { 132cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 3 ) ; 133cdf0e10cSrcweir Size = MAP_APPFONT ( 202 , 8 ) ; 134cdf0e10cSrcweir Text [ en-US ] = "Java start ~parameter" ; 135cdf0e10cSrcweir }; 136cdf0e10cSrcweir Edit ED_PARAMETER 137cdf0e10cSrcweir { 138cdf0e10cSrcweir HelpID = "cui:Edit:RID_SVXDLG_JAVA_PARAMETER:ED_PARAMETER"; 139cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 15 ) ; 140cdf0e10cSrcweir Size = MAP_APPFONT ( 202 , 12 ) ; 141cdf0e10cSrcweir Border = TRUE ; 142cdf0e10cSrcweir }; 143cdf0e10cSrcweir PushButton PB_ASSIGN 144cdf0e10cSrcweir { 145cdf0e10cSrcweir HelpID = "cui:PushButton:RID_SVXDLG_JAVA_PARAMETER:PB_ASSIGN"; 146cdf0e10cSrcweir Pos = MAP_APPFONT ( 214 , 14 ) ; 147cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 148cdf0e10cSrcweir Text [ en-US ] = "~Assign" ; 149cdf0e10cSrcweir }; 150cdf0e10cSrcweir FixedText FT_ASSIGNED 151cdf0e10cSrcweir { 152cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 31 ) ; 153cdf0e10cSrcweir Size = MAP_APPFONT ( 202 , 8 ) ; 154cdf0e10cSrcweir Text [ en-US ] = "Assig~ned start parameters" ; 155cdf0e10cSrcweir }; 156cdf0e10cSrcweir ListBox LB_ASSIGNED 157cdf0e10cSrcweir { 158cdf0e10cSrcweir HelpID = "cui:ListBox:RID_SVXDLG_JAVA_PARAMETER:LB_ASSIGNED"; 159cdf0e10cSrcweir Border = TRUE ; 160cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 42 ) ; 161cdf0e10cSrcweir Size = MAP_APPFONT ( 202 , 53 ) ; 162cdf0e10cSrcweir AutoHScroll = TRUE ; 163cdf0e10cSrcweir }; 164cdf0e10cSrcweir FixedText FT_EXAMPLE 165cdf0e10cSrcweir { 166cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 98 ) ; 167cdf0e10cSrcweir Size = MAP_APPFONT ( 202 , 8 ) ; 168cdf0e10cSrcweir Text [ en-US ] = "For example: -Dmyprop=c:\\program files\\java" ; 169cdf0e10cSrcweir }; 170cdf0e10cSrcweir PushButton PB_REMOVE 171cdf0e10cSrcweir { 172cdf0e10cSrcweir HelpID = "cui:PushButton:RID_SVXDLG_JAVA_PARAMETER:PB_REMOVE"; 173cdf0e10cSrcweir Pos = MAP_APPFONT ( 214 , 42 ) ; 174cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 175cdf0e10cSrcweir Text [ en-US ] = "~Remove" ; 176cdf0e10cSrcweir }; 177cdf0e10cSrcweir FixedLine FL_BUTTONS 178cdf0e10cSrcweir { 179cdf0e10cSrcweir Pos = MAP_APPFONT ( 3 , 109 ) ; 180cdf0e10cSrcweir Size = MAP_APPFONT ( 264 , 8 ) ; 181cdf0e10cSrcweir }; 182cdf0e10cSrcweir OKButton PB_PARAMETER_OK 183cdf0e10cSrcweir { 184cdf0e10cSrcweir Pos = MAP_APPFONT ( 105 , 120 ) ; 185cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 186cdf0e10cSrcweir DefButton = TRUE ; 187cdf0e10cSrcweir }; 188cdf0e10cSrcweir CancelButton PB_PARAMETER_ESC 189cdf0e10cSrcweir { 190cdf0e10cSrcweir Pos = MAP_APPFONT ( 158 , 120 ) ; 191cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 192cdf0e10cSrcweir }; 193cdf0e10cSrcweir HelpButton PB_PARAMETER_HLP 194cdf0e10cSrcweir { 195cdf0e10cSrcweir Pos = MAP_APPFONT ( 214 , 120 ) ; 196cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 197cdf0e10cSrcweir }; 198cdf0e10cSrcweir}; 199cdf0e10cSrcweir 200cdf0e10cSrcweir// RID_SVXDLG_JAVA_CLASSPATH --------------------------------------------- 201cdf0e10cSrcweir 202cdf0e10cSrcweirModalDialog RID_SVXDLG_JAVA_CLASSPATH 203cdf0e10cSrcweir{ 204cdf0e10cSrcweir HelpId = HID_OPTIONS_JAVA_CLASSPATH ; 205cdf0e10cSrcweir OutputSize = TRUE ; 206cdf0e10cSrcweir SVLook = TRUE ; 207cdf0e10cSrcweir Size = MAP_APPFONT ( 240 , 120 ) ; 208cdf0e10cSrcweir Text [ en-US ] = "Class Path" ; 209cdf0e10cSrcweir Moveable = TRUE ; 210cdf0e10cSrcweir FixedText FT_PATH 211cdf0e10cSrcweir { 212cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 3 ) ; 213cdf0e10cSrcweir Size = MAP_APPFONT ( 172 , 8 ) ; 214cdf0e10cSrcweir Text [ en-US ] = "A~ssigned folders and archives" ; 215cdf0e10cSrcweir }; 216cdf0e10cSrcweir ListBox LB_PATH 217cdf0e10cSrcweir { 218cdf0e10cSrcweir HelpID = "cui:ListBox:RID_SVXDLG_JAVA_CLASSPATH:LB_PATH"; 219cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 14 ) ; 220cdf0e10cSrcweir Size = MAP_APPFONT ( 172 , 72 ) ; 221cdf0e10cSrcweir Border = TRUE ; 222cdf0e10cSrcweir AutoHScroll = TRUE ; 223cdf0e10cSrcweir }; 224cdf0e10cSrcweir PushButton PB_ADDARCHIVE 225cdf0e10cSrcweir { 226cdf0e10cSrcweir HelpID = "cui:PushButton:RID_SVXDLG_JAVA_CLASSPATH:PB_ADDARCHIVE"; 227cdf0e10cSrcweir Pos = MAP_APPFONT ( 184 , 14 ) ; 228cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 229cdf0e10cSrcweir Text [ en-US ] = "~Add Archive..." ; 230cdf0e10cSrcweir }; 231cdf0e10cSrcweir PushButton PB_ADDPATH 232cdf0e10cSrcweir { 233cdf0e10cSrcweir HelpID = "cui:PushButton:RID_SVXDLG_JAVA_CLASSPATH:PB_ADDPATH"; 234cdf0e10cSrcweir Pos = MAP_APPFONT ( 184 , 31 ) ; 235cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 236cdf0e10cSrcweir Text [ en-US ] = "Add ~Folder" ; 237cdf0e10cSrcweir }; 238cdf0e10cSrcweir PushButton PB_REMOVE_PATH 239cdf0e10cSrcweir { 240cdf0e10cSrcweir HelpID = "cui:PushButton:RID_SVXDLG_JAVA_CLASSPATH:PB_REMOVE_PATH"; 241cdf0e10cSrcweir Pos = MAP_APPFONT ( 184 , 48 ) ; 242cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 243cdf0e10cSrcweir Text [ en-US ] = "~Remove" ; 244cdf0e10cSrcweir }; 245cdf0e10cSrcweir FixedLine FL_PATH_BUTTONS 246cdf0e10cSrcweir { 247cdf0e10cSrcweir Pos = MAP_APPFONT ( 3 , 89 ) ; 248cdf0e10cSrcweir Size = MAP_APPFONT ( 236 , 8 ) ; 249cdf0e10cSrcweir }; 250cdf0e10cSrcweir OKButton PB_PATH_OK 251cdf0e10cSrcweir { 252cdf0e10cSrcweir Pos = MAP_APPFONT ( 75 , 100 ) ; 253cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 254cdf0e10cSrcweir DefButton = TRUE ; 255cdf0e10cSrcweir }; 256cdf0e10cSrcweir CancelButton PB_PATH_ESC 257cdf0e10cSrcweir { 258cdf0e10cSrcweir Pos = MAP_APPFONT ( 128 , 100 ) ; 259cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 260cdf0e10cSrcweir }; 261cdf0e10cSrcweir HelpButton PB_PATH_HLP 262cdf0e10cSrcweir { 263cdf0e10cSrcweir Pos = MAP_APPFONT ( 186 , 100 ) ; 264cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 265cdf0e10cSrcweir }; 266cdf0e10cSrcweir}; 267cdf0e10cSrcweir 268cdf0e10cSrcweirErrorBox RID_SVXERR_JRE_NOT_RECOGNIZED 269cdf0e10cSrcweir{ 270cdf0e10cSrcweir BUTTONS = WB_OK ; 271cdf0e10cSrcweir DEFBUTTON = WB_DEF_OK ; 272cdf0e10cSrcweir Message [ en-US ] = "The folder you selected does not contain a Java runtime environment.\nPlease select a different folder." ; 273cdf0e10cSrcweir}; 274cdf0e10cSrcweir 275cdf0e10cSrcweirErrorBox RID_SVXERR_JRE_FAILED_VERSION 276cdf0e10cSrcweir{ 277cdf0e10cSrcweir BUTTONS = WB_OK ; 278cdf0e10cSrcweir DEFBUTTON = WB_DEF_OK ; 279cdf0e10cSrcweir Message [ en-US ] = "The Java runtime environment you selected is not the required version.\nPlease select a different folder." ; 280cdf0e10cSrcweir}; 281cdf0e10cSrcweir 282cdf0e10cSrcweirWarningBox RID_SVX_MSGBOX_JAVA_RESTART 283cdf0e10cSrcweir{ 284cdf0e10cSrcweir BUTTONS = WB_OK ; 285cdf0e10cSrcweir DEFBUTTON = WB_DEF_OK ; 286cdf0e10cSrcweir Message [ en-US ] = "For the selected Java runtime environment to work properly, %PRODUCTNAME must be restarted.\nPlease restart %PRODUCTNAME now." ; 287cdf0e10cSrcweir}; 288cdf0e10cSrcweir 289cdf0e10cSrcweirWarningBox RID_SVX_MSGBOX_JAVA_RESTART2 290cdf0e10cSrcweir{ 291cdf0e10cSrcweir BUTTONS = WB_OK ; 292cdf0e10cSrcweir DEFBUTTON = WB_DEF_OK ; 293cdf0e10cSrcweir Message [ en-US ] = "You have to restart %PRODUCTNAME so the new or modified values can take effect.\nPlease restart %PRODUCTNAME now." ; 294cdf0e10cSrcweir}; 295cdf0e10cSrcweir 296