preparing for split of open menu into open file and open web page

This commit is contained in:
german%netscape.com 1999-08-20 23:17:12 +00:00
parent 7b6579c1f2
commit 46d6cb89ae
5 changed files with 20 additions and 4 deletions

View File

@ -547,6 +547,7 @@ function OpenSearch(tabName, searchStr)
function BrowserOpenWindow()
{
//opens a window where users can select a web location to open
core = XPAppCoresManager.Find("toolkitCore");
if ( !core ) {
core = new ToolkitCore();
@ -565,6 +566,12 @@ function OpenSearch(tabName, searchStr)
dump("Error; can't create toolkitCore\n");
}
}
function BrowserOpenFileWindow()
{
//opens an OS based file selector window
appCore.openWindow();
}
function OpenFile(url) {
// This is invoked from the browser app core.

View File

@ -11,7 +11,8 @@
<!ENTITY newBlankPageCmd.label "Blank Window">
<!ENTITY newPageFromTemplateCmd.label "Page Using Template">
<!ENTITY newPageFromDraftCmd.label "Page using Draft">
<!ENTITY openCmd.label "Open File or Location...">
<!ENTITY openCmd.label "Open Web Location...">
<!ENTITY openFileCmd.label "Open File...">
<!ENTITY sendPageCmd.label "Send Page">
<!ENTITY editPageCmd.label "Edit Page">
<!ENTITY offlineMenu.label "Offline">

View File

@ -547,6 +547,7 @@ function OpenSearch(tabName, searchStr)
function BrowserOpenWindow()
{
//opens a window where users can select a web location to open
core = XPAppCoresManager.Find("toolkitCore");
if ( !core ) {
core = new ToolkitCore();
@ -565,6 +566,12 @@ function OpenSearch(tabName, searchStr)
dump("Error; can't create toolkitCore\n");
}
}
function BrowserOpenFileWindow()
{
//opens an OS based file selector window
appCore.openWindow();
}
function OpenFile(url) {
// This is invoked from the browser app core.

View File

@ -11,7 +11,8 @@
<!ENTITY newBlankPageCmd.label "Blank Window">
<!ENTITY newPageFromTemplateCmd.label "Page Using Template">
<!ENTITY newPageFromDraftCmd.label "Page using Draft">
<!ENTITY openCmd.label "Open File or Location...">
<!ENTITY openCmd.label "Open Web Location...">
<!ENTITY openFileCmd.label "Open File...">
<!ENTITY sendPageCmd.label "Send Page">
<!ENTITY editPageCmd.label "Edit Page">
<!ENTITY offlineMenu.label "Offline">

View File

@ -1,8 +1,8 @@
<!-- extracted from content/openLocation.xul -->
<!ENTITY enter.label "Enter the World Wide Web location (URL) you would like to open or">
<!ENTITY choose.label "use the Choose File... button to select a local file:">
<!ENTITY enter.label "Enter the Web location (URL) you would like to open">
<!ENTITY chooseFile.label "Choose File...">
<!ENTITY openWin.label "Open in new window">
<!ENTITY ok.label "OK">
<!ENTITY cancel.label "Cancel">
<!ENTITY caption.label "Open Web Location">