home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / phoenix / chrome / browser.jar / content / browser / pageInfo.xul < prev    next >
Extensible Markup Language  |  2002-12-07  |  12KB  |  292 lines

  1. <?xml version="1.0"?> 
  2. <?xml-stylesheet href="chrome://navigator/skin/pageInfo.css" type="text/css"?>
  3.  
  4. <!DOCTYPE window [
  5.   <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
  6.   %brandDTD;
  7.   <!ENTITY % navigatorDTD SYSTEM "chrome://navigator/locale/navigator.dtd">
  8.   %navigatorDTD;
  9.   <!ENTITY % pageInfoDTD SYSTEM "chrome://navigator/locale/pageInfo.dtd">
  10.   %pageInfoDTD;
  11. ]>
  12.  
  13. <window id="main-window"
  14.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  15.   windowtype="Browser:page-info"
  16.   onload="onLoadPageInfo()"
  17.   align="stretch" class="dialog"
  18.   width="&pageInfoWindow.width;" height="&pageInfoWindow.height;"
  19.   screenX="10" screenY="10"
  20.   persist="screenX screenY width height sizemode">
  21.  
  22.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaUtils.js"/>
  23.   <script type="application/x-javascript" src="chrome://navigator/content/pageInfo.js"/>
  24.   <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
  25.  
  26.   <keyset>
  27.     <key id="closeWindow" key="&closeWindow;" modifiers="accel" oncommand="window.close();"/>
  28.     <key keycode="VK_ESCAPE" oncommand="window.close();"/>
  29.     <key id="copy" key="c" modifiers="accel" oncommand="doCopy(event);"/>
  30.   </keyset>
  31.   <!-- keys are appended from the overlay -->
  32.   <keyset id="dialogKeys"/>
  33.  
  34.   <stringbundle id="pageinfobundle" src="chrome://navigator/locale/pageInfo.properties"/>
  35.  
  36.   <tabbox id="tabbox" flex="1">
  37.     <tabs id="tabs">
  38.       <tab id="generalTab" label="&generalTab;" 
  39.            accesskey="&generalAccesskey;"/>
  40.       <tab id="formsTab"   label="&formsTab;"   
  41.            accesskey="&formsAccesskey;" oncommand="makeTabs(theDocument, theWindow);"/>
  42.       <tab id="linksTab"   label="&linksTab;"   
  43.            accesskey="&linksAccesskey;" oncommand="makeTabs(theDocument, theWindow);"/>
  44.       <tab id="mediaTab"   label="&mediaTab;"  
  45.            accesskey="&mediaAccesskey;" oncommand="makeTabs(theDocument, theWindow);"/>
  46.       <!-- Others added by overlay -->
  47.     </tabs>
  48.     <tabpanels id="tabpanels" flex="1">
  49.  
  50.       <!-- General page information -->
  51.       <vbox>
  52.         <textbox class="header" readonly="true" crop="right" id="titletext"/>
  53.         <grid>
  54.           <columns>
  55.             <column/>
  56.             <column style="width: .5em;"/>
  57.             <column flex="1"/>
  58.           </columns>
  59.           <rows>
  60.             <row>
  61.               <label value="&generalURL;"/>
  62.               <separator/>
  63.               <textbox readonly="true" crop="right" id="urltext" class="text-link"/>
  64.             </row>
  65.             <row>
  66.               <separator class="thin"/>
  67.             </row>
  68.             <row>
  69.               <label value="&generalType;"/>
  70.               <separator/>
  71.               <textbox readonly="true" crop="right" id="typetext"/>
  72.             </row>
  73.             <row>
  74.               <label value="&generalMode;"/>
  75.               <separator/>
  76.               <textbox readonly="true" crop="right" id="modetext"/>
  77.             </row>
  78.             <row>
  79.               <label value="&generalSource;"/>
  80.               <separator/>
  81.               <textbox readonly="true" crop="right" id="sourcetext"/>
  82.             </row>
  83.             <row>
  84.               <label value="&generalEncoding;"/>
  85.               <separator/>
  86.               <textbox readonly="true" crop="right" id="encodingtext"/>
  87.             </row>
  88.             <row>
  89.               <label value="&generalSize;"/>
  90.               <separator/>
  91.               <textbox readonly="true" crop="right" id="sizetext"/>
  92.             </row>
  93.             <row>
  94.               <label value="&generalReferrer;"/>
  95.               <separator/>
  96.               <textbox readonly="true" crop="right" id="refertext"/>
  97.             </row>
  98.             <row>
  99.               <separator class="thin"/>
  100.             </row>
  101.             <row>
  102.               <label value="&generalModified;"/>
  103.               <separator/>
  104.               <textbox readonly="true" crop="right" id="modifiedtext"/>
  105.             </row>
  106.             <row>
  107.               <label value="&generalExpires;"/>
  108.               <separator/>
  109.               <textbox readonly="true" crop="right" id="expirestext"/>
  110.             </row>
  111.           </rows>
  112.         </grid>
  113.         <separator class="thin"/>
  114.         <text id="metahead" class="header" value="&generalMeta;"/>
  115.         <tree id="metatree" flex="1" class="inset">
  116.           <treecols>
  117.             <treecol persist="hidden width" flex="1" id="meta-name"    label="&generalMetaName;"/>
  118.             <splitter class="tree-splitter"/>
  119.             <treecol persist="hidden width" flex="4" id="meta-content" label="&generalMetaContent;"/>
  120.           </treecols>
  121.           <treechildren flex="1"/>
  122.         </tree>
  123.       </vbox>
  124.  
  125.       <!-- Form information -->
  126.       <vbox>
  127.         <tree id="formtree" class="inset fixedsize" onselect="onFormSelect();">
  128.           <treecols>
  129.             <splitter class="tree-splitter"/>
  130.             <treecol sortSeparators="true" persist="hidden width" flex="1" 
  131.                          width="1" id="form-name"   label="&formName;"/>
  132.             <splitter class="tree-splitter"/>
  133.             <treecol sortSeparators="true" persist="hidden width" flex="3" 
  134.                          width="3" id="form-method" label="&formMethod;"/>
  135.             <splitter class="tree-splitter"/>
  136.             <treecol sortSeparators="true" persist="hidden width" flex="2" 
  137.                          width="2" id="form-action" label="&formAction;"/>
  138.           </treecols>
  139.           <treechildren flex="1"/>
  140.         </tree>
  141.         <splitter orient="vertical" collapse="after"/>
  142.         <vbox flex="1">
  143.           <textbox class="header" id="formname"/>
  144.           <grid>
  145.             <columns>
  146.               <column/>
  147.               <column style="width: .5em;"/>
  148.               <column flex="1"/>
  149.             </columns>
  150.             <rows>
  151.               <row>
  152.                 <label value="&formEncoding;"/>
  153.                 <separator/>
  154.                 <textbox readonly="true" crop="right" id="formenctype"/>
  155.               </row>
  156.               <row>
  157.                 <label value="&formTarget;"/>
  158.                 <separator/>
  159.                 <textbox readonly="true" crop="right" class="label" id="formtarget"/>
  160.               </row>
  161.             </rows>
  162.           </grid>
  163.           <text class="header" value="&formFields;"/>
  164.           <tree id="formpreview" flex="1" class="inset">
  165.             <treecols>
  166.               <treecol sortSeparators="true" persist="hidden width" flex="3" 
  167.                            width="3" id="field-label"  label="&formLabel;"/>
  168.               <splitter class="tree-splitter"/>
  169.               <treecol sortSeparators="true" persist="hidden width" flex="3" 
  170.                            width="3" id="field-field"  label="&formFName;"/>
  171.               <splitter class="tree-splitter"/>
  172.               <treecol sortSeparators="true" persist="hidden width" flex="1" 
  173.                            width="1" id="field-type"   label="&formType;"/>
  174.               <splitter class="tree-splitter"/>
  175.               <treecol sortSeparators="true" persist="hidden width" flex="3" 
  176.                            width="3" id="field-value"  label="&formCValue;"/>
  177.             </treecols>
  178.             <treechildren flex="1"/>
  179.           </tree>
  180.         </vbox>
  181.       </vbox>
  182.  
  183.       <!-- Link info -->
  184.       <vbox>
  185.         <tree id="linktree" flex="1" class="inset" ondraggesture="onBeginLinkDrag(event,'link-address','link-name')">
  186.           <treecols>
  187.             <treecol sortSeparators="true" persist="hidden width" flex="5" 
  188.                          width="5" id="link-name"    label="&linkName;"/>
  189.             <splitter class="tree-splitter"/>
  190.             <treecol sortSeparators="true" persist="hidden width" flex="7" 
  191.                          width="7" id="link-address" label="&linkAddress;"/>
  192.             <splitter class="tree-splitter"/>
  193.             <treecol sortSeparators="true" persist="hidden width" flex="2" 
  194.                          width="2" id="link-type"    label="&linkType;"/>
  195.             <splitter class="tree-splitter"/>
  196.             <treecol sortSeparators="true" persist="hidden width" flex="2"
  197.                          width="2" id="link-target"  label="&linkTarget;" hidden="true"/>
  198.           </treecols>
  199.           <treechildren flex="1"/>
  200.         </tree>
  201.       </vbox>
  202.  
  203.       <!-- Media information -->
  204.       <vbox>
  205.         <tree id="imagetree" class="inset fixedsize" onselect="onImageSelect();" ondraggesture="onBeginLinkDrag(event,'image-address','image-alt')">
  206.           <treecols>
  207.             <treecol sortSeparators="true" persist="hidden width" flex="10" 
  208.                          width="10" id="image-address" label="&mediaAddress;"/>
  209.             <splitter class="tree-splitter"/>
  210.             <treecol sortSeparators="true" persist="hidden width" flex="2" 
  211.                          width="2"  id="image-type"    label="&mediaType;"/>
  212.             <splitter class="tree-splitter"/>
  213.             <treecol sortSeparators="true" hidden="true" persist="hidden width" flex="4" 
  214.                          width="4"  id="image-alt"    label="&mediaAltHeader;"/>
  215.           </treecols>
  216.           <treechildren flex="1"/>
  217.         </tree>
  218.         <splitter collapse="after" orient="vertical"/>
  219.         <vbox flex="1">
  220.           <grid>
  221.             <columns>
  222.               <column/>
  223.               <column style="width: .5em;"/>
  224.               <column flex="1"/>
  225.             </columns>
  226.             <rows>
  227.               <row>
  228.                 <label value="&mediaURL;"/>
  229.                 <separator/>
  230.                 <textbox readonly="true" crop="right" id="imageurltext"/>
  231.               </row>
  232.               <row>
  233.                 <label value="&mediaTitle;"/>
  234.                 <separator/>
  235.                 <textbox readonly="true" crop="right" id="imagetitletext"/>
  236.               </row>
  237.               <row>
  238.                 <label value="&mediaAlt;"/>
  239.                 <separator/>
  240.                 <textbox readonly="true" crop="right" id="imagealttext"/>
  241.               </row>
  242.               <row>
  243.                 <label value="&mediaLongdesc;"/>
  244.                 <separator/>
  245.                 <textbox readonly="true" crop="right" id="imagelongdesctext"/>
  246.               </row>
  247.               <row>
  248.                 <label value="&generalType;"/>
  249.                 <separator/>
  250.                 <textbox readonly="true" crop="right" id="imagetypetext"/>
  251.               </row>
  252.               <row>
  253.                 <label value="&generalSource;"/>
  254.                 <separator/>
  255.                 <textbox readonly="true" crop="right" id="imagesourcetext"/>
  256.               </row>
  257.               <row>
  258.                 <label value="&generalSize;"/>
  259.                 <separator/>
  260.                 <textbox readonly="true" crop="right" id="imagesizetext"/>
  261.               </row>
  262.               <row>
  263.                 <label value="&generalExpires;"/>
  264.                 <separator/>
  265.                 <textbox readonly="true" crop="right" id="imageexpirestext"/>
  266.               </row>
  267.               <row>
  268.                 <label value="&mediaDimensions;"/>
  269.                 <separator/>
  270.                 <vbox>
  271.                   <textbox readonly="true" crop="right" id="imageSize"/>
  272.                   <textbox readonly="true" crop="right" id="physSize"/>
  273.                 </vbox>
  274.               </row>
  275.             </rows>
  276.           </grid>
  277.           <hbox>
  278.             <button label="&mediaSaveAs;" accesskey="&mediaSaveAsAccesskey;" id="imagesaveasbutton" disabled="true" oncommand="saveMedia();"/>
  279.           </hbox>
  280.           <vbox class="inset iframe" flex="1" pack="center">
  281.             <hbox id="theimagecontainer" pack="center">
  282.               <image id="thepreviewimage"/>
  283.             </hbox>
  284.           </vbox>
  285.         </vbox>
  286.       </vbox>
  287.  
  288.       <!-- Others added by overlay -->
  289.     </tabpanels>
  290.   </tabbox>
  291. </window>
  292.