home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December / PCWorld_2005-12_cd.bin / komunikace / netscape / nsb-install-8-0.exe / chrome / browser.jar / content / browser / pageInfo.xul < prev    next >
Extensible Markup Language  |  2005-09-26  |  12KB  |  291 lines

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