ГлавнаяПоддержкаБлог
Главная arrow Исходные тексты arrow default.js/main()
default.js/main()

Функция default.js/main

function main(){

 var EV = glob('EV_ID');
 glob('SKIN') = GetSkin();
 if(module_run(M_EV_GLOBAL, EV)){return;}
 switch(EV){
 case EV_ID_BUTTON_CLICK:       ProcessButtons(glob('COOKIE'));          break;

 case EV_ID_PPFOLDER_OPEN:      LoadFolderParams(glob("SENDER"));        break;
 case EV_ID_PPFOLDER_CHANGE:    break;
 case EV_ID_PPFOLDER_APPLY:     SaveFolderParams(glob("SENDER"));        break;
 case EV_ID_PPFOLDER_CLOSE:     break;

 case EV_ID_ONCONNECTION:       break;
 case EV_ID_ONDISCONNECTION:    OnDisconnect(); break;
 case EV_ID_ONSTARTUPCOMPLETE:  OnStartupComplete();break;
 case EV_ID_ONINITSRC:          OnInitScr(); break;
 case EV_ID_ONADDINSUPDATE:     break;
 case EV_ID_ONBEGINSHUTDOWN:    OnBeginShutDown();break;

 case EV_ID_INSPECTOR_ADD:      var Inspector = glob('INSPECTOR');
                                if(Inspector.CurrentItem.Class==olMail){
                                 if(Inspector.WordEditor){
                                  glob('BAR_PLACE') = 2;
                                  RefreshMyCommandBar(Inspector.WordEditor.CommandBars, 1);
                                 }else{
                                  if(Inspector.CommandBars){
                                   glob('BAR_PLACE') = 0;
                                   RefreshMyCommandBar(Inspector.CommandBars, 1);
                                  }
                                 }
                                }
                                Inspector = null;
                                break;
 case EV_ID_INSPECTOR_ACTIVATE: //var Inspector = glob('INSPECTOR');
                                break;
 case EV_ID_INSPECTOR_CLOSE:    /*var Inspector = glob('INSPECTOR');
                                if(Inspector.WordEditor){
                                 DeleteMyCommandBar(Inspector.WordEditor.CommandBars)
                                }else{
                                 if(Inspector.CommandBars){
                                  DeleteMyCommandBar(Inspector.CommandBars);
                                 }
                                }
                                Inspector = null;*/
                                break;
 case EV_ID_EXPLORER_ADD:       //glob('EXPLORER')
                                break;
 case EV_ID_EXPLORER_ACTIVE:    try{
                                 RefreshMyCommandBar(glob('EXPLORER').CommandBars, 0);
                                }catch(e){}
                                break;
 case EV_ID_NEWMAIL:            executeFile(GetRegistryKey('ScriptNewMail'));
                                break;
 case EV_ID_SENDMAIL:           executeFile(GetRegistryKey('ScriptSendMail'));
                                break;
 case EV_ID_REMINDER:           executeFile(GetRegistryKey('ScriptReminder'));
                                break;
 case EV_ID_GETLISTLANG:        GetListLang(); break;
 case EV_ID_GETSTRING:          glob('VALUE_STRING') = GetLangString(glob("SENDER")); break;
 case EV_ID_PPMAIN_APPLY:       break;
 case EV_ID_COMPLETION:         GetInfoEditorCompletion();
                                break;
 case EV_ID_RULE_GETLISTCOMMANDS: glob("RULE_GETCOMMANDS") = Rule_GetList()+glob("RULE_GETCOMMANDS");
                                break;
 case EV_ID_RULE_RUN:           Rule_Run(glob("RULE_COMMAND"), glob("RULE_MESSAGE")); break;
 case EV_ID_RULE_TUNE:          glob("RULE_ACTION_PARAM") =
 Rule_Tune(glob("RULE_ACTION_ID"), glob("RULE_ACTION_PARAM")); break;
 case EV_ID_MAILTO:             doMailto(glob("SENDER")); break;
 case EV_ID_STARTMAILER:        doStartMailer(glob("SENDER")); break;
 case EV_ID_MODULES_INIT:       module_init(); break;
 case EV_ID_MODULES_QUIT:       module_run(M_EV_MODULE_QUIT, 0); glob('Modules') = null; break;
 case EV_ID_MODULES_CHANGE:     break;
 case EV_ID_QUOTE:              func.WaitShow(4, WAIT_Quoting);
                                try{
                                 glob('EV_QUOTE_RESULT') = quote(glob('EV_QUOTE_TEXT'), glob('EV_QUOTE_PREFIX'));
                                }catch(e){}
                                func.WaitClose();
                                break;
 case EV_ID_SUBJ:               glob('EV_SUBJ_RESULT') =
                                                   AddPrefixSubject(glob('EV_SUBJ_SUBJ'),
                                                                      glob('EV_SUBJ_PREFIX'),0);
                                break;
 case EV_ID_CNI:                glob('EV_CNI_RESULT') = 
                                                CreateNewItemDo(glob('EV_CNI_TEMPL'),
                                                                glob('EV_CNI_TEMPL1'),
                                                                glob('EV_CNI_FOLDER'),
                                                                glob('EV_CNI_ITEMTYPE'))
                                break;
 case EV_ID_TF:                 
//glob('EV_TF_RESULT') = GetTemplateForFolder(glob('EV_TF_FOLDER'))
                                break;
 case EV_ID_TF_CHECK:           glob('EV_TF_CHECK_RESULT') = false
                                break;
 case EV_ID_MENU_CONTEXT:       ContextMenu(glob('EV_MENU_ITEM'), glob('EV_SOURCETEXT'));
                                break;
 case EV_ID_CLEARCACHE:         ClearCache();
                                break;
 case EV_ID_INITHOTKEYS:	glob('EV_HOTKEYS_DATA') = [];
				func.SendEvent(EV_ID_GETHOTKEYS, null, null)
 				InitHotKeys(glob('EV_HOTKEYS_DATA'));
 				break;
 case EV_ID_GETHOTKEYS:		
//glob('EV_HOTKEYS_DATA') = [['idEV', 'Caption', 'HotKey', 'Description'], ...];
 				GetDefaultHotKeys();
 				break;
 case EV_ID_DOHOTKEY:		// glob("COOKIE") - Hotkey Number
 				// glob('SENDER') - HotKey idEV
                                // Result - glob('EV_ID_DOHOTKEY_RESULT')
                                DoDefaultHotKey();
 				break;
 alert(func.GetString('EV_Text_NotHandled'));
 }
}
 


Загрузить Potolook
 
Плагин Potolook для Microsoft Outlook
Ментальная арифметика для детей
© 2004-2012 Позитик. Все права защищены.

Microsoft®, Outlook® и эмблема Office являются охраняемыми товарными знаками корпорации Майкрософт (Microsoft Corporation) в США и/или других странах.
Копирование и использование материалов разрешается только в случае указания явной гиперссылки на сайт http://www.potolook.ru, как на источник получения информации.

Разработка сайта — "Позитик"

Рейтинг@Mail.ru