~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/xpfe/global/resources/content/hiddenWindow.xul

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?> 
 
2
 
 
3
<!-- The contents of this file are subject to the Netscape Public
 
4
License Version 1.1 (the "License"); you may not use this file
 
5
except in compliance with the License. You may obtain a copy of
 
6
the License at http://www.mozilla.org/NPL/
 
7
 
 
8
Software distributed under the License is distributed on an "AS
 
9
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 
10
implied. See the License for the specific language governing
 
11
rights and limitations under the License.
 
12
 
 
13
The Original Code is Mozilla Communicator client code, released
 
14
March 31, 1998.
 
15
 
 
16
The Initial Developer of the Original Code is Netscape
 
17
Communications Corporation. Portions created by Netscape are
 
18
Copyright (C) 1998-1999 Netscape Communications Corporation. All
 
19
Rights Reserved.
 
20
 
 
21
Contributor(s): ______________________________________. -->
 
22
 
 
23
<?xul-overlay href="chrome://navigator/content/navigatorOverlay.xul"?>
 
24
 
 
25
<!-- hiddenwindow is a "minimal" XUL window intended for creating the,
 
26
     er, hidden window.  This window is never shown, but on platforms
 
27
     which leave the app running after the last (visible) window is shut
 
28
     down, this window does hold a browser menubar.
 
29
       Though this window looks a lot like navigator.xul, that xul
 
30
     is unsuitable because it's subject to the whims of its associated
 
31
     appcore, which among other things causes it to load content documents
 
32
     undesirable for this window.
 
33
       Arguably a simpler menu structure could be substituted, but
 
34
     the full one was included for now in anticipation of the whole thing
 
35
     becoming an included file someday. -->
 
36
 
 
37
<!-- Localizable string definitions from navigator.xul. -->
 
38
<!DOCTYPE window [
 
39
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
 
40
%brandDTD;
 
41
<!ENTITY % buildDTD SYSTEM "chrome://global/content/build.dtd" >
 
42
%buildDTD;
 
43
<!ENTITY % navigatorDTD SYSTEM "chrome://navigator/locale/navigator.dtd" >
 
44
%navigatorDTD;
 
45
]>
 
46
 
 
47
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 
48
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 
49
  title="hidden"
 
50
  titlemodifier="&mainWindow.titlemodifier;" 
 
51
  titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
 
52
  onload="hiddenWindowStartup();">
 
53
 
 
54
  <!-- JS from navigator.xul, to handle the menu commands -->
 
55
  <script type="application/x-javascript" src="chrome://global/content/strres.js"/>
 
56
  <script type="application/x-javascript" src="chrome://navigator/content/browser.js"/>
 
57
  <script type="application/x-javascript" src="chrome://navigator/content/navigator.js"/>
 
58
 
 
59
  <!-- Shared Bookmarks Utility Library -->
 
60
  <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarks.js"/>
 
61
  <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksMenu.js"/>
 
62
 
 
63
  <stringbundleset id="stringbundleset"/>
 
64
 
 
65
  <!-- keys are appended from the overlay -->
 
66
  <keyset id="tasksKeys">
 
67
    <keyset id="navKeys">
 
68
      <key id="showHideSidebar"/>
 
69
    </keyset>
 
70
  </keyset>
 
71
 
 
72
  <!-- commands are appended from the overlay -->
 
73
  <commandset id="commands">
 
74
    <commandset id="tasksCommands"/>
 
75
    <commandset id="globalEditMenuItems"/>
 
76
    <commandset id="selectEditMenuItems"/>
 
77
    <commandset id="undoEditMenuItems"/>
 
78
    <commandset id="clipboardEditMenuItems"/>
 
79
  </commandset>
 
80
 
 
81
  <broadcasterset id="navBroadcasters"/>
 
82
 
 
83
  <template id="bookmarksMenuTemplate"/>
 
84
 
 
85
  <!-- it's the whole navigator.xul menubar! hidden windows need to
 
86
       have a menubar for situations where they're the only window remaining
 
87
       on a platform that wants to leave the app running, like the Mac.
 
88
  -->
 
89
  <toolbox id="toolbox">
 
90
    <menubar id="main-menubar" position="1"/>
 
91
  </toolbox>
 
92
 
 
93
</window>