Part of Bug 381343 - move the composer debug options to the debugQA extension r=KaiRo,sr=Neil

This commit is contained in:
bugzilla@standard8.plus.com 2007-08-28 09:05:23 -07:00
Родитель 64b9885a71
Коммит c1c6cb4d84
6 изменённых файлов: 0 добавлений и 113 удалений

Просмотреть файл

@ -834,14 +834,6 @@ function CheckAndSaveDocument(command, allowDontSave)
// --------------------------- File menu ---------------------------
function EditorNewPlaintext()
{
window.openDialog( "chrome://editor/content/TextEditorAppShell.xul",
"_blank",
"chrome,dialog=no,all",
"about:blank");
}
// Check for changes to document and allow saving before closing
// This is hooked up to the OS's window close widget (e.g., "X" for Windows)
function EditorCanClose()

Просмотреть файл

@ -79,7 +79,6 @@
persist="screenX screenY width height sizemode">
<script type="application/x-javascript" src="chrome://editor/content/editor.js"/>
<script type="application/x-javascript" src="chrome://editor/content/EditorCommandsDebug.js"/>
<script type="application/x-javascript" src="chrome://editor/content/EditorContextMenu.js"/>
<script type="application/x-javascript" src="chrome://editor/content/StructBarContextMenu.js"/>
<script type="application/x-javascript" src="chrome://editor/content/editorApplicationOverlay.js"/>
@ -183,10 +182,6 @@
<menu id="windowMenu"/>
<!-- DEBUG only -->
<menu id="debugMenu" />
<!-- end DEBUG only -->
<!-- help menu filled from globalOverlay -->
<menu id="menu_Help"/>

Просмотреть файл

@ -916,77 +916,4 @@
-->
<menuitem id="menu_pasteQuote" accesskey="&editpastequotation.accesskey;" command="cmd_pasteQuote" key="pastequotationkb"/>
<!-- DEBUG only -->
<menu id="debugMenu" label="&debugMenu.label;">
<menupopup>
<menuitem label="&newEditorTestPage.label;" oncommand="window.openDialog('chrome://editor/content','_blank','chrome,all,dialog=no','chrome://editor/content/EditorInitPage.html')"/>
<menuitem label="&textEditorCmd.label;" oncommand="EditorNewPlaintext();" />
<menuitem label="&outputTextCmd.label;"
oncommand="EditorGetText()"/>
<menuitem label="&outputHTMLCmd.label;"
oncommand="EditorGetHTML()"/>
<menuseparator />
<menuitem label="&pasteAsQuotationCmd.label;"
accesskey="&editpastequotation.accesskey;"
oncommand="goDoCommand('cmd_pasteQuote')"/>
<menuitem label="&editRewrapCmd.label;"
oncommand="try { GetCurrentEditor().rewrap(true); } catch (e) {}"/>
<menuitem label="&editStripQuotesCmd.label;"
oncommand="try { GetCurrentEditor().stripCites(); } catch (e) {}"/>
<menuitem label="&insertTextCmd.label;"
oncommand="EditorInsertText('All good things come to those who wait. ')"/>
<menuitem id="menu_checkLinks" observes="cmd_checkLinks"
label="&checkLinksCmd.label;"/>
<menuseparator />
<menu accesskey="&insertformmenu.accesskey;" id="insertFormMenu" label="&insertFormMenu.label;">
<menupopup>
<menuitem accesskey="&insertform.accesskey;" command="cmd_form" label="&insertFormCmd.label;"/>
<menuseparator/>
<menuitem accesskey="&insertinputtag.accesskey;" command="cmd_inputtag" label="&insertInputTagCmd.label;"/>
<menuitem accesskey="&insertinputimage.accesskey;" command="cmd_inputimage" label="&insertInputImageCmd.label;"/>
<menuitem accesskey="&inserttextarea.accesskey;" command="cmd_textarea" label="&insertTextAreaCmd.label;"/>
<menuitem accesskey="&insertselect.accesskey;" command="cmd_select" label="&insertSelectCmd.label;"/>
<menuitem accesskey="&insertbutton.accesskey;" command="cmd_button" label="&insertButtonCmd.label;"/>
<menuitem accesskey="&insertlabel.accesskey;" command="cmd_label" label="&insertLabelCmd.label;"/>
<menuitem accesskey="&insertfieldset.accesskey;" command="cmd_fieldset" label="&insertFieldSetCmd.label;"/>
<menuseparator/>
<menuitem accesskey="&insertisindex.accesskey;" command="cmd_isindex" label="&insertIsIndexCmd.label;"/>
</menupopup>
</menu>
<menuitem label="&testSelectionCmd.label;"
oncommand="EditorTestSelection()"/>
<menuitem label="&testTableLayoutCmd.label;"
oncommand="EditorTestTableLayout()"/>
<menuitem label="&showEmbeddedCmd.label;"
oncommand="EditorShowEmbeddedObjects()"/>
<menuitem label="&dumpContentCmd.label;"
oncommand="EditorDumpContent()"/>
<menuitem label="&testDocumentCmd.label;"
oncommand="EditorTestDocument()"/>
<menuitem label="&runUnitTestsCmd.label;"
oncommand="EditorUnitTests()"/>
<menuseparator />
<menuitem label="&dumpUndoStack.label;"
oncommand="DumpUndoStack()"/>
<menuitem label="&dumpRedoStack.label;"
oncommand="DumpRedoStack()"/>
<menuitem label="&executeJSTransactionViaTxmgr.label;"
oncommand="ExecuteJSTransactionViaTxmgr()"/>
<menuitem label="&executeJSTransactionViaEditor.label;"
oncommand="ExecuteJSTransactionViaEditor()"/>
<menuseparator />
<menuitem label="&startLogCmd.label;"
oncommand="EditorStartLog()"/>
<menuitem label="&stopLogCmd.label;"
oncommand="EditorStopLog()"/>
<menuitem label="&runLogCmd.label;"
oncommand="EditorRunLog()"/>
<menuseparator />
<menuitem label="&setFocusCmd.label;"
accesskey="&toolsetfocus.accesskey;"
oncommand="window.focus()"/>
</menupopup>
</menu>
<!-- end DEBUG only -->
</overlay>

