<?xml version="1.0"?>
<!-- ***** BEGIN LICENSE BLOCK *****
   - Version: MPL 1.1/GPL 2.0/LGPL 2.1
   -
   - The contents of this file are subject to the Mozilla Public License Version
   - 1.1 (the "License"); you may not use this file except in compliance with
   - the License. You may obtain a copy of the License at
   - http://www.mozilla.org/MPL/
   -
   - Software distributed under the License is distributed on an "AS IS" basis,
   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
   - for the specific language governing rights and limitations under the
   - License.
   -
   - The Original Code is Verbosio Chrome Registry Contents.
   -
   - The Initial Developer of the Original Code is
   - Alexander J. Vincent <ajvincent@gmail.com>.
   - Portions created by the Initial Developer are Copyright (C) 2007
   - the Initial Developer. All Rights Reserved.
   -
   - Contributor(s):
   -
   - Alternatively, the contents of this file may be used under the terms of
   - either the GNU General Public License Version 2 or later (the "GPL"), or
   - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
   - in which case the provisions of the GPL or the LGPL are applicable instead
   - of those above. If you wish to allow use of your version of this file only
   - under the terms of either the GPL or the LGPL, and not to allow others to
   - use your version of this file under the terms of the MPL, indicate your
   - decision by deleting the provisions above and replace them with the notice
   - and other provisions required by the LGPL or the GPL. If you do not delete
   - the provisions above, a recipient may use your version of this file under
   - the terms of any one of the MPL, the GPL or the LGPL.
   -
   - ***** END LICENSE BLOCK ***** -->
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<?xml-stylesheet type="text/css"
                 href="chrome://xulwidgets/skin/"?>
<?xml-stylesheet type="text/css" 
                 href="chrome://chrome-contents/skin/chrome-contents.css"?>

<!DOCTYPE overlay [
  <!ENTITY % verbosioOverlay SYSTEM 
             "chrome://chrome-contents/content/chrome-contents.dtd">
  %verbosioOverlay;
  <!ENTITY % verbosioLocale SYSTEM
             "chrome://chrome-contents/locale/chrome-contents.dtd">
  %verbosioLocale;
  <!ENTITY % commonDTD SYSTEM "chrome://verbosio/content/verbosio.dtd">
  %commonDTD;
<!-- XXX ajvincent Localize! -->
]>
<overlay xmlns:html="&XHTML_NS;"
         xmlns:xbl="&XBL_NS;"
         xmlns:xul="&XUL_NS;"
         xmlns:edit="http://verbosio.mozdev.org/namespaces/edit"
         xmlns="&XUL_NS;"
        >
  <box id="stringbundlesets">
    <stringbundle scopeid="&scope.uuid;"
                  localid="localeStrings"
                  src="chrome://chrome-contents/locale/chrome-contents.properties"
                 />
  </box>

  <box id="scriptsContainer">
    <script type="&JS_TYPE;" scopeid="&scope.uuid;">
dump("chrome-contents pack viewer overlay loaded!\n");

loadScripts = function loadScripts() {
  const uuid="&scope.uuid;";
  var url;
  url = "chrome://chrome-contents/content/chrome-contents.js";
  scopeRegistry.loadScriptByScope(url, uuid);
}
loadScripts();
loadScripts = undefined;
    </script>
  </box>

  <box id="templatesBox">
    <hbox style="width: 100%"
          flex="1"
          scopeid="&scope.uuid;"
          localid="chrome-contents"
          tablabel="&chrome-contents.label;"
         >
      <vbox flex="1">
        <tree localid="chrome-tree"
              style="height: 200px; width: 400px;"
              context="_child"
              >
          <menupopup>
            <!-- XXX ajvincent Localize! -->
            <menuitem label="Open"
                      command="cmd_open_files"
                      defaultcommand="true"
                     />
          </menupopup>
          <treecols>
            <!-- XXX ajvincent Localize! -->
            <treecol label="File name" flex="3"
                     primary="true"
                     ordinal="0"
                     propertyname="leaf"
                    />
            <treecol label="Locale / Skin" flex="1"
                     ordinal="1"
                    />
          </treecols>
          <treechildren edit:deepserialize="false"/>
        </tree>
      </vbox>
      <splitter/>
    </hbox>

    <treeitem scopeid="&scope.uuid;"
              localid="contentsTreeItem"
             >
      <treerow>
        <treecell/>
        <treecell/>
      </treerow>
      <treechildren/>
    </treeitem>
  </box>
</overlay>
<!--
    We'll create the precondition for new attributes via script when needed.
  -->
