home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 December / PCWorld_2006-12_cd.bin / komunikace / netscape / nsb-install-8-1-2.exe / res / inspector / viewer-registry.rdf < prev   
Extensible Markup Language  |  2006-01-06  |  3KB  |  90 lines

  1. <?xml version="1.0"?>
  2.  
  3. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
  4.          xmlns:ins="http://www.mozilla.org/inspector#">
  5.  
  6. <!-- Inspector-specific RDF attributes
  7.   xmlns:ins     Sets the ins: prefix to an Inspector-specific namespace URI.
  8.  
  9.   ins:uid       Sets the basic viewer filename Inspector uses to find the viewer XUL file.
  10.                 For example, ins:uid="dom" leads to chrome://inspector/content/viewers/dom/dom.xul
  11.                 (ViewerRegistry.js#getEntryURL())
  12.  
  13.   ins:panels    This determines which DOM Inspector panels, by id, the viewer referenced is valid for.
  14.                 For example, ins:panels="bxObjectPanel bxObjPanel" means the panel id must be 
  15.                 bxObjectPanel or bxObjPanel.
  16.  
  17.   ins:description
  18.                 This sets a title for the viewer.
  19.  
  20.   ins:icon      This sets an icon for the viewer.  Currently unused.
  21.  
  22.   ins:filter    This determines which nodes (or in the case of JavaScript Object
  23.                 viewer, values), the viewer referenced is valid for. For example,
  24.                 ins:filter="return object instanceof Components.interfaces.nsIDOMDocument;"
  25.                 is a JavaScript fragment ViewerRegistry.js uses to define a filter
  26.                 function if the panel's subject node is an instance of nsIDOMDocument.
  27. -->
  28.  
  29.   <rdf:Seq about="inspector:viewers">
  30.     <rdf:li><rdf:Description 
  31.       ins:uid="dom"
  32.       ins:panels="bxDocPanel"
  33.       ins:description="DOM Nodes"
  34.       ins:icon="chrome://inspector/content/viewers/dom/dom-icon.gif"
  35.       ins:filter="return object instanceof Components.interfaces.nsIDOMDocument;"/>
  36.     </rdf:li>
  37.  
  38.     <rdf:li><rdf:Description 
  39.       ins:uid="stylesheets"
  40.       ins:panels="bxDocPanel"
  41.       ins:description="Stylesheets"
  42.       ins:filter="return object instanceof Components.interfaces.nsIDOMDocument;"/>
  43.     </rdf:li>
  44.  
  45.     <rdf:li><rdf:Description 
  46.       ins:uid="domNode"
  47.       ins:panels="bxObjectPanel bxObjPanel"
  48.       ins:description="DOM Node"
  49.       ins:filter="return object instanceof Components.interfaces.nsIDOMNode;"/>
  50.     </rdf:li>
  51.  
  52.     <rdf:li><rdf:Description 
  53.       ins:uid="boxModel"
  54.       ins:panels="bxObjectPanel bxObjPanel"
  55.       ins:description="Box Model"
  56.       ins:filter="return object instanceof Components.interfaces.nsIDOMElement;"/>
  57.     </rdf:li>
  58.  
  59.     <rdf:li><rdf:Description 
  60.       ins:uid="xblBindings"
  61.       ins:panels="bxObjectPanel bxObjPanel"
  62.       ins:description="XBL Bindings"
  63.       ins:filter="return object instanceof Components.interfaces.nsIDOMElement;"/>
  64.     </rdf:li>
  65.  
  66.     <rdf:li><rdf:Description
  67.       ins:uid="styleRules"
  68.       ins:panels="bxObjectPanel bxObjPanel"
  69.       ins:description="CSS Style Rules"
  70.       ins:filter="return object instanceof Components.interfaces.nsIDOMElement || object instanceof Components.interfaces.nsIDOMCSSStyleSheet;"/>
  71.     </rdf:li>
  72.  
  73.     <rdf:li><rdf:Description 
  74.       ins:uid="computedStyle"
  75.       ins:panels="bxObjectPanel bxObjPanel"
  76.       ins:description="Computed Style"
  77.       ins:filter="return object instanceof Components.interfaces.nsIDOMElement;"/>
  78.     </rdf:li>
  79.  
  80.     <rdf:li><rdf:Description 
  81.       ins:uid="jsObject"
  82.       ins:panels="bxDocPanel bxObjectPanel bxObjPanel"
  83.       ins:description="Javascript Object"
  84.       ins:filter="return true;"/>
  85.     </rdf:li>
  86.  
  87.   </rdf:Seq>
  88.  
  89. </rdf:RDF>
  90.