home *** CD-ROM | disk | FTP | other *** search
- <HTML STYLE="font-family: ms sans serif; font-size: 8pt; width: 30.4em;
- height: 15em">
- <HEAD>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <TITLE id=dialogTitle>
- Paragraph
- </TITLE>
- <SCRIPT>
- function getRadioStateCmd(radio, range)
- {
- if (range.queryCommandEnabled(radio.value.substring(4)))
- {
- if(!range.queryCommandIndeterm(radio.value.substring(4)))
- {
- radio.checked
- = range.queryCommandState(radio.value.substring(4));
- }
- }
- }
- function getSelectStateCmd(select, range)
- {
- var index;
- var globalDoc = window.dialogArguments.document;
- if (globalDoc.queryCommandSupported(select.id.substring(3)))
- {
- for (index = 0; index < select.options.length; index++)
- {
- if ((select.options[index].text)
- == (range.queryCommandValue(select.id.substring(3))))
- {
- select.selectedIndex = index;
- break;
- }
- }
- }
- }
- function initDialogCmd()
- {
- var index;
- var globalDoc = window.dialogArguments.document;
- for (index = 0; index < document.all("radJustify").length; index++)
- {
- getRadioStateCmd(document.all("radJustify")[index],
- globalDoc.selection.createRange());
- }
- getSelectStateCmd(cmdFormatBlock, globalDoc.selection.createRange());
- }
- function setRadioStateCmd(radio, range)
- {
- if (radio.checked != range.queryCommandState(radio.value.substring(4)))
- {
- if (range.queryCommandEnabled(radio.value.substring(4)))
- {
- range.execCommand(radio.value.substring(4));
- }
- }
- }
- function setSelectStateCmd(select, range)
- {
- var globalDoc = window.dialogArguments.document;
- if (select.changed && (select.value != ""))
- {
- if (globalDoc.queryCommandSupported(select.id.substring(3)))
- {
- range.execCommand(select.id.substring(3), false,
- select.options[select.selectedIndex].value);
- }
- }
- }
- function closeDialogCmd()
- {
- var index;
- var globalDoc = window.dialogArguments.document;
- for (index = 0; index < document.all("radJustify").length; index++)
- {
- setRadioStateCmd(document.all("radJustify")[index],
- globalDoc.selection.createRange());
- }
- setSelectStateCmd(cmdFormatBlock, globalDoc.selection.createRange());
- }
- function number(string)
- {
- return parseFloat(string);
- }
- function walkToText(doc)
- {
- var currentRange;
- var element;
- while (("None" != doc.selection.type) && ("Text" != doc.selection.type))
- {
- currentRange = doc.selection.createRange();
- element = currentRange.parentElement();
- currentRange = getTextRange(element);
- currentRange.select();
- }
- }
- function loadBdy()
- {
- var globalDoc = window.dialogArguments.document;
- document.onkeypress = new Function("defaultActions()");
- document.onhelp = new Function("callHelp()");
- cmdFormatBlock.onchange = new Function("cmdFormatBlock.changed = true");
- btnOK.onclick = new Function("btnOKClick()");
- btnCancel.onclick = new Function("btnCancelClick()");
- walkToText(globalDoc);
- initDialogCmd();
- }
- function btnCancelClick()
- {
- window.close();
- }
- function btnOKClick()
- {
- closeDialogCmd();
- window.close();
- }
- function defaultActions()
- {
- var htmlKeyReturn = 13;
- var htmlKeyEscape = 27;
- if ((event.keyCode) == htmlKeyReturn)
- {
- btnOKClick();
- }
- else if ((event.keyCode) == htmlKeyEscape)
- {
- btnCancelClick();
- }
- }
- function callHelp()
- {
- var L_NoHelp_Text = "No help topic available.";
- var elm = window.event.srcElement;
- if (null != elm.helpid)
- {
- if ("btnCancel" != elm.id)
- {
- alert(L_NoHelp_Text);
- }
- else
- {
- window.showHelp("windows.hlp", parseInt(elm.helpid));
- }
- }
- }
- </SCRIPT>
- </HEAD>
- <BODY style="font-family: ms sans serif; font-size: 8pt;
- background: buttonface;" onLoad="loadBdy()">
- <DIV style="font-family: ms sans serif; font-size: 8pt; position: absolute;
- LEFT: 1em; TOP: 1em; WIDTH: 8em; HEIGHT: 1em">
- <LABEL For=cmdFormatBlock id=lblParaStyle tabIndex=-1>
- <U>P</U>aragraph Style
- </LABEL>
- </DIV>
- <SELECT id=cmdFormatBlock ACCESSKEY=p NAME="setCmdID" tabIndex=10
- style="font-family: ms sans serif; font-size: 8pt; LEFT: 1em; TOP: 2.5em;
- WIDTH: 27.7em; HEIGHT: 2.1em; position: absolute;">
- <OPTION id=none VALUE="" selected> </OPTION>
- <OPTION id=optNormal VALUE="<P>"> Normal </OPTION>
- <OPTION id=optFormatted VALUE="<PRE>"> Formatted </OPTION>
- <OPTION id=optAddress VALUE="<ADDRESS>"> Address </OPTION>
- <OPTION id=optH1 VALUE="<H1>"> Heading 1 </OPTION>
- <OPTION id=optH2 VALUE="<H2>"> Heading 2 </OPTION>
- <OPTION id=optH3 VALUE="<H3>"> Heading 3 </OPTION>
- <OPTION id=optH4 VALUE="<H4>"> Heading 4 </OPTION>
- <OPTION id=optH5 VALUE="<H5>"> Heading 5 </OPTION>
- <OPTION id=optH6 VALUE="<H6>"> Heading 6 </OPTION>
- <OPTION id=optNumList VALUE="<OL>"> Numbered List </OPTION>
- <OPTION id=optBullet VALUE="<UL>"> Bulleted List </OPTION>
- <OPTION id=optDirList VALUE="<DIR>"> Directory List </OPTION>
- <OPTION id=optMenuList VALUE="<MENU>"> Menu List </OPTION>
- <OPTION id=optDefTerm VALUE="<DT>"> Definition Term </OPTION>
- <OPTION id=optDef VALUE="<DD>"> Definition </OPTION>
- </SELECT>
- <TABLE cellspacing cellPadding=7 borderColorDark=buttonhighlight
- borderColorLight=buttonshadow border=1 noshade="yes"
- style="position:absolute;font-family: ms sans serif; font-size: 8pt;
- LEFT: 1em; TOP: 5.5em; WIDTH: 28em; HEIGHT: 3em">
- <TR>
- <TD style="font-family: ms sans serif; font-size: 8pt;
- LEFT: 0; TOP: 0; WIDTH: 19em; HEIGHT: 2em">
- <DIV style="color: buttonface">a</DIV>
- </TD>
- </TR>
- </TABLE>
- <INPUT name=radJustify id=radJustifyLeft type=radio CHECKED
- ACCESSKEY=l VALUE=_cmdJustifyLeft tabIndex=15
- style="font-family: ms sans serif; font-size: 8pt; LEFT: 6.6em;
- TOP: 6.5em; position: absolute; WIDTH: 1em; HEIGHT: 1em;">
- <DIV style="font-family: ms sans serif; font-size: 8pt; position:
- absolute;LEFT: 8.3em; TOP: 6.5em; WIDTH: 3em; HEIGHT: 1em">
- <LABEL style="font-family: ms sans serif; font-size: 8pt"
- For=radJustifyLeft id=lblJustifyLeft tabIndex="-1">
- <U>L</U>eft
- </LABEL>
- </DIV>
- <INPUT name=radJustify id=radJustifyCenter type=radio ACCESSKEY=c
- VALUE=_cmdJustifyCenter tabIndex=20
- style="font-family: ms sans serif; font-size: 8pt; LEFT: 12.1em;
- TOP: 6.5em; position: absolute; WIDTH: 1em; HEIGHT: 1em">
- <DIV style="font-family: ms sans serif; font-size: 8pt;
- position: absolute;LEFT: 13.8em; TOP: 6.5em; WIDTH: 4em;
- HEIGHT: 1em">
- <LABEL style="font-family: ms sans serif; font-size: 8pt"
- For=radJustifyCenter id=lblJustifyCenter tabIndex="-1">
- <U>C</U>enter
- </LABEL>
- </DIV>
- <INPUT name=radJustify id=radJustifyRight type=radio ACCESSKEY=r
- VALUE=_cmdJustifyRight tabIndex=25
- style="font-family: ms sans serif; font-size: 8pt; LEFT: 18.6em;
- TOP: 6.5em; position: absolute; WIDTH: 1em; HEIGHT: 1em">
- <DIV style="font-family: ms sans serif; font-size: 8pt;
- position: absolute;LEFT: 20.3em; TOP: 6.5em; WIDTH: 3em;
- HEIGHT: 1.3em">
- <LABEL style="font-family: ms sans serif; font-size: 8pt"
- For=radJustifyRight lblJustifyRight tabIndex="-1">
- <U>R</U>ight
- </LABEL>
- </DIV>
- <DIV style="font-family: ms sans serif; font-size: 8pt; position: absolute;
- background: buttonface; HEIGHT: 1em; LEFT: 1.5em; TOP: 5em; WIDTH: 5em">
- <LABEL id=lblAlign tabIndex="-1"> Align Text</LABEL>
- </DIV>
- <BUTTON id=btnOK tabIndex=30
- style="font-family: ms sans serif; font-size: 8pt; LEFT: 14.4em; TOP: 9.5em;
- WIDTH: 6.8em; HEIGHT: 2.1em; position: absolute">
- OK</BUTTON>
- <!--
- <BUTTON id=btnClear onclick="btnClearClick()" tabIndex=35
- style="font-family: ms sans serif; font-size: 8pt; LEFT: 14.4em; TOP: 9.5em;
- WIDTH: 6.8em; HEIGHT: 2.1em; position: absolute">
- Clear All</BUTTON>
- -->
- <BUTTON id=btnCancel tabIndex=40
- style="font-family: ms sans serif; font-size: 8pt; LEFT: 22em; TOP: 9.5em;
- position: absolute; WIDTH: 6.8em; HEIGHT: 2.1em">
- Cancel</BUTTON>
- </BODY></HTML>
-