mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
155 lines
6.0 KiB
R
155 lines
6.0 KiB
R
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
*
|
|
* The contents of this file are subject to the Netscape Public License
|
|
* Version 1.0 (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/NPL/
|
|
*
|
|
* 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.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape Communications
|
|
* Corporation. Portions created by Netscape are Copyright (C) 1998
|
|
* Netscape Communications Corporation. All Rights Reserved.
|
|
*/
|
|
|
|
|
|
/*----------------------------------------------------------------------------
|
|
The Apple Events Template resource 'aedt' (found in Types.r)
|
|
is used to associate an Event Class and Event ID with a
|
|
unique integer value. These integer values are private to the
|
|
application processing the events.
|
|
|
|
restriction: PowerPlant uses integer valuse below 4000
|
|
All data for aetds is now centrally located in resae.h
|
|
----------------------------------------------------------------------------*/
|
|
|
|
|
|
#include "types.r"
|
|
// #include "AEUserTermTypes.r"
|
|
#include "nsAppleEvents.h" // Provides AE Types, IDs, and AE_RefNums
|
|
// Found in mozilla/xpfe/appshell/public
|
|
|
|
/*--------------------------------------------------------------------------*/
|
|
/* ----- World Wide Web - Spyglass Suite ----- */
|
|
/*--------------------------------------------------------------------------*/
|
|
|
|
resource 'aedt' (kSpyGlass_aedtResID, "World-Wide-Web Suite (Spyglass spec)") {
|
|
{
|
|
AE_spy_receive_suite, AE_spy_openURL, AE_OpenURL, // WWW! OURL
|
|
#ifndef MOZILLA_FIVE
|
|
AE_spy_receive_suite, AE_spy_registerViewer, AE_RegisterViewer, // WWW! RGVW
|
|
AE_spy_receive_suite, AE_spy_unregisterViewer, AE_UnregisterViewer, // WWW! UNRV
|
|
AE_spy_receive_suite, AE_spy_showFile, AE_ShowFile, // WWW! SHWF
|
|
AE_spy_receive_suite, AE_spy_parse, AE_ParseAnchor, // WWW! PRSA
|
|
AE_spy_receive_suite, AE_spy_registerURLecho, AE_RegisterURLEcho, // WWW! RGUE
|
|
AE_spy_receive_suite, AE_spy_unregisterURLecho, AE_UnregisterURLEcho, // WWW! UNRU
|
|
AE_spy_receive_suite, AE_spy_activate, AE_SpyActivate, // WWW! ACTV
|
|
AE_spy_receive_suite, AE_spy_listwindows, AE_SpyListWindows, // WWW! LSTW
|
|
AE_spy_receive_suite, AE_spy_getwindowinfo, AE_GetWindowInfo, // WWW! WNFO
|
|
AE_spy_receive_suite, AE_spy_registerWinClose, AE_RegisterWinClose, // WWW! RGWC
|
|
AE_spy_receive_suite, AE_spy_unregisterWinClose, AE_UnregisterWinClose, // WWW! UNRC
|
|
AE_spy_receive_suite, AE_spy_register_protocol, AE_RegisterProtocol, // WWW! RGPR
|
|
AE_spy_receive_suite, AE_spy_unregister_protocol, AE_UnregisterProtocol, // WWW! UNRP
|
|
AE_spy_receive_suite, AE_spy_CancelProgress, AE_CancelProgress, // WWW! CNCL
|
|
AE_spy_receive_suite, AE_spy_findURL, AE_FindURL // WWW! FURL
|
|
#endif // MOZILLA_FIVE
|
|
}
|
|
};
|
|
|
|
/*--------------------------------------------------------------------------*/
|
|
/* ----- Netscape and Macintosh Std URL Suites ----- */
|
|
/*--------------------------------------------------------------------------*/
|
|
|
|
resource 'aedt' (kURLSuite_aedtResID, "Netscape & URL suite") {
|
|
{
|
|
#ifdef MOZILLA_FIVE
|
|
AE_url_suite, AE_url_getURL, AE_GetURL // GURL GURL
|
|
, AE_www_suite, AE_www_doJavaScript, AE_DoJavascript // MOSS jscr
|
|
#else
|
|
AE_www_suite, AE_www_workingURL, AE_GetWD // MOSS wurl
|
|
, AE_www_suite, AE_www_openBookmark, AE_OpenBookmark // MOSS book
|
|
, AE_www_suite, AE_www_ReadHelpFile, AE_ReadHelpFile // MOSS help
|
|
, AE_www_suite, AE_www_go, AE_Go // MOSS gogo
|
|
, AE_url_suite, AE_url_getURL, AE_GetURL // GURL GURL
|
|
, AE_www_suite, AE_www_ProfileManager, AE_OpenProfileManager // MOSS prfl
|
|
, AE_www_suite, AE_www_openAddressBook, AE_OpenAddressBook // MOSS addr
|
|
, AE_www_suite, AE_www_openComponent, AE_OpenComponent // MOSS cpnt
|
|
, AE_www_suite, AE_www_getActiveProfile, AE_GetActiveProfile // MOSS upro
|
|
, AE_www_suite, AE_www_handleCommand, AE_HandleCommand // MOSS hcmd
|
|
, AE_www_suite, AE_www_getImportData, AE_GetProfileImportData // MOSS Impt
|
|
, AE_www_suite, AE_www_GuestMode, AE_OpenGuestMode // MOSS gues
|
|
#endif // MOZILLA_FIVE
|
|
}
|
|
};
|
|
|
|
/*--------------------------------------------------------------------------*/
|
|
/* Required Suite, we will leave this hard wired for now */
|
|
/*--------------------------------------------------------------------------*/
|
|
|
|
resource 'aedt' (kRequired_aedtResID, "Required Suite") {
|
|
{
|
|
'aevt', 'oapp', 1001,
|
|
'aevt', 'odoc', 1002,
|
|
'aevt', 'pdoc', 1003,
|
|
'aevt', 'quit', 1004
|
|
}
|
|
};
|
|
|
|
/*--------------------------------------------------------------------------*/
|
|
/* Core Suite, we will leave this hard wired for now */
|
|
/*--------------------------------------------------------------------------*/
|
|
|
|
resource 'aedt' (kCore_aedtResID, "Core Suite") {
|
|
{
|
|
|
|
'core', 'clon', 2001,
|
|
'core', 'clos', 2002,
|
|
'core', 'cnte', 2003,
|
|
'core', 'crel', 2004,
|
|
'core', 'delo', 2005,
|
|
'core', 'doex', 2006,
|
|
'core', 'qobj', 2007,
|
|
'core', 'getd', 2008,
|
|
'core', 'dsiz', 2009,
|
|
'core', 'gtei', 2010,
|
|
'core', 'move', 2011,
|
|
'core', 'save', 2012,
|
|
'core', 'setd', 2013
|
|
}
|
|
};
|
|
|
|
/*--------------------------------------------------------------------------*/
|
|
/* Misc Standards, we will leave this hard wired for now */
|
|
/*--------------------------------------------------------------------------*/
|
|
|
|
resource 'aedt' (kMisc_aedtResID, "Misc Standards") {
|
|
{
|
|
'aevt', 'obit', 3001,
|
|
'misc', 'begi', 3002,
|
|
'misc', 'copy', 3003,
|
|
'misc', 'cpub', 3004,
|
|
'misc', 'cut ', 3005,
|
|
'misc', 'dosc', 3006,
|
|
'misc', 'edit', 3007,
|
|
'misc', 'endt', 3008,
|
|
'misc', 'imgr', 3009,
|
|
'misc', 'isun', 3010,
|
|
'misc', 'mvis', 3011,
|
|
'misc', 'past', 3012,
|
|
'misc', 'redo', 3013,
|
|
'misc', 'rvrt', 3014,
|
|
'misc', 'ttrm', 3015,
|
|
'misc', 'undo', 3016
|
|
}
|
|
};
|
|
|
|
|
|
|
|
|
|
|