/** * XHtmlHtml */ XHtmlHtml.prototype = new XFormsElement; function XHtmlHtml (strParentId, strId, strTag) { if (!strId) { return; } XFormsElement.call(this, strParentId, strId, strTag); }; /** * XHtmlHead */ XHtmlHead.prototype = new XFormsElement; function XHtmlHead (strParentId, strId, strTag) { if (!strId) { return; } XFormsElement.call(this, strParentId, strId, strTag); }; /** * XHtmlBody */ XHtmlBody.prototype = new XFormsGroup; function XHtmlBody (strParentId, strAlert, strHelp, strHint, strAccesskey, bAutoRefresh, strClass, bDisabled, strId, nNavindex, strOverflow, strPrintBottomMargin, strPrintLeftMargin, strPrintRightMargin, strPrintTopMargin, strScroll, strStyle, strTag, strVisibility) { if (!strId) { return; } XFormsGroup.call(this, strParentId, strAlert, strHelp, strHint, strAccesskey, ""/*strBind*/, strClass, bDisabled, strId, nNavindex, strOverflow, ""/*bPopup*/, ""/*strRef*/, strScroll, ""/*strShowEffect*/, strStyle, strTag, strVisibility); this.m_bShowPopupMenu = true; this.m_bSetPopupMenu = false; /** * Property */ // Attribute this.attribute["autorefresh"] = bAutoRefresh; this.attribute["print-bottommargin"] = strPrintBottomMargin; this.attribute["print-leftmargin"] = strPrintLeftMargin; this.attribute["print-rightmargin"] = strPrintRightMargin; this.attribute["print-topmargin"] = strPrintTopMargin; }; XHtmlBody.prototype.refresh = function () { var arKeyset = this.children.keys(); for (var i=0; i nContextRight || nPositionY < nContextTop || nPositionY > nContextBottom) { window.top.document.body.removeChild(xnContextMenu); } else { bTargetContext = true; } } if (event.button == 3) { if (this.m_bShowPopupMenu && !this.m_bSetPopupMenu && !bTargetContext) { window.top.document.oncontextmenu = null; if (window != window.top) document.oncontextmenu = null; } else { window.top.document.oncontextmenu = new Function("return false"); if (window != window.top) document.oncontextmenu = new Function("return false"); } if (this.m_bShowPopupMenu && this.m_bSetPopupMenu && !bTargetContext) document.allElement.item("__TF_ContextMenu").createContextMenu(nPositionX, nPositionY); } };