editor/ui/composer/content/pref-composer.xul
author Neil Rashbrook <neil@parkwaycc.co.uk>
Mon, 08 Nov 2010 23:35:42 +0000
changeset 6665 5970a061c13568c45a2e998d077a0b4488937449
parent 250 ee719a0502491fc663bda942dcfc52c0825938d3
child 8260 ec2edbeb7888b5d6adccfd4d6e14158e5c83766b
permissions -rw-r--r--
Bug 609877 Don't access DOM elements before the document has loaded (prerequisite for lightweight theme support) r=Mnyromyr

<?xml version="1.0"?> 
<!-- ***** 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 Mozilla Communicator client code, released
 March 31, 1998.

 The Initial Developer of the Original Code is
 Netscape Communications Corporation.
 Portions created by the Initial Developer are Copyright (C) 1998-2000
 the Initial Developer. All Rights Reserved.

 Contributor(s):
   Ryan Cassin (rcassin@supernova.org)

 Alternatively, the contents of this file may be used under the terms of
 either of 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 GPL or the LGPL. 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 ***** -->

<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>

<!DOCTYPE overlay SYSTEM "chrome://editor/locale/pref-composer.dtd">

<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <prefpane id="composer_pane" label="&pref.composer.title;">

    <preferences id="composer_preferences">
      <preference id="editor.history.url_maximum"
                  name="editor.history.url_maximum"
                  type="int"/>
      <preference id="editor.prettyprint"
                  name="editor.prettyprint"
                  type="bool"
                  inverted="true"/>
      <preference id="editor.save_associated_files"
                  name="editor.save_associated_files"
                  type="bool"/>
      <preference id="editor.always_show_publish_dialog"
                  name="editor.always_show_publish_dialog"
                  type="bool"/>
      <preference id="editor.table.maintain_structure"
                  name="editor.table.maintain_structure"
                  type="bool"/>
      <preference id="editor.use_css"
                  name="editor.use_css"
                  type="bool"/>
      <preference id="editor.CR_creates_new_p"
                  name="editor.CR_creates_new_p"
                  type="bool"/>
    </preferences>

    <!-- Recent files menu -->
    <groupbox>
      <caption label="&recentFiles.title;"/>
      <hbox align="center">
        <label value="&documentsInMenu.label;"
               accesskey="&documentsInMenu.accesskey;"
               control="recentFiles"/>
        <textbox id="recentFiles"
                 name="recent string"
                 type="number"
                 max="99"
                 min="0"
                 maxlength="2"
                 size="3"
                 value="10"
                 preference="editor.history.url_maximum"/>
      </hbox>
    </groupbox>

    <!-- HTML formatting on output -->
    <groupbox>
      <caption label="&savingFiles.title;"/>
      <checkbox id="preserveFormatting"
                label="&preserveExisting.label;"
                accesskey="&preserveExisting.accesskey;"
                tooltiptext="&preserveExisting.tooltip;"
                preference="editor.prettyprint"/>
      <checkbox id="saveAssociatedFiles"
                label="&saveAssociatedFiles.label;"
                accesskey="&saveAssociatedFiles.accesskey;"
                preference="editor.save_associated_files"/>
      <checkbox id="showPublishDialog" 
                label="&showPublishDialog.label;"
                accesskey="&showPublishDialog.accesskey;"
                preference="editor.always_show_publish_dialog"/>
    </groupbox>

    <groupbox align="start">
      <caption label="&composerEditing.label;"/>
      <checkbox id="maintainTableStructure"
                label="&maintainStructure.label;"
                accesskey="&maintainStructure.accesskey;"
                tooltiptext="&maintainStructure.tooltip;"
                preference="editor.table.maintain_structure"/>
      <checkbox id="useCSS"
                label="&useCSS.label;"
                accesskey="&useCSS.accesskey;"
                preference="editor.use_css"/>
      <checkbox id="crInPCreatesNewP"
                label="&crInPCreatesNewP.label;"
                accesskey="&crInPCreatesNewP.accesskey;"
                preference="editor.CR_creates_new_p"/>
    </groupbox>
  </prefpane>
</overlay>