<!-- ***** BEGIN LICENSE BLOCK *****
   - Version: MPL 1.1/GPL 2.0/LGPL 2.1
   -
   - The contents of this file are subject to the Mozilla Public License Version
   - 1.1 (the "License"); you may not use this file except in compliance with
   - the License. You may obtain a copy of the License at
   - http://www.mozilla.org/MPL/
   -
   - Software distributed under the License is distributed on an "AS IS" basis,
   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
   - for the specific language governing rights and limitations under the
   - License.
   -
   - The Original Code is Verbosio XML Editor.
   -
   - The Initial Developer of the Original Code is
   - Alexander J. Vincent <ajvincent@gmail.com>.
   - Portions created by the Initial Developer are Copyright (C) 2005
   - the Initial Developer. All Rights Reserved.
   -
   - Contributor(s):
   -
   - Alternatively, the contents of this file may be used under the terms of
   - either the GNU General Public License Version 2 or later (the "GPL"), or
   - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
   - in which case the provisions of the GPL or the LGPL are applicable instead
   - of those above. If you wish to allow use of your version of this file only
   - under the terms of either the GPL or the LGPL, and not to allow others to
   - use your version of this file under the terms of the MPL, indicate your
   - decision by deleting the provisions above and replace them with the notice
   - and other provisions required by the LGPL or the GPL. If you do not delete
   - the provisions above, a recipient may use your version of this file under
   - the terms of any one of the MPL, the GPL or the LGPL.
   -
   - ***** END LICENSE BLOCK ***** -->

<!ENTITY % verbosioLocale SYSTEM "chrome://verbosio/locale/verbosio.dtd">
%verbosioLocale;

<!ENTITY JS_TYPE "application/javascript">

<!-- namespaces shortcuts -->
<!ENTITY XML_NS    "http://www.w3.org/XML/1998/namespace">
<!ENTITY XMLNS_NS  "http://www.w3.org/2000/xmlns/">
<!ENTITY XLINK_NS  "http://www.w3.org/1999/xlink">
<!ENTITY XHTML_NS  "http://www.w3.org/1999/xhtml">
<!ENTITY MATH_NS   "http://www.w3.org/1998/Math/MathML">
<!ENTITY XUL_NS    "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!ENTITY XBL_NS    "http://www.mozilla.org/xbl">
<!ENTITY SVG_NS    "http://www.w3.org/2000/svg">
<!ENTITY RDF_NS    "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<!ENTITY MARKUP_NS "http://verbosio.mozdev.org/namespaces/markup/">
<!ENTITY EDIT_NS   "http://verbosio.mozdev.org/namespaces/edit/">

<!ENTITY namespaces.script '
<script type="&JS_TYPE;">
/* take advantage of DTD entities */
const XML_NS    = "&XML_NS;";
const XMLNS_NS  = "&XMLNS_NS;";
const XLINK_NS  = "&XLINK_NS;";
const XHTML_NS  = "&XHTML_NS;";
const MATH_NS   = "&MATH_NS;";
const XUL_NS    = "&XUL_NS;";
const XBL_NS    = "&XBL_NS;";
const SVG_NS    = "&SVG_NS;";
const RDF_NS    = "&RDF_NS;";
const MARKUP_NS = "&MARKUP_NS;";
const EDIT_NS   = "&EDIT_NS;";
</script>
'>

<!-- Node Editor Text Basic Context -->
<!ENTITY sourceMode.menuitem
 '<menuitem label="&sourceMode.label;" 
    oncommand="verbosio.nodeEditor.doCommand(&quot;sourceMode&quot;);"
    xmlns="&XUL_NS;"/>'>
<!ENTITY propertiesMode.menuitem
 '<menuitem label="&propertiesMode.label;" 
    oncommand="verbosio.nodeEditor.doCommand(&quot;propertiesMode&quot;);"
    xmlns="&XUL_NS;"/>'>


<!ENTITY % textcontextDTD SYSTEM "chrome://global/locale/textcontext.dtd" >
%textcontextDTD;
<!ENTITY baseEditorContext.content '
        <xul:menuitem label="&undoCmd.label;" accesskey="&undoCmd.accesskey;" cmd="cmd_undo"/>
        <xul:menuseparator/>
        <xul:menuitem label="&cutCmd.label;" accesskey="&cutCmd.accesskey;" cmd="cmd_cut"/>
        <xul:menuitem label="&copyCmd.label;" accesskey="&copyCmd.accesskey;" cmd="cmd_copy"/>
        <xul:menuitem label="&pasteCmd.label;" accesskey="&pasteCmd.accesskey;" cmd="cmd_paste"/>
        <xul:menuitem label="&deleteCmd.label;" accesskey="&deleteCmd.accesskey;" cmd="cmd_delete"/>
        <xul:menuitem label="&insertCmd.label;"
                      accessKey="&insertCmd.accesskey;"
                      cmd="cmd_insert"
                     />
        <xul:menuseparator/>
        <xul:menuitem label="&selectAllCmd.label;" accesskey="&selectAllCmd.accesskey;" cmd="cmd_selectAll"/>
'>

<!-- XXX ajvincent Localize! -->
  <!ENTITY valuepanel.panels '
<xul:valuepanel type="basic"
                menulabel="Basic"
               />
<xul:valuepanel type="element"
                menulabel="XML Element"
                disabled="true"
               />
<xul:valuepanel type="cdata"
                menulabel="Node Contents As Text"
                disabled="true"
               />
<xul:valuepanel type="processing-instruction"
                menulabel="Processing Instruction"
                disabled="true"
               />
<xul:valuepanel type="comment"
                menulabel="Comment"
                disabled="true"
               />
<xul:valuepanel type="document"
                menulabel="Document"
                disabled="true"
               />
<xul:valuepanel type="doctype"
                menulabel="Document Type Declaration"
                disabled="true"
               />
  '>