Просмотреть файл

@ -14,16 +14,12 @@ comm.jar:
* content/editor-region/contents.rdf (composer/content/contents-region.rdf)
#endif
content/editor/editor.xul (composer/content/editor.xul)
content/editor/TextEditorAppShell.xul (composer/content/TextEditorAppShell.xul)
content/editor/editor.js (composer/content/editor.js)
content/editor/publishprefs.js (composer/content/publishprefs.js)
content/editor/editorUtilities.js (composer/content/editorUtilities.js)
content/editor/ComposerCommands.js (composer/content/ComposerCommands.js)
content/editor/EditorCommandsDebug.js (composer/content/EditorCommandsDebug.js)
content/editor/EditorContextMenu.js (composer/content/EditorContextMenu.js)
content/editor/EditorContextMenuOverlay.xul (composer/content/EditorContextMenuOverlay.xul)
content/editor/EditorInitPage.html (composer/content/EditorInitPage.html)
content/editor/EditorInitPagePlain.html (composer/content/EditorInitPagePlain.html)
content/editor/EditorExtra.css (composer/content/EditorExtra.css)
content/editor/EditorAllTags.css (composer/content/EditorAllTags.css)
content/editor/EditorParagraphMarks.css (composer/content/EditorParagraphMarks.css)

Просмотреть файл

@ -39,7 +39,6 @@
<!-- LOCALIZATION NOTE (editorWindow.titlemodifier): DONT_TRANSLATE -->
<!ENTITY editorWindow.titlemodifier "Composer">
<!ENTITY editorWindow.titlemodifiermenuseparator " - ">
<!ENTITY textEditorWindow.titlemodifier "Text Editor">
<!-- Menu items: the . means that the menu item isn't implemented yet -->

Просмотреть файл

@ -486,28 +486,6 @@
<!ENTITY toolplaineditor.accesskey "p">
<!ENTITY toolsetfocus.accesskey "f">
<!-- Debug menu items -->
<!ENTITY debugMenu.label "Debug">
<!ENTITY newEditorTestPage.label "Composer with Test Page">
<!ENTITY textEditorCmd.label "Plaintext Editor">
<!ENTITY outputTextCmd.label "Output Text">
<!ENTITY outputHTMLCmd.label "Output HTML">
<!ENTITY insertTextCmd.label "Insert Text">
<!ENTITY testSelectionCmd.label "Test Selection">
<!ENTITY testTableLayoutCmd.label "Test Table Layout">
<!ENTITY testDocumentCmd.label "Test Document">
<!ENTITY showEmbeddedCmd.label "Show Embedded Objects">
<!ENTITY dumpContentCmd.label "Dump Content Tree">
<!ENTITY runUnitTestsCmd.label "Run Unit Tests">
<!ENTITY dumpUndoStack.label "Dump Undo Stack">
<!ENTITY dumpRedoStack.label "Dump Redo Stack">
<!ENTITY executeJSTransactionViaTxmgr.label "Execute JS Transaction Via Transaction Manager">
<!ENTITY executeJSTransactionViaEditor.label "Execute JS Transaction Via Editor">
<!ENTITY startLogCmd.label "Start Log">
<!ENTITY stopLogCmd.label "Stop Log">
<!ENTITY runLogCmd.label "Run Log">
<!ENTITY setFocusCmd.label "Set Focus">
<!-- Toolbar-only items -->
<!ENTITY menuBar.tooltip "Menu Bar">
<!ENTITY compositionToolbar.tooltip "Composition Toolbar">