<?xml version="1.0"?>

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://bluegriffon/skin/listboxBg.css" type="text/css"?>
<?xml-stylesheet href="chrome://bluegriffon/skin/bluegriffonDialogs.css" type="text/css"?>

<!DOCTYPE window SYSTEM "chrome://stylesheets/locale/stylesheets.dtd">

<window title="&window.title;"
        id="insertStylesheetDialog"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:html="http://www.w3.org/1999/xhtml"
        onload = "Startup()"
        persist="screenX screenY width height">

  <!-- Methods common to all editor dialogs -->
  <script type="application/x-javascript" src="chrome://bluegriffon/content/utils/dgid.js"/>
  <script type="application/x-javascript" src="chrome://bluegriffon/content/utils/global.js"/>
  <script type="application/x-javascript" src="chrome://stylesheets/content/stylesheets.js"/>

  <keyset>
    <key keycode="VK_ESCAPE" oncommand="window.close()"/>
  </keyset>

  <vbox id="mainBox" flex="1" style="visibility: hidden">
    <tree id="contentsTree" flex="1" style="margin: 0px; margin-top: 4px; min-width: 200px; height: 200px"
          treelines="true"
          onselect="UpdateButtons()"
          ondblclick="OpenStylesheet()">
      <treecols>
        <treecol id="urlCol"
                 flex="1"
                 label="&url.col;"
                 persist="width ordinal hidden"/>
        <splitter class="tree-splitter"/>
        <treecol id="alternateCol" hidden="true"
                 label="&alternate.col;"
                 persist="width ordinal hidden"/>
        <splitter class="tree-splitter"/>
        <treecol id="titleCol" hidden="true"
                 label="&title.col;"
                 flex="1" 
                 persist="width ordinal hidden"/>
        <splitter class="tree-splitter"/>
        <treecol id="mediaCol"
                 label="&media.col;"
                 flex="1" 
                 persist="width ordinal hidden"/>
      </treecols>
    </tree>
    <hbox id="UrlsToolbox" class="listboxBg">
      <toolbarbutton class="listboxBgPlusButton"
                     tooltiptext="&add.tooltip;"
                     id="PlusButton"
                     oncommand="AddStylesheet()"/>
      <toolbarbutton class="listboxBgMinusButton"
                     disabled="true"
                     id="MinusButton"
                     tooltiptext="&remove.tooltip;"
                     oncommand="DeleteStylesheet()"/>
      <toolbarbutton class="listboxBgConfigButton"
                     tooltiptext="&modify.tooltip;"
                     disabled="true" type="menu"
                     id="ConfigButton">
        <menupopup>
          <menuitem label="&editMenu.label;" 
                    oncommand="UpdateStylesheet()"/>
           <menuitem label="&styleCode.label;" 
                    oncommand="OpenStylesheet()"/>
        </menupopup>
      </toolbarbutton>
      <spacer flex="1"/>
      <toolbarbutton class="listboxBgDownButton"
                     tooltiptext="&down.tooltip;"
                     disabled="true"
                     id="DownButton"
                     oncommand="Down()"/>
      <toolbarbutton class="listboxBgUpButton"
                     tooltiptext="&up.tooltip;"
                     disabled="true"
                     id="UpButton"
                     oncommand="Up()"/>
    </hbox>
  </vbox>
</window>
