mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
localizable strings pulled out into entities
This commit is contained in:
parent
9948bbbe05
commit
a39971f094
@ -14,13 +14,35 @@
|
||||
|
||||
<!-- File menu items -->
|
||||
<!ENTITY fileMenu.label "File">
|
||||
<!ENTITY newCmd.label ".New Window">
|
||||
<!ENTITY newCmd.label "New">
|
||||
<!ENTITY openCmd.label "Open...">
|
||||
<!ENTITY closeCmd.label "Close">
|
||||
<!ENTITY saveCmd.label "Save">
|
||||
<!ENTITY saveAsCmd.label "Save As...">
|
||||
<!ENTITY printSetupCmd.label ".Print Setup...">
|
||||
<!ENTITY printPreviewCmd.label "Print Preview">
|
||||
<!ENTITY printCmd.label "Print...">
|
||||
<!ENTITY quitCmd.label "Quit">
|
||||
|
||||
<!-- Toolbar items -->
|
||||
<!ENTITY formatToolbar.boldChar "B">
|
||||
<!ENTITY formatToolbar.italicChar "I">
|
||||
<!ENTITY formatToolbar.underlineChar "U">
|
||||
<!-- Edit menu items -->
|
||||
<!ENTITY editMenu.label "Edit">
|
||||
<!ENTITY undoCmd.label "Undo">
|
||||
<!ENTITY redoCmd.label "Redo">
|
||||
<!ENTITY cutCmd.label "Cut">
|
||||
<!ENTITY copyCmd.label "Copy">
|
||||
<!ENTITY pasteCmd.label "Paste">
|
||||
<!ENTITY pasteAsQuotationCmd.label "Paste">
|
||||
<!ENTITY clearCmd.label ".Clear">
|
||||
<!ENTITY selectAllCmd.label "Select All">
|
||||
<!ENTITY findCmd.label "Find...">
|
||||
<!ENTITY findAgainCmd.label "Find Again">
|
||||
|
||||
<!-- View menu items -->
|
||||
<!ENTITY viewMenu.label "View">
|
||||
<!ENTITY hideCompositionToolbarCmd.label ".Hide Composition Toolbar">
|
||||
<!ENTITY showCompositionToolbarCmd.label ".Show Composition Toolbar">
|
||||
<!ENTITY hideFormattingToolbarCmd.label ".Hide Format Toolbar">
|
||||
<!ENTITY showFormattingToolbarCmd.label ".Show Format Toolbar">
|
||||
|
||||
<!ENTITY dcharMenu.label "Character Set">
|
||||
<!ENTITY dcharIso1Cmd.label "ISO Latin 1 (ISO-8859-1)">
|
||||
@ -72,11 +94,163 @@
|
||||
<!ENTITY dcharIso8Cmd.label ".ISO Hebrew (ISO-8859-8)">
|
||||
<!ENTITY dcharCp1255Cmd.label "Windows Hebrew (windows-1255)">
|
||||
<!ENTITY dcharCp1256Cmd.label "Windows Arabic (windows-1256)">
|
||||
|
||||
<!-- Insert menu items -->
|
||||
<!ENTITY insertMenu.label "Insert">
|
||||
<!ENTITY insertLinkCmd.label "Link...">
|
||||
<!ENTITY insertTargetCmd.label ".Target...">
|
||||
<!ENTITY insertImageCmd.label "Image...">
|
||||
<!ENTITY insertHLineCmd.label "Horizontal Line">
|
||||
<!ENTITY insertTableCmd.label "Table...">
|
||||
<!ENTITY insertHTMLSourceCmd.label "HTML Source...">
|
||||
<!ENTITY insertLineBreakCmd.label ".Line Break">
|
||||
<!ENTITY insertBreakBelowImagesCmd.label ".Break Below Image(s)">
|
||||
|
||||
<!-- Format menu items -->
|
||||
<!ENTITY formatMenu.label "Format">
|
||||
|
||||
<!ENTITY fontfaceMenu.label "Font Face">
|
||||
<!ENTITY defaultVariableWidthCmd.label "Default Variable Width">
|
||||
<!ENTITY defaultFixedWidthCmd.label "Default Fixed Width">
|
||||
<!ENTITY arialHelveticaFont.label "Arial, Helvetica">
|
||||
<!ENTITY timesFont.label "Times">
|
||||
<!ENTITY courierFont.label "Courier">
|
||||
|
||||
<!ENTITY fontsizeMenu.label "Size">
|
||||
<!ENTITY sizeMinusTwoCmd.label " -2">
|
||||
<!ENTITY sizeMinusOneCmd.label " -1 (smaller)">
|
||||
<!ENTITY sizeNormalCmd.label " Normal">
|
||||
<!ENTITY sizePlusOneCmd.label " +1 (bigger)">
|
||||
<!ENTITY sizePlusTwoCmd.label " +2">
|
||||
<!ENTITY sizePlusThreeCmd.label " +3">
|
||||
<!ENTITY sizePlusFourCmd.label " +4">
|
||||
|
||||
<!ENTITY fontStyleMenu.label "Style">
|
||||
<!ENTITY styleBoldCmd.label "Bold">
|
||||
<!ENTITY styleItalicCmd.label "Italic">
|
||||
<!ENTITY styleUnderlineCmd.label "Underline">
|
||||
<!ENTITY styleStrikeThruCmd.label "Strikethrough">
|
||||
<!ENTITY styleSuperscriptCmd.label "Superscript">
|
||||
<!ENTITY styleSubscriptCmd.label "Subscript">
|
||||
<!ENTITY styleBlinkCmd.label "Blink">
|
||||
<!ENTITY styleNonbreakingCmd.label "Nonbreaking">
|
||||
|
||||
<!ENTITY fontColorMenu.label "Text Color">
|
||||
<!ENTITY colorBlackCmd.label "Black">
|
||||
<!ENTITY colorGrayCmd.label "Gray">
|
||||
<!ENTITY colorSilverCmd.label "Silver">
|
||||
<!ENTITY colorWhiteCmd.label "White">
|
||||
<!ENTITY colorRedCmd.label "Red">
|
||||
<!ENTITY colorBlueCmd.label "Blue">
|
||||
<!ENTITY colorGreenCmd.label "Green">
|
||||
<!ENTITY colorCyanCmd.label "Cyan">
|
||||
<!ENTITY colorYellowCmd.label "Yellow">
|
||||
<!ENTITY colorMagentaCmd.label "Magenta">
|
||||
|
||||
<!ENTITY backgroundColorMenu.label "Background Color">
|
||||
<!ENTITY removeAllStylesCmd.label "Remove All Style(s)">
|
||||
<!ENTITY removeLinksCmd.label "Remove Link(s)">
|
||||
|
||||
<!ENTITY headingMenu.label "Heading">
|
||||
<!ENTITY headingNormalCmd.label "Normal">
|
||||
<!ENTITY headingOneCmd.label "Heading 1">
|
||||
<!ENTITY headingTwoCmd.label "Heading 2">
|
||||
<!ENTITY headingThreeCmd.label "Heading 3">
|
||||
<!ENTITY headingFourCmd.label "Heading 4">
|
||||
<!ENTITY headingFiveCmd.label "Heading 5">
|
||||
<!ENTITY headingSixCmd.label "Heading 6">
|
||||
|
||||
<!ENTITY paragraphMenu.label "Paragraph">
|
||||
<!ENTITY paragraphNormalCmd.label "Normal">
|
||||
<!ENTITY paragraphBlockquoteCmd.label "Blockquote">
|
||||
<!ENTITY paragraphAddressCmd.label "Address">
|
||||
<!ENTITY paragraphPreformatCmd.label "Preformat">
|
||||
<!ENTITY paragraphListCmd.label "List item">
|
||||
<!ENTITY paragraphDfnTermCmd.label "Definition term">
|
||||
<!ENTITY paragraphDfnDescCmd.label "Definition description">
|
||||
|
||||
<!ENTITY stylesheetMenu.label "Apply Style Sheet">
|
||||
<!ENTITY stylesheetEditorOneCmd.label "Editor Styles 1">
|
||||
<!ENTITY stylesheetOldstyleCmd.label "Oldstyle">
|
||||
<!ENTITY stylesheetModernistCmd.label "Modernist">
|
||||
<!ENTITY stylesheetMidnightCmd.label "Midnight">
|
||||
<!ENTITY stylesheetUltramarineCmd.label "Ultramarine">
|
||||
<!ENTITY stylesheetChocolateCmd.label "Chocolate">
|
||||
<!ENTITY stylesheetSteelyCmd.label "Steely">
|
||||
|
||||
<!ENTITY toolsMenu.label "Tools">
|
||||
<!ENTITY newBrowserCmd.label "New Browser Window">
|
||||
<!ENTITY newPlaintextEditorCmd.label "New Plaintext Editor">
|
||||
<!ENTITY checkSpellingCmd.label "Check Spelling...">
|
||||
<!ENTITY setFocusCmd.label "Set Focus">
|
||||
|
||||
<!ENTITY debugMenu.label "Debug">
|
||||
<!ENTITY outputTextCmd.label "Output Text">
|
||||
<!ENTITY outputHTMLCmd.label "Output HTML">
|
||||
<!ENTITY insertTextCmd.label "Insert Text">
|
||||
<!ENTITY testSelectionCmd.label "Test Selection">
|
||||
<!ENTITY testDocumentCmd.label "Test Document">
|
||||
<!ENTITY runUnitTestsCmd.label "Run Unit Tests">
|
||||
<!ENTITY startLogCmd.label "Start Log">
|
||||
<!ENTITY stopLogCmd.label "Stop Log">
|
||||
<!ENTITY runLogCmd.label "Run Log">
|
||||
|
||||
<!ENTITY helpMenu.label "Help">
|
||||
<!ENTITY aboutCmd.label ".About">
|
||||
|
||||
<!-- Toolbar items -->
|
||||
<!-- composition toolbar -->
|
||||
<!ENTITY newToolbarCmd.label "New">
|
||||
<!ENTITY openToolbarCmd.label "Open">
|
||||
<!ENTITY saveToolbarCmd.label "Save">
|
||||
<!ENTITY publishToolbarCmd.label "Publish">
|
||||
<!ENTITY previewToolbarCmd.label "Preview">
|
||||
<!ENTITY printToolbarCmd.label "Print">
|
||||
<!ENTITY findToolbarCmd.label "Find">
|
||||
<!ENTITY linkToolbarCmd.label "Link">
|
||||
<!ENTITY imageToolbarCmd.label "Image">
|
||||
<!ENTITY anchorToolbarCmd.label "Anchor">
|
||||
<!ENTITY hruleToolbarCmd.label "H.Line">
|
||||
<!ENTITY tableToolbarCmd.label "Table">
|
||||
<!ENTITY spellToolbarCmd.label "Spell">
|
||||
<!ENTITY newEditorIcon.url "chrome://editor/skin/images/ED_NewFile.gif">
|
||||
<!ENTITY openEditorIcon.url "chrome://editor/skin/images/ED_OpenFile.gif">
|
||||
<!ENTITY saveIcon.url "chrome://editor/skin/images/ED_SaveFile.gif">
|
||||
<!ENTITY publishIcon.url "chrome://editor/skin/images/ED_Publish.gif">
|
||||
<!ENTITY previewIcon.url "chrome://editor/skin/images/ED_Preview.gif">
|
||||
<!ENTITY printIcon.url "chrome://editor/skin/images/ED_Print.gif">
|
||||
<!ENTITY findIcon.url "chrome://editor/skin/images/ED_Find.gif">
|
||||
<!ENTITY linkIcon.url "chrome://editor/skin/images/ED_Link.gif">
|
||||
<!ENTITY imageIcon.url "chrome://editor/skin/images/ED_Image.gif">
|
||||
<!ENTITY targetIcon.url "chrome://editor/skin/images/ED_Target.gif">
|
||||
<!ENTITY hlineIcon.url "chrome://editor/skin/images/ED_HLine.gif">
|
||||
<!ENTITY tableIcon.url "chrome://editor/skin/images/ED_Table.gif">
|
||||
<!ENTITY spellingIcon.url "chrome://editor/skin/images/ED_Spell.gif">
|
||||
|
||||
<!-- formatting toolbar -->
|
||||
<!ENTITY paragraphToolbarMenu.label "Paragraph">
|
||||
<!ENTITY fontToolbarMenu.label "Font">
|
||||
<!ENTITY sizeToolbarMenu.label "Size">
|
||||
<!ENTITY formatToolbar.boldChar "B">
|
||||
<!ENTITY formatToolbar.italicChar "I">
|
||||
<!ENTITY formatToolbar.underlineChar "U">
|
||||
<!ENTITY bulletListIcon.url "chrome://editor/skin/images/ED_Bullets.gif">
|
||||
<!ENTITY numberListIcon.url "chrome://editor/skin/images/ED_Numbers.gif">
|
||||
<!ENTITY outdentIcon.url "chrome://editor/skin/images/ED_Outdent.gif">
|
||||
<!ENTITY indentIcon.url "chrome://editor/skin/images/ED_Indent.gif">
|
||||
<!ENTITY alignpopupIcon.url "chrome://editor/skin/images/ED_Align.gif">
|
||||
<!ENTITY alignLeft.label "Left">
|
||||
<!ENTITY alignCenter.label "Center">
|
||||
<!ENTITY alignRight.label "Right">
|
||||
<!ENTITY alignJustify.label "Justify">
|
||||
|
||||
<!ENTITY tempNotification.label "[Notification Component]">
|
||||
<!ENTITY tempDoneLoading.label "Document: Done">
|
||||
]>
|
||||
|
||||
<window id="main-window" xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
onunload="EditorShutdown()" title="Editor" align="vertical"
|
||||
onunload="EditorShutdown()" title="AAAeditorWindow.titlesss" align="vertical"
|
||||
width="640" height="480">
|
||||
|
||||
<html:script language="JavaScript" src="chrome://editor/content/EditorCommands.js">
|
||||
@ -90,40 +264,40 @@
|
||||
<observes element="dialog.start" attribute="ready" onchange="EditorStartup('html')"/>
|
||||
|
||||
<menubar>
|
||||
<menu name="File">
|
||||
<menuitem name="New" onclick="EditorNew()"/>
|
||||
<menuitem name="Open..." onclick="EditorOpen()"/>
|
||||
<menuitem name=".Close" onclick="EditorClose()"/>
|
||||
<menu name="&fileMenu.label;">
|
||||
<menuitem name="&newCmd.label;" onclick="EditorNew()"/>
|
||||
<menuitem name="&openCmd.label;" onclick="EditorOpen()"/>
|
||||
<menuitem name="&closeCmd.label;" onclick="EditorClose()"/>
|
||||
<separator />
|
||||
<menuitem name="Save" onclick="EditorSave()"/>
|
||||
<menuitem name="Save As..." onclick="EditorSaveAs()"/>
|
||||
<menuitem name="&saveCmd.label;" onclick="EditorSave()"/>
|
||||
<menuitem name="&saveAsCmd.label;" onclick="EditorSaveAs()"/>
|
||||
<separator />
|
||||
<menuitem name=".Print Setup..." onclick=""/>
|
||||
<menuitem name="Print Preview" onclick="EditorPrintPreview()"/>
|
||||
<menuitem name=".Print..." onclick="EditorPrint()"/>
|
||||
<menuitem name="&printSetupCmd.label;" onclick=""/>
|
||||
<menuitem name="&printPreviewCmd.label;" onclick="EditorPrintPreview()"/>
|
||||
<menuitem name="&printCmd.label;" onclick="EditorPrint()"/>
|
||||
<separator />
|
||||
<menuitem name="Quit" onclick="EditorExit()"/>
|
||||
<menuitem name="&quitCmd.label;" onclick="EditorExit()"/>
|
||||
</menu>
|
||||
|
||||
<menu name="Edit">
|
||||
<menuitem name="Undo" onclick="EditorUndo()"/>
|
||||
<menuitem name="Redo" onclick="EditorRedo()"/>
|
||||
<menu name="&editMenu.label;">
|
||||
<menuitem name="&undoCmd.label;" onclick="EditorUndo()"/>
|
||||
<menuitem name="&redoCmd.label;" onclick="EditorRedo()"/>
|
||||
<separator />
|
||||
<menuitem name="Cut" onclick="EditorCut()"/>
|
||||
<menuitem name="Copy" onclick="EditorCopy()"/>
|
||||
<menuitem name="Paste" onclick="EditorPaste()"/>
|
||||
<menuitem name="Paste as Quotation" onclick="EditorPasteAsQuotation()"/>
|
||||
<menuitem name=".Clear" onclick=""/>
|
||||
<menuitem name="&cutCmd.label;" onclick="EditorCut()"/>
|
||||
<menuitem name="©Cmd.label;" onclick="EditorCopy()"/>
|
||||
<menuitem name="&pasteCmd.label;" onclick="EditorPaste()"/>
|
||||
<menuitem name="&pasteAsQuotationCmd.label;" onclick="EditorPasteAsQuotation()"/>
|
||||
<menuitem name="&clearCmd.label;" onclick=""/>
|
||||
<separator />
|
||||
<menuitem name="Select All" onclick="EditorSelectAll()"/>
|
||||
<menuitem name="&selectAllCmd.label;" onclick="EditorSelectAll()"/>
|
||||
<separator />
|
||||
<menuitem name="Find..." onclick="EditorFind()"/>
|
||||
<menuitem name="Find Again" onclick="EditorFindNext()"/>
|
||||
<menuitem name="&findCmd.label;" onclick="EditorFind()"/>
|
||||
<menuitem name="&findAgainCmd.label;" onclick="EditorFindNext()"/>
|
||||
</menu>
|
||||
|
||||
<menu name="View">
|
||||
<menuitem name=".Hide Composition Toolbar" onclick=""/>
|
||||
<menuitem name=".Hide Format Toolbar" onclick="" />
|
||||
<menu name="&viewMenu.label;">
|
||||
<menuitem name="&hideCompositionToolbarCmd.label;" onclick=""/>
|
||||
<menuitem name="&hideFormattingToolbarCmd.label;" onclick="" />
|
||||
<separator />
|
||||
<menu name="&dcharMenu.label;">
|
||||
<menuitem name="&dcharIso1Cmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-8859-1');"/>
|
||||
@ -165,7 +339,7 @@
|
||||
<menuitem name="&dcharDosCyrCmd.label;" onclick="EditorSetDocumentCharacterSet('IBM866');"/>
|
||||
<menuitem name="&dcharMacCyrCmd.label;" onclick="EditorSetDocumentCharacterSet('x-mac-cyrillic');"/>
|
||||
<menuitem name="&dcharMacUkrCmd.label;" onclick="EditorSetDocumentCharacterSet('x-mac-ukrainian');"/>
|
||||
<menuitem name="&dcharRusCmd.label; " onclick="EditorSetDocumentCharacterSet('KOI8-R');"/>
|
||||
<menuitem name="&dcharRusCmd.label;" onclick="EditorSetDocumentCharacterSet('KOI8-R');"/>
|
||||
<menuitem name="&dcharUkrCmd.label;" onclick="EditorSetDocumentCharacterSet('KOI8-U');"/>
|
||||
<separator />
|
||||
<menuitem name="&dcharIsoGreekCmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-8859-7');"/>
|
||||
@ -189,128 +363,126 @@
|
||||
</menu>
|
||||
</menu>
|
||||
|
||||
<menu name="Insert">
|
||||
<menuitem name="Link..." onclick="EditorInsertLink()"/>
|
||||
<menuitem name=".Target..." onclick=""/>
|
||||
<menuitem name="Image..." onclick="EditorInsertImage()"/>
|
||||
<menuitem name="Horizontal Line" onclick="EditorInsertHLine()"/>
|
||||
<menuitem name="Table" onclick="EditorInsertTable()"/>
|
||||
<menuitem name="HTML Source" onclick="EditorInsertHTML()"/>
|
||||
<menu name="&insertMenu.label;">
|
||||
<menuitem name="&insertLinkCmd.label;" onclick="EditorInsertLink()"/>
|
||||
<menuitem name="&insertTargetCmd.label;" onclick=""/>
|
||||
<menuitem name="&insertImageCmd.label;" onclick="EditorInsertImage()"/>
|
||||
<menuitem name="&insertHLineCmd.label;" onclick="EditorInsertHLine()"/>
|
||||
<menuitem name="&insertTableCmd.label;" onclick="EditorInsertTable()"/>
|
||||
<menuitem name="&insertHTMLSourceCmd.label;" onclick="EditorInsertHTML()"/>
|
||||
<separator />
|
||||
<menuitem name=".Line Break" onclick=""/>
|
||||
<menuitem name=".Break Below Image(s)" onclick=""/>
|
||||
<menuitem name="&insertLineBreakCmd.label;" onclick=""/>
|
||||
<menuitem name="&insertBreakBelowImagesCmd.label;" onclick=""/>
|
||||
</menu>
|
||||
<menu name="Format">
|
||||
<menu name="Font Face">
|
||||
<menuitem name="Default Variable Width" onclick="EditorSetFontFace('')"/>
|
||||
<menuitem name="Default Fixed Width" onclick="EditorSetFontFace('tt')"/>
|
||||
<menu name="&formatMenu.label;">
|
||||
<menu name="&fontfaceMenu.label;">
|
||||
<menuitem name="&defaultVariableWidthCmd.label;" onclick="EditorSetFontFace('')"/>
|
||||
<menuitem name="&defaultFixedWidthCmd.label;" onclick="EditorSetFontFace('tt')"/>
|
||||
<separator/>
|
||||
<menuitem name="Arial, Helvetica" onclick="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
|
||||
<menuitem name="Times" onclick="EditorSetFontFace('Times New Roman, Times, serif')"/>
|
||||
<menuitem name="Courier" onclick="EditorSetFontFace('Courier New, Courier, mono')"/>
|
||||
<menuitem name="&arialHelveticaFont.label;" onclick="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
|
||||
<menuitem name="×Font.label;" onclick="EditorSetFontFace('Times New Roman, Times, serif')"/>
|
||||
<menuitem name="&courierFont.label;" onclick="EditorSetFontFace('Courier New, Courier, mono')"/>
|
||||
</menu>
|
||||
<menu name="Size">
|
||||
<menuitem name="-4" onclick="EditorSetFontSize('-4')"/>
|
||||
<menuitem name="-3" onclick="EditorSetFontSize('-3')"/>
|
||||
<menuitem name="-2" onclick="EditorSetFontSize('-2')"/>
|
||||
<menuitem name="-1 (smaller)" onclick="EditorSetFontSize('-1')"/>
|
||||
<menuitem name="Normal" onclick="EditorSetFontSize('0')"/>
|
||||
<menuitem name="+1 (bigger)" onclick="EditorSetFontSize('+1')"/>
|
||||
<menuitem name="+2" onclick="EditorSetFontSize('+2')"/>
|
||||
<menuitem name="+3" onclick="EditorSetFontSize('+3')"/>
|
||||
<menuitem name="+4" onclick="EditorSetFontSize('+4')"/>
|
||||
<menu name="&fontsizeMenu.label;">
|
||||
<menuitem name="&sizeMinusTwoCmd.label;" onclick="EditorSetFontSize('-2')"/>
|
||||
<menuitem name="&sizeMinusOneCmd.label;" onclick="EditorSetFontSize('-1')"/>
|
||||
<menuitem name="&sizeNormalCmd.label;" onclick="EditorSetFontSize('0')"/>
|
||||
<menuitem name="&sizePlusOneCmd.label;" onclick="EditorSetFontSize('+1')"/>
|
||||
<menuitem name="&sizePlusTwoCmd.label;" onclick="EditorSetFontSize('+2')"/>
|
||||
<menuitem name="&sizePlusThreeCmd.label;" onclick="EditorSetFontSize('+3')"/>
|
||||
<menuitem name="&sizePlusFourCmd.label;" onclick="EditorSetFontSize('+4')"/>
|
||||
</menu>
|
||||
<menu name="Style">
|
||||
<menuitem name="Bold" onclick="EditorApplyStyle('b')"/>
|
||||
<menuitem name="Italic" onclick="EditorApplyStyle('i')"/>
|
||||
<menuitem name="Underline" onclick="EditorApplyStyle('u')"/>
|
||||
<menuitem name="Strikethrough" onclick="EditorApplyStyle('strike')"/>
|
||||
<menuitem name="Superscript" onclick="EditorApplyStyle('sup')"/>
|
||||
<menuitem name="Subscript" onclick="EditorApplyStyle('sub')"/>
|
||||
<menuitem name="Blink" onclick="EditorApplyStyle('blink')"/>
|
||||
<menuitem name="Nonbreaking" onclick="EditorApplyStyle('nobr')"/>
|
||||
<menu name="&fontStyleMenu.label;">
|
||||
<menuitem name="&styleBoldCmd.label;" onclick="EditorApplyStyle('b')"/>
|
||||
<menuitem name="&styleItalicCmd.label;" onclick="EditorApplyStyle('i')"/>
|
||||
<menuitem name="&styleUnderlineCmd.label;" onclick="EditorApplyStyle('u')"/>
|
||||
<menuitem name="&styleStrikeThruCmd.label;" onclick="EditorApplyStyle('strike')"/>
|
||||
<menuitem name="&styleSuperscriptCmd.label;" onclick="EditorApplyStyle('sup')"/>
|
||||
<menuitem name="&styleSubscriptCmd.label;" onclick="EditorApplyStyle('sub')"/>
|
||||
<menuitem name="&styleBlinkCmd.label;" onclick="EditorApplyStyle('blink')"/>
|
||||
<menuitem name="&styleNonbreakingCmd.label;" onclick="EditorApplyStyle('nobr')"/>
|
||||
</menu>
|
||||
<menu name="Text Color">
|
||||
<menuitem name="Black" onclick="EditorSetFontColor('black')"/>
|
||||
<menuitem name="Gray" onclick="EditorSetFontColor('gray')"/>
|
||||
<menuitem name="Silver" onclick="EditorSetFontColor('silver')"/>
|
||||
<menuitem name="White" onclick="EditorSetFontColor('white')"/>
|
||||
<menuitem name="Red" onclick="EditorSetFontColor('red')"/>
|
||||
<menuitem name="Blue" onclick="EditorSetFontColor('blue')"/>
|
||||
<menuitem name="Green" onclick="EditorSetFontColor('green')"/>
|
||||
<menuitem name="Cyan" onclick="EditorSetFontColor('cyan')"/>
|
||||
<menuitem name="Yellow" onclick="EditorSetFontColor('yellow')"/>
|
||||
<menuitem name="Magenta" onclick="EditorSetFontColor('magenta')"/>
|
||||
<menu name="&fontColorMenu.label;">
|
||||
<menuitem name="&colorBlackCmd.label;" onclick="EditorSetFontColor('black')"/>
|
||||
<menuitem name="&colorGrayCmd.label;" onclick="EditorSetFontColor('gray')"/>
|
||||
<menuitem name="&colorSilverCmd.label;" onclick="EditorSetFontColor('silver')"/>
|
||||
<menuitem name="&colorWhiteCmd.label;" onclick="EditorSetFontColor('white')"/>
|
||||
<menuitem name="&colorRedCmd.label;" onclick="EditorSetFontColor('red')"/>
|
||||
<menuitem name="&colorBlueCmd.label;" onclick="EditorSetFontColor('blue')"/>
|
||||
<menuitem name="&colorGreenCmd.label;" onclick="EditorSetFontColor('green')"/>
|
||||
<menuitem name="&colorCyanCmd.label;" onclick="EditorSetFontColor('cyan')"/>
|
||||
<menuitem name="&colorYellowCmd.label;" onclick="EditorSetFontColor('yellow')"/>
|
||||
<menuitem name="&colorMagentaCmd.label;" onclick="EditorSetFontColor('magenta')"/>
|
||||
</menu>
|
||||
<menu name="Background Color">
|
||||
<menuitem name="Black" onclick="EditorSetBackgroundColor('black')"/>
|
||||
<menuitem name="Gray" onclick="EditorSetBackgroundColor('gray')"/>
|
||||
<menuitem name="Silver" onclick="EditorSetBackgroundColor('silver')"/>
|
||||
<menuitem name="White" onclick="EditorSetBackgroundColor('white')"/>
|
||||
<menuitem name="Red" onclick="EditorSetBackgroundColor('red')"/>
|
||||
<menuitem name="Blue" onclick="EditorSetBackgroundColor('blue')"/>
|
||||
<menuitem name="Green" onclick="EditorSetBackgroundColor('green')"/>
|
||||
<menuitem name="Cyan" onclick="EditorSetBackgroundColor('cyan')"/>
|
||||
<menuitem name="Yellow" onclick="EditorSetBackgroundColor('yellow')"/>
|
||||
<menuitem name="Magenta" onclick="EditorSetBackgroundColor('magenta')"/>
|
||||
<menu name="&backgroundColorMenu.label;">
|
||||
<menuitem name="&colorBlackCmd.label;" onclick="EditorSetBackgroundColor('black')"/>
|
||||
<menuitem name="&colorGrayCmd.label;" onclick="EditorSetBackgroundColor('gray')"/>
|
||||
<menuitem name="&colorSilverCmd.label;" onclick="EditorSetBackgroundColor('silver')"/>
|
||||
<menuitem name="&colorWhiteCmd.label;" onclick="EditorSetBackgroundColor('white')"/>
|
||||
<menuitem name="&colorRedCmd.label;" onclick="EditorSetBackgroundColor('red')"/>
|
||||
<menuitem name="&colorBlueCmd.label;" onclick="EditorSetBackgroundColor('blue')"/>
|
||||
<menuitem name="&colorGreenCmd.label;" onclick="EditorSetBackgroundColor('green')"/>
|
||||
<menuitem name="&colorCyanCmd.label;" onclick="EditorSetBackgroundColor('cyan')"/>
|
||||
<menuitem name="&colorYellowCmd.label;" onclick="EditorSetBackgroundColor('yellow')"/>
|
||||
<menuitem name="&colorMagentaCmd.label;" onclick="EditorSetBackgroundColor('magenta')"/>
|
||||
</menu>
|
||||
<menuitem name="Remove All Style(s)" onclick="EditorRemoveStyle('all')"/>
|
||||
<menuitem name="Remove Link(s)" onclick="EditorRemoveLinks()"/>
|
||||
<menuitem name="&removeAllStylesCmd.label;" onclick="EditorRemoveStyle('all')"/>
|
||||
<menuitem name="&removeLinksCmd.label;" onclick="EditorRemoveLinks()"/>
|
||||
<separator />
|
||||
<menu name="Heading">
|
||||
<menuitem name="Normal" onclick="EditorSetParagraphFormat('normal')"/>
|
||||
<menuitem name="Heading 1" onclick="EditorSetParagraphFormat('h1')"/>
|
||||
<menuitem name="Heading 2" onclick="EditorSetParagraphFormat('h2')"/>
|
||||
<menuitem name="Heading 3" onclick="EditorSetParagraphFormat('h3')"/>
|
||||
<menuitem name="Heading 4" onclick="EditorSetParagraphFormat('h4')"/>
|
||||
<menuitem name="Heading 5" onclick="EditorSetParagraphFormat('h5')"/>
|
||||
<menuitem name="Heading 6" onclick="EditorSetParagraphFormat('h6')"/>
|
||||
<menu name="&headingMenu.label;">
|
||||
<menuitem name="&headingNormalCmd.label;" onclick="EditorSetParagraphFormat('normal')"/>
|
||||
<menuitem name="&headingOneCmd.label;" onclick="EditorSetParagraphFormat('h1')"/>
|
||||
<menuitem name="&headingTwoCmd.label;" onclick="EditorSetParagraphFormat('h2')"/>
|
||||
<menuitem name="&headingThreeCmd.label;" onclick="EditorSetParagraphFormat('h3')"/>
|
||||
<menuitem name="&headingFourCmd.label;" onclick="EditorSetParagraphFormat('h4')"/>
|
||||
<menuitem name="&headingFiveCmd.label;" onclick="EditorSetParagraphFormat('h5')"/>
|
||||
<menuitem name="&headingSixCmd.label;" onclick="EditorSetParagraphFormat('h6')"/>
|
||||
</menu>
|
||||
<menu name="Paragraph">
|
||||
<menuitem name="Normal" onclick="EditorSetParagraphFormat('normal')"/>
|
||||
<menuitem name="Blockquote" onclick="EditorSetParagraphFormat('blockquote')"/>
|
||||
<menuitem name="Address" onclick="EditorSetParagraphFormat('address')"/>
|
||||
<menuitem name="Preformat" onclick="EditorSetParagraphFormat('pre')"/>
|
||||
<menuitem name="List item" onclick="EditorSetParagraphFormat('li')"/>
|
||||
<menuitem name="Definition term" onclick="EditorSetParagraphFormat('dt')"/>
|
||||
<menuitem name="Definition description" onclick="EditorSetParagraphFormat('dd')"/>
|
||||
<menu name="¶graphMenu.label;">
|
||||
<menuitem name="¶graphNormalCmd.label;" onclick="EditorSetParagraphFormat('normal')"/>
|
||||
<menuitem name="¶graphBlockquoteCmd.label;" onclick="EditorSetParagraphFormat('blockquote')"/>
|
||||
<menuitem name="¶graphAddressCmd.label;" onclick="EditorSetParagraphFormat('address')"/>
|
||||
<menuitem name="¶graphPreformatCmd.label;" onclick="EditorSetParagraphFormat('pre')"/>
|
||||
<menuitem name="¶graphListCmd.label;" onclick="EditorSetParagraphFormat('li')"/>
|
||||
<menuitem name="¶graphDfnTermCmd.label;" onclick="EditorSetParagraphFormat('dt')"/>
|
||||
<menuitem name="¶graphDfnDescCmd.label;" onclick="EditorSetParagraphFormat('dd')"/>
|
||||
</menu>
|
||||
<separator />
|
||||
<menu name="Apply Style Sheet">
|
||||
<menuitem name="Editor Styles 1" onclick="EditorApplyStyleSheet('chrome://editor/content/EditorStyles1.css')"/>
|
||||
<menu name="&stylesheetMenu.label;">
|
||||
<menuitem name="&stylesheetEditorOneCmd.label;" onclick="EditorApplyStyleSheet('chrome://editor/content/EditorStyles1.css')"/>
|
||||
<separator />
|
||||
<menuitem name="Oldstyle" onclick="EditorApplyStyleSheet('http://www.w3.org/StyleSheets/Core/Oldstyle')"/>
|
||||
<menuitem name="Modernist" onclick="EditorApplyStyleSheet('http://www.w3.org/StyleSheets/Core/Modernist')"/>
|
||||
<menuitem name="Midnight" onclick="EditorApplyStyleSheet('http://www.w3.org/StyleSheets/Core/Midnight')"/>
|
||||
<menuitem name="Ultramarine" onclick="EditorApplyStyleSheet('http://www.w3.org/StyleSheets/Core/Ultramarine')"/>
|
||||
<menuitem name="Chocolate" onclick="EditorApplyStyleSheet('http://www.w3.org/StyleSheets/Core/Chocolate')"/>
|
||||
<menuitem name="Steely" onclick="EditorApplyStyleSheet('http://www.w3.org/StyleSheets/Core/Steely')"/>
|
||||
<menuitem name="&stylesheetOldstyleCmd.label;" onclick="EditorApplyStyleSheet('http://www.w3.org/StyleSheets/Core/Oldstyle')"/>
|
||||
<menuitem name="&stylesheetModernistCmd.label;" onclick="EditorApplyStyleSheet('http://www.w3.org/StyleSheets/Core/Modernist')"/>
|
||||
<menuitem name="&stylesheetMidnightCmd.label;" onclick="EditorApplyStyleSheet('http://www.w3.org/StyleSheets/Core/Midnight')"/>
|
||||
<menuitem name="&stylesheetUltramarineCmd.label;" onclick="EditorApplyStyleSheet('http://www.w3.org/StyleSheets/Core/Ultramarine')"/>
|
||||
<menuitem name="&stylesheetChocolateCmd.label;" onclick="EditorApplyStyleSheet('http://www.w3.org/StyleSheets/Core/Chocolate')"/>
|
||||
<menuitem name="&stylesheetSteelyCmd.label;" onclick="EditorApplyStyleSheet('http://www.w3.org/StyleSheets/Core/Steely')"/>
|
||||
</menu>
|
||||
|
||||
</menu>
|
||||
<menu name="Tools">
|
||||
<menuitem name="New Browser Window" onclick="EditorNewBrowser()"/>
|
||||
<menuitem name="New Plaintext Editor" onclick="EditorNewPlaintext()"/>
|
||||
<menu name="&toolsMenu.label;">
|
||||
<menuitem name="&newBrowserCmd.label;" onclick="EditorNewBrowser()"/>
|
||||
<menuitem name="&newPlaintextEditorCmd.label;" onclick="EditorNewPlaintext()"/>
|
||||
<separator />
|
||||
<menuitem name="Spell Check" onclick="CheckSpelling()"/>
|
||||
<menuitem name="Set Focus" onclick="window.focus()"/>
|
||||
<menuitem name="&checkSpellingCmd.label;" onclick="CheckSpelling()"/>
|
||||
<menuitem name="&setFocusCmd.label;" onclick="window.focus()"/>
|
||||
</menu>
|
||||
<menu name="Debug">
|
||||
<menuitem name="Output Text" onclick="EditorGetText()"/>
|
||||
<menuitem name="Output HTML" onclick="EditorGetHTML()"/>
|
||||
<menu name="&debugMenu.label;">
|
||||
<menuitem name="&outputTextCmd.label;" onclick="EditorGetText()"/>
|
||||
<menuitem name="&outputHTMLCmd.label;" onclick="EditorGetHTML()"/>
|
||||
<separator />
|
||||
<menuitem name="Insert Text" onclick="EditorInsertText()"/>
|
||||
<menuitem name="&insertTextCmd.label;" onclick="EditorInsertText('All good things come to those who wait. ')"/>
|
||||
<separator />
|
||||
<menuitem name="Test Selection" onclick="EditorTestSelection()"/>
|
||||
<menuitem name="Test Document" onclick="EditorTestDocument()"/>
|
||||
<menuitem name="Run Unit Tests" onclick="EditorUnitTests()"/>
|
||||
<menuitem name="&testSelectionCmd.label;" onclick="EditorTestSelection()"/>
|
||||
<menuitem name="&testDocumentCmd.label;" onclick="EditorTestDocument()"/>
|
||||
<menuitem name="&runUnitTestsCmd.label;" onclick="EditorUnitTests()"/>
|
||||
<separator />
|
||||
<menuitem name="Start Log" onclick="EditorStartLog()"/>
|
||||
<menuitem name="Stop Log" onclick="EditorStopLog()"/>
|
||||
<menuitem name="Run Log" onclick="EditorRunLog()"/>
|
||||
<menuitem name="&startLogCmd.label;" onclick="EditorStartLog()"/>
|
||||
<menuitem name="&stopLogCmd.label;" onclick="EditorStopLog()"/>
|
||||
<menuitem name="&runLogCmd.label;" onclick="EditorRunLog()"/>
|
||||
</menu>
|
||||
<menu name="Help">
|
||||
<menuitem name=".About" onclick=""/>
|
||||
<menu name="&helpMenu.label;">
|
||||
<menuitem name="&aboutCmd.label;" onclick=""/>
|
||||
</menu>
|
||||
</menubar>
|
||||
|
||||
@ -320,25 +492,25 @@
|
||||
|
||||
<toolbox id="EditorToolbars">
|
||||
<toolbar id="EditToolbar">
|
||||
<titledbutton src="chrome://editor/skin/images/ED_NewFile.gif" align="bottom" value="New" class="popup" onclick="EditorNew()"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_OpenFile.gif" align="bottom" value="Open" class="popup" onclick="EditorOpen()"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_SaveFile.gif" align="bottom" value="Save" class="popup" onclick="EditorSave()"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Publish.gif" align="bottom" value="Publish" class="popup"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Preview.gif" align="bottom" value="Preview" class="popup"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Print.gif" align="bottom" value="Print" class="popup"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Find.gif" align="bottom" value="Find" onclick="EditorFind()"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Link.gif" align="bottom" value="Link" onclick="EditorInsertLink()"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Image.gif" align="bottom" value="Image" onclick="EditorInsertImage()"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Target.gif" align="bottom" value="Anchor" onclick="EditorInsertNamedAnchor()"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_HLine.gif" align="bottom" value="H.Line" onclick="EditorInsertHLine()"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Table.gif" align="bottom" value="Table" onclick="EditorInsertTable()"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Spell.gif" align="bottom" value="Spell" onclick="CheckSpelling()"/>
|
||||
<titledbutton src="&newEditorIcon.url;" align="bottom" value="&newToolbarCmd.label;" class="popup" onclick="EditorNew()"/>
|
||||
<titledbutton src="&openEditorIcon.url;" align="bottom" value="&openToolbarCmd.label;" class="popup" onclick="EditorOpen()"/>
|
||||
<titledbutton src="&saveIcon.url;" align="bottom" value="&saveCmd.label;" class="popup" onclick="EditorSave()"/>
|
||||
<titledbutton src="&publishIcon.url;" align="bottom" value="&publishToolbarCmd.label;" class="popup"/>
|
||||
<titledbutton src="&previewIcon.url;" align="bottom" value="&previewToolbarCmd.label;" class="popup"/>
|
||||
<titledbutton src="&printIcon.url;" align="bottom" value="&printToolbarCmd.label;" class="popup"/>
|
||||
<titledbutton src="&findIcon.url;" align="bottom" value="&findToolbarCmd.label;" onclick="EditorFind()"/>
|
||||
<titledbutton src="&linkIcon.url;" align="bottom" value="&linkToolbarCmd.label;" onclick="EditorInsertLink()"/>
|
||||
<titledbutton src="&imageIcon.url;" align="bottom" value="&imageToolbarCmd.label;" onclick="EditorInsertImage()"/>
|
||||
<titledbutton src="&targetIcon.url;" align="bottom" value="&anchorToolbarCmd.label;" onclick="EditorInsertNamedAnchor()"/>
|
||||
<titledbutton src="&hlineIcon.url;" align="bottom" value="&hruleToolbarCmd.label;" onclick="EditorInsertHLine()"/>
|
||||
<titledbutton src="&tableIcon.url;" align="bottom" value="&tableToolbarCmd.label;" onclick="EditorInsertTable()"/>
|
||||
<titledbutton src="&spellingIcon.url;" align="bottom" value="&spellToolbarCmd.label;" onclick="CheckSpelling()"/>
|
||||
<spring flex="100%"/>
|
||||
</toolbar>
|
||||
<toolbar id="FormatToolbar">
|
||||
<titledbutton id="ParagraphPopup" value="Paragraph" class="popup" align="left" popup="ParagraphMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="FontFacePopup" value="Font" class="popup" align="left" popup="FontFaceMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="FontSizePopup" value="Size" class="popup" align="left" popup="FontSizeMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="ParagraphPopup" value="¶graphToolbarMenu.label;" class="popup" align="left" popup="ParagraphMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="FontFacePopup" value="&fontToolbarMenu.label;" class="popup" align="left" popup="FontFaceMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="FontSizePopup" value="&sizeToolbarMenu.label;" class="popup" align="left" popup="FontSizeMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="TextColorPopup" src="chrome://editor/skin/images/ED_TextColor.gif" class="popup" popup="TextColorMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="BackColorPopup" src="chrome://editor/skin/images/ED_BackColor.gif" class="popup" popup="BackColorMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="BoldButton" value="&formatToolbar.boldChar;" onclick="EditorApplyStyle('b')">
|
||||
@ -353,11 +525,11 @@
|
||||
<titledbutton id="ItalicButton" src="chrome://editor/skin/images/ED_Italic.gif" align="bottom" onclick="EditorApplyStyle('i')"/>
|
||||
<titledbutton id="UnderlineButton" src="chrome://editor/skin/images/ED_Underline.gif" align="bottom" onclick="EditorApplyStyle('u')"/>
|
||||
-->
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Bullets.gif" align="bottom" onclick="EditorInsertList('ul')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Numbers.gif" align="bottom" onclick="EditorInsertList('ol')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Outdent.gif" align="bottom" onclick="EditorIndent('outdent')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Indent.gif" align="bottom" onclick="EditorIndent('indent')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Align.gif" align="bottom" class="popup" popup="AlignmentWindow" popupanchor="bottomleft"/>
|
||||
<titledbutton src="&bulletListIcon.url;" align="bottom" onclick="EditorInsertList('ul')"/>
|
||||
<titledbutton src="&numberListIcon.url;" align="bottom" onclick="EditorInsertList('ol')"/>
|
||||
<titledbutton src="&outdentIcon.url;" align="bottom" onclick="EditorIndent('outdent')"/>
|
||||
<titledbutton src="&indentIcon.url;" align="bottom" onclick="EditorIndent('indent')"/>
|
||||
<titledbutton src="&alignpopupIcon.url;" align="bottom" class="popup" popup="AlignmentWindow" popupanchor="bottomleft"/>
|
||||
<spring flex="100%"/>
|
||||
</toolbar>
|
||||
</toolbox>
|
||||
@ -366,107 +538,96 @@
|
||||
|
||||
<!-- Ripped off from navigator.xul; this should be a XUL fragment! -->
|
||||
<box align="horizontal" id="EditorStatusBar">
|
||||
<titledbutton value="[Notification Component]" onclick="doTests()"/>
|
||||
<titledbutton value="&tempNotification.label;" onclick="doTests()"/>
|
||||
<box id="EditorProgressBox" align="vertical" flex="100%">
|
||||
<spring flex="100%"/>
|
||||
<progressmeter mode="normal" value="0">
|
||||
</progressmeter>
|
||||
<spring flex="100%"/>
|
||||
</box>
|
||||
<titledbutton id="statusText" align="right" flex="100%" value="Document: Done" style="font-family:sans-serif;font-size:2.5mm">
|
||||
<titledbutton id="statusText" align="right" flex="100%" value="&tempDoneLoading.label;" style="font-family:sans-serif;font-size:2.5mm">
|
||||
</titledbutton>
|
||||
</box>
|
||||
|
||||
<!-- Popup Menus and Windows - Not displayed in primary chrome -->
|
||||
<popup id="ParagraphMenu">
|
||||
<menu>
|
||||
<menuitem name="Normal" onclick="EditorSetParagraphFormat('normal')"/>
|
||||
<menuitem name="Heading 1" onclick="EditorSetParagraphFormat('h1')"/>
|
||||
<menuitem name="Heading 2" onclick="EditorSetParagraphFormat('h2')"/>
|
||||
<menuitem name="Heading 3" onclick="EditorSetParagraphFormat('h3')"/>
|
||||
<menuitem name="Heading 4" onclick="EditorSetParagraphFormat('h4')"/>
|
||||
<menuitem name="Heading 5" onclick="EditorSetParagraphFormat('h5')"/>
|
||||
<menuitem name="Heading 6" onclick="EditorSetParagraphFormat('h6')"/>
|
||||
<menuitem name="Address" onclick="EditorSetParagraphFormat('address')"/>
|
||||
<menuitem name="Preformat" onclick="EditorSetParagraphFormat('pre')"/>
|
||||
<menuitem name="List item" onclick="EditorSetParagraphFormat('li')"/>
|
||||
<menuitem name="Definition term" onclick="EditorSetParagraphFormat('dt')"/>
|
||||
<menuitem name="Definition description" onclick="EditorSetParagraphFormat('dd')"/>
|
||||
<menuitem name="&headingNormalCmd.label;" onclick="EditorSetParagraphFormat('normal')"/>
|
||||
<menuitem name="&headingOneCmd.label;" onclick="EditorSetParagraphFormat('h1')"/>
|
||||
<menuitem name="&headingTwoCmd.label;" onclick="EditorSetParagraphFormat('h2')"/>
|
||||
<menuitem name="&headingThreeCmd.label;" onclick="EditorSetParagraphFormat('h3')"/>
|
||||
<menuitem name="&headingFourCmd.label;" onclick="EditorSetParagraphFormat('h4')"/>
|
||||
<menuitem name="&headingFiveCmd.label;" onclick="EditorSetParagraphFormat('h5')"/>
|
||||
<menuitem name="&headingSixCmd.label;" onclick="EditorSetParagraphFormat('h6')"/>
|
||||
<menuitem name="¶graphAddressCmd.label;" onclick="EditorSetParagraphFormat('address')"/>
|
||||
<menuitem name="¶graphPreformatCmd.label;" onclick="EditorSetParagraphFormat('pre')"/>
|
||||
<menuitem name="¶graphListCmd.label;" onclick="EditorSetParagraphFormat('li')"/>
|
||||
<menuitem name="¶graphDfnTermCmd.label;" onclick="EditorSetParagraphFormat('dt')"/>
|
||||
<menuitem name="¶graphDfnDescCmd.label;" onclick="EditorSetParagraphFormat('dd')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<popup id="FontFaceMenu">
|
||||
<menu>
|
||||
<menuitem name="Default Variable Width" onclick="EditorSetFontFace('')"/>
|
||||
<menuitem name="Default Fixed Width" onclick="EditorSetFontFace('tt')"/>
|
||||
<menuitem name="&defaultVariableWidthCmd.label;" onclick="EditorSetFontFace('')"/>
|
||||
<menuitem name="&defaultFixedWidthCmd.label;" onclick="EditorSetFontFace('tt')"/>
|
||||
<separator/>
|
||||
<menuitem name="Arial, Helvetica" onclick="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
|
||||
<menuitem name="Times" onclick="EditorSetFontFace('Times New Roman, Times, serif')"/>
|
||||
<menuitem name="Courier" onclick="EditorSetFontFace('Courier New, Courier, mono')"/>
|
||||
<menuitem name="&arialHelveticaFont.label;" onclick="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
|
||||
<menuitem name="×Font.label;" onclick="EditorSetFontFace('Times New Roman, Times, serif')"/>
|
||||
<menuitem name="&courierFont.label;" onclick="EditorSetFontFace('Courier New, Courier, mono')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<popup id="FontSizeMenu">
|
||||
<menu>
|
||||
<menuitem name="-4" onclick="EditorSetFontSize('-4')"/>
|
||||
<menuitem name="-3" onclick="EditorSetFontSize('-3')"/>
|
||||
<menuitem name="-2" onclick="EditorSetFontSize('-2')"/>
|
||||
<menuitem name="-1 (smaller)" onclick="EditorSetFontSize('-1')"/>
|
||||
<menuitem name="Normal" onclick="EditorSetFontSize('0')"/>
|
||||
<menuitem name="+1 (bigger)" onclick="EditorSetFontSize('+1')"/>
|
||||
<menuitem name="+2" onclick="EditorSetFontSize('+2')"/>
|
||||
<menuitem name="+3" onclick="EditorSetFontSize('+3')"/>
|
||||
<menuitem name="+4" onclick="EditorSetFontSize('+4')"/>
|
||||
<menuitem name="&sizeMinusTwoCmd.label;" onclick="EditorSetFontSize('-2')"/>
|
||||
<menuitem name="&sizeMinusOneCmd.label;" onclick="EditorSetFontSize('-1')"/>
|
||||
<menuitem name="&sizeNormalCmd.label;" onclick="EditorSetFontSize('0')"/>
|
||||
<menuitem name="&sizePlusOneCmd.label;" onclick="EditorSetFontSize('+1')"/>
|
||||
<menuitem name="&sizePlusTwoCmd.label;" onclick="EditorSetFontSize('+2')"/>
|
||||
<menuitem name="&sizePlusThreeCmd.label;" onclick="EditorSetFontSize('+3')"/>
|
||||
<menuitem name="&sizePlusFourCmd.label;" onclick="EditorSetFontSize('+4')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<popup id="BackColorMenu">
|
||||
<menu>
|
||||
<menuitem name="Black" onclick="EditorSetBackgroundColor('black')"/>
|
||||
<menuitem name="Gray" onclick="EditorSetBackgroundColor('gray')"/>
|
||||
<menuitem name="Silver" onclick="EditorSetBackgroundColor('silver')"/>
|
||||
<menuitem name="White" onclick="EditorSetBackgroundColor('white')"/>
|
||||
<menuitem name="Red" onclick="EditorSetBackgroundColor('red')"/>
|
||||
<menuitem name="Blue" onclick="EditorSetBackgroundColor('blue')"/>
|
||||
<menuitem name="Green" onclick="EditorSetBackgroundColor('green')"/>
|
||||
<menuitem name="Cyan" onclick="EditorSetBackgroundColor('cyan')"/>
|
||||
<menuitem name="Yellow" onclick="EditorSetBackgroundColor('yellow')"/>
|
||||
<menuitem name="Magenta" onclick="EditorSetBackgroundColor('magenta')"/>
|
||||
<menuitem name="&colorBlackCmd.label;" onclick="EditorSetBackgroundColor('black')"/>
|
||||
<menuitem name="&colorGrayCmd.label;" onclick="EditorSetBackgroundColor('gray')"/>
|
||||
<menuitem name="&colorSilverCmd.label;" onclick="EditorSetBackgroundColor('silver')"/>
|
||||
<menuitem name="&colorWhiteCmd.label;" onclick="EditorSetBackgroundColor('white')"/>
|
||||
<menuitem name="&colorRedCmd.label;" onclick="EditorSetBackgroundColor('red')"/>
|
||||
<menuitem name="&colorBlueCmd.label;" onclick="EditorSetBackgroundColor('blue')"/>
|
||||
<menuitem name="&colorGreenCmd.label;" onclick="EditorSetBackgroundColor('green')"/>
|
||||
<menuitem name="&colorCyanCmd.label;" onclick="EditorSetBackgroundColor('cyan')"/>
|
||||
<menuitem name="&colorYellowCmd.label;" onclick="EditorSetBackgroundColor('yellow')"/>
|
||||
<menuitem name="&colorMagentaCmd.label;" onclick="EditorSetBackgroundColor('magenta')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<popup id="TextColorMenu">
|
||||
<menu class="popup">
|
||||
<menuitem name="Black" onclick="EditorSetFontColor('black')"/>
|
||||
<menuitem name="Gray" onclick="EditorSetFontColor('gray')"/>
|
||||
<menuitem name="Silver" onclick="EditorSetFontColor('silver')"/>
|
||||
<menuitem name="White" onclick="EditorSetFontColor('white')"/>
|
||||
<menuitem name="Red" onclick="EditorSetFontColor('red')"/>
|
||||
<menuitem name="Blue" onclick="EditorSetFontColor('blue')"/>
|
||||
<menuitem name="Green" onclick="EditorSetFontColor('green')"/>
|
||||
<menuitem name="Cyan" onclick="EditorSetFontColor('cyan')"/>
|
||||
<menuitem name="Yellow" onclick="EditorSetFontColor('yellow')"/>
|
||||
<menuitem name="Magenta" onclick="EditorSetFontColor('magenta')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<popup id="AlignmentMenu">
|
||||
<menu>
|
||||
<menuitem name="Left" onclick="EditorAlign('left')"/>
|
||||
<menuitem name="Center" onclick="EditorAlign('center')"/>
|
||||
<menuitem name="Right" onclick="EditorAlign('right')"/>
|
||||
<menuitem name="Justified" onclick="EditorAlign('justify')"/>
|
||||
<menuitem name="&colorBlackCmd.label;" onclick="EditorSetFontColor('black')"/>
|
||||
<menuitem name="&colorGrayCmd.label;" onclick="EditorSetFontColor('gray')"/>
|
||||
<menuitem name="&colorSilverCmd.label;" onclick="EditorSetFontColor('silver')"/>
|
||||
<menuitem name="&colorWhiteCmd.label;" onclick="EditorSetFontColor('white')"/>
|
||||
<menuitem name="&colorRedCmd.label;" onclick="EditorSetFontColor('red')"/>
|
||||
<menuitem name="&colorBlueCmd.label;" onclick="EditorSetFontColor('blue')"/>
|
||||
<menuitem name="&colorGreenCmd.label;" onclick="EditorSetFontColor('green')"/>
|
||||
<menuitem name="&colorCyanCmd.label;" onclick="EditorSetFontColor('cyan')"/>
|
||||
<menuitem name="&colorYellowCmd.label;" onclick="EditorSetFontColor('yellow')"/>
|
||||
<menuitem name="&colorMagentaCmd.label;" onclick="EditorSetFontColor('magenta')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<!-- This should have a select element so we have a scrolled list when too many fonts are added -->
|
||||
<popup id="FontFaceWindow">
|
||||
<window class="popup" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" width="40" height="40">
|
||||
<titledbutton value="Default Variable Width" onclick="opener.EditorSetFontFace(''); window.close();"/><html:br/>
|
||||
<titledbutton value="Default Fixed Width" onclick="opener.EditorSetFontFace('tt'); window.close();"/><html:br/>
|
||||
<titledbutton value="Arial, Helvetica" onclick="opener.EditorSetFontFace('Arial, Helvetica, sans-serif'); window.close();"/><html:br/>
|
||||
<titledbutton value="Times" onclick="opener.EditorSetFontFace('Times New Roman, Times, serif'); window.close();"/><html:br/>
|
||||
<titledbutton value="Courier" onclick="opener.EditorSetFontFace('Courier New, Courier, mono'); window.close();"/><html:br/>
|
||||
<titledbutton value="&defaultVariableWidthCmd.label;" onclick="opener.EditorSetFontFace(''); window.close();"/><html:br/>
|
||||
<titledbutton value="&defaultFixedWidthCmd.label;" onclick="opener.EditorSetFontFace('tt'); window.close();"/><html:br/>
|
||||
<titledbutton value="&arialHelveticaFont.label;" onclick="opener.EditorSetFontFace('Arial, Helvetica, sans-serif'); window.close();"/><html:br/>
|
||||
<titledbutton value="×Font.label;" onclick="opener.EditorSetFontFace('Times New Roman, Times, serif'); window.close();"/><html:br/>
|
||||
<titledbutton value="&courierFont.label;" onclick="opener.EditorSetFontFace('Courier New, Courier, mono'); window.close();"/><html:br/>
|
||||
</window>
|
||||
</popup>
|
||||
|
||||
@ -474,15 +635,27 @@
|
||||
<window class="popup" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" align="vertical" flex="100%"
|
||||
width="70" height="110">
|
||||
<html:div flex="100%">
|
||||
<html:button class="PopupButton" onclick="opener.EditorAlign('left'); window.close();"><html:img align="middle" src="chrome://editor/skin/images/ED_Left.gif"/> <html:span>Left</html:span> </html:button>
|
||||
<html:button class="PopupButton" onclick="opener.EditorAlign('center'); window.close();"><html:img align="middle" src="chrome://editor/skin/images/ED_Center.gif"/> <html:span>Center</html:span> </html:button>
|
||||
<html:button class="PopupButton" onclick="opener.EditorAlign('right'); window.close();"><html:img align="middle" src="chrome://editor/skin/images/ED_Right.gif"/> <html:span>Right</html:span> </html:button>
|
||||
<html:button class="PopupButton" onclick="opener.EditorAlign('justify'); window.close();"><html:img align="middle" src="chrome://editor/skin/images/ED_Justify.gif"/><html:span>Justify</html:span></html:button>
|
||||
<html:button class="PopupButton" onclick="opener.EditorAlign('left'); window.close();">
|
||||
<html:img align="middle" src="chrome://editor/skin/images/ED_Left.gif"/>
|
||||
<html:span>&alignLeft.label;</html:span>
|
||||
</html:button>
|
||||
<html:button class="PopupButton" onclick="opener.EditorAlign('center'); window.close();">
|
||||
<html:img align="middle" src="chrome://editor/skin/images/ED_Center.gif"/>
|
||||
<html:span>&alignCenter.label;</html:span>
|
||||
</html:button>
|
||||
<html:button class="PopupButton" onclick="opener.EditorAlign('right'); window.close();">
|
||||
<html:img align="middle" src="chrome://editor/skin/images/ED_Right.gif"/>
|
||||
<html:span>&alignRight.label;</html:span>
|
||||
</html:button>
|
||||
<html:button class="PopupButton" onclick="opener.EditorAlign('justify'); window.close();">
|
||||
<html:img align="middle" src="chrome://editor/skin/images/ED_Justify.gif"/>
|
||||
<html:span>&alignJustify.label;</html:span>
|
||||
</html:button>
|
||||
</html:div>
|
||||
<!-- Trying to use autosizing and boxes
|
||||
<titledbutton class="PopupButton" value="Left" style="min-width: 40px" onclick="opener.EditorAlign('left'); window.close();"/>
|
||||
<titledbutton class="PopupButton" value="Center" style="min-width: 40px" onclick="opener.EditorAlign('left'); window.close();"/>
|
||||
<titledbutton class="PopupButton" value="Right" style="min-width: 40px" onclick="opener.EditorAlign('left'); window.close();"/>
|
||||
<titledbutton class="PopupButton" value="&alignLeft.label;" style="min-width: 40px" onclick="opener.EditorAlign('left'); window.close();"/>
|
||||
<titledbutton class="PopupButton" value="&alignCenter.label;" style="min-width: 40px" onclick="opener.EditorAlign('center'); window.close();"/>
|
||||
<titledbutton class="PopupButton" value="&alignRight.label;" style="min-width: 40px" onclick="opener.EditorAlign('right'); window.close();"/>
|
||||
-->
|
||||
</window>
|
||||
</popup>
|
||||
|
@ -8,23 +8,187 @@
|
||||
|
||||
<!-- These entity declarations will go into a separate, locale file at some point -->
|
||||
<!-- Window title -->
|
||||
<!ENTITY editorWindow.title "Editor">
|
||||
<!ENTITY textEditorWindow.title "Text Editor">
|
||||
|
||||
<!-- Menu items: the . means that the menu item isn't implemented yet -->
|
||||
|
||||
<!-- File menu items -->
|
||||
<!ENTITY fileMenu.label "File">
|
||||
<!ENTITY newCmd.label ".New Window">
|
||||
<!ENTITY newCmd.label "New">
|
||||
<!ENTITY openCmd.label "Open...">
|
||||
<!ENTITY closeCmd.label "Close">
|
||||
<!ENTITY saveCmd.label "Save">
|
||||
<!ENTITY saveAsCmd.label "Save As...">
|
||||
<!ENTITY printSetupCmd.label ".Print Setup...">
|
||||
<!ENTITY printPreviewCmd.label "Print Preview">
|
||||
<!ENTITY printCmd.label "Print...">
|
||||
<!ENTITY quitCmd.label "Quit">
|
||||
|
||||
<!-- Edit menu items -->
|
||||
<!ENTITY editMenu.label "Edit">
|
||||
<!ENTITY undoCmd.label "Undo">
|
||||
<!ENTITY redoCmd.label "Redo">
|
||||
<!ENTITY cutCmd.label "Cut">
|
||||
<!ENTITY copyCmd.label "Copy">
|
||||
<!ENTITY pasteCmd.label "Paste">
|
||||
<!ENTITY pasteAsQuotationCmd.label "Paste">
|
||||
<!ENTITY clearCmd.label ".Clear">
|
||||
<!ENTITY selectAllCmd.label "Select All">
|
||||
<!ENTITY findCmd.label "Find...">
|
||||
<!ENTITY findAgainCmd.label "Find Again">
|
||||
|
||||
<!-- View menu items -->
|
||||
<!ENTITY viewMenu.label "View">
|
||||
<!ENTITY hideCompositionToolbarCmd.label ".Hide Composition Toolbar">
|
||||
<!ENTITY showCompositionToolbarCmd.label ".Show Composition Toolbar">
|
||||
<!ENTITY hideFormattingToolbarCmd.label ".Hide Format Toolbar">
|
||||
<!ENTITY showFormattingToolbarCmd.label ".Show Format Toolbar">
|
||||
|
||||
<!-- Insert menu items -->
|
||||
<!ENTITY insertMenu.label "Insert">
|
||||
<!ENTITY insertLinkCmd.label "Link...">
|
||||
<!ENTITY insertTargetCmd.label ".Target...">
|
||||
<!ENTITY insertImageCmd.label "Image...">
|
||||
<!ENTITY insertHLineCmd.label "Horizontal Line">
|
||||
<!ENTITY insertTableCmd.label "Table...">
|
||||
<!ENTITY insertHTMLSourceCmd.label ".HTML Source...">
|
||||
<!ENTITY insertLineBreakCmd.label ".Line Break">
|
||||
<!ENTITY insertBreakBelowImagesCmd.label ".Break Below Image(s)">
|
||||
|
||||
<!-- Format menu items -->
|
||||
<!ENTITY formatMenu.label "Format">
|
||||
|
||||
<!ENTITY fontfaceMenu.label "Font Face">
|
||||
<!ENTITY defaultVariableWidthCmd.label "Default Variable Width">
|
||||
<!ENTITY defaultFixedWidthCmd.label "Default Fixed Width">
|
||||
<!ENTITY arialHelveticaFont.label "Arial, Helvetica">
|
||||
<!ENTITY timesFont.label "Times">
|
||||
<!ENTITY courierFont.label "Courier">
|
||||
|
||||
<!ENTITY fontsizeMenu.label "Size">
|
||||
<!ENTITY sizeMinusTwoCmd.label " -2">
|
||||
<!ENTITY sizeMinusOneCmd.label " -1 (smaller)">
|
||||
<!ENTITY sizeNormalCmd.label " Normal">
|
||||
<!ENTITY sizePlusOneCmd.label " +1 (bigger)">
|
||||
<!ENTITY sizePlusTwoCmd.label " +2">
|
||||
<!ENTITY sizePlusThreeCmd.label " +3">
|
||||
<!ENTITY sizePlusFourCmd.label " +4">
|
||||
|
||||
<!ENTITY fontStyleMenu.label "Style">
|
||||
<!ENTITY styleBoldCmd.label "Bold">
|
||||
<!ENTITY styleItalicCmd.label "Italic">
|
||||
<!ENTITY styleUnderlineCmd.label "Underline">
|
||||
<!ENTITY styleStrikeThruCmd.label "Strikethrough">
|
||||
<!ENTITY styleSuperscriptCmd.label "Superscript">
|
||||
<!ENTITY styleSubscriptCmd.label "Subscript">
|
||||
<!ENTITY styleBlinkCmd.label "Blink">
|
||||
<!ENTITY styleNonbreakingCmd.label "Nonbreaking">
|
||||
|
||||
<!ENTITY fontColorMenu.label "Text Color">
|
||||
<!ENTITY colorBlackCmd.label "Black">
|
||||
<!ENTITY colorGrayCmd.label "Gray">
|
||||
<!ENTITY colorSilverCmd.label "Silver">
|
||||
<!ENTITY colorWhiteCmd.label "White">
|
||||
<!ENTITY colorRedCmd.label "Red">
|
||||
<!ENTITY colorBlueCmd.label "Blue">
|
||||
<!ENTITY colorGreenCmd.label "Green">
|
||||
<!ENTITY colorCyanCmd.label "Cyan">
|
||||
<!ENTITY colorYellowCmd.label "Yellow">
|
||||
<!ENTITY colorMagentaCmd.label "Magenta">
|
||||
|
||||
<!ENTITY backgroundColorMenu.label "Background Color">
|
||||
|
||||
<!ENTITY paragraphHeadingMenu.label "Paragraph / Heading">
|
||||
<!ENTITY paragraphNormalCmd.label "Normal">
|
||||
<!ENTITY headingOneCmd.label "Heading 1">
|
||||
<!ENTITY headingTwoCmd.label "Heading 2">
|
||||
<!ENTITY headingThreeCmd.label "Heading 3">
|
||||
<!ENTITY headingFourCmd.label "Heading 4">
|
||||
<!ENTITY headingFiveCmd.label "Heading 5">
|
||||
<!ENTITY headingSixCmd.label "Heading 6">
|
||||
<!ENTITY paragraphBlockquoteCmd.label "Blockquote">
|
||||
<!ENTITY paragraphAddressCmd.label "Address">
|
||||
<!ENTITY paragraphPreformatCmd.label "Preformat">
|
||||
<!ENTITY paragraphListCmd.label "List item">
|
||||
<!ENTITY paragraphDfnTermCmd.label "Definition term">
|
||||
<!ENTITY paragraphDfnDescCmd.label "Definition description">
|
||||
|
||||
<!ENTITY removeAllStylesCmd.label "Remove All Style(s)">
|
||||
|
||||
<!ENTITY toolsMenu.label "Tools">
|
||||
<!ENTITY newBrowserCmd.label "New Browser Window">
|
||||
<!ENTITY newPlaintextEditorCmd.label "New Plaintext Editor">
|
||||
<!ENTITY checkSpellingCmd.label "Check Spelling...">
|
||||
<!ENTITY setFocusCmd.label "Set Focus">
|
||||
|
||||
<!ENTITY debugMenu.label "Debug">
|
||||
<!ENTITY outputTextCmd.label "Output Text">
|
||||
<!ENTITY outputHTMLCmd.label "Output HTML">
|
||||
<!ENTITY insertTextCmd.label "Insert Text">
|
||||
<!ENTITY testSelectionCmd.label "Test Selection">
|
||||
<!ENTITY testDocumentCmd.label "Test Document">
|
||||
<!ENTITY runUnitTestsCmd.label "Run Unit Tests">
|
||||
|
||||
<!ENTITY helpMenu.label "Help">
|
||||
<!ENTITY aboutCmd.label ".About">
|
||||
|
||||
<!-- formatting toolbar -->
|
||||
<!ENTITY paragraphToolbarMenu.label "Paragraph">
|
||||
<!ENTITY fontToolbarMenu.label "Font">
|
||||
<!ENTITY sizeToolbarMenu.label "Size">
|
||||
<!ENTITY formatToolbar.boldChar "B">
|
||||
<!ENTITY formatToolbar.italicChar "I">
|
||||
<!ENTITY formatToolbar.underlineChar "U">
|
||||
<!ENTITY bulletListIcon.url "chrome://editor/skin/images/ED_Bullets.gif">
|
||||
<!ENTITY numberListIcon.url "chrome://editor/skin/images/ED_Numbers.gif">
|
||||
<!ENTITY outdentIcon.url "chrome://editor/skin/images/ED_Outdent.gif">
|
||||
<!ENTITY indentIcon.url "chrome://editor/skin/images/ED_Indent.gif">
|
||||
<!ENTITY alignpopupIcon.url "chrome://editor/skin/images/ED_Align.gif">
|
||||
<!ENTITY alignLeft.label "Left">
|
||||
<!ENTITY alignCenter.label "Center">
|
||||
<!ENTITY alignRight.label "Right">
|
||||
<!ENTITY alignJustify.label "Justify">
|
||||
<!ENTITY linkIcon.url "chrome://editor/skin/images/ED_Link.gif">
|
||||
<!ENTITY imageIcon.url "chrome://editor/skin/images/ED_Image.gif">
|
||||
<!ENTITY spellingIcon.url "chrome://editor/skin/images/ED_Spell.gif">
|
||||
<!ENTITY linkToolbarCmd.label "Link">
|
||||
<!ENTITY imageToolbarCmd.label "Image">
|
||||
<!ENTITY spellToolbarCmd.label "Spell">
|
||||
|
||||
<!ENTITY tempNotification.label "[Notification Component]">
|
||||
<!ENTITY tempDoneLoading.label "Document: Done">
|
||||
|
||||
]>
|
||||
|
||||
<window id="main-window" xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
onunload="EditorShutdown()" title="TextEditor" align="vertical">
|
||||
onunload="EditorShutdown()" title="&textEditorWindow.title;" align="vertical">
|
||||
|
||||
<html:script language="JavaScript" src="chrome://editor/content/EditorCommands.js">
|
||||
</html:script>
|
||||
|
||||
<keyset id="defaultKeySet">
|
||||
<key id="acmdkey" disabled="false" shift="false" command="true" alt="false" key="a" onkeypress="EditorSelectAll()" />
|
||||
<key id="bcmdkey" disabled="false" shift="false" command="true" alt="false" key="b" onkeypress="EditorApplyStyle('b')"/>
|
||||
<key id="ccmdkey" disabled="false" shift="false" command="true" alt="false" key="c" onkeypress="EditorCopy()" />
|
||||
<key id="fcmdkey" disabled="false" shift="false" command="true" alt="false" key="f" onkeypress="EditorFind()" />
|
||||
<key id="gcmdkey" disabled="false" shift="false" command="true" alt="false" key="g" onkeypress="EditorFindNext()" />
|
||||
<key id="icmdkey" disabled="false" shift="false" command="true" alt="false" key="i" onkeypress="EditorApplyStyle('i')"/>
|
||||
<key id="kcmdkey" disabled="false" shift="false" command="true" alt="false" key="k" onkeypress="CheckSpelling()" />
|
||||
<key id="ncmdkey" disabled="false" shift="false" command="true" alt="false" key="n" onkeypress="EditorNew()" />
|
||||
<key id="ocmdkey" disabled="false" shift="false" command="true" alt="false" key="o" onkeypress="EditorOpen()" />
|
||||
<key id="pcmdkey" disabled="false" shift="false" command="true" alt="false" key="p" onkeypress="EditorPrint()" />
|
||||
<key id="qcmdkey" disabled="false" shift="false" command="true" alt="false" key="q" onkeypress="EditorExit()" />
|
||||
<key id="ucmdkey" disabled="false" shift="false" command="true" alt="false" key="u" onkeypress="EditorApplyStyle('u')"/>
|
||||
<key id="vcmdkey" disabled="false" shift="false" command="true" alt="false" key="v" onkeypress="EditorPaste()" />
|
||||
<key id="wcmdkey" disabled="false" shift="false" command="true" alt="false" key="w" onkeypress="EditorClose()" />
|
||||
<key id="xcmdkey" disabled="false" shift="false" command="true" alt="false" key="x" onkeypress="EditorCut()" />
|
||||
<key id="ycmdkey" disabled="false" shift="false" command="true" alt="false" key="y" onkeypress="EditorRedo()" />
|
||||
<key id="zcmdkey" disabled="false" shift="false" command="true" alt="false" key="z" onkeypress="EditorUndo()" />
|
||||
|
||||
<!-- how to handle return, enter, tab, function keys, arrow keys, others? -->
|
||||
</keyset>
|
||||
|
||||
<broadcaster id="args" value="chrome://editor/content/EditorInitPagePlain.html"/>
|
||||
<broadcaster id="canPrint"/>
|
||||
|
||||
@ -33,118 +197,118 @@
|
||||
<observes element="dialog.start" attribute="ready" onchange="EditorStartup('text')"/>
|
||||
|
||||
<menubar>
|
||||
<menu name="File">
|
||||
<menuitem name="New" onclick="EditorNew()"/>
|
||||
<menuitem name="Open..." onclick="EditorOpen()"/>
|
||||
<menuitem name=".Close" onclick="EditorClose()"/>
|
||||
<menu name="&fileMenu.label;">
|
||||
<menuitem name="&newCmd.label;" onclick="EditorNew()"/>
|
||||
<menuitem name="&openCmd.label;" onclick="EditorOpen()"/>
|
||||
<menuitem name="&closeCmd.label;" onclick="EditorClose()"/>
|
||||
<separator />
|
||||
<menuitem name="Save" onclick="EditorSave()"/>
|
||||
<menuitem name="Save As..." onclick="EditorSaveAs()"/>
|
||||
<menuitem name="&saveCmd.label;" onclick="EditorSave()"/>
|
||||
<menuitem name="&saveAsCmd.label;" onclick="EditorSaveAs()"/>
|
||||
<separator />
|
||||
<menuitem name=".Print Setup..." onclick=""/>
|
||||
<menuitem name="Print Preview" onclick="EditorPrintPreview()"/>
|
||||
<menuitem name=".Print..." onclick="EditorPrint()"/>
|
||||
<menuitem name="&printSetupCmd.label;" onclick=""/>
|
||||
<menuitem name="&printPreviewCmd.label;" onclick="EditorPrintPreview()"/>
|
||||
<menuitem name="&printCmd.label;" onclick="EditorPrint()"/>
|
||||
<separator />
|
||||
<menuitem name="Quit" onclick="EditorExit()"/>
|
||||
<menuitem name="&quitCmd.label;" onclick="EditorExit()"/>
|
||||
</menu>
|
||||
|
||||
<menu name="Edit">
|
||||
<menuitem name="Undo" onclick="EditorUndo()"/>
|
||||
<menuitem name="Redo" onclick="EditorRedo()"/>
|
||||
<menu name="&editMenu.label;">
|
||||
<menuitem name="&undoCmd.label;" onclick="EditorUndo()"/>
|
||||
<menuitem name="&redoCmd.label;" onclick="EditorRedo()"/>
|
||||
<separator />
|
||||
<menuitem name="Cut" onclick="EditorCut()"/>
|
||||
<menuitem name="Copy" onclick="EditorCopy()"/>
|
||||
<menuitem name="Paste" onclick="EditorPaste()"/>
|
||||
<menuitem name="Paste as Quotation" onclick="EditorPasteAsQuotation()"/>
|
||||
<menuitem name=".Clear" onclick=""/>
|
||||
<menuitem name="&cutCmd.label;" onclick="EditorCut()"/>
|
||||
<menuitem name="©Cmd.label;" onclick="EditorCopy()"/>
|
||||
<menuitem name="&pasteCmd.label;" onclick="EditorPaste()"/>
|
||||
<menuitem name="&pasteAsQuotationCmd.label;" onclick="EditorPasteAsQuotation()"/>
|
||||
<menuitem name="&clearCmd.label;" onclick=""/>
|
||||
<separator />
|
||||
<menuitem name="Select All" onclick="EditorSelectAll()"/>
|
||||
<menuitem name="&selectAllCmd.label;" onclick="EditorSelectAll()"/>
|
||||
<separator />
|
||||
<menuitem name="Find..." onclick="EditorFind()"/>
|
||||
<menuitem name="Find Again" onclick="EditorFindNext()"/>
|
||||
<menuitem name="&findCmd.label;" onclick="EditorFind()"/>
|
||||
<menuitem name="&findAgainCmd.label;" onclick="EditorFindNext()"/>
|
||||
</menu>
|
||||
|
||||
<menu name="View">
|
||||
<menuitem name=".Hide Composition Toolbar" onclick=""/>
|
||||
<menuitem name=".Hide Format Toolbar" onclick="" />
|
||||
<menu name="&viewMenu.label;">
|
||||
<menuitem name="&hideCompositionToolbarCmd.label;" onclick=""/>
|
||||
<menuitem name="&hideFormattingToolbarCmd.label;" onclick="" />
|
||||
</menu>
|
||||
|
||||
<menu name="Insert">
|
||||
<menuitem name="Link..." onclick="EditorInsertLink()"/>
|
||||
<menuitem name=".Target..." onclick=""/>
|
||||
<menuitem name="Image..." onclick="EditorInsertImage()"/>
|
||||
<menuitem name=".Horizontal Line" onclick=""/>
|
||||
<menuitem name=".Table" onclick=""/>
|
||||
<menuitem name=".HTML Tag..." onclick=""/>
|
||||
<menu name="&insertMenu.label;">
|
||||
<menuitem name="&insertLinkCmd.label;" onclick="EditorInsertLink()"/>
|
||||
<menuitem name="&insertTargetCmd.label;" onclick=""/>
|
||||
<menuitem name="&insertImageCmd.label;" onclick="EditorInsertImage()"/>
|
||||
<menuitem name="&insertHLineCmd.label;" onclick="EditorInsertHLine()"/>
|
||||
<menuitem name="&insertTableCmd.label;" onclick="EditorInsertTable()"/>
|
||||
<menuitem name="&insertHTMLSourceCmd.label;" onclick="EditorInsertHTML()"/>
|
||||
<separator />
|
||||
<menuitem name=".Line Break" onclick=""/>
|
||||
<menuitem name=".Break Below Image(s)" onclick=""/>
|
||||
<menuitem name="&insertLineBreakCmd.label;" onclick=""/>
|
||||
<menuitem name="&insertBreakBelowImagesCmd.label;" onclick=""/>
|
||||
</menu>
|
||||
<menu name="Format">
|
||||
<menu name="Font Face">
|
||||
<menuitem name="Default Variable Width" onclick="EditorSetFontFace('')"/>
|
||||
<menuitem name="Default Fixed Width" onclick="EditorSetFontFace('tt')"/>
|
||||
<menu name="&formatMenu.label;">
|
||||
<menu name="&fontfaceMenu.label;">
|
||||
<menuitem name="&defaultVariableWidthCmd.label;" onclick="EditorSetFontFace('')"/>
|
||||
<menuitem name="&defaultFixedWidthCmd.label;" onclick="EditorSetFontFace('tt')"/>
|
||||
<separator/>
|
||||
<menuitem name="Arial, Helvetica" onclick="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
|
||||
<menuitem name="Times" onclick="EditorSetFontFace('Times New Roman, Times, serif')"/>
|
||||
<menuitem name="Courier" onclick="EditorSetFontFace('Courier New, Courier, mono')"/>
|
||||
<menuitem name="&arialHelveticaFont.label;" onclick="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
|
||||
<menuitem name="×Font.label;" onclick="EditorSetFontFace('Times New Roman, Times, serif')"/>
|
||||
<menuitem name="&courierFont.label;" onclick="EditorSetFontFace('Courier New, Courier, mono')"/>
|
||||
</menu>
|
||||
<menu name="Size">
|
||||
<menuitem name="-2" onclick="EditorSetFontSize('-2')"/>
|
||||
<menuitem name="-1" onclick="EditorSetFontSize('-1')"/>
|
||||
<menuitem name=" 0" onclick="EditorSetFontSize(' 0')"/>
|
||||
<menuitem name="+1" onclick="EditorSetFontSize('+1')"/>
|
||||
<menuitem name="+2" onclick="EditorSetFontSize('+2')"/>
|
||||
<menuitem name="+3" onclick="EditorSetFontSize('+3')"/>
|
||||
<menuitem name="+4" onclick="EditorSetFontSize('+4')"/>
|
||||
<menu name="&fontsizeMenu.label;">
|
||||
<menuitem name="&sizeMinusTwoCmd.label;" onclick="EditorSetFontSize('-2')"/>
|
||||
<menuitem name="&sizeMinusOneCmd.label;" onclick="EditorSetFontSize('-1')"/>
|
||||
<menuitem name="&sizeNormalCmd.label;" onclick="EditorSetFontSize('0')"/>
|
||||
<menuitem name="&sizePlusOneCmd.label;" onclick="EditorSetFontSize('+1')"/>
|
||||
<menuitem name="&sizePlusTwoCmd.label;" onclick="EditorSetFontSize('+2')"/>
|
||||
<menuitem name="&sizePlusThreeCmd.label;" onclick="EditorSetFontSize('+3')"/>
|
||||
<menuitem name="&sizePlusFourCmd.label;" onclick="EditorSetFontSize('+4')"/>
|
||||
</menu>
|
||||
<menu name="Style">
|
||||
<menuitem name="Bold" onclick="EditorApplyStyle('b')"/>
|
||||
<menuitem name="Italic" onclick="EditorApplyStyle('i')"/>
|
||||
<menuitem name="Underline" onclick="EditorApplyStyle('u')"/>
|
||||
<menuitem name="Strikethrough" onclick="EditorApplyStyle('strike')"/>
|
||||
<menuitem name="Superscript" onclick="EditorApplyStyle('sup')"/>
|
||||
<menuitem name="Subscript" onclick="EditorApplyStyle('sub')"/>
|
||||
<menuitem name="Blink" onclick="EditorApplyStyle('blink')"/>
|
||||
<menuitem name="Nonbreaking" onclick="EditorApplyStyle('nobr')"/>
|
||||
<menu name="&fontStyleMenu.label;">
|
||||
<menuitem name="&styleBoldCmd.label;" onclick="EditorApplyStyle('b')"/>
|
||||
<menuitem name="&styleItalicCmd.label;" onclick="EditorApplyStyle('i')"/>
|
||||
<menuitem name="&styleUnderlineCmd.label;" onclick="EditorApplyStyle('u')"/>
|
||||
<menuitem name="&styleStrikeThruCmd.label;" onclick="EditorApplyStyle('strike')"/>
|
||||
<menuitem name="&styleSuperscriptCmd.label;" onclick="EditorApplyStyle('sup')"/>
|
||||
<menuitem name="&styleSubscriptCmd.label;" onclick="EditorApplyStyle('sub')"/>
|
||||
<menuitem name="&styleBlinkCmd.label;" onclick="EditorApplyStyle('blink')"/>
|
||||
<menuitem name="&styleNonbreakingCmd.label;" onclick="EditorApplyStyle('nobr')"/>
|
||||
</menu>
|
||||
<menuitem name=".Color..." onclick=""/>
|
||||
<menuitem name="Remove All Style(s)" onclick="EditorRemoveStyle('all')"/>
|
||||
<menuitem name="&fontColorMenu.label;" onclick=""/>
|
||||
<menuitem name="&removeAllStylesCmd.label;" onclick="EditorRemoveStyle('all')"/>
|
||||
<separator />
|
||||
<menu name="Paragraph / Heading">
|
||||
<menuitem name="Normal" onclick="EditorSetParagraphFormat('normal')"/>
|
||||
<menuitem name="Heading 1" onclick="EditorSetParagraphFormat('h1')"/>
|
||||
<menuitem name="Heading 2" onclick="EditorSetParagraphFormat('h2')"/>
|
||||
<menuitem name="Heading 3" onclick="EditorSetParagraphFormat('h3')"/>
|
||||
<menuitem name="Heading 4" onclick="EditorSetParagraphFormat('h4')"/>
|
||||
<menuitem name="Heading 5" onclick="EditorSetParagraphFormat('h5')"/>
|
||||
<menuitem name="Heading 6" onclick="EditorSetParagraphFormat('h6')"/>
|
||||
<menuitem name="Address" onclick="EditorSetParagraphFormat('address')"/>
|
||||
<menuitem name="Preformat" onclick="EditorSetParagraphFormat('pre')"/>
|
||||
<menuitem name="List item" onclick="EditorSetParagraphFormat('li')"/>
|
||||
<menuitem name="Definition term" onclick="EditorSetParagraphFormat('dt')"/>
|
||||
<menuitem name="Definition description" onclick="EditorSetParagraphFormat('dd')"/>
|
||||
<menu name="¶graphHeadingMenu.label;">
|
||||
<menuitem name="¶graphNormalCmd.label;" onclick="EditorSetParagraphFormat('normal')"/>
|
||||
<menuitem name="&headingOneCmd.label;" onclick="EditorSetParagraphFormat('h1')"/>
|
||||
<menuitem name="&headingTwoCmd.label;" onclick="EditorSetParagraphFormat('h2')"/>
|
||||
<menuitem name="&headingThreeCmd.label;" onclick="EditorSetParagraphFormat('h3')"/>
|
||||
<menuitem name="&headingFourCmd.label;" onclick="EditorSetParagraphFormat('h4')"/>
|
||||
<menuitem name="&headingFiveCmd.label;" onclick="EditorSetParagraphFormat('h5')"/>
|
||||
<menuitem name="&headingSixCmd.label;" onclick="EditorSetParagraphFormat('h6')"/>
|
||||
<menuitem name="¶graphAddressCmd.label;" onclick="EditorSetParagraphFormat('address')"/>
|
||||
<menuitem name="¶graphPreformatCmd.label;" onclick="EditorSetParagraphFormat('pre')"/>
|
||||
<menuitem name="¶graphListCmd.label;" onclick="EditorSetParagraphFormat('li')"/>
|
||||
<menuitem name="¶graphDfnTermCmd.label;" onclick="EditorSetParagraphFormat('dt')"/>
|
||||
<menuitem name="¶graphDfnDescCmd.label;" onclick="EditorSetParagraphFormat('dd')"/>
|
||||
</menu>
|
||||
</menu>
|
||||
<menu name="Tools">
|
||||
<menuitem name="New Browser Window" onclick="EditorNewBrowser()"/>
|
||||
<menuitem name="New Plaintext Editor" onclick="EditorNewPlaintext()"/>
|
||||
<menu name="&toolsMenu.label;">
|
||||
<menuitem name="&newBrowserCmd.label;" onclick="EditorNewBrowser()"/>
|
||||
<menuitem name="&newPlaintextEditorCmd.label;" onclick="EditorNewPlaintext()"/>
|
||||
<separator />
|
||||
<menuitem name="Spell Check" onclick="CheckSpelling()"/>
|
||||
<menuitem name="Set Focus" onclick="window.focus()"/>
|
||||
<menuitem name="&checkSpellingCmd.label;" onclick="CheckSpelling()"/>
|
||||
<menuitem name="&setFocusCmd.label;" onclick="window.focus()"/>
|
||||
</menu>
|
||||
<menu name="Debug">
|
||||
<menuitem name="Output Text" onclick="EditorGetText()"/>
|
||||
<menuitem name="Output HTML" onclick="EditorGetHTML()"/>
|
||||
<menu name="&debugMenu.label;">
|
||||
<menuitem name="&outputTextCmd.label;" onclick="EditorGetText()"/>
|
||||
<menuitem name="&outputHTMLCmd.label;" onclick="EditorGetHTML()"/>
|
||||
<separator />
|
||||
<menuitem name="Insert Text" onclick="EditorInsertText()"/>
|
||||
<menuitem name="&insertTextCmd.label;" onclick="EditorInsertText('All good things come to those who wait. ')"/>
|
||||
<separator />
|
||||
<menuitem name="Test Selection" onclick="EditorTestSelection()"/>
|
||||
<menuitem name="Test Document" onclick="EditorTestDocument()"/>
|
||||
<menuitem name="Run Unit Tests" onclick="EditorUnitTests()"/>
|
||||
<menuitem name="&testSelectionCmd.label;" onclick="EditorTestSelection()"/>
|
||||
<menuitem name="&testDocumentCmd.label;" onclick="EditorTestDocument()"/>
|
||||
<menuitem name="&runUnitTestsCmd.label;" onclick="EditorUnitTests()"/>
|
||||
</menu>
|
||||
<menu name="Help">
|
||||
<menuitem name=".About" onclick=""/>
|
||||
<menu name="&helpMenu.label;">
|
||||
<menuitem name="&aboutCmd.label;" onclick=""/>
|
||||
</menu>
|
||||
</menubar>
|
||||
|
||||
@ -154,24 +318,31 @@
|
||||
|
||||
<toolbox>
|
||||
<toolbar>
|
||||
<titledbutton id="ParagraphPopup" value="Paragraph" class="popup" align="left" popup="ParagraphMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="FontFacePopup" value="Font" class="popup" align="left" popup="FontFaceMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="FontSizePopup" value="Size" class="popup" align="left" popup="FontSizeMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="ParagraphPopup" value="¶graphToolbarMenu.label;" class="popup" align="left" popup="ParagraphMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="FontFacePopup" value="&fontToolbarMenu.label;" class="popup" align="left" popup="FontFaceMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="FontSizePopup" value="&sizeToolbarMenu.label;" class="popup" align="left" popup="FontSizeMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="TextColorPopup" src="chrome://editor/skin/images/ED_TextColor.gif" class="popup" popup="TextColorMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="BackColorPopup" src="chrome://editor/skin/images/ED_BackColor.gif" class="popup" popup="BackColorMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="BoldButton" value="&formatToolbar.boldChar;" onclick="EditorApplyStyle('b')">
|
||||
<observes element="Editor:Style:IsBold" attribute="bold" onchange="onBoldChange()"/>
|
||||
</titledbutton>
|
||||
<titledbutton id="ItalicButton" value="&formatToolbar.italicChar;" onclick="EditorApplyStyle('i')"/>
|
||||
<titledbutton id="UnderlineButton" value="&formatToolbar.underlineChar;" onclick="EditorApplyStyle('u')"/>
|
||||
<!--
|
||||
<titledbutton id="BoldButton" src="chrome://editor/skin/images/ED_Bold.gif" align="bottom" onclick="EditorApplyStyle('b')">
|
||||
<observes element="Editor:Style:IsBold" attribute="bold" onchange="onBoldChange()"/>
|
||||
</titledbutton>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Italic.gif" align="bottom" onclick="EditorApplyStyle('i')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Underline.gif" align="bottom" onclick="EditorApplyStyle('u')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Bullets.gif" align="bottom" onclick="EditorInsertList('ul')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Numbers.gif" align="bottom" onclick="EditorInsertList('ol')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Indent.gif" align="bottom" onclick="EditorIndent('indent')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Outdent.gif" align="bottom" onclick="EditorIndent('outdent')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Align.gif" align="bottom" class="popup" popup="AlignmentMenu"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Link.gif" align="bottom" onclick="EditorInsertLink()"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Image.gif" align="bottom" onclick= "EditorInsertImage()"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Spell.gif" align="bottom" class="popup" onclick="CheckSpelling()"/>
|
||||
<titledbutton id="ItalicButton" src="chrome://editor/skin/images/ED_Italic.gif" align="bottom" onclick="EditorApplyStyle('i')"/>
|
||||
<titledbutton id="UnderlineButton" src="chrome://editor/skin/images/ED_Underline.gif" align="bottom" onclick="EditorApplyStyle('u')"/>
|
||||
-->
|
||||
<titledbutton src="&bulletListIcon.url;" align="bottom" onclick="EditorInsertList('ul')"/>
|
||||
<titledbutton src="&numberListIcon.url;" align="bottom" onclick="EditorInsertList('ol')"/>
|
||||
<titledbutton src="&outdentIcon.url;" align="bottom" onclick="EditorIndent('outdent')"/>
|
||||
<titledbutton src="&indentIcon.url;" align="bottom" onclick="EditorIndent('indent')"/>
|
||||
<titledbutton src="&alignpopupIcon.url;" align="bottom" class="popup" popup="AlignmentWindow" popupanchor="bottomleft"/>
|
||||
<titledbutton src="&linkIcon.url;" align="bottom" value="&linkToolbarCmd.label;" onclick="EditorInsertLink()"/>
|
||||
<titledbutton src="&imageIcon.url;" align="bottom" value="&imageToolbarCmd.label;" onclick="EditorInsertImage()"/>
|
||||
<titledbutton src="&spellingIcon.url;" align="bottom" value="&spellToolbarCmd.label;" onclick="CheckSpelling()"/>
|
||||
</toolbar>
|
||||
</toolbox>
|
||||
|
||||
@ -179,104 +350,124 @@
|
||||
|
||||
<!-- Ripped off from navigator.xul; this should be a XUL fragment! -->
|
||||
<box align="horizontal" id="status-bar">
|
||||
<titledbutton value="[Notification Component]" onclick="doTests()"/>
|
||||
<titledbutton value="&tempNotification.label;" onclick="doTests()"/>
|
||||
<box align="vertical" style="width:100px">
|
||||
<spring flex="100%"/>
|
||||
<progressmeter mode="normal" value="0">
|
||||
</progressmeter>
|
||||
<spring flex="100%"/>
|
||||
</box>
|
||||
<titledbutton id="statusText" align="right" flex="100%" value="Document: Done" style="font-family:sans-serif;font-size:2.5mm">
|
||||
<titledbutton id="statusText" align="right" flex="100%" value="&tempDoneLoading.label;" style="font-family:sans-serif;font-size:2.5mm">
|
||||
</titledbutton>
|
||||
</box>
|
||||
|
||||
<!-- Popup Menus and Windows - Not displayed in primary chrome -->
|
||||
<popup id="ParagraphMenu">
|
||||
<menu>
|
||||
<menuitem name="Normal" onclick="EditorSetParagraphFormat('normal')"/>
|
||||
<menuitem name="Heading 1" onclick="EditorSetParagraphFormat('h1')"/>
|
||||
<menuitem name="Heading 2" onclick="EditorSetParagraphFormat('h2')"/>
|
||||
<menuitem name="Heading 3" onclick="EditorSetParagraphFormat('h3')"/>
|
||||
<menuitem name="Heading 4" onclick="EditorSetParagraphFormat('h4')"/>
|
||||
<menuitem name="Heading 5" onclick="EditorSetParagraphFormat('h5')"/>
|
||||
<menuitem name="Heading 6" onclick="EditorSetParagraphFormat('h6')"/>
|
||||
<menuitem name="Address" onclick="EditorSetParagraphFormat('address')"/>
|
||||
<menuitem name="Preformat" onclick="EditorSetParagraphFormat('pre')"/>
|
||||
<menuitem name="List item" onclick="EditorSetParagraphFormat('li')"/>
|
||||
<menuitem name="Definition term" onclick="EditorSetParagraphFormat('dt')"/>
|
||||
<menuitem name="Definition description" onclick="EditorSetParagraphFormat('dd')"/>
|
||||
<menuitem name="¶graphNormalCmd.label;" onclick="EditorSetParagraphFormat('normal')"/>
|
||||
<menuitem name="&headingOneCmd.label;" onclick="EditorSetParagraphFormat('h1')"/>
|
||||
<menuitem name="&headingTwoCmd.label;" onclick="EditorSetParagraphFormat('h2')"/>
|
||||
<menuitem name="&headingThreeCmd.label;" onclick="EditorSetParagraphFormat('h3')"/>
|
||||
<menuitem name="&headingFourCmd.label;" onclick="EditorSetParagraphFormat('h4')"/>
|
||||
<menuitem name="&headingFiveCmd.label;" onclick="EditorSetParagraphFormat('h5')"/>
|
||||
<menuitem name="&headingSixCmd.label;" onclick="EditorSetParagraphFormat('h6')"/>
|
||||
<menuitem name="¶graphAddressCmd.label;" onclick="EditorSetParagraphFormat('address')"/>
|
||||
<menuitem name="¶graphPreformatCmd.label;" onclick="EditorSetParagraphFormat('pre')"/>
|
||||
<menuitem name="¶graphListCmd.label;" onclick="EditorSetParagraphFormat('li')"/>
|
||||
<menuitem name="¶graphDfnTermCmd.label;" onclick="EditorSetParagraphFormat('dt')"/>
|
||||
<menuitem name="¶graphDfnDescCmd.label;" onclick="EditorSetParagraphFormat('dd')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<popup id="FontFaceMenu">
|
||||
<menu>
|
||||
<menuitem name="Default Variable Width" onclick="EditorSetFontFace('')"/>
|
||||
<menuitem name="Default Fixed Width" onclick="EditorSetFontFace('tt')"/>
|
||||
<menuitem name="&defaultVariableWidthCmd.label;" onclick="EditorSetFontFace('')"/>
|
||||
<menuitem name="&defaultFixedWidthCmd.label;" onclick="EditorSetFontFace('tt')"/>
|
||||
<separator/>
|
||||
<menuitem name="Arial, Helvetica" onclick="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
|
||||
<menuitem name="Times" onclick="EditorSetFontFace('Times New Roman, Times, serif')"/>
|
||||
<menuitem name="Courier" onclick="EditorSetFontFace('Courier New, Courier, mono')"/>
|
||||
<menuitem name="&arialHelveticaFont.label;" onclick="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
|
||||
<menuitem name="×Font.label;" onclick="EditorSetFontFace('Times New Roman, Times, serif')"/>
|
||||
<menuitem name="&courierFont.label;" onclick="EditorSetFontFace('Courier New, Courier, mono')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<popup id="FontSizeMenu">
|
||||
<menu>
|
||||
<menuitem name="-2" onclick="EditorSetFontSize('-2')"/>
|
||||
<menuitem name="-1" onclick="EditorSetFontSize('-1')"/>
|
||||
<menuitem name=" 0 (normal)" onclick="EditorSetFontSize(' 0')"/>
|
||||
<menuitem name="+1" onclick="EditorSetFontSize('+1')"/>
|
||||
<menuitem name="+2" onclick="EditorSetFontSize('+2')"/>
|
||||
<menuitem name="+3" onclick="EditorSetFontSize('+3')"/>
|
||||
<menuitem name="+4" onclick="EditorSetFontSize('+4')"/>
|
||||
<menuitem name="&sizeMinusTwoCmd.label;" onclick="EditorSetFontSize('-2')"/>
|
||||
<menuitem name="&sizeMinusOneCmd.label;" onclick="EditorSetFontSize('-1')"/>
|
||||
<menuitem name="&sizeNormalCmd.label;" onclick="EditorSetFontSize('0')"/>
|
||||
<menuitem name="&sizePlusOneCmd.label;" onclick="EditorSetFontSize('+1')"/>
|
||||
<menuitem name="&sizePlusTwoCmd.label;" onclick="EditorSetFontSize('+2')"/>
|
||||
<menuitem name="&sizePlusThreeCmd.label;" onclick="EditorSetFontSize('+3')"/>
|
||||
<menuitem name="&sizePlusFourCmd.label;" onclick="EditorSetFontSize('+4')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<popup id="BackColorMenu">
|
||||
<menu>
|
||||
<menuitem name="Black" onclick="EditorSetBackgroundColor('black')"/>
|
||||
<menuitem name="Gray" onclick="EditorSetBackgroundColor('gray')"/>
|
||||
<menuitem name="Silver" onclick="EditorSetBackgroundColor('silver')"/>
|
||||
<menuitem name="White" onclick="EditorSetBackgroundColor('white')"/>
|
||||
<menuitem name="Red" onclick="EditorSetBackgroundColor('red')"/>
|
||||
<menuitem name="Blue" onclick="EditorSetBackgroundColor('blue')"/>
|
||||
<menuitem name="Green" onclick="EditorSetBackgroundColor('green')"/>
|
||||
<menuitem name="Cyan" onclick="EditorSetBackgroundColor('cyan')"/>
|
||||
<menuitem name="Yellow" onclick="EditorSetBackgroundColor('yellow')"/>
|
||||
<menuitem name="Magenta" onclick="EditorSetBackgroundColor('magenta')"/>
|
||||
<menuitem name="&colorBlackCmd.label;" onclick="EditorSetBackgroundColor('black')"/>
|
||||
<menuitem name="&colorGrayCmd.label;" onclick="EditorSetBackgroundColor('gray')"/>
|
||||
<menuitem name="&colorSilverCmd.label;" onclick="EditorSetBackgroundColor('silver')"/>
|
||||
<menuitem name="&colorWhiteCmd.label;" onclick="EditorSetBackgroundColor('white')"/>
|
||||
<menuitem name="&colorRedCmd.label;" onclick="EditorSetBackgroundColor('red')"/>
|
||||
<menuitem name="&colorBlueCmd.label;" onclick="EditorSetBackgroundColor('blue')"/>
|
||||
<menuitem name="&colorGreenCmd.label;" onclick="EditorSetBackgroundColor('green')"/>
|
||||
<menuitem name="&colorCyanCmd.label;" onclick="EditorSetBackgroundColor('cyan')"/>
|
||||
<menuitem name="&colorYellowCmd.label;" onclick="EditorSetBackgroundColor('yellow')"/>
|
||||
<menuitem name="&colorMagentaCmd.label;" onclick="EditorSetBackgroundColor('magenta')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<popup id="TextColorMenu">
|
||||
<menu>
|
||||
<menuitem name="Black" onclick="EditorSetFontColor('black')"/>
|
||||
<menuitem name="Gray" onclick="EditorSetFontColor('gray')"/>
|
||||
<menuitem name="Silver" onclick="EditorSetFontColor('silver')"/>
|
||||
<menuitem name="White" onclick="EditorSetFontColor('white')"/>
|
||||
<menuitem name="Red" onclick="EditorSetFontColor('red')"/>
|
||||
<menuitem name="Blue" onclick="EditorSetFontColor('blue')"/>
|
||||
<menuitem name="Green" onclick="EditorSetFontColor('green')"/>
|
||||
<menuitem name="Cyan" onclick="EditorSetFontColor('cyan')"/>
|
||||
<menuitem name="Yellow" onclick="EditorSetFontColor('yellow')"/>
|
||||
<menuitem name="Magenta" onclick="EditorSetFontColor('magenta')"/>
|
||||
<menuitem name="&colorBlackCmd.label;" onclick="EditorSetFontColor('black')"/>
|
||||
<menuitem name="&colorGrayCmd.label;" onclick="EditorSetFontColor('gray')"/>
|
||||
<menuitem name="&colorSilverCmd.label;" onclick="EditorSetFontColor('silver')"/>
|
||||
<menuitem name="&colorWhiteCmd.label;" onclick="EditorSetFontColor('white')"/>
|
||||
<menuitem name="&colorRedCmd.label;" onclick="EditorSetFontColor('red')"/>
|
||||
<menuitem name="&colorBlueCmd.label;" onclick="EditorSetFontColor('blue')"/>
|
||||
<menuitem name="&colorGreenCmd.label;" onclick="EditorSetFontColor('green')"/>
|
||||
<menuitem name="&colorCyanCmd.label;" onclick="EditorSetFontColor('cyan')"/>
|
||||
<menuitem name="&colorYellowCmd.label;" onclick="EditorSetFontColor('yellow')"/>
|
||||
<menuitem name="&colorMagentaCmd.label;" onclick="EditorSetFontColor('magenta')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<popup id="AlignmentMenu">
|
||||
<menu>
|
||||
<menuitem name="Left" onclick="EditorAlign('left')"/>
|
||||
<menuitem name="Center" onclick="EditorAlign('center')"/>
|
||||
<menuitem name="Right" onclick="EditorAlign('right')"/>
|
||||
<menuitem name="Justified" onclick="EditorAlign('justify')"/>
|
||||
</menu>
|
||||
<popup id="AlignmentWindow" oncreate="OnCreateAlignmentPopup()">
|
||||
<window class="popup" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" align="vertical" flex="100%"
|
||||
width="70" height="110">
|
||||
<html:div flex="100%">
|
||||
<html:button class="PopupButton" onclick="window.close();">
|
||||
<html:img align="middle" src="chrome://editor/skin/images/ED_Left.gif"/>
|
||||
<html:span>&alignLeft.label;</html:span>
|
||||
</html:button>
|
||||
<html:button class="PopupButton" onclick="window.close();">
|
||||
<html:img align="middle" src="chrome://editor/skin/images/ED_Center.gif"/>
|
||||
<html:span>&alignCenter.label;</html:span>
|
||||
</html:button>
|
||||
<html:button class="PopupButton" onclick="window.close();">
|
||||
<html:img align="middle" src="chrome://editor/skin/images/ED_Right.gif"/>
|
||||
<html:span>&alignRight.label;</html:span>
|
||||
</html:button>
|
||||
<html:button class="PopupButton" onclick="window.close();">
|
||||
<html:img align="middle" src="chrome://editor/skin/images/ED_Justify.gif"/>
|
||||
<html:span>&alignJustify.label;</html:span>
|
||||
</html:button>
|
||||
</html:div>
|
||||
<!-- Trying to use autosizing and boxes
|
||||
<titledbutton class="PopupButton" value="&alignLeft.label;" style="min-width: 40px" onclick="opener.EditorAlign('left'); window.close();"/>
|
||||
<titledbutton class="PopupButton" value="&alignCenter.label;" style="min-width: 40px" onclick="opener.EditorAlign('center'); window.close();"/>
|
||||
<titledbutton class="PopupButton" value="&alignRight.label;" style="min-width: 40px" onclick="opener.EditorAlign('right'); window.close();"/>
|
||||
-->
|
||||
</window>
|
||||
</popup>
|
||||
|
||||
<popup id="FontFaceWindow">
|
||||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" width="40" height="40">
|
||||
<titledbutton value="Default Variable Width" onclick="opener.EditorSetFontFace(''); window.close();"/>
|
||||
<titledbutton value="Default Fixed Width" onclick="opener.EditorSetFontFace('tt'); window.close();"/>
|
||||
<titledbutton value="Arial, Helvetica" onclick="opener.EditorSetFontFace('Arial, Helvetica, sans-serif'); window.close();"/>
|
||||
<titledbutton value="Times" onclick="opener.EditorSetFontFace('Times New Roman, Times, serif'); window.close();"/>
|
||||
<titledbutton value="Courier" onclick="opener.EditorSetFontFace('Courier New, Courier, mono'); window.close();"/>
|
||||
<titledbutton value="&defaultVariableWidthCmd.label;" onclick="opener.EditorSetFontFace(''); window.close();"/>
|
||||
<titledbutton value="&defaultFixedWidthCmd.label;" onclick="opener.EditorSetFontFace('tt'); window.close();"/>
|
||||
<titledbutton value="&arialHelveticaFont.label;" onclick="opener.EditorSetFontFace('Arial, Helvetica, sans-serif'); window.close();"/>
|
||||
<titledbutton value="×Font.label;" onclick="opener.EditorSetFontFace('Times New Roman, Times, serif'); window.close();"/>
|
||||
<titledbutton value="&courierFont.label;" onclick="opener.EditorSetFontFace('Courier New, Courier, mono'); window.close();"/>
|
||||
</window>
|
||||
</popup>
|
||||
|
||||
|
@ -8,23 +8,187 @@
|
||||
|
||||
<!-- These entity declarations will go into a separate, locale file at some point -->
|
||||
<!-- Window title -->
|
||||
<!ENTITY editorWindow.title "Editor">
|
||||
<!ENTITY textEditorWindow.title "Text Editor">
|
||||
|
||||
<!-- Menu items: the . means that the menu item isn't implemented yet -->
|
||||
|
||||
<!-- File menu items -->
|
||||
<!ENTITY fileMenu.label "File">
|
||||
<!ENTITY newCmd.label ".New Window">
|
||||
<!ENTITY newCmd.label "New">
|
||||
<!ENTITY openCmd.label "Open...">
|
||||
<!ENTITY closeCmd.label "Close">
|
||||
<!ENTITY saveCmd.label "Save">
|
||||
<!ENTITY saveAsCmd.label "Save As...">
|
||||
<!ENTITY printSetupCmd.label ".Print Setup...">
|
||||
<!ENTITY printPreviewCmd.label "Print Preview">
|
||||
<!ENTITY printCmd.label "Print...">
|
||||
<!ENTITY quitCmd.label "Quit">
|
||||
|
||||
<!-- Edit menu items -->
|
||||
<!ENTITY editMenu.label "Edit">
|
||||
<!ENTITY undoCmd.label "Undo">
|
||||
<!ENTITY redoCmd.label "Redo">
|
||||
<!ENTITY cutCmd.label "Cut">
|
||||
<!ENTITY copyCmd.label "Copy">
|
||||
<!ENTITY pasteCmd.label "Paste">
|
||||
<!ENTITY pasteAsQuotationCmd.label "Paste">
|
||||
<!ENTITY clearCmd.label ".Clear">
|
||||
<!ENTITY selectAllCmd.label "Select All">
|
||||
<!ENTITY findCmd.label "Find...">
|
||||
<!ENTITY findAgainCmd.label "Find Again">
|
||||
|
||||
<!-- View menu items -->
|
||||
<!ENTITY viewMenu.label "View">
|
||||
<!ENTITY hideCompositionToolbarCmd.label ".Hide Composition Toolbar">
|
||||
<!ENTITY showCompositionToolbarCmd.label ".Show Composition Toolbar">
|
||||
<!ENTITY hideFormattingToolbarCmd.label ".Hide Format Toolbar">
|
||||
<!ENTITY showFormattingToolbarCmd.label ".Show Format Toolbar">
|
||||
|
||||
<!-- Insert menu items -->
|
||||
<!ENTITY insertMenu.label "Insert">
|
||||
<!ENTITY insertLinkCmd.label "Link...">
|
||||
<!ENTITY insertTargetCmd.label ".Target...">
|
||||
<!ENTITY insertImageCmd.label "Image...">
|
||||
<!ENTITY insertHLineCmd.label "Horizontal Line">
|
||||
<!ENTITY insertTableCmd.label "Table...">
|
||||
<!ENTITY insertHTMLSourceCmd.label ".HTML Source...">
|
||||
<!ENTITY insertLineBreakCmd.label ".Line Break">
|
||||
<!ENTITY insertBreakBelowImagesCmd.label ".Break Below Image(s)">
|
||||
|
||||
<!-- Format menu items -->
|
||||
<!ENTITY formatMenu.label "Format">
|
||||
|
||||
<!ENTITY fontfaceMenu.label "Font Face">
|
||||
<!ENTITY defaultVariableWidthCmd.label "Default Variable Width">
|
||||
<!ENTITY defaultFixedWidthCmd.label "Default Fixed Width">
|
||||
<!ENTITY arialHelveticaFont.label "Arial, Helvetica">
|
||||
<!ENTITY timesFont.label "Times">
|
||||
<!ENTITY courierFont.label "Courier">
|
||||
|
||||
<!ENTITY fontsizeMenu.label "Size">
|
||||
<!ENTITY sizeMinusTwoCmd.label " -2">
|
||||
<!ENTITY sizeMinusOneCmd.label " -1 (smaller)">
|
||||
<!ENTITY sizeNormalCmd.label " Normal">
|
||||
<!ENTITY sizePlusOneCmd.label " +1 (bigger)">
|
||||
<!ENTITY sizePlusTwoCmd.label " +2">
|
||||
<!ENTITY sizePlusThreeCmd.label " +3">
|
||||
<!ENTITY sizePlusFourCmd.label " +4">
|
||||
|
||||
<!ENTITY fontStyleMenu.label "Style">
|
||||
<!ENTITY styleBoldCmd.label "Bold">
|
||||
<!ENTITY styleItalicCmd.label "Italic">
|
||||
<!ENTITY styleUnderlineCmd.label "Underline">
|
||||
<!ENTITY styleStrikeThruCmd.label "Strikethrough">
|
||||
<!ENTITY styleSuperscriptCmd.label "Superscript">
|
||||
<!ENTITY styleSubscriptCmd.label "Subscript">
|
||||
<!ENTITY styleBlinkCmd.label "Blink">
|
||||
<!ENTITY styleNonbreakingCmd.label "Nonbreaking">
|
||||
|
||||
<!ENTITY fontColorMenu.label "Text Color">
|
||||
<!ENTITY colorBlackCmd.label "Black">
|
||||
<!ENTITY colorGrayCmd.label "Gray">
|
||||
<!ENTITY colorSilverCmd.label "Silver">
|
||||
<!ENTITY colorWhiteCmd.label "White">
|
||||
<!ENTITY colorRedCmd.label "Red">
|
||||
<!ENTITY colorBlueCmd.label "Blue">
|
||||
<!ENTITY colorGreenCmd.label "Green">
|
||||
<!ENTITY colorCyanCmd.label "Cyan">
|
||||
<!ENTITY colorYellowCmd.label "Yellow">
|
||||
<!ENTITY colorMagentaCmd.label "Magenta">
|
||||
|
||||
<!ENTITY backgroundColorMenu.label "Background Color">
|
||||
|
||||
<!ENTITY paragraphHeadingMenu.label "Paragraph / Heading">
|
||||
<!ENTITY paragraphNormalCmd.label "Normal">
|
||||
<!ENTITY headingOneCmd.label "Heading 1">
|
||||
<!ENTITY headingTwoCmd.label "Heading 2">
|
||||
<!ENTITY headingThreeCmd.label "Heading 3">
|
||||
<!ENTITY headingFourCmd.label "Heading 4">
|
||||
<!ENTITY headingFiveCmd.label "Heading 5">
|
||||
<!ENTITY headingSixCmd.label "Heading 6">
|
||||
<!ENTITY paragraphBlockquoteCmd.label "Blockquote">
|
||||
<!ENTITY paragraphAddressCmd.label "Address">
|
||||
<!ENTITY paragraphPreformatCmd.label "Preformat">
|
||||
<!ENTITY paragraphListCmd.label "List item">
|
||||
<!ENTITY paragraphDfnTermCmd.label "Definition term">
|
||||
<!ENTITY paragraphDfnDescCmd.label "Definition description">
|
||||
|
||||
<!ENTITY removeAllStylesCmd.label "Remove All Style(s)">
|
||||
|
||||
<!ENTITY toolsMenu.label "Tools">
|
||||
<!ENTITY newBrowserCmd.label "New Browser Window">
|
||||
<!ENTITY newPlaintextEditorCmd.label "New Plaintext Editor">
|
||||
<!ENTITY checkSpellingCmd.label "Check Spelling...">
|
||||
<!ENTITY setFocusCmd.label "Set Focus">
|
||||
|
||||
<!ENTITY debugMenu.label "Debug">
|
||||
<!ENTITY outputTextCmd.label "Output Text">
|
||||
<!ENTITY outputHTMLCmd.label "Output HTML">
|
||||
<!ENTITY insertTextCmd.label "Insert Text">
|
||||
<!ENTITY testSelectionCmd.label "Test Selection">
|
||||
<!ENTITY testDocumentCmd.label "Test Document">
|
||||
<!ENTITY runUnitTestsCmd.label "Run Unit Tests">
|
||||
|
||||
<!ENTITY helpMenu.label "Help">
|
||||
<!ENTITY aboutCmd.label ".About">
|
||||
|
||||
<!-- formatting toolbar -->
|
||||
<!ENTITY paragraphToolbarMenu.label "Paragraph">
|
||||
<!ENTITY fontToolbarMenu.label "Font">
|
||||
<!ENTITY sizeToolbarMenu.label "Size">
|
||||
<!ENTITY formatToolbar.boldChar "B">
|
||||
<!ENTITY formatToolbar.italicChar "I">
|
||||
<!ENTITY formatToolbar.underlineChar "U">
|
||||
<!ENTITY bulletListIcon.url "chrome://editor/skin/images/ED_Bullets.gif">
|
||||
<!ENTITY numberListIcon.url "chrome://editor/skin/images/ED_Numbers.gif">
|
||||
<!ENTITY outdentIcon.url "chrome://editor/skin/images/ED_Outdent.gif">
|
||||
<!ENTITY indentIcon.url "chrome://editor/skin/images/ED_Indent.gif">
|
||||
<!ENTITY alignpopupIcon.url "chrome://editor/skin/images/ED_Align.gif">
|
||||
<!ENTITY alignLeft.label "Left">
|
||||
<!ENTITY alignCenter.label "Center">
|
||||
<!ENTITY alignRight.label "Right">
|
||||
<!ENTITY alignJustify.label "Justify">
|
||||
<!ENTITY linkIcon.url "chrome://editor/skin/images/ED_Link.gif">
|
||||
<!ENTITY imageIcon.url "chrome://editor/skin/images/ED_Image.gif">
|
||||
<!ENTITY spellingIcon.url "chrome://editor/skin/images/ED_Spell.gif">
|
||||
<!ENTITY linkToolbarCmd.label "Link">
|
||||
<!ENTITY imageToolbarCmd.label "Image">
|
||||
<!ENTITY spellToolbarCmd.label "Spell">
|
||||
|
||||
<!ENTITY tempNotification.label "[Notification Component]">
|
||||
<!ENTITY tempDoneLoading.label "Document: Done">
|
||||
|
||||
]>
|
||||
|
||||
<window id="main-window" xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
onunload="EditorShutdown()" title="TextEditor" align="vertical">
|
||||
onunload="EditorShutdown()" title="&textEditorWindow.title;" align="vertical">
|
||||
|
||||
<html:script language="JavaScript" src="chrome://editor/content/EditorCommands.js">
|
||||
</html:script>
|
||||
|
||||
<keyset id="defaultKeySet">
|
||||
<key id="acmdkey" disabled="false" shift="false" command="true" alt="false" key="a" onkeypress="EditorSelectAll()" />
|
||||
<key id="bcmdkey" disabled="false" shift="false" command="true" alt="false" key="b" onkeypress="EditorApplyStyle('b')"/>
|
||||
<key id="ccmdkey" disabled="false" shift="false" command="true" alt="false" key="c" onkeypress="EditorCopy()" />
|
||||
<key id="fcmdkey" disabled="false" shift="false" command="true" alt="false" key="f" onkeypress="EditorFind()" />
|
||||
<key id="gcmdkey" disabled="false" shift="false" command="true" alt="false" key="g" onkeypress="EditorFindNext()" />
|
||||
<key id="icmdkey" disabled="false" shift="false" command="true" alt="false" key="i" onkeypress="EditorApplyStyle('i')"/>
|
||||
<key id="kcmdkey" disabled="false" shift="false" command="true" alt="false" key="k" onkeypress="CheckSpelling()" />
|
||||
<key id="ncmdkey" disabled="false" shift="false" command="true" alt="false" key="n" onkeypress="EditorNew()" />
|
||||
<key id="ocmdkey" disabled="false" shift="false" command="true" alt="false" key="o" onkeypress="EditorOpen()" />
|
||||
<key id="pcmdkey" disabled="false" shift="false" command="true" alt="false" key="p" onkeypress="EditorPrint()" />
|
||||
<key id="qcmdkey" disabled="false" shift="false" command="true" alt="false" key="q" onkeypress="EditorExit()" />
|
||||
<key id="ucmdkey" disabled="false" shift="false" command="true" alt="false" key="u" onkeypress="EditorApplyStyle('u')"/>
|
||||
<key id="vcmdkey" disabled="false" shift="false" command="true" alt="false" key="v" onkeypress="EditorPaste()" />
|
||||
<key id="wcmdkey" disabled="false" shift="false" command="true" alt="false" key="w" onkeypress="EditorClose()" />
|
||||
<key id="xcmdkey" disabled="false" shift="false" command="true" alt="false" key="x" onkeypress="EditorCut()" />
|
||||
<key id="ycmdkey" disabled="false" shift="false" command="true" alt="false" key="y" onkeypress="EditorRedo()" />
|
||||
<key id="zcmdkey" disabled="false" shift="false" command="true" alt="false" key="z" onkeypress="EditorUndo()" />
|
||||
|
||||
<!-- how to handle return, enter, tab, function keys, arrow keys, others? -->
|
||||
</keyset>
|
||||
|
||||
<broadcaster id="args" value="chrome://editor/content/EditorInitPagePlain.html"/>
|
||||
<broadcaster id="canPrint"/>
|
||||
|
||||
@ -33,118 +197,118 @@
|
||||
<observes element="dialog.start" attribute="ready" onchange="EditorStartup('text')"/>
|
||||
|
||||
<menubar>
|
||||
<menu name="File">
|
||||
<menuitem name="New" onclick="EditorNew()"/>
|
||||
<menuitem name="Open..." onclick="EditorOpen()"/>
|
||||
<menuitem name=".Close" onclick="EditorClose()"/>
|
||||
<menu name="&fileMenu.label;">
|
||||
<menuitem name="&newCmd.label;" onclick="EditorNew()"/>
|
||||
<menuitem name="&openCmd.label;" onclick="EditorOpen()"/>
|
||||
<menuitem name="&closeCmd.label;" onclick="EditorClose()"/>
|
||||
<separator />
|
||||
<menuitem name="Save" onclick="EditorSave()"/>
|
||||
<menuitem name="Save As..." onclick="EditorSaveAs()"/>
|
||||
<menuitem name="&saveCmd.label;" onclick="EditorSave()"/>
|
||||
<menuitem name="&saveAsCmd.label;" onclick="EditorSaveAs()"/>
|
||||
<separator />
|
||||
<menuitem name=".Print Setup..." onclick=""/>
|
||||
<menuitem name="Print Preview" onclick="EditorPrintPreview()"/>
|
||||
<menuitem name=".Print..." onclick="EditorPrint()"/>
|
||||
<menuitem name="&printSetupCmd.label;" onclick=""/>
|
||||
<menuitem name="&printPreviewCmd.label;" onclick="EditorPrintPreview()"/>
|
||||
<menuitem name="&printCmd.label;" onclick="EditorPrint()"/>
|
||||
<separator />
|
||||
<menuitem name="Quit" onclick="EditorExit()"/>
|
||||
<menuitem name="&quitCmd.label;" onclick="EditorExit()"/>
|
||||
</menu>
|
||||
|
||||
<menu name="Edit">
|
||||
<menuitem name="Undo" onclick="EditorUndo()"/>
|
||||
<menuitem name="Redo" onclick="EditorRedo()"/>
|
||||
<menu name="&editMenu.label;">
|
||||
<menuitem name="&undoCmd.label;" onclick="EditorUndo()"/>
|
||||
<menuitem name="&redoCmd.label;" onclick="EditorRedo()"/>
|
||||
<separator />
|
||||
<menuitem name="Cut" onclick="EditorCut()"/>
|
||||
<menuitem name="Copy" onclick="EditorCopy()"/>
|
||||
<menuitem name="Paste" onclick="EditorPaste()"/>
|
||||
<menuitem name="Paste as Quotation" onclick="EditorPasteAsQuotation()"/>
|
||||
<menuitem name=".Clear" onclick=""/>
|
||||
<menuitem name="&cutCmd.label;" onclick="EditorCut()"/>
|
||||
<menuitem name="©Cmd.label;" onclick="EditorCopy()"/>
|
||||
<menuitem name="&pasteCmd.label;" onclick="EditorPaste()"/>
|
||||
<menuitem name="&pasteAsQuotationCmd.label;" onclick="EditorPasteAsQuotation()"/>
|
||||
<menuitem name="&clearCmd.label;" onclick=""/>
|
||||
<separator />
|
||||
<menuitem name="Select All" onclick="EditorSelectAll()"/>
|
||||
<menuitem name="&selectAllCmd.label;" onclick="EditorSelectAll()"/>
|
||||
<separator />
|
||||
<menuitem name="Find..." onclick="EditorFind()"/>
|
||||
<menuitem name="Find Again" onclick="EditorFindNext()"/>
|
||||
<menuitem name="&findCmd.label;" onclick="EditorFind()"/>
|
||||
<menuitem name="&findAgainCmd.label;" onclick="EditorFindNext()"/>
|
||||
</menu>
|
||||
|
||||
<menu name="View">
|
||||
<menuitem name=".Hide Composition Toolbar" onclick=""/>
|
||||
<menuitem name=".Hide Format Toolbar" onclick="" />
|
||||
<menu name="&viewMenu.label;">
|
||||
<menuitem name="&hideCompositionToolbarCmd.label;" onclick=""/>
|
||||
<menuitem name="&hideFormattingToolbarCmd.label;" onclick="" />
|
||||
</menu>
|
||||
|
||||
<menu name="Insert">
|
||||
<menuitem name="Link..." onclick="EditorInsertLink()"/>
|
||||
<menuitem name=".Target..." onclick=""/>
|
||||
<menuitem name="Image..." onclick="EditorInsertImage()"/>
|
||||
<menuitem name=".Horizontal Line" onclick=""/>
|
||||
<menuitem name=".Table" onclick=""/>
|
||||
<menuitem name=".HTML Tag..." onclick=""/>
|
||||
<menu name="&insertMenu.label;">
|
||||
<menuitem name="&insertLinkCmd.label;" onclick="EditorInsertLink()"/>
|
||||
<menuitem name="&insertTargetCmd.label;" onclick=""/>
|
||||
<menuitem name="&insertImageCmd.label;" onclick="EditorInsertImage()"/>
|
||||
<menuitem name="&insertHLineCmd.label;" onclick="EditorInsertHLine()"/>
|
||||
<menuitem name="&insertTableCmd.label;" onclick="EditorInsertTable()"/>
|
||||
<menuitem name="&insertHTMLSourceCmd.label;" onclick="EditorInsertHTML()"/>
|
||||
<separator />
|
||||
<menuitem name=".Line Break" onclick=""/>
|
||||
<menuitem name=".Break Below Image(s)" onclick=""/>
|
||||
<menuitem name="&insertLineBreakCmd.label;" onclick=""/>
|
||||
<menuitem name="&insertBreakBelowImagesCmd.label;" onclick=""/>
|
||||
</menu>
|
||||
<menu name="Format">
|
||||
<menu name="Font Face">
|
||||
<menuitem name="Default Variable Width" onclick="EditorSetFontFace('')"/>
|
||||
<menuitem name="Default Fixed Width" onclick="EditorSetFontFace('tt')"/>
|
||||
<menu name="&formatMenu.label;">
|
||||
<menu name="&fontfaceMenu.label;">
|
||||
<menuitem name="&defaultVariableWidthCmd.label;" onclick="EditorSetFontFace('')"/>
|
||||
<menuitem name="&defaultFixedWidthCmd.label;" onclick="EditorSetFontFace('tt')"/>
|
||||
<separator/>
|
||||
<menuitem name="Arial, Helvetica" onclick="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
|
||||
<menuitem name="Times" onclick="EditorSetFontFace('Times New Roman, Times, serif')"/>
|
||||
<menuitem name="Courier" onclick="EditorSetFontFace('Courier New, Courier, mono')"/>
|
||||
<menuitem name="&arialHelveticaFont.label;" onclick="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
|
||||
<menuitem name="×Font.label;" onclick="EditorSetFontFace('Times New Roman, Times, serif')"/>
|
||||
<menuitem name="&courierFont.label;" onclick="EditorSetFontFace('Courier New, Courier, mono')"/>
|
||||
</menu>
|
||||
<menu name="Size">
|
||||
<menuitem name="-2" onclick="EditorSetFontSize('-2')"/>
|
||||
<menuitem name="-1" onclick="EditorSetFontSize('-1')"/>
|
||||
<menuitem name=" 0" onclick="EditorSetFontSize(' 0')"/>
|
||||
<menuitem name="+1" onclick="EditorSetFontSize('+1')"/>
|
||||
<menuitem name="+2" onclick="EditorSetFontSize('+2')"/>
|
||||
<menuitem name="+3" onclick="EditorSetFontSize('+3')"/>
|
||||
<menuitem name="+4" onclick="EditorSetFontSize('+4')"/>
|
||||
<menu name="&fontsizeMenu.label;">
|
||||
<menuitem name="&sizeMinusTwoCmd.label;" onclick="EditorSetFontSize('-2')"/>
|
||||
<menuitem name="&sizeMinusOneCmd.label;" onclick="EditorSetFontSize('-1')"/>
|
||||
<menuitem name="&sizeNormalCmd.label;" onclick="EditorSetFontSize('0')"/>
|
||||
<menuitem name="&sizePlusOneCmd.label;" onclick="EditorSetFontSize('+1')"/>
|
||||
<menuitem name="&sizePlusTwoCmd.label;" onclick="EditorSetFontSize('+2')"/>
|
||||
<menuitem name="&sizePlusThreeCmd.label;" onclick="EditorSetFontSize('+3')"/>
|
||||
<menuitem name="&sizePlusFourCmd.label;" onclick="EditorSetFontSize('+4')"/>
|
||||
</menu>
|
||||
<menu name="Style">
|
||||
<menuitem name="Bold" onclick="EditorApplyStyle('b')"/>
|
||||
<menuitem name="Italic" onclick="EditorApplyStyle('i')"/>
|
||||
<menuitem name="Underline" onclick="EditorApplyStyle('u')"/>
|
||||
<menuitem name="Strikethrough" onclick="EditorApplyStyle('strike')"/>
|
||||
<menuitem name="Superscript" onclick="EditorApplyStyle('sup')"/>
|
||||
<menuitem name="Subscript" onclick="EditorApplyStyle('sub')"/>
|
||||
<menuitem name="Blink" onclick="EditorApplyStyle('blink')"/>
|
||||
<menuitem name="Nonbreaking" onclick="EditorApplyStyle('nobr')"/>
|
||||
<menu name="&fontStyleMenu.label;">
|
||||
<menuitem name="&styleBoldCmd.label;" onclick="EditorApplyStyle('b')"/>
|
||||
<menuitem name="&styleItalicCmd.label;" onclick="EditorApplyStyle('i')"/>
|
||||
<menuitem name="&styleUnderlineCmd.label;" onclick="EditorApplyStyle('u')"/>
|
||||
<menuitem name="&styleStrikeThruCmd.label;" onclick="EditorApplyStyle('strike')"/>
|
||||
<menuitem name="&styleSuperscriptCmd.label;" onclick="EditorApplyStyle('sup')"/>
|
||||
<menuitem name="&styleSubscriptCmd.label;" onclick="EditorApplyStyle('sub')"/>
|
||||
<menuitem name="&styleBlinkCmd.label;" onclick="EditorApplyStyle('blink')"/>
|
||||
<menuitem name="&styleNonbreakingCmd.label;" onclick="EditorApplyStyle('nobr')"/>
|
||||
</menu>
|
||||
<menuitem name=".Color..." onclick=""/>
|
||||
<menuitem name="Remove All Style(s)" onclick="EditorRemoveStyle('all')"/>
|
||||
<menuitem name="&fontColorMenu.label;" onclick=""/>
|
||||
<menuitem name="&removeAllStylesCmd.label;" onclick="EditorRemoveStyle('all')"/>
|
||||
<separator />
|
||||
<menu name="Paragraph / Heading">
|
||||
<menuitem name="Normal" onclick="EditorSetParagraphFormat('normal')"/>
|
||||
<menuitem name="Heading 1" onclick="EditorSetParagraphFormat('h1')"/>
|
||||
<menuitem name="Heading 2" onclick="EditorSetParagraphFormat('h2')"/>
|
||||
<menuitem name="Heading 3" onclick="EditorSetParagraphFormat('h3')"/>
|
||||
<menuitem name="Heading 4" onclick="EditorSetParagraphFormat('h4')"/>
|
||||
<menuitem name="Heading 5" onclick="EditorSetParagraphFormat('h5')"/>
|
||||
<menuitem name="Heading 6" onclick="EditorSetParagraphFormat('h6')"/>
|
||||
<menuitem name="Address" onclick="EditorSetParagraphFormat('address')"/>
|
||||
<menuitem name="Preformat" onclick="EditorSetParagraphFormat('pre')"/>
|
||||
<menuitem name="List item" onclick="EditorSetParagraphFormat('li')"/>
|
||||
<menuitem name="Definition term" onclick="EditorSetParagraphFormat('dt')"/>
|
||||
<menuitem name="Definition description" onclick="EditorSetParagraphFormat('dd')"/>
|
||||
<menu name="¶graphHeadingMenu.label;">
|
||||
<menuitem name="¶graphNormalCmd.label;" onclick="EditorSetParagraphFormat('normal')"/>
|
||||
<menuitem name="&headingOneCmd.label;" onclick="EditorSetParagraphFormat('h1')"/>
|
||||
<menuitem name="&headingTwoCmd.label;" onclick="EditorSetParagraphFormat('h2')"/>
|
||||
<menuitem name="&headingThreeCmd.label;" onclick="EditorSetParagraphFormat('h3')"/>
|
||||
<menuitem name="&headingFourCmd.label;" onclick="EditorSetParagraphFormat('h4')"/>
|
||||
<menuitem name="&headingFiveCmd.label;" onclick="EditorSetParagraphFormat('h5')"/>
|
||||
<menuitem name="&headingSixCmd.label;" onclick="EditorSetParagraphFormat('h6')"/>
|
||||
<menuitem name="¶graphAddressCmd.label;" onclick="EditorSetParagraphFormat('address')"/>
|
||||
<menuitem name="¶graphPreformatCmd.label;" onclick="EditorSetParagraphFormat('pre')"/>
|
||||
<menuitem name="¶graphListCmd.label;" onclick="EditorSetParagraphFormat('li')"/>
|
||||
<menuitem name="¶graphDfnTermCmd.label;" onclick="EditorSetParagraphFormat('dt')"/>
|
||||
<menuitem name="¶graphDfnDescCmd.label;" onclick="EditorSetParagraphFormat('dd')"/>
|
||||
</menu>
|
||||
</menu>
|
||||
<menu name="Tools">
|
||||
<menuitem name="New Browser Window" onclick="EditorNewBrowser()"/>
|
||||
<menuitem name="New Plaintext Editor" onclick="EditorNewPlaintext()"/>
|
||||
<menu name="&toolsMenu.label;">
|
||||
<menuitem name="&newBrowserCmd.label;" onclick="EditorNewBrowser()"/>
|
||||
<menuitem name="&newPlaintextEditorCmd.label;" onclick="EditorNewPlaintext()"/>
|
||||
<separator />
|
||||
<menuitem name="Spell Check" onclick="CheckSpelling()"/>
|
||||
<menuitem name="Set Focus" onclick="window.focus()"/>
|
||||
<menuitem name="&checkSpellingCmd.label;" onclick="CheckSpelling()"/>
|
||||
<menuitem name="&setFocusCmd.label;" onclick="window.focus()"/>
|
||||
</menu>
|
||||
<menu name="Debug">
|
||||
<menuitem name="Output Text" onclick="EditorGetText()"/>
|
||||
<menuitem name="Output HTML" onclick="EditorGetHTML()"/>
|
||||
<menu name="&debugMenu.label;">
|
||||
<menuitem name="&outputTextCmd.label;" onclick="EditorGetText()"/>
|
||||
<menuitem name="&outputHTMLCmd.label;" onclick="EditorGetHTML()"/>
|
||||
<separator />
|
||||
<menuitem name="Insert Text" onclick="EditorInsertText()"/>
|
||||
<menuitem name="&insertTextCmd.label;" onclick="EditorInsertText('All good things come to those who wait. ')"/>
|
||||
<separator />
|
||||
<menuitem name="Test Selection" onclick="EditorTestSelection()"/>
|
||||
<menuitem name="Test Document" onclick="EditorTestDocument()"/>
|
||||
<menuitem name="Run Unit Tests" onclick="EditorUnitTests()"/>
|
||||
<menuitem name="&testSelectionCmd.label;" onclick="EditorTestSelection()"/>
|
||||
<menuitem name="&testDocumentCmd.label;" onclick="EditorTestDocument()"/>
|
||||
<menuitem name="&runUnitTestsCmd.label;" onclick="EditorUnitTests()"/>
|
||||
</menu>
|
||||
<menu name="Help">
|
||||
<menuitem name=".About" onclick=""/>
|
||||
<menu name="&helpMenu.label;">
|
||||
<menuitem name="&aboutCmd.label;" onclick=""/>
|
||||
</menu>
|
||||
</menubar>
|
||||
|
||||
@ -154,24 +318,31 @@
|
||||
|
||||
<toolbox>
|
||||
<toolbar>
|
||||
<titledbutton id="ParagraphPopup" value="Paragraph" class="popup" align="left" popup="ParagraphMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="FontFacePopup" value="Font" class="popup" align="left" popup="FontFaceMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="FontSizePopup" value="Size" class="popup" align="left" popup="FontSizeMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="ParagraphPopup" value="¶graphToolbarMenu.label;" class="popup" align="left" popup="ParagraphMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="FontFacePopup" value="&fontToolbarMenu.label;" class="popup" align="left" popup="FontFaceMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="FontSizePopup" value="&sizeToolbarMenu.label;" class="popup" align="left" popup="FontSizeMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="TextColorPopup" src="chrome://editor/skin/images/ED_TextColor.gif" class="popup" popup="TextColorMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="BackColorPopup" src="chrome://editor/skin/images/ED_BackColor.gif" class="popup" popup="BackColorMenu" popupanchor="bottomleft"/>
|
||||
<titledbutton id="BoldButton" value="&formatToolbar.boldChar;" onclick="EditorApplyStyle('b')">
|
||||
<observes element="Editor:Style:IsBold" attribute="bold" onchange="onBoldChange()"/>
|
||||
</titledbutton>
|
||||
<titledbutton id="ItalicButton" value="&formatToolbar.italicChar;" onclick="EditorApplyStyle('i')"/>
|
||||
<titledbutton id="UnderlineButton" value="&formatToolbar.underlineChar;" onclick="EditorApplyStyle('u')"/>
|
||||
<!--
|
||||
<titledbutton id="BoldButton" src="chrome://editor/skin/images/ED_Bold.gif" align="bottom" onclick="EditorApplyStyle('b')">
|
||||
<observes element="Editor:Style:IsBold" attribute="bold" onchange="onBoldChange()"/>
|
||||
</titledbutton>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Italic.gif" align="bottom" onclick="EditorApplyStyle('i')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Underline.gif" align="bottom" onclick="EditorApplyStyle('u')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Bullets.gif" align="bottom" onclick="EditorInsertList('ul')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Numbers.gif" align="bottom" onclick="EditorInsertList('ol')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Indent.gif" align="bottom" onclick="EditorIndent('indent')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Outdent.gif" align="bottom" onclick="EditorIndent('outdent')"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Align.gif" align="bottom" class="popup" popup="AlignmentMenu"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Link.gif" align="bottom" onclick="EditorInsertLink()"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Image.gif" align="bottom" onclick= "EditorInsertImage()"/>
|
||||
<titledbutton src="chrome://editor/skin/images/ED_Spell.gif" align="bottom" class="popup" onclick="CheckSpelling()"/>
|
||||
<titledbutton id="ItalicButton" src="chrome://editor/skin/images/ED_Italic.gif" align="bottom" onclick="EditorApplyStyle('i')"/>
|
||||
<titledbutton id="UnderlineButton" src="chrome://editor/skin/images/ED_Underline.gif" align="bottom" onclick="EditorApplyStyle('u')"/>
|
||||
-->
|
||||
<titledbutton src="&bulletListIcon.url;" align="bottom" onclick="EditorInsertList('ul')"/>
|
||||
<titledbutton src="&numberListIcon.url;" align="bottom" onclick="EditorInsertList('ol')"/>
|
||||
<titledbutton src="&outdentIcon.url;" align="bottom" onclick="EditorIndent('outdent')"/>
|
||||
<titledbutton src="&indentIcon.url;" align="bottom" onclick="EditorIndent('indent')"/>
|
||||
<titledbutton src="&alignpopupIcon.url;" align="bottom" class="popup" popup="AlignmentWindow" popupanchor="bottomleft"/>
|
||||
<titledbutton src="&linkIcon.url;" align="bottom" value="&linkToolbarCmd.label;" onclick="EditorInsertLink()"/>
|
||||
<titledbutton src="&imageIcon.url;" align="bottom" value="&imageToolbarCmd.label;" onclick="EditorInsertImage()"/>
|
||||
<titledbutton src="&spellingIcon.url;" align="bottom" value="&spellToolbarCmd.label;" onclick="CheckSpelling()"/>
|
||||
</toolbar>
|
||||
</toolbox>
|
||||
|
||||
@ -179,104 +350,124 @@
|
||||
|
||||
<!-- Ripped off from navigator.xul; this should be a XUL fragment! -->
|
||||
<box align="horizontal" id="status-bar">
|
||||
<titledbutton value="[Notification Component]" onclick="doTests()"/>
|
||||
<titledbutton value="&tempNotification.label;" onclick="doTests()"/>
|
||||
<box align="vertical" style="width:100px">
|
||||
<spring flex="100%"/>
|
||||
<progressmeter mode="normal" value="0">
|
||||
</progressmeter>
|
||||
<spring flex="100%"/>
|
||||
</box>
|
||||
<titledbutton id="statusText" align="right" flex="100%" value="Document: Done" style="font-family:sans-serif;font-size:2.5mm">
|
||||
<titledbutton id="statusText" align="right" flex="100%" value="&tempDoneLoading.label;" style="font-family:sans-serif;font-size:2.5mm">
|
||||
</titledbutton>
|
||||
</box>
|
||||
|
||||
<!-- Popup Menus and Windows - Not displayed in primary chrome -->
|
||||
<popup id="ParagraphMenu">
|
||||
<menu>
|
||||
<menuitem name="Normal" onclick="EditorSetParagraphFormat('normal')"/>
|
||||
<menuitem name="Heading 1" onclick="EditorSetParagraphFormat('h1')"/>
|
||||
<menuitem name="Heading 2" onclick="EditorSetParagraphFormat('h2')"/>
|
||||
<menuitem name="Heading 3" onclick="EditorSetParagraphFormat('h3')"/>
|
||||
<menuitem name="Heading 4" onclick="EditorSetParagraphFormat('h4')"/>
|
||||
<menuitem name="Heading 5" onclick="EditorSetParagraphFormat('h5')"/>
|
||||
<menuitem name="Heading 6" onclick="EditorSetParagraphFormat('h6')"/>
|
||||
<menuitem name="Address" onclick="EditorSetParagraphFormat('address')"/>
|
||||
<menuitem name="Preformat" onclick="EditorSetParagraphFormat('pre')"/>
|
||||
<menuitem name="List item" onclick="EditorSetParagraphFormat('li')"/>
|
||||
<menuitem name="Definition term" onclick="EditorSetParagraphFormat('dt')"/>
|
||||
<menuitem name="Definition description" onclick="EditorSetParagraphFormat('dd')"/>
|
||||
<menuitem name="¶graphNormalCmd.label;" onclick="EditorSetParagraphFormat('normal')"/>
|
||||
<menuitem name="&headingOneCmd.label;" onclick="EditorSetParagraphFormat('h1')"/>
|
||||
<menuitem name="&headingTwoCmd.label;" onclick="EditorSetParagraphFormat('h2')"/>
|
||||
<menuitem name="&headingThreeCmd.label;" onclick="EditorSetParagraphFormat('h3')"/>
|
||||
<menuitem name="&headingFourCmd.label;" onclick="EditorSetParagraphFormat('h4')"/>
|
||||
<menuitem name="&headingFiveCmd.label;" onclick="EditorSetParagraphFormat('h5')"/>
|
||||
<menuitem name="&headingSixCmd.label;" onclick="EditorSetParagraphFormat('h6')"/>
|
||||
<menuitem name="¶graphAddressCmd.label;" onclick="EditorSetParagraphFormat('address')"/>
|
||||
<menuitem name="¶graphPreformatCmd.label;" onclick="EditorSetParagraphFormat('pre')"/>
|
||||
<menuitem name="¶graphListCmd.label;" onclick="EditorSetParagraphFormat('li')"/>
|
||||
<menuitem name="¶graphDfnTermCmd.label;" onclick="EditorSetParagraphFormat('dt')"/>
|
||||
<menuitem name="¶graphDfnDescCmd.label;" onclick="EditorSetParagraphFormat('dd')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<popup id="FontFaceMenu">
|
||||
<menu>
|
||||
<menuitem name="Default Variable Width" onclick="EditorSetFontFace('')"/>
|
||||
<menuitem name="Default Fixed Width" onclick="EditorSetFontFace('tt')"/>
|
||||
<menuitem name="&defaultVariableWidthCmd.label;" onclick="EditorSetFontFace('')"/>
|
||||
<menuitem name="&defaultFixedWidthCmd.label;" onclick="EditorSetFontFace('tt')"/>
|
||||
<separator/>
|
||||
<menuitem name="Arial, Helvetica" onclick="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
|
||||
<menuitem name="Times" onclick="EditorSetFontFace('Times New Roman, Times, serif')"/>
|
||||
<menuitem name="Courier" onclick="EditorSetFontFace('Courier New, Courier, mono')"/>
|
||||
<menuitem name="&arialHelveticaFont.label;" onclick="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
|
||||
<menuitem name="×Font.label;" onclick="EditorSetFontFace('Times New Roman, Times, serif')"/>
|
||||
<menuitem name="&courierFont.label;" onclick="EditorSetFontFace('Courier New, Courier, mono')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<popup id="FontSizeMenu">
|
||||
<menu>
|
||||
<menuitem name="-2" onclick="EditorSetFontSize('-2')"/>
|
||||
<menuitem name="-1" onclick="EditorSetFontSize('-1')"/>
|
||||
<menuitem name=" 0 (normal)" onclick="EditorSetFontSize(' 0')"/>
|
||||
<menuitem name="+1" onclick="EditorSetFontSize('+1')"/>
|
||||
<menuitem name="+2" onclick="EditorSetFontSize('+2')"/>
|
||||
<menuitem name="+3" onclick="EditorSetFontSize('+3')"/>
|
||||
<menuitem name="+4" onclick="EditorSetFontSize('+4')"/>
|
||||
<menuitem name="&sizeMinusTwoCmd.label;" onclick="EditorSetFontSize('-2')"/>
|
||||
<menuitem name="&sizeMinusOneCmd.label;" onclick="EditorSetFontSize('-1')"/>
|
||||
<menuitem name="&sizeNormalCmd.label;" onclick="EditorSetFontSize('0')"/>
|
||||
<menuitem name="&sizePlusOneCmd.label;" onclick="EditorSetFontSize('+1')"/>
|
||||
<menuitem name="&sizePlusTwoCmd.label;" onclick="EditorSetFontSize('+2')"/>
|
||||
<menuitem name="&sizePlusThreeCmd.label;" onclick="EditorSetFontSize('+3')"/>
|
||||
<menuitem name="&sizePlusFourCmd.label;" onclick="EditorSetFontSize('+4')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<popup id="BackColorMenu">
|
||||
<menu>
|
||||
<menuitem name="Black" onclick="EditorSetBackgroundColor('black')"/>
|
||||
<menuitem name="Gray" onclick="EditorSetBackgroundColor('gray')"/>
|
||||
<menuitem name="Silver" onclick="EditorSetBackgroundColor('silver')"/>
|
||||
<menuitem name="White" onclick="EditorSetBackgroundColor('white')"/>
|
||||
<menuitem name="Red" onclick="EditorSetBackgroundColor('red')"/>
|
||||
<menuitem name="Blue" onclick="EditorSetBackgroundColor('blue')"/>
|
||||
<menuitem name="Green" onclick="EditorSetBackgroundColor('green')"/>
|
||||
<menuitem name="Cyan" onclick="EditorSetBackgroundColor('cyan')"/>
|
||||
<menuitem name="Yellow" onclick="EditorSetBackgroundColor('yellow')"/>
|
||||
<menuitem name="Magenta" onclick="EditorSetBackgroundColor('magenta')"/>
|
||||
<menuitem name="&colorBlackCmd.label;" onclick="EditorSetBackgroundColor('black')"/>
|
||||
<menuitem name="&colorGrayCmd.label;" onclick="EditorSetBackgroundColor('gray')"/>
|
||||
<menuitem name="&colorSilverCmd.label;" onclick="EditorSetBackgroundColor('silver')"/>
|
||||
<menuitem name="&colorWhiteCmd.label;" onclick="EditorSetBackgroundColor('white')"/>
|
||||
<menuitem name="&colorRedCmd.label;" onclick="EditorSetBackgroundColor('red')"/>
|
||||
<menuitem name="&colorBlueCmd.label;" onclick="EditorSetBackgroundColor('blue')"/>
|
||||
<menuitem name="&colorGreenCmd.label;" onclick="EditorSetBackgroundColor('green')"/>
|
||||
<menuitem name="&colorCyanCmd.label;" onclick="EditorSetBackgroundColor('cyan')"/>
|
||||
<menuitem name="&colorYellowCmd.label;" onclick="EditorSetBackgroundColor('yellow')"/>
|
||||
<menuitem name="&colorMagentaCmd.label;" onclick="EditorSetBackgroundColor('magenta')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<popup id="TextColorMenu">
|
||||
<menu>
|
||||
<menuitem name="Black" onclick="EditorSetFontColor('black')"/>
|
||||
<menuitem name="Gray" onclick="EditorSetFontColor('gray')"/>
|
||||
<menuitem name="Silver" onclick="EditorSetFontColor('silver')"/>
|
||||
<menuitem name="White" onclick="EditorSetFontColor('white')"/>
|
||||
<menuitem name="Red" onclick="EditorSetFontColor('red')"/>
|
||||
<menuitem name="Blue" onclick="EditorSetFontColor('blue')"/>
|
||||
<menuitem name="Green" onclick="EditorSetFontColor('green')"/>
|
||||
<menuitem name="Cyan" onclick="EditorSetFontColor('cyan')"/>
|
||||
<menuitem name="Yellow" onclick="EditorSetFontColor('yellow')"/>
|
||||
<menuitem name="Magenta" onclick="EditorSetFontColor('magenta')"/>
|
||||
<menuitem name="&colorBlackCmd.label;" onclick="EditorSetFontColor('black')"/>
|
||||
<menuitem name="&colorGrayCmd.label;" onclick="EditorSetFontColor('gray')"/>
|
||||
<menuitem name="&colorSilverCmd.label;" onclick="EditorSetFontColor('silver')"/>
|
||||
<menuitem name="&colorWhiteCmd.label;" onclick="EditorSetFontColor('white')"/>
|
||||
<menuitem name="&colorRedCmd.label;" onclick="EditorSetFontColor('red')"/>
|
||||
<menuitem name="&colorBlueCmd.label;" onclick="EditorSetFontColor('blue')"/>
|
||||
<menuitem name="&colorGreenCmd.label;" onclick="EditorSetFontColor('green')"/>
|
||||
<menuitem name="&colorCyanCmd.label;" onclick="EditorSetFontColor('cyan')"/>
|
||||
<menuitem name="&colorYellowCmd.label;" onclick="EditorSetFontColor('yellow')"/>
|
||||
<menuitem name="&colorMagentaCmd.label;" onclick="EditorSetFontColor('magenta')"/>
|
||||
</menu>
|
||||
</popup>
|
||||
|
||||
<popup id="AlignmentMenu">
|
||||
<menu>
|
||||
<menuitem name="Left" onclick="EditorAlign('left')"/>
|
||||
<menuitem name="Center" onclick="EditorAlign('center')"/>
|
||||
<menuitem name="Right" onclick="EditorAlign('right')"/>
|
||||
<menuitem name="Justified" onclick="EditorAlign('justify')"/>
|
||||
</menu>
|
||||
<popup id="AlignmentWindow" oncreate="OnCreateAlignmentPopup()">
|
||||
<window class="popup" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" align="vertical" flex="100%"
|
||||
width="70" height="110">
|
||||
<html:div flex="100%">
|
||||
<html:button class="PopupButton" onclick="window.close();">
|
||||
<html:img align="middle" src="chrome://editor/skin/images/ED_Left.gif"/>
|
||||
<html:span>&alignLeft.label;</html:span>
|
||||
</html:button>
|
||||
<html:button class="PopupButton" onclick="window.close();">
|
||||
<html:img align="middle" src="chrome://editor/skin/images/ED_Center.gif"/>
|
||||
<html:span>&alignCenter.label;</html:span>
|
||||
</html:button>
|
||||
<html:button class="PopupButton" onclick="window.close();">
|
||||
<html:img align="middle" src="chrome://editor/skin/images/ED_Right.gif"/>
|
||||
<html:span>&alignRight.label;</html:span>
|
||||
</html:button>
|
||||
<html:button class="PopupButton" onclick="window.close();">
|
||||
<html:img align="middle" src="chrome://editor/skin/images/ED_Justify.gif"/>
|
||||
<html:span>&alignJustify.label;</html:span>
|
||||
</html:button>
|
||||
</html:div>
|
||||
<!-- Trying to use autosizing and boxes
|
||||
<titledbutton class="PopupButton" value="&alignLeft.label;" style="min-width: 40px" onclick="opener.EditorAlign('left'); window.close();"/>
|
||||
<titledbutton class="PopupButton" value="&alignCenter.label;" style="min-width: 40px" onclick="opener.EditorAlign('center'); window.close();"/>
|
||||
<titledbutton class="PopupButton" value="&alignRight.label;" style="min-width: 40px" onclick="opener.EditorAlign('right'); window.close();"/>
|
||||
-->
|
||||
</window>
|
||||
</popup>
|
||||
|
||||
<popup id="FontFaceWindow">
|
||||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" width="40" height="40">
|
||||
<titledbutton value="Default Variable Width" onclick="opener.EditorSetFontFace(''); window.close();"/>
|
||||
<titledbutton value="Default Fixed Width" onclick="opener.EditorSetFontFace('tt'); window.close();"/>
|
||||
<titledbutton value="Arial, Helvetica" onclick="opener.EditorSetFontFace('Arial, Helvetica, sans-serif'); window.close();"/>
|
||||
<titledbutton value="Times" onclick="opener.EditorSetFontFace('Times New Roman, Times, serif'); window.close();"/>
|
||||
<titledbutton value="Courier" onclick="opener.EditorSetFontFace('Courier New, Courier, mono'); window.close();"/>
|
||||
<titledbutton value="&defaultVariableWidthCmd.label;" onclick="opener.EditorSetFontFace(''); window.close();"/>
|
||||
<titledbutton value="&defaultFixedWidthCmd.label;" onclick="opener.EditorSetFontFace('tt'); window.close();"/>
|
||||
<titledbutton value="&arialHelveticaFont.label;" onclick="opener.EditorSetFontFace('Arial, Helvetica, sans-serif'); window.close();"/>
|
||||
<titledbutton value="×Font.label;" onclick="opener.EditorSetFontFace('Times New Roman, Times, serif'); window.close();"/>
|
||||
<titledbutton value="&courierFont.label;" onclick="opener.EditorSetFontFace('Courier New, Courier, mono'); window.close();"/>
|
||||
</window>
|
||||
</popup>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user