home *** CD-ROM | disk | FTP | other *** search
- <HTML STYLE="font-family: arial; font-size: 8pt; width: 30.4em;
- height: 16em">
- <HEAD>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
- <TITLE id=dialogTitle>
- Akapit
- </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 = "Brak dostΩpnego tematu pomocy.";
- 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: arial; font-size: 8pt;
- background: buttonface;" onLoad="loadBdy()">
- <DIV style="font-family: arial; font-size: 8pt; position: absolute;
- LEFT: 1em; TOP: 1em; WIDTH: 8em; HEIGHT: 1em">
- <LABEL For=cmdFormatBlock id=lblParaStyle tabIndex=-1>
- <U>S</U>tyl akapitu
- </LABEL>
- </DIV>
- <SELECT id=cmdFormatBlock ACCESSKEY="s" NAME="setCmdID" tabIndex=10
- style="font-family: arial; 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>"> Zwyk│y </OPTION>
- <OPTION id=optFormatted VALUE="<PRE>"> Sformatowany </OPTION>
- <OPTION id=optAddress VALUE="<ADDRESS>"> Adres </OPTION>
- <OPTION id=optH1 VALUE="<H1>"> Nag│ówek 1 </OPTION>
- <OPTION id=optH2 VALUE="<H2>"> Nag│ówek 2 </OPTION>
- <OPTION id=optH3 VALUE="<H3>"> Nag│ówek 3 </OPTION>
- <OPTION id=optH4 VALUE="<H4>"> Nag│ówek 4 </OPTION>
- <OPTION id=optH5 VALUE="<H5>"> Nag│ówek 5 </OPTION>
- <OPTION id=optH6 VALUE="<H6>"> Nag│ówek 6 </OPTION>
- <OPTION id=optNumList VALUE="<OL>"> Lista numerowana </OPTION>
- <OPTION id=optBullet VALUE="<UL>"> Lista punktowana </OPTION>
- <OPTION id=optDirList VALUE="<DIR>"> Lista katalogów </OPTION>
- <OPTION id=optMenuList VALUE="<MENU>"> Lista menu </OPTION>
- <OPTION id=optDefTerm VALUE="<DT>"> Definicja </OPTION>
- <OPTION id=optDef VALUE="<DD>"> Definicja </OPTION>
- </SELECT>
- <TABLE cellspacing cellPadding=7 borderColorDark=buttonhighlight
- borderColorLight=buttonshadow border=1 noshade="yes"
- style="position:absolute;font-family: arial; font-size: 8pt;
- LEFT: 1em; TOP: 5.5em; WIDTH: 28em; HEIGHT: 3.6em">
- <TR>
- <TD style="font-family: arial; font-size: 8pt;
- LEFT: 0; TOP: 0; WIDTH: 19em; HEIGHT: 2em">
- <DIV style="color: buttonface">w</DIV>
- </TD>
- </TR>
- </TABLE>
- <INPUT name=radJustify id=radJustifyLeft type=radio CHECKED
- ACCESSKEY="w" VALUE=_cmdJustifyLeft tabIndex=15
- style="font-family: arial; font-size: 8pt; LEFT: 4.6em;
- TOP: 6.5em; position: absolute; WIDTH: 1em; HEIGHT: 1em;">
- <DIV style="font-family: arial; font-size: 8pt; position:
- absolute;LEFT: 6.6em; TOP: 6.7em; WIDTH: 4.7em; HEIGHT: 1em">
- <LABEL style="font-family: arial; font-size: 8pt"
- For=radJustifyLeft id=lblJustifyLeft tabIndex="-1">
- <U></U>do le<u>w</u>ej
- </LABEL>
- </DIV>
- <INPUT name=radJustify id=radJustifyCenter type=radio ACCESSKEY="d"
- VALUE=_cmdJustifyCenter tabIndex=20
- style="font-family: arial; font-size: 8pt; LEFT: 12.1em;
- TOP: 6.5em; position: absolute; WIDTH: 1em; HEIGHT: 1em">
- <DIV style="font-family: arial; font-size: 8pt;
- position: absolute;LEFT: 14.1em; TOP: 6.7em; WIDTH: 4.7em;
- HEIGHT: 1em">
- <LABEL style="font-family: arial; font-size: 8pt"
- For=radJustifyCenter id=lblJustifyCenter tabIndex="-1">
- <U></U><u>d</u>o £rodka
- </LABEL>
- </DIV>
- <INPUT name=radJustify id=radJustifyRight type=radio ACCESSKEY="o"
- VALUE=_cmdJustifyRight tabIndex=25
- style="font-family: arial; font-size: 8pt; LEFT: 20.6em;
- TOP: 6.5em; position: absolute; WIDTH: 1em; HEIGHT: 1em">
- <DIV style="font-family: arial; font-size: 8pt;
- position: absolute;LEFT: 22.6em; TOP: 6.7em; WIDTH: 4.7em;
- HEIGHT: 1.3em">
- <LABEL style="font-family: arial; font-size: 8pt"
- For=radJustifyRight lblJustifyRight tabIndex="-1">
- <U></U>d<u>o</u> prawej
- </LABEL>
- </DIV>
- <DIV style="font-family: arial; font-size: 8pt; position: absolute;
- background: buttonface; HEIGHT: 1em; LEFT: 1.5em; TOP: 5em; WIDTH: 10em">
- <LABEL id=lblAlign tabIndex="-1"> Wyrównanie tekstu</LABEL>
- </DIV>
- <BUTTON id=btnOK tabIndex=30
- style="font-family: arial; font-size: 8pt; LEFT: 14.4em; TOP: 9.7em;
- WIDTH: 6.8em; HEIGHT: 2.3em; 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: arial; font-size: 8pt; LEFT: 22em; TOP: 9.7em;
- position: absolute; WIDTH: 6.8em; HEIGHT: 2.3em">
- Anuluj</BUTTON>
- </BODY></HTML>
-