Adding charset menu for html editor as a part of the bug fix for 7849.

This commit is contained in:
nhotta%netscape.com 1999-06-21 20:22:52 +00:00
Родитель 05ccb2b40f
Коммит d8aaa1add3
2 изменённых файлов: 121 добавлений и 0 удалений

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

@ -16,6 +16,56 @@
<!ENTITY fileMenu.label "File">
<!ENTITY newCmd.label ".New Window">
<!ENTITY dcharMenu.label "Character Set">
<!ENTITY dcharIso1Cmd.label "ISO Latin 1 (ISO-8859-1)">
<!ENTITY dcharIso2Cmd.label "ISO Latin 2 (ISO-8859-2)">
<!ENTITY dcharIso3Cmd.label "ISO Latin 3 (ISO-8859-3)">
<!ENTITY dcharIso4Cmd.label "ISO Latin 4 (ISO-8859-4)">
<!ENTITY dcharIso9Cmd.label "ISO Latin 5 (ISO-8859-9)">
<!ENTITY dcharIso10Cmd.label "ISO Latin 6 (ISO-8859-10)">
<!ENTITY dcharIso14Cmd.label "ISO Latin 8 (ISO-8859-14)">
<!ENTITY dcharIso15Cmd.label "ISO Latin 9 (ISO-8859-15)">
<!ENTITY dcharWinLat2Cmd.label "Windows Latin 2 (windows-1250)">
<!ENTITY dcharWinLat1Cmd.label "Windows Latin 1 (windows-1252)">
<!ENTITY dcharWinLat5Cmd.label "Windows Latin 5 (windows-1254)">
<!ENTITY dcharWinBalRimCmd.label "Windows Baltic (windows-1257)">
<!ENTITY dcharMacRomCmd.label "Macintosh Roman">
<!ENTITY dcharMacCenEuroCmd.label "Macintosh Central European">
<!ENTITY dcharMacTurCmd.label "Macintosh Turkish">
<!ENTITY dcharMacCroaCmd.label "Macintosh Croatian">
<!ENTITY dcharMacRomanianCmd.label "Macintosh Romanian">
<!ENTITY dcharMacIceCmd.label "Macintosh Icelandic">
<!ENTITY dcharJapanCmd.label "Japanese JIS (ISO-2022-JP)">
<!ENTITY dcharJapanShiftjsCmd.label "Japanese (Shift_JIS)">
<!ENTITY dcharJapanEucCmd.label "Japanese (EUC-JP)">
<!ENTITY dcharTradChiBigCmd.label "Traditional Chinese (Big5)">
<!ENTITY dcharTriChiEucCmd.label "Traditional Chinese (EUC-TW)">
<!ENTITY dcharSimpChiGbCmd.label "Simplified Chinese (GB2312)">
<!ENTITY dcharKoreanCmd.label "Korean (EUC-KR)">
<!ENTITY dcharUtf7Cmd.label "Multilingual (UTF-7)">
<!ENTITY dcharUtf8Cmd.label "Multilingual (UTF-8)">
<!ENTITY dcharIsoCyrCmd.label "ISO Cyrillic (ISO-8859-5)">
<!ENTITY dcharEcmaCyrCmd.label "ECMA Cyrillic (ISO-IR-111)">
<!ENTITY dcharDosCyrCmd.label "DOS Cyrillic (IBM866)">
<!ENTITY dcharWinCyrCmd.label "Windows Cyrillic (windows-1251)">
<!ENTITY dcharMacCyrCmd.label "Macintosh Cyrillic">
<!ENTITY dcharMacUkrCmd.label "Macintosh Ukrainian">
<!ENTITY dcharRusCmd.label "Russian (KOI8-R)">
<!ENTITY dcharUkrCmd.label "Ukrainian (KOI8-U)">
<!ENTITY dcharIsoGreekCmd.label "ISO Greek (ISO-8859-7)">
<!ENTITY dcharWinGreekCmd.label "Windows Greek (windows-1253)">
<!ENTITY dcharMacGreekCmd.label "Macintosh Greek">
<!ENTITY dcharWinVietCmd.label "Windows Vietnamese (windows-1258)">
<!ENTITY dcharVietTcnCmd.label "Vietnamese (TCVN5712)">
<!ENTITY dcharVietViCmd.label "Vietnamese (VISCII)">
<!ENTITY dcharVieVpCmd.label "Vietnamese (VPS)">
<!ENTITY dcharThaiCmd.label "Thai (TIS-620)">
<!ENTITY dcharArmCmd.label "Armenian (ARMSCII-8)">
<!ENTITY dcharIso6Cmd.label ".ISO Arabic (ISO-8859-6)">
<!ENTITY dcharIso8Cmd.label ".ISO Hebrew (ISO-8859-8)">
<!ENTITY dcharCp1255Cmd.label "Windows Hebrew (windows-1255)">
<!ENTITY dcharCp1256Cmd.label "Windows Arabic (windows-1256)">
]>
<window id="main-window" xmlns:html="http://www.w3.org/TR/REC-html40"
@ -67,6 +117,68 @@
<menu name="View">
<menuitem name=".Hide Composition Toolbar" onclick=""/>
<menuitem name=".Hide Format Toolbar" onclick="" />
<separator />
<menu name="&dcharMenu.label;">
<menuitem name="&dcharIso1Cmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-8859-1');"/>
<menuitem name="&dcharIso2Cmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-8859-2');"/>
<menuitem name="&dcharIso3Cmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-8859-3');"/>
<menuitem name="&dcharIso4Cmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-8859-4');"/>
<menuitem name="&dcharIso9Cmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-8859-9');"/>
<menuitem name="&dcharIso10Cmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-8859-10');"/>
<menuitem name="&dcharIso14Cmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-8859-14');"/>
<menuitem name="&dcharIso15Cmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-8859-15');"/>
<menuitem name="&dcharWinLat2Cmd.label;" onclick="EditorSetDocumentCharacterSet('windows-1250');"/>
<menuitem name="&dcharWinLat1Cmd.label;" onclick="EditorSetDocumentCharacterSet('windows-1252');"/>
<menuitem name="&dcharWinLat5Cmd.label;" onclick="EditorSetDocumentCharacterSet('windows-1254');"/>
<menuitem name="&dcharWinBalRimCmd.label;" onclick="EditorSetDocumentCharacterSet('windows-1257');"/>
<menuitem name="&dcharMacRomCmd.label;" onclick="EditorSetDocumentCharacterSet('x-mac-roman');"/>
<menuitem name="&dcharMacCenEuroCmd.label;" onclick="EditorSetDocumentCharacterSet('x-mac-ce');"/>
<menuitem name="&dcharMacTurCmd.label;" onclick="EditorSetDocumentCharacterSet('x-mac-turkish');"/>
<menuitem name="&dcharMacCroaCmd.label;" onclick="EditorSetDocumentCharacterSet('x-mac-croatian');"/>
<menuitem name="&dcharMacRomanianCmd.label;" onclick="EditorSetDocumentCharacterSet('x-mac-romanian');"/>
<menuitem name="&dcharMacIceCmd.label;" onclick="EditorSetDocumentCharacterSet('x-mac-icelandic');"/>
<separator />
<menuitem name="&dcharJapanCmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-2022-JP');"/>
<menuitem name="&dcharJapanShiftjsCmd.label;" onclick="EditorSetDocumentCharacterSet('Shift_JIS');"/>
<menuitem name="&dcharJapanEucCmd.label;" onclick="EditorSetDocumentCharacterSet('EUC-JP');"/>
<separator />
<menuitem name="&dcharTradChiBigCmd.label;" onclick="EditorSetDocumentCharacterSet('Big5');"/>
<menuitem name="&dcharTriChiEucCmd.label;" onclick="EditorSetDocumentCharacterSet('x-euc-tw');"/>
<menuitem name="&dcharSimpChiGbCmd.label;" onclick="EditorSetDocumentCharacterSet('GB2312');"/>
<separator />
<menuitem name="&dcharKoreanCmd.label;" onclick="EditorSetDocumentCharacterSet('EUC-KR');"/>
<separator />
<menuitem name="&dcharUtf7Cmd.label;" onclick="EditorSetDocumentCharacterSet('UTF-7');"/>
<menuitem name="&dcharUtf8Cmd.label;" onclick="EditorSetDocumentCharacterSet('UTF-8');"/>
<separator />
<menuitem name="&dcharIsoCyrCmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-8859-5');"/>
<menuitem name="&dcharEcmaCyrCmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-IR-111');"/>
<menuitem name="&dcharWinCyrCmd.label;" onclick="EditorSetDocumentCharacterSet('windows-1251');"/>
<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="&dcharUkrCmd.label;" onclick="EditorSetDocumentCharacterSet('KOI8-U');"/>
<separator />
<menuitem name="&dcharIsoGreekCmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-8859-7');"/>
<menuitem name="&dcharWinGreekCmd.label;" onclick="EditorSetDocumentCharacterSet('windows-1253');"/>
<menuitem name="&dcharMacGreekCmd.label;" onclick="EditorSetDocumentCharacterSet('x-mac-greek');"/>
<separator />
<menuitem name="&dcharWinVietCmd.label;" onclick="EditorSetDocumentCharacterSet('windows-1258');"/>
<menuitem name="&dcharVietTcnCmd.label;" onclick="EditorSetDocumentCharacterSet('x-viet-tcvn5712');"/>
<menuitem name="&dcharVietViCmd.label;" onclick="EditorSetDocumentCharacterSet('VISCII');"/>
<menuitem name="&dcharVieVpCmd.label;" onclick="EditorSetDocumentCharacterSet('x-viet-vps');"/>
<separator />
<menuitem name="&dcharThaiCmd.label;" onclick="EditorSetDocumentCharacterSet('TIS-620');"/>
<separator />
<menuitem name="&dcharArmCmd.label;" onclick="EditorSetDocumentCharacterSet('ARMSCII-8');"/>
<separator />
<menuitem name="&dcharIso6Cmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-8859-6');"/>
<menuitem name="&dcharCp1256Cmd.label;" onclick="EditorSetDocumentCharacterSet('windows-1256');"/>
<separator />
<menuitem name="&dcharIso8Cmd.label;" onclick="EditorSetDocumentCharacterSet('ISO-8859-8');"/>
<menuitem name="&dcharCp1255Cmd.label;" onclick="EditorSetDocumentCharacterSet('windows-1255');"/>
</menu>
</menu>
<menu name="Insert">

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

@ -196,6 +196,15 @@ function EditorShowClipboard()
window.editorShell.ShowClipboard();
}
// --------------------------- View menu ---------------------------
function EditorSetDocumentCharacterSet(aCharset)
{
dump(aCharset);
dump(" NOT IMPLEMENTED YET\n");
}
// --------------------------- Text style ---------------------------
function EditorSetTextProperty(property, attribute, value)