亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? msgcomposecommands.js

?? 現在很火的郵件客戶端軟件thunderbird的源碼
?? JS
?? 第 1 頁 / 共 5 頁
字號:
# -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-# ***** BEGIN LICENSE BLOCK *****# Version: MPL 1.1/GPL 2.0/LGPL 2.1## The contents of this file are subject to the Mozilla Public License Version# 1.1 (the "License"); you may not use this file except in compliance with# the License. You may obtain a copy of the License at# http://www.mozilla.org/MPL/## Software distributed under the License is distributed on an "AS IS" basis,# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License# for the specific language governing rights and limitations under the# License.## The Original Code is Mozilla Communicator client code, released# March 31, 1998.## The Initial Developer of the Original Code is# Netscape Communications Corporation.# Portions created by the Initial Developer are Copyright (C) 1998-1999# the Initial Developer. All Rights Reserved.## Contributor(s):#   David Bienvenu <bienvenu@nventure.com>## Alternatively, the contents of this file may be used under the terms of# either the GNU General Public License Version 2 or later (the "GPL"), or# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),# in which case the provisions of the GPL or the LGPL are applicable instead# of those above. If you wish to allow use of your version of this file only# under the terms of either the GPL or the LGPL, and not to allow others to# use your version of this file under the terms of the MPL, indicate your# decision by deleting the provisions above and replace them with the notice# and other provisions required by the GPL or the LGPL. If you do not delete# the provisions above, a recipient may use your version of this file under# the terms of any one of the MPL, the GPL or the LGPL.## ***** END LICENSE BLOCK *****/** * interfaces */const nsIMsgCompDeliverMode = Components.interfaces.nsIMsgCompDeliverMode;const nsIMsgCompSendFormat = Components.interfaces.nsIMsgCompSendFormat;const nsIMsgCompConvertible = Components.interfaces.nsIMsgCompConvertible;const nsIMsgCompType = Components.interfaces.nsIMsgCompType;const nsIMsgCompFormat = Components.interfaces.nsIMsgCompFormat;const nsIAbPreferMailFormat = Components.interfaces.nsIAbPreferMailFormat;const nsIPlaintextEditorMail = Components.interfaces.nsIPlaintextEditor;const nsISupportsString = Components.interfaces.nsISupportsString;const mozISpellCheckingEngine = Components.interfaces.mozISpellCheckingEngine;/** * In order to distinguish clearly globals that are initialized once when js load (static globals) and those that need to be  * initialize every time a compose window open (globals), I (ducarroz) have decided to prefix by s... the static one and * by g... the other one. Please try to continue and repect this rule in the future. Thanks. *//** * static globals, need to be initialized only once */var sMsgComposeService = Components.classes["@mozilla.org/messengercompose;1"].getService(Components.interfaces.nsIMsgComposeService);var sComposeMsgsBundle = document.getElementById("bundle_composeMsgs");var sPrefs = null;var sPrefBranchInternal = null;var sOther_headers = "";var sAccountManagerDataSource = null;var sRDF = null;var sNameProperty = null;var sDictCount = 0;/* Create message window object. This is use by mail-offline.js and therefore should not be renamed. We need to avoid doing    this kind of cross file global stuff in the future and instead pass this object as parameter when needed by function   in the other js file.*/var msgWindow = Components.classes["@mozilla.org/messenger/msgwindow;1"].createInstance();msgWindow = msgWindow.QueryInterface(Components.interfaces.nsIMsgWindow);/** * Global variables, need to be re-initialized every time mostly because we need to release them when the window close */var gHideMenus;var gMsgCompose;var gAccountManager;var gIOService;var gPromptService;var gLDAPPrefsService;var gWindowLocked;var gContentChanged;var gAutoSaving;var gCurrentIdentity;var defaultSaveOperation;var gSendOrSaveOperationInProgress;var gCloseWindowAfterSave;var gIsOffline;var gSessionAdded;var gCurrentAutocompleteDirectory;var gAutocompleteSession;var gSetupLdapAutocomplete;var gLDAPSession;var gSavedSendNowKey;var gSendFormat;var gLogComposePerformance;var gMsgIdentityElement;var gMsgAddressingWidgetTreeElement;var gMsgSubjectElement;var gMsgAttachmentElement;var gMsgHeadersToolbarElement;// i18n globalsvar gCurrentMailSendCharset;var gSendDefaultCharset;var gCharsetTitle;var gCharsetConvertManager;var gLastWindowToHaveFocus;var gReceiptOptionChanged;var gAttachVCardOptionChanged;var gMailSession;var gAutoSaveInterval;var gAutoSaveTimeout;var gExplicitSave;var gEditingDraft;const kComposeAttachDirPrefName = "mail.compose.attach.dir";function InitializeGlobalVariables(){  gAccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager);  gIOService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);  gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);    //This migrates the LDAPServer Preferences from 4.x to mozilla format.  gLDAPPrefsService = Components.classes["@mozilla.org/ldapprefs-service;1"];  if (gLDAPPrefsService) {    try {      gLDAPPrefsService = gLDAPPrefsService          .getService(Components.interfaces.nsILDAPPrefsService);    } catch (ex) {dump ("ERROR: Cannot get the LDAP prefs service\n" + ex + "\n");}  }  gMsgCompose = null;  gWindowLocked = false;  gContentChanged = false;  gCurrentIdentity = null;  defaultSaveOperation = "draft";  gSendOrSaveOperationInProgress = false;  gAutoSaving = false;  gCloseWindowAfterSave = false;  gIsOffline = gIOService.offline;  gSessionAdded = false;  gCurrentAutocompleteDirectory = null;  gAutocompleteSession = null;  gSetupLdapAutocomplete = false;  gLDAPSession = null;  gSavedSendNowKey = null;  gSendFormat = nsIMsgCompSendFormat.AskUser;  gCurrentMailSendCharset = null;  gSendDefaultCharset = null;  gCharsetTitle = null;  gCharsetConvertManager = Components.classes['@mozilla.org/charset-converter-manager;1'].getService(Components.interfaces.nsICharsetConverterManager);  gMailSession = Components.classes["@mozilla.org/messenger/services/session;1"].getService(Components.interfaces.nsIMsgMailSession);  gHideMenus = false;  // We are storing the value of the bool logComposePerformance inorder to avoid logging unnecessarily.  if (sMsgComposeService)    gLogComposePerformance = sMsgComposeService.logComposePerformance;  gLastWindowToHaveFocus = null;  gReceiptOptionChanged = false;  gAttachVCardOptionChanged = false;}InitializeGlobalVariables();function ReleaseGlobalVariables(){  gAccountManager = null;  gIOService = null;  gPromptService = null;  gLDAPPrefsService = null;  gCurrentIdentity = null;  gCurrentAutocompleteDirectory = null;  gAutocompleteSession = null;  gLDAPSession = null;  gCharsetConvertManager = null;  gMsgCompose = null;  gMailSession = null;}function disableEditableFields(){  gMsgCompose.editor.flags |= nsIPlaintextEditorMail.eEditorReadonlyMask;  var disableElements = document.getElementsByAttribute("disableonsend", "true");  for (i=0;i<disableElements.length;i++)  {    disableElements[i].setAttribute('disabled', 'true');  }}function enableEditableFields(){  gMsgCompose.editor.flags &= ~nsIPlaintextEditorMail.eEditorReadonlyMask;  var enableElements = document.getElementsByAttribute("disableonsend", "true");  for (i=0;i<enableElements.length;i++)  {    enableElements[i].removeAttribute('disabled');  }}var gComposeRecyclingListener = {  onClose: function() {    //Reset recipients and attachments    ReleaseAutoCompleteState();    awResetAllRows();    RemoveAllAttachments();    // We need to clear the identity popup menu in case the user will change them.     // It will be rebuilt later in ComposeStartup    ClearIdentityListPopup(document.getElementById("msgIdentityPopup"));     //Clear the subject    GetMsgSubjectElement().value = "";    // be sure to clear the transaction manager for the subject    GetMsgSubjectElement().editor.transactionManager.clear();    SetComposeWindowTitle();    SetContentAndBodyAsUnmodified();    disableEditableFields();    ReleaseGlobalVariables();    // Clear the focus    awGetInputElement(1).removeAttribute('focused');    //Reset Boxes size        document.getElementById("headers-box").removeAttribute("height");    document.getElementById("appcontent").removeAttribute("height");    document.getElementById("addresses-box").removeAttribute("width");    document.getElementById("attachments-box").removeAttribute("width");    //Reset menu options    document.getElementById("format_auto").setAttribute("checked", "true");    document.getElementById("priority_normal").setAttribute("checked", "true");    //Reset toolbars that could be hidden    if (gHideMenus) {      document.getElementById("formatMenu").hidden = false;      document.getElementById("insertMenu").hidden = false;      var showFormat = document.getElementById("menu_showFormatToolbar")      showFormat.hidden = false;      if (showFormat.getAttribute("checked") == "true")        document.getElementById("FormatToolbar").hidden = false;    }    //Reset editor    InlineSpellChecker.Init(GetCurrentEditor(), false); // unregister inline spell checking listeners and release the spell checker    EditorResetFontAndColorAttributes();    EditorCleanup();    //Release the nsIMsgComposeParams object    if (window.arguments && window.arguments[0])      window.arguments[0] = null;    var event = document.createEvent('Events');    event.initEvent('compose-window-close', false, true);    document.getElementById("msgcomposeWindow").dispatchEvent(event);    if (gAutoSaveTimeout)      clearTimeout(gAutoSaveTimeout);  },  onReopen: function(params) {    InitializeGlobalVariables();    ComposeStartup(true, params);    var event = document.createEvent('Events');    event.initEvent('compose-window-reopen', false, true);    document.getElementById("msgcomposeWindow").dispatchEvent(event);  }};var stateListener = {  NotifyComposeFieldsReady: function() {    ComposeFieldsReady();  },  NotifyComposeBodyReady: function() {},  ComposeProcessDone: function(aResult) {    gWindowLocked = false;    enableEditableFields();    updateComposeItems();    if (aResult== Components.results.NS_OK)    {      if (!gAutoSaving)        SetContentAndBodyAsUnmodified();           if (gCloseWindowAfterSave)      {        // Notify the SendListener that Send has been aborted and Stopped        if (gMsgCompose)        {          var externalListener = gMsgCompose.getExternalSendListener();          if (externalListener)          {              externalListener.onSendNotPerformed(null, Components.results.NS_ERROR_ABORT);          }        }        MsgComposeCloseWindow(true);      }    }    // else if we failed to save, and we're autosaving, need to re-mark the editor    // as changed, so that we won't lose the changes.    else if (gAutoSaving)    {      gMsgCompose.bodyModified = true;       gContentChanged = true;    }    gAutoSaving = false;    gCloseWindowAfterSave = false;  },  SaveInFolderDone: function(folderURI) {    DisplaySaveFolderDlg(folderURI);  }};// all progress notifications are done through the nsIWebProgressListener implementation...var progressListener = {    onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus)    {      if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_START)      {        document.getElementById('compose-progressmeter').setAttribute( "mode", "undetermined" );      }            if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP)      {        gSendOrSaveOperationInProgress = false;        document.getElementById('compose-progressmeter').setAttribute( "mode", "normal" );        document.getElementById('compose-progressmeter').setAttribute( "value", 0 );        document.getElementById('statusText').setAttribute('label', '');      }    },        onProgressChange: function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress)    {      // Calculate percentage.      var percent;      if ( aMaxTotalProgress > 0 )       {        percent = Math.round( (aCurTotalProgress*100)/aMaxTotalProgress );        if ( percent > 100 )          percent = 100;                document.getElementById('compose-progressmeter').removeAttribute("mode");                // Advance progress meter.        document.getElementById('compose-progressmeter').setAttribute( "value", percent );      }       else       {        // Progress meter should be barber-pole in this case.        document.getElementById('compose-progressmeter').setAttribute( "mode", "undetermined" );      }    },    onLocationChange: function(aWebProgress, aRequest, aLocation)    {      // we can ignore this notification    },

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久久久久一| 亚洲国产成人午夜在线一区| 日韩精品一区二区三区视频播放| 亚洲一二三四区不卡| 五月天一区二区| 国产激情偷乱视频一区二区三区 | 色网站国产精品| 欧美一区在线视频| 国产欧美一区二区精品性| 亚洲另类在线一区| 麻豆精品一区二区三区| 成人午夜激情视频| 欧美男人的天堂一二区| 18欧美亚洲精品| 激情偷乱视频一区二区三区| 欧美在线不卡一区| 欧美国产国产综合| 日本成人在线不卡视频| 在线观看不卡一区| 国产日韩精品久久久| 久久99国产精品久久99| 91高清视频在线| 成人免费在线视频| 成人午夜激情影院| 国产精品视频yy9299一区| 久久99精品国产麻豆不卡| 欧日韩精品视频| 亚洲精品国产一区二区精华液 | 亚洲国产精品人人做人人爽| 成人av网址在线| 亚洲欧美激情小说另类| 精品婷婷伊人一区三区三| 日韩精品一区二区三区在线观看| 欧美日韩精品专区| 国产日韩av一区二区| 不卡高清视频专区| 综合欧美一区二区三区| 欧美丝袜丝交足nylons图片| 五月天亚洲婷婷| 久久一夜天堂av一区二区三区 | 97aⅴ精品视频一二三区| 一区二区三区精品视频| 欧美一级黄色大片| 成人av在线一区二区三区| 一区二区高清在线| 亚洲精品一区二区三区精华液| 成人国产一区二区三区精品| 亚洲一区二区在线视频| 色婷婷综合久久久久中文一区二区| 日韩欧美黄色影院| 国产美女在线观看一区| 欧美精品一区二区三区在线播放| 美日韩一级片在线观看| 日本一区二区在线不卡| 91啪九色porn原创视频在线观看| 最新国产精品久久精品| 欧美亚洲愉拍一区二区| 免费欧美在线视频| 欧美国产日韩一二三区| 色噜噜偷拍精品综合在线| 午夜精品福利一区二区蜜股av | 国产精品夫妻自拍| 在线观看中文字幕不卡| 日本成人在线不卡视频| 国产精品久久夜| 欧美性大战久久久久久久蜜臀| 日韩av不卡在线观看| 国产精品国产三级国产有无不卡 | 欧美精品少妇一区二区三区| 国产精品影音先锋| 亚洲成av人片在线观看| 久久久久99精品国产片| 欧美日韩一二三区| 国产成人av电影在线观看| 亚洲h动漫在线| 亚洲人吸女人奶水| 精品国产第一区二区三区观看体验| 成人av手机在线观看| 麻豆精品新av中文字幕| 亚洲综合激情小说| 国产精品久久久久天堂| 日韩美女视频在线| 欧美日韩在线三级| 岛国精品在线观看| 久久精品国产**网站演员| 国产精品久久毛片av大全日韩| 6080yy午夜一二三区久久| 色999日韩国产欧美一区二区| 国产激情视频一区二区在线观看 | 国内精品免费在线观看| 日本午夜一本久久久综合| 亚洲一区成人在线| 樱花影视一区二区| 亚洲天堂a在线| 自拍偷在线精品自拍偷无码专区| 欧美激情资源网| 国产日韩欧美一区二区三区综合| 精品黑人一区二区三区久久| 欧美日韩成人综合| 欧美区视频在线观看| 欧美日韩电影在线| 91精品国产综合久久精品图片 | 三级精品在线观看| 天堂影院一区二区| 美国av一区二区| 国产高清成人在线| 99re热这里只有精品视频| 91亚洲精品久久久蜜桃网站| 在线精品亚洲一区二区不卡| 欧美日韩国产大片| 久久久久国产精品麻豆| 成人欧美一区二区三区小说| 亚洲一二三四在线观看| 久久激情五月婷婷| a亚洲天堂av| 在线播放中文一区| 亚洲国产激情av| 亚洲h动漫在线| 懂色av中文字幕一区二区三区| 91免费精品国自产拍在线不卡| 欧美精品一二三| 综合激情成人伊人| 久久成人免费网| 色一区在线观看| 一区二区久久久久久| 亚洲精品久久嫩草网站秘色| 91精品国产综合久久久久久| 337p日本欧洲亚洲大胆色噜噜| 国产欧美日本一区二区三区| 亚洲综合一二三区| 国产伦精品一区二区三区视频青涩| 成人国产一区二区三区精品| 成人三级在线视频| 精品国产一区二区亚洲人成毛片| 亚洲精品日韩综合观看成人91| 另类欧美日韩国产在线| 99精品一区二区| 欧美精品九九99久久| 26uuu亚洲综合色欧美 | 久久久久久一二三区| 亚洲麻豆国产自偷在线| 国产一区二区调教| 欧美日精品一区视频| 一区二区视频免费在线观看| 久久av中文字幕片| 欧美伊人久久久久久午夜久久久久| 亚洲一级二级在线| 一本到高清视频免费精品| 久久蜜桃av一区精品变态类天堂 | 极品少妇xxxx精品少妇| 欧美精品1区2区| 亚洲第一久久影院| 色综合久久天天综合网| 有码一区二区三区| 99精品久久免费看蜜臀剧情介绍| 久久久综合网站| 国产一二三精品| 亚洲国产精品精华液2区45| 国产一区二区三区电影在线观看 | 欧美性大战久久| 亚洲精品视频自拍| 色噜噜狠狠色综合中国| 亚洲成人午夜影院| 在线播放一区二区三区| 日本午夜一区二区| 日韩精品综合一本久道在线视频| 国产一区二区三区在线观看免费视频 | 国产成人无遮挡在线视频| 精品久久久久一区| 国产精品羞羞答答xxdd| 亚洲国产高清不卡| 在线电影欧美成精品| 久久97超碰色| 天堂在线一区二区| 日韩三级精品电影久久久 | 一级日本不卡的影视| 欧美日韩一区二区欧美激情 | 精品精品国产高清一毛片一天堂| 久久99国产精品免费网站| 亚洲国产高清aⅴ视频| 国产成人免费网站| 五月综合激情网| 2022国产精品视频| 91黄色在线观看| 国产91清纯白嫩初高中在线观看| 亚洲欧洲99久久| 欧美一级一区二区| 色噜噜狠狠色综合中国| 久久99精品网久久| 亚洲激情综合网| 久久嫩草精品久久久精品一| 在线观看91精品国产麻豆| 成人av电影免费观看| 看片网站欧美日韩| 亚洲成人tv网| 亚洲精品日产精品乱码不卡| 欧美成人女星排行榜| 欧美三级在线看| 国产精一区二区三区| 美女在线观看视频一区二区|