123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: rs
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- _qfn._b4a=function(e){ _4qn._m95(e); _qfn._vje(); };_qfn._ttc=function(){return this._0mg;};_qfn._7cg=function(_vcl,_uxm){var _a6k=this._2oh("div"+_vcl)._a6k;var _mzj=_uxm?_a6k._lee("value", _uxm, true):_uxm;if(_mzj){_a6k._uab(_mzj);}else{_a6k._gwc(0);}this._2oh( "txt" + _vcl ).value = _uxm||"";};_qfn._13a=function(_vcl,_uxm){var _a6k=this._2oh("div"+_vcl)._a6k;var _mzj=_uxm?_a6k._lee("value", _uxm, true):null;if(_mzj){_a6k._uab(_mzj);}else{_a6k._gwc(0);}this._2oh( "txt" + _vcl ).value = _uxm||"";};_qfn._c92=function(){if(this._wt7){this._wt7._fdm();this._wt7=null;}if(!this._wt7){this._wt7=new _pgk( this._2oh( "divFontFamily" ), _frh._53g( "CCHL_font-family" ), this );}var _ini=this._wt7._5g8();var d=_ini.ownerDocument;if(this._d9d){var _tzl=this._d9d.length;for(var i=0;i<_tzl;i++){var o=this._d9d[i];var _mzj=_ini.appendChild(d.createElement("listItem"));_mzj.setAttribute("label", o._yfm);_mzj.setAttribute("value", o._1gm);}}this._wt7._wfn();};_qfn._src=function(){this._4r2=_4ke._1o3("font");this._d9d=_r7g._7q9().concat();this._c92();var _ozj=_frh._53g('CCHL_font-size');var nl=_ozj.selectNodes("listItems/listItem[not(@idsLabel)]");var _tzl=nl.length;for(var i=0;i<_tzl;i++){var _mzj=nl.item(i);var _w5m=new _84j(_mzj.getAttribute("value"));_mzj.setAttribute("label", _w5m._of8());}this._afd=new _pgk(this._2oh("divFontSize"), _ozj, this);this._6da=new _pgk(this._2oh("divFontWeight"), _frh._53g('CCHL_font-weight'), this);this._qtb=new _pgk(this._2oh("divFontStyle"), _frh._53g('CCHL_font-style'), this);this._khg=new _jgk(this._2oh("cboSizeUnit"), null, _frh._53g('CCHL_CSSLengthUnits'), this);this._khg._hwc("pt");};_qfn._fdm=function(){if(this._wt7){this._wt7._fdm();this._wt7=null;}if(this._afd){this._afd._fdm();this._afd=null;}if(this._6da){this._6da._fdm();this._6da=null;}if(this._qtb){this._qtb._fdm();this._qtb=null;}if(this._khg){this._khg._fdm();this._khg=null;}};_qfn._5z2=function(){this._j96("chkUnderline", this._90i!==false);this._j96("chkOverline", this._2fj!==false);this._j96("chkLineThrough", this._vue!==false);var _lv5=(this._90i!==false)||(this._2fj!==false)||(this._vue!==false);this._2oh( "tdTextDecoration" ).style.display = _lv5?"":"none";this._2oh( "fsPreview" ).style.width = _lv5?"360px":"413px";this._2oh( "divColor" ).style.display = this._lzh?"none":"";this._agj=this._2oh("divSample");this._13a( "FontFamily", this._0mg["font-family"] );this._7cg( "FontSize", this._0mg["font-size"] );var _msi=new _84j(this._0mg["font-size"]);var txt=this._2oh("txtFontSize");txt.value=_msi._197();this._khg._hwc(_msi._jkl()||"pt");if(this._jyh&&this._jyh.length){var _1dc=_frh._53g('CCHL_CSSLengthUnits');var nl=_1dc.selectNodes("listItems/listItem");var _tzl=nl.length;for(var i=0;i<_tzl;i++){var _mzj=nl.item(i);if(this._jyh.indexOf(_mzj.getAttribute("value"))==-1){_mzj.parentNode.removeChild(_mzj);}}this._sx8=(_tzl==this._jyh.length);this._khg._wt9(_1dc);}else{if(!this._sx8){this._sx8=true;this._khg._wt9(_frh._53g('CCHL_CSSLengthUnits'));}}txt.onkeypress=_4qn._tx;txt.onchange=this._b4a;this._7cg( "FontWeight", this._0mg["font-weight"] );this._7cg( "FontStyle", this._0mg["font-style"] );var _l2b=this._0mg["text-decoration"];_l2b=_l2b?_l2b.toLowerCase():"";this._2oh( "chkUnderline" ).checked = ( _l2b.indexOf( "underline" ) != -1 );this._2oh( "chkOverline" ).checked = ( _l2b.indexOf( "overline" ) != -1 );this._2oh( "chkLineThrough" ).checked = ( _l2b.indexOf( "line-through" ) != -1 );this._vje();this._2oh( "btnApply" ).style.display = this._px8?"":"none";};_qfn._o46=function(){this._0mg=null;delete this._90i;delete this._2fj;delete this._vue;delete this._lzh;this._jyh=null;};_qfn._vje=function(){var _xfh=this._2oh("txtFontFamily").value;if(_xfh.search(/[\s\(\)]/)!=-1){if ((_xfh.charAt( 0 )!="'" )||( _xfh.charAt( _xfh.length - 1 ) != "'" ) ){_xfh="'" + _xfh + "'";}}this._0mg["font-family"]=_xfh;var _kak=this._2oh("txtFontSize").value;this._0mg["font-size"] = _kak?( new _ril( _kak ) )._fkk() + this._khg._qik():"";this._0mg["font-weight"] = this._2oh( "txtFontWeight" ).value;this._0mg["font-style"] = this._2oh( "txtFontStyle" ).value;var a=[];if(this._2oh("chkUnderline").checked){a.push("underline");}if(this._2oh("chkOverline").checked){a.push("overline");}if(this._2oh("chkLineThrough").checked){a.push("line-through");}if(a.length>0||this._0mg["text-decoration"]!==undefined){this._0mg["text-decoration"] = a.join( " " );}_4qn._1je( this._agj, _xfh?_xfh.replace( /['"]/g, "" ):"AaBbCcYyZz" );this._7n7( "color", "color", null );_4qn._2b5( this._2oh( "btnColor" ), this._0mg["color"] );this._7n7( "fontFamily", "font-family", "txtFontFamily" );this._7n7( "fontSize", "font-size", "txtFontSize" );this._7n7( "fontWeight", "font-weight" );this._7n7( "fontStyle", "font-style" );this._7n7( "textDecoration", "text-decoration" );};_qfn._7n7=function(_lnc,_trf,_vcl){try{var _uxm=this._0mg[_trf];this._agj.style[_lnc]=_uxm||"";if(_vcl){this._2oh(_vcl).style.color="";}}catch(e){if(_vcl){this._2oh(_vcl).style.color="red";this._agj.style[_lnc]="";}}};_qfn._y0g=function(){if(this._0mg["transparency"]!==undefined){_8fm._jgn( "cchl/dialogs/_1zm", this._xp9(), false, this._0mg["color"]||"", _frh._c6j( "IDS_CCHL_TITLE_FONT_COLOR" ), this, false, true, this._0mg["transparency"], true );}else{_8fm._jgn( "cchl/dialogs/_1zm", this._xp9(), false, this._0mg["color"]||"", _frh._c6j( "IDS_CCHL_TITLE_FONT_COLOR" ), this, false, false );}};_qfn._io9=function(_e5m){switch(_e5m._b2g()){case "_1zm":this._0mg["color"]=_e5m._6ik();if(this._0mg["transparency"]!==undefined){this._0mg["transparency"]=_e5m._br9();}this._vje();}};_qfn._g67=function(_35k){this._vje();};_qfn._pe4=function(_a6k,_mzj,_zdf){var _uxm=_mzj.getAttribute("value");if(_uxm==null){_uxm=_mzj.getAttribute("label");}switch(_a6k._ezm()){case "_qfn_divFontFamily":this._2oh("txtFontFamily").value=_uxm;break;case "_qfn_divFontSize":var _msi=new _84j(_uxm);this._2oh("txtFontSize").value=_msi._qik();this._khg._hwc(_msi._jkl()||"pt");break;case "_qfn_divFontWeight":this._2oh("txtFontWeight").value=_uxm;break;case "_qfn_divFontStyle":this._2oh("txtFontStyle").value=_uxm;break;}setTimeout("_qfn._vje()", 0);};_qfn._a7j=function(e){if(e.ctrlKey&&( e.target.nodeName!="INPUT" )&&( e.target.type != "text" ) ){switch(e.keyCode){case "C".charCodeAt(0):case "X".charCodeAt(0):var o=new _bpc("");o._6xc(this._ttc());_4aj._qll(o.toString());break;case "V".charCodeAt(0):var s=_4aj._fkl();if(s&&this._4r2){var o=new _bpc(s);var a=this._4r2.concat("color");for(var i=0;i<a.length;i++){var _uxm=o._13g(a[i]);this._0mg[a[i]]=_uxm||"";}this._5z2();}break;}}this._1f7(e);};
|