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.
- function _bw(_oal, _7ci, _0i9){this._5sk=_oal;this._crb=_7ci?4:2;this._tzh=_7ci;this._hgm(_0i9);}_bw.prototype._2ej=null;_bw.prototype._7we=null;_bw._10n=0;_bw._efm=1;_bw._tgn=2;_bw._cml=3;_bw.prototype._hgm=function(_0i9){if(this._7we){return;}var _kwg=this._5sk._l56();this._7we=document.createElement('div');this._7we.className='clsARPreviewSelectionDecoration' + (this._tzh?" clsARPreviewSelectionPrimary":" clsARPreviewSelectionSecondary");if(_0i9){this._7we.className += " " + _0i9;}if(this._tzh){var _mwg=document.createElement('div');this._7we.appendChild(_mwg);this._4pl=[];for(var i=0; i<4; i++){var _dzk=document.createElement('div'); _dzk.className='clsARPreviewSelectionFrame';_mwg.appendChild(_dzk);this._4pl.push(_dzk);}this._4pl[_bw._10n].className += ' clsARPreviewSelectionFrameLEFT';this._4pl[_bw._efm].className += ' clsARPreviewSelectionFrameRIGHT';this._4pl[_bw._tgn].className += ' clsARPreviewSelectionFrameTOP';this._4pl[_bw._cml].className += ' clsARPreviewSelectionFrameBOTTOM';}else{this._zfj=document.createElement('div');this._zfj.className='clsARPreviewSelectionCustom';this._7we.appendChild(this._zfj);}_kwg.appendChild(this._7we);};_bw.prototype._yem=function(_atn){this._2ej=_atn instanceof Array?_atn:[_atn];this._wfn();};_bw.prototype._jjl=function(){if(this._7we&&this._7we.parentNode){this._7we.parentNode.removeChild(this._7we);this._7we=null;}};_bw.prototype._ihk=function(_atn){return this._2ej&&this._2ej.indexOf(_atn)>=0;};_bw.prototype._1gn=function(){if(this._7we){this._7we.style.display="none";}};_bw.prototype._jgn=function(){if(this._7we){this._7we.style.display="block";}};_bw.prototype._ool=function(_obn){if(!this._5sk){return;}this._7we.style.left=_obn.left+"px";this._7we.style.top=_obn.top+"px";if(this._tzh){var _kzg=_obn.width+this._crb*2;var _hdf=_obn.height+this._crb*2;var _iwa=this._4pl[_bw._10n].style;var _qhc=this._4pl[_bw._tgn].style;var _yg9=this._4pl[_bw._efm].style;var _o68=this._4pl[_bw._cml].style;_iwa.left=_qhc.left=_o68.left=-this._crb+"px";_iwa.top=_qhc.top=_yg9.top=-this._crb+"px";_iwa.height=_yg9.height=_hdf+"px";_yg9.left=_obn.width+"px";_qhc.width=_o68.width=_kzg+"px";_o68.top=_obn.height+"px";}else{this._zfj.style.left=-this._crb+"px";this._zfj.style.top=-this._crb+"px";this._zfj.style.width=_obn.width+this._crb*2+"px";this._zfj.style.height=_obn.height+this._crb*2+"px";}};_bw.prototype._wfn=function(){if(!this._2ej||this._2ej.length==0){this._1gn();return;}else{var _obn=null;var _ajn=this._5sk._jh2().body;var _tzl=this._2ej.length;for(var i=0;i<_tzl;i++){var _atn=this._2ej[i];if(!(_atn.style.display=="none"||_atn.offsetHeight==0||_atn.offsetWidth==0)){var _rum=_4qn._ep9(_atn, _ajn);var _5ek=_atn.getAttribute("specname");if(_5ek=="page"||_5ek=="pageBody"||_atn.tagName=="TD"||_atn.tagName=="TH"){var _hqd=this._crb+1;if(_rum.width>_hqd*2&&_rum.height>_hqd*2){_rum.left+= _hqd;_rum.top+= _hqd;_rum.right-= _hqd;_rum.bottom-= _hqd;_rum.width-= _hqd*2;_rum.height-= _hqd*2;}}if(!_obn){_obn=_rum;}else{if(_rum){_obn.left=Math.min(_obn.left, _rum.left);_obn.top=Math.min(_obn.top, _rum.top);_obn.right=Math.max(_obn.right, _rum.right);_obn.bottom=Math.max(_obn.bottom, _rum.bottom); }}}}if(_obn){_obn.width=_obn.right-_obn.left;_obn.height=_obn.bottom-_obn.top;this._ool(_obn);this._jgn();}else{this._1gn();}}};
|