mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-10-26 13:27:27 +00:00
329 lines
16 KiB
XML
329 lines
16 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
|
|
<dictionary>
|
|
<suite name="Standard Suite" code="core" description="Common classes and commands for most applications.">
|
|
<cocoa name="NSCoreSuite"/>
|
|
<!--
|
|
<class name="item" code="cobj" description="A scriptable object." plural="items">
|
|
<cocoa class="GeckoObject"/>
|
|
<property name="class" code="pcls" type="type" access="r" description="The class of the object.">
|
|
<cocoa key="class"/>
|
|
</property>
|
|
<property name="properties" code="pALL" type="record" description="All of the object's properties.">
|
|
<cocoa key="properties"/>
|
|
</property>
|
|
<responds-to name="count">
|
|
<cocoa method=""/>
|
|
</responds-to>
|
|
<responds-to name="delete">
|
|
<cocoa method=""/>
|
|
</responds-to>
|
|
<responds-to name="duplicate">
|
|
<cocoa method=""/>
|
|
</responds-to>
|
|
<responds-to name="exists">
|
|
<cocoa method=""/>
|
|
</responds-to>
|
|
<responds-to name="get">
|
|
<cocoa method=""/>
|
|
</responds-to>
|
|
<responds-to name="move">
|
|
<cocoa method=""/>
|
|
</responds-to>
|
|
<responds-to name="set">
|
|
<cocoa method=""/>
|
|
</responds-to>
|
|
</class>
|
|
-->
|
|
<class name="window" code="cwin" description="A window.">
|
|
<cocoa class="NSWindow"/>
|
|
<property name="name" code="pnam" description="The full title of the window." type="text">
|
|
<cocoa key="title"/>
|
|
</property>
|
|
<property name="id" code="ID " description="The unique identifier of the window." type="integer" access="r">
|
|
<cocoa key="uniqueID"/>
|
|
</property>
|
|
<property name="bounds" code="pbnd" description="The bounding rectangle of the window." type="rectangle">
|
|
<cocoa key="boundsAsQDRect"/>
|
|
</property>
|
|
<property name="closeable" code="hclb" description="Whether the window has a close box." type="boolean" access="r">
|
|
<cocoa key="hasCloseBox"/>
|
|
</property>
|
|
<property name="titled" code="ptit" description="Whether the window has a title bar." type="boolean" access="r">
|
|
<cocoa key="hasTitleBar"/>
|
|
</property>
|
|
<property name="index" code="pidx" description="The index of the window in the back-to-front window ordering." type="integer">
|
|
<cocoa key="orderedIndex"/>
|
|
</property>
|
|
<property name="floating" code="isfl" description="Whether the window floats." type="boolean" access="r">
|
|
<cocoa key="isFloatingPanel"/>
|
|
</property>
|
|
<property name="miniaturizable" code="ismn" description="Whether the window can be miniaturized." type="boolean" access="r">
|
|
<cocoa key="isMiniaturizable"/>
|
|
</property>
|
|
<property name="miniaturized" code="pmnd" description="Whether the window is currently miniaturized." type="boolean">
|
|
<cocoa key="isMiniaturized"/>
|
|
</property>
|
|
<property name="modal" code="pmod" description="Whether the window is the application's current modal window." type="boolean" access="r">
|
|
<cocoa key="isModalPanel"/>
|
|
</property>
|
|
<property name="resizable" code="prsz" description="Whether the window can be resized." type="boolean" access="r">
|
|
<cocoa key="isResizable"/>
|
|
</property>
|
|
<property name="visible" code="pvis" description="Whether the window is currently visible." type="boolean">
|
|
<cocoa key="isVisible"/>
|
|
</property>
|
|
<property name="zoomable" code="iszm" description="Whether the window can be zoomed." type="boolean" access="r">
|
|
<cocoa key="isZoomable"/>
|
|
</property>
|
|
<property name="zoomed" code="pzum" description="Whether the window is currently zoomed." type="boolean">
|
|
<cocoa key="isZoomed"/>
|
|
</property>
|
|
<responds-to name="close">
|
|
<cocoa method="handleCloseScriptCommand:"/>
|
|
</responds-to>
|
|
<responds-to name="print">
|
|
<cocoa method="handlePrintScriptCommand:"/>
|
|
</responds-to>
|
|
<responds-to name="save">
|
|
<cocoa method="handleSaveScriptCommand:"/>
|
|
</responds-to>
|
|
</class>
|
|
<enumeration name="savo" code="savo">
|
|
<enumerator name="ask" code="ask " description="Ask the user whether or not to save the file."/>
|
|
<enumerator name="no" code="no " description="Do not save the file."/>
|
|
<enumerator name="yes" code="yes " description="Save the file."/>
|
|
</enumeration>
|
|
<command name="open" code="aevtodoc" description="Open an object.">
|
|
<direct-parameter description="The file(s) to be opened.">
|
|
<type type="file" list="yes"/>
|
|
</direct-parameter>
|
|
</command>
|
|
<command name="save" code="coresave" description="Save an object.">
|
|
<direct-parameter type="specifier" description="the object to save, usually a document or window"/>
|
|
<parameter name="as" code="fltp" type="text" optional="yes" description="The file type in which to save the data.">
|
|
<cocoa key="FileType"/>
|
|
</parameter>
|
|
<parameter name="in" code="kfil" type="file" optional="yes" description="The file in which to save the object.">
|
|
<cocoa key="File"/>
|
|
</parameter>
|
|
</command>
|
|
<enumeration name="printing error handling" code="enum">
|
|
<enumerator name="standard" code="lwst" description="Standard PostScript error handling">
|
|
<cocoa boolean-value="NO"/>
|
|
</enumerator>
|
|
<enumerator name="detailed" code="lwdt" description="print a detailed report of PostScript errors">
|
|
<cocoa boolean-value="YES"/>
|
|
</enumerator>
|
|
</enumeration>
|
|
<record-type name="print settings" code="pset">
|
|
<property name="copies" code="lwcp" type="integer" description="the number of copies of a document to be printed">
|
|
<cocoa key="NSCopies"/>
|
|
</property>
|
|
<property name="collating" code="lwcl" type="boolean" description="Should printed copies be collated?">
|
|
<cocoa key="NSMustCollate"/>
|
|
</property>
|
|
<property name="starting page" code="lwfp" type="integer" description="the first page of the document to be printed">
|
|
<cocoa key="NSFirstPage"/>
|
|
</property>
|
|
<property name="ending page" code="lwlp" type="integer" description="the last page of the document to be printed">
|
|
<cocoa key="NSLastPage"/>
|
|
</property>
|
|
<property name="pages across" code="lwla" type="integer" description="number of logical pages laid across a physical page">
|
|
<cocoa key="NSPagesAcross"/>
|
|
</property>
|
|
<property name="pages down" code="lwld" type="integer" description="number of logical pages laid out down a physical page">
|
|
<cocoa key="NSPagesDown"/>
|
|
</property>
|
|
<property name="requested print time" code="lwqt" type="date" description="the time at which the desktop printer should print the document">
|
|
<cocoa key="NSPrintTime"/>
|
|
</property>
|
|
<property name="error handling" code="lweh" type="printing error handling" description="how errors are handled">
|
|
<cocoa key="NSDetailedErrorReporting"/>
|
|
</property>
|
|
<property name="fax number" code="faxn" type="text" description="for fax number">
|
|
<cocoa key="NSFaxNumber"/>
|
|
</property>
|
|
<property name="target printer" code="trpr" type="text" description="for target printer">
|
|
<cocoa key="NSPrinterName"/>
|
|
</property>
|
|
</record-type>
|
|
<command name="print" code="aevtpdoc" description="Print an object.">
|
|
<direct-parameter type="file" description="The file(s) or document(s) to be printed."/>
|
|
<parameter name="print dialog" code="pdlg" type="boolean" optional="yes" description="Should the application show the Print dialog?">
|
|
<cocoa key="ShowPrintDialog"/>
|
|
</parameter>
|
|
<parameter name="with properties" code="prdt" type="print settings" optional="yes" description="the print settings">
|
|
<cocoa key="PrintSettings"/>
|
|
</parameter>
|
|
</command>
|
|
<command name="close" code="coreclos" description="Close an object.">
|
|
<cocoa class="NSCloseCommand"/>
|
|
<direct-parameter type="specifier" description="the object to close"/>
|
|
<!--
|
|
<parameter name="saving" code="savo" type="savo" optional="yes" description="Specifies whether changes should be saved before closing.">
|
|
<cocoa key="SaveOptions"/>
|
|
</parameter>
|
|
<parameter name="saving in" code="kfil" type="file" optional="yes" description="The file in which to save the object.">
|
|
<cocoa key="File"/>
|
|
</parameter>
|
|
-->
|
|
</command>
|
|
<command name="quit" code="aevtquit" description="Quit an application.">
|
|
<cocoa class="GeckoQuit"/>
|
|
<!--
|
|
<cocoa class="NSQuitCommand"/>
|
|
<parameter name="saving" code="savo" type="savo" optional="yes" description="Specifies whether changes should be saved before quitting.">
|
|
<cocoa key="SaveOptions"/>
|
|
</parameter>
|
|
-->
|
|
</command>
|
|
<command name="count" code="corecnte" description="Return the number of elements of a particular class within an object.">
|
|
<cocoa class="NSCountCommand"/>
|
|
<direct-parameter type="specifier" description="the object whose elements are to be counted"/>
|
|
<parameter name="each" code="kocl" type="type" optional="yes" description="The class of objects to be counted.">
|
|
<cocoa key="ObjectClass"/>
|
|
</parameter>
|
|
<result description="the number of elements" type="integer"/>
|
|
</command>
|
|
<command name="delete" code="coredelo" description="Delete an object.">
|
|
<cocoa class="NSDeleteCommand"/>
|
|
<direct-parameter type="specifier" description="the object to delete"/>
|
|
</command>
|
|
<command name="duplicate" code="coreclon" description="Copy object(s) and put the copies at a new location.">
|
|
<cocoa name="Copy" class="NSCloneCommand"/>
|
|
<direct-parameter type="specifier" description="the object(s) to duplicate"/>
|
|
<parameter name="to" code="insh" type="location specifier" optional="yes" description="The location for the new object(s).">
|
|
<cocoa key="ToLocation"/>
|
|
</parameter>
|
|
<parameter name="with properties" code="prdt" type="record" optional="yes" description="Properties to be set in the new duplicated object(s).">
|
|
<cocoa key="WithProperties"/>
|
|
</parameter>
|
|
<!-- ?? Duplicate is supposed to return the new objects, but it doesn't, at least in 10.4. -->
|
|
</command>
|
|
<command name="exists" code="coredoex" description="Verify if an object exists.">
|
|
<cocoa class="NSExistsCommand"/>
|
|
<direct-parameter type="specifier" description="the object in question"/>
|
|
<result description="true if it exists, false if not" type="boolean"/>
|
|
</command>
|
|
<command name="get" code="coregetd" description="Get the data for an object.">
|
|
<cocoa class="NSGetCommand"/>
|
|
<direct-parameter type="specifier" description="the object for the command"/>
|
|
<result type="any"/>
|
|
</command>
|
|
<command name="make" code="corecrel" description="Make a new object.">
|
|
<cocoa class="NSCreateCommand"/>
|
|
<parameter name="new" code="kocl" type="type" description="The class of the new object.">
|
|
<cocoa key="ObjectClass"/>
|
|
</parameter>
|
|
<parameter name="at" code="insh" type="location specifier" optional="yes" description="The location at which to insert the object.">
|
|
<cocoa key="Location"/>
|
|
</parameter>
|
|
<parameter name="with data" code="data" type="any" optional="yes" description="The initial data for the object.">
|
|
<cocoa key="ObjectData"/>
|
|
</parameter>
|
|
<parameter name="with properties" code="prdt" type="record" optional="yes" description="The initial values for properties of the object.">
|
|
<cocoa key="KeyDictionary"/>
|
|
</parameter>
|
|
<result description="to the new object" type="specifier"/>
|
|
</command>
|
|
<command name="move" code="coremove" description="Move object(s) to a new location.">
|
|
<cocoa class="NSMoveCommand"/>
|
|
<direct-parameter type="specifier" description="the object for the command"/>
|
|
<parameter name="to" code="insh" type="location specifier" description="The new location for the object(s).">
|
|
<cocoa key="ToLocation"/>
|
|
</parameter>
|
|
</command>
|
|
<command name="set" code="coresetd" description="Set an object's data.">
|
|
<cocoa class="NSSetCommand"/>
|
|
<direct-parameter type="specifier" description="the object for the command"/>
|
|
<parameter name="to" code="data" type="any" description="The new value.">
|
|
<cocoa key="Value"/>
|
|
</parameter>
|
|
</command>
|
|
</suite>
|
|
<suite name="%MAC_APP_NAME% suite" code="MOZB" description="%MAC_APP_NAME% specific classes">
|
|
<!-- 10.4 doesn't support class-extension. -->
|
|
<class name="application" code="capp" description="An application's top level scripting object." inherits="item" plural="applications">
|
|
<cocoa class="NSApplication"/>
|
|
<element type="window" access="r">
|
|
<cocoa key="orderedWindows"/>
|
|
</element>
|
|
<element type="browser window" access="r">
|
|
<cocoa key="scriptWindows"/>
|
|
</element>
|
|
<property name="frontmost" code="pisf" type="boolean" access="r" description="Is this the frontmost (active) application?">
|
|
<cocoa key="isActive"/>
|
|
</property>
|
|
<property name="name" code="pnam" type="text" access="r" description="The name of the application.">
|
|
<cocoa key="name"/>
|
|
</property>
|
|
<property name="version" code="vers" type="text" access="r" description="The version of the application.">
|
|
<cocoa key="version"/>
|
|
</property>
|
|
<property name="opening" code="Opng" type="boolean" access="r" description="Whether the application is still opening a window.">
|
|
<cocoa key="opening"/>
|
|
</property>
|
|
<!--
|
|
<responds-to name="open">
|
|
<cocoa method="handleOpenScriptCommand:"/>
|
|
</responds-to>
|
|
<responds-to name="quit">
|
|
<cocoa method="handleQuitScriptCommand:"/>
|
|
</responds-to>
|
|
-->
|
|
</class>
|
|
<class name="browser window" code="BWin" description="A %MAC_APP_NAME% browser window." inherits="window" plural="browser windows">
|
|
<contents name="current tab" code="pCTb" type="tab" access="rw" description="The currently selected tab in the browser window.">
|
|
<cocoa key="selectedScriptTab"/>
|
|
</contents>
|
|
<cocoa class="GeckoWindow"/>
|
|
<element description="Tabs open in the browser window." type="tab" access="r">
|
|
<cocoa key="scriptTabs"/>
|
|
</element>
|
|
<property name="name" code="pnam" type="text" access="r" description="The full title of the browser window.">
|
|
<cocoa key="title"/>
|
|
</property>
|
|
<property name="index" code="pidx" type="integer" access="r" description="The index of the browser window, ordered front to back.">
|
|
<cocoa key="orderedIndex"/>
|
|
</property>
|
|
</class>
|
|
<class name="tab" code="BTab" description="A %MAC_APP_NAME% browser window tab." inherits="item" plural="tabs">
|
|
<cocoa class="GeckoTab"/>
|
|
<property name="name" code="pnam" type="text" access="r" description="The name of the tab.">
|
|
<cocoa key="title"/>
|
|
</property>
|
|
<property name="busy" code="pBzy" type="boolean" access="r" description="Whether the tab is busy.">
|
|
<cocoa key="busy"/>
|
|
</property>
|
|
<property name="index" code="pidx" type="integer" access="r" description="The index of the tab, ordered left to right.">
|
|
<cocoa key="orderedIndex"/>
|
|
</property>
|
|
<property name="URL" code="pURL" type="text" access="rw" description="The current URL of the tab.">
|
|
<cocoa key="URL"/>
|
|
</property>
|
|
<property name="source" code="pSrc" type="text" access="r" description="The HTML source of the web page currently loaded in the tab.">
|
|
<cocoa key="source"/>
|
|
</property>
|
|
<property name="text" code="pTxt" type="text" access="r" description="The text of the web page currently loaded in the tab. Modifications to text aren't reflected on the web page.">
|
|
<cocoa key="text"/>
|
|
</property>
|
|
<property name="selected" code="pSTx" type="text" access="r" description="The selected text on the web page currently loaded in the tab.">
|
|
<cocoa key="selectedText"/>
|
|
</property>
|
|
<responds-to name="close">
|
|
<cocoa method="handleCloseScriptCommand:"/>
|
|
</responds-to>
|
|
<!--
|
|
<responds-to name="print">
|
|
<cocoa method="handlePrintScriptCommand:"/>
|
|
</responds-to>
|
|
<responds-to name="save">
|
|
<cocoa method="handleSaveScriptCommand:"/>
|
|
</responds-to>
|
|
-->
|
|
</class>
|
|
</suite>
|
|
</dictionary>
|
|
|