//------------------------------------------------------------------------------ // // ADOBE SYSTEMS INCORPORATED // Copyright 2000-2004 Adobe Systems Incorporated // All Rights Reserved // // NOTICE: Adobe permits you to use, modify, and distribute // this file in accordance with the terms of the Adobe license // agreement accompanying it. If you have received this file // from a source other than Adobe, then your use, modification, // or distribution of it requires the prior written permission // of Adobe. // //------------------------------------------------------------------------------ if( typeof( docSignal ) == 'function' ) { app.addEventListener( 'new', function (e){docSignal(e.document,e.type,e);} ); app.addEventListener( 'opened', function (e){e.document.addEventListener('selection',function (e){docSignal(e.document,e.type,e);});} ); app.addEventListener( 'opened', function (e){docSignal(e.document,e.type,e);} ); app.addEventListener( 'close', function (e){docSignal(e.document,e.type,e);}, true ); app.addEventListener( 'view', function (e){docSignal(e.document,e.type,e);}, true ); app.addEventListener( 'leaveview', function (e){docSignal(e.document,e.type,e);}, true ); app.addEventListener( 'save', function (e){docSignal(e.document,e.type,e);}, true ); app.addEventListener( 'saved', function (e){docSignal(e.document,e.type,e);}, true ); app.addEventListener( 'activate', function (e){docSignal(e.document,e.type,e);}, true ); app.addEventListener( 'deactivate', function (e){docSignal(e.document,e.type,e);}, true ); app.addEventListener( 'preview', function (e){docSignal(e.document,e.type,e);}, true ); } if( typeof( appSignal ) == 'function' ) { app.addEventListener( 'appterm', appSignal ); } if( typeof( moduleSignal ) == 'function' ) { app.addEventListener( 'inspector', moduleSignal ); } if( typeof( undoSignal ) == 'function' ) { app.addEventListener( 'undoSignal', function (e){undoSignal(e.undo,e.action,e);}, true ); } if( typeof( linkChanged ) == 'function' ) { app.addEventListener( 'linkChanged', function (e){linkChanged(e.link,e);}, true ); } if( typeof( inspectBox ) == 'function' ) { app.addEventListener( 'inspectBox', function (e){inspectBox(e.target,e);}, true ); } if( typeof( inspectTranslation ) == 'function' ) { app.addEventListener( 'inspectTranslation', function (e){inspectTranslation(e.inspector,e.source,e);} ); } if( typeof( parseBox ) == 'function' ) { app.addEventListener( 'parseBox', function (e){parseBox(e.box,e.reason,e);}, true ); } if( typeof( boxResized ) == 'function' ) { app.addEventListener( 'boxResized', function (e){boxResized(e.box,e.width,e.height,e);}, true ); } if( typeof( drawBox ) == 'function' ) { app.addEventListener( 'drawBox', function (e){drawBox(e.target,e.draw,e);}, true ); } if( typeof( translationLinkChanged ) == 'function' ) { app.addEventListener( 'translationLinkChanged', function (e){translationLinkChanged(e.source,e.index,e.url,e);} ); } if( typeof( translate ) == 'function' ) { app.addEventListener( 'translate', function (e){translate(e.documentUrl,e.siteUrl,e.source,e);} ); } if( typeof( mouseControl ) == 'function' ) { app.addEventListener( 'mouseControl', function(e){mouseControl(e.target,e.clientX,e.clientY,e.mode,e);}, true ); } if( typeof( menuSetup ) == 'function' ) { app.addEventListener( 'menuSetup', function(e){menuSetup(e.target,e);}, true ); } if( typeof( menuSignal ) == 'function' ) { app.addEventListener( 'menuSignal', function(e){menuSignal(e.target,e);}, true ); } if( typeof( dragControl ) == 'function' ) { app.addEventListener( 'dragControl', function(e){dragControl(e);}, true ); app.addEventListener( 'drop', function(e){dragControl(e);}, true ); } if( typeof( generateMarkupForURL ) == 'function' ) { app.addEventListener( 'generateMarkupForURL', function(e){generateMarkupForURL(e);} ); } if( typeof( inspectMarkupForURL ) == 'function' ) { app.addEventListener( 'inspectMarkupForURL', function(e){inspectMarkupForURL(e);} ); } if( typeof( controlSignal ) == 'function' ) { app.addEventListener( 'onClick', function(e){controlSignal(e.target,e);}, true ); app.addEventListener( 'onChange', function(e){controlSignal(e.target,e);}, true ); app.addEventListener( 'previewNavigate', function(e){controlSignal(e.target,e);}, true ); } if( typeof( broadcastSignal ) == 'function' ) { app.addEventListener( 'broadcast', function (e){if(e.modules.length>0&&e.modules.search(module.name)>-1){e.answer=broadcastSignal(e.sender.name,e.message,e);}}, true ); } function _cmphdl_(e) { switch( e.classname ) { case 'CustomControl': if( typeof( drawControl ) == 'function' ) { e.object.addEventListener( 'drawControl', function(e){drawControl(e.target,e.draw,e);} ); } break; } } var __cbs__ = new Object; function registerCallback( type, handler ) { unregisterCallback( type, handler ); var hdlfunction = eval( handler, true ); var hdl=null; switch( type ) { case 'onWebsiteSwitch': case 'onWebsiteOpen': case 'onWebsiteClose': case 'onFileSelectionChange': __cbs__[type] = hdl = hdlfunction; break; case 'onFilesTabContentCallback': __cbs__[type] = hdl = function(e){hdlfunction(e.id,e.ref,e);}; break; case 'onFilesTabCompareCallback': __cbs__[type] = hdl = function(e){hdlfunction(e.id,e.ref,e.compareRef,e);}; break; case 'onFilesTabColumnIDCallback': __cbs__[type] = hdl = function(e){hdlfunction(e.id,e.changedId,e);}; break; default: { __cbs__[type] = hdl = function(e) { var args = e.message.split(','); var es = __cbs__[args[0]].hdlfoo+'('; for(var i=1;i
0 ) eval( menus[__i__].name + '=menus[' + __i__ + '];' ); } catch(exp) {} }