Compare commits

..

3456 Commits

Author SHA1 Message Date
(no author)
258dc9fead This commit was manufactured by cvs2svn to create branch 'src'.
git-svn-id: svn://10.0.0.236/branches/src@33658 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:10:01 +00:00
dougt%netscape.com
beddda65df adding res to our build path.
git-svn-id: svn://10.0.0.236/trunk@33657 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:10:00 +00:00
dougt%netscape.com
5c3e3cdd3f Adding our fancy progress UI.
git-svn-id: svn://10.0.0.236/trunk@33656 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:09:36 +00:00
pinkerton%netscape.com
558824942f idl files added for streams.
git-svn-id: svn://10.0.0.236/trunk@33655 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:04:22 +00:00
pinkerton%netscape.com
d4747fd632 adding new stream idl files.
git-svn-id: svn://10.0.0.236/trunk@33654 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:03:53 +00:00
rickg%netscape.com
6f748adfbe fixed warnings
git-svn-id: svn://10.0.0.236/trunk@33653 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:03:08 +00:00
rogerl%netscape.com
822b8f09da Instruction sequence clean-up courtesy of Dan Price & Blake Jones at Sun.
git-svn-id: svn://10.0.0.236/trunk@33652 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:02:17 +00:00
wtc%netscape.com
919c19301a Bugzilla bug #4842: do not export pr/include/md.
git-svn-id: svn://10.0.0.236/trunk@33650 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:00:57 +00:00
dougt%netscape.com
66869d908f Adding Progress dialog to project.
CLeaning up error message when you open this project.


git-svn-id: svn://10.0.0.236/trunk@33649 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:59:49 +00:00
putterman%netscape.com
d702efe1d1 added files: mozilla/mailnews/base/src/nsMsgBiffManager.cpp
git-svn-id: svn://10.0.0.236/trunk@33648 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:59:23 +00:00
sspitzer%netscape.com
22e0711e46 if 0 unused functions. add license to top of file. remove shadow warnings.
git-svn-id: svn://10.0.0.236/trunk@33647 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:58:08 +00:00
dougt%netscape.com
41cd02ba7e Changing ProgressNotifier to be nsISupports.
Adding a GUI progress dialog!


git-svn-id: svn://10.0.0.236/trunk@33646 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:57:43 +00:00
putterman%netscape.com
89dd1c2239 Make sure Mork Handles get freed.
git-svn-id: svn://10.0.0.236/trunk@33645 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:57:41 +00:00
putterman%netscape.com
7bc3828ed6 Set the folder charset.
git-svn-id: svn://10.0.0.236/trunk@33644 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:56:45 +00:00
putterman%netscape.com
a873ad7774 Added Charset functions.
git-svn-id: svn://10.0.0.236/trunk@33643 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:56:14 +00:00
putterman%netscape.com
ba27c68079 Added BiffManager.
git-svn-id: svn://10.0.0.236/trunk@33642 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:55:47 +00:00
putterman%netscape.com
a1fcf4c0ad Added Biff Manager and CharSet functions.
git-svn-id: svn://10.0.0.236/trunk@33641 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:54:59 +00:00
putterman%netscape.com
419a185961 Add nsIMsgBiffManager interface. Add Set/GetCharset to nsIMsgFolder.
git-svn-id: svn://10.0.0.236/trunk@33640 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:53:37 +00:00
mcmullen%netscape.com
3e1f70d882 Checked in in error
git-svn-id: svn://10.0.0.236/trunk@33639 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:52:33 +00:00
mcmullen%netscape.com
82a842477e First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33638 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:50:16 +00:00
akkana%netscape.com
5731d83f36 Vidur's initial implementation of Insert HTML Fragment
git-svn-id: svn://10.0.0.236/trunk@33637 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:38:38 +00:00
sfraser%netscape.com
3a5255df19 Added nsHTMLFragmentContentSink.cpp for akkana
git-svn-id: svn://10.0.0.236/trunk@33636 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:36:44 +00:00
wtc%netscape.com
0b6cf61cc5 Bugzilla bug #4842: do not export private NSPR headers (private/pprmwait.h,
private/primpl.h, and md/*.h) to mozilla/dist.  NSPR files will get
these headers from the source tree, via -I$(MOD_DEPTH)/pr/include and
-I$(MOD_DEPTH)/pr/include/private.  Non-NSPR files must not include
these private NSPR headers and should get the exported NSPR headers
from mozilla/dist/<platform.OBJ>/include.


git-svn-id: svn://10.0.0.236/trunk@33631 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:35:44 +00:00
dougt%netscape.com
8e85d7909c Putting the software distributor in its own folder in rdf.
git-svn-id: svn://10.0.0.236/trunk@33630 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:32:11 +00:00
briano%netscape.com
047aef7665 Fixed the Unix builds. DON'T USE C++ COMMENTS IN C FILES.
git-svn-id: svn://10.0.0.236/trunk@33629 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:30:39 +00:00
sspitzer%netscape.com
0dc8ade3f8 either it is an XPIDL source or we EXPORT it. not both. thanks for warren
for finding this.


git-svn-id: svn://10.0.0.236/trunk@33628 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:30:19 +00:00
akkana%netscape.com
435dce283a Part of Vidur's html fragment changes: files which aren't in the build yet
git-svn-id: svn://10.0.0.236/trunk@33627 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:30:12 +00:00
akkana%netscape.com
432eed6e43 Part of Vidur's html fragment changes
git-svn-id: svn://10.0.0.236/trunk@33626 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:27:43 +00:00
chuang%netscape.com
e4a0f545dd Add directory default preferences
git-svn-id: svn://10.0.0.236/trunk@33625 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:27:31 +00:00
briano%netscape.com
d16eea578a distclean is now a distinct target that does everything that realclean does and more.
git-svn-id: svn://10.0.0.236/trunk@33624 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:23:06 +00:00
briano%netscape.com
66c1de0502 Now ignores .map files as well. Requested by Jerry.Kirk@nexware.com.
git-svn-id: svn://10.0.0.236/trunk@33623 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:17:23 +00:00
alecf%netscape.com
93e325c1b9 export DOM XPIDL stubs on windows
git-svn-id: svn://10.0.0.236/trunk@33622 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:16:57 +00:00
dougt%netscape.com
04a2f5105b Adding our IDL project to the build process.
git-svn-id: svn://10.0.0.236/trunk@33621 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:14:57 +00:00
rickg%netscape.com
0add2b3b48 fixed offset error in FindCharInSet() and RFindCharInSet()
git-svn-id: svn://10.0.0.236/trunk@33620 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:12:27 +00:00
valeski%netscape.com
90ac10cb57 http - fixed build probs
test - moved a local var into a #ifdef because it was throwing a warning on windows


git-svn-id: svn://10.0.0.236/trunk@33619 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:12:26 +00:00
akkana%netscape.com
15d273f907 Vidur's HTML fragment content sink; Kostello's document/html encoders
git-svn-id: svn://10.0.0.236/trunk@33618 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:11:53 +00:00
sspitzer%netscape.com
7fde6bff35 checked in header file is now the same as the generated makefile
git-svn-id: svn://10.0.0.236/trunk@33617 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:06:57 +00:00
waterson%netscape.com
87f514938b Remove NS_IS_ERROR() macro; it's both redundant with NS_FAILED() and wrong.
git-svn-id: svn://10.0.0.236/trunk@33616 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:03:07 +00:00
dougt%netscape.com
ccf1224954 A IDL for our Install Progress. This is generic enough that anyone that want
to do proxy install notifications can use this.


git-svn-id: svn://10.0.0.236/trunk@33615 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:02:39 +00:00
dougt%netscape.com
dbff150eae Adding my first cut of the progress dialog. Yes, it sucks.
git-svn-id: svn://10.0.0.236/trunk@33614 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:01:14 +00:00
chuang%netscape.com
ba0d7456fd Add clean up code
git-svn-id: svn://10.0.0.236/trunk@33613 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:00:57 +00:00
gordon%netscape.com
e2d03331fc Make Lookup() a pure virtual method.
git-svn-id: svn://10.0.0.236/trunk@33612 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:57:14 +00:00
rpotts%netscape.com
34c7ad4f20 Fixes to build on Linux...
git-svn-id: svn://10.0.0.236/trunk@33611 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:56:56 +00:00
rpotts%netscape.com
fb06e002b2 Fixes to build on Linux... Removed nettest since it is not building on windows either.
git-svn-id: svn://10.0.0.236/trunk@33610 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:56:29 +00:00
rickg%netscape.com
497df4ffa4 fixed bug 7275 -- dup identifier
git-svn-id: svn://10.0.0.236/trunk@33609 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:56:22 +00:00
dougt%netscape.com
4226961c5c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33608 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:54:51 +00:00
warren%netscape.com
88b0158486 Replaced by nsFileChooser.cpp
git-svn-id: svn://10.0.0.236/trunk@33607 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:53:41 +00:00
gordon%netscape.com
16f4d20fa2 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33606 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:53:30 +00:00
warren%netscape.com
c816c010a8 added files: mozilla/widget/src/xpwidgets/nsFileChooser.cpp, removed files: mozilla/widget/src/xpwidgets/nsFileSpecWithUIImpl.cpp
git-svn-id: svn://10.0.0.236/trunk@33605 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:51:27 +00:00
warren%netscape.com
42b3b62f98 Fixed GenericFactory linkage problems.
git-svn-id: svn://10.0.0.236/trunk@33604 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:51:14 +00:00
warren%netscape.com
05a6513cf0 IDLized stream interfaces. Required rename of overloaded Write method (now WriteFrom). Added nsIBufferInputStream for peek capability.
git-svn-id: svn://10.0.0.236/trunk@33603 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:51:09 +00:00
warren%netscape.com
eb370460d3 Added nsIFileChooser to break dependency on nsFileSpec internals.
git-svn-id: svn://10.0.0.236/trunk@33602 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:51:02 +00:00
warren%netscape.com
7351c02659 Left over from mozilla/base/src.
git-svn-id: svn://10.0.0.236/trunk@33601 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:50:54 +00:00
warren%netscape.com
bee72685ed IDLized stream interfaces. Required rename of overloaded Write method (now WriteFrom).
git-svn-id: svn://10.0.0.236/trunk@33600 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:50:47 +00:00
ducarroz%netscape.com
418eca62e4 oops, the file too add was nsDirPrefs.cpp and not abprefs.cpp
git-svn-id: svn://10.0.0.236/trunk@33599 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:49:07 +00:00
jband%netscape.com
714db32d2e use the newly-FRIEND-ized js_AllocStack, js_FreeStack, and js_Invoke functions instead of JS_CallFunctionName to assure that the gcthing converted args we accumulate before making the call are properly rooted. This is a lot more efficient than the alternative of explicitly rooting them with JS_AddRoot. Up to this point these gcthings (doubles and strings) were dangling. Thanks to brendan for this suggstion.
git-svn-id: svn://10.0.0.236/trunk@33598 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:44:37 +00:00
mcmullen%netscape.com
85375455f0 In progress
git-svn-id: svn://10.0.0.236/trunk@33597 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:43:44 +00:00
chuang%netscape.com
90d511edd2 Hook up directory preferences
git-svn-id: svn://10.0.0.236/trunk@33596 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:41:27 +00:00
mcmullen%netscape.com
1b9109a192 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33595 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:41:11 +00:00
jband%netscape.com
edbf476869 make js_AllocStack, js_FreeStack, and js_Invoke, FRIEND functions so that they can be used by our good friend xpconnect.
git-svn-id: svn://10.0.0.236/trunk@33594 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:39:08 +00:00
ducarroz%netscape.com
9ad032ce7f add abprefs.cpp
git-svn-id: svn://10.0.0.236/trunk@33593 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:36:04 +00:00
ducarroz%netscape.com
0cc1cdced0 remove nsIPref.h as it know generated and installed by xpidl.
git-svn-id: svn://10.0.0.236/trunk@33592 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:35:41 +00:00
ramiro%netscape.com
19682f3362 Comment out debug code that is making it impossible to have timeouts
greater than 10 seconds.


git-svn-id: svn://10.0.0.236/trunk@33591 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:31:38 +00:00
chuang%netscape.com
4a147a3a33 Port PREF_CreateChildList and PREF_NextChild into nsIpref.
git-svn-id: svn://10.0.0.236/trunk@33590 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:25:25 +00:00
hangas%netscape.com
48166cf26b Added card view pane to address book window and added selectaddress.xul
git-svn-id: svn://10.0.0.236/trunk@33589 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:18:33 +00:00
mcmullen%netscape.com
b8824dceb3 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33588 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:18:31 +00:00
alecf%netscape.com
f9c75510b9 check in nsIMessenger.idl - the new Messenger appcore
git-svn-id: svn://10.0.0.236/trunk@33587 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:18:13 +00:00
hangas%netscape.com
ec215423b2 Added selectaddress.xul, addressbucket.xul. Also modified the addressbook window to have a cardview pane.
git-svn-id: svn://10.0.0.236/trunk@33586 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:15:13 +00:00
ducarroz%netscape.com
f84203fc13 add xulstub.idl
git-svn-id: svn://10.0.0.236/trunk@33585 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:00:47 +00:00
ducarroz%netscape.com
58d501079e add build instruction for dom:public:MANIFETS_IDL and domIDL.mcp
git-svn-id: svn://10.0.0.236/trunk@33584 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:00:45 +00:00
ducarroz%netscape.com
dc7dbe247b add nsISupportsArray.idl
git-svn-id: svn://10.0.0.236/trunk@33583 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:00:44 +00:00
ducarroz%netscape.com
6c7546bd5e add xulstubs.idl
git-svn-id: svn://10.0.0.236/trunk@33582 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:00:43 +00:00
ducarroz%netscape.com
cb47db499d First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33581 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:57:17 +00:00
waldemar%netscape.com
278f1afe6b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33580 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:53:14 +00:00
waldemar%netscape.com
43df2e7833 Added support for lookahead constraints
git-svn-id: svn://10.0.0.236/trunk@33579 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:52:04 +00:00
waldemar%netscape.com
038abfdf29 Added general-grammar-symbol? predicate
git-svn-id: svn://10.0.0.236/trunk@33578 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:50:21 +00:00
waldemar%netscape.com
4d092e8b8c Moved pieces of file around
git-svn-id: svn://10.0.0.236/trunk@33577 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:49:13 +00:00
waterson%netscape.com
3fef74e475 Remove dependency from clobber rule.
git-svn-id: svn://10.0.0.236/trunk@33576 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:48:13 +00:00
alecf%netscape.com
a46402dd58 oops, forgot to make this native code for C++
git-svn-id: svn://10.0.0.236/trunk@33575 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:47:09 +00:00
dbragg%netscape.com
67850fd5ac Changed the explicit implementation of AddRef and Release to NS_IMPL_ADDREF and NS_IMPL_RELEASE(nsPrefMigrationFactory)
git-svn-id: svn://10.0.0.236/trunk@33574 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:44:56 +00:00
scc%netscape.com
3b2708bb1d fixed for VMS
git-svn-id: svn://10.0.0.236/trunk@33573 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:36:53 +00:00
mcmullen%netscape.com
cc0a79b6ba Added a convenience function - BuildIDLProject()
git-svn-id: svn://10.0.0.236/trunk@33572 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:32:50 +00:00
terry%mozilla.org
891049d55c Keep the connection to the database open for as little as possible,
and that while in a lock.  That way, multiple checkins all happening at
once can't overflow mysql with too many connections.


git-svn-id: svn://10.0.0.236/trunk@33571 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:32:20 +00:00
briano%netscape.com
8c4f75f993 Had to add another 'else true' to an if block for QNX.
git-svn-id: svn://10.0.0.236/trunk@33570 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:28:34 +00:00
waterson%netscape.com
191fbca633 Replace NS_IS_ERROR() with NS_FAILED(): NS_IS_ERROR() is buggy and redundant.
git-svn-id: svn://10.0.0.236/trunk@33569 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:25:15 +00:00
waterson%netscape.com
60b26e5ed9 Remove unnecessary LINCS now that all headers are pushed to the same directory.
git-svn-id: svn://10.0.0.236/trunk@33568 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:22:54 +00:00
kmcclusk%netscape.com
c27c21e21f Fix for bug #1177. Added a new method ConditionRect which is used to fix coordinate
overflow problems under WIN95. Condition rect converts nsRect to a RECT with cooordinates
modified to acceptable ranges for WIN95.


git-svn-id: svn://10.0.0.236/trunk@33567 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:19:32 +00:00
sspitzer%netscape.com
862fc98636 cast to remove compiler warnings. use PL_strlen() instead of strlen()
rename index to indx to prevent shadow warnings on Linux.


git-svn-id: svn://10.0.0.236/trunk@33566 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:15:38 +00:00
cata%netscape.com
5302e7fe0c Fixed OpenVMS portability problem.
git-svn-id: svn://10.0.0.236/trunk@33565 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:09:56 +00:00
waterson%netscape.com
719a74de7c Fix XPIDL_MODULE typos.
git-svn-id: svn://10.0.0.236/trunk@33564 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:06:49 +00:00
valeski%netscape.com
165e836611 proxy api change
git-svn-id: svn://10.0.0.236/trunk@33563 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:05:22 +00:00
valeski%netscape.com
fa400cb631 added header removal functionality and various return value checks
git-svn-id: svn://10.0.0.236/trunk@33562 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:04:07 +00:00
kmcclusk%netscape.com
dd4956930e Fix for bugs #7442, #7523. Removed the code in WindowProc that was setting the
someWindow local variable based on the lParam for combo box events.
Instead someWindow is set using the default code
with uses the (HWND hWnd) passed in as an argument. Even though the MS documentation claims
you should use the lParam it does not work. This is what was causing the crashes on WIN95.


git-svn-id: svn://10.0.0.236/trunk@33561 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:03:53 +00:00
valeski%netscape.com
6fe73d1391 added the class id to identify the actual class that implements teh nsINetNotify interface
git-svn-id: svn://10.0.0.236/trunk@33560 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:00:38 +00:00
mcmullen%netscape.com
58a6264ae5 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33559 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 19:57:28 +00:00
Jerry.Kirk%Nexwarecorp.com
10296ff3be - Added the Pt_LINK_INSERT flag to make the activate callback for the menuitem
-  occur before the Unrealize of the menu which destroyed the menuitem


git-svn-id: svn://10.0.0.236/trunk@33558 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 19:56:57 +00:00
terry%mozilla.org
62e075ea8f Explain how to configure things so that big attachments will work.
git-svn-id: svn://10.0.0.236/trunk@33557 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 19:56:43 +00:00
Jerry.Kirk%Nexwarecorp.com
625a2ba748 - Removing nsTimer.cpp this has been moved to gfx/src/photon
git-svn-id: svn://10.0.0.236/trunk@33556 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 19:53:42 +00:00
chuang%netscape.com
5b5ecc1343 Bug 6423 addressbook.xul: non-localizable XUL file
git-svn-id: svn://10.0.0.236/trunk@33555 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 19:45:56 +00:00
ramiro%netscape.com
8acb44ac4f Remove duplicate nsTimer.cpp files.
git-svn-id: svn://10.0.0.236/trunk@33554 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 19:44:16 +00:00
ramiro%netscape.com
8f44cd7f7c Remove duplicate nsTimer.cpp files.
git-svn-id: svn://10.0.0.236/trunk@33553 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 19:37:42 +00:00
hyatt%netscape.com
5fafa9d1ee Adding support for the chrome registry naming stuff.
git-svn-id: svn://10.0.0.236/trunk@33552 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 19:32:47 +00:00
nisheeth%netscape.com
45ad1c7cb1 Fix for bug 6518. The XML DTD now always gets used when the content type is text/xml.
git-svn-id: svn://10.0.0.236/trunk@33551 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 19:09:28 +00:00
akkana%netscape.com
745560561e comment out three directories which no longer exist
git-svn-id: svn://10.0.0.236/trunk@33550 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 19:09:15 +00:00
waterson%netscape.com
600dee2ecb Add rules to remove generated header files in clobber and clobber_all.
git-svn-id: svn://10.0.0.236/trunk@33549 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 19:01:19 +00:00
briano%netscape.com
921259705c Automated update
git-svn-id: svn://10.0.0.236/trunk@33548 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:59:51 +00:00
jdunn%netscape.com
aaee4fea28 fix AIX linking...
git-svn-id: svn://10.0.0.236/trunk@33547 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:56:28 +00:00
pinkerton%netscape.com
4fb78a28ec More changes for Carbon, submitted by Eoin Norris at Apple (e.norris@apple.com).
git-svn-id: svn://10.0.0.236/trunk@33546 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:55:40 +00:00
rickg%netscape.com
61eb346dee fix bug 7479 per Erik VanDerPoel
git-svn-id: svn://10.0.0.236/trunk@33545 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:45:39 +00:00
waterson%netscape.com
9b3eb7e645 Fixes to get building on OpenVMS. Thanks to Colin R. Blake <colin@theblakes.com>.
git-svn-id: svn://10.0.0.236/trunk@33544 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:38:31 +00:00
despotdaemon%netscape.com
8be01e5f06 Pseudo-automatic update of changes made by blizzard@redhat.com.
git-svn-id: svn://10.0.0.236/trunk@33543 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:37:40 +00:00
harishd%netscape.com
918d57f892 Fix for Bug# 7343
git-svn-id: svn://10.0.0.236/trunk@33542 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:35:32 +00:00
leaf%mozilla.org
49754e3084 adding error output for fullcircle initialization
git-svn-id: svn://10.0.0.236/trunk@33541 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:35:04 +00:00
harishd%netscape.com
3d89375932 Allowing <MAP> to contain BLOCK elements - As per spec.
Allowing <A> to contain BLOCK elements - For Compatibility.


git-svn-id: svn://10.0.0.236/trunk@33540 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:34:55 +00:00
andreas.otte%primus-online.de
04535e2c18 fixes to get the test working under linux, mac stuff still missing
git-svn-id: svn://10.0.0.236/trunk@33539 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:34:51 +00:00
waterson%netscape.com
095d917a3a Single public include directory on Win32.
git-svn-id: svn://10.0.0.236/trunk@33538 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:34:27 +00:00
despotdaemon%netscape.com
e31d58ad71 Pseudo-automatic update of changes made by ornduff@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@33537 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:31:55 +00:00
ssu%netscape.com
699b3418bc Added nsInstallFileOpItem.cpp to the build process. The file contains file operation routines for thejavascript Install object (module xpInstall).
git-svn-id: svn://10.0.0.236/trunk@33536 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:31:16 +00:00
despotdaemon%netscape.com
d8150a741c Pseudo-automatic update of changes made by terry@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@33535 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:31:00 +00:00
ssu%netscape.com
b6d73cd7dc added file operation functionality to the javascript Install object
git-svn-id: svn://10.0.0.236/trunk@33534 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:19:14 +00:00
mcmullen%netscape.com
40e8a964a4 Patches for OpenVMS and conversions to nsQuickSort(). Thanks to Colin Blake and James Lewis Nance (resp)
git-svn-id: svn://10.0.0.236/trunk@33533 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:15:53 +00:00
andreas.otte%primus-online.de
57a4701276 fixes to get the test running under linux, mac stuff still missing
git-svn-id: svn://10.0.0.236/trunk@33532 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:12:13 +00:00
sspitzer%netscape.com
469bb1383f more changes for moving creation of objects to the component manager and the news factory. a few nsCOMPtr changes. stop checking nsCOMPtrs against nsnull
git-svn-id: svn://10.0.0.236/trunk@33531 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:09:54 +00:00
ssu%netscape.com
1f72c58a25 initial checkin of file operation functions for xpInstall
git-svn-id: svn://10.0.0.236/trunk@33530 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:07:29 +00:00
pinkerton%netscape.com
8aba8f4226 unpatch leaf's hack in 1.73 since form submission now works correctly. Mac now once again submits the form when return is pressed.
git-svn-id: svn://10.0.0.236/trunk@33529 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:05:40 +00:00
jdunn%netscape.com
8fb064570a include ctype.h for isalpha, tolower & isspace
git-svn-id: svn://10.0.0.236/trunk@33528 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:03:15 +00:00
jdunn%netscape.com
a3f4cecbc8 change false to PR_FALSE
git-svn-id: svn://10.0.0.236/trunk@33527 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 17:57:36 +00:00
kin%netscape.com
252ca95cfc Enabled LOCK/UNLOCK macros.
git-svn-id: svn://10.0.0.236/trunk@33524 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 15:26:48 +00:00
dcone%netscape.com
d669607412 Put braces in to get rid of many compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@33523 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 13:48:20 +00:00
Jerry.Kirk%Nexwarecorp.com
cd285c06b3 - Adding support for the Photon UI for viewer
- Modified Makefile.in and added nsPhMain.cpp and nsPhMenu.cpp


git-svn-id: svn://10.0.0.236/trunk@33522 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 12:16:22 +00:00
rickg%netscape.com
8ae24eebcd fix searching errors; safeguard assign
git-svn-id: svn://10.0.0.236/trunk@33521 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 10:49:14 +00:00
pierre%netscape.com
19ae9087ee Fixed various problems with popups (fixed width, empty strings, strings starting with '-'). Simplified some functions too.
git-svn-id: svn://10.0.0.236/trunk@33520 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 08:38:52 +00:00
pierre%netscape.com
decad0c777 Remove a flicker in scrollbars introduced by last checkin (#5763 "Forms overlaid/leave bitgunk upon reflow on Mac")
git-svn-id: svn://10.0.0.236/trunk@33519 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 08:34:09 +00:00
briano%netscape.com
4349a4c372 Added distclean target (same as realclean and clobber_all). It will need to be refined.
git-svn-id: svn://10.0.0.236/trunk@33518 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 08:15:52 +00:00
rjc%netscape.com
75b7d2622b Remove some of the hard-coded URLs from the personal toolbar as they are duplicates of the URLs stored in the "Personal Toolbar" bookmarks folder. Also, give containers on the personal toolbar a distinct folder icon.
git-svn-id: svn://10.0.0.236/trunk@33517 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 07:41:05 +00:00
rjc%netscape.com
2214595591 Added XUL templates for main menubar and toolbar (which means that the personal toolbar now actually shows the URLs placed in the "Personal Toolbar" folder in bookmarks).
git-svn-id: svn://10.0.0.236/trunk@33516 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 07:33:38 +00:00
rjc%netscape.com
fe40de5eb5 XUL templates are now strong enough to support building menus and menuitems.
git-svn-id: svn://10.0.0.236/trunk@33515 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 07:16:18 +00:00
rpotts%netscape.com
ca99e307b1 fixed a string that was not being null-terminated...
git-svn-id: svn://10.0.0.236/trunk@33514 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 06:44:10 +00:00
rpotts%netscape.com
224501d0a4 fixed up some reference counting problems...
git-svn-id: svn://10.0.0.236/trunk@33513 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 06:36:23 +00:00
jfrancis%netscape.com
61ea2c363e groundwork for block transformation functionality
git-svn-id: svn://10.0.0.236/trunk@33512 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 06:01:08 +00:00
jfrancis%netscape.com
1476c475ca using nsAutoEditBatch where appropriate; changed all "result" variables to "res" so they won't show up types in mac dev editor; groundwork for block transformation functions
git-svn-id: svn://10.0.0.236/trunk@33511 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 06:00:23 +00:00
jfrancis%netscape.com
491c1d952c fixing a comment
git-svn-id: svn://10.0.0.236/trunk@33510 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 05:58:38 +00:00
jfrancis%netscape.com
21515af814 adding stackbased class for editor transaction batching
git-svn-id: svn://10.0.0.236/trunk@33509 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 05:58:20 +00:00
rpotts%netscape.com
6327f9fde1 Added raptorgfxwin.lib for nsITimer support :-(
git-svn-id: svn://10.0.0.236/trunk@33508 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 05:45:56 +00:00
rpotts%netscape.com
168f5cc214 Added support for testing Sync transport access and Suspending and resuming transports...
git-svn-id: svn://10.0.0.236/trunk@33507 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 05:45:23 +00:00
rpotts%netscape.com
ab4f275c13 Added support for Suspend/Resume...
git-svn-id: svn://10.0.0.236/trunk@33506 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 05:43:56 +00:00
putterman%netscape.com
688c0a17be Change column sizes.
git-svn-id: svn://10.0.0.236/trunk@33505 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 05:40:14 +00:00
putterman%netscape.com
948ccc0fd5 Fixed size columns with no wrap.
git-svn-id: svn://10.0.0.236/trunk@33504 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 05:39:56 +00:00
alecf%netscape.com
a767dfee83 add XPIDL stubs for these DOM objects so that we can access them from XPConnect
git-svn-id: svn://10.0.0.236/trunk@33503 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 04:39:14 +00:00
alecf%netscape.com
eecc727865 add DOM XPIDL stubs so that we can pass these DOM objects through XPConnect
(the stubs are needed to associate interface names with IIDs)


git-svn-id: svn://10.0.0.236/trunk@33502 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 04:36:19 +00:00
karnaze%netscape.com
90b7e7dc88 bug 1252, check for null view
git-svn-id: svn://10.0.0.236/trunk@33501 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 04:34:49 +00:00
alecf%netscape.com
f5b66c33e8 oops, we need this function on mac
git-svn-id: svn://10.0.0.236/trunk@33500 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 04:34:08 +00:00
karnaze%netscape.com
5a822a4442 additional regression tests
git-svn-id: svn://10.0.0.236/trunk@33499 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 04:33:47 +00:00
briano%netscape.com
047adc85c2 Backed out my change. NSPR provides the perfect fix, but wraps it in macro defs that mozilla doesn't have.
git-svn-id: svn://10.0.0.236/trunk@33498 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 03:31:56 +00:00
briano%netscape.com
186eeb7ade Changes to support OpenVMS. Thanks to colin@theblakes.com.
git-svn-id: svn://10.0.0.236/trunk@33497 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 03:20:31 +00:00
sspitzer%netscape.com
6ec055f791 fix bustage on mac.
mac exposed the circular include problem I was having.  (windows and linux
did not.)

also, remove self include nsINNTPNewsgroupList.idl


git-svn-id: svn://10.0.0.236/trunk@33496 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 03:16:36 +00:00
briano%netscape.com
03e0af9159 Added support for OpenVMS. Thanks to colin@theblakes.com.
git-svn-id: svn://10.0.0.236/trunk@33495 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 03:16:09 +00:00
briano%netscape.com
597c22a044 New (temporary?) file for Colin Blake's (colin@theblakes.com) OpenVMS port.
git-svn-id: svn://10.0.0.236/trunk@33494 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 03:14:45 +00:00
alecf%netscape.com
030f92be34 fix a bunch of warnings in mime - #if 0 out some unused functions
git-svn-id: svn://10.0.0.236/trunk@33493 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 03:12:10 +00:00
tague%netscape.com
6775a74ffb Fixed bug #5402 and #5439. Thanks to Peter Edberg and Eric Schlegel for their assistance.
git-svn-id: svn://10.0.0.236/trunk@33492 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 03:00:26 +00:00
alecf%netscape.com
b3d5874c1c fix random unused/uninitialized variables
git-svn-id: svn://10.0.0.236/trunk@33491 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:59:19 +00:00
alecf%netscape.com
58e9c7413c while I'm here, fix a bunch of warnings about unused static functions and unused variables
git-svn-id: svn://10.0.0.236/trunk@33490 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:56:40 +00:00
alecf%netscape.com
501b89a036 fix for bustage
git-svn-id: svn://10.0.0.236/trunk@33489 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:50:05 +00:00
karnaze%netscape.com
00ca6c9749 new regression test
git-svn-id: svn://10.0.0.236/trunk@33488 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:43:45 +00:00
karnaze%netscape.com
f286a1e3c4 bug 7243. Rewrote FixedTableLayoutStrategy::AssignPreliminaryColumnWidths
git-svn-id: svn://10.0.0.236/trunk@33487 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:42:33 +00:00
sspitzer%netscape.com
ead8ea010a need this on windows to find rosetta.h
git-svn-id: svn://10.0.0.236/trunk@33486 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:38:53 +00:00
putterman%netscape.com
2b4b9f2ea1 remove old resource files that were previously moved to a new location.
git-svn-id: svn://10.0.0.236/trunk@33485 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:36:36 +00:00
putterman%netscape.com
6de0478559 remove resource files from old ui directory. These were moved to their new locations
a few days ago.


git-svn-id: svn://10.0.0.236/trunk@33484 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:30:26 +00:00
putterman%netscape.com
e16504ac07 remove resource files from old ui directory. These were moved to their new
locations a few days ago.


git-svn-id: svn://10.0.0.236/trunk@33483 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:27:02 +00:00
waterson%netscape.com
2085aa9016 Use 'ref=' attribute to avoid confounding copy and move menus.
git-svn-id: svn://10.0.0.236/trunk@33482 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:25:47 +00:00
sspitzer%netscape.com
b73b3a8e54 a whole bunch of changes.
No more NS_New* for the news objects.  Now you must go through the component
manager and use the news factory.

fixes all over to deal with this.

Fix the MODULE.  It should be news, not mailnews or nntp.

more scriptability (XPIDL) changes for news.


git-svn-id: svn://10.0.0.236/trunk@33481 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:24:08 +00:00
waterson%netscape.com
2a6140c0ed Bug 4045. Make GenericBuilder and its kin look at the 'ref=' attribute first, so that it's possible to have two elements in the same document tree that refer to the same RDF resource.
git-svn-id: svn://10.0.0.236/trunk@33480 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:23:50 +00:00
briano%netscape.com
ac911ab6e8 Handle the (Unix) platform-specific DLL naming conventions properly.
git-svn-id: svn://10.0.0.236/trunk@33479 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:10:17 +00:00
peterl%netscape.com
dce2798cf1 fixed warnings
git-svn-id: svn://10.0.0.236/trunk@33478 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:09:03 +00:00
alecf%netscape.com
3a8e3ec86e add interface methods for new Find methods
git-svn-id: svn://10.0.0.236/trunk@33477 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:07:58 +00:00
sspitzer%netscape.com
2cd146a257 not part of the build, yet.
git-svn-id: svn://10.0.0.236/trunk@33476 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:07:40 +00:00
alecf%netscape.com
bae70e4faa add new functions GetServersByIdentity and GetIdentitiesByServer
git-svn-id: svn://10.0.0.236/trunk@33475 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:07:21 +00:00
peterl%netscape.com
84ffea59f4 added cloning
git-svn-id: svn://10.0.0.236/trunk@33474 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:58:11 +00:00
tague%netscape.com
a493647d58 Fixed #7294: Need implementation of accept-language to nsLocale Factory method.
git-svn-id: svn://10.0.0.236/trunk@33473 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:57:55 +00:00
peterl%netscape.com
38a9e60f9c added modified state
added cloning with actual copy on write


git-svn-id: svn://10.0.0.236/trunk@33472 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:57:52 +00:00
peterl%netscape.com
763257dc99 added cloning and dirtying of sheet on modify
git-svn-id: svn://10.0.0.236/trunk@33471 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:57:13 +00:00
peterl%netscape.com
9b21c07832 added modified test for loaded sheets
git-svn-id: svn://10.0.0.236/trunk@33470 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:56:14 +00:00
peterl%netscape.com
4d95b1fb3d added modified test to api
git-svn-id: svn://10.0.0.236/trunk@33469 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:55:02 +00:00
peterl%netscape.com
3e8a2d89bf fixed leak of css loader
git-svn-id: svn://10.0.0.236/trunk@33468 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:54:35 +00:00
pavlov%pavlov.net
639e475b9c real fix for bug #7468 from Tomi Leppikangas <tomilepp@ousrvr2.oulu.fi>
git-svn-id: svn://10.0.0.236/trunk@33467 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:54:15 +00:00
mcmullen%netscape.com
242ec9344f Fix to #6398 using patch provided by jim_nance@yahoo.com (who does, apparently, yahoo).
git-svn-id: svn://10.0.0.236/trunk@33466 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:40:47 +00:00
mcmullen%netscape.com
dee7faf9fb Alias resolution now happens almost any time a spec is created from a non-spec. Needed to make things work properly.
git-svn-id: svn://10.0.0.236/trunk@33465 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:28:52 +00:00
Jerry.Kirk%Nexwarecorp.com
f5efa082c3 Adding support for Photon UI
git-svn-id: svn://10.0.0.236/trunk@33464 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:21:42 +00:00
Jerry.Kirk%Nexwarecorp.com
aff6f09518 - Adding support for lots more widgets than the original version
-  which was just a place holder after all.


git-svn-id: svn://10.0.0.236/trunk@33463 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:18:49 +00:00
Jerry.Kirk%Nexwarecorp.com
e10d1c5ca2 - These files update the GFX portion of the Photon UI
- They still include lots of debug and not implemented functions.


git-svn-id: svn://10.0.0.236/trunk@33462 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:15:23 +00:00
Jerry.Kirk%Nexwarecorp.com
6799e545e2 - These files bring the Photon UI uptodate.
- They still include lots of debug that will be cleaned out later
-  once everything works.


git-svn-id: svn://10.0.0.236/trunk@33461 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:13:06 +00:00
cathleen%netscape.com
bae50c5a7b prevent getting an outrageous index value, when a char is not found in a
given nsStr.  broke XPInstall.


git-svn-id: svn://10.0.0.236/trunk@33460 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:11:14 +00:00
nhotta%netscape.com
dac458ca9f Auto charset detection support.
git-svn-id: svn://10.0.0.236/trunk@33459 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:08:25 +00:00
ducarroz%netscape.com
d30d8feb8f fix bustage, prefidl was build to early...
git-svn-id: svn://10.0.0.236/trunk@33458 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:06:14 +00:00
briano%netscape.com
f4e1b2ab58 Automated update
git-svn-id: svn://10.0.0.236/trunk@33457 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:59:48 +00:00
beard%netscape.com
3d2bd36390 added more pre-flight checks, added more coordinate range checks to rectangle based primitives.
git-svn-id: svn://10.0.0.236/trunk@33456 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:57:34 +00:00
beard%netscape.com
e95d62462e fixed potential memory problems.
git-svn-id: svn://10.0.0.236/trunk@33455 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:56:32 +00:00
pierre%netscape.com
ad56425d92 #5763 "Forms overlaid/leave bitgunk upon reflow on Mac"
git-svn-id: svn://10.0.0.236/trunk@33454 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:51:38 +00:00
jdunn%netscape.com
4319c17320 for AIX (only) specify -bso to fix dynamic linking
git-svn-id: svn://10.0.0.236/trunk@33453 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:51:10 +00:00
jdunn%netscape.com
e91b02a6ec added newline at end of file. HP won't compile without it
git-svn-id: svn://10.0.0.236/trunk@33452 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:48:16 +00:00
jdunn%netscape.com
775c4e26b4 fix compile warning by declaring nsIMsgMessageService public
git-svn-id: svn://10.0.0.236/trunk@33451 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:46:14 +00:00
briano%netscape.com
cfde85940e Automated update
git-svn-id: svn://10.0.0.236/trunk@33450 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:44:51 +00:00
briano%netscape.com
a85f8174d2 Added a check to determine which library ostream is found in (if any).
git-svn-id: svn://10.0.0.236/trunk@33449 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:43:10 +00:00
ducarroz%netscape.com
efef2c979e add build instruction for libprefIDL.mcp
git-svn-id: svn://10.0.0.236/trunk@33448 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:42:00 +00:00
mcmullen%netscape.com
c96b0cab03 Implemented XP default prefs. Thanks to seth for the makefile magic!
git-svn-id: svn://10.0.0.236/trunk@33447 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:41:11 +00:00
ducarroz%netscape.com
d85cad1185 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33446 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:40:55 +00:00
mcmullen%netscape.com
9b2897ed07 Implemented xp default prefs
git-svn-id: svn://10.0.0.236/trunk@33445 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:40:08 +00:00
tague%netscape.com
19735cf0e4 Fixed bug #5402 and #5439: Mac menus not displaying Unicode properly. Thanks to Peter Edberg and Eric Shlegel for help with this fix.
git-svn-id: svn://10.0.0.236/trunk@33444 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:35:00 +00:00
mcmullen%netscape.com
79b29b038e Implemented XP default prefs
git-svn-id: svn://10.0.0.236/trunk@33443 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:34:20 +00:00
mcmullen%netscape.com
31bb6d7d91 Implemented XP default prefs.
git-svn-id: svn://10.0.0.236/trunk@33442 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:31:40 +00:00
mcmullen%netscape.com
58f92b73a7 Removed some "obsolete" functions.
git-svn-id: svn://10.0.0.236/trunk@33441 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:30:21 +00:00
ramiro%netscape.com
44bc8fa19b Backout pavlov's last change which broken list boxes. Some items would
display as garbage.


git-svn-id: svn://10.0.0.236/trunk@33440 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:28:37 +00:00
mcmullen%netscape.com
22d37fa34a Using XP technique for default prefs now.
git-svn-id: svn://10.0.0.236/trunk@33439 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:27:44 +00:00
mcmullen%netscape.com
72f1a9ad67 Remove the resources from this file. Now moving to an XP solution.
git-svn-id: svn://10.0.0.236/trunk@33438 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:27:04 +00:00
rogerl%netscape.com
795f76c118 Changed behaviour of Script.exec so that it gains access to the current
scope when invoked, rather than grabbing the topmost. Prevented exec from
being called indirectly.


git-svn-id: svn://10.0.0.236/trunk@33437 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:08:00 +00:00
vidur%netscape.com
3513ed9ef8 New file. Checked in while the tree is closed, but it's not yet in the build
git-svn-id: svn://10.0.0.236/trunk@33436 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 23:45:51 +00:00
jband%netscape.com
9842f1c067 updating status page
git-svn-id: svn://10.0.0.236/trunk@33435 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 23:28:23 +00:00
gagan%netscape.com
f2a60e78bf Test case changes
git-svn-id: svn://10.0.0.236/trunk@33434 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 23:02:53 +00:00
robinf%netscape.com
875da77c11 Fixing bug 7247 - outdated Checklist.ini file was being used; I'm replacing it with the correct versin that also preserves Varada's help changes.
git-svn-id: svn://10.0.0.236/trunk@33433 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 20:42:30 +00:00
hangas%netscape.com
442c5942e2 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33431 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 20:14:57 +00:00
rogerl%netscape.com
7900eaf22b blowing off commented out junk
git-svn-id: svn://10.0.0.236/trunk@33429 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 18:07:40 +00:00
valeski%netscape.com
21a47721b7 nsIHTTPConnection.h - extended the nsIHTTPConnection interface so the internal streamlistener is accessible.
nsHTTPConnection.cpp - GetInputStream now uses a syncStream listener.
nsHTTPConnection.h  - api update to support new nsIHTTPConnection interface and added nsIStreamListener member.
nsHTTPResponseListener.cpp - added code to push data through the pipe


git-svn-id: svn://10.0.0.236/trunk@33428 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 17:23:45 +00:00
dbragg%netscape.com
81cf527e9e Re-added nsJAR.cpp and nsJARFactory.cpp to the CPPSRCS macro
git-svn-id: svn://10.0.0.236/trunk@33427 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 16:52:42 +00:00
dbragg%netscape.com
660f2ae174 Re-added the nsJAR.obj and nsJARFactory.obj files to the OBJS macro.
git-svn-id: svn://10.0.0.236/trunk@33426 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 16:51:39 +00:00
harishd%netscape.com
e8154e17b9 Fix for bug# 6960. Treating '<<' as equivalent to '&lt;<'
git-svn-id: svn://10.0.0.236/trunk@33425 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 16:33:08 +00:00
norris%netscape.com
d13f41523a Fix NullPointerException for "abc".match("a\");
git-svn-id: svn://10.0.0.236/trunk@33424 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 16:12:19 +00:00
morse%netscape.com
0ee692c543 further cleanup of dialogs
git-svn-id: svn://10.0.0.236/trunk@33423 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 14:16:31 +00:00
dougt%netscape.com
dd062cadde Changing Pref creation from CreateI (which does not work) to GetService.
git-svn-id: svn://10.0.0.236/trunk@33422 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 14:06:48 +00:00
gagan%netscape.com
88847965be CVS is misbehaving with me again... didnt pick these up... Updates to HTTP. Need nsSyncStreamListener to complete the test.
git-svn-id: svn://10.0.0.236/trunk@33421 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 13:26:47 +00:00
gagan%netscape.com
af1e981abd Updates to HTTP. Need SyncStreamListener to complete the test.
git-svn-id: svn://10.0.0.236/trunk@33420 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 13:25:29 +00:00
andreas.otte%primus-online.de
04e4e1d9d3 integrating Alec Fletts nsISupportsArray changes
remove manual registration
adding creation of eventqueue
giving EventQueueService the right CIID


git-svn-id: svn://10.0.0.236/trunk@33419 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 11:42:43 +00:00
andreas.otte%primus-online.de
2d3061e100 removed manual registration, added autoregistration
git-svn-id: svn://10.0.0.236/trunk@33418 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 11:30:05 +00:00
andreas.otte%primus-online.de
637e77f2d7 removed manual registration
git-svn-id: svn://10.0.0.236/trunk@33417 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 11:29:26 +00:00
andreas.otte%primus-online.de
d9ce16287f removed manual registration
git-svn-id: svn://10.0.0.236/trunk@33416 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 11:27:07 +00:00
andreas.otte%primus-online.de
4bf5562097 integrating Alec Fletts nsISupportsArray changes
git-svn-id: svn://10.0.0.236/trunk@33415 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 11:12:21 +00:00
sspitzer%netscape.com
67ea546b22 ignore the generated Makefiles
git-svn-id: svn://10.0.0.236/trunk@33414 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 06:52:12 +00:00
sspitzer%netscape.com
6f6c1c99d1 fix build bustage caused by MODULE=news fix
git-svn-id: svn://10.0.0.236/trunk@33413 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 06:21:21 +00:00
valeski%netscape.com
76fa3c81f3 moved external module insertion to new http file
git-svn-id: svn://10.0.0.236/trunk@33412 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 05:33:34 +00:00
morse%netscape.com
c05fecdcf6 cleanup preview dialog
git-svn-id: svn://10.0.0.236/trunk@33411 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 04:58:40 +00:00
alecf%netscape.com
08a5c58cdc fix windows bustage
git-svn-id: svn://10.0.0.236/trunk@33410 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 04:46:07 +00:00
rpotts%netscape.com
4859239f0a PRCList cleanup. More syncronization code... some work toward blocking streams.
git-svn-id: svn://10.0.0.236/trunk@33409 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 04:26:55 +00:00
sspitzer%netscape.com
b130d2a2cd fix more build breakage
git-svn-id: svn://10.0.0.236/trunk@33408 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 04:07:09 +00:00
jband%netscape.com
55628061ba another patch from khym@bga.com (Dave Huang)
git-svn-id: svn://10.0.0.236/trunk@33407 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 03:49:30 +00:00
sspitzer%netscape.com
f4453539a7 the MODULE is news, not mailnews.
git-svn-id: svn://10.0.0.236/trunk@33406 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 03:47:39 +00:00
sspitzer%netscape.com
86b06cb29c fix build bustage caused by fixing the MODULE name in the makefile.win files
git-svn-id: svn://10.0.0.236/trunk@33405 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 03:41:56 +00:00
jband%netscape.com
30176c16a1 removing disinformation from README
git-svn-id: svn://10.0.0.236/trunk@33404 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 03:19:55 +00:00
alecf%netscape.com
b9b4113e8c fix mac bustage (use nsISupportsArray->ElementAt)
git-svn-id: svn://10.0.0.236/trunk@33403 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 03:08:13 +00:00
blizzard%redhat.com
1a834f1030 consistent debugging output
git-svn-id: svn://10.0.0.236/trunk@33402 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 02:55:23 +00:00
blizzard%redhat.com
14fc1e4601 start on other events
git-svn-id: svn://10.0.0.236/trunk@33401 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 02:54:49 +00:00
jband%netscape.com
cd076f1ea8 platform check contributed by Bert Driehuis <bert_driehuis@nl.compuware.com>
git-svn-id: svn://10.0.0.236/trunk@33400 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 02:35:00 +00:00
jband%netscape.com
3b10acc614 adding netbsd m68k support contributed by khym@bga.com (Dave Huang)
git-svn-id: svn://10.0.0.236/trunk@33399 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 02:26:38 +00:00
sspitzer%netscape.com
7d21da0927 fix for #7420. this is the news module, not the mailnews module (which is corresponds to base). cut and paste error
git-svn-id: svn://10.0.0.236/trunk@33396 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 02:06:36 +00:00
alecf%netscape.com
78af0740c9 first cut at scriptifying nsISupportsArray - remove constness from all methods, add new XPCOM compatible methods and fix layout code to handle lack of const methods
git-svn-id: svn://10.0.0.236/trunk@33395 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 02:06:32 +00:00
mcmullen%netscape.com
81238e0903 Export the prefs init files to dist.
git-svn-id: svn://10.0.0.236/trunk@33394 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 02:05:57 +00:00
mcmullen%netscape.com
a69876c761 Added an optional parameter ($flat) to InstallFromManifest, to force any relative-path hierarchy in the manifest file to be flattened in the dest dir.
git-svn-id: svn://10.0.0.236/trunk@33393 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 02:05:36 +00:00
dougt%netscape.com
c50a5e04b6 Version Registry used NATIVE strings not NSPR paths. Adjusting.
git-svn-id: svn://10.0.0.236/trunk@33392 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 02:05:12 +00:00
alecf%netscape.com
0522ebe906 add XPIDLized version of nsISupportsArray
git-svn-id: svn://10.0.0.236/trunk@33391 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 02:03:45 +00:00
scc%netscape.com
fb55bb044f replaced tabs with spaces as per our standards
git-svn-id: svn://10.0.0.236/trunk@33390 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:59:28 +00:00
mcmullen%netscape.com
99e5f7a6ec First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33389 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:59:23 +00:00
blizzard%redhat.com
eabf44a2c4 more work in initialization code
git-svn-id: svn://10.0.0.236/trunk@33388 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:48:21 +00:00
jband%netscape.com
9d5e33dbe5 removing this unused and ill-named file
git-svn-id: svn://10.0.0.236/trunk@33387 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:47:19 +00:00
blizzard%redhat.com
a815adc7d2 fix some background color settings, remove something from the event mask
git-svn-id: svn://10.0.0.236/trunk@33386 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:47:13 +00:00
scc%netscape.com
7c2cb084f3 added comparisons that will allow |nsnull != myPtr| et al
git-svn-id: svn://10.0.0.236/trunk@33385 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:29:55 +00:00
jband%netscape.com
be0e327b20 updated status page
git-svn-id: svn://10.0.0.236/trunk@33384 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:25:08 +00:00
blizzard%redhat.com
8a9b1ba0ae fix implementation of the creation of DrawingSurfaces
git-svn-id: svn://10.0.0.236/trunk@33383 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:18:05 +00:00
blizzard%redhat.com
7f65462657 fix call signature for XCopyArea()
git-svn-id: svn://10.0.0.236/trunk@33382 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:16:56 +00:00
briano%netscape.com
2270332ca1 No need to build bsdecho anymore.
git-svn-id: svn://10.0.0.236/trunk@33381 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:15:08 +00:00
rickg%netscape.com
cd66536638 replaced nsString2.h references with nsString.h
git-svn-id: svn://10.0.0.236/trunk@33378 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:03:41 +00:00
jband%netscape.com
22c59c3108 use only C style comments in these files to make Irix happy
git-svn-id: svn://10.0.0.236/trunk@33377 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:57:32 +00:00
dougt%netscape.com
9bfeea7808 Removing direct link to libpref. Now using the wonders of xpcom.
git-svn-id: svn://10.0.0.236/trunk@33376 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:56:13 +00:00
dougt%netscape.com
888e28f6c8 removing direct link to prefs.
git-svn-id: svn://10.0.0.236/trunk@33375 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:52:40 +00:00
dougt%netscape.com
16ec6ef7d6 Calling pref via xpcom.
git-svn-id: svn://10.0.0.236/trunk@33374 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:52:18 +00:00
dougt%netscape.com
748bc8c1e8 Adding Gestalt() to Install object
git-svn-id: svn://10.0.0.236/trunk@33373 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:45:46 +00:00
jfrancis%netscape.com
bf4871f469 fix for subtree iter Init - now works when inited over a single textnode
git-svn-id: svn://10.0.0.236/trunk@33372 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:41:45 +00:00
danm%netscape.com
c1acc38286 fixed firstTime assertion in destructor
git-svn-id: svn://10.0.0.236/trunk@33371 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:33:49 +00:00
nhotta%netscape.com
c127edce28 Bug fix for 7425.
git-svn-id: svn://10.0.0.236/trunk@33370 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:16:23 +00:00
alecf%netscape.com
8c8b316a08 stop using [] operator on nsISupportsArray - going away for scriptability
git-svn-id: svn://10.0.0.236/trunk@33369 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:14:41 +00:00
rjc%netscape.com
1597ac3ef0 Add ability to find "Internet Search Sites" folder on Mac.
git-svn-id: svn://10.0.0.236/trunk@33368 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:12:10 +00:00
ducarroz%netscape.com
81b14c26cd Mailnews use XPIDL 1.0d5 to generated header files.
git-svn-id: svn://10.0.0.236/trunk@33367 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:11:39 +00:00
alecf%netscape.com
3e1c511db7 stop using [] operator on nsISupportsArray - going away for scriptability.
git-svn-id: svn://10.0.0.236/trunk@33366 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:07:54 +00:00
ducarroz%netscape.com
6409e11a3e Update the IDL file in order to be able to use it finally... Part of mailnews Mac XPIDL landing.
git-svn-id: svn://10.0.0.236/trunk@33365 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:07:23 +00:00
ducarroz%netscape.com
186608ba02 Close message compose window after sending the message. Fix for bug #7161
git-svn-id: svn://10.0.0.236/trunk@33364 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:07:22 +00:00
ducarroz%netscape.com
ba1bdda025 Don't export header files that are generated by the XPIDL compiler. Part of mailnews Mac XPIDL landing.
git-svn-id: svn://10.0.0.236/trunk@33363 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:07:21 +00:00
rjc%netscape.com
f3b2ee2aaf Checking in a workaround for bug #7437 until Rickg fixes that.
git-svn-id: svn://10.0.0.236/trunk@33362 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:01:23 +00:00
mjudge%netscape.com
cd7086a430 invalid != for unix I will investigate this later. What i am checkin in now SHOULD remove any ambiguity in the code.
git-svn-id: svn://10.0.0.236/trunk@33361 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 23:53:01 +00:00
dougt%netscape.com
ef2427958c Removing AddRef and Release. Moving to MACRO.
Fixing qi.


git-svn-id: svn://10.0.0.236/trunk@33360 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 23:33:55 +00:00
rogerl%netscape.com
632556d9fd Bug #7197 (related) - capture and free char pointers going to error
reporter.
Bug #5875 - eval of named function within a function resulted in the
function not being visible at the start of the eval string.


git-svn-id: svn://10.0.0.236/trunk@33359 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 23:17:19 +00:00
alecf%netscape.com
3e42a98b3b stop using [] operator on nsISupportsArrays - going away for scriptability
git-svn-id: svn://10.0.0.236/trunk@33358 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 23:15:03 +00:00
pnunn%netscape.com
789dbd21d2 These 2 lines caused a crash with editor. Take out for study. pnunn.
git-svn-id: svn://10.0.0.236/trunk@33357 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 23:14:55 +00:00
alecf%netscape.com
8e28d6560b stop using [] operator on nsISupportsArrays (going away for scriptability)
git-svn-id: svn://10.0.0.236/trunk@33356 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 23:13:37 +00:00
ducarroz%netscape.com
620da07cd1 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33355 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 23:12:32 +00:00
alecf%netscape.com
826ada0475 stop using [] operator (going away for scriptability)
git-svn-id: svn://10.0.0.236/trunk@33354 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 23:10:12 +00:00
rogerl%netscape.com
0d914860f2 Bug #7197 - free other error report message junk
git-svn-id: svn://10.0.0.236/trunk@33353 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 23:07:59 +00:00
mjudge%netscape.com
45583c2b3d new table selection code drag inside and outside of tables with ease. added some overriding methods to nsTableCellFrame and nsTableFrame to make selection "draw" correctly for those containers.
git-svn-id: svn://10.0.0.236/trunk@33352 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 23:04:13 +00:00
danm%netscape.com
07a75789a0 protect nsWebShell's destructor from being called recursively a little earlier in the destructor. fixes a crash (bug 7157).
git-svn-id: svn://10.0.0.236/trunk@33351 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 23:02:15 +00:00
andreas.otte%primus-online.de
e9bb07a3af make libnetwerk.so a component
git-svn-id: svn://10.0.0.236/trunk@33350 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 22:49:26 +00:00
rogerl%netscape.com
9ebb01e7ba Fixed non-terminating regexp when max quantifier is unspecified as in :
var s = 'zzabc.';
var reg = /[^z]{1,}\./;
s.match(reg);
- wasn't checking for reaching end of text.


git-svn-id: svn://10.0.0.236/trunk@33349 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 22:43:17 +00:00
evaughan%netscape.com
dc2afd5568 added a fieldset example.
git-svn-id: svn://10.0.0.236/trunk@33348 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 22:30:59 +00:00
pierre%netscape.com
9792ff4115 Don't printf() like crazy when displaying very long pages such as http://slip/res-lib/morte1.htm in DEBUG builds.
git-svn-id: svn://10.0.0.236/trunk@33347 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 22:11:32 +00:00
jfrancis%netscape.com
15b90c541c linking against nspr
git-svn-id: svn://10.0.0.236/trunk@33346 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 22:07:00 +00:00
andreas.otte%primus-online.de
493509f148 Ignore TestSocketTransport
git-svn-id: svn://10.0.0.236/trunk@33345 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 22:04:46 +00:00
andreas.otte%primus-online.de
7e0bd9cc66 Build TestProtocols
git-svn-id: svn://10.0.0.236/trunk@33344 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 22:03:48 +00:00
valeski%netscape.com
1eadc7ed71 variable name change
git-svn-id: svn://10.0.0.236/trunk@33343 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 22:03:47 +00:00
andreas.otte%primus-online.de
56e778a5a4 Some fixes to build TestProtocols under linux
git-svn-id: svn://10.0.0.236/trunk@33342 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 22:02:40 +00:00
nhotta%netscape.com
c51cde96d0 Consolidated old conversion wrapper function.
git-svn-id: svn://10.0.0.236/trunk@33341 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 22:00:16 +00:00
pnunn%netscape.com
519ddef8c6 move kISupportsIID declaration local. pnunn.
git-svn-id: svn://10.0.0.236/trunk@33340 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 21:53:12 +00:00
evaughan%netscape.com
e9f6f7321b Reworked fieldsets to fix numerous bugs.
git-svn-id: svn://10.0.0.236/trunk@33339 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 21:52:11 +00:00
pnunn%netscape.com
a891c75bcd move kISupportsIID declaration local. and clean up ic. pnunn.
git-svn-id: svn://10.0.0.236/trunk@33338 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 21:50:37 +00:00
rpotts%netscape.com
5eebf63884 Added synchronization to socket transport APIs... Added access methods for getting the PRCList from a transport...
git-svn-id: svn://10.0.0.236/trunk@33337 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 21:37:52 +00:00
dbragg%netscape.com
c5c6a7eaa4 Change the implementation of AddRef and Release to use the macros NS_IMPL_ADDREF() and NS_IMPL_RELEASE() in nsJARFactory.cpp
git-svn-id: svn://10.0.0.236/trunk@33336 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 21:37:09 +00:00
rjc%netscape.com
31b01cce79 Disable XUL templates for the moment.
git-svn-id: svn://10.0.0.236/trunk@33335 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 21:34:05 +00:00
dbragg%netscape.com
bfabbdf8a8 removed the nsJAR.cpp and nsJARFactory.cpp from the CPPSRCS due to compile error that I need to investigate.
git-svn-id: svn://10.0.0.236/trunk@33334 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 21:31:29 +00:00
valeski%netscape.com
9a9f18acca Added the user agent string getter methods to nsINetService, as well as the implementation of them. Note: that they current aren't being initialized.
git-svn-id: svn://10.0.0.236/trunk@33333 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 21:27:25 +00:00
dbragg%netscape.com
4e8b22d8c7 backed out the nsJAR.cpp and nsJARFactory.cpp from CPPSRCS due to a change in XPCOM that caused it to not compile.
git-svn-id: svn://10.0.0.236/trunk@33332 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 21:22:27 +00:00
dbragg%netscape.com
79e7830db7 Added nsJAR.cpp and nsJARFactory.cpp to the CPPSRCS macro
git-svn-id: svn://10.0.0.236/trunk@33331 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 21:17:12 +00:00
dbragg%netscape.com
2b71c4666a removed export of nsIZipArchive.h since it doesn't exist
git-svn-id: svn://10.0.0.236/trunk@33330 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 21:15:47 +00:00
dbragg%netscape.com
78909ffc37 XPCOM interface files for libjar
git-svn-id: svn://10.0.0.236/trunk@33329 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 21:08:32 +00:00
terry%mozilla.org
159a7267fa Added simple sanity checking of the dependencies table.
git-svn-id: svn://10.0.0.236/trunk@33328 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 20:52:15 +00:00
leaf%mozilla.org
823307583a updating to new nsString implementation (fix courtesy shaver)
git-svn-id: svn://10.0.0.236/trunk@33326 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 18:06:14 +00:00
bruce%cybersight.com
e1dc1df6b8 Woops. Typo.
git-svn-id: svn://10.0.0.236/trunk@33325 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 05:16:32 +00:00
jband%netscape.com
fc63d5b20e notify xpconnect before destroying a JSContext
git-svn-id: svn://10.0.0.236/trunk@33324 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 02:43:41 +00:00
jband%netscape.com
b15710a19b added test
git-svn-id: svn://10.0.0.236/trunk@33323 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 02:43:02 +00:00
jband%netscape.com
c900b45a0b 1) Removed old and duplicate .idl, .h, and .xpt files.
2) Support passing an interface identifier to getService and NewInstance.
3) Added AbandonJSContext to allow for cleanup of per JSContext data.
4) Added interface inheritence tests.


git-svn-id: svn://10.0.0.236/trunk@33322 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 02:39:44 +00:00
jband%netscape.com
3a49dee03c updating readme
git-svn-id: svn://10.0.0.236/trunk@33321 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 02:31:13 +00:00
blizzard%redhat.com
64757d8306 more drawing work
git-svn-id: svn://10.0.0.236/trunk@33320 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 23:34:13 +00:00
pavlov%pavlov.net
abac85d95f remove lots of spaces from the end of a bunch of lines
git-svn-id: svn://10.0.0.236/trunk@33319 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 23:24:09 +00:00
blizzard%redhat.com
42be6bb145 set up the offscreen surface correctly
git-svn-id: svn://10.0.0.236/trunk@33318 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 22:48:01 +00:00
rickg%netscape.com
6be8624091 update to nsString2 as default impl
git-svn-id: svn://10.0.0.236/trunk@33317 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 22:09:05 +00:00
blizzard%redhat.com
89a91692cb more work to complete the rendering context code
git-svn-id: svn://10.0.0.236/trunk@33316 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 21:52:16 +00:00
blizzard%redhat.com
d66bc43084 the beginnings of popstate()/pushstate()
git-svn-id: svn://10.0.0.236/trunk@33315 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 21:01:51 +00:00
bruce%cybersight.com
f8b6024ed9 Few more fixes for header files.
git-svn-id: svn://10.0.0.236/trunk@33314 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 19:50:25 +00:00
jband%netscape.com
27e6638619 updating paths to new location of this directory and updating status page
git-svn-id: svn://10.0.0.236/trunk@33313 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 19:48:25 +00:00
jband%netscape.com
e717a0b4df converting these html files to redirect to moved pages
git-svn-id: svn://10.0.0.236/trunk@33312 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 19:45:54 +00:00
bruce%cybersight.com
fc7f0cd5c0 Reduces # of header files included. This work needs to spread out into all of mozilla/widget though as many things are getting drug in that don't need to be by things outside of mozilla/widget/src/gtk. I tested this on both egcs and gcc 2.7.2.3, so should be okay.
Also includes an nsAutoCString usage in nsPopUpMenu.cpp.


git-svn-id: svn://10.0.0.236/trunk@33310 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 19:41:43 +00:00
ramiro%netscape.com
cced26d923 Add casts for picky compiler.
git-svn-id: svn://10.0.0.236/trunk@33309 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 18:47:33 +00:00
ftang%netscape.com
f554159121 move files to ucvtw, ucvtw2, ucvko
git-svn-id: svn://10.0.0.236/trunk@33308 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 16:58:38 +00:00
ftang%netscape.com
ee23445864 move cid
git-svn-id: svn://10.0.0.236/trunk@33307 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 16:54:52 +00:00
ftang%netscape.com
1d26f847a1 move big5, euc-kr, euc-tw convertesr into ucvtw, ucvtw2, ucvko
git-svn-id: svn://10.0.0.236/trunk@33306 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 16:48:16 +00:00
ftang%netscape.com
4a162957c9 remove big5, euc-kr, euc-tw converter to ucvtw, ucvtw2, and ucvko
git-svn-id: svn://10.0.0.236/trunk@33305 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 16:39:13 +00:00
ftang%netscape.com
1164281a78 add ucvtw, ucvtw2, ucvko
git-svn-id: svn://10.0.0.236/trunk@33304 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 16:33:13 +00:00
ftang%netscape.com
f65e463703 add converter table
git-svn-id: svn://10.0.0.236/trunk@33303 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 16:29:41 +00:00
ramiro%netscape.com
987f03b42c Make sure nsTarget.h is complied as C++ source.
nsTarget.h is a c++ header, which includes other c++ headers.  It needs to
be complied as c++ source.

If everything in this page needs to be compiled as C code, then why
isnt this file a .c file ?


git-svn-id: svn://10.0.0.236/trunk@33302 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 16:29:28 +00:00
ftang%netscape.com
7f9b113adc add euc-kr to ucvko
git-svn-id: svn://10.0.0.236/trunk@33301 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 16:28:21 +00:00
ftang%netscape.com
c922cd5c96 add euc-tw converters to ucvtw2
git-svn-id: svn://10.0.0.236/trunk@33300 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 16:26:09 +00:00
ftang%netscape.com
8a26b18c39 move big5 to ucvtw
git-svn-id: svn://10.0.0.236/trunk@33299 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 16:17:07 +00:00
ftang%netscape.com
b3c86c8fb5 remove big5, euc-kr, euc-tw converter
git-svn-id: svn://10.0.0.236/trunk@33298 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 16:14:14 +00:00
ftang%netscape.com
05a53730b3 remove big5, euc-kr and euc-tw converter and place them into ucvtw ucvtw2 adn ucvko
git-svn-id: svn://10.0.0.236/trunk@33297 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 16:10:36 +00:00
ftang%netscape.com
beac4f1dd6 remove Big5, euc-kr, euc-tw converter. Big5 will move to ucvtw, euc-tw will move to ucvtw2, euc-kr will move to ucvko
git-svn-id: svn://10.0.0.236/trunk@33296 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 16:03:16 +00:00
ramiro%netscape.com
fc0e8c02c3 Add cast for picky compiler.
git-svn-id: svn://10.0.0.236/trunk@33295 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 15:09:31 +00:00
bruce%cybersight.com
32a42a1458 There is currently an ordering dependency between nsIPref.h and prefapi.h until something gets straightened out. As I don't know when this is happening, and this was breaking the OSF/1 build, handle this for now by moving nsIPref.h before prefapi.h in the includes.
git-svn-id: svn://10.0.0.236/trunk@33294 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 06:13:06 +00:00
bruce%cybersight.com
7347b46631 Add GetIID() methods to these interfaces. To support an upcoming checkin.
git-svn-id: svn://10.0.0.236/trunk@33293 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 05:27:36 +00:00
rpotts%netscape.com
ae34b7b8b8 Added a new test for the socket transport...
git-svn-id: svn://10.0.0.236/trunk@33292 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 05:18:19 +00:00
rpotts%netscape.com
f1ee7c702e First pass at supporting simultaneous read and write on sockets...
git-svn-id: svn://10.0.0.236/trunk@33291 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 05:15:40 +00:00
blizzard%redhat.com
7ec48cc0e3 make sure to set the border pixel for created windows to avoid bad_match errors. patch from Tim Rowley <tor@cs.brown.edu>.
git-svn-id: svn://10.0.0.236/trunk@33290 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 03:46:38 +00:00
blizzard%redhat.com
201d199cd2 more fixes for displays that have more than one visual. expose events threaten to work now.
git-svn-id: svn://10.0.0.236/trunk@33289 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 03:05:33 +00:00
blizzard%redhat.com
95d84178be fix bugs in region code
git-svn-id: svn://10.0.0.236/trunk@33288 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 03:01:39 +00:00
beard%netscape.com
908c53ae23 workaround for bug #6529, don't read the first buffer until at least 4 bytes are available, otherwise the image decoder library can't tell what kind of image it is. this is a blatant hack.
git-svn-id: svn://10.0.0.236/trunk@33287 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 02:33:31 +00:00
pavlov%pavlov.net
7c8f1eb23c oops, real fix.
git-svn-id: svn://10.0.0.236/trunk@33286 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 02:07:44 +00:00
pavlov%pavlov.net
70502ed30b fix build
git-svn-id: svn://10.0.0.236/trunk@33285 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 02:03:33 +00:00
beard%netscape.com
8e7f97a2b5 bug #7354: arrow key scrolling, force the update to deal with different event priorities.
git-svn-id: svn://10.0.0.236/trunk@33284 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:45:23 +00:00
beard%netscape.com
4669666c70 added DEBUG code to measure redraw time if control key is held down during an update.
git-svn-id: svn://10.0.0.236/trunk@33283 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:38:31 +00:00
beard%netscape.com
70252d17f7 nsGraphicState->mTMatrix is now an object rather than a pointer. added #include "nsFontMetricsMac.h", and "nsGraphicState.h".
git-svn-id: svn://10.0.0.236/trunk@33282 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:31:08 +00:00
beard%netscape.com
6204b883ee added kClippingChanged bit, and kEverythingChanged to GraphicStateChanges enum. Increased mChanges field to from 8-bit to 32-bit mask. added additional "aChanges" argument to SelectDrawingSurface() to indicate what graphics states have to be reset.
git-svn-id: svn://10.0.0.236/trunk@33281 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:31:06 +00:00
beard%netscape.com
ce202a44a2 SelectDrawingSurface() now selectively restores color, clipping, and font metrics, according to the bitmask passed in the "aChanges" parameter. PushState() saves the current changes in the pushed nsGraphicState, and PopState() restores it.
git-svn-id: svn://10.0.0.236/trunk@33280 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:31:02 +00:00
beard%netscape.com
7541270009 added mChanges, bitmask indicating differences between graphics states, made mTMatrix a member object to reduce allocations, added mNext link field to support recycling. Changed nsGraphicsStatePool to just keep a free list of nsGraphicState objects rather than an array.
git-svn-id: svn://10.0.0.236/trunk@33279 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:30:59 +00:00
beard%netscape.com
1698ba99b2 nsGraphicStatePool now just keeps a free list of nsGraphicState objects. nsGraphicState::Clear() sets the matrix to the identify matrix rather than deallocating it. nsGraphicState::Duplicate() no longer calls Clear(), instead it just copies all fields. DuplicateRgn() now takes an optional region to copy into, to avoid redundant allocate/recycle steps.
git-svn-id: svn://10.0.0.236/trunk@33278 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:30:58 +00:00
beard%netscape.com
6e1f5688d3 forward declare nsGraphicState rather than #include "nsGraphicState.h". #include "nsFontMetricsMac.h" also unnecessary.
git-svn-id: svn://10.0.0.236/trunk@33277 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:30:56 +00:00
briano%netscape.com
719248f336 Automated update
git-svn-id: svn://10.0.0.236/trunk@33276 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:29:47 +00:00
ramiro%netscape.com
7cff2a3f06 It was breaking on libc5 linux without pthreads.
git-svn-id: svn://10.0.0.236/trunk@33275 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:21:10 +00:00
pavlov%pavlov.net
bad0d1f61a use nsAutoCString()
git-svn-id: svn://10.0.0.236/trunk@33274 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 00:16:30 +00:00
morse%netscape.com
3b5dccc140 clean up single signon viewer
git-svn-id: svn://10.0.0.236/trunk@33273 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 21:17:23 +00:00
morse%netscape.com
d308c2597a clean up single singon viewer
git-svn-id: svn://10.0.0.236/trunk@33272 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 21:15:53 +00:00
morse%netscape.com
5c184c4008 clean up single signon viewer wallet.h
git-svn-id: svn://10.0.0.236/trunk@33271 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 21:11:34 +00:00
morse%netscape.com
453bef4833 clean up single signon viewer nsIWalletService.h
git-svn-id: svn://10.0.0.236/trunk@33270 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 21:11:02 +00:00
blizzard%redhat.com
b762842f0d Always use the visual that was chosen by xlibrgb. Also, make sure to set
the colormap member in XCreateWindow() if it's set in the xlibrgb code.


git-svn-id: svn://10.0.0.236/trunk@33269 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 20:36:09 +00:00
bruce%cybersight.com
fd958b07e4 The include guard name changed with the conversion of nsIPref to xpidl. This file needed to be updated for that. Should fix the OSF/1 build.
git-svn-id: svn://10.0.0.236/trunk@33268 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 18:48:56 +00:00
blizzard%redhat.com
e2b27f1c3d Apply build patches from Tim Rowley <tor@cs.brown.edu> to get working
with native solaris compiler


git-svn-id: svn://10.0.0.236/trunk@33267 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 16:58:31 +00:00
mcafee%netscape.com
ce94ecf174 Removing spurious semicolon. Thanks to David Gardiner for this fix.
git-svn-id: svn://10.0.0.236/trunk@33266 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 07:54:22 +00:00
mcafee%netscape.com
b50988fb24 nsIGenericTransferable.h was removed on 13th May. Thanks to David Gardiner for this fix.
git-svn-id: svn://10.0.0.236/trunk@33265 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 07:50:39 +00:00
rjc%netscape.com
3dc6f7abb8 Small bug fix with FTP; be a little bit smarter at what paths need filtering out (along with "." and "..", skip any absolute URLs, as they usually point "up" the path to the parent)
git-svn-id: svn://10.0.0.236/trunk@33264 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 06:15:58 +00:00
rjc%netscape.com
08094cc66c Add support for separators in "Related Links" data.
git-svn-id: svn://10.0.0.236/trunk@33263 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 06:02:30 +00:00
beard%netscape.com
9858118e3a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33262 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 02:15:01 +00:00
pavlov%pavlov.net
cd573f406c we don't need the mAlign thing anymore since we have an event box
git-svn-id: svn://10.0.0.236/trunk@33261 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 02:09:42 +00:00
sspitzer%netscape.com
8e4539c047 fix mac build bustage. if we have a MANIFEST file, you need to add it to this perl module. I've made changes for news/build/MANIFEST, addrbook/build/MANIFEST and compose/build/MANIFEST
hopefully this prevent future build breakage.  many thanks to patrick beard for the help.


git-svn-id: svn://10.0.0.236/trunk@33260 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 01:23:43 +00:00
beard%netscape.com
6c321c01eb changed region pool to use 2 linked lists of slots instead of an array, for constant time allocation and recycling. no longer allocates a fixed size pool, and regions are truly owned by the caller until recycled.
git-svn-id: svn://10.0.0.236/trunk@33259 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 00:48:01 +00:00
sspitzer%netscape.com
130616b151 XPIDL-ify nsINntpService
git-svn-id: svn://10.0.0.236/trunk@33258 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 00:13:05 +00:00
sspitzer%netscape.com
a83737950b XPIDL-ify nsINntpService. use "scriptable" instead of "object" in the news idl files
git-svn-id: svn://10.0.0.236/trunk@33257 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 00:12:41 +00:00
dougt%netscape.com
257a2436d8 kISupportsIID is not defined on unix, but it is on windoze...
git-svn-id: svn://10.0.0.236/trunk@33256 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 23:01:25 +00:00
dougt%netscape.com
9a2a180d5b Adding a few more functions to nsIEventQueue.
Moving proxy to use nsIEventQueue instead of PLEvents direct.


git-svn-id: svn://10.0.0.236/trunk@33255 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 22:50:25 +00:00
sspitzer%netscape.com
7077a1cb82 XPIDL-ify nsINNTPHost and adjust accordingly
git-svn-id: svn://10.0.0.236/trunk@33254 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 22:45:35 +00:00
blizzard%redhat.com
9e4c8b1cda catch up to new apis for file widget
git-svn-id: svn://10.0.0.236/trunk@33253 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 21:51:29 +00:00
beard%netscape.com
d4e201e366 make sure mScriptContextOwner isn't NULL (apologies to sspitzer, made the test consistent with line #2283, hope you don't mind)
git-svn-id: svn://10.0.0.236/trunk@33252 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 21:43:24 +00:00
ducarroz%netscape.com
8d44318d91 fix for bug 7329. MAC ONLY: if a file doesn't exist while doing an open and the flag PR_CREATE_FILE is set shouldn't abort.
git-svn-id: svn://10.0.0.236/trunk@33251 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 21:27:18 +00:00
ducarroz%netscape.com
db9b4787ed fix for bug 7329. Deleteting a file that doesn't exist should not invalidate the nsFileSpec.
git-svn-id: svn://10.0.0.236/trunk@33250 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 21:27:16 +00:00
sspitzer%netscape.com
cf8491ff39 DEBUG_sspitzer -> DEBUG_NEWS
git-svn-id: svn://10.0.0.236/trunk@33249 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 21:05:09 +00:00
sspitzer%netscape.com
6e79f5d0d7 fix const weirdness. clean up code for solaris compiler
git-svn-id: svn://10.0.0.236/trunk@33248 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 21:03:48 +00:00
sspitzer%netscape.com
0082a73e65 remove the const in preparation for moving to XPIDL
git-svn-id: svn://10.0.0.236/trunk@33247 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 21:02:30 +00:00
sspitzer%netscape.com
e6265caf5c remove stupid code because it's stupid
git-svn-id: svn://10.0.0.236/trunk@33246 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 21:01:19 +00:00
sspitzer%netscape.com
91729e56cc XPIDL-ify nsINNTPNewsgroupList, and adjust accordingly.
change DEBUG_sspitzer to DEBUG_NEWS


git-svn-id: svn://10.0.0.236/trunk@33245 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 21:00:12 +00:00
sspitzer%netscape.com
160a1a5c12 fix for #7344. check for nsnull before dereferencing.
git-svn-id: svn://10.0.0.236/trunk@33244 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 20:55:48 +00:00
mcafee%netscape.com
3a9be214cd Fixing warnings.
git-svn-id: svn://10.0.0.236/trunk@33243 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 19:36:55 +00:00
bienvenu%netscape.com
a9a03df0a5 get local mail filters working
git-svn-id: svn://10.0.0.236/trunk@33242 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 17:09:39 +00:00
bienvenu%netscape.com
9bad0afcb4 fix match hdrs for filters
git-svn-id: svn://10.0.0.236/trunk@33241 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 17:08:53 +00:00
bruce%cybersight.com
b79cb3c360 Remove static IID kISupportsIID from the default QueryInterfaces implementation macro. Replace with call to nsISupports::GetIID(). Tested by dp, myself and tague on the 3 main platforms (Win32, Linux and Mac respectively).
git-svn-id: svn://10.0.0.236/trunk@33240 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 16:25:18 +00:00
bruce%cybersight.com
06932ac48e Fix usage of kISupportsIID so that my next checkin won't hork the tree.
git-svn-id: svn://10.0.0.236/trunk@33239 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 16:22:36 +00:00
alla%lysator.liu.se
d3f4687540 Update licence to MPL 1.1
git-svn-id: svn://10.0.0.236/trunk@33238 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 12:38:22 +00:00
rickg%netscape.com
d206293316 searching should be slightly faster now
git-svn-id: svn://10.0.0.236/trunk@33237 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 09:40:49 +00:00
rickg%netscape.com
1879574b9f using brute-force search for now
git-svn-id: svn://10.0.0.236/trunk@33236 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 09:28:56 +00:00
mcafee%netscape.com
234f802a7a Fix implicit declaration warning for atoi(). Thansk to Brian Ryner bryner@uiuc.edu for this fix.
git-svn-id: svn://10.0.0.236/trunk@33235 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 08:56:53 +00:00
rickg%netscape.com
27daf0bb9c sync with nsString2 API
git-svn-id: svn://10.0.0.236/trunk@33234 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 08:52:19 +00:00
law%netscape.com
b4be9d1b80 Fix build bustage
git-svn-id: svn://10.0.0.236/trunk@33233 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 07:31:57 +00:00
rickg%netscape.com
ab77576555 final update to nsString2 before switchover
git-svn-id: svn://10.0.0.236/trunk@33232 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 07:29:46 +00:00
law%netscape.com
d915cf89eb Fix build bustage
git-svn-id: svn://10.0.0.236/trunk@33231 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 07:22:58 +00:00
mcmullen%netscape.com
7e572e4c2d Added nsFileSpecWithUIImp.cpp
git-svn-id: svn://10.0.0.236/trunk@33230 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 07:04:16 +00:00
rickg%netscape.com
9bfb8e7b48 updated to nsString2 api's
git-svn-id: svn://10.0.0.236/trunk@33229 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 07:02:08 +00:00
mcafee%netscape.com
183b5e384b Adding test#16, gfx widgets, to match viewer tests.
git-svn-id: svn://10.0.0.236/trunk@33228 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 06:22:00 +00:00
mcafee%netscape.com
c630040d7c Adding nsFileSpecWithUIImpl.cpp to resolve NS_NewFileSpecWithUI(). r=mcmullen
git-svn-id: svn://10.0.0.236/trunk@33227 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 06:08:56 +00:00
law%netscape.com
6daa1032ea added files: mozilla/widget/src/xpwidgets/nsFileSpecWithUIImpl.cpp
git-svn-id: svn://10.0.0.236/trunk@33226 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 03:28:56 +00:00
rickg%netscape.com
bf2176589a oops -- I didn't mean to update these -- backing out
git-svn-id: svn://10.0.0.236/trunk@33225 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 03:04:16 +00:00
rickg%netscape.com
4cf139826e fixed nsString2 usage error introduced by observerlist change
git-svn-id: svn://10.0.0.236/trunk@33224 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 03:01:22 +00:00
rickg%netscape.com
6c837aa5f5 fixed nsString2 usage error
git-svn-id: svn://10.0.0.236/trunk@33223 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 02:44:53 +00:00
bruce%cybersight.com
ceefa91fa1 Use $(DLL_SUFFIX) here as well.
git-svn-id: svn://10.0.0.236/trunk@33222 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 02:25:28 +00:00
bruce%cybersight.com
d07a526aa3 Use $(DLL_SUFFIX) for shared lib linking.
git-svn-id: svn://10.0.0.236/trunk@33221 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 02:19:03 +00:00
bruce%cybersight.com
f92670e2de Correct typo, fix HP-UX bustage.
git-svn-id: svn://10.0.0.236/trunk@33220 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 02:15:07 +00:00
law%netscape.com
03b76d98f7 Switching to idl-ed nsIObserverService
git-svn-id: svn://10.0.0.236/trunk@33219 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 02:13:10 +00:00
mcmullen%netscape.com
76225b5e9f For Bill
git-svn-id: svn://10.0.0.236/trunk@33218 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 02:01:28 +00:00
mcmullen%netscape.com
8a800cd243 Return value
git-svn-id: svn://10.0.0.236/trunk@33217 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:51:02 +00:00
briano%netscape.com
49e5805acd No longer needed.
git-svn-id: svn://10.0.0.236/trunk@33216 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:47:55 +00:00
briano%netscape.com
7b02faa581 Yanked out some of the obsolete \$OS_ARCH.mk stuff.
git-svn-id: svn://10.0.0.236/trunk@33215 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:44:42 +00:00
mcmullen%netscape.com
23d46569d9 move widgetry out of xpcom
git-svn-id: svn://10.0.0.236/trunk@33214 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:37:55 +00:00
rjc%netscape.com
7b59c73e18 Add window titles to bookmarks and history windows.
git-svn-id: svn://10.0.0.236/trunk@33213 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:35:00 +00:00
briano%netscape.com
b7c9744632 Removed the coreconf.mk include. Not used anymore.
git-svn-id: svn://10.0.0.236/trunk@33212 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:32:26 +00:00
law%netscape.com
91a562b7e7 XPIDL-ifying nsIOberver/nsIObserverService
git-svn-id: svn://10.0.0.236/trunk@33211 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:30:27 +00:00
mcmullen%netscape.com
be6f95027b Use NS_COM (not NS_BASE)
git-svn-id: svn://10.0.0.236/trunk@33210 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:29:28 +00:00
vidur%netscape.com
dd84ad6b9c possibly temporary sink implementation to build a document fragment.
git-svn-id: svn://10.0.0.236/trunk@33209 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:29:01 +00:00
mcmullen%netscape.com
95205de0f7 Moved widgetry out.
git-svn-id: svn://10.0.0.236/trunk@33208 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:28:25 +00:00
mcmullen%netscape.com
bac887f003 Moved widgetry out of xpcom
git-svn-id: svn://10.0.0.236/trunk@33207 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:26:53 +00:00
jefft%netscape.com
bc6d75a88d fixed unmatching memory free
git-svn-id: svn://10.0.0.236/trunk@33206 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:20:28 +00:00
jefft%netscape.com
07f8b16b51 removed unneeded code
git-svn-id: svn://10.0.0.236/trunk@33205 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:19:48 +00:00
mcmullen%netscape.com
8f8244080e Moving widgetry out of xpcom
git-svn-id: svn://10.0.0.236/trunk@33204 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:08:22 +00:00
mcmullen%netscape.com
b5b08c137a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33203 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:05:14 +00:00
law%netscape.com
bbc3324ba6 XPIDL-ifying nsIObserver/nsIObserverService
git-svn-id: svn://10.0.0.236/trunk@33202 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 00:51:17 +00:00
briano%netscape.com
05718b3a41 Added support for alphapca56.
git-svn-id: svn://10.0.0.236/trunk@33201 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 00:49:32 +00:00
sspitzer%netscape.com
ca49018988 fix the subscribe xul and css
git-svn-id: svn://10.0.0.236/trunk@33200 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 00:28:02 +00:00
rjc%netscape.com
8af3565667 Clean up sidebar.xul a bit.
git-svn-id: svn://10.0.0.236/trunk@33199 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 00:26:06 +00:00
rjc%netscape.com
3f9b90736d Fix some bugs with template rules. Added some needed styles for bookmarks window. Fixed a bug with sorting in bookmarks window (don't add RDFCore into list, as its unnecessary.) Bookmarks panel in sidebar is now using template rules.
git-svn-id: svn://10.0.0.236/trunk@33198 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 00:17:32 +00:00
andreas.otte%primus-online.de
a3f8b20c4a Some more ignorance
git-svn-id: svn://10.0.0.236/trunk@33196 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 00:06:00 +00:00
sspitzer%netscape.com
932bee9140 cvs ignorage for the generate Makefiles
git-svn-id: svn://10.0.0.236/trunk@33195 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 23:52:47 +00:00
andreas.otte%primus-online.de
e041ebaa15 Adding missing headerfiles
git-svn-id: svn://10.0.0.236/trunk@33194 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 23:48:58 +00:00
andreas.otte%primus-online.de
e125343119 Change to "camel case" nsIHttpEventSink
git-svn-id: svn://10.0.0.236/trunk@33193 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 23:48:12 +00:00
alecf%netscape.com
9567118abd don't leak!
git-svn-id: svn://10.0.0.236/trunk@33192 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 23:28:37 +00:00
alecf%netscape.com
9ad1882a72 remove call to GetCharPref
git-svn-id: svn://10.0.0.236/trunk@33191 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 23:28:04 +00:00
alecf%netscape.com
52b75a95ab aug, I'll get this right yet - pass in propertyURL correctly
git-svn-id: svn://10.0.0.236/trunk@33190 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 23:26:14 +00:00
alecf%netscape.com
b52718c716 aug. Rename GetCharPref to CopyCharPref
git-svn-id: svn://10.0.0.236/trunk@33189 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 23:25:27 +00:00
alecf%netscape.com
a574617304 remove call to GetCharPref()
git-svn-id: svn://10.0.0.236/trunk@33188 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 23:25:09 +00:00
alecf%netscape.com
2510376d81 I forgot to make this interface scriptable
git-svn-id: svn://10.0.0.236/trunk@33187 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 23:04:19 +00:00
alecf%netscape.com
f9894ef49b register nsIPref with a useable progID
git-svn-id: svn://10.0.0.236/trunk@33186 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 23:02:13 +00:00
hyatt%netscape.com
fe7fca2d88 Focus tracker actually tracks!
git-svn-id: svn://10.0.0.236/trunk@33185 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:55:10 +00:00
rjc%netscape.com
3b06514866 Use entities instead of hard-coded text in translation menus.
git-svn-id: svn://10.0.0.236/trunk@33184 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:50:45 +00:00
ducarroz%netscape.com
7ad3c4fd60 Messenger resources now go to the chrome folder.
git-svn-id: svn://10.0.0.236/trunk@33183 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:43:26 +00:00
warren%netscape.com
558763612e Added nsConstructorPattern.cpp
git-svn-id: svn://10.0.0.236/trunk@33182 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:41:13 +00:00
putterman%netscape.com
e391e874ed Part of new mailnews resources hierarchy.
git-svn-id: svn://10.0.0.236/trunk@33179 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:38:07 +00:00
gagan%netscape.com
f4adea711f General fixes and changed #include nsHTTPEventSink to match the camel-case
file name. Will be fixed when we migrate to network.


git-svn-id: svn://10.0.0.236/trunk@33178 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:34:41 +00:00
putterman%netscape.com
37f6d16f84 Update preference tree with new chrome urls.
git-svn-id: svn://10.0.0.236/trunk@33177 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:34:12 +00:00
putterman%netscape.com
ac36146d26 update registry for new mailnews hierarchy.
git-svn-id: svn://10.0.0.236/trunk@33176 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:33:30 +00:00
gagan%netscape.com
04a5280ac2 General fixes.
git-svn-id: svn://10.0.0.236/trunk@33175 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:31:47 +00:00
alecf%netscape.com
c416cb0b7f oops, missed a few more size_t's
git-svn-id: svn://10.0.0.236/trunk@33174 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:30:30 +00:00
alecf%netscape.com
ebae6f9e6a fix mac bustage - missed this size_t when switching to XPIDL syntax
git-svn-id: svn://10.0.0.236/trunk@33173 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:29:53 +00:00
hyatt%netscape.com
8f4bb1fd1d added files: mozilla/rdf/content/src/nsXULFocusTracker.cpp, mozilla/rdf/content/src/nsJSXULFocusTracker.cpp
git-svn-id: svn://10.0.0.236/trunk@33172 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:29:25 +00:00
hyatt%netscape.com
6e23c7709d More accurate tracking of chrome shells.
git-svn-id: svn://10.0.0.236/trunk@33171 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:26:48 +00:00
hyatt%netscape.com
8ab04357b8 Editing makefiles to add sources for the focus tracker.
git-svn-id: svn://10.0.0.236/trunk@33170 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:18:11 +00:00
dougt%netscape.com
f862aa1262 Adding Proxy to the xpcom init.
git-svn-id: svn://10.0.0.236/trunk@33169 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:17:24 +00:00
hyatt%netscape.com
a04d952090 Adding source files for focus tracker.
git-svn-id: svn://10.0.0.236/trunk@33168 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:16:47 +00:00
hyatt%netscape.com
4d38f002e7 More focus tracker work.
git-svn-id: svn://10.0.0.236/trunk@33167 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:15:57 +00:00
dougt%netscape.com
1c9d2fef90 Adding "Fire And Forget" async method calling.
Added Create() function for the generic factory.
Made ProxyObject into an nsISupports Object for refcounting.
Fixed proxytest to work in the new xpcom2 world.


git-svn-id: svn://10.0.0.236/trunk@33166 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:15:20 +00:00
dougt%netscape.com
7ab6deb1ee Adding a local include path to proxy/src
git-svn-id: svn://10.0.0.236/trunk@33165 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:10:55 +00:00
dp%netscape.com
3a5dab8bf1 Fixed crasher bug# 7311 by removing aggregation. Both constructors need to take an additional parameter that will initialize the outer need to happen. Doing the bigger change of introducing aggregation later
git-svn-id: svn://10.0.0.236/trunk@33164 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:09:32 +00:00
putterman%netscape.com
24d65d93d0 Add resultPane.xul to MANIFEST file.
git-svn-id: svn://10.0.0.236/trunk@33163 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:05:54 +00:00
alecf%netscape.com
71447ceef1 turn on XPConnect for nsIPref
git-svn-id: svn://10.0.0.236/trunk@33162 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:03:40 +00:00
alecf%netscape.com
38f7a21ce8 make nsIPref scriptable, and turn on XPIDL compiling on unix
(windows is on the way)


git-svn-id: svn://10.0.0.236/trunk@33161 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:01:07 +00:00
hyatt%netscape.com
ddf3af4762 Focus tracker stubbing.
git-svn-id: svn://10.0.0.236/trunk@33160 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 21:56:07 +00:00
kmcclusk%netscape.com
c41abdbd0f Added test16 to GTK menu. Also added missing aform.css, bform.css, cform.css
mozform.css and demoform.css file to be exported in Makefile.in


git-svn-id: svn://10.0.0.236/trunk@33159 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 21:55:33 +00:00
kin%netscape.com
ffa546bdb8 Fixed double addref in EnableUndo() that was causing us to leak the transaction manager on destruction of the editor.
git-svn-id: svn://10.0.0.236/trunk@33158 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 21:49:24 +00:00
ftang%netscape.com
c591be3574 do not call StopDocumentLoading to avoid libnet reent problem. return NS_ERROR_ABORT to indicate reload happend. set teh rendering to false instead of true
git-svn-id: svn://10.0.0.236/trunk@33157 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 21:41:51 +00:00
andreas.otte%primus-online.de
a5c671ac6d copy strres.properties to $(DIST)/bin/res to give StringBundleTest something to work with
git-svn-id: svn://10.0.0.236/trunk@33156 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 21:37:38 +00:00
alecf%netscape.com
3e84cf3fad remove bogus files from build
git-svn-id: svn://10.0.0.236/trunk@33155 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 21:34:58 +00:00
ftang%netscape.com
36d5b17045 change the ReloadDocument implementation by using RefreshURL do avoid reentrance problem in libnet
git-svn-id: svn://10.0.0.236/trunk@33154 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 21:32:29 +00:00
buster%netscape.com
9041cef161 Preparation for ender-based text control
* added focus listener.  Doesn't do much yet, but when focus notifications start appearing, we'll be ready for them.  The code is in
place to hide selection when we lose focus and paint selection when we get focus.  That's probably not quite right, but it's a start.
We will need to be able to determine the distinction between losing focus to another control within our app, and losing focus to
another app.
* added support for disabled and readonly states in the editor.  This is accomplished by having flags set by the client, and letting the
rules system deal with those flags.  The flags I added are:
     TEXT_EDITOR_FLAG_PLAINTEXT   0x01   // only plain text editing is allowed
     TEXT_EDITOR_FLAG_SINGLELINE  0x02   // enter key and CR-LF handled specially
     TEXT_EDITOR_FLAG_PASSWORD    0x04   // text is not entered into content, only a representative character
     TEXT_EDITOR_FLAG_READONLY    0x08   // editing events are disabled.  Editor may still accept focus.
     TEXT_EDITOR_FLAG_DISALBED    0x10   // all events are disabled (like scrolling).  Editor will not accept focus.
* added WillInsertBreak/DidInsertBreak into text rules, so flags could be checked.  This gets us readonly, disabled, and single line
behavior.
* cleaned up the code that allocates, registers, and destroys event listeners.  Thanks to Kin and Simon for cleaning up the
ownership model on the listeners, it was a big help.
* added support for a max text length.  You can now tell the text editor, be no bigger than n characters.


git-svn-id: svn://10.0.0.236/trunk@33153 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 21:24:18 +00:00
jfrancis%netscape.com
677f048b01 cleanup util function duplication
git-svn-id: svn://10.0.0.236/trunk@33152 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 21:17:30 +00:00
kmcclusk%netscape.com
94269e3783 fix for bug #6971. Added support for clicking and dragging over items in single
and multiselect listboxes. Also supports holding down the shift and ctrl keys
while dragging.


git-svn-id: svn://10.0.0.236/trunk@33151 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 21:12:09 +00:00
nhotta%netscape.com
7ebe97b8fd Added a check for force charset.
git-svn-id: svn://10.0.0.236/trunk@33150 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 20:53:29 +00:00
nhotta%netscape.com
a24d244b6d Clean up and preparing for auto detection.
git-svn-id: svn://10.0.0.236/trunk@33149 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 20:40:05 +00:00
dp%netscape.com
95269e387d Component Registry
git-svn-id: svn://10.0.0.236/trunk@33148 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 20:38:16 +00:00
hyatt%netscape.com
68ad61de89 Oops.
git-svn-id: svn://10.0.0.236/trunk@33147 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 20:33:46 +00:00
jefft%netscape.com
1ed83e8684 partially fixed bug 7147 -- Drop-down menu does not show folder when selecting Move Message
git-svn-id: svn://10.0.0.236/trunk@33146 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 20:30:23 +00:00
hyatt%netscape.com
5d45fcaf0d Adding the focus tracker to the XUL document.
git-svn-id: svn://10.0.0.236/trunk@33145 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 20:24:58 +00:00
sspitzer%netscape.com
e6f952c10b ignore the generated Makefile
git-svn-id: svn://10.0.0.236/trunk@33144 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 20:21:36 +00:00
ducarroz%netscape.com
903a6e4472 remove nsVCardTransition.cpp who has been deleted from the tree
git-svn-id: svn://10.0.0.236/trunk@33143 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 20:14:47 +00:00
sspitzer%netscape.com
b7a48c9846 fix build bustage. that file is gone.
git-svn-id: svn://10.0.0.236/trunk@33142 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 20:12:41 +00:00
putterman%netscape.com
13a28a59b2 Part of new mailnews resources hierarchy.
git-svn-id: svn://10.0.0.236/trunk@33141 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 20:10:53 +00:00
cata%netscape.com
dc27be6d15 My part of fix for bug 6890.
git-svn-id: svn://10.0.0.236/trunk@33140 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 20:03:35 +00:00
mscott%netscape.com
1dc1c7e03c Remove inadvertant ';' in if clause. thanks to sfraser for pointing it out.
git-svn-id: svn://10.0.0.236/trunk@33139 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 20:00:33 +00:00
rhp%netscape.com
c9797c9c42 Changes for using string bundles
git-svn-id: svn://10.0.0.236/trunk@33138 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 20:00:32 +00:00
rhp%netscape.com
3d056f04dc Changes for using string bundles
git-svn-id: svn://10.0.0.236/trunk@33137 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 19:58:00 +00:00
sspitzer%netscape.com
2510e792e4 changes for makeing news scriptable
git-svn-id: svn://10.0.0.236/trunk@33136 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 19:43:14 +00:00
putterman%netscape.com
0e64747804 Part of new mailnews resources hierarchy.
git-svn-id: svn://10.0.0.236/trunk@33135 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 19:41:31 +00:00
ducarroz%netscape.com
6dd7f4ebb9 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33134 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 19:40:07 +00:00
blizzard%redhat.com
0c19e74a19 make sure the right dll name is hardcoded. patch from Jeremy Lea <reg@shale.csir.co.za>
git-svn-id: svn://10.0.0.236/trunk@33133 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 19:32:40 +00:00
rogerl%netscape.com
7448fc1fe9 Moved from stack to inline execution.
git-svn-id: svn://10.0.0.236/trunk@33132 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 19:00:48 +00:00
despotdaemon%netscape.com
734272ce20 Pseudo-automatic update of changes made by shaver@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@33131 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 16:49:14 +00:00
despotdaemon%netscape.com
e07f94077b Pseudo-automatic update of changes made by shaver@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@33130 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 16:48:27 +00:00
blizzard%redhat.com
33764d7917 make sure that globals are defined here for display properties. also, make sure that the gfx module for xlib is linked explicitly with the xlib libraries so that the tests link
git-svn-id: svn://10.0.0.236/trunk@33129 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 15:11:21 +00:00
dcone%netscape.com
d528aba0b3 Fixed RealizeFont() to use a screen DC when printing for a few windows calls
git-svn-id: svn://10.0.0.236/trunk@33128 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 14:13:53 +00:00
briano%netscape.com
94e1a5a318 Automated update
git-svn-id: svn://10.0.0.236/trunk@33127 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 12:44:46 +00:00
ramiro%netscape.com
8271fa4606 Add support for building gtk widget as part of mozilla builds.
git-svn-id: svn://10.0.0.236/trunk@33126 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 12:43:59 +00:00
rhp%netscape.com
7bc0c9f66a New files for using string bundles
git-svn-id: svn://10.0.0.236/trunk@33125 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 12:39:28 +00:00
ramiro%netscape.com
b28b5728fc Fix it so it works in the xpcom2.0 world. Add cvsignore stuff.
git-svn-id: svn://10.0.0.236/trunk@33124 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 12:06:56 +00:00
ramiro%netscape.com
e31c0aa03a Add a module name for the GtkMozilla widget.
git-svn-id: svn://10.0.0.236/trunk@33123 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 11:43:41 +00:00
ramiro%netscape.com
0138a4b52e Importing Alexander Larsson's (alex@signum.se) gtkmozilla widget to the tree.
gtkmozilla is a GTK+ widget which can be used to embed mozilla in any gtk
application.


git-svn-id: svn://10.0.0.236/trunk@33122 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 11:34:26 +00:00
waterson%netscape.com
ba006b5e43 Bug 6895. Create HTML elements (not XUL elements) when the tag is in the HTML namespace. Minor performance enhancements to reduce number of calls to layout during content model construction.
git-svn-id: svn://10.0.0.236/trunk@33121 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 11:30:59 +00:00
andreas.otte%primus-online.de
9b0fa808b0 make no shared lib and do not install it in $(DIST)/bin
git-svn-id: svn://10.0.0.236/trunk@33120 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 11:20:30 +00:00
despotdaemon%netscape.com
5bc328b41d Pseudo-automatic update of changes made by driehuis@playbeing.org.
git-svn-id: svn://10.0.0.236/trunk@33119 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 11:10:06 +00:00
andreas.otte%primus-online.de
c0de187979 First Checked In
git-svn-id: svn://10.0.0.236/trunk@33118 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 09:16:47 +00:00
andreas.otte%primus-online.de
e10182b265 First Checked In
git-svn-id: svn://10.0.0.236/trunk@33117 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 09:11:38 +00:00
andreas.otte%primus-online.de
9e01e165dd Making libftp.so a component
git-svn-id: svn://10.0.0.236/trunk@33116 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 08:23:48 +00:00
andreas.otte%primus-online.de
cd20f1b732 Making libhttp.so a component
git-svn-id: svn://10.0.0.236/trunk@33115 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 08:22:46 +00:00
rickg%netscape.com
3ffa9ea51f small performance enhancement -- less searching
git-svn-id: svn://10.0.0.236/trunk@33114 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 07:14:08 +00:00
peterl%netscape.com
ffdd85ba9e clone URLs before handing to netlib. "chrome:" and "resource:" urls get munged destroying hash keys...
git-svn-id: svn://10.0.0.236/trunk@33113 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 06:50:52 +00:00
bruce%cybersight.com
1f2b1aac51 Remove a shadowing variable declaration.
git-svn-id: svn://10.0.0.236/trunk@33112 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 06:49:30 +00:00
bruce%cybersight.com
cde17134e5 Fix a shadowed variable.
git-svn-id: svn://10.0.0.236/trunk@33111 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 06:13:00 +00:00
dp%netscape.com
ef8f4ab569 Checking for NULL progid. This should return correct error values from RegisterComponent()
git-svn-id: svn://10.0.0.236/trunk@33110 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 06:06:14 +00:00
despotdaemon%netscape.com
f92915cd5f Pseudo-automatic update of changes made by alla@lysator.liu.se.
git-svn-id: svn://10.0.0.236/trunk@33109 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 05:41:08 +00:00
bruce%cybersight.com
1cbb18e94c Remove local shadowing of variable.
git-svn-id: svn://10.0.0.236/trunk@33108 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 05:29:26 +00:00
sspitzer%netscape.com
ee971c748b make unix like the other platforms (use ImapMail as the imap mail dir)
git-svn-id: svn://10.0.0.236/trunk@33107 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 05:20:32 +00:00
tague%netscape.com
db7ff131bb Added TSM Input Method support for the Macintosh. (Added a call to CloseTSMAwareApplication).
git-svn-id: svn://10.0.0.236/trunk@33106 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 05:06:54 +00:00
tague%netscape.com
6a071c8399 Added TSM Input Method support for the Macintosh.
git-svn-id: svn://10.0.0.236/trunk@33105 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 05:06:38 +00:00
tague%netscape.com
e7fef14463 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33104 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 05:05:46 +00:00
tague%netscape.com
22bf182e3b Added InitTSMAwareApplication to the Toolbox initialization sequence. Part of a set of check-ins to add TSM Input Method support on the Mac.
git-svn-id: svn://10.0.0.236/trunk@33103 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 05:05:27 +00:00
tague%netscape.com
c128e3f98a Updated self test.
git-svn-id: svn://10.0.0.236/trunk@33102 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 05:01:54 +00:00
dp%netscape.com
75dc8b1770 Fixing nsrefcnt to be unsigned long to maintain binary compatibility. All Addref() and Release() prototypes modified appropriately
git-svn-id: svn://10.0.0.236/trunk@33100 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 04:53:17 +00:00
hyatt%netscape.com
0e14bcd81f Temporary hack to avoid crashing.
git-svn-id: svn://10.0.0.236/trunk@33099 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 04:39:59 +00:00
blizzard%redhat.com
8d158427ae move global xlib symbols, fix hard coded toolkit name in makefile
git-svn-id: svn://10.0.0.236/trunk@33098 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 04:13:29 +00:00
blizzard%redhat.com
01fda6864c remove hard coded toolkit name
git-svn-id: svn://10.0.0.236/trunk@33097 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 04:12:24 +00:00
blizzard%redhat.com
f9946cc363 remove hard coded toolkit names in tests
git-svn-id: svn://10.0.0.236/trunk@33096 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 03:42:59 +00:00
briano%netscape.com
f5fe452f6b Got rid of the BSDECHO macro. Obsolete.
git-svn-id: svn://10.0.0.236/trunk@33095 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 03:36:21 +00:00
sspitzer%netscape.com
33f48b3ff6 remove my comment
git-svn-id: svn://10.0.0.236/trunk@33094 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 03:36:04 +00:00
briano%netscape.com
02ebcfbb55 No longer needed.
git-svn-id: svn://10.0.0.236/trunk@33093 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 03:27:37 +00:00
sspitzer%netscape.com
e887d056c5 whoops, I should only be setting some prefs if they didn't have a prefs file
git-svn-id: svn://10.0.0.236/trunk@33092 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 03:24:30 +00:00
tague%netscape.com
843b282e49 Updated self-test so that it continues to build.
git-svn-id: svn://10.0.0.236/trunk@33091 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 03:19:22 +00:00
tague%netscape.com
05bf124d2e Updated self-test so it continues to build
git-svn-id: svn://10.0.0.236/trunk@33090 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 03:19:05 +00:00
sspitzer%netscape.com
82bc367b26 make my hack less of a hack. use the pref api instead of writing out the the
stream.

this is much better.  (thanks to alecf for the suggestion).


git-svn-id: svn://10.0.0.236/trunk@33089 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 03:16:03 +00:00
alecf%netscape.com
f79f5654b8 use XPIDL on windows for all these IDL files
git-svn-id: svn://10.0.0.236/trunk@33088 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 03:08:27 +00:00
sfraser%netscape.com
2d9635b42b Fix hyatt's checking with a null test, so that you don't crash when closing windows.
git-svn-id: svn://10.0.0.236/trunk@33087 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 02:57:20 +00:00
bienvenu%netscape.com
2dd64c1f5f fix ref counting problem on isupports filter stuff
git-svn-id: svn://10.0.0.236/trunk@33086 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 02:15:31 +00:00
bienvenu%netscape.com
946289b75e fix filter folder name to be one byte
git-svn-id: svn://10.0.0.236/trunk@33085 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 02:14:59 +00:00
pollmann%netscape.com
2ac238458d Bug 3322: Windows sends NS_CONTROL_CHANGE events
git-svn-id: svn://10.0.0.236/trunk@33084 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 02:11:55 +00:00
dp%netscape.com
03e1f16be9 Reversing changing type of nsrefcnt. Mailnews code has specific Release() implementation that mention a different type. We need to fix that first.
git-svn-id: svn://10.0.0.236/trunk@33083 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 02:07:49 +00:00
pierre%netscape.com
9c6fa042ec File Removed.
git-svn-id: svn://10.0.0.236/trunk@33082 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 02:00:54 +00:00
pierre%netscape.com
6d4e050edd Fixed the Profiler build for NSRuntime.mcp
git-svn-id: svn://10.0.0.236/trunk@33081 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 01:54:27 +00:00
mccabe%netscape.com
a3eb871c1e Added the xpcom/sample directory to the build, so I can point people to the minimal XPConnect sample code there without them having to rebuild to try it out.
git-svn-id: svn://10.0.0.236/trunk@33080 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 01:49:47 +00:00
nhotta%netscape.com
bd54474c8c Added force character set.
git-svn-id: svn://10.0.0.236/trunk@33079 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 01:31:55 +00:00
mang%subcarrier.org
cea521ce2b documented existence of -g flag
git-svn-id: svn://10.0.0.236/trunk@33078 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 01:25:31 +00:00
dp%netscape.com
c6b7ed14b1 Fixed Binary compability with COM's nsIUnknown w.r.t return value types of Addref and Release.
nsrefcnt is defined as unsigned long for windows machines with 4 bytes per long.


git-svn-id: svn://10.0.0.236/trunk@33077 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 01:22:35 +00:00
dp%netscape.com
5add7d2de6 - Adding in PROGID and Classname for registration of xpcom components.
- Registering FILESPEC


git-svn-id: svn://10.0.0.236/trunk@33075 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 01:14:59 +00:00
mccabe%netscape.com
8f6488d835 Removed unused and nonsensical voidRef typedef.
git-svn-id: svn://10.0.0.236/trunk@33074 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 01:14:50 +00:00
briano%netscape.com
42a8cd9e92 Added support for Rhapsody.
git-svn-id: svn://10.0.0.236/trunk@33073 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 01:10:22 +00:00
pollmann%netscape.com
96795774f2 Bug 3322: nsSelectControlFrames's ControlChanged does what MouseClicked used to - checks for selection changes and sends out onChange DOM events.
git-svn-id: svn://10.0.0.236/trunk@33072 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 01:06:42 +00:00
pollmann%netscape.com
1187a6df01 Bug 3322: NS_CONTROL_CHANGE events call ControlChanged on the form frame.
git-svn-id: svn://10.0.0.236/trunk@33071 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 01:05:19 +00:00
alecf%netscape.com
a344c4e0be GetCharPref() is going away for nsIPref scriptability - use CopyCharPref instead
git-svn-id: svn://10.0.0.236/trunk@33070 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:56:53 +00:00
alecf%netscape.com
0164889fa4 GetCharPref is going away for nsIPref scriptability - use CopyCharPref instead
git-svn-id: svn://10.0.0.236/trunk@33069 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:51:34 +00:00
dp%netscape.com
4b8edfa961 Added aggregation. Implemented Create() so that the GenericFactory can create IFileSpec
Objects if registered.


git-svn-id: svn://10.0.0.236/trunk@33068 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:50:42 +00:00
alecf%netscape.com
9d05a018f8 GetCharPref() is going away for nsIPref scriptability. Use CopyCharPref instead
git-svn-id: svn://10.0.0.236/trunk@33067 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:50:29 +00:00
alecf%netscape.com
742aefc647 remove calls to GetCharPref() (going away for nsIPref scriptability)
git-svn-id: svn://10.0.0.236/trunk@33066 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:48:49 +00:00
mcmullen%netscape.com
935485f6ac Removed base/baseDebug.shlb
git-svn-id: svn://10.0.0.236/trunk@33065 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:48:24 +00:00
akkana%netscape.com
83e9e8100d Add paste/insert as quotation into editor app cores to be accessible from JS.
git-svn-id: svn://10.0.0.236/trunk@33062 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:46:34 +00:00
pierre%netscape.com
6c1eeac67f #6988 "Click in grow box shrinks window by 1 pixel"
git-svn-id: svn://10.0.0.236/trunk@33061 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:42:49 +00:00
pierre%netscape.com
75ff1ae0ae #3930 "file selection control displays complete path"
git-svn-id: svn://10.0.0.236/trunk@33060 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:40:18 +00:00
pierre%netscape.com
2f9ac3f4fe Fixed eColor_TextSelectXXXXX
git-svn-id: svn://10.0.0.236/trunk@33059 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:38:43 +00:00
bienvenu%netscape.com
d4ad8ca047 fix build bustage in filter code
git-svn-id: svn://10.0.0.236/trunk@33058 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:38:24 +00:00
sfraser%netscape.com
52c77e40f7 Remove the appcore from the AppCoresManager in onunload().
git-svn-id: svn://10.0.0.236/trunk@33057 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:37:04 +00:00
pierre%netscape.com
c521aaf211 #7143 "Subscript element not properly supported"
git-svn-id: svn://10.0.0.236/trunk@33056 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:32:12 +00:00
ducarroz%netscape.com
a621ce34a3 Remove msgLocal dependency
git-svn-id: svn://10.0.0.236/trunk@33055 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:28:37 +00:00
pollmann%netscape.com
ab2d2ac01a Bug 3322: Opps, removing some debugging cruft.
git-svn-id: svn://10.0.0.236/trunk@33054 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:28:07 +00:00
bienvenu%netscape.com
a15f8bc010 checkpoint search and filter stuff
git-svn-id: svn://10.0.0.236/trunk@33053 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:26:55 +00:00
mcafee%netscape.com
d69a763605 Adding support for rhapsody build. r=briano, this change got stomped a while back.
git-svn-id: svn://10.0.0.236/trunk@33052 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:25:23 +00:00
sfraser%netscape.com
9d05f87b8c Fix ownership issues in the EditorAppCore, and removed some obsolete IID definitions. The EditorAppCore now holds the owning reference of the editor.
git-svn-id: svn://10.0.0.236/trunk@33051 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:23:03 +00:00
vidur%netscape.com
3de7a62b23 Fix for bug 6125. DOMImplementation::hasFeature() now works better
git-svn-id: svn://10.0.0.236/trunk@33050 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:22:47 +00:00
sfraser%netscape.com
b06e9252d3 Fix refcounting in the AppCoresManager's list of appcores.
git-svn-id: svn://10.0.0.236/trunk@33049 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:21:43 +00:00
rickg%netscape.com
09ee75b19d fixed bug 6950
git-svn-id: svn://10.0.0.236/trunk@33048 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:21:24 +00:00
sfraser%netscape.com
da0d7aa52f Removed obsolete IID definitions, use GetIID() instead.
git-svn-id: svn://10.0.0.236/trunk@33047 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:20:41 +00:00
sfraser%netscape.com
a3971dfdc8 Fix the event listeners to no longer hold owning pointer to the editor.
git-svn-id: svn://10.0.0.236/trunk@33046 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:19:51 +00:00
vidur%netscape.com
ba13725fae Added noscript qualifier to HTMLDocument::Open, Write and Writeln and moved the JS-specific versions over to NSHTMLDocument.
git-svn-id: svn://10.0.0.236/trunk@33045 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:18:48 +00:00
vidur%netscape.com
0f89791d58 Added support for noscript qualifier to attributes and methods. When this qualifier is used, the corresponding attribute or method is not reflected in the glue.
git-svn-id: svn://10.0.0.236/trunk@33044 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:17:38 +00:00
sfraser%netscape.com
64b0f22ee5 Change the transactions to have non-owning pointers to the editor.
git-svn-id: svn://10.0.0.236/trunk@33043 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:16:55 +00:00
sfraser%netscape.com
a6a9b7ff1b Changed transactions not to have owning pointers to the Editor.
git-svn-id: svn://10.0.0.236/trunk@33042 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:13:02 +00:00
sspitzer%netscape.com
ecc686ddd7 fix windows bustage for my change to nsPref.cpp
git-svn-id: svn://10.0.0.236/trunk@33041 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:06:51 +00:00
sspitzer%netscape.com
31cf7f4f21 if no prefs file exists, take a stab at creating a useful one for those inside netscape.
there aren't enough getter methods in the profile code to get the smtp server and the other info.
for now, all I can get is the default profile name


git-svn-id: svn://10.0.0.236/trunk@33040 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:03:43 +00:00
pollmann%netscape.com
dd73af6349 Bug 3322: GTK combo boxes send NS_CONTROL_CHANGE events appropriately.
git-svn-id: svn://10.0.0.236/trunk@33039 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 23:57:58 +00:00
pollmann%netscape.com
cbb27d7b1a Bug 3322: Adding NS_CONTROL_CHANGE event. This will be used for <SELECT>'s onChange.
git-svn-id: svn://10.0.0.236/trunk@33038 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 23:53:42 +00:00
mcmullen%netscape.com
2df1b20304 Removed base
git-svn-id: svn://10.0.0.236/trunk@33037 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 23:44:54 +00:00
akkana%netscape.com
aaa5a0d986 Fixing crash because of unprotected NULL ptr. - akkana & dp
git-svn-id: svn://10.0.0.236/trunk@33036 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 23:42:34 +00:00
pinkerton%netscape.com
fcd5e4098b remove obsolete tree/toolbar cid's
git-svn-id: svn://10.0.0.236/trunk@33035 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 23:39:49 +00:00
endico%mozilla.org
10019111c3 add missing )
git-svn-id: svn://10.0.0.236/trunk@33034 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 23:38:06 +00:00
mcmullen%netscape.com
7328b9506b Removed obsolete base/baseDebug.shlb
git-svn-id: svn://10.0.0.236/trunk@33033 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 23:28:37 +00:00
endico%mozilla.org
cbce679312 allow message/news mime type for included message as this is what is used by communicator 3.x
git-svn-id: svn://10.0.0.236/trunk@33032 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 23:25:52 +00:00
pinkerton%netscape.com
bf5c6d5787 removed obsolete class id's (trees, toolbars).
git-svn-id: svn://10.0.0.236/trunk@33031 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 23:22:20 +00:00
av%netscape.com
4cc6799ade Getting windowless plugin stuff into
git-svn-id: svn://10.0.0.236/trunk@33030 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 23:20:09 +00:00
wtc%netscape.com
5f8254e1e3 Bugzilla bug #7077: modified compile-et.pl so that it adds comments
(error strings) before the error code macro definitions in the
generated header.  Also updated prerr.h to reflect this change.
Thanks to John Gardiner Myers <jgmyers@netscape.com> for contributing
the fix.


git-svn-id: svn://10.0.0.236/trunk@33029 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 23:20:02 +00:00
pinkerton%netscape.com
7532f5f99a remove references and cid's for tree, toolbar, and content connector widgets. These no longer exist.
git-svn-id: svn://10.0.0.236/trunk@33028 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 23:17:14 +00:00
wtc%netscape.com
eb01f91b47 Bugzilla bug #4471: specify -mips3 when compiling on IRIX 6.5,
otherwise it defaults to -mips4 if the build machine is mips4.


git-svn-id: svn://10.0.0.236/trunk@33027 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 23:03:31 +00:00
dp%netscape.com
24134a98b3 Adding progid and classname
git-svn-id: svn://10.0.0.236/trunk@33026 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:47:27 +00:00
dp%netscape.com
59a44299f5 Removing ending ;
git-svn-id: svn://10.0.0.236/trunk@33025 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:45:24 +00:00
pnunn%netscape.com
baf00d853b Removing old defs and added tests for null ptrs. pnunn.
git-svn-id: svn://10.0.0.236/trunk@33024 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:42:57 +00:00
dp%netscape.com
786e6495f2 Adding PROGID and ClassName
git-svn-id: svn://10.0.0.236/trunk@33023 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:41:23 +00:00
pnunn%netscape.com
a4ee63dc0b Removing old defs. pnunn.
git-svn-id: svn://10.0.0.236/trunk@33022 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:40:52 +00:00
pinkerton%netscape.com
7d7ff977e0 fixes to get collapsed grippies to be the same size as the toolbar that was collapsed. It was my error that I caught earlier, but forgot to go back to it. Chris' code did the right thing.
git-svn-id: svn://10.0.0.236/trunk@33021 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:39:10 +00:00
dougt%netscape.com
872559b2e2 Adding proxy to the xpcom targets.
git-svn-id: svn://10.0.0.236/trunk@33020 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:36:30 +00:00
pnunn%netscape.com
0fd33088e3 Removing old def's. pnunn.
git-svn-id: svn://10.0.0.236/trunk@33019 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:36:17 +00:00
nisheeth%netscape.com
74f3d38e5c Allow LAYER tags to nest within themselves.
git-svn-id: svn://10.0.0.236/trunk@33018 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:28:31 +00:00
phillip%netscape.com
0683f4b25f fixed the initialization of run_time in test_url
git-svn-id: svn://10.0.0.236/trunk@33017 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:27:14 +00:00
nisheeth%netscape.com
c769b176af Accept percentage values for the LEFT and TOP attributes of the LAYER tag.
git-svn-id: svn://10.0.0.236/trunk@33016 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:26:23 +00:00
gayatrib%netscape.com
0f58123a8c A sample tree widget
git-svn-id: svn://10.0.0.236/trunk@33015 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:24:12 +00:00
akkana%netscape.com
a17f9d67df Add plaintext editor as an option in browser and editor menus
git-svn-id: svn://10.0.0.236/trunk@33014 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:21:48 +00:00
pinkerton%netscape.com
89169dcd21 more toolbar expanding/collapsing work. Significant portions donated by Chris Lattner. Thanks, Chris!
git-svn-id: svn://10.0.0.236/trunk@33013 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:17:25 +00:00
mscott%netscape.com
f0b1744305 Remove obsolete dependency on local.
git-svn-id: svn://10.0.0.236/trunk@33012 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:16:07 +00:00
mscott%netscape.com
656dc81b53 No longer need to link against local.
git-svn-id: svn://10.0.0.236/trunk@33011 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:14:51 +00:00
dougt%netscape.com
caa4ab68bc Proof of concept for SoftwareUpdate sidebar.
git-svn-id: svn://10.0.0.236/trunk@33010 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:14:10 +00:00
mscott%netscape.com
f122959927 Use nsIMgParseMailMsgState & the component manager so we don't have to link against local to pick up the message parser.
git-svn-id: svn://10.0.0.236/trunk@33009 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:13:57 +00:00
mscott%netscape.com
c7a630e624 Register component for nsIMgParseMailMsgState.
git-svn-id: svn://10.0.0.236/trunk@33008 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:11:18 +00:00
mscott%netscape.com
bacdc1fd8d use nsIMgParseMailMsgState. This generalizes the message parser behind an interface so other components can use it without linking against local.
git-svn-id: svn://10.0.0.236/trunk@33007 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:10:10 +00:00
alecf%netscape.com
265482041f fix script to use "Makefile.in" in addition to Makefile
git-svn-id: svn://10.0.0.236/trunk@33006 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:09:55 +00:00
despotdaemon%netscape.com
e3f8e1e82b Pseudo-automatic update of changes made by andreas.otte@primus-online.de.
git-svn-id: svn://10.0.0.236/trunk@33005 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:09:50 +00:00
mscott%netscape.com
912dd37391 Export nsIMsgParseMailMsgState.h
git-svn-id: svn://10.0.0.236/trunk@33004 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:09:15 +00:00
mscott%netscape.com
5ad0afc9b0 Add claas id for nsIMgParseMailMsgState
git-svn-id: svn://10.0.0.236/trunk@33003 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:06:40 +00:00
dougt%netscape.com
f74fc1db68 removing an evil and unneeded delete [].
git-svn-id: svn://10.0.0.236/trunk@33002 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:02:17 +00:00
phillip%netscape.com
36067e8aea cleaned up the url_list init routine and added a TODO for relative paths
git-svn-id: svn://10.0.0.236/trunk@33001 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:01:53 +00:00
valeski%netscape.com
2ca0726f11 added some extern module stuff #ifdef'd zero
git-svn-id: svn://10.0.0.236/trunk@33000 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 22:00:30 +00:00
amasri%netscape.com
46bade0898 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@32999 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:57:35 +00:00
mcmullen%netscape.com
f8124537e4 Removed obsolete base.shlb/baseDebug.shlb
git-svn-id: svn://10.0.0.236/trunk@32998 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:48:55 +00:00
sfraser%netscape.com
86e6e3dc96 Add GetIID() methods.
git-svn-id: svn://10.0.0.236/trunk@32997 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:47:38 +00:00
sfraser%netscape.com
f38ac12c18 Remove MathLib, which is now rolled into the InterfaceStubs library
git-svn-id: svn://10.0.0.236/trunk@32996 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:47:00 +00:00
phillip%netscape.com
1af9623598 smoketest perl script. should run in any unix flavor, but has dependencies
on killall, and other issues that might need to be rectified.


git-svn-id: svn://10.0.0.236/trunk@32995 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:44:06 +00:00
mcmullen%netscape.com
b31ee1a094 Removed obsolete base.shlb/baseDebug.shlb
git-svn-id: svn://10.0.0.236/trunk@32994 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:40:58 +00:00
mscott%netscape.com
81a3042d4b export nsIMsgParseMailMsgState.h
git-svn-id: svn://10.0.0.236/trunk@32993 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:39:28 +00:00
rhp%netscape.com
87bf68ae8e Adding new string bundle file
git-svn-id: svn://10.0.0.236/trunk@32992 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:37:10 +00:00
rhp%netscape.com
3e01b3a131 Adding string bundle properties file
git-svn-id: svn://10.0.0.236/trunk@32991 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:36:03 +00:00
rhp%netscape.com
c4d52014e9 Doing cleanup
git-svn-id: svn://10.0.0.236/trunk@32990 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:35:19 +00:00
rhp%netscape.com
0d40815f06 removed files: mozilla/mailnews/mime/cthandlers/vcard/oldi18n.c
git-svn-id: svn://10.0.0.236/trunk@32989 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:34:39 +00:00
valeski%netscape.com
e5f7a73eb9 added the idl dir and initial nsIHttpNotify.idl
git-svn-id: svn://10.0.0.236/trunk@32988 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:31:26 +00:00
valeski%netscape.com
575e5af27c module mananger implementation files
git-svn-id: svn://10.0.0.236/trunk@32987 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:30:31 +00:00
valeski%netscape.com
c052d96d7c idl: added the idl dir and some initial files.
added module manager headers and idl files


git-svn-id: svn://10.0.0.236/trunk@32986 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:29:52 +00:00
locka%iol.ie
003c65199f New test for post data
git-svn-id: svn://10.0.0.236/trunk@32985 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:29:12 +00:00
locka%iol.ie
abd8b8adcc New tab dialogs
git-svn-id: svn://10.0.0.236/trunk@32984 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:28:46 +00:00
locka%iol.ie
5100390c9b Revamped layout and fixed some refcount problems
git-svn-id: svn://10.0.0.236/trunk@32983 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:28:13 +00:00
locka%iol.ie
4990561042 no message
git-svn-id: svn://10.0.0.236/trunk@32982 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:27:35 +00:00
locka%iol.ie
eafd9fcb69 Added activescript mime type
git-svn-id: svn://10.0.0.236/trunk@32981 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:27:20 +00:00
locka%iol.ie
b763bb4066 Added #include for ActiveScript.h and ItemContainer.h
git-svn-id: svn://10.0.0.236/trunk@32980 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:26:28 +00:00
dougt%netscape.com
5ba4026869 Changes and bug fixes suggested by brendan.
git-svn-id: svn://10.0.0.236/trunk@32979 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:25:43 +00:00
locka%iol.ie
be3b08d07a Added framework for plugin to support VBScript and JScript files
git-svn-id: svn://10.0.0.236/trunk@32978 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:24:47 +00:00
locka%iol.ie
42226b5df8 Removed. DEF file is generated from a script now
git-svn-id: svn://10.0.0.236/trunk@32977 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:23:35 +00:00
locka%iol.ie
719493e64a Fixed new window navigation code (bad return op)
git-svn-id: svn://10.0.0.236/trunk@32976 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:22:42 +00:00
locka%iol.ie
5e5edcdbdd Added ItemContainer.cpp/obj targets
Added targets for building npmozctl in plugin or control only modes
Added target to create npmozctl.def using a batch file


git-svn-id: svn://10.0.0.236/trunk@32975 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:21:34 +00:00
locka%iol.ie
e8dc9fadb1 Move Ole item container stuff into separate class
git-svn-id: svn://10.0.0.236/trunk@32974 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:20:00 +00:00
locka%iol.ie
101f91d00b no message
git-svn-id: svn://10.0.0.236/trunk@32973 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:18:29 +00:00
kmcclusk%netscape.com
45d6c97be2 fixes for bugs #5809, #5852, #6828, #6973.
Added a new test16.html sample to test gfx-rendered widgets to viewer.
Added support for test17.html sample to test printing.


git-svn-id: svn://10.0.0.236/trunk@32972 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:17:10 +00:00
locka%iol.ie
8de19e46fe Ole item container methods seperated from control site class
git-svn-id: svn://10.0.0.236/trunk@32971 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:16:06 +00:00
sfraser%netscape.com
1139fd18b2 Add GetIID() method.
git-svn-id: svn://10.0.0.236/trunk@32970 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:16:03 +00:00
locka%iol.ie
6da03d4790 Batch file for creating npmozctl.def depending on the settings
git-svn-id: svn://10.0.0.236/trunk@32969 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:15:08 +00:00
mcmullen%netscape.com
3d6a617237 No longer maintained
git-svn-id: svn://10.0.0.236/trunk@32968 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:14:33 +00:00
jefft%netscape.com
3b12e8a8f7 fixed bug 7163 - imap directory not automatically created if missing
git-svn-id: svn://10.0.0.236/trunk@32967 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:14:02 +00:00
valeski%netscape.com
0986f52eb2 removed these two because they've been added to the proper idl directory
git-svn-id: svn://10.0.0.236/trunk@32966 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:13:34 +00:00
kmcclusk%netscape.com
c6457d5277 fix for bug #6876 File open dialog shown twice. Removed call to Show() in GetFile().
GetFile should only be used retrieve settings it should not have a side effect of
showing the dialog.
Added WIN32 support for top-level borderless windows.


git-svn-id: svn://10.0.0.236/trunk@32965 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:09:49 +00:00
hyatt%netscape.com
12a219cc2e Teaching windows to check their enclosing chrome documents for capture
(and bubbling).


git-svn-id: svn://10.0.0.236/trunk@32964 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:06:51 +00:00
dougt%netscape.com
2b080200d0 adjusting #ifdef below the SetScriptObject definition.
git-svn-id: svn://10.0.0.236/trunk@32963 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:06:04 +00:00
hyatt%netscape.com
6c7b70d9cf Web shells now know about their enclosed chrome shell.
git-svn-id: svn://10.0.0.236/trunk@32962 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:05:27 +00:00
hyatt%netscape.com
ba4d048748 (1) The document now checks the window for capture.
(2) Frames and iframes now know their nearest enclosing chrome shells.


git-svn-id: svn://10.0.0.236/trunk@32961 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:04:52 +00:00
hyatt%netscape.com
e8b9317e9a Implementing document and window capture in the XUL DOM.
git-svn-id: svn://10.0.0.236/trunk@32960 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:03:59 +00:00
dougt%netscape.com
000ebd5129 Fixed Reported Bugs: 5577, 5579, 5580, 6116, 6620, 6621, 6707, 6709, 6714.
Fixed overloading
Fixed calls to version registry
removed nsInstallInfo from the stream listener.


git-svn-id: svn://10.0.0.236/trunk@32959 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:02:57 +00:00
saari%netscape.com
c3676ddd14 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@32958 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 21:00:28 +00:00
sdagley%netscape.com
c617dbe6a8 Add new method to find out what type of file the user selected from the type/filter list in the save dialog.
git-svn-id: svn://10.0.0.236/trunk@32957 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:54:53 +00:00
mscott%netscape.com
50cf3af193 Not part of build yet. An interface that will sit on top of the message mail statee parser so other components can use it.
git-svn-id: svn://10.0.0.236/trunk@32956 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:53:19 +00:00
kin%netscape.com
ee983116d2 Changed all occurrences of GetUndoString() and GetRedoString() to accept nsString *.
git-svn-id: svn://10.0.0.236/trunk@32955 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:50:52 +00:00
kin%netscape.com
738e62b792 Changed GetUndoString() and GetRedoString() to use nsString *.
git-svn-id: svn://10.0.0.236/trunk@32954 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:50:05 +00:00
kin%netscape.com
7bc6609fe1 Changed interface and implementation to us NS_IMETHOD and NS_IMPMETHOD macros.
git-svn-id: svn://10.0.0.236/trunk@32953 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:48:55 +00:00
bruce%cybersight.com
52e19f80ba should've been a forward declaration of nsIPresContext. This will remove 117 warnings.
git-svn-id: svn://10.0.0.236/trunk@32952 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:48:01 +00:00
erik%netscape.com
a0126ba567 Switched over to auto-registration. Added Unix and Mac support.
git-svn-id: svn://10.0.0.236/trunk@32951 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:46:26 +00:00
tague%netscape.com
fcbcd25ccd Fix bug #6680 Mac -date not displayed in thread pane.
git-svn-id: svn://10.0.0.236/trunk@32950 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:42:15 +00:00
morse%netscape.com
f75dce26e9 clean up usage of prefs
git-svn-id: svn://10.0.0.236/trunk@32949 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:40:38 +00:00
tague%netscape.com
53e250e5db Fix for bug #6680 Mac - date not displayed in Message pane folders.
git-svn-id: svn://10.0.0.236/trunk@32948 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:39:13 +00:00
nhotta%netscape.com
8713fb96f4 Test for GetIID().
git-svn-id: svn://10.0.0.236/trunk@32947 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:37:48 +00:00
danm%netscape.com
71f871b32e disseminate search part of chrome URL to contained webshells as content URLs
git-svn-id: svn://10.0.0.236/trunk@32946 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:36:15 +00:00
nhotta%netscape.com
71fb9cdaa9 Added GetIID().
git-svn-id: svn://10.0.0.236/trunk@32945 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:36:11 +00:00
danm%netscape.com
b6a87070d1 save search part of URL when munging and reconstructing
git-svn-id: svn://10.0.0.236/trunk@32944 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:34:42 +00:00
terry%mozilla.org
826c87d676 Oops; was flailing if rankdir wasn't defined.
git-svn-id: svn://10.0.0.236/trunk@32943 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:20:57 +00:00
terry%mozilla.org
645adb498b Allow user to control orientation of graph; default it to left-to-right.
git-svn-id: svn://10.0.0.236/trunk@32942 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 19:53:25 +00:00
sspitzer%netscape.com
db94f5bdc4 fix bustage.
we used to have -llocalmail in our link line.  but that's a component, so that's
wrong, so mcafee removed it.  but we weren't linking against liblocalmail.so, we were actually linking in liblocalmail.a.  but briano's change to mozilla/config/rules.mk made it so liblocalmail.a got moved into dist/lib/components, so now
we need to explictly link against this .a

the problem is in this .a is a class that we need.  mscott is working on
the right fix, and he'll remove this when he re-arranges the code.


git-svn-id: svn://10.0.0.236/trunk@32941 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 19:14:42 +00:00
terry%mozilla.org
eca43aebd8 Notify by mail whenever a related bug changes status.
git-svn-id: svn://10.0.0.236/trunk@32940 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 18:18:29 +00:00
mcmullen%netscape.com
e3d8b1723a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@32939 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 17:59:00 +00:00
terry%mozilla.org
b36743f38f Patched minor security hole; don't show summary of bugs that the user
doesn't have permission to see.


git-svn-id: svn://10.0.0.236/trunk@32938 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 15:17:25 +00:00
dcone%netscape.com
10a88b0aec Fixed bug 4904 -- converted to DIB, then printed..
git-svn-id: svn://10.0.0.236/trunk@32937 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 14:48:15 +00:00
terry%mozilla.org
99b60f19eb Make sure every node that we asked about shows up in the graph, even
if it doesn't have any dependency relationships.


git-svn-id: svn://10.0.0.236/trunk@32936 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 14:42:19 +00:00
terry%mozilla.org
cc21ba2461 Added dependencies, so that you can mark which bugs depend on which
other ones.


git-svn-id: svn://10.0.0.236/trunk@32935 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 14:13:41 +00:00
rhp%netscape.com
df198909c3 Fix for 8bit character display in vcards
git-svn-id: svn://10.0.0.236/trunk@32934 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 12:19:36 +00:00
mccabe%netscape.com
941450016c Fix to 6880. xpt_link now prints an informative error message when it encounters duplicate interface names with different iids.
git-svn-id: svn://10.0.0.236/trunk@32933 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 11:02:05 +00:00
rickg%netscape.com
7efb6bc5b9 cleanup warnings
git-svn-id: svn://10.0.0.236/trunk@32932 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 10:57:22 +00:00
rickg%netscape.com
e725246f20 cleanup warnings
git-svn-id: svn://10.0.0.236/trunk@32931 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 10:53:29 +00:00
rickg%netscape.com
2b68d411fb fix bug 5094
git-svn-id: svn://10.0.0.236/trunk@32930 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 10:33:50 +00:00
rickg%netscape.com
84c1546321 fix bug 5094
git-svn-id: svn://10.0.0.236/trunk@32929 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 10:32:33 +00:00
rickg%netscape.com
67386c5d2b fixed bug in findStr
git-svn-id: svn://10.0.0.236/trunk@32928 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 10:28:50 +00:00
mccabe%netscape.com
d294b25d15 Fix to 5032. xpt_link and xpt_dump now detect input files with bad 'XPCOM TypeLib" headers and fail gracefully with informative error messages, rather than crashing.
Yes, I'm pretty confident this checkin won't interact with the current runtime bustage.


git-svn-id: svn://10.0.0.236/trunk@32927 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 10:11:32 +00:00
dp%netscape.com
05ab725ffe Patch from andreas.otte@primus-online.de Thanks Andreas
git-svn-id: svn://10.0.0.236/trunk@32926 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 08:50:52 +00:00
rickg%netscape.com
50850f828c fixed bug in nsString2::find() -- this will soon use boyer-moore
git-svn-id: svn://10.0.0.236/trunk@32925 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 07:59:16 +00:00
rickg%netscape.com
0ca0dd52fd changed to align with nsString2
git-svn-id: svn://10.0.0.236/trunk@32924 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 07:38:37 +00:00
rickg%netscape.com
3247092783 fix nsString2 link error
git-svn-id: svn://10.0.0.236/trunk@32923 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 07:29:33 +00:00
rickg%netscape.com
43d615affd Added IsValidFragment()
git-svn-id: svn://10.0.0.236/trunk@32922 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 06:44:44 +00:00
alecf%netscape.com
b73b8cb8b2 API change GetUserName -> GetUsername
git-svn-id: svn://10.0.0.236/trunk@32921 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 06:40:41 +00:00
alecf%netscape.com
38c264dc74 include the right CID file
git-svn-id: svn://10.0.0.236/trunk@32920 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 06:38:20 +00:00
mcafee%netscape.com
0df73ec598 Looks like liblocalmail became a component, removing it from the link line.
git-svn-id: svn://10.0.0.236/trunk@32919 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 06:37:04 +00:00
bienvenu%netscape.com
366ad15bae fix build bustage
git-svn-id: svn://10.0.0.236/trunk@32918 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 06:32:31 +00:00
alecf%netscape.com
4ae56ead0a oops, trailing semicolon
git-svn-id: svn://10.0.0.236/trunk@32917 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 06:31:10 +00:00
alecf%netscape.com
c68af1f705 IDL-ify three more interfaces
git-svn-id: svn://10.0.0.236/trunk@32916 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 06:30:01 +00:00
bienvenu%netscape.com
01d76c68b5 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@32915 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 06:24:06 +00:00
alecf%netscape.com
7386dfda61 remove useless IDL file
git-svn-id: svn://10.0.0.236/trunk@32914 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 06:19:20 +00:00
bienvenu%netscape.com
274ea0802f fix build bustage
git-svn-id: svn://10.0.0.236/trunk@32913 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 06:08:15 +00:00
alecf%netscape.com
b2898f19d3 remove useless nsIMsg.h
git-svn-id: svn://10.0.0.236/trunk@32912 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 06:04:43 +00:00
alecf%netscape.com
eaf90f5247 API change GetUserName -> GetUsername
git-svn-id: svn://10.0.0.236/trunk@32911 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:54:06 +00:00
alecf%netscape.com
637bf8cbd4 API change - GetUserName -> GetUsername
git-svn-id: svn://10.0.0.236/trunk@32910 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:51:24 +00:00
bienvenu%netscape.com
956ac1ae96 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@32909 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:47:52 +00:00
alecf%netscape.com
83ede1c3cb API change - Get/SetUserName -> Get/SetUsername
git-svn-id: svn://10.0.0.236/trunk@32908 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:47:28 +00:00
alecf%netscape.com
6e661fd1e5 API name change
git-svn-id: svn://10.0.0.236/trunk@32907 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:43:30 +00:00
alecf%netscape.com
1d7c7f46f2 stop exporting generated files
git-svn-id: svn://10.0.0.236/trunk@32906 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:38:50 +00:00
bienvenu%netscape.com
8113ea6c5a get filter stuff linking
git-svn-id: svn://10.0.0.236/trunk@32905 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:36:13 +00:00
alecf%netscape.com
215d241d04 rename GetUserName -> GetUsername because Win32 substitutes all GetUserName's with GetUserNameA
git-svn-id: svn://10.0.0.236/trunk@32904 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:36:10 +00:00
alecf%netscape.com
b86cd0452a remove this useless header file
git-svn-id: svn://10.0.0.236/trunk@32903 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:30:16 +00:00
alecf%netscape.com
582a9185ae add CIDs from interface files
git-svn-id: svn://10.0.0.236/trunk@32902 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:23:22 +00:00
alecf%netscape.com
29be124720 add component URLs to all our components so they are now scriptable
git-svn-id: svn://10.0.0.236/trunk@32901 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:23:08 +00:00
alecf%netscape.com
cd489ad8c5 rev these interfaces
add "scriptable" attribute to all interfaces
fix some bogus IIDs
redeclare some stuff in IDL that wasn't declared before


git-svn-id: svn://10.0.0.236/trunk@32900 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:19:55 +00:00
alecf%netscape.com
31d7890554 IDLify this interface - had to change char* to const char*
git-svn-id: svn://10.0.0.236/trunk@32899 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:19:02 +00:00
bruce%cybersight.com
d4e8e106ad 'friend class' instead of 'friend' .. HP-UX's aCC requires this.
git-svn-id: svn://10.0.0.236/trunk@32898 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:18:59 +00:00
bruce%cybersight.com
ee1b4aecf8 HP-UX's aCC compiler requires main() to return int.
git-svn-id: svn://10.0.0.236/trunk@32897 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:17:27 +00:00
bruce%cybersight.com
2262015b95 main() must return int for HP-UX's aCC compiler.
git-svn-id: svn://10.0.0.236/trunk@32896 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:14:57 +00:00
bruce%cybersight.com
6df9b5515f Add line feed on last line for native unix compilers.
git-svn-id: svn://10.0.0.236/trunk@32895 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:13:32 +00:00
bruce%cybersight.com
3980522bcc Fix a small memory leak.
git-svn-id: svn://10.0.0.236/trunk@32894 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:12:12 +00:00
bienvenu%netscape.com
d948bc1de7 add GetPriority
git-svn-id: svn://10.0.0.236/trunk@32893 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:09:00 +00:00
alecf%netscape.com
1e2082a55c finish IDL-ifying these interfaces
Also stop caching the local mail directory in the pop3 sink and instead ask for it on demand from the nsIMsgIncomingServer


git-svn-id: svn://10.0.0.236/trunk@32892 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:56:53 +00:00
alecf%netscape.com
4c209b88a6 remove unnecessary windows-specific code
git-svn-id: svn://10.0.0.236/trunk@32891 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:55:40 +00:00
alecf%netscape.com
b6a9d43c58 fix these asserts so that we know which variable is bad
git-svn-id: svn://10.0.0.236/trunk@32890 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:55:10 +00:00
alecf%netscape.com
d120241f1f IDL-ify these interfaces
move CIDs into nsMsgLocalCID


git-svn-id: svn://10.0.0.236/trunk@32889 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:53:32 +00:00
alecf%netscape.com
241968b8ac IDL-ify this interface
had to make nsFileSpec non-const for now


git-svn-id: svn://10.0.0.236/trunk@32888 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:51:20 +00:00
alecf%netscape.com
a5732710d0 include the CID file because CIDs are going away from interfaces
git-svn-id: svn://10.0.0.236/trunk@32887 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:47:13 +00:00
bienvenu%netscape.com
9bf0b9cc22 add GetPriority method
git-svn-id: svn://10.0.0.236/trunk@32886 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:40:52 +00:00
putterman%netscape.com
b73c3f375a Remove images from threadPane to speed up.
git-svn-id: svn://10.0.0.236/trunk@32885 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:40:41 +00:00
briano%netscape.com
c5c63ae38f Put component .a files in the right place.
git-svn-id: svn://10.0.0.236/trunk@32884 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:25:42 +00:00
dp%netscape.com
fbfb36b38c Fixing tests to link with components/libraptorhtml.so. This aint the right thing. The test should be modified to use the componentmanager to get to the object
git-svn-id: svn://10.0.0.236/trunk@32883 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:21:30 +00:00
sfraser%netscape.com
86400388d0 Fix for bug 4051 -- with large memory allocation, quit on launch. Was a numeric overflow in the memory manager initialization.
git-svn-id: svn://10.0.0.236/trunk@32882 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:12:22 +00:00
sfraser%netscape.com
c084b125b6 Add Find, FindNext, and RunUnitTest calls.
git-svn-id: svn://10.0.0.236/trunk@32881 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:10:41 +00:00
sfraser%netscape.com
580f23cfb4 Add unit test call to nsIEditor, and implement it in nsText- and nsHTMLEditors.
git-svn-id: svn://10.0.0.236/trunk@32880 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:10:04 +00:00
sfraser%netscape.com
e35dabfe6c Remove the old key code function, and call the new unit test routine
git-svn-id: svn://10.0.0.236/trunk@32879 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:08:59 +00:00
sfraser%netscape.com
47ef8f5d66 Add Find, Find Next, and Unit Test menu items
git-svn-id: svn://10.0.0.236/trunk@32878 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:08:11 +00:00
sfraser%netscape.com
0126a0d7da Change dedent to outdent, and alignpopup to align.
git-svn-id: svn://10.0.0.236/trunk@32877 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:06:54 +00:00
sfraser%netscape.com
0b4fb25a6c Fix the page title
git-svn-id: svn://10.0.0.236/trunk@32876 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:06:17 +00:00
cmanske%netscape.com
d636aa3f93 Changed ED_AlignPopup.gif to ED_Alig.gif in makefiles
git-svn-id: svn://10.0.0.236/trunk@32875 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:04:02 +00:00
leaf%mozilla.org
4e77af1360 fixing -kb flag
git-svn-id: svn://10.0.0.236/trunk@32874 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 04:01:08 +00:00
sfraser%netscape.com
b52cf7a2d2 Add page titles, and white background through style.
git-svn-id: svn://10.0.0.236/trunk@32873 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:56:07 +00:00
cmanske%netscape.com
40995de196 Readding gifs with -kb
git-svn-id: svn://10.0.0.236/trunk@32872 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:48:52 +00:00
alecf%netscape.com
81f21fb3d3 fix memory leak
git-svn-id: svn://10.0.0.236/trunk@32871 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:48:37 +00:00
bienvenu%netscape.com
6dbcf00c03 add exports for search adaptor
git-svn-id: svn://10.0.0.236/trunk@32870 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:47:43 +00:00
cmanske%netscape.com
dfaf135e8c Removing gifs not checked in with -kb
git-svn-id: svn://10.0.0.236/trunk@32869 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:47:05 +00:00
cmanske%netscape.com
7dd52e699b Removing gif not checked in with -kb
git-svn-id: svn://10.0.0.236/trunk@32868 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:45:36 +00:00
alecf%netscape.com
9f85645497 fix some leaks by using nsXPIDLCString
git-svn-id: svn://10.0.0.236/trunk@32867 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:43:52 +00:00
bienvenu%netscape.com
ac017fdaa8 d'oh, cpp files
git-svn-id: svn://10.0.0.236/trunk@32866 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:43:43 +00:00
sfraser%netscape.com
70eb047d5c File Removed.
git-svn-id: svn://10.0.0.236/trunk@32865 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:43:02 +00:00
sfraser%netscape.com
8ee2ca49aa First Checked In.
git-svn-id: svn://10.0.0.236/trunk@32864 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:42:49 +00:00
sfraser%netscape.com
3e4a97652b Fix -kb flag
git-svn-id: svn://10.0.0.236/trunk@32863 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:40:22 +00:00
jdunn%netscape.com
b17ebf8e4c backing out my change to LIBS_DIR... this will get the tests building again
git-svn-id: svn://10.0.0.236/trunk@32862 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:35:52 +00:00
bienvenu%netscape.com
499fa8012f fix unix build problem
git-svn-id: svn://10.0.0.236/trunk@32861 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:33:12 +00:00
sspitzer%netscape.com
43bbc4ab19 fix build bustage on UNIX
git-svn-id: svn://10.0.0.236/trunk@32860 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:31:25 +00:00
sspitzer%netscape.com
94548f7847 fix UNIX build bustage
git-svn-id: svn://10.0.0.236/trunk@32859 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:30:33 +00:00
blizzard%redhat.com
df93e5b409 start breaking out widgets into their own classes
git-svn-id: svn://10.0.0.236/trunk@32858 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:26:18 +00:00
bienvenu%netscape.com
1af0d39200 add export and new objs
git-svn-id: svn://10.0.0.236/trunk@32857 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 03:25:01 +00:00
jdunn%netscape.com
67de40dbf5 Add AIX/ppc source files for compiling
git-svn-id: svn://10.0.0.236/trunk@32856 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 02:56:47 +00:00
jdunn%netscape.com
7db211aa5c xptcall files for PowerPC/POWER/POWER2 architecture for AIX
git-svn-id: svn://10.0.0.236/trunk@32855 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 02:56:03 +00:00
sspitzer%netscape.com
c2787101ae remove unnecessary crap
git-svn-id: svn://10.0.0.236/trunk@32854 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 02:50:46 +00:00
dp%netscape.com
c8c3ae6671 Fixing tests by linking in a component dll raptorhtml
git-svn-id: svn://10.0.0.236/trunk@32853 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 02:46:26 +00:00
sspitzer%netscape.com
0392492c8e fixed this test to go through the component manager. turn it back on.
git-svn-id: svn://10.0.0.236/trunk@32852 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 02:41:16 +00:00
ramiro%netscape.com
0896868259 Remove these from the unix build to reduce the evil possibility of a fork.
git-svn-id: svn://10.0.0.236/trunk@32851 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 02:31:44 +00:00
sspitzer%netscape.com
7824659ae2 commenting out tests until we get them to work
git-svn-id: svn://10.0.0.236/trunk@32850 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 02:25:56 +00:00
slamm%netscape.com
35aa96cf75 Use absolute path for link in sidebar panel.
git-svn-id: svn://10.0.0.236/trunk@32849 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 02:18:19 +00:00
sspitzer%netscape.com
a95a637288 fix UNIX build bustage
git-svn-id: svn://10.0.0.236/trunk@32847 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 02:04:41 +00:00
sspitzer%netscape.com
90776e45b2 fix UNIX build bustage
git-svn-id: svn://10.0.0.236/trunk@32846 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 01:52:34 +00:00
akkana%netscape.com
e742bedf03 Require pref headers now
git-svn-id: svn://10.0.0.236/trunk@32845 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 01:46:06 +00:00
sspitzer%netscape.com
5d502b0735 fix the makefile. looks like this test will need to be worked on to
get it to link.  commenting out of build for now.


git-svn-id: svn://10.0.0.236/trunk@32844 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 01:46:01 +00:00
bienvenu%netscape.com
90ae0652bb fix build bustage by adding prefs include
git-svn-id: svn://10.0.0.236/trunk@32843 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 01:45:27 +00:00
sspitzer%netscape.com
18fad49073 don't need to do this. back it out.
git-svn-id: svn://10.0.0.236/trunk@32842 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 01:41:47 +00:00
rjc%netscape.com
823d8b28af Add translation button option to browser toolbar.
git-svn-id: svn://10.0.0.236/trunk@32841 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 01:27:48 +00:00
mcmullen%netscape.com
0b24073733 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@32840 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 01:27:31 +00:00
slamm%netscape.com
24403c35b6 Put "C" links back. People want them.
git-svn-id: svn://10.0.0.236/trunk@32839 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 01:26:56 +00:00
sspitzer%netscape.com
66b2feeaba fix UNIX build bustage. we will still have runtime bustage, but I'll fix that
next


git-svn-id: svn://10.0.0.236/trunk@32837 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 01:22:14 +00:00
jj%netscape.com
fe61ced7bb updated version to M7 in Finder's get info string (tip)
git-svn-id: svn://10.0.0.236/trunk@32835 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 01:17:55 +00:00
mcafee%netscape.com
d7d4ac5401 There is no tests directory here.
git-svn-id: svn://10.0.0.236/trunk@32833 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 01:11:39 +00:00
mcafee%netscape.com
ff327d82b9 Some code wasn't ifdef'd for DOING_FILTERS properly. a=bienvenu
git-svn-id: svn://10.0.0.236/trunk@32832 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 01:07:24 +00:00
sspitzer%netscape.com
9b14315a11 fix unix build breakage
git-svn-id: svn://10.0.0.236/trunk@32831 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 01:06:51 +00:00
mcafee%netscape.com
e01c4bdb2b -lraptorhtml is a component now, don't link with it.
git-svn-id: svn://10.0.0.236/trunk@32830 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 00:55:09 +00:00
bienvenu%netscape.com
18e3b3048a try to fix unix build bustage
git-svn-id: svn://10.0.0.236/trunk@32829 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 00:52:18 +00:00
rjc%netscape.com
c40c66fe3d Enabled language translation menu items.
git-svn-id: svn://10.0.0.236/trunk@32828 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 00:47:58 +00:00
sspitzer%netscape.com
5671027b87 fix unix build bustage
git-svn-id: svn://10.0.0.236/trunk@32826 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 00:24:49 +00:00
slamm%netscape.com
a0e042f38c Only refresh sidebar panel every 5 minutes.
git-svn-id: svn://10.0.0.236/trunk@32825 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 00:22:02 +00:00
akkana%netscape.com
156d763247 Insert / Paste as Quotation.
git-svn-id: svn://10.0.0.236/trunk@32824 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 00:08:15 +00:00
slamm%netscape.com
e8fdf841dd Use static pages for tinderbox instead of scripts. Fix for 7091. Approved by chofmann.
git-svn-id: svn://10.0.0.236/trunk@32823 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 00:07:06 +00:00
sfraser%netscape.com
af6ac5dfd1 Add nsAOLCiter.cpp and nsInternetCiter.cpp for akkana.
git-svn-id: svn://10.0.0.236/trunk@32822 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 00:04:31 +00:00
bienvenu%netscape.com
e7490b6b23 more work on search and filters
git-svn-id: svn://10.0.0.236/trunk@32821 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 00:04:10 +00:00
mcmullen%netscape.com
0c0cedbbc6 Set switches to prevent whining.
git-svn-id: svn://10.0.0.236/trunk@32820 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 00:00:38 +00:00
peterl%netscape.com
a2fae0d329 tweaks to css loader handling
git-svn-id: svn://10.0.0.236/trunk@32819 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:59:00 +00:00
peterl%netscape.com
5595317476 use css loader to load css sheets
better css handling


git-svn-id: svn://10.0.0.236/trunk@32818 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:58:06 +00:00
bienvenu%netscape.com
2e0166ad71 fix memory leaks and problem with stale msf files after marking read via reading a msg
git-svn-id: svn://10.0.0.236/trunk@32817 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:57:21 +00:00
peterl%netscape.com
b03385d1b8 fixed ref counting of global atoms
git-svn-id: svn://10.0.0.236/trunk@32816 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:56:57 +00:00
bienvenu%netscape.com
c2b91a445c changes for mail filters, including setting root folder for server
git-svn-id: svn://10.0.0.236/trunk@32815 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:56:21 +00:00
peterl%netscape.com
1fb18ff43d sync to nsIStyledContent API change
git-svn-id: svn://10.0.0.236/trunk@32814 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:55:49 +00:00
peterl%netscape.com
648d964b00 changed cascading code to include rules from children
added rule cascade per media


git-svn-id: svn://10.0.0.236/trunk@32813 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:55:12 +00:00
peterl%netscape.com
ac26eb5e97 better handling of CR/LF after escapes
git-svn-id: svn://10.0.0.236/trunk@32812 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:53:39 +00:00
peterl%netscape.com
9f25668214 better handling of bad @imports
git-svn-id: svn://10.0.0.236/trunk@32811 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:53:16 +00:00
peterl%netscape.com
6402470144 added load agent sheet
added support for non-blocking inline sheets


git-svn-id: svn://10.0.0.236/trunk@32810 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:52:37 +00:00
bienvenu%netscape.com
4a1940cef2 changes for mail filters
git-svn-id: svn://10.0.0.236/trunk@32809 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:51:53 +00:00
peterl%netscape.com
e487e20991 added Clearmedia
git-svn-id: svn://10.0.0.236/trunk@32808 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:51:42 +00:00
peterl%netscape.com
ca3b3a5c45 added drop doc reference
added load agent sheet
added usage notes


git-svn-id: svn://10.0.0.236/trunk@32807 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:51:25 +00:00
peterl%netscape.com
47dac71798 drop doc reference on CSS loader
git-svn-id: svn://10.0.0.236/trunk@32806 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:50:26 +00:00
peterl%netscape.com
a47fc826f9 made inline style sheet non-blocking
fixed processing of link type ("rel")
fixed handling of mime type


git-svn-id: svn://10.0.0.236/trunk@32805 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:49:33 +00:00
peterl%netscape.com
2f48852462 prepped MapAttributeInto for use with table cells too
git-svn-id: svn://10.0.0.236/trunk@32804 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:48:19 +00:00
putterman%netscape.com
4959bb80c8 Add treecol style and add with tag to columns.
git-svn-id: svn://10.0.0.236/trunk@32803 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:47:33 +00:00
peterl%netscape.com
57eef2000d sync to nsIStyledContent API change
add table style rule to table cell


git-svn-id: svn://10.0.0.236/trunk@32802 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:47:19 +00:00
putterman%netscape.com
09dc1f3a12 More work on DeleteFolders.
git-svn-id: svn://10.0.0.236/trunk@32801 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:47:01 +00:00
peterl%netscape.com
438c25b48d sync to nsIStyledContent API change
git-svn-id: svn://10.0.0.236/trunk@32800 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:46:45 +00:00
putterman%netscape.com
bb9287a4c6 Speed up peqWithParameters.
git-svn-id: svn://10.0.0.236/trunk@32799 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:46:11 +00:00
peterl%netscape.com
8e305ff705 use CSS loader to load ua.css
git-svn-id: svn://10.0.0.236/trunk@32798 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:45:37 +00:00
putterman%netscape.com
35518dc271 Add methods for deleting folders.
git-svn-id: svn://10.0.0.236/trunk@32797 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:45:03 +00:00
peterl%netscape.com
56971cfe55 added assertion to resolve style
git-svn-id: svn://10.0.0.236/trunk@32796 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:44:56 +00:00
briano%netscape.com
fcb08ca6c5 Automated update
git-svn-id: svn://10.0.0.236/trunk@32795 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:44:47 +00:00
peterl%netscape.com
2c1e117763 changed style rule API to use array
git-svn-id: svn://10.0.0.236/trunk@32794 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:44:32 +00:00
peterl%netscape.com
65253c8003 switch to CSS loader for loading CSS sheets
fixed mime type processing


git-svn-id: svn://10.0.0.236/trunk@32793 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:43:40 +00:00
peterl%netscape.com
ecf990dfb9 tweaks to CSS loader usage
git-svn-id: svn://10.0.0.236/trunk@32792 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:42:29 +00:00
peterl%netscape.com
4d494b07ec made Equals() test ref & search too
git-svn-id: svn://10.0.0.236/trunk@32791 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:41:22 +00:00
sspitzer%netscape.com
ca3c4a9b18 build tests and mailnews by default now.
git-svn-id: svn://10.0.0.236/trunk@32790 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:34:47 +00:00
briano%netscape.com
96d4e74d3f Automated update
git-svn-id: svn://10.0.0.236/trunk@32789 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:29:47 +00:00
jdunn%netscape.com
51a88ee945 for AIX we need to use the C compiler for the assembler - this is
for the xptcall stuff


git-svn-id: svn://10.0.0.236/trunk@32788 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:26:31 +00:00
beard%netscape.com
714023e638 changed access paths
git-svn-id: svn://10.0.0.236/trunk@32787 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:21:40 +00:00
beard%netscape.com
01c730055a bumped version to 1.0d5
git-svn-id: svn://10.0.0.236/trunk@32786 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:20:41 +00:00
beard%netscape.com
a6619dfacb added <stdio.h> since xpt_xdr.h no longer #includes nspr includes.
git-svn-id: svn://10.0.0.236/trunk@32785 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:20:24 +00:00
beard%netscape.com
dd78165338 removed unnecessary NSPR include files
git-svn-id: svn://10.0.0.236/trunk@32784 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:20:23 +00:00
beard%netscape.com
6a2be890f5 added prlog.h, prprf.h since since xpt_xdr.h no longer includes nspr headers.
git-svn-id: svn://10.0.0.236/trunk@32783 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:20:22 +00:00
sspitzer%netscape.com
18e0727f96 cvs ignorage
git-svn-id: svn://10.0.0.236/trunk@32782 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:19:18 +00:00
beard%netscape.com
e7a351adf6 linker now generates aliases to headers in project output directory.
git-svn-id: svn://10.0.0.236/trunk@32781 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:17:34 +00:00
beard%netscape.com
75f674aa06 header files are now linkable.
git-svn-id: svn://10.0.0.236/trunk@32780 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:17:31 +00:00
beard%netscape.com
6bfedcbca8 now compiles header files into the project data folder.
git-svn-id: svn://10.0.0.236/trunk@32779 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:17:28 +00:00
akkana%netscape.com
3ec15b44de Add Internet and AOL style citers
git-svn-id: svn://10.0.0.236/trunk@32778 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:14:05 +00:00
akkana%netscape.com
b1ae4e654f Add nsICiter, for mail quoting
git-svn-id: svn://10.0.0.236/trunk@32777 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:13:03 +00:00
mscott%netscape.com
661a028cef Quiet noisy printf...
git-svn-id: svn://10.0.0.236/trunk@32776 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:05:30 +00:00
mscott%netscape.com
0e12f9337f Bug #6722 --> replace PR_Open with nsFileSpec/nsFileStream.
git-svn-id: svn://10.0.0.236/trunk@32775 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:01:23 +00:00
mscott%netscape.com
aed53619d9 Bug 6722 --> replace PR_Open with nsFileSpec/nsFileStream.
git-svn-id: svn://10.0.0.236/trunk@32774 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:59:26 +00:00
mscott%netscape.com
1ce95e8e42 fix mismatched memory frees *again*
git-svn-id: svn://10.0.0.236/trunk@32773 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:57:02 +00:00
mcafee%netscape.com
3b9aa5a506 Fixing solaris bustage, link with the c++ compiler.
git-svn-id: svn://10.0.0.236/trunk@32772 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:56:26 +00:00
bruce%cybersight.com
9050b667f4 Fix a free memory mismatch.
git-svn-id: svn://10.0.0.236/trunk@32771 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:53:12 +00:00
mscott%netscape.com
3b8f573139 Fix mismatched memory free. Bug #6722 --> replace PR_Open use with nsFileSpec & nsFileStream.
git-svn-id: svn://10.0.0.236/trunk@32770 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:53:03 +00:00
morse%netscape.com
0d2fa7b421 added modal dialogs for wallet
git-svn-id: svn://10.0.0.236/trunk@32769 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:50:49 +00:00
briano%netscape.com
e49dc3916a Automated update
git-svn-id: svn://10.0.0.236/trunk@32768 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:49:35 +00:00
mscott%netscape.com
1c75203f0b Fix memory leak of mailbox struct.
git-svn-id: svn://10.0.0.236/trunk@32767 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:49:09 +00:00
briano%netscape.com
9ecb48761a Eliminated the hard-coded NSPR version number.
git-svn-id: svn://10.0.0.236/trunk@32766 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:49:03 +00:00
gordon%netscape.com
3694a3a15d Added files for Wallet and Signon.
git-svn-id: svn://10.0.0.236/trunk@32765 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:46:55 +00:00
jfrancis%netscape.com
54b66fca14 fix for bug 5979
git-svn-id: svn://10.0.0.236/trunk@32764 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:44:08 +00:00
mscott%netscape.com
38e23a1ddf Fix uninitialized memory read.
git-svn-id: svn://10.0.0.236/trunk@32763 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:43:01 +00:00
morse%netscape.com
4b29935cdf added modal dialogs for wallet
git-svn-id: svn://10.0.0.236/trunk@32762 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:42:49 +00:00
jdunn%netscape.com
dfe1966918 Fixing link/runtime problem with certain platforms. Linking against the 'libs'
directory is forcing AIX to link statically instead of dynamically.


git-svn-id: svn://10.0.0.236/trunk@32761 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:40:14 +00:00
cmanske%netscape.com
b431e666a0 Fixed missing do_QueryInterface that busted Linux build
git-svn-id: svn://10.0.0.236/trunk@32760 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:30:50 +00:00
rogerl%netscape.com
4d597b6ebd Bug #6359 and other changes motivated by Waldemar's specification.
git-svn-id: svn://10.0.0.236/trunk@32759 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:28:32 +00:00
jfrancis%netscape.com
4c900f0761 fixed dom range gravity error
git-svn-id: svn://10.0.0.236/trunk@32758 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:28:04 +00:00
cbegle%netscape.com
4e49683cd7 adding more javascript language tests
git-svn-id: svn://10.0.0.236/trunk@32756 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:24:04 +00:00
karnaze%netscape.com
703e798b06 Rewrote DistributeRemainingSpace a 2nd time and added compat mode.
bug 6068, 6933. nsTableRowGroupFrame::CalculateRowHeights - changed row spans to consider
top and bottom margins during height calculations. Calculations using percentages ensure that the sum of
rows sum exactly to excess.

bug 6404 BasicTableLayoutStrategy::BalanceColumnsConstrained cols in span other than 1st col was
not getting additional allocations from cell. ::DistributeRemainSpace uses max width of col
instead of max effective width. Also added checks for negative value during percentage calculations.


git-svn-id: svn://10.0.0.236/trunk@32755 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:22:23 +00:00
cbegle%netscape.com
f035e2c00f adding more javascript language tests.
git-svn-id: svn://10.0.0.236/trunk@32754 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:22:06 +00:00
karnaze%netscape.com
abd5271465 bug 7083, nsFormFrame doesn't involve netlib if the action is not specified
git-svn-id: svn://10.0.0.236/trunk@32753 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:20:53 +00:00
briano%netscape.com
7a9fe21323 Fix for NO_STATIC_LIB builds.
git-svn-id: svn://10.0.0.236/trunk@32752 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:20:12 +00:00
karnaze%netscape.com
3fc2f46a67 new regression tests
git-svn-id: svn://10.0.0.236/trunk@32751 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:19:02 +00:00
briano%netscape.com
96b6460762 Fix for the case where NSPR is built separately and isn't listed in LD_LIBRARY_PATH.
git-svn-id: svn://10.0.0.236/trunk@32750 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:18:37 +00:00
cbegle%netscape.com
0870f2480f adding new javascript tests - liveconnect
git-svn-id: svn://10.0.0.236/trunk@32749 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:14:51 +00:00
cmanske%netscape.com
17fe0f273b Changed font face popup to use menu until popup XUL window works
git-svn-id: svn://10.0.0.236/trunk@32747 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:11:11 +00:00
erik%netscape.com
35ded4bb12 Added manual registration for EventQueue and PersistentProperties. Sigh.
git-svn-id: svn://10.0.0.236/trunk@32746 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:08:27 +00:00
cbegle%netscape.com
b8cc57c616 adding new tests for the javascript language - liveconnect.
git-svn-id: svn://10.0.0.236/trunk@32745 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:07:01 +00:00
erik%netscape.com
1a2da74509 Added NULL pointer checking, since netlib returns NULL even though return
value said it succeeded.


git-svn-id: svn://10.0.0.236/trunk@32744 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:06:51 +00:00
alecf%netscape.com
091ce91816 add CID to prepare for moving CIDs into the factory
git-svn-id: svn://10.0.0.236/trunk@32743 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:59:45 +00:00
jefft%netscape.com
d367eda3ef more on cached connection work - time out and number of maximum connections per host implementation; fixed delete messages not working problem; fixed crash when server disconnect the connection; inproper ref counting problem
git-svn-id: svn://10.0.0.236/trunk@32742 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:56:36 +00:00
bruce%cybersight.com
8a02d53443 Use 'friend class' rather than just 'friend' to fix potential build bustage on HP-UX
git-svn-id: svn://10.0.0.236/trunk@32741 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:55:23 +00:00
alecf%netscape.com
15d0866ebe moving CIDs out of the interface headers, so including the right factory CID files
git-svn-id: svn://10.0.0.236/trunk@32740 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:54:25 +00:00
sspitzer%netscape.com
4a0bd5377c add the cvsignorage again, and this time don't break the build.
git-svn-id: svn://10.0.0.236/trunk@32739 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:53:31 +00:00
blizzard%redhat.com
b1c6f06c80 more xlib work
git-svn-id: svn://10.0.0.236/trunk@32738 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:52:58 +00:00
jefft%netscape.com
21c8df11b9 defautl set fDeleteIsMoveToTrash to true
git-svn-id: svn://10.0.0.236/trunk@32737 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:52:54 +00:00
bruce%cybersight.com
eb44502f36 Fix a free memory mismatch hopefully.
git-svn-id: svn://10.0.0.236/trunk@32736 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:52:06 +00:00
jefft%netscape.com
9aa1d6f707 more on cached connection work - time out and number of maximum connections per host implementation
git-svn-id: svn://10.0.0.236/trunk@32735 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:51:38 +00:00
cbegle%netscape.com
742c46d624 adding more javascript language tests to the repository.
git-svn-id: svn://10.0.0.236/trunk@32734 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:48:43 +00:00
sspitzer%netscape.com
91ea168aa3 do the ignore again. this time, without breaking the build.
git-svn-id: svn://10.0.0.236/trunk@32733 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:48:42 +00:00
jefft%netscape.com
4972001b1d use NS_IF_ADDREF & NS_IF_RELEASE instead of NS_ADDREF & NS_RELEASE in case of null mURL & mProxy
git-svn-id: svn://10.0.0.236/trunk@32732 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:46:42 +00:00
jefft%netscape.com
347046e38e make sure stream Wrire() returns correct error code when the stream is closed
git-svn-id: svn://10.0.0.236/trunk@32731 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:45:20 +00:00
sspitzer%netscape.com
d6bab07673 turn DEBUG_sspitzer into DEBUG_NEWS.
use PR_sscanf instead of sscanf.
add more debugging printfs


git-svn-id: svn://10.0.0.236/trunk@32730 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:45:19 +00:00
jefft%netscape.com
c2d6d491cb make sure net_flush_sockstub_data() return correct error code
git-svn-id: svn://10.0.0.236/trunk@32729 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:43:44 +00:00
sspitzer%netscape.com
7c5a298cba don't compare url (and prefs) to nsnull. check that !url (and !prefs) is true
git-svn-id: svn://10.0.0.236/trunk@32728 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:43:42 +00:00
joki%netscape.com
dc86961440 Beginnings of JavaScript security bits.
git-svn-id: svn://10.0.0.236/trunk@32727 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:43:28 +00:00
cmanske%netscape.com
eaea155fe6 Continued UI work: Spell checker fixes, toolbar improvements, popup menus implemented for paragraph style, font face and color, setting font color test UI, etc.
git-svn-id: svn://10.0.0.236/trunk@32726 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:40:51 +00:00
cmanske%netscape.com
6812ea4767 Added editor methods for setting body attributes and background color. Removed getFirstMisspelled word - not needed
git-svn-id: svn://10.0.0.236/trunk@32725 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:40:34 +00:00
cmanske%netscape.com
19afc54e3f Removed Windows-specific default directory string from prefs
git-svn-id: svn://10.0.0.236/trunk@32724 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:39:59 +00:00
cbegle%netscape.com
1bf49d671c adding more javascript language tests to the repository.
git-svn-id: svn://10.0.0.236/trunk@32723 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:37:13 +00:00
sspitzer%netscape.com
bfc1a2bd1b the new subscribe xul and associated files
git-svn-id: svn://10.0.0.236/trunk@32722 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:36:29 +00:00
dbragg%netscape.com
f4b1dcb59d Added *aResult for status values per XPCOM
git-svn-id: svn://10.0.0.236/trunk@32721 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:22:58 +00:00
cbegle%netscape.com
8e3e85b033 Adding ecma 2 tests to the repository.
git-svn-id: svn://10.0.0.236/trunk@32720 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:22:57 +00:00
dbragg%netscape.com
05424febc3 Changed DEPTH
git-svn-id: svn://10.0.0.236/trunk@32719 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:22:15 +00:00
dbragg%netscape.com
8186a4bde5 Added *aResult for result values passed as parameters rather than straight returns.
git-svn-id: svn://10.0.0.236/trunk@32718 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:21:37 +00:00
dbragg%netscape.com
a6a6569fc1 Changed the depth to take into account the parent profile directory.
git-svn-id: svn://10.0.0.236/trunk@32717 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:20:45 +00:00
dbragg%netscape.com
6bb3716bad Top level pref migration tool makefile
git-svn-id: svn://10.0.0.236/trunk@32716 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:19:53 +00:00
mcafee%netscape.com
b44e749d1f Removing unnecessary mcom_db.h include.
git-svn-id: svn://10.0.0.236/trunk@32715 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:18:51 +00:00
kin%netscape.com
85e00a320c Disabled HACKForceRedraw() calls. Added calls to nsIViewManager::BeginUpdateViewBatch() and nsIViewManager::EndUpdateViewBatch().
git-svn-id: svn://10.0.0.236/trunk@32714 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:18:12 +00:00
kin%netscape.com
cf9cdb1bd0 Added support for nsITransactionListener.
Cleaned up includes in header files.


git-svn-id: svn://10.0.0.236/trunk@32713 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:16:25 +00:00
kin%netscape.com
7b98a8d777 Initial checkin of file.
git-svn-id: svn://10.0.0.236/trunk@32712 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:14:32 +00:00
pinkerton%netscape.com
a8f72852cc missing [] on delete of internal array in operator=.
git-svn-id: svn://10.0.0.236/trunk@32711 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:13:29 +00:00
kin%netscape.com
18516ebae7 Added implementation of BeginUpdateViewBatch() and
EndUpdateViewBatch() to nsIViewManager and nsViewManager.


git-svn-id: svn://10.0.0.236/trunk@32710 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:13:06 +00:00
pinkerton%netscape.com
fc7ff68029 fix GetChildren() to not copy the child list and to use a proper enumerator.
git-svn-id: svn://10.0.0.236/trunk@32709 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:12:54 +00:00
pinkerton%netscape.com
e6fc33339b new files for multiple d&d apis
git-svn-id: svn://10.0.0.236/trunk@32708 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:10:23 +00:00
pinkerton%netscape.com
708238d28c updated to new multiple-item d&d apis.
git-svn-id: svn://10.0.0.236/trunk@32707 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:08:26 +00:00
pinkerton%netscape.com
ef9d28c245 updated to new multiple item d&d api's.
git-svn-id: svn://10.0.0.236/trunk@32706 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:08:21 +00:00
pinkerton%netscape.com
651d8eb4ff new multiple-item drag and drop apis.
git-svn-id: svn://10.0.0.236/trunk@32705 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:08:14 +00:00
leaf%mozilla.org
6e52e8f88b forgot the xpcom .cvsignore file, added it.
git-svn-id: svn://10.0.0.236/trunk@32704 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:06:41 +00:00
rpotts%netscape.com
67cddc9e2a Initialized m_Request to nsnull to prevent a crash durng destruction - it was trying to free uninitialized memory :-(
git-svn-id: svn://10.0.0.236/trunk@32703 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:04:11 +00:00
valeski%netscape.com
9c7d7f0526 removed #include "nsXPComCIID.h" as it is no longer pertinent
git-svn-id: svn://10.0.0.236/trunk@32702 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 20:51:19 +00:00
norris%netscape.com
8eccc51ac0 Fix bug 6705.
git-svn-id: svn://10.0.0.236/trunk@32701 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 19:55:51 +00:00
norris%netscape.com
3f184135b9 Remove class path for merging into a single JAR file.
git-svn-id: svn://10.0.0.236/trunk@32700 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 19:52:40 +00:00
norris%netscape.com
4ac0b82248 fix node property printing
git-svn-id: svn://10.0.0.236/trunk@32699 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 19:48:45 +00:00
norris%netscape.com
9ed83503b9 clean up formatting
git-svn-id: svn://10.0.0.236/trunk@32698 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 19:48:02 +00:00
mcmullen%netscape.com
49f57b19e4 Headers settings did not have the linker turned on!
git-svn-id: svn://10.0.0.236/trunk@32697 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 19:36:12 +00:00
mcmullen%netscape.com
a33b38ec39 Restored lines that were deleted erroneously
git-svn-id: svn://10.0.0.236/trunk@32696 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 19:15:23 +00:00
sspitzer%netscape.com
ca7e198ba7 doh!
git-svn-id: svn://10.0.0.236/trunk@32695 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 19:12:35 +00:00
sspitzer%netscape.com
3209450c20 remove this to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@32694 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 19:03:16 +00:00
sspitzer%netscape.com
04f4224977 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@32693 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 19:01:27 +00:00
sspitzer%netscape.com
c5a72de283 remove this, causing build bustage
git-svn-id: svn://10.0.0.236/trunk@32692 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 18:56:19 +00:00
slamm%netscape.com
e4d6de7add Update Sidebar Flash and Panel Content when new data arrives.
git-svn-id: svn://10.0.0.236/trunk@32691 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 18:51:47 +00:00
sspitzer%netscape.com
fae129ad83 more cvsignorage for the xpcom2 landing
git-svn-id: svn://10.0.0.236/trunk@32690 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 18:50:14 +00:00
slamm%netscape.com
1836d83870 Generate static pages for Sidebar Flash and Tinderbox Panel
git-svn-id: svn://10.0.0.236/trunk@32689 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 18:12:11 +00:00
sspitzer%netscape.com
0d144495bb cvs ignorage for xpcom2 landing
git-svn-id: svn://10.0.0.236/trunk@32688 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 17:51:05 +00:00
sspitzer%netscape.com
d8d2640ea6 cvs ignorage
git-svn-id: svn://10.0.0.236/trunk@32687 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 17:49:37 +00:00
sspitzer%netscape.com
e9f0137097 get smtp test to build again on UNIX
git-svn-id: svn://10.0.0.236/trunk@32686 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 17:23:25 +00:00
sspitzer%netscape.com
f3e783aa96 fix build breakage on UNIX
git-svn-id: svn://10.0.0.236/trunk@32682 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 16:19:50 +00:00
sspitzer%netscape.com
8ab72bf494 fix the news test makefiles so they build on UNIX, now that xpcom2 has
landed.  turn them back on.


git-svn-id: svn://10.0.0.236/trunk@32681 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 15:45:49 +00:00
despotdaemon%netscape.com
333442ca27 Pseudo-automatic update of changes made by dp@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@32680 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 09:05:12 +00:00
gagan%netscape.com
355d2415e5 Removed nsITimer dependency.
git-svn-id: svn://10.0.0.236/trunk@32679 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 08:53:17 +00:00
dp%netscape.com
ddfb2643e7 adding services
git-svn-id: svn://10.0.0.236/trunk@32678 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 08:11:53 +00:00
dp%netscape.com
e0aba42207 Adding services
git-svn-id: svn://10.0.0.236/trunk@32677 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 08:11:36 +00:00
alecf%netscape.com
946b0ad955 smtp test is broken, comment it out for now
git-svn-id: svn://10.0.0.236/trunk@32676 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 08:11:35 +00:00
alecf%netscape.com
187f5f483b fix bustage by adding gfx/img/mozutil
git-svn-id: svn://10.0.0.236/trunk@32675 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 08:07:54 +00:00
alecf%netscape.com
74ae74ea52 disable news tests for now because we can't find XP_StringHash2
git-svn-id: svn://10.0.0.236/trunk@32674 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 08:05:57 +00:00
dp%netscape.com
b38880e3c9 Initial version
git-svn-id: svn://10.0.0.236/trunk@32673 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 08:05:08 +00:00
alecf%netscape.com
6c19103b4c fix tests by adding the right libraries
git-svn-id: svn://10.0.0.236/trunk@32672 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 07:56:47 +00:00
alecf%netscape.com
95fe94914a fix bustage by adding the right libraries
git-svn-id: svn://10.0.0.236/trunk@32671 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 07:52:14 +00:00
dp%netscape.com
3a5d687365 removing -lreg
git-svn-id: svn://10.0.0.236/trunk@32670 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 07:47:14 +00:00
dp%netscape.com
b83d6b6d30 Fixing tests
git-svn-id: svn://10.0.0.236/trunk@32669 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 07:46:01 +00:00
dp%netscape.com
655c1f04e0 removing -lreg
git-svn-id: svn://10.0.0.236/trunk@32668 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 07:41:15 +00:00
dp%netscape.com
c148345c5d Adding gfxMOZ_TOOLKIT and gfxps to get NS_NewTimer()
git-svn-id: svn://10.0.0.236/trunk@32667 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 07:30:34 +00:00
dp%netscape.com
a0c3fdf37a Adding gfx to get NS_NewTimer() and dependents
git-svn-id: svn://10.0.0.236/trunk@32666 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 07:29:10 +00:00
dp%netscape.com
3f90728ff4 removing -lreg
git-svn-id: svn://10.0.0.236/trunk@32665 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 07:16:38 +00:00
dp%netscape.com
f08ae4972b removing -lreg
git-svn-id: svn://10.0.0.236/trunk@32664 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 07:08:19 +00:00
leaf%mozilla.org
fbdf5cebe7 removing xpcom/tools/xpidl from SeaMonkeyCore pull (using the ! feature)
... get it? bang? as in "shoot me!"?


git-svn-id: svn://10.0.0.236/trunk@32663 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 06:43:13 +00:00
dp%netscape.com
187d3e7a0a Adding NSPR_LIB
git-svn-id: svn://10.0.0.236/trunk@32662 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 06:36:34 +00:00
rpotts%netscape.com
dbd00bdf86 Some fixes to get the http test case running... Fixed the handler factory to correctly return the instance. Changed to CID of the URL being created to NS_STANDARDURL_CID. Fixed a signed/unsigned crash when creating connections...
git-svn-id: svn://10.0.0.236/trunk@32661 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 06:34:44 +00:00
leaf%mozilla.org
d07ce90146 enumerating xpcom subdirs, so that we don't pull the directories
that confuse the mac build


git-svn-id: svn://10.0.0.236/trunk@32659 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 05:43:44 +00:00
mcmullen%netscape.com
5d866434a9 Use explicit paths to stop these being found in an obsolete directory (mcmullen@netscape.com)
git-svn-id: svn://10.0.0.236/trunk@32658 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 05:38:17 +00:00
dp%netscape.com
bc2119868a stdafx.h
git-svn-id: svn://10.0.0.236/trunk@32657 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 05:03:05 +00:00
donm%netscape.com
ea7463ef42 removed referecne to libreg and libraptorbase
git-svn-id: svn://10.0.0.236/trunk@32656 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 04:59:47 +00:00
dp%netscape.com
6eec8b748a adding symbol XPTI_GetInterfaceInfoManager
git-svn-id: svn://10.0.0.236/trunk@32655 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 04:54:36 +00:00
dp%netscape.com
1375f254e8 reversing previous change 'cause I added the missing to xpcom/build/dlldeps.cpp
and things work.


git-svn-id: svn://10.0.0.236/trunk@32654 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 04:43:01 +00:00
varada%netscape.com
6e7dbb1dd7 4.2 version
git-svn-id: svn://10.0.0.236/trunk@32652 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 04:25:02 +00:00
dp%netscape.com
277d0e37fa I dont have a clue why I need this. If I dont add the xptinfo.lib
to the link line, I get a undefined for _XPTI_GetInterfaceInfoManager

Some windows dude should fix this.


git-svn-id: svn://10.0.0.236/trunk@32650 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 04:16:23 +00:00
mcmullen%netscape.com
21160719fa Fix "missing from view hierarchy alert" (mcmullen@netscape.com)
git-svn-id: svn://10.0.0.236/trunk@32649 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 04:06:34 +00:00
despotdaemon%netscape.com
2bf61ac50f Pseudo-automatic update of changes made by dp@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@32648 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 04:06:22 +00:00
jj%netscape.com
140a0795ca Turn on build{all} which I turned off by mistake.
git-svn-id: svn://10.0.0.236/trunk@32647 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 03:52:01 +00:00
dp%netscape.com
4e84129c48 landing xpcom20/21 branch
git-svn-id: svn://10.0.0.236/trunk@32646 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 02:16:15 +00:00
dp%netscape.com
27980027bd landing xpcom20/21 branch
git-svn-id: svn://10.0.0.236/trunk@32645 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 02:05:00 +00:00
dp%netscape.com
befa259a88 Landing xpcom20/21 branch.
git-svn-id: svn://10.0.0.236/trunk@32644 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 01:38:36 +00:00
rogerl%netscape.com
300d6f0885 Hmmm, new changes these are.
git-svn-id: svn://10.0.0.236/trunk@32641 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 01:01:07 +00:00
ducarroz%netscape.com
5bd2264bd8 fix bug 6914
git-svn-id: svn://10.0.0.236/trunk@32633 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 23:37:48 +00:00
ducarroz%netscape.com
a99ce6029c bug fix 6628
git-svn-id: svn://10.0.0.236/trunk@32632 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 23:35:39 +00:00
leaf%mozilla.org
028387ac22 Filtering out form submission in all cases, to get location bar working
for mac. This will be fixed RSN.


git-svn-id: svn://10.0.0.236/trunk@32631 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 23:25:19 +00:00
varada%netscape.com
620b516012 make file test
git-svn-id: svn://10.0.0.236/trunk@32630 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 23:17:31 +00:00
varada%netscape.com
44f9511d1e summary file
git-svn-id: svn://10.0.0.236/trunk@32629 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 23:14:40 +00:00
varada%netscape.com
4e859a3427 help files
git-svn-id: svn://10.0.0.236/trunk@32628 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 22:46:14 +00:00
rogerl%netscape.com
68589204d4 New.
git-svn-id: svn://10.0.0.236/trunk@32627 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 21:50:03 +00:00
rogerl%netscape.com
1c31755a34 JSValue changes, closing in on JSObject API. Began 'correct' semantic
implementation for various operators.


git-svn-id: svn://10.0.0.236/trunk@32626 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 21:49:40 +00:00
gagan%netscape.com
2988832256 Moved nsHTTPEnums.h to public.
git-svn-id: svn://10.0.0.236/trunk@32625 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 21:38:53 +00:00
gagan%netscape.com
5c58a69c87 Moved nsHTTPEnums from src to here.
git-svn-id: svn://10.0.0.236/trunk@32624 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 21:38:27 +00:00
gagan%netscape.com
6e9de80cdb Fixed nsIURL.h to nsIUrl.h... Thanks Andreas.
git-svn-id: svn://10.0.0.236/trunk@32623 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 21:33:23 +00:00
gagan%netscape.com
8a25c9f2a4 Changes inherited from nsIProtocolHandler. Also changed default port to 21.
git-svn-id: svn://10.0.0.236/trunk@32622 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 21:31:46 +00:00
varada%netscape.com
027e4bdeec rshell ini files
git-svn-id: svn://10.0.0.236/trunk@32613 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 21:11:00 +00:00
varada%netscape.com
631c184bac make file
git-svn-id: svn://10.0.0.236/trunk@32612 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 20:59:43 +00:00
rogerl%netscape.com
d7b7852ec3 Fixed 'continue label'
git-svn-id: svn://10.0.0.236/trunk@32611 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 20:29:12 +00:00
terry%mozilla.org
897a11c822 Fixed bug 7000 -- handle hyphens in hostnames of email addresses when
highlighting.


git-svn-id: svn://10.0.0.236/trunk@32610 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 19:52:34 +00:00
slamm%netscape.com
55e6c5cc50 Add type='content' to content iframe. Important for selection. Fix for 7033.
git-svn-id: svn://10.0.0.236/trunk@32609 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 19:52:13 +00:00
kmcclusk%netscape.com
0fc070726c patch for #bug 6934. Checkin approved by Chris Hofmann.
Added check to nsTitledButtonFrame::DisplayAltFeedback to verify the icon returned from
LoadIconImage for is not null. This will prevent aRenderingContext.DrawImage from being
passed a null aImage parameter.


git-svn-id: svn://10.0.0.236/trunk@32606 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 19:37:16 +00:00
slamm%netscape.com
562ebffbf8 Avoid implicitly defining build records.
git-svn-id: svn://10.0.0.236/trunk@32605 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 19:35:13 +00:00
terry%mozilla.org
5fc44755dd Avoid mid-air collisions (implementing a suggestion by
py8ieh=bugzilla@bath.ac.uk).


git-svn-id: svn://10.0.0.236/trunk@32602 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 19:22:31 +00:00
slamm%netscape.com
4ed80a7abf If a build is new it's 'last_status' is building.
git-svn-id: svn://10.0.0.236/trunk@32601 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 19:04:09 +00:00
slamm%netscape.com
80a62bb9ad Fix tree selector. Needed content-type header.
git-svn-id: svn://10.0.0.236/trunk@32600 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 18:15:13 +00:00
despotdaemon%netscape.com
c6f2379b56 Pseudo-automatic update of changes made by dshea@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@32597 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 18:02:28 +00:00
terry%mozilla.org
c921fc5969 Fixed stupid typo.
git-svn-id: svn://10.0.0.236/trunk@32596 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 17:59:39 +00:00
valeski%netscape.com
a059dccf5d adding http's events for the nsNetModuleMgr api so necko can interract with external modules
git-svn-id: svn://10.0.0.236/trunk@32595 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 17:34:59 +00:00
valeski%netscape.com
7b7bf7e46b the base class for necko events to be used with the nsINetModuleMgr api
git-svn-id: svn://10.0.0.236/trunk@32594 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 17:29:04 +00:00
valeski%netscape.com
0cb3cc1efc added revised comment
git-svn-id: svn://10.0.0.236/trunk@32593 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 17:27:01 +00:00
varada%netscape.com
8ac1c9a419 rshell.ini changes
git-svn-id: svn://10.0.0.236/trunk@32589 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 07:42:48 +00:00
ftang%netscape.com
465fa2e874 fix bug 6740. approved by christ hofmann. reviewed by harish. This is a temp fix. ftang should move this hack out of parser after M6
git-svn-id: svn://10.0.0.236/trunk@32577 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 02:35:27 +00:00
ftang%netscape.com
3f23cb5ab3 fix bug 6740. approved by christ hofmann
git-svn-id: svn://10.0.0.236/trunk@32576 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 02:30:03 +00:00
hyatt%netscape.com
c0131df702 Better fix for 6746.
git-svn-id: svn://10.0.0.236/trunk@32561 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 00:29:55 +00:00
slamm%netscape.com
8cefe08ef9 Try again.
git-svn-id: svn://10.0.0.236/trunk@32560 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 00:20:21 +00:00
slamm%netscape.com
f73e6d2d52 Get proper quoting of who_menu javascript.
git-svn-id: svn://10.0.0.236/trunk@32559 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 00:17:46 +00:00
slamm%netscape.com
ad601d143e Add contentframe.(xul|js|css) for Sidebar and Content frames.
git-svn-id: svn://10.0.0.236/trunk@32558 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-25 00:07:50 +00:00
sspitzer%netscape.com
e29e293a08 point the start page to a page that explains how to set up your prefs
git-svn-id: svn://10.0.0.236/trunk@32553 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 23:37:57 +00:00
slamm%netscape.com
f1c786090a Finish last checkin. Put sidebar grippy.gif in res/toolbar for now.
git-svn-id: svn://10.0.0.236/trunk@32552 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 23:35:06 +00:00
sspitzer%netscape.com
e3155e4d76 fix for #6908. a=chofmann, r=mscott.
fixes the bug on mac and linux where loading news messages would cause the app to spin.


git-svn-id: svn://10.0.0.236/trunk@32551 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 23:30:04 +00:00
slamm%netscape.com
13e98335f2 Use grippy/boxes/iframes for sidebar instead of frameset. Use 790x580 as default size to make room for sidebar.
git-svn-id: svn://10.0.0.236/trunk@32550 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 23:26:23 +00:00
slamm%netscape.com
1de23c8325 Last part of fix for 6776. Check for containers properly when openening bookmarks. Previously approved by chofmann. Fix by rjc.
git-svn-id: svn://10.0.0.236/trunk@32549 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 23:25:52 +00:00
valeski%netscape.com
d33ff7bff6 added context arguments and a set headers method.
git-svn-id: svn://10.0.0.236/trunk@32547 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 22:06:12 +00:00
putterman%netscape.com
d2bdbe597b Fix for 7002. Speed up mail by commenting out call to UpdateSummaryTotals. Reviewed by
mscott and approved by chofmann.


git-svn-id: svn://10.0.0.236/trunk@32546 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 22:03:47 +00:00
putterman%netscape.com
a7b42660c6 Fix for 6975. Make sure there's a valid database before accessing it. Reviewed by
mscott. Approved by chofmann.


git-svn-id: svn://10.0.0.236/trunk@32545 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 22:02:50 +00:00
slamm%netscape.com
138daa554b Deal with out of order times for express.
git-svn-id: svn://10.0.0.236/trunk@32544 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 21:43:57 +00:00
terry%mozilla.org
21e1b9aafb Added "Neutrino" to the list of operating systems
git-svn-id: svn://10.0.0.236/trunk@32543 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 21:37:27 +00:00
briano%netscape.com
b98e0b0e8f Automated update
git-svn-id: svn://10.0.0.236/trunk@32541 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 21:18:00 +00:00
terry%mozilla.org
2ff78cf3dc Patch by Mark B. Hamby <mhamby@logicon.com> (somewhat hacked up by me) --
Allow case insensitive and regexp based searches for strings in bugs.


git-svn-id: svn://10.0.0.236/trunk@32540 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 21:16:18 +00:00
waterson%netscape.com
28d20d9b44 Bug 6968. Turn of MOZ_BRPROF by default.
git-svn-id: svn://10.0.0.236/trunk@32534 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 21:13:58 +00:00
slamm%netscape.com
b98d1970e4 Recommit my last set of changes, but logs work now.
git-svn-id: svn://10.0.0.236/trunk@32533 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 21:03:10 +00:00
beard%netscape.com
ae1abcf9e1 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@32532 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 20:48:58 +00:00
dcone%netscape.com
d70cff6cc5 Fixed a printing crashing bug in Update(),
Now check to make sure mWindowPtr is not null.


git-svn-id: svn://10.0.0.236/trunk@32531 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 20:44:53 +00:00
valeski%netscape.com
eb1f2f4ddc the notify api and the external module interface now use the nsIObserver stuff
git-svn-id: svn://10.0.0.236/trunk@32530 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 20:40:21 +00:00
terry%mozilla.org
7ced32b722 Get rid of stupid debugging code.
git-svn-id: svn://10.0.0.236/trunk@32526 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 19:55:43 +00:00
valeski%netscape.com
c38f34b326 First whack at various external module apis.
git-svn-id: svn://10.0.0.236/trunk@32525 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 19:50:39 +00:00
terry%mozilla.org
d023c05a97 Added Mac System 8.6.
git-svn-id: svn://10.0.0.236/trunk@32524 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 19:44:34 +00:00
terry%mozilla.org
0a52d2313d Make sure login name is in canonical form.
git-svn-id: svn://10.0.0.236/trunk@32523 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 19:42:28 +00:00
valeski%netscape.com
95c10ecee6 wrong parameters were being passed into the handler's NewUrl() call
git-svn-id: svn://10.0.0.236/trunk@32522 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 19:33:52 +00:00
terry%mozilla.org
fbb008de3f Oops; fixed stupid typo.
git-svn-id: svn://10.0.0.236/trunk@32521 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 19:08:59 +00:00
terry%mozilla.org
6d208dc683 Don't put the filename in the content-type field; it's apparently not legal MIME for some content-types.
git-svn-id: svn://10.0.0.236/trunk@32520 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 19:06:04 +00:00
terry%mozilla.org
eef2c776d2 Back out slamm's recent changes; they have introduced bugs (like not being able to view logs).
git-svn-id: svn://10.0.0.236/trunk@32519 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 18:39:30 +00:00
beard%netscape.com
1a1cb758d7 bug #5352: navigator.javaEnabled() now looks at "security.enable_java" preference.
a=chofmann, r=matt


git-svn-id: svn://10.0.0.236/trunk@32514 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 16:41:55 +00:00
warren%netscape.com
ca81a76eee Added timer stuff from base.
git-svn-id: svn://10.0.0.236/trunk@32511 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 09:17:05 +00:00
warren%netscape.com
660db546ca Moving changes from XPCOM20_BRANCH forward.
git-svn-id: svn://10.0.0.236/trunk@32510 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 09:03:23 +00:00
slamm%netscape.com
d4e8d39fc5 Make it nice and pretty. Iron out a couple bugs.
git-svn-id: svn://10.0.0.236/trunk@32509 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 05:56:26 +00:00
briano%netscape.com
ab94629a76 Fixed the breakage this incomplete makefile was causing NO_STATIC_LIB builds.
git-svn-id: svn://10.0.0.236/trunk@32508 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 04:55:52 +00:00
waterson%netscape.com
fc9e4a40b6 Bug 6957. Add kEventQueueCID to the registry setup so these tests will run. a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@32507 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 03:53:02 +00:00
waterson%netscape.com
a50c2b1916 Bug 6958. Fix inconsistency between string and string size. a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@32506 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 03:51:56 +00:00
slamm%netscape.com
6d4330ffc8 Shrink the sidebar panel to fit.
git-svn-id: svn://10.0.0.236/trunk@32505 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 01:00:22 +00:00
beard%netscape.com
c2dc2fe83d added mozilla/js/rhino/org/mozilla/javascript/ListenerCollection.java
git-svn-id: svn://10.0.0.236/trunk@32502 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-23 20:07:05 +00:00
sspitzer%netscape.com
0c048f3fbe fix for #6935. skip newsrc lines that look like this:
3746EF3F.6080309@netscape.com:
3746EF3F.6080309%40netscape.com:

Those aren't legal newsgroup names.  But previous versions of Communicator
dump that into the newsrc file when you load these urls:

news://news.mozilla.org/3746EF3F.6080309@netscape.com
news://news.mozilla.org/3746EF3F.6080309%40netscape.com


git-svn-id: svn://10.0.0.236/trunk@32501 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-23 00:44:46 +00:00
bruce%cybersight.com
40889bdd16 Approved by chofmann. This fixes a large leak over time. This allocation is not necessary (nor are many others in this file), as the code being called to fill the value is also allocating the memory, so the memory is/was getting allocated twice. This fixes bug #6926.
git-svn-id: svn://10.0.0.236/trunk@32500 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-22 19:50:26 +00:00
sspitzer%netscape.com
912c86ce04 fix for #6889. a=chofmann.
use tempMessage.eml so that reply to news works.


git-svn-id: svn://10.0.0.236/trunk@32499 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-22 19:37:13 +00:00
briano%netscape.com
c3f6e70075 I'm hoping this will fix the breakage that results from not having . in one's PATH.
git-svn-id: svn://10.0.0.236/trunk@32498 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-22 06:42:48 +00:00
blizzard%redhat.com
3e47ad9913 remove these files
git-svn-id: svn://10.0.0.236/trunk@32497 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-22 06:16:21 +00:00
briano%netscape.com
e0c74b0459 Fix for the -r flag problem and the redundant rules warning. And a whole bunch of housecleaning. Approved by leaf@mozilla.org. Let me know if I ripped out something I shouldn't have.
git-svn-id: svn://10.0.0.236/trunk@32496 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-22 05:55:23 +00:00
sspitzer%netscape.com
2792a83996 fix for #6919. heed the "news.max_articles" pref.
git-svn-id: svn://10.0.0.236/trunk@32495 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-22 02:11:30 +00:00
cmanske%netscape.com
349ebe0c32 Set initial focus to editor window. Fixes bug 5724. Reviewed by sfraser
git-svn-id: svn://10.0.0.236/trunk@32494 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-22 00:40:59 +00:00
gagan%netscape.com
d30c026ed3 Made the baseURL default to null.
git-svn-id: svn://10.0.0.236/trunk@32493 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-22 00:21:32 +00:00
gagan%netscape.com
01320ab1a7 Made the baseURL a default to null.
git-svn-id: svn://10.0.0.236/trunk@32492 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-22 00:21:08 +00:00
varada%netscape.com
d041f6d030 summary file
git-svn-id: svn://10.0.0.236/trunk@32491 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-22 00:06:00 +00:00
varada%netscape.com
1d18fb85f0 summary header
git-svn-id: svn://10.0.0.236/trunk@32490 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-22 00:05:42 +00:00
despotdaemon%netscape.com
c9ae4cbeaa Pseudo-automatic update of changes made by amasri@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@32489 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 23:58:43 +00:00
waterson%netscape.com
68d0b53a77 Okay, let's try that again.
git-svn-id: svn://10.0.0.236/trunk@32488 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 23:42:02 +00:00
waterson%netscape.com
2a66d40a96 Add GetIID() for use with nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@32487 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 23:40:57 +00:00
evaughan%netscape.com
c284bebfcd fixed bug #5857. Permission from hofmann.
git-svn-id: svn://10.0.0.236/trunk@32486 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 23:36:56 +00:00
rickg%netscape.com
fb0094ea78 fixed per cyeh
git-svn-id: svn://10.0.0.236/trunk@32485 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 23:11:16 +00:00
rickg%netscape.com
2903ac39ff fix bug 6901 per CYEH
git-svn-id: svn://10.0.0.236/trunk@32484 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 23:01:37 +00:00
sspitzer%netscape.com
4c9db6123d fix for #6031. the summary file names for newsgroups are based on
the newsgroup name.  if the name is too long for the native file
system, use the hash function to come up with a new name.

move that has code out of xp_hash.c and into newsSummarySpec.cpp

in 4.x, this was the only place it was used anyways.

fix my debugging printf.

re-arrange addressbook makefiles in mailnews/makefiles so that people
who use obj-dir can build.


git-svn-id: svn://10.0.0.236/trunk@32483 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 22:21:23 +00:00
waterson%netscape.com
9ee75ce1da Bug 4629. Store an ID= attribute on bookmark folders to ensure that we assign them the same resource in the graph between runs.
git-svn-id: svn://10.0.0.236/trunk@32482 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 22:19:12 +00:00
waterson%netscape.com
354245fef7 Bug 4629. Use PR_Now() to get a 'more unique' starting point for anonymous resources.
git-svn-id: svn://10.0.0.236/trunk@32481 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 22:18:29 +00:00
despotdaemon%netscape.com
eb6a2e6316 Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@32480 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 22:16:24 +00:00
despotdaemon%netscape.com
511da500c2 Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@32479 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 22:15:27 +00:00
despotdaemon%netscape.com
a24d9d25b8 Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@32478 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 22:15:13 +00:00
despotdaemon%netscape.com
65fa901bb3 Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@32477 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 22:14:07 +00:00
despotdaemon%netscape.com
766ff2dec0 Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@32476 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 22:09:43 +00:00
despotdaemon%netscape.com
7d7bc9d49b Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@32475 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 22:06:18 +00:00
waterson%netscape.com
44c9dba247 More bug 6823. Add comments to keep this problem from happening again.
git-svn-id: svn://10.0.0.236/trunk@32474 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 21:23:04 +00:00
waterson%netscape.com
ea935454c0 More bug 6823. Need to have a GetIID() on nsIEventListenerManager.
git-svn-id: svn://10.0.0.236/trunk@32473 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 21:22:02 +00:00
gordon%netscape.com
5a04291c95 Fix for bug#4312. Conditionalized patching of StackSpace so it's only done when patching is allowed. Use FindSymbol to dynamically lookup NewRoutineDescriptor and CallOSTrapUniversalProc so we can link against CarbonLib.
git-svn-id: svn://10.0.0.236/trunk@32470 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 20:08:09 +00:00
hyatt%netscape.com
5693100c68 Fix for the regression described in bug 6823.
git-svn-id: svn://10.0.0.236/trunk@32469 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 19:27:02 +00:00
despotdaemon%netscape.com
209790657a Pseudo-automatic update of changes made by cltbld@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@32468 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 18:54:08 +00:00
despotdaemon%netscape.com
1e8046be24 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@32467 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 18:52:29 +00:00
waterson%netscape.com
9c1c29cef1 Bug 6884. Set up a 'real' flash demo that pulls data from tinderbox.
git-svn-id: svn://10.0.0.236/trunk@32466 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 18:20:09 +00:00
phillip%netscape.com
5e0f381936 fixed the problem that caused url redirects to appear to fail
git-svn-id: svn://10.0.0.236/trunk@32465 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 18:14:59 +00:00
briano%netscape.com
7f1a6d453f Automated update
git-svn-id: svn://10.0.0.236/trunk@32464 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 10:14:45 +00:00
briano%netscape.com
e82cb7df52 Fix for IRIX 5.x.
git-svn-id: svn://10.0.0.236/trunk@32463 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 10:12:30 +00:00
briano%netscape.com
8c88c7ad7d Fixed a bug in the object comparison for IRIX when -c is not used.
git-svn-id: svn://10.0.0.236/trunk@32462 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 09:22:24 +00:00
gagan%netscape.com
11117ef82b Added files for the HTTP Handler.
git-svn-id: svn://10.0.0.236/trunk@32461 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 07:14:19 +00:00
gagan%netscape.com
aec7daa5c4 Changes for the HTTP Handler.
git-svn-id: svn://10.0.0.236/trunk@32460 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 07:12:31 +00:00
gagan%netscape.com
b9261fb86d Changes for the handler.
git-svn-id: svn://10.0.0.236/trunk@32459 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 07:12:11 +00:00
gagan%netscape.com
e13f57ca36 HTTP changes.
git-svn-id: svn://10.0.0.236/trunk@32458 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 06:35:21 +00:00
gagan%netscape.com
c58c477d7d HTTP Handler work.
git-svn-id: svn://10.0.0.236/trunk@32457 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 06:33:17 +00:00
gagan%netscape.com
efc9573668 Miscellaneous fixes.
git-svn-id: svn://10.0.0.236/trunk@32456 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 06:30:21 +00:00
gagan%netscape.com
284149ab16 Added TestProtocols.cpp and renamed nettest to testnet since that was conflicting with nettest in dist.
git-svn-id: svn://10.0.0.236/trunk@32455 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 06:29:13 +00:00
norris%netscape.com
47a21f205f Manifest for jstools.jar to enable use of 1.2 -jar option.
git-svn-id: svn://10.0.0.236/trunk@32454 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 06:13:37 +00:00
gagan%netscape.com
41d1744692 Updates on HTTP handler. This will now move to mozilla/netwerk/protocol/http.
git-svn-id: svn://10.0.0.236/trunk@32453 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 06:12:56 +00:00
sspitzer%netscape.com
9a0b939639 fix for #6790. a=chofmann, r=mscott.
make news messages show up in the message pane on the Mac


git-svn-id: svn://10.0.0.236/trunk@32450 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 04:54:04 +00:00
briano%netscape.com
2054fad41c Added support for NetBSD/arm, SCO OpenServer, and IRIX 5.x.
git-svn-id: svn://10.0.0.236/trunk@32449 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 04:24:30 +00:00
briano%netscape.com
d52c86ccc5 Minor tweak that'll only affect SCO right now (because that's the only platform using it right now).
git-svn-id: svn://10.0.0.236/trunk@32448 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 04:21:25 +00:00
despotdaemon%netscape.com
82889fbb12 Pseudo-automatic update of changes made by dp@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@32447 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 03:51:28 +00:00
warren%netscape.com
7833f90dd4 Jband's fix for forward decls. Approved: Chofmann, reviewed: mang.
git-svn-id: svn://10.0.0.236/trunk@32446 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 03:18:25 +00:00
gordon%netscape.com
d247d9c4ce First Checked In.
git-svn-id: svn://10.0.0.236/trunk@32445 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 02:40:00 +00:00
danm%netscape.com
c19163cc12 LoadMenuItem no longer adds the item to mMenuDelegates. Fixes bug 6446. written by saari, r=danm, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@32444 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 02:34:03 +00:00
matt%netscape.com
6bc4c5b576 Adding window.title stuff for internationalization
git-svn-id: svn://10.0.0.236/trunk@32443 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 01:37:24 +00:00
matt%netscape.com
dd58251e31 Adding composer.xul file for internationalization
git-svn-id: svn://10.0.0.236/trunk@32442 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 01:34:05 +00:00
matt%netscape.com
7be80a6f8c Adding prefs xul files approved by hoffman for internationalization
git-svn-id: svn://10.0.0.236/trunk@32441 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 01:33:11 +00:00
cyeh%netscape.com
ce03d40b14 make the offensive photo link point to terry
git-svn-id: svn://10.0.0.236/trunk@32440 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 01:25:34 +00:00
pierre%netscape.com
0fe41ffe46 #6246 "Styled text is offset leftwards, only on Mac OS", a=cyeh, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@32438 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 00:58:27 +00:00
dveditz%netscape.com
6a55615243 fixing build for Win9x -- profile resources not getting exported. Approved chofmann
git-svn-id: svn://10.0.0.236/trunk@32437 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 00:57:48 +00:00
rogerl%netscape.com
f70f2834fd Continuing JSValue fun.
git-svn-id: svn://10.0.0.236/trunk@32436 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 00:54:26 +00:00
endico%mozilla.org
426e6d0544 "tree" is now alias for "trees" command since its mistyped so often
git-svn-id: svn://10.0.0.236/trunk@32435 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 00:42:55 +00:00
slamm%netscape.com
fcb7109ee1 Avoid loading container urls. Bug #6776. Fix from rjc. Approved by chofmann.
git-svn-id: svn://10.0.0.236/trunk@32434 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 00:42:23 +00:00
slamm%netscape.com
37eeeb48d1 Fix for i18n entities. Bug #6373. Approved by chofmann.
git-svn-id: svn://10.0.0.236/trunk@32433 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 00:39:39 +00:00
norris%netscape.com
24146f1d2e Add methods for getting and setting key-value pairs.
git-svn-id: svn://10.0.0.236/trunk@32432 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 23:54:53 +00:00
pollmann%netscape.com
a6b8074078 Bug 2999: Option values of "" handled correctly now R=vidur A=chofmann
git-svn-id: svn://10.0.0.236/trunk@32431 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 23:25:34 +00:00
vidur%netscape.com
ea99b5ffb8 Fix for bug 6843. Option.selected returns the correct value for non-multi-selects.
git-svn-id: svn://10.0.0.236/trunk@32430 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 23:24:06 +00:00
briano%netscape.com
ba2c36c185 Fixed a bug that only exhibited itself if NO_STATIC_LIB was defined. The tools (../tools) require that libxpt.a gets built no matter what, and that wasn't happening.
git-svn-id: svn://10.0.0.236/trunk@32429 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 23:17:03 +00:00
joki%netscape.com
91abaf6632 Fix for bug 6005, crash on window closing via script. A: chofmann, R: vidur
git-svn-id: svn://10.0.0.236/trunk@32427 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 23:16:53 +00:00
vidur%netscape.com
518d3ab653 Fix for bug 4050 - problem with HTMLSelectElement::Add(). Fix reviewed by Eric Pollmann and approved by CYeh.
git-svn-id: svn://10.0.0.236/trunk@32424 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 21:50:14 +00:00
rogerl%netscape.com
095914ec44 Switching to JSValue throughout. Implementing operators per base type.
git-svn-id: svn://10.0.0.236/trunk@32415 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 21:16:11 +00:00
tague%netscape.com
faaa440343 Fixed bug #6680. Approved by chofmann.
git-svn-id: svn://10.0.0.236/trunk@32410 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 19:21:51 +00:00
tague%netscape.com
dfc83b2766 Fix for #5916 - Input Method Candidate list rendered as blobs. Approved by chofmann.
git-svn-id: svn://10.0.0.236/trunk@32409 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 18:56:48 +00:00
mcafee%netscape.com
7604eff355 Adding Tab test to Debug | XPToolkit. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@32403 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 17:45:15 +00:00
mcafee%netscape.com
bf494e7c8e Exporting tab.xul. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@32402 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 17:44:05 +00:00
mcafee%netscape.com
4475d624e9 Test for tab widget. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@32401 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 17:43:00 +00:00
jfrancis%netscape.com
abe9be9f5a adding layout/html/content/public/MANIFEST to dist build
git-svn-id: svn://10.0.0.236/trunk@32400 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 13:40:18 +00:00
hyatt%netscape.com
cd7befee69 No manifest file was included for this directory. ^%&#^%&#@$
git-svn-id: svn://10.0.0.236/trunk@32399 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 09:13:00 +00:00
rickg%netscape.com
ec1b421792 checkin to fix bugs per hofmann
git-svn-id: svn://10.0.0.236/trunk@32387 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 07:36:54 +00:00
hyatt%netscape.com
7130ae80a6 Fixes for bugs 6746 and 6747. Approved by chofmann@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@32386 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 06:39:37 +00:00
rickg%netscape.com
e488bea319 fixed string usage error
git-svn-id: svn://10.0.0.236/trunk@32385 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 06:19:14 +00:00
matt%netscape.com
c27a89875a Adding internationalization stuff for xul...Appoved by chris
git-svn-id: svn://10.0.0.236/trunk@32384 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 03:58:58 +00:00
gordon%netscape.com
2dc3eb46f0 Fix for bug#6662 "PR_Open does not set hpb.fileParam.ioDirID field".
git-svn-id: svn://10.0.0.236/trunk@32383 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 03:58:42 +00:00
matt%netscape.com
dc92e40330 Adding xul files for prefs
git-svn-id: svn://10.0.0.236/trunk@32382 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 03:35:50 +00:00
gordon%netscape.com
e45d4dcf50 Resolves bug# 4314 "create separate build script for NSPR" by factoring the builds of the dist directory and projects into the minimum necessary for NSPR (collectively referred to as Runtime) and the rest of the Client. Reviewed by Simon Fraser.
git-svn-id: svn://10.0.0.236/trunk@32381 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 03:34:01 +00:00
gordon%netscape.com
f685c26237 Preparation for separate runtime builds on Mac. Added $build{runtime} = 0;
git-svn-id: svn://10.0.0.236/trunk@32380 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 03:31:25 +00:00
briano%netscape.com
e4cdad0924 Fix for BSDI builds.
git-svn-id: svn://10.0.0.236/trunk@32379 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 03:27:20 +00:00
mscott%netscape.com
3b76d4e0e1 Back out ftang's changes to fix show stopper on mailnews: Bug #6740. Right now mailnews is helpless without backing this out.
git-svn-id: svn://10.0.0.236/trunk@32378 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 03:23:44 +00:00
mscott%netscape.com
028805ce34 Remove nsNewsArticleSet.h for sspitzer.
git-svn-id: svn://10.0.0.236/trunk@32377 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 03:18:13 +00:00
mjudge%netscape.com
80a995847b incorrect C++ put class:: in front of method name illegal ASCII C++ MAC picks this up i guess 1 line change
git-svn-id: svn://10.0.0.236/trunk@32373 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 03:01:02 +00:00
briano%netscape.com
c333d68726 Fix for SCO OpenServer builds. _SCO_DS is always set by SCO's compiler.
git-svn-id: svn://10.0.0.236/trunk@32371 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 02:57:37 +00:00
sspitzer%netscape.com
0f2bba7589 removed files: mozilla/mailnews/news/src/nsNNTPArticleSet.cpp
git-svn-id: svn://10.0.0.236/trunk@32370 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 02:57:19 +00:00
sspitzer%netscape.com
2f55b75945 added files: mozilla/mailnews/base/util/nsMsgKeySet.cpp, removed files: mozilla/mailnews/base/util/nsNewsSet.cpp
git-svn-id: svn://10.0.0.236/trunk@32369 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 02:56:02 +00:00
sspitzer%netscape.com
a075788a2b remove duplicate implementations of nsNewsSet. rename nsNewsSet to nsMsgKeySet.
heed the news set.  this fixes #6730 and #6244.


git-svn-id: svn://10.0.0.236/trunk@32368 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 02:54:25 +00:00
danm%netscape.com
e04f933a9b more error checking, a missing GetIID method and another test button should fix bug 6751. a:chofmann
git-svn-id: svn://10.0.0.236/trunk@32366 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 02:24:31 +00:00
rjc%netscape.com
a363c3d579 Fix Unix bustage on previous checking for bug # 6778.
git-svn-id: svn://10.0.0.236/trunk@32365 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 01:55:37 +00:00
akkana%netscape.com
0325b11e9d 6773: an nsresult was being checked before it was initialized. Appv'd chofmann
git-svn-id: svn://10.0.0.236/trunk@32364 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 01:48:12 +00:00
sdagley%netscape.com
f53c9186a2 Fix bug #3534. Now set EOF and file position to requested offset in a seek when the offset is past the current EOF. With this fix pinkerton's workaround in reg.c is no longer required si it has been removed. Reviewed pinkerton, approved chofmann.
git-svn-id: svn://10.0.0.236/trunk@32359 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 01:25:54 +00:00
rjc%netscape.com
343cde0381 Fix bug # 6778. Reviewed by sdagley, approved by chofmann.
The fix consists of checking the proper default namespace on attributes (instead of using the XUL namespace), and adding a XUL template in for the bookmarks panel in the sidebar.


git-svn-id: svn://10.0.0.236/trunk@32358 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 01:21:20 +00:00
briano%netscape.com
94873d50e0 Fix for SCO's brain-damaged C++ (cfront) compiler.
git-svn-id: svn://10.0.0.236/trunk@32355 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 01:01:43 +00:00
mjudge%netscape.com
85ff7d2a69 reviewed sfraser approved choffman 6771 6762 UMR and Extreemly inefficient table selection code fixed simply
git-svn-id: svn://10.0.0.236/trunk@32354 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 00:52:00 +00:00
slamm%netscape.com
cfbf2cd253 Avoid user layers with gecko client. Need to use style sheets instead.
git-svn-id: svn://10.0.0.236/trunk@32353 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 00:36:09 +00:00
rogerl%netscape.com
a58c620f15 New.
git-svn-id: svn://10.0.0.236/trunk@32351 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 00:14:26 +00:00
rogerl%netscape.com
13a12a7a0e Switch to new JSValue hierarchy.
Added logical/bitwise ops.


git-svn-id: svn://10.0.0.236/trunk@32350 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 00:13:38 +00:00
norris%netscape.com
59c0460b7f Remove Java 2 dependency.
git-svn-id: svn://10.0.0.236/trunk@32349 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 23:58:37 +00:00
joki%netscape.com
99c9b77e71 Partial fix for 3289, reduce number of repaints/reflow when mousing over toolbar buttons. A:chofmann
git-svn-id: svn://10.0.0.236/trunk@32348 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 23:28:18 +00:00
sfraser%netscape.com
630ff78826 Fix for bugs 4907, 5317; New blank editor window, and Edit Page. r akkana, kin. a chofmann.
git-svn-id: svn://10.0.0.236/trunk@32347 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 23:27:34 +00:00
beard%netscape.com
c7a927daba bugs #5062, #4703: have to create per view manager rendering contexts, even when the shared drawing surfaces are already big enough.
a=chofmann


git-svn-id: svn://10.0.0.236/trunk@32346 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 23:23:47 +00:00
slamm%netscape.com
a43127ccdd Change last checkin to use legal perl.
git-svn-id: svn://10.0.0.236/trunk@32345 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 23:20:23 +00:00
slamm%netscape.com
566be6aa75 Tighten up the date format for the sidebar panel.
git-svn-id: svn://10.0.0.236/trunk@32343 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 23:14:02 +00:00
slamm%netscape.com
360c999ef3 Update the sidebar panel every minute.
git-svn-id: svn://10.0.0.236/trunk@32342 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 23:07:54 +00:00
evaughan%netscape.com
e737c85970 Fixed some visibility bugs in order to make the tab widget work correctly.
git-svn-id: svn://10.0.0.236/trunk@32341 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 22:14:11 +00:00
harishd%netscape.com
26a1b6b64c Fix for Bug# 6716 - Handling multiple <BODY> tags in a document.
Fix for Bug# 6644 - Illegal content handling in tables - Tweaked.
(R) rickg (A) chofmann


git-svn-id: svn://10.0.0.236/trunk@32340 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 22:14:01 +00:00
harishd%netscape.com
84a87a74ea Fix for bug#6716. For handling multiple <BODY> tags in a document.
(R) rickg, (A) chofmann


git-svn-id: svn://10.0.0.236/trunk@32339 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 22:10:30 +00:00
varada%netscape.com
1db6814e57 help files
git-svn-id: svn://10.0.0.236/trunk@32338 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 21:53:48 +00:00
slamm%netscape.com
2160b10698 Add flash panel data.
git-svn-id: svn://10.0.0.236/trunk@32336 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 21:20:00 +00:00
kin%netscape.com
cee4c90dcf Fix build bustage when --disable-editor is used.
Approved by chofmann@netscape.com and leaf@mozilla.org.


git-svn-id: svn://10.0.0.236/trunk@32335 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 20:26:51 +00:00
dp%netscape.com
c2b4ac8d85 Caret files moved from base/
git-svn-id: svn://10.0.0.236/trunk@32334 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 19:17:07 +00:00
briano%netscape.com
658ee7c60f Automated update
git-svn-id: svn://10.0.0.236/trunk@32320 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 09:59:43 +00:00
briano%netscape.com
6f78a45311 SCO OS5 specific addition.
git-svn-id: svn://10.0.0.236/trunk@32319 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 09:51:11 +00:00
briano%netscape.com
5e5eea3805 Replaced 'true' and 'false' with 'PR_TRUE' and 'PR_FALSE' to make it compile on Unix.
git-svn-id: svn://10.0.0.236/trunk@32318 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 09:13:05 +00:00
hyatt%netscape.com
e830099295 Fix for bug 5911.
git-svn-id: svn://10.0.0.236/trunk@32317 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 08:26:21 +00:00
waterson%netscape.com
6fba724d9a Check for null pointer to avoid crashes in Unix viewer.
git-svn-id: svn://10.0.0.236/trunk@32316 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 08:06:47 +00:00
mcafee%netscape.com
19edd7a6eb Fixing missing toolbar problem. r=danm a=me
git-svn-id: svn://10.0.0.236/trunk@32315 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 07:51:48 +00:00
waterson%netscape.com
2195264b65 Re-wrote to avoid use of NS_WITH_SERVICE macro; otherwise, we'll get annoying asserts in viewer.
git-svn-id: svn://10.0.0.236/trunk@32314 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 07:22:57 +00:00
waterson%netscape.com
34cd29be6b Don't PR_DELETE() an uninitialized pointer.
git-svn-id: svn://10.0.0.236/trunk@32313 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 07:08:38 +00:00
waterson%netscape.com
dfd13a3ca2 Fix crash bugs: failure to initialize m_reg member.
git-svn-id: svn://10.0.0.236/trunk@32312 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 07:02:07 +00:00
mscott%netscape.com
16455599d2 For consistancies sake, back out the rest of hangas's changes until he can
add a selectaddress.xul file.


git-svn-id: svn://10.0.0.236/trunk@32311 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 06:36:36 +00:00
mscott%netscape.com
71835d3564 for consistencies sake, back out the rest of hangas's changes until he
can add a selectaddress.xul file.


git-svn-id: svn://10.0.0.236/trunk@32310 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 06:33:30 +00:00
dveditz%netscape.com
40a71a16e6 AddDirectory() implemented
git-svn-id: svn://10.0.0.236/trunk@32309 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 06:32:16 +00:00
waterson%netscape.com
7b6216c6da Fix Linux ambiguity with nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@32308 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 06:10:17 +00:00
dp%netscape.com
d04ca385bf Reversing previous checkin. It should have happened in XPCOM20_BRANCH
git-svn-id: svn://10.0.0.236/trunk@32305 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 06:04:03 +00:00
dp%netscape.com
6b3eb939ca Revering previous checkin. It should have happned on the XPCOM20_BRANCH
git-svn-id: svn://10.0.0.236/trunk@32304 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:58:54 +00:00
waterson%netscape.com
c72d0600be No longer needed.
git-svn-id: svn://10.0.0.236/trunk@32303 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:57:55 +00:00
waterson%netscape.com
578acf08dd These files are generated now.
git-svn-id: svn://10.0.0.236/trunk@32302 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:57:28 +00:00
dp%netscape.com
b3ad6cd575 Removing gmbase
git-svn-id: svn://10.0.0.236/trunk@32301 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:54:49 +00:00
waterson%netscape.com
25aa4f9895 Bug 5630. Use nsRandomAccessInputStream to read a line at a time (vs. a character at a time). Tip o' the hat to jim_nance@yahoo.com.
git-svn-id: svn://10.0.0.236/trunk@32300 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:53:14 +00:00
dp%netscape.com
f406cee28d Damn it! the previous changes should have happened on the branch. Reversing them
git-svn-id: svn://10.0.0.236/trunk@32298 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:32:58 +00:00
rjc%netscape.com
516af96c29 Apply Scott Putterman's fix for XUL sorting.
git-svn-id: svn://10.0.0.236/trunk@32297 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:30:25 +00:00
ducarroz%netscape.com
0944dea8ea remove META tag (bug 6675)
git-svn-id: svn://10.0.0.236/trunk@32296 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:30:19 +00:00
dp%netscape.com
761e60c611 Adding nsTimer
git-svn-id: svn://10.0.0.236/trunk@32295 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:24:52 +00:00
gayatrib%netscape.com
9051554538 Added code to invoke ProfileManager from command line and turned on the CreateProfileWizard
git-svn-id: svn://10.0.0.236/trunk@32293 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:20:06 +00:00
gayatrib%netscape.com
85b0a2ae2c removed all references to profile as it is a component now
git-svn-id: svn://10.0.0.236/trunk@32292 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:17:32 +00:00
gayatrib%netscape.com
17ec435584 updated to include the new profile manager services
git-svn-id: svn://10.0.0.236/trunk@32291 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:15:15 +00:00
dp%netscape.com
714d9cd092 Moving these files from base
git-svn-id: svn://10.0.0.236/trunk@32290 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:14:43 +00:00
gayatrib%netscape.com
6293ec9e2e updated javascript reflection file that includes the new profile manager services
git-svn-id: svn://10.0.0.236/trunk@32289 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:12:30 +00:00
gayatrib%netscape.com
adff7dfe1c Added method interfaces to support the new profile manager services
git-svn-id: svn://10.0.0.236/trunk@32288 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:08:42 +00:00
gayatrib%netscape.com
9eea30984d Addd prfoile core
git-svn-id: svn://10.0.0.236/trunk@32287 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:06:58 +00:00
gayatrib%netscape.com
bbebdbaba4 idl file for profile core services
git-svn-id: svn://10.0.0.236/trunk@32286 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:03:11 +00:00
pollmann%netscape.com
bf40fe13d4 Bug 3187: Teach Windows select widgets how to insert in the middle of a list (4 of 3)
git-svn-id: svn://10.0.0.236/trunk@32285 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:02:35 +00:00
rickg%netscape.com
1f82bdb300 fixed bug 6597 and added memory allocation conditioning
git-svn-id: svn://10.0.0.236/trunk@32284 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:01:46 +00:00
gayatrib%netscape.com
d2804028ef modified to support profile locations on all platforms
git-svn-id: svn://10.0.0.236/trunk@32283 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:59:38 +00:00
gayatrib%netscape.com
801221dd1a added profileSwitch file to the makefile
git-svn-id: svn://10.0.0.236/trunk@32282 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:48:44 +00:00
dveditz%netscape.com
d434b9b24c nsZipArchive.h
git-svn-id: svn://10.0.0.236/trunk@32281 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:48:19 +00:00
gayatrib%netscape.com
b8d08203e2 new header file to serve as a profile code compilation switch
git-svn-id: svn://10.0.0.236/trunk@32280 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:46:35 +00:00
bienvenu%netscape.com
e89bee40e5 turn on protocol logging in release mode
git-svn-id: svn://10.0.0.236/trunk@32279 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:43:00 +00:00
gayatrib%netscape.com
01c85ce31c Added method interfaces to support the new profile manager services
git-svn-id: svn://10.0.0.236/trunk@32278 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:40:39 +00:00
gayatrib%netscape.com
efb54792ef Added code to support the new profile manager services
git-svn-id: svn://10.0.0.236/trunk@32277 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:38:44 +00:00
pollmann%netscape.com
3573f16191 Bug 3187: Add widget update on option creation and destruction. (3 of 3)
git-svn-id: svn://10.0.0.236/trunk@32276 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:37:41 +00:00
gayatrib%netscape.com
c63e427915 new makefile with all the new ui files
git-svn-id: svn://10.0.0.236/trunk@32275 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:35:39 +00:00
gayatrib%netscape.com
0be1d8e285 rename profile ui
git-svn-id: svn://10.0.0.236/trunk@32274 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:35:10 +00:00
gayatrib%netscape.com
9dee62ff25 contains profile manager ui
git-svn-id: svn://10.0.0.236/trunk@32273 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:33:56 +00:00
gayatrib%netscape.com
2aa3635dc8 profile manager ui
git-svn-id: svn://10.0.0.236/trunk@32272 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:32:45 +00:00
gayatrib%netscape.com
a8a79313de The first navigation frame of create profile wizard
git-svn-id: svn://10.0.0.236/trunk@32271 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:30:58 +00:00
gayatrib%netscape.com
d165c6540e The first navigation frame of create profile wizard called from profile manager
git-svn-id: svn://10.0.0.236/trunk@32270 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:30:22 +00:00
gayatrib%netscape.com
1ad3d01d97 This causes the last page of create profile wizard called from profile manager to return to profile manager
git-svn-id: svn://10.0.0.236/trunk@32269 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:29:03 +00:00
waterson%netscape.com
b821dd8efa Implement nsIDOMNSDocument properly. Factor logic for createElement & createElementWithNamespace.
git-svn-id: svn://10.0.0.236/trunk@32268 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:28:40 +00:00
gayatrib%netscape.com
db5313ab6a New navigation frame that does not have Next button on last page of CreateProfile wizard
git-svn-id: svn://10.0.0.236/trunk@32267 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:24:31 +00:00
gayatrib%netscape.com
2e926b0f3d File to display error messages
git-svn-id: svn://10.0.0.236/trunk@32266 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:22:42 +00:00
gayatrib%netscape.com
f6427501b8 Create profile wizard from profile manager
git-svn-id: svn://10.0.0.236/trunk@32265 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:21:53 +00:00
gayatrib%netscape.com
f018923f09 Added new navigation frames to prevent the coexistence of next finish buttons
git-svn-id: svn://10.0.0.236/trunk@32264 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:20:28 +00:00
gayatrib%netscape.com
0c7e0d0b4d New file to return to profile manager from the last screen
git-svn-id: svn://10.0.0.236/trunk@32263 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:19:33 +00:00
gayatrib%netscape.com
1304cdd3ab Added code to remember the edit field values
git-svn-id: svn://10.0.0.236/trunk@32262 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:17:51 +00:00
gayatrib%netscape.com
ac8ca05247 Modified to include all the new xul files
git-svn-id: svn://10.0.0.236/trunk@32261 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:13:22 +00:00
danm%netscape.com
1a007edda6 adding partial (for DOM elements) chromemask support to apprunner
git-svn-id: svn://10.0.0.236/trunk@32260 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:11:54 +00:00
alecf%netscape.com
94d0973f92 add string-replacement capabilitiy to PrefsCore - now prefs can be dynamically changed on the fly in a given document
git-svn-id: svn://10.0.0.236/trunk@32259 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:11:38 +00:00
alecf%netscape.com
db405c3b81 update XPIDL version of the DOM IDL file
git-svn-id: svn://10.0.0.236/trunk@32258 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:10:42 +00:00
dveditz%netscape.com
dfa3e02e66 new file
git-svn-id: svn://10.0.0.236/trunk@32257 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:06:40 +00:00
waterson%netscape.com
258ae5e444 Re-arrange to fix win32 bustage.
git-svn-id: svn://10.0.0.236/trunk@32255 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:56:19 +00:00
waterson%netscape.com
4d49159014 Use nsIRDFService::GetDataSource(). For now we need to, because you can't Init() the same RDF/XML datasource twice. This kinda sucks because it's synchronous.
git-svn-id: svn://10.0.0.236/trunk@32254 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:54:43 +00:00
briano%netscape.com
6bc37247a3 Fixed the typo that was breaking Unix builds.
git-svn-id: svn://10.0.0.236/trunk@32253 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:48:06 +00:00
pollmann%netscape.com
b6fa9960a1 Bug 3187: Add frame notification on option creation and destruction.
git-svn-id: svn://10.0.0.236/trunk@32252 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:46:25 +00:00
waterson%netscape.com
5e090240e2 Remove #define out PR_LOG_ALWAYS to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@32251 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:46:13 +00:00
varada%netscape.com
51a83d2af2 .aps file
git-svn-id: svn://10.0.0.236/trunk@32250 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:46:05 +00:00
waterson%netscape.com
8434a7ac0f Remove fstream.h to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@32249 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:45:50 +00:00
varada%netscape.com
3ea51694df rc file
git-svn-id: svn://10.0.0.236/trunk@32248 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:45:41 +00:00
pollmann%netscape.com
816fa2970a Bug 3322: onChange won't be sent when the combo box is first clicked now. (2 of x)
git-svn-id: svn://10.0.0.236/trunk@32247 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:37:23 +00:00
varada%netscape.com
68ef87ec21 help files
git-svn-id: svn://10.0.0.236/trunk@32246 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:31:11 +00:00
varada%netscape.com
3f79cd70a9 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@32245 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:25:38 +00:00
davidm%netscape.com
b5cc6cd2be Add code to post fix string to title and to tell the window mediator about title changes
git-svn-id: svn://10.0.0.236/trunk@32244 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:21:19 +00:00
dveditz%netscape.com
e8f14c6429 allow multi-user finds
git-svn-id: svn://10.0.0.236/trunk@32243 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:21:03 +00:00
varada%netscape.com
9a4d4d903a *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@32242 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:17:50 +00:00
davidm%netscape.com
30d38944c3 Added code to tell the window mediator about title changes and to post fix titles with a XUL attribute
git-svn-id: svn://10.0.0.236/trunk@32241 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:04:39 +00:00
blizzard%redhat.com
2b320c95a5 bpp stands for bytes per pixel, not bits per pixel in certian circumstances. make sure that the image data buffer is allocated properly.
git-svn-id: svn://10.0.0.236/trunk@32239 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:04:03 +00:00
davidm%netscape.com
fdd634ea0d Register and Unregister Windows with the window manager
git-svn-id: svn://10.0.0.236/trunk@32238 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:03:48 +00:00
mscott%netscape.com
e4872fe72e Fix build breakage for Hangas by backing out the makefile change until he can check in selectadress.xul.
git-svn-id: svn://10.0.0.236/trunk@32237 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:00:35 +00:00
davidm%netscape.com
43b44d234c Add nsWindowMediator to build and factory
git-svn-id: svn://10.0.0.236/trunk@32236 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 02:57:55 +00:00
davidm%netscape.com
1075fd5a73 Add nsWindowMediator to the build and the factory
git-svn-id: svn://10.0.0.236/trunk@32235 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 02:57:00 +00:00
mscott%netscape.com
75950cb4be Fix Mac build for hangas by backing out his selectaddress.xul change as we don't have that file.
git-svn-id: svn://10.0.0.236/trunk@32234 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 02:56:55 +00:00
mscott%netscape.com
9337e6bd58 fix windows build for hangas. backing out his changes as we don't have a selectaddress.xul file to export.
git-svn-id: svn://10.0.0.236/trunk@32233 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 02:55:45 +00:00
sdagley%netscape.com
0b62b2ac05 Add test to see if async I/O has completed before we actually yield the thread. Part of the I/O improvments tagged under bug #3536. Approved wtc.
git-svn-id: svn://10.0.0.236/trunk@32232 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 02:49:00 +00:00
ssu%netscape.com
99d4c5019c fixing bug #6661
git-svn-id: svn://10.0.0.236/trunk@32231 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 02:26:54 +00:00
hangas%netscape.com
7ba7493123 Added selectaddress.xul
git-svn-id: svn://10.0.0.236/trunk@32230 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 02:19:09 +00:00
davidm%netscape.com
0050102589 Update to compile on windows
git-svn-id: svn://10.0.0.236/trunk@32229 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 02:18:02 +00:00
hangas%netscape.com
6ac1059acf Added addressbook.js to support address picker dialog
git-svn-id: svn://10.0.0.236/trunk@32228 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 02:11:38 +00:00
hangas%netscape.com
c7a9bc7baa Added code for selectaddress.xul (address picker)
git-svn-id: svn://10.0.0.236/trunk@32227 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 02:10:28 +00:00
dveditz%netscape.com
266386bbc8 further bullet-proofing against bad callers
git-svn-id: svn://10.0.0.236/trunk@32226 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 02:02:47 +00:00
bienvenu%netscape.com
ef1b20c6a3 more work on filter actions
git-svn-id: svn://10.0.0.236/trunk@32225 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 01:56:32 +00:00
bienvenu%netscape.com
fc679f3a50 temporarily don't build nsIDOMMsgAppcore.idl
git-svn-id: svn://10.0.0.236/trunk@32224 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 01:47:41 +00:00
beard%netscape.com
1ff80f1a72 bug #5670: renamed nsJNIEnvRef -> GetProxyEnv, got rid of operator ->, added GetSecureEnv. Changed CreateProxyJNI to return NULL if getSecureEnv() returns NULL, so the proxy JNI doesn't have to check for NULL. Makes OJI more robust when a JVM isn't available.
git-svn-id: svn://10.0.0.236/trunk@32223 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 01:44:35 +00:00
beard%netscape.com
c3189f1186 bug #5670: making more robust when MRJ session can't be created.
git-svn-id: svn://10.0.0.236/trunk@32222 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 01:39:51 +00:00
nhotta%netscape.com
92e29ad6ba Changed to pick up result of MIME decoder and unicode converter.
git-svn-id: svn://10.0.0.236/trunk@32221 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 01:37:46 +00:00
pavlov%pavlov.net
381560d068 fix for combo box bustage (bug 6712)
git-svn-id: svn://10.0.0.236/trunk@32220 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 01:37:21 +00:00
wtc%netscape.com
de50d2c987 More SCO OpenServer updates from Brian Ostrom <briano@netscape.com>.
git-svn-id: svn://10.0.0.236/trunk@32219 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 01:28:21 +00:00
jefft%netscape.com
9ce211f3a8 fixed VC++ 5.0 bustage problem
git-svn-id: svn://10.0.0.236/trunk@32218 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 01:15:17 +00:00
srinivas%netscape.com
d4d2f2d4ae Fixed a typo in previous checkin
git-svn-id: svn://10.0.0.236/trunk@32216 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 01:14:12 +00:00
pollmann%netscape.com
d11280c6a1 Bug 3187: Adding an IndexOf method to nsOptionList. We'll use this in the option constructor and destructor (1 of 3)
git-svn-id: svn://10.0.0.236/trunk@32215 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 01:11:48 +00:00
briano%netscape.com
210fb8660e Fix for bug 6650 to handle toolkits other than GTK. Thanks to Jerry.Kirk@Nexwarecorp.com.
git-svn-id: svn://10.0.0.236/trunk@32214 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 01:08:52 +00:00
putterman%netscape.com
20bdfd3714 Generate headers from idl.
git-svn-id: svn://10.0.0.236/trunk@32213 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 01:07:54 +00:00
jefft%netscape.com
f8a56ed92d fixed delete message barf on creating new message header
git-svn-id: svn://10.0.0.236/trunk@32212 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 01:05:05 +00:00
pollmann%netscape.com
90b1164b81 Enabling SIZE attribute change for selects.
git-svn-id: svn://10.0.0.236/trunk@32211 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 01:03:02 +00:00
pollmann%netscape.com
56257e3041 Enabling MULTIPLE attribute change for selects.
git-svn-id: svn://10.0.0.236/trunk@32210 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:59:06 +00:00
srinivas%netscape.com
2bb10f123a OpenVMS port; checkin for "Colin R. Blake" <colin@theblakes.com>.
git-svn-id: svn://10.0.0.236/trunk@32205 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:53:52 +00:00
ducarroz%netscape.com
2e381d9c66 Fix Reply and Forward who wasn't working since new Ender LoadUrl. Implement a temporary HTML support.
git-svn-id: svn://10.0.0.236/trunk@32204 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:52:51 +00:00
ducarroz%netscape.com
28640c9f72 remove the dot in front of Reply, Reply all and Forward.
git-svn-id: svn://10.0.0.236/trunk@32203 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:52:49 +00:00
ducarroz%netscape.com
0918b5d247 Fix ender loading URL problem when doing a reply or forward
git-svn-id: svn://10.0.0.236/trunk@32202 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:52:48 +00:00
ducarroz%netscape.com
69c0c80750 Remove redefinition of GetTimeMac
git-svn-id: svn://10.0.0.236/trunk@32201 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:52:47 +00:00
tague%netscape.com
edb9416a50 Fixed up componet registration
git-svn-id: svn://10.0.0.236/trunk@32200 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:50:19 +00:00
nhotta%netscape.com
b884b5b8cb Bug fix #6680, removed duplicated declarations of the variable res.
git-svn-id: svn://10.0.0.236/trunk@32199 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:49:25 +00:00
wtc%netscape.com
03851cef0f Bugzilla bug #4761: define _LARGEFILE64_SOURCE explicitly if we are
on Solaris 2.6 or 2.7 and using gcc.  Thanks to vdemarco@novazen.com
and mcafee@netscape.com for reporting this problem.


git-svn-id: svn://10.0.0.236/trunk@32198 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:40:28 +00:00
alecf%netscape.com
e65ae33ece fix for #5792 - remove leading '/' that occurs on unix
git-svn-id: svn://10.0.0.236/trunk@32197 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:36:58 +00:00
alecf%netscape.com
5271aa89f7 fix newline at end of file
git-svn-id: svn://10.0.0.236/trunk@32196 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:36:13 +00:00
pollmann%netscape.com
3dd13e0a9b Enabling cols and rows attribute change for framesets. (1 of 3)
git-svn-id: svn://10.0.0.236/trunk@32195 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:34:56 +00:00
alecf%netscape.com
a279a7a81a fix up this datasource to support the AccountManager:
- add a new arc out from each account accounts "Settings"
- add new properties on Settings - Main, Advanced, Server, Copies
- add arcs out from Main, Advanced, Server, and Copies for Name and PageTag


git-svn-id: svn://10.0.0.236/trunk@32194 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:34:48 +00:00
alecf%netscape.com
2344b9a917 remove unused variable
git-svn-id: svn://10.0.0.236/trunk@32193 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:30:13 +00:00
alecf%netscape.com
e4e38fbc72 add FilterEditor to windows build
git-svn-id: svn://10.0.0.236/trunk@32192 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:27:56 +00:00
alecf%netscape.com
595f8b0db4 ok, ok, cool RGB is going away
git-svn-id: svn://10.0.0.236/trunk@32191 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:25:26 +00:00
alecf%netscape.com
1c96e551ca switch over to titledbuttons, plus some minor tweaks
git-svn-id: svn://10.0.0.236/trunk@32190 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:24:47 +00:00
ftang%netscape.com
7d0cd1a7e1 get charset information from nsIWebShell to implement META charset reload
git-svn-id: svn://10.0.0.236/trunk@32189 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:24:41 +00:00
ftang%netscape.com
13637ff3b0 call the new ReloadDocument api from nsIWebShellServices
git-svn-id: svn://10.0.0.236/trunk@32188 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:23:59 +00:00
alecf%netscape.com
fb8408bdda fix up the tree widget to look a little nicer
git-svn-id: svn://10.0.0.236/trunk@32187 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:23:39 +00:00
ftang%netscape.com
f55cd93707 add method to push necessary informaiton to implement Meta charset observeration
git-svn-id: svn://10.0.0.236/trunk@32186 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:23:03 +00:00
alecf%netscape.com
a0fd39c794 first cut at a message filter edito
git-svn-id: svn://10.0.0.236/trunk@32185 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:21:55 +00:00
peterl%netscape.com
31183b200b fix mac, better whitespace after escape handling
git-svn-id: svn://10.0.0.236/trunk@32184 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:18:30 +00:00
matt%netscape.com
3cdde75401 Adding prefswindow.xul for internationalization
git-svn-id: svn://10.0.0.236/trunk@32183 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:17:12 +00:00
slamm%netscape.com
9e37379393 Remove shortcut column from sidebar panel.
git-svn-id: svn://10.0.0.236/trunk@32182 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:15:46 +00:00
alecf%netscape.com
8b849e5a45 update account manager to use the account manager data source
git-svn-id: svn://10.0.0.236/trunk@32180 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:12:48 +00:00
briano%netscape.com
1323fcc79a Fixed the handling of the tests directory. Only go there if ENABLE_TESTS is defined.
git-svn-id: svn://10.0.0.236/trunk@32179 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:07:00 +00:00
despotdaemon%netscape.com
c9ff599b14 Pseudo-automatic update of changes made by dp@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@32178 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:06:03 +00:00
peterl%netscape.com
61bdcd6a95 fixed ambiguous cast for nsCOMPtr on linux
git-svn-id: svn://10.0.0.236/trunk@32177 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:05:40 +00:00
mscott%netscape.com
f6673c61f4 cleanup makefile.
git-svn-id: svn://10.0.0.236/trunk@32176 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:02:29 +00:00
peterl%netscape.com
fa00846804 added nsICSSLoader
git-svn-id: svn://10.0.0.236/trunk@32175 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 00:00:58 +00:00
mscott%netscape.com
8427db7291 Updates with msgcoreutil building as a dll.
git-svn-id: svn://10.0.0.236/trunk@32174 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:59:45 +00:00
mscott%netscape.com
f4b55cfac2 clean up makefile, remove unnecessary define.
git-svn-id: svn://10.0.0.236/trunk@32173 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:59:16 +00:00
mscott%netscape.com
38eaa8d5a4 remove linkage against rdfutil_s. we don't need it anymore.
git-svn-id: svn://10.0.0.236/trunk@32172 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:57:37 +00:00
mscott%netscape.com
3311e09e62 Make base\util build as a dll. This includes defining IMPL_NS_MSG_BASE and adding makefile code to generate the dll.
git-svn-id: svn://10.0.0.236/trunk@32171 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:56:48 +00:00
mscott%netscape.com
735a8482d0 Add NS_MSG_BASE to class declaration to help make base\util build as a dll on win32.
git-svn-id: svn://10.0.0.236/trunk@32170 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:55:39 +00:00
joki%netscape.com
80216e03d8 added files: mozilla/dom/src/events/nsJSUIEvent.cpp
git-svn-id: svn://10.0.0.236/trunk@32169 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:51:30 +00:00
joki%netscape.com
5ff7e26f51 Breaking nsIDOMEvent out into nsIDOMEvent and nsIDOMUIEvent.
git-svn-id: svn://10.0.0.236/trunk@32168 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:51:04 +00:00
despotdaemon%netscape.com
d60619287e Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@32167 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:49:40 +00:00
despotdaemon%netscape.com
00817dfc89 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@32166 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:48:53 +00:00
putterman%netscape.com
c006f7db14 Show "???" when message counts are unknown. Use RDF collation key sorting.
git-svn-id: svn://10.0.0.236/trunk@32165 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:48:15 +00:00
mscott%netscape.com
3e64b2deb0 define NS_MSG_BASE which is used as a prefix in front of all functions & classes in base\util. This macro applies to win32 only right now. It is used to declare things as export when building the file and import when we are linking against the file. This helps us make msgcoreutil build as a dynamic library on win32.
git-svn-id: svn://10.0.0.236/trunk@32164 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:46:23 +00:00
vidur%netscape.com
d44b617f1f Fix for bug 3387. document.opened pages now get the URL of their source document.
git-svn-id: svn://10.0.0.236/trunk@32163 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:44:55 +00:00
joki%netscape.com
51e46314a9 Breaking nsIDOMEvent interface into nsIDOMEvent and nsIDOMUIEvent to be up to spec with DOM Lvl2
git-svn-id: svn://10.0.0.236/trunk@32162 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:41:49 +00:00
peterl%netscape.com
171c9be5e3 added files: mozilla/layout/html/style/src/nsCSSLoader.cpp
git-svn-id: svn://10.0.0.236/trunk@32161 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:24:20 +00:00
jefft%netscape.com
0d0b5978aa set default maximum connections to be 5 instead of 2
git-svn-id: svn://10.0.0.236/trunk@32160 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:24:07 +00:00
waterson%netscape.com
a7112c4071 Bug 5630. Use nsRandomAccessInputStream to improve read performance. Also, use nsIProfile::GetCurrentProfileDir() to locate the history files.
git-svn-id: svn://10.0.0.236/trunk@32159 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:20:31 +00:00
waterson%netscape.com
11d52f0cf0 Remove unnecessary #include of jsapi.h
git-svn-id: svn://10.0.0.236/trunk@32158 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:19:28 +00:00
hangas%netscape.com
2669e7d5bd Make sure that we print some data string, even if INTL functions fail. Fixes Mac crasher. Checked in for putterman.
git-svn-id: svn://10.0.0.236/trunk@32157 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:17:26 +00:00
peterl%netscape.com
d564d38b2f added css loader support
git-svn-id: svn://10.0.0.236/trunk@32156 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:16:26 +00:00
peterl%netscape.com
d3c3b79635 removed extra call to did set style context
git-svn-id: svn://10.0.0.236/trunk@32155 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:15:51 +00:00
peterl%netscape.com
dd4beafc1d added css loader
git-svn-id: svn://10.0.0.236/trunk@32154 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:15:10 +00:00
peterl%netscape.com
3130c85e81 added clone & insert child support
added drag-n-drop pseudo support


git-svn-id: svn://10.0.0.236/trunk@32153 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:14:29 +00:00
jefft%netscape.com
87c730467e backout the previous checkin for using nsCOMPtr; using nsVoidArray is by design
git-svn-id: svn://10.0.0.236/trunk@32152 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:14:05 +00:00
peterl%netscape.com
5bb0c3cacc fixed escape parsing
git-svn-id: svn://10.0.0.236/trunk@32151 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:13:27 +00:00
peterl%netscape.com
b7aff5bf82 made border style a reflow hint
git-svn-id: svn://10.0.0.236/trunk@32150 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:12:52 +00:00
peterl%netscape.com
5c9c0822b4 added css loader for child sheet
added drag pseudo classes
fixed background parsing bug


git-svn-id: svn://10.0.0.236/trunk@32149 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:12:17 +00:00
peterl%netscape.com
986a0eeaa9 added drag-n-drop psuedo classes
git-svn-id: svn://10.0.0.236/trunk@32148 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:10:53 +00:00
norris%netscape.com
9abc6cdfb8 Fix bug 6313 'Rhino: "new Function" doesn't work properly with superglobal'
Also clean up Context.exit() to be more consistent with Context.enter(),
and make SecuritySupport work with JavaAdapter.


git-svn-id: svn://10.0.0.236/trunk@32147 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:10:20 +00:00
peterl%netscape.com
578aa44744 added insert child sheet & clone methods
git-svn-id: svn://10.0.0.236/trunk@32146 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:10:09 +00:00
peterl%netscape.com
70aa3c9c01 added set child loader
git-svn-id: svn://10.0.0.236/trunk@32145 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:09:47 +00:00
peterl%netscape.com
9bd2b9bacf added drag pseudo classes
git-svn-id: svn://10.0.0.236/trunk@32144 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:09:21 +00:00
peterl%netscape.com
8b5f7b3982 added insert style sheet
git-svn-id: svn://10.0.0.236/trunk@32143 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:08:14 +00:00
peterl%netscape.com
880965a09e added css loader accessor
git-svn-id: svn://10.0.0.236/trunk@32142 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:07:53 +00:00
wtc%netscape.com
00517b5353 On SCO OpenServer 5, ENOBUFS and ENOSR are defined to be the
same thing.  So check whether they are equal.  Thanks to
Brian Ostrom <briano@netscape.com> for the bug fix.


git-svn-id: svn://10.0.0.236/trunk@32141 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:07:00 +00:00
peterl%netscape.com
77dcc5b017 added css loader support
added insert style sheet support


git-svn-id: svn://10.0.0.236/trunk@32140 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:06:31 +00:00
peterl%netscape.com
16649009d7 moved style sheet loading into css loader
git-svn-id: svn://10.0.0.236/trunk@32139 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:05:43 +00:00
peterl%netscape.com
e0c6c93da5 use css loader to get css parser for style attribute
git-svn-id: svn://10.0.0.236/trunk@32138 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:04:44 +00:00
peterl%netscape.com
c39d4db3d8 added css loader
git-svn-id: svn://10.0.0.236/trunk@32137 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:04:12 +00:00
peterl%netscape.com
38d391cd8b fixed change hint for border style
git-svn-id: svn://10.0.0.236/trunk@32136 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:03:29 +00:00
peterl%netscape.com
48831354ab added insert style sheet
fixed some observer notifications


git-svn-id: svn://10.0.0.236/trunk@32135 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:03:04 +00:00
peterl%netscape.com
9b48d494aa added insert style sheet method
git-svn-id: svn://10.0.0.236/trunk@32134 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:02:25 +00:00
peterl%netscape.com
0c7573e961 added css loader support
fixed document observer calls


git-svn-id: svn://10.0.0.236/trunk@32133 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:02:00 +00:00
norris%netscape.com
7c96700fcf Fix formatting.
git-svn-id: svn://10.0.0.236/trunk@32132 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:55:11 +00:00
norris%netscape.com
ecd847a6ac Clearer formatting.
git-svn-id: svn://10.0.0.236/trunk@32131 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:54:15 +00:00
rogerl%netscape.com
3e84c63771 New functionality
git-svn-id: svn://10.0.0.236/trunk@32130 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:50:53 +00:00
rogerl%netscape.com
3c0a85e0de New stuff - better handle on breaks etc, started try/catch
git-svn-id: svn://10.0.0.236/trunk@32129 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:49:59 +00:00
cata%netscape.com
0f957021ce Modified UTF-7 converters added.
git-svn-id: svn://10.0.0.236/trunk@32128 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:43:57 +00:00
slamm%netscape.com
879feefbc6 Ignore missing files (i.e. the dist directory is missing). General cleanup
git-svn-id: svn://10.0.0.236/trunk@32127 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:42:44 +00:00
jefft%netscape.com
936261fa15 call load url from imap incoming server
git-svn-id: svn://10.0.0.236/trunk@32126 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:39:32 +00:00
cata%netscape.com
614b3aef26 Modified UTF-7 converers added to the buid.
git-svn-id: svn://10.0.0.236/trunk@32125 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:38:26 +00:00
jefft%netscape.com
23329a5ec2 more on cached connections work -- urlQueue now implemented on nsImapIncomingServer instead of nsImapService; LoadNextQueuedUrl() will be triggered when finishing a running url
git-svn-id: svn://10.0.0.236/trunk@32124 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:38:25 +00:00
cata%netscape.com
2b2c1f127d added files: mozilla/intl/uconv/ucvlatin/nsUnicodeToMUTF7.cpp, mozilla/intl/uconv/ucvlatin/nsMUTF7ToUnicode.cpp
git-svn-id: svn://10.0.0.236/trunk@32123 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:37:47 +00:00
cata%netscape.com
30d3f19f65 Created.
git-svn-id: svn://10.0.0.236/trunk@32122 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:36:25 +00:00
jefft%netscape.com
9fd1d0a92d more on cached connections - removed CreateImapConnection(), LoadNextQueuedUrl() method
git-svn-id: svn://10.0.0.236/trunk@32121 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:34:41 +00:00
jefft%netscape.com
13c13360c9 more on cached connections - added TellThreadToDie() method
git-svn-id: svn://10.0.0.236/trunk@32120 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:33:49 +00:00
jefft%netscape.com
59d4a5b3d6 more on cached imap connections work - added Get/SetMaximumConnectionsNumber(), GetImapConnectionAndLoadUrl(), LoadNextQueuedUrl(), RemoveConnection() method
git-svn-id: svn://10.0.0.236/trunk@32119 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:32:46 +00:00
norris%netscape.com
baca4771b2 Add submission:
Subject:
            Re: Modified Context.java
       Date:
            Sat, 15 May 1999 08:01:37 +0000
      From:
            "Ian D. Stewart" <idstewart@softhome.net>
        To:
            Norris Boyd <norris@netscape.com>
 References:
            1 , 2 , 3 , 4 , 5




Ian D. Stewart wrote:

  Norris Boyd wrote:




    Can I help with EventListener collector?

  Actually, I have a working implementation complete (attatched), but by all means, feel free to add any functionality you feel
  may be missing, or to tweak the code .

Norris,

After I sent I my last e-mail, I noticed some potential issues using Object[] in ListenerCollection.getListeners(Class iface).
I'm attatching a new version, which uses a Vector object.  This should resolve those issues.


Ian


git-svn-id: svn://10.0.0.236/trunk@32118 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:32:25 +00:00
jefft%netscape.com
bf5f974f6c use nsCOMPtr for m_listeners
git-svn-id: svn://10.0.0.236/trunk@32117 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:30:10 +00:00
mjudge%netscape.com
82364c7531 oops fogot default boolean for non start or end node selection
git-svn-id: svn://10.0.0.236/trunk@32116 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:29:27 +00:00
sfraser%netscape.com
752634424b Implement nsCaret::GetWindowRelativeCoordinates for IME
git-svn-id: svn://10.0.0.236/trunk@32115 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:24:55 +00:00
law%netscape.com
8a1d815009 Fix bustage on Win95/Win98
git-svn-id: svn://10.0.0.236/trunk@32113 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:20:19 +00:00
law%netscape.com
08e59dff74 Minor improvements
git-svn-id: svn://10.0.0.236/trunk@32111 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:18:16 +00:00
radha%netscape.com
806caa2a3c Fix for bug # 5906. Update the URLbar with the url only if the page was loaded succesfully.
git-svn-id: svn://10.0.0.236/trunk@32109 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:14:33 +00:00
alecf%netscape.com
e1ffcac441 check return values when adding stuff to the history graph.
a=waterson


git-svn-id: svn://10.0.0.236/trunk@32108 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:11:35 +00:00
radha%netscape.com
2242257bef Hook up print button to BrowserPrint()
Give  a id to the "Stop" menuitem.


git-svn-id: svn://10.0.0.236/trunk@32107 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:11:20 +00:00
saari%netscape.com
d1ab6c3d35 fixing a release bug for Pavlov
git-svn-id: svn://10.0.0.236/trunk@32106 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:53:58 +00:00
karnaze%netscape.com
d59987018b new frameset regression tests
git-svn-id: svn://10.0.0.236/trunk@32105 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:52:57 +00:00
sspitzer%netscape.com
ec347d3e88 cvs ignorage for the generated Makefiles
git-svn-id: svn://10.0.0.236/trunk@32104 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:50:31 +00:00
rods%netscape.com
4c79f4e847 added nsFontRetrieverService
git-svn-id: svn://10.0.0.236/trunk@32103 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:49:47 +00:00
rods%netscape.com
3cfe0e08c1 Fixed up pointers to ref in params
git-svn-id: svn://10.0.0.236/trunk@32102 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:49:20 +00:00
rods%netscape.com
876efbebfb Adding nsFontRetrieverService and nsFontSizeIterator to build
git-svn-id: svn://10.0.0.236/trunk@32100 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:48:57 +00:00
rods%netscape.com
69aea6aefa adding nsIFontRetriverService and nsIFontName & Size iterator interfaces
git-svn-id: svn://10.0.0.236/trunk@32099 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:47:17 +00:00
sspitzer%netscape.com
5d61031095 changes to get news to work at the same time as imap and pop. the news part of the fix for #6405
git-svn-id: svn://10.0.0.236/trunk@32098 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:46:56 +00:00
beard%netscape.com
512e2c9a82 bug #5093: added call to Invalidate() when changing the position of scrollbar thumb.
git-svn-id: svn://10.0.0.236/trunk@32097 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:45:55 +00:00
beard%netscape.com
5ea7452f80 bug #5093: removed redundant calls to nsWidget::Invalidate(), fixed in nsScrollbar.cpp instead.
git-svn-id: svn://10.0.0.236/trunk@32096 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:45:46 +00:00
davidm%netscape.com
20d78b0ec9 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@32095 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:44:52 +00:00
rods%netscape.com
5bd5af0abf Changed pointer to refs for name params
git-svn-id: svn://10.0.0.236/trunk@32094 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:43:22 +00:00
warren%netscape.com
a89e09d70c Added
git-svn-id: svn://10.0.0.236/trunk@32093 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:43:13 +00:00
davidm%netscape.com
e4b72ea23c File Removed.
git-svn-id: svn://10.0.0.236/trunk@32092 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:42:21 +00:00
danm%netscape.com
594f95b126 removing debugging cruft accidentally left in
git-svn-id: svn://10.0.0.236/trunk@32091 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:41:41 +00:00
davidm%netscape.com
a3d105efae Adding nsIWindowMediator.h
git-svn-id: svn://10.0.0.236/trunk@32090 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:41:13 +00:00
davidm%netscape.com
103862f6ae removing nsIWindowMediator.h
git-svn-id: svn://10.0.0.236/trunk@32089 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:41:05 +00:00
rods%netscape.com
de7c94af93 Added delete of array in destructor
git-svn-id: svn://10.0.0.236/trunk@32088 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:40:33 +00:00
danm%netscape.com
2c28021cb8 adding 'do not localize' comments
git-svn-id: svn://10.0.0.236/trunk@32087 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:39:23 +00:00
davidm%netscape.com
58c7d9bd34 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@32086 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:38:47 +00:00
mscott%netscape.com
8c4a381879 Remove NS_RDF from this class declaration. This was giving us link warnings in every dll that linked with this library on windows. Why? When we link against the library, the macro is defining the class as an imported class; however because the library is statically linked, it really is a local declaration.
a=waterson


git-svn-id: svn://10.0.0.236/trunk@32084 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:28:43 +00:00
mscott%netscape.com
ce7f3e87d3 fix for bug #6219 -- send data every 2K so we don't fill up our internal buffer when sending a message.
git-svn-id: svn://10.0.0.236/trunk@32083 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:25:55 +00:00
mscott%netscape.com
1dabd287b7 Imap was removed from the build when the address book stuff was added yesterday!! re-add it back in.
git-svn-id: svn://10.0.0.236/trunk@32082 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:24:55 +00:00
valeski%netscape.com
55f42c3285 nsFtpConnectionThread now implements (not yet properly) nsICancelable.
git-svn-id: svn://10.0.0.236/trunk@32081 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:01:49 +00:00
valeski%netscape.com
bc1b396aa4 added the correct EventQueueCID
git-svn-id: svn://10.0.0.236/trunk@32080 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 20:56:25 +00:00
valeski%netscape.com
f6b4f57ea0 changed us over to teh correct EventQueueServiceCID
git-svn-id: svn://10.0.0.236/trunk@32079 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 20:53:38 +00:00
valeski%netscape.com
acb9c1b110 added eventQueue CID registration and am now passing in an EventQueue in to NewConnection
git-svn-id: svn://10.0.0.236/trunk@32078 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 20:52:07 +00:00
leaf%mozilla.org
4e6a65e4b2 backing out dveditz's changes (seems to be breaking mac)
git-svn-id: svn://10.0.0.236/trunk@32077 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 18:55:34 +00:00
blizzard%redhat.com
1b6077d184 catch up with changes to GTK font code
git-svn-id: svn://10.0.0.236/trunk@32076 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 15:39:41 +00:00
blizzard%redhat.com
cf68f7d7ab squelch warnings
git-svn-id: svn://10.0.0.236/trunk@32075 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 15:28:36 +00:00
dveditz%netscape.com
0087c0c77e missing lock
git-svn-id: svn://10.0.0.236/trunk@32074 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 14:49:02 +00:00
dveditz%netscape.com
5dc525a78a NSReg.h
git-svn-id: svn://10.0.0.236/trunk@32073 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 14:46:02 +00:00
pierre%netscape.com
0619f79267 Check mRootView in RenderViews to fix a crash with Photon. Patch from Jerry.Kirk@Nexwarecorp.com.
git-svn-id: svn://10.0.0.236/trunk@32072 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 14:37:57 +00:00
rods%netscape.com
bd15e6f4fd Added IsFontScaleable method
git-svn-id: svn://10.0.0.236/trunk@32071 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 13:46:49 +00:00
pierre%netscape.com
f46fadfca9 #5949 "Frequent resizing of window causes apprunner to stop drawing"
git-svn-id: svn://10.0.0.236/trunk@32070 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 13:14:46 +00:00
jfrancis%netscape.com
850244ea34 collapsed ranges now result in empty iterators over them
git-svn-id: svn://10.0.0.236/trunk@32069 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 11:11:14 +00:00
hyatt%netscape.com
5874d635ea Popup arbitrary XUL lives!
git-svn-id: svn://10.0.0.236/trunk@32068 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 10:29:48 +00:00
hyatt%netscape.com
7b8c7b11e4 Seems pretty basic to me. Not sure what the heck this function was trying
to be before.


git-svn-id: svn://10.0.0.236/trunk@32067 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 10:27:31 +00:00
hyatt%netscape.com
1b8c11755c Disabling the cloned style sheets. This is causing trouble. Will probably have
to force them to be reparsed.


git-svn-id: svn://10.0.0.236/trunk@32066 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 10:21:11 +00:00
hyatt%netscape.com
6e68596b53 Fixes.
git-svn-id: svn://10.0.0.236/trunk@32065 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 09:28:00 +00:00
dp%netscape.com
0602d256ab undoing previous change. It should have happened on the XPCOM20 BRANCH
git-svn-id: svn://10.0.0.236/trunk@32063 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 09:24:08 +00:00
dp%netscape.com
08898c02b7 Rolling over from initial XPCOM 2.0 changes
git-svn-id: svn://10.0.0.236/trunk@32062 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 09:19:05 +00:00
dp%netscape.com
35f66733c1 Initial version
git-svn-id: svn://10.0.0.236/trunk@32061 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 09:11:01 +00:00
hyatt%netscape.com
9a95f742b8 Oh yeah, baby.
git-svn-id: svn://10.0.0.236/trunk@32060 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 09:03:53 +00:00
hyatt%netscape.com
4c4f807908 Should all work. (Yeah, right.)
git-svn-id: svn://10.0.0.236/trunk@32059 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 09:03:26 +00:00
mccabe%netscape.com
09745d5cb3 Remove lecacy hack that moved .xpt files from over in js/src/xpconnect to components, now that xpconnect exports its own .xpt files.
git-svn-id: svn://10.0.0.236/trunk@32058 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 09:01:01 +00:00
hyatt%netscape.com
7028d1b5a5 GetIID. ARGH!
git-svn-id: svn://10.0.0.236/trunk@32057 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 08:37:54 +00:00
hyatt%netscape.com
0d7c115896 Popup listener knows how to be a blur listener.
git-svn-id: svn://10.0.0.236/trunk@32056 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 08:37:41 +00:00
hyatt%netscape.com
249db4a226 Taking advantage of Nisheeth and Rick's new method. Thanks guys!
git-svn-id: svn://10.0.0.236/trunk@32055 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 08:04:37 +00:00
hyatt%netscape.com
f309c8582f Typo.
git-svn-id: svn://10.0.0.236/trunk@32054 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 07:42:31 +00:00
hyatt%netscape.com
aca13cb5e1 Working on popup documents.
git-svn-id: svn://10.0.0.236/trunk@32053 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 07:40:59 +00:00
law%netscape.com
2f74243567 New File->Open dialog
git-svn-id: svn://10.0.0.236/trunk@32052 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 07:23:24 +00:00
law%netscape.com
2d75737602 New File->Open dialog
git-svn-id: svn://10.0.0.236/trunk@32051 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 07:13:15 +00:00
rjc%netscape.com
95b791809d Make sure that the bookmark panel includes the right RDF datasources! Also, show the bookmark shortcut column.
git-svn-id: svn://10.0.0.236/trunk@32050 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 07:02:06 +00:00
rjc%netscape.com
5ab8c67277 Get rid of a few warnings.
git-svn-id: svn://10.0.0.236/trunk@32049 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 06:34:15 +00:00
rjc%netscape.com
d7236ba605 More XUL template changes. Also re-enabling XUL_TEMPLATES.
git-svn-id: svn://10.0.0.236/trunk@32048 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 06:27:04 +00:00
rjc%netscape.com
7fae3a5430 Even more support for collation keys.
git-svn-id: svn://10.0.0.236/trunk@32047 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 06:19:04 +00:00
hyatt%netscape.com
ab58434d2a Fix for bug 6459.
git-svn-id: svn://10.0.0.236/trunk@32046 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 06:17:51 +00:00
hyatt%netscape.com
1310d3ed52 Had the wrong integer value for the right mouse button.
git-svn-id: svn://10.0.0.236/trunk@32045 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 06:05:43 +00:00
waterson%netscape.com
28cf421846 Fix historyComponent.mcp -> history.mcp, etc.
git-svn-id: svn://10.0.0.236/trunk@32044 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 05:47:00 +00:00
waterson%netscape.com
cafeb46339 Enable link coloring.
git-svn-id: svn://10.0.0.236/trunk@32043 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 05:21:37 +00:00
karnaze%netscape.com
d6b03337dc support for css padding in table cells
git-svn-id: svn://10.0.0.236/trunk@32042 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 05:18:16 +00:00
sspitzer%netscape.com
dd79ec16b3 fix solaris build bustage.
git-svn-id: svn://10.0.0.236/trunk@32041 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 05:13:48 +00:00
sspitzer%netscape.com
966410fc1b the target is Makefile, not Makefile.in
git-svn-id: svn://10.0.0.236/trunk@32040 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 05:12:24 +00:00
matt%netscape.com
eeab9a8429 Fixing spelling error
git-svn-id: svn://10.0.0.236/trunk@32039 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 04:48:07 +00:00
pierre%netscape.com
c9f34f1ca6 removed last week's hack to access the 'ldes' resource, replaced it with the new nsMacResources
git-svn-id: svn://10.0.0.236/trunk@32038 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 04:43:03 +00:00
pierre%netscape.com
d4c31955ec use local resources in SetCursor
git-svn-id: svn://10.0.0.236/trunk@32037 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 04:41:03 +00:00
pierre%netscape.com
6c7400ec77 added nsMacResources, changed DLL entry points to __initializeResources and __terminateResources
git-svn-id: svn://10.0.0.236/trunk@32036 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 04:40:33 +00:00
pierre%netscape.com
0df62da469 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@32035 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 04:37:22 +00:00
matt%netscape.com
68eea8afae *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@32034 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 04:34:15 +00:00
waterson%netscape.com
f6ee21e30b Add history component.
git-svn-id: svn://10.0.0.236/trunk@32033 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 04:12:21 +00:00
waterson%netscape.com
48d327130b Move global history implementation out of appshell and into xpfe/components.
git-svn-id: svn://10.0.0.236/trunk@32032 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 04:11:43 +00:00
waterson%netscape.com
57fae59e1a Add xpfe/components/history to the build.
git-svn-id: svn://10.0.0.236/trunk@32031 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 04:10:42 +00:00
waterson%netscape.com
b603a5f3a0 Moved nsHistoryDataSource implementation info xpfe/components/history.
git-svn-id: svn://10.0.0.236/trunk@32030 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 04:10:09 +00:00
waterson%netscape.com
a55a62ae49 Moved nsHistoryDataSource implementation into xpfe/components/history.
git-svn-id: svn://10.0.0.236/trunk@32029 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 04:09:44 +00:00
evaughan%netscape.com
2a4db9892a Fixed box insertion removeal bug.
git-svn-id: svn://10.0.0.236/trunk@32028 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 04:06:52 +00:00
waterson%netscape.com
183b38a5ea Remove extraneous whitespace.
git-svn-id: svn://10.0.0.236/trunk@32027 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 03:54:25 +00:00
waterson%netscape.com
0a67db947b Use nsServiceManager to get singleton datasources instead of nsComponentManager.
git-svn-id: svn://10.0.0.236/trunk@32026 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 03:53:18 +00:00
slamm%netscape.com
e8068b7cce oops. Make sure it's debug only.
git-svn-id: svn://10.0.0.236/trunk@32025 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 03:51:11 +00:00
slamm%netscape.com
2fbc2039de Add some debugging support.
git-svn-id: svn://10.0.0.236/trunk@32024 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 03:46:20 +00:00
sspitzer%netscape.com
a9f1826ac3 quick, fix my build bustage before anyone else sees it!
git-svn-id: svn://10.0.0.236/trunk@32023 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 03:43:24 +00:00
waterson%netscape.com
0644ede4df Add history component makefiles.
git-svn-id: svn://10.0.0.236/trunk@32022 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 03:40:25 +00:00
sspitzer%netscape.com
392b1b6ed5 "fat" is "NewsFAT" on the mac. turn my comment into an annoying printf, so
I'll be bugged to fix it.


git-svn-id: svn://10.0.0.236/trunk@32021 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 03:35:28 +00:00
waterson%netscape.com
0d50048950 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@32020 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 03:15:19 +00:00
pierre%netscape.com
2727e1270a updated comments the Profiler
git-svn-id: svn://10.0.0.236/trunk@32019 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 03:05:07 +00:00
pierre%netscape.com
5fcc506a0d Moved the Profiler stuff into separate targets in NSRuntime. Udapted the build scripts.
git-svn-id: svn://10.0.0.236/trunk@32018 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 02:59:03 +00:00
waterson%netscape.com
00b0219976 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@32017 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 02:53:28 +00:00
karnaze%netscape.com
f9c6ef5e22 new regression tests
git-svn-id: svn://10.0.0.236/trunk@32016 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 02:46:51 +00:00
ftang%netscape.com
93add79105 fix misusage of nsAutoString w/ GetUnicode() method, which cause trouble in UNIX
git-svn-id: svn://10.0.0.236/trunk@32015 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 02:28:33 +00:00
alecf%netscape.com
a8e057659b fix some warnings, get rid of variable named index() and cache value of GetSize()
git-svn-id: svn://10.0.0.236/trunk@32014 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 02:22:56 +00:00
mccabe%netscape.com
08bf172e28 Only alloc space for interface records if we actually have interfaces; fixes a calloc(1,0) bug that was breaking the AIX build. (Thanks to Jim Dunn <jdunn@netscape.com> for finding this, and to Mike Shaver <shaver@netscape.com> for contributing the patch.
The xpcom tree remains closed, but this patch gets in for m6 by special dispensation.

A=leaf,dp


git-svn-id: svn://10.0.0.236/trunk@32011 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 02:10:05 +00:00
vidur%netscape.com
7e5b8dacb8 Partial fix for bug 6554. document.writing the body from a script in the head now works.
git-svn-id: svn://10.0.0.236/trunk@32010 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 02:08:04 +00:00
despotdaemon%netscape.com
d3862f711b Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@32009 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 02:07:38 +00:00
ftang%netscape.com
8fc1fa9995 temp turn off the webshell call to fix resursive issue.
git-svn-id: svn://10.0.0.236/trunk@32008 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 02:04:53 +00:00
sdagley%netscape.com
fe1bf492b2 Added code to use Internet Config to convert .ext filters into Mac file types. Currently #ifdef'ed out until we actually support filters on the Mac.
git-svn-id: svn://10.0.0.236/trunk@32005 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 02:04:47 +00:00
matt%netscape.com
9ef159f79d Fixing that the pref is below on panel
bug 6450


git-svn-id: svn://10.0.0.236/trunk@32004 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 02:04:31 +00:00
ftang%netscape.com
7ed41d3632 add meta charset service
git-svn-id: svn://10.0.0.236/trunk@32003 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 01:44:51 +00:00
ftang%netscape.com
58444d6efe remove meta charset hack. Add access function to nsParser to get the current charset and source. Add additional information to the nsIElementObserver
git-svn-id: svn://10.0.0.236/trunk@32002 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 01:30:21 +00:00
harishd%netscape.com
129dcefe6f Removed eHTMLTag_script from gTBodyKids. This is because
<SCRIPT> tag can be contained anywhere in a document and it is
not necessary for <TBODY> to treat <SCRIPT> differently.


git-svn-id: svn://10.0.0.236/trunk@32001 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 01:29:41 +00:00
harishd%netscape.com
0c5f09feb3 Using CNavDTD::CanContain() in CanOmit().
Added a check for SCRIPT tag in CNavDTD::CanContain()
that would allow <SCRIPT> tag to be contained anywhere
in a document


git-svn-id: svn://10.0.0.236/trunk@32000 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 01:26:21 +00:00
despotdaemon%netscape.com
b21366ee75 Pseudo-automatic update of changes made by dp@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@31999 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 01:24:03 +00:00
ftang%netscape.com
7b23ebb9ef add code to find nsWebShell
git-svn-id: svn://10.0.0.236/trunk@31998 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 01:20:24 +00:00
mcmullen%netscape.com
ec4068baf1 #6589 File | Open broken in viewer. I broke this when I removed the use of path strings. In addition to being more correct, using nsFileSpec and nsFileURL makes this file over 40 lines shorter.
git-svn-id: svn://10.0.0.236/trunk@31997 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 01:16:27 +00:00
sspitzer%netscape.com
1758696eb6 checkin to (hopefully) get the build working. thanks to alecf / scottip
git-svn-id: svn://10.0.0.236/trunk@31996 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 00:59:39 +00:00
rhp%netscape.com
9062595ef2 Changes for image rendering bug and cleanup of sprintf() call.
git-svn-id: svn://10.0.0.236/trunk@31995 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 00:54:57 +00:00
ssu%netscape.com
bb703cedf9 fixed problem with javascript aborting after a Install.WinProfile.getString() call
git-svn-id: svn://10.0.0.236/trunk@31994 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 00:54:10 +00:00
jevering%netscape.com
156463c6b3 Makecopy now works on win98 for this.. waterson
git-svn-id: svn://10.0.0.236/trunk@31993 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 00:53:00 +00:00
matt%netscape.com
73123e3b5b Internationalized preftree.xul
git-svn-id: svn://10.0.0.236/trunk@31992 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 00:43:50 +00:00
sspitzer%netscape.com
ddfe69cf87 changes required to do newsposting.
git-svn-id: svn://10.0.0.236/trunk@31991 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 00:36:49 +00:00
slamm%netscape.com
b5a694bcee Avoid entering directories twice. Only write out .all.pp when it has changed.
git-svn-id: svn://10.0.0.236/trunk@31990 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 00:26:10 +00:00
sspitzer%netscape.com
454553725b comment the endifs
git-svn-id: svn://10.0.0.236/trunk@31989 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 00:21:37 +00:00
morse%netscape.com
b59283782a don't put extraneous fields on the preview form
git-svn-id: svn://10.0.0.236/trunk@31988 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 00:19:15 +00:00
ducarroz%netscape.com
6c8ece55d2 add messenger address book build instruction
git-svn-id: svn://10.0.0.236/trunk@31987 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 00:12:39 +00:00
ducarroz%netscape.com
d1d71a09d2 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@31986 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 00:11:30 +00:00
rhp%netscape.com
bc9d5f5edf Fix for memory allocation bug
git-svn-id: svn://10.0.0.236/trunk@31985 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 00:08:29 +00:00
dbragg%netscape.com
5057fce9c3 Added export of nsPrefMigration.h
git-svn-id: svn://10.0.0.236/trunk@31984 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 00:06:41 +00:00
dbragg%netscape.com
06ec8e587b This file was in the wrong place
git-svn-id: svn://10.0.0.236/trunk@31983 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 00:03:44 +00:00
dbragg%netscape.com
a4b3fd07f9 Fixes spacing problems caused by copying to Mac
git-svn-id: svn://10.0.0.236/trunk@31982 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 00:02:44 +00:00
nisheeth%netscape.com
1888753c00 Added a new method, CreateInstanceForDocument() to nsIDocumentLoaderFactory which creates a content viewer and binds it to a document that is passed in as a parameter. This is needed to support XUL popup menus which have a document and a webshell, and want to create a content viewer and bind it to the document.
git-svn-id: svn://10.0.0.236/trunk@31981 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 23:52:01 +00:00
chuang%netscape.com
30d07c2860 Address Book UI with RDF hook up
git-svn-id: svn://10.0.0.236/trunk@31980 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 23:51:43 +00:00
despotdaemon%netscape.com
254259fc18 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@31979 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 23:50:35 +00:00
despotdaemon%netscape.com
a51274ae7b Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@31978 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 23:43:59 +00:00
matt%netscape.com
4c492e382c Adding internationalization to this file
git-svn-id: svn://10.0.0.236/trunk@31977 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 23:42:09 +00:00
vidur%netscape.com
9cd00417bf Fix for bug 6232. Scripts were incorrectly being pushed out of tbody tags.
git-svn-id: svn://10.0.0.236/trunk@31976 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 23:40:25 +00:00
bienvenu%netscape.com
0238ad0662 remove debugging statements, unused defines
git-svn-id: svn://10.0.0.236/trunk@31975 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 23:35:45 +00:00
sspitzer%netscape.com
c94a5cb20f fix build bustage
git-svn-id: svn://10.0.0.236/trunk@31974 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 23:25:42 +00:00
waterson%netscape.com
76d96e7bbe Initial revision.
git-svn-id: svn://10.0.0.236/trunk@31973 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 23:19:15 +00:00
waterson%netscape.com
39462f6066 Update to deal with MOZ_BRPROF being defined; fix some warnings.
git-svn-id: svn://10.0.0.236/trunk@31972 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 23:17:36 +00:00
matt%netscape.com
03f88b0264 Internationizing file
git-svn-id: svn://10.0.0.236/trunk@31971 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:56:09 +00:00
bienvenu%netscape.com
8a7f33ecd1 move GetChildNamed implementation from local subclass
git-svn-id: svn://10.0.0.236/trunk@31970 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:50:04 +00:00
rjc%netscape.com
397304e93e For collation key sorting support, need to #include DIST area's "locale" directory.
git-svn-id: svn://10.0.0.236/trunk@31969 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:47:32 +00:00
ssu%netscape.com
d1b8cafe9f changed windows define from XP_WIN to _WINDOWS and fixed compilation bugs
git-svn-id: svn://10.0.0.236/trunk@31968 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:45:50 +00:00
bienvenu%netscape.com
fb11b20119 fix problem displaying headers when selecting folder we haven't opened before
git-svn-id: svn://10.0.0.236/trunk@31967 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:44:12 +00:00
waterson%netscape.com
0381eccdda Initial revision.
git-svn-id: svn://10.0.0.236/trunk@31966 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:43:54 +00:00
rjc%netscape.com
ff49f8a390 Checking in some additional collation key support.
git-svn-id: svn://10.0.0.236/trunk@31965 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:43:47 +00:00
waterson%netscape.com
1dad7d4aac Initial revision as an XPFE component.
git-svn-id: svn://10.0.0.236/trunk@31964 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:36:17 +00:00
slamm%netscape.com
a5c5d4a724 Fix pull by date.
git-svn-id: svn://10.0.0.236/trunk@31963 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:36:09 +00:00
kmcclusk%netscape.com
e58f0da145 bug #994 Major rework of nsListboxControlFrame to support option groups. Modified ua.css
optgroup > option rule to use padding to offset the option group's options.


git-svn-id: svn://10.0.0.236/trunk@31962 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:36:08 +00:00
mjudge%netscape.com
94695cd80a wrong initial boolean value for redraw
git-svn-id: svn://10.0.0.236/trunk@31961 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:31:10 +00:00
waterson%netscape.com
810cf14399 Add nsISupports to QI.
git-svn-id: svn://10.0.0.236/trunk@31960 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:20:35 +00:00
amusil%netscape.com
6eb85ee83b Fixing build bustage
git-svn-id: svn://10.0.0.236/trunk@31959 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:14:35 +00:00
vidur%netscape.com
24aec08ccf Prevent onunloads from bubbling.
git-svn-id: svn://10.0.0.236/trunk@31958 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:14:16 +00:00
wtc%netscape.com
e174e92991 Bugzilla bug #1816: handle Cygwin's uname return format on Win95 also.
git-svn-id: svn://10.0.0.236/trunk@31957 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:05:08 +00:00
rods%netscape.com
e3cce4f9ff Initial check in not in build yet
git-svn-id: svn://10.0.0.236/trunk@31956 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:04:09 +00:00
ssu%netscape.com
7ebcbf1d2e renamed this file to nsWinRegEnums.h
git-svn-id: svn://10.0.0.236/trunk@31955 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:59:30 +00:00
ssu%netscape.com
d261c7fef5 added WinProfile object to the Install object
git-svn-id: svn://10.0.0.236/trunk@31954 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:58:52 +00:00
jevering%netscape.com
97f6b0e4a1 Adding to be localizable for bug 6366
git-svn-id: svn://10.0.0.236/trunk@31953 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:58:42 +00:00
pinkerton%netscape.com
7d60c57c4e stuff for starting drags. Register the sendDataProc and register the data flavors for all the items with the DragManager.
git-svn-id: svn://10.0.0.236/trunk@31952 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:57:31 +00:00
pinkerton%netscape.com
9602ec4d21 add mapping from macOS flavor back to mime.
git-svn-id: svn://10.0.0.236/trunk@31951 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:55:25 +00:00
rhp%netscape.com
240d9669ce Changes to support I18N conversion for vcard data
git-svn-id: svn://10.0.0.236/trunk@31950 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:54:59 +00:00
slamm%netscape.com
7af76cfb0b Use sidebar generated from rdf.
git-svn-id: svn://10.0.0.236/trunk@31949 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:53:46 +00:00
morse%netscape.com
1899cf3186 don't ask for database password unnecessarily
git-svn-id: svn://10.0.0.236/trunk@31948 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:51:25 +00:00
slamm%netscape.com
dcc16851a2 Add tree dump. Code to resize iframes (not quite working).
git-svn-id: svn://10.0.0.236/trunk@31947 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:51:15 +00:00
slamm%netscape.com
1955d9f944 Fix reload.
git-svn-id: svn://10.0.0.236/trunk@31946 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:50:35 +00:00
chuang%netscape.com
fd65532f82 Add address book to Windows and Unix build
git-svn-id: svn://10.0.0.236/trunk@31945 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:49:12 +00:00
jevering%netscape.com
c7230d3456 missing css info. Updating it
git-svn-id: svn://10.0.0.236/trunk@31944 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:41:57 +00:00
nhotta%netscape.com
5aa7cf1bd8 Added items to charset menu.
git-svn-id: svn://10.0.0.236/trunk@31943 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:40:12 +00:00
danm%netscape.com
1f36284f26 renaming mFirstLoadKludge. Vidur says it's not a kludge, so it gets an upgraded name.
git-svn-id: svn://10.0.0.236/trunk@31942 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:39:35 +00:00
sspitzer%netscape.com
4e504e2f6e need to link this in, we die at runtime because this is undefined: __13nsABDirectory
git-svn-id: svn://10.0.0.236/trunk@31941 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:36:20 +00:00
wtc%netscape.com
91eba90a9c Bugzilla bug #1816: handle the output of the 'uname' command in
the latest Cygwin release (Beta 20).  Thanks to Tague Griffith
<tague@netscape.com> for reporting the bug and zuperdee@penguinpowered.com
for pointing out where the bug was.


git-svn-id: svn://10.0.0.236/trunk@31940 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:31:16 +00:00
dougt%netscape.com
6e5db860f2 Adding Install.TRACE()
Fixing some bugs in ScheduledTasks.


git-svn-id: svn://10.0.0.236/trunk@31939 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:28:56 +00:00
putterman%netscape.com
3c7784c86a Use nsIDateTimeFormat to prepare date string.
git-svn-id: svn://10.0.0.236/trunk@31938 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:28:03 +00:00
putterman%netscape.com
21616fdc06 Use nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@31937 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:27:41 +00:00
putterman%netscape.com
bb02d92cad Include locale headers
git-svn-id: svn://10.0.0.236/trunk@31936 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:27:22 +00:00
putterman%netscape.com
09c0e4e5fe Include locale headers.
git-svn-id: svn://10.0.0.236/trunk@31935 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:27:09 +00:00
amusil%netscape.com
91a29fa7f7 Updated 4x plugin support on the Mac
git-svn-id: svn://10.0.0.236/trunk@31934 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:26:48 +00:00
sspitzer%netscape.com
28346b8d72 cvs ignorage for the generated makefiles
git-svn-id: svn://10.0.0.236/trunk@31933 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:26:37 +00:00
sspitzer%netscape.com
7f2fe67f08 changes to build address book on UNIX
git-svn-id: svn://10.0.0.236/trunk@31932 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:25:33 +00:00
rhp%netscape.com
76bef32363 Fix problem where incorrect body was being sent in I18N case.
git-svn-id: svn://10.0.0.236/trunk@31931 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:25:19 +00:00
mscott%netscape.com
e03df586fd Fix Bug #6216 --> when sending messages with blank lines, we were eating up the line returns.
git-svn-id: svn://10.0.0.236/trunk@31930 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:23:11 +00:00
jevering%netscape.com
0f54faf396 Adding label to all radio buttons
git-svn-id: svn://10.0.0.236/trunk@31929 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:21:04 +00:00
vidur%netscape.com
bcd116b3a7 Added nsIDOMHTMLLayerElement interface
git-svn-id: svn://10.0.0.236/trunk@31928 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:18:23 +00:00
vidur%netscape.com
20466d8521 Implemented document.layers and nsIDOMHTMLLayerElement interface.
git-svn-id: svn://10.0.0.236/trunk@31927 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:17:48 +00:00
vidur%netscape.com
9e2f41295e Propagate visibility style across table boundaries.
git-svn-id: svn://10.0.0.236/trunk@31926 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:17:21 +00:00
vidur%netscape.com
1cbfbf8712 added files: mozilla/dom/src/html/nsJSHTMLLayerElement.cpp
git-svn-id: svn://10.0.0.236/trunk@31925 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:15:58 +00:00
vidur%netscape.com
b45891b379 Added layers interface.
git-svn-id: svn://10.0.0.236/trunk@31924 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:15:06 +00:00
beard%netscape.com
7f9af1b85a bug #4839: now including xp_path.h instead of primpl.h.
git-svn-id: svn://10.0.0.236/trunk@31923 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 21:10:45 +00:00
sfraser%netscape.com
fb3a7f8519 Turn on selection in view source window.
git-svn-id: svn://10.0.0.236/trunk@31922 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 20:56:40 +00:00
chuang%netscape.com
562edf0f8b Personal address book gif file
git-svn-id: svn://10.0.0.236/trunk@31921 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 20:47:26 +00:00
despotdaemon%netscape.com
7eeeb21c8a Pseudo-automatic update of changes made by mang@subcarrier.org.
git-svn-id: svn://10.0.0.236/trunk@31920 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 20:45:49 +00:00
rods%netscape.com
a16f1107f0 Added nsFontRetrieverService registration
git-svn-id: svn://10.0.0.236/trunk@31919 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 20:34:52 +00:00
despotdaemon%netscape.com
e5fc591a57 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@31918 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 20:33:48 +00:00
chuang%netscape.com
424291cb61 Fix build error
git-svn-id: svn://10.0.0.236/trunk@31917 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 20:33:26 +00:00
despotdaemon%netscape.com
6cb326d26b Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@31916 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 20:29:56 +00:00
chuang%netscape.com
879e713b52 First check in. Address Book Data Source w/ hardcoded data.
git-svn-id: svn://10.0.0.236/trunk@31915 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 20:16:22 +00:00
mcmullen%netscape.com
5f2b7ad7af Anal, eh? I'LL show you anal.
git-svn-id: svn://10.0.0.236/trunk@31914 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 20:11:23 +00:00
neeti%netscape.com
ed5c5c8621 Changed GetTagName api to return a tag for the index passed in.
This enables observers to register for more than one tag.


git-svn-id: svn://10.0.0.236/trunk@31913 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 20:00:58 +00:00
mjudge%netscape.com
e064c576fa accidentally left out a parameter to GetPositionSlowly for small caps ect.
git-svn-id: svn://10.0.0.236/trunk@31912 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 19:50:29 +00:00
beard%netscape.com
56efb845cf bug #5093: added widget->Invalidate() calls after changing the position of scrollbar thumb. It may be more appropriate to fix this in nsScrollbar.cpp
git-svn-id: svn://10.0.0.236/trunk@31911 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 19:40:40 +00:00
sfraser%netscape.com
72510fbc21 Fix chardet lib/target name
git-svn-id: svn://10.0.0.236/trunk@31910 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 19:38:11 +00:00
danm%netscape.com
9ebe817793 adding parameter passing examples
git-svn-id: svn://10.0.0.236/trunk@31909 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 19:21:35 +00:00
shaver%netscape.com
f70a97cc39 override NO_STATIC_LIB, because we really do need static libraries for some
other link parts.  This will make it safe to put NO_STATIC_LIB=1 in
myconfig.mk, which saves about 100MB and 3 minutes on my debug build.

(Requires one additional checkin to in xpcom, which is waiting on the
XPCOM 2.0 landing.)


git-svn-id: svn://10.0.0.236/trunk@31908 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 19:20:28 +00:00
ftang%netscape.com
29825fb12c remove nsCharsetObserver. These two files have been change to nsMetaCharsetObserver and move into intl/chardet/src directory
git-svn-id: svn://10.0.0.236/trunk@31907 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 19:15:01 +00:00
ssu%netscape.com
b1d4260ecf new enums file for WinReg object use only. This file used to be named nsSoftUpdateEnums.h
git-svn-id: svn://10.0.0.236/trunk@31906 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 19:11:25 +00:00
ftang%netscape.com
62febaf56a add intl/chardet to the build list
git-svn-id: svn://10.0.0.236/trunk@31905 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 19:10:59 +00:00
ftang%netscape.com
04af58bff0 add intl/chardet
git-svn-id: svn://10.0.0.236/trunk@31904 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 19:08:19 +00:00
kin%netscape.com
b1424f52bf Fix for bug #4796: UMR: nsEditor::JoinNodesImpl().
git-svn-id: svn://10.0.0.236/trunk@31903 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 18:59:40 +00:00
rhp%netscape.com
afbfa7305b Change for wrap_long_lines pref
git-svn-id: svn://10.0.0.236/trunk@31902 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 18:59:03 +00:00
nhotta%netscape.com
a194145061 Synchronized charset menu with navigator.
git-svn-id: svn://10.0.0.236/trunk@31901 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 18:58:35 +00:00
danm%netscape.com
d7d43752c7 more window.openDialog: moved creation of JS context earlier, stopped its destruction on first doc load
git-svn-id: svn://10.0.0.236/trunk@31900 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 18:52:21 +00:00
matt%netscape.com
4d635323e2 placing all stings into dtd entities
git-svn-id: svn://10.0.0.236/trunk@31899 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 18:50:57 +00:00
jfrancis%netscape.com
5846a4cc07 const crazy - bet you can't eat jsut one!
git-svn-id: svn://10.0.0.236/trunk@31898 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 14:14:36 +00:00
kin%netscape.com
31bd0fb412 Commented out all calls to HACKForceRedraw(). We now call it from
nsEditor::EndTransaction().


git-svn-id: svn://10.0.0.236/trunk@31897 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 13:31:56 +00:00
jfrancis%netscape.com
656494ed95 fixing bustage
git-svn-id: svn://10.0.0.236/trunk@31896 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 13:10:29 +00:00
jfrancis%netscape.com
2a700f7f7c insert list and indent work
git-svn-id: svn://10.0.0.236/trunk@31895 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 12:22:31 +00:00
jfrancis%netscape.com
5e33c7f786 Adding insert list, indent, and change aligment to editor app core
git-svn-id: svn://10.0.0.236/trunk@31894 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 12:17:43 +00:00
hyatt%netscape.com
8e9a2f05ce Fix for bug 5602.
git-svn-id: svn://10.0.0.236/trunk@31893 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 09:02:45 +00:00
mcmullen%netscape.com
c31b88a10b Turning reading of default files back on for Macintosh, since parsing now seems to work.
git-svn-id: svn://10.0.0.236/trunk@31892 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 08:18:26 +00:00
mcmullen%netscape.com
60881e5421 Cleaned up the dictionaries. Added partial support for GetURL, OpenURL, quit, and dojavascript apple events.
git-svn-id: svn://10.0.0.236/trunk@31891 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 07:56:44 +00:00
jefft%netscape.com
c518f4dfa4 temporary fix for cached connection not working for same imap host
git-svn-id: svn://10.0.0.236/trunk@31890 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 06:28:10 +00:00
waldemar%netscape.com
8ac03a5544 First working version
git-svn-id: svn://10.0.0.236/trunk@31889 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 05:11:19 +00:00
waldemar%netscape.com
c3c7fe1739 Renamed != to /= and lambda to function.
git-svn-id: svn://10.0.0.236/trunk@31888 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 05:10:41 +00:00
waldemar%netscape.com
6b8768f29a Added intsets.
git-svn-id: svn://10.0.0.236/trunk@31887 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 05:10:07 +00:00
waldemar%netscape.com
174a564ec9 Added sets, subseq, set-nth. Renamed 'lambda' to 'function'. Fixed depictions of special global variables. Added %text depictors.
git-svn-id: svn://10.0.0.236/trunk@31886 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 05:09:44 +00:00
waldemar%netscape.com
c074f78365 Added sets, subseq, set-nth. Renamed 'lambda' to 'function' and '!=' to '/='.
git-svn-id: svn://10.0.0.236/trunk@31885 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 05:07:52 +00:00
waldemar%netscape.com
c93d5d224e Added vector-assign, intersection, and union characters
git-svn-id: svn://10.0.0.236/trunk@31884 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 05:05:59 +00:00
waldemar%netscape.com
c0994f7bbb Fixed LR(1) parser state lookahead-generation bug
git-svn-id: svn://10.0.0.236/trunk@31883 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 05:05:10 +00:00
waldemar%netscape.com
380dbf700b Added RegExp to load path
git-svn-id: svn://10.0.0.236/trunk@31882 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 05:04:28 +00:00
waldemar%netscape.com
a423f6122d Fixed formatting of parametrized nonterminal character classes
git-svn-id: svn://10.0.0.236/trunk@31881 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 05:04:07 +00:00
blizzard%redhat.com
d5879d694b add xlibrgb to the build
git-svn-id: svn://10.0.0.236/trunk@31880 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 03:42:30 +00:00
blizzard%redhat.com
bf88abfc90 catch up with prototype changes
git-svn-id: svn://10.0.0.236/trunk@31879 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 03:42:04 +00:00
blizzard%redhat.com
568d9c7c7f add gdkrgb port to straight xlib
git-svn-id: svn://10.0.0.236/trunk@31878 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 03:32:22 +00:00
bienvenu%netscape.com
1b4391a65a more work on msg filters
git-svn-id: svn://10.0.0.236/trunk@31876 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 02:07:13 +00:00
bienvenu%netscape.com
f49c886c43 start work on msg filters, ifdeff'ed out
git-svn-id: svn://10.0.0.236/trunk@31875 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 02:06:29 +00:00
bienvenu%netscape.com
79d97173d0 fix problems selecting folders other than the inbox
git-svn-id: svn://10.0.0.236/trunk@31874 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 00:41:26 +00:00
mjudge%netscape.com
b1fe71c301 adding in selection ability for images in editor only
git-svn-id: svn://10.0.0.236/trunk@31873 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 00:21:50 +00:00
mjudge%netscape.com
ff933f4f73 adding in selection of non text frames in editor only
git-svn-id: svn://10.0.0.236/trunk@31872 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 00:21:18 +00:00
dougt%netscape.com
2c371deebc Fixing registry init ordering to stop crashing on NT. (Thanks bienvenu for testing this change).
Removing nsServiceManager::RegisterService max workaround checked in early today.


git-svn-id: svn://10.0.0.236/trunk@31871 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 23:36:39 +00:00
putterman%netscape.com
dcf89f4a21 Check for null pointers from js so we don't crash.
git-svn-id: svn://10.0.0.236/trunk@31870 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 23:28:45 +00:00
erik%netscape.com
82c0af4c30 Fixed the test file name, added registration for event queue and
persistent properties. This test program now works again. Groan.


git-svn-id: svn://10.0.0.236/trunk@31869 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 22:59:02 +00:00
putterman%netscape.com
c4f42461b0 Implemented GetHostName.
git-svn-id: svn://10.0.0.236/trunk@31868 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 22:47:27 +00:00
putterman%netscape.com
f6c7b88397 Implement GetTarget for child and message child so Move and Copy menu submenus
show up.


git-svn-id: svn://10.0.0.236/trunk@31867 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 22:41:39 +00:00
putterman%netscape.com
98363bd060 Add rdf:ignore MessageChild to the move and copy menus.
git-svn-id: svn://10.0.0.236/trunk@31866 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 22:41:02 +00:00
jefft%netscape.com
d4b2a3c1e8 making sure cached connection work with multiple imap servers
git-svn-id: svn://10.0.0.236/trunk@31865 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 21:55:25 +00:00
putterman%netscape.com
04370757c4 Fix treebody.
git-svn-id: svn://10.0.0.236/trunk@31864 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 21:47:13 +00:00
dougt%netscape.com
8951ff5205 nsServiceManager::ReleaseService is not defined on the mac! Could not find what library I need to link with in order to get this defined. I am commenting this out so that I can figure this out with out the tinderbox in flames.
git-svn-id: svn://10.0.0.236/trunk@31863 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 21:39:11 +00:00
beard%netscape.com
748cdba938 exporting nsServiceManager::RegisterService/UnregisterService to fix xpinstall breakage.
git-svn-id: svn://10.0.0.236/trunk@31862 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 21:29:32 +00:00
bienvenu%netscape.com
0273206988 fix vc5 build bustage
git-svn-id: svn://10.0.0.236/trunk@31861 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 21:22:27 +00:00
erik%netscape.com
1976415313 Added code to check return values. Cleaned up a bit.
git-svn-id: svn://10.0.0.236/trunk@31860 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 20:47:59 +00:00
morse%netscape.com
04af807e1a fix build bustage
git-svn-id: svn://10.0.0.236/trunk@31859 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 20:35:28 +00:00
erik%netscape.com
d7158a86ce Fixed a compiler warning. Added a few new font charset names, and a weight
name.


git-svn-id: svn://10.0.0.236/trunk@31858 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 20:32:51 +00:00
pavlov%pavlov.net
fa635b27a1 more work on nsMenu::RemoveAll()
git-svn-id: svn://10.0.0.236/trunk@31857 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 20:01:24 +00:00
morse%netscape.com
68cc0fc542 remember wallet decisions on a url-specific basis
git-svn-id: svn://10.0.0.236/trunk@31856 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 19:36:25 +00:00
pavlov%pavlov.net
83fd89bf1f revert some changes that broke menu clicking in apprunner
git-svn-id: svn://10.0.0.236/trunk@31855 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 19:27:43 +00:00
dougt%netscape.com
3230eab8e8 Adding appshellcomponent interface and init code.
git-svn-id: svn://10.0.0.236/trunk@31854 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 19:11:25 +00:00
dougt%netscape.com
3fce7741e4 Removing xpinstall and silentdl references from the viewer.
git-svn-id: svn://10.0.0.236/trunk@31853 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 19:07:19 +00:00
pavlov%pavlov.net
a38ec51f54 revert accidential change that broke typing in to the url bar (;
git-svn-id: svn://10.0.0.236/trunk@31852 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 18:16:24 +00:00
pavlov%pavlov.net
713b609340 fix the massive ammount of warnings that are generated by this code.
git-svn-id: svn://10.0.0.236/trunk@31851 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 17:47:46 +00:00
waterson%netscape.com
9c39eb2b02 Made XPConnect into a component, which should enable XPConnect on Mac.
git-svn-id: svn://10.0.0.236/trunk@31850 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 16:09:45 +00:00
bruce%cybersight.com
1604a8cad3 Remove Toolbar stuff completely as it no longer exists elsewhere in the tree.
git-svn-id: svn://10.0.0.236/trunk@31849 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 14:28:14 +00:00
hyatt%netscape.com
4660dc9815 Hmm.
git-svn-id: svn://10.0.0.236/trunk@31848 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 10:02:19 +00:00
hyatt%netscape.com
6df6bebfeb La la la.
git-svn-id: svn://10.0.0.236/trunk@31847 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 09:40:42 +00:00
hyatt%netscape.com
2bfd024327 More popup work.
git-svn-id: svn://10.0.0.236/trunk@31846 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 09:09:00 +00:00
hyatt%netscape.com
bd8f3caaa0 Fixing build bustage.
git-svn-id: svn://10.0.0.236/trunk@31845 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 08:51:22 +00:00
hyatt%netscape.com
71e23c11b3 Fixing build bustage
git-svn-id: svn://10.0.0.236/trunk@31844 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 08:50:27 +00:00
hyatt%netscape.com
e271dff643 More savory popup goodness.
git-svn-id: svn://10.0.0.236/trunk@31843 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 08:10:27 +00:00
hyatt%netscape.com
bdf6260956 Added the method that will give me the new popup doc.
git-svn-id: svn://10.0.0.236/trunk@31842 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 08:05:32 +00:00
hyatt%netscape.com
6327895932 Added an arg to createPopup.
git-svn-id: svn://10.0.0.236/trunk@31841 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 07:52:02 +00:00
hyatt%netscape.com
f49fcc2161 Added an arg to createPopup, so I could tell what the originating window was.
git-svn-id: svn://10.0.0.236/trunk@31840 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 07:46:34 +00:00
rickg%netscape.com
f26602317c fixed bug 6107
git-svn-id: svn://10.0.0.236/trunk@31839 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 07:09:13 +00:00
hyatt%netscape.com
35c6422404 Implementing HandleDOMEvent in nsXULDocument.cpp. Events now bubble to the
document and in turn will now bubble to the window.


git-svn-id: svn://10.0.0.236/trunk@31838 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 07:05:51 +00:00
hyatt%netscape.com
b891d6c0e5 Events weren't bubbling into the document. They do this now.
git-svn-id: svn://10.0.0.236/trunk@31837 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 06:58:56 +00:00
hyatt%netscape.com
96148806ef Added comments for what I'm about to try to implement. Looks scary.
git-svn-id: svn://10.0.0.236/trunk@31836 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 05:51:35 +00:00
rickg%netscape.com
8cc14193f7 final features for parsing engine (WIP); lots of bug fixes
git-svn-id: svn://10.0.0.236/trunk@31835 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 05:27:23 +00:00
sspitzer%netscape.com
f91f286deb more changes needed for runtime. will get unresolved symbols when
services get loaded


git-svn-id: svn://10.0.0.236/trunk@31834 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 05:22:12 +00:00
sspitzer%netscape.com
5630c66a42 fix SunOS build bustage.
can you believe one undefined symbol (_._13nsUInt32Array) led to linking in these additional files?  me neither.  question:  why did it build on linux?


git-svn-id: svn://10.0.0.236/trunk@31833 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:55:31 +00:00
sspitzer%netscape.com
f501f426f9 more work for message post to nntp server
git-svn-id: svn://10.0.0.236/trunk@31832 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:18:51 +00:00
sspitzer%netscape.com
158e26895b cast to quiet warnings.
git-svn-id: svn://10.0.0.236/trunk@31831 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:17:07 +00:00
sspitzer%netscape.com
16cd73cf1b use nsCOMPtr. quiet warnings.
git-svn-id: svn://10.0.0.236/trunk@31830 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:16:54 +00:00
sspitzer%netscape.com
410d88241f remove worthless statement
git-svn-id: svn://10.0.0.236/trunk@31829 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:16:34 +00:00
bruce%cybersight.com
2d035fddc1 Fix Motif build bustage (minimally). Header file updated earlier with mcmullen's checkin.
git-svn-id: svn://10.0.0.236/trunk@31828 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:16:13 +00:00
sspitzer%netscape.com
b359a23110 comment out unused variables to quiet compiler warnings
git-svn-id: svn://10.0.0.236/trunk@31827 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:16:03 +00:00
sspitzer%netscape.com
05a716d592 add new line to end of file to quiet warnings
git-svn-id: svn://10.0.0.236/trunk@31826 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:15:34 +00:00
sspitzer%netscape.com
92217914e6 comment out unused variable
git-svn-id: svn://10.0.0.236/trunk@31825 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:15:19 +00:00
sspitzer%netscape.com
9871f97676 alter code to quiet warnings
git-svn-id: svn://10.0.0.236/trunk@31824 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:14:57 +00:00
sspitzer%netscape.com
75acc33aef touch pointer to quiet compiler
git-svn-id: svn://10.0.0.236/trunk@31823 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:14:21 +00:00
sspitzer%netscape.com
7b4e8250e3 rename variable to prevent shadowing
git-svn-id: svn://10.0.0.236/trunk@31822 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:13:52 +00:00
sspitzer%netscape.com
9799422abe reorder to quiet compiler. stop shadowing. rename shadowed variable.
git-svn-id: svn://10.0.0.236/trunk@31821 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:13:37 +00:00
sspitzer%netscape.com
da3f907f68 touch point to quiet compiler
git-svn-id: svn://10.0.0.236/trunk@31820 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:12:57 +00:00
sspitzer%netscape.com
3b2e3461ed add newline to end of file
git-svn-id: svn://10.0.0.236/trunk@31819 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:12:33 +00:00
bruce%cybersight.com
7ee76bb5a9 Make destructor virtual
git-svn-id: svn://10.0.0.236/trunk@31818 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 04:01:02 +00:00
pavlov%pavlov.net
3401e14416 more menu cleanups
git-svn-id: svn://10.0.0.236/trunk@31817 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 03:09:13 +00:00
slamm%netscape.com
0b148faf67 Set background color for panel.
git-svn-id: svn://10.0.0.236/trunk@31816 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 02:59:06 +00:00
slamm%netscape.com
f86882200c Reformat panel slightly.
git-svn-id: svn://10.0.0.236/trunk@31815 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 02:53:23 +00:00
slamm%netscape.com
b9484acf8c Fix tiny bug in panel.
git-svn-id: svn://10.0.0.236/trunk@31814 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 02:43:48 +00:00
slamm%netscape.com
8e6bcaf6b2 Add sidebar panel. Clean up quickparse. Make express use quickparse too.
git-svn-id: svn://10.0.0.236/trunk@31813 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 02:38:55 +00:00
bienvenu%netscape.com
01a0156530 add rdf:ignore
git-svn-id: svn://10.0.0.236/trunk@31812 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 02:33:13 +00:00
pavlov%pavlov.net
78339c43be left off the ns_imethodimp type for the function
git-svn-id: svn://10.0.0.236/trunk@31811 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 02:14:57 +00:00
sspitzer%netscape.com
384bc3f955 fix SunOS build breakage
git-svn-id: svn://10.0.0.236/trunk@31810 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 01:48:56 +00:00
pavlov%pavlov.net
5b207edab4 fix HP-UX build brokenness
git-svn-id: svn://10.0.0.236/trunk@31809 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 01:46:40 +00:00
sspitzer%netscape.com
28bed92365 ignore the generated test app
git-svn-id: svn://10.0.0.236/trunk@31808 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 01:43:49 +00:00
edwin%woudt.nl
454ed3b86d Fixed wrong signature preferences key
git-svn-id: svn://10.0.0.236/trunk@31807 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 00:24:13 +00:00
edwin%woudt.nl
12b5920629 Fixed wrong smtp host preferences key
git-svn-id: svn://10.0.0.236/trunk@31806 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 00:23:52 +00:00
edwin%woudt.nl
7852212098 Preferences now work again when multiple identities are set in the preference file. (Editing only works for the first identity).
git-svn-id: svn://10.0.0.236/trunk@31805 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 00:19:53 +00:00
edwin%woudt.nl
c1a22e9d26 When the signature file was set in the preferences file it was not displayed in the preference window. Fixed.
git-svn-id: svn://10.0.0.236/trunk@31804 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 00:18:57 +00:00
bienvenu%netscape.com
ded11c9904 check in Scott's changes for not enumerating all arcs
git-svn-id: svn://10.0.0.236/trunk@31803 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 00:12:51 +00:00
bienvenu%netscape.com
104c6c3a9e re-enable selecting of other imap folders besides inbox
git-svn-id: svn://10.0.0.236/trunk@31802 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 00:10:50 +00:00
waterson%netscape.com
fb296193d7 Back out local changes to my flash stuff (was for testing only).
git-svn-id: svn://10.0.0.236/trunk@31801 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 00:10:25 +00:00
waterson%netscape.com
7fd4160ab6 Initial revision.
git-svn-id: svn://10.0.0.236/trunk@31800 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 00:08:34 +00:00
bienvenu%netscape.com
e36bac679b checkpoint filter code
git-svn-id: svn://10.0.0.236/trunk@31799 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 00:07:56 +00:00
waterson%netscape.com
8f6cfce54a Bug 3367. Need to 1) treat ArcLabelsOut as returning an 'optimistic' list of arcs, that is, possible arcs out; 2) use GetTarget() to test the containment property, not just existence of the arc; 3) implement 'rdf:ignore' to skip properties that may require extensive computation. In the process, I had to #ifdef XUL_TEMPLATES some of the XUL template stuff.
git-svn-id: svn://10.0.0.236/trunk@31798 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 23:46:17 +00:00
edwin%woudt.nl
3c0d278737 The description of the second identity (#1) was displayed for all identities. Fixed.
git-svn-id: svn://10.0.0.236/trunk@31797 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 23:32:28 +00:00
edwin%woudt.nl
febe4f48cf Mailhost wasn't read properly from the prefs. Fixed.
git-svn-id: svn://10.0.0.236/trunk@31796 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 23:27:40 +00:00
sspitzer%netscape.com
37ac35a45f remove the run random news url crap. general cleanup.
git-svn-id: svn://10.0.0.236/trunk@31795 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 23:23:06 +00:00
mscott%netscape.com
6173f2460d clean up makefile removing unnecessary libraries.
git-svn-id: svn://10.0.0.236/trunk@31794 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 23:17:22 +00:00
mcmullen%netscape.com
457914ae43 filewidget no longer accepts string paths.
git-svn-id: svn://10.0.0.236/trunk@31793 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:58:28 +00:00
mcmullen%netscape.com
2199878c1b Fixed filewidget to use filespec. Fixed some input params to be const.
git-svn-id: svn://10.0.0.236/trunk@31792 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:56:27 +00:00
mcmullen%netscape.com
0cb3a0dafa Fixed file widget to use filespec, instead of string. Made input params const.
git-svn-id: svn://10.0.0.236/trunk@31791 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:54:17 +00:00
bruce%cybersight.com
95689446cf Fix ANSI C++ violation. (a=beard)
git-svn-id: svn://10.0.0.236/trunk@31790 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:53:57 +00:00
mcmullen%netscape.com
33238fe5ea Ended the use of strings to describe files in the file widget API. Made some nsString input parameters const.
git-svn-id: svn://10.0.0.236/trunk@31789 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:50:20 +00:00
edwin%woudt.nl
a3693af2bd Updateable menus (by Mauro)
git-svn-id: svn://10.0.0.236/trunk@31788 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:42:27 +00:00
edwin%woudt.nl
2868f249cb Various addressbook updates
git-svn-id: svn://10.0.0.236/trunk@31787 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:40:22 +00:00
edwin%woudt.nl
83be97c6e2 Improved alignment of the Delete button. (hack alert!)
git-svn-id: svn://10.0.0.236/trunk@31786 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:39:13 +00:00
edwin%woudt.nl
c6a1d5ddb0 When xena.pref contains no proper user settings the preferences dialog wouldn't show up. Fixed.
git-svn-id: svn://10.0.0.236/trunk@31785 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:38:40 +00:00
bruce%cybersight.com
4f1a0d5be0 Warning fix for ANSI C++ violation.
git-svn-id: svn://10.0.0.236/trunk@31784 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:38:28 +00:00
sspitzer%netscape.com
3e61dc4e64 use nsCOMPtr. more printfs. return on error. general cleanup of this test app.
git-svn-id: svn://10.0.0.236/trunk@31783 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:21:04 +00:00
mscott%netscape.com
86b649c426 fix warnings by re-ordering membewr data initialization.
git-svn-id: svn://10.0.0.236/trunk@31782 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:18:45 +00:00
mscott%netscape.com
b57c9a0cf3 Fix signed / unsigned assignment problem...
git-svn-id: svn://10.0.0.236/trunk@31781 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:17:50 +00:00
mscott%netscape.com
421387ed27 quiet compiler warnings....re-order member variable initialization, remove unused variable.
git-svn-id: svn://10.0.0.236/trunk@31780 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:17:02 +00:00
mscott%netscape.com
6d497cc995 Remove unused variable to quiet warning....
git-svn-id: svn://10.0.0.236/trunk@31779 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:16:00 +00:00
mscott%netscape.com
fde07ca144 Fix unsigned / signed assignment & comparison problems.
git-svn-id: svn://10.0.0.236/trunk@31778 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:15:11 +00:00
mscott%netscape.com
0e4ffbc2a9 quiet compiler...re-order initialization of class members.
git-svn-id: svn://10.0.0.236/trunk@31777 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:14:20 +00:00
mscott%netscape.com
735812f775 fix warning - remove unused variable.
git-svn-id: svn://10.0.0.236/trunk@31776 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:13:09 +00:00
bruce%cybersight.com
b81429d4ce Fix ANSI C++ violation that was breaking Solaris Workshop and HP-UX aCC builds.
git-svn-id: svn://10.0.0.236/trunk@31775 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:10:39 +00:00
slamm%netscape.com
8cf6f36337 Use ENTITY's for labels.
git-svn-id: svn://10.0.0.236/trunk@31774 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:08:01 +00:00
mcmullen%netscape.com
7a366d8516 Removed string methods from the file widget
git-svn-id: svn://10.0.0.236/trunk@31773 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:01:21 +00:00
sspitzer%netscape.com
2daf23bbc0 replace DEBUG with DEBUG_sspitzer.
use nsCOMPtr.


git-svn-id: svn://10.0.0.236/trunk@31771 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 21:34:22 +00:00
mscott%netscape.com
d4b062ac0b this file is not used by anyone....
git-svn-id: svn://10.0.0.236/trunk@31770 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 21:10:15 +00:00
mscott%netscape.com
4d99ee1156 Fix GetUserName such that it uses GetServer on the folder instead of calling GetCurrentServer from the acct manager. This fixes the imap problem where you couldn't perform cmds like displaying messages unless you imap server was the first one.
git-svn-id: svn://10.0.0.236/trunk@31769 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 21:07:18 +00:00
mscott%netscape.com
3d521690a6 add GetServer method to get the incoming server associated with a folder
git-svn-id: svn://10.0.0.236/trunk@31768 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 21:04:42 +00:00
mscott%netscape.com
355879dc1e add getsserver and GetIncomingServerType. This allows us to get the incoming server associated with a folder.
git-svn-id: svn://10.0.0.236/trunk@31767 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 21:03:02 +00:00
mcmullen%netscape.com
dbd5dd77ec Fix "no prototype" warning by including the nsIComponentManager header.
git-svn-id: svn://10.0.0.236/trunk@31766 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 21:00:13 +00:00
mcmullen%netscape.com
73202950dd Removing illegal trailing semicolon
git-svn-id: svn://10.0.0.236/trunk@31765 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 20:54:38 +00:00
mscott%netscape.com
6a24d89cc5 implement GetIncomingServerType as part of adding a GetServer method for a folder.
git-svn-id: svn://10.0.0.236/trunk@31764 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 19:39:58 +00:00
mscott%netscape.com
d03184d4ac code cleanup --> use nsAutoCString instead of .newCString.
git-svn-id: svn://10.0.0.236/trunk@31763 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 19:37:27 +00:00
pavlov%pavlov.net
677c41e3a7 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@31762 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 19:15:44 +00:00
mscott%netscape.com
98fadcfbc2 I thought I had done this last week but I didn't check in this change =). Turn imap on for REAL on Linux.
git-svn-id: svn://10.0.0.236/trunk@31761 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 19:09:39 +00:00
sspitzer%netscape.com
4be3f47f56 ignore the generate Makefile
git-svn-id: svn://10.0.0.236/trunk@31760 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 18:47:45 +00:00
pavlov%pavlov.net
aee2940f38 minor cleanup
git-svn-id: svn://10.0.0.236/trunk@31759 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 18:39:09 +00:00
pavlov%pavlov.net
867deda1d7 fix menu assertions
git-svn-id: svn://10.0.0.236/trunk@31758 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 18:34:49 +00:00
pavlov%pavlov.net
67a98cd4a9 clean up of menu code to remove excess code
git-svn-id: svn://10.0.0.236/trunk@31757 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 18:13:11 +00:00
shaver%netscape.com
562a77c144 don't need to keep handle to EventQueueService after ::Run
git-svn-id: svn://10.0.0.236/trunk@31756 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 16:43:48 +00:00
shaver%netscape.com
5c590c152f fix command line stuff
git-svn-id: svn://10.0.0.236/trunk@31755 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 16:39:40 +00:00
pavlov%pavlov.net
ddfbfc3f3e fix assertions when adding events
git-svn-id: svn://10.0.0.236/trunk@31754 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 16:14:48 +00:00
rods%netscape.com
95563fbf75 Added new method GetAnyTransferData
git-svn-id: svn://10.0.0.236/trunk@31753 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 14:29:32 +00:00
hyatt%netscape.com
d6c456a5d5 DOn't need the printf any more.
git-svn-id: svn://10.0.0.236/trunk@31752 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 09:04:45 +00:00
hyatt%netscape.com
929bbc083e Not yet implemented. Sigh. I hate seeing "Not yet implemented."
git-svn-id: svn://10.0.0.236/trunk@31751 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 09:03:59 +00:00
hyatt%netscape.com
2eca8bb5db Added support for document.popup, so that event handlers in popup content
can refer to the popup's originating element.


git-svn-id: svn://10.0.0.236/trunk@31750 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 08:46:14 +00:00
sspitzer%netscape.com
01d9a0a99c use nsAutoCString instead of ToNewCString
git-svn-id: svn://10.0.0.236/trunk@31749 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 06:05:04 +00:00
sspitzer%netscape.com
45b803242a add new line to the end of the file. use nsAutoCString instead of ToNewCString.
git-svn-id: svn://10.0.0.236/trunk@31748 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 05:58:24 +00:00
sspitzer%netscape.com
923440bfc7 use nsAutoCString instead of ToNewCstring. cast to quite compiler. stop shadowing.
git-svn-id: svn://10.0.0.236/trunk@31747 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 05:45:20 +00:00
pavlov%pavlov.net
d9618676d7 fix for 5494 and 2nd attempt at command line services (if 0'd out atm)
git-svn-id: svn://10.0.0.236/trunk@31746 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 05:13:21 +00:00
sspitzer%netscape.com
960ffe1429 set the url state when done.
git-svn-id: svn://10.0.0.236/trunk@31745 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 05:04:58 +00:00
sspitzer%netscape.com
7f10e49f70 use nsCOMPtr. wrap printfs with ifdefs.
git-svn-id: svn://10.0.0.236/trunk@31744 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 05:04:34 +00:00
sspitzer%netscape.com
4737bbe1c0 fix my stupid printf
git-svn-id: svn://10.0.0.236/trunk@31743 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 05:00:52 +00:00
pavlov%pavlov.net
576233a3bd fix for bug #5496
git-svn-id: svn://10.0.0.236/trunk@31742 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 04:29:00 +00:00
pavlov%pavlov.net
68cf4223b8 fix for bug #6509
git-svn-id: svn://10.0.0.236/trunk@31741 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 04:07:54 +00:00
hyatt%netscape.com
c9b3144d35 Fixing a crash when you clicked outside the popup.
git-svn-id: svn://10.0.0.236/trunk@31740 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 03:53:19 +00:00
hyatt%netscape.com
0491f81c8f Fix.
git-svn-id: svn://10.0.0.236/trunk@31739 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 03:47:44 +00:00
hyatt%netscape.com
19940bc96d Fixes to the windows implementation.
git-svn-id: svn://10.0.0.236/trunk@31738 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 03:19:49 +00:00
law%netscape.com
4920ee8c7f Turn off PR_fprintf calls on Mac
git-svn-id: svn://10.0.0.236/trunk@31737 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 03:02:06 +00:00
jefft%netscape.com
4e455b952f fixed all the subfoler created on top level
git-svn-id: svn://10.0.0.236/trunk@31736 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 02:59:23 +00:00
hyatt%netscape.com
d29a96350a Fixing context menus a bit.
git-svn-id: svn://10.0.0.236/trunk@31735 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 02:53:43 +00:00
hyatt%netscape.com
a0db76f4d6 Making sure context menus can be made.
git-svn-id: svn://10.0.0.236/trunk@31734 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 02:53:03 +00:00
hyatt%netscape.com
b090c04e6c Popup cleanup.
git-svn-id: svn://10.0.0.236/trunk@31733 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 02:52:51 +00:00
rods%netscape.com
404223b610 removed them they are in xpwidgets now
git-svn-id: svn://10.0.0.236/trunk@31732 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 02:50:03 +00:00
rods%netscape.com
232a0e3249 keycode are incorrect when ALT key pressed. I have added code to convert these
to the proper value to match the the control key values. Fixes bug #6449


git-svn-id: svn://10.0.0.236/trunk@31731 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 02:30:42 +00:00
bienvenu%netscape.com
2f2662ca1a check for null store when adding headers
git-svn-id: svn://10.0.0.236/trunk@31730 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 02:28:01 +00:00
bienvenu%netscape.com
37ee9cd788 fix get new mail when using cached connection
git-svn-id: svn://10.0.0.236/trunk@31729 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 02:26:36 +00:00
beard%netscape.com
3377f17277 turned off MANIFEST_TEMP entries, added building of XPConnectIDL[headers, xpconnect.xpt]
git-svn-id: svn://10.0.0.236/trunk@31728 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 02:04:42 +00:00
beard%netscape.com
95cdd7a36b removed xpccomponents.h, xpcjsid.h, nsrootidl.h which are now generated by XPConnectIDL.mcp
git-svn-id: svn://10.0.0.236/trunk@31727 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 02:04:41 +00:00
slamm%netscape.com
488ec3f306 Use sidebar style sheet for sidebar panel.
git-svn-id: svn://10.0.0.236/trunk@31726 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 01:55:37 +00:00
slamm%netscape.com
0414b2f944 Size to fit.
git-svn-id: svn://10.0.0.236/trunk@31725 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 01:53:28 +00:00
slamm%netscape.com
38ba8e4bcf Clean up
git-svn-id: svn://10.0.0.236/trunk@31724 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 01:52:37 +00:00
slamm%netscape.com
6a90ff6c15 Move title back into xul file
git-svn-id: svn://10.0.0.236/trunk@31723 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 01:45:09 +00:00
slamm%netscape.com
a63d65933a cleaner look
git-svn-id: svn://10.0.0.236/trunk@31722 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 01:44:33 +00:00
beard%netscape.com
591ff0d95f renamed target typelib to xpconnect.xpt, added mozilla/dist/idl to access paths.
git-svn-id: svn://10.0.0.236/trunk@31721 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 01:38:15 +00:00
pollmann%netscape.com
c51e86bc1c Bug 5746: Check for null.
git-svn-id: svn://10.0.0.236/trunk@31720 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 01:36:39 +00:00
beard%netscape.com
4aeb67c89b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@31719 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 01:35:45 +00:00
rods%netscape.com
34cfd97cf7 Two return keys were being sent for a single press. both Key down was sending one and
WM_CHAR was sending one. Commented out the SPECIAL_KEY case for the return key. Now, it
only generates a down event via WM_CHAR


git-svn-id: svn://10.0.0.236/trunk@31718 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 01:20:37 +00:00
sspitzer%netscape.com
8b0262a4a5 missing .css reference (causes crash on Linux)
git-svn-id: svn://10.0.0.236/trunk@31717 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 01:12:10 +00:00
nhotta%netscape.com
975c018ec0 Clean up, forgot about & for the args.
git-svn-id: svn://10.0.0.236/trunk@31716 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 01:08:16 +00:00
sspitzer%netscape.com
3c581d5254 stop my annoying printfs
git-svn-id: svn://10.0.0.236/trunk@31715 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 01:04:10 +00:00
sspitzer%netscape.com
6f2c27d449 makefile changes for hangas's new xul and js files
git-svn-id: svn://10.0.0.236/trunk@31714 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 01:02:21 +00:00
law%netscape.com
9b86503921 Got one that will make everybody happy (if Mac goes red, I'll scream)
git-svn-id: svn://10.0.0.236/trunk@31713 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 01:01:29 +00:00
ftang%netscape.com
fa4453e478 add service
git-svn-id: svn://10.0.0.236/trunk@31712 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 00:57:45 +00:00
law%netscape.com
f85ff3edea added load time to 'Document: Done' msg
git-svn-id: svn://10.0.0.236/trunk@31711 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 00:53:52 +00:00
hyatt%netscape.com
0d962fc214 Linking up global window to call webshell container's createPopup.
git-svn-id: svn://10.0.0.236/trunk@31710 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 00:48:39 +00:00
jefft%netscape.com
52e07f10b3 fixed ForceClosed() crashes con CloseDB()
git-svn-id: svn://10.0.0.236/trunk@31709 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 00:47:47 +00:00
beard%netscape.com
c0e5fef925 removed files: mozilla/js/src/xpconnect/idl/nsrootidl.idl, mozilla/js/src/xpconnect/idl/nsISupports.idl
git-svn-id: svn://10.0.0.236/trunk@31708 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 00:43:46 +00:00
sfraser%netscape.com
844e98fe44 Just do some anal alignment of config options
git-svn-id: svn://10.0.0.236/trunk@31707 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 00:41:23 +00:00
hangas%netscape.com
07bbe01ea3 Added addressbook.js and editcard.xul
git-svn-id: svn://10.0.0.236/trunk@31706 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 00:38:41 +00:00
hangas%netscape.com
d5014e5e2a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@31705 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 00:33:21 +00:00
saari%netscape.com
4d3becb152 call DoContextMenu
git-svn-id: svn://10.0.0.236/trunk@31704 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 00:33:11 +00:00
briano%netscape.com
82ae522abf These headers no longer exist.
git-svn-id: svn://10.0.0.236/trunk@31703 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 00:27:14 +00:00
sspitzer%netscape.com
166b3f1c2e code cleanup
git-svn-id: svn://10.0.0.236/trunk@31702 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 00:22:23 +00:00
hangas%netscape.com
aff50cb181 Minor cleanup
git-svn-id: svn://10.0.0.236/trunk@31701 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 00:19:06 +00:00
hangas%netscape.com
cf17c1fa47 Referenced the xul.css, removed styles handled by xul.css. Added some real styles used within the address book XUL.
git-svn-id: svn://10.0.0.236/trunk@31700 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 00:16:37 +00:00
sspitzer%netscape.com
b8e89f5291 fix UNIX build bustage
git-svn-id: svn://10.0.0.236/trunk@31699 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 00:12:19 +00:00
shaver%netscape.com
6398b36c83 allow rdf:datasource;param=var (r=waterson)
git-svn-id: svn://10.0.0.236/trunk@31698 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 23:56:30 +00:00
shaver%netscape.com
2ea6261f28 fix CHECK_BRANCH fencepost
git-svn-id: svn://10.0.0.236/trunk@31697 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 23:54:16 +00:00
shaver%netscape.com
69907f11a8 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@31696 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 23:49:15 +00:00
ftang%netscape.com
2d73514974 add unix file
git-svn-id: svn://10.0.0.236/trunk@31695 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 23:36:14 +00:00
ftang%netscape.com
cdf75170bd First Checked In.
git-svn-id: svn://10.0.0.236/trunk@31694 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 23:32:51 +00:00
mcafee%netscape.com
0d25af40ff Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@31693 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 23:32:44 +00:00
jefft%netscape.com
e0716ccf26 fixed new folder not added to to the folder pane problem
git-svn-id: svn://10.0.0.236/trunk@31692 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 23:26:00 +00:00
ftang%netscape.com
54f37f92ee add nsIElementObserver.h
git-svn-id: svn://10.0.0.236/trunk@31691 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 23:23:41 +00:00
mcmullen%netscape.com
e843ff4d24 Added some forward declarations so that this file would, well, er, compile.
git-svn-id: svn://10.0.0.236/trunk@31690 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 23:23:08 +00:00
alecf%netscape.com
2bf250398b change Communicator->Tasks
git-svn-id: svn://10.0.0.236/trunk@31689 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 23:11:54 +00:00
hyatt%netscape.com
e7ff1ca15a Ready to rumble.
git-svn-id: svn://10.0.0.236/trunk@31688 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 23:11:49 +00:00
saari%netscape.com
112a992fef tweaking DoContextMenu
git-svn-id: svn://10.0.0.236/trunk@31687 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 23:10:46 +00:00
ftang%netscape.com
d5a10cea71 add chardet
git-svn-id: svn://10.0.0.236/trunk@31686 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 23:09:17 +00:00
saari%netscape.com
ca20eb4536 Add context menus to mac build
git-svn-id: svn://10.0.0.236/trunk@31685 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:57:11 +00:00
law%netscape.com
1a9cf88c43 Fix 'Document: Done' and clean up some obsolete stuff
git-svn-id: svn://10.0.0.236/trunk@31684 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:57:07 +00:00
ducarroz%netscape.com
ade7eaf162 Split EditorStartup() into EditorStartup() & EditorSetup(). Msg Compose use only EditorSetup().
git-svn-id: svn://10.0.0.236/trunk@31683 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:54:24 +00:00
beard%netscape.com
081e747d8d synched with BuildNGLayout[Debug].pl
git-svn-id: svn://10.0.0.236/trunk@31682 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:50:01 +00:00
jefft%netscape.com
40dda6f841 fixed imap folder discovery problem; the default fNamespacesOverridable should be set to true
git-svn-id: svn://10.0.0.236/trunk@31681 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:46:21 +00:00
beard%netscape.com
da8bcd722d Fixed some serious ref count bugs using nsIURL when instantiating plugins.
git-svn-id: svn://10.0.0.236/trunk@31680 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:45:46 +00:00
hyatt%netscape.com
329b3d4c32 Should work.
git-svn-id: svn://10.0.0.236/trunk@31679 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:41:09 +00:00
hyatt%netscape.com
502c1e7de2 Adding a method to the webshell container for creating popup/context menus.
git-svn-id: svn://10.0.0.236/trunk@31678 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:40:03 +00:00
briano%netscape.com
6492f30fe4 Hacks to get it to compile. Needs help from someone with a clue.
git-svn-id: svn://10.0.0.236/trunk@31677 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:33:42 +00:00
saari%netscape.com
a2991b2fed Adding DoContextMenu
git-svn-id: svn://10.0.0.236/trunk@31676 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:28:00 +00:00
saari%netscape.com
35824ad0d3 Adding mac context menu files.
git-svn-id: svn://10.0.0.236/trunk@31675 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:27:31 +00:00
sspitzer%netscape.com
6ac924982e fix a bug in nsMsgDBEnumerator. this means I don't have to use
2 enuermators for my "show me only the last n news message" hack.


git-svn-id: svn://10.0.0.236/trunk@31674 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:25:31 +00:00
rhp%netscape.com
17c6f5d3b0 Cleanup of code
git-svn-id: svn://10.0.0.236/trunk@31673 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:24:26 +00:00
saari%netscape.com
bd54a585bc fixed up to date error
git-svn-id: svn://10.0.0.236/trunk@31672 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:23:53 +00:00
rhp%netscape.com
a476dc9556 Even more refinement :)
git-svn-id: svn://10.0.0.236/trunk@31671 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:13:02 +00:00
law%netscape.com
b253b3940c "Turn on app shell component autoloading"
git-svn-id: svn://10.0.0.236/trunk@31670 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:02:23 +00:00
saari%netscape.com
fce37733eb First Checked In.
git-svn-id: svn://10.0.0.236/trunk@31669 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:01:15 +00:00
saari%netscape.com
7037191029 Add context menus to factory
git-svn-id: svn://10.0.0.236/trunk@31668 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:00:43 +00:00
saari%netscape.com
9a5e22b31a Minor mac menu change to facilitate context menus
git-svn-id: svn://10.0.0.236/trunk@31667 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 22:00:21 +00:00
saari%netscape.com
9345a07292 Initialize the mac contextual menu manager
git-svn-id: svn://10.0.0.236/trunk@31666 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:59:47 +00:00
saari%netscape.com
de03a680e1 Adding context menu library to the interface stubs
git-svn-id: svn://10.0.0.236/trunk@31665 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:58:33 +00:00
hyatt%netscape.com
ab7699e747 Calling both createPopup and createAnchoredPopup now.
git-svn-id: svn://10.0.0.236/trunk@31664 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:51:57 +00:00
jj%netscape.com
bf82aad8fb Turned XPIDL plugin ON ($USE_XPIDL = 1) for Tinderbox and Verification builds.
git-svn-id: svn://10.0.0.236/trunk@31663 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:48:02 +00:00
saari%netscape.com
4c3f53e6f9 fixing build break
git-svn-id: svn://10.0.0.236/trunk@31662 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:46:51 +00:00
rhp%netscape.com
36846905c1 Further refinement of auto link detection
git-svn-id: svn://10.0.0.236/trunk@31661 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:42:26 +00:00
pollmann%netscape.com
697625dac9 Bug 5944,3322: Bringing GTK <SELECT> events on par with Windows
git-svn-id: svn://10.0.0.236/trunk@31660 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:35:49 +00:00
morse%netscape.com
661378cd2e fix bug 6399
git-svn-id: svn://10.0.0.236/trunk@31659 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:21:38 +00:00
ducarroz%netscape.com
e45fa99e7f HTML tag name must be capitalized if we want to find them in the DOM!
git-svn-id: svn://10.0.0.236/trunk@31658 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:18:26 +00:00
hyatt%netscape.com
2de5acbb02 Added another createPopup method to handle anchoring.
git-svn-id: svn://10.0.0.236/trunk@31657 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:16:51 +00:00
mcafee%netscape.com
0516d8ccde Adding font interfaces for Linux.
git-svn-id: svn://10.0.0.236/trunk@31656 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:13:50 +00:00
bienvenu%netscape.com
89f96f8d0e fix message counts for imap inbox
git-svn-id: svn://10.0.0.236/trunk@31655 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:11:07 +00:00
mcafee%netscape.com
bec3b4d589 Adding nsIFileListTransferable to the Linux build.
git-svn-id: svn://10.0.0.236/trunk@31654 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:11:00 +00:00
putterman%netscape.com
131ed02039 Added Mark Messages as Unread and bold on "new" not "New".
git-svn-id: svn://10.0.0.236/trunk@31653 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:04:25 +00:00
jefft%netscape.com
7f74d31801 fixed cached connection url race condition
git-svn-id: svn://10.0.0.236/trunk@31652 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:04:17 +00:00
putterman%netscape.com
08c159f418 Do status flag notifications based on flags changed.
git-svn-id: svn://10.0.0.236/trunk@31651 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:03:26 +00:00
sspitzer%netscape.com
3ec2a39f2b changes to show only the last n messages in a news folder.
It follows the mail.news.maxheaderstoshow pref.


git-svn-id: svn://10.0.0.236/trunk@31650 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 21:02:51 +00:00
beard%netscape.com
ada628c705 fixed ref count leak
git-svn-id: svn://10.0.0.236/trunk@31649 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 20:43:27 +00:00
saari%netscape.com
2b79b09d87 adding context menus to windows build
git-svn-id: svn://10.0.0.236/trunk@31648 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 20:42:50 +00:00
beard%netscape.com
c24803ec6b added nsGetNativeThis(), which searches the prototype chain for the first object that is tagged as having an nsISupports in its private field.
git-svn-id: svn://10.0.0.236/trunk@31647 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 20:27:00 +00:00
putterman%netscape.com
d416240873 overflow: visible added. Fixes 6426.
git-svn-id: svn://10.0.0.236/trunk@31646 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 20:06:21 +00:00
alecf%netscape.com
131f21b126 add missing box element
git-svn-id: svn://10.0.0.236/trunk@31645 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 19:53:43 +00:00
akkana%netscape.com
41cebfdb96 5663: Fix copy/paste of entities.
mUnicodeEncoder isn't getting initialized properly, at least on Linux.
Also fixed some compiler warnings while I'm here.


git-svn-id: svn://10.0.0.236/trunk@31644 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 19:47:10 +00:00
rhp%netscape.com
e92a38cdeb New glyph changes
git-svn-id: svn://10.0.0.236/trunk@31643 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 19:27:40 +00:00
rhp%netscape.com
d25588b86c adding new files
git-svn-id: svn://10.0.0.236/trunk@31642 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 19:27:22 +00:00
rhp%netscape.com
54dc18313d New images for glyph replacement
git-svn-id: svn://10.0.0.236/trunk@31641 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 19:27:09 +00:00
ducarroz%netscape.com
da376431d8 Fix capitalization problem with nsComPtr.h
git-svn-id: svn://10.0.0.236/trunk@31640 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 19:26:14 +00:00
akkana%netscape.com
02dd28094a Change some comments re body wrap width
git-svn-id: svn://10.0.0.236/trunk@31639 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 19:25:43 +00:00
akkana%netscape.com
622007a1d7 5786: Cut shouldn't do anything when selection is collapsed
git-svn-id: svn://10.0.0.236/trunk@31638 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 19:24:10 +00:00
hyatt%netscape.com
59e6c9212e Screen coords instead.
git-svn-id: svn://10.0.0.236/trunk@31637 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 19:22:52 +00:00
ducarroz%netscape.com
2d83fc467d add resource installation for mailnews:mime:resources
git-svn-id: svn://10.0.0.236/trunk@31636 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 19:18:32 +00:00
rhp%netscape.com
7bce69fb4c Pref fix.
git-svn-id: svn://10.0.0.236/trunk@31635 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 19:16:26 +00:00
hyatt%netscape.com
be5cf55e97 Changes to actually call into the GlobalWindowImpl's createPopup method.
git-svn-id: svn://10.0.0.236/trunk@31634 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 19:10:01 +00:00
slamm%netscape.com
cd96d63f88 Use ENTITY tags for text. Fix for i18n bug #6373.
git-svn-id: svn://10.0.0.236/trunk@31633 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:58:56 +00:00
rhp%netscape.com
a6625397b4 New directory being added
git-svn-id: svn://10.0.0.236/trunk@31632 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:57:14 +00:00
rhp%netscape.com
46314c1b60 Changes for new resource directories
git-svn-id: svn://10.0.0.236/trunk@31631 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:54:56 +00:00
hyatt%netscape.com
379b461b08 Added a createPopup method to the window object.
git-svn-id: svn://10.0.0.236/trunk@31630 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:54:25 +00:00
rhp%netscape.com
fc88911321 Change for glyph replacement
git-svn-id: svn://10.0.0.236/trunk@31629 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:54:23 +00:00
rhp%netscape.com
3703e2589c Images for glyph replacement
git-svn-id: svn://10.0.0.236/trunk@31628 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:53:52 +00:00
rhp%netscape.com
21d29ba431 Changes for URL detection and an I18N fix.
git-svn-id: svn://10.0.0.236/trunk@31627 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:53:16 +00:00
ducarroz%netscape.com
63d1208aac Add pref wrapColumn & useHtml
git-svn-id: svn://10.0.0.236/trunk@31626 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:52:05 +00:00
ducarroz%netscape.com
f4af5c6467 Did some cleanup, Implement menu Exit command. Initialize Editor in HTML or plain text mode depending of parameter received. Set wrap column.
git-svn-id: svn://10.0.0.236/trunk@31625 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:52:04 +00:00
ducarroz%netscape.com
600af0f0e8 Delay creation of m_pathName to avoid problem on Mac with empty path.
git-svn-id: svn://10.0.0.236/trunk@31624 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:52:03 +00:00
ducarroz%netscape.com
41a25fded2 Add getIntpref & setIntPref. Add wrapColumn pref
git-svn-id: svn://10.0.0.236/trunk@31623 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:52:02 +00:00
ducarroz%netscape.com
f8701655cb Add properties WrapColumn and UseHtml
git-svn-id: svn://10.0.0.236/trunk@31622 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:52:01 +00:00
ducarroz%netscape.com
8b71f4da3c Add missing addref. Fix bug#6182
git-svn-id: svn://10.0.0.236/trunk@31621 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:52:00 +00:00
ducarroz%netscape.com
52eea1b788 Add pref WrapColumn
git-svn-id: svn://10.0.0.236/trunk@31620 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:51:59 +00:00
ducarroz%netscape.com
cc0a57ffc1 Set editorType to default, that means use preference to know if we want to edit in plain text or in html.
git-svn-id: svn://10.0.0.236/trunk@31619 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:51:57 +00:00
ducarroz%netscape.com
e197729012 removed toolbar css stuff as now we use xul.css
git-svn-id: svn://10.0.0.236/trunk@31618 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:51:56 +00:00
pinkerton%netscape.com
107fd9da10 pipe all drag events into Gecko, not just drop events. Also work with the new nsIDragSessionMac interface.
git-svn-id: svn://10.0.0.236/trunk@31617 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:50:57 +00:00
pinkerton%netscape.com
2b89181129 implements nsIDragSessionMac to get the dragRef from external drags. GetData() implemented (mostly).
git-svn-id: svn://10.0.0.236/trunk@31616 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:50:20 +00:00
ducarroz%netscape.com
e4f9ed3a6c File Removed.
git-svn-id: svn://10.0.0.236/trunk@31615 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:50:01 +00:00
pinkerton%netscape.com
10a38693a3 Accept any kind of drag event, not just drops.
git-svn-id: svn://10.0.0.236/trunk@31614 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:49:42 +00:00
ducarroz%netscape.com
88bba10251 replaced msgComposeBody.html by defaulttextBody.html and defaultHtmlBody.html
git-svn-id: svn://10.0.0.236/trunk@31613 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:49:34 +00:00
ducarroz%netscape.com
e4874c79ae First Checked In.
git-svn-id: svn://10.0.0.236/trunk@31612 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:48:43 +00:00
pinkerton%netscape.com
60ffd063f4 fix a d&d bug introduced in the transferable interface merging and add a SetCanDrop at the point of the drop for MacOS.
git-svn-id: svn://10.0.0.236/trunk@31611 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:44:28 +00:00
pinkerton%netscape.com
6e578e8456 add nsIDragSessionMac.h
git-svn-id: svn://10.0.0.236/trunk@31610 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:43:30 +00:00
pinkerton%netscape.com
a31d391ec0 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@31609 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:43:10 +00:00
valeski%netscape.com
c8867432c8 updated the nsSupportsArray::Count() api usage
git-svn-id: svn://10.0.0.236/trunk@31608 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 17:25:27 +00:00
kipp%netscape.com
99cca5f3e9 new
git-svn-id: svn://10.0.0.236/trunk@31607 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 16:32:07 +00:00
dcone%netscape.com
234dceb8b2 added a webshell parameter to the PrintContent call, unhooked the PresShell from the
document before deletion.  Fixed a leak.


git-svn-id: svn://10.0.0.236/trunk@31606 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 14:40:59 +00:00
dcone%netscape.com
d1122ad37a Added a webshell parameter to the PrintContent method
git-svn-id: svn://10.0.0.236/trunk@31605 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 14:39:47 +00:00
jefft%netscape.com
92b79ad07b inform the database to delete the message header
git-svn-id: svn://10.0.0.236/trunk@31604 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 14:27:19 +00:00
rods%netscape.com
45625a3f4a Added error checking for creation of nsIFileWidgets (Bug #6084)
git-svn-id: svn://10.0.0.236/trunk@31603 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 12:48:41 +00:00
rods%netscape.com
2bb4f6f16c added nsFileListTransferable
git-svn-id: svn://10.0.0.236/trunk@31602 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 12:35:29 +00:00
rods%netscape.com
6fb8272d93 added nsFileListTransferable to build
git-svn-id: svn://10.0.0.236/trunk@31601 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 12:34:54 +00:00
rods%netscape.com
5be7eb82b9 Changed to adhere to interface changes
git-svn-id: svn://10.0.0.236/trunk@31600 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 12:34:33 +00:00
rods%netscape.com
47e0fa3e88 added font iterators
git-svn-id: svn://10.0.0.236/trunk@31599 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 12:27:06 +00:00
rods%netscape.com
7658fb998e Each font has a struct and keeps track of its sizes in a nsVoidArray
git-svn-id: svn://10.0.0.236/trunk@31598 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 12:26:40 +00:00
rods%netscape.com
fc599eafc3 Added FontIterator
git-svn-id: svn://10.0.0.236/trunk@31597 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 12:26:03 +00:00
rods%netscape.com
eef5acebf8 Added Font Iterator interfaces
git-svn-id: svn://10.0.0.236/trunk@31596 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 12:25:18 +00:00
pierre%netscape.com
b9c201c5f1 fixed a glitch due to the TARGET_CARBON conversion in nsWindow::Update()
git-svn-id: svn://10.0.0.236/trunk@31595 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 10:18:33 +00:00
pierre%netscape.com
0301c12e7d hooked up DoDisk() to handle disk events
git-svn-id: svn://10.0.0.236/trunk@31594 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 10:15:55 +00:00
pierre%netscape.com
0d83ce6407 The constructor takes a nsMacWindow instead of a nsWindow. Removed HandleDiskEvent(): disk events are handled in our message pump or left to the embedding apps.
git-svn-id: svn://10.0.0.236/trunk@31593 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 10:14:46 +00:00
pierre%netscape.com
1dbaf5e759 fix list boxes with a temporary hack to access the 'ldes' resource from the Finder
git-svn-id: svn://10.0.0.236/trunk@31592 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 10:09:14 +00:00
pierre%netscape.com
de056adeaa First Checked In.
git-svn-id: svn://10.0.0.236/trunk@31591 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 10:02:32 +00:00
mccabe%netscape.com
28b40dcc52 Recur into idl. (Make good on the 'turning on auto-generation for idl' promise of my last checking)
git-svn-id: svn://10.0.0.236/trunk@31590 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 09:27:02 +00:00
mccabe%netscape.com
d3ea727066 change for hpux porting
git-svn-id: svn://10.0.0.236/trunk@31589 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 09:27:01 +00:00
mccabe%netscape.com
b179e61a4c Make xpconnect compile and export .h files and xptconnect.xpt using XPIDLSRCS for unix and windows.
git-svn-id: svn://10.0.0.236/trunk@31588 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 08:27:27 +00:00
hyatt%netscape.com
be6783986f Popup listener.
git-svn-id: svn://10.0.0.236/trunk@31587 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 07:20:12 +00:00
morse%netscape.com
f4b4807355 fix bug 6168
git-svn-id: svn://10.0.0.236/trunk@31586 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 06:54:29 +00:00
hyatt%netscape.com
7cb80cd082 Oops.
git-svn-id: svn://10.0.0.236/trunk@31585 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 06:24:23 +00:00
jfrancis%netscape.com
b3b7e270b4 fixing overly noisy asserts
git-svn-id: svn://10.0.0.236/trunk@31584 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 06:18:07 +00:00
morse%netscape.com
2dc2c63ce0 fix flawed code in ProfileDirectory
git-svn-id: svn://10.0.0.236/trunk@31583 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 06:06:05 +00:00
hyatt%netscape.com
9cb5961972 added files: mozilla/rdf/content/src/nsXULPopupListener.cpp
git-svn-id: svn://10.0.0.236/trunk@31582 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 05:39:15 +00:00
hyatt%netscape.com
9d968658ca Committing the XUL popup listener implementation.
git-svn-id: svn://10.0.0.236/trunk@31581 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 05:37:20 +00:00
hyatt%netscape.com
46c399d571 Adding support for the popup content implementation.
git-svn-id: svn://10.0.0.236/trunk@31580 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 05:37:00 +00:00
hyatt%netscape.com
1e52b74421 Committing the popup listener interface.
git-svn-id: svn://10.0.0.236/trunk@31579 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 05:36:21 +00:00
hyatt%netscape.com
2c90248d48 Adding a GetIID method so I can actually use an nsCOMPtr with this
interface.


git-svn-id: svn://10.0.0.236/trunk@31578 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 05:35:56 +00:00
sspitzer%netscape.com
b5f41545ff changes for alecf's new account manager and filter dialog work.
git-svn-id: svn://10.0.0.236/trunk@31577 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 04:38:03 +00:00
jefft%netscape.com
0a621d741e cached connection work -- added LoadNextQueuedUrl() method for a connection to call when a url is done executing
git-svn-id: svn://10.0.0.236/trunk@31576 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 04:15:22 +00:00
jefft%netscape.com
c36647f4d5 cached connection work - enhanced IsBusy(), CanHandleUrl() method to return more information regarding a connection status vs the new url running state to decide whether a url can run right away or has to wait until a specific connection is free
git-svn-id: svn://10.0.0.236/trunk@31575 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 04:13:54 +00:00
alecf%netscape.com
ca241973b1 fix wierd layout problems due to broken iframe
git-svn-id: svn://10.0.0.236/trunk@31574 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 04:09:07 +00:00
jefft%netscape.com
1098c1643b cached connection work - added LoadNextQueuedUrl() method
git-svn-id: svn://10.0.0.236/trunk@31573 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 04:07:48 +00:00
jefft%netscape.com
dfa1d666bf cached connection work - added additional bool parm, isInboxConnection, to IsBusy() method; added additional bool parm, hasToWait, to CanHandleUrl() method
git-svn-id: svn://10.0.0.236/trunk@31572 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 04:07:00 +00:00
alecf%netscape.com
e8be1dc0d2 add new Filter List dialog
git-svn-id: svn://10.0.0.236/trunk@31571 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 03:33:47 +00:00
alecf%netscape.com
b24441ea9b padded box just needs a margin, not padding, so that it lines up with the cleanborder
git-svn-id: svn://10.0.0.236/trunk@31570 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 03:33:29 +00:00
sfraser%netscape.com
e4494d33f9 Fix ownership and leakage issues. The appcore no longer holds references to the various webshell and content windows, and DoEditorMode doesn't leak the pres shell any more.
git-svn-id: svn://10.0.0.236/trunk@31569 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 03:11:12 +00:00
danm%netscape.com
814056a0e4 added window.openDialog. a:brendan
git-svn-id: svn://10.0.0.236/trunk@31568 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 03:10:51 +00:00
sfraser%netscape.com
fb70b320c9 Since the unload handler gets called at all the wrong times, don't do
anying useful in it.


git-svn-id: svn://10.0.0.236/trunk@31567 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 03:08:24 +00:00
sfraser%netscape.com
07b79fc43e Added include guards, which should be a big win on commonly included files like this one.
git-svn-id: svn://10.0.0.236/trunk@31566 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 03:07:31 +00:00
sfraser%netscape.com
c00e1eb8f1 Include <string.h>, not "string.h". Also added include guards, which should be a big win on commonly included files like this one.
git-svn-id: svn://10.0.0.236/trunk@31565 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 03:07:23 +00:00
alecf%netscape.com
df978824a7 next cut at basic search dialog
git-svn-id: svn://10.0.0.236/trunk@31564 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 02:21:35 +00:00
alecf%netscape.com
08da4b54d6 use global xul.css in addition to threadpane-specific css
git-svn-id: svn://10.0.0.236/trunk@31563 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 02:21:19 +00:00
alecf%netscape.com
612e0111aa remove am.css, a redunant style sheet
git-svn-id: svn://10.0.0.236/trunk@31562 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 02:20:43 +00:00
alecf%netscape.com
823a01b117 remove redundant styles (already exist in xul.css)
git-svn-id: svn://10.0.0.236/trunk@31561 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 02:20:20 +00:00
alecf%netscape.com
140b73a2c6 use standard messenger CSS
git-svn-id: svn://10.0.0.236/trunk@31560 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 02:19:31 +00:00
alecf%netscape.com
74524446d4 updated Account Manager XUL to use the messenger style sheet
git-svn-id: svn://10.0.0.236/trunk@31559 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 02:15:00 +00:00
despotdaemon%netscape.com
ef02f9ccb1 Pseudo-automatic update of changes made by wtc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@31558 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 02:03:04 +00:00
briano%netscape.com
7f54c3d058 Fix for QNX. Their compiler reserves 'huge' as a keyword, so I replaced it with 'really_big'.
git-svn-id: svn://10.0.0.236/trunk@31557 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 02:01:15 +00:00
briano%netscape.com
4d93badf2f Eliminate the need to use -DQNX by switching to __QNX__, predefined by the compiler.
git-svn-id: svn://10.0.0.236/trunk@31556 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 01:46:00 +00:00
cmanske%netscape.com
93c43d1300 Fixing editor dialog bugs
git-svn-id: svn://10.0.0.236/trunk@31555 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 01:30:19 +00:00
rhp%netscape.com
598920bab9 Change for more aggressive link-afying of www. and ftp. and user@... text
git-svn-id: svn://10.0.0.236/trunk@31554 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 01:14:41 +00:00
bienvenu%netscape.com
ee27a4d714 checkpoint filter work, get filters loading
git-svn-id: svn://10.0.0.236/trunk@31553 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:57:19 +00:00
bienvenu%netscape.com
bd8e3a5a21 add registration of filter component, under ifdef control
git-svn-id: svn://10.0.0.236/trunk@31552 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:56:13 +00:00
sspitzer%netscape.com
5fd091f476 fix shadowed variable warning
git-svn-id: svn://10.0.0.236/trunk@31551 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:50:04 +00:00
putterman%netscape.com
14ef3d34b8 export nsMsgRDFDataSource.h
git-svn-id: svn://10.0.0.236/trunk@31550 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:49:29 +00:00
putterman%netscape.com
31ddad53ad Implement DeleteFolder and Mark Message As Read menus.
git-svn-id: svn://10.0.0.236/trunk@31549 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:47:13 +00:00
putterman%netscape.com
f534e7eeb7 Bold unread messages as well as New messages.
git-svn-id: svn://10.0.0.236/trunk@31548 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:46:53 +00:00
putterman%netscape.com
253472f256 Add Delete Folder and activate Mark Read.
git-svn-id: svn://10.0.0.236/trunk@31547 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:46:35 +00:00
putterman%netscape.com
7196154cf1 call MarkRead instead of OrFlags.
git-svn-id: svn://10.0.0.236/trunk@31546 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:46:07 +00:00
putterman%netscape.com
758795f327 Added Mark Read.
git-svn-id: svn://10.0.0.236/trunk@31545 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:45:48 +00:00
putterman%netscape.com
72c178dce8 Handle flag changes.
git-svn-id: svn://10.0.0.236/trunk@31544 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:45:25 +00:00
putterman%netscape.com
6fcdb3e039 Add Mark Read
git-svn-id: svn://10.0.0.236/trunk@31543 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:45:06 +00:00
putterman%netscape.com
9eaf7f2919 Add Mark Message commands.
git-svn-id: svn://10.0.0.236/trunk@31542 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:44:30 +00:00
putterman%netscape.com
c641b3f5d7 Add notify observer related functions.
git-svn-id: svn://10.0.0.236/trunk@31540 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:44:15 +00:00
putterman%netscape.com
38ec2f317f Mark Read. make a subclass of nsMsgRDFDataSource. Add as a folder listener.
git-svn-id: svn://10.0.0.236/trunk@31539 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:43:49 +00:00
putterman%netscape.com
e81a155651 Add folder listener routines.
git-svn-id: svn://10.0.0.236/trunk@31538 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:43:19 +00:00
putterman%netscape.com
36eabd92d5 Delete folder. Make a subclass of nsMsgRDFDataSource and add as a folder listener.
git-svn-id: svn://10.0.0.236/trunk@31537 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:42:58 +00:00
putterman%netscape.com
8c6ca43f06 Delete Folders/Mark Messages Read
git-svn-id: svn://10.0.0.236/trunk@31536 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:42:18 +00:00
putterman%netscape.com
be795a9e12 Add folder listeners.
git-svn-id: svn://10.0.0.236/trunk@31535 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:41:52 +00:00
putterman%netscape.com
0ac6c0220f Add MarkRead
git-svn-id: svn://10.0.0.236/trunk@31534 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:41:37 +00:00
putterman%netscape.com
f83abc37fc Flag changed methods.
git-svn-id: svn://10.0.0.236/trunk@31533 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:41:23 +00:00
putterman%netscape.com
397971135f Add Delete Folders and Mark Messages Read.
git-svn-id: svn://10.0.0.236/trunk@31532 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:41:03 +00:00
akkana%netscape.com
fe761a5a58 Fix crash introduced by change of APIs
git-svn-id: svn://10.0.0.236/trunk@31531 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:40:13 +00:00
mscott%netscape.com
48dc233ede Fix memory leak by removing unused QI to an object. this caused us to leak pop3 urls when getting new mail.
git-svn-id: svn://10.0.0.236/trunk@31530 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:40:11 +00:00
robinf%netscape.com
60ebc53311 fixing bug 4492
git-svn-id: svn://10.0.0.236/trunk@31529 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:34:30 +00:00
alecf%netscape.com
47b40b7f14 nsCOMPtr audit and remove my stupid debugging comment
git-svn-id: svn://10.0.0.236/trunk@31528 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:21:52 +00:00
mscott%netscape.com
bb9c1eb65d Remove some cruft that was preventing the socket from ever going away once the connection was dropped.
git-svn-id: svn://10.0.0.236/trunk@31527 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:20:42 +00:00
briano%netscape.com
26cfa9dbd9 Last of the fixes for bug 5892.
git-svn-id: svn://10.0.0.236/trunk@31526 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:18:40 +00:00
dougt%netscape.com
afc3882275 first checkin of standalone version of xpinstall.
git-svn-id: svn://10.0.0.236/trunk@31525 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:16:14 +00:00
briano%netscape.com
9ea02c55d5 Automated update
git-svn-id: svn://10.0.0.236/trunk@31524 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:14:43 +00:00
terry%mozilla.org
f2ea4b12a6 Fixed stupid typo that was preventing HTML tags from being quoted properly.
git-svn-id: svn://10.0.0.236/trunk@31523 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:09:47 +00:00
briano%netscape.com
e781d000e6 Fix for bug 5184. Force checks for GLib, GTK, and libIDL to prevent cached values from interfering if these have been upgraded since the last time configure ran.
git-svn-id: svn://10.0.0.236/trunk@31522 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 00:01:54 +00:00
waterson%netscape.com
aa3806cbe1 Damn. Checked in the wrong file: this has been backed out.
git-svn-id: svn://10.0.0.236/trunk@31521 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:57:11 +00:00
beard%netscape.com
e27d50ffec synched with BuildNGLayout[Debug].pl
git-svn-id: svn://10.0.0.236/trunk@31520 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:51:28 +00:00
joki%netscape.com
e674affbbe Adding unload event during window closing.
git-svn-id: svn://10.0.0.236/trunk@31519 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:51:25 +00:00
kmcclusk%netscape.com
7972adcafd bug #5993. Removed references to nsIWidget in form HTML content elements. the form elements
now go through the nsFormControlFrame interface instead. This removes the dependency between
form element content and nsIWidget.


git-svn-id: svn://10.0.0.236/trunk@31518 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:45:40 +00:00
kmcclusk%netscape.com
48e71616c3 Modified nsString2::Append to only call strlen only if aCount is -1.
This clears up ABR errors reported in Purify.


git-svn-id: svn://10.0.0.236/trunk@31517 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:44:57 +00:00
mcmullen%netscape.com
873621e397 Initialized to correct files/prefixes etc.
git-svn-id: svn://10.0.0.236/trunk@31516 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:38:08 +00:00
alecf%netscape.com
bb39f83b1c add bounding boxes to fix <box> overflow problems
git-svn-id: svn://10.0.0.236/trunk@31515 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:33:02 +00:00
mcmullen%netscape.com
d06b24f0fc Initializing with the right files/names etc.
git-svn-id: svn://10.0.0.236/trunk@31514 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:32:40 +00:00
nhotta%netscape.com
2a661e5744 Enabled charset menu and added Japanese items, eventually this needs to be synchronize or shared with Browser's charset menu.
git-svn-id: svn://10.0.0.236/trunk@31513 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:32:01 +00:00
ssu%netscape.com
2cf78714ce initial checkin for install.WinProfile object code for windows platform only
git-svn-id: svn://10.0.0.236/trunk@31512 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:31:16 +00:00
waterson%netscape.com
f509d70dc1 Make XPConnect a component, install xpc .xpt files into components dir.
git-svn-id: svn://10.0.0.236/trunk@31511 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:27:04 +00:00
briano%netscape.com
c4e28963b2 Converted the explicit 'ld' commands to use '$(LD)' instead, so platforms
with odd linker names will work properly.


git-svn-id: svn://10.0.0.236/trunk@31510 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:25:11 +00:00
mscott%netscape.com
e9ebe520a4 Fix warnings. Use nsAutoCString.
git-svn-id: svn://10.0.0.236/trunk@31509 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:24:59 +00:00
mcmullen%netscape.com
999ece26b5 Initialized this to the right files etc.
git-svn-id: svn://10.0.0.236/trunk@31508 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:22:00 +00:00
mscott%netscape.com
f8406ab72a fix shadowed variables. we were creating a prefs instance many times in the same function when we only needed to create one.
git-svn-id: svn://10.0.0.236/trunk@31507 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:21:04 +00:00
bienvenu%netscape.com
200779d98b remove db listener in base class
git-svn-id: svn://10.0.0.236/trunk@31506 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:19:35 +00:00
bienvenu%netscape.com
52f5be501d add old flags to key change notification
git-svn-id: svn://10.0.0.236/trunk@31505 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:19:14 +00:00
dougt%netscape.com
acd7eba310 Adding Progress support files.
git-svn-id: svn://10.0.0.236/trunk@31504 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:17:24 +00:00
bienvenu%netscape.com
6433789f4d add old flags to key change notification, use PRUint32 exclusively
git-svn-id: svn://10.0.0.236/trunk@31503 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:16:39 +00:00
dougt%netscape.com
c74c7435c6 Adding for Progress Notifier
git-svn-id: svn://10.0.0.236/trunk@31502 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:15:37 +00:00
dougt%netscape.com
a72605dabc Adding files for Progress support
git-svn-id: svn://10.0.0.236/trunk@31501 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:14:47 +00:00
mccabe%netscape.com
42ca8e31b1 Turn off support for XPIDL_JS_STUBS in generated headers by default, as
- nobody uses it

- it's confusing.


git-svn-id: svn://10.0.0.236/trunk@31500 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:13:17 +00:00
law%netscape.com
7942bcbcff Adding new app shell components (not buidling them yet, however)
git-svn-id: svn://10.0.0.236/trunk@31499 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:11:41 +00:00
dougt%netscape.com
69d2182a7e Added progress listener support
Cleaned up nsInstallInfo
Moved logging into its own progress listener class


git-svn-id: svn://10.0.0.236/trunk@31498 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:11:04 +00:00
alecf%netscape.com
15f88a510c add advanced panel and testing panel (until RDF datasource is done)
git-svn-id: svn://10.0.0.236/trunk@31497 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:10:45 +00:00
alecf%netscape.com
1cda546834 new AccountManager interface
git-svn-id: svn://10.0.0.236/trunk@31496 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:10:14 +00:00
mscott%netscape.com
cdf4f5eb85 fix shadowed variable
git-svn-id: svn://10.0.0.236/trunk@31495 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:08:20 +00:00
ssu%netscape.com
a2c9837e28 initial checkin for install.WinReg object files
git-svn-id: svn://10.0.0.236/trunk@31494 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:06:24 +00:00
mscott%netscape.com
c5c4830afe fix shadowed variable
git-svn-id: svn://10.0.0.236/trunk@31492 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:00:28 +00:00
ssu%netscape.com
2e8fd26976 Added javascript install.WinReg object code for Windows platform only
git-svn-id: svn://10.0.0.236/trunk@31491 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:59:51 +00:00
ssu%netscape.com
2250ea126c initial checkin for install.WinReg object files
git-svn-id: svn://10.0.0.236/trunk@31490 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:59:00 +00:00
mscott%netscape.com
f6b1e1e238 hacks to get the transport socket to correctly run multiple urls over a connection. unfortunately, sockstub caches connections based on the url. so i'm faking it by keeping both the url struct used to open the connection around along with the url_struct for the current running url.
git-svn-id: svn://10.0.0.236/trunk@31489 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:55:44 +00:00
mscott%netscape.com
7f2bae17fd Add ability to change the url being used for a connection. This allows us to run multiple urls on a connection which we need for many of the mail protocols.
git-svn-id: svn://10.0.0.236/trunk@31488 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:52:25 +00:00
alecf%netscape.com
9615a05e1d remove my stupid debugging statement
git-svn-id: svn://10.0.0.236/trunk@31487 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:48:28 +00:00
law%netscape.com
eaf6957603 Adding to mac build
git-svn-id: svn://10.0.0.236/trunk@31486 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:46:44 +00:00
varada%netscape.com
eb4508dca5 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@31485 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:42:50 +00:00
rods%netscape.com
76498d2b50 Initial checkin
git-svn-id: svn://10.0.0.236/trunk@31484 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:41:37 +00:00
rods%netscape.com
8f77171738 Inital checkin
git-svn-id: svn://10.0.0.236/trunk@31483 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:39:31 +00:00
rods%netscape.com
8665f709bd moved nsITransferable include from header to impl
git-svn-id: svn://10.0.0.236/trunk@31482 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:32:49 +00:00
mcafee%netscape.com
6f87731acd Removing nsDataFlavor.cpp from the build.
git-svn-id: svn://10.0.0.236/trunk@31480 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:29:57 +00:00
rods%netscape.com
01f0a3de99 removing nsIDataFlavor and nsIGenericTransferable
git-svn-id: svn://10.0.0.236/trunk@31479 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:24:53 +00:00
pinkerton%netscape.com
989bbb9117 removing nsDataFlavor.cpp
git-svn-id: svn://10.0.0.236/trunk@31478 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:24:35 +00:00
mcafee%netscape.com
82b19ae538 Clipboard restructuring.
git-svn-id: svn://10.0.0.236/trunk@31477 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:24:26 +00:00
pinkerton%netscape.com
a0f662b0da removing nsidataFlavor and nsIGenericTransferable
git-svn-id: svn://10.0.0.236/trunk@31476 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:24:25 +00:00
law%netscape.com
1b5c3e84df Turn on new components (win and unix)
git-svn-id: svn://10.0.0.236/trunk@31475 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:23:17 +00:00
hshaw%netscape.com
9eb2e66067 Add new methods for nsICollection
git-svn-id: svn://10.0.0.236/trunk@31473 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:14:43 +00:00
akkana%netscape.com
ad2018ef65 Implementations for new fcn Get/SetBodyWrapWidth
git-svn-id: svn://10.0.0.236/trunk@31472 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:11:05 +00:00
rods%netscape.com
ee2283eb3d removed GenericTransferable
git-svn-id: svn://10.0.0.236/trunk@31471 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:03:01 +00:00
mscott%netscape.com
9190646504 fix shadowed variables
git-svn-id: svn://10.0.0.236/trunk@31470 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:58:53 +00:00
robinf%netscape.com
a38007dce1 checking in fix for bug 6102
git-svn-id: svn://10.0.0.236/trunk@31469 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:57:18 +00:00
hshaw%netscape.com
954ce3fb71 Propagate IDL changes from nsICollection.h, we'll need to do the same to nsIConnectionGroup->Count() once we IDLize
git-svn-id: svn://10.0.0.236/trunk@31468 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:57:07 +00:00
rods%netscape.com
037168cd6d removed nsIDataFlavor and merged transferable interfaces
git-svn-id: svn://10.0.0.236/trunk@31467 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:56:23 +00:00
mcafee%netscape.com
33cdca97ec Clipboard restructuring.
git-svn-id: svn://10.0.0.236/trunk@31466 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:55:40 +00:00
rhp%netscape.com
c68244f553 Changes for new I18N support
git-svn-id: svn://10.0.0.236/trunk@31465 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:55:08 +00:00
pinkerton%netscape.com
6fb14800ce updated clipboard apis and merging transferable into one api and getting rid of nsiDataFlavor.
git-svn-id: svn://10.0.0.236/trunk@31464 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:54:14 +00:00
rhp%netscape.com
0bd7fcb84b Fixes for many shadowing problems as well as changes for more I18N support
git-svn-id: svn://10.0.0.236/trunk@31463 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:53:58 +00:00
rods%netscape.com
089a8e7024 removed reference to nsIDataFlavor and merged nsITransferable and nsIGenericTransferable
git-svn-id: svn://10.0.0.236/trunk@31462 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:53:57 +00:00
cmanske%netscape.com
0992ccb525 Fixed isCollapsed not working for a selection with 1 range
git-svn-id: svn://10.0.0.236/trunk@31461 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:49:12 +00:00
mscott%netscape.com
e8b1396274 fix shadowed variable warning.
git-svn-id: svn://10.0.0.236/trunk@31460 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:45:13 +00:00
sspitzer%netscape.com
1a37986912 get rid of the demo menu and the "load news" button. they are obsolete.
git-svn-id: svn://10.0.0.236/trunk@31458 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:36:04 +00:00
evaughan%netscape.com
af52352a73 Fixed form submission.
git-svn-id: svn://10.0.0.236/trunk@31457 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:29:57 +00:00
despotdaemon%netscape.com
7b99a52101 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@31456 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:05:13 +00:00
cmanske%netscape.com
d22e75e71c Removed unused CSS
git-svn-id: svn://10.0.0.236/trunk@31454 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:01:43 +00:00
cmanske%netscape.com
93a9635625 Implemented spell checking IDL and appcore code
git-svn-id: svn://10.0.0.236/trunk@31453 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 20:59:11 +00:00
cmanske%netscape.com
18352a19b6 Implemented Spell Checking
git-svn-id: svn://10.0.0.236/trunk@31452 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 20:59:08 +00:00
morse%netscape.com
dd9b089cdf temporary change to unblock karnaze
git-svn-id: svn://10.0.0.236/trunk@31451 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 20:56:16 +00:00
waterson%netscape.com
3b5e6aa3a7 Use NS_WITH_SERVICE.
git-svn-id: svn://10.0.0.236/trunk@31450 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 20:53:07 +00:00
waterson%netscape.com
f74a2f7f68 Fix leakage of RDF service.
git-svn-id: svn://10.0.0.236/trunk@31449 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 20:52:42 +00:00
waterson%netscape.com
16d941df55 Fixed missing release service.
git-svn-id: svn://10.0.0.236/trunk@31448 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 20:52:15 +00:00
waterson%netscape.com
37bd7c4b0b Add clobber rule for XPIDL dirs.
git-svn-id: svn://10.0.0.236/trunk@31446 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 20:39:02 +00:00
sfraser%netscape.com
ff09f1922a Fix typing in mail compose window.
git-svn-id: svn://10.0.0.236/trunk@31445 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 20:37:33 +00:00
robinf%netscape.com
e7fbee574f commented-out text on these screens to make them less cluttered;other minor twaks
git-svn-id: svn://10.0.0.236/trunk@31444 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 20:34:47 +00:00
slamm%netscape.com
03d464ef4f Another iteration. Add everything to a box.
git-svn-id: svn://10.0.0.236/trunk@31443 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 20:33:40 +00:00
neeti%netscape.com
b72bbde6e5 hooking up pics to SetRendering api
git-svn-id: svn://10.0.0.236/trunk@31442 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 20:28:30 +00:00
neeti%netscape.com
40c56a54dc Fixed SetEnableRendering() in nsDocumentViewer.cpp
Initialized mEnableRendering in constructors of nsDocumentViewer.cpp and nsPlugin.cpp to a default value of PR_TRU
Do EnableRefresh only if mEnableRendering is set to true in nsHTMLContentSink.cpp,nsXMLContentSink.cpp,
nsXMLContentSink.h


git-svn-id: svn://10.0.0.236/trunk@31441 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 20:27:47 +00:00
waterson%netscape.com
b49bab21d2 Add nsICollection
git-svn-id: svn://10.0.0.236/trunk@31440 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 20:27:22 +00:00
donm%netscape.com
a44a401655 backing out build bustage made to closed tree.
git-svn-id: svn://10.0.0.236/trunk@31439 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 20:06:52 +00:00
karnaze%netscape.com
2f5ed9c08c checked for null file spec in WLLT_OKToCapture
git-svn-id: svn://10.0.0.236/trunk@31436 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 18:40:02 +00:00
donm%netscape.com
1d5628761d backing out linux build bustage. see bug #6331
git-svn-id: svn://10.0.0.236/trunk@31432 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 18:24:31 +00:00
kipp%netscape.com
b785d3cec2 new
git-svn-id: svn://10.0.0.236/trunk@31431 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 17:47:41 +00:00
waterson%netscape.com
901d7286d1 Okay, let's try that fix again.
git-svn-id: svn://10.0.0.236/trunk@31430 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 17:27:51 +00:00
waterson%netscape.com
43fff91360 Fix inappropriate use of member functions.
git-svn-id: svn://10.0.0.236/trunk@31429 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 16:57:59 +00:00
waterson%netscape.com
8dfeac2dde Fix MANIFEST_TEMP to include nsICollection.h.
git-svn-id: svn://10.0.0.236/trunk@31428 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 16:43:00 +00:00
waterson%netscape.com
d53aa972d4 Temporarily fix build bustage until we get brave enough to turn XPIDL on for Mac.
git-svn-id: svn://10.0.0.236/trunk@31427 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 16:41:32 +00:00
pinkerton%netscape.com
12032a750d removing nsICollection.h because it no longer exists (fix build bustage).
git-svn-id: svn://10.0.0.236/trunk@31426 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 16:24:06 +00:00
rods%netscape.com
126500e8d6 Removed excess includes and static IID & CID definitions
git-svn-id: svn://10.0.0.236/trunk@31425 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 13:52:00 +00:00
warren%netscape.com
1ba50959a3 Removing old files now generated by IDL (to avoid future screw ups).
git-svn-id: svn://10.0.0.236/trunk@31424 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 08:48:47 +00:00
briano%netscape.com
ff16da1eef Fix for QNX, and any other platform that doesn't have memory.h. Thanks to fur@netscape.com for allowing this change.
git-svn-id: svn://10.0.0.236/trunk@31423 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 08:46:41 +00:00
rjc%netscape.com
cc00d7190a Don't compare nsCOMPtrs against nsnull.
git-svn-id: svn://10.0.0.236/trunk@31422 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 08:29:56 +00:00
rjc%netscape.com
26f1eadc42 More cleanup on nsXULSortService (more nsCOMPtr usage, more C++ usage, etc.) Also, begin to add support for collation keys.
git-svn-id: svn://10.0.0.236/trunk@31421 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 08:25:12 +00:00
gagan%netscape.com
4455354bbf So we're using IDL nowcvs diff! I find out the hard way. -Warren
git-svn-id: svn://10.0.0.236/trunk@31420 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 08:21:37 +00:00
rjc%netscape.com
e8b58d3be9 Add support for any node attribute that wants to bind its value to RDF by looking it up in the graph.
git-svn-id: svn://10.0.0.236/trunk@31419 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 08:02:19 +00:00
law%netscape.com
4412b4587d Adding Shutdown member per change to nsIAppShellComponent
git-svn-id: svn://10.0.0.236/trunk@31418 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 06:10:59 +00:00
law%netscape.com
295099fbd7 Adding sample app shell component directories
git-svn-id: svn://10.0.0.236/trunk@31417 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 05:41:33 +00:00
law%netscape.com
3acd77bd56 New and improved
git-svn-id: svn://10.0.0.236/trunk@31416 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 05:38:38 +00:00
jband%netscape.com
d931c09d12 remove assertion and go with runtime safety for the fix that mccabe thoughtfully added for my broken code
git-svn-id: svn://10.0.0.236/trunk@31415 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 05:38:10 +00:00
warren%netscape.com
241c136c33 Fixed mac and linux uses of Count
git-svn-id: svn://10.0.0.236/trunk@31414 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 05:28:31 +00:00
warren%netscape.com
fe7d7e2e69 Fixed nsICollection (and Count in particular) to be xpidl friendly.
git-svn-id: svn://10.0.0.236/trunk@31413 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 04:56:04 +00:00
sfraser%netscape.com
f0479a451b Added wrap width attribute
git-svn-id: svn://10.0.0.236/trunk@31412 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 04:47:09 +00:00
sfraser%netscape.com
9cdfdf1b41 Add Get/Set column width calls, cleanup window opening, and rename overloaded methods.
git-svn-id: svn://10.0.0.236/trunk@31411 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 04:46:51 +00:00
sfraser%netscape.com
a61e8838d5 Add wrap column attibute
git-svn-id: svn://10.0.0.236/trunk@31410 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 04:45:22 +00:00
sfraser%netscape.com
4f8836e58a Stub in the get/set column width calls for plain text editing.
git-svn-id: svn://10.0.0.236/trunk@31409 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 04:44:57 +00:00
sfraser%netscape.com
e27b4eb930 Removed extra ;
git-svn-id: svn://10.0.0.236/trunk@31408 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 04:42:23 +00:00
sfraser%netscape.com
0659e88f57 Fix misplaced )
git-svn-id: svn://10.0.0.236/trunk@31407 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 04:42:11 +00:00
mcafee%netscape.com
e5d1243726 Ah, we need &amp; for & in XUL URL's. Fixing up the tinderbox URL.
git-svn-id: svn://10.0.0.236/trunk@31406 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 04:31:07 +00:00
bienvenu%netscape.com
f5d11fd257 fix mac warning
git-svn-id: svn://10.0.0.236/trunk@31405 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 03:59:20 +00:00
sspitzer%netscape.com
a5c1aac985 cvs ignorage
git-svn-id: svn://10.0.0.236/trunk@31404 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 03:53:42 +00:00
sspitzer%netscape.com
216fd370c8 create a virtual destructor
git-svn-id: svn://10.0.0.236/trunk@31403 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 03:48:00 +00:00
sspitzer%netscape.com
e8c841798a make destructor virtual
git-svn-id: svn://10.0.0.236/trunk@31402 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 03:39:34 +00:00
mccabe%netscape.com
fedb53eb9a Check against null vp passed in to CallWrappedMethod. This fixes stuff in the xpcom/sample directory.
git-svn-id: svn://10.0.0.236/trunk@31401 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 03:34:54 +00:00
briano%netscape.com
bc346e4185 Automated update
git-svn-id: svn://10.0.0.236/trunk@31400 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 03:32:03 +00:00
briano%netscape.com
641386b005 Added a check for memory.h.
git-svn-id: svn://10.0.0.236/trunk@31399 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 03:31:36 +00:00
briano%netscape.com
4b509245d2 Fix for QNX.
git-svn-id: svn://10.0.0.236/trunk@31398 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 03:13:14 +00:00
alecf%netscape.com
16fe972756 add xul to mac build
git-svn-id: svn://10.0.0.236/trunk@31397 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 03:07:17 +00:00
alecf%netscape.com
70175d992c oops, remove bogus xul
git-svn-id: svn://10.0.0.236/trunk@31396 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 03:05:03 +00:00
briano%netscape.com
eaa4545139 Fix for QNX. stat doesn't have st_blksize.
git-svn-id: svn://10.0.0.236/trunk@31395 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 03:04:42 +00:00
alecf%netscape.com
7aea687f4b add resources to windows build
git-svn-id: svn://10.0.0.236/trunk@31394 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 03:03:51 +00:00
alecf%netscape.com
56bce78944 add blank Account Manager JS file
git-svn-id: svn://10.0.0.236/trunk@31393 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:59:52 +00:00
terry%mozilla.org
5987ce97b2 Patch by Bert Driehuis <bert_driehuis@nl.compuware.com> -- use autoconf to find
sendmail, other minor portability patches.


git-svn-id: svn://10.0.0.236/trunk@31392 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:59:27 +00:00
alecf%netscape.com
c819e560a4 first check in of account manager and search dialog
(UI only, no implementation)


git-svn-id: svn://10.0.0.236/trunk@31391 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:59:24 +00:00
alecf%netscape.com
31c092e316 minimize html tags
git-svn-id: svn://10.0.0.236/trunk@31390 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:58:24 +00:00
alecf%netscape.com
56c6f7f40d fix dump statement to add newline
git-svn-id: svn://10.0.0.236/trunk@31389 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:58:01 +00:00
jfrancis%netscape.com
710bff6a24 updated to new iter behavior
git-svn-id: svn://10.0.0.236/trunk@31387 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:50:15 +00:00
law%netscape.com
769fa94700 Adding new app shell components
git-svn-id: svn://10.0.0.236/trunk@31386 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:47:41 +00:00
terry%mozilla.org
12b05c84f5 Don't do javascript on browsers older than 4.06; it seems not to be working.
git-svn-id: svn://10.0.0.236/trunk@31385 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:45:20 +00:00
jfrancis%netscape.com
b833e5348b better error handling
git-svn-id: svn://10.0.0.236/trunk@31384 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:43:30 +00:00
jfrancis%netscape.com
9a1fd449b8 artistic integrity of poetry must not be comprimised!
git-svn-id: svn://10.0.0.236/trunk@31383 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:40:53 +00:00
bienvenu%netscape.com
6b68ed1ef6 remove self as listener when going away
git-svn-id: svn://10.0.0.236/trunk@31382 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:35:24 +00:00
bienvenu%netscape.com
9a29cbdf91 don't addref the db, don't release it
git-svn-id: svn://10.0.0.236/trunk@31381 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:34:36 +00:00
sspitzer%netscape.com
14400137ce make destructors virtual
git-svn-id: svn://10.0.0.236/trunk@31380 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:25:13 +00:00
sspitzer%netscape.com
93a8b650ae make destructor virtual
git-svn-id: svn://10.0.0.236/trunk@31379 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:23:33 +00:00
sspitzer%netscape.com
9959ca08ff create virtual destructors
git-svn-id: svn://10.0.0.236/trunk@31378 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:17:09 +00:00
briano%netscape.com
bce93be754 Minor changes, mostly for QNX.
git-svn-id: svn://10.0.0.236/trunk@31377 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:16:10 +00:00
mjudge%netscape.com
3eb321b254 fixing lame compiler bug in SunOS gcc we are using wont accept this template call in nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@31376 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:14:32 +00:00
sspitzer%netscape.com
521872a270 create a virtual destructor
git-svn-id: svn://10.0.0.236/trunk@31375 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:14:11 +00:00
slamm%netscape.com
8b357e4b6a Play with the widget set and styles. Add onclick handler for 'Reload' button.
git-svn-id: svn://10.0.0.236/trunk@31373 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:12:01 +00:00
sspitzer%netscape.com
e4b612578b make destructors virtual
git-svn-id: svn://10.0.0.236/trunk@31372 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:11:25 +00:00
sspitzer%netscape.com
29821c1907 make destructor virtual
git-svn-id: svn://10.0.0.236/trunk@31371 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:11:09 +00:00
bienvenu%netscape.com
7735dc7cfd search and filter checkpoint
git-svn-id: svn://10.0.0.236/trunk@31369 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:10:05 +00:00
rhp%netscape.com
7284f7bc2e Changes to handle new approach for incorrectly labeled charsets on attachments
git-svn-id: svn://10.0.0.236/trunk@31368 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:03:43 +00:00
kipp%netscape.com
facecde26e Fixed typo
git-svn-id: svn://10.0.0.236/trunk@31367 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 01:52:52 +00:00
briano%netscape.com
21d5018dc4 Added support for QNX, and replaced a pile of platform-specific ifdefs with HAVE_SYS_BYTEORDER_H.
git-svn-id: svn://10.0.0.236/trunk@31366 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 01:40:19 +00:00
evaughan%netscape.com
6073e2aa13 Fixed pseudoclass hack to actually use active, hover, focus pseudoclasses.
git-svn-id: svn://10.0.0.236/trunk@31365 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 01:35:16 +00:00
matt%netscape.com
cde9971333 Adding finddialog.js to makefiles
git-svn-id: svn://10.0.0.236/trunk@31364 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 01:31:45 +00:00
matt%netscape.com
936d882556 Ripping out js from finddialog
git-svn-id: svn://10.0.0.236/trunk@31363 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 01:31:15 +00:00
joki%netscape.com
005d4ef3c6 New JSClass flag for indicating DOM elements to COMConnect
git-svn-id: svn://10.0.0.236/trunk@31362 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 01:20:50 +00:00
briano%netscape.com
fad42cdd12 Automated update
git-svn-id: svn://10.0.0.236/trunk@31361 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 01:09:36 +00:00
briano%netscape.com
b7f6f33705 Added a check for sys/byteorder.h.
git-svn-id: svn://10.0.0.236/trunk@31360 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 01:08:55 +00:00
sspitzer%netscape.com
d4f769511d make the destructors virtual
git-svn-id: svn://10.0.0.236/trunk@31359 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:59:19 +00:00
mcmullen%netscape.com
6269925e23 A bit of bulletproofing during the changeover: make sure the dist directories that are getting aliases vs. generated headers are cleaned out before doing manifest.
git-svn-id: svn://10.0.0.236/trunk@31358 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:57:36 +00:00
kipp%netscape.com
d1a5e2cc74 Export nsILineIterator, just in case...
git-svn-id: svn://10.0.0.236/trunk@31357 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:55:55 +00:00
kipp%netscape.com
ce49d97335 Fix compiler warnings; implement QueryInterface hack to get at line iterator
git-svn-id: svn://10.0.0.236/trunk@31356 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:55:38 +00:00
kipp%netscape.com
5f104cccc6 Updated line iterator impl to match API in nsILineIterator
git-svn-id: svn://10.0.0.236/trunk@31355 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:54:28 +00:00
kipp%netscape.com
e5bb868fbf new
git-svn-id: svn://10.0.0.236/trunk@31354 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:54:03 +00:00
pavlov%pavlov.net
c73b778598 misc changes including things to attempt to get command line things working in
apprunner


git-svn-id: svn://10.0.0.236/trunk@31352 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:53:50 +00:00
briano%netscape.com
750a1b39ba Fix for Motif builds.
git-svn-id: svn://10.0.0.236/trunk@31351 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:52:06 +00:00
sspitzer%netscape.com
bdc76059f4 make destructors virtual
git-svn-id: svn://10.0.0.236/trunk@31350 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:51:26 +00:00
sspitzer%netscape.com
89ee936592 make the destructor virtual
git-svn-id: svn://10.0.0.236/trunk@31349 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:48:42 +00:00
mjudge%netscape.com
3a865d8325 adding back in keyboard navigation. removing const from peekoffset to stop the const creep. changing peekoffset to do the right thing for content based peeking...
git-svn-id: svn://10.0.0.236/trunk@31348 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:44:23 +00:00
sspitzer%netscape.com
33a521249a destructor should be virtual.
git-svn-id: svn://10.0.0.236/trunk@31347 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:44:20 +00:00
mjudge%netscape.com
09deaec2f5 adding back in keyboard navigation. removing const from peekoffset to stop the const creep
git-svn-id: svn://10.0.0.236/trunk@31346 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:43:47 +00:00
sspitzer%netscape.com
ddd5ca8921 destructor should be virtual. (egcs warns about this.)
git-svn-id: svn://10.0.0.236/trunk@31345 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:41:40 +00:00
slamm%netscape.com
9f03f8b82d Add new sidebar files. Move bookmarks javascript into separate file.
git-svn-id: svn://10.0.0.236/trunk@31344 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:32:44 +00:00
robinf%netscape.com
1e2e21c8d3 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@31343 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:28:38 +00:00
ftang%netscape.com
6108754faf add cp1256 and windows-874
git-svn-id: svn://10.0.0.236/trunk@31342 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:27:52 +00:00
vidur%netscape.com
64db19daaa Backing out unintentional checkin
git-svn-id: svn://10.0.0.236/trunk@31341 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:24:45 +00:00
matt%netscape.com
d1e955ff04 Changing the makefiles to viewsource.js and
adding viewsource.js function to start viewsource app


git-svn-id: svn://10.0.0.236/trunk@31340 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:21:55 +00:00
vidur%netscape.com
98da6aed8d Fixed uninitialized variable problem.
git-svn-id: svn://10.0.0.236/trunk@31339 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:21:50 +00:00
pinkerton%netscape.com
d570e17373 put code that didn't compile yesterday back in. Now i know that ::Foo doesn't work too well if Foo is a macro.
git-svn-id: svn://10.0.0.236/trunk@31338 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:14:22 +00:00
pinkerton%netscape.com
bc17bb4f7b dispatch the drag and drop event to the correct widget
git-svn-id: svn://10.0.0.236/trunk@31337 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:13:44 +00:00
pinkerton%netscape.com
f627fbca5c somehow, these files got extra blank lines in them between every source file line. Removing them. Also removing duplicate implementations of addref, release, and QI, since we inherit them from nsBaseDragService.
git-svn-id: svn://10.0.0.236/trunk@31336 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:13:06 +00:00
alecf%netscape.com
2ecef844df checkin first-pass at nsIMsgHdr interface
git-svn-id: svn://10.0.0.236/trunk@31335 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:11:12 +00:00
mcmullen%netscape.com
0b250144fa Split the manifest files into two: idl-generated headers (used if USE_XPIDL is turned off) and non-generated headers.
git-svn-id: svn://10.0.0.236/trunk@31334 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:04:14 +00:00
slamm%netscape.com
eb0ea1884f Add sidebar title. Clean-up the layout.
git-svn-id: svn://10.0.0.236/trunk@31333 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:03:10 +00:00
mcmullen%netscape.com
01efc0d8b0 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@31332 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:01:48 +00:00
sspitzer%netscape.com
3cb75bd744 fix my personal build bustage on the mac. (I #define DEBUG_sspitzer in NGLayoutConfigInclude.h)
git-svn-id: svn://10.0.0.236/trunk@31330 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:59:09 +00:00
alecf%netscape.com
076d0a031f fix objdir build bustage in XPIDL idl files by forward declaring nsIMessage instead of including it
git-svn-id: svn://10.0.0.236/trunk@31329 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:57:26 +00:00
slamm%netscape.com
329c80eeb3 Lose the toolbox.
git-svn-id: svn://10.0.0.236/trunk@31328 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:55:20 +00:00
waterson%netscape.com
22bfed8309 Added xpconnect sample.
git-svn-id: svn://10.0.0.236/trunk@31327 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:54:34 +00:00
waterson%netscape.com
9b70f9b81f Initial revision.
git-svn-id: svn://10.0.0.236/trunk@31326 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:54:18 +00:00
briano%netscape.com
2d859f7536 Fix for QNX.
git-svn-id: svn://10.0.0.236/trunk@31325 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:53:50 +00:00
briano%netscape.com
aa0a4a0913 Fix for QNX. Need to tell it what uint is....
git-svn-id: svn://10.0.0.236/trunk@31324 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:44:27 +00:00
waterson%netscape.com
80721b8075 Added sample HTML.
git-svn-id: svn://10.0.0.236/trunk@31323 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:43:25 +00:00
rhp%netscape.com
fc96598b4a removal of stub code
git-svn-id: svn://10.0.0.236/trunk@31322 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:42:51 +00:00
rhp%netscape.com
4386c65291 Conversion of prefs to new world API's
git-svn-id: svn://10.0.0.236/trunk@31321 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:42:35 +00:00
briano%netscape.com
5c1f741635 Automated update
git-svn-id: svn://10.0.0.236/trunk@31320 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:37:56 +00:00
waterson%netscape.com
06264f684f Initial revision.
git-svn-id: svn://10.0.0.236/trunk@31319 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:37:45 +00:00
briano%netscape.com
915011ab3f Added a check for uint, mostly to help the QNX build.
git-svn-id: svn://10.0.0.236/trunk@31318 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:37:31 +00:00
despotdaemon%netscape.com
293419dab9 Pseudo-automatic update of changes made by rbs@maths.uq.edu.au.
git-svn-id: svn://10.0.0.236/trunk@31317 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:35:40 +00:00
briano%netscape.com
16c77e66ab QNX-specific ifdef addition.
git-svn-id: svn://10.0.0.236/trunk@31316 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:29:04 +00:00
tague%netscape.com
4e4477d076 Added work around for #5912
git-svn-id: svn://10.0.0.236/trunk@31315 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:23:14 +00:00
vidur%netscape.com
aa1755c55f Fix for bug 4435. Creating the right type of script object for blockquote.
git-svn-id: svn://10.0.0.236/trunk@31314 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:22:36 +00:00
ftang%netscape.com
61ebb4e614 add unicode
git-svn-id: svn://10.0.0.236/trunk@31313 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:19:12 +00:00
hyatt%netscape.com
700d338d84 Teaching window.open how to open chrome.
git-svn-id: svn://10.0.0.236/trunk@31312 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:17:40 +00:00
mccabe%netscape.com
1772d1476d Be conservative, and initialize the XPTState struct to 0 when allocating it. This cropped up as a problem where garbage fields were busting the msvc 6.0 -opt build, but was really xp.
git-svn-id: svn://10.0.0.236/trunk@31311 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:56:42 +00:00
mcmullen%netscape.com
bf928cd741 Fix badness when nsFilePath is initialized with a nil or empty string.
git-svn-id: svn://10.0.0.236/trunk@31310 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:56:24 +00:00
sfraser%netscape.com
5bfaa2834f IncrementModCount now takes a PRInt32 (this fixes broken builds).
git-svn-id: svn://10.0.0.236/trunk@31309 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:55:29 +00:00
mscott%netscape.com
116cbf7916 Whenever we display a message, be sure to mark it as read in the db. Use url method to get msghdr for a message instead of doing it ourselves.
git-svn-id: svn://10.0.0.236/trunk@31308 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:53:05 +00:00
mscott%netscape.com
fb67f8ec08 add accessor to get msg db hdr for a mailbox url.
git-svn-id: svn://10.0.0.236/trunk@31307 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:51:26 +00:00
morse%netscape.com
c6fd628953 download wallet editor onto client
git-svn-id: svn://10.0.0.236/trunk@31305 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:40:22 +00:00
pnunn%netscape.com
62adbe4ab7 Pass reload policy through to netlib. This may help the
various bugs related to animations (#2148,#1865,#5030,#3958,#4350).
-pnunn


git-svn-id: svn://10.0.0.236/trunk@31303 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:30:52 +00:00
ftang%netscape.com
ba007ad522 check in performance improved unicode rendering for mac. Use TEC convert to script code before calling ATSUI to improve peroformance
git-svn-id: svn://10.0.0.236/trunk@31302 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:30:10 +00:00
sfraser%netscape.com
bd86c8bee1 Give editor app cores a unique name so that you can have more than one open at a time, and fix the dialogs to cope with this. Also added file opening UI.
git-svn-id: svn://10.0.0.236/trunk@31301 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:25:45 +00:00
sfraser%netscape.com
ac1a4a233b Added file opening functionality
git-svn-id: svn://10.0.0.236/trunk@31300 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:24:47 +00:00
erik%netscape.com
a2ad6b315b Bug 5772. Getting rid of the 4-byte version of PRUnichar.
git-svn-id: svn://10.0.0.236/trunk@31299 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:24:30 +00:00
tague%netscape.com
86594a9417 Fixed bug #5564, #6214. Problems with nsLocale.dll components not loading. dp reviewed changes
git-svn-id: svn://10.0.0.236/trunk@31298 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:24:20 +00:00
sfraser%netscape.com
3ce5856675 Add new methods to the editor app core to allow opening editor windows from local files.
git-svn-id: svn://10.0.0.236/trunk@31297 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:24:05 +00:00
briano%netscape.com
9abd96a0d2 Fix for Motif builds.
git-svn-id: svn://10.0.0.236/trunk@31296 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:23:04 +00:00
kipp%netscape.com
9074dae0dd Alloc IID
git-svn-id: svn://10.0.0.236/trunk@31295 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:20:55 +00:00
kin%netscape.com
802bb823c8 Made read only parameters const.
git-svn-id: svn://10.0.0.236/trunk@31294 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:17:41 +00:00
rhp%netscape.com
7205d05eaf Changes for new API testing
git-svn-id: svn://10.0.0.236/trunk@31293 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:14:28 +00:00
rhp%netscape.com
36f4c3f95b General work on composition back end
git-svn-id: svn://10.0.0.236/trunk@31292 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:13:58 +00:00
rhp%netscape.com
20414c465e Changes for fix CID declarations.
git-svn-id: svn://10.0.0.236/trunk@31291 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:09:31 +00:00
rhp%netscape.com
b1b4aaae77 Changes for nsCOMPtr usage.
git-svn-id: svn://10.0.0.236/trunk@31290 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:08:22 +00:00
ducarroz%netscape.com
e9d647f192 fix for bug #6315. HTML tag name are now capitalized in the Dom!
git-svn-id: svn://10.0.0.236/trunk@31289 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:00:53 +00:00
kin%netscape.com
120c8543f6 Changed all references to nsVoidArray to nsStringArray.
git-svn-id: svn://10.0.0.236/trunk@31288 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 21:56:11 +00:00
alecf%netscape.com
45c867129f also add -I$(srcdir) when generating xpt files
git-svn-id: svn://10.0.0.236/trunk@31287 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 21:50:17 +00:00
alecf%netscape.com
a165f6a5cf adding extra $(srcdir) include for xpidl
git-svn-id: svn://10.0.0.236/trunk@31286 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 21:43:03 +00:00
terry%mozilla.org
2629614e03 Patch by Bert Driehuis <bert_driehuis@nl.compuware.com> -- use autoconf to find sendmail, other minor portability patches.
git-svn-id: svn://10.0.0.236/trunk@31285 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 21:41:57 +00:00
alecf%netscape.com
0dc2d27a8e forward declare instead of including IDL
git-svn-id: svn://10.0.0.236/trunk@31284 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 21:21:54 +00:00
alecf%netscape.com
85802de1dd fix luxor's build bustage by adding nsIFolder and nsIFolderListener to IDL file list, which required regeneration of some header files
git-svn-id: svn://10.0.0.236/trunk@31280 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 19:11:22 +00:00
terry%mozilla.org
bb9c838c9e Minor formatting tweak.
git-svn-id: svn://10.0.0.236/trunk@31276 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 18:27:18 +00:00
terry%mozilla.org
ad388648be Added user preference controlling how much email they get.
git-svn-id: svn://10.0.0.236/trunk@31275 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 17:20:40 +00:00
terry%mozilla.org
28648721dc navigation_header() should work even if $::FORM{'id'} isn't defined.
git-svn-id: svn://10.0.0.236/trunk@31274 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 17:18:10 +00:00
sspitzer%netscape.com
223e501705 fix pedantic build bustage. (thanks to kin for the fix)
git-svn-id: svn://10.0.0.236/trunk@31273 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 16:53:26 +00:00
bienvenu%netscape.com
478843414a search+filter checkpoint (not part of build)
git-svn-id: svn://10.0.0.236/trunk@31272 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 16:25:29 +00:00
dcone%netscape.com
98b154dd81 added a PrintContent() method to these classes
git-svn-id: svn://10.0.0.236/trunk@31271 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 13:32:09 +00:00
dcone%netscape.com
9598165686 Added a PrintContent() method to the nsIContentViewer class
git-svn-id: svn://10.0.0.236/trunk@31270 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 13:31:28 +00:00
mccabe%netscape.com
7172b35aea Allocate 1 extra space and nul-terminate the string given to XPT_NewString. Thanks to Jim Dunn <jdunn@netscape.com> for suggesting this fix.
git-svn-id: svn://10.0.0.236/trunk@31269 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 09:04:38 +00:00
alecf%netscape.com
64e9468cea remove include for nsIStreamListener.h
git-svn-id: svn://10.0.0.236/trunk@31268 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 08:46:14 +00:00
alecf%netscape.com
bcaf81cf64 remove entire nsIURL #include
git-svn-id: svn://10.0.0.236/trunk@31267 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 07:55:16 +00:00
jband%netscape.com
fdee64f201 fix two places where we use a node as if it were of a type other than the type it is. This was causing a problem on some platforms, though it unfortunately was working fine on Win32. Thanks to khym@bga.com (Dave Huang)
git-svn-id: svn://10.0.0.236/trunk@31265 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 07:42:32 +00:00
pierre%netscape.com
3c8fb85f29 renamed GraphicState "nsGraphicState", put it in a sepate file, added memory pools for GraphicStates and native regions.
git-svn-id: svn://10.0.0.236/trunk@31264 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 07:27:31 +00:00
pierre%netscape.com
72dbcf5751 profiler-ready + put added mMouseRgn
git-svn-id: svn://10.0.0.236/trunk@31262 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 07:26:55 +00:00
pierre%netscape.com
e316bc4416 profiler-ready: make alias of ProfilerLib
git-svn-id: svn://10.0.0.236/trunk@31261 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 07:25:10 +00:00
pierre%netscape.com
8c393536e2 profiler-ready
git-svn-id: svn://10.0.0.236/trunk@31260 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 07:22:03 +00:00
briano%netscape.com
9b90cb4390 Automated update
git-svn-id: svn://10.0.0.236/trunk@31259 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 07:14:44 +00:00
briano%netscape.com
f833b6e2f8 Another Motif-specific tweak. Don't worry about -lXpm anymore.
git-svn-id: svn://10.0.0.236/trunk@31258 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 07:13:24 +00:00
pierre%netscape.com
72b13766ec profiler-ready
git-svn-id: svn://10.0.0.236/trunk@31257 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 07:11:51 +00:00
pierre%netscape.com
9038bf2a40 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@31256 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 06:57:52 +00:00
pinkerton%netscape.com
4676d437c0 add defines for Carbon, but turned off.
git-svn-id: svn://10.0.0.236/trunk@31255 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 06:44:34 +00:00
pinkerton%netscape.com
a121dbe030 change #ifndef TARGET_CARBON to #if !TARGET_CARBON so it can be defined as 0 in DefinesMac.h
git-svn-id: svn://10.0.0.236/trunk@31254 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 06:44:03 +00:00
alecf%netscape.com
6918b76588 don't include nsIURL.h, just forward-declare it as a class/interface
git-svn-id: svn://10.0.0.236/trunk@31253 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 06:28:50 +00:00
beard%netscape.com
59ce15b321 made Count() method pure virtual, to fix xpcom link error.
git-svn-id: svn://10.0.0.236/trunk@31252 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 06:20:37 +00:00
beard%netscape.com
209a3bcdda bumped the version to 1.0d3
git-svn-id: svn://10.0.0.236/trunk@31251 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 05:41:53 +00:00
beard%netscape.com
c6f43358d6 when popping an #include, fclose the file.
git-svn-id: svn://10.0.0.236/trunk@31250 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 05:41:29 +00:00
pinkerton%netscape.com
59f38a8756 don't use the NSRuntimeStubs, use NSRuntime instead. No need for stubs anymore because runtime is built before stdlib.
git-svn-id: svn://10.0.0.236/trunk@31249 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 05:36:41 +00:00
alecf%netscape.com
3c57145071 rev these interfaces
git-svn-id: svn://10.0.0.236/trunk@31248 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 05:30:06 +00:00
alecf%netscape.com
0337438a36 add nsICollection to the windows IDL files
git-svn-id: svn://10.0.0.236/trunk@31247 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 05:24:00 +00:00
bryce-mozilla%nextbus.com
be9c24d186 "nospam" feature. BugZilla will no longer email the person submitting
the change (after all, they are right there viewing things interactively).
To make this clear to everyone, print out the exact email list as each
bug is processed.


git-svn-id: svn://10.0.0.236/trunk@31246 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 05:22:36 +00:00
alecf%netscape.com
a333fd18fc add no_gen_xpt rule for windows to avoid generating .XPT files
git-svn-id: svn://10.0.0.236/trunk@31245 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 05:15:12 +00:00
sspitzer%netscape.com
482511e232 changes to get news working on Linux: stop shadowing rv, and check in
mscott's protocol fixes


git-svn-id: svn://10.0.0.236/trunk@31244 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 05:07:10 +00:00
alecf%netscape.com
7b7be659db hide much of the profile noise
git-svn-id: svn://10.0.0.236/trunk@31243 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 05:01:33 +00:00
rogerl%netscape.com
9de177473f Fixed warnings, few statement & expression changes
git-svn-id: svn://10.0.0.236/trunk@31242 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 05:01:31 +00:00
bryce-mozilla%nextbus.com
42c9e69339 Add new section on MySQL security, give hints for setting up the bug
characterization enums, and a fix a few minor glitchies.  A BugZilla
novice, however, is the only person who can properly proof these instructions.


git-svn-id: svn://10.0.0.236/trunk@31241 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 04:53:11 +00:00
alecf%netscape.com
041dc2c219 dont' use idlc macros
git-svn-id: svn://10.0.0.236/trunk@31240 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 04:51:17 +00:00
scc%netscape.com
75ac724111 Fixup CallQueryInterface
git-svn-id: svn://10.0.0.236/trunk@31239 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 04:50:08 +00:00
pinkerton%netscape.com
39cc264f6b add NEW_DRAG_AND_DROP define for Ender.
git-svn-id: svn://10.0.0.236/trunk@31238 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 04:49:45 +00:00
alecf%netscape.com
d464a3528f use forward-declared interfaces because IDL files for these interfaces are not available anymore
git-svn-id: svn://10.0.0.236/trunk@31237 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 04:40:44 +00:00
bryce-mozilla%nextbus.com
ed8355e868 I keep chipping away at the Mozilla-specific things.
git-svn-id: svn://10.0.0.236/trunk@31236 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 04:40:02 +00:00
alecf%netscape.com
1f6ed43e44 forward-declare nsICollection, and add new hasSubFolders attribute
git-svn-id: svn://10.0.0.236/trunk@31235 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 04:39:52 +00:00
alecf%netscape.com
04924ad593 use forward-declared interfaces until DOM XPIDL files are available
git-svn-id: svn://10.0.0.236/trunk@31234 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 04:38:57 +00:00
alecf%netscape.com
7ef8a37bc8 IDL version of MailNewsTypes.idl
git-svn-id: svn://10.0.0.236/trunk@31233 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 04:38:11 +00:00
alecf%netscape.com
9a712fbe55 IDL version of nsIUrlListener
git-svn-id: svn://10.0.0.236/trunk@31232 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 04:37:56 +00:00
bryce-mozilla%nextbus.com
fb07f9615d Remove dead code
git-svn-id: svn://10.0.0.236/trunk@31231 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 04:33:14 +00:00
bryce-mozilla%nextbus.com
270f340e8a Make URL an actual link
git-svn-id: svn://10.0.0.236/trunk@31230 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 04:31:35 +00:00
karnaze%netscape.com
0c73f5b294 bug 2961 - table desired size considers pass1 size
git-svn-id: svn://10.0.0.236/trunk@31229 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 04:15:44 +00:00
pinkerton%netscape.com
ed97fe9ae5 when building with Carbon, use different targets for NSRuntime and MemoryAllocators. These will disappear with time, but for now we need them.
git-svn-id: svn://10.0.0.236/trunk@31228 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 03:50:24 +00:00
pinkerton%netscape.com
f9cfc27daa Add two new targets for Carbon that use the MSL mem allocators instead of sfraser's because heapzones don't exist under Carbon.
git-svn-id: svn://10.0.0.236/trunk@31227 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 03:48:01 +00:00
jefft%netscape.com
47e4c38bc9 Default not notify fe event completion
git-svn-id: svn://10.0.0.236/trunk@31226 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 03:47:46 +00:00
pinkerton%netscape.com
69c9926d19 add the MacOS Support:Headers:Universal Headers access path so that we can pick up subfolders in the headers introduced in Carbon. Adding this path won't affect non-carbon builds because this folder exists already.
git-svn-id: svn://10.0.0.236/trunk@31225 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 03:47:19 +00:00
alecf%netscape.com
82dac5dabe use the XPIDL version of nsIDOMBaseAppCore so that the mail/news appcore IDL can #include it
git-svn-id: svn://10.0.0.236/trunk@31224 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 03:46:39 +00:00
alecf%netscape.com
f96d46504f don't use idlc macros
git-svn-id: svn://10.0.0.236/trunk@31223 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 03:35:39 +00:00
pinkerton%netscape.com
08b7960a51 leave exporting qd to nsRuntimeQD.exp
git-svn-id: svn://10.0.0.236/trunk@31222 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 03:31:23 +00:00
pinkerton%netscape.com
aba6dbeb49 add two new targets for Carbon (debug and optimized). These targets don't include quickdraw_globals.c or export "qd". Introduced a new file NSRuntimeQD.exp that is only in the non-Carbon targets that exports "qd".
git-svn-id: svn://10.0.0.236/trunk@31221 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 03:31:07 +00:00
pinkerton%netscape.com
9be86e2749 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@31220 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 03:29:47 +00:00
alecf%netscape.com
efc84553ca Count() is no longer const
git-svn-id: svn://10.0.0.236/trunk@31219 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 03:24:36 +00:00
bienvenu%netscape.com
53b4956fb4 add utility for filing out priority
git-svn-id: svn://10.0.0.236/trunk@31218 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 03:16:20 +00:00
alecf%netscape.com
62e2fc90b9 add nsICollection.idl to the unix build system
git-svn-id: svn://10.0.0.236/trunk@31217 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 03:12:01 +00:00
alecf%netscape.com
ce0a5e08ca check in IDL version of nsICollection interface
git-svn-id: svn://10.0.0.236/trunk@31216 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 03:11:48 +00:00
alecf%netscape.com
9ec77255f1 Count() is no longer const
git-svn-id: svn://10.0.0.236/trunk@31215 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 02:55:54 +00:00
alecf%netscape.com
f42c46d667 remove const-ness from nsICollection::Count() so that it can be represented with XPIDL
git-svn-id: svn://10.0.0.236/trunk@31214 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 02:53:37 +00:00
mscott%netscape.com
213993a063 Cleanup some of the memory leaks in this code. We were never releasing the stream converter that was attached to the stream! The stream struct was just getting PR_Free'd. So I tweaked plugin_stream_complete and plugin_stream_abort to release the converter. And we had another leak on the pluggable converter object which was in NET_PluginStream. Using nsCOMPtr to fix the leak. Also fixed where we were comparing a nsresult directly against NS_OK instead of using NS_SUCCEEDED.
git-svn-id: svn://10.0.0.236/trunk@31213 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 02:50:12 +00:00
briano%netscape.com
2da95bda3c Automated update
git-svn-id: svn://10.0.0.236/trunk@31212 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 02:44:41 +00:00
pinkerton%netscape.com
5f427a4248 AEDesc data handles are opaque under Carbon. Need a solution, but for now they are commented out with a debugStr when building for Carbon.
git-svn-id: svn://10.0.0.236/trunk@31211 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 02:41:48 +00:00
briano%netscape.com
2db662f7b5 Minor house-cleaning.
git-svn-id: svn://10.0.0.236/trunk@31210 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 02:35:54 +00:00
pinkerton%netscape.com
d732d9469a disposing of event proc has changed under Carbon. tweaking.
git-svn-id: svn://10.0.0.236/trunk@31209 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 02:35:28 +00:00
alecf%netscape.com
d79713efee remove -pipe because it confuses the heck out of the solaris assembler "as"
(we should put it back when we know (gcc && gas)


git-svn-id: svn://10.0.0.236/trunk@31208 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 02:32:59 +00:00
mcmullen%netscape.com
3d1f86b08d Add a missing colon in one of the dist-clobbering options (not being used on Tinderbox)
git-svn-id: svn://10.0.0.236/trunk@31207 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 02:31:06 +00:00
pinkerton%netscape.com
c7d8f02860 more stuff that doesn't exist under Carbon, commented out when building for that. We really need a carbonated moreFiles.
git-svn-id: svn://10.0.0.236/trunk@31206 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 02:30:50 +00:00
alecf%netscape.com
da8a0875aa include nsresult typedef
git-svn-id: svn://10.0.0.236/trunk@31205 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 02:19:18 +00:00
briano%netscape.com
662b7917b0 Automated update
git-svn-id: svn://10.0.0.236/trunk@31204 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 02:15:14 +00:00
briano%netscape.com
4767410d3a Another motif bug fix.
git-svn-id: svn://10.0.0.236/trunk@31203 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 02:14:25 +00:00
mccabe%netscape.com
3d94d41af6 Fix xpidl header generation to not emit a trailing (erroneous) ',' when generating [notxpcom] interfaces.
Thanks to Alec Flett <alecf@netscape.com> for this patch.


git-svn-id: svn://10.0.0.236/trunk@31202 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 02:13:40 +00:00
mccabe%netscape.com
7550d64eb3 Support for magically detecting whether an argument to an XPConnect'ed function is a dom node with a native nsISupports, and unwrapping it properly.
This'll go live as soon as I can persuade joki or vidur to rebuild the DOM stubs.


git-svn-id: svn://10.0.0.236/trunk@31201 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 02:05:48 +00:00
blizzard%redhat.com
03c092771f catch up with the new nsIMenuBar interface
git-svn-id: svn://10.0.0.236/trunk@31198 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 01:27:06 +00:00
alecf%netscape.com
411643ee6a fix XPIDL source so that output matches that of idlc
git-svn-id: svn://10.0.0.236/trunk@31197 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 01:25:49 +00:00
srinivas%netscape.com
e518a503f4 Port to OpenVMS.
Checkin for "Colin R. Blake" <colin@theblakes.com>.


git-svn-id: svn://10.0.0.236/trunk@31194 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 00:47:36 +00:00
srinivas%netscape.com
0a5638dc19 Initial version for the OpenVMS port.
Checkin for "Colin R. Blake" <colin@theblakes.com>.


git-svn-id: svn://10.0.0.236/trunk@31193 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 00:43:26 +00:00
bruce%cybersight.com
d84fb01ece Add newline at end of file for native unix compilers.
git-svn-id: svn://10.0.0.236/trunk@31192 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 00:39:14 +00:00
srinivas%netscape.com
fe3c39cb80 Initial version of the OpenVMS config file.
Checkin for "Colin R. Blake" <colin@theblakes.com>.


git-svn-id: svn://10.0.0.236/trunk@31191 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 00:38:44 +00:00
pinkerton%netscape.com
61a1d89d51 fix bustage.
git-svn-id: svn://10.0.0.236/trunk@31190 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 00:28:20 +00:00
waterson%netscape.com
1099393c41 Add XPIDL build stuff, conditioned on the USE_XPIDL variable.
git-svn-id: svn://10.0.0.236/trunk@31189 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 00:26:26 +00:00
waterson%netscape.com
b3f6322a1d Add USE_XPIDL variable, off for now.
git-svn-id: svn://10.0.0.236/trunk@31188 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 00:25:12 +00:00
mcmullen%netscape.com
1e28667a7e Assert when nsFileSpec gets a unix path
git-svn-id: svn://10.0.0.236/trunk@31187 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 00:17:53 +00:00
matt%netscape.com
b2f80b60a1 Added viewsource.js and needed to change the name to viewSource.js
git-svn-id: svn://10.0.0.236/trunk@31186 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 00:17:22 +00:00
kipp%netscape.com
524aed5470 Fix makefile glitch
git-svn-id: svn://10.0.0.236/trunk@31185 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 00:15:22 +00:00
rhp%netscape.com
75717925b6 removed files: mozilla/mailnews/mime/emitters/html/rebuffer.cpp
git-svn-id: svn://10.0.0.236/trunk@31184 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 00:13:19 +00:00
matt%netscape.com
d14ce14543 Adding viewSource.xul and adding the viewsource.js makefiles
git-svn-id: svn://10.0.0.236/trunk@31183 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 00:07:23 +00:00
matt%netscape.com
cefb96dc38 Ripping out javascript from viewsource.js
git-svn-id: svn://10.0.0.236/trunk@31182 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 00:06:17 +00:00
pinkerton%netscape.com
cecde1eef1 using accessors when required by Carbon. Also adding lots of preliminary macOS drag and drop stuff. Wish I could have separated these into multiple checkins, but not possible.
git-svn-id: svn://10.0.0.236/trunk@31181 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 00:02:09 +00:00
mcmullen%netscape.com
b78dd123e8 Well, the pref stuff in here was all bogus. Fixed it up so that it works.
git-svn-id: svn://10.0.0.236/trunk@31180 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:56:14 +00:00
sspitzer%netscape.com
bca544d9bc added files: mozilla/mailnews/mime/src/nsMimeURLUtils.cpp
git-svn-id: svn://10.0.0.236/trunk@31179 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:51:29 +00:00
karnaze%netscape.com
eb995ddc90 additional regression tests
git-svn-id: svn://10.0.0.236/trunk@31178 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:49:46 +00:00
mscott%netscape.com
25270ca0d3 part of mailnews audit --> use nsCOMPtr. Use NS_SUCCEEDED test instead of comparing directly against NS_OK. fix mem leak on msghdr & mismatched memory free.
git-svn-id: svn://10.0.0.236/trunk@31177 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:47:13 +00:00
mcmullen%netscape.com
1872deb959 We don't need to link with libpref, so I removed it.
git-svn-id: svn://10.0.0.236/trunk@31176 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:46:42 +00:00
alecf%netscape.com
952269baf0 add a way to avoid generating .xpt files (since forward declaring in xpt files is broken right now)
add a rule to generate tags for emacs


git-svn-id: svn://10.0.0.236/trunk@31175 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:43:36 +00:00
rhp%netscape.com
707633d2ee Changes for new URL parsing interface
git-svn-id: svn://10.0.0.236/trunk@31174 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:42:27 +00:00
rhp%netscape.com
bcdda805fa New interface for URL parsing
git-svn-id: svn://10.0.0.236/trunk@31173 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:39:48 +00:00
rhp%netscape.com
8b84000b7b cleanup
git-svn-id: svn://10.0.0.236/trunk@31172 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:36:07 +00:00
rhp%netscape.com
64b5511106 Cleanup
git-svn-id: svn://10.0.0.236/trunk@31171 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:35:57 +00:00
kipp%netscape.com
6877a9a0b2 Fix for windoze build
git-svn-id: svn://10.0.0.236/trunk@31170 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:35:05 +00:00
akkana%netscape.com
1c82a16281 Add test for IsDataFlavorSupported for xpfe folks to fix bug 6289
git-svn-id: svn://10.0.0.236/trunk@31169 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:34:40 +00:00
rhp%netscape.com
49322ae54f Cleanup of debug output
git-svn-id: svn://10.0.0.236/trunk@31168 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:30:24 +00:00
rhp%netscape.com
05be305331 New interface for URL parsing
git-svn-id: svn://10.0.0.236/trunk@31167 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:28:33 +00:00
rhp%netscape.com
6047e4d24d New interface for URL parsing utilities
git-svn-id: svn://10.0.0.236/trunk@31166 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:28:09 +00:00
kipp%netscape.com
af3343e1ba nuked
git-svn-id: svn://10.0.0.236/trunk@31165 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 22:42:58 +00:00
kipp%netscape.com
fd69c71278 Removed nsWBRFrame.cpp from the build
git-svn-id: svn://10.0.0.236/trunk@31164 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 22:42:43 +00:00
kipp%netscape.com
0ed04e2df6 removed files: mozilla/layout/html/base/src/nsWBRFrame.cpp
git-svn-id: svn://10.0.0.236/trunk@31163 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 22:42:29 +00:00
kipp%netscape.com
b05e8d4fc0 Stubbed out
git-svn-id: svn://10.0.0.236/trunk@31162 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 22:39:46 +00:00
mscott%netscape.com
55f2384e8d re-audit this filetoo use nsCOMPtr as some code was added that wasn't using it when it should have. fix memory leak of folder name.
git-svn-id: svn://10.0.0.236/trunk@31161 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 22:32:29 +00:00
briano%netscape.com
3a9e8e1f62 Automated update
git-svn-id: svn://10.0.0.236/trunk@31160 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 22:29:43 +00:00
putterman%netscape.com
9e17795200 Fix mismatch memory free.
git-svn-id: svn://10.0.0.236/trunk@31159 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 22:28:34 +00:00
putterman%netscape.com
60b85b6ac0 Fixed mismatched memory free.
git-svn-id: svn://10.0.0.236/trunk@31158 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 22:28:06 +00:00
akkana%netscape.com
3a70f7a5cb New build option enable-crash-on-assert for those who really want the old behavior
git-svn-id: svn://10.0.0.236/trunk@31157 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 22:22:24 +00:00
kipp%netscape.com
de60169b67 Reworked frame factory methods; fixed bug 4519
git-svn-id: svn://10.0.0.236/trunk@31154 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 22:03:29 +00:00
pinkerton%netscape.com
126ac23d41 use accessors for opaque data structs where required for carbon. Make sure we return grafptrs when asking for graphics and windowptrs when asking for windows, since they are very different under Carbon.
git-svn-id: svn://10.0.0.236/trunk@31153 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:56:17 +00:00
pinkerton%netscape.com
b1932be19b scroll action proc's need keyword pascal for Carbon. conditionally added it. Ugly, but it works.
git-svn-id: svn://10.0.0.236/trunk@31152 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:51:33 +00:00
pinkerton%netscape.com
309c84268a using accessor functions for opaque data structs where necessary for carbon.
git-svn-id: svn://10.0.0.236/trunk@31150 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:47:03 +00:00
pinkerton%netscape.com
655585ef89 using accessors for opaque data structs where necessary for Carbon.
git-svn-id: svn://10.0.0.236/trunk@31149 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:46:10 +00:00
pinkerton%netscape.com
42c1e35453 FetchFontInfo not yet in Carbon. This will be fixed, but is hacked around for now.
git-svn-id: svn://10.0.0.236/trunk@31148 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:43:54 +00:00
pinkerton%netscape.com
a3afd945fb ask for the grafPort, not the window, since they are different in Carbon.
git-svn-id: svn://10.0.0.236/trunk@31147 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:41:03 +00:00
pinkerton%netscape.com
6619489e1a moved the ifdefs around the printing code to be more correct.
git-svn-id: svn://10.0.0.236/trunk@31146 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:40:25 +00:00
pinkerton%netscape.com
0f78f06b5d old printing api's obsoleted in carbon.
git-svn-id: svn://10.0.0.236/trunk@31145 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:40:01 +00:00
briano%netscape.com
e7dba6b9ee Automated update
git-svn-id: svn://10.0.0.236/trunk@31144 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:39:38 +00:00
briano%netscape.com
6157d63070 Fixed a bug in the Motif toolkit section.
git-svn-id: svn://10.0.0.236/trunk@31143 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:39:02 +00:00
pinkerton%netscape.com
2f2c657552 comment out printing under Carbon. api's have been obsoleted and need to be redone.
git-svn-id: svn://10.0.0.236/trunk@31142 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:36:39 +00:00
pinkerton%netscape.com
28ef714de5 comment out printing code under carbon. The api's have all been obsoleted and we need to rework them. Also font/encoding stuff is messed up in WWDC builds so some hacks are in here to work around. That code should all go away when Carbon is fixed.
git-svn-id: svn://10.0.0.236/trunk@31141 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:36:19 +00:00
pinkerton%netscape.com
d6a95f103c dont use OpenDeskAcc under Carbon.
git-svn-id: svn://10.0.0.236/trunk@31140 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:32:51 +00:00
pinkerton%netscape.com
4d6276cd97 some of the timer stuff in here (which we don't use) doesn't like the WWDC Carbon Headers. #ifdef'd out for TARGET_CARBON.
git-svn-id: svn://10.0.0.236/trunk@31139 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:31:32 +00:00
pinkerton%netscape.com
6e22c9bf4f use MacPrefix.h for the target we build. It was already used in the other targets, but not for the optimized .o we always build.
git-svn-id: svn://10.0.0.236/trunk@31138 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:30:18 +00:00
ducarroz%netscape.com
ce529ef627 Improuve fiability of the unique number generation for the session ID
git-svn-id: svn://10.0.0.236/trunk@31137 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:29:50 +00:00
pinkerton%netscape.com
7c4a8abf35 add "MacOS Support:Universal Headers" access path to debug and opt targets in order to pick up new carbon includes. This will not effect non-carbon builds since this path exists already. Just compiler weirdness makes this necessary.
git-svn-id: svn://10.0.0.236/trunk@31136 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:29:07 +00:00
pinkerton%netscape.com
52017bfddf Font stuff now in CarbonLib so no need to link with it specially.
git-svn-id: svn://10.0.0.236/trunk@31135 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:27:25 +00:00
pinkerton%netscape.com
71c6e56744 add variable to build with TARGET_CARBON. Off for now, but can be turned on by anyone wanting to build Carbon.
git-svn-id: svn://10.0.0.236/trunk@31134 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:26:07 +00:00
briano%netscape.com
280120ee1a Added support for the QNX photon directories under base, gfx, and widget.
git-svn-id: svn://10.0.0.236/trunk@31133 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:03:27 +00:00
mcafee%netscape.com
6d7f5abbbf Borrowing the . prefix menu name convention fromthe ender team denoting that this menu item doesn't work yet.
git-svn-id: svn://10.0.0.236/trunk@31132 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 21:02:49 +00:00
briano%netscape.com
c72df5a29a Fix for QNX.
git-svn-id: svn://10.0.0.236/trunk@31131 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 20:58:37 +00:00
mscott%netscape.com
cb42306f58 Fix memory leak - we were never releasing nsIMimeContentTypeHandler. Correctly check error values using NS_FAILED and not just comparing against NS_OK directly. Begin nsCOMPtr audit of mime code.
git-svn-id: svn://10.0.0.236/trunk@31130 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 20:25:27 +00:00
vidur%netscape.com
08d2fd838f Added GetContentType method to nsIDocument interface.
git-svn-id: svn://10.0.0.236/trunk@31129 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 20:22:52 +00:00
vidur%netscape.com
5ed31d3cbe Added IsValidFragment and CreateRange implementations. Added GetContentType method to nsIDocument interface.
git-svn-id: svn://10.0.0.236/trunk@31128 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 20:22:35 +00:00
vidur%netscape.com
2806500656 nodeName for HTML elements are uppercase as well.
git-svn-id: svn://10.0.0.236/trunk@31127 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 20:21:45 +00:00
vidur%netscape.com
19da06fec2 Added const-ness to IsValidFragment string.
git-svn-id: svn://10.0.0.236/trunk@31126 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 20:21:13 +00:00
vidur%netscape.com
b58139dd90 Added IsValidFragment to nsIDOMNSRange interface and CreateRange to nsIDOMNSDocument.
git-svn-id: svn://10.0.0.236/trunk@31125 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 20:20:40 +00:00
mscott%netscape.com
726264acc6 Fix mismatched memory free.
git-svn-id: svn://10.0.0.236/trunk@31122 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 20:09:20 +00:00
mscott%netscape.com
93f99d4cda fix unitialized memory read.
git-svn-id: svn://10.0.0.236/trunk@31121 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 20:08:08 +00:00
mscott%netscape.com
aa008f9495 fix mismatched memory free.
git-svn-id: svn://10.0.0.236/trunk@31120 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 20:05:46 +00:00
mcmullen%netscape.com
f84e7ec13e OK, so mailnews must follow appcores in a clobber build.
git-svn-id: svn://10.0.0.236/trunk@31119 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 20:04:47 +00:00
rods%netscape.com
0b2195bf47 removed showclipboard function
git-svn-id: svn://10.0.0.236/trunk@31118 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:59:02 +00:00
rods%netscape.com
00eed97233 Removed ShowClipboard menu item
git-svn-id: svn://10.0.0.236/trunk@31117 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:58:18 +00:00
rods%netscape.com
e111ecfde8 Removed ShowClipboard method
git-svn-id: svn://10.0.0.236/trunk@31116 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:57:07 +00:00
dveditz%netscape.com
0ef2c98b1a Fixing Win9x IDL bustage -- use $(QUIET) instead of @.
In this case, $(MAKE_INSTALL) already includes the $(QUIET) rule.


git-svn-id: svn://10.0.0.236/trunk@31115 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:45:58 +00:00
davidm%netscape.com
ee002229e9 4530 Password entry locks Apprunner. Turn off single signon so we stop crashing and use the async password dialog
git-svn-id: svn://10.0.0.236/trunk@31114 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:43:18 +00:00
davidm%netscape.com
cca629a582 4530 Password entry locks Apprunner.
git-svn-id: svn://10.0.0.236/trunk@31113 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:42:14 +00:00
dougt%netscape.com
8670251a20 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@31112 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:32:55 +00:00
mcmullen%netscape.com
52d070ca42 Keep apprunner last, please (moved mailnews earlier in the build).
git-svn-id: svn://10.0.0.236/trunk@31111 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:24:39 +00:00
mcmullen%netscape.com
071adf4db4 Added line to facilitate using the CLOSE_BEFORE_MAKE flag.
git-svn-id: svn://10.0.0.236/trunk@31110 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:24:04 +00:00
morse%netscape.com
5d33c6e715 added wallet and single-signon preferences
git-svn-id: svn://10.0.0.236/trunk@31109 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:24:00 +00:00
morse%netscape.com
1359aee1c8 changed name of single-signon preference
git-svn-id: svn://10.0.0.236/trunk@31108 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:22:02 +00:00
mcmullen%netscape.com
f68336f191 Fixing an error in the previous case (for the 'off' case)
git-svn-id: svn://10.0.0.236/trunk@31107 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:21:34 +00:00
kin%netscape.com
f21c805899 Added implementation for First/LastSelectedBlock().
Added better iterator status tracking.


git-svn-id: svn://10.0.0.236/trunk@31106 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:16:24 +00:00
kin%netscape.com
d2d60c4340 Made Add/RemoveWordToPersonalDictionary pure virtual.
git-svn-id: svn://10.0.0.236/trunk@31105 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:14:43 +00:00
kin%netscape.com
638c71981b Added nsISpellChecker.h to export list.
git-svn-id: svn://10.0.0.236/trunk@31104 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:13:39 +00:00
waterson%netscape.com
d5fa61546b Added USE_XPIDL variable.
git-svn-id: svn://10.0.0.236/trunk@31103 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:09:33 +00:00
law%netscape.com
885acdb10e Adding new implementation header that generates boilerplate component code
git-svn-id: svn://10.0.0.236/trunk@31102 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:05:10 +00:00
ducarroz%netscape.com
dd3c91a5d2 set editorType parameter when creating a compose appcore
git-svn-id: svn://10.0.0.236/trunk@31101 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:04:05 +00:00
saari%netscape.com
7934b45633 break fix attempt
git-svn-id: svn://10.0.0.236/trunk@31100 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:03:25 +00:00
ducarroz%netscape.com
b00d7941c6 Fix selection and delete problem with body. Add editor toolbar.
git-svn-id: svn://10.0.0.236/trunk@31099 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:02:54 +00:00
waterson%netscape.com
4a0acf5000 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@31098 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:02:48 +00:00
law%netscape.com
28670cc1cf New stream transfer component
git-svn-id: svn://10.0.0.236/trunk@31097 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:01:45 +00:00
law%netscape.com
c394961f52 New unknown-content-type-handler component
git-svn-id: svn://10.0.0.236/trunk@31096 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 18:51:36 +00:00
jdunn%netscape.com
e002887b9e remove "#pragma" that is there for no reason
git-svn-id: svn://10.0.0.236/trunk@31095 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 18:48:12 +00:00
law%netscape.com
af6912171f New sample component
git-svn-id: svn://10.0.0.236/trunk@31094 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 18:41:01 +00:00
jefft%netscape.com
f556ae06e9 fixed OnlineMessageCopy() not setting imap sink problem
git-svn-id: svn://10.0.0.236/trunk@31093 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 18:31:52 +00:00
jefft%netscape.com
448efef3ec fixed message copy problem by adding space between message id string and destination folder
git-svn-id: svn://10.0.0.236/trunk@31092 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 18:31:04 +00:00
jefft%netscape.com
e027975f7b remove obsolete code; implemented DeleteMessages()
git-svn-id: svn://10.0.0.236/trunk@31091 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 18:29:53 +00:00
jefft%netscape.com
157861d725 added OnlineMessageCopy() method
git-svn-id: svn://10.0.0.236/trunk@31090 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 18:27:28 +00:00
slamm%netscape.com
20c58a1c2b Bookmarks panel for the Sidebar.
git-svn-id: svn://10.0.0.236/trunk@31089 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 18:23:24 +00:00
slamm%netscape.com
bddfee7f06 Move javascript code in bookmarks.js
git-svn-id: svn://10.0.0.236/trunk@31088 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 18:22:35 +00:00
saari%netscape.com
ccf99e2695 missed a file
git-svn-id: svn://10.0.0.236/trunk@31087 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 18:21:39 +00:00
mcmullen%netscape.com
0758d78ec1 Support a new flag that defers closing of the project file until just before building the next, and only if the next project is different.
git-svn-id: svn://10.0.0.236/trunk@31086 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 18:20:40 +00:00
slamm%netscape.com
028cce1d7f Sidebar almost working now.
git-svn-id: svn://10.0.0.236/trunk@31085 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 18:19:15 +00:00
saari%netscape.com
91c95ea168 changing nsIMenuItem for context menu support
git-svn-id: svn://10.0.0.236/trunk@31084 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 18:16:25 +00:00
saari%netscape.com
c8dccd87f9 nsIMenuItem changes for context menus
git-svn-id: svn://10.0.0.236/trunk@31083 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 18:15:48 +00:00
norris%netscape.com
da07ac8361 Subject:
Rhino SecurityException patch
   Date:
        Tue, 11 May 1999 12:25:50 -0400
   From:
        Andrew Wason <aw@softcom.com>
     To:
        Norris Boyd <norris@netscape.com>




Sorry if you aren't the right person to submit Rhino patches to.

I couldn't get Rhino to run under JDK1.2 with a SecurityManager installed
(e.g. java -Djava.security.manager=java.lang.SecurityManager).  I
understand the JavaAdapter stuff won't work - but I would still like to use
Rhino without that piece.

I've attached a small patch which catches and ignores the
SecurityExceptions so that Rhino can run with a SecurityManager but without
JavaAdapter.


Andrew
--
Andrew Wason
SoftCom, Inc.
aw@softcom.com


git-svn-id: svn://10.0.0.236/trunk@31082 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 16:46:30 +00:00
cbegle%netscape.com
ac9e104ae5 Error in the test -- it was not evaluating the statement that is supposed
to produce an error.


git-svn-id: svn://10.0.0.236/trunk@31081 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 15:55:22 +00:00
shaver%netscape.com
68212ec7fc use OBJ_THIS_OBJECT in SPROP_[GS]ET to make with(native_obj)'' work correctly
git-svn-id: svn://10.0.0.236/trunk@31079 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 15:41:51 +00:00
mcafee%netscape.com
91d249818a Adding tinderbox to personal toolbar.
git-svn-id: svn://10.0.0.236/trunk@31078 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 08:16:02 +00:00
mccabe%netscape.com
9e96915598 Fix to 5947. Handle \r\r properly when it ends a buffer.
This fixes problems reading prefs.js on Mac.


git-svn-id: svn://10.0.0.236/trunk@31077 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 08:03:07 +00:00
mcafee%netscape.com
1e6ee4b2d7 Adding bugzilla personal toolbar entry.
git-svn-id: svn://10.0.0.236/trunk@31076 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 06:33:55 +00:00
gordon%netscape.com
1cf19f1ca3 Fix for bug#4312. Conditionalized patching of StackSpace so it's only done when patching is allowed. Also removed obsolete 68k code, and replaced uses of the BUILD_ROUTINE_DESCRIPTOR macro with calls to NewRoutineDescriptor.
git-svn-id: svn://10.0.0.236/trunk@31074 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 05:33:51 +00:00
morse%netscape.com
0d74684235 attempt to fix mac build bustage
git-svn-id: svn://10.0.0.236/trunk@31073 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 04:50:41 +00:00
waterson%netscape.com
c60001ca16 Be sure to initialize the data offset in the new state object. Mucho gracias to shaver for the fix.
git-svn-id: svn://10.0.0.236/trunk@31072 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 04:39:40 +00:00
sspitzer%netscape.com
d5c7656c05 news, like imap and local mail, needs to use the db cache to make sure that when several
Open()'s happen, they get the same db object.  this fixes the problem where getting new
news wouldn't update the db listers (folder pane and thread pane, in this case.)


git-svn-id: svn://10.0.0.236/trunk@31071 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 04:04:10 +00:00
morse%netscape.com
7249ddb900 switch to using nsIFileLocation for accessing user-specific files
git-svn-id: svn://10.0.0.236/trunk@31070 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 03:58:44 +00:00
waterson%netscape.com
8091b0db1c Publish headers directly to dist, instead of to public.
git-svn-id: svn://10.0.0.236/trunk@31068 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 03:10:20 +00:00
waterson%netscape.com
61ec12f898 XPT files are generated on-the-fly now.
git-svn-id: svn://10.0.0.236/trunk@31067 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 02:11:21 +00:00
waterson%netscape.com
37f3ac9083 Generate base header files.
git-svn-id: svn://10.0.0.236/trunk@31066 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 02:11:01 +00:00
waterson%netscape.com
449f3cb17a Generate nsISupports, nsIEnumerator, nsIFactory, and nsrootidl.
git-svn-id: svn://10.0.0.236/trunk@31065 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 02:10:22 +00:00
sspitzer%netscape.com
618ec540d5 don't delete m_newsgroupSpec here. causes sigsegv on linux.
git-svn-id: svn://10.0.0.236/trunk@31064 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 01:55:42 +00:00
mscott%netscape.com
980ccf8068 Fix build breakage for jefft. change nsstring to nstring2.
git-svn-id: svn://10.0.0.236/trunk@31063 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 01:19:52 +00:00
mscott%netscape.com
632db796a1 Fix memory leak.
git-svn-id: svn://10.0.0.236/trunk@31062 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 01:14:43 +00:00
sspitzer%netscape.com
0b44808cd7 fix memory leak, and use nsAutoCString so I don't have to do the free or delete
git-svn-id: svn://10.0.0.236/trunk@31061 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 00:59:04 +00:00
sspitzer%netscape.com
8f44603d95 work to make "Get Messages" work for newsgroups. right now, it is only on a newsgroup
by newsgroup level.  getting new news for a news server won't do anything.


git-svn-id: svn://10.0.0.236/trunk@31060 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 00:57:58 +00:00
jdunn%netscape.com
d4c3db8a77 fix error... returning 'false' instead of 'FALSE'
git-svn-id: svn://10.0.0.236/trunk@31059 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 00:51:00 +00:00
sspitzer%netscape.com
91d0488a34 fix memory leak
git-svn-id: svn://10.0.0.236/trunk@31058 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 00:49:14 +00:00
sspitzer%netscape.com
9fb55c6004 fix another uninitialized memory read
git-svn-id: svn://10.0.0.236/trunk@31057 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 00:45:12 +00:00
sspitzer%netscape.com
e0ef57b825 stop shadowing. fix an uninitialized memory read.
git-svn-id: svn://10.0.0.236/trunk@31056 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 00:43:32 +00:00
waterson%netscape.com
997c04892f Rename 'typelibs' to 'xpcom.xpt'
git-svn-id: svn://10.0.0.236/trunk@31055 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 00:42:54 +00:00
ducarroz%netscape.com
f65b7ccf5e Don't create anymore a nsFileSpec from a unix path
git-svn-id: svn://10.0.0.236/trunk@31054 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 00:38:08 +00:00
jefft%netscape.com
56d6826078 implemented OnlineMessageCopy()
git-svn-id: svn://10.0.0.236/trunk@31053 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 00:16:14 +00:00
evaughan%netscape.com
93eeafffe8 Added tab visibility pseudo-element
git-svn-id: svn://10.0.0.236/trunk@31052 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 00:14:08 +00:00
slamm%netscape.com
7d0494b5c0 Move bookmarks javascript code into separate file. Add initial browser sidebar code and data.
git-svn-id: svn://10.0.0.236/trunk@31051 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 00:06:43 +00:00
jdunn%netscape.com
683abe50c2 Fix error with OR'ing ENUMS. ansi C++ doesn't allow the direct OR'ing of them.
git-svn-id: svn://10.0.0.236/trunk@31050 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 00:03:17 +00:00
putterman%netscape.com
d8bf5d10c4 Changed DeleteMessage to DeleteMessages
git-svn-id: svn://10.0.0.236/trunk@31049 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:55:41 +00:00
putterman%netscape.com
9c7cd411e7 Changed DeleteMessage to DeleteMessages.
git-svn-id: svn://10.0.0.236/trunk@31048 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:55:00 +00:00
ducarroz%netscape.com
a215b0d52e add mactime.c
git-svn-id: svn://10.0.0.236/trunk@31047 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:48:54 +00:00
ducarroz%netscape.com
822ee4e211 fix for bug #6176
git-svn-id: svn://10.0.0.236/trunk@31046 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:48:27 +00:00
bienvenu%netscape.com
1ed59c5548 resolve a few undefined symbols
git-svn-id: svn://10.0.0.236/trunk@31045 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:44:30 +00:00
pinkerton%netscape.com
5e2ed3373b using accessors for Regions when building under Carbon.
git-svn-id: svn://10.0.0.236/trunk@31044 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:41:03 +00:00
pinkerton%netscape.com
331ebb1003 pull out unused includes.
git-svn-id: svn://10.0.0.236/trunk@31043 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:38:06 +00:00
pinkerton%netscape.com
0deb4d0974 Using ControlDefinition.h for Carbon.
git-svn-id: svn://10.0.0.236/trunk@31042 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:36:19 +00:00
jfrancis%netscape.com
26ba976656 better error detection/handling + some cleanup
git-svn-id: svn://10.0.0.236/trunk@31041 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:29:01 +00:00
bienvenu%netscape.com
895463f32f more search and filter porting
git-svn-id: svn://10.0.0.236/trunk@31040 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:25:37 +00:00
bienvenu%netscape.com
90e59d561a add cid's for search and filters
git-svn-id: svn://10.0.0.236/trunk@31039 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:25:08 +00:00
locka%iol.ie
6f90c16ee0 Removed some assertions.
Moved some code around to make the control site partially sane when the control cannot be created


git-svn-id: svn://10.0.0.236/trunk@31038 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:21:13 +00:00
nhotta%netscape.com
fafff1eeb4 Added the default settings for MIME header encoding methods.
git-svn-id: svn://10.0.0.236/trunk@31037 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:20:34 +00:00
locka%iol.ie
9659cf172d Removed some junk comments.
Added an error message when a control cannot be created


git-svn-id: svn://10.0.0.236/trunk@31036 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:19:31 +00:00
ftang%netscape.com
4847a3b06c add MappingCache
git-svn-id: svn://10.0.0.236/trunk@31035 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:19:21 +00:00
morse%netscape.com
4a14b8a5ec restart key before wallet editor rewrites the SchemaValue table
git-svn-id: svn://10.0.0.236/trunk@31034 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:18:10 +00:00
pinkerton%netscape.com
9a09e13ca8 add GetIID() method.
git-svn-id: svn://10.0.0.236/trunk@31033 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:15:21 +00:00
ftang%netscape.com
d4eb9ab6b5 add nsMappingCache.cpp
git-svn-id: svn://10.0.0.236/trunk@31032 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:15:11 +00:00
terry%mozilla.org
d249e087b0 Oops; back out last change; was checked in by mistake (and with the wrong log comment, too).
git-svn-id: svn://10.0.0.236/trunk@31031 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:15:09 +00:00
pinkerton%netscape.com
7a52add86d use ControlDefinitions.h and use new popup menu APIs for Carbon.
git-svn-id: svn://10.0.0.236/trunk@31030 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:14:40 +00:00
pinkerton%netscape.com
c2ea19ad6f use ControlDefinitions.h and new APIs for Carbon for ValidRect. Doesn't affect normal builds.
git-svn-id: svn://10.0.0.236/trunk@31029 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:13:16 +00:00
terry%mozilla.org
cbcfb44a4c Remember the 'changedin' field when memorizing queries.
git-svn-id: svn://10.0.0.236/trunk@31028 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:12:50 +00:00
pinkerton%netscape.com
d96469af8b use ControlDefinitions.h under Carbon
git-svn-id: svn://10.0.0.236/trunk@31027 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:12:08 +00:00
pinkerton%netscape.com
946ad5d0cf under Carbon, use the accessors.
git-svn-id: svn://10.0.0.236/trunk@31026 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:11:50 +00:00
pinkerton%netscape.com
75016b7274 don't use OpenDeskAcc under Carbon.
git-svn-id: svn://10.0.0.236/trunk@31025 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:10:55 +00:00
ftang%netscape.com
9a50942604 add HankakuToZenkaku
git-svn-id: svn://10.0.0.236/trunk@31024 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:10:05 +00:00
pinkerton%netscape.com
13480795d5 added ControlDefinitions.h for Carbon.
git-svn-id: svn://10.0.0.236/trunk@31023 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:09:34 +00:00
pinkerton%netscape.com
67d73184fc adding ControlDefinitions.h for Carbon.
git-svn-id: svn://10.0.0.236/trunk@31022 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:07:34 +00:00
pinkerton%netscape.com
57e215b2cc PBCopyFileSync and PBHMoveRenameSync don't exist in Carbon. Hack around this when TARGET_CARBON is defined, but we need a better solution. Shouldn't affect builds when this is off.
git-svn-id: svn://10.0.0.236/trunk@31021 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:05:01 +00:00
mcmullen%netscape.com
52d8908ce7 Added option to Macintosh build scripts, to delete all the dist aliases or just all the dist library aliases.
git-svn-id: svn://10.0.0.236/trunk@31020 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:01:39 +00:00
ftang%netscape.com
bbf002722d add nsHankakuToZenkaku.cpp
git-svn-id: svn://10.0.0.236/trunk@31019 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:00:36 +00:00
ftang%netscape.com
34ab444815 declare prototype to mac happier
git-svn-id: svn://10.0.0.236/trunk@31018 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 23:00:07 +00:00
karnaze%netscape.com
d10593fcc4 bug 6185 - absolutely positioned target nsHTMLFrameInnerFrames don't get processed by InitAbsoluteConstraints.
git-svn-id: svn://10.0.0.236/trunk@31017 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:59:03 +00:00
kmcclusk%netscape.com
67ce6448d4 bug #2115 - Removed src/windows/nsStringUtil.h and src/windows/nsStringUtil.cpp. Moved GetACPString to
nsMenu. widget/public now contains an updated nsStringUtil.h with fixes for bug #2115.
bug #2226 - Modified nsFileWidget.cpp - Removed code which saved and restored the current directory.


git-svn-id: svn://10.0.0.236/trunk@31016 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:55:16 +00:00
terry%mozilla.org
ff2440150e Do some sanity checking on the entered bug number.
git-svn-id: svn://10.0.0.236/trunk@31015 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:52:43 +00:00
terry%mozilla.org
7b54c0aa6c Try to save Ry4an from getting some spam.
git-svn-id: svn://10.0.0.236/trunk@31014 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:52:25 +00:00
pinkerton%netscape.com
679a5216c0 don't compile some code when TARGET_CARBON is defined. we need to find a better way around this. shouldn't affect normal builds.
git-svn-id: svn://10.0.0.236/trunk@31013 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:50:02 +00:00
karnaze%netscape.com
3812d508d4 added GetFrameType for inner and outer frame
git-svn-id: svn://10.0.0.236/trunk@31012 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:49:39 +00:00
karnaze%netscape.com
46a09eaf4d added htmlFrameInnerFrame, htmlFrameOuterFrame types
git-svn-id: svn://10.0.0.236/trunk@31011 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:48:47 +00:00
pinkerton%netscape.com
5bb239084d comment out some stuff when TARGET_CARBON is defined. Doesn't affect normal builds.
git-svn-id: svn://10.0.0.236/trunk@31010 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:42:51 +00:00
pinkerton%netscape.com
b3ba9a4d42 totalBytes and FreeBytes structs changed under Carbon. Fixes to work in both environments.
git-svn-id: svn://10.0.0.236/trunk@31009 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:37:50 +00:00
ftang%netscape.com
d4bbca64c3 add nsMappingCache.cpp
git-svn-id: svn://10.0.0.236/trunk@31008 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:36:50 +00:00
ftang%netscape.com
327fa9a29d add nsIMappingCache.h to export list
git-svn-id: svn://10.0.0.236/trunk@31007 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:35:25 +00:00
pinkerton%netscape.com
6caff579c4 move #include of DefinesMac.h up a few lines to pick up the correct TARGET_CARBON define there.
git-svn-id: svn://10.0.0.236/trunk@31006 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:34:12 +00:00
pinkerton%netscape.com
64ced176dd don't init toolbox if we're building for carbon.
git-svn-id: svn://10.0.0.236/trunk@31005 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:33:39 +00:00
ftang%netscape.com
8edb09d550 first add
git-svn-id: svn://10.0.0.236/trunk@31004 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:30:21 +00:00
kipp%netscape.com
df753a1679 Added a reminder comment
git-svn-id: svn://10.0.0.236/trunk@31003 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:29:34 +00:00
kipp%netscape.com
f92577dd6d Beginnings of a line iterator
git-svn-id: svn://10.0.0.236/trunk@31002 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:28:49 +00:00
ftang%netscape.com
da421fb28d add nsIMappingCache.h
git-svn-id: svn://10.0.0.236/trunk@31001 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:28:33 +00:00
kipp%netscape.com
7b65406361 Reinstate a hack, with a comment for next time, so that tables will center again
git-svn-id: svn://10.0.0.236/trunk@31000 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:28:30 +00:00
kipp%netscape.com
f372da0b11 Incomplete workaround for bug #5453
git-svn-id: svn://10.0.0.236/trunk@30999 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:28:04 +00:00
scc%netscape.com
df32a14b57 export nsCOMPtr destructor
git-svn-id: svn://10.0.0.236/trunk@30998 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:27:21 +00:00
jefft%netscape.com
717621158b added few more utils to get hostname, username, & protocol type from uri
git-svn-id: svn://10.0.0.236/trunk@30997 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:26:21 +00:00
jefft%netscape.com
8b8704d034 implemented GetNewMessages() for a selected folder
git-svn-id: svn://10.0.0.236/trunk@30996 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:25:26 +00:00
ducarroz%netscape.com
be7ad1d16c Fix bug #6175 due to nsFileSpec behavior changed on Mac
git-svn-id: svn://10.0.0.236/trunk@30995 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:23:28 +00:00
terry%mozilla.org
4c429be049 Allow querying by groupset (though there is no UI for it yet; can only
use this by manually hacking the URL string.)


git-svn-id: svn://10.0.0.236/trunk@30994 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:23:12 +00:00
ftang%netscape.com
73b402e097 add progid
git-svn-id: svn://10.0.0.236/trunk@30993 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:22:01 +00:00
davidm%netscape.com
c878914bd1 work needed to get password UI up and working
git-svn-id: svn://10.0.0.236/trunk@30992 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:18:08 +00:00
rhp%netscape.com
7815ca4a8c Changes for message send cleanup
git-svn-id: svn://10.0.0.236/trunk@30991 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:17:58 +00:00
rhp%netscape.com
4f74c69cba Changes for new message send testing
git-svn-id: svn://10.0.0.236/trunk@30990 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:17:13 +00:00
davidm%netscape.com
b34a244110 Fix JS for setting the message text
git-svn-id: svn://10.0.0.236/trunk@30989 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:15:17 +00:00
rhp%netscape.com
7ef418f135 Change for message send cleanup
git-svn-id: svn://10.0.0.236/trunk@30988 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:14:55 +00:00
terry%mozilla.org
b3ab03301f Give better error messages when we can't display a bug.
git-svn-id: svn://10.0.0.236/trunk@30987 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:08:58 +00:00
ducarroz%netscape.com
8edef6d972 fix bug #6175 due to new behavior of nsFileSpec on Mac
git-svn-id: svn://10.0.0.236/trunk@30986 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 22:02:39 +00:00
rhp%netscape.com
d7b38835a5 Fix for when messages do not have message id's
git-svn-id: svn://10.0.0.236/trunk@30985 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:59:59 +00:00
putterman%netscape.com
8890c93255 Fix refcounting bug. nsISupportsArray[] already does an addref.
git-svn-id: svn://10.0.0.236/trunk@30984 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:53:18 +00:00
ftang%netscape.com
96e10cb20a add progid
git-svn-id: svn://10.0.0.236/trunk@30983 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:51:29 +00:00
putterman%netscape.com
c89fd7208b added files: mozilla/mailnews/base/util/nsMsgDBFolder.cpp
git-svn-id: svn://10.0.0.236/trunk@30982 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:50:22 +00:00
putterman%netscape.com
3d181a2d58 Derive from nsMsgDBFolder.
git-svn-id: svn://10.0.0.236/trunk@30981 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:47:59 +00:00
putterman%netscape.com
1a2a4e1779 Separate db related folder code into separate class.
git-svn-id: svn://10.0.0.236/trunk@30980 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:47:07 +00:00
putterman%netscape.com
ffde4d0796 Remove db related functions.
git-svn-id: svn://10.0.0.236/trunk@30979 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:46:18 +00:00
scc%netscape.com
78eb0e9f7f temporarily commented out CallQueryInterface for UNIX, added NS_EXPORT for Windows
git-svn-id: svn://10.0.0.236/trunk@30978 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:43:29 +00:00
fur%netscape.com
8477318698 Small grammar fixes
git-svn-id: svn://10.0.0.236/trunk@30977 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:31:37 +00:00
locka%iol.ie
2f16290e45 Added some ifdefs to the source and makefile to optionally compile control support.
Plugin support works again (yay!)


git-svn-id: svn://10.0.0.236/trunk@30976 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:27:15 +00:00
sspitzer%netscape.com
adb40e7449 remove bogus comment. clean up the test code (a little).
git-svn-id: svn://10.0.0.236/trunk@30975 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:23:21 +00:00
sspitzer%netscape.com
68b6937fa2 more changes for getting GetNewNews to work
git-svn-id: svn://10.0.0.236/trunk@30974 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:22:17 +00:00
ftang%netscape.com
044bb123a8 add progid
git-svn-id: svn://10.0.0.236/trunk@30973 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:20:39 +00:00
ftang%netscape.com
9a78608d59 add nsHankakuToZenkaku.cpp
git-svn-id: svn://10.0.0.236/trunk@30972 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:19:47 +00:00
sspitzer%netscape.com
93cd9edfa9 add a comment
git-svn-id: svn://10.0.0.236/trunk@30971 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:18:40 +00:00
sspitzer%netscape.com
37892484c0 in 5.0, we don't have DBVIEWs
git-svn-id: svn://10.0.0.236/trunk@30970 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:18:15 +00:00
ftang%netscape.com
bd010a7b45 add progid. Add nsHankakuToZenkaku.h to the export list
git-svn-id: svn://10.0.0.236/trunk@30969 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:13:13 +00:00
bienvenu%netscape.com
2f7e1df5eb fix priority enum names
git-svn-id: svn://10.0.0.236/trunk@30968 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:08:18 +00:00
bienvenu%netscape.com
095b7a8476 add priority parsing util
git-svn-id: svn://10.0.0.236/trunk@30967 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:06:39 +00:00
bienvenu%netscape.com
879470695f fix head mask define
git-svn-id: svn://10.0.0.236/trunk@30966 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:06:12 +00:00
waldemar%netscape.com
60da05fa1e Moved language semantics files into subdirectories
git-svn-id: svn://10.0.0.236/trunk@30965 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:05:42 +00:00
waldemar%netscape.com
d4f8b80524 Added references, predefined sets of characters, and lexer state support
git-svn-id: svn://10.0.0.236/trunk@30964 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:04:53 +00:00
kipp%netscape.com
a36b592bda Disable mapping frames into text when they don't render properly until troy gets back....
git-svn-id: svn://10.0.0.236/trunk@30963 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:04:18 +00:00
waldemar%netscape.com
6b54a92b23 Added references and depict-styled-text
git-svn-id: svn://10.0.0.236/trunk@30962 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:03:07 +00:00
waldemar%netscape.com
e4d7c4ed7b Updated to match styles.css on documentation site
git-svn-id: svn://10.0.0.236/trunk@30961 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:02:22 +00:00
waldemar%netscape.com
a1ba12c4d3 Added headers, footers, document information, and reference stubs
git-svn-id: svn://10.0.0.236/trunk@30960 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:00:06 +00:00
waldemar%netscape.com
03c1a4e9af Added references, :wrap, :none
git-svn-id: svn://10.0.0.236/trunk@30959 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:58:56 +00:00
waldemar%netscape.com
5c3277e5fd Added references
git-svn-id: svn://10.0.0.236/trunk@30958 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:57:17 +00:00
waldemar%netscape.com
ea47d597c9 Added references, unfinished YACC input generator
git-svn-id: svn://10.0.0.236/trunk@30957 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:56:47 +00:00
waldemar%netscape.com
3ba2cdab5a Added references, default actions, combined rules
git-svn-id: svn://10.0.0.236/trunk@30956 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:55:59 +00:00
waldemar%netscape.com
ead436097a Added references, combined rules
git-svn-id: svn://10.0.0.236/trunk@30955 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:54:25 +00:00
morse%netscape.com
fa83640928 get wallet editor working again after someone changed behavior of docURL
git-svn-id: svn://10.0.0.236/trunk@30954 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:53:35 +00:00
waldemar%netscape.com
f546c6ff6b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30953 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:52:58 +00:00
mccabe%netscape.com
352a8137e2 _xpidlgen is now cvsignore'd globally; remove redundant per-directory references.
git-svn-id: svn://10.0.0.236/trunk@30952 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:52:47 +00:00
waldemar%netscape.com
af8ab6ca4b File Removed.
git-svn-id: svn://10.0.0.236/trunk@30951 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:50:37 +00:00
scc%netscape.com
9135e5202b conditionally factored destructor
git-svn-id: svn://10.0.0.236/trunk@30950 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:48:43 +00:00
scc%netscape.com
441182cd96 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30949 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:46:31 +00:00
dougt%netscape.com
c1431a1b2a Correcting the mac load lib name.
git-svn-id: svn://10.0.0.236/trunk@30948 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:42:06 +00:00
shaver%netscape.com
2ba0c5bcaa add _xpidlgen for mccabe
git-svn-id: svn://10.0.0.236/trunk@30947 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:32:02 +00:00
nhotta%netscape.com
5b80469b59 Allow 8 bit msg header/body by pref settings.
git-svn-id: svn://10.0.0.236/trunk@30946 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:22:24 +00:00
dougt%netscape.com
5ca2e34717 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30945 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:17:14 +00:00
dougt%netscape.com
64ef0f9000 Copied nsITestXPCFoo from xpconnect so that I did not have to include it.
git-svn-id: svn://10.0.0.236/trunk@30944 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:16:45 +00:00
dougt%netscape.com
3b9d5afdbf Getting it to compile on the mac.
git-svn-id: svn://10.0.0.236/trunk@30943 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:15:02 +00:00
waterson%netscape.com
f7be933e4c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30942 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:14:48 +00:00
saari%netscape.com
eef4d5cec6 Adding mac context menu files. These are not yet in the build
git-svn-id: svn://10.0.0.236/trunk@30941 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:14:05 +00:00
morse%netscape.com
0f572bdc40 fix enumerated type on cookie options
git-svn-id: svn://10.0.0.236/trunk@30940 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 19:42:01 +00:00
waterson%netscape.com
44ef77dda7 Ignore the _xpidlgen directory.
git-svn-id: svn://10.0.0.236/trunk@30939 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 19:31:34 +00:00
waterson%netscape.com
209ec495ea Ignore _xpidlgen directory.
git-svn-id: svn://10.0.0.236/trunk@30938 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 19:30:51 +00:00
karnaze%netscape.com
7ba719a0eb bug 6184 - reworked alogrithm for reallocating space to auto width columns.
git-svn-id: svn://10.0.0.236/trunk@30937 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 19:23:09 +00:00
karnaze%netscape.com
324feed56e new regression test cases
git-svn-id: svn://10.0.0.236/trunk@30936 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 19:21:43 +00:00
mcmullen%netscape.com
28267b3245 Clean up, and remove double linefeed at the end (which causes the Macintosh not to work).
git-svn-id: svn://10.0.0.236/trunk@30935 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 19:17:59 +00:00
mcmullen%netscape.com
37cca36814 Make the radio buttons work (they need to have a nonzero name, and they all need to have the same name).
git-svn-id: svn://10.0.0.236/trunk@30934 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 19:15:57 +00:00
waterson%netscape.com
f4b73b0d88 Automatically build .xpt's.
git-svn-id: svn://10.0.0.236/trunk@30933 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 18:55:00 +00:00
waterson%netscape.com
6af63cbf8d Generate RDF headers.
git-svn-id: svn://10.0.0.236/trunk@30932 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 18:51:20 +00:00
waterson%netscape.com
e7a1d0f4da Generate nsISupports.h, nsIEnumerator.h, and nsIFactory.h.
git-svn-id: svn://10.0.0.236/trunk@30931 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 18:50:41 +00:00
waterson%netscape.com
036e9ce44a Initial revision.
git-svn-id: svn://10.0.0.236/trunk@30930 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 18:49:55 +00:00
waterson%netscape.com
54f3c16dcd Enable XPIDL automation.
git-svn-id: svn://10.0.0.236/trunk@30929 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 18:49:20 +00:00
kipp%netscape.com
631b3496a9 new
git-svn-id: svn://10.0.0.236/trunk@30928 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 18:45:38 +00:00
slamm%netscape.com
8ed474cd27 Fix shift error that shows up on Solaris. Get DEPTH with perl.
git-svn-id: svn://10.0.0.236/trunk@30927 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 18:44:49 +00:00
danm%netscape.com
d4595d85a8 moving modal dialog code to one central location, where things won't be allocated and released in separate methods
git-svn-id: svn://10.0.0.236/trunk@30926 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 18:31:42 +00:00
norris%netscape.com
637113c2ba A statement like "var java;" was hiding the java package defined in the
shared global since we weren't looking up the prototype chain.


git-svn-id: svn://10.0.0.236/trunk@30925 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 18:09:49 +00:00
despotdaemon%netscape.com
66e4171d23 Pseudo-automatic update of changes made by sudu@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@30924 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 17:55:07 +00:00
bienvenu%netscape.com
a6a944fda1 add header file includes to work around vc bug
git-svn-id: svn://10.0.0.236/trunk@30923 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 17:39:23 +00:00
dougt%netscape.com
ef565e898b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30922 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 17:27:29 +00:00
dougt%netscape.com
591ace4cdf File Removed.
git-svn-id: svn://10.0.0.236/trunk@30921 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 17:27:13 +00:00
despotdaemon%netscape.com
641970eea5 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@30920 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 17:25:46 +00:00
terry%mozilla.org
b7ea203569 Netcenter is (apparently) getting upset about the blank line at the beginning of the XML we generate. Fine.
git-svn-id: svn://10.0.0.236/trunk@30919 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 16:39:55 +00:00
mccabe%netscape.com
030ae9c46b Comment fix to previous.
git-svn-id: svn://10.0.0.236/trunk@30918 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 10:20:41 +00:00
mccabe%netscape.com
d1f8a84799 Build the xpt_link and xpt_dump tools early so that they're available as part of the build process, and link them statically so we don't need the shared library path set to use them.
git-svn-id: svn://10.0.0.236/trunk@30917 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 10:17:54 +00:00
mcafee%netscape.com
63121d9c56 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@30916 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 08:52:59 +00:00
mcafee%netscape.com
0c55fb9a6d Skeleton timer test for gtk.
git-svn-id: svn://10.0.0.236/trunk@30915 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 08:52:04 +00:00
mcafee%netscape.com
054bd82c10 Attempting to turn xpconnect on for Solars/sparc and Solaris/intel.
git-svn-id: svn://10.0.0.236/trunk@30914 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 08:15:45 +00:00
mcafee%netscape.com
a3948e9888 Renaming nsQuickSort to NS_QuickSort so it doesn't look like a class name. r=brendan@netscape.com
git-svn-id: svn://10.0.0.236/trunk@30913 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 06:47:04 +00:00
mcafee%netscape.com
90eaefc365 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@30912 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 06:25:15 +00:00
mcafee%netscape.com
06560d83f0 Class nsprPath has been renamed to nsNSPRPath; straggler references were being converted with a typedef, this was confusing Solaris, so I'm converting all nsprPath references to the new name, hope that's Ok.
git-svn-id: svn://10.0.0.236/trunk@30910 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 05:34:26 +00:00
mccabe%netscape.com
03618b2831 Compile directly against the static libxpt.a lib, so we can use xpidl during the build without the shared library path being set.
git-svn-id: svn://10.0.0.236/trunk@30909 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 05:33:35 +00:00
mcafee%netscape.com
d6df9b3b1a Fixing Solaris bustage.
git-svn-id: svn://10.0.0.236/trunk@30908 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 03:47:19 +00:00
beard%netscape.com
3d595b23e2 XP_MAC: improved nsDLL::Load() to not call PL_strlen() each time through a loop from 0 to the length of the string - 1.
git-svn-id: svn://10.0.0.236/trunk@30907 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 03:45:38 +00:00
karnaze%netscape.com
cf98d02097 bug 6161 - don't reinitialize mMarginWidth, mMarginHeight on doc load.
git-svn-id: svn://10.0.0.236/trunk@30906 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 02:34:17 +00:00
bienvenu%netscape.com
3be7bb6eea more work on search and filters, not part of build yet
git-svn-id: svn://10.0.0.236/trunk@30905 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 01:59:23 +00:00
bienvenu%netscape.com
f157bdce63 add error for filter parsing
git-svn-id: svn://10.0.0.236/trunk@30904 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 01:57:14 +00:00
beard%netscape.com
a34b7a8748 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30903 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 01:48:27 +00:00
evaughan%netscape.com
763761043c Fixed mac compile bug.
git-svn-id: svn://10.0.0.236/trunk@30902 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 22:18:09 +00:00
blizzard%redhat.com
bbd5f8df3c port of gtk's font code to xlib
git-svn-id: svn://10.0.0.236/trunk@30901 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 21:56:46 +00:00
evaughan%netscape.com
e56eb59472 Fixed xul boxes to implement nsIBox interface.
git-svn-id: svn://10.0.0.236/trunk@30900 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 21:46:24 +00:00
blizzard%redhat.com
b297cf4aa9 make sure to return NS_OK from Init()
git-svn-id: svn://10.0.0.236/trunk@30899 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 19:52:11 +00:00
valeski%netscape.com
f8a7755e7e shifted ftp error codes into their proper range
git-svn-id: svn://10.0.0.236/trunk@30898 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 19:25:59 +00:00
valeski%netscape.com
ea8d800a2d defined implicit ranges for error codes.
git-svn-id: svn://10.0.0.236/trunk@30897 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 19:25:20 +00:00
valeski%netscape.com
0452495ed6 Added correct error codes and misc touch up.
git-svn-id: svn://10.0.0.236/trunk@30896 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 19:24:37 +00:00
valeski%netscape.com
6e688bc539 Added Andreas' test program diffs for linux building. Also added an OpenOutputStream test to TestSocketIO.cpp.
git-svn-id: svn://10.0.0.236/trunk@30895 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 19:18:25 +00:00
ducarroz%netscape.com
ccae074641 removed rescued items that was breaking the build verification
git-svn-id: svn://10.0.0.236/trunk@30894 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 17:20:42 +00:00
beard%netscape.com
be55a3ef93 now correctly returns target file info, reads files from project Data directory, writes files to output directory, uses setjmp/longjmp to trap calls to exit().
git-svn-id: svn://10.0.0.236/trunk@30893 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 15:03:13 +00:00
beard%netscape.com
443b5cbf6a using setjmp/longjmp to trap calls to exit(), compiling .xpt files into project Data folder.
git-svn-id: svn://10.0.0.236/trunk@30892 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 15:00:31 +00:00
beard%netscape.com
cbbcaf3d63 using longjmp instead of throw
git-svn-id: svn://10.0.0.236/trunk@30891 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 14:59:15 +00:00
beard%netscape.com
d3d4c87c29 added version.rsrc to all targets
git-svn-id: svn://10.0.0.236/trunk@30890 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 14:58:54 +00:00
beard%netscape.com
9ef4b2ff6b moved version to version.rsrc
git-svn-id: svn://10.0.0.236/trunk@30889 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 14:58:30 +00:00
beard%netscape.com
36df78b049 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30888 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 14:58:00 +00:00
mccabe%netscape.com
7dbbcf01a9 Back out building xpidl with -static, because it breaks on some platforms. What's the XP way to do it?
git-svn-id: svn://10.0.0.236/trunk@30887 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 10:40:16 +00:00
mccabe%netscape.com
0d538b9973 Line-editing support for the standalone javascript interpreter on unixes. Propagating from the SpiderMonkeyDev_BRANCH.
None of this code is built as part of the Mozilla build.


git-svn-id: svn://10.0.0.236/trunk@30885 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 10:22:40 +00:00
mccabe%netscape.com
3a36b4d6de Fix to 6156.
Added $(EXTRA_DEPS) dependency to $(PROGRAM) in rules.mk, so xpidl can ask to be recompiled when libxpt changes.


git-svn-id: svn://10.0.0.236/trunk@30884 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 09:21:35 +00:00
mccabe%netscape.com
b09ca6f5e9 Give xpidl a Makefile.in that uses the rules.mk rules for $(PROGRAM) to build, toallow use of purify target. Be warned, it won't be pretty.
Build xpidl statically by adding -static (I hope it's XP; is there an alternative?) to LDFLAGS.  So that we can use it in the build without setting the shared library path.


git-svn-id: svn://10.0.0.236/trunk@30883 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 08:34:37 +00:00
mccabe%netscape.com
7eb7d470a3 Whenever XPIDLSRCS is defined, add _xpidlgen to $(GARBAGE) so it gets zorched by clobber.
git-svn-id: svn://10.0.0.236/trunk@30882 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 08:16:07 +00:00
briano%netscape.com
c2498bacab Automated update
git-svn-id: svn://10.0.0.236/trunk@30881 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 06:29:40 +00:00
mccabe%netscape.com
a85f5730f5 A slightly better test for overriding .h files with .idl files.
If foo.h is in the $(EXPORTS) list (rather than just in the same dir) warn that the .h we're generating from the .idl overrides the old .idl.


git-svn-id: svn://10.0.0.236/trunk@30880 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 06:26:05 +00:00
mcafee%netscape.com
9e02f95802 Checking for setvbuf(). Thanks to bert_driehuis@nl.compuware.com for helping with apprunner output.
git-svn-id: svn://10.0.0.236/trunk@30879 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 06:21:29 +00:00
beard%netscape.com
fb8c92e3f6 turned off modification date caching, so files will be regenerated if missing or out of date.
git-svn-id: svn://10.0.0.236/trunk@30878 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 03:32:22 +00:00
beard%netscape.com
9d727ffd91 NPL, using CWGetStoredObjectFileSpec() to get the location of each output file, instead of constructing from input file's name.
git-svn-id: svn://10.0.0.236/trunk@30877 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 03:27:07 +00:00
beard%netscape.com
622415764d NPL, removed Disassembly code (moved to linker), now using CWStoreObjectData() to associate output file with compilation. This lets CodeWarrior delete the file when objects are removed, and regenerate when file is deleted externally.
git-svn-id: svn://10.0.0.236/trunk@30876 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 03:27:05 +00:00
beard%netscape.com
ca17f751ce bumped version, changed Flags to latest CWPro4 format to use newer APIs.
git-svn-id: svn://10.0.0.236/trunk@30875 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 03:27:03 +00:00
beard%netscape.com
af9c6c0c43 bumped version
git-svn-id: svn://10.0.0.236/trunk@30874 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 03:27:01 +00:00
beard%netscape.com
1bd3a3590f cleaned up, removed non-essential code, NPL
git-svn-id: svn://10.0.0.236/trunk@30873 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 03:19:47 +00:00
beard%netscape.com
afa5b63cda NPL
git-svn-id: svn://10.0.0.236/trunk@30872 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 03:19:07 +00:00
beard%netscape.com
565ba1b287 added a "build all" target
git-svn-id: svn://10.0.0.236/trunk@30871 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 23:18:39 +00:00
beard%netscape.com
437cbb9c3e added version resources
git-svn-id: svn://10.0.0.236/trunk@30870 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 23:18:12 +00:00
syd%netscape.com
ed676036e3 Remove SetModal interface.
git-svn-id: svn://10.0.0.236/trunk@30869 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 23:14:35 +00:00
syd%netscape.com
072a998769 Cleaned up Create function. Make sure that variables are not NULL before use.
Also, don't free the "home" variable -- this will cause memory corruption the
second time Create is called and will result in weirdo behavior in Gtk+/Glib.
Implemented nsAppShell::GetNativeEvent, nsAppShell::DispatchNativeEvent,
and nsAppShell::EventIsForModalWindow.


git-svn-id: svn://10.0.0.236/trunk@30868 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 23:13:45 +00:00
syd%netscape.com
09bcdcf110 Remove SetModal() native implementation for Gtk+.
git-svn-id: svn://10.0.0.236/trunk@30867 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 23:09:44 +00:00
syd%netscape.com
545d301e74 Remove SetModal() native implementation.
git-svn-id: svn://10.0.0.236/trunk@30866 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 23:09:05 +00:00
syd%netscape.com
8440768e53 Remove nsBaseWidget::SetModal.
git-svn-id: svn://10.0.0.236/trunk@30865 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 23:08:23 +00:00
syd%netscape.com
7b7c563429 Remove native SetModal() call.
git-svn-id: svn://10.0.0.236/trunk@30864 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 23:07:10 +00:00
beard%netscape.com
e04346c294 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30863 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 23:05:34 +00:00
beard%netscape.com
04d7f021e2 changed raw calls to stat() to get_file_length(), and redefined get_file_length to mac_get_file_length when building as CodeWarrior plugin.
git-svn-id: svn://10.0.0.236/trunk@30862 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 23:01:09 +00:00
beard%netscape.com
fbd123e794 renamed get_args() to mac_get_args(), get_file_length redefined as mac_get_file_length when built as CodeWarrior plugin.
git-svn-id: svn://10.0.0.236/trunk@30861 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 23:00:07 +00:00
beard%netscape.com
4e2fbfd688 removed xpt_dump.c from compiler target, moved exclusively to linker target.
git-svn-id: svn://10.0.0.236/trunk@30860 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 22:58:42 +00:00
beard%netscape.com
d9281f10da added custom fopen, the only opens files in the output directory, added mac_get_file_length(), which is used in lieu of stat, turned on Disassembly function in linker.
git-svn-id: svn://10.0.0.236/trunk@30859 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 22:58:07 +00:00
beard%netscape.com
02adb03ae6 put in sanity checking of pref data, if its size is incorrect it reverts to factory settings.
git-svn-id: svn://10.0.0.236/trunk@30858 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 22:56:39 +00:00
beard%netscape.com
0601513322 added mac_get_file_length(), turned off disassembly (moved to linker)
git-svn-id: svn://10.0.0.236/trunk@30857 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 22:55:42 +00:00
beard%netscape.com
dd81dc1570 turned off the "cantDisassemble" bit, moving disassembly to the linker.
git-svn-id: svn://10.0.0.236/trunk@30856 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 22:54:23 +00:00
blizzard%redhat.com
7fad38d2cb more debugging output, start of some renderingcontext functions
git-svn-id: svn://10.0.0.236/trunk@30855 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 22:54:03 +00:00
mccabe%netscape.com
3c786e0f08 - fixed IDL_COMPILE (undefined!) to XPIDL_COMPILE
- made the make stop and error when XPIDLSRCS is defined but MODULE isn't.

- made the make warn when generating (from idl) a .h file that overrides an existing .h file.


git-svn-id: svn://10.0.0.236/trunk@30854 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 22:28:49 +00:00
rjc%netscape.com
3b7a54410b Yet another shot at fixing another Unix pedantic issue.
git-svn-id: svn://10.0.0.236/trunk@30853 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 21:47:49 +00:00
blizzard%redhat.com
f945bc345d enough debugging output to make a dozen squid omlets
git-svn-id: svn://10.0.0.236/trunk@30852 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 21:42:39 +00:00
beard%netscape.com
f58db6707c changed output field to use Str32Field type for alignment purposes (uses 34 bytes rather than 33).
git-svn-id: svn://10.0.0.236/trunk@30851 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 21:10:22 +00:00
dougt%netscape.com
913fa4cc71 Adding Proxy to the unix makefile
git-svn-id: svn://10.0.0.236/trunk@30850 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 21:10:18 +00:00
beard%netscape.com
5175cab5d4 changed default 'pref' resource to conform to size of XPIDLSettings struct (40 bytes)
git-svn-id: svn://10.0.0.236/trunk@30849 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 21:09:19 +00:00
rjc%netscape.com
f43e3e4bc8 Try fixing another Unix pedantic issue.
git-svn-id: svn://10.0.0.236/trunk@30848 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 21:07:18 +00:00
dougt%netscape.com
3f399ee46f Adding xpcom/proxy/* to the list.
git-svn-id: svn://10.0.0.236/trunk@30847 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 20:57:07 +00:00
dougt%netscape.com
d5c05860a5 hooking up proxy to the WINDOWS makefile
git-svn-id: svn://10.0.0.236/trunk@30846 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 20:55:24 +00:00
beard%netscape.com
c8805d06e6 using defined(XPIDL_PLUGIN) to determine when to rename main
git-svn-id: svn://10.0.0.236/trunk@30845 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 20:40:26 +00:00
beard%netscape.com
0374c26633 added XPIDL_PLUGIN macro, to distinguish when the code is being compiled as a CodeWarrior plugin.
git-svn-id: svn://10.0.0.236/trunk@30844 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 20:38:11 +00:00
beard%netscape.com
38b7d8e7ab changed link order in linker
git-svn-id: svn://10.0.0.236/trunk@30843 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 20:37:15 +00:00
beard%netscape.com
a723a84651 fixed a 'MENU' resource id conflict (128 is CodeWarrior IDE's Apple menu)
git-svn-id: svn://10.0.0.236/trunk@30842 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 20:36:56 +00:00
sspitzer%netscape.com
d516c21194 rename GetNewMail to GetNewMessages. Add support for GetNewNews() to the NntpService interface and implementation
git-svn-id: svn://10.0.0.236/trunk@30841 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 20:26:45 +00:00
rjc%netscape.com
3cf8a000fa Fix Unix pedantic issue. (hopefully)
git-svn-id: svn://10.0.0.236/trunk@30840 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 20:22:41 +00:00
karnaze%netscape.com
d9b78cc576 added vcard_name html attribute. Added GetVcardName in nsFormFrame.
git-svn-id: svn://10.0.0.236/trunk@30839 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 19:30:57 +00:00
sspitzer%netscape.com
e284ec2990 fix spelling mistake and wrap printf behind #ifdef DEBUG
git-svn-id: svn://10.0.0.236/trunk@30838 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 17:47:00 +00:00
sspitzer%netscape.com
a3592a48d4 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@30837 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 17:25:49 +00:00
sspitzer%netscape.com
0fd679a4e7 changes to get news working. specifically, these changes allow us to parase the xover line and stuff the header info into the right msf file, and then retrieve the right headers later.
git-svn-id: svn://10.0.0.236/trunk@30836 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 17:25:15 +00:00
beard%netscape.com
341bd05297 fixed breakage on platforms not defining OJI (linux?)
git-svn-id: svn://10.0.0.236/trunk@30835 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 17:24:43 +00:00
sspitzer%netscape.com
d86aefb15c kIsRead is now MSG_FLAG_READ
git-svn-id: svn://10.0.0.236/trunk@30834 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 17:23:30 +00:00
sspitzer%netscape.com
3001eeb027 kIsRead is now MSG_FLAG_READ, so we don't need this
git-svn-id: svn://10.0.0.236/trunk@30833 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 17:22:40 +00:00
sspitzer%netscape.com
106ab5c761 changes for GetLineCount().
we had SetLineCount(), but no GetLineCount().

news will be using GetMessageSize() and SetMessageSize(), but we'll have
the line count, in case we need it.


git-svn-id: svn://10.0.0.236/trunk@30832 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 17:02:19 +00:00
sspitzer%netscape.com
be7e601ec8 ignore the generated makefile
git-svn-id: svn://10.0.0.236/trunk@30831 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 16:59:42 +00:00
beard%netscape.com
b8dc72bdca changed map_jsj_thread_to_js_context_impl to use the plugin's instance peer2 to obtain the JSContext.
git-svn-id: svn://10.0.0.236/trunk@30830 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 16:48:05 +00:00
beard%netscape.com
d605957efd using the JSContext provided by JSObjectHandle wrappers. This forces all Java calls to work in the same JSContext, as specified by a particular JSObject. This may have to be changed, but it lets spontaneous calls from Java work for now.
git-svn-id: svn://10.0.0.236/trunk@30829 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 16:46:43 +00:00
beard%netscape.com
726ccc1e86 added optional Java applet object parameter to jsj_enter_js
git-svn-id: svn://10.0.0.236/trunk@30828 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 16:46:41 +00:00
beard%netscape.com
9785c47c77 added optional Java applet object parameter to jsj_enter_js, made cxp an in/out parameter, so caller can specify a JSContext
git-svn-id: svn://10.0.0.236/trunk@30827 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 16:46:40 +00:00
beard%netscape.com
640dfd6be4 added optional Java applet object parameter to map_jsj_thread_to_js_context callback.
git-svn-id: svn://10.0.0.236/trunk@30826 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 16:46:38 +00:00
beard%netscape.com
fa0b918b6c implemented NavigatorImpl::JavaEnabled()
git-svn-id: svn://10.0.0.236/trunk@30825 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 16:37:53 +00:00
beard%netscape.com
40ffb6fae1 added GetJSContext()
git-svn-id: svn://10.0.0.236/trunk@30824 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 16:33:40 +00:00
beard%netscape.com
f667d78822 XP_MAC: ensuring that clipRect field of nsPluginWindow is in port coordinates, per original plugin specification.
git-svn-id: svn://10.0.0.236/trunk@30823 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 16:33:10 +00:00
beard%netscape.com
5cc2778045 added "application/x-java-applet" as another MIME type for applets. These should be in a header file somewhere.
git-svn-id: svn://10.0.0.236/trunk@30822 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 15:19:06 +00:00
rjc%netscape.com
a6253f7bb8 While remote data starts streaming in, assert "loading"="true" attribute. When stream finishes, unassert it. Provide a "loading"="true" CSS style that sets the icon to be loading.gif
git-svn-id: svn://10.0.0.236/trunk@30821 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 12:42:33 +00:00
locka%iol.ie
f188285bc9 Added a directory picker so exe can be run from anywhere and still register the correct Mozilla dir
git-svn-id: svn://10.0.0.236/trunk@30820 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 12:10:26 +00:00
locka%iol.ie
5c1ddf8cd6 Made CBrowseDlg modeless so that multiple windows can be opened. Primarily for testing NewWindow2 event
git-svn-id: svn://10.0.0.236/trunk@30819 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 12:08:52 +00:00
locka%iol.ie
a8fb9e1931 no message
git-svn-id: svn://10.0.0.236/trunk@30818 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 12:07:03 +00:00
locka%iol.ie
2470f4c3c9 Added Advise, Unadvise methods for setting up event sinks
git-svn-id: svn://10.0.0.236/trunk@30817 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 12:06:31 +00:00
rjc%netscape.com
7a76db5798 Give the top-level XUL content folders pretty icons too!
git-svn-id: svn://10.0.0.236/trunk@30816 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 11:17:15 +00:00
rjc%netscape.com
76e7bc78ef Add refcnt'ing support in Element map for content nodes. (Not 100% if this is the right thing to do, but it does fix a crashing bug where the nodes are freed too early!)
git-svn-id: svn://10.0.0.236/trunk@30815 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 10:29:24 +00:00
rjc%netscape.com
0e4cca7ceb Fix hasAssertion() methods of FTP and Related Links datasources.
git-svn-id: svn://10.0.0.236/trunk@30814 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 10:18:01 +00:00
rjc%netscape.com
8f5268941f Fix history bug; if a URI doesn't have a title (for example, if we're loading in a GIF file), detect it and don't try to write out a bogus title.
git-svn-id: svn://10.0.0.236/trunk@30813 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 09:45:32 +00:00
rjc%netscape.com
ebd015fd4c Use nsFileSpec's GetCatInfo() instead of rolling our own.
git-svn-id: svn://10.0.0.236/trunk@30812 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 09:34:31 +00:00
rjc%netscape.com
a173b4775d Add extra checking to ensure that FindChildByTag() succeeds before using value.
git-svn-id: svn://10.0.0.236/trunk@30811 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 08:39:47 +00:00
briano%netscape.com
607f6ae160 Fix for AIX, Solaris, OSF/1, and probably others.
git-svn-id: svn://10.0.0.236/trunk@30810 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 06:24:27 +00:00
mcmullen%netscape.com
20cf886f19 Adapt to changed interface some more.
git-svn-id: svn://10.0.0.236/trunk@30809 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 02:22:41 +00:00
cmanske%netscape.com
bcf030efb6 Hooked up UI(menus) for setting font face and font size
git-svn-id: svn://10.0.0.236/trunk@30808 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 02:20:51 +00:00
mcmullen%netscape.com
5a6e014ba3 Adapt to changed interface.
git-svn-id: svn://10.0.0.236/trunk@30807 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 02:18:16 +00:00
mccabe%netscape.com
e565d8ace9 Build support for working with .idl files. Adding XPIDLSRCS to a Makefile.in exports the listed idl files to dist/idl, generates .h files to dist/include, and generates .xpt files, and links them to $(MODULE).xpt, in components.
git-svn-id: svn://10.0.0.236/trunk@30806 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 02:06:15 +00:00
mccabe%netscape.com
1b6455c0ff Build xpidl before export phase of any xpcom directory.
git-svn-id: svn://10.0.0.236/trunk@30805 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 01:57:37 +00:00
briano%netscape.com
cafb65ea40 Automated update
git-svn-id: svn://10.0.0.236/trunk@30804 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 01:44:39 +00:00
bruce%cybersight.com
e36ee8439e Conditionally adding PICS (extensions/pics/) to the unix build. Use --enable-pics with configure to turn it on and build it. Not called anywhere yet. Neeti is aware that I was doing this.
git-svn-id: svn://10.0.0.236/trunk@30803 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 01:43:41 +00:00
mcafee%netscape.com
e673411ec4 Adding support for dataFlavor cache: GetPredefinedDataFlavor().
git-svn-id: svn://10.0.0.236/trunk@30802 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 01:29:52 +00:00
ducarroz%netscape.com
cd2e7cf6b5 Create mPath when needed to avoid empty nsFileSpec on Mac.
git-svn-id: svn://10.0.0.236/trunk@30801 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 01:22:56 +00:00
mcmullen%netscape.com
3ac0828129 Fix nsFileSpec to take native paths in constructors and assignment operators. Fix += to work with relative paths on Macintosh. Remove dependency of nsFileSpec on streams (so that dp can move nsFileSpec).
git-svn-id: svn://10.0.0.236/trunk@30800 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 01:18:23 +00:00
mcmullen%netscape.com
e915d95584 These staged checkins can be tricky.
git-svn-id: svn://10.0.0.236/trunk@30799 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 00:57:57 +00:00
nisheeth%netscape.com
4e92a7e798 Adding support in line layout for the CSS "direction" property.
git-svn-id: svn://10.0.0.236/trunk@30798 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 00:48:39 +00:00
ftang%netscape.com
93bedd7e79 first check in
git-svn-id: svn://10.0.0.236/trunk@30797 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 00:23:47 +00:00
mcmullen%netscape.com
16b143d232 Updated a comment.
git-svn-id: svn://10.0.0.236/trunk@30796 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 00:21:46 +00:00
ftang%netscape.com
776f28c596 add new file
git-svn-id: svn://10.0.0.236/trunk@30795 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 00:20:49 +00:00
mcmullen%netscape.com
e5640cdde2 Added nsFileSpecStreaming.cpp
git-svn-id: svn://10.0.0.236/trunk@30794 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 00:20:37 +00:00
mcmullen%netscape.com
ff2d1f8d34 Added nsFileSpecStreaming.h
git-svn-id: svn://10.0.0.236/trunk@30793 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 00:20:15 +00:00
saari%netscape.com
672b06697f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30792 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 00:19:33 +00:00
ftang%netscape.com
e7010d2722 first add
git-svn-id: svn://10.0.0.236/trunk@30791 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 00:19:13 +00:00
dougt%netscape.com
50357945ca idl changed without me noticing. now everything is a PRInt32 instead of a int.
git-svn-id: svn://10.0.0.236/trunk@30790 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 00:12:49 +00:00
mscott%netscape.com
77d2d85ca4 For some reason we were linking against msgcore.lib. We didn't need to be.
git-svn-id: svn://10.0.0.236/trunk@30789 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 23:49:31 +00:00
cmanske%netscape.com
7c86b91ad3 Added insertLinkAroundSelection method to appcore
git-svn-id: svn://10.0.0.236/trunk@30788 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:27:26 +00:00
ducarroz%netscape.com
bb6e82d12f activate mailnews/imap and mailnews/news build instructions
git-svn-id: svn://10.0.0.236/trunk@30787 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:26:43 +00:00
cmanske%netscape.com
1dc89a2562 Implemented InsertLinkAroundSelection
git-svn-id: svn://10.0.0.236/trunk@30786 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:26:23 +00:00
dougt%netscape.com
629bb1b6e9 when I turned on both tests cases, I did not realize that I was deleting the
testcase arguments in both.  fixing.


git-svn-id: svn://10.0.0.236/trunk@30785 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:25:41 +00:00
pnunn%netscape.com
c23d4f5ad2 General clean up. Removed ifdef STANDALONE_IMAGE_LIB. pnunn.
git-svn-id: svn://10.0.0.236/trunk@30784 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:25:31 +00:00
ducarroz%netscape.com
f382292002 update project
git-svn-id: svn://10.0.0.236/trunk@30783 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:25:15 +00:00
pnunn%netscape.com
5e69001ea3 General clean up. Remove ifdef STANDALONE_IMAGE_LIB. pnunn.
git-svn-id: svn://10.0.0.236/trunk@30782 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:24:10 +00:00
rogerl%netscape.com
2f5eb038e6 Latest changes
git-svn-id: svn://10.0.0.236/trunk@30781 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:18:39 +00:00
dougt%netscape.com
8f068486d8 fixing warning message.
git-svn-id: svn://10.0.0.236/trunk@30780 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:12:25 +00:00
dougt%netscape.com
a6145ac97a Got linux to compile.
A few errors fix when handling IID.


git-svn-id: svn://10.0.0.236/trunk@30779 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:09:44 +00:00
amusil%netscape.com
f864044f56 Added object tag support for applets.
git-svn-id: svn://10.0.0.236/trunk@30778 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:07:58 +00:00
rogerl%netscape.com
b307b926e7 Latest changes
git-svn-id: svn://10.0.0.236/trunk@30777 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:07:22 +00:00
terry%mozilla.org
8455e35b97 Oops. Accounts created via the "createaccount.cgi" page were not
getting their password emailed to them.


git-svn-id: svn://10.0.0.236/trunk@30776 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:07:21 +00:00
amusil%netscape.com
1da8f68a76 Added support for Start/Stop Applet/Plugin lifetimes.
git-svn-id: svn://10.0.0.236/trunk@30775 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:06:47 +00:00
mcmullen%netscape.com
39540ee53b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30774 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:03:31 +00:00
rogerl%netscape.com
b84c4c40ea Forced conversion of result for I64 tests to int in call to printf. I
couldn't find a OS-independent format string for handling the I64.


git-svn-id: svn://10.0.0.236/trunk@30773 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:57:23 +00:00
mcmullen%netscape.com
1ca353c358 Add the intl project group.
git-svn-id: svn://10.0.0.236/trunk@30772 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:56:42 +00:00
mcmullen%netscape.com
c7718b063b Added the intl group to these scripts (why there are two identical scripts, is anybody's guess)
git-svn-id: svn://10.0.0.236/trunk@30771 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:51:35 +00:00
terry%mozilla.org
f5452c4495 Provide an option to tell mysql "set option SQL_BIG_TABLES=1". This
is necessary for very big queries, but it will slow things up some
otherwise.


git-svn-id: svn://10.0.0.236/trunk@30770 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:49:24 +00:00
rogerl%netscape.com
16db34e3f6 Fixed quad-word alignment issues, vTable layout problems.
git-svn-id: svn://10.0.0.236/trunk@30769 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:42:28 +00:00
dougt%netscape.com
2b5fd4e15c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30768 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:35:49 +00:00
mscott%netscape.com
b08b8631dd Fix unitialized memory read when we were parsing an imap url which didn't have anything after the host name.
git-svn-id: svn://10.0.0.236/trunk@30767 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:30:39 +00:00
mscott%netscape.com
3ea9ca4609 Register the event queue to fix the crash on start up.
git-svn-id: svn://10.0.0.236/trunk@30766 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:28:43 +00:00
mscott%netscape.com
421521b0b0 Build imap/build directory for linux.
git-svn-id: svn://10.0.0.236/trunk@30765 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:24:50 +00:00
rjc%netscape.com
8294ed32ec Don't compare nsCOMPtrs against nsnull.
git-svn-id: svn://10.0.0.236/trunk@30764 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:24:09 +00:00
mscott%netscape.com
2c219e2ee5 Build all the imap directories on linux.
git-svn-id: svn://10.0.0.236/trunk@30763 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:23:27 +00:00
sfraser%netscape.com
a8426a9a9b Added the cfmAlias resource files, and set the Library Folder ID in the PEF settings accordingly (alias ID 128 for debug, 129 for opt).
git-svn-id: svn://10.0.0.236/trunk@30762 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:23:08 +00:00
mscott%netscape.com
7684affccc Build the imap library.
git-svn-id: svn://10.0.0.236/trunk@30761 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:23:07 +00:00
mscott%netscape.com
fc23073a8c Build imap on Linux.
git-svn-id: svn://10.0.0.236/trunk@30760 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:22:24 +00:00
sfraser%netscape.com
accf0d3a0f Put libraries in the "Essential Files" folder. Also moved the horrible
MacConfig.h hack closer to the config MANIFEST, so that cancelling
the dist is less likely to screw you over.


git-svn-id: svn://10.0.0.236/trunk@30759 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:22:12 +00:00
mscott%netscape.com
44bba06833 Build imap on linux.
git-svn-id: svn://10.0.0.236/trunk@30758 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:22:02 +00:00
mscott%netscape.com
c54db0ef99 Changes to build test app on Linux.
git-svn-id: svn://10.0.0.236/trunk@30757 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:20:41 +00:00
rjc%netscape.com
ca7523bd75 First cut at adding template and rule support for XUL builders.
git-svn-id: svn://10.0.0.236/trunk@30756 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:20:33 +00:00
sfraser%netscape.com
1d13b431ff First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30755 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:20:23 +00:00
mscott%netscape.com
4d2f63ed42 Changes to get the test app to build on linux.
git-svn-id: svn://10.0.0.236/trunk@30754 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:20:21 +00:00
mscott%netscape.com
e4ba1b61cb Quiet compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@30753 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:19:39 +00:00
mscott%netscape.com
a3a8d6346b Quiet compiler warnings in preparation of turning imap on for Linux.
git-svn-id: svn://10.0.0.236/trunk@30752 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:19:11 +00:00
mjudge%netscape.com
e5dca2de32 2 more checkins to follow previous ones
git-svn-id: svn://10.0.0.236/trunk@30751 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:19:04 +00:00
mscott%netscape.com
7cbcbad07d Quiet compiler warnings on Linux.
git-svn-id: svn://10.0.0.236/trunk@30750 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:18:45 +00:00
mscott%netscape.com
03a86fd4e2 Correct signatures for several functions on the imap folder. They weren't matching up with the base class signatures (GetSize, GetPrettyName and RememberPassword). Quiet some compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@30749 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:18:06 +00:00
mjudge%netscape.com
aa270a2af0 forgot checkin
git-svn-id: svn://10.0.0.236/trunk@30748 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:17:59 +00:00
mscott%netscape.com
51d686e82a Fix signed/unsigned mismatches to quiet compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@30747 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:16:48 +00:00
mscott%netscape.com
1d3ea409ad Quiet compiler warnings in preparation of turning on imap for linux.
git-svn-id: svn://10.0.0.236/trunk@30746 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:16:01 +00:00
mscott%netscape.com
b92afa9941 Quiet compiler warnings in prepration of turning on imap for Linux.
git-svn-id: svn://10.0.0.236/trunk@30745 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:15:01 +00:00
mjudge%netscape.com
644a9e449d massive checkin for selection modifications and removing static state variables for selection in nsFrame.h.
git-svn-id: svn://10.0.0.236/trunk@30744 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:12:59 +00:00
jband%netscape.com
cb1e737493 updating status - added Digital Unix and notes on PPC code
git-svn-id: svn://10.0.0.236/trunk@30743 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:01:29 +00:00
jband%netscape.com
9488a85fd6 changing wchar_t to PRUnichar because wchar_t is 32bits on some machines (Solaris) and PRUnichar is what we really mean anyway
git-svn-id: svn://10.0.0.236/trunk@30742 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:00:29 +00:00
rods%netscape.com
498347e56a Fixed strict cast on HDROP
git-svn-id: svn://10.0.0.236/trunk@30741 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:38:11 +00:00
kmcclusk%netscape.com
4b50dd6645 bug #3547- Modified nsFileControlFrame.cpp to call nsFormFrame::AddFormControlFrame.
bug #5589. Selection area is now calculated using the inherited Reflow rather
than using the calculations used for the native listbox control.
Fixed varous other rendering bugs related to frame-based listboxes.
bug #2797. GetSize is no longer needed in nsListControlFrame and it has been removed.
Fixed frame-based combobox nsComboboxFrame so that will set it's label to the
first option in the drop-down list if a default value has not been specified.
Added optgroup style rules to ua.css. Opt groups now render, but there are remaining
problems with selection.
Modified nsButtonControlFrame::Reflow to call nsFormFrame::AddFormControlFrame.
This fixes a bug where Gfx-rendered submit button's were not working.
Refactored code in nsListControlFrame in preparation for supporting option groups.
Refactored selection code into SingleSelect and MultiSelect paths.
Removed unused code in nsListControlFrame.
Removed mSelectedFrame member variable. It is no longer needed.
Fixed nsListControlFrame::SetProperty so that it will toggle the selection in a
single select listbox.


git-svn-id: svn://10.0.0.236/trunk@30740 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:30:16 +00:00
dougt%netscape.com
23699fecac enabling all (of two) tests cases.
git-svn-id: svn://10.0.0.236/trunk@30739 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:27:02 +00:00
putterman%netscape.com
1b1153446e use GetParent().
git-svn-id: svn://10.0.0.236/trunk@30738 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:22:14 +00:00
putterman%netscape.com
df220ae1d7 use SetParent()
git-svn-id: svn://10.0.0.236/trunk@30737 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:22:01 +00:00
putterman%netscape.com
290f448119 Write folder parent functions.
git-svn-id: svn://10.0.0.236/trunk@30736 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:21:47 +00:00
putterman%netscape.com
beed2b493b use GetParent()
git-svn-id: svn://10.0.0.236/trunk@30735 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:21:25 +00:00
putterman%netscape.com
d6bd758bcb Added folder parent functions.
git-svn-id: svn://10.0.0.236/trunk@30734 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:21:09 +00:00
dougt%netscape.com
0e115d745b moving build to install stage.
git-svn-id: svn://10.0.0.236/trunk@30733 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:21:04 +00:00
mcmullen%netscape.com
be374d0843 Add another helpful log message.
git-svn-id: svn://10.0.0.236/trunk@30732 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:18:26 +00:00
mscott%netscape.com
3bd707e286 part of mailnews audit --> use nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@30731 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:15:18 +00:00
kmcclusk%netscape.com
7ea64892c0 Fix for Bug #2115 Modified nsStringUtil.h as suggested in Bugzilla.
Fix for Bug #4219 Fix for scribble. Removed NET_PollSockets()
call from AfterDispatch. Scribble works now under WIN32.


git-svn-id: svn://10.0.0.236/trunk@30730 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:14:16 +00:00
rods%netscape.com
826d08429a Added nsISupportArray include
git-svn-id: svn://10.0.0.236/trunk@30729 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:11:46 +00:00
dougt%netscape.com
a2f6f179af removing unused class and reference to unused header.
git-svn-id: svn://10.0.0.236/trunk@30728 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:09:31 +00:00
dougt%netscape.com
7f1364de4e removing stuff that is throw away.
git-svn-id: svn://10.0.0.236/trunk@30727 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:07:50 +00:00
rods%netscape.com
f5784f6daf Removed methods and put them in nsIDragSession.h
git-svn-id: svn://10.0.0.236/trunk@30726 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:04:43 +00:00
dougt%netscape.com
a539b0b3d7 Landing xpcom proxies.
git-svn-id: svn://10.0.0.236/trunk@30725 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:01:37 +00:00
rods%netscape.com
18f06a678e fixed DragService creation
git-svn-id: svn://10.0.0.236/trunk@30724 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:59:02 +00:00
rods%netscape.com
78fec262eb Some lcean up and error checking
git-svn-id: svn://10.0.0.236/trunk@30723 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:56:30 +00:00
waterson%netscape.com
388fd1ede2 nsISupportsArray hackery.
git-svn-id: svn://10.0.0.236/trunk@30722 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:56:19 +00:00
rods%netscape.com
8f8384a9aa Added file drop support
git-svn-id: svn://10.0.0.236/trunk@30721 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:55:45 +00:00
waterson%netscape.com
355b73b9d5 #include nsIEnumerator, because the decl of nsISimpleEnumerator has moved there.
git-svn-id: svn://10.0.0.236/trunk@30720 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:55:44 +00:00
rods%netscape.com
d309aaf2fa Changed DragService and added nsDragSession
git-svn-id: svn://10.0.0.236/trunk@30719 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:55:00 +00:00
pinkerton%netscape.com
1e25ca6d91 create a drag service.
git-svn-id: svn://10.0.0.236/trunk@30718 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:52:44 +00:00
pinkerton%netscape.com
78c4c17bcf new drag session interface and lots of work to get d&d going.
git-svn-id: svn://10.0.0.236/trunk@30717 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:52:15 +00:00
waterson%netscape.com
912c60be63 Removed double-declaration of nsISupports: we #include nsISupportsArray now.
git-svn-id: svn://10.0.0.236/trunk@30716 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:52:13 +00:00
pinkerton%netscape.com
72e65dab91 work for new drag session interface.
git-svn-id: svn://10.0.0.236/trunk@30715 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:51:50 +00:00
pnunn%netscape.com
6af8682ced Here we go again. This was checked in/then backed out yesterday.
Its just updating the pngconf.h file to current png version in moz.
refer to bug#5841. pnunn


git-svn-id: svn://10.0.0.236/trunk@30714 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:46:38 +00:00
law%netscape.com
9dd0d1b6ee Renamed one component and added a sample
git-svn-id: svn://10.0.0.236/trunk@30713 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:45:34 +00:00
sfraser%netscape.com
c35d47193b Add nsInsertHTMLTxn.cpp for akkana.
git-svn-id: svn://10.0.0.236/trunk@30712 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:43:36 +00:00
rods%netscape.com
3668cb6393 Changed code to use the new DragSession interface
git-svn-id: svn://10.0.0.236/trunk@30711 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:42:27 +00:00
rods%netscape.com
7019b0e7c6 Added ifdef for installing DragListener
git-svn-id: svn://10.0.0.236/trunk@30710 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:41:32 +00:00
rods%netscape.com
220cb361cc Removed static IID defs and am now using GetIID from the interface
git-svn-id: svn://10.0.0.236/trunk@30709 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:39:58 +00:00
rods%netscape.com
3c29f31a25 Added nsInsertHTMLTxn
git-svn-id: svn://10.0.0.236/trunk@30708 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:38:53 +00:00
jdunn%netscape.com
1298da0ca8 add newline to end of file. HP requires it
git-svn-id: svn://10.0.0.236/trunk@30707 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:38:26 +00:00
jdunn%netscape.com
0fa77feb6f Add newline to end of file. HP chokes without it.
git-svn-id: svn://10.0.0.236/trunk@30706 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:37:48 +00:00
law%netscape.com
0a79567556 Tweaking initializer code so it still works with appcores
git-svn-id: svn://10.0.0.236/trunk@30705 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:37:21 +00:00
law%netscape.com
dada8f173d Synching with .idl file and fixing Stop button in the process
git-svn-id: svn://10.0.0.236/trunk@30704 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:35:52 +00:00
jband%netscape.com
84a3cb16e6 removing my system for building xpidl files - waterson came up with a superior scheme
git-svn-id: svn://10.0.0.236/trunk@30703 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:32:10 +00:00
beard%netscape.com
a537bf43de Fixes bug #1177, where text gets drawn over itself in long documents.
git-svn-id: svn://10.0.0.236/trunk@30702 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:29:59 +00:00
kipp%netscape.com
cc948abd27 Implement support for SetEnableRendering/GetEnableRendering
git-svn-id: svn://10.0.0.236/trunk@30701 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:26:23 +00:00
kipp%netscape.com
8bb7890749 Pass on SetRendering call to the content viewer if we have one
git-svn-id: svn://10.0.0.236/trunk@30700 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:25:58 +00:00
kipp%netscape.com
74b8de1a8b Added Set/Get enable-rendering method
git-svn-id: svn://10.0.0.236/trunk@30699 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:25:41 +00:00
slamm%netscape.com
d6e9860cfb QA wants the smoke tests to be the first thing you see (bug #6038).
git-svn-id: svn://10.0.0.236/trunk@30698 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:25:13 +00:00
akkana%netscape.com
0d82dd7ce3 Make Insert HTML a transaction
git-svn-id: svn://10.0.0.236/trunk@30697 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:23:17 +00:00
akkana%netscape.com
93cc772d77 Middle-mouse paste; also, fix a bunch of warnings
git-svn-id: svn://10.0.0.236/trunk@30696 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:22:38 +00:00
fur%netscape.com
7cf04a2482 Include jsosdep.h for JS_HAS_LONG_LONG flag
git-svn-id: svn://10.0.0.236/trunk@30695 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:20:53 +00:00
akkana%netscape.com
39604be7ee Add nsInsertHTMLTxn
git-svn-id: svn://10.0.0.236/trunk@30694 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:20:40 +00:00
akkana%netscape.com
d5ac952adc Make NS_ASSERTION and DebugBreak not crash on Unix
git-svn-id: svn://10.0.0.236/trunk@30693 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:20:12 +00:00
neeti%netscape.com
bb290ab72f Fix for bug 6099
git-svn-id: svn://10.0.0.236/trunk@30692 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:14:49 +00:00
mike%neoplanet.com
423cae3c82 Modified handling of Cancel flag sent to BeforeNavigate2 from BeginLoadURL. Previously function called aShell->Stop() which was ineffective. Changed function to return NS_ERROR_ABORT.
git-svn-id: svn://10.0.0.236/trunk@30691 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 14:23:54 +00:00
mike%neoplanet.com
e8dae5bfd7 Added code to prevent navigating to the default page, except when in design mode.
git-svn-id: svn://10.0.0.236/trunk@30690 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 14:18:23 +00:00
rods%netscape.com
24b4dda246 Changed GetFileList from nsVoidArray ** to nsVoidArray *
It now copies it contents instead of giving you a pointer to it


git-svn-id: svn://10.0.0.236/trunk@30689 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 14:14:48 +00:00
rods%netscape.com
ca233492c2 Added the Equals method
git-svn-id: svn://10.0.0.236/trunk@30688 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 14:13:09 +00:00
rods%netscape.com
18c272b748 Initial checkin
git-svn-id: svn://10.0.0.236/trunk@30687 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 14:07:51 +00:00
bruce%cybersight.com
0669aa2ebf This MUST be fixed in some other way. This is a temporary fix for the HP build bustage that Warren okayed as this code isn't in use elsewhere. This is just commenting out the bad code, not fixing it.
git-svn-id: svn://10.0.0.236/trunk@30686 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 08:08:21 +00:00
ramiro%netscape.com
e0a38cc61a Resurrect.
git-svn-id: svn://10.0.0.236/trunk@30685 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 07:35:36 +00:00
bruce%cybersight.com
fb57e2442f Fix unix build for PICS after the landing from neeti.
git-svn-id: svn://10.0.0.236/trunk@30684 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 07:34:15 +00:00
bruce%cybersight.com
24c92b5a5c Fixes for event queue changes. Still crash because of clipboard problems.
git-svn-id: svn://10.0.0.236/trunk@30683 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 06:48:55 +00:00
warren%netscape.com
40cb5e5fad Removed size args from nsIAllocator Realloc and Free. Now nsPageMgr keeps track of sizes for its nsIAllocator interface.
git-svn-id: svn://10.0.0.236/trunk@30682 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 06:22:11 +00:00
sfraser%netscape.com
02cc12bd76 For some strange reason, the string for editor type was undefined as is. I changed it to a literal.
git-svn-id: svn://10.0.0.236/trunk@30681 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:43:51 +00:00
neeti%netscape.com
4a7d7bd6e4 Landing PICS
git-svn-id: svn://10.0.0.236/trunk@30680 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:32:31 +00:00
sfraser%netscape.com
92116281fc Export Editor.css to resources.
git-svn-id: svn://10.0.0.236/trunk@30679 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:32:06 +00:00
warren%netscape.com
5a91699fa3 Found out that this needs to do autoregistration to work (because it needs raptorbase).
git-svn-id: svn://10.0.0.236/trunk@30678 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:30:30 +00:00
neeti%netscape.com
c8845d4a59 enabling PICS to be built
git-svn-id: svn://10.0.0.236/trunk@30677 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:28:59 +00:00
sfraser%netscape.com
76dcbace6f Fix a case typo in a header file name.
git-svn-id: svn://10.0.0.236/trunk@30676 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:26:50 +00:00
neeti%netscape.com
7531468705 Landing PICS
git-svn-id: svn://10.0.0.236/trunk@30675 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:26:41 +00:00
neeti%netscape.com
e7d2323646 landing pics
git-svn-id: svn://10.0.0.236/trunk@30674 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:26:13 +00:00
neeti%netscape.com
284fe20f2b Exporting NS_NewHTMLNullSink() and adding NS_INIT_REFCNT to the constructor.
git-svn-id: svn://10.0.0.236/trunk@30673 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:22:37 +00:00
harishd%netscape.com
bc43b1fffe Exporting nsIElementObserver.h
git-svn-id: svn://10.0.0.236/trunk@30672 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:18:37 +00:00
harishd%netscape.com
eef4c0b512 Added support to Notify PICS and CHARSET
git-svn-id: svn://10.0.0.236/trunk@30671 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:17:40 +00:00
briano%netscape.com
c6b465dd0b Converted 'true' to 'PR_TRUE' so it'll build on Unix.
git-svn-id: svn://10.0.0.236/trunk@30670 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:17:30 +00:00
harishd%netscape.com
a15328cfbc Enabled the RegisterObserver() to Create an Observer Dictionary.
git-svn-id: svn://10.0.0.236/trunk@30669 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:16:30 +00:00
harishd%netscape.com
9e5a91a649 Setting document key to the parsercontext.
git-svn-id: svn://10.0.0.236/trunk@30668 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:13:33 +00:00
harishd%netscape.com
545bc294b4 Modified the Notify() method. Changed nsString* to PRUnichar*.
git-svn-id: svn://10.0.0.236/trunk@30667 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:12:04 +00:00
sfraser%netscape.com
9d1696fc0b Fix for charset handling in HTML output (r kostello)
git-svn-id: svn://10.0.0.236/trunk@30666 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:03:48 +00:00
sfraser%netscape.com
ebe41203f5 Implement Save, Save As in editor.
git-svn-id: svn://10.0.0.236/trunk@30665 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:02:35 +00:00
sfraser%netscape.com
eea6214816 Implement nsIDiskDocument interface for editable documents.
git-svn-id: svn://10.0.0.236/trunk@30664 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 04:59:23 +00:00
sfraser%netscape.com
f6c7ec8177 Export nsIDiskDocument.h
git-svn-id: svn://10.0.0.236/trunk@30663 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 04:55:40 +00:00
sfraser%netscape.com
e048961768 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30662 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 04:55:18 +00:00
sfraser%netscape.com
8267e60380 If you don't get an nsIFileWidget, don't just go ahead and call methods on it.
git-svn-id: svn://10.0.0.236/trunk@30661 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 04:54:43 +00:00
pierre%netscape.com
5c08fafa37 Performance: use GetSpaceWidth() / removed mOriginalClipRegion and replaced it with mMainRegion.
Cleanup: merged SetClipRectInPixels() into SetClipRect() and removed one of the GraphicState constructors.


git-svn-id: svn://10.0.0.236/trunk@30660 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 04:10:38 +00:00
pierre%netscape.com
5ba2fff630 Removed mOriginalClipRegion: it was in fact equivalent to mMainRegion.
git-svn-id: svn://10.0.0.236/trunk@30659 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 04:10:04 +00:00
pierre%netscape.com
8d46c740bd Performance improvement: added GetSpaceWidth()
git-svn-id: svn://10.0.0.236/trunk@30658 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 04:02:59 +00:00
pierre%netscape.com
8cef2830ab Fix scrolling bug with test11. Clip out the siblings from the main window region as well as its visible region.
git-svn-id: svn://10.0.0.236/trunk@30657 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 04:00:57 +00:00
alecf%netscape.com
abe1512581 don't dereference aContext without checking for null
git-svn-id: svn://10.0.0.236/trunk@30656 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 03:08:02 +00:00
briano%netscape.com
78baed957e Automated update
git-svn-id: svn://10.0.0.236/trunk@30655 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 02:38:41 +00:00
briano%netscape.com
45fc878d7e Fix for the Solaris WorkShop compiler builds.
git-svn-id: svn://10.0.0.236/trunk@30654 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 02:38:16 +00:00
dougt%netscape.com
8a2291ac1d adding the tests directory back into the build. (thanks warren)
git-svn-id: svn://10.0.0.236/trunk@30653 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 02:37:19 +00:00
briano%netscape.com
833f641f5b Automated update
git-svn-id: svn://10.0.0.236/trunk@30652 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 02:29:41 +00:00
sspitzer%netscape.com
5778197a76 move some code over from 4.x to get nntpTest to parse the xover line.
fix my shadowing of the name variable.  (doh!)


git-svn-id: svn://10.0.0.236/trunk@30651 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 02:28:06 +00:00
briano%netscape.com
55a78440b5 Minor reorg.
git-svn-id: svn://10.0.0.236/trunk@30650 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 02:26:56 +00:00
briano%netscape.com
1e836dfda9 Changed the reference to 'false' to 'PR_FALSE' so it'll build on Unix.
git-svn-id: svn://10.0.0.236/trunk@30649 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 02:21:43 +00:00
cmanske%netscape.com
c7e403b56c Fixed infinite loop in dialog Cancel hander
git-svn-id: svn://10.0.0.236/trunk@30648 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 01:54:38 +00:00
jband%netscape.com
809d970fe8 checking in generated versions of these xpcom headers. soon we will be generating these at compile time. Sources for these files are in xpcom/idl. They are regenerated from those files using xpidl -m header filename.idl
git-svn-id: svn://10.0.0.236/trunk@30647 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 01:45:20 +00:00
vidur%netscape.com
d3101412a1 Fix for bug 6069. The ownerDocument for a Document node is now null.
git-svn-id: svn://10.0.0.236/trunk@30646 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 01:30:30 +00:00
dougt%netscape.com
7940e684ed Removing "Recovered Files" folder which cause a build bustage.
git-svn-id: svn://10.0.0.236/trunk@30645 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 01:19:14 +00:00
mcafee%netscape.com
cd970a5175 Fixed crash; toolbar buttons need to be specified in a css file now? toolbar buttons still blank.
git-svn-id: svn://10.0.0.236/trunk@30644 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:57:19 +00:00
rickg%netscape.com
d12395bee4 also removed a debug define
git-svn-id: svn://10.0.0.236/trunk@30643 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:48:04 +00:00
mscott%netscape.com
b0b5a55400 part of mailnews audit --> use nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@30642 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:47:33 +00:00
rickg%netscape.com
0facb99345 fixed an error subsuming autostrings, and removed an AIX warning
git-svn-id: svn://10.0.0.236/trunk@30641 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:47:24 +00:00
dougt%netscape.com
70e0ee40fb Adding missing files. :-)
These files were on the branch but never made it to the tip.


git-svn-id: svn://10.0.0.236/trunk@30640 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:47:09 +00:00
cmanske%netscape.com
a762d8c6c5 More improvements to insert link and insert image dialogs. Added EdDialogCommon.js, where we should put java script used by all dialogs
git-svn-id: svn://10.0.0.236/trunk@30639 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:44:46 +00:00
mscott%netscape.com
99e982bf7f part of mailnews audit --> use nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@30638 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:42:18 +00:00
mscott%netscape.com
8f801b1baa formatting changes.
git-svn-id: svn://10.0.0.236/trunk@30637 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:40:03 +00:00
putterman%netscape.com
507bc3bc42 Reimplemented GetNewMail to use GetNewMessages.
git-svn-id: svn://10.0.0.236/trunk@30636 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:35:58 +00:00
putterman%netscape.com
b1822e7fbb HasMessage implemented.
git-svn-id: svn://10.0.0.236/trunk@30635 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:35:26 +00:00
putterman%netscape.com
9903f1f25f HasMessage and GetNewMessages implemented.
git-svn-id: svn://10.0.0.236/trunk@30634 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:34:50 +00:00
putterman%netscape.com
d0abbdc97f HasMessage added.
git-svn-id: svn://10.0.0.236/trunk@30633 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:34:22 +00:00
putterman%netscape.com
66b13852fd ContainsKey added and now remove header before notifying observers about delete.
git-svn-id: svn://10.0.0.236/trunk@30632 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:33:56 +00:00
putterman%netscape.com
1515c01c70 ContainsKey added.
git-svn-id: svn://10.0.0.236/trunk@30631 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:33:29 +00:00
putterman%netscape.com
d9ebb90538 GetNewMessages and HasMessage are implemented.
git-svn-id: svn://10.0.0.236/trunk@30630 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:33:06 +00:00
putterman%netscape.com
468c57bd39 GetNewMessages and HasAssertions are implemented.
git-svn-id: svn://10.0.0.236/trunk@30629 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:32:36 +00:00
putterman%netscape.com
a1a1602e52 Added GetTargetHasAssertion, GetNewMessages and use string instead of ints for
property names.


git-svn-id: svn://10.0.0.236/trunk@30627 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:32:10 +00:00
putterman%netscape.com
7f08f427df Add HasMessage and GetNewMessages
git-svn-id: svn://10.0.0.236/trunk@30626 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:29:56 +00:00
bienvenu%netscape.com
f9fc229e6a search session class
git-svn-id: svn://10.0.0.236/trunk@30625 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:29:11 +00:00
bienvenu%netscape.com
55559561c7 initial entry into cvs of searching and filter interfaces, not part of build
git-svn-id: svn://10.0.0.236/trunk@30624 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:28:35 +00:00
alecf%netscape.com
9459fd962d remove call to GetRootFolderPath
git-svn-id: svn://10.0.0.236/trunk@30623 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:27:24 +00:00
nisheeth%netscape.com
da218a6873 Implement LoadDocument(), a new method that is part of the nsIWebShellServices interface.
git-svn-id: svn://10.0.0.236/trunk@30621 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:21:57 +00:00
morse%netscape.com
22760c6401 take advantage of vcard attribute when submitting forms
git-svn-id: svn://10.0.0.236/trunk@30620 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:18:57 +00:00
jband%netscape.com
fe442ed8d5 pare down to the idl files that really work. Some can be resurrected later. Many require interface changes with deeper implications. These are the base interfaces that we really need to have xpconnectable at this point
git-svn-id: svn://10.0.0.236/trunk@30619 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:17:58 +00:00
mscott%netscape.com
cb87b8cb39 Fix mismatched delete.
git-svn-id: svn://10.0.0.236/trunk@30618 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:13:10 +00:00
danm%netscape.com
4b6ae01c3e remove button image bug workaround, add xul namespace workaround
git-svn-id: svn://10.0.0.236/trunk@30617 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:12:18 +00:00
bienvenu%netscape.com
9796a3960b use nsCOMPtr for dbFolderInfo
git-svn-id: svn://10.0.0.236/trunk@30616 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:12:16 +00:00
mscott%netscape.com
e49cb9e297 part of mailnews audit --> use nsCOMPtr.
part of mailnews audit --> Conversion to NS_WITH_SERVICE


git-svn-id: svn://10.0.0.236/trunk@30615 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:11:43 +00:00
mcafee%netscape.com
165820e4ec Adding two dialog tests, courtesy danm@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@30614 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:11:30 +00:00
bienvenu%netscape.com
b32ce97e96 fix ref counting problems, write code for deleteing a header from a thread
git-svn-id: svn://10.0.0.236/trunk@30613 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:11:18 +00:00
sspitzer%netscape.com
feea7a837d create the necessary news related directories, if they don't exist
git-svn-id: svn://10.0.0.236/trunk@30612 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:10:55 +00:00
alecf%netscape.com
55a721b1ac use nsCOMPtr and fix ownership model of account manager
git-svn-id: svn://10.0.0.236/trunk@30611 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:10:20 +00:00
sspitzer%netscape.com
73ccf7840c make nntpTest work again. (following mscott's fix for #5991)
git-svn-id: svn://10.0.0.236/trunk@30610 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:10:14 +00:00
sspitzer%netscape.com
3ba3c0cafc check for existence before NS_ADDREFing.
this was causing a crash in smtpTest, pop3Test and nntpTest, where we
weren't registering the EventQueue component.

also, make these destructors virtual.


git-svn-id: svn://10.0.0.236/trunk@30609 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:09:46 +00:00
alecf%netscape.com
3a02ec39a7 use nsCOMPtr and fix up ownership model in account manager
git-svn-id: svn://10.0.0.236/trunk@30608 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:09:08 +00:00
vidur%netscape.com
84b015a4c2 Added precaching of images for script constructed images.
git-svn-id: svn://10.0.0.236/trunk@30607 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:08:21 +00:00
vidur%netscape.com
c7928d2921 Fix for bug 2989 - correcting result of GetFrameForPoint.
git-svn-id: svn://10.0.0.236/trunk@30606 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:08:02 +00:00
alecf%netscape.com
873f20f2f9 use nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@30605 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:07:58 +00:00
sspitzer%netscape.com
3c6ccd4c20 don't do fprintf(stderr,)
turn this on for all platforms, as it is useful to figure out why
profiles aren't working


git-svn-id: svn://10.0.0.236/trunk@30604 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:06:52 +00:00
vidur%netscape.com
ac238aa855 Implemented GetOwnerDocument.
git-svn-id: svn://10.0.0.236/trunk@30603 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:06:48 +00:00
alecf%netscape.com
cd70f35a17 fix a whole bunch of profile problems -remove global variables, static variables in functions, use NSPR routines instead of libc routines, etc.
git-svn-id: svn://10.0.0.236/trunk@30602 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:06:31 +00:00
vidur%netscape.com
0b9219a42e Added new content implementation macro
git-svn-id: svn://10.0.0.236/trunk@30601 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:06:29 +00:00
mscott%netscape.com
d865f938c7 part of mailnews audit --> use nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@30600 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:06:23 +00:00
vidur%netscape.com
ab86e7ff19 Enabled the frame loader to work without a specified frame. This is used for precaching images.
git-svn-id: svn://10.0.0.236/trunk@30599 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:06:03 +00:00
dougt%netscape.com
e5592f0539 Landing branch changes.
git-svn-id: svn://10.0.0.236/trunk@30598 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:05:54 +00:00
mscott%netscape.com
fc752a9ff0 Calling close on a nsIMsgDatabase no longer releases a ref count so we can now use nsCOMPtr on it.
git-svn-id: svn://10.0.0.236/trunk@30597 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:03:12 +00:00
mscott%netscape.com
d468676ab3 part of mailnews audit --> use nsCOMPtr. Fix ownership issue for url listeners by removing nsISupportsArray and using nsVoidArray. The listeners are the owners..
git-svn-id: svn://10.0.0.236/trunk@30596 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:02:12 +00:00
mccabe%netscape.com
858272b14b Added references to the JavaAdapter and classfile classes.
git-svn-id: svn://10.0.0.236/trunk@30595 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 23:49:10 +00:00
norris%netscape.com
fb51b2c804 Marginal performance tweak.
git-svn-id: svn://10.0.0.236/trunk@30594 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 23:17:12 +00:00
dp%netscape.com
6f43263bc7 jsdom.dll doesn't like the reordering of registrations. Revering the order of registrations back to what it was except for letting nsIFileLocator go before autoregistraion, since it depends on IFileLocator.
git-svn-id: svn://10.0.0.236/trunk@30593 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 23:09:57 +00:00
donm%netscape.com
02636053a1 backing out change while we're trying to verify trees.
git-svn-id: svn://10.0.0.236/trunk@30592 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 23:06:07 +00:00
pnunn%netscape.com
04ce2551fa Updated to correct version.
Note: this check in will result in bad displays of colormapped pngs with alpha or transparency.
This problem will be fixed with later checkins. pnunn.


git-svn-id: svn://10.0.0.236/trunk@30591 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 22:32:37 +00:00
karnaze%netscape.com
573cea30a7 incremental reflow correctly targets cell's area frame - bugs 4577, 5126, 5759
git-svn-id: svn://10.0.0.236/trunk@30590 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 22:29:28 +00:00
tague%netscape.com
f6ccc5cce2 Removed register calls - track dp changes to component manager
git-svn-id: svn://10.0.0.236/trunk@30589 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 22:19:00 +00:00
sfraser%netscape.com
747dc15df7 Layout is a component now.
git-svn-id: svn://10.0.0.236/trunk@30588 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 21:40:25 +00:00
davidm%netscape.com
82ae305f26 add mozilla:layout:html:document:public:MANIFEST
git-svn-id: svn://10.0.0.236/trunk@30583 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 21:01:46 +00:00
davidm%netscape.com
885cde6ffb removed nsPluginViewer.cpp and nsDocumentViewer.cpp ( they are in Layout now )
git-svn-id: svn://10.0.0.236/trunk@30582 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 20:40:03 +00:00
beard%netscape.com
c8cef444cf First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30581 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 20:39:56 +00:00
davidm%netscape.com
7764cf31ac Added nsPluginViewer.cpp nsLayoutDebugger, nsDocumentvViewer.cpp to fix the build bustage
git-svn-id: svn://10.0.0.236/trunk@30579 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 20:22:28 +00:00
valeski%netscape.com
eb6d05c75f removed nsSycnOutStreamListener references. No longer using it.
git-svn-id: svn://10.0.0.236/trunk@30578 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:49:23 +00:00
valeski%netscape.com
a099c5d361 changed nsIEventQueue->ProcessPendingEvents() to nsIEventQueue->EVentLoop()
git-svn-id: svn://10.0.0.236/trunk@30577 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:47:55 +00:00
kipp%netscape.com
433635f230 Removed html items from the link line
git-svn-id: svn://10.0.0.236/trunk@30576 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:37:52 +00:00
kipp%netscape.com
f6353f5a5a Removed libraries no longer needed to link
git-svn-id: svn://10.0.0.236/trunk@30575 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:35:59 +00:00
kipp%netscape.com
a06fa618f9 Updated comments
git-svn-id: svn://10.0.0.236/trunk@30574 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:35:11 +00:00
kipp%netscape.com
e1f7eb5c37 moved to layout
git-svn-id: svn://10.0.0.236/trunk@30573 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:34:32 +00:00
kipp%netscape.com
891b3e7290 Removed layout registry hackery
git-svn-id: svn://10.0.0.236/trunk@30572 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:32:56 +00:00
kipp%netscape.com
26a7ee74bb Use component manager instead of direct linking against the html library
git-svn-id: svn://10.0.0.236/trunk@30571 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:32:42 +00:00
kipp%netscape.com
465da85c13 bye bye
git-svn-id: svn://10.0.0.236/trunk@30570 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:32:18 +00:00
kipp%netscape.com
acf352ca0d Ripped out the old doc-loader hackery and use the component manager to find viewers instead
git-svn-id: svn://10.0.0.236/trunk@30569 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:31:59 +00:00
kipp%netscape.com
22aaea44fd Moved some source files to layout
git-svn-id: svn://10.0.0.236/trunk@30568 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:29:46 +00:00
kipp%netscape.com
e5a15c913f Moved some headers from here to layout
git-svn-id: svn://10.0.0.236/trunk@30567 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:29:26 +00:00
kipp%netscape.com
1e710614e2 Create an html element factory to use to create html content objects instead of requiring rdf to link with the html dll
git-svn-id: svn://10.0.0.236/trunk@30566 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:28:45 +00:00
kipp%netscape.com
f55848dfdd Use DOM api's instead of layout private api's
git-svn-id: svn://10.0.0.236/trunk@30565 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:28:22 +00:00
kipp%netscape.com
ce6a83b907 Use component manager to create a css parser
git-svn-id: svn://10.0.0.236/trunk@30564 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:28:09 +00:00
kipp%netscape.com
23e52ce12d We no longer need to link in raptor
git-svn-id: svn://10.0.0.236/trunk@30563 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:27:53 +00:00
kipp%netscape.com
5d1f7ed1d6 Removed bogus inline virtual method in an interface
git-svn-id: svn://10.0.0.236/trunk@30562 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:27:37 +00:00
kipp%netscape.com
c95e41d477 Add public to the build
git-svn-id: svn://10.0.0.236/trunk@30561 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:26:55 +00:00
kipp%netscape.com
93b09162ad Implement nsIHTMLElementFactory
git-svn-id: svn://10.0.0.236/trunk@30560 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:26:43 +00:00
kipp%netscape.com
bb52ff4425 Added component support to this library
git-svn-id: svn://10.0.0.236/trunk@30559 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:26:13 +00:00
kipp%netscape.com
0fa330bb27 Added new source files
git-svn-id: svn://10.0.0.236/trunk@30558 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:25:50 +00:00
kipp%netscape.com
969dad1d78 Moved from webshell/src
git-svn-id: svn://10.0.0.236/trunk@30557 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:25:40 +00:00
kipp%netscape.com
cec1954858 Moved from webshell directory
git-svn-id: svn://10.0.0.236/trunk@30556 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:25:10 +00:00
kipp%netscape.com
d45303e8b6 Added headers
git-svn-id: svn://10.0.0.236/trunk@30555 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:24:57 +00:00
kipp%netscape.com
e4239e955b Added a makefile
git-svn-id: svn://10.0.0.236/trunk@30554 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:24:31 +00:00
briano%netscape.com
220f2cd1ca Automated update
git-svn-id: svn://10.0.0.236/trunk@30553 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:14:37 +00:00
alecf%netscape.com
bb7cada0b0 remove -Wsign-compare because it confuses gcc 2.7.2.1
git-svn-id: svn://10.0.0.236/trunk@30552 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 19:03:23 +00:00
despotdaemon%netscape.com
2e86c2055f Pseudo-automatic update of changes made by waqar@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@30551 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 18:29:49 +00:00
despotdaemon%netscape.com
0df25a5777 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@30549 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 17:58:41 +00:00
beard%netscape.com
a506e17625 don't know how, but line endings got whacked.
git-svn-id: svn://10.0.0.236/trunk@30545 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 15:52:25 +00:00
despotdaemon%netscape.com
f3822d85bd Pseudo-automatic update of changes made by mang@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@30544 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 15:51:39 +00:00
dp%netscape.com
1d1b752269 Using nsIFileLocator instead of nsSpecialFileSpec for Autoregistration
git-svn-id: svn://10.0.0.236/trunk@30543 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 15:19:22 +00:00
beard%netscape.com
a6b3efa5b6 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30542 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 15:06:11 +00:00
beard%netscape.com
b28a3e004c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30541 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 14:39:20 +00:00
beard%netscape.com
2fb74cb7e2 tool changes
git-svn-id: svn://10.0.0.236/trunk@30540 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 14:30:29 +00:00
beard%netscape.com
633295898e added xptcstubs_mac.cpp/.s, removed xptcstubs_.mac.cpp
git-svn-id: svn://10.0.0.236/trunk@30539 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 14:29:31 +00:00
beard%netscape.com
014335891f XP_MAC: no longer using mac_fopen, replacing fopen itself. added mac_warning.
git-svn-id: svn://10.0.0.236/trunk@30538 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 14:27:57 +00:00
dp%netscape.com
27a015c42c Fixed AutoregisterComponent() to return a value
git-svn-id: svn://10.0.0.236/trunk@30537 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 14:27:09 +00:00
beard%netscape.com
95c4256ae0 for XP_MAC, added macro renaming main to xptdump_main, for use in CodeWarrior plugin, changed all uses of "stat" to call to get_file_length() for clarity, and to lessen number of calls to stat in code.
git-svn-id: svn://10.0.0.236/trunk@30536 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 14:25:10 +00:00
beard%netscape.com
a7829d1536 For XP_MAC, added macro renaming main to xptlink_main, for use in CW plugin linker, uint32 -> PRUint32, renamed xpt_dump_usage -> xpt_link_usage.
git-svn-id: svn://10.0.0.236/trunk@30535 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 14:22:46 +00:00
beard%netscape.com
eb2443e638 fixed stores of types smaller than sizeof(PRInt32)
git-svn-id: svn://10.0.0.236/trunk@30534 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 14:21:08 +00:00
beard%netscape.com
c1ac3cf6a7 fixed floating point loads, vtable offset, r4 <- r6.
git-svn-id: svn://10.0.0.236/trunk@30533 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 14:19:34 +00:00
beard%netscape.com
e11c50895f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30532 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 14:16:15 +00:00
rods%netscape.com
daaf08733b removed some old D&D code that was commented out, fixed processing of arrows
keys by returning the status from dispatch.


git-svn-id: svn://10.0.0.236/trunk@30531 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 14:00:25 +00:00
dp%netscape.com
51d89b5c5d Moving Autoregitration out of SetupRegistry()
git-svn-id: svn://10.0.0.236/trunk@30530 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 13:35:25 +00:00
dp%netscape.com
7f8c687d95 Removing stray UnregisterFactory(..., path)
git-svn-id: svn://10.0.0.236/trunk@30529 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 13:33:42 +00:00
dp%netscape.com
512e87bc1a Landing M6 XPCOM Code cleanup branch
git-svn-id: svn://10.0.0.236/trunk@30528 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 13:29:37 +00:00
mccabe%netscape.com
3481e47bed Initial checkin of distribution makefile system for our brandfangled free source Rhino.
git-svn-id: svn://10.0.0.236/trunk@30527 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 07:51:15 +00:00
dcone%netscape.com
ad17cb3980 fixed an autoString to use the GetUnicode() call
git-svn-id: svn://10.0.0.236/trunk@30526 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 07:42:43 +00:00
dcone%netscape.com
2807d70e98 fixed a bug with using mString to use the unicode value
git-svn-id: svn://10.0.0.236/trunk@30525 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 06:57:24 +00:00
nisheeth%netscape.com
a29c40eeb9 The document loader that initiates the nsIDocumentLoaderObserver notifications is now passed up the document loader hierarchy. This was needed because external services that register as observers to the top level document loader expect to receive the document loader that is initiating the notification as a parameter in the notification. Earlier, they were always receiving the top level document loader regardless of which document loader initiated the notification.
git-svn-id: svn://10.0.0.236/trunk@30524 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 06:52:05 +00:00
rickg%netscape.com
30880da7dd sync with nsString2
git-svn-id: svn://10.0.0.236/trunk@30523 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 06:47:15 +00:00
briano%netscape.com
9be1674b24 Automated update
git-svn-id: svn://10.0.0.236/trunk@30522 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 06:44:41 +00:00
briano%netscape.com
3bb504035b Fix for SunOS 4.x.
git-svn-id: svn://10.0.0.236/trunk@30521 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 06:39:14 +00:00
waterson%netscape.com
41cc6167ab Fix compiler warnings. Make -pedantic build again.
git-svn-id: svn://10.0.0.236/trunk@30520 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 06:34:07 +00:00
waterson%netscape.com
c0945ca434 Fix compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@30519 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 06:33:47 +00:00
waterson%netscape.com
5d400bd780 Fix off-by-one error, and an infinite loop.
git-svn-id: svn://10.0.0.236/trunk@30518 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 06:32:54 +00:00
briano%netscape.com
4601bff478 Automated update
git-svn-id: svn://10.0.0.236/trunk@30517 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 06:02:45 +00:00
briano%netscape.com
108fef9bd0 Fix for NetBSD/x86.
git-svn-id: svn://10.0.0.236/trunk@30516 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 06:02:25 +00:00
briano%netscape.com
4368ea6cae Forgot to add AIX_SHLIB_BIN.
git-svn-id: svn://10.0.0.236/trunk@30515 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 05:41:10 +00:00
waterson%netscape.com
7cefdffdb4 Obsolete.
git-svn-id: svn://10.0.0.236/trunk@30514 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 05:17:37 +00:00
waterson%netscape.com
dc95538961 Suppress unused parameter warnings.
git-svn-id: svn://10.0.0.236/trunk@30513 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 05:15:26 +00:00
rickg%netscape.com
5c8c136b32 new nsString modz; getting ready for nsString2 switchover
git-svn-id: svn://10.0.0.236/trunk@30512 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 05:13:08 +00:00
dveditz%netscape.com
1160261d68 minor startup performance improvement
git-svn-id: svn://10.0.0.236/trunk@30511 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 04:19:06 +00:00
dougt%netscape.com
f934686e6c removing software update references.
git-svn-id: svn://10.0.0.236/trunk@30510 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 04:18:44 +00:00
dougt%netscape.com
2256e8eec9 reduce alot of code by using nsFileSpec
now using nsISupports macros (thanks dp)
now manager is a singleton.
various other changes.


git-svn-id: svn://10.0.0.236/trunk@30509 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 04:12:22 +00:00
dougt%netscape.com
cee1165770 Hooking up xpinstall to the viewer. This will cause a new instance of the
xpinstall to be created when the viewer launches.  This will be removed
(along with the startup of silentdl) once we have a way of starting up
components less intrusive.

nsViewer.cpp - Added CreateInstance and related code to start component
makefile.win - Added new include path


git-svn-id: svn://10.0.0.236/trunk@30508 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 03:59:47 +00:00
nisheeth%netscape.com
a07e32563c - Implemented GetContentViewerContainer() in the nsDocLoaderImpl() object.
- Added charset parameters to LoadDocument(), a method defined in nsIWebShellServices


git-svn-id: svn://10.0.0.236/trunk@30507 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 03:54:40 +00:00
nisheeth%netscape.com
4a517afb95 Added parameters for charset to LoadDocument().
git-svn-id: svn://10.0.0.236/trunk@30506 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 03:53:28 +00:00
hangas%netscape.com
9f87b5ff5e sspitzer: port news to the mac. remove silly printfs. put useful printfs behind DEBUG_NOISY_NEWS, so I can turn them all on from a Mac
git-svn-id: svn://10.0.0.236/trunk@30505 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 03:25:47 +00:00
hangas%netscape.com
26d12286a6 sspitzer: port news to the mac
git-svn-id: svn://10.0.0.236/trunk@30504 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 03:24:48 +00:00
briano%netscape.com
5725cae8b5 Automated update
git-svn-id: svn://10.0.0.236/trunk@30503 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 03:17:19 +00:00
briano%netscape.com
330198257b Added a check for makeC++SharedLib_r on AIX if NO_SHARED_LIB is not set.
git-svn-id: svn://10.0.0.236/trunk@30502 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 03:16:55 +00:00
nisheeth%netscape.com
09cdf33e5b Fixing Unix build bustage. The interface file got checked in with incorrect casing in the file name.
git-svn-id: svn://10.0.0.236/trunk@30501 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 02:53:01 +00:00
briano%netscape.com
a57367627d Automated update
git-svn-id: svn://10.0.0.236/trunk@30500 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 02:21:12 +00:00
briano%netscape.com
03e32c623d Boy, that was dumb. Fixed the MKSHLIB recursion bug I checked in.
git-svn-id: svn://10.0.0.236/trunk@30499 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 02:20:46 +00:00
despotdaemon%netscape.com
cf12e0dadd Pseudo-automatic update of changes made by shaver@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@30498 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 02:19:21 +00:00
nisheeth%netscape.com
a0cb9d0fde - adding stubs for the methods in nsIWebShellServices implemented by the nsWebShell object.
- adding a stub implementation of the GetContentViewerContainer() method to nsDocLoaderImpl.


git-svn-id: svn://10.0.0.236/trunk@30497 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:58:48 +00:00
briano%netscape.com
2371311b84 Added OpenBSD to the list.
git-svn-id: svn://10.0.0.236/trunk@30496 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:58:22 +00:00
briano%netscape.com
1641b5da6f This should prevent Solaris/x86 from overriding its CPPSRCS setting with that for sparc.
git-svn-id: svn://10.0.0.236/trunk@30495 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:57:02 +00:00
nisheeth%netscape.com
9085da10b9 - Adding the nsIWebShellServices interface that will be used by external services to access the webshell.
- Also, adding a method to nsIDocumentLoader that maps a document ID into an nsIContentViewerContainer.


git-svn-id: svn://10.0.0.236/trunk@30494 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:55:10 +00:00
hangas%netscape.com
783db1744c Updated to build on Mac
git-svn-id: svn://10.0.0.236/trunk@30493 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:53:31 +00:00
nisheeth%netscape.com
e1fd8e4585 Pass a pointer to the document object when you call the Parse method on the parser object.f
git-svn-id: svn://10.0.0.236/trunk@30492 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:51:31 +00:00
nisheeth%netscape.com
999de3b0aa Pass in the document object as a key to the parser.
git-svn-id: svn://10.0.0.236/trunk@30491 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:50:26 +00:00
fur%netscape.com
cb594b3e88 Delete jsmathtemp.o when clobber'ing
git-svn-id: svn://10.0.0.236/trunk@30490 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:50:11 +00:00
nisheeth%netscape.com
8bb7193651 Added a key as a parameter to all the different versions of the Parse method in nsIParser.
git-svn-id: svn://10.0.0.236/trunk@30489 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:48:56 +00:00
saari%netscape.com
ce9191b71c Fixing Mac menu bug
git-svn-id: svn://10.0.0.236/trunk@30488 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:45:48 +00:00
saari%netscape.com
d39a2abb37 Plug a leak
git-svn-id: svn://10.0.0.236/trunk@30487 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:43:12 +00:00
mscott%netscape.com
4dbd16b394 Bug 5991 --> Fix crash in smtpTest caused by the event queue carpool yesterday. We need to make sure the event queue is registered.
git-svn-id: svn://10.0.0.236/trunk@30486 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:38:25 +00:00
dp%netscape.com
f015deb427 Converting stray UnregisterFactory calls to UnregisterComponent
git-svn-id: svn://10.0.0.236/trunk@30485 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:37:04 +00:00
mscott%netscape.com
c0e86ca11b Bug 5991 --> Fix crash in pop3Test caused by the event queue carpool yesterday. We need to make sure the event queue is registered.
git-svn-id: svn://10.0.0.236/trunk@30484 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:35:40 +00:00
cmanske%netscape.com
3918932e7d Added the redraw hack to SetParagraphFormat so we can see the content change
git-svn-id: svn://10.0.0.236/trunk@30483 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:33:48 +00:00
rjc%netscape.com
1615f28dd8 New file: loading.gif
git-svn-id: svn://10.0.0.236/trunk@30482 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:19:25 +00:00
rjc%netscape.com
fcaaa5c5bb First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30481 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:19:04 +00:00
alecf%netscape.com
0b905a66c1 fix some warnings on unix:
- fix shadow variable "key"
- rename "index" to "kindex"
- rename shadow "err" to mdberr because the outter one was a nsresult


git-svn-id: svn://10.0.0.236/trunk@30480 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:01:11 +00:00
pinkerton%netscape.com
37f332835f renamed <tristatecheckbox> to <checkbox>
git-svn-id: svn://10.0.0.236/trunk@30479 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:55:32 +00:00
av%netscape.com
d9f7fb0b52 Override SetInitialChildList for nsObjectFrame
git-svn-id: svn://10.0.0.236/trunk@30478 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:54:36 +00:00
pinkerton%netscape.com
f034860fbf make <tristatecheckbox> now be <checkbox>
git-svn-id: svn://10.0.0.236/trunk@30477 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:53:22 +00:00
mcafee%netscape.com
d5a2076a47 Adding Solaris/sparc and Solaris/intel
git-svn-id: svn://10.0.0.236/trunk@30476 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:49:31 +00:00
mcafee%netscape.com
56d1aa8697 Linker didn't seem to like _ prefix for function names, removing them fixes link errors. Adding license file.
git-svn-id: svn://10.0.0.236/trunk@30475 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:49:02 +00:00
mcafee%netscape.com
a5e767e34d Fixing link error (Solaris).
git-svn-id: svn://10.0.0.236/trunk@30474 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:48:09 +00:00
mcafee%netscape.com
f27eb89d94 Fixing link errors (Solaris).
git-svn-id: svn://10.0.0.236/trunk@30473 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:47:40 +00:00
rjc%netscape.com
5cdb033229 Add some small NULL checks.
git-svn-id: svn://10.0.0.236/trunk@30472 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:38:54 +00:00
putterman%netscape.com
d0f3fb2040 Fix 5988. Delete message works again.
git-svn-id: svn://10.0.0.236/trunk@30471 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:28:12 +00:00
davidm%netscape.com
3a42044471 File Removed.
git-svn-id: svn://10.0.0.236/trunk@30470 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:26:39 +00:00
sspitzer%netscape.com
5f83d6c89a check for existance before dereferencing
git-svn-id: svn://10.0.0.236/trunk@30469 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:24:45 +00:00
sspitzer%netscape.com
f9d569e01f check for null before querying the interface
git-svn-id: svn://10.0.0.236/trunk@30468 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:19:49 +00:00
sspitzer%netscape.com
4fc25c0fb5 tests are only for me
git-svn-id: svn://10.0.0.236/trunk@30467 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:19:11 +00:00
sspitzer%netscape.com
896d1925a8 warnings be gone! remove silly printfs. make nsMsgNewsFactory take the same
number of parameters as the other mail news factories, for consistency


git-svn-id: svn://10.0.0.236/trunk@30466 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:18:24 +00:00
ftang%netscape.com
a5e456e68e fix category bug
git-svn-id: svn://10.0.0.236/trunk@30465 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:17:40 +00:00
ftang%netscape.com
3b3cd6f5ac fix warning and category bug
git-svn-id: svn://10.0.0.236/trunk@30464 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:17:18 +00:00
sspitzer%netscape.com
f38322f5a2 warnings be gone!
git-svn-id: svn://10.0.0.236/trunk@30463 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:17:15 +00:00
briano%netscape.com
3181f339a4 Automated update
git-svn-id: svn://10.0.0.236/trunk@30462 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:14:39 +00:00
alecf%netscape.com
f1d5390a54 remove -W flag to get rid of "unused parameter" noise
git-svn-id: svn://10.0.0.236/trunk@30461 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:13:38 +00:00
nhotta%netscape.com
049c4fb06d Adding Mac support (not part of the build).
git-svn-id: svn://10.0.0.236/trunk@30460 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:12:11 +00:00
sspitzer%netscape.com
9f3fed4aa6 remove duplicate code.
use #error to let people porting this beast know that they have to do
work to get profiles to work.


git-svn-id: svn://10.0.0.236/trunk@30459 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:11:10 +00:00
ducarroz%netscape.com
d679b52a6c Mailnews is now fully integrated to the build process. I have remove the previous patch to avoid to build mailnews by befault.
git-svn-id: svn://10.0.0.236/trunk@30458 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:10:47 +00:00
ducarroz%netscape.com
dcb0d933b5 update mailnews build intructions, use MANIFEST for exporting mailnews resources
git-svn-id: svn://10.0.0.236/trunk@30457 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:03:00 +00:00
ducarroz%netscape.com
b912da2f86 Use LL_xxx macros when using PRInt64 variable
git-svn-id: svn://10.0.0.236/trunk@30456 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:01:27 +00:00
briano%netscape.com
ad8a17598d Automated update
git-svn-id: svn://10.0.0.236/trunk@30455 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:00:09 +00:00
ducarroz%netscape.com
a568e7728b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30454 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 00:00:08 +00:00
ftang%netscape.com
03eb6dbd5a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30453 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:55:50 +00:00
hyatt%netscape.com
dd5410721e Changed the arguments to PostSynchronousEvent. Added an EventLoop method.
git-svn-id: svn://10.0.0.236/trunk@30452 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:55:10 +00:00
hyatt%netscape.com
9b4cf49af1 Changed the arguments to PostSynchronousEvent.
git-svn-id: svn://10.0.0.236/trunk@30451 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:54:47 +00:00
sspitzer%netscape.com
4775f48570 fix for #5942. make UNIX behave like windows and mac, as far as having
a Users50 directory and having all the profile directories under there.


git-svn-id: svn://10.0.0.236/trunk@30450 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:54:37 +00:00
ftang%netscape.com
eb2533ba2d fix signed/unsigned problem, call Reset function when error occur
git-svn-id: svn://10.0.0.236/trunk@30449 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:53:49 +00:00
ftang%netscape.com
6163d9ab46 fix buffer growing problem and wrong value when we return NS_UPEXPECTED error
git-svn-id: svn://10.0.0.236/trunk@30448 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:52:48 +00:00
ftang%netscape.com
5f70a2bd53 remove extra line from unixcharset.properties put the real implementation of nsUNIXCharset.cpp
git-svn-id: svn://10.0.0.236/trunk@30447 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:51:15 +00:00
mcafee%netscape.com
d2b843c794 Adding --enable-new-drag-and-drop for new dnd stuff.
git-svn-id: svn://10.0.0.236/trunk@30446 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:46:13 +00:00
av%netscape.com
4ea2ce2b72 Getting back check for data attribute in image frames
git-svn-id: svn://10.0.0.236/trunk@30445 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:40:21 +00:00
briano%netscape.com
8b0d2cfa20 Automated update
git-svn-id: svn://10.0.0.236/trunk@30444 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:38:41 +00:00
briano%netscape.com
3d80cdbf48 Fix for bug 5770. Thanks to lennox@cs.columbia.edu.
git-svn-id: svn://10.0.0.236/trunk@30443 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:38:15 +00:00
scc%netscape.com
2532453e8b sense of HAVE_CPP_BOOL was backwards, fixed it (thanks, Jim Dunn)
git-svn-id: svn://10.0.0.236/trunk@30442 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:36:38 +00:00
akkana%netscape.com
d6442ae892 Track change from iDirection to ECollapsedSelectionAction
git-svn-id: svn://10.0.0.236/trunk@30441 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:36:28 +00:00
cmanske%netscape.com
5153df144d Added new JavaScript files
git-svn-id: svn://10.0.0.236/trunk@30440 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:33:34 +00:00
ducarroz%netscape.com
1221761a82 change printf to say message compose instance of composer
git-svn-id: svn://10.0.0.236/trunk@30439 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:32:30 +00:00
cmanske%netscape.com
017c096e5b Split JavaScript out of XUL into separate files
git-svn-id: svn://10.0.0.236/trunk@30438 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:30:21 +00:00
cmanske%netscape.com
0a9edc9d32 Added UI for paragraph style and preliminary versions of image and link dialogs
git-svn-id: svn://10.0.0.236/trunk@30437 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:29:18 +00:00
norris%netscape.com
af7a64a58c Update release string.
git-svn-id: svn://10.0.0.236/trunk@30434 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:29:06 +00:00
cmanske%netscape.com
83f84a10f8 Added Get/Set paragraph style methods to editor
git-svn-id: svn://10.0.0.236/trunk@30433 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:27:45 +00:00
akkana%netscape.com
392f2f0298 - Rename iDirection enum to ECollapsedSelectionAction
- Initial implementation of Insert HTML


git-svn-id: svn://10.0.0.236/trunk@30432 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:27:17 +00:00
akkana%netscape.com
7665b5ba68 comment out annoying debug message
git-svn-id: svn://10.0.0.236/trunk@30431 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:24:58 +00:00
slamm%netscape.com
ac1af6941d Properly escape the url for client.mk's webconfig target.
git-svn-id: svn://10.0.0.236/trunk@30430 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:20:46 +00:00
erik%netscape.com
24138a3054 Fix for one of the memory leaks found by The Mighty Bruce.
git-svn-id: svn://10.0.0.236/trunk@30429 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:18:38 +00:00
cyeh%netscape.com
3392afd90c backout mjudge checkin against closed tree. it also breaks mac as well, so
mjudge will try again when tree reopens


git-svn-id: svn://10.0.0.236/trunk@30428 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:05:41 +00:00
mcmullen%netscape.com
e5dac9f2ad Turned off time-stamped build logs by default. jj's release builds need the hard-coded name.
git-svn-id: svn://10.0.0.236/trunk@30427 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:03:55 +00:00
briano%netscape.com
5dac3696d4 Not needed. This directory is no longer used.
git-svn-id: svn://10.0.0.236/trunk@30426 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 22:57:25 +00:00
valeski%netscape.com
a019a864f3 changed over to nsIEventQueue interface, from straight PL_EventQueue. Also took a whack at getting socketTRansport::OpenOutputSTream to work (hasn't been tested)
git-svn-id: svn://10.0.0.236/trunk@30425 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 22:41:44 +00:00
mjudge%netscape.com
6249ea5e27 adding new state to nsRangeList to track mousedown and dragging criteria. much better than static variables in nsFrame.h!!
git-svn-id: svn://10.0.0.236/trunk@30424 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 22:32:58 +00:00
mjudge%netscape.com
09c4463cb3 removing useless drag info from ::HandleEvent that was copied from nsFrame implementation
git-svn-id: svn://10.0.0.236/trunk@30423 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 22:29:45 +00:00
mjudge%netscape.com
1925f88738 updating new state controler for mouse status. aka dragging has stopped
git-svn-id: svn://10.0.0.236/trunk@30422 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 22:28:51 +00:00
mjudge%netscape.com
80f19e636c removing static variables from nsFrame for selection. storing state in nsIFrameSelection Implementation.
git-svn-id: svn://10.0.0.236/trunk@30421 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 22:27:57 +00:00
mcmullen%netscape.com
1c6f2d2760 Turn off reading of default files - there's a parse error in one of them. This was completely blocking mailnews. a=cyeh.
git-svn-id: svn://10.0.0.236/trunk@30420 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 22:25:23 +00:00
terry%mozilla.org
31c4f880f5 Present people an immediate opportunity to attach something to a bug.
git-svn-id: svn://10.0.0.236/trunk@30419 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 22:16:21 +00:00
terry%mozilla.org
fd4fb15a21 Sigh. Fix some indentation I just screwed up.
git-svn-id: svn://10.0.0.236/trunk@30418 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 22:06:49 +00:00
terry%mozilla.org
76cb89e067 Get rid of tabs. (We try to keep tabs out of bugzilla source. We
often fail.)


git-svn-id: svn://10.0.0.236/trunk@30417 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 22:05:19 +00:00
terry%mozilla.org
218c7ef57e Added newlines to the end of some messages; the last line was getting
eaten sometimes.


git-svn-id: svn://10.0.0.236/trunk@30416 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 21:29:46 +00:00
terry%mozilla.org
5d02422887 Was not properly remembering email addresses in memorized queries.
git-svn-id: svn://10.0.0.236/trunk@30415 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 21:25:29 +00:00
terry%mozilla.org
9f65402d73 Allow querying of bug creation times.
git-svn-id: svn://10.0.0.236/trunk@30414 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 21:18:39 +00:00
gayatrib%netscape.com
7f24343c97 Modified to reflect the new flow for customize pages
git-svn-id: svn://10.0.0.236/trunk@30413 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 21:14:02 +00:00
gayatrib%netscape.com
cc986680ae Modified to reflect the new flow for branding pages
git-svn-id: svn://10.0.0.236/trunk@30412 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 21:13:26 +00:00
gayatrib%netscape.com
4a77aa1b5d Modified to reflect the new wizard flow
git-svn-id: svn://10.0.0.236/trunk@30411 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 21:11:39 +00:00
kipp%netscape.com
c8628f5073 new
git-svn-id: svn://10.0.0.236/trunk@30410 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 20:42:51 +00:00
putterman%netscape.com
6ad10a9748 fixes mailnews crash when sending mail and opening folders. AddRef before
returning.


git-svn-id: svn://10.0.0.236/trunk@30409 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 20:09:20 +00:00
mcmullen%netscape.com
d5b8dd866e Turning off profile wizard till we iron out a few problems.
git-svn-id: svn://10.0.0.236/trunk@30408 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 20:04:18 +00:00
slamm%netscape.com
d89d1c6684 Fix symlinking to .mozconfig for saveas feature.
git-svn-id: svn://10.0.0.236/trunk@30405 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 19:36:51 +00:00
slamm%netscape.com
0ac7f2ac8c Make srcdir build default again. Fix defaults for script preview and save as.
git-svn-id: svn://10.0.0.236/trunk@30402 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 18:32:01 +00:00
scc%netscape.com
b85e1a74ed -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wow!  Re-enabled initialization/assignment from raw COM interface pointers, only this time it means the same as |dont_QueryInterface|.  Which is what people want and expect.  Re-enabled comparisons between |nsCOMPtr|s and raw COM interface pointers; and it means what people expect: are these two 4-byte values equal/not-equal.  Added a function for comparing two pointers (either can be raw or nsCOMPtr) called |SameCOMIdentity|, which provides the other kind of comparison.

No current functionality has changed.  Everything you're doing now is still legal and valid.  These changes only bring some additional options.
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.0.2
Comment: get my key at <http://www.meer.net/ScottCollins/#key>

iQA/AwUBNzAeufGmojMuVn+fEQInWgCfUVK/7xfd/pdhAmyIe4HhynKsuucAn20t
MRtmNY4e2MAdwClvhR65a5Yv
=elb3
-----END PGP SIGNATURE-----


git-svn-id: svn://10.0.0.236/trunk@30401 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 10:37:05 +00:00
nisheeth%netscape.com
b458856e07 Remove the /n flag when we invoke BSCMAKE, the utility provided by MS to generate code browsing information. This means that once the browsing database is constructed, updates to it will happen incrementally. Earlier, updates were causing the entire database to get created from scratch.
git-svn-id: svn://10.0.0.236/trunk@30400 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 08:00:20 +00:00
hyatt%netscape.com
8f52fb367c Fix for bug #5937.
git-svn-id: svn://10.0.0.236/trunk@30399 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 07:26:03 +00:00
waterson%netscape.com
e1a82a82ff Put files into the wrong directory.
git-svn-id: svn://10.0.0.236/trunk@30398 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 06:58:04 +00:00
alecf%netscape.com
fdc2a8447c use nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@30397 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 06:43:34 +00:00
alecf%netscape.com
556e597028 minor cleanup and add a helpful comment
git-svn-id: svn://10.0.0.236/trunk@30396 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 06:40:28 +00:00
alecf%netscape.com
0ea654b321 use nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@30394 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 06:38:18 +00:00
mcafee%netscape.com
aa4b2003c1 Adding license.
git-svn-id: svn://10.0.0.236/trunk@30393 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 06:07:50 +00:00
mcafee%netscape.com
de1f39dd70 Adding test to .cvsignore
git-svn-id: svn://10.0.0.236/trunk@30392 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 06:07:25 +00:00
mcafee%netscape.com
67a23ecafc Adding Makefile for Linux.
git-svn-id: svn://10.0.0.236/trunk@30391 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 06:06:33 +00:00
mcafee%netscape.com
0910230024 Adding xpcom/libxpt/xptcall/src/md/test/Makefile for Linux.
git-svn-id: svn://10.0.0.236/trunk@30390 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 06:06:10 +00:00
waterson%netscape.com
0feaf9e957 Moved all of these files to mozilla/profile/resources.
git-svn-id: svn://10.0.0.236/trunk@30389 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 06:03:12 +00:00
waterson%netscape.com
f01adc2589 Don't install profile stuff.
git-svn-id: svn://10.0.0.236/trunk@30388 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 06:02:07 +00:00
briano%netscape.com
c5388e905d Automated update
git-svn-id: svn://10.0.0.236/trunk@30387 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 05:59:43 +00:00
waterson%netscape.com
72de9099b6 Move profile stuff out of mailnews.
git-svn-id: svn://10.0.0.236/trunk@30386 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 05:59:04 +00:00
alecf%netscape.com
77872869ec fix -Wno-long-long because it's only supported on egcs 1.1.x
git-svn-id: svn://10.0.0.236/trunk@30385 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 05:59:03 +00:00
waterson%netscape.com
1f4579e982 Add install for mozilla/profile/resources.
git-svn-id: svn://10.0.0.236/trunk@30384 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 05:57:46 +00:00
waterson%netscape.com
9153931565 Fix nsCOMPtr bustage.
git-svn-id: svn://10.0.0.236/trunk@30383 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 05:56:58 +00:00
sspitzer%netscape.com
9fc02630e0 initial work to move over ParseLine from 4.x world
git-svn-id: svn://10.0.0.236/trunk@30382 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 05:45:01 +00:00
sspitzer%netscape.com
407ec1b0bf export common.css
git-svn-id: svn://10.0.0.236/trunk@30379 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 05:21:31 +00:00
alecf%netscape.com
e52caed037 make composer use the new nsIAppShellComponent
git-svn-id: svn://10.0.0.236/trunk@30378 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 05:21:30 +00:00
buster%netscape.com
8d03d0ce7c fixed mac bustage
git-svn-id: svn://10.0.0.236/trunk@30377 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 05:17:59 +00:00
alecf%netscape.com
c8c65784bc make sure QueryInterface returns the right GetIID()
git-svn-id: svn://10.0.0.236/trunk@30376 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 05:16:09 +00:00
alecf%netscape.com
484ce70bac use the new lighter weight nsIAppShellComponent
git-svn-id: svn://10.0.0.236/trunk@30375 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 05:14:39 +00:00
alecf%netscape.com
78b4167e74 make composer and messenger use the new nsIAppShellComponent to get bootstrapped
git-svn-id: svn://10.0.0.236/trunk@30374 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 05:14:16 +00:00
buster%netscape.com
c59396c61b added a param to GetPriorNode and GetNextNode to tell these methods whether to use or skip
non-editable content.
added some comments, turned off some debugging flags.


git-svn-id: svn://10.0.0.236/trunk@30373 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 04:51:54 +00:00
endico%mozilla.org
07a604565a fix link to lxr source
git-svn-id: svn://10.0.0.236/trunk@30372 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 04:42:17 +00:00
waterson%netscape.com
f3c6ca4521 Add resources dir to build.
git-svn-id: svn://10.0.0.236/trunk@30371 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 04:41:38 +00:00
waterson%netscape.com
ac7e03313c Initial revision.
git-svn-id: svn://10.0.0.236/trunk@30370 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 04:41:20 +00:00
waterson%netscape.com
97936d6139 Added profile/resources.
git-svn-id: svn://10.0.0.236/trunk@30369 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 04:38:45 +00:00
bienvenu%netscape.com
ca4e949643 fix ref counting problem with mListeners
git-svn-id: svn://10.0.0.236/trunk@30368 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 04:26:41 +00:00
buster%netscape.com
9a004fa0f0 1. block transformation infrastructure is now in place. We can go ahead and implement interesting
features like set paragraph style, set list type, indent, etc.  I'm sure there's holes in my
implementation that these high level features will make obvious.

2. I've factored a lot of utility methods from several modules into nsEditor as public static methods.
This makes them easily accessable to all, and will help Joe and I remove redundant methods.

3. I changed the HTML tags to lower case, and made all string compares case-insensitive.  No, this
isn't quite the right thing to do, but we don't have atoms from layout yet.  The Right Thing is for us
to reuse those atoms.


git-svn-id: svn://10.0.0.236/trunk@30367 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 04:05:19 +00:00
briano%netscape.com
79a06899b6 Minor cleanup, and got rid of a completely pointless chunk of code.
git-svn-id: svn://10.0.0.236/trunk@30366 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 04:00:55 +00:00
dcone%netscape.com
48dea0e87e added USE_STRING2 define. It is commented out at the moment for use in string compilation.
git-svn-id: svn://10.0.0.236/trunk@30364 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:51:18 +00:00
sspitzer%netscape.com
01953b47d3 fix my own build bustage
git-svn-id: svn://10.0.0.236/trunk@30363 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:47:44 +00:00
hangas%netscape.com
821d6f7250 sspitzer: changes to build news on the mac
git-svn-id: svn://10.0.0.236/trunk@30362 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:42:21 +00:00
hangas%netscape.com
40cbc06c59 sspitzer: stop hiding these virtual methods (thanks mac compiler!)
git-svn-id: svn://10.0.0.236/trunk@30361 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:41:12 +00:00
hangas%netscape.com
9c7c1554d9 back off on the PRTime stuff for now
git-svn-id: svn://10.0.0.236/trunk@30360 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:39:51 +00:00
hangas%netscape.com
85706b3d33 sspitzer: stop hiding these virtual methods. (thanks mac compiler!)
git-svn-id: svn://10.0.0.236/trunk@30359 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:38:18 +00:00
waterson%netscape.com
a88d7df9ee Obsolete.
git-svn-id: svn://10.0.0.236/trunk@30358 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:30:39 +00:00
waterson%netscape.com
dec74bbf9b Remove nsXULDataSource, which is obsolete.
git-svn-id: svn://10.0.0.236/trunk@30357 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:25:16 +00:00
waterson%netscape.com
b5958e3081 Added rdfpoll makefile to the build.
git-svn-id: svn://10.0.0.236/trunk@30356 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:19:16 +00:00
waterson%netscape.com
6b0de0fca2 Forgot to update MANIFEST, idiot.
git-svn-id: svn://10.0.0.236/trunk@30355 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:18:20 +00:00
waterson%netscape.com
f7251cb71a Forgot to update Makefile.in, idiot.
git-svn-id: svn://10.0.0.236/trunk@30354 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:18:03 +00:00
waterson%netscape.com
f7b97adfab Add rdfpoll test to the build.
git-svn-id: svn://10.0.0.236/trunk@30353 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:15:23 +00:00
waterson%netscape.com
388410e270 Juggled interfaces around: they each live in their own .idl file now, which affects headers.
git-svn-id: svn://10.0.0.236/trunk@30351 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:14:31 +00:00
waterson%netscape.com
921b0fe366 Use new RDFXML datasource APIs.
git-svn-id: svn://10.0.0.236/trunk@30350 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:14:06 +00:00
waterson%netscape.com
583c8bc426 Add resources directory to the build: it has its own makefile now.
git-svn-id: svn://10.0.0.236/trunk@30349 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:13:39 +00:00
waterson%netscape.com
9e5a43148f Add polling!
git-svn-id: svn://10.0.0.236/trunk@30348 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:12:54 +00:00
waterson%netscape.com
88ab47dfed Remove nsXULDataSource: it is obsolete. Refactor interfaces into individual idl files: need to install more .xpt's now.
git-svn-id: svn://10.0.0.236/trunk@30347 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:12:24 +00:00
waterson%netscape.com
16386ac75a Remove nsXULDataSource.cpp from the build: it's obsolete. Re-factor interfaces into individual .idl files.
git-svn-id: svn://10.0.0.236/trunk@30346 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:11:23 +00:00
waterson%netscape.com
d506a5f16d Bug 5853. Fix vanishing bookmark titles problem: need to re-query graph on update.
git-svn-id: svn://10.0.0.236/trunk@30345 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:10:25 +00:00
waterson%netscape.com
d51715beba Factor interfaces into individual .idl files.
git-svn-id: svn://10.0.0.236/trunk@30344 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:09:50 +00:00
waterson%netscape.com
44628a930b Factor interfaces into individual .idl files. Add purge support and re-load support to RDF/XML datasource.
git-svn-id: svn://10.0.0.236/trunk@30343 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:09:12 +00:00
waterson%netscape.com
98807d4d58 Factored interfaces into individual .idl files. Here's the fallout: now all the headers here are generated. nsRDFInterfaces.h #includes them all.
git-svn-id: svn://10.0.0.236/trunk@30342 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:08:42 +00:00
waterson%netscape.com
de0c26b014 Break up interfaces into individual .idl files; implies installation of individual .xpt's from rdf/build. Create rdf/resources/Makefile that installs everything in the resources directory.
git-svn-id: svn://10.0.0.236/trunk@30341 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 03:05:40 +00:00
waterson%netscape.com
cfc3b655d2 Initial revision.
git-svn-id: svn://10.0.0.236/trunk@30340 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:58:03 +00:00
alecf%netscape.com
51138c0616 add some command glue for bringing up the account manager and the prefs dialog
git-svn-id: svn://10.0.0.236/trunk@30338 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:48:42 +00:00
alecf%netscape.com
befe4bb077 remove unnecessary variable
git-svn-id: svn://10.0.0.236/trunk@30337 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:46:48 +00:00
alecf%netscape.com
8ab26b0bb4 some nsCOMPtr conversions
git-svn-id: svn://10.0.0.236/trunk@30336 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:45:49 +00:00
waterson%netscape.com
33c4ae75c9 Bug 5937. (Well, related to it.) Fixed a bug-waiting-to-happen-with-forms. Make sure we _get_ the resource before we try to release it.
git-svn-id: svn://10.0.0.236/trunk@30335 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:44:49 +00:00
alecf%netscape.com
0434201085 fix variables named "time" so as not to conflict with global system function time()
git-svn-id: svn://10.0.0.236/trunk@30334 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:44:07 +00:00
alecf%netscape.com
00e7d2def2 fix virtual destructor
git-svn-id: svn://10.0.0.236/trunk@30333 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:43:38 +00:00
alecf%netscape.com
9c22fa385f remove some impossible PR_ASSERTs
git-svn-id: svn://10.0.0.236/trunk@30332 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:43:23 +00:00
alecf%netscape.com
b684ea71c6 fix some unused variables, fix the signed/unsigned issue with total and total unread messages, and fix some variable shadowing
git-svn-id: svn://10.0.0.236/trunk@30331 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:42:12 +00:00
alecf%netscape.com
d846ece17c remove some stupid debugging printfs
git-svn-id: svn://10.0.0.236/trunk@30330 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:35:53 +00:00
alecf%netscape.com
c2538944fb name variables correctly so as not to conflict with system functions
git-svn-id: svn://10.0.0.236/trunk@30329 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:34:52 +00:00
alecf%netscape.com
a3ff9e4936 fix some NS_ADDREF things, and fix a local variable shadowing another variable
git-svn-id: svn://10.0.0.236/trunk@30328 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:33:35 +00:00
alecf%netscape.com
2d2802a821 update this interface
git-svn-id: svn://10.0.0.236/trunk@30327 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:30:46 +00:00
alecf%netscape.com
b6927625d4 fix signed/unsigned problem (because -1 is a magic value)
git-svn-id: svn://10.0.0.236/trunk@30326 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:30:24 +00:00
alecf%netscape.com
9b11da683d AddRef() -> NS_ADDREF and fix signed/unsigned problems
git-svn-id: svn://10.0.0.236/trunk@30325 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:29:00 +00:00
alecf%netscape.com
ed44ac0fc5 fix uninitialized variable problem
git-svn-id: svn://10.0.0.236/trunk@30324 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:27:35 +00:00
alecf%netscape.com
35f6917013 remove stupid debugging statements
git-svn-id: svn://10.0.0.236/trunk@30323 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:27:11 +00:00
alecf%netscape.com
9e08325330 remove unused variables
git-svn-id: svn://10.0.0.236/trunk@30322 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:26:41 +00:00
bienvenu%netscape.com
c8857972c3 initial entry into CVS, not currently used in build
git-svn-id: svn://10.0.0.236/trunk@30321 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:08:31 +00:00
mcafee%netscape.com
01928aa861 Adding changes for Solaris, commented-out so we don't break the current build.
git-svn-id: svn://10.0.0.236/trunk@30320 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:06:02 +00:00
bienvenu%netscape.com
1851869607 make Close not release db
git-svn-id: svn://10.0.0.236/trunk@30319 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 02:03:47 +00:00
mcafee%netscape.com
1f0973db5a Typo? Fixing Solaris bustage.
git-svn-id: svn://10.0.0.236/trunk@30318 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 01:59:07 +00:00
kipp%netscape.com
28f1155583 alloc IID
git-svn-id: svn://10.0.0.236/trunk@30317 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 01:59:01 +00:00
mcafee%netscape.com
577b03042b These files have been renamed with _asm_ to distinguish them from cpp files, this unconfuses gcc.
git-svn-id: svn://10.0.0.236/trunk@30316 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 01:57:35 +00:00
kipp%netscape.com
76ccb16ab5 alloc IID
git-svn-id: svn://10.0.0.236/trunk@30315 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 01:56:46 +00:00
mcafee%netscape.com
b004a8459f Renaming asm files to be different than cpp files so compiler doesn't get confused. xptcinvoke_sparc_solaris.s _. xptcinvoke_asm_sparc_solaris.s, xptcstubs_sparc_solaris.s -> xptcstubs_asm_sparc_solaris.s
git-svn-id: svn://10.0.0.236/trunk@30314 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 01:56:01 +00:00
sdagley%netscape.com
e0df321e0c Mailnews has to be built now, because the profile wizard stuff was put into the mailnews directory, and doesn't get exported unless you build mailnews. (Don't shoot the messenger).
git-svn-id: svn://10.0.0.236/trunk@30313 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 01:38:10 +00:00
waterson%netscape.com
cbfe02a446 Initial revision.
git-svn-id: svn://10.0.0.236/trunk@30312 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 01:15:01 +00:00
av%netscape.com
2a8067f921 Fixing bug #3605
git-svn-id: svn://10.0.0.236/trunk@30310 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 01:10:25 +00:00
mcmullen%netscape.com
d323435b9d Typo
git-svn-id: svn://10.0.0.236/trunk@30309 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 00:59:05 +00:00
rickg%netscape.com
01d2a451f2 more WIP for DOM/paste API's
git-svn-id: svn://10.0.0.236/trunk@30308 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 00:55:54 +00:00
waterson%netscape.com
b9a691086d Unclump interfaces into individual files.
git-svn-id: svn://10.0.0.236/trunk@30307 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 00:48:15 +00:00
hangas%netscape.com
f9d1919276 Export navigator.js for mac.
git-svn-id: svn://10.0.0.236/trunk@30306 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 00:48:04 +00:00
waterson%netscape.com
4634a52501 Unclumped interfaces into individual files.
git-svn-id: svn://10.0.0.236/trunk@30305 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 00:47:38 +00:00
nisheeth%netscape.com
84d9443f3f Fix for bug 5850:
1) Add a RemoveChild() method to nsIWebshell.
2) nsWebshell::Destroy() calls this method on its parent to remove itself from the parent's child list.
3) Call nsWebshell::Destroy() from nsHTMLFrameInnerFrame's detructor.


git-svn-id: svn://10.0.0.236/trunk@30304 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 00:23:51 +00:00
nisheeth%netscape.com
6cc6d8d9b0 Fix for bug 5850:
1) Add a RemoveChild() method to nsIWebshell.
2) nsWebshell::Destroy() calls this method on its parent to remove itself from the parent's child list.
3) Call nsWebshell::Destroy() from nsHTMLFrameInnerFrame's detructor.


git-svn-id: svn://10.0.0.236/trunk@30303 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 00:10:33 +00:00
ducarroz%netscape.com
e52e4fba1b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30302 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 00:04:48 +00:00
mscott%netscape.com
c88b3130e3 Changes for QA smoketest. Be noisy for release builds when getting new mail --> print out results of BIFF and report when get new mail is completed.
git-svn-id: svn://10.0.0.236/trunk@30301 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 00:02:23 +00:00
briano%netscape.com
7bbf35253d Automated update
git-svn-id: svn://10.0.0.236/trunk@30300 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 00:00:12 +00:00
ramiro%netscape.com
208fe079a6 It was breaking on redhat 6.0.
git-svn-id: svn://10.0.0.236/trunk@30299 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:56:33 +00:00
jband%netscape.com
ead131f9f2 don't copy libxpconnect.so components directory on platforms where xptcall is not supported
git-svn-id: svn://10.0.0.236/trunk@30298 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:54:13 +00:00
rickg%netscape.com
8d80cbcf98 temporarily unwind new comment handling -- I'll wait a week
git-svn-id: svn://10.0.0.236/trunk@30297 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:45:32 +00:00
ftang%netscape.com
76aba089a9 change description about platform specific section
git-svn-id: svn://10.0.0.236/trunk@30296 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:38:39 +00:00
hyatt%netscape.com
5bc525e44a Supporting nsIEventqueues.
git-svn-id: svn://10.0.0.236/trunk@30295 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:38:27 +00:00
hyatt%netscape.com
a47a826e85 Tweaks to get rid of controller stuff.
git-svn-id: svn://10.0.0.236/trunk@30294 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:38:03 +00:00
hyatt%netscape.com
efdf23946a Committing changes to allow instantiation of nsIEventQueues.
git-svn-id: svn://10.0.0.236/trunk@30293 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:37:01 +00:00
hyatt%netscape.com
0bed0ef1da Commit changes to support window.open and to switch over to nsIEventQueues.
git-svn-id: svn://10.0.0.236/trunk@30292 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:36:42 +00:00
hyatt%netscape.com
774fc5dd25 Committing changes to appcores to support window.open.
git-svn-id: svn://10.0.0.236/trunk@30291 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:36:18 +00:00
hyatt%netscape.com
f0500e2390 Committing the changes to support the new nsIEventQueue interface and
nested queues in the event queue service.


git-svn-id: svn://10.0.0.236/trunk@30290 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:35:47 +00:00
hyatt%netscape.com
e393d712bf Committing changes to support the new nsIEventQueue interface.
git-svn-id: svn://10.0.0.236/trunk@30289 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:35:25 +00:00
hyatt%netscape.com
40fc89740d Committing Mac Project file for new event queues.
git-svn-id: svn://10.0.0.236/trunk@30288 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:34:58 +00:00
jefft%netscape.com
045ba83e91 uncommented out check for inbox folder name
git-svn-id: svn://10.0.0.236/trunk@30287 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:34:42 +00:00
hyatt%netscape.com
25805d78fb Switching from PLEventQueues to nsIEventQueues.
git-svn-id: svn://10.0.0.236/trunk@30286 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:34:41 +00:00
hyatt%netscape.com
0942f97448 Changes to the APIS for webshellcontainers.
git-svn-id: svn://10.0.0.236/trunk@30285 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:34:10 +00:00
hyatt%netscape.com
469383f4dd Changes to the APIS for webshellcontainer.
git-svn-id: svn://10.0.0.236/trunk@30284 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:33:55 +00:00
hyatt%netscape.com
6915601190 Changes to support different methods on the webshellcontainer interface.
git-svn-id: svn://10.0.0.236/trunk@30283 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:33:30 +00:00
hyatt%netscape.com
3c8e3170b8 Switching over to nsIEventQueues. Adding support for onunload, onabort, and
onerror.  Adding support for event capturing through script.  Adding support
for robust error-checking in the chrome registry.


git-svn-id: svn://10.0.0.236/trunk@30282 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:32:25 +00:00
hyatt%netscape.com
4db58b6957 Switching over to nsIEventQueues instead of PLEventQueues.
git-svn-id: svn://10.0.0.236/trunk@30281 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:31:26 +00:00
hyatt%netscape.com
5317865813 Switching over to nsIEventQueues.
git-svn-id: svn://10.0.0.236/trunk@30280 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:31:07 +00:00
hyatt%netscape.com
4d68fdb7c7 Switching to nsIEventQueues and tweaking the AppCore createWindow function's args.
git-svn-id: svn://10.0.0.236/trunk@30279 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:29:53 +00:00
hyatt%netscape.com
fc6ce862af Switching to nsIEventQueues instead of PLEventQueues.
git-svn-id: svn://10.0.0.236/trunk@30278 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:29:28 +00:00
hyatt%netscape.com
7feb3ecad0 Changes to support window.open in AppRunner.
git-svn-id: svn://10.0.0.236/trunk@30277 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:29:06 +00:00
hyatt%netscape.com
cc32d3d331 Changes to support AppRunner's window.open
git-svn-id: svn://10.0.0.236/trunk@30276 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:27:57 +00:00
danm%netscape.com
b5025d58f4 PresShell given owning reference to its nsDocument and nsPresContext. Prevents early deletion of these objects in some cases. Part of bug 5844. a:kipp
git-svn-id: svn://10.0.0.236/trunk@30275 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:27:42 +00:00
danm%netscape.com
23b438d255 HandleEvent holds onto the view's ViewObserver for the life of the method. Prevents early deletion of the view in some cases. Part of bug 5844.
git-svn-id: svn://10.0.0.236/trunk@30274 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:23:35 +00:00
rickg%netscape.com
37807ad3de small mods to parser API's for DOM/paste
git-svn-id: svn://10.0.0.236/trunk@30273 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:20:28 +00:00
nhotta%netscape.com
3733e90f80 Changed SetDocumentCharset, synchronized with browser implementation.
git-svn-id: svn://10.0.0.236/trunk@30272 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:19:28 +00:00
rods%netscape.com
56768a4a76 Fixed it up for image support
git-svn-id: svn://10.0.0.236/trunk@30271 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 23:14:57 +00:00
ftang%netscape.com
6141fd9c22 add comment and NPL.
git-svn-id: svn://10.0.0.236/trunk@30270 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:57:03 +00:00
slamm%netscape.com
88bb10543c This Makefile is generated by configure.
git-svn-id: svn://10.0.0.236/trunk@30269 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:52:59 +00:00
locka%iol.ie
7049059c31 New control event sink
git-svn-id: svn://10.0.0.236/trunk@30268 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:52:40 +00:00
locka%iol.ie
e126a9175f Updates to test app
git-svn-id: svn://10.0.0.236/trunk@30267 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:51:34 +00:00
mscott%netscape.com
f02ec762a0 part of mailnews audit --> use nsCOMPtr.
part of mailnews audit --> Conversion to NS_WITH_SERVICE


git-svn-id: svn://10.0.0.236/trunk@30266 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:51:14 +00:00
ftang%netscape.com
bd8c02634c add comment and NPL. Change tis-620 to uppercase TIS-620
git-svn-id: svn://10.0.0.236/trunk@30265 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:49:05 +00:00
locka%iol.ie
67e3e777f7 Added first impl for loading script engine from an IStream
git-svn-id: svn://10.0.0.236/trunk@30264 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:48:41 +00:00
mscott%netscape.com
eafb5d6716 part of mailnews audit --> Conversion to NS_WITH_SERVICE
git-svn-id: svn://10.0.0.236/trunk@30263 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:48:37 +00:00
ftang%netscape.com
1c19886ef3 change tis-620 to upper case TIS-620
git-svn-id: svn://10.0.0.236/trunk@30262 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:47:49 +00:00
dougt%netscape.com
2b9ec29607 Removing nsProxyEvent from xpcom. It will be shortly replaced with a
new and improved version.


git-svn-id: svn://10.0.0.236/trunk@30261 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:47:45 +00:00
ftang%netscape.com
6ea5f2b322 add comment and NPL
git-svn-id: svn://10.0.0.236/trunk@30260 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:45:57 +00:00
locka%iol.ie
72b1c2f3ec First impl of view source and NewWindow2 (thanks Neoplanet!)
Changes to IOleCommandTarget


git-svn-id: svn://10.0.0.236/trunk@30259 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:45:22 +00:00
rods%netscape.com
893617ed6e Changed ref counting, removed the kiknown for ref counting
reworked and reformated the code.


git-svn-id: svn://10.0.0.236/trunk@30258 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:44:21 +00:00
rods%netscape.com
1d863eb186 Removed the factory class that was unecessary, added some error checking
made fixes for changes to ienumfe


git-svn-id: svn://10.0.0.236/trunk@30257 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:44:16 +00:00
mscott%netscape.com
65a2249ee1 part of mailnews audit --> use nsCOMPtr.
part of mailnews audit --> Conversion to NS_WITH_SERVICE


git-svn-id: svn://10.0.0.236/trunk@30256 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:43:09 +00:00
matt%netscape.com
c5341d5a23 Adding navigator.js file to makefiles
git-svn-id: svn://10.0.0.236/trunk@30255 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:42:51 +00:00
dougt%netscape.com
a5599da8a3 Removing nsProxyEvent from xpcom. It will be shortly replaced with a
new and improved version


git-svn-id: svn://10.0.0.236/trunk@30254 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:42:22 +00:00
matt%netscape.com
79241d73b5 Adding navigator.js file to clean navigator.xul up
git-svn-id: svn://10.0.0.236/trunk@30253 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:42:06 +00:00
matt%netscape.com
b63bdd437c Adding navigator.js file to have js put into
git-svn-id: svn://10.0.0.236/trunk@30252 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:40:48 +00:00
rods%netscape.com
242187a752 Initial check in
git-svn-id: svn://10.0.0.236/trunk@30251 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:40:30 +00:00
rods%netscape.com
d840835e4d Initial checkin
git-svn-id: svn://10.0.0.236/trunk@30250 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:40:20 +00:00
rods%netscape.com
79c398e7ca Commented out some debug statements and commented out the SetFocus on mouse down event
git-svn-id: svn://10.0.0.236/trunk@30249 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:38:45 +00:00
rods%netscape.com
e5f5bb191d Commented out debug print statements
git-svn-id: svn://10.0.0.236/trunk@30248 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:37:57 +00:00
rods%netscape.com
e3579a5488 Added (uncommented) nsIFileListTransferable
git-svn-id: svn://10.0.0.236/trunk@30247 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:36:40 +00:00
putterman%netscape.com
8c3264f2c9 use nsIDBMessage
git-svn-id: svn://10.0.0.236/trunk@30246 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:35:55 +00:00
rods%netscape.com
3087bddfdd Added kDropFilesMime
git-svn-id: svn://10.0.0.236/trunk@30245 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:35:51 +00:00
putterman%netscape.com
544f964c05 use nsCOMPtr and nsIDBMessage.
git-svn-id: svn://10.0.0.236/trunk@30244 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:35:41 +00:00
rods%netscape.com
88db6ed19a Initial checkin
git-svn-id: svn://10.0.0.236/trunk@30243 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:34:56 +00:00
putterman%netscape.com
cb06dc367b use nsCOMPtr's.
git-svn-id: svn://10.0.0.236/trunk@30242 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:34:35 +00:00
putterman%netscape.com
d84f8dc404 Use nsCOMPtr's.
git-svn-id: svn://10.0.0.236/trunk@30241 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:34:11 +00:00
putterman%netscape.com
e4e740d096 Add nsIDBMessage interface and remove GetPath from nsIImapFolder.
git-svn-id: svn://10.0.0.236/trunk@30240 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:33:40 +00:00
alecf%netscape.com
e743495d15 back out my warning fix (proper fix on the way)
git-svn-id: svn://10.0.0.236/trunk@30239 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:33:10 +00:00
ftang%netscape.com
b19b3a5da4 move to the 2nd implementation. Remove the first one
git-svn-id: svn://10.0.0.236/trunk@30238 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:32:06 +00:00
nhotta%netscape.com
079f1d644a Fix memory leaks.
git-svn-id: svn://10.0.0.236/trunk@30237 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:28:17 +00:00
rods%netscape.com
9eafc7452e Added RemovedDataFlavor
git-svn-id: svn://10.0.0.236/trunk@30236 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:27:40 +00:00
rods%netscape.com
29cf84b9d2 Added RemovedDataFlavor and some error checking
git-svn-id: svn://10.0.0.236/trunk@30235 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:27:35 +00:00
ftang%netscape.com
233bb7519c fix virtual destroctor problem
git-svn-id: svn://10.0.0.236/trunk@30234 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:27:06 +00:00
rods%netscape.com
15dda55d9b Added nsIFileListTransferable CID
git-svn-id: svn://10.0.0.236/trunk@30233 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:22:31 +00:00
ftang%netscape.com
d4f95b116c change the makefile to install properties file to the right place
git-svn-id: svn://10.0.0.236/trunk@30232 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:22:02 +00:00
mscott%netscape.com
046bf08adf part of mailnews audit --> use nsCOMPtr.
part of mailnews audit --> Conversion to NS_WITH_SERVICE


git-svn-id: svn://10.0.0.236/trunk@30231 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:21:48 +00:00
ftang%netscape.com
a01776fcaf move the NS_IMPL_IDS to nsCharestAlias.cpp add the real implementation for nsWinCharset.cpp
git-svn-id: svn://10.0.0.236/trunk@30230 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:21:09 +00:00
ftang%netscape.com
2e05cf1b63 change mapping for 1252 and 1254
git-svn-id: svn://10.0.0.236/trunk@30229 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:19:02 +00:00
jdunn%netscape.com
50a231d8d8 remove the -lIDL from the EX_LIBS line. It is included with $(LIBIDL_LIBS)
correctly.  HP chokes on the -lIDL since there is no preceding -L<path to libIDL.a>


git-svn-id: svn://10.0.0.236/trunk@30228 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:16:15 +00:00
ducarroz%netscape.com
1df1988ee5 replace unique by s_unique to avoid conflict error with std::unique
git-svn-id: svn://10.0.0.236/trunk@30227 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:09:31 +00:00
wtc%netscape.com
91e52a4cea Create 10 server threads by default.
git-svn-id: svn://10.0.0.236/trunk@30226 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:06:00 +00:00
kin%netscape.com
247bc45d35 Renamed NS_TEXTSERVICE_CID to NS_SPELLCHECKER_CID.
git-svn-id: svn://10.0.0.236/trunk@30225 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:03:32 +00:00
kin%netscape.com
e6a5300568 Initial checkin of file.
git-svn-id: svn://10.0.0.236/trunk@30224 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 21:54:11 +00:00
sspitzer%netscape.com
a130f09c4b whoops, didn't mean to check this in
git-svn-id: svn://10.0.0.236/trunk@30223 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 21:53:17 +00:00
wtc%netscape.com
e593d30de0 Added curly braces around nested if's to achieve the if-else association
suggested by the identation.  Thanks to Dorin-Ioan Marinca <dim@csti.fr>
for reporting the problem and Bert Driehuis
<bert_driehuis@nl.compuware.com> for suggesting the fix.


git-svn-id: svn://10.0.0.236/trunk@30222 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 21:53:10 +00:00
sspitzer%netscape.com
2f90d14705 remove warnings. stop using sscanf. stop hardcoding news://news.mozilla.org
as our server uri.


git-svn-id: svn://10.0.0.236/trunk@30221 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 21:43:28 +00:00
alecf%netscape.com
e799a2f0c5 massive cleanup of the message factory - make sure to delete objects when the QueryInterface fails
and fix the message factory constructor since we no longer hold onto the service manager


git-svn-id: svn://10.0.0.236/trunk@30220 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 21:39:54 +00:00
karnaze%netscape.com
f6d61718e4 bug 3109 - nsFieldSetFrame::SetInitialChildList can deal with legend not being first frame in list
git-svn-id: svn://10.0.0.236/trunk@30219 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 21:35:05 +00:00
kipp%netscape.com
df30a0c42d alloc iids
git-svn-id: svn://10.0.0.236/trunk@30218 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 21:31:48 +00:00
sspitzer%netscape.com
d43c1b784b comment for clarity
git-svn-id: svn://10.0.0.236/trunk@30217 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 21:26:28 +00:00
ftang%netscape.com
9ee03491c8 make mCharset private
git-svn-id: svn://10.0.0.236/trunk@30216 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 21:09:08 +00:00
alecf%netscape.com
191ca8b97d fix some warnings about initializing variables in constructors
git-svn-id: svn://10.0.0.236/trunk@30215 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 21:09:03 +00:00
mscott%netscape.com
210fc8d018 part of mailnews audit --> Conversion to NS_WITH_SERVICE
git-svn-id: svn://10.0.0.236/trunk@30214 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 21:05:30 +00:00
ftang%netscape.com
500ec131a7 check in the real implementation which will read the mapping from a property file....
git-svn-id: svn://10.0.0.236/trunk@30213 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 21:04:12 +00:00
mcmullen%netscape.com
5c44a9aa9c Try that again.
git-svn-id: svn://10.0.0.236/trunk@30212 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 21:02:35 +00:00
mcmullen%netscape.com
2e3dd5fc59 Missed this file, too.
git-svn-id: svn://10.0.0.236/trunk@30211 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:59:53 +00:00
slamm%netscape.com
9b45189475 Fix shift error on Solaris.
git-svn-id: svn://10.0.0.236/trunk@30210 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:57:47 +00:00
alecf%netscape.com
ee8eafa46e #if 0 out some unused code
git-svn-id: svn://10.0.0.236/trunk@30209 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:56:40 +00:00
vidur%netscape.com
ea579482e4 new IIDs for nsIDOMNSRange, nsIDOMOption, nsIJSNativeInitializer, nsHTMLOptionElement_CID and nsISelectElement
git-svn-id: svn://10.0.0.236/trunk@30208 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:55:46 +00:00
mcmullen%netscape.com
4996eb7189 Missed this file, too.
git-svn-id: svn://10.0.0.236/trunk@30207 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:55:15 +00:00
mscott%netscape.com
e9d198e495 part of mailnews audit --> Conversion to NS_WITH_SERVICE
git-svn-id: svn://10.0.0.236/trunk@30206 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:54:35 +00:00
vidur%netscape.com
8b5b1ef4d9 Added HTMLOptionElement factory registration.
git-svn-id: svn://10.0.0.236/trunk@30205 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:54:26 +00:00
vidur%netscape.com
2a6b6dd584 Fixed non-ANSII compliant code.
git-svn-id: svn://10.0.0.236/trunk@30204 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:53:44 +00:00
vidur%netscape.com
7251e24c58 Added nsISelectElement interface. Added support for nsIJSNativeInitializer interface for images and options. Fixed SELECT and OPTION relationship. Added support for the Option constructor.
git-svn-id: svn://10.0.0.236/trunk@30203 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:53:26 +00:00
alecf%netscape.com
febd8c2e7f allow nscore.h to be included by C source files by not including nsDebug.h
git-svn-id: svn://10.0.0.236/trunk@30202 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:52:58 +00:00
slamm%netscape.com
6cafd5c518 Fix client.mk's webconfig target. Prefill the form.
git-svn-id: svn://10.0.0.236/trunk@30201 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:52:53 +00:00
vidur%netscape.com
17377a2cdf Added option to HTMLAtoms
git-svn-id: svn://10.0.0.236/trunk@30200 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:52:26 +00:00
alecf%netscape.com
1c51da9f1a initialize some variables in constructor declaration rather than the constructor itself
git-svn-id: svn://10.0.0.236/trunk@30199 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:52:05 +00:00
vidur%netscape.com
178501cc8f Added Option constructor support to factory.
git-svn-id: svn://10.0.0.236/trunk@30198 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:52:03 +00:00
vidur%netscape.com
d13be20ae5 Bug fix from Citec for clearing out parameter when an attribute doesn't exist
git-svn-id: svn://10.0.0.236/trunk@30197 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:51:42 +00:00
mscott%netscape.com
12ce9170bf part of mailnews audit --> Conversion to NS_WITH_SERVICE
part of mailnews audit --> use nsCOMPtr.


git-svn-id: svn://10.0.0.236/trunk@30196 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:51:30 +00:00
vidur%netscape.com
0fd5acf485 Added nsIContent implementation macro with SetParent defined locally
git-svn-id: svn://10.0.0.236/trunk@30195 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:50:43 +00:00
alecf%netscape.com
b8f6a37ee1 fix virtual constructor problem
git-svn-id: svn://10.0.0.236/trunk@30194 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:50:24 +00:00
mcmullen%netscape.com
474772206a Missed this file (with nsIDOMProfileCore.h added to export list).
git-svn-id: svn://10.0.0.236/trunk@30193 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:49:29 +00:00
alecf%netscape.com
008b12c125 fix possible uninitialized variable
git-svn-id: svn://10.0.0.236/trunk@30192 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:49:20 +00:00
vidur%netscape.com
8339b3e79f Added use of the nsIJSNativeInitializer interface in constructors. Work in progress for unknown keyword.
git-svn-id: svn://10.0.0.236/trunk@30191 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:48:50 +00:00
vidur%netscape.com
9376bec6f4 Added Option constructor and nsIJSNativeIntializer.h interface. DOM glue code now uses the nsIJSNativeIntializer interface to initialize newly constructed instances.
git-svn-id: svn://10.0.0.236/trunk@30190 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:48:16 +00:00
vidur%netscape.com
fdd75c6ce2 Added Option constructor and resultant nsIDOMOption interface
git-svn-id: svn://10.0.0.236/trunk@30189 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:47:00 +00:00
nhotta%netscape.com
1fa57b9e17 Change to use nsIMacLocale getting script ID of locale.
git-svn-id: svn://10.0.0.236/trunk@30188 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:42:58 +00:00
putterman%netscape.com
dd3e15deaa change DEBUG to DEBUG_rhp
git-svn-id: svn://10.0.0.236/trunk@30187 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:37:35 +00:00
mscott%netscape.com
0e78dc954a part of mailnews audit --> Conversion to NS_WITH_SERVICE
part of mailnews audit --> use nsCOMPtr.


git-svn-id: svn://10.0.0.236/trunk@30186 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:36:34 +00:00
mscott%netscape.com
a50c20ad41 part of mailnews audit --> use nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@30185 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:34:31 +00:00
mscott%netscape.com
c17969cdf8 part of mailnews audit --> use nsCOMPtr.
part of mailnews audit --> Conversion to NS_WITH_SERVICE


git-svn-id: svn://10.0.0.236/trunk@30184 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:33:07 +00:00
ftang%netscape.com
d25366e1c8 add nsURLProperties.cpp
git-svn-id: svn://10.0.0.236/trunk@30183 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:31:31 +00:00
briano%netscape.com
7b049f2672 Automated update
git-svn-id: svn://10.0.0.236/trunk@30182 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:29:43 +00:00
alecf%netscape.com
ce4347de11 add a side effect warning that bit me hard during M6
git-svn-id: svn://10.0.0.236/trunk@30181 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:28:24 +00:00
ftang%netscape.com
824d32ceaa add 2nd implementation and fix breakage
git-svn-id: svn://10.0.0.236/trunk@30180 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:25:35 +00:00
alecf%netscape.com
68363f8ad6 add a whole bunch of new gcc/g++ warnings, and fix long long complaint with -pedantic
git-svn-id: svn://10.0.0.236/trunk@30179 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:24:19 +00:00
mcafee%netscape.com
7aa545d052 Forgot one whitespace problem.
git-svn-id: svn://10.0.0.236/trunk@30178 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:22:24 +00:00
ftang%netscape.com
acecffbcf4 change nsIElementObserver and nsCharsetObserver per harish request. We have not build w/ these three file yet.
git-svn-id: svn://10.0.0.236/trunk@30177 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:20:52 +00:00
mcafee%netscape.com
53bff52902 This file got checked in ? double-spaced.
git-svn-id: svn://10.0.0.236/trunk@30176 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:20:50 +00:00
ftang%netscape.com
b374050eec add wincharset.properties to install and clobber
git-svn-id: svn://10.0.0.236/trunk@30175 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:10:54 +00:00
rods%netscape.com
3bf04d4cd9 Added nsIDragSession.h
git-svn-id: svn://10.0.0.236/trunk@30174 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:07:30 +00:00
jband%netscape.com
ef7c96ff53 change to make xpidl [shared] cause a const qualifier to be emitted and wstring to map to PRUnichar rather than PRUint16
git-svn-id: svn://10.0.0.236/trunk@30173 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:03:43 +00:00
jband%netscape.com
70badb3169 adjust for xpidl [shared] cuasing a const qualifier to be emitted and wstring mapping to PRUnichar rather than PRUint16
git-svn-id: svn://10.0.0.236/trunk@30172 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:02:47 +00:00
waterson%netscape.com
7039297ad8 Added rules.mk. Whoops.
git-svn-id: svn://10.0.0.236/trunk@30171 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:02:22 +00:00
ftang%netscape.com
70dca6cd03 better error handling in append method
git-svn-id: svn://10.0.0.236/trunk@30170 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:01:55 +00:00
ducarroz%netscape.com
f10efc00e7 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30169 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 20:00:38 +00:00
slamm%netscape.com
adec14de8e Fix webconfig target.
git-svn-id: svn://10.0.0.236/trunk@30168 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:54:24 +00:00
ftang%netscape.com
9e14ae72b5 add charsetalias.properties maccharset.properties to the make alias list
git-svn-id: svn://10.0.0.236/trunk@30167 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:51:10 +00:00
ftang%netscape.com
863504b375 add nsURLProperties.cpp
git-svn-id: svn://10.0.0.236/trunk@30166 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:45:54 +00:00
waterson%netscape.com
1f2f9e3e0b Initial revision.
git-svn-id: svn://10.0.0.236/trunk@30165 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:42:02 +00:00
ftang%netscape.com
97550d344f fix non ASCII form posting for URL encoded enctype. reviewed by karnaze
git-svn-id: svn://10.0.0.236/trunk@30164 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:41:41 +00:00
mcmullen%netscape.com
1e656b6d41 So much for that last touchup between building and committing...
git-svn-id: svn://10.0.0.236/trunk@30163 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:39:15 +00:00
mcmullen%netscape.com
7c346f9935 Checking in profile wizard on behalf of gayatrib and racham.
git-svn-id: svn://10.0.0.236/trunk@30162 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:37:51 +00:00
ftang%netscape.com
48405f3d1a add nsURLProperties.cpp and charsetalias.properties
git-svn-id: svn://10.0.0.236/trunk@30161 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:36:23 +00:00
ftang%netscape.com
df43dd08fe add new files
git-svn-id: svn://10.0.0.236/trunk@30160 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:35:20 +00:00
rhp%netscape.com
c5c9c0d217 Changes for LINEBREAK
git-svn-id: svn://10.0.0.236/trunk@30156 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:34:25 +00:00
valeski%netscape.com
f69b2ce1cf changed us over to regular monitors (prmon.h) in lieu of cached monitors (prcmon.h) for performance increase. cached monitors can be 5 times slower than regular monitors.
git-svn-id: svn://10.0.0.236/trunk@30155 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:33:37 +00:00
rhp%netscape.com
2c9f8a03e0 Cleanup for debug output
git-svn-id: svn://10.0.0.236/trunk@30154 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:31:20 +00:00
mcmullen%netscape.com
e8570eee1b Checking in profile wizard on behalf of gayatrib and racham.
git-svn-id: svn://10.0.0.236/trunk@30153 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:29:52 +00:00
mcmullen%netscape.com
74b1a94b65 International files in a separate group.
git-svn-id: svn://10.0.0.236/trunk@30152 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:28:14 +00:00
mcmullen%netscape.com
123c863a81 Moved international projects into a separate routine. Made it print announcements at the end of each routine, to facilitate restarting build (using "most") after an error.
git-svn-id: svn://10.0.0.236/trunk@30151 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:21:00 +00:00
morse%netscape.com
6e337ff63f attempt to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@30150 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:20:44 +00:00
karnaze%netscape.com
871f0a7dd9 bug 3103 - resizing table based on height attribute now considers row spans of cells.
git-svn-id: svn://10.0.0.236/trunk@30149 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:15:56 +00:00
karnaze%netscape.com
5b5e147fdc new/revised regression bugs
git-svn-id: svn://10.0.0.236/trunk@30148 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:14:49 +00:00
mcafee%netscape.com
0d3c63b4aa Exporting nsIDragSession.h
git-svn-id: svn://10.0.0.236/trunk@30147 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:14:17 +00:00
mcmullen%netscape.com
66296c0260 Adding default preference javascript files to the macintosh build. Also, fixing a line termination bug (#5508)
git-svn-id: svn://10.0.0.236/trunk@30146 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:12:37 +00:00
mcmullen%netscape.com
a5c98aa5e2 Fix double-escaping problem (#4184)
git-svn-id: svn://10.0.0.236/trunk@30145 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:11:31 +00:00
mcmullen%netscape.com
44558b54ca Adding default preference javascript files to the macintosh build.
git-svn-id: svn://10.0.0.236/trunk@30144 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:08:59 +00:00
waterson%netscape.com
55b5a63d87 Added rdf/resources/Makefile.
git-svn-id: svn://10.0.0.236/trunk@30143 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:59:21 +00:00
waterson%netscape.com
92647c4fae Fixed install directive.
git-svn-id: svn://10.0.0.236/trunk@30142 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:58:55 +00:00
waterson%netscape.com
df8475a8a1 Initial revision.
git-svn-id: svn://10.0.0.236/trunk@30141 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:58:43 +00:00
ducarroz%netscape.com
3903eb0269 add build instruction for mime/cthandlers/vcard
git-svn-id: svn://10.0.0.236/trunk@30140 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:58:04 +00:00
valeski%netscape.com
4ffb781b55 changed non-existant xp_win to win32
git-svn-id: svn://10.0.0.236/trunk@30139 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:53:44 +00:00
valeski%netscape.com
02f79aa87d removed prcmon from #include list
git-svn-id: svn://10.0.0.236/trunk@30138 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:52:38 +00:00
jdunn%netscape.com
38deab9856 Adding newline to end of file. HP chokes with out a \n at the end
git-svn-id: svn://10.0.0.236/trunk@30137 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:52:12 +00:00
jdunn%netscape.com
3f1515ea2d Adding a newline at end of file. HP compiler chokes if there is no \n
git-svn-id: svn://10.0.0.236/trunk@30136 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:51:29 +00:00
valeski%netscape.com
cdde4fe348 Fixed windows builds. changed #ifdef'd #included <windows.h> from XP_PC/XP_WIN to WIN32. There is not a XP_WIN macro.
git-svn-id: svn://10.0.0.236/trunk@30135 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:50:59 +00:00
dp%netscape.com
bbcaf8f995 XPCOM: Addref() and Release() definition fixed.
git-svn-id: svn://10.0.0.236/trunk@30134 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:45:07 +00:00
mscott%netscape.com
efa8a6beaa part of mailnews audit --> Conversion to NS_WITH_SERVICE
git-svn-id: svn://10.0.0.236/trunk@30133 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:41:02 +00:00
dp%netscape.com
f626086d60 XPCOM: Addref() and Release() usage fixed.
git-svn-id: svn://10.0.0.236/trunk@30132 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:38:21 +00:00
waterson%netscape.com
987c371ee4 Initial revision.
git-svn-id: svn://10.0.0.236/trunk@30131 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:27:31 +00:00
ducarroz%netscape.com
c981e185ad Adapt for Mac build
git-svn-id: svn://10.0.0.236/trunk@30130 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:22:46 +00:00
ducarroz%netscape.com
6aee998d72 #undef StrAllocCopy to avoid redefinition conflict on Mac, Replace XP_MEMCPY by nsCRT:memcpy
git-svn-id: svn://10.0.0.236/trunk@30129 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:21:59 +00:00
mcafee%netscape.com
8918a5dfad Tab error in Makefile.
git-svn-id: svn://10.0.0.236/trunk@30128 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:20:35 +00:00
ducarroz%netscape.com
32582f03c9 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30127 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:19:30 +00:00
jefft%netscape.com
91fe9f738e making selecting message/folder within a folder works; extract imap msg incoming server from url spec
git-svn-id: svn://10.0.0.236/trunk@30126 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:17:33 +00:00
jefft%netscape.com
6b86064fc5 removed SetServer(); imap msg incoming server will be extract out from the url spec
git-svn-id: svn://10.0.0.236/trunk@30125 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:14:09 +00:00
pinkerton%netscape.com
21b01f2c32 exporting nsIDragSession.h
git-svn-id: svn://10.0.0.236/trunk@30124 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:14:03 +00:00
ducarroz%netscape.com
e062f31f7e files check in in wrong directory!
git-svn-id: svn://10.0.0.236/trunk@30123 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:12:21 +00:00
pinkerton%netscape.com
ff8c671019 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30122 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:10:27 +00:00
morse%netscape.com
f046973003 add ability to change wallet password
git-svn-id: svn://10.0.0.236/trunk@30121 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:07:32 +00:00
ducarroz%netscape.com
6ac6d59199 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@30120 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 18:03:53 +00:00
morse%netscape.com
71c80a8f01 add ability to change password
git-svn-id: svn://10.0.0.236/trunk@30119 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 17:58:20 +00:00
mscott%netscape.com
c1295cebc7 part of mailnews audit --> Conversion to NS_WITH_SERVICE
git-svn-id: svn://10.0.0.236/trunk@30118 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 17:55:40 +00:00
morse%netscape.com
1f02eec79b use properties file for i18n
git-svn-id: svn://10.0.0.236/trunk@30117 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 17:55:01 +00:00
mscott%netscape.com
968e31cc92 part of mailnews audit --> Conversion to NS_WITH_SERVICE
quiet some noisy printfs which were printing out the message we were sending.


git-svn-id: svn://10.0.0.236/trunk@30116 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 17:53:59 +00:00
hshaw%netscape.com
e99bb24aa6 build nsByteBufferInputStream and nsThread for unix
git-svn-id: svn://10.0.0.236/trunk@30115 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 17:48:50 +00:00
hshaw%netscape.com
5d59cbef87 generate netwerk if directory exists
git-svn-id: svn://10.0.0.236/trunk@30114 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 17:45:58 +00:00
norris%netscape.com
6f9b237ae8 Handle the case where f is null in "new f".
git-svn-id: svn://10.0.0.236/trunk@30111 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 17:23:13 +00:00
sspitzer%netscape.com
5bc10591fc changes to get this to build with the -pedanic flag.
(when you pass --enable-pedantic to the compiler)


git-svn-id: svn://10.0.0.236/trunk@30110 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 17:21:33 +00:00
terry%mozilla.org
cd20bdfcd7 Patch by Pontus Lidman <pontus@mathcore.com> -- no longer requires the tclx_test.tcl file (which I had neglected to check in anyway).
git-svn-id: svn://10.0.0.236/trunk@30109 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 15:29:31 +00:00
rods%netscape.com
2916c7cc05 Removed D&D statically defined IIDs and replaced them with the static class GetIID()
git-svn-id: svn://10.0.0.236/trunk@30107 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 14:55:24 +00:00
rods%netscape.com
34e1dba245 Added Drag Over to act like "hover"
git-svn-id: svn://10.0.0.236/trunk@30106 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 14:44:51 +00:00
scc%netscape.com
c3c1b1ce2b change |CallQueryInterface| to handle situations where |nsISupports| is ambiguous.
git-svn-id: svn://10.0.0.236/trunk@30105 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 12:40:52 +00:00
mccabe%netscape.com
546751fb5d Fix to 5899; xpidl now looks for its target file where it's told to rather than eagerly plucking it out of the supplied includes directories.
Also removed an obsolete check against libIDL 0.6.2.


git-svn-id: svn://10.0.0.236/trunk@30104 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 10:52:20 +00:00
scc%netscape.com
1be50dc6d8 somebody is including this file inside an |extern "C"| declaration. That's bad. I can't find the culprit, but I can mark the important function |extern "C++"| to allow windows to compile.
git-svn-id: svn://10.0.0.236/trunk@30103 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 10:23:56 +00:00
scc%netscape.com
80c7c4981c oops
git-svn-id: svn://10.0.0.236/trunk@30102 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 09:51:04 +00:00
mccabe%netscape.com
04026d5bf8 Fix to 5415. Don't complain about duplicate iids when linking, if the duplicate iids are zero (representing unresolved interfaces.)
git-svn-id: svn://10.0.0.236/trunk@30101 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 09:47:10 +00:00
scc%netscape.com
8a9c9eb0d5 Added |CallQueryInterface|, a type-safe interface to |QueryInterface|
git-svn-id: svn://10.0.0.236/trunk@30100 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 09:44:27 +00:00
scc%netscape.com
c2578a9d5f added |null_nsCOMPtr()|, |CallQueryInterface()|, fixed comments; added |const| in several appropriate places
git-svn-id: svn://10.0.0.236/trunk@30099 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 09:37:35 +00:00
mccabe%netscape.com
2a30f214a2 Fix to 5898. xpidl now works like the rest of the compilers in the world, and understands -Ifoo as well as -I foo.
Thanks to Heikki Toivonen <heikki@citec.fi> for this suggestion.


git-svn-id: svn://10.0.0.236/trunk@30098 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 08:21:36 +00:00
jfrancis%netscape.com
cd95192e53 fixing problem with undo of join txn
git-svn-id: svn://10.0.0.236/trunk@30096 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 08:03:51 +00:00
jfrancis%netscape.com
cf6d856eef revamped join on deletion
git-svn-id: svn://10.0.0.236/trunk@30095 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 08:03:07 +00:00
mccabe%netscape.com
08d8615ea7 Check for consts > 0 before allocating record space for them. Fix to 5683, a malloc(0) bug; thanks to jlnance@inttek.com for catching this one.
git-svn-id: svn://10.0.0.236/trunk@30094 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 07:31:40 +00:00
mccabe%netscape.com
9159fbef9b Fix to 5301. Revert from using fd_copysign from the libmath emulation library to using the system copysign.
git-svn-id: svn://10.0.0.236/trunk@30093 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 07:12:18 +00:00
hshaw%netscape.com
11378c0a71 include prcmon.h for nsThread.h, until unix defines NS_MT_SUPPORTED for nsISupports.h
git-svn-id: svn://10.0.0.236/trunk@30092 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 07:11:31 +00:00
briano%netscape.com
3407289699 Automated update
git-svn-id: svn://10.0.0.236/trunk@30091 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 06:59:41 +00:00
ramiro%netscape.com
ad4bcd3233 Add support for USE_STRING2 - for toggling between nsString and nsString2.
git-svn-id: svn://10.0.0.236/trunk@30090 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 06:58:54 +00:00
ramiro%netscape.com
6d0d2a8452 Add quotes to avoid shell parsing errors.
git-svn-id: svn://10.0.0.236/trunk@30089 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 06:55:17 +00:00
rickg%netscape.com
31c900c01e fixed API mismatch
git-svn-id: svn://10.0.0.236/trunk@30088 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 06:48:45 +00:00
rickg%netscape.com
df58cedf1f update to nsString2 API
git-svn-id: svn://10.0.0.236/trunk@30087 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 06:38:37 +00:00
waterson%netscape.com
6f2f0bd31b Clean up includes.
git-svn-id: svn://10.0.0.236/trunk@30084 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 05:29:20 +00:00
waterson%netscape.com
7dfaddd3db Remove nsIRDFResourceFactory.h: it is obsolete.
git-svn-id: svn://10.0.0.236/trunk@30083 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 05:16:16 +00:00
rickg%netscape.com
5921db1b1d fixed nsString2 API mismatch
git-svn-id: svn://10.0.0.236/trunk@30082 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 05:09:48 +00:00
alecf%netscape.com
1085c66456 second attempt at a fix for #5792 - this time take into account platforms which cannot use "/" as a directory seperator
git-svn-id: svn://10.0.0.236/trunk@30080 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 05:03:04 +00:00
waterson%netscape.com
d57e5f4ade Don't rely on headers including stuff: be sure to include nsIRDFResource.h and nsIRDFService.h.
git-svn-id: svn://10.0.0.236/trunk@30079 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 05:01:24 +00:00
rickg%netscape.com
fd0be64d4f wrong API, sorry
git-svn-id: svn://10.0.0.236/trunk@30078 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 04:49:48 +00:00
rickg%netscape.com
804e566231 update for bug 5544
git-svn-id: svn://10.0.0.236/trunk@30077 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 04:25:20 +00:00
rickg%netscape.com
845245bb71 fixed bug 5611
git-svn-id: svn://10.0.0.236/trunk@30076 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 04:24:24 +00:00
rickg%netscape.com
fc7fad7024 fixed bug 5846
git-svn-id: svn://10.0.0.236/trunk@30075 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 04:23:12 +00:00
rickg%netscape.com
d9084b8e80 added DOM interfaces for paste
git-svn-id: svn://10.0.0.236/trunk@30074 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 04:22:31 +00:00
sspitzer%netscape.com
9e9b97b2a5 remove warning. use #if 0, not comments, to take out code that isn't ready yet
git-svn-id: svn://10.0.0.236/trunk@30073 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 04:20:33 +00:00
mcafee%netscape.com
6c82944588 Solaris needs a newline at the end of the file.
git-svn-id: svn://10.0.0.236/trunk@30072 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 04:09:20 +00:00
mcafee%netscape.com
81eac65a3a Ah, that ever elusive new line at the end of the file..
git-svn-id: svn://10.0.0.236/trunk@30071 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:56:54 +00:00
sspitzer%netscape.com
1ce8e2ed95 removed files: mozilla/mailnews/compose/src/nsMsgPost.cpp
git-svn-id: svn://10.0.0.236/trunk@30070 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:55:11 +00:00
waterson%netscape.com
9b10e4e55f Improve docs.
git-svn-id: svn://10.0.0.236/trunk@30069 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:54:56 +00:00
waterson%netscape.com
e07f7bbf43 Don't set record->typelibRecord until we know that we're actually indexifying the typelib in which the interface lives.
git-svn-id: svn://10.0.0.236/trunk@30068 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:45:55 +00:00
jband%netscape.com
8a2be521db force the tools for get created in the export phase to be used to build xpt files and cleanup otherwise makefiles
git-svn-id: svn://10.0.0.236/trunk@30067 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:43:14 +00:00
jband%netscape.com
cbedc6b4c8 fix casting warning and quiet useless runtime noise on success
git-svn-id: svn://10.0.0.236/trunk@30066 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:40:31 +00:00
jband%netscape.com
e9e1343e80 Support BSD OS and difference between gcc and egcs (thanks to Bert Driehui <bert_driehuis@nl.compuware.com>)
git-svn-id: svn://10.0.0.236/trunk@30065 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:38:05 +00:00
waterson%netscape.com
913f5616c2 Re-factored into individual interfaces.
git-svn-id: svn://10.0.0.236/trunk@30064 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:37:07 +00:00
jband%netscape.com
05c1be222d Fix comical copy/paste error (thanks to Bert Driehui <bert_driehuis@nl.compuware.com>)
git-svn-id: svn://10.0.0.236/trunk@30063 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:36:21 +00:00
jband%netscape.com
870ff7a296 updating status page
git-svn-id: svn://10.0.0.236/trunk@30062 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:34:45 +00:00
karnaze%netscape.com
7d38902d5f removed new lines in javascript string
git-svn-id: svn://10.0.0.236/trunk@30061 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:33:56 +00:00
karnaze%netscape.com
86e23d56fb prints out regression file name when generating initial data
git-svn-id: svn://10.0.0.236/trunk@30060 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:32:42 +00:00
waterson%netscape.com
46470523bb Bug 5679. Fix leak from XPConnect glue.
git-svn-id: svn://10.0.0.236/trunk@30059 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:32:12 +00:00
karnaze%netscape.com
375be2284d bug 5838 - right-to-left handling of col span at right edge
git-svn-id: svn://10.0.0.236/trunk@30058 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:31:07 +00:00
sspitzer%netscape.com
4f9d68357b fix build bustage on UNIX
git-svn-id: svn://10.0.0.236/trunk@30057 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:25:25 +00:00
mcafee%netscape.com
0b716f067c Solaris needs explicit cast. a,r=kevinmc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@30056 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:24:13 +00:00
sspitzer%netscape.com
f9dd9e9682 cvs ignorage
git-svn-id: svn://10.0.0.236/trunk@30054 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:18:01 +00:00
sspitzer%netscape.com
2f37d1b72e hook up the wiring so that when you click on news message in the threadpane,
right news url is run to load the correct message in the message pane


git-svn-id: svn://10.0.0.236/trunk@30053 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:16:24 +00:00
hshaw%netscape.com
f6a873c3b3 Add nsIByteBufferInputStream.h and nsIThread.h to export list
git-svn-id: svn://10.0.0.236/trunk@30052 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:15:41 +00:00
sspitzer%netscape.com
ff6cc68167 fixage for build bustage
git-svn-id: svn://10.0.0.236/trunk@30051 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:13:00 +00:00
sspitzer%netscape.com
fba62b182d use the NS_WITH_SERVICE macro
git-svn-id: svn://10.0.0.236/trunk@30049 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:04:03 +00:00
sspitzer%netscape.com
1c3bd0a60e extend the parser test to add two headers to a public newsgroup
git-svn-id: svn://10.0.0.236/trunk@30048 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:03:29 +00:00
sspitzer%netscape.com
f0c8e55e75 use NEWS_PORT instead of -1 as the default
git-svn-id: svn://10.0.0.236/trunk@30047 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:03:05 +00:00
sspitzer%netscape.com
e4dda86214 #define the lengths of the string constants, and use this instead of
PL_strlen()


git-svn-id: svn://10.0.0.236/trunk@30046 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:02:18 +00:00
sspitzer%netscape.com
d1a98f2c69 adding newline at end of file
git-svn-id: svn://10.0.0.236/trunk@30045 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 03:01:16 +00:00
sspitzer%netscape.com
f1aea86b0c use #define instead of doing PL_strlen
git-svn-id: svn://10.0.0.236/trunk@30044 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:59:05 +00:00
mcafee%netscape.com
02777faabc Adding verification URLs to Debug menu.
git-svn-id: svn://10.0.0.236/trunk@30043 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:58:15 +00:00
sspitzer%netscape.com
4803a79333 make the news factory handle news messages
git-svn-id: svn://10.0.0.236/trunk@30042 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:56:33 +00:00
sspitzer%netscape.com
d8f71f8fa6 use the NS_WITH_SERVICE macro
git-svn-id: svn://10.0.0.236/trunk@30041 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:55:59 +00:00
bienvenu%netscape.com
c947f043ad add FindRow api, fix lots of warnings, speed up msg threading
git-svn-id: svn://10.0.0.236/trunk@30040 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:55:30 +00:00
sspitzer%netscape.com
6c3a9eba35 exit on failure
git-svn-id: svn://10.0.0.236/trunk@30039 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:55:16 +00:00
sspitzer%netscape.com
40b647daee nsMsgPost is extinct
git-svn-id: svn://10.0.0.236/trunk@30038 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:54:57 +00:00
sspitzer%netscape.com
0b25076b60 nsMsgPost is extinct
git-svn-id: svn://10.0.0.236/trunk@30037 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:42:21 +00:00
sspitzer%netscape.com
503257ce51 MsgPost is extinct
git-svn-id: svn://10.0.0.236/trunk@30036 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:41:24 +00:00
sspitzer%netscape.com
e2777ecbfa more changes to get posting to a news server working
git-svn-id: svn://10.0.0.236/trunk@30034 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:38:20 +00:00
sspitzer%netscape.com
bcb8d64096 more changes to get nntpTest (and eventually news) working
git-svn-id: svn://10.0.0.236/trunk@30033 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:37:15 +00:00
sspitzer%netscape.com
793ae4f179 changes to get nntpTest (and eventually news) working
git-svn-id: svn://10.0.0.236/trunk@30032 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:35:32 +00:00
sspitzer%netscape.com
2e022cdcc7 these stub files are history.
git-svn-id: svn://10.0.0.236/trunk@30031 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:27:11 +00:00
sspitzer%netscape.com
bc4a7307ba removing libnntpTest.
adding functionality to nntpTest


git-svn-id: svn://10.0.0.236/trunk@30030 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:26:10 +00:00
sspitzer%netscape.com
27dd0a0f38 there is no libnntpTest.so anymore
git-svn-id: svn://10.0.0.236/trunk@30029 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:25:23 +00:00
pierre%netscape.com
0d0dac8be2 Fixed #2236 "Frame scrolling is broken". Appr chofmann for M5 branch.
git-svn-id: svn://10.0.0.236/trunk@30028 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 02:24:43 +00:00
hshaw%netscape.com
6c8eb16f9c wrap #include <windows.h> with #ifdef XP_WIN (for unix builds)
git-svn-id: svn://10.0.0.236/trunk@30023 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 00:31:40 +00:00
hshaw%netscape.com
cb4086f7a8 fix signature for nsGetFactory()
git-svn-id: svn://10.0.0.236/trunk@30022 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 00:21:42 +00:00
bryce-mozilla%nextbus.com
0719f79900 Add parameter "usebrowserinfo", to allow disabling the setting of OS and Platform
based on the brower the user makes the report from.  Realign text box for
narrower windows.  Remove Mozilla-specific default parameter.


git-svn-id: svn://10.0.0.236/trunk@30017 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 00:05:27 +00:00
bryce-mozilla%nextbus.com
438819cbd4 Create a summary report for "-All-" bugs. Default links on. Switch sense of
banner flag.  Add commented-out line to enable showing SQL line.


git-svn-id: svn://10.0.0.236/trunk@30016 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 00:01:57 +00:00
hshaw%netscape.com
1da81ce8d2 remove duplicate nsISocketTransportService.h reference
git-svn-id: svn://10.0.0.236/trunk@30015 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 23:53:18 +00:00
alecf%netscape.com
18197f6385 fix for #5792 - pass the URI, not the local file path to nsBuildLocalMessageURI, and add a helper function to do a hacky conversion from the local file path to the URI
a=chofmann


git-svn-id: svn://10.0.0.236/trunk@30012 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 23:52:12 +00:00
alecf%netscape.com
f27d6a0d15 fix for #5792 - fix move/copy message in message menu to use the new account manager datasource
git-svn-id: svn://10.0.0.236/trunk@30011 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 23:50:58 +00:00
mcmullen%netscape.com
5f7276e7bd Fix an error in the previous checkin.
git-svn-id: svn://10.0.0.236/trunk@30008 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 23:14:28 +00:00
kipp%netscape.com
bef679369b Made DestroySignal protected instead of private (as it should have been) so it builds on AIX
git-svn-id: svn://10.0.0.236/trunk@30004 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 23:10:30 +00:00
nisheeth%netscape.com
a4c948a4ab Fix for bug 5472. Approved by chofmann. Reviewed by Kipp.
git-svn-id: svn://10.0.0.236/trunk@30003 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 23:04:50 +00:00
tague%netscape.com
6b3b505007 Fixed bug #5527 (Editor is not able to accumulate successive Japanese input)
git-svn-id: svn://10.0.0.236/trunk@30002 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 22:57:48 +00:00
sfraser%netscape.com
7ec5fb9eec Memory leak fixes for bug 5870. r mjudge, a chofmann.
git-svn-id: svn://10.0.0.236/trunk@30001 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 22:26:07 +00:00
jfrancis%netscape.com
b4767a9319 fix for bug 5832; bad constant for nbsp value. rvd - floppy moose; appv - chofmann
git-svn-id: svn://10.0.0.236/trunk@30000 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 22:16:02 +00:00
mjudge%netscape.com
218c99b232 ok done Simon reviewed 5870. choffman approved for M5
git-svn-id: svn://10.0.0.236/trunk@29998 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 21:52:19 +00:00
ducarroz%netscape.com
93c809edd4 fix for #5855, A=chofmann.
delay Creation of mPath to avoid avoid to create a nsFileSpec without knowing the path. Propagate error returned by nsGetMailboxRoot() in nsLocalURI2Path().


git-svn-id: svn://10.0.0.236/trunk@29997 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 21:40:44 +00:00
ramiro%netscape.com
1d4021468b Comment out unused code that was breaking aix, dec and some others.
git-svn-id: svn://10.0.0.236/trunk@29996 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 21:36:18 +00:00
ramiro%netscape.com
a23d89f9b2 Part of fix for bugs 4445, 4768. Let the default rendering mode on unix
be "native" as it is on mac and win.


git-svn-id: svn://10.0.0.236/trunk@29995 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 21:32:15 +00:00
ramiro%netscape.com
ce703464bd Fix bugs 4445, 4768. Make form widgets work a little better. This includes:
1) Radio/Toggle button initial state properly set.
2) Radio/Toggle button toggling works as expected.
3) Form Buttons work/submit on the first click as expected.

The problem was that enter/leave events expected by the form controlling
frames were not properly emitted.  They were being emitted for the parent
widget and not the buttons.

I also had to add a pathetically lame hack to work around artificial
intelligence in the GtkToggleButton widget.  Because the gtk toggle widget
changes its state on button press, we are out of whack by one.

Finally, some minor cleanup to event debug code in nsWidget.


git-svn-id: svn://10.0.0.236/trunk@29994 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 21:29:28 +00:00
jj%netscape.com
41f30ca064 turned mailnews ON for Tinderbox
git-svn-id: svn://10.0.0.236/trunk@29991 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 21:15:59 +00:00
kipp%netscape.com
78b5db7c44 Fixed bug 5255 and removed some compiler warnings
git-svn-id: svn://10.0.0.236/trunk@29988 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:55:12 +00:00
kipp%netscape.com
ccceae02c3 Implement List method
git-svn-id: svn://10.0.0.236/trunk@29987 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:54:24 +00:00
kipp%netscape.com
31352557b2 Tweaked to handle updated line-height calculation code that will now return -1 sometimes
git-svn-id: svn://10.0.0.236/trunk@29986 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:54:11 +00:00
kipp%netscape.com
95141d3623 Renamed a method
git-svn-id: svn://10.0.0.236/trunk@29985 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:53:46 +00:00
kipp%netscape.com
311b473ea2 Fix bug 2058 and improve nav4 compatability by not making line-height normal == 1.0
git-svn-id: svn://10.0.0.236/trunk@29984 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:53:27 +00:00
kipp%netscape.com
5afeecb461 Removed a compiler warning
git-svn-id: svn://10.0.0.236/trunk@29983 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:51:30 +00:00
kipp%netscape.com
f1b4eedc99 Updated a comment
git-svn-id: svn://10.0.0.236/trunk@29982 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:51:16 +00:00
kipp%netscape.com
b41a1ca6aa Fixed bug 5375 - the conditions for avoiding combined area computations were wrong
git-svn-id: svn://10.0.0.236/trunk@29981 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:51:02 +00:00
kipp%netscape.com
055f51b63f Fix menubar bug to avoid dup menubars
git-svn-id: svn://10.0.0.236/trunk@29980 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:50:01 +00:00
kipp%netscape.com
d08132f8fa Added more null pointer checks to avoid crashes
git-svn-id: svn://10.0.0.236/trunk@29979 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:49:45 +00:00
kipp%netscape.com
8e63f404b8 Make hidden form elements invisible
git-svn-id: svn://10.0.0.236/trunk@29978 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:49:06 +00:00
kipp%netscape.com
587f736a3f Fix small bug in DrawRect and added a comment to help
git-svn-id: svn://10.0.0.236/trunk@29977 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:48:35 +00:00
mcmullen%netscape.com
41ee8ce9bd Check for a null path before calling stat() and friends (bug #5576). a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@29975 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:29:01 +00:00
mcmullen%netscape.com
a8403fe8d7 Bullet-proofing for bug #5576 (make sure profile directory is always initialized)
git-svn-id: svn://10.0.0.236/trunk@29974 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:27:44 +00:00
kostello%netscape.com
b095432a67 Small update to fix for bug #5525. Approval for checkin: chofmann.
git-svn-id: svn://10.0.0.236/trunk@29973 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:16:14 +00:00
evaughan%netscape.com
d822e92459 Fixed bug #5619. With Chris Hofmann's ok.
git-svn-id: svn://10.0.0.236/trunk@29971 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 19:04:16 +00:00
kostello%netscape.com
33ac6a7b25 Removed debug save code -- no longer relevant
git-svn-id: svn://10.0.0.236/trunk@29970 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 18:50:48 +00:00
jband%netscape.com
1cf5eaef29 ***NOT PART OF SEAMONKEY BUILD***. Updated status tracking doc.
git-svn-id: svn://10.0.0.236/trunk@29969 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 18:50:40 +00:00
kostello%netscape.com
99f54db9e8 Changed to match new API for the nsHTMLContentSinkStream
git-svn-id: svn://10.0.0.236/trunk@29968 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 18:49:59 +00:00
kostello%netscape.com
0b56937bd5 Changed:
nsI*Editor::OutputText(nsString& aOutputString);
nsI*Editor::OutputHTML(nsString& aOutputString);

These methods always returns back a Unicode version of whatever is in the content model. It is the
responsibility of the caller then to call whatever converter is required to convert to the appropriate
charset.

Added:

nsI*Editor::OutputText(nsIOutputStream* aOutputStream, nsString* aCharsetOverride = nsnull)
nsI*Editor::OutputHTML(nsIOutputStream* aOutputStream, nsString* aCharsetOverride = nsnull)

These methods output the the current content model to aOutputStream. The document is encoded using the
document defined charset or if the user passes in a non-null value for aCharsetOverride then this
encoding overrides the encoding used by the document.


git-svn-id: svn://10.0.0.236/trunk@29967 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 18:48:39 +00:00
kostello%netscape.com
831a177958 Added OutputText and OutputHTML that take in an nsIOutputStream.
git-svn-id: svn://10.0.0.236/trunk@29966 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 18:47:04 +00:00
kostello%netscape.com
95590fc7b3 Added GetContentsAsText and GetContentsAsHTML that take in a nsIOutputStream
as a parameter.


git-svn-id: svn://10.0.0.236/trunk@29965 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 18:44:54 +00:00
kostello%netscape.com
6ec275403f Moidifed to match the API change in nsHTMLContentSinkStream.
git-svn-id: svn://10.0.0.236/trunk@29964 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 18:42:53 +00:00
kostello%netscape.com
472d53575b Added support to encode the document as either a nsString or an nsIOutputStream.
In the case of the stream, the document is encoded using the document defined charset
or the user may override the charset.

Added constructors for creating a sink using a nsIOutputStream or an nsString.

Removed all HTML and TEXT encoding which relied on references to ostream. Using John McMullen's
platform independent streaming code in its place. :)


git-svn-id: svn://10.0.0.236/trunk@29963 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 18:41:23 +00:00
hshaw%netscape.com
6bff10b32e Add some comments
git-svn-id: svn://10.0.0.236/trunk@29962 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 18:11:50 +00:00
norris%netscape.com
054b00d9a6 Fix spelling, don't claim uniqueness.
git-svn-id: svn://10.0.0.236/trunk@29961 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 17:56:07 +00:00
norris%netscape.com
7769b3ecbe Make it purdy.
git-svn-id: svn://10.0.0.236/trunk@29960 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 17:55:21 +00:00
norris%netscape.com
20b0b666dc Add README with support for LXR.
git-svn-id: svn://10.0.0.236/trunk@29959 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 17:53:10 +00:00
hshaw%netscape.com
2aacce7506 List of makefiles for the netwerk directory
git-svn-id: svn://10.0.0.236/trunk@29958 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 16:37:03 +00:00
hshaw%netscape.com
6172fa439a Temporary script to generate netwerk unix Makefiles. Once we land, we'll integrate into allmakefiles.sh
git-svn-id: svn://10.0.0.236/trunk@29957 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 16:36:29 +00:00
kipp%netscape.com
2fc1f1138e Fixed bug #4309 - propogated handling of floating image frames to floating object frame code during CantRenderReplacedElemen to avoid assertion check in block code
git-svn-id: svn://10.0.0.236/trunk@29954 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 16:07:47 +00:00
warren%netscape.com
b93d812623 Changed include for nsStandardUrl.h
git-svn-id: svn://10.0.0.236/trunk@29953 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-02 08:46:08 +00:00
rickg%netscape.com
3d80de2210 fixed ABW in nsTagStack and updated to string2 API
git-svn-id: svn://10.0.0.236/trunk@29952 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-02 00:37:25 +00:00
grail%cafebabe.org
cf037dd9f7 Fixed breakage of the preference beans.
git-svn-id: svn://10.0.0.236/trunk@29951 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-02 00:15:05 +00:00
jfrancis%netscape.com
e1f400aecd fix for bug 5782 - check for null return when getting prev/next node is deletion rules; rvd floppy moose, appr chofmann
git-svn-id: svn://10.0.0.236/trunk@29950 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 19:37:50 +00:00
waterson%netscape.com
6ad4ff2140 Bug 4725. Use PRUnichar for bookmark titles. r=rjc,a=chofmann
git-svn-id: svn://10.0.0.236/trunk@29949 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 19:32:57 +00:00
bryce-mozilla%nextbus.com
f4c5cbffe8 Fix HTML syntax errors, validate with http://validator.w3.org . Show
on the the login name that will be used as the "reporter" (to more
completely represent the bug report, and to prevent people from forgetting
to switch logins when using another person's browser).


git-svn-id: svn://10.0.0.236/trunk@29948 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 18:43:58 +00:00
despotdaemon%netscape.com
31dee6ea14 Pseudo-automatic update of changes made by bryce-mozilla@nextbus.com.
git-svn-id: svn://10.0.0.236/trunk@29947 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 18:31:13 +00:00
sspitzer%netscape.com
f0bd8f6fc3 fix for #5839. problems on startup on windows nt, because
tree body in threadPane.xul is rooted at mailbox://Inbox, which
doesn't make sense in the new multiple account world.


git-svn-id: svn://10.0.0.236/trunk@29946 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 16:28:25 +00:00
sspitzer%netscape.com
53653c1324 rest of fix for pointing news demo to article on news.mozilla.org
git-svn-id: svn://10.0.0.236/trunk@29945 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 16:10:36 +00:00
sspitzer%netscape.com
11fbaeab1a fix for #5753. allow white space in the "mail.accountmanager.accounts" pref.
git-svn-id: svn://10.0.0.236/trunk@29944 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 15:47:21 +00:00
sspitzer%netscape.com
e014203723 point the demo news article to an article on news.mozilla.org. This way,
those on the outside can use it.  (also, remove some of the "."'s for
mailnewsqa.


git-svn-id: svn://10.0.0.236/trunk@29943 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 14:39:36 +00:00
jband%netscape.com
f2cf38d9ed ***NOT PART OF SEAMONKEY BUILD*** Updating status page to help track and coordinate platform specific code contributors to xptcall (needed for xpconnect)
git-svn-id: svn://10.0.0.236/trunk@29938 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 09:03:39 +00:00
jband%netscape.com
abbf3baee0 ***NOT PART OF SEAMONKEY BUILD*** Updating status page to help track and coordinate platform specific code contributors to xptcall (needed for xpconnect)
git-svn-id: svn://10.0.0.236/trunk@29937 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 08:23:36 +00:00
sspitzer%netscape.com
80b90d26d5 whoops. typo. I suck
git-svn-id: svn://10.0.0.236/trunk@29936 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 02:57:07 +00:00
sspitzer%netscape.com
ff2b167c7f cvs ignorage
git-svn-id: svn://10.0.0.236/trunk@29935 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 02:38:15 +00:00
ramiro%netscape.com
aaee58e586 Fix everything rule.
git-svn-id: svn://10.0.0.236/trunk@29934 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 02:34:44 +00:00
sspitzer%netscape.com
5a9cccce83 fix for #5814. get newsParserTest to work on Windows
git-svn-id: svn://10.0.0.236/trunk@29933 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 02:17:09 +00:00
warren%netscape.com
90f8bbe8b6 Fixed to use new nsIBuffer and related buffer streams.
git-svn-id: svn://10.0.0.236/trunk@29932 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 02:15:59 +00:00
sspitzer%netscape.com
27f0d0e439 fix for bug #5814. get newsParserTest to build on Windows
git-svn-id: svn://10.0.0.236/trunk@29931 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 02:15:54 +00:00
warren%netscape.com
36e7942539 Fixed accidental change to NSGetFactory. Changed include for nsStandardUrl.
git-svn-id: svn://10.0.0.236/trunk@29930 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 02:15:22 +00:00
briano%netscape.com
7dc5ff39be Automated update
git-svn-id: svn://10.0.0.236/trunk@29929 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 02:14:39 +00:00
sspitzer%netscape.com
3ae5baca64 check in for bug #5814. get newsParserTest to build on Windows
git-svn-id: svn://10.0.0.236/trunk@29928 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 02:13:53 +00:00
sspitzer%netscape.com
21dd3b14a3 fix for bug #5804. get pop3Test to build on Linux.
git-svn-id: svn://10.0.0.236/trunk@29927 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 02:12:10 +00:00
warren%netscape.com
bfdfd22300 Renamed nsMarshalingStreamListener to nsAsyncStreamListener.
git-svn-id: svn://10.0.0.236/trunk@29926 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 02:11:10 +00:00
briano%netscape.com
81f59775a4 Defined MAP_FAILED for all the platforms that don't have it.
git-svn-id: svn://10.0.0.236/trunk@29925 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 02:10:39 +00:00
ramiro%netscape.com
37d5c4d9b2 Add an everything target which redoes everything from scratch.
git-svn-id: svn://10.0.0.236/trunk@29924 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 02:10:34 +00:00
ramiro%netscape.com
d818980f99 Make the idl thing work on RedHat 6.0.
git-svn-id: svn://10.0.0.236/trunk@29923 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 02:09:55 +00:00
warren%netscape.com
b09ffe999c Renamed nsTypicalUrl to nsStandardUrl.
git-svn-id: svn://10.0.0.236/trunk@29922 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 02:08:18 +00:00
briano%netscape.com
1bf3ff0075 Fix AIX and Solaris bustage.
git-svn-id: svn://10.0.0.236/trunk@29921 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 01:40:35 +00:00
briano%netscape.com
7a4016b770 The config/ports stuff I wrote is no longer of any use.
git-svn-id: svn://10.0.0.236/trunk@29920 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 01:32:28 +00:00
briano%netscape.com
e9ef52e20e Not needed anymore.
git-svn-id: svn://10.0.0.236/trunk@29919 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 01:30:16 +00:00
law%netscape.com
7fd28b694c Stop button; r=slamm, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@29918 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 23:55:22 +00:00
warren%netscape.com
84d15dd692 Added include for nsError.h to get nsresult.
git-svn-id: svn://10.0.0.236/trunk@29917 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 23:49:30 +00:00
bienvenu%netscape.com
e7f876fe6c fix part of 5781, imap folders not showing up correctly
git-svn-id: svn://10.0.0.236/trunk@29916 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 23:26:12 +00:00
jband%netscape.com
16497fe124 *** NOT PART OF SEAMONKEY BUILD*** Adding status page to help track and coordinate platform specific code contributors to xptcall (needed for xpconnect)
git-svn-id: svn://10.0.0.236/trunk@29915 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 23:25:12 +00:00
rjc%netscape.com
9e5e92db48 Fix bug # 4357 where FTP is broken on the Mac. This is basically the same bug and same bug fix as bug # 3405. Somebody needs to fix this for real... I think we should make Kathy Brade do it (Hi Kathy!) as she introduced the bug. Anyway, approval=chofmann.
git-svn-id: svn://10.0.0.236/trunk@29914 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 23:17:08 +00:00
warren%netscape.com
545b76d845 Fixed mac bustage.
git-svn-id: svn://10.0.0.236/trunk@29913 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 23:16:47 +00:00
briano%netscape.com
5d2ffdf562 Automated update
git-svn-id: svn://10.0.0.236/trunk@29912 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 23:14:40 +00:00
waterson%netscape.com
359008bed5 Bug 4805. Re-wrote to be more paranoid. r=rjc,a=chofmann
git-svn-id: svn://10.0.0.236/trunk@29911 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 23:14:30 +00:00
mscott%netscape.com
f776b61747 Bug #5781 --> more connection cache fixes. ProcessCurrentUrl wasn't set up to run multiple urls as it was setting the connection status to -1 whenever it finished. This was causing the next call to process current url to fall out. I also re-organized SetupUrl to make sure m_runningUrl gets properly initialized on multiple calls to LoadUrl.
git-svn-id: svn://10.0.0.236/trunk@29910 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 23:09:21 +00:00
mcafee%netscape.com
b03869f7b4 Adding --disable-double-buffer to turn off double-buffering (so you can see the repaint problems). Thanks to jlnance@sailboat.mis.uncwil.edu for this fix. a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@29909 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 23:08:07 +00:00
pierre%netscape.com
e84fcaa8ad Copied Pink's fix for #4883 from nsTextWidget.
git-svn-id: svn://10.0.0.236/trunk@29908 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 22:57:33 +00:00
pierre%netscape.com
031024e70b Fixed previous checkin: Destroy() calls the inherited function and returns a value.
git-svn-id: svn://10.0.0.236/trunk@29907 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 22:55:58 +00:00
warren%netscape.com
4ca9364655 Removed some noise.
git-svn-id: svn://10.0.0.236/trunk@29906 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 22:55:26 +00:00
warren%netscape.com
55a33d5ee7 Consolidated individual factories into a single factory for base.
git-svn-id: svn://10.0.0.236/trunk@29905 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 22:55:21 +00:00
warren%netscape.com
30029587ee Made Notify and Wait methods return nsresult.
git-svn-id: svn://10.0.0.236/trunk@29904 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 22:55:16 +00:00
warren%netscape.com
1da4ca1637 Added page manager, buffer, buffer streams and pipes stuff.
git-svn-id: svn://10.0.0.236/trunk@29903 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 22:55:12 +00:00
pierre%netscape.com
71129ae584 Oops... CalcWindowRegions() was hiding the inherited function from nsWindow. For some reason, I missed the compiler warning in my previous checkin.
git-svn-id: svn://10.0.0.236/trunk@29902 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 22:54:34 +00:00
237 changed files with 18481 additions and 45979 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,163 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsDebug.h"
#include "nsIAllocator.h"
#include "nsXPIDLString.h"
#include "plstr.h"
// If the allocator changes, fix it here.
#define XPIDL_STRING_ALLOC(__len) ((PRUnichar*) nsAllocator::Alloc((__len) * sizeof(PRUnichar)))
#define XPIDL_CSTRING_ALLOC(__len) ((char*) nsAllocator::Alloc((__len) * sizeof(char)))
#define XPIDL_FREE(__ptr) (nsAllocator::Free(__ptr))
////////////////////////////////////////////////////////////////////////
// nsXPIDLString
nsXPIDLString::nsXPIDLString()
: mBufOwner(PR_FALSE),
mBuf(0)
{
}
nsXPIDLString::~nsXPIDLString()
{
if (mBufOwner && mBuf)
XPIDL_FREE(mBuf);
}
nsXPIDLString::operator const PRUnichar*()
{
return mBuf;
}
PRUnichar*
nsXPIDLString::Copy(const PRUnichar* aString)
{
NS_ASSERTION(aString, "null ptr");
if (! aString)
return 0;
PRInt32 len = 0;
{
const PRUnichar* p = aString;
while (*p++)
len++;
}
PRUnichar* result = XPIDL_STRING_ALLOC(len + 1);
if (result) {
PRUnichar* q = result;
while (*aString) {
*q = *aString;
q++;
aString++;
}
*q = '\0';
}
return result;
}
PRUnichar**
nsXPIDLString::StartAssignmentByValue()
{
if (mBufOwner && mBuf)
XPIDL_FREE(mBuf);
mBufOwner = PR_TRUE;
return &mBuf;
}
const PRUnichar**
nsXPIDLString::StartAssignmentByReference()
{
if (mBufOwner && mBuf)
XPIDL_FREE(mBuf);
mBufOwner = PR_FALSE;
return (const PRUnichar**) &mBuf;
}
////////////////////////////////////////////////////////////////////////
// nsXPIDLCString
nsXPIDLCString::nsXPIDLCString()
: mBufOwner(PR_FALSE),
mBuf(0)
{
}
nsXPIDLCString::~nsXPIDLCString()
{
if (mBufOwner && mBuf)
XPIDL_FREE(mBuf);
}
nsXPIDLCString::operator const char*()
{
return mBuf;
}
char*
nsXPIDLCString::Copy(const char* aCString)
{
NS_ASSERTION(aCString, "null ptr");
if (! aCString)
return 0;
PRInt32 len = PL_strlen(aCString);
char* result = XPIDL_CSTRING_ALLOC(len + 1);
if (result)
PL_strcpy(result, aCString);
return result;
}
char**
nsXPIDLCString::StartAssignmentByValue()
{
if (mBufOwner && mBuf)
XPIDL_FREE(mBuf);
mBufOwner = PR_TRUE;
return &mBuf;
}
const char**
nsXPIDLCString::StartAssignmentByReference()
{
if (mBufOwner && mBuf)
XPIDL_FREE(mBuf);
mBufOwner = PR_FALSE;
return (const char**) &mBuf;
}

View File

@@ -1,294 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
A set of string wrapper classes that ease transition to use of XPIDL
interfaces. nsXPIDLString and nsXPIDLCString are to XPIDL `wstring'
and `string' out params as nsCOMPtr is to generic XPCOM interface
pointers. They help you deal with object ownership.
Consider the following interface:
interface nsIFoo {
attribute string Bar;
};
This will generated the following C++ header file:
class nsIFoo {
NS_IMETHOD SetBar(const PRUnichar* aValue);
NS_IMETHOD GetBar(PRUnichar* *aValue);
};
The GetBar() method will allocate a copy of the nsIFoo object's
"bar" attribute, and leave you to deal with freeing it:
nsIFoo* aFoo; // assume we get this somehow
PRUnichar* bar;
aFoo->GetFoo(&bar);
// Use bar here...
delete[] bar;
(Strictly speaking, the `delete[] bar' should use the proper XPCOM
de-allocator that; we'll ignore that for now.) This makes your life
harder, because you need to convolute your code to ensure that you
don't leak `bar'.
Enter nsXPIDLString, which manages the ownership of the allocated
string, and automatically destroys it when the nsXPIDLString goes
out of scope:
nsIFoo* aFoo;
nsXPIDLString bar;
aFoo->GetFoo( getter_Copies(bar) );
// Use bar here...
Like nsCOMPtr, nsXPIDLString uses some syntactic sugar to make it
painfully clear exactly what the code expects. You need to wrap an
nsXPIDLString object with either `getter_Copies()' or
`getter_Shares()': these tell the nsXPIDLString how ownership is
being handled. In the case of `getter_Copies()', the callee is
allocating a copy (which is usually the case). In the case of
`getter_Shares()', the callee is returning a const reference to `the
real deal' (this can be done using the [shared] attribute in XPIDL).
*/
#ifndef nsXPIDLString_h__
#define nsXPIDLString_h__
#include "nsCom.h"
#include "prtypes.h"
#ifndef __PRUNICHAR__
#define __PRUNICHAR__
typedef PRUint16 PRUnichar;
#endif /* __PRUNICHAR__ */
////////////////////////////////////////////////////////////////////////
// nsXPIDLString
//
// A wrapper for Unicode strings. With the |getter_Copies()| and
// |getter_Shares()| helper functions, this can be used instead of
// the "naked" |PRUnichar*| interface for |wstring| parameters in
// XPIDL interfaces.
//
class NS_COM nsXPIDLString {
private:
PRUnichar* mBuf;
PRBool mBufOwner;
PRUnichar** StartAssignmentByValue();
const PRUnichar** StartAssignmentByReference();
public:
/**
* Construct a new, uninitialized wrapper for a Unicode string.
*/
nsXPIDLString();
virtual ~nsXPIDLString();
/**
* Return a reference to the immutable Unicode string.
*/
operator const PRUnichar*();
/**
* Make a copy of the Unicode string. Use this function in the
* callee to ensure that the correct memory allocator is used.
*/
static PRUnichar* Copy(const PRUnichar* aString);
// A helper class for assignment-by-value. This class is an
// implementation detail and should not be considered part of the
// public interface.
class NS_COM GetterCopies {
private:
nsXPIDLString& mXPIDLString;
public:
GetterCopies(nsXPIDLString& aXPIDLString)
: mXPIDLString(aXPIDLString) {}
operator PRUnichar**() {
return mXPIDLString.StartAssignmentByValue();
}
friend GetterCopies getter_Copies(nsXPIDLString& aXPIDLString);
};
friend class GetterCopies;
// A helper class for assignment-by-reference. This class is an
// implementation detail and should not be considered part of the
// public interface.
class NS_COM GetterShares {
private:
nsXPIDLString& mXPIDLString;
public:
GetterShares(nsXPIDLString& aXPIDLString)
: mXPIDLString(aXPIDLString) {}
operator const PRUnichar**() {
return mXPIDLString.StartAssignmentByReference();
}
friend GetterShares getter_Shares(nsXPIDLString& aXPIDLString);
};
friend class GetterShares;
private:
// not to be implemented
nsXPIDLString(nsXPIDLString& aXPIDLString) {}
nsXPIDLString& operator =(nsXPIDLString& aXPIDLString) { return *this; }
};
/**
* Use this function to "wrap" the nsXPIDLString object that is to
* receive an |out| value.
*/
inline nsXPIDLString::GetterCopies
getter_Copies(nsXPIDLString& aXPIDLString)
{
return nsXPIDLString::GetterCopies(aXPIDLString);
}
/**
* Use this function to "wrap" the nsXPIDLString object that is to
* receive a |[shared] out| value.
*/
inline nsXPIDLString::GetterShares
getter_Shares(nsXPIDLString& aXPIDLString)
{
return nsXPIDLString::GetterShares(aXPIDLString);
}
////////////////////////////////////////////////////////////////////////
// nsXPIDLCString
//
// A wrapper for Unicode strings. With the |getter_Copies()| and
// |getter_Shares()| helper functions, this can be used instead of
// the "naked" |char*| interface for |string| parameters in XPIDL
// interfaces.
//
class NS_COM nsXPIDLCString {
private:
char* mBuf;
PRBool mBufOwner;
char** StartAssignmentByValue();
const char** StartAssignmentByReference();
public:
/**
* Construct a new, uninitialized wrapper for a single-byte string.
*/
nsXPIDLCString();
virtual ~nsXPIDLCString();
/**
* Return a reference to the immutable single-byte string.
*/
operator const char*();
/**
* Make a copy of the single-byte string. Use this function in the
* callee to ensure that the correct memory allocator is used.
*/
static char* Copy(const char* aString);
// A helper class for assignment-by-value. This class is an
// implementation detail and should not be considered part of the
// public interface.
class NS_COM GetterCopies {
private:
nsXPIDLCString& mXPIDLString;
public:
GetterCopies(nsXPIDLCString& aXPIDLString)
: mXPIDLString(aXPIDLString) {}
operator char**() {
return mXPIDLString.StartAssignmentByValue();
}
friend GetterCopies getter_Copies(nsXPIDLCString& aXPIDLString);
};
friend class GetterCopies;
// A helper class for assignment-by-reference. This class is an
// implementation detail and should not be considered part of the
// public interface.
class NS_COM GetterShares {
private:
nsXPIDLCString& mXPIDLString;
public:
GetterShares(nsXPIDLCString& aXPIDLString)
: mXPIDLString(aXPIDLString) {}
operator const char**() {
return mXPIDLString.StartAssignmentByReference();
}
friend GetterShares getter_Shares(nsXPIDLCString& aXPIDLString);
};
friend class GetterShares;
private:
// not to be implemented
nsXPIDLCString(nsXPIDLCString& aXPIDLString) {}
nsXPIDLCString& operator =(nsXPIDLCString& aXPIDLString) { return *this; }
};
/**
* Use this function to "wrap" the nsXPIDLCString object that is to
* receive an |out| value.
*/
inline nsXPIDLCString::GetterCopies
getter_Copies(nsXPIDLCString& aXPIDLString)
{
return nsXPIDLCString::GetterCopies(aXPIDLString);
}
/**
* Use this function to "wrap" the nsXPIDLCString object that is to
* receive a |[shared] out| value.
*/
inline nsXPIDLCString::GetterShares
getter_Shares(nsXPIDLCString& aXPIDLString)
{
return nsXPIDLCString::GetterShares(aXPIDLString);
}
#endif // nsXPIDLString_h__

File diff suppressed because it is too large Load Diff

View File

@@ -1,170 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsAgg_h___
#define nsAgg_h___
#include "nsISupports.h"
/**
* Outer objects can implement nsIOuter if they choose, allowing them to
* get notification if their inner objects (children) are effectively freed.
* This allows them to reset any state associated with the inner object and
* potentially unload it.
*/
class nsIOuter : public nsISupports {
public:
/**
* This method is called whenever an inner object's refcount is about to
* become zero and the inner object should be released by the outer. This
* allows the outer to clean up any state associated with the inner and
* potentially unload the inner object. This method should call
* inner->Release().
*/
NS_IMETHOD
ReleaseInner(nsISupports* inner) = 0;
};
#define NS_IOUTER_IID \
{ /* ea0bf9f0-3d67-11d2-8163-006008119d7a */ \
0xea0bf9f0, \
0x3d67, \
0x11d2, \
{0x81, 0x63, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a} \
}
////////////////////////////////////////////////////////////////////////////////
// Put this in your class's declaration:
#define NS_DECL_AGGREGATED \
NS_DECL_ISUPPORTS \
\
protected: \
\
/* You must implement this operation instead of the nsISupports */ \
/* methods if you inherit from nsAggregated. */ \
NS_IMETHOD \
AggregatedQueryInterface(const nsIID& aIID, void** aInstancePtr); \
\
class Internal : public nsISupports { \
public: \
\
Internal() {} \
\
NS_IMETHOD QueryInterface(const nsIID& aIID, \
void** aInstancePtr); \
NS_IMETHOD_(nsrefcnt) AddRef(void); \
NS_IMETHOD_(nsrefcnt) Release(void); \
\
}; \
\
friend class Internal; \
\
nsISupports* fOuter; \
Internal fAggregated; \
\
nsISupports* GetInner(void) { return &fAggregated; } \
\
public: \
// Put this in your class's constructor:
#define NS_INIT_AGGREGATED(outer) \
PR_BEGIN_MACRO \
NS_INIT_REFCNT(); \
fOuter = outer; \
PR_END_MACRO
// Put this in your class's implementation file:
#define NS_IMPL_AGGREGATED(_class) \
NS_IMETHODIMP \
_class::QueryInterface(const nsIID& aIID, void** aInstancePtr) \
{ \
/* try our own interfaces first before delegating to outer */ \
nsresult rslt = AggregatedQueryInterface(aIID, aInstancePtr); \
if (rslt != NS_OK && fOuter) \
return fOuter->QueryInterface(aIID, aInstancePtr); \
else \
return rslt; \
} \
\
NS_IMETHODIMP_(nsrefcnt) \
_class::AddRef(void) \
{ \
++mRefCnt; /* keep track of our refcount as well as outer's */ \
if (fOuter) \
return NS_ADDREF(fOuter); \
else \
return mRefCnt; \
} \
\
NS_IMETHODIMP_(nsrefcnt) \
_class::Release(void) \
{ \
if (fOuter) { \
nsISupports* outer = fOuter; /* in case we release ourself */ \
nsIOuter* outerIntf; \
static NS_DEFINE_IID(kIOuterIID, NS_IOUTER_IID); \
if (mRefCnt == 1 && \
outer->QueryInterface(kIOuterIID, \
(void**)&outerIntf) == NS_OK) { \
outerIntf->ReleaseInner(GetInner()); \
outerIntf->Release(); \
} \
else \
--mRefCnt; /* keep track of our refcount as well as outer's */ \
return outer->Release(); \
} \
else { \
if (--mRefCnt == 0) { \
delete this; \
return 0; \
} \
return mRefCnt; \
} \
} \
\
NS_IMETHODIMP \
_class::Internal::QueryInterface(const nsIID& aIID, void** aInstancePtr) \
{ \
_class* agg = (_class*)((char*)(this) - offsetof(_class, fAggregated)); \
return agg->AggregatedQueryInterface(aIID, aInstancePtr); \
} \
\
NS_IMETHODIMP_(nsrefcnt) \
_class::Internal::AddRef(void) \
{ \
_class* agg = (_class*)((char*)(this) - offsetof(_class, fAggregated)); \
return ++agg->mRefCnt; \
} \
\
NS_IMETHODIMP_(nsrefcnt) \
_class::Internal::Release(void) \
{ \
_class* agg = (_class*)((char*)(this) - offsetof(_class, fAggregated)); \
if (--agg->mRefCnt == 0) { \
delete agg; \
return 0; \
} \
return agg->mRefCnt; \
} \
#endif /* nsAgg_h___ */

View File

@@ -1,185 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
////////////////////////////////////////////////////////////////////////////////
// Implementation of nsIAllocator using NSPR
////////////////////////////////////////////////////////////////////////////////
#include "nsAllocator.h"
#include "nsIServiceManager.h"
#include <string.h> /* for memcpy */
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIAllocatorIID, NS_IALLOCATOR_IID);
nsAllocatorImpl::nsAllocatorImpl(nsISupports* outer)
{
NS_INIT_AGGREGATED(outer);
}
nsAllocatorImpl::~nsAllocatorImpl(void)
{
}
NS_IMPL_AGGREGATED(nsAllocatorImpl);
NS_METHOD
nsAllocatorImpl::AggregatedQueryInterface(const nsIID& aIID, void** aInstancePtr)
{
if (NULL == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(kIAllocatorIID) ||
aIID.Equals(kISupportsIID)) {
*aInstancePtr = (void*) this;
AddRef();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_METHOD
nsAllocatorImpl::Create(nsISupports* outer, const nsIID& aIID, void* *aInstancePtr)
{
if (outer && !aIID.Equals(kISupportsIID))
return NS_NOINTERFACE; // XXX right error?
nsAllocatorImpl* mm = new nsAllocatorImpl(outer);
if (mm == NULL)
return NS_ERROR_OUT_OF_MEMORY;
mm->AddRef();
if (aIID.Equals(kISupportsIID))
*aInstancePtr = mm->GetInner();
else
*aInstancePtr = mm;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
NS_METHOD_(void*)
nsAllocatorImpl::Alloc(PRUint32 size)
{
return PR_Malloc(size);
}
NS_METHOD_(void*)
nsAllocatorImpl::Realloc(void* ptr, PRUint32 size,
PRInt32 oldSize)
{
return PR_Realloc(ptr, size);
}
NS_METHOD
nsAllocatorImpl::Free(void* ptr, PRInt32 size)
{
PR_Free(ptr);
return NS_OK;
}
NS_METHOD
nsAllocatorImpl::HeapMinimize(void)
{
#ifdef XP_MAC
// This used to live in the memory allocators no Mac, but does no more
// Needs to be hooked up in the new world.
// CallCacheFlushers(0x7fffffff);
#endif
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
nsAllocatorFactory::nsAllocatorFactory(void)
{
NS_INIT_REFCNT();
}
nsAllocatorFactory::~nsAllocatorFactory(void)
{
}
static NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID);
NS_IMPL_ISUPPORTS(nsAllocatorFactory, kIFactoryIID);
NS_METHOD
nsAllocatorFactory::CreateInstance(nsISupports *aOuter,
REFNSIID aIID,
void **aResult)
{
return nsAllocatorImpl::Create(aOuter, aIID, aResult);
}
NS_METHOD
nsAllocatorFactory::LockFactory(PRBool aLock)
{
return NS_OK; // XXX what?
}
////////////////////////////////////////////////////////////////////////////////
/*
* Public shortcuts to the shared allocator's methods
* (all these methods are class statics)
*/
// public:
void* nsAllocator::Alloc(PRUint32 size)
{
if(!EnsureAllocator()) return NULL;
return mAllocator->Alloc(size);
}
void* nsAllocator::Realloc(void* ptr, PRUint32 size)
{
if(!EnsureAllocator()) return NULL;
return mAllocator->Realloc(ptr, size);
}
void nsAllocator::Free(void* ptr)
{
if(!EnsureAllocator()) return;
mAllocator->Free(ptr);
}
void nsAllocator::HeapMinimize()
{
if(!EnsureAllocator()) return;
mAllocator->HeapMinimize();
}
void* nsAllocator::Clone(const void* ptr, PRUint32 size)
{
if(!ptr || !EnsureAllocator()) return NULL;
void* p = mAllocator->Alloc(size);
if(p) memcpy(p, ptr, size);
return p;
}
// private:
nsIAllocator* nsAllocator::mAllocator = NULL;
PRBool nsAllocator::FetchAllocator()
{
NS_DEFINE_IID(kAllocatorCID, NS_ALLOCATOR_CID);
NS_DEFINE_IID(kIAllocatorIID, NS_IALLOCATOR_IID);
nsServiceManager::GetService(kAllocatorCID, kIAllocatorIID,
(nsISupports **)&mAllocator);
NS_ASSERTION(mAllocator, "failed to get Allocator!");
return (PRBool) mAllocator;
}

View File

@@ -1,96 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
////////////////////////////////////////////////////////////////////////////////
// Implementation of nsIAllocator using NSPR
////////////////////////////////////////////////////////////////////////////////
#ifndef nsAllocator_h__
#define nsAllocator_h__
#include "nsIAllocator.h"
#include "prmem.h"
#include "nsAgg.h"
#include "nsIFactory.h"
class nsAllocatorImpl : public nsIAllocator {
public:
static const nsCID& CID() { static nsCID cid = NS_ALLOCATOR_CID; return cid; }
/**
* Allocates a block of memory of a particular size.
*
* @param size - the size of the block to allocate
* @result the block of memory
*/
NS_IMETHOD_(void*) Alloc(PRUint32 size);
/**
* Reallocates a block of memory to a new size.
*
* @param ptr - the block of memory to reallocate
* @param size - the new size
* @param oldSize - the current size of the block. If -1 (the default),
* the implementation must be able to determine the block size by
* examining the block pointer.
* @result the rellocated block of memory
*/
NS_IMETHOD_(void*) Realloc(void* ptr, PRUint32 size,
PRInt32 oldSize = -1);
/**
* Frees a block of memory.
*
* @param ptr - the block of memory to free
*/
NS_IMETHOD Free(void* ptr, PRInt32 size = -1);
/**
* Attempts to shrink the heap.
*/
NS_IMETHOD HeapMinimize(void);
////////////////////////////////////////////////////////////////////////////
nsAllocatorImpl(nsISupports* outer);
virtual ~nsAllocatorImpl(void);
NS_DECL_AGGREGATED
static NS_METHOD
Create(nsISupports* outer, const nsIID& aIID, void* *aInstancePtr);
};
////////////////////////////////////////////////////////////////////////////////
class nsAllocatorFactory : public nsIFactory {
public:
NS_IMETHOD CreateInstance(nsISupports *aOuter,
REFNSIID aIID,
void **aResult);
NS_IMETHOD LockFactory(PRBool aLock);
nsAllocatorFactory(void);
virtual ~nsAllocatorFactory(void);
NS_DECL_ISUPPORTS
};
////////////////////////////////////////////////////////////////////////////////
#endif // nsAllocator_h__

View File

@@ -1,54 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsCOMPtr.h"
void
nsCOMPtr_base::assign_with_AddRef( nsISupports* rawPtr )
{
if ( rawPtr )
NSCAP_ADDREF(rawPtr);
if ( mRawPtr )
NSCAP_RELEASE(mRawPtr);
mRawPtr = rawPtr;
}
void
nsCOMPtr_base::assign_with_QueryInterface( nsISupports* rawPtr, const nsIID& iid, nsresult* result )
{
nsresult status = NS_OK;
if ( !rawPtr || !NS_SUCCEEDED( status = rawPtr->QueryInterface(iid, NSCAP_REINTERPRET_CAST(void**, &rawPtr)) ) )
rawPtr = 0;
if ( mRawPtr )
NSCAP_RELEASE(mRawPtr);
mRawPtr = rawPtr;
if ( result )
*result = status;
}
void**
nsCOMPtr_base::begin_assignment()
{
if ( mRawPtr )
NSCAP_RELEASE(mRawPtr);
mRawPtr = 0;
return NSCAP_REINTERPRET_CAST(void**, &mRawPtr);
}

View File

@@ -1,493 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsCOMPtr_h___
#define nsCOMPtr_h___
// Wrapping includes can speed up compiles (see "Large Scale C++ Software Design")
#ifndef nsDebug_h___
#include "nsDebug.h"
// for |NS_PRECONDITION|
#endif
#ifndef nsISupports_h___
#include "nsISupports.h"
// for |nsresult|, |NS_ADDREF|, et al
#endif
/*
Having problems?
See the User Manual at:
<http://www.meer.net/ScottCollins/doc/nsCOMPtr.html>, or
<http://www.mozilla.org/projects/xpcom/nsCOMPtr.html>
*/
/*
TO DO...
+ make StartAssignment optionally inlined
+ make constructor for |nsQueryInterface| explicit (suddenly construct/assign from raw pointer becomes illegal)
+ Improve internal documentation
+ mention *&
+ alternatives for comparison
+ do_QueryInterface
*/
/*
WARNING:
This file defines several macros for internal use only. These macros begin with the
prefix |NSCAP_|. Do not use these macros in your own code. They are for internal use
only for cross-platform compatibility, and are subject to change without notice.
*/
/*
Set up some |#define|s to turn off a couple of troublesome C++ features.
Interestingly, none of the compilers barf on template stuff. These are set up automatically
by the autoconf system for all Unixes. (Temporarily, I hope) I have to define them
myself for Mac and Windows.
*/
// under Metrowerks (Mac), we don't have autoconf yet
#ifdef __MWERKS__
#define HAVE_CPP_USING
#define HAVE_CPP_EXPLICIT
#define HAVE_CPP_NEW_CASTS
#endif
// under VC++ (Windows), we don't have autoconf yet
#ifdef _MSC_VER
#define HAVE_CPP_EXPLICIT
#define HAVE_CPP_USING
#define HAVE_CPP_NEW_CASTS
#if (_MSC_VER<1100)
// before 5.0, VC++ couldn't handle explicit
#undef HAVE_CPP_EXPLICIT
#elif (_MSC_VER==1100)
// VC++5.0 has an internal compiler error (sometimes) without this
#undef HAVE_CPP_USING
#endif
#define NSCAP_FEATURE_INLINE_STARTASSIGNMENT
// under VC++, we win by inlining StartAssignment
#endif
/*
If the compiler doesn't support |explicit|, we'll just make it go away, trusting
that the builds under compilers that do have it will keep us on the straight and narrow.
*/
#ifndef HAVE_CPP_EXPLICIT
#define explicit
#endif
#ifdef HAVE_CPP_NEW_CASTS
#define NSCAP_REINTERPRET_CAST(T,x) reinterpret_cast<T>(x)
#else
#define NSCAP_REINTERPRET_CAST(T,x) ((T)(x))
#endif
#ifdef NSCAP_FEATURE_DEBUG_MACROS
#define NSCAP_ADDREF(ptr) NS_ADDREF(ptr)
#define NSCAP_RELEASE(ptr) NS_RELEASE(ptr)
#else
#define NSCAP_ADDREF(ptr) (ptr)->AddRef()
#define NSCAP_RELEASE(ptr) (ptr)->Release()
#endif
/*
WARNING:
VC++4.2 is very picky. To compile under VC++4.2, the classes must be defined
in an order that satisfies:
nsDerivedSafe < nsCOMPtr
nsDontAddRef < nsCOMPtr
nsCOMPtr < nsGetterAddRefs
The other compilers probably won't complain, so please don't reorder these
classes, on pain of breaking 4.2 compatibility.
*/
template <class T>
class nsDerivedSafe : public T
/*
No client should ever see or have to type the name of this class. It is the
artifact that makes it a compile-time error to call |AddRef| and |Release|
on a |nsCOMPtr|.
See |nsCOMPtr::operator->|, |nsCOMPtr::operator*|, et al.
*/
{
private:
#ifdef HAVE_CPP_USING
using T::AddRef;
using T::Release;
#else
NS_IMETHOD_(nsrefcnt) AddRef(void);
NS_IMETHOD_(nsrefcnt) Release(void);
#endif
void operator delete( void*, size_t ); // NOT TO BE IMPLEMENTED
// declaring |operator delete| private makes calling delete on an interface pointer a compile error
nsDerivedSafe<T>& operator=( const nsDerivedSafe<T>& ); // NOT TO BE IMPLEMENTED
// you may not call |operator=()| through a dereferenced |nsCOMPtr|, because you'd get the wrong one
};
#if !defined(HAVE_CPP_USING) && defined(NEED_CPP_UNUSED_IMPLEMENTATIONS)
template <class T>
nsrefcnt
nsDerivedSafe<T>::AddRef()
{
return 0;
}
template <class T>
nsrefcnt
nsDerivedSafe<T>::Release()
{
return 0;
}
#endif
template <class T>
struct nsDontQueryInterface
/*
...
*/
{
explicit
nsDontQueryInterface( T* aRawPtr )
: mRawPtr(aRawPtr)
{
// nothing else to do here
}
T* mRawPtr;
};
template <class T>
inline
nsDontQueryInterface<T>
dont_QueryInterface( T* aRawPtr )
{
return nsDontQueryInterface<T>(aRawPtr);
}
struct nsQueryInterface
{
explicit
nsQueryInterface( nsISupports* aRawPtr, nsresult* error = 0 )
: mRawPtr(aRawPtr),
mErrorPtr(error)
{
// nothing else to do here
}
nsISupports* mRawPtr;
nsresult* mErrorPtr;
};
inline
nsQueryInterface
do_QueryInterface( nsISupports* aRawPtr, nsresult* error = 0 )
{
return nsQueryInterface(aRawPtr, error);
}
template <class T>
struct nsDontAddRef
/*
...cooperates with |nsCOMPtr| to allow you to assign in a pointer _without_
|AddRef|ing it. You would rarely use this directly, but rather through the
machinery of |getter_AddRefs| in the argument list to functions that |AddRef|
their results before returning them to the caller.
See also |getter_AddRefs()| and |class nsGetterAddRefs|.
*/
{
explicit
nsDontAddRef( T* aRawPtr )
: mRawPtr(aRawPtr)
{
// nothing else to do here
}
T* mRawPtr;
};
// This call is now deprecated. Use |getter_AddRefs()| instead.
template <class T>
inline
nsDontAddRef<T>
dont_AddRef( T* aRawPtr )
/*
...makes typing easier, because it deduces the template type, e.g.,
you write |dont_AddRef(fooP)| instead of |nsDontAddRef<IFoo>(fooP)|.
*/
{
return nsDontAddRef<T>(aRawPtr);
}
template <class T>
inline
nsDontAddRef<T>
getter_AddRefs( T* aRawPtr )
{
return nsDontAddRef<T>(aRawPtr);
}
class nsCOMPtr_base
{
public:
nsCOMPtr_base( nsISupports* rawPtr = 0 )
: mRawPtr(rawPtr)
{
// nothing else to do here
}
~nsCOMPtr_base()
{
if ( mRawPtr )
NSCAP_RELEASE(mRawPtr);
}
NS_EXPORT void assign_with_AddRef( nsISupports* );
NS_EXPORT void assign_with_QueryInterface( nsISupports*, const nsIID&, nsresult* );
NS_EXPORT void** begin_assignment();
protected:
nsISupports* mRawPtr;
};
template <class T>
class nsCOMPtr : private nsCOMPtr_base
/*
...
*/
{
public:
typedef T element_type;
nsCOMPtr()
// : nsCOMPtr_base(0)
{
// nothing else to do here
}
nsCOMPtr( const nsQueryInterface& aSmartPtr )
// : nsCOMPtr_base(0)
{
assign_with_QueryInterface(aSmartPtr.mRawPtr, T::GetIID(), aSmartPtr.mErrorPtr);
}
nsCOMPtr( const nsDontAddRef<T>& aSmartPtr )
: nsCOMPtr_base(aSmartPtr.mRawPtr)
{
// nothing else to do here
}
nsCOMPtr( const nsDontQueryInterface<T>& aSmartPtr )
: nsCOMPtr_base(aSmartPtr.mRawPtr)
{
if ( mRawPtr )
NSCAP_ADDREF(mRawPtr);
}
nsCOMPtr( const nsCOMPtr<T>& aSmartPtr )
: nsCOMPtr_base(aSmartPtr.mRawPtr)
{
if ( mRawPtr )
NSCAP_ADDREF(mRawPtr);
}
nsCOMPtr<T>&
operator=( const nsQueryInterface& rhs )
{
assign_with_QueryInterface(rhs.mRawPtr, T::GetIID(), rhs.mErrorPtr);
return *this;
}
nsCOMPtr<T>&
operator=( const nsDontAddRef<T>& rhs )
{
if ( mRawPtr )
NSCAP_RELEASE(mRawPtr);
mRawPtr = rhs.mRawPtr;
return *this;
}
nsCOMPtr<T>&
operator=( const nsDontQueryInterface<T>& rhs )
{
assign_with_AddRef(rhs.mRawPtr);
return *this;
}
nsCOMPtr<T>&
operator=( const nsCOMPtr<T>& rhs )
{
assign_with_AddRef(rhs.mRawPtr);
return *this;
}
nsDerivedSafe<T>*
get() const
// returns a |nsDerivedSafe<T>*| to deny clients the use of |AddRef| and |Release|
{
return NSCAP_REINTERPRET_CAST(nsDerivedSafe<T>*, mRawPtr);
}
nsDerivedSafe<T>*
operator->() const
// returns a |nsDerivedSafe<T>*| to deny clients the use of |AddRef| and |Release|
{
NS_PRECONDITION(mRawPtr != 0, "You can't dereference a NULL nsCOMPtr with operator->().");
return get();
}
nsDerivedSafe<T>&
operator*() const
// returns a |nsDerivedSafe<T>*| to deny clients the use of |AddRef| and |Release|
{
NS_PRECONDITION(mRawPtr != 0, "You can't dereference a NULL nsCOMPtr with operator*().");
return *get();
}
operator nsDerivedSafe<T>*() const
{
return get();
}
#if 0
private:
friend class nsGetterAddRefs<T>;
/*
In a perfect world, the following member function, |StartAssignment|, would be private.
It is and should be only accessed by the closely related class |nsGetterAddRefs<T>|.
Unfortunately, some compilers---most notably VC++5.0---fail to grok the
friend declaration above or in any alternate acceptable form. So, physically
it will be public (until our compilers get smarter); but it is not to be
considered part of the logical public interface.
*/
#endif
T**
StartAssignment()
{
#ifndef NSCAP_FEATURE_INLINE_STARTASSIGNMENT
return NSCAP_REINTERPRET_CAST(T**, begin_assignment());
#else
if ( mRawPtr )
NSCAP_RELEASE(mRawPtr);
mRawPtr = 0;
return NSCAP_REINTERPRET_CAST(T**, &mRawPtr);
#endif
}
};
template <class T>
class nsGetterAddRefs
/*
...
This class is designed to be used for anonymous temporary objects in the
argument list of calls that return COM interface pointers, e.g.,
nsCOMPtr<IFoo> fooP;
...->QueryInterface(iid, nsGetterAddRefs<IFoo>(fooP))
...->QueryInterface(iid, getter_AddRefs(fooP))
When initialized with a |nsCOMPtr|, as in the example above, it returns
a |void**| (or |T**| if needed) that the outer call (|QueryInterface| in this
case) can fill in.
*/
{
public:
explicit
nsGetterAddRefs( nsCOMPtr<T>& aSmartPtr )
: mTargetSmartPtr(aSmartPtr)
{
// nothing else to do
}
operator void**()
{
// NS_PRECONDITION(mTargetSmartPtr != 0, "getter_AddRefs into no destination");
return NSCAP_REINTERPRET_CAST(void**, mTargetSmartPtr.StartAssignment());
}
T*&
operator*()
{
// NS_PRECONDITION(mTargetSmartPtr != 0, "getter_AddRefs into no destination");
return *(mTargetSmartPtr.StartAssignment());
}
operator T**()
{
// NS_PRECONDITION(mTargetSmartPtr != 0, "getter_AddRefs into no destination");
return mTargetSmartPtr.StartAssignment();
}
private:
nsCOMPtr<T>& mTargetSmartPtr;
};
template <class T>
inline
nsGetterAddRefs<T>
getter_AddRefs( nsCOMPtr<T>& aSmartPtr )
/*
Used around a |nsCOMPtr| when
...makes the class |nsGetterAddRefs<T>| invisible.
*/
{
return nsGetterAddRefs<T>(aSmartPtr);
}
#endif // !defined(nsCOMPtr_h___)

View File

@@ -1,229 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsCom_h__
#define nsCom_h__
/*
* API Import/Export macros
*/
#ifdef _IMPL_NS_COM
#ifdef XP_PC
#define NS_COM _declspec(dllexport)
#elif defined(XP_MAC)
#define NS_COM __declspec(export)
#else /* !XP_PC */
#define NS_COM
#endif /* !XP_PC */
#else /* !_IMPL_NS_COM */
#ifdef XP_PC
#define NS_COM _declspec(dllimport)
#else /* !XP_PC */
#define NS_COM
#endif /* !XP_PC */
#endif /* !_IMPL_NS_COM */
/*
* DLL Export macro
*/
#if defined(XP_PC)
#define NS_EXPORT _declspec(dllexport)
#define NS_EXPORT_(type) _declspec(dllexport) type __stdcall
#define NS_IMETHOD_(type) virtual type __stdcall
#define NS_IMETHOD virtual nsresult __stdcall
#define NS_IMETHODIMP_(type) type __stdcall
#define NS_IMETHODIMP nsresult __stdcall
#define NS_METHOD_(type) type __stdcall
#define NS_METHOD nsresult __stdcall
#define NS_CALLBACK_(_type, _name) _type (__stdcall * _name)
#define NS_CALLBACK(_name) nsresult (__stdcall * _name)
#elif defined(XP_MAC)
#define NS_EXPORT __declspec(export)
#define NS_EXPORT_(type) __declspec(export) type
#define NS_IMETHOD_(type) virtual type
#define NS_IMETHOD virtual nsresult
#define NS_IMETHODIMP_(type) type
#define NS_IMETHODIMP nsresult
#define NS_METHOD_(type) type
#define NS_METHOD nsresult
#define NS_CALLBACK_(_type, _name) _type (* _name)
#define NS_CALLBACK(_name) nsresult (* _name)
#else /* !XP_PC && !XP_MAC */
#define NS_EXPORT
#define NS_EXPORT_(type) type
#define NS_IMETHOD_(type) virtual type
#define NS_IMETHOD virtual nsresult
#define NS_IMETHODIMP_(type) type
#define NS_IMETHODIMP nsresult
#define NS_METHOD_(type) type
#define NS_METHOD nsresult
#define NS_CALLBACK_(_type, _name) _type (* _name)
#define NS_CALLBACK(_name) nsresult (* _name)
#endif /* !XP_PC */
/* use these functions to associate get/set methods with a
C++ member variable
*/
#define NS_METHOD_GETTER(_method, _type, _member) \
_method(_type* aResult) \
{\
if (!aResult) return NS_ERROR_NULL_POINTER; \
*aResult = _member; \
return NS_OK; \
}
#define NS_METHOD_SETTER(_method, _type, _member) \
_method(_type aResult) \
{ \
_member = aResult; \
return NS_OK; \
}
/*
* special for strings to get/set char* strings
* using PL_strdup and PR_FREEIF
*/
#define NS_METHOD_GETTER_STR(_method,_member) \
_method(char* *aString)\
{\
if (!aString) return NS_ERROR_NULL_POINTER; \
*aString = PL_strdup(_member); \
return NS_OK; \
}
#define NS_METHOD_SETTER_STR(_method, _member) \
_method(char *aString)\
{\
PR_FREEIF(_member);\
if (aString) _member = PL_strdup(aString); \
else _member = nsnull;\
return NS_OK; \
}
/* Getter/Setter macros.
Usage:
NS_IMPL_[CLASS_]GETTER[_<type>](method, [type,] member);
NS_IMPL_[CLASS_]SETTER[_<type>](method, [type,] member);
NS_IMPL_[CLASS_]GETSET[_<type>]([class, ]postfix, [type,] member);
where:
CLASS_ - implementation is inside a class definition
(otherwise the class name is needed)
Do NOT use in publicly exported header files, because
the implementation may be included many times over.
Instead, use the non-CLASS_ version.
_<type> - For more complex (STR, IFACE) data types
(otherwise the simple data type is needed)
method - name of the method, such as GetWidth or SetColor
type - simple data type if required
member - class member variable such as m_width or mColor
class - the class name, such as Window or MyObject
postfix - Method part after Get/Set such as "Width" for "GetWidth"
Example:
class Window {
public:
NS_IMPL_CLASS_GETSET(Width, int, m_width);
NS_IMPL_CLASS_GETTER_STR(GetColor, m_color);
NS_IMETHOD SetColor(char *color);
private:
int m_width; // read/write
char *m_color; // readonly
};
// defined outside of class
NS_IMPL_SETTER_STR(Window::GetColor, m_color);
Questions/Comments to alecf@netscape.com
*/
/*
* Getter/Setter implementation within a class definition
*/
/* simple data types */
#define NS_IMPL_CLASS_GETTER(_method, _type, _member) \
NS_IMETHOD NS_METHOD_GETTER(_method, _type, _member)
#define NS_IMPL_CLASS_SETTER(_method, _type, _member) \
NS_IMETHOD NS_METHOD_SETTER(_method, _type, _member)
#define NS_IMPL_CLASS_GETSET(_postfix, _type, _member) \
NS_IMPL_CLASS_GETTER(Get##_postfix, _type, _member) \
NS_IMPL_CLASS_SETTER(Set##_postfix, _type, _member)
/* strings */
#define NS_IMPL_CLASS_GETTER_STR(_method, _member) \
NS_IMETHOD NS_METHOD_GETTER_STR(_method, _member)
#define NS_IMPL_CLASS_SETTER_STR(_method, _member) \
NS_IMETHOD NS_METHOD_SETTER_STR(_method, _member)
#define NS_IMPL_CLASS_GETSET_STR(_postfix, _member) \
NS_IMPL_CLASS_GETTER_STR(Get##_postfix, _member) \
NS_IMPL_CLASS_SETTER_STR(Set##_postfix, _member)
/* Getter/Setter implementation outside of a class definition */
/* simple data types */
#define NS_IMPL_GETTER(_method, _type, _member) \
NS_IMETHODIMP NS_METHOD_GETTER(_method, _type, _member)
#define NS_IMPL_SETTER(_method, _type, _member) \
NS_IMETHODIMP NS_METHOD_SETTER(_method, _type, _member)
#define NS_IMPL_GETSET(_class, _postfix, _type, _member) \
NS_IMPL_GETTER(_class::Get##_postfix, _type, _member) \
NS_IMPL_SETTER(_class::Set##_postfix, _type, _member)
/* strings */
#define NS_IMPL_GETTER_STR(_method, _member) \
NS_IMETHODIMP NS_METHOD_GETTER_STR(_method, _member)
#define NS_IMPL_SETTER_STR(_method, _member) \
NS_IMETHODIMP NS_METHOD_SETTER_STR(_method, _member)
#define NS_IMPL_GETSET_STR(_class, _postfix, _member) \
NS_IMPL_GETTER_STR(_class::Get##_postfix, _member) \
NS_IMPL_SETTER_STR(_class::Set##_postfix, _member)
#endif

View File

@@ -1,178 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsDebug.h"
#include "prlog.h"
#include "prinit.h"
#if defined(XP_UNIX)
/* for abort() */
#include <stdlib.h>
#endif
#if defined(_WIN32)
#include <windows.h>
#elif defined(XP_MAC)
#define TEMP_MAC_HACK
//------------------------
#ifdef TEMP_MAC_HACK
#include <MacTypes.h>
#include <Processes.h>
// TEMPORARY UNTIL WE HAVE MACINTOSH ENVIRONMENT VARIABLES THAT CAN TURN ON
// LOGGING ON MACINTOSH
// At this moment, NSPR's logging is a no-op on Macintosh.
#include <stdarg.h>
#include <stdio.h>
#undef PR_LOG
#define PR_LOG(module,level,args) dprintf args
static void dprintf(const char *format, ...)
{
va_list ap;
Str255 buffer;
va_start(ap, format);
buffer[0] = vsnprintf((char *)buffer + 1, sizeof(buffer) - 1, format, ap);
va_end(ap);
DebugStr(buffer);
}
#endif // TEMP_MAC_HACK
//------------------------
#elif defined(XP_UNIX)
#include<stdlib.h>
#endif
/**
* Implementation of the nsDebug methods. Note that this code is
* always compiled in, in case some other module that uses it is
* compiled with debugging even if this library is not.
*/
static PRLogModuleInfo* gDebugLog;
static void InitLog(void)
{
if (0 == gDebugLog) {
gDebugLog = PR_NewLogModule("nsDebug");
gDebugLog->level = PR_LOG_DEBUG;
}
}
NS_COM void nsDebug::Abort(const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("Abort: at file %s, line %d", aFile, aLine));
PR_LogFlush();
#if defined(_WIN32)
long* __p = (long*) 0x7;
*__p = 0x7;
#elif defined(XP_MAC)
ExitToShell();
#elif defined(XP_UNIX)
PR_Abort();
#endif
}
NS_COM void nsDebug::Break(const char* aFile, PRIntn aLine)
{
#ifndef TEMP_MAC_HACK
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("Break: at file %s, line %d", aFile, aLine));
PR_LogFlush();
//XXX this works on win32 only for now. For all the other platforms call Abort
#if defined(_WIN32)
::DebugBreak();
#else
Abort(aFile, aLine);
#endif
#endif // TEMP_MAC_HACK
}
NS_COM void nsDebug::PreCondition(const char* aStr, const char* aExpr,
const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("PreCondition: \"%s\" (%s) at file %s, line %d", aStr, aExpr,
aFile, aLine));
Break(aFile, aLine);
}
NS_COM void nsDebug::PostCondition(const char* aStr, const char* aExpr,
const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("PostCondition: \"%s\" (%s) at file %s, line %d", aStr, aExpr,
aFile, aLine));
Break(aFile, aLine);
}
NS_COM void nsDebug::Assertion(const char* aStr, const char* aExpr,
const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("Assertion: \"%s\" (%s) at file %s, line %d", aStr, aExpr,
aFile, aLine));
Break(aFile, aLine);
}
NS_COM void nsDebug::NotYetImplemented(const char* aMessage,
const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("NotYetImplemented: \"%s\" at file %s, line %d", aMessage,
aFile, aLine));
Break(aFile, aLine);
}
NS_COM void nsDebug::NotReached(const char* aMessage,
const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("NotReached: \"%s\" at file %s, line %d", aMessage, aFile, aLine));
Break(aFile, aLine);
}
NS_COM void nsDebug::Error(const char* aMessage,
const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("Error: \"%s\" at file %s, line %d", aMessage, aFile, aLine));
Break(aFile, aLine);
}
NS_COM void nsDebug::Warning(const char* aMessage,
const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("Warning: \"%s\" at file %s, line %d", aMessage, aFile, aLine));
PR_LogFlush();
}

View File

@@ -1,183 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsDebug_h___
#define nsDebug_h___
#include "nsCom.h"
#include "prtypes.h"
#ifdef DEBUG
#define NS_DEBUG
#endif
/**
* Namespace for debugging methods. Note that your code must use the
* macros defined later in this file so that the debug code can be
* conditionally compiled out.
*/
/* in case this is included by a C file */
#ifdef __cplusplus
class nsDebug {
public:
// XXX add in log controls here
// XXX probably want printf type arguments
/**
* Abort the executing program. This works on all architectures.
*/
static NS_COM void Abort(const char* aFile, PRIntn aLine);
/**
* Break the executing program into the debugger.
*/
static NS_COM void Break(const char* aFile, PRIntn aLine);
/**
* Log a pre-condition message to the debug log
*/
static NS_COM void PreCondition(const char* aStr, const char* aExpr,
const char* aFile, PRIntn aLine);
/**
* Log a post-condition message to the debug log
*/
static NS_COM void PostCondition(const char* aStr, const char* aExpr,
const char* aFile, PRIntn aLine);
/**
* Log an assertion message to the debug log
*/
static NS_COM void Assertion(const char* aStr, const char* aExpr,
const char* aFile, PRIntn aLine);
/**
* Log a not-yet-implemented message to the debug log
*/
static NS_COM void NotYetImplemented(const char* aMessage,
const char* aFile, PRIntn aLine);
/**
* Log a not-reached message to the debug log
*/
static NS_COM void NotReached(const char* aMessage,
const char* aFile, PRIntn aLine);
/**
* Log an error message to the debug log. This call returns.
*/
static NS_COM void Error(const char* aMessage,
const char* aFile, PRIntn aLine);
/**
* Log a warning message to the debug log.
*/
static NS_COM void Warning(const char* aMessage,
const char* aFile, PRIntn aLine);
};
#ifdef NS_DEBUG
/**
* Test a precondition for truth. If the expression is not true then
* trigger a program failure.
*/
#define NS_PRECONDITION(expr,str) \
if (!(expr)) \
nsDebug::PreCondition(str, #expr, __FILE__, __LINE__)
/**
* Test an assertion for truth. If the expression is not true then
* trigger a program failure.
*/
#define NS_ASSERTION(expr,str) \
if (!(expr)) \
nsDebug::Assertion(str, #expr, __FILE__, __LINE__)
/**
* Test an assertion for truth. If the expression is not true then
* trigger a program failure. The expression will still be
* executed in release mode.
*/
#define NS_VERIFY(expr,str) \
if (!(expr)) \
nsDebug::Assertion(str, #expr, __FILE__, __LINE__)
/**
* Test a post-condition for truth. If the expression is not true then
* trigger a program failure.
*/
#define NS_POSTCONDITION(expr,str) \
if (!(expr)) \
nsDebug::PostCondition(str, #expr, __FILE__, __LINE__)
/**
* This macros triggers a program failure if executed. It indicates that
* an attempt was made to execute some unimplimented functionality.
*/
#define NS_NOTYETIMPLEMENTED(str) \
nsDebug::NotYetImplemented(str, __FILE__, __LINE__)
/**
* This macros triggers a program failure if executed. It indicates that
* an attempt was made to execute some unimplimented functionality.
*/
#define NS_NOTREACHED(str) \
nsDebug::NotReached(str, __FILE__, __LINE__)
/**
* Log an error message.
*/
#define NS_ERROR(str) \
nsDebug::Error(str, __FILE__, __LINE__)
/**
* Log a warning message.
*/
#define NS_WARNING(str) \
nsDebug::Warning(str, __FILE__, __LINE__)
/**
* Trigger an abort
*/
#define NS_ABORT() \
nsDebug::Abort(__FILE__, __LINE__)
/**
* Cause a break
*/
#define NS_BREAK() \
nsDebug::Break(__FILE__, __LINE__)
#else /* NS_DEBUG */
#define NS_PRECONDITION(expr,str) {}
#define NS_ASSERTION(expr,str) {}
#define NS_VERIFY(expr,str) expr
#define NS_POSTCONDITION(expr,str) {}
#define NS_NOTYETIMPLEMENTED(str) {}
#define NS_NOTREACHED(str) {}
#define NS_ERROR(str) {}
#define NS_WARNING(str) {}
#define NS_ABORT() {}
#define NS_BREAK() {}
#endif /* ! NS_DEBUG */
#endif /* __cplusplus */
#endif /* nsDebug_h___ */

View File

@@ -1,195 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsError_h
#define nsError_h
#ifndef prtypes_h___
#include "prtypes.h"
#endif
/**
* Generic result data type
*/
typedef PRUint32 nsresult;
/*
* To add error code to your module, you need to do the following:
*
* 1) Add a module offset code. Add yours to the bottom of the list
* right below this comment, adding 1.
*
* 2) In your module, define a header file which uses one of the
* NE_ERROR_GENERATExxxxxx macros. Some examples below:
*
* #define NS_ERROR_MYMODULE_MYERROR1 NS_ERROR_GENERATE(NS_ERROR_SEVERITY_ERROR,NS_ERROR_MODULE_MYMODULE,1)
* #define NS_ERROR_MYMODULE_MYERROR2 NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_MYMODULE,2)
* #define NS_ERROR_MYMODULE_MYERROR3 NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_MYMODULE,3)
*
*/
/**
* @name Standard Module Offset Code. Each Module should identify a unique number
* and then all errors associated with that module become offsets from the
* base associated with that module id. There are 16 bits of code bits for
* each module.
*/
#define NS_ERROR_MODULE_XPCOM 1
#define NS_ERROR_MODULE_BASE 2
#define NS_ERROR_MODULE_GFX 3
#define NS_ERROR_MODULE_WIDGET 4
#define NS_ERROR_MODULE_CALENDAR 5
#define NS_ERROR_MODULE_NETWORK 6
#define NS_ERROR_MODULE_PLUGINS 7
#define NS_ERROR_MODULE_LAYOUT 8
#define NS_ERROR_MODULE_HTMLPARSER 9
#define NS_ERROR_MODULE_RDF 10
#define NS_ERROR_MODULE_UCONV 11
#define NS_ERROR_MODULE_REG 12
#define NS_ERROR_MODULE_FILES 13
#define NS_ERROR_MODULE_MAILNEWS 16
#define NS_ERROR_MODULE_EDITOR 17
/**
* @name Standard Error Handling Macros
*/
#define NS_FAILED(_nsresult) ((_nsresult) & 0x80000000)
#define NS_SUCCEEDED(_nsresult) (!((_nsresult) & 0x80000000))
/**
* @name Severity Code. This flag identifies the level of warning
*/
#define NS_ERROR_SEVERITY_SUCCESS 0
#define NS_ERROR_SEVERITY_ERROR 1
/**
* @name Mozilla Code. This flag separates consumers of mozilla code
* from the native platform
*/
#define NS_ERROR_MODULE_BASE_OFFSET 0x45
/**
* @name Standard Error Generating Macros
*/
#define NS_ERROR_GENERATE(sev,module,code) \
((nsresult) (((PRUint32)(sev)<<31) | ((PRUint32)(module+NS_ERROR_MODULE_BASE_OFFSET)<<16) | ((PRUint32)(code))) )
#define NS_ERROR_GENERATE_SUCCESS(module,code) \
((nsresult) (((PRUint32)(NS_ERROR_SEVERITY_SUCCESS)<<31) | ((PRUint32)(module+NS_ERROR_MODULE_BASE_OFFSET)<<16) | ((PRUint32)(code))) )
#define NS_ERROR_GENERATE_FAILURE(module,code) \
((nsresult) (((PRUint32)(NS_ERROR_SEVERITY_ERROR)<<31) | ((PRUint32)(module+NS_ERROR_MODULE_BASE_OFFSET)<<16) | ((PRUint32)(code))) )
/**
* @name Standard Macros for retrieving error bits
*/
#if PR_BYTES_PER_INT == 4
#define NS_IS_ERROR(err) (((nsresult)(err))<0)
#else
#define NS_IS_ERROR(err) (((((PRUint32)(err)) >> 31) & 0x1) == NS_ERROR_SEVERITY_ERROR)
#endif
#define NS_ERROR_GET_CODE(err) ((err) & 0xffff)
#define NS_ERROR_GET_MODULE(err) (((((err) >> 16) - NS_ERROR_MODULE_BASE_OFFSET) & 0x1fff))
#define NS_ERROR_GET_SEVERITY(err) (((err) >> 31) & 0x1)
/**
* @name Standard return values
*/
/*@{*/
/* Standard "it worked" return value */
#define NS_OK 0
/* The backwards COM false */
#define NS_COMFALSE 1
#define NS_ERROR_BASE ((nsresult) 0xC1F30000)
/* Returned when an instance is not initialized */
#define NS_ERROR_NOT_INITIALIZED (NS_ERROR_BASE + 1)
/* Returned when an instance is already initialized */
#define NS_ERROR_ALREADY_INITIALIZED (NS_ERROR_BASE + 2)
/* Returned by a not implemented function */
#define NS_ERROR_NOT_IMPLEMENTED ((nsresult) 0x80004001L)
/* Returned when a given interface is not supported. */
#define NS_NOINTERFACE ((nsresult) 0x80004002L)
#define NS_ERROR_NO_INTERFACE NS_NOINTERFACE
#define NS_ERROR_INVALID_POINTER ((nsresult) 0x80004003L)
#define NS_ERROR_NULL_POINTER NS_ERROR_INVALID_POINTER
/* Returned when a function aborts */
#define NS_ERROR_ABORT ((nsresult) 0x80004004L)
/* Returned when a function fails */
#define NS_ERROR_FAILURE ((nsresult) 0x80004005L)
/* Returned when an unexpected error occurs */
#define NS_ERROR_UNEXPECTED ((nsresult) 0x8000ffffL)
/* Returned when a memory allocation failes */
#define NS_ERROR_OUT_OF_MEMORY ((nsresult) 0x8007000eL)
/* Returned when an illegal value is passed */
#define NS_ERROR_ILLEGAL_VALUE ((nsresult) 0x80070057L)
#define NS_ERROR_INVALID_ARG NS_ERROR_ILLEGAL_VALUE
/* Returned when a class doesn't allow aggregation */
#define NS_ERROR_NO_AGGREGATION ((nsresult) 0x80040110L)
/* Returned when a class doesn't allow aggregation */
#define NS_ERROR_NOT_AVAILABLE ((nsresult) 0x80040111L)
/* Returned when a class is not registered */
#define NS_ERROR_FACTORY_NOT_REGISTERED ((nsresult) 0x80040154L)
/* Returned when a dynamically loaded factory couldn't be found */
#define NS_ERROR_FACTORY_NOT_LOADED ((nsresult) 0x800401f8L)
/* Returned when a factory doesn't support signatures */
#define NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT \
(NS_ERROR_BASE + 0x101)
/* Returned when a factory already is registered */
#define NS_ERROR_FACTORY_EXISTS (NS_ERROR_BASE + 0x100)
/*@}*/
////////////////////////////////////////////////////////////////////////////////
#ifdef XP_PC
#pragma warning(disable: 4251) // 'nsCOMPtr<class nsIInputStream>' needs to have dll-interface to be used by clients of class 'nsInputStream'
#pragma warning(disable: 4275) // non dll-interface class 'nsISupports' used as base for dll-interface class 'nsIRDFNode'
#endif
#endif

View File

@@ -1,110 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIAllocator_h___
#define nsIAllocator_h___
#include "nsISupports.h"
/**
* Unlike IMalloc, this interface returns nsresults and doesn't
* implement the problematic GetSize and DidAlloc routines.
*/
#define NS_IALLOCATOR_IID \
{ /* 56def700-b1b9-11d2-8177-006008119d7a */ \
0x56def700, \
0xb1b9, \
0x11d2, \
{0x81, 0x77, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a} \
}
class nsIAllocator : public nsISupports {
public:
static const nsIID& GetIID() { static nsIID iid = NS_IALLOCATOR_IID; return iid; }
/**
* Allocates a block of memory of a particular size.
*
* @param size - the size of the block to allocate
* @result the block of memory
*/
NS_IMETHOD_(void*) Alloc(PRUint32 size) = 0;
/**
* Reallocates a block of memory to a new size.
*
* @param ptr - the block of memory to reallocate
* @param size - the new size
* @param oldSize - the current size of the block. If -1 (the default),
* the implementation must be able to determine the block size by
* examining the block pointer.
* @result the rellocated block of memory
*/
NS_IMETHOD_(void*) Realloc(void* ptr, PRUint32 size,
PRInt32 oldSize = -1) = 0;
/**
* Frees a block of memory.
*
* @param ptr - the block of memory to free
* @param size - the size of the block to be freed. If -1 (the default),
* the implementation must be able to determine the block size by
* examining the block pointer.
*/
NS_IMETHOD Free(void* ptr, PRInt32 size = -1) = 0;
/**
* Attempts to shrink the heap.
*/
NS_IMETHOD HeapMinimize(void) = 0;
};
// To get the global memory manager service:
#define NS_ALLOCATOR_CID \
{ /* aafe6770-b1bb-11d2-8177-006008119d7a */ \
0xaafe6770, \
0xb1bb, \
0x11d2, \
{0x81, 0x77, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a} \
}
/*
* Public shortcuts to the shared allocator's methods
*/
class nsAllocator
{
public:
static NS_EXPORT void* Alloc(PRUint32 size);
static NS_EXPORT void* Realloc(void* ptr, PRUint32 size);
static NS_EXPORT void Free(void* ptr);
static NS_EXPORT void HeapMinimize();
static NS_EXPORT void* Clone(const void* ptr, PRUint32 size);
private:
nsAllocator(); // not implemented
static PRBool EnsureAllocator() {return mAllocator || FetchAllocator();}
static PRBool FetchAllocator();
static nsIAllocator* mAllocator;
};
////////////////////////////////////////////////////////////////////////////////
#endif /* nsIAllocator_h___ */

View File

@@ -1,73 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsID.h"
#include "prprf.h"
static const char gIDFormat[] =
"{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}";
static const char gIDFormat2[] =
"%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x";
/*
* Turns a {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} string into
* an nsID
*/
NS_COM PRBool nsID::Parse(char *aIDStr)
{
PRInt32 count = 0;
PRInt32 n1, n2, n3[8];
PRInt32 n0;
if (NULL != aIDStr) {
count = PR_sscanf(aIDStr,
(aIDStr[0] == '{') ? gIDFormat : gIDFormat2,
&n0, &n1, &n2,
&n3[0],&n3[1],&n3[2],&n3[3],
&n3[4],&n3[5],&n3[6],&n3[7]);
m0 = (PRInt32) n0;
m1 = (PRInt16) n1;
m2 = (PRInt16) n2;
for (int i = 0; i < 8; i++) {
m3[i] = (PRInt8) n3[i];
}
}
return (PRBool) (count == 11);
}
/*
* Returns an allocated string in {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
* format. Caller should delete [] the string.
*/
NS_COM char *nsID::ToString() const
{
char *res = new char[39];
if (res != NULL) {
PR_snprintf(res, 39, gIDFormat,
m0, (PRUint32) m1, (PRUint32) m2,
(PRUint32) m3[0], (PRUint32) m3[1], (PRUint32) m3[2],
(PRUint32) m3[3], (PRUint32) m3[4], (PRUint32) m3[5],
(PRUint32) m3[6], (PRUint32) m3[7]);
}
return res;
}

View File

@@ -1,101 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsID_h__
#define nsID_h__
#include "prtypes.h"
#include "string.h"
#include "nsCom.h"
/**
* A "unique identifier". This is modeled after OSF DCE UUIDs.
*/
struct nsID {
/**
* @name Indentifier values
*/
//@{
PRUint32 m0;
PRUint16 m1;
PRUint16 m2;
PRUint8 m3[8];
//@}
/**
* @name Methods
*/
//@{
/**
* Equivalency method. Compares this nsID with another.
* @return <b>PR_TRUE</b> if they are the same, <b>PR_FALSE</b> if not.
*/
inline PRBool Equals(const nsID& other) const {
return (PRBool)
((((PRUint32*) &m0)[0] == ((PRUint32*) &other.m0)[0]) &&
(((PRUint32*) &m0)[1] == ((PRUint32*) &other.m0)[1]) &&
(((PRUint32*) &m0)[2] == ((PRUint32*) &other.m0)[2]) &&
(((PRUint32*) &m0)[3] == ((PRUint32*) &other.m0)[3]));
}
/**
* nsID Parsing method. Turns a {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
* string into an nsID
*/
NS_COM PRBool Parse(char *aIDStr);
/**
* nsID string encoder. Returns an allocated string in
* {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} format. Caller should free string.
*/
NS_COM char* ToString() const;
//@}
};
/**
* Declare an ID. If NS_IMPL_IDS is set, a variable <i>_name</i> is declared
* with the given values, otherwise <i>_name</i> is declared as an
* <tt>extern</tt> variable.
*/
#ifdef NS_IMPL_IDS
#define NS_DECLARE_ID(_name,m0,m1,m2,m30,m31,m32,m33,m34,m35,m36,m37) \
extern "C" const nsID _name = {m0,m1,m2,{m30,m31,m32,m33,m34,m35,m36,m37}}
#else
#define NS_DECLARE_ID(_name,m0,m1,m2,m30,m31,m32,m33,m34,m35,m36,m37) \
extern "C" const nsID _name
#endif
/*
* Class IDs
*/
typedef nsID nsCID;
// Define an CID
#define NS_DEFINE_CID(_name, _cidspec) \
const nsCID _name = _cidspec
#define REFNSCID const nsCID&
#endif

View File

@@ -1,44 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef __nsIID_h
#define __nsIID_h
#include "nsID.h"
/**
* An "interface id" which can be used to uniquely identify a given
* interface.
*/
typedef nsID nsIID;
/**
* A macro shorthand for <tt>const nsIID&<tt>
*/
#define REFNSIID const nsIID&
/**
* Define an IID (obsolete)
*/
#define NS_DEFINE_IID(_name, _iidspec) \
const nsIID _name = _iidspec
#endif /* __nsIID_h */

View File

@@ -1,142 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIPtr_h___
#define nsIPtr_h___
#include "nsISupports.h"
/*
* nsIPtr is an "auto-release pointer" class for nsISupports based interfaces
*
* It's intent is to be a "set and forget" pointer to help with managing
* active references to nsISupports bases objects.
*
* The pointer object ensures that the underlying pointer is always
* released whenever the value is changed or when the object leaves scope.
*
* Proper care needs to be taken when assigning pointers to a nsIPtr.
* When asigning from a C pointer (nsISupports*), the pointer presumes
* an active reference and subsumes it. When assigning from another nsIPtr,
* a new reference is established.
*
* There are 3 ways to assign a value to a nsIPtr.
* 1) Direct construction or assignment from a C pointer.
* 2) Direct construction or assignment form another nsIPtr.
* 3) Usage of an "out parameter" method.
* a) AssignRef() releases the underlying pointer and returns a reference to it.
* Useful for pointer reference out paramaters.
* b) AssignPtr() releases the underlying pointer and returns a pointer to it.
* c) Query() releases the underlying pointer and returns a (void**) pointer to it.
* Useful for calls to QueryInterface()
* 4) The SetAddRef() method. This is equivalent to an assignment followed by an AddRef().
*
* examples:
*
* class It {
* void NS_NewFoo(nsIFoo** aFoo);
* nsIFoo* GetFoo(void);
* void GetBar(nsIBar*& aBar);
* };
*
* nsIFooPtr foo = it->GetFoo();
* nsIBarPtr bar;
*
* it->NS_NewFoo(foo.AssignPtr());
* it->GetBar(bar.AssignRef());
* it->QueryInterface(kIFooIID, foo.Query());
* bar.SetAddRef(new Bar());
*
* Advantages:
* Set and forget. Once a pointer is assigned to a nsIPtr, it is impossible
* to forget to release it.
* Always pre-initialized. You can't forget to initialize the pointer.
*
* Disadvantages:
* Usage of this class doesn't eliminate the need to think about ref counts
* and assign values properly, AddRef'ing as needed.
* The nsIPtr doesn't typecast exactly like a C pointer. In order to achieve
* typecasting, it may be necessary to first cast to a C pointer of the
* underlying type.
*
*/
#define NS_DEF_PTR(cls) \
class cls##Ptr { \
public: \
cls##Ptr(void) : mPtr(0) {} \
cls##Ptr(const cls##Ptr& aCopy) : mPtr(aCopy.mPtr) \
{ NS_IF_ADDREF(mPtr); } \
cls##Ptr(cls* aInterface) : mPtr(aInterface) {} \
~cls##Ptr(void) { NS_IF_RELEASE(mPtr); } \
cls##Ptr& operator=(const cls##Ptr& aCopy) \
{ if(mPtr == aCopy.mPtr) return *this; \
NS_IF_ADDREF(aCopy.mPtr); \
NS_IF_RELEASE(mPtr); \
mPtr = aCopy.mPtr; return *this; } \
cls##Ptr& operator=(cls* aInterface) \
{ if(mPtr == aInterface) return *this; \
NS_IF_RELEASE(mPtr); mPtr = aInterface; \
return *this; } \
cls##Ptr& operator=(PRInt32 aInt) \
{ NS_IF_RELEASE(mPtr); \
return *this; } \
void SetAddRef(cls* aInterface) \
{ if(aInterface == mPtr) return; \
NS_IF_ADDREF(aInterface); \
NS_IF_RELEASE(mPtr); mPtr = aInterface; } \
cls* AddRef(void) { NS_ADDREF(mPtr); return mPtr; } \
cls* IfAddRef(void) \
{ NS_IF_ADDREF(mPtr); return mPtr; } \
cls*& AssignRef(void) \
{ NS_IF_RELEASE(mPtr); return mPtr; } \
cls** AssignPtr(void) \
{ NS_IF_RELEASE(mPtr); return &mPtr; } \
void** Query(void) \
{ NS_IF_RELEASE(mPtr); return (void**)&mPtr; } \
PRBool IsNull() const \
{ return PRBool(0 == mPtr); } \
PRBool IsNotNull() const \
{ return PRBool(0 != mPtr); } \
PRBool operator==(const cls##Ptr& aCopy) const \
{ return PRBool(mPtr == aCopy.mPtr); } \
PRBool operator==(cls* aInterface) const \
{ return PRBool(mPtr == aInterface); } \
PRBool operator!=(const cls##Ptr& aCopy) const \
{ return PRBool(mPtr != aCopy.mPtr); } \
PRBool operator!=(cls* aInterface) const \
{ return PRBool(mPtr != aInterface); } \
cls* operator->(void) { return mPtr; } \
cls& operator*(void) { return *mPtr; } \
operator cls*(void) { return mPtr; } \
const cls* operator->(void) const { return mPtr; } \
const cls& operator*(void) const { return *mPtr; } \
operator const cls* (void) const { return mPtr; } \
private: \
void* operator new(size_t size) { return 0; } \
void operator delete(void* aPtr) {} \
cls* mPtr; \
public: \
friend inline PRBool operator==(const cls* aInterface, const cls##Ptr& aPtr) \
{ return PRBool(aInterface == aPtr.mPtr); } \
friend inline PRBool operator!=(const cls* aInterface, const cls##Ptr& aPtr) \
{ return PRBool(aInterface != aPtr.mPtr); } \
}
#endif // nsIPtr_h___

View File

@@ -1,557 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef __nsISupportsUtils_h
#define __nsISupportsUtils_h
/**
* A macro to build the static const IID accessor method
*/
#define NS_DEFINE_STATIC_IID_ACCESSOR(the_iid) \
static const nsIID& GetIID() {static nsIID iid = the_iid; return iid;}
/**
* A macro to build the static const CID accessor method
*/
#define NS_DEFINE_STATIC_CID_ACCESSOR(the_cid) \
static const nsID& GetCID() {static nsID cid = the_cid; return cid;}
/**
* Some convenience macros for implementing AddRef and Release
*/
/**
* Declare the reference count variable and the implementations of the
* AddRef and QueryInterface methods.
*/
#define NS_DECL_ISUPPORTS \
public: \
NS_IMETHOD QueryInterface(REFNSIID aIID, \
void** aInstancePtr); \
NS_IMETHOD_(nsrefcnt) AddRef(void); \
NS_IMETHOD_(nsrefcnt) Release(void); \
protected: \
nsrefcnt mRefCnt; \
public:
#define NS_DECL_ISUPPORTS_EXPORTED \
public: \
NS_EXPORT NS_IMETHOD QueryInterface(REFNSIID aIID, \
void** aInstancePtr); \
NS_EXPORT NS_IMETHOD_(nsrefcnt) AddRef(void); \
NS_EXPORT NS_IMETHOD_(nsrefcnt) Release(void); \
protected: \
nsrefcnt mRefCnt; \
public:
////////////////////////////////////////////////////////////////////////////////
/**
* Initialize the reference count variable. Add this to each and every
* constructor you implement.
*/
#define NS_INIT_REFCNT() mRefCnt = 0
#define NS_INIT_ISUPPORTS() NS_INIT_REFCNT() // what it should have been called in the first place
/**
* Use this macro to implement the AddRef method for a given <i>_class</i>
* @param _class The name of the class implementing the method
*/
#define NS_IMPL_ADDREF(_class) \
NS_IMETHODIMP_(nsrefcnt) _class::AddRef(void) \
{ \
NS_PRECONDITION(PRInt32(mRefCnt) >= 0, "illegal refcnt"); \
return ++mRefCnt; \
}
/**
* Use this macro to implement the Release method for a given <i>_class</i>
* @param _class The name of the class implementing the method
*/
#define NS_IMPL_RELEASE(_class) \
NS_IMETHODIMP_(nsrefcnt) _class::Release(void) \
{ \
NS_PRECONDITION(0 != mRefCnt, "dup release"); \
if (--mRefCnt == 0) { \
NS_DELETEXPCOM(this); \
return 0; \
} \
return mRefCnt; \
}
////////////////////////////////////////////////////////////////////////////////
/*
* Some convenience macros for implementing QueryInterface
*/
/**
* This implements query interface with two assumptions: First, the
* class in question implements nsISupports and it's own interface and
* nothing else. Second, the implementation of the class's primary
* inheritance chain leads to it's own interface.
*
* @param _class The name of the class implementing the method
* @param _classiiddef The name of the #define symbol that defines the IID
* for the class (e.g. NS_ISUPPORTS_IID)
*/
#define NS_IMPL_QUERY_INTERFACE(_class,_classiiddef) \
NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \
{ \
if (NULL == aInstancePtr) { \
return NS_ERROR_NULL_POINTER; \
} \
\
*aInstancePtr = NULL; \
\
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); \
static NS_DEFINE_IID(kClassIID, _classiiddef); \
if (aIID.Equals(kClassIID)) { \
*aInstancePtr = (void*) this; \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
if (aIID.Equals(kISupportsIID)) { \
*aInstancePtr = (void*) ((nsISupports*)this); \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
return NS_NOINTERFACE; \
}
/**
* Convenience macro for implementing all nsISupports methods for
* a simple class.
* @param _class The name of the class implementing the method
* @param _classiiddef The name of the #define symbol that defines the IID
* for the class (e.g. NS_ISUPPORTS_IID)
*/
#define NS_IMPL_ISUPPORTS(_class,_classiiddef) \
NS_IMPL_ADDREF(_class) \
NS_IMPL_RELEASE(_class) \
NS_IMPL_QUERY_INTERFACE(_class,_classiiddef)
////////////////////////////////////////////////////////////////////////////////
/**
* Declare that you're going to inherit from something that already
* implements nsISupports, but also implements an additional interface, thus
* causing an ambiguity. In this case you don't need another mRefCnt, you
* just need to forward the definitions to the appropriate superclass. E.g.
*
* class Bar : public Foo, public nsIBar { // both provide nsISupports
* public:
* NS_DECL_ISUPPORTS_INHERITED
* ...other nsIBar and Bar methods...
* };
*/
#define NS_DECL_ISUPPORTS_INHERITED \
public: \
NS_IMETHOD QueryInterface(REFNSIID aIID, \
void** aInstancePtr); \
NS_IMETHOD_(nsrefcnt) AddRef(void); \
NS_IMETHOD_(nsrefcnt) Release(void); \
/**
* These macros can be used in conjunction with NS_DECL_ISUPPORTS_INHERITED
* to implement the nsISupports methods, forwarding the invocations to a
* superclass that already implements nsISupports.
*
* Note that I didn't make these inlined because they're virtual methods.
*/
#define NS_IMPL_ADDREF_INHERITED(Class, Super) \
NS_IMETHODIMP_(nsrefcnt) Class::AddRef(void) \
{ \
return Super::AddRef(); \
} \
#define NS_IMPL_RELEASE_INHERITED(Class, Super) \
NS_IMETHODIMP_(nsrefcnt) Class::Release(void) \
{ \
return Super::Release(); \
} \
#define NS_IMPL_QUERY_INTERFACE_INHERITED(Class, Super, AdditionalInterface) \
NS_IMETHODIMP Class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \
{ \
if (!aInstancePtr) return NS_ERROR_NULL_POINTER; \
if (aIID.Equals(AdditionalInterface::GetIID())) { \
*aInstancePtr = NS_STATIC_CAST(AdditionalInterface*, this); \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
return Super::QueryInterface(aIID, aInstancePtr); \
} \
#define NS_IMPL_ISUPPORTS_INHERITED(Class, Super, AdditionalInterface) \
NS_IMPL_QUERY_INTERFACE_INHERITED(Class, Super, AdditionalInterface) \
NS_IMPL_ADDREF_INHERITED(Class, Super) \
NS_IMPL_RELEASE_INHERITED(Class, Super) \
////////////////////////////////////////////////////////////////////////////////
/**
*
* Threadsafe implementations of the ISupports convenience macros
*
*/
/**
* IID for the nsIsThreadsafe interface
* {88210890-47a6-11d2-bec3-00805f8a66dc}
*
* This interface is *only* used for debugging purposes to determine if
* a given component is threadsafe.
*/
#define NS_ISTHREADSAFE_IID \
{ 0x88210890, 0x47a6, 0x11d2, \
{0xbe, 0xc3, 0x00, 0x80, 0x5f, 0x8a, 0x66, 0xdc} }
#if defined(NS_MT_SUPPORTED)
#define NS_LOCK_INSTANCE() \
PR_CEnterMonitor((void*)this)
#define NS_UNLOCK_INSTANCE() \
PR_CExitMonitor((void*)this)
/**
* Use this macro to implement the AddRef method for a given <i>_class</i>
* @param _class The name of the class implementing the method
*/
#if defined(XP_PC)
#define NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMETHODIMP_(nsrefcnt) _class::AddRef(void) \
{ \
NS_PRECONDITION(PRInt32(mRefCnt) >= 0, "illegal refcnt"); \
return InterlockedIncrement((LONG*)&mRefCnt); \
}
#else /* ! XP_PC */
#define NS_IMPL_THREADSAFE_ADDREF(_class) \
nsrefcnt _class::AddRef(void) \
{ \
nsrefcnt count; \
NS_LOCK_INSTANCE(); \
NS_PRECONDITION(PRInt32(mRefCnt) >= 0, "illegal refcnt"); \
count = ++mRefCnt; \
NS_UNLOCK_INSTANCE(); \
return count; \
}
#endif /* ! XP_PC */
/**
* Use this macro to implement the Release method for a given <i>_class</i>
* @param _class The name of the class implementing the method
*/
#if defined(XP_PC)
#define NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMETHODIMP_(nsrefcnt) _class::Release(void) \
{ \
NS_PRECONDITION(0 != mRefCnt, "dup release"); \
if (0 == InterlockedDecrement((LONG*)&mRefCnt)) { \
NS_DELETEXPCOM(this); \
return 0; \
} \
return mRefCnt; /* Not threadsafe but who cares. */ \
}
#else /* ! XP_PC */
#define NS_IMPL_THREADSAFE_RELEASE(_class) \
nsrefcnt _class::Release(void) \
{ \
nsrefcnt count; \
NS_PRECONDITION(0 != mRefCnt, "dup release"); \
NS_LOCK_INSTANCE(); \
count = --mRefCnt; \
NS_UNLOCK_INSTANCE(); \
if (0 == count) { \
NS_DELETEXPCOM(this); \
return 0; \
} \
return count; \
}
#endif /* ! XP_PC */
////////////////////////////////////////////////////////////////////////////////
/*
* Some convenience macros for implementing QueryInterface
*/
/**
* This implements query interface with two assumptions: First, the
* class in question implements nsISupports and it's own interface and
* nothing else. Second, the implementation of the class's primary
* inheritance chain leads to it's own interface.
*
* @param _class The name of the class implementing the method
* @param _classiiddef The name of the #define symbol that defines the IID
* for the class (e.g. NS_ISUPPORTS_IID)
*/
#if defined(NS_DEBUG)
#define NS_VERIFY_THREADSAFE_INTERFACE(_iface) \
if (NULL != (_iface)) { \
nsISupports* tmp; \
static NS_DEFINE_IID(kIsThreadsafeIID, NS_ISTHREADSAFE_IID); \
NS_PRECONDITION((NS_OK == _iface->QueryInterface(kIsThreadsafeIID, \
(void**)&tmp)), \
"Interface is not threadsafe"); \
}
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE(_class,_classiiddef) \
NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \
{ \
if (NULL == aInstancePtr) { \
return NS_ERROR_NULL_POINTER; \
} \
\
*aInstancePtr = NULL; \
\
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); \
static NS_DEFINE_IID(kIsThreadsafeIID, NS_ISTHREADSAFE_IID); \
static NS_DEFINE_IID(kClassIID, _classiiddef); \
if (aIID.Equals(kClassIID)) { \
*aInstancePtr = (void*) this; \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
if (aIID.Equals(kISupportsIID)) { \
*aInstancePtr = (void*) ((nsISupports*)this); \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
if (aIID.Equals(kIsThreadsafeIID)) { \
return NS_OK; \
} \
return NS_NOINTERFACE; \
}
#else /* !NS_DEBUG */
#define NS_VERIFY_THREADSAFE_INTERFACE(_iface)
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE(_class,_classiiddef) \
NS_IMPL_QUERY_INTERFACE(_class, _classiiddef)
#endif /* !NS_DEBUG */
/**
* Convenience macro for implementing all nsISupports methods for
* a simple class.
* @param _class The name of the class implementing the method
* @param _classiiddef The name of the #define symbol that defines the IID
* for the class (e.g. NS_ISUPPORTS_IID)
*/
#define NS_IMPL_THREADSAFE_ISUPPORTS(_class,_classiiddef) \
NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMPL_THREADSAFE_QUERY_INTERFACE(_class,_classiiddef)
#else /* !NS_MT_SUPPORTED */
#define NS_LOCK_INSTANCE()
#define NS_UNLOCK_INSTANCE()
#define NS_IMPL_THREADSAFE_ADDREF(_class) NS_IMPL_ADDREF(_class)
#define NS_IMPL_THREADSAFE_RELEASE(_class) NS_IMPL_RELEASE(_class)
#define NS_VERIFY_THREADSAFE_INTERFACE(_iface)
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE(_class,_classiiddef) \
NS_IMPL_QUERY_INTERFACE(_class, _classiiddef)
#define NS_IMPL_THREADSAFE_ISUPPORTS(_class,_classiiddef) \
NS_IMPL_ADDREF(_class) \
NS_IMPL_RELEASE(_class) \
NS_IMPL_QUERY_INTERFACE(_class,_classiiddef)
#endif /* !NS_MT_SUPPORTED */
////////////////////////////////////////////////////////////////////////////////
// Debugging Macros
////////////////////////////////////////////////////////////////////////////////
/**
* Macro for instantiating a new object that implements nsISupports.
* Use this in your factory methods to allow for refcnt tracing.
* Note that you can only use this if you adhere to the no arguments
* constructor com policy (which you really should!).
* @param _result Where the new instance pointer is stored
* @param _type The type of object to call "new" with.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_NEWXPCOM(_result,_type) \
PR_BEGIN_MACRO \
_result = new _type(); \
nsTraceRefcnt::Create(_result, #_type, __FILE__, __LINE__); \
PR_END_MACRO
#else
#define NS_NEWXPCOM(_result,_type) \
_result = new _type()
#endif
/**
* Macro for deleting an object that implements nsISupports.
* Use this in your Release methods to allow for refcnt tracing.
* @param _ptr The object to delete.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_DELETEXPCOM(_ptr) \
PR_BEGIN_MACRO \
nsTraceRefcnt::Destroy((_ptr), __FILE__, __LINE__); \
delete (_ptr); \
PR_END_MACRO
#else
#define NS_DELETEXPCOM(_ptr) \
delete (_ptr)
#endif
/**
* Macro for adding a reference to an interface.
* @param _ptr The interface pointer.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_ADDREF(_ptr) \
((nsrefcnt) nsTraceRefcnt::AddRef((_ptr), (_ptr)->AddRef(), \
__FILE__, __LINE__))
#else
#define NS_ADDREF(_ptr) \
(_ptr)->AddRef()
#endif
/**
* Macro for adding a reference to this. This macro should be used
* because NS_ADDREF (when tracing) may require an ambiguous cast
* from the pointers primary type to nsISupports. This macro sidesteps
* that entire problem.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_ADDREF_THIS() \
((nsrefcnt) nsTraceRefcnt::AddRef(this, AddRef(), __FILE__, __LINE__))
#else
#define NS_ADDREF_THIS() \
AddRef()
#endif
/**
* Macro for adding a reference to an interface that checks for NULL.
* @param _ptr The interface pointer.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_IF_ADDREF(_ptr) \
((0 != (_ptr)) \
? ((nsrefcnt) nsTraceRefcnt::AddRef((_ptr), (_ptr)->AddRef(), __FILE__, \
__LINE__)) \
: 0)
#else
#define NS_IF_ADDREF(_ptr) \
((0 != (_ptr)) ? (_ptr)->AddRef() : 0)
#endif
/**
* Macro for releasing a reference to an interface.
*
* Note that when MOZ_TRACE_XPCOM_REFCNT is defined that the release will
* be done before the trace message is logged. If the reference count
* goes to zero and implementation of Release logs a message, the two
* messages will be logged out of order.
*
* @param _ptr The interface pointer.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_RELEASE(_ptr) \
PR_BEGIN_MACRO \
nsTraceRefcnt::Release((_ptr), (_ptr)->Release(), __FILE__, __LINE__); \
(_ptr) = 0; \
PR_END_MACRO
#else
#define NS_RELEASE(_ptr) \
PR_BEGIN_MACRO \
(_ptr)->Release(); \
(_ptr) = 0; \
PR_END_MACRO
#endif
/**
* Macro for releasing a reference to an interface, except that this
* macro preserves the return value from the underlying Release call.
* The interface pointer argument will only be NULLed if the reference count
* goes to zero.
*
* Note that when MOZ_TRACE_XPCOM_REFCNT is defined that the release will
* be done before the trace message is logged. If the reference count
* goes to zero and implementation of Release logs a message, the two
* messages will be logged out of order.
*
* @param _ptr The interface pointer.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_RELEASE2(_ptr, _result) \
PR_BEGIN_MACRO \
_result = ((nsrefcnt) nsTraceRefcnt::Release((_ptr), (_ptr)->Release(), \
__FILE__, __LINE__)); \
if (0 == (_result)) (_ptr) = 0; \
PR_END_MACRO
#else
#define NS_RELEASE2(_ptr, _result) \
PR_BEGIN_MACRO \
_result = (_ptr)->Release(); \
if (0 == (_result)) (_ptr) = 0; \
PR_END_MACRO
#endif
/**
* Macro for releasing a reference to an interface that checks for NULL;
*
* Note that when MOZ_TRACE_XPCOM_REFCNT is defined that the release will
* be done before the trace message is logged. If the reference count
* goes to zero and implementation of Release logs a message, the two
* messages will be logged out of order.
*
* @param _ptr The interface pointer.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_IF_RELEASE(_ptr) \
PR_BEGIN_MACRO \
((0 != (_ptr)) \
? ((nsrefcnt) nsTraceRefcnt::Release((_ptr), (_ptr)->Release(), \
__FILE__, __LINE__)) \
: 0); \
(_ptr) = 0; \
PR_END_MACRO
#else
#define NS_IF_RELEASE(_ptr) \
PR_BEGIN_MACRO \
((0 != (_ptr)) ? (_ptr)->Release() : 0); \
(_ptr) = 0; \
PR_END_MACRO
#endif
////////////////////////////////////////////////////////////////////////////////
#endif /* __nsISupportsUtils_h */

View File

@@ -1,318 +0,0 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsISupports.h"
#include "prprf.h"
#include "prlog.h"
#if defined(_WIN32)
#include <windows.h>
#endif
#if defined(NS_MT_SUPPORTED)
#include "prlock.h"
static PRLock* gTraceLock;
#define LOCK_TRACELOG() PR_Lock(gTraceLock)
#define UNLOCK_TRACELOG() PR_Unlock(gTraceLock)
#else /* ! NT_MT_SUPPORTED */
#define LOCK_TRACELOG()
#define UNLOCK_TRACELOG()
#endif /* ! NS_MT_SUPPORTED */
#if defined(MOZ_TRACE_XPCOM_REFCNT)
static PRLogModuleInfo* gTraceRefcntLog;
static void InitTraceLog(void)
{
if (0 == gTraceRefcntLog) {
gTraceRefcntLog = PR_NewLogModule("xpcomrefcnt");
#if defined(NS_MT_SUPPORTED)
gTraceLock = PR_NewLock();
#endif /* NS_MT_SUPPORTED */
}
}
#if defined(_WIN32)
#include "imagehlp.h"
#include <stdio.h>
#if 0
static BOOL __stdcall
EnumSymbolsCB(LPSTR aSymbolName,
ULONG aSymbolAddress,
ULONG aSymbolSize,
PVOID aUserContext)
{
int* countp = (int*) aUserContext;
int count = *countp;
if (count < 3) {
printf(" %p[%4d]: %s\n", aSymbolAddress, aSymbolSize, aSymbolName);
count++;
*countp = count++;
}
return TRUE;
}
static BOOL __stdcall
EnumModulesCB(LPSTR aModuleName,
ULONG aBaseOfDll,
PVOID aUserContext)
{
HANDLE myProcess = ::GetCurrentProcess();
printf("module=%s dll=%x\n", aModuleName, aBaseOfDll);
// int count = 0;
// SymEnumerateSymbols(myProcess, aBaseOfDll, EnumSymbolsCB, (void*) &count);
return TRUE;
}
#endif
/**
* Walk the stack, translating PC's found into strings and recording the
* chain in aBuffer. For this to work properly, the dll's must be rebased
* so that the address in the file agrees with the address in memory.
* Otherwise StackWalk will return FALSE when it hits a frame in a dll's
* whose in memory address doesn't match it's in-file address.
*
* Fortunately, there is a handy dandy routine in IMAGEHLP.DLL that does
* the rebasing and accordingly I've made a tool to use it to rebase the
* DLL's in one fell swoop (see xpcom/tools/windows/rebasedlls.cpp).
*/
void
nsTraceRefcnt::WalkTheStack(char* aBuffer, int aBufLen)
{
CONTEXT context;
STACKFRAME frame;
char* cp = aBuffer;
aBuffer[0] = '\0';
aBufLen--; // leave room for nul
HANDLE myProcess = ::GetCurrentProcess();
HANDLE myThread = ::GetCurrentThread();
// Get the context information for this thread. That way we will
// know where our sp, fp, pc, etc. are and can fill in the
// STACKFRAME with the initial values.
context.ContextFlags = CONTEXT_FULL;
GetThreadContext(myThread, &context);
if (!SymInitialize(myProcess, ".;..\\lib", TRUE)) {
return;
}
#if 0
SymEnumerateModules(myProcess, EnumModulesCB, NULL);
#endif
// Setup initial stack frame to walk from
memset(&frame, 0, sizeof(frame));
frame.AddrPC.Mode = AddrModeFlat;
frame.AddrPC.Offset = context.Eip;
frame.AddrReturn.Mode = AddrModeFlat;
frame.AddrReturn.Offset = context.Ebp;
frame.AddrFrame.Mode = AddrModeFlat;
frame.AddrFrame.Offset = context.Ebp;
frame.AddrStack.Mode = AddrModeFlat;
frame.AddrStack.Offset = context.Esp;
frame.Params[0] = context.Eax;
frame.Params[1] = context.Ecx;
frame.Params[2] = context.Edx;
frame.Params[3] = context.Ebx;
// Now walk the stack and map the pc's to symbol names that we stuff
// append to *cp.
int skip = 2;
int syms = 0;
while (aBufLen > 0) {
char symbolBuffer[sizeof(IMAGEHLP_SYMBOL) + 512];
PIMAGEHLP_SYMBOL pSymbol = (PIMAGEHLP_SYMBOL) symbolBuffer;
pSymbol->SizeOfStruct = sizeof(symbolBuffer);
pSymbol->MaxNameLength = 512;
DWORD oldAddress = frame.AddrPC.Offset;
BOOL b = ::StackWalk(IMAGE_FILE_MACHINE_I386, myProcess, myThread,
&frame, &context, NULL,
SymFunctionTableAccess,
SymGetModuleBase,
NULL);
if (!b || (0 == frame.AddrPC.Offset)) {
if (syms <= 1) {
skip = 7;
}
break;
}
if (--skip >= 0) {
continue;
}
DWORD disp;
if (SymGetSymFromAddr(myProcess, frame.AddrPC.Offset, &disp, pSymbol)) {
int nameLen = strlen(pSymbol->Name);
if (nameLen + 2 > aBufLen) {
break;
}
memcpy(cp, pSymbol->Name, nameLen);
cp += nameLen;
*cp++ = ' ';
aBufLen -= nameLen + 1;
syms++;
}
else {
if (11 > aBufLen) {
break;
}
char tmp[30];
PR_snprintf(tmp, sizeof(tmp), "0x%08x ", frame.AddrPC.Offset);
memcpy(cp, tmp, 11);
cp += 11;
aBufLen -= 11;
syms++;
}
}
*cp = 0;
}
#endif /* _WIN32 */
#else /* MOZ_TRACE_XPCOM_REFCNT */
void
nsTraceRefcnt::WalkTheStack(char* aBuffer, int aBufLen)
{
aBuffer[0] = '\0';
}
#endif /* MOZ_TRACE_XPCOM_REFCNT */
NS_COM void
nsTraceRefcnt::LoadLibrarySymbols(const char* aLibraryName,
void* aLibrayHandle)
{
#ifdef MOZ_TRACE_XPCOM_REFCNT
#if defined(_WIN32)
InitTraceLog();
if (PR_LOG_TEST(gTraceRefcntLog,PR_LOG_DEBUG)) {
HANDLE myProcess = ::GetCurrentProcess();
if (!SymInitialize(myProcess, ".;..\\lib", TRUE)) {
return;
}
BOOL b = ::SymLoadModule(myProcess,
NULL,
(char*)aLibraryName,
(char*)aLibraryName,
0,
0);
// DWORD lastError = 0;
// if (!b) lastError = ::GetLastError();
// printf("loading symbols for library %s => %s [%d]\n", aLibraryName,
// b ? "true" : "false", lastError);
}
#endif
#endif
}
NS_COM unsigned long
nsTraceRefcnt::AddRef(void* aPtr,
unsigned long aNewRefcnt,
const char* aFile,
PRIntn aLine)
{
#ifdef MOZ_TRACE_XPCOM_REFCNT
InitTraceLog();
LOCK_TRACELOG();
if (PR_LOG_TEST(gTraceRefcntLog,PR_LOG_DEBUG)) {
char sb[1000];
WalkTheStack(sb, sizeof(sb));
PR_LOG(gTraceRefcntLog, PR_LOG_DEBUG,
("AddRef: %p: %d=>%d [%s] in %s (line %d)",
aPtr, aNewRefcnt-1, aNewRefcnt, sb, aFile, aLine));
}
UNLOCK_TRACELOG();
#endif
return aNewRefcnt;
}
NS_COM unsigned long
nsTraceRefcnt::Release(void* aPtr,
unsigned long aNewRefcnt,
const char* aFile,
PRIntn aLine)
{
#ifdef MOZ_TRACE_XPCOM_REFCNT
InitTraceLog();
LOCK_TRACELOG();
if (PR_LOG_TEST(gTraceRefcntLog,PR_LOG_DEBUG)) {
char sb[1000];
WalkTheStack(sb, sizeof(sb));
PR_LOG(gTraceRefcntLog, PR_LOG_DEBUG,
("Release: %p: %d=>%d [%s] in %s (line %d)",
aPtr, aNewRefcnt+1, aNewRefcnt, sb, aFile, aLine));
}
UNLOCK_TRACELOG();
#endif
return aNewRefcnt;
}
NS_COM void
nsTraceRefcnt::Create(void* aPtr,
const char* aType,
const char* aFile,
PRIntn aLine)
{
#ifdef MOZ_TRACE_XPCOM_REFCNT
InitTraceLog();
LOCK_TRACELOG();
if (PR_LOG_TEST(gTraceRefcntLog,PR_LOG_DEBUG)) {
char sb[1000];
WalkTheStack(sb, sizeof(sb));
PR_LOG(gTraceRefcntLog, PR_LOG_DEBUG,
("Create: %p[%s]: [%s] in %s (line %d)",
aPtr, aType, sb, aFile, aLine));
}
UNLOCK_TRACELOG();
#endif
}
NS_COM void
nsTraceRefcnt::Destroy(void* aPtr,
const char* aFile,
PRIntn aLine)
{
#ifdef MOZ_TRACE_XPCOM_REFCNT
InitTraceLog();
LOCK_TRACELOG();
if (PR_LOG_TEST(gTraceRefcntLog,PR_LOG_DEBUG)) {
char sb[1000];
WalkTheStack(sb, sizeof(sb));
PR_LOG(gTraceRefcntLog, PR_LOG_DEBUG,
("Destroy: %p: [%s] in %s (line %d)",
aPtr, sb, aFile, aLine));
}
UNLOCK_TRACELOG();
#endif
}

View File

@@ -1,61 +0,0 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef nsTraceRefcnt_h___
#define nsTraceRefcnt_h___
#include "nsCom.h"
/**
* This class is used to support tracing (and logging using nspr) of
* addref and release calls. Note that only calls that use the
* NS_ADDREF and related macros in nsISupports can be traced.
*
* The name of the nspr log module is "xpcomrefcnt" (case matters).
*
* This code only performs tracing built with debugging AND when
* built with -DMOZ_TRACE_XPCOM_REFCNT (because it's expensive!).
*/
class nsTraceRefcnt {
public:
static NS_COM unsigned long AddRef(void* aPtr,
unsigned long aNewRefcnt,
const char* aFile,
int aLine);
static NS_COM unsigned long Release(void* aPtr,
unsigned long aNewRefcnt,
const char* aFile,
int aLine);
static NS_COM void Create(void* aPtr,
const char* aType,
const char* aFile,
int aLine);
static NS_COM void Destroy(void* aPtr,
const char* aFile,
int aLine);
static NS_COM void LoadLibrarySymbols(const char* aLibraryName,
void* aLibrayHandle);
static NS_COM void WalkTheStack(char* aBuffer, int aBufLen);
};
#endif /* nsTraceRefcnt_h___ */

View File

@@ -1,318 +0,0 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsISupports.h"
#include "prprf.h"
#include "prlog.h"
#if defined(_WIN32)
#include <windows.h>
#endif
#if defined(NS_MT_SUPPORTED)
#include "prlock.h"
static PRLock* gTraceLock;
#define LOCK_TRACELOG() PR_Lock(gTraceLock)
#define UNLOCK_TRACELOG() PR_Unlock(gTraceLock)
#else /* ! NT_MT_SUPPORTED */
#define LOCK_TRACELOG()
#define UNLOCK_TRACELOG()
#endif /* ! NS_MT_SUPPORTED */
#if defined(MOZ_TRACE_XPCOM_REFCNT)
static PRLogModuleInfo* gTraceRefcntLog;
static void InitTraceLog(void)
{
if (0 == gTraceRefcntLog) {
gTraceRefcntLog = PR_NewLogModule("xpcomrefcnt");
#if defined(NS_MT_SUPPORTED)
gTraceLock = PR_NewLock();
#endif /* NS_MT_SUPPORTED */
}
}
#if defined(_WIN32)
#include "imagehlp.h"
#include <stdio.h>
#if 0
static BOOL __stdcall
EnumSymbolsCB(LPSTR aSymbolName,
ULONG aSymbolAddress,
ULONG aSymbolSize,
PVOID aUserContext)
{
int* countp = (int*) aUserContext;
int count = *countp;
if (count < 3) {
printf(" %p[%4d]: %s\n", aSymbolAddress, aSymbolSize, aSymbolName);
count++;
*countp = count++;
}
return TRUE;
}
static BOOL __stdcall
EnumModulesCB(LPSTR aModuleName,
ULONG aBaseOfDll,
PVOID aUserContext)
{
HANDLE myProcess = ::GetCurrentProcess();
printf("module=%s dll=%x\n", aModuleName, aBaseOfDll);
// int count = 0;
// SymEnumerateSymbols(myProcess, aBaseOfDll, EnumSymbolsCB, (void*) &count);
return TRUE;
}
#endif
/**
* Walk the stack, translating PC's found into strings and recording the
* chain in aBuffer. For this to work properly, the dll's must be rebased
* so that the address in the file agrees with the address in memory.
* Otherwise StackWalk will return FALSE when it hits a frame in a dll's
* whose in memory address doesn't match it's in-file address.
*
* Fortunately, there is a handy dandy routine in IMAGEHLP.DLL that does
* the rebasing and accordingly I've made a tool to use it to rebase the
* DLL's in one fell swoop (see xpcom/tools/windows/rebasedlls.cpp).
*/
void
nsTraceRefcnt::WalkTheStack(char* aBuffer, int aBufLen)
{
CONTEXT context;
STACKFRAME frame;
char* cp = aBuffer;
aBuffer[0] = '\0';
aBufLen--; // leave room for nul
HANDLE myProcess = ::GetCurrentProcess();
HANDLE myThread = ::GetCurrentThread();
// Get the context information for this thread. That way we will
// know where our sp, fp, pc, etc. are and can fill in the
// STACKFRAME with the initial values.
context.ContextFlags = CONTEXT_FULL;
GetThreadContext(myThread, &context);
if (!SymInitialize(myProcess, ".;..\\lib", TRUE)) {
return;
}
#if 0
SymEnumerateModules(myProcess, EnumModulesCB, NULL);
#endif
// Setup initial stack frame to walk from
memset(&frame, 0, sizeof(frame));
frame.AddrPC.Mode = AddrModeFlat;
frame.AddrPC.Offset = context.Eip;
frame.AddrReturn.Mode = AddrModeFlat;
frame.AddrReturn.Offset = context.Ebp;
frame.AddrFrame.Mode = AddrModeFlat;
frame.AddrFrame.Offset = context.Ebp;
frame.AddrStack.Mode = AddrModeFlat;
frame.AddrStack.Offset = context.Esp;
frame.Params[0] = context.Eax;
frame.Params[1] = context.Ecx;
frame.Params[2] = context.Edx;
frame.Params[3] = context.Ebx;
// Now walk the stack and map the pc's to symbol names that we stuff
// append to *cp.
int skip = 2;
int syms = 0;
while (aBufLen > 0) {
char symbolBuffer[sizeof(IMAGEHLP_SYMBOL) + 512];
PIMAGEHLP_SYMBOL pSymbol = (PIMAGEHLP_SYMBOL) symbolBuffer;
pSymbol->SizeOfStruct = sizeof(symbolBuffer);
pSymbol->MaxNameLength = 512;
DWORD oldAddress = frame.AddrPC.Offset;
BOOL b = ::StackWalk(IMAGE_FILE_MACHINE_I386, myProcess, myThread,
&frame, &context, NULL,
SymFunctionTableAccess,
SymGetModuleBase,
NULL);
if (!b || (0 == frame.AddrPC.Offset)) {
if (syms <= 1) {
skip = 7;
}
break;
}
if (--skip >= 0) {
continue;
}
DWORD disp;
if (SymGetSymFromAddr(myProcess, frame.AddrPC.Offset, &disp, pSymbol)) {
int nameLen = strlen(pSymbol->Name);
if (nameLen + 2 > aBufLen) {
break;
}
memcpy(cp, pSymbol->Name, nameLen);
cp += nameLen;
*cp++ = ' ';
aBufLen -= nameLen + 1;
syms++;
}
else {
if (11 > aBufLen) {
break;
}
char tmp[30];
PR_snprintf(tmp, sizeof(tmp), "0x%08x ", frame.AddrPC.Offset);
memcpy(cp, tmp, 11);
cp += 11;
aBufLen -= 11;
syms++;
}
}
*cp = 0;
}
#endif /* _WIN32 */
#else /* MOZ_TRACE_XPCOM_REFCNT */
void
nsTraceRefcnt::WalkTheStack(char* aBuffer, int aBufLen)
{
aBuffer[0] = '\0';
}
#endif /* MOZ_TRACE_XPCOM_REFCNT */
NS_COM void
nsTraceRefcnt::LoadLibrarySymbols(const char* aLibraryName,
void* aLibrayHandle)
{
#ifdef MOZ_TRACE_XPCOM_REFCNT
#if defined(_WIN32)
InitTraceLog();
if (PR_LOG_TEST(gTraceRefcntLog,PR_LOG_DEBUG)) {
HANDLE myProcess = ::GetCurrentProcess();
if (!SymInitialize(myProcess, ".;..\\lib", TRUE)) {
return;
}
BOOL b = ::SymLoadModule(myProcess,
NULL,
(char*)aLibraryName,
(char*)aLibraryName,
0,
0);
// DWORD lastError = 0;
// if (!b) lastError = ::GetLastError();
// printf("loading symbols for library %s => %s [%d]\n", aLibraryName,
// b ? "true" : "false", lastError);
}
#endif
#endif
}
NS_COM unsigned long
nsTraceRefcnt::AddRef(void* aPtr,
unsigned long aNewRefcnt,
const char* aFile,
PRIntn aLine)
{
#ifdef MOZ_TRACE_XPCOM_REFCNT
InitTraceLog();
LOCK_TRACELOG();
if (PR_LOG_TEST(gTraceRefcntLog,PR_LOG_DEBUG)) {
char sb[1000];
WalkTheStack(sb, sizeof(sb));
PR_LOG(gTraceRefcntLog, PR_LOG_DEBUG,
("AddRef: %p: %d=>%d [%s] in %s (line %d)",
aPtr, aNewRefcnt-1, aNewRefcnt, sb, aFile, aLine));
}
UNLOCK_TRACELOG();
#endif
return aNewRefcnt;
}
NS_COM unsigned long
nsTraceRefcnt::Release(void* aPtr,
unsigned long aNewRefcnt,
const char* aFile,
PRIntn aLine)
{
#ifdef MOZ_TRACE_XPCOM_REFCNT
InitTraceLog();
LOCK_TRACELOG();
if (PR_LOG_TEST(gTraceRefcntLog,PR_LOG_DEBUG)) {
char sb[1000];
WalkTheStack(sb, sizeof(sb));
PR_LOG(gTraceRefcntLog, PR_LOG_DEBUG,
("Release: %p: %d=>%d [%s] in %s (line %d)",
aPtr, aNewRefcnt+1, aNewRefcnt, sb, aFile, aLine));
}
UNLOCK_TRACELOG();
#endif
return aNewRefcnt;
}
NS_COM void
nsTraceRefcnt::Create(void* aPtr,
const char* aType,
const char* aFile,
PRIntn aLine)
{
#ifdef MOZ_TRACE_XPCOM_REFCNT
InitTraceLog();
LOCK_TRACELOG();
if (PR_LOG_TEST(gTraceRefcntLog,PR_LOG_DEBUG)) {
char sb[1000];
WalkTheStack(sb, sizeof(sb));
PR_LOG(gTraceRefcntLog, PR_LOG_DEBUG,
("Create: %p[%s]: [%s] in %s (line %d)",
aPtr, aType, sb, aFile, aLine));
}
UNLOCK_TRACELOG();
#endif
}
NS_COM void
nsTraceRefcnt::Destroy(void* aPtr,
const char* aFile,
PRIntn aLine)
{
#ifdef MOZ_TRACE_XPCOM_REFCNT
InitTraceLog();
LOCK_TRACELOG();
if (PR_LOG_TEST(gTraceRefcntLog,PR_LOG_DEBUG)) {
char sb[1000];
WalkTheStack(sb, sizeof(sb));
PR_LOG(gTraceRefcntLog, PR_LOG_DEBUG,
("Destroy: %p: [%s] in %s (line %d)",
aPtr, sb, aFile, aLine));
}
UNLOCK_TRACELOG();
#endif
}

View File

@@ -1,61 +0,0 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef nsTraceRefcnt_h___
#define nsTraceRefcnt_h___
#include "nsCom.h"
/**
* This class is used to support tracing (and logging using nspr) of
* addref and release calls. Note that only calls that use the
* NS_ADDREF and related macros in nsISupports can be traced.
*
* The name of the nspr log module is "xpcomrefcnt" (case matters).
*
* This code only performs tracing built with debugging AND when
* built with -DMOZ_TRACE_XPCOM_REFCNT (because it's expensive!).
*/
class nsTraceRefcnt {
public:
static NS_COM unsigned long AddRef(void* aPtr,
unsigned long aNewRefcnt,
const char* aFile,
int aLine);
static NS_COM unsigned long Release(void* aPtr,
unsigned long aNewRefcnt,
const char* aFile,
int aLine);
static NS_COM void Create(void* aPtr,
const char* aType,
const char* aFile,
int aLine);
static NS_COM void Destroy(void* aPtr,
const char* aFile,
int aLine);
static NS_COM void LoadLibrarySymbols(const char* aLibraryName,
void* aLibrayHandle);
static NS_COM void WalkTheStack(char* aBuffer, int aBufLen);
};
#endif /* nsTraceRefcnt_h___ */

View File

@@ -1,168 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef __mozIClassRegistry_h
#define __mozIClassRegistry_h
#include "nsIComponentManager.h"
/*---------------------------- mozIClassRegistry -------------------------------
| This interface provides access to a mapping from mnemonic interface names |
| to shared libraries where implementations of those interfaces can be located.|
| |
| This interface is designed to provide two things: |
| 1. A means of less static binding between clients and the code that |
| implements the XPCOM interfaces those clients use. This accomplished |
| by the mapping from interface names to nsCID (and the shared libraries |
| that implement those classes). |
| 2. A means of dynamically changing the mapping from interface name to |
| implementation. The canonical example of this is to switch to a |
| "native" widget set versus an "XP" (implemented using gfx) set. |
| |
| The first goal is achieved by storing (in a "Netscape Registry" file, see |
| nsReg.h) information that maps interface/class "names" to information about |
| where to load implementations of those interfaces. That information |
| includes the interface ID, class ID (of the implementation class), and the |
| name of the shared library that contains the implementation. |
| |
| The class registry object will register those classes with the "repository" |
| (see nsComponentManager.h) the first time a request is made to create an |
| instance. Subsequent requests will simply be forwarded to the repository |
| after the appropriate interface and class IDs are determined. |
| |
| The second goal is accomplished by permitting the mnemonic interface |
| "names" to be "overloaded", that is, mapped to distinct implementations |
| by separate class registry objects. Further, class registries can be |
| cascaded: they can be chained together so that when a name is not |
| recognized by one registry, it can pass the request to the next registry in |
| the chain. Users can control resolution by making the request of a |
| registry further up/down the chain. |
| |
| For example, consider the case of "native" vs. "gfx" widgets. This might |
| be structured by a class registry arrangment like this: |
| |
| nativeWidgetRegistry baseWidgetRegistry |
| +----------+ +----------+ |
| | ----+---------------->| | |
| +----------+ +----------+ |
| |toolbar| -+-----+ |toolbar| -+-----+ |
| +----------+ | +----------+ | |
| |button | -+-----+ |button | -+-----+ |
| +----------+ | +----------+ | |
| V V |
| +-----------------+ +-----------------+ |
| | native.dll | | base.dll | |
| +-----------------+ +-----------------+ |
| |
| If a specialized implementation of widgets is present (e.g., native.dll) |
| then a corresponding class registry object is created and added to the |
| head of the registry chain. Object creation requests (normal ones) are |
| resolved to the native implementation. If such a library is not present, |
| then the resolution is to the base implementation. If objects of the |
| base implementation are required, then creation requests can be directed |
| directly to the baseWidgetRegistry object, rather than the head of the |
| registry chain. |
| |
| It is intended that there be a single instance of this interface, accessed |
| via the Service Manager (see nsServiceManager.h). |
------------------------------------------------------------------------------*/
struct mozIClassRegistry : public ISupports {
/*------------------------------ CreateInstance ----------------------------
| Create an instance of the requested class/interface. The interface |
| ID is required to specify how the result will be treated. The class |
| named by aName must support this interface. The result is placed in |
| ncomment aResult (NULL if the request fails). "start" specifies the |
| registry at which the search for an implementation of the named |
| interface should start. It defaults to 0 (indicating to start at the |
| head of the registry chain). |
--------------------------------------------------------------------------*/
NS_IMETHOD CreateInstance( const char *anInterfaceName,
const nsIID &aIID,
void* *aResult,
const char *start = 0 ) = 0;
/*--------------------------- CreateEnumerator -----------------------------
| Creates an nsIEnumerator interface object that can be used to examine |
| the contents of the registry. "pattern" specifies either "*" or the |
| name of a specific interface that you want to query. "result" will |
| be set to point to a new object (which will be freed on the last call |
| to its Release() member). See nsIEnumerator.h for details on how to |
| use the returned interface pointer. |
--------------------------------------------------------------------------*/
NS_IMETHOD CreateEnumerator( const char *pattern,
nsIEnumerator* *result ) = 0;
}; // mozIClassRegistry
/*-------------------------- mozIClassRegistryEntry ----------------------------
| Objects of this class represent the individual elements that comprise a |
| mozIClassRegistry interface. You obtain such objects by applying the |
| CreateEnumerator member function to the class registry and then applying |
| the CurrentItem member function to the resulting nsIEnumerator interface. |
| |
| Each entry can be queried for the following information: |
| o sub-registry name |
| o interface name |
| o Class ID |
| o IIDs implemented |
| |
| The information obtained from the entry (specifically, the const char* |
| strings) remains valid for the life of the entry (i.e., until you |
| Release() it). |
| |
| Here is an example of code that uses this interface to dump the contents |
| of a mozIClassRegistry: |
| |
| mozIClassRegistry *reg = nsServiceManager::GetService( kIDRegistry ); |
| nsIEnumerator *enum; |
| reg->CreateEnumerator( "*", &enum ); |
| for ( enum->First(); !enum->IsDone(); enum->Next(); ) { |
| mozIClassRegistryEntry *entry; |
| enum->CurrentItem( &entry ); |
| const char *subreg; |
| const char *name; |
| nsCID cid; |
| int numIIDs; |
| entry->GetSubRegistryName( &subreg ); |
| entry->GetInterfaceName( &name ); |
| entry->GetClassID( &cid ); |
| entry->GetNumIIDs( &numIIDs ); |
| cout << subreg << "/" << name << " = " << cid.ToString() << endl; |
| for ( int i = 0; i < numIIDs; i++ ) { |
| nsIID iid; |
| entry->GetInterfaceID( i, &iid ); |
| cout << "/tIID[" << i << "] = " << iid.ToString() << endl; |
| } |
| entry->Release(); |
| } |
| enum->Release(); |
------------------------------------------------------------------------------*/
struct mozIClassRegistryEntry : public nsISupports {
NS_IMETHOD GetSubRegistryName( const char **result ) = 0;
NS_IMETHOD GetInterfaceName( const char **result ) = 0;
NS_IMETHOD GetClassID( nsCID *result ) = 0;
NS_IMETHOD GetNumIIDs( int *result ) = 0;
NS_IMETHOD GetInterfaceID( int n, nsIID *result ) = 0;
}; // mozIClassRegistryEntry
// {5D41A440-8E37-11d2-8059-00600811A9C3}
#define MOZ_ICLASSREGISTRY_IID { 0x5d41a440, 0x8e37, 0x11d2, { 0x80, 0x59, 0x0, 0x60, 0x8, 0x11, 0xa9, 0xc3 } }
// {D1B54831-AC07-11d2-805E-00600811A9C3}
#define MOZ_ICLASSREGISTRYENTRY_IID { 0xd1b54831, 0xac07, 0x11d2, { 0x80, 0x5e, 0x0, 0x60, 0x8, 0x11, 0xa9, 0xc3 } }
#endif

View File

@@ -1,326 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef __mozIRegistry_h
#define __mozIRegistry_h
#include "nsISupports.h"
class nsIEnumerator;
/*------------------------------- mozIRegistry ---------------------------------
| This interface provides access to a tree of arbitrary values. |
| |
| Each node of the tree contains either a value or a subtree or both. |
| |
| The value at any of these leaf nodes can be any of these "primitive" types: |
| o string (null terminated UTF string) |
| o array of 32-bit integers |
| o arbitrary array of bytes |
| o file identifier |
| Of course, since you can store an arbitrary array of bytes, you can put |
| any data you like into a registry (although you have the burden of |
| encoding/decoding your data in that case). |
| |
| Each branch of the tree is labelled with a string "key." The entire path |
| from a given point of the tree to another point further down can be |
| presented as a single string composed of each branch's label, concatenated |
| to the next, with an intervening forward slash ('/'). The term "key" |
| refers to both specific tree branch labels and to such concatenated paths. |
| |
| The branches from a given node must have unique labels. Distinct nodes can |
| have branches with the same label. |
| |
| For example, here's a small registry tree: |
| | |
| /\ |
| / \ |
| / \ |
| / \ |
| "Classes" "Users" |
| / \ |
| / \ |
| / ["joe"] |
| / / \ |
| | / \ |
| /\ / \ |
| / \ "joe" "bob" |
| / \ / \ |
| / \ |
| "{xxxx-xx-1}" "{xxxx-xx-2}" ["c:/joe"] ["d:/Robert"] |
| | | |
| /\ /\ |
| / \ / \ |
| / \ / \ |
| "Library" "Version" "Library" "Version" |
| / \ / \ |
| ["foo.dll"] 2 ["bar.dll"] 1 |
| |
| In this example, there are 2 keys under the root: "Classes" and "Users". |
| The first denotes a subtree only (which has two subtrees, ...). The second |
| denotes both a value ["joe"] and two subtrees labelled "joe" and "bob". |
| The value at the node "/Users" is ["joe"], at "/Users/bob" is ["d:/Robert"]. |
| The value at "/Classes/{xxxx-xx-1}/Version" is 2. |
| |
| The registry interface provides functions that let you navigate the tree |
| and manipulate it's contents. |
| |
| Please note that the registry itself does not impose any structure or |
| meaning on the contents of the tree. For example, the registry doesn't |
| control whether the value at the key "/Users" is the label for the subtree |
| with information about the last active user. That meaning is applied by |
| the code that stores these values and uses them for that purpose. |
| |
| [Any resemblence between this example and actual contents of any actual |
| registry is purely coincidental.] |
------------------------------------------------------------------------------*/
struct mozIRegistry : public nsISupports {
/*------------------------------ Constants ---------------------------------
| The following enumerated types and values are used by the registry |
| interface. |
--------------------------------------------------------------------------*/
typedef enum {
String = 1,
Int32,
Bytes,
File
} DataType;
/*-------------------------------- Types -----------------------------------
| The following data types are used by this interface. All are basically |
| opaque types. You obtain objects of these types via certain member |
| function calls and re-use them later (without having to know what they |
| contain). |
| |
| Key - Placeholder to represent a particular node in a registry |
| tree. There are 3 enumerated values that correspond to |
| specific nodes: |
| Common - Where most stuff goes. |
| Users - Special subtree to hold info about |
| "users"; if you don't know what goes |
| here, don't mess with it. |
| CurrentUser - Subtree under Users corresponding to |
| whatever user is designed the "current" |
| one; see note above. |
| You can specify any of these enumerated values as "keys" |
| on any member function that takes a mozRegistry::Key. |
| ValueInfo - Structure describing a registry value. |
--------------------------------------------------------------------------*/
typedef uint32 Key;
enum { Users = 1, Common = 2, CurrentUser = 3 };
struct ValueInfo {
DataType type;
uint32 length;
};
/*--------------------------- Opening/Closing ------------------------------
| These functions open the specified registry file (Open() with a non-null |
| argument) or the default "standard" registry file (Open() with a null |
| argument or OpenDefault()). |
| |
| Once opened, you can access the registry contents via the read/write |
| or query functions. |
| |
| The registry file will be closed automatically when the registry object |
| is destroyed. You can close the file prior to that by using the |
| Close() function. |
--------------------------------------------------------------------------*/
NS_IMETHOD Open( const char *regFile = 0 ) = 0;
NS_IMETHOD OpenDefault() = 0;
NS_IMETHOD Close() = 0;
/*----------------------- Reading/Writing Values ---------------------------
| These functions read/write the registry values at a given node. |
| |
| All functions require you to specify where in the registry key to |
| get/set the value. The location is specified using two components: |
| o A "base key" indicating where to start from; this is a value of type |
| mozIRegistry::Key. You use either one of the special "root" key |
| values or a subkey obtained via some other member function call. |
| o A "relative path," expressed as a sequence of subtree names |
| separated by forward slashes. This path describes how to get from |
| the base key to the node at which you want to store the data. This |
| component can be a null pointer which means the value goes directly |
| at the node denoted by the base key. |
| |
| When you request a value of a given type, the data stored at the |
| specified node must be of the type requested. If not, an error results. |
| |
| GetString - Obtains a newly allocated copy of a string type value. The |
| caller is obligated to free the returned string using |
| PR_Free. |
| SetString - Stores the argument string at the specified node. |
| GetInt - Obtains an int32 value at the specified node. The result |
| is returned into an int32 location you specify. |
| SetInt - Stores a given int32 value at a node. |
| GetBytes - Obtains a byte array value; this returns both an allocated |
| array of bytes and a length (necessary because there may be |
| embedded null bytes in the array). You must free the |
| resulting array using PR_Free. |
| SetBytes - Stores a given array of bytes; you specify the bytes via a |
| pointer and a length. |
| GetIntArray - Obtains the array of int32 values stored at a given node. |
| The result is composed of two values: a pointer to an |
| array of integer values (which must be freed using |
| PR_Free) and the number of elements in that array. |
| SetIntArray - Stores a set of int32 values at a given node. You must |
| provide a pointer to the array and the number of entries. |
--------------------------------------------------------------------------*/
NS_IMETHOD GetString( Key baseKey, const char *path, char **result ) = 0;
NS_IMETHOD SetString( Key baseKey, const char *path, const char *value ) = 0;
NS_IMETHOD GetInt( Key baseKey, const char *path, int32 *result ) = 0;
NS_IMETHOD SetInt( Key baseKey, const char *path, int32 value ) = 0;
NS_IMETHOD GetBytes( Key baseKey, const char *path, void **result, uint32 *len ) = 0;
NS_IMETHOD SetBytes( Key baseKey, const char *path, void *value, uint32 len ) = 0;
NS_IMETHOD GetIntArray( Key baseKey, const char *path, int32 **result, uint32 *len ) = 0;
NS_IMETHOD SetIntArray( Key baseKey, const char *path, const int32 *value, uint32 len ) = 0;
/*------------------------------ Navigation --------------------------------
| These functions let you navigate through the registry tree, querying |
| its contents. |
| |
| As above, all these functions requires a starting tree location ("base |
| key") specified as a mozIRegistry::Key. Some also require a path |
| name to locate the registry node location relative to this base key. |
| |
| AddSubtree - Adds a new registry subtree at the specified |
| location. Returns the resulting key in |
| the location specified by the third argument |
| (unless that pointer is 0). |
| RemoveNode - Removes the specified registry subtree or |
| value at the specified location. |
| GetSubtree - Returns a mozIRegistry::Key that can be used |
| to refer to the specified registry location. |
| EnumerateSubtrees - Returns a nsIEnumerator object that you can |
| use to enumerate all the subtrees descending |
| from a specified location. You must free the |
| enumerator via Release() when you're done with |
| it. |
| EnumerateAllSubtrees - Like EnumerateSubtrees, but will recursively |
| enumerate lower-level subtrees, too. |
| GetValueInfo - Returns a uint32 value that designates the type |
| of data stored at this location in the registry; |
| the possible values are defined by the enumerated |
| type mozIRegistry::DataType. |
| GetValueLength - Returns a uint32 value that indicates the length |
| of this registry value; the length is the number |
| of characters (for Strings), the number of bytes |
| (for Bytes), or the number of int32 values (for |
| Int32). |
| EnumerateValues - Returns a nsIEnumerator that you can use to |
| enumerate all the value nodes descending from |
| a specified location. |
--------------------------------------------------------------------------*/
NS_IMETHOD AddSubtree( Key baseKey, const char *path, Key *result ) = 0;
NS_IMETHOD RemoveSubtree( Key baseKey, const char *path ) = 0;
NS_IMETHOD GetSubtree( Key baseKey, const char *path, Key *result ) = 0;
NS_IMETHOD EnumerateSubtrees( Key baseKey, nsIEnumerator **result ) = 0;
NS_IMETHOD EnumerateAllSubtrees( Key baseKey, nsIEnumerator **result ) = 0;
NS_IMETHOD GetValueType( Key baseKey, const char *path, uint32 *result ) = 0;
NS_IMETHOD GetValueLength( Key baseKey, const char *path, uint32 *result ) = 0;
NS_IMETHOD EnumerateValues( Key baseKey, nsIEnumerator **result ) = 0;
/*------------------------------ User Name ---------------------------------
| These functions manipulate the current "user name." This value controls |
| the behavior of certain registry functions (namely, ?). |
| |
| GetCurrentUserName allocates a copy of the current user name (which the |
| caller should free using PR_Free). |
--------------------------------------------------------------------------*/
NS_IMETHOD GetCurrentUserName( char **result ) = 0;
NS_IMETHOD SetCurrentUserName( const char *name ) = 0;
/*------------------------------ Utilities ---------------------------------
| Various utility functions: |
| |
| Pack() is used to compress the contents of an open registry file. |
--------------------------------------------------------------------------*/
NS_IMETHOD Pack() = 0;
}; // mozIRegistry
/*----------------------------- mozIRegistryNode -------------------------------
| This interface is implemented by all the objects obtained from the |
| nsIEnumerators that mozIRegistry provides when you call either of the |
| subtree enumeration functions EnumerateSubtrees or EnumerateAllSubtrees. |
| |
| You can call this function to get the name of this subtree. This is the |
| relative path from the base key from which you got this interface. |
| |
| GetName - Returns the path name of this node; this is the relative path |
| from the base key from which this subtree was obtained. The |
| function allocates a copy of the name; the caller must free it |
| using PR_Free. |
------------------------------------------------------------------------------*/
struct mozIRegistryNode : public nsISupports {
NS_IMETHOD GetName( char **result ) = 0;
}; // mozIRegistryNode
/*----------------------------- mozIRegistryValue ------------------------------
| This interface is implemented by the objects obtained from the |
| nsIEnumerators that mozIRegistry provides when you call the |
| EnumerateValues function. An object supporting this interface is |
| returned when you call the CurrentItem() function on that enumerator. |
| |
| You use the member functions of this interface to obtain information |
| about each registry value. |
| |
| GetName - Returns the path name of this node; this is the relative |
| path\ from the base key from which this value was obtained. |
| The function allocates a copy of the name; the caller must |
| subsequently free it via PR_Free. |
| GetValueType - Returns (into a location provided by the caller) the type |
| of the value; the types are defined by the enumerated |
| type mozIRegistry::DataType. |
| GetValueLength - Returns a uint32 value that indicates the length |
| of this registry value; the length is the number |
| of characters (for Strings), the number of bytes |
| (for Bytes), or the number of int32 values (for |
| Int32). |
------------------------------------------------------------------------------*/
struct mozIRegistryValue : public nsISupports {
NS_IMETHOD GetName( char **result ) = 0;
NS_IMETHOD GetValueType( uint32 *result ) = 0;
NS_IMETHOD GetValueLength( uint32 *result ) = 0;
}; // mozIRegistryEntry
/*------------------------------- Error Codes ----------------------------------
------------------------------------------------------------------------------*/
#define NS_ERROR_REG_BADTYPE NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 1 )
#define NS_ERROR_REG_NO_MORE NS_ERROR_GENERATE_SUCCESS( NS_ERROR_MODULE_REG, 2 )
#define NS_ERROR_REG_NOT_FOUND NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 3 )
#define NS_ERROR_REG_NOFILE NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 4 )
#define NS_ERROR_REG_BUFFER_TOO_SMALL NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 5 )
#define NS_ERROR_REG_NAME_TOO_LONG NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 6 )
#define NS_ERROR_REG_NO_PATH NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 7 )
#define NS_ERROR_REG_READ_ONLY NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 8 )
#define NS_ERROR_REG_BAD_UTF8 NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 9 )
// {5D41A440-8E37-11d2-8059-00600811A9C3}
#define MOZ_IREGISTRY_IID { 0x5d41a440, 0x8e37, 0x11d2, { 0x80, 0x59, 0x0, 0x60, 0x8, 0x11, 0xa9, 0xc3 } }
// {D1B54831-AC07-11d2-805E-00600811A9C3}
#define MOZ_IREGISTRYNODE_IID { 0xd1b54831, 0xac07, 0x11d2, { 0x80, 0x5e, 0x0, 0x60, 0x8, 0x11, 0xa9, 0xc3 } }
// {5316C380-B2F8-11d2-A374-0080C6F80E4B}
#define MOZ_IREGISTRYVALUE_IID { 0x5316c380, 0xb2f8, 0x11d2, { 0xa3, 0x74, 0x0, 0x80, 0xc6, 0xf8, 0xe, 0x4b } }
#endif

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,241 +0,0 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsComponentManager_h__
#define nsComponentManager_h__
#include "nsIComponentManager.h"
#include "nsIRegistry.h"
#include "nsHashtable.h"
#include "prtime.h"
#include "prmon.h"
class nsFactoryEntry;
class nsDll;
////////////////////////////////////////////////////////////////////////////////
/*
*** Quick Registration NOT FOR PUBLIC CONSUMPTION ***
*
* Quick Registration
*
* For quick registration, dlls can define
* NSQuickRegisterClassData g_NSQuickRegisterData[];
* and export the symbol "g_NSQuickRegisterData"
*
* Quick registration is tried only if the symbol "NSRegisterSelf"
* is not found. If it is found but fails registration, quick registration
* will not kick in.
*
* The array is terminated by having a NULL last element. Specifically, the
* array will be assumed to end when
* (g_NSQuickRegisterData[i].classIdStr == NULL)
*
*/
#define NS_QUICKREGISTER_DATA_SYMBOL "g_NSQuickRegisterData"
////////////////////////////////////////////////////////////////////////////////
class nsComponentManagerImpl : public nsIComponentManager {
public:
NS_DECL_ISUPPORTS
// nsIComponentManager methods:
NS_IMETHOD FindFactory(const nsCID &aClass,
nsIFactory **aFactory);
// Finds a class ID for a specific Program ID
NS_IMETHOD ProgIDToCLSID(const char *aProgID,
nsCID *aClass);
// Finds a Program ID for a specific class ID
// caller frees the result with delete[]
NS_IMETHOD CLSIDToProgID(nsCID *aClass,
char* *aClassName,
char* *aProgID);
// Creates a class instance for a specific class ID
NS_IMETHOD CreateInstance(const nsCID &aClass,
nsISupports *aDelegate,
const nsIID &aIID,
void **aResult);
// Convenience routine, creates a class instance for a specific ProgID
NS_IMETHOD CreateInstance(const char *aProgID,
nsISupports *aDelegate,
const nsIID &aIID,
void **aResult);
// Manually registry a factory for a class
NS_IMETHOD RegisterFactory(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory *aFactory,
PRBool aReplace);
// Manually register a dynamically loaded component.
NS_IMETHOD RegisterComponent(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
const char *aLibrary,
PRBool aReplace,
PRBool aPersist);
// Manually unregister a factory for a class
NS_IMETHOD UnregisterFactory(const nsCID &aClass,
nsIFactory *aFactory);
// Manually unregister a dynamically loaded component
NS_IMETHOD UnregisterComponent(const nsCID &aClass,
const char *aLibrary);
// Unload dynamically loaded factories that are not in use
NS_IMETHOD FreeLibraries(void);
//////////////////////////////////////////////////////////////////////////////
// DLL registration support
// Autoregistration will try only files with these extensions.
// All extensions are case insensitive.
// ".dll", // Windows
// ".dso", // Unix
// ".so", // Unix
// ".sl", // Unix: HP
// ".shlb", // Mac
// ".dlm", // new for all platforms
//
// Directory and fullname are what NSPR will accept. For eg.
// MAC /Hard drive/mozilla/dist/bin
// WIN y:\Hard drive\mozilla\dist\bin (or) y:/Hard drive/mozilla/dist/bin
// UNIX /Hard drive/mozilla/dist/bin
//
NS_IMETHOD AutoRegister(RegistrationTime when, const char* directory);
NS_IMETHOD AutoRegisterComponent(RegistrationTime when, const char *fullname);
// nsComponentManagerImpl methods:
nsComponentManagerImpl();
virtual ~nsComponentManagerImpl();
static nsComponentManagerImpl* gComponentManager;
nsresult Init(void);
protected:
nsresult LoadFactory(nsFactoryEntry *aEntry, nsIFactory **aFactory);
nsresult SyncComponentsInDir(RegistrationTime when, const char *directory);
nsresult SelfRegisterDll(nsDll *dll);
nsresult SelfUnregisterDll(nsDll *dll);
nsresult HashProgID(const char *aprogID, const nsCID &aClass);
nsresult PlatformVersionCheck();
nsresult PlatformCreateDll(const char *fullname, nsDll* *result);
nsresult PlatformMarkNoComponents(nsDll *dll);
struct QuickRegisterData {
const char *CIDString; // {98765-8776-8958758759-958785}
const char *className; // "Layout Engine"
const char *progID; // "Gecko.LayoutEngine.1"
};
nsresult PlatformRegister(QuickRegisterData* regd, nsDll *dll);
nsresult PlatformUnregister(QuickRegisterData* regd, const char *aLibrary);
nsresult PlatformFind(const nsCID &aCID, nsFactoryEntry* *result);
nsresult PlatformProgIDToCLSID(const char *aProgID, nsCID *aClass);
nsresult PlatformCLSIDToProgID(nsCID *aClass, char* *aClassName, char* *aProgID);
void PlatformGetFileInfo(nsIRegistry::Key Key,PRTime *lastModifiedTime,PRUint32 *fileSize);
protected:
nsHashtable* mFactories;
nsHashtable* mProgIDs;
PRMonitor* mMon;
nsHashtable* mDllStore;
nsIRegistry* mRegistry;
nsIRegistry::Key mXPCOMKey;
nsIRegistry::Key mClassesKey;
};
#define NS_MAX_FILENAME_LEN 1024
#define NS_ERROR_IS_DIR NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XPCOM, 24)
#ifdef XP_UNIX
/* The default registry on the unix system is $HOME/.mozilla/registry per
* vr_findGlobalRegName(). vr_findRegFile() will create the registry file
* if it doesn't exist. But it wont create directories.
*
* Hence we need to create the directory if it doesn't exist already.
*
* Why create it here as opposed to the app ?
* ------------------------------------------
* The app cannot create the directory in main() as most of the registry
* and initialization happens due to use of static variables.
* And we dont want to be dependent on the order in which
* these static stuff happen.
*
* Permission for the $HOME/.mozilla will be Read,Write,Execute
* for user only. Nothing to group and others.
*/
#define NS_MOZILLA_DIR_NAME ".mozilla"
#define NS_MOZILLA_DIR_PERMISSION 00700
#endif /* XP_UNIX */
/**
* When using the registry we put a version number in it.
* If the version number that is in the registry doesn't match
* the following, we ignore the registry. This lets news versions
* of the software deal with old formats of registry and not
*
* alpha0.20 : First time we did versioning
* alpha0.30 : Changing autoreg to begin registration from ./components on unix
* alpha0.40 : repository -> component manager
* alpha0.50 : using nsIRegistry
*/
#define NS_XPCOM_COMPONENT_MANAGER_VERSION_STRING "alpha0.50"
////////////////////////////////////////////////////////////////////////////////
/**
* Class: nsFactoryEntry()
*
* There are two types of FactoryEntries.
*
* 1. {CID, dll} mapping.
* Factory is a consequence of the dll. These can be either session
* specific or persistent based on whether we write this
* to the registry or not.
*
* 2. {CID, factory} mapping
* These are strictly session specific and in memory only.
*/
class nsFactoryEntry {
public:
nsFactoryEntry();
nsFactoryEntry(const nsCID &aClass, nsIFactory *aFactory);
~nsFactoryEntry();
nsresult Init(nsHashtable* dllHashtable, const nsCID &aClass, const char *aLibrary,
PRTime lastModTime, PRUint32 fileSize);
nsCID cid;
nsIFactory *factory;
// DO NOT DELETE THIS. Many nsFactoryEntry(s) could be sharing the same Dll.
// This gets deleted from the dllStore going away.
nsDll *dll;
};
////////////////////////////////////////////////////////////////////////////////
#endif // nsComponentManager_h__

View File

@@ -1,88 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsGenericFactory.h"
nsGenericFactory::nsGenericFactory(ConstructorProcPtr constructor)
: mConstructor(constructor), mDestructor(NULL)
{
NS_INIT_ISUPPORTS();
}
nsGenericFactory::~nsGenericFactory()
{
if (mDestructor != NULL)
(*mDestructor) ();
}
NS_METHOD nsGenericFactory::QueryInterface(const nsIID& aIID, void** aInstancePtr)
{
if (NULL == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(nsIFactory::GetIID()) ||
aIID.Equals(nsIGenericFactory::GetIID()) ||
aIID.Equals(nsISupports::GetIID())) {
*aInstancePtr = (void*) this;
AddRef();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMPL_ADDREF(nsGenericFactory)
NS_IMPL_RELEASE(nsGenericFactory)
NS_IMETHODIMP nsGenericFactory::CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
return mConstructor(aOuter, aIID, aResult);
}
NS_IMETHODIMP nsGenericFactory::LockFactory(PRBool aLock)
{
return NS_OK;
}
NS_IMETHODIMP nsGenericFactory::SetConstructor(ConstructorProcPtr constructor)
{
mConstructor = constructor;
return NS_OK;
}
NS_IMETHODIMP nsGenericFactory::SetDestructor(DestructorProcPtr destructor)
{
mDestructor = destructor;
return NS_OK;
}
NS_METHOD nsGenericFactory::Create(nsISupports* outer, const nsIID& aIID, void* *aInstancePtr)
{
// sorry, aggregation not spoken here.
nsresult res = NS_ERROR_NO_AGGREGATION;
if (outer == NULL) {
nsGenericFactory* factory = new nsGenericFactory;
if (factory != NULL) {
res = factory->QueryInterface(aIID, aInstancePtr);
if (res != NS_OK)
delete factory;
} else {
res = NS_ERROR_OUT_OF_MEMORY;
}
}
return res;
}

View File

@@ -1,60 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsGenericFactory_h___
#define nsGenericFactory_h___
#include "nsIGenericFactory.h"
/**
* Most factories follow this simple pattern, so why not just use a function pointer
* for most creation operations?
*/
class nsGenericFactory : public nsIGenericFactory {
public:
static const nsCID& CID() { static nsCID cid = NS_GENERICFACTORY_CID; return cid; }
nsGenericFactory(ConstructorProcPtr constructor = NULL);
virtual ~nsGenericFactory();
NS_DECL_ISUPPORTS
NS_IMETHOD CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult);
NS_IMETHOD LockFactory(PRBool aLock);
/**
* Establishes the generic factory's constructor function, which will be called
* by CreateInstance.
*/
NS_IMETHOD SetConstructor(ConstructorProcPtr constructor);
/**
* Establishes the generic factory's destructor function, which will be called
* whe the generic factory is deleted. This is used to notify the DLL that
* an instance of one of its generic factories is going away.
*/
NS_IMETHOD SetDestructor(DestructorProcPtr destructor);
static NS_METHOD Create(nsISupports* outer, const nsIID& aIID, void* *aInstancePtr);
private:
ConstructorProcPtr mConstructor;
DestructorProcPtr mDestructor;
};
#endif /* nsGenericFactory_h___ */

View File

@@ -1,230 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIComponentManager_h__
#define nsIComponentManager_h__
#include "prtypes.h"
#include "nsCom.h"
#include "nsID.h"
#include "nsError.h"
#include "nsISupports.h"
#include "nsIFactory.h"
/*
* Prototypes for dynamic library export functions. Your DLL/DSO needs to export
* these methods to play in the component world.
*/
extern "C" NS_EXPORT nsresult NSGetFactory(nsISupports* aServMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" NS_EXPORT PRBool NSCanUnload(nsISupports* aServMgr);
extern "C" NS_EXPORT nsresult NSRegisterSelf(nsISupports* aServMgr, const char *fullpath);
extern "C" NS_EXPORT nsresult NSUnregisterSelf(nsISupports* aServMgr, const char *fullpath);
typedef nsresult (*nsFactoryProc)(nsISupports* aServMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
typedef PRBool (*nsCanUnloadProc)(nsISupports* aServMgr);
typedef nsresult (*nsRegisterProc)(nsISupports* aServMgr, const char *path);
typedef nsresult (*nsUnregisterProc)(nsISupports* aServMgr, const char *path);
#define NS_ICOMPONENTMANAGER_IID \
{ /* 8458a740-d5dc-11d2-92fb-00e09805570f */ \
0x8458a740, \
0xd5dc, \
0x11d2, \
{0x92, 0xfb, 0x00, 0xe0, 0x98, 0x05, 0x57, 0x0f} \
}
#define NS_COMPONENTMANAGER_CID \
{ /* 91775d60-d5dc-11d2-92fb-00e09805570f */ \
0x91775d60, \
0xd5dc, \
0x11d2, \
{0x92, 0xfb, 0x00, 0xe0, 0x98, 0x05, 0x57, 0x0f} \
}
/*
* nsIComponentManager interface
*/
class nsIComponentManager : public nsISupports {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICOMPONENTMANAGER_IID)
NS_IMETHOD FindFactory(const nsCID &aClass,
nsIFactory **aFactory) = 0;
// Finds a class ID for a specific Program ID
NS_IMETHOD ProgIDToCLSID(const char *aProgID,
nsCID *aClass) = 0;
// Finds a Program ID for a specific class ID
// caller frees the result with delete[]
NS_IMETHOD CLSIDToProgID(nsCID *aClass,
char* *aClassName,
char* *aProgID) = 0;
// Creates a class instance for a specific class ID
NS_IMETHOD CreateInstance(const nsCID &aClass,
nsISupports *aDelegate,
const nsIID &aIID,
void **aResult) = 0;
// Convenience routine, creates a class instance for a specific ProgID
NS_IMETHOD CreateInstance(const char *aProgID,
nsISupports *aDelegate,
const nsIID &aIID,
void **aResult) = 0;
// Manually registry a factory for a class
NS_IMETHOD RegisterFactory(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory *aFactory,
PRBool aReplace) = 0;
// Manually register a dynamically loaded component.
NS_IMETHOD RegisterComponent(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
const char *aLibrary,
PRBool aReplace,
PRBool aPersist) = 0;
// Manually unregister a factory for a class
NS_IMETHOD UnregisterFactory(const nsCID &aClass,
nsIFactory *aFactory) = 0;
// Manually unregister a dynamically loaded component
NS_IMETHOD UnregisterComponent(const nsCID &aClass,
const char *aLibrary) = 0;
// Unload dynamically loaded factories that are not in use
NS_IMETHOD FreeLibraries(void) = 0;
//////////////////////////////////////////////////////////////////////////////
// DLL registration support
// Autoregistration will try only files with these extensions.
// All extensions are case insensitive.
// ".dll", // Windows
// ".dso", // Unix
// ".so", // Unix
// ".sl", // Unix: HP
// ".shlb", // Mac
// ".dlm", // new for all platforms
//
// Directory and fullname are what NSPR will accept. For eg.
// MAC /Hard drive/mozilla/dist/bin
// WIN y:\Hard drive\mozilla\dist\bin (or) y:/Hard drive/mozilla/dist/bin
// UNIX /Hard drive/mozilla/dist/bin
//
enum RegistrationTime {
NS_Startup = 0,
NS_Script = 1,
NS_Timer = 2
};
NS_IMETHOD AutoRegister(RegistrationTime when, const char* directory) = 0;
NS_IMETHOD AutoRegisterComponent(RegistrationTime when, const char *fullname) = 0;
};
////////////////////////////////////////////////////////////////////////////////
extern NS_COM nsresult
NS_GetGlobalComponentManager(nsIComponentManager* *result);
////////////////////////////////////////////////////////////////////////////////
// Global Static Component Manager Methods
// (for when you need to link with xpcom)
class NS_COM nsComponentManager {
public:
static nsresult Initialize(void);
// Finds a factory for a specific class ID
static nsresult FindFactory(const nsCID &aClass,
nsIFactory **aFactory);
// Finds a class ID for a specific Program ID
static nsresult ProgIDToCLSID(const char *aProgID,
nsCID *aClass);
// Finds a Program ID for a specific class ID
// caller frees the result with delete[]
static nsresult CLSIDToProgID(nsCID *aClass,
char* *aClassName,
char* *aProgID);
// Creates a class instance for a specific class ID
static nsresult CreateInstance(const nsCID &aClass,
nsISupports *aDelegate,
const nsIID &aIID,
void **aResult);
// Convenience routine, creates a class instance for a specific ProgID
static nsresult CreateInstance(const char *aProgID,
nsISupports *aDelegate,
const nsIID &aIID,
void **aResult);
// Manually registry a factory for a class
static nsresult RegisterFactory(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory *aFactory,
PRBool aReplace);
// Manually register a dynamically loaded component.
static nsresult RegisterComponent(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
const char *aLibrary,
PRBool aReplace,
PRBool aPersist);
// Manually unregister a factory for a class
static nsresult UnregisterFactory(const nsCID &aClass,
nsIFactory *aFactory);
// Manually unregister a dynamically loaded component
static nsresult UnregisterComponent(const nsCID &aClass,
const char *aLibrary);
// Unload dynamically loaded factories that are not in use
static nsresult FreeLibraries(void);
//////////////////////////////////////////////////////////////////////////////
// DLL registration support
static nsresult AutoRegister(nsIComponentManager::RegistrationTime when,
const char* directory);
static nsresult AutoRegisterComponent(nsIComponentManager::RegistrationTime when,
const char *fullname);
};
////////////////////////////////////////////////////////////////////////////////
#endif

View File

@@ -1,45 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef __nsIFactory_h
#define __nsIFactory_h
#include "prtypes.h"
#include "nsISupports.h"
/*
* nsIFactory interface
*/
// {00000001-0000-0000-c000-000000000046}
#define NS_IFACTORY_IID \
{ 0x00000001, 0x0000, 0x0000, \
{ 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 } }
class nsIFactory: public nsISupports {
public:
static const nsIID& GetIID() { static nsIID iid = NS_IFACTORY_IID; return iid; }
NS_IMETHOD CreateInstance(nsISupports *aOuter,
REFNSIID aIID,
void **aResult) = 0;
NS_IMETHOD LockFactory(PRBool aLock) = 0;
};
#endif

View File

@@ -1,57 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIGenericFactory_h___
#define nsIGenericFactory_h___
#include "nsIFactory.h"
// {3bc97f01-ccdf-11d2-bab8-b548654461fc}
#define NS_GENERICFACTORY_CID \
{ 0x3bc97f01, 0xccdf, 0x11d2, { 0xba, 0xb8, 0xb5, 0x48, 0x65, 0x44, 0x61, 0xfc } }
// {3bc97f00-ccdf-11d2-bab8-b548654461fc}
#define NS_IGENERICFACTORY_IID \
{ 0x3bc97f00, 0xccdf, 0x11d2, { 0xba, 0xb8, 0xb5, 0x48, 0x65, 0x44, 0x61, 0xfc } }
/**
* Provides a Generic nsIFactory implementation that can be used by
* DLLs with very simple factory needs.
*/
class nsIGenericFactory : public nsIFactory {
public:
static const nsIID& GetIID() { static nsIID iid = NS_IGENERICFACTORY_IID; return iid; }
typedef NS_CALLBACK(ConstructorProcPtr) (nsISupports *aOuter, REFNSIID aIID, void **aResult);
typedef NS_CALLBACK(DestructorProcPtr) (void);
/**
* Establishes the generic factory's constructor function, which will be called
* by CreateInstance.
*/
NS_IMETHOD SetConstructor(ConstructorProcPtr constructor) = 0;
/**
* Establishes the generic factory's destructor function, which will be called
* whe the generic factory is deleted. This is used to notify the DLL that
* an instance of one of its generic factories is going away.
*/
NS_IMETHOD SetDestructor(DestructorProcPtr destructor) = 0;
};
#endif /* nsIGenericFactory_h___ */

View File

@@ -1,350 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef __nsIRegistry_h
#define __nsIRegistry_h
#include "nsISupports.h"
// {5D41A440-8E37-11d2-8059-00600811A9C3}
#define NS_IREGISTRY_IID { 0x5d41a440, 0x8e37, 0x11d2, { 0x80, 0x59, 0x0, 0x60, 0x8, 0x11, 0xa9, 0xc3 } }
#define NS_REGISTRY_PROGID "component://netscape/registry"
#define NS_REGISTRY_CLASSNAME "Mozilla Registry"
// {D1B54831-AC07-11d2-805E-00600811A9C3}
#define NS_IREGISTRYNODE_IID { 0xd1b54831, 0xac07, 0x11d2, { 0x80, 0x5e, 0x0, 0x60, 0x8, 0x11, 0xa9, 0xc3 } }
// {5316C380-B2F8-11d2-A374-0080C6F80E4B}
#define NS_IREGISTRYVALUE_IID { 0x5316c380, 0xb2f8, 0x11d2, { 0xa3, 0x74, 0x0, 0x80, 0xc6, 0xf8, 0xe, 0x4b } }
class nsIEnumerator;
/*-------------------------------- nsIRegistry ---------------------------------
| This interface provides access to a tree of arbitrary values. |
| |
| Each node of the tree contains either a value or a subtree or both. |
| |
| The value at any of these leaf nodes can be any of these "primitive" types: |
| o string (null terminated UTF string) |
| o array of 32-bit integers |
| o arbitrary array of bytes |
| o file identifier |
| Of course, since you can store an arbitrary array of bytes, you can put |
| any data you like into a registry (although you have the burden of |
| encoding/decoding your data in that case). |
| |
| Each branch of the tree is labelled with a string "key." The entire path |
| from a given point of the tree to another point further down can be |
| presented as a single string composed of each branch's label, concatenated |
| to the next, with an intervening forward slash ('/'). The term "key" |
| refers to both specific tree branch labels and to such concatenated paths. |
| |
| The branches from a given node must have unique labels. Distinct nodes can |
| have branches with the same label. |
| |
| For example, here's a small registry tree: |
| | |
| /\ |
| / \ |
| / \ |
| / \ |
| "Classes" "Users" |
| / \ |
| / \ |
| / ["joe"] |
| / / \ |
| | / \ |
| /\ / \ |
| / \ "joe" "bob" |
| / \ / \ |
| / \ |
| "{xxxx-xx-1}" "{xxxx-xx-2}" ["c:/joe"] ["d:/Robert"] |
| | | |
| /\ /\ |
| / \ / \ |
| / \ / \ |
| "Library" "Version" "Library" "Version" |
| / \ / \ |
| ["foo.dll"] 2 ["bar.dll"] 1 |
| |
| In this example, there are 2 keys under the root: "Classes" and "Users". |
| The first denotes a subtree only (which has two subtrees, ...). The second |
| denotes both a value ["joe"] and two subtrees labelled "joe" and "bob". |
| The value at the node "/Users" is ["joe"], at "/Users/bob" is ["d:/Robert"]. |
| The value at "/Classes/{xxxx-xx-1}/Version" is 2. |
| |
| The registry interface provides functions that let you navigate the tree |
| and manipulate it's contents. |
| |
| Please note that the registry itself does not impose any structure or |
| meaning on the contents of the tree. For example, the registry doesn't |
| control whether the value at the key "/Users" is the label for the subtree |
| with information about the last active user. That meaning is applied by |
| the code that stores these values and uses them for that purpose. |
| |
| [Any resemblence between this example and actual contents of any actual |
| registry is purely coincidental.] |
------------------------------------------------------------------------------*/
struct nsIRegistry : public nsISupports {
/*------------------------------ Constants ---------------------------------
| The following enumerated types and values are used by the registry |
| interface. |
--------------------------------------------------------------------------*/
typedef enum {
String = 1,
Int32,
Bytes,
File
} DataType;
/*-------------------------------- Types -----------------------------------
| The following data types are used by this interface. All are basically |
| opaque types. You obtain objects of these types via certain member |
| function calls and re-use them later (without having to know what they |
| contain). |
| |
| Key - Placeholder to represent a particular node in a registry |
| tree. There are 3 enumerated values that correspond to |
| specific nodes: |
| Common - Where most stuff goes. |
| Users - Special subtree to hold info about |
| "users"; if you don't know what goes |
| here, don't mess with it. |
| CurrentUser - Subtree under Users corresponding to |
| whatever user is designed the "current" |
| one; see note above. |
| You can specify any of these enumerated values as "keys" |
| on any member function that takes a nsRegistry::Key. |
| ValueInfo - Structure describing a registry value. |
--------------------------------------------------------------------------*/
typedef uint32 Key;
enum { Users = 1, Common = 2, CurrentUser = 3 };
struct ValueInfo {
DataType type;
uint32 length;
};
static const nsIID& GetIID() { static nsIID iid = NS_IREGISTRY_IID; return iid; }
/*--------------------------- Opening/Closing ------------------------------
| These functions open the specified registry file (Open() with a non-null |
| argument) or the default "standard" registry file (Open() with a null |
| argument or OpenDefault()). |
| |
| Once opened, you can access the registry contents via the read/write |
| or query functions. |
| |
| The registry file will be closed automatically when the registry object |
| is destroyed. You can close the file prior to that by using the |
| Close() function. |
--------------------------------------------------------------------------*/
NS_IMETHOD Open( const char *regFile = 0 ) = 0;
NS_IMETHOD OpenDefault() = 0;
NS_IMETHOD Close() = 0;
/*----------------------- Reading/Writing Values ---------------------------
| These functions read/write the registry values at a given node. |
| |
| All functions require you to specify where in the registry key to |
| get/set the value. The location is specified using two components: |
| o A "base key" indicating where to start from; this is a value of type |
| nsIRegistry::Key. You use either one of the special "root" key |
| values or a subkey obtained via some other member function call. |
| o A "relative path," expressed as a sequence of subtree names |
| separated by forward slashes. This path describes how to get from |
| the base key to the node at which you want to store the data. This |
| component can be a null pointer which means the value goes directly |
| at the node denoted by the base key. |
| |
| When you request a value of a given type, the data stored at the |
| specified node must be of the type requested. If not, an error results. |
| |
| GetString - Obtains a newly allocated copy of a string type value. The |
| caller is obligated to free the returned string using |
| PR_Free. |
| SetString - Stores the argument string at the specified node. |
| GetInt - Obtains an int32 value at the specified node. The result |
| is returned into an int32 location you specify. |
| SetInt - Stores a given int32 value at a node. |
| GetBytes - Obtains a byte array value; this returns both an allocated |
| array of bytes and a length (necessary because there may be |
| embedded null bytes in the array). You must free the |
| resulting array using PR_Free. |
| SetBytes - Stores a given array of bytes; you specify the bytes via a |
| pointer and a length. |
| GetIntArray - Obtains the array of int32 values stored at a given node. |
| The result is composed of two values: a pointer to an |
| array of integer values (which must be freed using |
| PR_Free) and the number of elements in that array. |
| SetIntArray - Stores a set of int32 values at a given node. You must |
| provide a pointer to the array and the number of entries. |
--------------------------------------------------------------------------*/
NS_IMETHOD GetString( Key baseKey, const char *path, char **result ) = 0;
NS_IMETHOD SetString( Key baseKey, const char *path, const char *value ) = 0;
NS_IMETHOD GetInt( Key baseKey, const char *path, int32 *result ) = 0;
NS_IMETHOD SetInt( Key baseKey, const char *path, int32 value ) = 0;
NS_IMETHOD GetBytes( Key baseKey, const char *path, void **result, uint32 *len ) = 0;
NS_IMETHOD SetBytes( Key baseKey, const char *path, void *value, uint32 len ) = 0;
NS_IMETHOD GetIntArray( Key baseKey, const char *path, int32 **result, uint32 *len ) = 0;
NS_IMETHOD SetIntArray( Key baseKey, const char *path, const int32 *value, uint32 len ) = 0;
/*------------------------------ Navigation --------------------------------
| These functions let you navigate through the registry tree, querying |
| its contents. |
| |
| As above, all these functions requires a starting tree location ("base |
| key") specified as a nsIRegistry::Key. Some also require a path |
| name to locate the registry node location relative to this base key. |
| |
| AddSubtree - Adds a new registry subtree at the specified |
| location. Returns the resulting key in |
| the location specified by the third argument |
| (unless that pointer is 0). |
| AddSubtreeRaw - Adds a new registry subtree at the specified |
| location. Returns the resulting key in |
| the location specified by the third argument |
| (unless that pointer is 0). |
| Does not interpret special chars in key names. |
| |
| RemoveSubtree - Removes the specified registry subtree or |
| value at the specified location. |
| RemoveSubtreeRaw - Removes the specified registry subtree or |
| value at the specified location. |
| Does not interpret special chars in key names. |
| |
| GetSubtree - Returns a nsIRegistry::Key that can be used |
| to refer to the specified registry location. |
| GetSubtreeRaw - Returns a nsIRegistry::Key that can be used |
| to refer to the specified registry location. |
| Does not interpret special chars in key names. |
| |
| EnumerateSubtrees - Returns a nsIEnumerator object that you can |
| use to enumerate all the subtrees descending |
| from a specified location. You must free the |
| enumerator via Release() when you're done with |
| it. |
| EnumerateAllSubtrees - Like EnumerateSubtrees, but will recursively |
| enumerate lower-level subtrees, too. |
| GetValueInfo - Returns a uint32 value that designates the type |
| of data stored at this location in the registry; |
| the possible values are defined by the enumerated |
| type nsIRegistry::DataType. |
| GetValueLength - Returns a uint32 value that indicates the length |
| of this registry value; the length is the number |
| of characters (for Strings), the number of bytes |
| (for Bytes), or the number of int32 values (for |
| Int32). |
| EnumerateValues - Returns a nsIEnumerator that you can use to |
| enumerate all the value nodes descending from |
| a specified location. |
--------------------------------------------------------------------------*/
NS_IMETHOD AddSubtree( Key baseKey, const char *path, Key *result ) = 0;
NS_IMETHOD RemoveSubtree( Key baseKey, const char *path ) = 0;
NS_IMETHOD GetSubtree( Key baseKey, const char *path, Key *result ) = 0;
NS_IMETHOD AddSubtreeRaw( Key baseKey, const char *keyname, Key *result ) = 0;
NS_IMETHOD RemoveSubtreeRaw( Key baseKey, const char *keyname ) = 0;
NS_IMETHOD GetSubtreeRaw( Key baseKey, const char *keyname, Key *result ) = 0;
NS_IMETHOD EnumerateSubtrees( Key baseKey, nsIEnumerator **result ) = 0;
NS_IMETHOD EnumerateAllSubtrees( Key baseKey, nsIEnumerator **result ) = 0;
NS_IMETHOD GetValueType( Key baseKey, const char *path, uint32 *result ) = 0;
NS_IMETHOD GetValueLength( Key baseKey, const char *path, uint32 *result ) = 0;
NS_IMETHOD EnumerateValues( Key baseKey, nsIEnumerator **result ) = 0;
/*------------------------------ User Name ---------------------------------
| These functions manipulate the current "user name." This value controls |
| the behavior of certain registry functions (namely, ?). |
| |
| GetCurrentUserName allocates a copy of the current user name (which the |
| caller should free using PR_Free). |
--------------------------------------------------------------------------*/
NS_IMETHOD GetCurrentUserName( char **result ) = 0;
NS_IMETHOD SetCurrentUserName( const char *name ) = 0;
/*------------------------------ Utilities ---------------------------------
| Various utility functions: |
| |
| Pack() is used to compress the contents of an open registry file. |
--------------------------------------------------------------------------*/
NS_IMETHOD Pack() = 0;
}; // nsIRegistry
/*------------------------------ nsIRegistryNode -------------------------------
| This interface is implemented by all the objects obtained from the |
| nsIEnumerators that nsIRegistry provides when you call either of the |
| subtree enumeration functions EnumerateSubtrees or EnumerateAllSubtrees. |
| |
| You can call this function to get the name of this subtree. This is the |
| relative path from the base key from which you got this interface. |
| |
| GetName - Returns the path name of this node; this is the relative path |
| from the base key from which this subtree was obtained. The |
| function allocates a copy of the name; the caller must free it |
| using PR_Free. |
------------------------------------------------------------------------------*/
struct nsIRegistryNode : public nsISupports {
NS_IMETHOD GetName( char **result ) = 0;
}; // nsIRegistryNode
/*------------------------------ nsIRegistryValue ------------------------------
| This interface is implemented by the objects obtained from the |
| nsIEnumerators that nsIRegistry provides when you call the |
| EnumerateValues function. An object supporting this interface is |
| returned when you call the CurrentItem() function on that enumerator. |
| |
| You use the member functions of this interface to obtain information |
| about each registry value. |
| |
| GetName - Returns the path name of this node; this is the relative |
| path\ from the base key from which this value was obtained. |
| The function allocates a copy of the name; the caller must |
| subsequently free it via PR_Free. |
| GetValueType - Returns (into a location provided by the caller) the type |
| of the value; the types are defined by the enumerated |
| type nsIRegistry::DataType. |
| GetValueLength - Returns a uint32 value that indicates the length |
| of this registry value; the length is the number |
| of characters (for Strings), the number of bytes |
| (for Bytes), or the number of int32 values (for |
| Int32). |
------------------------------------------------------------------------------*/
struct nsIRegistryValue : public nsISupports {
NS_IMETHOD GetName( char **result ) = 0;
NS_IMETHOD GetValueType( uint32 *result ) = 0;
NS_IMETHOD GetValueLength( uint32 *result ) = 0;
}; // nsIRegistryEntry
/*------------------------------- Error Codes ----------------------------------
------------------------------------------------------------------------------*/
#define NS_ERROR_REG_BADTYPE NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 1 )
#define NS_ERROR_REG_NO_MORE NS_ERROR_GENERATE_SUCCESS( NS_ERROR_MODULE_REG, 2 )
#define NS_ERROR_REG_NOT_FOUND NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 3 )
#define NS_ERROR_REG_NOFILE NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 4 )
#define NS_ERROR_REG_BUFFER_TOO_SMALL NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 5 )
#define NS_ERROR_REG_NAME_TOO_LONG NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 6 )
#define NS_ERROR_REG_NO_PATH NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 7 )
#define NS_ERROR_REG_READ_ONLY NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 8 )
#define NS_ERROR_REG_BAD_UTF8 NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 9 )
#endif

View File

@@ -1,327 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIServiceManager_h___
#define nsIServiceManager_h___
#include "nsIComponentManager.h"
#include "nsID.h"
class nsIShutdownListener;
#define NS_ISERVICEMANAGER_IID \
{ /* cf0df3b0-3401-11d2-8163-006008119d7a */ \
0xcf0df3b0, \
0x3401, \
0x11d2, \
{0x81, 0x63, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a} \
}
/**
* The nsIServiceManager manager interface provides a means to obtain
* global services in an application. The service manager depends on the
* repository to find and instantiate factories to obtain services.
*
* Users of the service manager must first obtain a pointer to the global
* service manager by calling NS_GetGlobalServiceManager. After that,
* they can request specific services by calling GetService. When they are
* finished with a service the release it by calling ReleaseService (instead
* of releasing the service object directly):
*
* nsICacheManager* cm;
* nsServiceManager::GetService(kCacheManagerCID, kICacheManagerIID, (nsISupports**)&cm);
*
* ... use cm, and then sometime later ...
*
* nsServiceManager::ReleaseService(kCacheManagerCID, cm);
*
* A user of a service may keep references to particular services indefinitely
* and only must call ReleaseService when it shuts down. However if the user
* wishes to voluntarily cooperate with the shutdown of the service it is
* using, it may supply an nsIShutdownListener to provide for asynchronous
* release of the services it is using. The shutdown listener's OnShutdown
* method will be called for a service that is being shut down, and it is
* its responsiblity to release references obtained from that service if at
* all possible.
*
* The process of shutting down a particular service is initiated by calling
* the service manager's ShutdownService method. This will iterate through
* all the registered shutdown listeners for the service being shut down, and
* then will attempt to unload the library associated with the service if
* possible. The status result of ShutdownService indicates whether the
* service was successfully shut down, failed, or was not in service.
*
* XXX QUESTIONS:
* - Should a "service" be more than nsISupports? Should it be a factory
* and/or have Startup(), Shutdown(), etc.
* - If the asynchronous OnShutdown operation gets called, does the user
* of a service still need to call ReleaseService? (Or should they _not_
* call it?)
*/
class nsIServiceManager : public nsISupports {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISERVICEMANAGER_IID);
/**
* RegisterService may be called explicitly to register a service
* with the service manager. If a service is not registered explicitly,
* the component manager will be used to create an instance according
* to the class ID specified.
*/
NS_IMETHOD
RegisterService(const nsCID& aClass, nsISupports* aService) = 0;
/**
* Requests a service to be shut down, possibly unloading its DLL.
*
* @returns NS_OK - if shutdown was successful and service was unloaded,
* @returns NS_ERROR_SERVICE_NOT_FOUND - if shutdown failed because
* the service was not currently loaded
* @returns NS_ERROR_SERVICE_IN_USE - if shutdown failed because some
* user of the service wouldn't voluntarily release it by using
* a shutdown listener.
*/
NS_IMETHOD
UnregisterService(const nsCID& aClass) = 0;
NS_IMETHOD
GetService(const nsCID& aClass, const nsIID& aIID,
nsISupports* *result,
nsIShutdownListener* shutdownListener = NULL) = 0;
NS_IMETHOD
ReleaseService(const nsCID& aClass, nsISupports* service,
nsIShutdownListener* shutdownListener = NULL) = 0;
////////////////////////////////////////////////////////////////////////////
// let's do it again, this time with ProgIDs...
NS_IMETHOD
RegisterService(const char* aProgID, nsISupports* aService) = 0;
NS_IMETHOD
UnregisterService(const char* aProgID) = 0;
NS_IMETHOD
GetService(const char* aProgID, const nsIID& aIID,
nsISupports* *result,
nsIShutdownListener* shutdownListener = NULL) = 0;
NS_IMETHOD
ReleaseService(const char* aProgID, nsISupports* service,
nsIShutdownListener* shutdownListener = NULL) = 0;
};
#define NS_ERROR_SERVICE_NOT_FOUND NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_XPCOM, 22)
#define NS_ERROR_SERVICE_IN_USE NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_XPCOM, 23)
////////////////////////////////////////////////////////////////////////////////
#define NS_ISHUTDOWNLISTENER_IID \
{ /* 56decae0-3406-11d2-8163-006008119d7a */ \
0x56decae0, \
0x3406, \
0x11d2, \
{0x81, 0x63, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a} \
}
class nsIShutdownListener : public nsISupports {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISHUTDOWNLISTENER_IID);
NS_IMETHOD
OnShutdown(const nsCID& aClass, nsISupports* service) = 0;
};
////////////////////////////////////////////////////////////////////////////////
// Interface to Global Services
class NS_COM nsServiceManager {
public:
static nsresult
RegisterService(const nsCID& aClass, nsISupports* aService);
static nsresult
UnregisterService(const nsCID& aClass);
static nsresult
GetService(const nsCID& aClass, const nsIID& aIID,
nsISupports* *result,
nsIShutdownListener* shutdownListener = NULL);
static nsresult
ReleaseService(const nsCID& aClass, nsISupports* service,
nsIShutdownListener* shutdownListener = NULL);
////////////////////////////////////////////////////////////////////////////
// let's do it again, this time with ProgIDs...
static nsresult
RegisterService(const char* aProgID, nsISupports* aService);
static nsresult
UnregisterService(const char* aProgID);
static nsresult
GetService(const char* aProgID, const nsIID& aIID,
nsISupports* *result,
nsIShutdownListener* shutdownListener = NULL);
static nsresult
ReleaseService(const char* aProgID, nsISupports* service,
nsIShutdownListener* shutdownListener = NULL);
////////////////////////////////////////////////////////////////////////////
static nsresult GetGlobalServiceManager(nsIServiceManager* *result);
// This method can be called when shutting down the application. It
// releases all the global services, and deletes the global service manager.
static nsresult ShutdownGlobalServiceManager(nsIServiceManager* *result);
static nsIServiceManager* mGlobalServiceManager;
};
////////////////////////////////////////////////////////////////////////////////
// NS_WITH_SERVICE: macro to make using services easier.
// Now you can replace this:
// {
// nsIMyService* service;
// rv = nsServiceManager::GetService(kMyServiceCID, nsIMyService::GetIID(),
// &service);
// if (NS_FAILED(rv)) return rv;
// service->Doit(...); // use my service
// rv = nsServiceManager::ReleaseService(kMyServiceCID, service);
// }
// with this:
// {
// NS_WITH_SERVICE(nsIMyService, service, kMyServiceCID, &rv);
// if (NS_FAILED(rv)) return rv;
// service->Doit(...); // use my service
// }
// and the automatic destructor will take care of releasing the service.
//
// Note that this macro requires you to link with the xpcom DLL to pick up the
// static member functions from nsServiceManager. For situations where you're
// passed an nsISupports that is an nsIComponentManager (such as in a DLL's
// NSRegisterSelf or NSUnregisterSelf entry points) you can use the following
// macro instead:
//
// NSRegisterSelf(nsISupports* servMgr, const char* path) {
// NS_WITH_SERVICE1(nsIComponentManager, compMgr, servMgr,
// kComponentManagerCID, &rv);
// if (NS_FAILED(rv)) return rv;
// compMgr->RegisterComponent(...); // use the service
// }
#define NS_WITH_SERVICE(T, var, cid, rvAddr) \
nsService _serv##var(cid, T::GetIID(), rvAddr); \
T* var = (T*)(nsISupports*)_serv##var;
#define NS_WITH_SERVICE1(T, var, isupports, cid, rvAddr) \
nsService _serv##var(isupports, cid, T::GetIID(), rvAddr); \
T* var = (T*)(nsISupports*)_serv##var;
class nsService {
protected:
nsCID mCID;
nsISupports* mService;
public:
nsService(nsISupports* aServMgr, const nsCID& aClass, const nsIID& aIID, nsresult *rv)
: mCID(aClass), mService(0)
{
nsIServiceManager* servMgr;
*rv = aServMgr->QueryInterface(nsIServiceManager::GetIID(), (void**)&servMgr);
if (NS_SUCCEEDED(*rv)) {
*rv = servMgr->GetService(mCID, aIID, &mService);
NS_RELEASE(servMgr);
}
NS_ASSERTION(NS_SUCCEEDED(*rv), "Couldn't get service.");
}
nsService(nsISupports* aServMgr, const char* aProgID, const nsIID& aIID, nsresult *rv)
: mService(0)
{
*rv = nsComponentManager::ProgIDToCLSID(aProgID, &mCID);
NS_ASSERTION(NS_SUCCEEDED(*rv), "Couldn't get CLSID.");
if (NS_FAILED(*rv)) return;
nsIServiceManager* servMgr;
*rv = aServMgr->QueryInterface(nsIServiceManager::GetIID(), (void**)&servMgr);
if (NS_SUCCEEDED(*rv)) {
*rv = servMgr->GetService(mCID, aIID, &mService);
NS_RELEASE(servMgr);
}
NS_ASSERTION(NS_SUCCEEDED(*rv), "Couldn't get service.");
}
nsService(const nsCID& aClass, const nsIID& aIID, nsresult *rv)
: mCID(aClass), mService(0) {
*rv = nsServiceManager::GetService(aClass, aIID,
(nsISupports**)&mService);
NS_ASSERTION(NS_SUCCEEDED(*rv), "Couldn't get service.");
}
~nsService() {
if (mService) { // mService could be null if the constructor fails
nsresult rv = NS_OK;
rv = nsServiceManager::ReleaseService(mCID, mService);
NS_ASSERTION(NS_SUCCEEDED(rv), "Couldn't release service.");
}
}
nsISupports* operator->() const {
NS_PRECONDITION(mService != 0, "Your code should test the error result from the constructor.");
return mService;
}
PRBool operator==(const nsISupports* other) {
return mService == other;
}
operator nsISupports*() const {
return mService;
}
};
////////////////////////////////////////////////////////////////////////////////
// NS_NewServiceManager: For when you want to create a service manager
// in a given context.
extern NS_COM nsresult
NS_NewServiceManager(nsIServiceManager* *result);
////////////////////////////////////////////////////////////////////////////////
// Initialization of XPCOM. Creates the global ComponentManager, ServiceManager
// and registers xpcom components with the ComponentManager. Should be called
// before any call can be made to XPCOM. Currently we are coping with this
// not being called and internally initializing XPCOM if not already.
extern NS_COM nsresult
NS_InitXPCOM(nsIServiceManager* *result);
////////////////////////////////////////////////////////////////////////////////
#endif /* nsIServiceManager_h___ */

View File

@@ -1,164 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifdef XP_MAC
#ifdef MOZ_NGLAYOUT
#error "nsMacRepository.h became obsolete when the shared lib conversion was completed."
// The Mac NGLayout is not based on shared libraries yet.
// All the DLLs are built as static libraries and we present them as
// shared libraries by redefining PR_LoadLibrary(), PR_UnloadLibrary()
// and PR_FindSymbol() below.
//
// If you add or remove shared libraries on other platforms, you must
// - Add the library name to the defines below.
// - Rename the "NSGetFactory" and "NSCanUnload" procs for the Mac:
// just append the library name to the function name.
// - Add the library and its procs to the static list below.
typedef struct MacLibrary
{
char * name;
nsFactoryProc factoryProc;
nsCanUnloadProc unloadProc;
} MacLibrary;
// library names
#define WIDGET_DLL "WIDGET_DLL"
#define GFXWIN_DLL "GFXWIN_DLL"
#define VIEW_DLL "VIEW_DLL"
#define WEB_DLL "WEB_DLL"
#define PLUGIN_DLL "PLUGIN_DLL"
#define PREF_DLL "PREF_DLL"
#define PARSER_DLL "PARSER_DLL"
#define DOM_DLL "DOM_DLL"
#define LAYOUT_DLL "LAYOUT_DLL"
#define NETLIB_DLL "NETLIB_DLL"
#define EDITOR_DLL "EDITOR_DLL"
#ifdef IMPL_MAC_REPOSITORY
extern "C" nsresult NSGetFactory_WIDGET_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_GFXWIN_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_VIEW_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_WEB_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
#if 0
extern "C" nsresult NSGetFactory_PLUGIN_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
#endif
extern "C" nsresult NSGetFactory_PREF_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_PARSER_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_DOM_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_LAYOUT_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_NETLIB_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_EDITOR_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" PRBool NSCanUnload_PREF_DLL(void);
// library list
static MacLibrary libraries[] = {
#if 0
WIDGET_DLL, NSGetFactory_WIDGET_DLL, NULL,
GFXWIN_DLL, NSGetFactory_GFXWIN_DLL, NULL,
VIEW_DLL, NSGetFactory_VIEW_DLL, NULL,
WEB_DLL, NSGetFactory_WEB_DLL, NULL,
//PLUGIN_DLL, NSGetFactory_PLUGIN_DLL, NULL,
PREF_DLL, NSGetFactory_PREF_DLL, NSCanUnload_PREF_DLL,
PARSER_DLL, NSGetFactory_PARSER_DLL, NULL,
DOM_DLL, NSGetFactory_DOM_DLL, NULL,
LAYOUT_DLL, NSGetFactory_LAYOUT_DLL, NULL,
NETLIB_DLL, NSGetFactory_NETLIB_DLL, NULL,
//EDITOR_DLL, NSGetFactory_EDITOR_DLL, NULL, // FIX ME
#endif
NULL
};
static void* FindMacSymbol(char* libName, const char *symbolName)
{
MacLibrary * macLib;
for (macLib = libraries; ; macLib ++)
{
if (macLib->name == NULL)
return NULL;
if (PL_strcmp(macLib->name, libName) == 0)
break;
}
if (PL_strcmp(symbolName, "NSGetFactory") == 0) {
return macLib->factoryProc;
}
else if (PL_strcmp(symbolName, "NSCanUnload") == 0) {
return macLib->unloadProc;
}
return NULL;
}
#define PR_LoadLibrary(libName) (PRLibrary *)libName
#define PR_UnloadLibrary(lib) lib = NULL
#define PR_FindSymbol(lib, symbolName) FindMacSymbol((char*)lib, symbolName)
#endif // IMPL_MAC_REPOSITORY
#endif // MOZ_NGLAYOUT
#endif // XP_MAC

File diff suppressed because it is too large Load Diff

View File

@@ -1,158 +0,0 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsIComponentManager.h"
nsresult
nsComponentManager::Initialize(void)
{
return NS_OK;
}
nsresult
nsComponentManager::FindFactory(const nsCID &aClass,
nsIFactory **aFactory)
{
nsIComponentManager* cm;
nsresult rv = NS_GetGlobalComponentManager(&cm);
if (NS_FAILED(rv)) return rv;
return cm->FindFactory(aClass, aFactory);
}
nsresult
nsComponentManager::ProgIDToCLSID(const char *aProgID,
nsCID *aClass)
{
nsIComponentManager* cm;
nsresult rv = NS_GetGlobalComponentManager(&cm);
if (NS_FAILED(rv)) return rv;
return cm->ProgIDToCLSID(aProgID, aClass);
}
nsresult
nsComponentManager::CLSIDToProgID(nsCID *aClass,
char* *aClassName,
char* *aProgID)
{
nsIComponentManager* cm;
nsresult rv = NS_GetGlobalComponentManager(&cm);
if (NS_FAILED(rv)) return rv;
return cm->CLSIDToProgID(aClass, aClassName, aProgID);
}
nsresult
nsComponentManager::CreateInstance(const nsCID &aClass,
nsISupports *aDelegate,
const nsIID &aIID,
void **aResult)
{
nsIComponentManager* cm;
nsresult rv = NS_GetGlobalComponentManager(&cm);
if (NS_FAILED(rv)) return rv;
return cm->CreateInstance(aClass, aDelegate, aIID, aResult);
}
nsresult
nsComponentManager::CreateInstance(const char *aProgID,
nsISupports *aDelegate,
const nsIID &aIID,
void **aResult)
{
nsIComponentManager* cm;
nsresult rv = NS_GetGlobalComponentManager(&cm);
if (NS_FAILED(rv)) return rv;
return cm->CreateInstance(aProgID, aDelegate, aIID, aResult);
}
nsresult
nsComponentManager::RegisterFactory(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory *aFactory,
PRBool aReplace)
{
nsIComponentManager* cm;
nsresult rv = NS_GetGlobalComponentManager(&cm);
if (NS_FAILED(rv)) return rv;
return cm->RegisterFactory(aClass, aClassName, aProgID,
aFactory, aReplace);
}
nsresult
nsComponentManager::RegisterComponent(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
const char *aLibrary,
PRBool aReplace,
PRBool aPersist)
{
nsIComponentManager* cm;
nsresult rv = NS_GetGlobalComponentManager(&cm);
if (NS_FAILED(rv)) return rv;
return cm->RegisterComponent(aClass, aClassName, aProgID,
aLibrary, aReplace, aPersist);
}
nsresult
nsComponentManager::UnregisterFactory(const nsCID &aClass,
nsIFactory *aFactory)
{
nsIComponentManager* cm;
nsresult rv = NS_GetGlobalComponentManager(&cm);
if (NS_FAILED(rv)) return rv;
return cm->UnregisterFactory(aClass, aFactory);
}
nsresult
nsComponentManager::UnregisterComponent(const nsCID &aClass,
const char *aLibrary)
{
nsIComponentManager* cm;
nsresult rv = NS_GetGlobalComponentManager(&cm);
if (NS_FAILED(rv)) return rv;
return cm->UnregisterComponent(aClass, aLibrary);
}
nsresult
nsComponentManager::FreeLibraries(void)
{
nsIComponentManager* cm;
nsresult rv = NS_GetGlobalComponentManager(&cm);
if (NS_FAILED(rv)) return rv;
return cm->FreeLibraries();
}
nsresult
nsComponentManager::AutoRegister(nsIComponentManager::RegistrationTime when,
const char* directory)
{
nsIComponentManager* cm;
nsresult rv = NS_GetGlobalComponentManager(&cm);
if (NS_FAILED(rv)) return rv;
return cm->AutoRegister(when, directory);
}
nsresult
nsComponentManager::AutoRegisterComponent(nsIComponentManager::RegistrationTime when,
const char *fullname)
{
nsIComponentManager* cm;
nsresult rv = NS_GetGlobalComponentManager(&cm);
if (NS_FAILED(rv)) return rv;
return cm->AutoRegisterComponent(when, fullname);
}

View File

@@ -1,613 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsIServiceManager.h"
#include "nsVector.h"
#include "nsHashtable.h"
#include "prcmon.h"
#include "prthread.h" /* XXX: only used for the NSPR initialization hack (rick) */
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
class nsServiceEntry {
public:
nsServiceEntry(const nsCID& cid, nsISupports* service);
~nsServiceEntry();
nsresult AddListener(nsIShutdownListener* listener);
nsresult RemoveListener(nsIShutdownListener* listener);
nsresult NotifyListeners(void);
const nsCID& mClassID;
nsISupports* mService;
nsVector* mListeners; // nsVector<nsIShutdownListener>
PRBool mShuttingDown;
};
nsServiceEntry::nsServiceEntry(const nsCID& cid, nsISupports* service)
: mClassID(cid), mService(service), mListeners(NULL), mShuttingDown(PR_FALSE)
{
}
nsServiceEntry::~nsServiceEntry()
{
if (mListeners) {
NS_ASSERTION(mListeners->GetSize() == 0, "listeners not removed or notified");
#if 0
PRUint32 size = mListeners->GetSize();
for (PRUint32 i = 0; i < size; i++) {
nsIShutdownListener* listener = (nsIShutdownListener*)(*mListeners)[i];
NS_RELEASE(listener);
}
#endif
delete mListeners;
}
}
nsresult
nsServiceEntry::AddListener(nsIShutdownListener* listener)
{
if (listener == NULL)
return NS_OK;
if (mListeners == NULL) {
mListeners = new nsVector();
if (mListeners == NULL)
return NS_ERROR_OUT_OF_MEMORY;
}
PRInt32 rv = mListeners->Add(listener);
NS_ADDREF(listener);
return rv == -1 ? NS_ERROR_FAILURE : NS_OK;
}
nsresult
nsServiceEntry::RemoveListener(nsIShutdownListener* listener)
{
if (listener == NULL)
return NS_OK;
NS_ASSERTION(mListeners, "no listeners added yet");
PRUint32 size = mListeners->GetSize();
for (PRUint32 i = 0; i < size; i++) {
if ((*mListeners)[i] == listener) {
mListeners->Remove(i);
NS_RELEASE(listener);
return NS_OK;
}
}
NS_ASSERTION(0, "unregistered shutdown listener");
return NS_ERROR_FAILURE;
}
nsresult
nsServiceEntry::NotifyListeners(void)
{
if (mListeners) {
PRUint32 size = mListeners->GetSize();
for (PRUint32 i = 0; i < size; i++) {
nsIShutdownListener* listener = (nsIShutdownListener*)(*mListeners)[0];
nsresult rv = listener->OnShutdown(mClassID, mService);
if (NS_FAILED(rv)) return rv;
NS_RELEASE(listener);
mListeners->Remove(0);
}
NS_ASSERTION(mListeners->GetSize() == 0, "failed to notify all listeners");
delete mListeners;
mListeners = NULL;
}
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
class nsServiceManagerImpl : public nsIServiceManager {
public:
NS_IMETHOD
RegisterService(const nsCID& aClass, nsISupports* aService);
NS_IMETHOD
UnregisterService(const nsCID& aClass);
NS_IMETHOD
GetService(const nsCID& aClass, const nsIID& aIID,
nsISupports* *result,
nsIShutdownListener* shutdownListener = NULL);
NS_IMETHOD
ReleaseService(const nsCID& aClass, nsISupports* service,
nsIShutdownListener* shutdownListener = NULL);
NS_IMETHOD
RegisterService(const char* aProgID, nsISupports* aService);
NS_IMETHOD
UnregisterService(const char* aProgID);
NS_IMETHOD
GetService(const char* aProgID, const nsIID& aIID,
nsISupports* *result,
nsIShutdownListener* shutdownListener = NULL);
NS_IMETHOD
ReleaseService(const char* aProgID, nsISupports* service,
nsIShutdownListener* shutdownListener = NULL);
nsServiceManagerImpl(void);
NS_DECL_ISUPPORTS
protected:
virtual ~nsServiceManagerImpl(void);
nsHashtable/*<nsServiceEntry>*/* mServices;
};
nsServiceManagerImpl::nsServiceManagerImpl(void)
{
NS_INIT_REFCNT();
mServices = new nsHashtable(256, PR_TRUE); // Get a threadSafe hashtable
NS_ASSERTION(mServices, "out of memory already?");
}
static PRBool
DeleteEntry(nsHashKey *aKey, void *aData, void* closure)
{
nsServiceEntry* entry = (nsServiceEntry*)aData;
NS_RELEASE(entry->mService);
delete entry;
return PR_TRUE;
}
nsServiceManagerImpl::~nsServiceManagerImpl(void)
{
if (mServices) {
mServices->Enumerate(DeleteEntry);
delete mServices;
}
}
static NS_DEFINE_IID(kIServiceManagerIID, NS_ISERVICEMANAGER_IID);
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
NS_IMPL_ADDREF(nsServiceManagerImpl);
NS_IMPL_RELEASE(nsServiceManagerImpl);
NS_IMETHODIMP
nsServiceManagerImpl::QueryInterface(const nsIID& aIID, void* *aInstancePtr)
{
if (NULL == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
*aInstancePtr = NULL;
if (aIID.Equals(kIServiceManagerIID) ||
aIID.Equals(kISupportsIID)) {
*aInstancePtr = (void*) this;
AddRef();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMETHODIMP
nsServiceManagerImpl::GetService(const nsCID& aClass, const nsIID& aIID,
nsISupports* *result,
nsIShutdownListener* shutdownListener)
{
nsresult rv = NS_OK;
/* XXX: This is a hack to force NSPR initialization.. This should be
* removed once PR_CEnterMonitor(...) initializes NSPR... (rick)
*/
(void)PR_GetCurrentThread();
PR_CEnterMonitor(this);
nsIDKey key(aClass);
nsServiceEntry* entry = (nsServiceEntry*)mServices->Get(&key);
if (entry) {
nsISupports* service;
rv = entry->mService->QueryInterface(aIID, (void**)&service);
if (NS_SUCCEEDED(rv)) {
rv = entry->AddListener(shutdownListener);
if (NS_SUCCEEDED(rv)) {
*result = service;
// If someone else requested the service to be shut down,
// and we just asked to get it again before it could be
// released, then cancel their shutdown request:
if (entry->mShuttingDown) {
entry->mShuttingDown = PR_FALSE;
NS_ADDREF(service); // Released in UnregisterService
}
}
}
}
else {
nsISupports* service;
rv = nsComponentManager::CreateInstance(aClass, NULL, aIID, (void**)&service);
if (NS_SUCCEEDED(rv)) {
entry = new nsServiceEntry(aClass, service);
if (entry == NULL) {
NS_RELEASE(service);
rv = NS_ERROR_OUT_OF_MEMORY;
}
else {
rv = entry->AddListener(shutdownListener);
if (NS_SUCCEEDED(rv)) {
mServices->Put(&key, entry);
*result = service;
NS_ADDREF(service); // Released in UnregisterService
}
else {
NS_RELEASE(service);
delete entry;
}
}
}
}
PR_CExitMonitor(this);
return rv;
}
NS_IMETHODIMP
nsServiceManagerImpl::ReleaseService(const nsCID& aClass, nsISupports* service,
nsIShutdownListener* shutdownListener)
{
nsresult rv = NS_OK;
PR_CEnterMonitor(this);
nsIDKey key(aClass);
nsServiceEntry* entry = (nsServiceEntry*)mServices->Get(&key);
NS_ASSERTION(entry, "service not found");
// NS_ASSERTION(entry->mService == service, "service looked failed");
if (entry) {
rv = entry->RemoveListener(shutdownListener);
nsrefcnt cnt;
NS_RELEASE2(service, cnt);
if (NS_SUCCEEDED(rv) && cnt == 0) {
mServices->Remove(&key);
delete entry;
rv = nsComponentManager::FreeLibraries();
}
}
PR_CExitMonitor(this);
return rv;
}
NS_IMETHODIMP
nsServiceManagerImpl::RegisterService(const nsCID& aClass, nsISupports* aService)
{
nsresult rv = NS_OK;
PR_CEnterMonitor(this);
nsIDKey key(aClass);
nsServiceEntry* entry = (nsServiceEntry*)mServices->Get(&key);
if (entry) {
rv = NS_ERROR_FAILURE;
}
else {
nsServiceEntry* entry = new nsServiceEntry(aClass, aService);
if (entry == NULL)
rv = NS_ERROR_OUT_OF_MEMORY;
else {
mServices->Put(&key, entry);
NS_ADDREF(aService); // Released in UnregisterService
}
}
PR_CExitMonitor(this);
return rv;
}
NS_IMETHODIMP
nsServiceManagerImpl::UnregisterService(const nsCID& aClass)
{
nsresult rv = NS_OK;
PR_CEnterMonitor(this);
nsIDKey key(aClass);
nsServiceEntry* entry = (nsServiceEntry*)mServices->Get(&key);
if (entry == NULL) {
rv = NS_ERROR_SERVICE_NOT_FOUND;
}
else {
rv = entry->NotifyListeners(); // break the cycles
entry->mShuttingDown = PR_TRUE;
nsrefcnt cnt;
NS_RELEASE2(entry->mService, cnt); // AddRef in GetService
if (NS_SUCCEEDED(rv) && cnt == 0) {
mServices->Remove(&key);
delete entry;
rv = nsComponentManager::FreeLibraries();
}
else
rv = NS_ERROR_SERVICE_IN_USE;
}
PR_CExitMonitor(this);
return rv;
}
////////////////////////////////////////////////////////////////////////////////
// let's do it again, this time with ProgIDs...
NS_IMETHODIMP
nsServiceManagerImpl::RegisterService(const char* aProgID, nsISupports* aService)
{
nsCID aClass;
nsresult rv;
rv = nsComponentManager::ProgIDToCLSID(aProgID, &aClass);
if (NS_FAILED(rv)) return rv;
return RegisterService(aClass, aService);
}
NS_IMETHODIMP
nsServiceManagerImpl::UnregisterService(const char* aProgID)
{
nsCID aClass;
nsresult rv;
rv = nsComponentManager::ProgIDToCLSID(aProgID, &aClass);
if (NS_FAILED(rv)) return rv;
return UnregisterService(aClass);
}
NS_IMETHODIMP
nsServiceManagerImpl::GetService(const char* aProgID, const nsIID& aIID,
nsISupports* *result,
nsIShutdownListener* shutdownListener)
{
nsCID aClass;
nsresult rv;
rv = nsComponentManager::ProgIDToCLSID(aProgID, &aClass);
if (NS_FAILED(rv)) return rv;
return GetService(aClass, aIID, result, shutdownListener);
}
NS_IMETHODIMP
nsServiceManagerImpl::ReleaseService(const char* aProgID, nsISupports* service,
nsIShutdownListener* shutdownListener)
{
nsCID aClass;
nsresult rv;
rv = nsComponentManager::ProgIDToCLSID(aProgID, &aClass);
if (NS_FAILED(rv)) return rv;
return ReleaseService(aClass, service, shutdownListener);
}
////////////////////////////////////////////////////////////////////////////////
nsresult
NS_NewServiceManager(nsIServiceManager* *result)
{
nsServiceManagerImpl* servMgr = new nsServiceManagerImpl();
if (servMgr == NULL)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(servMgr);
*result = servMgr;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
// Global service manager interface (see nsIServiceManager.h)
nsresult
nsServiceManager::GetGlobalServiceManager(nsIServiceManager* *result)
{
nsresult rv = NS_OK;
if (mGlobalServiceManager == NULL) {
// XPCOM not initialized yet. Let us do initialization of our module.
rv = NS_InitXPCOM(NULL);
}
// No ADDREF as we are advicing no release of this.
if (NS_SUCCEEDED(rv)) *result = mGlobalServiceManager;
return rv;
}
nsresult
nsServiceManager::ShutdownGlobalServiceManager(nsIServiceManager* *result)
{
if (mGlobalServiceManager != NULL) {
NS_RELEASE(mGlobalServiceManager);
mGlobalServiceManager = NULL;
}
return NS_OK;
}
nsresult
nsServiceManager::GetService(const nsCID& aClass, const nsIID& aIID,
nsISupports* *result,
nsIShutdownListener* shutdownListener)
{
nsIServiceManager* mgr;
nsresult rv = GetGlobalServiceManager(&mgr);
if (NS_FAILED(rv)) return rv;
return mgr->GetService(aClass, aIID, result, shutdownListener);
}
nsresult
nsServiceManager::ReleaseService(const nsCID& aClass, nsISupports* service,
nsIShutdownListener* shutdownListener)
{
nsIServiceManager* mgr;
nsresult rv = GetGlobalServiceManager(&mgr);
if (NS_FAILED(rv)) return rv;
return mgr->ReleaseService(aClass, service, shutdownListener);
}
nsresult
nsServiceManager::RegisterService(const nsCID& aClass, nsISupports* aService)
{
nsIServiceManager* mgr;
nsresult rv = GetGlobalServiceManager(&mgr);
if (NS_FAILED(rv)) return rv;
return mgr->RegisterService(aClass, aService);
}
nsresult
nsServiceManager::UnregisterService(const nsCID& aClass)
{
nsIServiceManager* mgr;
nsresult rv = GetGlobalServiceManager(&mgr);
if (NS_FAILED(rv)) return rv;
return mgr->UnregisterService(aClass);
}
////////////////////////////////////////////////////////////////////////////////
// let's do it again, this time with ProgIDs...
nsresult
nsServiceManager::GetService(const char* aProgID, const nsIID& aIID,
nsISupports* *result,
nsIShutdownListener* shutdownListener)
{
nsIServiceManager* mgr;
nsresult rv = GetGlobalServiceManager(&mgr);
if (NS_FAILED(rv)) return rv;
return mgr->GetService(aProgID, aIID, result, shutdownListener);
}
nsresult
nsServiceManager::ReleaseService(const char* aProgID, nsISupports* service,
nsIShutdownListener* shutdownListener)
{
nsIServiceManager* mgr;
nsresult rv = GetGlobalServiceManager(&mgr);
if (NS_FAILED(rv)) return rv;
return mgr->ReleaseService(aProgID, service, shutdownListener);
}
nsresult
nsServiceManager::RegisterService(const char* aProgID, nsISupports* aService)
{
nsIServiceManager* mgr;
nsresult rv = GetGlobalServiceManager(&mgr);
if (NS_FAILED(rv)) return rv;
return mgr->RegisterService(aProgID, aService);
}
nsresult
nsServiceManager::UnregisterService(const char* aProgID)
{
nsIServiceManager* mgr;
nsresult rv = GetGlobalServiceManager(&mgr);
if (NS_FAILED(rv)) return rv;
return mgr->UnregisterService(aProgID);
}
////////////////////////////////////////////////////////////////////////////////
// XPCOM initialization
//
// To Control the order of initialization of these key components I am putting
// this function.
//
// - nsServiceManager
// - nsComponentManager
// - nsRegistry
//
// Here are key points to remember:
// - A global of all these need to exist. nsServiceManager is an independent object.
// nsComponentManager uses both the globalServiceManager and its own registry.
//
// - A static object of both the nsComponentManager and nsServiceManager
// are in use. Hence InitXPCOM() gets triggered from both
// NS_GetGlobale{Service/Component}Manager() calls.
//
// - There exists no global Registry. Registry can be created from the component manager.
//
#include "nsComponentManager.h"
#include "nsIRegistry.h"
#include "nsXPComCIID.h"
#include "nsAllocator.h"
extern "C" NS_EXPORT nsresult
NS_RegistryGetFactory(nsISupports* servMgr, nsIFactory** aFactory);
nsIServiceManager* nsServiceManager::mGlobalServiceManager = NULL;
nsComponentManagerImpl* nsComponentManagerImpl::gComponentManager = NULL;
nsresult NS_InitXPCOM(nsIServiceManager* *result)
{
nsresult rv = NS_OK;
// 1. Create the Global Service Manager
nsIServiceManager* servMgr = NULL;
if (nsServiceManager::mGlobalServiceManager == NULL)
{
rv = NS_NewServiceManager(&servMgr);
if (NS_FAILED(rv)) return rv;
nsServiceManager::mGlobalServiceManager = servMgr;
NS_ADDREF(servMgr);
if (result) *result = servMgr;
}
// 2. Create the Component Manager and register with global service manager
// It is understood that the component manager can use the global service manager.
nsComponentManagerImpl *compMgr = NULL;
if (nsComponentManagerImpl::gComponentManager == NULL)
{
compMgr = new nsComponentManagerImpl();
if (compMgr == NULL)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(compMgr);
nsresult rv = compMgr->Init();
if (NS_FAILED(rv))
{
NS_RELEASE(compMgr);
return rv;
}
nsComponentManagerImpl::gComponentManager = compMgr;
}
rv = servMgr->RegisterService(kComponentManagerCID, compMgr);
if (NS_FAILED(rv)) return rv;
// 3. Register the RegistryFactory with the component manager so that
// clients can create new registry objects.
nsIFactory *registryFactory = NULL;
rv = NS_RegistryGetFactory(servMgr, &registryFactory);
if (NS_FAILED(rv)) return rv;
NS_DEFINE_CID(kRegistryCID, NS_REGISTRY_CID);
rv = compMgr->RegisterFactory(kRegistryCID, NS_REGISTRY_CLASSNAME,
NS_REGISTRY_PROGID, registryFactory,
PR_TRUE);
NS_RELEASE(registryFactory);
if (NS_FAILED(rv)) return rv;
// Register nsAllocator
nsAllocatorFactory* alloc = new nsAllocatorFactory();
if (alloc == NULL)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(alloc);
static NS_DEFINE_CID(kAllocatorCID, NS_ALLOCATOR_CID);
rv = compMgr->RegisterFactory(kAllocatorCID, "Malloc/Free Allocator",
NULL, alloc, PR_TRUE);
NS_RELEASE(alloc);
if (NS_FAILED(rv)) return rv;
return rv;
}

View File

@@ -1,158 +0,0 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef nsXPComFactory_h__
#define nsXPComFactory_h__
#include "nsIFactory.h"
/*
* This file contains a macro for the implementation of a simple XPCOM factory.
*
* To implement a factory for a given component, you need to declare the
* factory class using the NS_DEF_FACTORY() macro.
*
* The first macro argument is the name for the factory.
*
* The second macro argument is a function (provided by you) which
* can be called by your DLL's NSGetFactory(...) entry point.
*
* Example:
*
* NS_DEF_FACTORY(SomeComponent,SomeComponentImpl)
*
* Declares:
*
* class nsSomeComponentFactory : public nsIFactory {};
*
* NOTE that the NS_DEF_FACTORY takes care of enforcing the "ns" prefix
* and appending the "Factory" suffix to the given name.
*
* To use the new factory:
*
* nsresult NS_New_SomeComponent_Factory(nsIFactory** aResult)
* {
* nsresult rv = NS_OK;
* nsIFactory* inst = new nsSomeComponentFactory;
* if (NULL == inst) {
* rv = NS_ERROR_OUT_OF_MEMORY;
* } else {
* NS_ADDREF(inst);
* }
* *aResult = inst;
* return rv;
* }
*
* NOTE:
* ----
* The factories created by this macro are not thread-safe and do not
* support aggregation.
*
*/
#define NS_DEF_FACTORY(_name,_type) \
class ns##_name##Factory : public nsIFactory \
{ \
public: \
ns##_name##Factory() { NS_INIT_REFCNT(); } \
\
NS_IMETHOD_(nsrefcnt) AddRef (void) \
{ \
return ++mRefCnt; \
} \
\
NS_IMETHOD_(nsrefcnt) Release(void) \
{ \
NS_PRECONDITION(0 != mRefCnt, "dup release"); \
if (--mRefCnt == 0) { \
NS_DELETEXPCOM(this); \
return 0; \
} \
return mRefCnt; \
} \
\
NS_IMETHOD QueryInterface(REFNSIID aIID, void** aInstancePtr) \
{ \
if (NULL == aInstancePtr) { \
return NS_ERROR_NULL_POINTER; \
} \
\
*aInstancePtr = NULL; \
\
static NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID); \
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); \
if (aIID.Equals(kIFactoryIID)) { \
*aInstancePtr = (void*) this; \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
if (aIID.Equals(kISupportsIID)) { \
*aInstancePtr = (void*) ((nsISupports*)this); \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
return NS_NOINTERFACE; \
} \
\
NS_IMETHOD CreateInstance(nsISupports *aOuter, \
const nsIID &aIID, \
void **aResult) \
{ \
nsresult rv; \
\
_type * inst; \
\
if (NULL == aResult) { \
rv = NS_ERROR_NULL_POINTER; \
goto done; \
} \
*aResult = NULL; \
if (NULL != aOuter) { \
rv = NS_ERROR_NO_AGGREGATION; \
goto done; \
} \
\
NS_NEWXPCOM(inst, _type); \
if (NULL == inst) { \
rv = NS_ERROR_OUT_OF_MEMORY; \
goto done; \
} \
NS_ADDREF(inst); \
rv = inst->QueryInterface(aIID, aResult); \
NS_RELEASE(inst); \
\
done: \
return rv; \
} \
\
NS_IMETHOD LockFactory(PRBool aLock) \
{ \
return NS_OK; \
} \
\
\
protected: \
virtual ~ns##_name##Factory() \
{ \
NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); \
} \
\
nsrefcnt mRefCnt; \
};
#endif /* nsXPComFactory_h__ */

View File

@@ -1,171 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/* nsDll
*
* Abstraction of a Dll. Stores modifiedTime and size for easy detection of
* change in dll.
*
* dp Suresh <dp@netscape.com>
*/
#include "xcDll.h"
#include "plstr.h" // strdup and strfree
nsDll::nsDll(const char *libFullPath) : m_fullpath(NULL), m_instance(NULL),
m_status(DLL_OK)
{
m_lastModTime = LL_ZERO;
m_size = 0;
if (libFullPath == NULL)
{
m_status = DLL_INVALID_PARAM;
return;
}
m_fullpath = PL_strdup(libFullPath);
if (m_fullpath == NULL)
{
// No more memory
m_status = DLL_NO_MEM;
return;
}
PRFileInfo statinfo;
if (PR_GetFileInfo(m_fullpath, &statinfo) != PR_SUCCESS)
{
// The stat things works only if people pass in the full pathname.
// Even if our stat fails, we could be able to load it because of
// LD_LIBRARY_PATH and other such paths where dlls are searched for
// XXX we need a way of marking this occurance.
// XXX m_status = DLL_STAT_ERROR;
}
else
{
m_size = statinfo.size;
m_lastModTime = statinfo.modifyTime;
if (statinfo.type != PR_FILE_FILE)
{
// Not a file. Cant work with it.
m_status = DLL_NOT_FILE;
return;
}
}
m_status = DLL_OK;
}
nsDll::nsDll(const char *libFullPath, PRTime lastModTime, PRUint32 fileSize)
: m_fullpath(NULL), m_instance(NULL), m_status(DLL_OK)
{
m_lastModTime = lastModTime;
m_size = fileSize;
if (libFullPath == NULL)
{
m_status = DLL_INVALID_PARAM;
return;
}
m_fullpath = PL_strdup(libFullPath);
if (m_fullpath == NULL)
{
// No more memory
m_status = DLL_NO_MEM;
return;
}
m_status = DLL_OK;
}
nsDll::~nsDll(void)
{
if (m_instance != NULL)
Unload();
if (m_fullpath != NULL) PL_strfree(m_fullpath);
m_fullpath = NULL;
}
PRBool nsDll::Load(void)
{
#ifdef XP_MAC
char *macFileName = NULL;
int loop;
#endif
if (m_status != DLL_OK)
{
return (PR_FALSE);
}
if (m_instance != NULL)
{
// Already loaded
return (PR_TRUE);
}
#ifdef XP_MAC
// err = ConvertUnixPathToMacPath(m_fullpath, &macFileName);
if ((macFileName = PL_strdup(m_fullpath)) != NULL)
{
if (macFileName[0] == '/')
{
for (loop=0; loop<PL_strlen(macFileName); loop++)
{
if (macFileName[loop] == '/') macFileName[loop] = ':';
}
m_instance = PR_LoadLibrary(&macFileName[1]); // skip over initial slash
}
else
{
m_instance = PR_LoadLibrary(macFileName);
}
PL_strfree(macFileName);
}
#else
// This is the only right way of doing this...
m_instance = PR_LoadLibrary(m_fullpath);
#endif /* XP_MAC */
return ((m_instance == NULL) ? PR_FALSE : PR_TRUE);
}
PRBool nsDll::Unload(void)
{
if (m_status != DLL_OK || m_instance == NULL)
return (PR_FALSE);
PRStatus ret = PR_UnloadLibrary(m_instance);
if (ret == PR_SUCCESS)
{
m_instance = NULL;
return (PR_TRUE);
}
else
return (PR_FALSE);
}
void * nsDll::FindSymbol(const char *symbol)
{
if (symbol == NULL)
return (NULL);
// If not already loaded, load it now.
if (Load() != PR_TRUE)
return (NULL);
return (PR_FindSymbol(m_instance, symbol));
}

View File

@@ -1,71 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/* Dll
*
* Programmatic representation of a dll. Stores modifiedTime and size for
* easy detection of change in dll.
*
* dp Suresh <dp@netscape.com>
*/
#include "prio.h"
#include "prlink.h"
typedef enum nsDllStatus
{
DLL_OK = 0,
DLL_NO_MEM = 1,
DLL_STAT_ERROR = 2,
DLL_NOT_FILE = 3,
DLL_INVALID_PARAM = 4
} nsDllStatus;
class nsDll
{
private:
char *m_fullpath; // system format full filename of dll
PRTime m_lastModTime; // last modified time
PRUint32 m_size; // size of the dynamic library
PRLibrary *m_instance; // Load instance
nsDllStatus m_status; // holds current status
public:
nsDll(const char *libFullPath);
nsDll(const char *libFullPath, PRTime lastModTime, PRUint32 fileSize);
~nsDll(void);
// Status checking on operations completed
nsDllStatus GetStatus(void) { return (m_status); }
// Dll Loading
PRBool Load(void);
PRBool Unload(void);
PRBool IsLoaded(void)
{
return ((m_instance != 0) ? PR_TRUE : PR_FALSE);
}
void *FindSymbol(const char *symbol);
const char *GetFullPath(void) { return (m_fullpath); }
PRTime GetLastModifiedTime(void) { return(m_lastModTime); }
PRUint32 GetSize(void) { return(m_size); }
PRLibrary *GetInstance(void) { return (m_instance); }
};

View File

@@ -1,88 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/* THIS FILE IS OBSOLETE */
/* nsDllStore
*
* Stores dll and their accociated info in a hash keyed on the system format
* full dll path name e.g C:\Program Files\Netscape\Program\raptor.dll
*
* NOTE: dll names are considered to be case sensitive.
*/
#include "xcDllStore.h"
static PR_CALLBACK PRIntn _deleteDllInfo(PLHashEntry *he, PRIntn i, void *arg)
{
delete (nsDll *)he->value;
return (HT_ENUMERATE_NEXT);
}
nsDllStore::nsDllStore(void) : m_dllHashTable(NULL)
{
PRUint32 initSize = 128;
m_dllHashTable = PL_NewHashTable(initSize, PL_HashString,
PL_CompareStrings, PL_CompareValues, NULL, NULL);
}
nsDllStore::~nsDllStore(void)
{
if (m_dllHashTable)
{
// Delete each of the nsDll stored before deleting the Hash Table
PL_HashTableEnumerateEntries(m_dllHashTable, _deleteDllInfo, NULL);
PL_HashTableDestroy(m_dllHashTable);
}
m_dllHashTable = NULL;
}
nsDll* nsDllStore::Get(const char *dll)
{
nsDll *dllInfo = NULL;
if (m_dllHashTable)
{
dllInfo = (nsDll *)PL_HashTableLookup(m_dllHashTable, dll);
}
return (dllInfo);
}
nsDll* nsDllStore::Remove(const char *dll)
{
if (m_dllHashTable == NULL)
{
return (NULL);
}
nsDll *dllInfo = Get(dll);
PL_HashTableRemove(m_dllHashTable, dll);
return (dllInfo);
}
PRBool nsDllStore::Put(const char *dll, nsDll *dllInfo)
{
if (m_dllHashTable == NULL)
return(PR_FALSE);
PLHashEntry *entry =
PL_HashTableAdd(m_dllHashTable, (void *)dll, (void *)dllInfo);
return ((entry != NULL) ? PR_TRUE : PR_FALSE);
}

View File

@@ -1,49 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/* nsDllStore
*
* Stores dll and their accociated info in a hash keyed on the system format
* full dll path name e.g C:\Program Files\Netscape\Program\raptor.dll
*
* NOTE: dll names are considered to be case sensitive.
*/
#include "plhash.h"
#include "xcDll.h"
class nsDllStore
{
private:
PLHashTable *m_dllHashTable;
public:
// Constructor
nsDllStore(void);
~nsDllStore(void);
// Caller is not expected to delete nsDll returned
// The nsDll returned in NOT removed from the hash
nsDll* Get(const char *filename);
PRBool Put(const char *filename, nsDll *dllInfo);
// The nsDll returned is removed from the hash
// Caller is expected to delete the returned nsDll
nsDll* Remove(const char *filename);
};

View File

@@ -1,392 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsIEnumerator.h"
////////////////////////////////////////////////////////////////////////////////
// Intersection Enumerators
////////////////////////////////////////////////////////////////////////////////
class nsConjoiningEnumerator : public nsIBidirectionalEnumerator
{
public:
NS_DECL_ISUPPORTS
// nsIEnumerator methods:
NS_IMETHOD First(void);
NS_IMETHOD Next(void);
NS_IMETHOD CurrentItem(nsISupports **aItem);
NS_IMETHOD IsDone(void);
// nsIBidirectionalEnumerator methods:
NS_IMETHOD Last(void);
NS_IMETHOD Prev(void);
// nsConjoiningEnumerator methods:
nsConjoiningEnumerator(nsIEnumerator* first, nsIEnumerator* second);
virtual ~nsConjoiningEnumerator(void);
protected:
nsIEnumerator* mFirst;
nsIEnumerator* mSecond;
nsIEnumerator* mCurrent;
};
nsConjoiningEnumerator::nsConjoiningEnumerator(nsIEnumerator* first, nsIEnumerator* second)
: mFirst(first), mSecond(second), mCurrent(first)
{
NS_ADDREF(mFirst);
NS_ADDREF(mSecond);
}
nsConjoiningEnumerator::~nsConjoiningEnumerator(void)
{
NS_RELEASE(mFirst);
NS_RELEASE(mSecond);
}
NS_IMPL_ADDREF(nsConjoiningEnumerator);
NS_IMPL_RELEASE(nsConjoiningEnumerator);
NS_IMETHODIMP
nsConjoiningEnumerator::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (NULL == aInstancePtr)
return NS_ERROR_NULL_POINTER;
if (aIID.Equals(nsIBidirectionalEnumerator::GetIID()) ||
aIID.Equals(nsIEnumerator::GetIID()) ||
aIID.Equals(nsISupports::GetIID())) {
*aInstancePtr = (void*) this;
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMETHODIMP
nsConjoiningEnumerator::First(void)
{
mCurrent = mFirst;
return mCurrent->First();
}
NS_IMETHODIMP
nsConjoiningEnumerator::Next(void)
{
nsresult rv = mCurrent->Next();
if (NS_FAILED(rv) && mCurrent == mFirst) {
mCurrent = mSecond;
rv = mCurrent->First();
}
return rv;
}
NS_IMETHODIMP
nsConjoiningEnumerator::CurrentItem(nsISupports **aItem)
{
return mCurrent->CurrentItem(aItem);
}
NS_IMETHODIMP
nsConjoiningEnumerator::IsDone(void)
{
return (mCurrent == mFirst && mCurrent->IsDone() == NS_OK)
|| (mCurrent == mSecond && mCurrent->IsDone() == NS_OK)
? NS_OK : NS_COMFALSE;
}
////////////////////////////////////////////////////////////////////////////////
NS_IMETHODIMP
nsConjoiningEnumerator::Last(void)
{
nsresult rv;
nsIBidirectionalEnumerator* be;
rv = mSecond->QueryInterface(nsIBidirectionalEnumerator::GetIID(), (void**)&be);
if (NS_FAILED(rv)) return rv;
mCurrent = mSecond;
rv = be->Last();
NS_RELEASE(be);
return rv;
}
NS_IMETHODIMP
nsConjoiningEnumerator::Prev(void)
{
nsresult rv;
nsIBidirectionalEnumerator* be;
rv = mCurrent->QueryInterface(nsIBidirectionalEnumerator::GetIID(), (void**)&be);
if (NS_FAILED(rv)) return rv;
rv = be->Prev();
NS_RELEASE(be);
if (NS_FAILED(rv) && mCurrent == mSecond) {
rv = mFirst->QueryInterface(nsIBidirectionalEnumerator::GetIID(), (void**)&be);
if (NS_FAILED(rv)) return rv;
mCurrent = mFirst;
rv = be->Last();
NS_RELEASE(be);
}
return rv;
}
////////////////////////////////////////////////////////////////////////////////
extern "C" NS_COM nsresult
NS_NewConjoiningEnumerator(nsIEnumerator* first, nsIEnumerator* second,
nsIBidirectionalEnumerator* *aInstancePtrResult)
{
if (aInstancePtrResult == 0)
return NS_ERROR_NULL_POINTER;
nsConjoiningEnumerator* e = new nsConjoiningEnumerator(first, second);
if (e == 0)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(e);
*aInstancePtrResult = e;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
static nsresult
nsEnumeratorContains(nsIEnumerator* e, nsISupports* item)
{
nsresult rv;
for (e->First(); e->IsDone() != NS_OK; e->Next()) {
nsISupports* other;
rv = e->CurrentItem(&other);
if (NS_FAILED(rv)) return rv;
if (item == other) {
NS_RELEASE(other);
return NS_OK; // true -- exists in enumerator
}
NS_RELEASE(other);
}
return NS_COMFALSE; // false -- doesn't exist
}
////////////////////////////////////////////////////////////////////////////////
// Intersection Enumerators
////////////////////////////////////////////////////////////////////////////////
class nsIntersectionEnumerator : public nsIEnumerator
{
public:
NS_DECL_ISUPPORTS
// nsIEnumerator methods:
NS_IMETHOD First(void);
NS_IMETHOD Next(void);
NS_IMETHOD CurrentItem(nsISupports **aItem);
NS_IMETHOD IsDone(void);
// nsIntersectionEnumerator methods:
nsIntersectionEnumerator(nsIEnumerator* first, nsIEnumerator* second);
virtual ~nsIntersectionEnumerator(void);
protected:
nsIEnumerator* mFirst;
nsIEnumerator* mSecond;
};
nsIntersectionEnumerator::nsIntersectionEnumerator(nsIEnumerator* first, nsIEnumerator* second)
: mFirst(first), mSecond(second)
{
NS_ADDREF(mFirst);
NS_ADDREF(mSecond);
}
nsIntersectionEnumerator::~nsIntersectionEnumerator(void)
{
NS_RELEASE(mFirst);
NS_RELEASE(mSecond);
}
NS_IMPL_ISUPPORTS(nsIntersectionEnumerator, nsIEnumerator::GetIID());
NS_IMETHODIMP
nsIntersectionEnumerator::First(void)
{
nsresult rv = mFirst->First();
if (NS_FAILED(rv)) return rv;
return Next();
}
NS_IMETHODIMP
nsIntersectionEnumerator::Next(void)
{
nsresult rv;
// find the first item that exists in both
for (; mFirst->IsDone() != NS_OK; mFirst->Next()) {
nsISupports* item;
rv = mFirst->CurrentItem(&item);
if (NS_FAILED(rv)) return rv;
// see if it also exists in mSecond
rv = nsEnumeratorContains(mSecond, item);
if (NS_FAILED(rv)) return rv;
NS_RELEASE(item);
if (rv == NS_OK) {
// found in both, so return leaving it as the current item of mFirst
return NS_OK;
}
}
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsIntersectionEnumerator::CurrentItem(nsISupports **aItem)
{
return mFirst->CurrentItem(aItem);
}
NS_IMETHODIMP
nsIntersectionEnumerator::IsDone(void)
{
return mFirst->IsDone();
}
////////////////////////////////////////////////////////////////////////////////
extern "C" NS_COM nsresult
NS_NewIntersectionEnumerator(nsIEnumerator* first, nsIEnumerator* second,
nsIEnumerator* *aInstancePtrResult)
{
if (aInstancePtrResult == 0)
return NS_ERROR_NULL_POINTER;
nsIntersectionEnumerator* e = new nsIntersectionEnumerator(first, second);
if (e == 0)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(e);
*aInstancePtrResult = e;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
// Union Enumerators
////////////////////////////////////////////////////////////////////////////////
class nsUnionEnumerator : public nsIEnumerator
{
public:
NS_DECL_ISUPPORTS
// nsIEnumerator methods:
NS_IMETHOD First(void);
NS_IMETHOD Next(void);
NS_IMETHOD CurrentItem(nsISupports **aItem);
NS_IMETHOD IsDone(void);
// nsUnionEnumerator methods:
nsUnionEnumerator(nsIEnumerator* first, nsIEnumerator* second);
virtual ~nsUnionEnumerator(void);
protected:
nsIEnumerator* mFirst;
nsIEnumerator* mSecond;
};
nsUnionEnumerator::nsUnionEnumerator(nsIEnumerator* first, nsIEnumerator* second)
: mFirst(first), mSecond(second)
{
NS_ADDREF(mFirst);
NS_ADDREF(mSecond);
}
nsUnionEnumerator::~nsUnionEnumerator(void)
{
NS_RELEASE(mFirst);
NS_RELEASE(mSecond);
}
NS_IMPL_ISUPPORTS(nsUnionEnumerator, nsIEnumerator::GetIID());
NS_IMETHODIMP
nsUnionEnumerator::First(void)
{
nsresult rv = mFirst->First();
if (NS_FAILED(rv)) return rv;
return Next();
}
NS_IMETHODIMP
nsUnionEnumerator::Next(void)
{
nsresult rv;
// find the first item that exists in both
for (; mFirst->IsDone() != NS_OK; mFirst->Next()) {
nsISupports* item;
rv = mFirst->CurrentItem(&item);
if (NS_FAILED(rv)) return rv;
// see if it also exists in mSecond
rv = nsEnumeratorContains(mSecond, item);
if (NS_FAILED(rv)) return rv;
NS_RELEASE(item);
if (rv != NS_OK) {
// if it didn't exist in mSecond, return, making it the current item
return NS_OK;
}
// each time around, make sure that mSecond gets reset to the beginning
// so that when mFirst is done, we'll be ready to enumerate mSecond
rv = mSecond->First();
if (NS_FAILED(rv)) return rv;
}
return mSecond->Next();
}
NS_IMETHODIMP
nsUnionEnumerator::CurrentItem(nsISupports **aItem)
{
if (mFirst->IsDone() != NS_OK)
return mFirst->CurrentItem(aItem);
else
return mSecond->CurrentItem(aItem);
}
NS_IMETHODIMP
nsUnionEnumerator::IsDone(void)
{
return (mFirst->IsDone() == NS_OK && mSecond->IsDone() == NS_OK)
? NS_OK : NS_COMFALSE;
}
////////////////////////////////////////////////////////////////////////////////
extern "C" NS_COM nsresult
NS_NewUnionEnumerator(nsIEnumerator* first, nsIEnumerator* second,
nsIEnumerator* *aInstancePtrResult)
{
if (aInstancePtrResult == 0)
return NS_ERROR_NULL_POINTER;
nsUnionEnumerator* e = new nsUnionEnumerator(first, second);
if (e == 0)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(e);
*aInstancePtrResult = e;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -1,77 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
An empty enumerator.
*/
#include "nsIEnumerator.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
////////////////////////////////////////////////////////////////////////
class EmptyEnumeratorImpl : public nsISimpleEnumerator
{
public:
EmptyEnumeratorImpl(void) {};
virtual ~EmptyEnumeratorImpl(void) {};
// nsISupports interface
NS_IMETHOD_(nsrefcnt) AddRef(void) {
return 2;
}
NS_IMETHOD_(nsrefcnt) Release(void) {
return 1;
}
NS_IMETHOD QueryInterface(REFNSIID iid, void** result) {
if (! result)
return NS_ERROR_NULL_POINTER;
if (iid.Equals(nsISimpleEnumerator::GetIID()) ||
iid.Equals(kISupportsIID)) {
*result = (nsISimpleEnumerator*) this;
NS_ADDREF(this);
return NS_OK;
}
return NS_NOINTERFACE;
}
// nsISimpleEnumerator
NS_IMETHOD HasMoreElements(PRBool* aResult) {
*aResult = PR_FALSE;
return NS_OK;
}
NS_IMETHOD GetNext(nsISupports** aResult) {
return NS_ERROR_UNEXPECTED;
}
};
extern "C" NS_COM nsresult
NS_NewEmptyEnumerator(nsISimpleEnumerator** aResult)
{
static EmptyEnumeratorImpl gEmptyEnumerator;
*aResult = &gEmptyEnumerator;
return NS_OK;
}

View File

@@ -1,186 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsEnumeratorUtils.h"
nsArrayEnumerator::nsArrayEnumerator(nsISupportsArray* aValueArray)
: mValueArray(aValueArray),
mIndex(0)
{
NS_INIT_REFCNT();
NS_IF_ADDREF(mValueArray);
}
nsArrayEnumerator::~nsArrayEnumerator(void)
{
NS_IF_RELEASE(mValueArray);
}
NS_IMPL_ISUPPORTS(nsArrayEnumerator, nsISimpleEnumerator::GetIID());
NS_IMETHODIMP
nsArrayEnumerator::HasMoreElements(PRBool* aResult)
{
NS_PRECONDITION(aResult != 0, "null ptr");
if (! aResult)
return NS_ERROR_NULL_POINTER;
*aResult = (mIndex < (PRInt32) mValueArray->Count());
return NS_OK;
}
NS_IMETHODIMP
nsArrayEnumerator::GetNext(nsISupports** aResult)
{
NS_PRECONDITION(aResult != 0, "null ptr");
if (! aResult)
return NS_ERROR_NULL_POINTER;
if (mIndex >= (PRInt32) mValueArray->Count())
return NS_ERROR_UNEXPECTED;
*aResult = mValueArray->ElementAt(mIndex++);
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
nsSingletonEnumerator::nsSingletonEnumerator(nsISupports* aValue)
: mValue(aValue)
{
NS_INIT_REFCNT();
NS_IF_ADDREF(mValue);
mConsumed = (mValue ? PR_FALSE : PR_TRUE);
}
nsSingletonEnumerator::~nsSingletonEnumerator()
{
NS_IF_RELEASE(mValue);
}
NS_IMPL_ISUPPORTS(nsSingletonEnumerator, nsISimpleEnumerator::GetIID());
NS_IMETHODIMP
nsSingletonEnumerator::HasMoreElements(PRBool* aResult)
{
NS_PRECONDITION(aResult != 0, "null ptr");
if (! aResult)
return NS_ERROR_NULL_POINTER;
*aResult = !mConsumed;
return NS_OK;
}
NS_IMETHODIMP
nsSingletonEnumerator::GetNext(nsISupports** aResult)
{
NS_PRECONDITION(aResult != 0, "null ptr");
if (! aResult)
return NS_ERROR_NULL_POINTER;
if (mConsumed)
return NS_ERROR_UNEXPECTED;
mConsumed = PR_TRUE;
NS_ADDREF(mValue);
*aResult = mValue;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////
nsAdapterEnumerator::nsAdapterEnumerator(nsIEnumerator* aEnum)
: mEnum(aEnum), mCurrent(0), mStarted(PR_FALSE)
{
NS_INIT_REFCNT();
NS_ADDREF(mEnum);
}
nsAdapterEnumerator::~nsAdapterEnumerator()
{
NS_RELEASE(mEnum);
NS_IF_RELEASE(mCurrent);
}
NS_IMPL_ISUPPORTS(nsAdapterEnumerator, nsISimpleEnumerator::GetIID());
NS_IMETHODIMP
nsAdapterEnumerator::HasMoreElements(PRBool* aResult)
{
nsresult rv;
if (mCurrent) {
*aResult = PR_TRUE;
return NS_OK;
}
if (! mStarted) {
mStarted = PR_TRUE;
rv = mEnum->First();
if (rv == NS_OK) {
mEnum->CurrentItem(&mCurrent);
*aResult = PR_TRUE;
}
else {
*aResult = PR_FALSE;
}
}
else {
*aResult = PR_FALSE;
rv = mEnum->IsDone();
if (rv != NS_OK) {
// We're not done. Advance to the next one.
rv = mEnum->Next();
if (rv == NS_OK) {
mEnum->CurrentItem(&mCurrent);
*aResult = PR_TRUE;
}
}
}
return NS_OK;
}
NS_IMETHODIMP
nsAdapterEnumerator::GetNext(nsISupports** aResult)
{
nsresult rv;
PRBool hasMore;
rv = HasMoreElements(&hasMore);
if (NS_FAILED(rv)) return rv;
if (! hasMore)
return NS_ERROR_UNEXPECTED;
// No need to addref, we "transfer" the ownership to the caller.
*aResult = mCurrent;
mCurrent = 0;
return NS_OK;
}

View File

@@ -1,85 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsRDFCursorUtils_h__
#define nsRDFCursorUtils_h__
#include "nsIEnumerator.h"
#include "nsISupportsArray.h"
class NS_COM nsArrayEnumerator : public nsISimpleEnumerator
{
public:
// nsISupports interface
NS_DECL_ISUPPORTS
// nsISimpleEnumerator interface
NS_IMETHOD HasMoreElements(PRBool* aResult);
NS_IMETHOD GetNext(nsISupports** aResult);
// nsRDFArrayEnumerator methods
nsArrayEnumerator(nsISupportsArray* aValueArray);
virtual ~nsArrayEnumerator(void);
protected:
nsISupportsArray* mValueArray;
PRInt32 mIndex;
};
////////////////////////////////////////////////////////////////////////////////
class NS_COM nsSingletonEnumerator : public nsISimpleEnumerator
{
public:
NS_DECL_ISUPPORTS
// nsISimpleEnumerator methods
NS_IMETHOD HasMoreElements(PRBool* aResult);
NS_IMETHOD GetNext(nsISupports** aResult);
nsSingletonEnumerator(nsISupports* aValue);
virtual ~nsSingletonEnumerator();
protected:
nsISupports* mValue;
PRBool mConsumed;
};
////////////////////////////////////////////////////////////////////////////////
class NS_COM nsAdapterEnumerator : public nsISimpleEnumerator
{
public:
NS_DECL_ISUPPORTS
// nsISimpleEnumerator methods
NS_IMETHOD HasMoreElements(PRBool* aResult);
NS_IMETHOD GetNext(nsISupports** aResult);
nsAdapterEnumerator(nsIEnumerator* aEnum);
virtual ~nsAdapterEnumerator();
protected:
nsIEnumerator* mEnum;
nsISupports* mCurrent;
PRBool mStarted;
};
////////////////////////////////////////////////////////////////////////
#endif /* nsRDFCursorUtils_h__ */

View File

@@ -1,259 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "prmem.h"
#include "prlog.h"
#include "nsHashtable.h"
//
// Key operations
//
static PR_CALLBACK PLHashNumber _hashValue(const void *key)
{
return ((const nsHashKey *) key)->HashValue();
}
static PR_CALLBACK PRIntn _hashKeyCompare(const void *key1, const void *key2) {
return ((const nsHashKey *) key1)->Equals((const nsHashKey *) key2);
}
static PR_CALLBACK PRIntn _hashValueCompare(const void *value1,
const void *value2) {
// We're not going to make any assumptions about value equality
return 0;
}
//
// Memory callbacks
//
static PR_CALLBACK void *_hashAllocTable(void *pool, PRSize size) {
return PR_MALLOC(size);
}
static PR_CALLBACK void _hashFreeTable(void *pool, void *item) {
PR_DELETE(item);
}
static PR_CALLBACK PLHashEntry *_hashAllocEntry(void *pool, const void *key) {
return PR_NEW(PLHashEntry);
}
static PR_CALLBACK void _hashFreeEntry(void *pool, PLHashEntry *entry,
PRUintn flag) {
if (flag == HT_FREE_ENTRY) {
delete (nsHashKey *) (entry->key);
PR_DELETE(entry);
}
}
static PLHashAllocOps _hashAllocOps = {
_hashAllocTable, _hashFreeTable,
_hashAllocEntry, _hashFreeEntry
};
//
// Enumerator callback
//
struct _HashEnumerateArgs {
nsHashtableEnumFunc fn;
void* arg;
};
static PR_CALLBACK PRIntn _hashEnumerate(PLHashEntry *he, PRIntn i, void *arg)
{
_HashEnumerateArgs* thunk = (_HashEnumerateArgs*)arg;
return thunk->fn((nsHashKey *) he->key, he->value, thunk->arg)
? HT_ENUMERATE_NEXT
: HT_ENUMERATE_STOP;
}
//
// HashKey
//
nsHashKey::nsHashKey(void)
{
}
nsHashKey::~nsHashKey(void)
{
}
nsHashtable::nsHashtable(PRUint32 aInitSize, PRBool threadSafe)
: mLock(NULL)
{
hashtable = PL_NewHashTable(aInitSize,
_hashValue,
_hashKeyCompare,
_hashValueCompare,
&_hashAllocOps,
NULL);
if (threadSafe == PR_TRUE)
{
mLock = PR_NewLock();
if (mLock == NULL)
{
// Cannot create a lock. If running on a multiprocessing system
// we are sure to die.
PR_ASSERT(mLock != NULL);
}
}
}
nsHashtable::~nsHashtable() {
PL_HashTableDestroy(hashtable);
if (mLock) PR_DestroyLock(mLock);
}
PRBool nsHashtable::Exists(nsHashKey *aKey)
{
PLHashNumber hash = aKey->HashValue();
if (mLock) PR_Lock(mLock);
PLHashEntry **hep = PL_HashTableRawLookup(hashtable, hash, (void *) aKey);
if (mLock) PR_Unlock(mLock);
return *hep != NULL;
}
void *nsHashtable::Put(nsHashKey *aKey, void *aData) {
void *res = NULL;
PLHashNumber hash = aKey->HashValue();
PLHashEntry *he;
if (mLock) PR_Lock(mLock);
PLHashEntry **hep = PL_HashTableRawLookup(hashtable, hash, (void *) aKey);
if ((he = *hep) != NULL) {
res = he->value;
he->value = aData;
} else {
PL_HashTableRawAdd(hashtable, hep, hash,
(void *) aKey->Clone(), aData);
}
if (mLock) PR_Unlock(mLock);
return res;
}
void *nsHashtable::Get(nsHashKey *aKey) {
if (mLock) PR_Lock(mLock);
void *ret = PL_HashTableLookup(hashtable, (void *) aKey);
if (mLock) PR_Unlock(mLock);
return ret;
}
void *nsHashtable::Remove(nsHashKey *aKey) {
PLHashNumber hash = aKey->HashValue();
PLHashEntry *he;
if (mLock) PR_Lock(mLock);
PLHashEntry **hep = PL_HashTableRawLookup(hashtable, hash, (void *) aKey);
void *res = NULL;
if ((he = *hep) != NULL) {
res = he->value;
PL_HashTableRawRemove(hashtable, hep, he);
}
if (mLock) PR_Unlock(mLock);
return res;
}
static PR_CALLBACK PRIntn _hashEnumerateCopy(PLHashEntry *he, PRIntn i, void *arg)
{
nsHashtable *newHashtable = (nsHashtable *)arg;
newHashtable->Put((nsHashKey *) he->key, he->value);
return HT_ENUMERATE_NEXT;
}
nsHashtable * nsHashtable::Clone() {
PRBool threadSafe = PR_FALSE;
if (mLock)
threadSafe = PR_TRUE;
nsHashtable *newHashTable = new nsHashtable(hashtable->nentries, threadSafe);
PL_HashTableEnumerateEntries(hashtable, _hashEnumerateCopy, newHashTable);
return newHashTable;
}
void nsHashtable::Enumerate(nsHashtableEnumFunc aEnumFunc, void* closure) {
_HashEnumerateArgs thunk;
thunk.fn = aEnumFunc;
thunk.arg = closure;
PL_HashTableEnumerateEntries(hashtable, _hashEnumerate, &thunk);
}
static PR_CALLBACK PRIntn _hashEnumerateRemove(PLHashEntry *he, PRIntn i, void *arg)
{
return HT_ENUMERATE_REMOVE;
}
void nsHashtable::Reset() {
PL_HashTableEnumerateEntries(hashtable, _hashEnumerateRemove, NULL);
}
////////////////////////////////////////////////////////////////////////////////
nsCStringKey::nsCStringKey(const char* str)
: mStr(mBuf)
{
PRUint32 len = PL_strlen(str);
if (len >= sizeof(mBuf)) {
mStr = PL_strdup(str);
NS_ASSERTION(mStr, "out of memory");
}
else {
PL_strcpy(mStr, str);
}
}
nsCStringKey::~nsCStringKey(void)
{
if (mStr != mBuf)
PL_strfree(mStr);
}
PRUint32 nsCStringKey::HashValue(void) const
{
return (PRUint32) PL_HashString((const void*) mStr);
}
PRBool nsCStringKey::Equals(const nsHashKey* aKey) const
{
return PL_strcmp( ((nsCStringKey*)aKey)->mStr, mStr ) == 0;
}
nsHashKey* nsCStringKey::Clone() const
{
return new nsCStringKey(mStr);
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -1,168 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsHashtable_h__
#define nsHashtable_h__
#include "plhash.h"
#include "prlock.h"
#include "nsCom.h"
class NS_COM nsHashKey {
protected:
nsHashKey(void);
public:
virtual ~nsHashKey(void);
virtual PRUint32 HashValue(void) const = 0;
virtual PRBool Equals(const nsHashKey *aKey) const = 0;
virtual nsHashKey *Clone(void) const = 0;
};
// Enumerator callback function. Use
typedef PRBool (*nsHashtableEnumFunc)(nsHashKey *aKey, void *aData, void* closure);
class NS_COM nsHashtable {
protected:
// members
PLHashTable *hashtable;
PRLock *mLock;
public:
nsHashtable(PRUint32 aSize = 256, PRBool threadSafe = PR_FALSE);
~nsHashtable();
PRInt32 Count(void) { return hashtable->nentries; }
PRBool Exists(nsHashKey *aKey);
void *Put(nsHashKey *aKey, void *aData);
void *Get(nsHashKey *aKey);
void *Remove(nsHashKey *aKey);
nsHashtable *Clone();
void Enumerate(nsHashtableEnumFunc aEnumFunc, void* closure = NULL);
void Reset();
};
////////////////////////////////////////////////////////////////////////////////
// nsISupportsKey: Where keys are nsISupports objects that get refcounted.
#include "nsISupports.h"
class nsISupportsKey : public nsHashKey {
protected:
nsISupports* mKey;
public:
nsISupportsKey(nsISupports* key) {
mKey = key;
NS_IF_ADDREF(mKey);
}
~nsISupportsKey(void) {
NS_IF_RELEASE(mKey);
}
PRUint32 HashValue(void) const {
return (PRUint32)mKey;
}
PRBool Equals(const nsHashKey *aKey) const {
return (mKey == ((nsISupportsKey *) aKey)->mKey);
}
nsHashKey *Clone(void) const {
return new nsISupportsKey(mKey);
}
};
////////////////////////////////////////////////////////////////////////////////
// nsVoidKey: Where keys are void* objects that don't get refcounted.
class nsVoidKey : public nsHashKey {
protected:
const void* mKey;
public:
nsVoidKey(const void* key) {
mKey = key;
}
PRUint32 HashValue(void) const {
return (PRUint32)mKey;
}
PRBool Equals(const nsHashKey *aKey) const {
return (mKey == ((const nsVoidKey *) aKey)->mKey);
}
nsHashKey *Clone(void) const {
return new nsVoidKey(mKey);
}
};
////////////////////////////////////////////////////////////////////////////////
// nsIDKey: Where keys are nsIDs (e.g. nsIID, nsCID).
#include "nsID.h"
class nsIDKey : public nsHashKey {
protected:
nsID mID;
public:
nsIDKey(const nsID &aID) {
mID = aID;
}
PRUint32 HashValue(void) const {
return mID.m0;
}
PRBool Equals(const nsHashKey *aKey) const {
return (mID.Equals(((const nsIDKey *) aKey)->mID));
}
nsHashKey *Clone(void) const {
return new nsIDKey(mID);
}
};
////////////////////////////////////////////////////////////////////////////////
// nsCStringKey: Where keys are char*'s
// Some uses: hashing ProgIDs, filenames, URIs
#include "plstr.h"
class NS_COM nsCStringKey : public nsHashKey {
protected:
char mBuf[64];
char* mStr;
public:
nsCStringKey(const char* str);
~nsCStringKey(void);
PRUint32 HashValue(void) const;
PRBool Equals(const nsHashKey* aKey) const;
nsHashKey* Clone() const;
};
#endif

View File

@@ -1,80 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specifzic language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsICollection_h___
#define nsICollection_h___
#include "nsISupports.h"
class nsIEnumerator;
// IID for the nsICollection interface
#define NS_ICOLLECTION_IID \
{ /* 83b6019c-cbc4-11d2-8cca-0060b0fc14a3 */ \
0x83b6019c, \
0xcbc4, \
0x11d2, \
{0x8c, 0xca, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
}
// IID for the nsICollection Factory interface
#define NS_ICOLLECTIONFACTORY_IID \
{ 0xf8052641, 0x8768, 0x11d2, \
{ 0x8f, 0x39, 0x0, 0x60, 0x8, 0x31, 0x1, 0x94 } }
//----------------------------------------------------------------------
/** nsICollection Interface
* this may be ordered or not. a list or array, the implementation is opaque
*/
class nsICollection : public nsISupports {
public:
static const nsIID& GetIID(void) { static nsIID iid = NS_ICOLLECTION_IID; return iid; }
/** Return the count of elements in the collection.
*/
NS_IMETHOD_(PRUint32) Count(void) const = 0;
/**
* AppendElement will take an ISupports and keep track of it
* @param aItem is the Item to be added WILL BE ADDREFFED
* @return NS_OK if successfully added
* @return NS_ERROR_FAILURE otherwise
*/
NS_IMETHOD AppendElement(nsISupports *aItem) = 0;
/** RemoveElement will take an nsISupports and remove it from the collection
* @param aItem is the item to be removed WILL BE RELEASED
* @return NS_OK if successfully added
* @return NS_ERROR_FAILURE otherwise
*/
NS_IMETHOD RemoveElement(nsISupports *aItem) = 0;
/** Return an enumeration for the collection.
*/
NS_IMETHOD Enumerate(nsIEnumerator* *result) = 0;
/** Clear will clear all items from list
*/
NS_IMETHOD Clear(void) = 0;
};
#endif /* nsICollection_h___ */

View File

@@ -1,120 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIEnumerator_h___
#define nsIEnumerator_h___
#include "nsISupports.h"
// {D1899240-F9D2-11d2-BDD6-000064657374}
#define NS_ISIMPLEENUMERATOR_IID \
{ 0xd1899240, 0xf9d2, 0x11d2, { 0xbd, 0xd6, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74 } }
class nsISimpleEnumerator : public nsISupports {
public:
static const nsIID& GetIID(void) { static nsIID iid = NS_ISIMPLEENUMERATOR_IID; return iid; }
NS_IMETHOD HasMoreElements(PRBool* aResult) = 0;
NS_IMETHOD GetNext(nsISupports** aResult) = 0;
};
extern "C" NS_COM nsresult
NS_NewEmptyEnumerator(nsISimpleEnumerator** aResult);
#define NS_IENUMERATOR_IID \
{ /* ad385286-cbc4-11d2-8cca-0060b0fc14a3 */ \
0xad385286, \
0xcbc4, \
0x11d2, \
{0x8c, 0xca, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
}
class nsIEnumerator : public nsISupports {
public:
static const nsIID& GetIID(void) { static nsIID iid = NS_IENUMERATOR_IID; return iid; }
/** First will reset the list. will return NS_FAILED if no items
*/
NS_IMETHOD First(void) = 0;
/** Next will advance the list. will return failed if already at end
*/
NS_IMETHOD Next(void) = 0;
/** CurrentItem will return the CurrentItem item it will fail if the list is empty
* @param aItem return value
*/
NS_IMETHOD CurrentItem(nsISupports **aItem) = 0;
/** return if the collection is at the end. that is the beginning following a call to Prev
* and it is the end of the list following a call to next
* @param aItem return value
*/
NS_IMETHOD IsDone(void) = 0;
};
#define NS_IBIDIRECTIONALENUMERATOR_IID \
{ /* 75f158a0-cadd-11d2-8cca-0060b0fc14a3 */ \
0x75f158a0, \
0xcadd, \
0x11d2, \
{0x8c, 0xca, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
}
class nsIBidirectionalEnumerator : public nsIEnumerator {
public:
static const nsIID& GetIID(void) { static nsIID iid = NS_IBIDIRECTIONALENUMERATOR_IID; return iid; }
/** Last will reset the list to the end. will return NS_FAILED if no items
*/
NS_IMETHOD Last(void) = 0;
/** Prev will decrement the list. will return failed if already at beginning
*/
NS_IMETHOD Prev(void) = 0;
};
// Construct and return an implementation of a "conjoining enumerator." This
// enumerator lets you string together two other enumerators into one sequence.
// The result is an nsIBidirectionalEnumerator, but if either input is not
// also bidirectional, the Last and Prev operations will fail.
extern "C" NS_COM nsresult
NS_NewConjoiningEnumerator(nsIEnumerator* first, nsIEnumerator* second,
nsIBidirectionalEnumerator* *aInstancePtrResult);
// Construct and return an implementation of a "union enumerator." This
// enumerator will only return elements that are found in both constituent
// enumerators.
extern "C" NS_COM nsresult
NS_NewUnionEnumerator(nsIEnumerator* first, nsIEnumerator* second,
nsIEnumerator* *aInstancePtrResult);
// Construct and return an implementation of an "intersection enumerator." This
// enumerator will return elements that are found in either constituent
// enumerators, eliminating duplicates.
extern "C" NS_COM nsresult
NS_NewIntersectionEnumerator(nsIEnumerator* first, nsIEnumerator* second,
nsIEnumerator* *aInstancePtrResult);
#endif // __nsIEnumerator_h

View File

@@ -1,77 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsISupportsArray_h___
#define nsISupportsArray_h___
#include "nsCom.h"
#include "nsICollection.h"
class nsIBidirectionalEnumerator;
// {791eafa0-b9e6-11d1-8031-006008159b5a}
#define NS_ISUPPORTSARRAY_IID \
{0x791eafa0, 0xb9e6, 0x11d1, \
{0x80, 0x31, 0x00, 0x60, 0x08, 0x15, 0x9b, 0x5a}}
// Enumerator callback function. Return PR_FALSE to stop
typedef PRBool (*nsISupportsArrayEnumFunc)(nsISupports* aElement, void *aData);
class nsISupportsArray : public nsICollection {
public:
static const nsIID& GetIID() { static nsIID iid = NS_ISUPPORTSARRAY_IID; return iid; }
NS_IMETHOD_(nsISupportsArray&) operator=(const nsISupportsArray& other) = 0;
NS_IMETHOD_(PRBool) operator==(const nsISupportsArray& other) const = 0;
NS_IMETHOD_(PRBool) Equals(const nsISupportsArray* other) const = 0;
NS_IMETHOD_(nsISupports*) ElementAt(PRUint32 aIndex) const = 0;
NS_IMETHOD_(nsISupports*) operator[](PRUint32 aIndex) const = 0;
NS_IMETHOD_(PRInt32) IndexOf(const nsISupports* aPossibleElement, PRUint32 aStartIndex = 0) const = 0;
NS_IMETHOD_(PRInt32) LastIndexOf(const nsISupports* aPossibleElement) const = 0;
NS_IMETHOD_(PRBool) InsertElementAt(nsISupports* aElement, PRUint32 aIndex) = 0;
NS_IMETHOD_(PRBool) ReplaceElementAt(nsISupports* aElement, PRUint32 aIndex) = 0;
NS_IMETHOD_(PRBool) RemoveElementAt(PRUint32 aIndex) = 0;
NS_IMETHOD_(PRBool) RemoveLastElement(const nsISupports* aElement) = 0;
NS_IMETHOD_(PRBool) AppendElements(nsISupportsArray* aElements) = 0;
NS_IMETHOD_(void) Compact(void) = 0;
NS_IMETHOD_(PRBool) EnumerateForwards(nsISupportsArrayEnumFunc aFunc, void* aData) const = 0;
NS_IMETHOD_(PRBool) EnumerateBackwards(nsISupportsArrayEnumFunc aFunc, void* aData) const = 0;
private:
// Copy constructors are not allowed
// XXX test whether this has to be here nsISupportsArray(const nsISupportsArray& other);
};
// Construct and return a default implementation of nsISupportsArray:
extern NS_COM nsresult
NS_NewISupportsArray(nsISupportsArray** aInstancePtrResult);
// Construct and return a default implementation of an enumerator for nsISupportsArrays:
extern NS_COM nsresult
NS_NewISupportsArrayEnumerator(nsISupportsArray* array,
nsIBidirectionalEnumerator* *aInstancePtrResult);
#endif // nsISupportsArray_h___

View File

@@ -1,359 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsSupportsArray.h"
#include "nsSupportsArrayEnumerator.h"
static const PRUint32 kGrowArrayBy = 8;
nsSupportsArray::nsSupportsArray()
{
NS_INIT_REFCNT();
mArray = &(mAutoArray[0]);
mArraySize = kAutoArraySize;
mCount = 0;
}
nsSupportsArray::~nsSupportsArray()
{
DeleteArray();
}
NS_IMPL_ISUPPORTS(nsSupportsArray, nsISupportsArray::GetIID());
void nsSupportsArray::DeleteArray(void)
{
Clear();
if (mArray != &(mAutoArray[0])) {
delete[] mArray;
mArray = &(mAutoArray[0]);
mArraySize = kAutoArraySize;
}
}
NS_IMETHODIMP_(nsISupportsArray&)
nsISupportsArray::operator=(const nsISupportsArray& other)
{
NS_ASSERTION(0, "should be an abstract method");
return *this; // bogus
}
NS_IMETHODIMP_(nsISupportsArray&)
nsSupportsArray::operator=(const nsISupportsArray& aOther)
{
PRUint32 otherCount = aOther.Count();
if (otherCount > mArraySize) {
DeleteArray();
mArraySize = otherCount;
mArray = new nsISupports*[mArraySize];
}
else {
Clear();
}
mCount = otherCount;
while (0 < otherCount--) {
mArray[otherCount] = aOther.ElementAt(otherCount);
}
return *this;
}
NS_IMETHODIMP_(PRBool)
nsSupportsArray::Equals(const nsISupportsArray* aOther) const
{
if (0 != aOther) {
const nsSupportsArray* other = (const nsSupportsArray*)aOther;
if (mCount == other->mCount) {
PRUint32 index = mCount;
while (0 < index--) {
if (mArray[index] != other->mArray[index]) {
return PR_FALSE;
}
}
return PR_TRUE;
}
}
return PR_FALSE;
}
NS_IMETHODIMP_(nsISupports*)
nsSupportsArray::ElementAt(PRUint32 aIndex) const
{
if ((0 <= aIndex) && (aIndex < mCount)) {
nsISupports* element = mArray[aIndex];
NS_ADDREF(element);
return element;
}
return 0;
}
NS_IMETHODIMP_(PRInt32)
nsSupportsArray::IndexOf(const nsISupports* aPossibleElement, PRUint32 aStartIndex) const
{
if ((0 <= aStartIndex) && (aStartIndex < mCount)) {
const nsISupports** start = (const nsISupports**)mArray; // work around goofy compiler behavior
const nsISupports** ep = (start + aStartIndex);
const nsISupports** end = (start + mCount);
while (ep < end) {
if (aPossibleElement == *ep) {
return (ep - start);
}
ep++;
}
}
return -1;
}
NS_IMETHODIMP_(PRInt32)
nsSupportsArray::LastIndexOf(const nsISupports* aPossibleElement) const
{
if (0 < mCount) {
const nsISupports** start = (const nsISupports**)mArray; // work around goofy compiler behavior
const nsISupports** ep = (start + mCount);
while (start <= --ep) {
if (aPossibleElement == *ep) {
return (ep - start);
}
}
}
return -1;
}
NS_IMETHODIMP_(PRBool)
nsSupportsArray::InsertElementAt(nsISupports* aElement, PRUint32 aIndex)
{
if ((0 <= aIndex) && (aIndex <= mCount)) {
if (mArraySize < (mCount + 1)) { // need to grow the array
mArraySize += kGrowArrayBy;
nsISupports** oldArray = mArray;
mArray = new nsISupports*[mArraySize];
if (0 == mArray) { // ran out of memory
mArray = oldArray;
mArraySize -= kGrowArrayBy;
return PR_FALSE;
}
if (0 != oldArray) { // need to move old data
if (0 < aIndex) {
::memcpy(mArray, oldArray, aIndex * sizeof(nsISupports*));
}
PRUint32 slide = (mCount - aIndex);
if (0 < slide) {
::memcpy(mArray + aIndex + 1, oldArray + aIndex, slide * sizeof(nsISupports*));
}
if (oldArray != &(mAutoArray[0])) {
delete[] oldArray;
}
}
}
else {
PRUint32 slide = (mCount - aIndex);
if (0 < slide) {
::memmove(mArray + aIndex + 1, mArray + aIndex, slide * sizeof(nsISupports*));
}
}
mArray[aIndex] = aElement;
NS_ADDREF(aElement);
mCount++;
return PR_TRUE;
}
return PR_FALSE;
}
NS_IMETHODIMP_(PRBool)
nsSupportsArray::ReplaceElementAt(nsISupports* aElement, PRUint32 aIndex)
{
if ((0 <= aIndex) && (aIndex < mCount)) {
NS_ADDREF(aElement); // addref first in case it's the same object!
NS_RELEASE(mArray[aIndex]);
mArray[aIndex] = aElement;
return PR_TRUE;
}
return PR_FALSE;
}
NS_IMETHODIMP_(PRBool)
nsSupportsArray::RemoveElementAt(PRUint32 aIndex)
{
if ((0 <= aIndex) && (aIndex < mCount)) {
NS_RELEASE(mArray[aIndex]);
mCount--;
PRInt32 slide = (mCount - aIndex);
if (0 < slide) {
::memmove(mArray + aIndex, mArray + aIndex + 1,
slide * sizeof(nsISupports*));
}
return PR_TRUE;
}
return PR_FALSE;
}
NS_IMETHODIMP_(PRBool)
nsSupportsArray::RemoveElement(const nsISupports* aElement, PRUint32 aStartIndex)
{
if ((0 <= aStartIndex) && (aStartIndex < mCount)) {
nsISupports** ep = mArray;
nsISupports** end = ep + mCount;
while (ep < end) {
if (*ep == aElement) {
return RemoveElementAt(PRUint32(ep - mArray));
}
ep++;
}
}
return PR_FALSE;
}
NS_IMETHODIMP_(PRBool)
nsSupportsArray::RemoveLastElement(const nsISupports* aElement)
{
if (0 < mCount) {
nsISupports** ep = (mArray + mCount);
while (mArray <= --ep) {
if (*ep == aElement) {
return RemoveElementAt(PRUint32(ep - mArray));
}
}
}
return PR_FALSE;
}
NS_IMETHODIMP_(PRBool)
nsSupportsArray::AppendElements(nsISupportsArray* aElements)
{
nsSupportsArray* elements = (nsSupportsArray*)aElements;
if (elements && (0 < elements->mCount)) {
if (mArraySize < (mCount + elements->mCount)) { // need to grow the array
PRUint32 count = mCount + elements->mCount;
PRUint32 oldSize = mArraySize;
while (mArraySize < count) { // ick
mArraySize += kGrowArrayBy;
}
nsISupports** oldArray = mArray;
mArray = new nsISupports*[mArraySize];
if (0 == mArray) { // ran out of memory
mArray = oldArray;
mArraySize = oldSize;
return PR_FALSE;
}
if (0 != oldArray) { // need to move old data
if (0 < mCount) {
::memcpy(mArray, oldArray, mCount);
}
if (oldArray != &(mAutoArray[0])) {
delete[] oldArray;
}
}
}
PRUint32 index = 0;
while (index < elements->mCount) {
NS_ADDREF(elements->mArray[index]);
mArray[mCount++] = elements->mArray[index++];
}
return PR_TRUE;
}
return PR_FALSE;
}
NS_IMETHODIMP
nsSupportsArray::Clear(void)
{
if (0 < mCount) {
do {
--mCount;
NS_RELEASE(mArray[mCount]);
} while (0 != mCount);
}
return NS_OK;
}
NS_IMETHODIMP_(void)
nsSupportsArray::Compact(void)
{
if ((mArraySize != mCount) && (kAutoArraySize < mArraySize)) {
nsISupports** oldArray = mArray;
PRUint32 oldArraySize = mArraySize;
if (mCount <= kAutoArraySize) {
mArray = &(mAutoArray[0]);
mArraySize = kAutoArraySize;
}
else {
mArray = new nsISupports*[mCount];
mArraySize = mCount;
}
if (0 == mArray) {
mArray = oldArray;
mArraySize = oldArraySize;
return;
}
::memcpy(mArray, oldArray, mCount * sizeof(nsISupports*));
delete[] oldArray;
}
}
NS_IMETHODIMP_(PRBool)
nsSupportsArray::EnumerateForwards(nsISupportsArrayEnumFunc aFunc, void* aData) const
{
PRInt32 index = -1;
PRBool running = PR_TRUE;
while (running && (++index < (PRInt32)mCount)) {
running = (*aFunc)(mArray[index], aData);
}
return running;
}
NS_IMETHODIMP_(PRBool)
nsSupportsArray::EnumerateBackwards(nsISupportsArrayEnumFunc aFunc, void* aData) const
{
PRUint32 index = mCount;
PRBool running = PR_TRUE;
while (running && (0 < index--)) {
running = (*aFunc)(mArray[index], aData);
}
return running;
}
NS_IMETHODIMP
nsSupportsArray::Enumerate(nsIEnumerator* *result)
{
nsSupportsArrayEnumerator* e = new nsSupportsArrayEnumerator(this);
if (!e)
return NS_ERROR_OUT_OF_MEMORY;
*result = e;
NS_ADDREF(e);
return NS_OK;
}
NS_COM nsresult
NS_NewISupportsArray(nsISupportsArray** aInstancePtrResult)
{
if (aInstancePtrResult == 0)
return NS_ERROR_NULL_POINTER;
nsSupportsArray *it = new nsSupportsArray();
if (0 == it)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
*aInstancePtrResult = it;
return NS_OK;
}

View File

@@ -1,85 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsSupportsArray_h__
#define nsSupportsArray_h__
#include "nsISupportsArray.h"
static const PRUint32 kAutoArraySize = 4;
class nsSupportsArray : public nsISupportsArray {
public:
nsSupportsArray(void);
virtual ~nsSupportsArray(void);
NS_DECL_ISUPPORTS
// nsICollection methods:
NS_IMETHOD_(PRUint32) Count(void) const { return mCount; }
NS_IMETHOD AppendElement(nsISupports *aElement) {
// XXX This incorrectly returns a PRBool instead of an nsresult.
return InsertElementAt(aElement, mCount);
}
NS_IMETHOD RemoveElement(nsISupports *aElement) {
// XXX This incorrectly returns a PRBool instead of an nsresult.
return RemoveElement(aElement, 0);
}
NS_IMETHOD Enumerate(nsIEnumerator* *result);
NS_IMETHOD Clear(void);
// nsISupportsArray methods:
NS_IMETHOD_(nsISupportsArray&) operator=(const nsISupportsArray& aOther);
NS_IMETHOD_(PRBool) operator==(const nsISupportsArray& aOther) const { return Equals(&aOther); }
NS_IMETHOD_(PRBool) Equals(const nsISupportsArray* aOther) const;
NS_IMETHOD_(nsISupports*) ElementAt(PRUint32 aIndex) const;
NS_IMETHOD_(nsISupports*) operator[](PRUint32 aIndex) const { return ElementAt(aIndex); }
NS_IMETHOD_(PRInt32) IndexOf(const nsISupports* aPossibleElement, PRUint32 aStartIndex = 0) const;
NS_IMETHOD_(PRInt32) LastIndexOf(const nsISupports* aPossibleElement) const;
NS_IMETHOD_(PRBool) InsertElementAt(nsISupports* aElement, PRUint32 aIndex);
NS_IMETHOD_(PRBool) ReplaceElementAt(nsISupports* aElement, PRUint32 aIndex);
NS_IMETHOD_(PRBool) RemoveElementAt(PRUint32 aIndex);
NS_IMETHOD_(PRBool) RemoveElement(const nsISupports* aElement, PRUint32 aStartIndex = 0);
NS_IMETHOD_(PRBool) RemoveLastElement(const nsISupports* aElement);
NS_IMETHOD_(PRBool) AppendElements(nsISupportsArray* aElements);
NS_IMETHOD_(void) Compact(void);
NS_IMETHOD_(PRBool) EnumerateForwards(nsISupportsArrayEnumFunc aFunc, void* aData) const;
NS_IMETHOD_(PRBool) EnumerateBackwards(nsISupportsArrayEnumFunc aFunc, void* aData) const;
protected:
void DeleteArray(void);
nsISupports** mArray;
PRUint32 mArraySize;
PRUint32 mCount;
nsISupports* mAutoArray[kAutoArraySize];
private:
// Copy constructors are not allowed
nsSupportsArray(const nsISupportsArray& other);
};
#endif // nsSupportsArray_h__

View File

@@ -1,133 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsSupportsArrayEnumerator.h"
#include "nsISupportsArray.h"
nsSupportsArrayEnumerator::nsSupportsArrayEnumerator(nsISupportsArray* array)
: mArray(array), mCursor(0)
{
NS_INIT_REFCNT();
NS_ASSERTION(array, "null array");
NS_ADDREF(mArray);
}
nsSupportsArrayEnumerator::~nsSupportsArrayEnumerator()
{
NS_RELEASE(mArray);
}
NS_IMPL_ADDREF(nsSupportsArrayEnumerator);
NS_IMPL_RELEASE(nsSupportsArrayEnumerator);
NS_IMETHODIMP
nsSupportsArrayEnumerator::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (NULL == aInstancePtr)
return NS_ERROR_NULL_POINTER;
if (aIID.Equals(nsIBidirectionalEnumerator::GetIID()) ||
aIID.Equals(nsIEnumerator::GetIID()) ||
aIID.Equals(nsISupports::GetIID())) {
*aInstancePtr = (void*) this;
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMETHODIMP
nsSupportsArrayEnumerator::First()
{
mCursor = 0;
PRInt32 end = (PRInt32)mArray->Count();
if (mCursor < end)
return NS_OK;
else
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsSupportsArrayEnumerator::Next()
{
PRInt32 end = (PRInt32)mArray->Count();
if (mCursor < end) // don't count upward forever
mCursor++;
if (mCursor < end)
return NS_OK;
else
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsSupportsArrayEnumerator::CurrentItem(nsISupports **aItem)
{
NS_ASSERTION(aItem, "null out parameter");
if (mCursor >= 0 && mCursor < (PRInt32)mArray->Count()) {
*aItem = (*mArray)[mCursor];
NS_IF_ADDREF(*aItem);
return NS_OK;
}
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsSupportsArrayEnumerator::IsDone()
{
return (mCursor >= 0 && mCursor < (PRInt32)mArray->Count())
? NS_COMFALSE : NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
NS_IMETHODIMP
nsSupportsArrayEnumerator::Last()
{
mCursor = mArray->Count() - 1;
return NS_OK;
}
NS_IMETHODIMP
nsSupportsArrayEnumerator::Prev()
{
if (mCursor >= 0)
--mCursor;
if (mCursor >= 0)
return NS_OK;
else
return NS_ERROR_FAILURE;
}
////////////////////////////////////////////////////////////////////////////////
NS_COM nsresult
NS_NewISupportsArrayEnumerator(nsISupportsArray* array,
nsIBidirectionalEnumerator* *aInstancePtrResult)
{
if (aInstancePtrResult == 0)
return NS_ERROR_NULL_POINTER;
nsSupportsArrayEnumerator* e = new nsSupportsArrayEnumerator(array);
if (e == 0)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(e);
*aInstancePtrResult = e;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -1,50 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsSupportsArrayEnumerator_h___
#define nsSupportsArrayEnumerator_h___
#include "nsIEnumerator.h"
class nsISupportsArray;
class NS_COM nsSupportsArrayEnumerator : public nsIBidirectionalEnumerator {
public:
NS_DECL_ISUPPORTS
nsSupportsArrayEnumerator(nsISupportsArray* array);
virtual ~nsSupportsArrayEnumerator();
// nsIEnumerator methods:
NS_IMETHOD First();
NS_IMETHOD Next();
NS_IMETHOD CurrentItem(nsISupports **aItem);
NS_IMETHOD IsDone();
// nsIBidirectionalEnumerator methods:
NS_IMETHOD Last();
NS_IMETHOD Prev();
protected:
nsISupportsArray* mArray;
PRInt32 mCursor;
};
#endif // __nsSupportsArrayEnumerator_h

View File

@@ -1,74 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsVector_h__
#define nsVector_h__
#include "plvector.h"
#include "nsCom.h"
class nsVector : public PLVector {
public:
// Construction
nsVector(PRUint32 initialSize = 0, PRInt32 initialGrowBy = 0) {
PL_VectorInitialize(this, initialSize, initialGrowBy);
}
~nsVector(void) { PL_VectorFinalize(this); }
// Attributes
PRUint32 GetSize(void) const { return PL_VectorGetSize(this); }
PRUint32 GetUpperBound(void) const { return GetSize() - 1; }
PRBool SetSize(PRUint32 nNewSize, PRInt32 nGrowBy = PL_VECTOR_GROW_DEFAULT) {
return PL_VectorSetSize(this, nNewSize, nGrowBy);
}
PRBool IsValidIndex(PRUint32 index) { return PL_VectorIsValidIndex(this, index); }
// Operations
// Clean up
void Compact(void) { PL_VectorCompact(this); }
void RemoveAll(void) { SetSize(0); }
void Copy(nsVector* src, PRUint32 len, PRUint32 dstPos = 0, PRUint32 srcPos = 0) {
PL_VectorCopy(this, dstPos, src, srcPos, len);
}
// Accessing elements
void* Get(PRUint32 index) const { return PL_VectorGet(this, index); }
void Set(PRUint32 index, void* newElement) { PL_VectorSet(this, index, newElement); }
void*& ElementAt(PRUint32 index) { return *PL_VectorGetAddr(this, index); }
// Potentially growing the array
PRInt32 Add(void* newElement) { return PL_VectorAdd(this, newElement); }
// overloaded operator helpers
void* operator[](PRUint32 index) const { return Get(index); }
void*& operator[](PRUint32 index) { return ElementAt(index); }
// Operations that move elements around
void Insert(PRUint32 index, void* newElement, PRInt32 count = 1) {
PL_VectorInsert(this, index, newElement, count);
}
void Remove(PRUint32 index, PRInt32 count = 1) {
PL_VectorRemove(this, index, count);
}
#ifdef DEBUG
void AssertValid(void) const { PL_VectorAssertValid((PLVector*)this); }
#endif
};
#endif

View File

@@ -1,163 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsDebug.h"
#include "nsIAllocator.h"
#include "nsXPIDLString.h"
#include "plstr.h"
// If the allocator changes, fix it here.
#define XPIDL_STRING_ALLOC(__len) ((PRUnichar*) nsAllocator::Alloc((__len) * sizeof(PRUnichar)))
#define XPIDL_CSTRING_ALLOC(__len) ((char*) nsAllocator::Alloc((__len) * sizeof(char)))
#define XPIDL_FREE(__ptr) (nsAllocator::Free(__ptr))
////////////////////////////////////////////////////////////////////////
// nsXPIDLString
nsXPIDLString::nsXPIDLString()
: mBufOwner(PR_FALSE),
mBuf(0)
{
}
nsXPIDLString::~nsXPIDLString()
{
if (mBufOwner && mBuf)
XPIDL_FREE(mBuf);
}
nsXPIDLString::operator const PRUnichar*()
{
return mBuf;
}
PRUnichar*
nsXPIDLString::Copy(const PRUnichar* aString)
{
NS_ASSERTION(aString, "null ptr");
if (! aString)
return 0;
PRInt32 len = 0;
{
const PRUnichar* p = aString;
while (*p++)
len++;
}
PRUnichar* result = XPIDL_STRING_ALLOC(len + 1);
if (result) {
PRUnichar* q = result;
while (*aString) {
*q = *aString;
q++;
aString++;
}
*q = '\0';
}
return result;
}
PRUnichar**
nsXPIDLString::StartAssignmentByValue()
{
if (mBufOwner && mBuf)
XPIDL_FREE(mBuf);
mBufOwner = PR_TRUE;
return &mBuf;
}
const PRUnichar**
nsXPIDLString::StartAssignmentByReference()
{
if (mBufOwner && mBuf)
XPIDL_FREE(mBuf);
mBufOwner = PR_FALSE;
return (const PRUnichar**) &mBuf;
}
////////////////////////////////////////////////////////////////////////
// nsXPIDLCString
nsXPIDLCString::nsXPIDLCString()
: mBufOwner(PR_FALSE),
mBuf(0)
{
}
nsXPIDLCString::~nsXPIDLCString()
{
if (mBufOwner && mBuf)
XPIDL_FREE(mBuf);
}
nsXPIDLCString::operator const char*()
{
return mBuf;
}
char*
nsXPIDLCString::Copy(const char* aCString)
{
NS_ASSERTION(aCString, "null ptr");
if (! aCString)
return 0;
PRInt32 len = PL_strlen(aCString);
char* result = XPIDL_CSTRING_ALLOC(len + 1);
if (result)
PL_strcpy(result, aCString);
return result;
}
char**
nsXPIDLCString::StartAssignmentByValue()
{
if (mBufOwner && mBuf)
XPIDL_FREE(mBuf);
mBufOwner = PR_TRUE;
return &mBuf;
}
const char**
nsXPIDLCString::StartAssignmentByReference()
{
if (mBufOwner && mBuf)
XPIDL_FREE(mBuf);
mBufOwner = PR_FALSE;
return (const char**) &mBuf;
}

View File

@@ -1,294 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
A set of string wrapper classes that ease transition to use of XPIDL
interfaces. nsXPIDLString and nsXPIDLCString are to XPIDL `wstring'
and `string' out params as nsCOMPtr is to generic XPCOM interface
pointers. They help you deal with object ownership.
Consider the following interface:
interface nsIFoo {
attribute string Bar;
};
This will generated the following C++ header file:
class nsIFoo {
NS_IMETHOD SetBar(const PRUnichar* aValue);
NS_IMETHOD GetBar(PRUnichar* *aValue);
};
The GetBar() method will allocate a copy of the nsIFoo object's
"bar" attribute, and leave you to deal with freeing it:
nsIFoo* aFoo; // assume we get this somehow
PRUnichar* bar;
aFoo->GetFoo(&bar);
// Use bar here...
delete[] bar;
(Strictly speaking, the `delete[] bar' should use the proper XPCOM
de-allocator that; we'll ignore that for now.) This makes your life
harder, because you need to convolute your code to ensure that you
don't leak `bar'.
Enter nsXPIDLString, which manages the ownership of the allocated
string, and automatically destroys it when the nsXPIDLString goes
out of scope:
nsIFoo* aFoo;
nsXPIDLString bar;
aFoo->GetFoo( getter_Copies(bar) );
// Use bar here...
Like nsCOMPtr, nsXPIDLString uses some syntactic sugar to make it
painfully clear exactly what the code expects. You need to wrap an
nsXPIDLString object with either `getter_Copies()' or
`getter_Shares()': these tell the nsXPIDLString how ownership is
being handled. In the case of `getter_Copies()', the callee is
allocating a copy (which is usually the case). In the case of
`getter_Shares()', the callee is returning a const reference to `the
real deal' (this can be done using the [shared] attribute in XPIDL).
*/
#ifndef nsXPIDLString_h__
#define nsXPIDLString_h__
#include "nsCom.h"
#include "prtypes.h"
#ifndef __PRUNICHAR__
#define __PRUNICHAR__
typedef PRUint16 PRUnichar;
#endif /* __PRUNICHAR__ */
////////////////////////////////////////////////////////////////////////
// nsXPIDLString
//
// A wrapper for Unicode strings. With the |getter_Copies()| and
// |getter_Shares()| helper functions, this can be used instead of
// the "naked" |PRUnichar*| interface for |wstring| parameters in
// XPIDL interfaces.
//
class NS_COM nsXPIDLString {
private:
PRUnichar* mBuf;
PRBool mBufOwner;
PRUnichar** StartAssignmentByValue();
const PRUnichar** StartAssignmentByReference();
public:
/**
* Construct a new, uninitialized wrapper for a Unicode string.
*/
nsXPIDLString();
virtual ~nsXPIDLString();
/**
* Return a reference to the immutable Unicode string.
*/
operator const PRUnichar*();
/**
* Make a copy of the Unicode string. Use this function in the
* callee to ensure that the correct memory allocator is used.
*/
static PRUnichar* Copy(const PRUnichar* aString);
// A helper class for assignment-by-value. This class is an
// implementation detail and should not be considered part of the
// public interface.
class NS_COM GetterCopies {
private:
nsXPIDLString& mXPIDLString;
public:
GetterCopies(nsXPIDLString& aXPIDLString)
: mXPIDLString(aXPIDLString) {}
operator PRUnichar**() {
return mXPIDLString.StartAssignmentByValue();
}
friend GetterCopies getter_Copies(nsXPIDLString& aXPIDLString);
};
friend class GetterCopies;
// A helper class for assignment-by-reference. This class is an
// implementation detail and should not be considered part of the
// public interface.
class NS_COM GetterShares {
private:
nsXPIDLString& mXPIDLString;
public:
GetterShares(nsXPIDLString& aXPIDLString)
: mXPIDLString(aXPIDLString) {}
operator const PRUnichar**() {
return mXPIDLString.StartAssignmentByReference();
}
friend GetterShares getter_Shares(nsXPIDLString& aXPIDLString);
};
friend class GetterShares;
private:
// not to be implemented
nsXPIDLString(nsXPIDLString& aXPIDLString) {}
nsXPIDLString& operator =(nsXPIDLString& aXPIDLString) { return *this; }
};
/**
* Use this function to "wrap" the nsXPIDLString object that is to
* receive an |out| value.
*/
inline nsXPIDLString::GetterCopies
getter_Copies(nsXPIDLString& aXPIDLString)
{
return nsXPIDLString::GetterCopies(aXPIDLString);
}
/**
* Use this function to "wrap" the nsXPIDLString object that is to
* receive a |[shared] out| value.
*/
inline nsXPIDLString::GetterShares
getter_Shares(nsXPIDLString& aXPIDLString)
{
return nsXPIDLString::GetterShares(aXPIDLString);
}
////////////////////////////////////////////////////////////////////////
// nsXPIDLCString
//
// A wrapper for Unicode strings. With the |getter_Copies()| and
// |getter_Shares()| helper functions, this can be used instead of
// the "naked" |char*| interface for |string| parameters in XPIDL
// interfaces.
//
class NS_COM nsXPIDLCString {
private:
char* mBuf;
PRBool mBufOwner;
char** StartAssignmentByValue();
const char** StartAssignmentByReference();
public:
/**
* Construct a new, uninitialized wrapper for a single-byte string.
*/
nsXPIDLCString();
virtual ~nsXPIDLCString();
/**
* Return a reference to the immutable single-byte string.
*/
operator const char*();
/**
* Make a copy of the single-byte string. Use this function in the
* callee to ensure that the correct memory allocator is used.
*/
static char* Copy(const char* aString);
// A helper class for assignment-by-value. This class is an
// implementation detail and should not be considered part of the
// public interface.
class NS_COM GetterCopies {
private:
nsXPIDLCString& mXPIDLString;
public:
GetterCopies(nsXPIDLCString& aXPIDLString)
: mXPIDLString(aXPIDLString) {}
operator char**() {
return mXPIDLString.StartAssignmentByValue();
}
friend GetterCopies getter_Copies(nsXPIDLCString& aXPIDLString);
};
friend class GetterCopies;
// A helper class for assignment-by-reference. This class is an
// implementation detail and should not be considered part of the
// public interface.
class NS_COM GetterShares {
private:
nsXPIDLCString& mXPIDLString;
public:
GetterShares(nsXPIDLCString& aXPIDLString)
: mXPIDLString(aXPIDLString) {}
operator const char**() {
return mXPIDLString.StartAssignmentByReference();
}
friend GetterShares getter_Shares(nsXPIDLCString& aXPIDLString);
};
friend class GetterShares;
private:
// not to be implemented
nsXPIDLCString(nsXPIDLCString& aXPIDLString) {}
nsXPIDLCString& operator =(nsXPIDLCString& aXPIDLString) { return *this; }
};
/**
* Use this function to "wrap" the nsXPIDLCString object that is to
* receive an |out| value.
*/
inline nsXPIDLCString::GetterCopies
getter_Copies(nsXPIDLCString& aXPIDLString)
{
return nsXPIDLCString::GetterCopies(aXPIDLString);
}
/**
* Use this function to "wrap" the nsXPIDLCString object that is to
* receive a |[shared] out| value.
*/
inline nsXPIDLCString::GetterShares
getter_Shares(nsXPIDLCString& aXPIDLString)
{
return nsXPIDLCString::GetterShares(aXPIDLString);
}
#endif // nsXPIDLString_h__

View File

@@ -1,318 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "plvector.h"
#include "prmem.h"
#include <string.h>
#ifdef XP_WIN16
#define SIZE_T_MAX 0xFF80 /* a little less than 64K, the max alloc size on win16. */
#define MAX_ARR_ELEMS SIZE_T_MAX/sizeof(void*)
#endif
PR_IMPLEMENT(PLVector*)
PL_NewVector(PRUint32 initialSize, PRInt32 initialGrowBy)
{
PLVector* v = (PLVector*)PR_Malloc(sizeof(PLVector*));
if (v == NULL)
return NULL;
PL_VectorInitialize(v, initialSize, initialGrowBy);
return v;
}
PR_IMPLEMENT(void)
PL_VectorDestroy(PLVector* v)
{
PL_VectorFinalize(v);
PR_Free(v);
}
/* Initializes an existing vector */
PR_IMPLEMENT(void)
PL_VectorInitialize(PLVector* v, PRUint32 initialSize, PRInt32 initialGrowBy)
{
v->data = NULL;
v->size = v->maxSize = v->growBy = 0;
if (initialSize > 0 || initialGrowBy > 0)
PL_VectorSetSize(v, initialSize, initialGrowBy);
}
/* Destroys the elements, but doesn't free the vector */
PR_IMPLEMENT(void)
PL_VectorFinalize(PLVector* v)
{
/* This implementation doesn't do anything to delete the elements
in the vector -- that's up to the caller. (Don't shoot me,
I just copied the code from libmsg.) */
PR_Free(v->data);
}
PR_IMPLEMENT(PRBool)
PL_VectorSetSize(PLVector* v, PRUint32 newSize, PRInt32 growBy)
{
if (growBy != -1)
v->growBy = growBy; /* set new size */
if (newSize == 0) {
/* shrink to nothing */
PR_Free(v->data);
v->data = NULL;
v->size = v->maxSize = 0;
}
else if (v->data == NULL) {
/* create one with exact size */
#ifdef SIZE_T_MAX
PR_ASSERT(newSize <= SIZE_T_MAX/sizeof(void*)); /* no overflow */
#endif
v->data = (void**)PR_Malloc(newSize * sizeof(void *));
if (v->data == NULL) {
v->size = 0;
return PR_FALSE;
}
memset(v->data, 0, newSize * sizeof(void *)); /* zero fill */
v->size = v->maxSize = newSize;
}
else if (newSize <= v->maxSize) {
/* it fits */
if (newSize > v->size) {
/* initialize the new elements */
memset(&v->data[v->size], 0, (newSize-v->size) * sizeof(void *));
}
v->size = newSize;
}
else {
/* otherwise, grow array */
PRUint32 newMax;
void** newData;
PRInt32 growBy = v->growBy;
if (growBy == 0) {
/* heuristically determine growth when growBy == 0
(this avoids heap fragmentation in many situations) */
growBy = PR_MIN(1024, PR_MAX(4, v->size / 8));
}
#ifdef MAX_ARR_ELEMS
if (v->size + growBy > MAX_ARR_ELEMS)
growBy = MAX_ARR_ELEMS - v->size;
#endif
if (newSize < v->maxSize + growBy)
newMax = v->maxSize + growBy; /* granularity */
else
newMax = newSize; /* no slush */
#ifdef SIZE_T_MAX
if (newMax >= SIZE_T_MAX/sizeof(void*))
return PR_FALSE;
PR_ASSERT(newMax <= SIZE_T_MAX/sizeof(void*)); /* no overflow */
#endif
PR_ASSERT(newMax >= v->maxSize); /* no wrap around */
newData = (void**)PR_Malloc(newMax * sizeof(void*));
if (newData != NULL) {
/* copy new data from old */
memcpy(newData, v->data, v->size * sizeof(void*));
/* construct remaining elements */
PR_ASSERT(newSize > v->size);
memset(&newData[v->size], 0, (newSize-v->size) * sizeof(void*));
/* get rid of old stuff (note: no destructors called) */
PR_Free(v->data);
v->data = newData;
v->size = newSize;
v->maxSize = newMax;
}
else {
return PR_FALSE;
}
}
return PR_TRUE;
}
PR_IMPLEMENT(PRBool)
PL_VectorIsValidIndex(PLVector* v, PRUint32 index)
{
return (index < v->size) ? PR_TRUE : PR_FALSE;
}
PR_IMPLEMENT(void)
PL_VectorCompact(PLVector* v)
{
if (v->size != v->maxSize) {
/* shrink to desired size */
#ifdef SIZE_T_MAX
PR_ASSERT(v->size <= SIZE_T_MAX/sizeof(void *)); /* no overflow */
#endif
void ** newData = NULL;
if (v->size != 0) {
newData = (void **)PR_Malloc(v->size * sizeof(void *));
/* copy new data from old */
memcpy(newData, v->data, v->size * sizeof(void *));
}
/* get rid of old stuff (note: no destructors called) */
PR_Free(v->data);
v->data = newData;
v->maxSize = v->size;
}
}
#if 0 /* becomes Copy */
PR_IMPLEMENT(void)
PL_VectorSplice(PLVector* v, PRUint32 startIndex, PLVector* newVector)
{
PRUint32 i;
PR_ASSERT(newVector != NULL);
if (PL_VectorGetSize(newVector) > 0) {
PL_VectorInsert(v, startIndex, PL_VectorGet(newVector, 0),
PL_VectorGetSize(newVector));
for (i = 0; i < PL_VectorGetSize(newVector); i++)
PL_VectorSet(v, startIndex + i, PL_VectorGet(newVector, i));
}
}
#endif
PR_IMPLEMENT(void)
PL_VectorCopy(PLVector* dstVector, PRUint32 dstPosition,
PLVector* srcVector, PRUint32 srcPosition, PRUint32 length)
{
PR_ASSERT(0); /* XXX not implemented yet */
#if 0
PL_VectorSetSize(dstVector, PR_MAX(PL_VectorGetSize(dstVector),
PL_VectorGetSize(srcVector)),
PL_VECTOR_GROW_DEFAULT);
if (v->data)
PR_Free(v->data);
v->size = oldA->v->size;
v->maxSize = oldA->v->maxSize;
v->growBy = oldA->v->growBy;
v->data = (void**)PR_Malloc(v->size * sizeof(void *));
if (v->data == NULL) {
v->size = 0;
}
else {
memcpy(v->data, oldA->v->data, v->size * sizeof(void *));
}
#endif
}
PR_IMPLEMENT(PLVector*)
PL_VectorClone(PLVector* v)
{
PLVector* newVec = PL_NewVector(v->size, v->growBy);
PL_VectorCopy(newVec, 0, v, 0, v->size);
return newVec;
}
/* Accessing elements */
PR_IMPLEMENT(void)
PL_VectorSet(PLVector* v, PRUint32 index, void* newElement)
{
if (index >= v->size) {
if (!PL_VectorSetSize(v, index+1, PL_VECTOR_GROW_DEFAULT))
return;
}
v->data[index] = newElement;
}
/* Adds at the end */
PR_IMPLEMENT(PRUint32)
PL_VectorAdd(PLVector* v, void* newElement)
{
PRUint32 index = v->size;
#ifdef XP_WIN16
if (index >= SIZE_T_MAX / 4L) {
return -1;
}
#endif
PL_VectorSet(v, index, newElement);
return index;
}
/* Inserts new element count times at index */
PR_IMPLEMENT(void)
PL_VectorInsert(PLVector* v, PRUint32 index, void* newElement, PRUint32 count)
{
PR_ASSERT(count > 0); /* zero or negative size not allowed */
if (index >= v->size) {
/* adding after the end of the array */
if (!PL_VectorSetSize(v, index + count, PL_VECTOR_GROW_DEFAULT))
return; /* grow so index is valid */
}
else {
/* inserting in the middle of the array */
PRUint32 nOldSize = v->size;
if (!PL_VectorSetSize(v, v->size + count, PL_VECTOR_GROW_DEFAULT))
return; /* grow it to new size */
/* shift old data up to fill gap */
memmove(&v->data[index+count], &v->data[index],
(nOldSize-index) * sizeof(void *));
/* re-init slots we copied from */
memset(&v->data[index], 0, count * sizeof(void *));
}
/* insert new value in the gap */
PR_ASSERT(index + count <= v->size);
while (count--)
v->data[index++] = newElement;
}
/* Removes count elements at index */
PR_IMPLEMENT(void)
PL_VectorRemove(PLVector* v, PRUint32 index, PRUint32 count)
{
PRUint32 moveCount;
PR_ASSERT(count >= 0);
PR_ASSERT(index + count <= v->size);
/* just remove a range */
moveCount = v->size - (index + count);
if (moveCount)
memmove(&v->data[index], &v->data[index + count],
moveCount * sizeof(void *));
v->size -= count;
}
#ifdef DEBUG
PR_IMPLEMENT(void)
PL_VectorAssertValid(PLVector* v)
{
if (v->data == NULL) {
PR_ASSERT(v->size == 0);
PR_ASSERT(v->maxSize == 0);
}
else {
PR_ASSERT(v->size >= 0);
PR_ASSERT(v->maxSize >= 0);
PR_ASSERT(v->size <= v->maxSize);
}
}
#endif

View File

@@ -1,100 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef plvector_h__
#define plvector_h__
#include "prtypes.h"
#include "prlog.h"
PR_BEGIN_EXTERN_C
/* Vectors are extensible arrays */
typedef struct PLVector {
void** data; /* the actual array of data */
PRUint32 size; /* # of elements (upperBound - 1) */
PRUint32 maxSize; /* max allocated */
PRInt32 growBy; /* grow amount */
} PLVector;
PR_EXTERN(PLVector*)
PL_NewVector(PRUint32 initialSize, PRInt32 initialGrowBy);
PR_EXTERN(void)
PL_VectorDestroy(PLVector* v);
/* Initializes an existing vector */
PR_EXTERN(void)
PL_VectorInitialize(PLVector* v, PRUint32 initialSize, PRInt32 initialGrowBy);
/* Destroys the elements, but doesn't free the vector */
PR_EXTERN(void)
PL_VectorFinalize(PLVector* v);
#define PL_VectorGetSize(v) ((v)->size)
#define PL_VECTOR_GROW_DEFAULT (-1)
PR_EXTERN(PRBool)
PL_VectorSetSize(PLVector* v, PRUint32 newSize, PRInt32 growBy);
PR_EXTERN(PRBool)
PL_VectorIsValidIndex(PLVector* v, PRUint32 index);
PR_EXTERN(void)
PL_VectorCompact(PLVector* v);
PR_EXTERN(void)
PL_VectorCopy(PLVector* dstVector, PRUint32 dstPosition,
PLVector* srcVector, PRUint32 srcPosition, PRUint32 length);
PR_EXTERN(PLVector*)
PL_VectorClone(PLVector* v);
/* Accessing elements */
#define PL_VectorGetAddr(v, index) (PR_ASSERT((index) < (v)->size), &(v)->data[index])
#define PL_VectorGet(v, index) (*PL_VectorGetAddr(v, index))
PR_EXTERN(void)
PL_VectorSet(PLVector* v, PRUint32 index, void* newElement);
/* Adds at the end */
PR_EXTERN(PRUint32)
PL_VectorAdd(PLVector* v, void* newElement);
/* Inserts new element count times at index */
PR_EXTERN(void)
PL_VectorInsert(PLVector* v, PRUint32 index, void* newElement, PRUint32 count);
/* Removes count elements at index */
PR_EXTERN(void)
PL_VectorRemove(PLVector* v, PRUint32 index, PRUint32 count);
#ifdef DEBUG
PR_EXTERN(void)
PL_VectorAssertValid(PLVector* v);
#endif
PR_END_EXTERN_C
#endif /* plvector_h__ */

View File

@@ -1,54 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsCOMPtr.h"
void
nsCOMPtr_base::assign_with_AddRef( nsISupports* rawPtr )
{
if ( rawPtr )
NSCAP_ADDREF(rawPtr);
if ( mRawPtr )
NSCAP_RELEASE(mRawPtr);
mRawPtr = rawPtr;
}
void
nsCOMPtr_base::assign_with_QueryInterface( nsISupports* rawPtr, const nsIID& iid, nsresult* result )
{
nsresult status = NS_OK;
if ( !rawPtr || !NS_SUCCEEDED( status = rawPtr->QueryInterface(iid, NSCAP_REINTERPRET_CAST(void**, &rawPtr)) ) )
rawPtr = 0;
if ( mRawPtr )
NSCAP_RELEASE(mRawPtr);
mRawPtr = rawPtr;
if ( result )
*result = status;
}
void**
nsCOMPtr_base::begin_assignment()
{
if ( mRawPtr )
NSCAP_RELEASE(mRawPtr);
mRawPtr = 0;
return NSCAP_REINTERPRET_CAST(void**, &mRawPtr);
}

View File

@@ -1,493 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsCOMPtr_h___
#define nsCOMPtr_h___
// Wrapping includes can speed up compiles (see "Large Scale C++ Software Design")
#ifndef nsDebug_h___
#include "nsDebug.h"
// for |NS_PRECONDITION|
#endif
#ifndef nsISupports_h___
#include "nsISupports.h"
// for |nsresult|, |NS_ADDREF|, et al
#endif
/*
Having problems?
See the User Manual at:
<http://www.meer.net/ScottCollins/doc/nsCOMPtr.html>, or
<http://www.mozilla.org/projects/xpcom/nsCOMPtr.html>
*/
/*
TO DO...
+ make StartAssignment optionally inlined
+ make constructor for |nsQueryInterface| explicit (suddenly construct/assign from raw pointer becomes illegal)
+ Improve internal documentation
+ mention *&
+ alternatives for comparison
+ do_QueryInterface
*/
/*
WARNING:
This file defines several macros for internal use only. These macros begin with the
prefix |NSCAP_|. Do not use these macros in your own code. They are for internal use
only for cross-platform compatibility, and are subject to change without notice.
*/
/*
Set up some |#define|s to turn off a couple of troublesome C++ features.
Interestingly, none of the compilers barf on template stuff. These are set up automatically
by the autoconf system for all Unixes. (Temporarily, I hope) I have to define them
myself for Mac and Windows.
*/
// under Metrowerks (Mac), we don't have autoconf yet
#ifdef __MWERKS__
#define HAVE_CPP_USING
#define HAVE_CPP_EXPLICIT
#define HAVE_CPP_NEW_CASTS
#endif
// under VC++ (Windows), we don't have autoconf yet
#ifdef _MSC_VER
#define HAVE_CPP_EXPLICIT
#define HAVE_CPP_USING
#define HAVE_CPP_NEW_CASTS
#if (_MSC_VER<1100)
// before 5.0, VC++ couldn't handle explicit
#undef HAVE_CPP_EXPLICIT
#elif (_MSC_VER==1100)
// VC++5.0 has an internal compiler error (sometimes) without this
#undef HAVE_CPP_USING
#endif
#define NSCAP_FEATURE_INLINE_STARTASSIGNMENT
// under VC++, we win by inlining StartAssignment
#endif
/*
If the compiler doesn't support |explicit|, we'll just make it go away, trusting
that the builds under compilers that do have it will keep us on the straight and narrow.
*/
#ifndef HAVE_CPP_EXPLICIT
#define explicit
#endif
#ifdef HAVE_CPP_NEW_CASTS
#define NSCAP_REINTERPRET_CAST(T,x) reinterpret_cast<T>(x)
#else
#define NSCAP_REINTERPRET_CAST(T,x) ((T)(x))
#endif
#ifdef NSCAP_FEATURE_DEBUG_MACROS
#define NSCAP_ADDREF(ptr) NS_ADDREF(ptr)
#define NSCAP_RELEASE(ptr) NS_RELEASE(ptr)
#else
#define NSCAP_ADDREF(ptr) (ptr)->AddRef()
#define NSCAP_RELEASE(ptr) (ptr)->Release()
#endif
/*
WARNING:
VC++4.2 is very picky. To compile under VC++4.2, the classes must be defined
in an order that satisfies:
nsDerivedSafe < nsCOMPtr
nsDontAddRef < nsCOMPtr
nsCOMPtr < nsGetterAddRefs
The other compilers probably won't complain, so please don't reorder these
classes, on pain of breaking 4.2 compatibility.
*/
template <class T>
class nsDerivedSafe : public T
/*
No client should ever see or have to type the name of this class. It is the
artifact that makes it a compile-time error to call |AddRef| and |Release|
on a |nsCOMPtr|.
See |nsCOMPtr::operator->|, |nsCOMPtr::operator*|, et al.
*/
{
private:
#ifdef HAVE_CPP_USING
using T::AddRef;
using T::Release;
#else
NS_IMETHOD_(nsrefcnt) AddRef(void);
NS_IMETHOD_(nsrefcnt) Release(void);
#endif
void operator delete( void*, size_t ); // NOT TO BE IMPLEMENTED
// declaring |operator delete| private makes calling delete on an interface pointer a compile error
nsDerivedSafe<T>& operator=( const nsDerivedSafe<T>& ); // NOT TO BE IMPLEMENTED
// you may not call |operator=()| through a dereferenced |nsCOMPtr|, because you'd get the wrong one
};
#if !defined(HAVE_CPP_USING) && defined(NEED_CPP_UNUSED_IMPLEMENTATIONS)
template <class T>
nsrefcnt
nsDerivedSafe<T>::AddRef()
{
return 0;
}
template <class T>
nsrefcnt
nsDerivedSafe<T>::Release()
{
return 0;
}
#endif
template <class T>
struct nsDontQueryInterface
/*
...
*/
{
explicit
nsDontQueryInterface( T* aRawPtr )
: mRawPtr(aRawPtr)
{
// nothing else to do here
}
T* mRawPtr;
};
template <class T>
inline
nsDontQueryInterface<T>
dont_QueryInterface( T* aRawPtr )
{
return nsDontQueryInterface<T>(aRawPtr);
}
struct nsQueryInterface
{
explicit
nsQueryInterface( nsISupports* aRawPtr, nsresult* error = 0 )
: mRawPtr(aRawPtr),
mErrorPtr(error)
{
// nothing else to do here
}
nsISupports* mRawPtr;
nsresult* mErrorPtr;
};
inline
nsQueryInterface
do_QueryInterface( nsISupports* aRawPtr, nsresult* error = 0 )
{
return nsQueryInterface(aRawPtr, error);
}
template <class T>
struct nsDontAddRef
/*
...cooperates with |nsCOMPtr| to allow you to assign in a pointer _without_
|AddRef|ing it. You would rarely use this directly, but rather through the
machinery of |getter_AddRefs| in the argument list to functions that |AddRef|
their results before returning them to the caller.
See also |getter_AddRefs()| and |class nsGetterAddRefs|.
*/
{
explicit
nsDontAddRef( T* aRawPtr )
: mRawPtr(aRawPtr)
{
// nothing else to do here
}
T* mRawPtr;
};
// This call is now deprecated. Use |getter_AddRefs()| instead.
template <class T>
inline
nsDontAddRef<T>
dont_AddRef( T* aRawPtr )
/*
...makes typing easier, because it deduces the template type, e.g.,
you write |dont_AddRef(fooP)| instead of |nsDontAddRef<IFoo>(fooP)|.
*/
{
return nsDontAddRef<T>(aRawPtr);
}
template <class T>
inline
nsDontAddRef<T>
getter_AddRefs( T* aRawPtr )
{
return nsDontAddRef<T>(aRawPtr);
}
class nsCOMPtr_base
{
public:
nsCOMPtr_base( nsISupports* rawPtr = 0 )
: mRawPtr(rawPtr)
{
// nothing else to do here
}
~nsCOMPtr_base()
{
if ( mRawPtr )
NSCAP_RELEASE(mRawPtr);
}
NS_EXPORT void assign_with_AddRef( nsISupports* );
NS_EXPORT void assign_with_QueryInterface( nsISupports*, const nsIID&, nsresult* );
NS_EXPORT void** begin_assignment();
protected:
nsISupports* mRawPtr;
};
template <class T>
class nsCOMPtr : private nsCOMPtr_base
/*
...
*/
{
public:
typedef T element_type;
nsCOMPtr()
// : nsCOMPtr_base(0)
{
// nothing else to do here
}
nsCOMPtr( const nsQueryInterface& aSmartPtr )
// : nsCOMPtr_base(0)
{
assign_with_QueryInterface(aSmartPtr.mRawPtr, T::GetIID(), aSmartPtr.mErrorPtr);
}
nsCOMPtr( const nsDontAddRef<T>& aSmartPtr )
: nsCOMPtr_base(aSmartPtr.mRawPtr)
{
// nothing else to do here
}
nsCOMPtr( const nsDontQueryInterface<T>& aSmartPtr )
: nsCOMPtr_base(aSmartPtr.mRawPtr)
{
if ( mRawPtr )
NSCAP_ADDREF(mRawPtr);
}
nsCOMPtr( const nsCOMPtr<T>& aSmartPtr )
: nsCOMPtr_base(aSmartPtr.mRawPtr)
{
if ( mRawPtr )
NSCAP_ADDREF(mRawPtr);
}
nsCOMPtr<T>&
operator=( const nsQueryInterface& rhs )
{
assign_with_QueryInterface(rhs.mRawPtr, T::GetIID(), rhs.mErrorPtr);
return *this;
}
nsCOMPtr<T>&
operator=( const nsDontAddRef<T>& rhs )
{
if ( mRawPtr )
NSCAP_RELEASE(mRawPtr);
mRawPtr = rhs.mRawPtr;
return *this;
}
nsCOMPtr<T>&
operator=( const nsDontQueryInterface<T>& rhs )
{
assign_with_AddRef(rhs.mRawPtr);
return *this;
}
nsCOMPtr<T>&
operator=( const nsCOMPtr<T>& rhs )
{
assign_with_AddRef(rhs.mRawPtr);
return *this;
}
nsDerivedSafe<T>*
get() const
// returns a |nsDerivedSafe<T>*| to deny clients the use of |AddRef| and |Release|
{
return NSCAP_REINTERPRET_CAST(nsDerivedSafe<T>*, mRawPtr);
}
nsDerivedSafe<T>*
operator->() const
// returns a |nsDerivedSafe<T>*| to deny clients the use of |AddRef| and |Release|
{
NS_PRECONDITION(mRawPtr != 0, "You can't dereference a NULL nsCOMPtr with operator->().");
return get();
}
nsDerivedSafe<T>&
operator*() const
// returns a |nsDerivedSafe<T>*| to deny clients the use of |AddRef| and |Release|
{
NS_PRECONDITION(mRawPtr != 0, "You can't dereference a NULL nsCOMPtr with operator*().");
return *get();
}
operator nsDerivedSafe<T>*() const
{
return get();
}
#if 0
private:
friend class nsGetterAddRefs<T>;
/*
In a perfect world, the following member function, |StartAssignment|, would be private.
It is and should be only accessed by the closely related class |nsGetterAddRefs<T>|.
Unfortunately, some compilers---most notably VC++5.0---fail to grok the
friend declaration above or in any alternate acceptable form. So, physically
it will be public (until our compilers get smarter); but it is not to be
considered part of the logical public interface.
*/
#endif
T**
StartAssignment()
{
#ifndef NSCAP_FEATURE_INLINE_STARTASSIGNMENT
return NSCAP_REINTERPRET_CAST(T**, begin_assignment());
#else
if ( mRawPtr )
NSCAP_RELEASE(mRawPtr);
mRawPtr = 0;
return NSCAP_REINTERPRET_CAST(T**, &mRawPtr);
#endif
}
};
template <class T>
class nsGetterAddRefs
/*
...
This class is designed to be used for anonymous temporary objects in the
argument list of calls that return COM interface pointers, e.g.,
nsCOMPtr<IFoo> fooP;
...->QueryInterface(iid, nsGetterAddRefs<IFoo>(fooP))
...->QueryInterface(iid, getter_AddRefs(fooP))
When initialized with a |nsCOMPtr|, as in the example above, it returns
a |void**| (or |T**| if needed) that the outer call (|QueryInterface| in this
case) can fill in.
*/
{
public:
explicit
nsGetterAddRefs( nsCOMPtr<T>& aSmartPtr )
: mTargetSmartPtr(aSmartPtr)
{
// nothing else to do
}
operator void**()
{
// NS_PRECONDITION(mTargetSmartPtr != 0, "getter_AddRefs into no destination");
return NSCAP_REINTERPRET_CAST(void**, mTargetSmartPtr.StartAssignment());
}
T*&
operator*()
{
// NS_PRECONDITION(mTargetSmartPtr != 0, "getter_AddRefs into no destination");
return *(mTargetSmartPtr.StartAssignment());
}
operator T**()
{
// NS_PRECONDITION(mTargetSmartPtr != 0, "getter_AddRefs into no destination");
return mTargetSmartPtr.StartAssignment();
}
private:
nsCOMPtr<T>& mTargetSmartPtr;
};
template <class T>
inline
nsGetterAddRefs<T>
getter_AddRefs( nsCOMPtr<T>& aSmartPtr )
/*
Used around a |nsCOMPtr| when
...makes the class |nsGetterAddRefs<T>| invisible.
*/
{
return nsGetterAddRefs<T>(aSmartPtr);
}
#endif // !defined(nsCOMPtr_h___)

View File

@@ -1,178 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsDebug.h"
#include "prlog.h"
#include "prinit.h"
#if defined(XP_UNIX)
/* for abort() */
#include <stdlib.h>
#endif
#if defined(_WIN32)
#include <windows.h>
#elif defined(XP_MAC)
#define TEMP_MAC_HACK
//------------------------
#ifdef TEMP_MAC_HACK
#include <MacTypes.h>
#include <Processes.h>
// TEMPORARY UNTIL WE HAVE MACINTOSH ENVIRONMENT VARIABLES THAT CAN TURN ON
// LOGGING ON MACINTOSH
// At this moment, NSPR's logging is a no-op on Macintosh.
#include <stdarg.h>
#include <stdio.h>
#undef PR_LOG
#define PR_LOG(module,level,args) dprintf args
static void dprintf(const char *format, ...)
{
va_list ap;
Str255 buffer;
va_start(ap, format);
buffer[0] = vsnprintf((char *)buffer + 1, sizeof(buffer) - 1, format, ap);
va_end(ap);
DebugStr(buffer);
}
#endif // TEMP_MAC_HACK
//------------------------
#elif defined(XP_UNIX)
#include<stdlib.h>
#endif
/**
* Implementation of the nsDebug methods. Note that this code is
* always compiled in, in case some other module that uses it is
* compiled with debugging even if this library is not.
*/
static PRLogModuleInfo* gDebugLog;
static void InitLog(void)
{
if (0 == gDebugLog) {
gDebugLog = PR_NewLogModule("nsDebug");
gDebugLog->level = PR_LOG_DEBUG;
}
}
NS_COM void nsDebug::Abort(const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("Abort: at file %s, line %d", aFile, aLine));
PR_LogFlush();
#if defined(_WIN32)
long* __p = (long*) 0x7;
*__p = 0x7;
#elif defined(XP_MAC)
ExitToShell();
#elif defined(XP_UNIX)
PR_Abort();
#endif
}
NS_COM void nsDebug::Break(const char* aFile, PRIntn aLine)
{
#ifndef TEMP_MAC_HACK
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("Break: at file %s, line %d", aFile, aLine));
PR_LogFlush();
//XXX this works on win32 only for now. For all the other platforms call Abort
#if defined(_WIN32)
::DebugBreak();
#else
Abort(aFile, aLine);
#endif
#endif // TEMP_MAC_HACK
}
NS_COM void nsDebug::PreCondition(const char* aStr, const char* aExpr,
const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("PreCondition: \"%s\" (%s) at file %s, line %d", aStr, aExpr,
aFile, aLine));
Break(aFile, aLine);
}
NS_COM void nsDebug::PostCondition(const char* aStr, const char* aExpr,
const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("PostCondition: \"%s\" (%s) at file %s, line %d", aStr, aExpr,
aFile, aLine));
Break(aFile, aLine);
}
NS_COM void nsDebug::Assertion(const char* aStr, const char* aExpr,
const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("Assertion: \"%s\" (%s) at file %s, line %d", aStr, aExpr,
aFile, aLine));
Break(aFile, aLine);
}
NS_COM void nsDebug::NotYetImplemented(const char* aMessage,
const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("NotYetImplemented: \"%s\" at file %s, line %d", aMessage,
aFile, aLine));
Break(aFile, aLine);
}
NS_COM void nsDebug::NotReached(const char* aMessage,
const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("NotReached: \"%s\" at file %s, line %d", aMessage, aFile, aLine));
Break(aFile, aLine);
}
NS_COM void nsDebug::Error(const char* aMessage,
const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("Error: \"%s\" at file %s, line %d", aMessage, aFile, aLine));
Break(aFile, aLine);
}
NS_COM void nsDebug::Warning(const char* aMessage,
const char* aFile, PRIntn aLine)
{
InitLog();
PR_LOG(gDebugLog, PR_LOG_ERROR,
("Warning: \"%s\" at file %s, line %d", aMessage, aFile, aLine));
PR_LogFlush();
}

View File

@@ -1,183 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsDebug_h___
#define nsDebug_h___
#include "nsCom.h"
#include "prtypes.h"
#ifdef DEBUG
#define NS_DEBUG
#endif
/**
* Namespace for debugging methods. Note that your code must use the
* macros defined later in this file so that the debug code can be
* conditionally compiled out.
*/
/* in case this is included by a C file */
#ifdef __cplusplus
class nsDebug {
public:
// XXX add in log controls here
// XXX probably want printf type arguments
/**
* Abort the executing program. This works on all architectures.
*/
static NS_COM void Abort(const char* aFile, PRIntn aLine);
/**
* Break the executing program into the debugger.
*/
static NS_COM void Break(const char* aFile, PRIntn aLine);
/**
* Log a pre-condition message to the debug log
*/
static NS_COM void PreCondition(const char* aStr, const char* aExpr,
const char* aFile, PRIntn aLine);
/**
* Log a post-condition message to the debug log
*/
static NS_COM void PostCondition(const char* aStr, const char* aExpr,
const char* aFile, PRIntn aLine);
/**
* Log an assertion message to the debug log
*/
static NS_COM void Assertion(const char* aStr, const char* aExpr,
const char* aFile, PRIntn aLine);
/**
* Log a not-yet-implemented message to the debug log
*/
static NS_COM void NotYetImplemented(const char* aMessage,
const char* aFile, PRIntn aLine);
/**
* Log a not-reached message to the debug log
*/
static NS_COM void NotReached(const char* aMessage,
const char* aFile, PRIntn aLine);
/**
* Log an error message to the debug log. This call returns.
*/
static NS_COM void Error(const char* aMessage,
const char* aFile, PRIntn aLine);
/**
* Log a warning message to the debug log.
*/
static NS_COM void Warning(const char* aMessage,
const char* aFile, PRIntn aLine);
};
#ifdef NS_DEBUG
/**
* Test a precondition for truth. If the expression is not true then
* trigger a program failure.
*/
#define NS_PRECONDITION(expr,str) \
if (!(expr)) \
nsDebug::PreCondition(str, #expr, __FILE__, __LINE__)
/**
* Test an assertion for truth. If the expression is not true then
* trigger a program failure.
*/
#define NS_ASSERTION(expr,str) \
if (!(expr)) \
nsDebug::Assertion(str, #expr, __FILE__, __LINE__)
/**
* Test an assertion for truth. If the expression is not true then
* trigger a program failure. The expression will still be
* executed in release mode.
*/
#define NS_VERIFY(expr,str) \
if (!(expr)) \
nsDebug::Assertion(str, #expr, __FILE__, __LINE__)
/**
* Test a post-condition for truth. If the expression is not true then
* trigger a program failure.
*/
#define NS_POSTCONDITION(expr,str) \
if (!(expr)) \
nsDebug::PostCondition(str, #expr, __FILE__, __LINE__)
/**
* This macros triggers a program failure if executed. It indicates that
* an attempt was made to execute some unimplimented functionality.
*/
#define NS_NOTYETIMPLEMENTED(str) \
nsDebug::NotYetImplemented(str, __FILE__, __LINE__)
/**
* This macros triggers a program failure if executed. It indicates that
* an attempt was made to execute some unimplimented functionality.
*/
#define NS_NOTREACHED(str) \
nsDebug::NotReached(str, __FILE__, __LINE__)
/**
* Log an error message.
*/
#define NS_ERROR(str) \
nsDebug::Error(str, __FILE__, __LINE__)
/**
* Log a warning message.
*/
#define NS_WARNING(str) \
nsDebug::Warning(str, __FILE__, __LINE__)
/**
* Trigger an abort
*/
#define NS_ABORT() \
nsDebug::Abort(__FILE__, __LINE__)
/**
* Cause a break
*/
#define NS_BREAK() \
nsDebug::Break(__FILE__, __LINE__)
#else /* NS_DEBUG */
#define NS_PRECONDITION(expr,str) {}
#define NS_ASSERTION(expr,str) {}
#define NS_VERIFY(expr,str) expr
#define NS_POSTCONDITION(expr,str) {}
#define NS_NOTYETIMPLEMENTED(str) {}
#define NS_NOTREACHED(str) {}
#define NS_ERROR(str) {}
#define NS_WARNING(str) {}
#define NS_ABORT() {}
#define NS_BREAK() {}
#endif /* ! NS_DEBUG */
#endif /* __cplusplus */
#endif /* nsDebug_h___ */

View File

@@ -1,88 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsGenericFactory.h"
nsGenericFactory::nsGenericFactory(ConstructorProcPtr constructor)
: mConstructor(constructor), mDestructor(NULL)
{
NS_INIT_ISUPPORTS();
}
nsGenericFactory::~nsGenericFactory()
{
if (mDestructor != NULL)
(*mDestructor) ();
}
NS_METHOD nsGenericFactory::QueryInterface(const nsIID& aIID, void** aInstancePtr)
{
if (NULL == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(nsIFactory::GetIID()) ||
aIID.Equals(nsIGenericFactory::GetIID()) ||
aIID.Equals(nsISupports::GetIID())) {
*aInstancePtr = (void*) this;
AddRef();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMPL_ADDREF(nsGenericFactory)
NS_IMPL_RELEASE(nsGenericFactory)
NS_IMETHODIMP nsGenericFactory::CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
return mConstructor(aOuter, aIID, aResult);
}
NS_IMETHODIMP nsGenericFactory::LockFactory(PRBool aLock)
{
return NS_OK;
}
NS_IMETHODIMP nsGenericFactory::SetConstructor(ConstructorProcPtr constructor)
{
mConstructor = constructor;
return NS_OK;
}
NS_IMETHODIMP nsGenericFactory::SetDestructor(DestructorProcPtr destructor)
{
mDestructor = destructor;
return NS_OK;
}
NS_METHOD nsGenericFactory::Create(nsISupports* outer, const nsIID& aIID, void* *aInstancePtr)
{
// sorry, aggregation not spoken here.
nsresult res = NS_ERROR_NO_AGGREGATION;
if (outer == NULL) {
nsGenericFactory* factory = new nsGenericFactory;
if (factory != NULL) {
res = factory->QueryInterface(aIID, aInstancePtr);
if (res != NS_OK)
delete factory;
} else {
res = NS_ERROR_OUT_OF_MEMORY;
}
}
return res;
}

View File

@@ -1,60 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsGenericFactory_h___
#define nsGenericFactory_h___
#include "nsIGenericFactory.h"
/**
* Most factories follow this simple pattern, so why not just use a function pointer
* for most creation operations?
*/
class nsGenericFactory : public nsIGenericFactory {
public:
static const nsCID& CID() { static nsCID cid = NS_GENERICFACTORY_CID; return cid; }
nsGenericFactory(ConstructorProcPtr constructor = NULL);
virtual ~nsGenericFactory();
NS_DECL_ISUPPORTS
NS_IMETHOD CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult);
NS_IMETHOD LockFactory(PRBool aLock);
/**
* Establishes the generic factory's constructor function, which will be called
* by CreateInstance.
*/
NS_IMETHOD SetConstructor(ConstructorProcPtr constructor);
/**
* Establishes the generic factory's destructor function, which will be called
* whe the generic factory is deleted. This is used to notify the DLL that
* an instance of one of its generic factories is going away.
*/
NS_IMETHOD SetDestructor(DestructorProcPtr destructor);
static NS_METHOD Create(nsISupports* outer, const nsIID& aIID, void* *aInstancePtr);
private:
ConstructorProcPtr mConstructor;
DestructorProcPtr mDestructor;
};
#endif /* nsGenericFactory_h___ */

View File

@@ -1,57 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIGenericFactory_h___
#define nsIGenericFactory_h___
#include "nsIFactory.h"
// {3bc97f01-ccdf-11d2-bab8-b548654461fc}
#define NS_GENERICFACTORY_CID \
{ 0x3bc97f01, 0xccdf, 0x11d2, { 0xba, 0xb8, 0xb5, 0x48, 0x65, 0x44, 0x61, 0xfc } }
// {3bc97f00-ccdf-11d2-bab8-b548654461fc}
#define NS_IGENERICFACTORY_IID \
{ 0x3bc97f00, 0xccdf, 0x11d2, { 0xba, 0xb8, 0xb5, 0x48, 0x65, 0x44, 0x61, 0xfc } }
/**
* Provides a Generic nsIFactory implementation that can be used by
* DLLs with very simple factory needs.
*/
class nsIGenericFactory : public nsIFactory {
public:
static const nsIID& GetIID() { static nsIID iid = NS_IGENERICFACTORY_IID; return iid; }
typedef NS_CALLBACK(ConstructorProcPtr) (nsISupports *aOuter, REFNSIID aIID, void **aResult);
typedef NS_CALLBACK(DestructorProcPtr) (void);
/**
* Establishes the generic factory's constructor function, which will be called
* by CreateInstance.
*/
NS_IMETHOD SetConstructor(ConstructorProcPtr constructor) = 0;
/**
* Establishes the generic factory's destructor function, which will be called
* whe the generic factory is deleted. This is used to notify the DLL that
* an instance of one of its generic factories is going away.
*/
NS_IMETHOD SetDestructor(DestructorProcPtr destructor) = 0;
};
#endif /* nsIGenericFactory_h___ */

View File

@@ -1,557 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef __nsISupportsUtils_h
#define __nsISupportsUtils_h
/**
* A macro to build the static const IID accessor method
*/
#define NS_DEFINE_STATIC_IID_ACCESSOR(the_iid) \
static const nsIID& GetIID() {static nsIID iid = the_iid; return iid;}
/**
* A macro to build the static const CID accessor method
*/
#define NS_DEFINE_STATIC_CID_ACCESSOR(the_cid) \
static const nsID& GetCID() {static nsID cid = the_cid; return cid;}
/**
* Some convenience macros for implementing AddRef and Release
*/
/**
* Declare the reference count variable and the implementations of the
* AddRef and QueryInterface methods.
*/
#define NS_DECL_ISUPPORTS \
public: \
NS_IMETHOD QueryInterface(REFNSIID aIID, \
void** aInstancePtr); \
NS_IMETHOD_(nsrefcnt) AddRef(void); \
NS_IMETHOD_(nsrefcnt) Release(void); \
protected: \
nsrefcnt mRefCnt; \
public:
#define NS_DECL_ISUPPORTS_EXPORTED \
public: \
NS_EXPORT NS_IMETHOD QueryInterface(REFNSIID aIID, \
void** aInstancePtr); \
NS_EXPORT NS_IMETHOD_(nsrefcnt) AddRef(void); \
NS_EXPORT NS_IMETHOD_(nsrefcnt) Release(void); \
protected: \
nsrefcnt mRefCnt; \
public:
////////////////////////////////////////////////////////////////////////////////
/**
* Initialize the reference count variable. Add this to each and every
* constructor you implement.
*/
#define NS_INIT_REFCNT() mRefCnt = 0
#define NS_INIT_ISUPPORTS() NS_INIT_REFCNT() // what it should have been called in the first place
/**
* Use this macro to implement the AddRef method for a given <i>_class</i>
* @param _class The name of the class implementing the method
*/
#define NS_IMPL_ADDREF(_class) \
NS_IMETHODIMP_(nsrefcnt) _class::AddRef(void) \
{ \
NS_PRECONDITION(PRInt32(mRefCnt) >= 0, "illegal refcnt"); \
return ++mRefCnt; \
}
/**
* Use this macro to implement the Release method for a given <i>_class</i>
* @param _class The name of the class implementing the method
*/
#define NS_IMPL_RELEASE(_class) \
NS_IMETHODIMP_(nsrefcnt) _class::Release(void) \
{ \
NS_PRECONDITION(0 != mRefCnt, "dup release"); \
if (--mRefCnt == 0) { \
NS_DELETEXPCOM(this); \
return 0; \
} \
return mRefCnt; \
}
////////////////////////////////////////////////////////////////////////////////
/*
* Some convenience macros for implementing QueryInterface
*/
/**
* This implements query interface with two assumptions: First, the
* class in question implements nsISupports and it's own interface and
* nothing else. Second, the implementation of the class's primary
* inheritance chain leads to it's own interface.
*
* @param _class The name of the class implementing the method
* @param _classiiddef The name of the #define symbol that defines the IID
* for the class (e.g. NS_ISUPPORTS_IID)
*/
#define NS_IMPL_QUERY_INTERFACE(_class,_classiiddef) \
NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \
{ \
if (NULL == aInstancePtr) { \
return NS_ERROR_NULL_POINTER; \
} \
\
*aInstancePtr = NULL; \
\
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); \
static NS_DEFINE_IID(kClassIID, _classiiddef); \
if (aIID.Equals(kClassIID)) { \
*aInstancePtr = (void*) this; \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
if (aIID.Equals(kISupportsIID)) { \
*aInstancePtr = (void*) ((nsISupports*)this); \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
return NS_NOINTERFACE; \
}
/**
* Convenience macro for implementing all nsISupports methods for
* a simple class.
* @param _class The name of the class implementing the method
* @param _classiiddef The name of the #define symbol that defines the IID
* for the class (e.g. NS_ISUPPORTS_IID)
*/
#define NS_IMPL_ISUPPORTS(_class,_classiiddef) \
NS_IMPL_ADDREF(_class) \
NS_IMPL_RELEASE(_class) \
NS_IMPL_QUERY_INTERFACE(_class,_classiiddef)
////////////////////////////////////////////////////////////////////////////////
/**
* Declare that you're going to inherit from something that already
* implements nsISupports, but also implements an additional interface, thus
* causing an ambiguity. In this case you don't need another mRefCnt, you
* just need to forward the definitions to the appropriate superclass. E.g.
*
* class Bar : public Foo, public nsIBar { // both provide nsISupports
* public:
* NS_DECL_ISUPPORTS_INHERITED
* ...other nsIBar and Bar methods...
* };
*/
#define NS_DECL_ISUPPORTS_INHERITED \
public: \
NS_IMETHOD QueryInterface(REFNSIID aIID, \
void** aInstancePtr); \
NS_IMETHOD_(nsrefcnt) AddRef(void); \
NS_IMETHOD_(nsrefcnt) Release(void); \
/**
* These macros can be used in conjunction with NS_DECL_ISUPPORTS_INHERITED
* to implement the nsISupports methods, forwarding the invocations to a
* superclass that already implements nsISupports.
*
* Note that I didn't make these inlined because they're virtual methods.
*/
#define NS_IMPL_ADDREF_INHERITED(Class, Super) \
NS_IMETHODIMP_(nsrefcnt) Class::AddRef(void) \
{ \
return Super::AddRef(); \
} \
#define NS_IMPL_RELEASE_INHERITED(Class, Super) \
NS_IMETHODIMP_(nsrefcnt) Class::Release(void) \
{ \
return Super::Release(); \
} \
#define NS_IMPL_QUERY_INTERFACE_INHERITED(Class, Super, AdditionalInterface) \
NS_IMETHODIMP Class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \
{ \
if (!aInstancePtr) return NS_ERROR_NULL_POINTER; \
if (aIID.Equals(AdditionalInterface::GetIID())) { \
*aInstancePtr = NS_STATIC_CAST(AdditionalInterface*, this); \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
return Super::QueryInterface(aIID, aInstancePtr); \
} \
#define NS_IMPL_ISUPPORTS_INHERITED(Class, Super, AdditionalInterface) \
NS_IMPL_QUERY_INTERFACE_INHERITED(Class, Super, AdditionalInterface) \
NS_IMPL_ADDREF_INHERITED(Class, Super) \
NS_IMPL_RELEASE_INHERITED(Class, Super) \
////////////////////////////////////////////////////////////////////////////////
/**
*
* Threadsafe implementations of the ISupports convenience macros
*
*/
/**
* IID for the nsIsThreadsafe interface
* {88210890-47a6-11d2-bec3-00805f8a66dc}
*
* This interface is *only* used for debugging purposes to determine if
* a given component is threadsafe.
*/
#define NS_ISTHREADSAFE_IID \
{ 0x88210890, 0x47a6, 0x11d2, \
{0xbe, 0xc3, 0x00, 0x80, 0x5f, 0x8a, 0x66, 0xdc} }
#if defined(NS_MT_SUPPORTED)
#define NS_LOCK_INSTANCE() \
PR_CEnterMonitor((void*)this)
#define NS_UNLOCK_INSTANCE() \
PR_CExitMonitor((void*)this)
/**
* Use this macro to implement the AddRef method for a given <i>_class</i>
* @param _class The name of the class implementing the method
*/
#if defined(XP_PC)
#define NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMETHODIMP_(nsrefcnt) _class::AddRef(void) \
{ \
NS_PRECONDITION(PRInt32(mRefCnt) >= 0, "illegal refcnt"); \
return InterlockedIncrement((LONG*)&mRefCnt); \
}
#else /* ! XP_PC */
#define NS_IMPL_THREADSAFE_ADDREF(_class) \
nsrefcnt _class::AddRef(void) \
{ \
nsrefcnt count; \
NS_LOCK_INSTANCE(); \
NS_PRECONDITION(PRInt32(mRefCnt) >= 0, "illegal refcnt"); \
count = ++mRefCnt; \
NS_UNLOCK_INSTANCE(); \
return count; \
}
#endif /* ! XP_PC */
/**
* Use this macro to implement the Release method for a given <i>_class</i>
* @param _class The name of the class implementing the method
*/
#if defined(XP_PC)
#define NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMETHODIMP_(nsrefcnt) _class::Release(void) \
{ \
NS_PRECONDITION(0 != mRefCnt, "dup release"); \
if (0 == InterlockedDecrement((LONG*)&mRefCnt)) { \
NS_DELETEXPCOM(this); \
return 0; \
} \
return mRefCnt; /* Not threadsafe but who cares. */ \
}
#else /* ! XP_PC */
#define NS_IMPL_THREADSAFE_RELEASE(_class) \
nsrefcnt _class::Release(void) \
{ \
nsrefcnt count; \
NS_PRECONDITION(0 != mRefCnt, "dup release"); \
NS_LOCK_INSTANCE(); \
count = --mRefCnt; \
NS_UNLOCK_INSTANCE(); \
if (0 == count) { \
NS_DELETEXPCOM(this); \
return 0; \
} \
return count; \
}
#endif /* ! XP_PC */
////////////////////////////////////////////////////////////////////////////////
/*
* Some convenience macros for implementing QueryInterface
*/
/**
* This implements query interface with two assumptions: First, the
* class in question implements nsISupports and it's own interface and
* nothing else. Second, the implementation of the class's primary
* inheritance chain leads to it's own interface.
*
* @param _class The name of the class implementing the method
* @param _classiiddef The name of the #define symbol that defines the IID
* for the class (e.g. NS_ISUPPORTS_IID)
*/
#if defined(NS_DEBUG)
#define NS_VERIFY_THREADSAFE_INTERFACE(_iface) \
if (NULL != (_iface)) { \
nsISupports* tmp; \
static NS_DEFINE_IID(kIsThreadsafeIID, NS_ISTHREADSAFE_IID); \
NS_PRECONDITION((NS_OK == _iface->QueryInterface(kIsThreadsafeIID, \
(void**)&tmp)), \
"Interface is not threadsafe"); \
}
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE(_class,_classiiddef) \
NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \
{ \
if (NULL == aInstancePtr) { \
return NS_ERROR_NULL_POINTER; \
} \
\
*aInstancePtr = NULL; \
\
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); \
static NS_DEFINE_IID(kIsThreadsafeIID, NS_ISTHREADSAFE_IID); \
static NS_DEFINE_IID(kClassIID, _classiiddef); \
if (aIID.Equals(kClassIID)) { \
*aInstancePtr = (void*) this; \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
if (aIID.Equals(kISupportsIID)) { \
*aInstancePtr = (void*) ((nsISupports*)this); \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
if (aIID.Equals(kIsThreadsafeIID)) { \
return NS_OK; \
} \
return NS_NOINTERFACE; \
}
#else /* !NS_DEBUG */
#define NS_VERIFY_THREADSAFE_INTERFACE(_iface)
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE(_class,_classiiddef) \
NS_IMPL_QUERY_INTERFACE(_class, _classiiddef)
#endif /* !NS_DEBUG */
/**
* Convenience macro for implementing all nsISupports methods for
* a simple class.
* @param _class The name of the class implementing the method
* @param _classiiddef The name of the #define symbol that defines the IID
* for the class (e.g. NS_ISUPPORTS_IID)
*/
#define NS_IMPL_THREADSAFE_ISUPPORTS(_class,_classiiddef) \
NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMPL_THREADSAFE_QUERY_INTERFACE(_class,_classiiddef)
#else /* !NS_MT_SUPPORTED */
#define NS_LOCK_INSTANCE()
#define NS_UNLOCK_INSTANCE()
#define NS_IMPL_THREADSAFE_ADDREF(_class) NS_IMPL_ADDREF(_class)
#define NS_IMPL_THREADSAFE_RELEASE(_class) NS_IMPL_RELEASE(_class)
#define NS_VERIFY_THREADSAFE_INTERFACE(_iface)
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE(_class,_classiiddef) \
NS_IMPL_QUERY_INTERFACE(_class, _classiiddef)
#define NS_IMPL_THREADSAFE_ISUPPORTS(_class,_classiiddef) \
NS_IMPL_ADDREF(_class) \
NS_IMPL_RELEASE(_class) \
NS_IMPL_QUERY_INTERFACE(_class,_classiiddef)
#endif /* !NS_MT_SUPPORTED */
////////////////////////////////////////////////////////////////////////////////
// Debugging Macros
////////////////////////////////////////////////////////////////////////////////
/**
* Macro for instantiating a new object that implements nsISupports.
* Use this in your factory methods to allow for refcnt tracing.
* Note that you can only use this if you adhere to the no arguments
* constructor com policy (which you really should!).
* @param _result Where the new instance pointer is stored
* @param _type The type of object to call "new" with.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_NEWXPCOM(_result,_type) \
PR_BEGIN_MACRO \
_result = new _type(); \
nsTraceRefcnt::Create(_result, #_type, __FILE__, __LINE__); \
PR_END_MACRO
#else
#define NS_NEWXPCOM(_result,_type) \
_result = new _type()
#endif
/**
* Macro for deleting an object that implements nsISupports.
* Use this in your Release methods to allow for refcnt tracing.
* @param _ptr The object to delete.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_DELETEXPCOM(_ptr) \
PR_BEGIN_MACRO \
nsTraceRefcnt::Destroy((_ptr), __FILE__, __LINE__); \
delete (_ptr); \
PR_END_MACRO
#else
#define NS_DELETEXPCOM(_ptr) \
delete (_ptr)
#endif
/**
* Macro for adding a reference to an interface.
* @param _ptr The interface pointer.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_ADDREF(_ptr) \
((nsrefcnt) nsTraceRefcnt::AddRef((_ptr), (_ptr)->AddRef(), \
__FILE__, __LINE__))
#else
#define NS_ADDREF(_ptr) \
(_ptr)->AddRef()
#endif
/**
* Macro for adding a reference to this. This macro should be used
* because NS_ADDREF (when tracing) may require an ambiguous cast
* from the pointers primary type to nsISupports. This macro sidesteps
* that entire problem.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_ADDREF_THIS() \
((nsrefcnt) nsTraceRefcnt::AddRef(this, AddRef(), __FILE__, __LINE__))
#else
#define NS_ADDREF_THIS() \
AddRef()
#endif
/**
* Macro for adding a reference to an interface that checks for NULL.
* @param _ptr The interface pointer.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_IF_ADDREF(_ptr) \
((0 != (_ptr)) \
? ((nsrefcnt) nsTraceRefcnt::AddRef((_ptr), (_ptr)->AddRef(), __FILE__, \
__LINE__)) \
: 0)
#else
#define NS_IF_ADDREF(_ptr) \
((0 != (_ptr)) ? (_ptr)->AddRef() : 0)
#endif
/**
* Macro for releasing a reference to an interface.
*
* Note that when MOZ_TRACE_XPCOM_REFCNT is defined that the release will
* be done before the trace message is logged. If the reference count
* goes to zero and implementation of Release logs a message, the two
* messages will be logged out of order.
*
* @param _ptr The interface pointer.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_RELEASE(_ptr) \
PR_BEGIN_MACRO \
nsTraceRefcnt::Release((_ptr), (_ptr)->Release(), __FILE__, __LINE__); \
(_ptr) = 0; \
PR_END_MACRO
#else
#define NS_RELEASE(_ptr) \
PR_BEGIN_MACRO \
(_ptr)->Release(); \
(_ptr) = 0; \
PR_END_MACRO
#endif
/**
* Macro for releasing a reference to an interface, except that this
* macro preserves the return value from the underlying Release call.
* The interface pointer argument will only be NULLed if the reference count
* goes to zero.
*
* Note that when MOZ_TRACE_XPCOM_REFCNT is defined that the release will
* be done before the trace message is logged. If the reference count
* goes to zero and implementation of Release logs a message, the two
* messages will be logged out of order.
*
* @param _ptr The interface pointer.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_RELEASE2(_ptr, _result) \
PR_BEGIN_MACRO \
_result = ((nsrefcnt) nsTraceRefcnt::Release((_ptr), (_ptr)->Release(), \
__FILE__, __LINE__)); \
if (0 == (_result)) (_ptr) = 0; \
PR_END_MACRO
#else
#define NS_RELEASE2(_ptr, _result) \
PR_BEGIN_MACRO \
_result = (_ptr)->Release(); \
if (0 == (_result)) (_ptr) = 0; \
PR_END_MACRO
#endif
/**
* Macro for releasing a reference to an interface that checks for NULL;
*
* Note that when MOZ_TRACE_XPCOM_REFCNT is defined that the release will
* be done before the trace message is logged. If the reference count
* goes to zero and implementation of Release logs a message, the two
* messages will be logged out of order.
*
* @param _ptr The interface pointer.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_IF_RELEASE(_ptr) \
PR_BEGIN_MACRO \
((0 != (_ptr)) \
? ((nsrefcnt) nsTraceRefcnt::Release((_ptr), (_ptr)->Release(), \
__FILE__, __LINE__)) \
: 0); \
(_ptr) = 0; \
PR_END_MACRO
#else
#define NS_IF_RELEASE(_ptr) \
PR_BEGIN_MACRO \
((0 != (_ptr)) ? (_ptr)->Release() : 0); \
(_ptr) = 0; \
PR_END_MACRO
#endif
////////////////////////////////////////////////////////////////////////////////
#endif /* __nsISupportsUtils_h */

View File

@@ -1,36 +0,0 @@
#
# This is a list of local files which get copied to the mozilla:dist directory
#
nsCOMPtr.h
nsCom.h
nsAgg.h
nsDebug.h
nsEnumeratorUtils.h
nsError.h
nsHashtable.h
nsID.h
nsIID.h
nsIFactory.h
nsISimpleEnumerator.h
nsISupports.h
nsISupportsUtils.h
nsIPtr.h
nsIRegistry.h
nsIServiceManager.h
nsIComponentManager.h
nsISupportsArray.h
nsRepository.h
nsIEnumerator.h
nsVector.h
nsMacRepository.h
nsTraceRefcnt.h
plvector.h
nsXPComFactory.h
nsXPComCIID.h
nsXPIDLString.h
nsIEventQueueService.h
nsICollection.h
nsIAllocator.h
nsIGenericFactory.h
nsrootidl.h

View File

@@ -1,59 +0,0 @@
#!nmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
IGNORE_MANIFEST=1
DEPTH=..\..
EXPORTS = \
nsCOMPtr.h \
nsAgg.h \
nsCom.h \
nsDebug.h \
nsEnumeratorUtils.h \
nsError.h \
nsHashtable.h \
nsICollection.h \
nsID.h \
nsIFactory.h \
nsIID.h \
nsISimpleEnumerator.h \
nsISupports.h \
nsISupportsUtils.h \
nsIPtr.h \
nsIServiceManager.h \
nsISupportsArray.h \
nsIComponentManager.h \
nsRepository.h \
nsProxyEvent.h \
nsIEnumerator.h \
nsTraceRefcnt.h \
nsVector.h \
plvector.h \
nsXPComFactory.h \
nsXPComCIID.h \
nsXPIDLString.h \
nsIEventQueueService.h \
nsIAllocator.h \
nsIRegistry.h \
nsIGenericFactory.h \
nsrootidl.h \
$(NULL)
MODULE = xpcom
include <$(DEPTH)\config\rules.mak>

View File

@@ -1,168 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef __mozIClassRegistry_h
#define __mozIClassRegistry_h
#include "nsIComponentManager.h"
/*---------------------------- mozIClassRegistry -------------------------------
| This interface provides access to a mapping from mnemonic interface names |
| to shared libraries where implementations of those interfaces can be located.|
| |
| This interface is designed to provide two things: |
| 1. A means of less static binding between clients and the code that |
| implements the XPCOM interfaces those clients use. This accomplished |
| by the mapping from interface names to nsCID (and the shared libraries |
| that implement those classes). |
| 2. A means of dynamically changing the mapping from interface name to |
| implementation. The canonical example of this is to switch to a |
| "native" widget set versus an "XP" (implemented using gfx) set. |
| |
| The first goal is achieved by storing (in a "Netscape Registry" file, see |
| nsReg.h) information that maps interface/class "names" to information about |
| where to load implementations of those interfaces. That information |
| includes the interface ID, class ID (of the implementation class), and the |
| name of the shared library that contains the implementation. |
| |
| The class registry object will register those classes with the "repository" |
| (see nsComponentManager.h) the first time a request is made to create an |
| instance. Subsequent requests will simply be forwarded to the repository |
| after the appropriate interface and class IDs are determined. |
| |
| The second goal is accomplished by permitting the mnemonic interface |
| "names" to be "overloaded", that is, mapped to distinct implementations |
| by separate class registry objects. Further, class registries can be |
| cascaded: they can be chained together so that when a name is not |
| recognized by one registry, it can pass the request to the next registry in |
| the chain. Users can control resolution by making the request of a |
| registry further up/down the chain. |
| |
| For example, consider the case of "native" vs. "gfx" widgets. This might |
| be structured by a class registry arrangment like this: |
| |
| nativeWidgetRegistry baseWidgetRegistry |
| +----------+ +----------+ |
| | ----+---------------->| | |
| +----------+ +----------+ |
| |toolbar| -+-----+ |toolbar| -+-----+ |
| +----------+ | +----------+ | |
| |button | -+-----+ |button | -+-----+ |
| +----------+ | +----------+ | |
| V V |
| +-----------------+ +-----------------+ |
| | native.dll | | base.dll | |
| +-----------------+ +-----------------+ |
| |
| If a specialized implementation of widgets is present (e.g., native.dll) |
| then a corresponding class registry object is created and added to the |
| head of the registry chain. Object creation requests (normal ones) are |
| resolved to the native implementation. If such a library is not present, |
| then the resolution is to the base implementation. If objects of the |
| base implementation are required, then creation requests can be directed |
| directly to the baseWidgetRegistry object, rather than the head of the |
| registry chain. |
| |
| It is intended that there be a single instance of this interface, accessed |
| via the Service Manager (see nsServiceManager.h). |
------------------------------------------------------------------------------*/
struct mozIClassRegistry : public ISupports {
/*------------------------------ CreateInstance ----------------------------
| Create an instance of the requested class/interface. The interface |
| ID is required to specify how the result will be treated. The class |
| named by aName must support this interface. The result is placed in |
| ncomment aResult (NULL if the request fails). "start" specifies the |
| registry at which the search for an implementation of the named |
| interface should start. It defaults to 0 (indicating to start at the |
| head of the registry chain). |
--------------------------------------------------------------------------*/
NS_IMETHOD CreateInstance( const char *anInterfaceName,
const nsIID &aIID,
void* *aResult,
const char *start = 0 ) = 0;
/*--------------------------- CreateEnumerator -----------------------------
| Creates an nsIEnumerator interface object that can be used to examine |
| the contents of the registry. "pattern" specifies either "*" or the |
| name of a specific interface that you want to query. "result" will |
| be set to point to a new object (which will be freed on the last call |
| to its Release() member). See nsIEnumerator.h for details on how to |
| use the returned interface pointer. |
--------------------------------------------------------------------------*/
NS_IMETHOD CreateEnumerator( const char *pattern,
nsIEnumerator* *result ) = 0;
}; // mozIClassRegistry
/*-------------------------- mozIClassRegistryEntry ----------------------------
| Objects of this class represent the individual elements that comprise a |
| mozIClassRegistry interface. You obtain such objects by applying the |
| CreateEnumerator member function to the class registry and then applying |
| the CurrentItem member function to the resulting nsIEnumerator interface. |
| |
| Each entry can be queried for the following information: |
| o sub-registry name |
| o interface name |
| o Class ID |
| o IIDs implemented |
| |
| The information obtained from the entry (specifically, the const char* |
| strings) remains valid for the life of the entry (i.e., until you |
| Release() it). |
| |
| Here is an example of code that uses this interface to dump the contents |
| of a mozIClassRegistry: |
| |
| mozIClassRegistry *reg = nsServiceManager::GetService( kIDRegistry ); |
| nsIEnumerator *enum; |
| reg->CreateEnumerator( "*", &enum ); |
| for ( enum->First(); !enum->IsDone(); enum->Next(); ) { |
| mozIClassRegistryEntry *entry; |
| enum->CurrentItem( &entry ); |
| const char *subreg; |
| const char *name; |
| nsCID cid; |
| int numIIDs; |
| entry->GetSubRegistryName( &subreg ); |
| entry->GetInterfaceName( &name ); |
| entry->GetClassID( &cid ); |
| entry->GetNumIIDs( &numIIDs ); |
| cout << subreg << "/" << name << " = " << cid.ToString() << endl; |
| for ( int i = 0; i < numIIDs; i++ ) { |
| nsIID iid; |
| entry->GetInterfaceID( i, &iid ); |
| cout << "/tIID[" << i << "] = " << iid.ToString() << endl; |
| } |
| entry->Release(); |
| } |
| enum->Release(); |
------------------------------------------------------------------------------*/
struct mozIClassRegistryEntry : public nsISupports {
NS_IMETHOD GetSubRegistryName( const char **result ) = 0;
NS_IMETHOD GetInterfaceName( const char **result ) = 0;
NS_IMETHOD GetClassID( nsCID *result ) = 0;
NS_IMETHOD GetNumIIDs( int *result ) = 0;
NS_IMETHOD GetInterfaceID( int n, nsIID *result ) = 0;
}; // mozIClassRegistryEntry
// {5D41A440-8E37-11d2-8059-00600811A9C3}
#define MOZ_ICLASSREGISTRY_IID { 0x5d41a440, 0x8e37, 0x11d2, { 0x80, 0x59, 0x0, 0x60, 0x8, 0x11, 0xa9, 0xc3 } }
// {D1B54831-AC07-11d2-805E-00600811A9C3}
#define MOZ_ICLASSREGISTRYENTRY_IID { 0xd1b54831, 0xac07, 0x11d2, { 0x80, 0x5e, 0x0, 0x60, 0x8, 0x11, 0xa9, 0xc3 } }
#endif

View File

@@ -1,326 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef __mozIRegistry_h
#define __mozIRegistry_h
#include "nsISupports.h"
class nsIEnumerator;
/*------------------------------- mozIRegistry ---------------------------------
| This interface provides access to a tree of arbitrary values. |
| |
| Each node of the tree contains either a value or a subtree or both. |
| |
| The value at any of these leaf nodes can be any of these "primitive" types: |
| o string (null terminated UTF string) |
| o array of 32-bit integers |
| o arbitrary array of bytes |
| o file identifier |
| Of course, since you can store an arbitrary array of bytes, you can put |
| any data you like into a registry (although you have the burden of |
| encoding/decoding your data in that case). |
| |
| Each branch of the tree is labelled with a string "key." The entire path |
| from a given point of the tree to another point further down can be |
| presented as a single string composed of each branch's label, concatenated |
| to the next, with an intervening forward slash ('/'). The term "key" |
| refers to both specific tree branch labels and to such concatenated paths. |
| |
| The branches from a given node must have unique labels. Distinct nodes can |
| have branches with the same label. |
| |
| For example, here's a small registry tree: |
| | |
| /\ |
| / \ |
| / \ |
| / \ |
| "Classes" "Users" |
| / \ |
| / \ |
| / ["joe"] |
| / / \ |
| | / \ |
| /\ / \ |
| / \ "joe" "bob" |
| / \ / \ |
| / \ |
| "{xxxx-xx-1}" "{xxxx-xx-2}" ["c:/joe"] ["d:/Robert"] |
| | | |
| /\ /\ |
| / \ / \ |
| / \ / \ |
| "Library" "Version" "Library" "Version" |
| / \ / \ |
| ["foo.dll"] 2 ["bar.dll"] 1 |
| |
| In this example, there are 2 keys under the root: "Classes" and "Users". |
| The first denotes a subtree only (which has two subtrees, ...). The second |
| denotes both a value ["joe"] and two subtrees labelled "joe" and "bob". |
| The value at the node "/Users" is ["joe"], at "/Users/bob" is ["d:/Robert"]. |
| The value at "/Classes/{xxxx-xx-1}/Version" is 2. |
| |
| The registry interface provides functions that let you navigate the tree |
| and manipulate it's contents. |
| |
| Please note that the registry itself does not impose any structure or |
| meaning on the contents of the tree. For example, the registry doesn't |
| control whether the value at the key "/Users" is the label for the subtree |
| with information about the last active user. That meaning is applied by |
| the code that stores these values and uses them for that purpose. |
| |
| [Any resemblence between this example and actual contents of any actual |
| registry is purely coincidental.] |
------------------------------------------------------------------------------*/
struct mozIRegistry : public nsISupports {
/*------------------------------ Constants ---------------------------------
| The following enumerated types and values are used by the registry |
| interface. |
--------------------------------------------------------------------------*/
typedef enum {
String = 1,
Int32,
Bytes,
File
} DataType;
/*-------------------------------- Types -----------------------------------
| The following data types are used by this interface. All are basically |
| opaque types. You obtain objects of these types via certain member |
| function calls and re-use them later (without having to know what they |
| contain). |
| |
| Key - Placeholder to represent a particular node in a registry |
| tree. There are 3 enumerated values that correspond to |
| specific nodes: |
| Common - Where most stuff goes. |
| Users - Special subtree to hold info about |
| "users"; if you don't know what goes |
| here, don't mess with it. |
| CurrentUser - Subtree under Users corresponding to |
| whatever user is designed the "current" |
| one; see note above. |
| You can specify any of these enumerated values as "keys" |
| on any member function that takes a mozRegistry::Key. |
| ValueInfo - Structure describing a registry value. |
--------------------------------------------------------------------------*/
typedef uint32 Key;
enum { Users = 1, Common = 2, CurrentUser = 3 };
struct ValueInfo {
DataType type;
uint32 length;
};
/*--------------------------- Opening/Closing ------------------------------
| These functions open the specified registry file (Open() with a non-null |
| argument) or the default "standard" registry file (Open() with a null |
| argument or OpenDefault()). |
| |
| Once opened, you can access the registry contents via the read/write |
| or query functions. |
| |
| The registry file will be closed automatically when the registry object |
| is destroyed. You can close the file prior to that by using the |
| Close() function. |
--------------------------------------------------------------------------*/
NS_IMETHOD Open( const char *regFile = 0 ) = 0;
NS_IMETHOD OpenDefault() = 0;
NS_IMETHOD Close() = 0;
/*----------------------- Reading/Writing Values ---------------------------
| These functions read/write the registry values at a given node. |
| |
| All functions require you to specify where in the registry key to |
| get/set the value. The location is specified using two components: |
| o A "base key" indicating where to start from; this is a value of type |
| mozIRegistry::Key. You use either one of the special "root" key |
| values or a subkey obtained via some other member function call. |
| o A "relative path," expressed as a sequence of subtree names |
| separated by forward slashes. This path describes how to get from |
| the base key to the node at which you want to store the data. This |
| component can be a null pointer which means the value goes directly |
| at the node denoted by the base key. |
| |
| When you request a value of a given type, the data stored at the |
| specified node must be of the type requested. If not, an error results. |
| |
| GetString - Obtains a newly allocated copy of a string type value. The |
| caller is obligated to free the returned string using |
| PR_Free. |
| SetString - Stores the argument string at the specified node. |
| GetInt - Obtains an int32 value at the specified node. The result |
| is returned into an int32 location you specify. |
| SetInt - Stores a given int32 value at a node. |
| GetBytes - Obtains a byte array value; this returns both an allocated |
| array of bytes and a length (necessary because there may be |
| embedded null bytes in the array). You must free the |
| resulting array using PR_Free. |
| SetBytes - Stores a given array of bytes; you specify the bytes via a |
| pointer and a length. |
| GetIntArray - Obtains the array of int32 values stored at a given node. |
| The result is composed of two values: a pointer to an |
| array of integer values (which must be freed using |
| PR_Free) and the number of elements in that array. |
| SetIntArray - Stores a set of int32 values at a given node. You must |
| provide a pointer to the array and the number of entries. |
--------------------------------------------------------------------------*/
NS_IMETHOD GetString( Key baseKey, const char *path, char **result ) = 0;
NS_IMETHOD SetString( Key baseKey, const char *path, const char *value ) = 0;
NS_IMETHOD GetInt( Key baseKey, const char *path, int32 *result ) = 0;
NS_IMETHOD SetInt( Key baseKey, const char *path, int32 value ) = 0;
NS_IMETHOD GetBytes( Key baseKey, const char *path, void **result, uint32 *len ) = 0;
NS_IMETHOD SetBytes( Key baseKey, const char *path, void *value, uint32 len ) = 0;
NS_IMETHOD GetIntArray( Key baseKey, const char *path, int32 **result, uint32 *len ) = 0;
NS_IMETHOD SetIntArray( Key baseKey, const char *path, const int32 *value, uint32 len ) = 0;
/*------------------------------ Navigation --------------------------------
| These functions let you navigate through the registry tree, querying |
| its contents. |
| |
| As above, all these functions requires a starting tree location ("base |
| key") specified as a mozIRegistry::Key. Some also require a path |
| name to locate the registry node location relative to this base key. |
| |
| AddSubtree - Adds a new registry subtree at the specified |
| location. Returns the resulting key in |
| the location specified by the third argument |
| (unless that pointer is 0). |
| RemoveNode - Removes the specified registry subtree or |
| value at the specified location. |
| GetSubtree - Returns a mozIRegistry::Key that can be used |
| to refer to the specified registry location. |
| EnumerateSubtrees - Returns a nsIEnumerator object that you can |
| use to enumerate all the subtrees descending |
| from a specified location. You must free the |
| enumerator via Release() when you're done with |
| it. |
| EnumerateAllSubtrees - Like EnumerateSubtrees, but will recursively |
| enumerate lower-level subtrees, too. |
| GetValueInfo - Returns a uint32 value that designates the type |
| of data stored at this location in the registry; |
| the possible values are defined by the enumerated |
| type mozIRegistry::DataType. |
| GetValueLength - Returns a uint32 value that indicates the length |
| of this registry value; the length is the number |
| of characters (for Strings), the number of bytes |
| (for Bytes), or the number of int32 values (for |
| Int32). |
| EnumerateValues - Returns a nsIEnumerator that you can use to |
| enumerate all the value nodes descending from |
| a specified location. |
--------------------------------------------------------------------------*/
NS_IMETHOD AddSubtree( Key baseKey, const char *path, Key *result ) = 0;
NS_IMETHOD RemoveSubtree( Key baseKey, const char *path ) = 0;
NS_IMETHOD GetSubtree( Key baseKey, const char *path, Key *result ) = 0;
NS_IMETHOD EnumerateSubtrees( Key baseKey, nsIEnumerator **result ) = 0;
NS_IMETHOD EnumerateAllSubtrees( Key baseKey, nsIEnumerator **result ) = 0;
NS_IMETHOD GetValueType( Key baseKey, const char *path, uint32 *result ) = 0;
NS_IMETHOD GetValueLength( Key baseKey, const char *path, uint32 *result ) = 0;
NS_IMETHOD EnumerateValues( Key baseKey, nsIEnumerator **result ) = 0;
/*------------------------------ User Name ---------------------------------
| These functions manipulate the current "user name." This value controls |
| the behavior of certain registry functions (namely, ?). |
| |
| GetCurrentUserName allocates a copy of the current user name (which the |
| caller should free using PR_Free). |
--------------------------------------------------------------------------*/
NS_IMETHOD GetCurrentUserName( char **result ) = 0;
NS_IMETHOD SetCurrentUserName( const char *name ) = 0;
/*------------------------------ Utilities ---------------------------------
| Various utility functions: |
| |
| Pack() is used to compress the contents of an open registry file. |
--------------------------------------------------------------------------*/
NS_IMETHOD Pack() = 0;
}; // mozIRegistry
/*----------------------------- mozIRegistryNode -------------------------------
| This interface is implemented by all the objects obtained from the |
| nsIEnumerators that mozIRegistry provides when you call either of the |
| subtree enumeration functions EnumerateSubtrees or EnumerateAllSubtrees. |
| |
| You can call this function to get the name of this subtree. This is the |
| relative path from the base key from which you got this interface. |
| |
| GetName - Returns the path name of this node; this is the relative path |
| from the base key from which this subtree was obtained. The |
| function allocates a copy of the name; the caller must free it |
| using PR_Free. |
------------------------------------------------------------------------------*/
struct mozIRegistryNode : public nsISupports {
NS_IMETHOD GetName( char **result ) = 0;
}; // mozIRegistryNode
/*----------------------------- mozIRegistryValue ------------------------------
| This interface is implemented by the objects obtained from the |
| nsIEnumerators that mozIRegistry provides when you call the |
| EnumerateValues function. An object supporting this interface is |
| returned when you call the CurrentItem() function on that enumerator. |
| |
| You use the member functions of this interface to obtain information |
| about each registry value. |
| |
| GetName - Returns the path name of this node; this is the relative |
| path\ from the base key from which this value was obtained. |
| The function allocates a copy of the name; the caller must |
| subsequently free it via PR_Free. |
| GetValueType - Returns (into a location provided by the caller) the type |
| of the value; the types are defined by the enumerated |
| type mozIRegistry::DataType. |
| GetValueLength - Returns a uint32 value that indicates the length |
| of this registry value; the length is the number |
| of characters (for Strings), the number of bytes |
| (for Bytes), or the number of int32 values (for |
| Int32). |
------------------------------------------------------------------------------*/
struct mozIRegistryValue : public nsISupports {
NS_IMETHOD GetName( char **result ) = 0;
NS_IMETHOD GetValueType( uint32 *result ) = 0;
NS_IMETHOD GetValueLength( uint32 *result ) = 0;
}; // mozIRegistryEntry
/*------------------------------- Error Codes ----------------------------------
------------------------------------------------------------------------------*/
#define NS_ERROR_REG_BADTYPE NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 1 )
#define NS_ERROR_REG_NO_MORE NS_ERROR_GENERATE_SUCCESS( NS_ERROR_MODULE_REG, 2 )
#define NS_ERROR_REG_NOT_FOUND NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 3 )
#define NS_ERROR_REG_NOFILE NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 4 )
#define NS_ERROR_REG_BUFFER_TOO_SMALL NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 5 )
#define NS_ERROR_REG_NAME_TOO_LONG NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 6 )
#define NS_ERROR_REG_NO_PATH NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 7 )
#define NS_ERROR_REG_READ_ONLY NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 8 )
#define NS_ERROR_REG_BAD_UTF8 NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 9 )
// {5D41A440-8E37-11d2-8059-00600811A9C3}
#define MOZ_IREGISTRY_IID { 0x5d41a440, 0x8e37, 0x11d2, { 0x80, 0x59, 0x0, 0x60, 0x8, 0x11, 0xa9, 0xc3 } }
// {D1B54831-AC07-11d2-805E-00600811A9C3}
#define MOZ_IREGISTRYNODE_IID { 0xd1b54831, 0xac07, 0x11d2, { 0x80, 0x5e, 0x0, 0x60, 0x8, 0x11, 0xa9, 0xc3 } }
// {5316C380-B2F8-11d2-A374-0080C6F80E4B}
#define MOZ_IREGISTRYVALUE_IID { 0x5316c380, 0xb2f8, 0x11d2, { 0xa3, 0x74, 0x0, 0x80, 0xc6, 0xf8, 0xe, 0x4b } }
#endif

View File

@@ -1,170 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsAgg_h___
#define nsAgg_h___
#include "nsISupports.h"
/**
* Outer objects can implement nsIOuter if they choose, allowing them to
* get notification if their inner objects (children) are effectively freed.
* This allows them to reset any state associated with the inner object and
* potentially unload it.
*/
class nsIOuter : public nsISupports {
public:
/**
* This method is called whenever an inner object's refcount is about to
* become zero and the inner object should be released by the outer. This
* allows the outer to clean up any state associated with the inner and
* potentially unload the inner object. This method should call
* inner->Release().
*/
NS_IMETHOD
ReleaseInner(nsISupports* inner) = 0;
};
#define NS_IOUTER_IID \
{ /* ea0bf9f0-3d67-11d2-8163-006008119d7a */ \
0xea0bf9f0, \
0x3d67, \
0x11d2, \
{0x81, 0x63, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a} \
}
////////////////////////////////////////////////////////////////////////////////
// Put this in your class's declaration:
#define NS_DECL_AGGREGATED \
NS_DECL_ISUPPORTS \
\
protected: \
\
/* You must implement this operation instead of the nsISupports */ \
/* methods if you inherit from nsAggregated. */ \
NS_IMETHOD \
AggregatedQueryInterface(const nsIID& aIID, void** aInstancePtr); \
\
class Internal : public nsISupports { \
public: \
\
Internal() {} \
\
NS_IMETHOD QueryInterface(const nsIID& aIID, \
void** aInstancePtr); \
NS_IMETHOD_(nsrefcnt) AddRef(void); \
NS_IMETHOD_(nsrefcnt) Release(void); \
\
}; \
\
friend class Internal; \
\
nsISupports* fOuter; \
Internal fAggregated; \
\
nsISupports* GetInner(void) { return &fAggregated; } \
\
public: \
// Put this in your class's constructor:
#define NS_INIT_AGGREGATED(outer) \
PR_BEGIN_MACRO \
NS_INIT_REFCNT(); \
fOuter = outer; \
PR_END_MACRO
// Put this in your class's implementation file:
#define NS_IMPL_AGGREGATED(_class) \
NS_IMETHODIMP \
_class::QueryInterface(const nsIID& aIID, void** aInstancePtr) \
{ \
/* try our own interfaces first before delegating to outer */ \
nsresult rslt = AggregatedQueryInterface(aIID, aInstancePtr); \
if (rslt != NS_OK && fOuter) \
return fOuter->QueryInterface(aIID, aInstancePtr); \
else \
return rslt; \
} \
\
NS_IMETHODIMP_(nsrefcnt) \
_class::AddRef(void) \
{ \
++mRefCnt; /* keep track of our refcount as well as outer's */ \
if (fOuter) \
return NS_ADDREF(fOuter); \
else \
return mRefCnt; \
} \
\
NS_IMETHODIMP_(nsrefcnt) \
_class::Release(void) \
{ \
if (fOuter) { \
nsISupports* outer = fOuter; /* in case we release ourself */ \
nsIOuter* outerIntf; \
static NS_DEFINE_IID(kIOuterIID, NS_IOUTER_IID); \
if (mRefCnt == 1 && \
outer->QueryInterface(kIOuterIID, \
(void**)&outerIntf) == NS_OK) { \
outerIntf->ReleaseInner(GetInner()); \
outerIntf->Release(); \
} \
else \
--mRefCnt; /* keep track of our refcount as well as outer's */ \
return outer->Release(); \
} \
else { \
if (--mRefCnt == 0) { \
delete this; \
return 0; \
} \
return mRefCnt; \
} \
} \
\
NS_IMETHODIMP \
_class::Internal::QueryInterface(const nsIID& aIID, void** aInstancePtr) \
{ \
_class* agg = (_class*)((char*)(this) - offsetof(_class, fAggregated)); \
return agg->AggregatedQueryInterface(aIID, aInstancePtr); \
} \
\
NS_IMETHODIMP_(nsrefcnt) \
_class::Internal::AddRef(void) \
{ \
_class* agg = (_class*)((char*)(this) - offsetof(_class, fAggregated)); \
return ++agg->mRefCnt; \
} \
\
NS_IMETHODIMP_(nsrefcnt) \
_class::Internal::Release(void) \
{ \
_class* agg = (_class*)((char*)(this) - offsetof(_class, fAggregated)); \
if (--agg->mRefCnt == 0) { \
delete agg; \
return 0; \
} \
return agg->mRefCnt; \
} \
#endif /* nsAgg_h___ */

View File

@@ -1,493 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsCOMPtr_h___
#define nsCOMPtr_h___
// Wrapping includes can speed up compiles (see "Large Scale C++ Software Design")
#ifndef nsDebug_h___
#include "nsDebug.h"
// for |NS_PRECONDITION|
#endif
#ifndef nsISupports_h___
#include "nsISupports.h"
// for |nsresult|, |NS_ADDREF|, et al
#endif
/*
Having problems?
See the User Manual at:
<http://www.meer.net/ScottCollins/doc/nsCOMPtr.html>, or
<http://www.mozilla.org/projects/xpcom/nsCOMPtr.html>
*/
/*
TO DO...
+ make StartAssignment optionally inlined
+ make constructor for |nsQueryInterface| explicit (suddenly construct/assign from raw pointer becomes illegal)
+ Improve internal documentation
+ mention *&
+ alternatives for comparison
+ do_QueryInterface
*/
/*
WARNING:
This file defines several macros for internal use only. These macros begin with the
prefix |NSCAP_|. Do not use these macros in your own code. They are for internal use
only for cross-platform compatibility, and are subject to change without notice.
*/
/*
Set up some |#define|s to turn off a couple of troublesome C++ features.
Interestingly, none of the compilers barf on template stuff. These are set up automatically
by the autoconf system for all Unixes. (Temporarily, I hope) I have to define them
myself for Mac and Windows.
*/
// under Metrowerks (Mac), we don't have autoconf yet
#ifdef __MWERKS__
#define HAVE_CPP_USING
#define HAVE_CPP_EXPLICIT
#define HAVE_CPP_NEW_CASTS
#endif
// under VC++ (Windows), we don't have autoconf yet
#ifdef _MSC_VER
#define HAVE_CPP_EXPLICIT
#define HAVE_CPP_USING
#define HAVE_CPP_NEW_CASTS
#if (_MSC_VER<1100)
// before 5.0, VC++ couldn't handle explicit
#undef HAVE_CPP_EXPLICIT
#elif (_MSC_VER==1100)
// VC++5.0 has an internal compiler error (sometimes) without this
#undef HAVE_CPP_USING
#endif
#define NSCAP_FEATURE_INLINE_STARTASSIGNMENT
// under VC++, we win by inlining StartAssignment
#endif
/*
If the compiler doesn't support |explicit|, we'll just make it go away, trusting
that the builds under compilers that do have it will keep us on the straight and narrow.
*/
#ifndef HAVE_CPP_EXPLICIT
#define explicit
#endif
#ifdef HAVE_CPP_NEW_CASTS
#define NSCAP_REINTERPRET_CAST(T,x) reinterpret_cast<T>(x)
#else
#define NSCAP_REINTERPRET_CAST(T,x) ((T)(x))
#endif
#ifdef NSCAP_FEATURE_DEBUG_MACROS
#define NSCAP_ADDREF(ptr) NS_ADDREF(ptr)
#define NSCAP_RELEASE(ptr) NS_RELEASE(ptr)
#else
#define NSCAP_ADDREF(ptr) (ptr)->AddRef()
#define NSCAP_RELEASE(ptr) (ptr)->Release()
#endif
/*
WARNING:
VC++4.2 is very picky. To compile under VC++4.2, the classes must be defined
in an order that satisfies:
nsDerivedSafe < nsCOMPtr
nsDontAddRef < nsCOMPtr
nsCOMPtr < nsGetterAddRefs
The other compilers probably won't complain, so please don't reorder these
classes, on pain of breaking 4.2 compatibility.
*/
template <class T>
class nsDerivedSafe : public T
/*
No client should ever see or have to type the name of this class. It is the
artifact that makes it a compile-time error to call |AddRef| and |Release|
on a |nsCOMPtr|.
See |nsCOMPtr::operator->|, |nsCOMPtr::operator*|, et al.
*/
{
private:
#ifdef HAVE_CPP_USING
using T::AddRef;
using T::Release;
#else
NS_IMETHOD_(nsrefcnt) AddRef(void);
NS_IMETHOD_(nsrefcnt) Release(void);
#endif
void operator delete( void*, size_t ); // NOT TO BE IMPLEMENTED
// declaring |operator delete| private makes calling delete on an interface pointer a compile error
nsDerivedSafe<T>& operator=( const nsDerivedSafe<T>& ); // NOT TO BE IMPLEMENTED
// you may not call |operator=()| through a dereferenced |nsCOMPtr|, because you'd get the wrong one
};
#if !defined(HAVE_CPP_USING) && defined(NEED_CPP_UNUSED_IMPLEMENTATIONS)
template <class T>
nsrefcnt
nsDerivedSafe<T>::AddRef()
{
return 0;
}
template <class T>
nsrefcnt
nsDerivedSafe<T>::Release()
{
return 0;
}
#endif
template <class T>
struct nsDontQueryInterface
/*
...
*/
{
explicit
nsDontQueryInterface( T* aRawPtr )
: mRawPtr(aRawPtr)
{
// nothing else to do here
}
T* mRawPtr;
};
template <class T>
inline
nsDontQueryInterface<T>
dont_QueryInterface( T* aRawPtr )
{
return nsDontQueryInterface<T>(aRawPtr);
}
struct nsQueryInterface
{
explicit
nsQueryInterface( nsISupports* aRawPtr, nsresult* error = 0 )
: mRawPtr(aRawPtr),
mErrorPtr(error)
{
// nothing else to do here
}
nsISupports* mRawPtr;
nsresult* mErrorPtr;
};
inline
nsQueryInterface
do_QueryInterface( nsISupports* aRawPtr, nsresult* error = 0 )
{
return nsQueryInterface(aRawPtr, error);
}
template <class T>
struct nsDontAddRef
/*
...cooperates with |nsCOMPtr| to allow you to assign in a pointer _without_
|AddRef|ing it. You would rarely use this directly, but rather through the
machinery of |getter_AddRefs| in the argument list to functions that |AddRef|
their results before returning them to the caller.
See also |getter_AddRefs()| and |class nsGetterAddRefs|.
*/
{
explicit
nsDontAddRef( T* aRawPtr )
: mRawPtr(aRawPtr)
{
// nothing else to do here
}
T* mRawPtr;
};
// This call is now deprecated. Use |getter_AddRefs()| instead.
template <class T>
inline
nsDontAddRef<T>
dont_AddRef( T* aRawPtr )
/*
...makes typing easier, because it deduces the template type, e.g.,
you write |dont_AddRef(fooP)| instead of |nsDontAddRef<IFoo>(fooP)|.
*/
{
return nsDontAddRef<T>(aRawPtr);
}
template <class T>
inline
nsDontAddRef<T>
getter_AddRefs( T* aRawPtr )
{
return nsDontAddRef<T>(aRawPtr);
}
class nsCOMPtr_base
{
public:
nsCOMPtr_base( nsISupports* rawPtr = 0 )
: mRawPtr(rawPtr)
{
// nothing else to do here
}
~nsCOMPtr_base()
{
if ( mRawPtr )
NSCAP_RELEASE(mRawPtr);
}
NS_EXPORT void assign_with_AddRef( nsISupports* );
NS_EXPORT void assign_with_QueryInterface( nsISupports*, const nsIID&, nsresult* );
NS_EXPORT void** begin_assignment();
protected:
nsISupports* mRawPtr;
};
template <class T>
class nsCOMPtr : private nsCOMPtr_base
/*
...
*/
{
public:
typedef T element_type;
nsCOMPtr()
// : nsCOMPtr_base(0)
{
// nothing else to do here
}
nsCOMPtr( const nsQueryInterface& aSmartPtr )
// : nsCOMPtr_base(0)
{
assign_with_QueryInterface(aSmartPtr.mRawPtr, T::GetIID(), aSmartPtr.mErrorPtr);
}
nsCOMPtr( const nsDontAddRef<T>& aSmartPtr )
: nsCOMPtr_base(aSmartPtr.mRawPtr)
{
// nothing else to do here
}
nsCOMPtr( const nsDontQueryInterface<T>& aSmartPtr )
: nsCOMPtr_base(aSmartPtr.mRawPtr)
{
if ( mRawPtr )
NSCAP_ADDREF(mRawPtr);
}
nsCOMPtr( const nsCOMPtr<T>& aSmartPtr )
: nsCOMPtr_base(aSmartPtr.mRawPtr)
{
if ( mRawPtr )
NSCAP_ADDREF(mRawPtr);
}
nsCOMPtr<T>&
operator=( const nsQueryInterface& rhs )
{
assign_with_QueryInterface(rhs.mRawPtr, T::GetIID(), rhs.mErrorPtr);
return *this;
}
nsCOMPtr<T>&
operator=( const nsDontAddRef<T>& rhs )
{
if ( mRawPtr )
NSCAP_RELEASE(mRawPtr);
mRawPtr = rhs.mRawPtr;
return *this;
}
nsCOMPtr<T>&
operator=( const nsDontQueryInterface<T>& rhs )
{
assign_with_AddRef(rhs.mRawPtr);
return *this;
}
nsCOMPtr<T>&
operator=( const nsCOMPtr<T>& rhs )
{
assign_with_AddRef(rhs.mRawPtr);
return *this;
}
nsDerivedSafe<T>*
get() const
// returns a |nsDerivedSafe<T>*| to deny clients the use of |AddRef| and |Release|
{
return NSCAP_REINTERPRET_CAST(nsDerivedSafe<T>*, mRawPtr);
}
nsDerivedSafe<T>*
operator->() const
// returns a |nsDerivedSafe<T>*| to deny clients the use of |AddRef| and |Release|
{
NS_PRECONDITION(mRawPtr != 0, "You can't dereference a NULL nsCOMPtr with operator->().");
return get();
}
nsDerivedSafe<T>&
operator*() const
// returns a |nsDerivedSafe<T>*| to deny clients the use of |AddRef| and |Release|
{
NS_PRECONDITION(mRawPtr != 0, "You can't dereference a NULL nsCOMPtr with operator*().");
return *get();
}
operator nsDerivedSafe<T>*() const
{
return get();
}
#if 0
private:
friend class nsGetterAddRefs<T>;
/*
In a perfect world, the following member function, |StartAssignment|, would be private.
It is and should be only accessed by the closely related class |nsGetterAddRefs<T>|.
Unfortunately, some compilers---most notably VC++5.0---fail to grok the
friend declaration above or in any alternate acceptable form. So, physically
it will be public (until our compilers get smarter); but it is not to be
considered part of the logical public interface.
*/
#endif
T**
StartAssignment()
{
#ifndef NSCAP_FEATURE_INLINE_STARTASSIGNMENT
return NSCAP_REINTERPRET_CAST(T**, begin_assignment());
#else
if ( mRawPtr )
NSCAP_RELEASE(mRawPtr);
mRawPtr = 0;
return NSCAP_REINTERPRET_CAST(T**, &mRawPtr);
#endif
}
};
template <class T>
class nsGetterAddRefs
/*
...
This class is designed to be used for anonymous temporary objects in the
argument list of calls that return COM interface pointers, e.g.,
nsCOMPtr<IFoo> fooP;
...->QueryInterface(iid, nsGetterAddRefs<IFoo>(fooP))
...->QueryInterface(iid, getter_AddRefs(fooP))
When initialized with a |nsCOMPtr|, as in the example above, it returns
a |void**| (or |T**| if needed) that the outer call (|QueryInterface| in this
case) can fill in.
*/
{
public:
explicit
nsGetterAddRefs( nsCOMPtr<T>& aSmartPtr )
: mTargetSmartPtr(aSmartPtr)
{
// nothing else to do
}
operator void**()
{
// NS_PRECONDITION(mTargetSmartPtr != 0, "getter_AddRefs into no destination");
return NSCAP_REINTERPRET_CAST(void**, mTargetSmartPtr.StartAssignment());
}
T*&
operator*()
{
// NS_PRECONDITION(mTargetSmartPtr != 0, "getter_AddRefs into no destination");
return *(mTargetSmartPtr.StartAssignment());
}
operator T**()
{
// NS_PRECONDITION(mTargetSmartPtr != 0, "getter_AddRefs into no destination");
return mTargetSmartPtr.StartAssignment();
}
private:
nsCOMPtr<T>& mTargetSmartPtr;
};
template <class T>
inline
nsGetterAddRefs<T>
getter_AddRefs( nsCOMPtr<T>& aSmartPtr )
/*
Used around a |nsCOMPtr| when
...makes the class |nsGetterAddRefs<T>| invisible.
*/
{
return nsGetterAddRefs<T>(aSmartPtr);
}
#endif // !defined(nsCOMPtr_h___)

View File

@@ -1,229 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsCom_h__
#define nsCom_h__
/*
* API Import/Export macros
*/
#ifdef _IMPL_NS_COM
#ifdef XP_PC
#define NS_COM _declspec(dllexport)
#elif defined(XP_MAC)
#define NS_COM __declspec(export)
#else /* !XP_PC */
#define NS_COM
#endif /* !XP_PC */
#else /* !_IMPL_NS_COM */
#ifdef XP_PC
#define NS_COM _declspec(dllimport)
#else /* !XP_PC */
#define NS_COM
#endif /* !XP_PC */
#endif /* !_IMPL_NS_COM */
/*
* DLL Export macro
*/
#if defined(XP_PC)
#define NS_EXPORT _declspec(dllexport)
#define NS_EXPORT_(type) _declspec(dllexport) type __stdcall
#define NS_IMETHOD_(type) virtual type __stdcall
#define NS_IMETHOD virtual nsresult __stdcall
#define NS_IMETHODIMP_(type) type __stdcall
#define NS_IMETHODIMP nsresult __stdcall
#define NS_METHOD_(type) type __stdcall
#define NS_METHOD nsresult __stdcall
#define NS_CALLBACK_(_type, _name) _type (__stdcall * _name)
#define NS_CALLBACK(_name) nsresult (__stdcall * _name)
#elif defined(XP_MAC)
#define NS_EXPORT __declspec(export)
#define NS_EXPORT_(type) __declspec(export) type
#define NS_IMETHOD_(type) virtual type
#define NS_IMETHOD virtual nsresult
#define NS_IMETHODIMP_(type) type
#define NS_IMETHODIMP nsresult
#define NS_METHOD_(type) type
#define NS_METHOD nsresult
#define NS_CALLBACK_(_type, _name) _type (* _name)
#define NS_CALLBACK(_name) nsresult (* _name)
#else /* !XP_PC && !XP_MAC */
#define NS_EXPORT
#define NS_EXPORT_(type) type
#define NS_IMETHOD_(type) virtual type
#define NS_IMETHOD virtual nsresult
#define NS_IMETHODIMP_(type) type
#define NS_IMETHODIMP nsresult
#define NS_METHOD_(type) type
#define NS_METHOD nsresult
#define NS_CALLBACK_(_type, _name) _type (* _name)
#define NS_CALLBACK(_name) nsresult (* _name)
#endif /* !XP_PC */
/* use these functions to associate get/set methods with a
C++ member variable
*/
#define NS_METHOD_GETTER(_method, _type, _member) \
_method(_type* aResult) \
{\
if (!aResult) return NS_ERROR_NULL_POINTER; \
*aResult = _member; \
return NS_OK; \
}
#define NS_METHOD_SETTER(_method, _type, _member) \
_method(_type aResult) \
{ \
_member = aResult; \
return NS_OK; \
}
/*
* special for strings to get/set char* strings
* using PL_strdup and PR_FREEIF
*/
#define NS_METHOD_GETTER_STR(_method,_member) \
_method(char* *aString)\
{\
if (!aString) return NS_ERROR_NULL_POINTER; \
*aString = PL_strdup(_member); \
return NS_OK; \
}
#define NS_METHOD_SETTER_STR(_method, _member) \
_method(char *aString)\
{\
PR_FREEIF(_member);\
if (aString) _member = PL_strdup(aString); \
else _member = nsnull;\
return NS_OK; \
}
/* Getter/Setter macros.
Usage:
NS_IMPL_[CLASS_]GETTER[_<type>](method, [type,] member);
NS_IMPL_[CLASS_]SETTER[_<type>](method, [type,] member);
NS_IMPL_[CLASS_]GETSET[_<type>]([class, ]postfix, [type,] member);
where:
CLASS_ - implementation is inside a class definition
(otherwise the class name is needed)
Do NOT use in publicly exported header files, because
the implementation may be included many times over.
Instead, use the non-CLASS_ version.
_<type> - For more complex (STR, IFACE) data types
(otherwise the simple data type is needed)
method - name of the method, such as GetWidth or SetColor
type - simple data type if required
member - class member variable such as m_width or mColor
class - the class name, such as Window or MyObject
postfix - Method part after Get/Set such as "Width" for "GetWidth"
Example:
class Window {
public:
NS_IMPL_CLASS_GETSET(Width, int, m_width);
NS_IMPL_CLASS_GETTER_STR(GetColor, m_color);
NS_IMETHOD SetColor(char *color);
private:
int m_width; // read/write
char *m_color; // readonly
};
// defined outside of class
NS_IMPL_SETTER_STR(Window::GetColor, m_color);
Questions/Comments to alecf@netscape.com
*/
/*
* Getter/Setter implementation within a class definition
*/
/* simple data types */
#define NS_IMPL_CLASS_GETTER(_method, _type, _member) \
NS_IMETHOD NS_METHOD_GETTER(_method, _type, _member)
#define NS_IMPL_CLASS_SETTER(_method, _type, _member) \
NS_IMETHOD NS_METHOD_SETTER(_method, _type, _member)
#define NS_IMPL_CLASS_GETSET(_postfix, _type, _member) \
NS_IMPL_CLASS_GETTER(Get##_postfix, _type, _member) \
NS_IMPL_CLASS_SETTER(Set##_postfix, _type, _member)
/* strings */
#define NS_IMPL_CLASS_GETTER_STR(_method, _member) \
NS_IMETHOD NS_METHOD_GETTER_STR(_method, _member)
#define NS_IMPL_CLASS_SETTER_STR(_method, _member) \
NS_IMETHOD NS_METHOD_SETTER_STR(_method, _member)
#define NS_IMPL_CLASS_GETSET_STR(_postfix, _member) \
NS_IMPL_CLASS_GETTER_STR(Get##_postfix, _member) \
NS_IMPL_CLASS_SETTER_STR(Set##_postfix, _member)
/* Getter/Setter implementation outside of a class definition */
/* simple data types */
#define NS_IMPL_GETTER(_method, _type, _member) \
NS_IMETHODIMP NS_METHOD_GETTER(_method, _type, _member)
#define NS_IMPL_SETTER(_method, _type, _member) \
NS_IMETHODIMP NS_METHOD_SETTER(_method, _type, _member)
#define NS_IMPL_GETSET(_class, _postfix, _type, _member) \
NS_IMPL_GETTER(_class::Get##_postfix, _type, _member) \
NS_IMPL_SETTER(_class::Set##_postfix, _type, _member)
/* strings */
#define NS_IMPL_GETTER_STR(_method, _member) \
NS_IMETHODIMP NS_METHOD_GETTER_STR(_method, _member)
#define NS_IMPL_SETTER_STR(_method, _member) \
NS_IMETHODIMP NS_METHOD_SETTER_STR(_method, _member)
#define NS_IMPL_GETSET_STR(_class, _postfix, _member) \
NS_IMPL_GETTER_STR(_class::Get##_postfix, _member) \
NS_IMPL_SETTER_STR(_class::Set##_postfix, _member)
#endif

View File

@@ -1,183 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsDebug_h___
#define nsDebug_h___
#include "nsCom.h"
#include "prtypes.h"
#ifdef DEBUG
#define NS_DEBUG
#endif
/**
* Namespace for debugging methods. Note that your code must use the
* macros defined later in this file so that the debug code can be
* conditionally compiled out.
*/
/* in case this is included by a C file */
#ifdef __cplusplus
class nsDebug {
public:
// XXX add in log controls here
// XXX probably want printf type arguments
/**
* Abort the executing program. This works on all architectures.
*/
static NS_COM void Abort(const char* aFile, PRIntn aLine);
/**
* Break the executing program into the debugger.
*/
static NS_COM void Break(const char* aFile, PRIntn aLine);
/**
* Log a pre-condition message to the debug log
*/
static NS_COM void PreCondition(const char* aStr, const char* aExpr,
const char* aFile, PRIntn aLine);
/**
* Log a post-condition message to the debug log
*/
static NS_COM void PostCondition(const char* aStr, const char* aExpr,
const char* aFile, PRIntn aLine);
/**
* Log an assertion message to the debug log
*/
static NS_COM void Assertion(const char* aStr, const char* aExpr,
const char* aFile, PRIntn aLine);
/**
* Log a not-yet-implemented message to the debug log
*/
static NS_COM void NotYetImplemented(const char* aMessage,
const char* aFile, PRIntn aLine);
/**
* Log a not-reached message to the debug log
*/
static NS_COM void NotReached(const char* aMessage,
const char* aFile, PRIntn aLine);
/**
* Log an error message to the debug log. This call returns.
*/
static NS_COM void Error(const char* aMessage,
const char* aFile, PRIntn aLine);
/**
* Log a warning message to the debug log.
*/
static NS_COM void Warning(const char* aMessage,
const char* aFile, PRIntn aLine);
};
#ifdef NS_DEBUG
/**
* Test a precondition for truth. If the expression is not true then
* trigger a program failure.
*/
#define NS_PRECONDITION(expr,str) \
if (!(expr)) \
nsDebug::PreCondition(str, #expr, __FILE__, __LINE__)
/**
* Test an assertion for truth. If the expression is not true then
* trigger a program failure.
*/
#define NS_ASSERTION(expr,str) \
if (!(expr)) \
nsDebug::Assertion(str, #expr, __FILE__, __LINE__)
/**
* Test an assertion for truth. If the expression is not true then
* trigger a program failure. The expression will still be
* executed in release mode.
*/
#define NS_VERIFY(expr,str) \
if (!(expr)) \
nsDebug::Assertion(str, #expr, __FILE__, __LINE__)
/**
* Test a post-condition for truth. If the expression is not true then
* trigger a program failure.
*/
#define NS_POSTCONDITION(expr,str) \
if (!(expr)) \
nsDebug::PostCondition(str, #expr, __FILE__, __LINE__)
/**
* This macros triggers a program failure if executed. It indicates that
* an attempt was made to execute some unimplimented functionality.
*/
#define NS_NOTYETIMPLEMENTED(str) \
nsDebug::NotYetImplemented(str, __FILE__, __LINE__)
/**
* This macros triggers a program failure if executed. It indicates that
* an attempt was made to execute some unimplimented functionality.
*/
#define NS_NOTREACHED(str) \
nsDebug::NotReached(str, __FILE__, __LINE__)
/**
* Log an error message.
*/
#define NS_ERROR(str) \
nsDebug::Error(str, __FILE__, __LINE__)
/**
* Log a warning message.
*/
#define NS_WARNING(str) \
nsDebug::Warning(str, __FILE__, __LINE__)
/**
* Trigger an abort
*/
#define NS_ABORT() \
nsDebug::Abort(__FILE__, __LINE__)
/**
* Cause a break
*/
#define NS_BREAK() \
nsDebug::Break(__FILE__, __LINE__)
#else /* NS_DEBUG */
#define NS_PRECONDITION(expr,str) {}
#define NS_ASSERTION(expr,str) {}
#define NS_VERIFY(expr,str) expr
#define NS_POSTCONDITION(expr,str) {}
#define NS_NOTYETIMPLEMENTED(str) {}
#define NS_NOTREACHED(str) {}
#define NS_ERROR(str) {}
#define NS_WARNING(str) {}
#define NS_ABORT() {}
#define NS_BREAK() {}
#endif /* ! NS_DEBUG */
#endif /* __cplusplus */
#endif /* nsDebug_h___ */

View File

@@ -1,85 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsRDFCursorUtils_h__
#define nsRDFCursorUtils_h__
#include "nsIEnumerator.h"
#include "nsISupportsArray.h"
class NS_COM nsArrayEnumerator : public nsISimpleEnumerator
{
public:
// nsISupports interface
NS_DECL_ISUPPORTS
// nsISimpleEnumerator interface
NS_IMETHOD HasMoreElements(PRBool* aResult);
NS_IMETHOD GetNext(nsISupports** aResult);
// nsRDFArrayEnumerator methods
nsArrayEnumerator(nsISupportsArray* aValueArray);
virtual ~nsArrayEnumerator(void);
protected:
nsISupportsArray* mValueArray;
PRInt32 mIndex;
};
////////////////////////////////////////////////////////////////////////////////
class NS_COM nsSingletonEnumerator : public nsISimpleEnumerator
{
public:
NS_DECL_ISUPPORTS
// nsISimpleEnumerator methods
NS_IMETHOD HasMoreElements(PRBool* aResult);
NS_IMETHOD GetNext(nsISupports** aResult);
nsSingletonEnumerator(nsISupports* aValue);
virtual ~nsSingletonEnumerator();
protected:
nsISupports* mValue;
PRBool mConsumed;
};
////////////////////////////////////////////////////////////////////////////////
class NS_COM nsAdapterEnumerator : public nsISimpleEnumerator
{
public:
NS_DECL_ISUPPORTS
// nsISimpleEnumerator methods
NS_IMETHOD HasMoreElements(PRBool* aResult);
NS_IMETHOD GetNext(nsISupports** aResult);
nsAdapterEnumerator(nsIEnumerator* aEnum);
virtual ~nsAdapterEnumerator();
protected:
nsIEnumerator* mEnum;
nsISupports* mCurrent;
PRBool mStarted;
};
////////////////////////////////////////////////////////////////////////
#endif /* nsRDFCursorUtils_h__ */

View File

@@ -1,195 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsError_h
#define nsError_h
#ifndef prtypes_h___
#include "prtypes.h"
#endif
/**
* Generic result data type
*/
typedef PRUint32 nsresult;
/*
* To add error code to your module, you need to do the following:
*
* 1) Add a module offset code. Add yours to the bottom of the list
* right below this comment, adding 1.
*
* 2) In your module, define a header file which uses one of the
* NE_ERROR_GENERATExxxxxx macros. Some examples below:
*
* #define NS_ERROR_MYMODULE_MYERROR1 NS_ERROR_GENERATE(NS_ERROR_SEVERITY_ERROR,NS_ERROR_MODULE_MYMODULE,1)
* #define NS_ERROR_MYMODULE_MYERROR2 NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_MYMODULE,2)
* #define NS_ERROR_MYMODULE_MYERROR3 NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_MYMODULE,3)
*
*/
/**
* @name Standard Module Offset Code. Each Module should identify a unique number
* and then all errors associated with that module become offsets from the
* base associated with that module id. There are 16 bits of code bits for
* each module.
*/
#define NS_ERROR_MODULE_XPCOM 1
#define NS_ERROR_MODULE_BASE 2
#define NS_ERROR_MODULE_GFX 3
#define NS_ERROR_MODULE_WIDGET 4
#define NS_ERROR_MODULE_CALENDAR 5
#define NS_ERROR_MODULE_NETWORK 6
#define NS_ERROR_MODULE_PLUGINS 7
#define NS_ERROR_MODULE_LAYOUT 8
#define NS_ERROR_MODULE_HTMLPARSER 9
#define NS_ERROR_MODULE_RDF 10
#define NS_ERROR_MODULE_UCONV 11
#define NS_ERROR_MODULE_REG 12
#define NS_ERROR_MODULE_FILES 13
#define NS_ERROR_MODULE_MAILNEWS 16
#define NS_ERROR_MODULE_EDITOR 17
/**
* @name Standard Error Handling Macros
*/
#define NS_FAILED(_nsresult) ((_nsresult) & 0x80000000)
#define NS_SUCCEEDED(_nsresult) (!((_nsresult) & 0x80000000))
/**
* @name Severity Code. This flag identifies the level of warning
*/
#define NS_ERROR_SEVERITY_SUCCESS 0
#define NS_ERROR_SEVERITY_ERROR 1
/**
* @name Mozilla Code. This flag separates consumers of mozilla code
* from the native platform
*/
#define NS_ERROR_MODULE_BASE_OFFSET 0x45
/**
* @name Standard Error Generating Macros
*/
#define NS_ERROR_GENERATE(sev,module,code) \
((nsresult) (((PRUint32)(sev)<<31) | ((PRUint32)(module+NS_ERROR_MODULE_BASE_OFFSET)<<16) | ((PRUint32)(code))) )
#define NS_ERROR_GENERATE_SUCCESS(module,code) \
((nsresult) (((PRUint32)(NS_ERROR_SEVERITY_SUCCESS)<<31) | ((PRUint32)(module+NS_ERROR_MODULE_BASE_OFFSET)<<16) | ((PRUint32)(code))) )
#define NS_ERROR_GENERATE_FAILURE(module,code) \
((nsresult) (((PRUint32)(NS_ERROR_SEVERITY_ERROR)<<31) | ((PRUint32)(module+NS_ERROR_MODULE_BASE_OFFSET)<<16) | ((PRUint32)(code))) )
/**
* @name Standard Macros for retrieving error bits
*/
#if PR_BYTES_PER_INT == 4
#define NS_IS_ERROR(err) (((nsresult)(err))<0)
#else
#define NS_IS_ERROR(err) (((((PRUint32)(err)) >> 31) & 0x1) == NS_ERROR_SEVERITY_ERROR)
#endif
#define NS_ERROR_GET_CODE(err) ((err) & 0xffff)
#define NS_ERROR_GET_MODULE(err) (((((err) >> 16) - NS_ERROR_MODULE_BASE_OFFSET) & 0x1fff))
#define NS_ERROR_GET_SEVERITY(err) (((err) >> 31) & 0x1)
/**
* @name Standard return values
*/
/*@{*/
/* Standard "it worked" return value */
#define NS_OK 0
/* The backwards COM false */
#define NS_COMFALSE 1
#define NS_ERROR_BASE ((nsresult) 0xC1F30000)
/* Returned when an instance is not initialized */
#define NS_ERROR_NOT_INITIALIZED (NS_ERROR_BASE + 1)
/* Returned when an instance is already initialized */
#define NS_ERROR_ALREADY_INITIALIZED (NS_ERROR_BASE + 2)
/* Returned by a not implemented function */
#define NS_ERROR_NOT_IMPLEMENTED ((nsresult) 0x80004001L)
/* Returned when a given interface is not supported. */
#define NS_NOINTERFACE ((nsresult) 0x80004002L)
#define NS_ERROR_NO_INTERFACE NS_NOINTERFACE
#define NS_ERROR_INVALID_POINTER ((nsresult) 0x80004003L)
#define NS_ERROR_NULL_POINTER NS_ERROR_INVALID_POINTER
/* Returned when a function aborts */
#define NS_ERROR_ABORT ((nsresult) 0x80004004L)
/* Returned when a function fails */
#define NS_ERROR_FAILURE ((nsresult) 0x80004005L)
/* Returned when an unexpected error occurs */
#define NS_ERROR_UNEXPECTED ((nsresult) 0x8000ffffL)
/* Returned when a memory allocation failes */
#define NS_ERROR_OUT_OF_MEMORY ((nsresult) 0x8007000eL)
/* Returned when an illegal value is passed */
#define NS_ERROR_ILLEGAL_VALUE ((nsresult) 0x80070057L)
#define NS_ERROR_INVALID_ARG NS_ERROR_ILLEGAL_VALUE
/* Returned when a class doesn't allow aggregation */
#define NS_ERROR_NO_AGGREGATION ((nsresult) 0x80040110L)
/* Returned when a class doesn't allow aggregation */
#define NS_ERROR_NOT_AVAILABLE ((nsresult) 0x80040111L)
/* Returned when a class is not registered */
#define NS_ERROR_FACTORY_NOT_REGISTERED ((nsresult) 0x80040154L)
/* Returned when a dynamically loaded factory couldn't be found */
#define NS_ERROR_FACTORY_NOT_LOADED ((nsresult) 0x800401f8L)
/* Returned when a factory doesn't support signatures */
#define NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT \
(NS_ERROR_BASE + 0x101)
/* Returned when a factory already is registered */
#define NS_ERROR_FACTORY_EXISTS (NS_ERROR_BASE + 0x100)
/*@}*/
////////////////////////////////////////////////////////////////////////////////
#ifdef XP_PC
#pragma warning(disable: 4251) // 'nsCOMPtr<class nsIInputStream>' needs to have dll-interface to be used by clients of class 'nsInputStream'
#pragma warning(disable: 4275) // non dll-interface class 'nsISupports' used as base for dll-interface class 'nsIRDFNode'
#endif
#endif

View File

@@ -1,168 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsHashtable_h__
#define nsHashtable_h__
#include "plhash.h"
#include "prlock.h"
#include "nsCom.h"
class NS_COM nsHashKey {
protected:
nsHashKey(void);
public:
virtual ~nsHashKey(void);
virtual PRUint32 HashValue(void) const = 0;
virtual PRBool Equals(const nsHashKey *aKey) const = 0;
virtual nsHashKey *Clone(void) const = 0;
};
// Enumerator callback function. Use
typedef PRBool (*nsHashtableEnumFunc)(nsHashKey *aKey, void *aData, void* closure);
class NS_COM nsHashtable {
protected:
// members
PLHashTable *hashtable;
PRLock *mLock;
public:
nsHashtable(PRUint32 aSize = 256, PRBool threadSafe = PR_FALSE);
~nsHashtable();
PRInt32 Count(void) { return hashtable->nentries; }
PRBool Exists(nsHashKey *aKey);
void *Put(nsHashKey *aKey, void *aData);
void *Get(nsHashKey *aKey);
void *Remove(nsHashKey *aKey);
nsHashtable *Clone();
void Enumerate(nsHashtableEnumFunc aEnumFunc, void* closure = NULL);
void Reset();
};
////////////////////////////////////////////////////////////////////////////////
// nsISupportsKey: Where keys are nsISupports objects that get refcounted.
#include "nsISupports.h"
class nsISupportsKey : public nsHashKey {
protected:
nsISupports* mKey;
public:
nsISupportsKey(nsISupports* key) {
mKey = key;
NS_IF_ADDREF(mKey);
}
~nsISupportsKey(void) {
NS_IF_RELEASE(mKey);
}
PRUint32 HashValue(void) const {
return (PRUint32)mKey;
}
PRBool Equals(const nsHashKey *aKey) const {
return (mKey == ((nsISupportsKey *) aKey)->mKey);
}
nsHashKey *Clone(void) const {
return new nsISupportsKey(mKey);
}
};
////////////////////////////////////////////////////////////////////////////////
// nsVoidKey: Where keys are void* objects that don't get refcounted.
class nsVoidKey : public nsHashKey {
protected:
const void* mKey;
public:
nsVoidKey(const void* key) {
mKey = key;
}
PRUint32 HashValue(void) const {
return (PRUint32)mKey;
}
PRBool Equals(const nsHashKey *aKey) const {
return (mKey == ((const nsVoidKey *) aKey)->mKey);
}
nsHashKey *Clone(void) const {
return new nsVoidKey(mKey);
}
};
////////////////////////////////////////////////////////////////////////////////
// nsIDKey: Where keys are nsIDs (e.g. nsIID, nsCID).
#include "nsID.h"
class nsIDKey : public nsHashKey {
protected:
nsID mID;
public:
nsIDKey(const nsID &aID) {
mID = aID;
}
PRUint32 HashValue(void) const {
return mID.m0;
}
PRBool Equals(const nsHashKey *aKey) const {
return (mID.Equals(((const nsIDKey *) aKey)->mID));
}
nsHashKey *Clone(void) const {
return new nsIDKey(mID);
}
};
////////////////////////////////////////////////////////////////////////////////
// nsCStringKey: Where keys are char*'s
// Some uses: hashing ProgIDs, filenames, URIs
#include "plstr.h"
class NS_COM nsCStringKey : public nsHashKey {
protected:
char mBuf[64];
char* mStr;
public:
nsCStringKey(const char* str);
~nsCStringKey(void);
PRUint32 HashValue(void) const;
PRBool Equals(const nsHashKey* aKey) const;
nsHashKey* Clone() const;
};
#endif

View File

@@ -1,110 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIAllocator_h___
#define nsIAllocator_h___
#include "nsISupports.h"
/**
* Unlike IMalloc, this interface returns nsresults and doesn't
* implement the problematic GetSize and DidAlloc routines.
*/
#define NS_IALLOCATOR_IID \
{ /* 56def700-b1b9-11d2-8177-006008119d7a */ \
0x56def700, \
0xb1b9, \
0x11d2, \
{0x81, 0x77, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a} \
}
class nsIAllocator : public nsISupports {
public:
static const nsIID& GetIID() { static nsIID iid = NS_IALLOCATOR_IID; return iid; }
/**
* Allocates a block of memory of a particular size.
*
* @param size - the size of the block to allocate
* @result the block of memory
*/
NS_IMETHOD_(void*) Alloc(PRUint32 size) = 0;
/**
* Reallocates a block of memory to a new size.
*
* @param ptr - the block of memory to reallocate
* @param size - the new size
* @param oldSize - the current size of the block. If -1 (the default),
* the implementation must be able to determine the block size by
* examining the block pointer.
* @result the rellocated block of memory
*/
NS_IMETHOD_(void*) Realloc(void* ptr, PRUint32 size,
PRInt32 oldSize = -1) = 0;
/**
* Frees a block of memory.
*
* @param ptr - the block of memory to free
* @param size - the size of the block to be freed. If -1 (the default),
* the implementation must be able to determine the block size by
* examining the block pointer.
*/
NS_IMETHOD Free(void* ptr, PRInt32 size = -1) = 0;
/**
* Attempts to shrink the heap.
*/
NS_IMETHOD HeapMinimize(void) = 0;
};
// To get the global memory manager service:
#define NS_ALLOCATOR_CID \
{ /* aafe6770-b1bb-11d2-8177-006008119d7a */ \
0xaafe6770, \
0xb1bb, \
0x11d2, \
{0x81, 0x77, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a} \
}
/*
* Public shortcuts to the shared allocator's methods
*/
class nsAllocator
{
public:
static NS_EXPORT void* Alloc(PRUint32 size);
static NS_EXPORT void* Realloc(void* ptr, PRUint32 size);
static NS_EXPORT void Free(void* ptr);
static NS_EXPORT void HeapMinimize();
static NS_EXPORT void* Clone(const void* ptr, PRUint32 size);
private:
nsAllocator(); // not implemented
static PRBool EnsureAllocator() {return mAllocator || FetchAllocator();}
static PRBool FetchAllocator();
static nsIAllocator* mAllocator;
};
////////////////////////////////////////////////////////////////////////////////
#endif /* nsIAllocator_h___ */

View File

@@ -1,80 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specifzic language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsICollection_h___
#define nsICollection_h___
#include "nsISupports.h"
class nsIEnumerator;
// IID for the nsICollection interface
#define NS_ICOLLECTION_IID \
{ /* 83b6019c-cbc4-11d2-8cca-0060b0fc14a3 */ \
0x83b6019c, \
0xcbc4, \
0x11d2, \
{0x8c, 0xca, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
}
// IID for the nsICollection Factory interface
#define NS_ICOLLECTIONFACTORY_IID \
{ 0xf8052641, 0x8768, 0x11d2, \
{ 0x8f, 0x39, 0x0, 0x60, 0x8, 0x31, 0x1, 0x94 } }
//----------------------------------------------------------------------
/** nsICollection Interface
* this may be ordered or not. a list or array, the implementation is opaque
*/
class nsICollection : public nsISupports {
public:
static const nsIID& GetIID(void) { static nsIID iid = NS_ICOLLECTION_IID; return iid; }
/** Return the count of elements in the collection.
*/
NS_IMETHOD_(PRUint32) Count(void) const = 0;
/**
* AppendElement will take an ISupports and keep track of it
* @param aItem is the Item to be added WILL BE ADDREFFED
* @return NS_OK if successfully added
* @return NS_ERROR_FAILURE otherwise
*/
NS_IMETHOD AppendElement(nsISupports *aItem) = 0;
/** RemoveElement will take an nsISupports and remove it from the collection
* @param aItem is the item to be removed WILL BE RELEASED
* @return NS_OK if successfully added
* @return NS_ERROR_FAILURE otherwise
*/
NS_IMETHOD RemoveElement(nsISupports *aItem) = 0;
/** Return an enumeration for the collection.
*/
NS_IMETHOD Enumerate(nsIEnumerator* *result) = 0;
/** Clear will clear all items from list
*/
NS_IMETHOD Clear(void) = 0;
};
#endif /* nsICollection_h___ */

View File

@@ -1,230 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIComponentManager_h__
#define nsIComponentManager_h__
#include "prtypes.h"
#include "nsCom.h"
#include "nsID.h"
#include "nsError.h"
#include "nsISupports.h"
#include "nsIFactory.h"
/*
* Prototypes for dynamic library export functions. Your DLL/DSO needs to export
* these methods to play in the component world.
*/
extern "C" NS_EXPORT nsresult NSGetFactory(nsISupports* aServMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" NS_EXPORT PRBool NSCanUnload(nsISupports* aServMgr);
extern "C" NS_EXPORT nsresult NSRegisterSelf(nsISupports* aServMgr, const char *fullpath);
extern "C" NS_EXPORT nsresult NSUnregisterSelf(nsISupports* aServMgr, const char *fullpath);
typedef nsresult (*nsFactoryProc)(nsISupports* aServMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
typedef PRBool (*nsCanUnloadProc)(nsISupports* aServMgr);
typedef nsresult (*nsRegisterProc)(nsISupports* aServMgr, const char *path);
typedef nsresult (*nsUnregisterProc)(nsISupports* aServMgr, const char *path);
#define NS_ICOMPONENTMANAGER_IID \
{ /* 8458a740-d5dc-11d2-92fb-00e09805570f */ \
0x8458a740, \
0xd5dc, \
0x11d2, \
{0x92, 0xfb, 0x00, 0xe0, 0x98, 0x05, 0x57, 0x0f} \
}
#define NS_COMPONENTMANAGER_CID \
{ /* 91775d60-d5dc-11d2-92fb-00e09805570f */ \
0x91775d60, \
0xd5dc, \
0x11d2, \
{0x92, 0xfb, 0x00, 0xe0, 0x98, 0x05, 0x57, 0x0f} \
}
/*
* nsIComponentManager interface
*/
class nsIComponentManager : public nsISupports {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICOMPONENTMANAGER_IID)
NS_IMETHOD FindFactory(const nsCID &aClass,
nsIFactory **aFactory) = 0;
// Finds a class ID for a specific Program ID
NS_IMETHOD ProgIDToCLSID(const char *aProgID,
nsCID *aClass) = 0;
// Finds a Program ID for a specific class ID
// caller frees the result with delete[]
NS_IMETHOD CLSIDToProgID(nsCID *aClass,
char* *aClassName,
char* *aProgID) = 0;
// Creates a class instance for a specific class ID
NS_IMETHOD CreateInstance(const nsCID &aClass,
nsISupports *aDelegate,
const nsIID &aIID,
void **aResult) = 0;
// Convenience routine, creates a class instance for a specific ProgID
NS_IMETHOD CreateInstance(const char *aProgID,
nsISupports *aDelegate,
const nsIID &aIID,
void **aResult) = 0;
// Manually registry a factory for a class
NS_IMETHOD RegisterFactory(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory *aFactory,
PRBool aReplace) = 0;
// Manually register a dynamically loaded component.
NS_IMETHOD RegisterComponent(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
const char *aLibrary,
PRBool aReplace,
PRBool aPersist) = 0;
// Manually unregister a factory for a class
NS_IMETHOD UnregisterFactory(const nsCID &aClass,
nsIFactory *aFactory) = 0;
// Manually unregister a dynamically loaded component
NS_IMETHOD UnregisterComponent(const nsCID &aClass,
const char *aLibrary) = 0;
// Unload dynamically loaded factories that are not in use
NS_IMETHOD FreeLibraries(void) = 0;
//////////////////////////////////////////////////////////////////////////////
// DLL registration support
// Autoregistration will try only files with these extensions.
// All extensions are case insensitive.
// ".dll", // Windows
// ".dso", // Unix
// ".so", // Unix
// ".sl", // Unix: HP
// ".shlb", // Mac
// ".dlm", // new for all platforms
//
// Directory and fullname are what NSPR will accept. For eg.
// MAC /Hard drive/mozilla/dist/bin
// WIN y:\Hard drive\mozilla\dist\bin (or) y:/Hard drive/mozilla/dist/bin
// UNIX /Hard drive/mozilla/dist/bin
//
enum RegistrationTime {
NS_Startup = 0,
NS_Script = 1,
NS_Timer = 2
};
NS_IMETHOD AutoRegister(RegistrationTime when, const char* directory) = 0;
NS_IMETHOD AutoRegisterComponent(RegistrationTime when, const char *fullname) = 0;
};
////////////////////////////////////////////////////////////////////////////////
extern NS_COM nsresult
NS_GetGlobalComponentManager(nsIComponentManager* *result);
////////////////////////////////////////////////////////////////////////////////
// Global Static Component Manager Methods
// (for when you need to link with xpcom)
class NS_COM nsComponentManager {
public:
static nsresult Initialize(void);
// Finds a factory for a specific class ID
static nsresult FindFactory(const nsCID &aClass,
nsIFactory **aFactory);
// Finds a class ID for a specific Program ID
static nsresult ProgIDToCLSID(const char *aProgID,
nsCID *aClass);
// Finds a Program ID for a specific class ID
// caller frees the result with delete[]
static nsresult CLSIDToProgID(nsCID *aClass,
char* *aClassName,
char* *aProgID);
// Creates a class instance for a specific class ID
static nsresult CreateInstance(const nsCID &aClass,
nsISupports *aDelegate,
const nsIID &aIID,
void **aResult);
// Convenience routine, creates a class instance for a specific ProgID
static nsresult CreateInstance(const char *aProgID,
nsISupports *aDelegate,
const nsIID &aIID,
void **aResult);
// Manually registry a factory for a class
static nsresult RegisterFactory(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory *aFactory,
PRBool aReplace);
// Manually register a dynamically loaded component.
static nsresult RegisterComponent(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
const char *aLibrary,
PRBool aReplace,
PRBool aPersist);
// Manually unregister a factory for a class
static nsresult UnregisterFactory(const nsCID &aClass,
nsIFactory *aFactory);
// Manually unregister a dynamically loaded component
static nsresult UnregisterComponent(const nsCID &aClass,
const char *aLibrary);
// Unload dynamically loaded factories that are not in use
static nsresult FreeLibraries(void);
//////////////////////////////////////////////////////////////////////////////
// DLL registration support
static nsresult AutoRegister(nsIComponentManager::RegistrationTime when,
const char* directory);
static nsresult AutoRegisterComponent(nsIComponentManager::RegistrationTime when,
const char *fullname);
};
////////////////////////////////////////////////////////////////////////////////
#endif

View File

@@ -1,101 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsID_h__
#define nsID_h__
#include "prtypes.h"
#include "string.h"
#include "nsCom.h"
/**
* A "unique identifier". This is modeled after OSF DCE UUIDs.
*/
struct nsID {
/**
* @name Indentifier values
*/
//@{
PRUint32 m0;
PRUint16 m1;
PRUint16 m2;
PRUint8 m3[8];
//@}
/**
* @name Methods
*/
//@{
/**
* Equivalency method. Compares this nsID with another.
* @return <b>PR_TRUE</b> if they are the same, <b>PR_FALSE</b> if not.
*/
inline PRBool Equals(const nsID& other) const {
return (PRBool)
((((PRUint32*) &m0)[0] == ((PRUint32*) &other.m0)[0]) &&
(((PRUint32*) &m0)[1] == ((PRUint32*) &other.m0)[1]) &&
(((PRUint32*) &m0)[2] == ((PRUint32*) &other.m0)[2]) &&
(((PRUint32*) &m0)[3] == ((PRUint32*) &other.m0)[3]));
}
/**
* nsID Parsing method. Turns a {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
* string into an nsID
*/
NS_COM PRBool Parse(char *aIDStr);
/**
* nsID string encoder. Returns an allocated string in
* {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} format. Caller should free string.
*/
NS_COM char* ToString() const;
//@}
};
/**
* Declare an ID. If NS_IMPL_IDS is set, a variable <i>_name</i> is declared
* with the given values, otherwise <i>_name</i> is declared as an
* <tt>extern</tt> variable.
*/
#ifdef NS_IMPL_IDS
#define NS_DECLARE_ID(_name,m0,m1,m2,m30,m31,m32,m33,m34,m35,m36,m37) \
extern "C" const nsID _name = {m0,m1,m2,{m30,m31,m32,m33,m34,m35,m36,m37}}
#else
#define NS_DECLARE_ID(_name,m0,m1,m2,m30,m31,m32,m33,m34,m35,m36,m37) \
extern "C" const nsID _name
#endif
/*
* Class IDs
*/
typedef nsID nsCID;
// Define an CID
#define NS_DEFINE_CID(_name, _cidspec) \
const nsCID _name = _cidspec
#define REFNSCID const nsCID&
#endif

View File

@@ -1,120 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIEnumerator_h___
#define nsIEnumerator_h___
#include "nsISupports.h"
// {D1899240-F9D2-11d2-BDD6-000064657374}
#define NS_ISIMPLEENUMERATOR_IID \
{ 0xd1899240, 0xf9d2, 0x11d2, { 0xbd, 0xd6, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74 } }
class nsISimpleEnumerator : public nsISupports {
public:
static const nsIID& GetIID(void) { static nsIID iid = NS_ISIMPLEENUMERATOR_IID; return iid; }
NS_IMETHOD HasMoreElements(PRBool* aResult) = 0;
NS_IMETHOD GetNext(nsISupports** aResult) = 0;
};
extern "C" NS_COM nsresult
NS_NewEmptyEnumerator(nsISimpleEnumerator** aResult);
#define NS_IENUMERATOR_IID \
{ /* ad385286-cbc4-11d2-8cca-0060b0fc14a3 */ \
0xad385286, \
0xcbc4, \
0x11d2, \
{0x8c, 0xca, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
}
class nsIEnumerator : public nsISupports {
public:
static const nsIID& GetIID(void) { static nsIID iid = NS_IENUMERATOR_IID; return iid; }
/** First will reset the list. will return NS_FAILED if no items
*/
NS_IMETHOD First(void) = 0;
/** Next will advance the list. will return failed if already at end
*/
NS_IMETHOD Next(void) = 0;
/** CurrentItem will return the CurrentItem item it will fail if the list is empty
* @param aItem return value
*/
NS_IMETHOD CurrentItem(nsISupports **aItem) = 0;
/** return if the collection is at the end. that is the beginning following a call to Prev
* and it is the end of the list following a call to next
* @param aItem return value
*/
NS_IMETHOD IsDone(void) = 0;
};
#define NS_IBIDIRECTIONALENUMERATOR_IID \
{ /* 75f158a0-cadd-11d2-8cca-0060b0fc14a3 */ \
0x75f158a0, \
0xcadd, \
0x11d2, \
{0x8c, 0xca, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
}
class nsIBidirectionalEnumerator : public nsIEnumerator {
public:
static const nsIID& GetIID(void) { static nsIID iid = NS_IBIDIRECTIONALENUMERATOR_IID; return iid; }
/** Last will reset the list to the end. will return NS_FAILED if no items
*/
NS_IMETHOD Last(void) = 0;
/** Prev will decrement the list. will return failed if already at beginning
*/
NS_IMETHOD Prev(void) = 0;
};
// Construct and return an implementation of a "conjoining enumerator." This
// enumerator lets you string together two other enumerators into one sequence.
// The result is an nsIBidirectionalEnumerator, but if either input is not
// also bidirectional, the Last and Prev operations will fail.
extern "C" NS_COM nsresult
NS_NewConjoiningEnumerator(nsIEnumerator* first, nsIEnumerator* second,
nsIBidirectionalEnumerator* *aInstancePtrResult);
// Construct and return an implementation of a "union enumerator." This
// enumerator will only return elements that are found in both constituent
// enumerators.
extern "C" NS_COM nsresult
NS_NewUnionEnumerator(nsIEnumerator* first, nsIEnumerator* second,
nsIEnumerator* *aInstancePtrResult);
// Construct and return an implementation of an "intersection enumerator." This
// enumerator will return elements that are found in either constituent
// enumerators, eliminating duplicates.
extern "C" NS_COM nsresult
NS_NewIntersectionEnumerator(nsIEnumerator* first, nsIEnumerator* second,
nsIEnumerator* *aInstancePtrResult);
#endif // __nsIEnumerator_h

View File

@@ -1,47 +0,0 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef nsIEventQueueService_h__
#define nsIEventQueueService_h__
#include "nsISupports.h"
#include "prthread.h"
#include "plevent.h"
/* a6cf90dc-15b3-11d2-932e-00805f8add32 */
#define NS_IEVENTQUEUESERVICE_IID \
{ 0xa6cf90dc, 0x15b3, 0x11d2, \
{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32} }
class nsIEventQueueService : public nsISupports
{
public:
NS_IMETHOD CreateThreadEventQueue(void) = 0;
NS_IMETHOD DestroyThreadEventQueue(void) = 0;
NS_IMETHOD GetThreadEventQueue(PRThread* aThread, PLEventQueue** aResult) = 0;
#ifdef XP_MAC
// This is ment to be temporary until something better is worked out
NS_IMETHOD ProcessEvents() = 0;
#endif
};
#endif /* nsIEventQueueService_h___ */

View File

@@ -1,45 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef __nsIFactory_h
#define __nsIFactory_h
#include "prtypes.h"
#include "nsISupports.h"
/*
* nsIFactory interface
*/
// {00000001-0000-0000-c000-000000000046}
#define NS_IFACTORY_IID \
{ 0x00000001, 0x0000, 0x0000, \
{ 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 } }
class nsIFactory: public nsISupports {
public:
static const nsIID& GetIID() { static nsIID iid = NS_IFACTORY_IID; return iid; }
NS_IMETHOD CreateInstance(nsISupports *aOuter,
REFNSIID aIID,
void **aResult) = 0;
NS_IMETHOD LockFactory(PRBool aLock) = 0;
};
#endif

View File

@@ -1,57 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIGenericFactory_h___
#define nsIGenericFactory_h___
#include "nsIFactory.h"
// {3bc97f01-ccdf-11d2-bab8-b548654461fc}
#define NS_GENERICFACTORY_CID \
{ 0x3bc97f01, 0xccdf, 0x11d2, { 0xba, 0xb8, 0xb5, 0x48, 0x65, 0x44, 0x61, 0xfc } }
// {3bc97f00-ccdf-11d2-bab8-b548654461fc}
#define NS_IGENERICFACTORY_IID \
{ 0x3bc97f00, 0xccdf, 0x11d2, { 0xba, 0xb8, 0xb5, 0x48, 0x65, 0x44, 0x61, 0xfc } }
/**
* Provides a Generic nsIFactory implementation that can be used by
* DLLs with very simple factory needs.
*/
class nsIGenericFactory : public nsIFactory {
public:
static const nsIID& GetIID() { static nsIID iid = NS_IGENERICFACTORY_IID; return iid; }
typedef NS_CALLBACK(ConstructorProcPtr) (nsISupports *aOuter, REFNSIID aIID, void **aResult);
typedef NS_CALLBACK(DestructorProcPtr) (void);
/**
* Establishes the generic factory's constructor function, which will be called
* by CreateInstance.
*/
NS_IMETHOD SetConstructor(ConstructorProcPtr constructor) = 0;
/**
* Establishes the generic factory's destructor function, which will be called
* whe the generic factory is deleted. This is used to notify the DLL that
* an instance of one of its generic factories is going away.
*/
NS_IMETHOD SetDestructor(DestructorProcPtr destructor) = 0;
};
#endif /* nsIGenericFactory_h___ */

View File

@@ -1,142 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIPtr_h___
#define nsIPtr_h___
#include "nsISupports.h"
/*
* nsIPtr is an "auto-release pointer" class for nsISupports based interfaces
*
* It's intent is to be a "set and forget" pointer to help with managing
* active references to nsISupports bases objects.
*
* The pointer object ensures that the underlying pointer is always
* released whenever the value is changed or when the object leaves scope.
*
* Proper care needs to be taken when assigning pointers to a nsIPtr.
* When asigning from a C pointer (nsISupports*), the pointer presumes
* an active reference and subsumes it. When assigning from another nsIPtr,
* a new reference is established.
*
* There are 3 ways to assign a value to a nsIPtr.
* 1) Direct construction or assignment from a C pointer.
* 2) Direct construction or assignment form another nsIPtr.
* 3) Usage of an "out parameter" method.
* a) AssignRef() releases the underlying pointer and returns a reference to it.
* Useful for pointer reference out paramaters.
* b) AssignPtr() releases the underlying pointer and returns a pointer to it.
* c) Query() releases the underlying pointer and returns a (void**) pointer to it.
* Useful for calls to QueryInterface()
* 4) The SetAddRef() method. This is equivalent to an assignment followed by an AddRef().
*
* examples:
*
* class It {
* void NS_NewFoo(nsIFoo** aFoo);
* nsIFoo* GetFoo(void);
* void GetBar(nsIBar*& aBar);
* };
*
* nsIFooPtr foo = it->GetFoo();
* nsIBarPtr bar;
*
* it->NS_NewFoo(foo.AssignPtr());
* it->GetBar(bar.AssignRef());
* it->QueryInterface(kIFooIID, foo.Query());
* bar.SetAddRef(new Bar());
*
* Advantages:
* Set and forget. Once a pointer is assigned to a nsIPtr, it is impossible
* to forget to release it.
* Always pre-initialized. You can't forget to initialize the pointer.
*
* Disadvantages:
* Usage of this class doesn't eliminate the need to think about ref counts
* and assign values properly, AddRef'ing as needed.
* The nsIPtr doesn't typecast exactly like a C pointer. In order to achieve
* typecasting, it may be necessary to first cast to a C pointer of the
* underlying type.
*
*/
#define NS_DEF_PTR(cls) \
class cls##Ptr { \
public: \
cls##Ptr(void) : mPtr(0) {} \
cls##Ptr(const cls##Ptr& aCopy) : mPtr(aCopy.mPtr) \
{ NS_IF_ADDREF(mPtr); } \
cls##Ptr(cls* aInterface) : mPtr(aInterface) {} \
~cls##Ptr(void) { NS_IF_RELEASE(mPtr); } \
cls##Ptr& operator=(const cls##Ptr& aCopy) \
{ if(mPtr == aCopy.mPtr) return *this; \
NS_IF_ADDREF(aCopy.mPtr); \
NS_IF_RELEASE(mPtr); \
mPtr = aCopy.mPtr; return *this; } \
cls##Ptr& operator=(cls* aInterface) \
{ if(mPtr == aInterface) return *this; \
NS_IF_RELEASE(mPtr); mPtr = aInterface; \
return *this; } \
cls##Ptr& operator=(PRInt32 aInt) \
{ NS_IF_RELEASE(mPtr); \
return *this; } \
void SetAddRef(cls* aInterface) \
{ if(aInterface == mPtr) return; \
NS_IF_ADDREF(aInterface); \
NS_IF_RELEASE(mPtr); mPtr = aInterface; } \
cls* AddRef(void) { NS_ADDREF(mPtr); return mPtr; } \
cls* IfAddRef(void) \
{ NS_IF_ADDREF(mPtr); return mPtr; } \
cls*& AssignRef(void) \
{ NS_IF_RELEASE(mPtr); return mPtr; } \
cls** AssignPtr(void) \
{ NS_IF_RELEASE(mPtr); return &mPtr; } \
void** Query(void) \
{ NS_IF_RELEASE(mPtr); return (void**)&mPtr; } \
PRBool IsNull() const \
{ return PRBool(0 == mPtr); } \
PRBool IsNotNull() const \
{ return PRBool(0 != mPtr); } \
PRBool operator==(const cls##Ptr& aCopy) const \
{ return PRBool(mPtr == aCopy.mPtr); } \
PRBool operator==(cls* aInterface) const \
{ return PRBool(mPtr == aInterface); } \
PRBool operator!=(const cls##Ptr& aCopy) const \
{ return PRBool(mPtr != aCopy.mPtr); } \
PRBool operator!=(cls* aInterface) const \
{ return PRBool(mPtr != aInterface); } \
cls* operator->(void) { return mPtr; } \
cls& operator*(void) { return *mPtr; } \
operator cls*(void) { return mPtr; } \
const cls* operator->(void) const { return mPtr; } \
const cls& operator*(void) const { return *mPtr; } \
operator const cls* (void) const { return mPtr; } \
private: \
void* operator new(size_t size) { return 0; } \
void operator delete(void* aPtr) {} \
cls* mPtr; \
public: \
friend inline PRBool operator==(const cls* aInterface, const cls##Ptr& aPtr) \
{ return PRBool(aInterface == aPtr.mPtr); } \
friend inline PRBool operator!=(const cls* aInterface, const cls##Ptr& aPtr) \
{ return PRBool(aInterface != aPtr.mPtr); } \
}
#endif // nsIPtr_h___

View File

@@ -1,350 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef __nsIRegistry_h
#define __nsIRegistry_h
#include "nsISupports.h"
// {5D41A440-8E37-11d2-8059-00600811A9C3}
#define NS_IREGISTRY_IID { 0x5d41a440, 0x8e37, 0x11d2, { 0x80, 0x59, 0x0, 0x60, 0x8, 0x11, 0xa9, 0xc3 } }
#define NS_REGISTRY_PROGID "component://netscape/registry"
#define NS_REGISTRY_CLASSNAME "Mozilla Registry"
// {D1B54831-AC07-11d2-805E-00600811A9C3}
#define NS_IREGISTRYNODE_IID { 0xd1b54831, 0xac07, 0x11d2, { 0x80, 0x5e, 0x0, 0x60, 0x8, 0x11, 0xa9, 0xc3 } }
// {5316C380-B2F8-11d2-A374-0080C6F80E4B}
#define NS_IREGISTRYVALUE_IID { 0x5316c380, 0xb2f8, 0x11d2, { 0xa3, 0x74, 0x0, 0x80, 0xc6, 0xf8, 0xe, 0x4b } }
class nsIEnumerator;
/*-------------------------------- nsIRegistry ---------------------------------
| This interface provides access to a tree of arbitrary values. |
| |
| Each node of the tree contains either a value or a subtree or both. |
| |
| The value at any of these leaf nodes can be any of these "primitive" types: |
| o string (null terminated UTF string) |
| o array of 32-bit integers |
| o arbitrary array of bytes |
| o file identifier |
| Of course, since you can store an arbitrary array of bytes, you can put |
| any data you like into a registry (although you have the burden of |
| encoding/decoding your data in that case). |
| |
| Each branch of the tree is labelled with a string "key." The entire path |
| from a given point of the tree to another point further down can be |
| presented as a single string composed of each branch's label, concatenated |
| to the next, with an intervening forward slash ('/'). The term "key" |
| refers to both specific tree branch labels and to such concatenated paths. |
| |
| The branches from a given node must have unique labels. Distinct nodes can |
| have branches with the same label. |
| |
| For example, here's a small registry tree: |
| | |
| /\ |
| / \ |
| / \ |
| / \ |
| "Classes" "Users" |
| / \ |
| / \ |
| / ["joe"] |
| / / \ |
| | / \ |
| /\ / \ |
| / \ "joe" "bob" |
| / \ / \ |
| / \ |
| "{xxxx-xx-1}" "{xxxx-xx-2}" ["c:/joe"] ["d:/Robert"] |
| | | |
| /\ /\ |
| / \ / \ |
| / \ / \ |
| "Library" "Version" "Library" "Version" |
| / \ / \ |
| ["foo.dll"] 2 ["bar.dll"] 1 |
| |
| In this example, there are 2 keys under the root: "Classes" and "Users". |
| The first denotes a subtree only (which has two subtrees, ...). The second |
| denotes both a value ["joe"] and two subtrees labelled "joe" and "bob". |
| The value at the node "/Users" is ["joe"], at "/Users/bob" is ["d:/Robert"]. |
| The value at "/Classes/{xxxx-xx-1}/Version" is 2. |
| |
| The registry interface provides functions that let you navigate the tree |
| and manipulate it's contents. |
| |
| Please note that the registry itself does not impose any structure or |
| meaning on the contents of the tree. For example, the registry doesn't |
| control whether the value at the key "/Users" is the label for the subtree |
| with information about the last active user. That meaning is applied by |
| the code that stores these values and uses them for that purpose. |
| |
| [Any resemblence between this example and actual contents of any actual |
| registry is purely coincidental.] |
------------------------------------------------------------------------------*/
struct nsIRegistry : public nsISupports {
/*------------------------------ Constants ---------------------------------
| The following enumerated types and values are used by the registry |
| interface. |
--------------------------------------------------------------------------*/
typedef enum {
String = 1,
Int32,
Bytes,
File
} DataType;
/*-------------------------------- Types -----------------------------------
| The following data types are used by this interface. All are basically |
| opaque types. You obtain objects of these types via certain member |
| function calls and re-use them later (without having to know what they |
| contain). |
| |
| Key - Placeholder to represent a particular node in a registry |
| tree. There are 3 enumerated values that correspond to |
| specific nodes: |
| Common - Where most stuff goes. |
| Users - Special subtree to hold info about |
| "users"; if you don't know what goes |
| here, don't mess with it. |
| CurrentUser - Subtree under Users corresponding to |
| whatever user is designed the "current" |
| one; see note above. |
| You can specify any of these enumerated values as "keys" |
| on any member function that takes a nsRegistry::Key. |
| ValueInfo - Structure describing a registry value. |
--------------------------------------------------------------------------*/
typedef uint32 Key;
enum { Users = 1, Common = 2, CurrentUser = 3 };
struct ValueInfo {
DataType type;
uint32 length;
};
static const nsIID& GetIID() { static nsIID iid = NS_IREGISTRY_IID; return iid; }
/*--------------------------- Opening/Closing ------------------------------
| These functions open the specified registry file (Open() with a non-null |
| argument) or the default "standard" registry file (Open() with a null |
| argument or OpenDefault()). |
| |
| Once opened, you can access the registry contents via the read/write |
| or query functions. |
| |
| The registry file will be closed automatically when the registry object |
| is destroyed. You can close the file prior to that by using the |
| Close() function. |
--------------------------------------------------------------------------*/
NS_IMETHOD Open( const char *regFile = 0 ) = 0;
NS_IMETHOD OpenDefault() = 0;
NS_IMETHOD Close() = 0;
/*----------------------- Reading/Writing Values ---------------------------
| These functions read/write the registry values at a given node. |
| |
| All functions require you to specify where in the registry key to |
| get/set the value. The location is specified using two components: |
| o A "base key" indicating where to start from; this is a value of type |
| nsIRegistry::Key. You use either one of the special "root" key |
| values or a subkey obtained via some other member function call. |
| o A "relative path," expressed as a sequence of subtree names |
| separated by forward slashes. This path describes how to get from |
| the base key to the node at which you want to store the data. This |
| component can be a null pointer which means the value goes directly |
| at the node denoted by the base key. |
| |
| When you request a value of a given type, the data stored at the |
| specified node must be of the type requested. If not, an error results. |
| |
| GetString - Obtains a newly allocated copy of a string type value. The |
| caller is obligated to free the returned string using |
| PR_Free. |
| SetString - Stores the argument string at the specified node. |
| GetInt - Obtains an int32 value at the specified node. The result |
| is returned into an int32 location you specify. |
| SetInt - Stores a given int32 value at a node. |
| GetBytes - Obtains a byte array value; this returns both an allocated |
| array of bytes and a length (necessary because there may be |
| embedded null bytes in the array). You must free the |
| resulting array using PR_Free. |
| SetBytes - Stores a given array of bytes; you specify the bytes via a |
| pointer and a length. |
| GetIntArray - Obtains the array of int32 values stored at a given node. |
| The result is composed of two values: a pointer to an |
| array of integer values (which must be freed using |
| PR_Free) and the number of elements in that array. |
| SetIntArray - Stores a set of int32 values at a given node. You must |
| provide a pointer to the array and the number of entries. |
--------------------------------------------------------------------------*/
NS_IMETHOD GetString( Key baseKey, const char *path, char **result ) = 0;
NS_IMETHOD SetString( Key baseKey, const char *path, const char *value ) = 0;
NS_IMETHOD GetInt( Key baseKey, const char *path, int32 *result ) = 0;
NS_IMETHOD SetInt( Key baseKey, const char *path, int32 value ) = 0;
NS_IMETHOD GetBytes( Key baseKey, const char *path, void **result, uint32 *len ) = 0;
NS_IMETHOD SetBytes( Key baseKey, const char *path, void *value, uint32 len ) = 0;
NS_IMETHOD GetIntArray( Key baseKey, const char *path, int32 **result, uint32 *len ) = 0;
NS_IMETHOD SetIntArray( Key baseKey, const char *path, const int32 *value, uint32 len ) = 0;
/*------------------------------ Navigation --------------------------------
| These functions let you navigate through the registry tree, querying |
| its contents. |
| |
| As above, all these functions requires a starting tree location ("base |
| key") specified as a nsIRegistry::Key. Some also require a path |
| name to locate the registry node location relative to this base key. |
| |
| AddSubtree - Adds a new registry subtree at the specified |
| location. Returns the resulting key in |
| the location specified by the third argument |
| (unless that pointer is 0). |
| AddSubtreeRaw - Adds a new registry subtree at the specified |
| location. Returns the resulting key in |
| the location specified by the third argument |
| (unless that pointer is 0). |
| Does not interpret special chars in key names. |
| |
| RemoveSubtree - Removes the specified registry subtree or |
| value at the specified location. |
| RemoveSubtreeRaw - Removes the specified registry subtree or |
| value at the specified location. |
| Does not interpret special chars in key names. |
| |
| GetSubtree - Returns a nsIRegistry::Key that can be used |
| to refer to the specified registry location. |
| GetSubtreeRaw - Returns a nsIRegistry::Key that can be used |
| to refer to the specified registry location. |
| Does not interpret special chars in key names. |
| |
| EnumerateSubtrees - Returns a nsIEnumerator object that you can |
| use to enumerate all the subtrees descending |
| from a specified location. You must free the |
| enumerator via Release() when you're done with |
| it. |
| EnumerateAllSubtrees - Like EnumerateSubtrees, but will recursively |
| enumerate lower-level subtrees, too. |
| GetValueInfo - Returns a uint32 value that designates the type |
| of data stored at this location in the registry; |
| the possible values are defined by the enumerated |
| type nsIRegistry::DataType. |
| GetValueLength - Returns a uint32 value that indicates the length |
| of this registry value; the length is the number |
| of characters (for Strings), the number of bytes |
| (for Bytes), or the number of int32 values (for |
| Int32). |
| EnumerateValues - Returns a nsIEnumerator that you can use to |
| enumerate all the value nodes descending from |
| a specified location. |
--------------------------------------------------------------------------*/
NS_IMETHOD AddSubtree( Key baseKey, const char *path, Key *result ) = 0;
NS_IMETHOD RemoveSubtree( Key baseKey, const char *path ) = 0;
NS_IMETHOD GetSubtree( Key baseKey, const char *path, Key *result ) = 0;
NS_IMETHOD AddSubtreeRaw( Key baseKey, const char *keyname, Key *result ) = 0;
NS_IMETHOD RemoveSubtreeRaw( Key baseKey, const char *keyname ) = 0;
NS_IMETHOD GetSubtreeRaw( Key baseKey, const char *keyname, Key *result ) = 0;
NS_IMETHOD EnumerateSubtrees( Key baseKey, nsIEnumerator **result ) = 0;
NS_IMETHOD EnumerateAllSubtrees( Key baseKey, nsIEnumerator **result ) = 0;
NS_IMETHOD GetValueType( Key baseKey, const char *path, uint32 *result ) = 0;
NS_IMETHOD GetValueLength( Key baseKey, const char *path, uint32 *result ) = 0;
NS_IMETHOD EnumerateValues( Key baseKey, nsIEnumerator **result ) = 0;
/*------------------------------ User Name ---------------------------------
| These functions manipulate the current "user name." This value controls |
| the behavior of certain registry functions (namely, ?). |
| |
| GetCurrentUserName allocates a copy of the current user name (which the |
| caller should free using PR_Free). |
--------------------------------------------------------------------------*/
NS_IMETHOD GetCurrentUserName( char **result ) = 0;
NS_IMETHOD SetCurrentUserName( const char *name ) = 0;
/*------------------------------ Utilities ---------------------------------
| Various utility functions: |
| |
| Pack() is used to compress the contents of an open registry file. |
--------------------------------------------------------------------------*/
NS_IMETHOD Pack() = 0;
}; // nsIRegistry
/*------------------------------ nsIRegistryNode -------------------------------
| This interface is implemented by all the objects obtained from the |
| nsIEnumerators that nsIRegistry provides when you call either of the |
| subtree enumeration functions EnumerateSubtrees or EnumerateAllSubtrees. |
| |
| You can call this function to get the name of this subtree. This is the |
| relative path from the base key from which you got this interface. |
| |
| GetName - Returns the path name of this node; this is the relative path |
| from the base key from which this subtree was obtained. The |
| function allocates a copy of the name; the caller must free it |
| using PR_Free. |
------------------------------------------------------------------------------*/
struct nsIRegistryNode : public nsISupports {
NS_IMETHOD GetName( char **result ) = 0;
}; // nsIRegistryNode
/*------------------------------ nsIRegistryValue ------------------------------
| This interface is implemented by the objects obtained from the |
| nsIEnumerators that nsIRegistry provides when you call the |
| EnumerateValues function. An object supporting this interface is |
| returned when you call the CurrentItem() function on that enumerator. |
| |
| You use the member functions of this interface to obtain information |
| about each registry value. |
| |
| GetName - Returns the path name of this node; this is the relative |
| path\ from the base key from which this value was obtained. |
| The function allocates a copy of the name; the caller must |
| subsequently free it via PR_Free. |
| GetValueType - Returns (into a location provided by the caller) the type |
| of the value; the types are defined by the enumerated |
| type nsIRegistry::DataType. |
| GetValueLength - Returns a uint32 value that indicates the length |
| of this registry value; the length is the number |
| of characters (for Strings), the number of bytes |
| (for Bytes), or the number of int32 values (for |
| Int32). |
------------------------------------------------------------------------------*/
struct nsIRegistryValue : public nsISupports {
NS_IMETHOD GetName( char **result ) = 0;
NS_IMETHOD GetValueType( uint32 *result ) = 0;
NS_IMETHOD GetValueLength( uint32 *result ) = 0;
}; // nsIRegistryEntry
/*------------------------------- Error Codes ----------------------------------
------------------------------------------------------------------------------*/
#define NS_ERROR_REG_BADTYPE NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 1 )
#define NS_ERROR_REG_NO_MORE NS_ERROR_GENERATE_SUCCESS( NS_ERROR_MODULE_REG, 2 )
#define NS_ERROR_REG_NOT_FOUND NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 3 )
#define NS_ERROR_REG_NOFILE NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 4 )
#define NS_ERROR_REG_BUFFER_TOO_SMALL NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 5 )
#define NS_ERROR_REG_NAME_TOO_LONG NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 6 )
#define NS_ERROR_REG_NO_PATH NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 7 )
#define NS_ERROR_REG_READ_ONLY NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 8 )
#define NS_ERROR_REG_BAD_UTF8 NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_REG, 9 )
#endif

View File

@@ -1,327 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIServiceManager_h___
#define nsIServiceManager_h___
#include "nsIComponentManager.h"
#include "nsID.h"
class nsIShutdownListener;
#define NS_ISERVICEMANAGER_IID \
{ /* cf0df3b0-3401-11d2-8163-006008119d7a */ \
0xcf0df3b0, \
0x3401, \
0x11d2, \
{0x81, 0x63, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a} \
}
/**
* The nsIServiceManager manager interface provides a means to obtain
* global services in an application. The service manager depends on the
* repository to find and instantiate factories to obtain services.
*
* Users of the service manager must first obtain a pointer to the global
* service manager by calling NS_GetGlobalServiceManager. After that,
* they can request specific services by calling GetService. When they are
* finished with a service the release it by calling ReleaseService (instead
* of releasing the service object directly):
*
* nsICacheManager* cm;
* nsServiceManager::GetService(kCacheManagerCID, kICacheManagerIID, (nsISupports**)&cm);
*
* ... use cm, and then sometime later ...
*
* nsServiceManager::ReleaseService(kCacheManagerCID, cm);
*
* A user of a service may keep references to particular services indefinitely
* and only must call ReleaseService when it shuts down. However if the user
* wishes to voluntarily cooperate with the shutdown of the service it is
* using, it may supply an nsIShutdownListener to provide for asynchronous
* release of the services it is using. The shutdown listener's OnShutdown
* method will be called for a service that is being shut down, and it is
* its responsiblity to release references obtained from that service if at
* all possible.
*
* The process of shutting down a particular service is initiated by calling
* the service manager's ShutdownService method. This will iterate through
* all the registered shutdown listeners for the service being shut down, and
* then will attempt to unload the library associated with the service if
* possible. The status result of ShutdownService indicates whether the
* service was successfully shut down, failed, or was not in service.
*
* XXX QUESTIONS:
* - Should a "service" be more than nsISupports? Should it be a factory
* and/or have Startup(), Shutdown(), etc.
* - If the asynchronous OnShutdown operation gets called, does the user
* of a service still need to call ReleaseService? (Or should they _not_
* call it?)
*/
class nsIServiceManager : public nsISupports {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISERVICEMANAGER_IID);
/**
* RegisterService may be called explicitly to register a service
* with the service manager. If a service is not registered explicitly,
* the component manager will be used to create an instance according
* to the class ID specified.
*/
NS_IMETHOD
RegisterService(const nsCID& aClass, nsISupports* aService) = 0;
/**
* Requests a service to be shut down, possibly unloading its DLL.
*
* @returns NS_OK - if shutdown was successful and service was unloaded,
* @returns NS_ERROR_SERVICE_NOT_FOUND - if shutdown failed because
* the service was not currently loaded
* @returns NS_ERROR_SERVICE_IN_USE - if shutdown failed because some
* user of the service wouldn't voluntarily release it by using
* a shutdown listener.
*/
NS_IMETHOD
UnregisterService(const nsCID& aClass) = 0;
NS_IMETHOD
GetService(const nsCID& aClass, const nsIID& aIID,
nsISupports* *result,
nsIShutdownListener* shutdownListener = NULL) = 0;
NS_IMETHOD
ReleaseService(const nsCID& aClass, nsISupports* service,
nsIShutdownListener* shutdownListener = NULL) = 0;
////////////////////////////////////////////////////////////////////////////
// let's do it again, this time with ProgIDs...
NS_IMETHOD
RegisterService(const char* aProgID, nsISupports* aService) = 0;
NS_IMETHOD
UnregisterService(const char* aProgID) = 0;
NS_IMETHOD
GetService(const char* aProgID, const nsIID& aIID,
nsISupports* *result,
nsIShutdownListener* shutdownListener = NULL) = 0;
NS_IMETHOD
ReleaseService(const char* aProgID, nsISupports* service,
nsIShutdownListener* shutdownListener = NULL) = 0;
};
#define NS_ERROR_SERVICE_NOT_FOUND NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_XPCOM, 22)
#define NS_ERROR_SERVICE_IN_USE NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_XPCOM, 23)
////////////////////////////////////////////////////////////////////////////////
#define NS_ISHUTDOWNLISTENER_IID \
{ /* 56decae0-3406-11d2-8163-006008119d7a */ \
0x56decae0, \
0x3406, \
0x11d2, \
{0x81, 0x63, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a} \
}
class nsIShutdownListener : public nsISupports {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISHUTDOWNLISTENER_IID);
NS_IMETHOD
OnShutdown(const nsCID& aClass, nsISupports* service) = 0;
};
////////////////////////////////////////////////////////////////////////////////
// Interface to Global Services
class NS_COM nsServiceManager {
public:
static nsresult
RegisterService(const nsCID& aClass, nsISupports* aService);
static nsresult
UnregisterService(const nsCID& aClass);
static nsresult
GetService(const nsCID& aClass, const nsIID& aIID,
nsISupports* *result,
nsIShutdownListener* shutdownListener = NULL);
static nsresult
ReleaseService(const nsCID& aClass, nsISupports* service,
nsIShutdownListener* shutdownListener = NULL);
////////////////////////////////////////////////////////////////////////////
// let's do it again, this time with ProgIDs...
static nsresult
RegisterService(const char* aProgID, nsISupports* aService);
static nsresult
UnregisterService(const char* aProgID);
static nsresult
GetService(const char* aProgID, const nsIID& aIID,
nsISupports* *result,
nsIShutdownListener* shutdownListener = NULL);
static nsresult
ReleaseService(const char* aProgID, nsISupports* service,
nsIShutdownListener* shutdownListener = NULL);
////////////////////////////////////////////////////////////////////////////
static nsresult GetGlobalServiceManager(nsIServiceManager* *result);
// This method can be called when shutting down the application. It
// releases all the global services, and deletes the global service manager.
static nsresult ShutdownGlobalServiceManager(nsIServiceManager* *result);
static nsIServiceManager* mGlobalServiceManager;
};
////////////////////////////////////////////////////////////////////////////////
// NS_WITH_SERVICE: macro to make using services easier.
// Now you can replace this:
// {
// nsIMyService* service;
// rv = nsServiceManager::GetService(kMyServiceCID, nsIMyService::GetIID(),
// &service);
// if (NS_FAILED(rv)) return rv;
// service->Doit(...); // use my service
// rv = nsServiceManager::ReleaseService(kMyServiceCID, service);
// }
// with this:
// {
// NS_WITH_SERVICE(nsIMyService, service, kMyServiceCID, &rv);
// if (NS_FAILED(rv)) return rv;
// service->Doit(...); // use my service
// }
// and the automatic destructor will take care of releasing the service.
//
// Note that this macro requires you to link with the xpcom DLL to pick up the
// static member functions from nsServiceManager. For situations where you're
// passed an nsISupports that is an nsIComponentManager (such as in a DLL's
// NSRegisterSelf or NSUnregisterSelf entry points) you can use the following
// macro instead:
//
// NSRegisterSelf(nsISupports* servMgr, const char* path) {
// NS_WITH_SERVICE1(nsIComponentManager, compMgr, servMgr,
// kComponentManagerCID, &rv);
// if (NS_FAILED(rv)) return rv;
// compMgr->RegisterComponent(...); // use the service
// }
#define NS_WITH_SERVICE(T, var, cid, rvAddr) \
nsService _serv##var(cid, T::GetIID(), rvAddr); \
T* var = (T*)(nsISupports*)_serv##var;
#define NS_WITH_SERVICE1(T, var, isupports, cid, rvAddr) \
nsService _serv##var(isupports, cid, T::GetIID(), rvAddr); \
T* var = (T*)(nsISupports*)_serv##var;
class nsService {
protected:
nsCID mCID;
nsISupports* mService;
public:
nsService(nsISupports* aServMgr, const nsCID& aClass, const nsIID& aIID, nsresult *rv)
: mCID(aClass), mService(0)
{
nsIServiceManager* servMgr;
*rv = aServMgr->QueryInterface(nsIServiceManager::GetIID(), (void**)&servMgr);
if (NS_SUCCEEDED(*rv)) {
*rv = servMgr->GetService(mCID, aIID, &mService);
NS_RELEASE(servMgr);
}
NS_ASSERTION(NS_SUCCEEDED(*rv), "Couldn't get service.");
}
nsService(nsISupports* aServMgr, const char* aProgID, const nsIID& aIID, nsresult *rv)
: mService(0)
{
*rv = nsComponentManager::ProgIDToCLSID(aProgID, &mCID);
NS_ASSERTION(NS_SUCCEEDED(*rv), "Couldn't get CLSID.");
if (NS_FAILED(*rv)) return;
nsIServiceManager* servMgr;
*rv = aServMgr->QueryInterface(nsIServiceManager::GetIID(), (void**)&servMgr);
if (NS_SUCCEEDED(*rv)) {
*rv = servMgr->GetService(mCID, aIID, &mService);
NS_RELEASE(servMgr);
}
NS_ASSERTION(NS_SUCCEEDED(*rv), "Couldn't get service.");
}
nsService(const nsCID& aClass, const nsIID& aIID, nsresult *rv)
: mCID(aClass), mService(0) {
*rv = nsServiceManager::GetService(aClass, aIID,
(nsISupports**)&mService);
NS_ASSERTION(NS_SUCCEEDED(*rv), "Couldn't get service.");
}
~nsService() {
if (mService) { // mService could be null if the constructor fails
nsresult rv = NS_OK;
rv = nsServiceManager::ReleaseService(mCID, mService);
NS_ASSERTION(NS_SUCCEEDED(rv), "Couldn't release service.");
}
}
nsISupports* operator->() const {
NS_PRECONDITION(mService != 0, "Your code should test the error result from the constructor.");
return mService;
}
PRBool operator==(const nsISupports* other) {
return mService == other;
}
operator nsISupports*() const {
return mService;
}
};
////////////////////////////////////////////////////////////////////////////////
// NS_NewServiceManager: For when you want to create a service manager
// in a given context.
extern NS_COM nsresult
NS_NewServiceManager(nsIServiceManager* *result);
////////////////////////////////////////////////////////////////////////////////
// Initialization of XPCOM. Creates the global ComponentManager, ServiceManager
// and registers xpcom components with the ComponentManager. Should be called
// before any call can be made to XPCOM. Currently we are coping with this
// not being called and internally initializing XPCOM if not already.
extern NS_COM nsresult
NS_InitXPCOM(nsIServiceManager* *result);
////////////////////////////////////////////////////////////////////////////////
#endif /* nsIServiceManager_h___ */

View File

@@ -1,132 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsISupports_h___
#define nsISupports_h___
#include "nsDebug.h"
#include "nsTraceRefcnt.h"
#include "nsID.h"
#include "nsIID.h"
#include "nsError.h"
#include "nsISupportsUtils.h"
#if defined(NS_MT_SUPPORTED)
#include "prcmon.h"
#endif /* NS_MT_SUPPORTED */
#if defined(XPIDL_JS_STUBS)
struct JSObject;
struct JSContext;
#endif
/*@{*/
////////////////////////////////////////////////////////////////////////////////
/**
* IID for the nsISupports interface
* {00000000-0000-0000-c000-000000000046}
*
* NOTE: NEVER EVER EVER EVER EVER change this IID. Never. Not once.
* No. Don't do it. Stop!
*/
#define NS_ISUPPORTS_IID \
{ 0x00000000, 0x0000, 0x0000, \
{0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46} }
/**
* Reference count values
*/
typedef PRUint32 nsrefcnt;
/**
* Base class for all XPCOM objects to use. This macro forces the C++
* compiler to use a compatible vtable layout for all XPCOM objects.
*/
#ifdef XP_MAC
#define XPCOM_OBJECT : public __comobject
#else
#define XPCOM_OBJECT
#endif
/**
* Basic component object model interface. Objects which implement
* this interface support runtime interface discovery (QueryInterface)
* and a reference counted memory model (AddRef/Release). This is
* modelled after the win32 IUnknown API.
*/
class nsISupports XPCOM_OBJECT {
public:
static const nsIID& GetIID() { static nsIID iid = NS_ISUPPORTS_IID; return iid; }
/**
* @name Methods
*/
//@{
/**
* A run time mechanism for interface discovery.
* @param aIID [in] A requested interface IID
* @param aInstancePtr [out] A pointer to an interface pointer to
* receive the result.
* @return <b>NS_OK</b> if the interface is supported by the associated
* instance, <b>NS_NOINTERFACE</b> if it is not.
* <b>NS_ERROR_INVALID_POINTER</b> if <i>aInstancePtr</i> is <b>NULL</b>.
*/
NS_IMETHOD QueryInterface(REFNSIID aIID,
void** aInstancePtr) = 0;
/**
* Increases the reference count for this interface.
* The associated instance will not be deleted unless
* the reference count is returned to zero.
*
* @return The resulting reference count.
*/
NS_IMETHOD_(nsrefcnt) AddRef(void) = 0;
/**
* Decreases the reference count for this interface.
* Generally, if the reference count returns to zero,
* the associated instance is deleted.
*
* @return The resulting reference count.
*/
NS_IMETHOD_(nsrefcnt) Release(void) = 0;
#if XPIDL_JS_STUBS
// XXX Scriptability hack...
static NS_EXPORT_(JSObject*) InitJSClass(JSContext* cx) {
return 0;
}
static NS_EXPORT_(JSObject*) GetJSObject(JSContext* cx, nsISupports* priv) {
NS_NOTYETIMPLEMENTED("nsISupports isn't XPIDL scriptable yet");
return 0;
}
#endif
//@}
};
////////////////////////////////////////////////////////////////////////////////
/*@}*/
#endif /* nsISupports_h___ */

View File

@@ -1,77 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsISupportsArray_h___
#define nsISupportsArray_h___
#include "nsCom.h"
#include "nsICollection.h"
class nsIBidirectionalEnumerator;
// {791eafa0-b9e6-11d1-8031-006008159b5a}
#define NS_ISUPPORTSARRAY_IID \
{0x791eafa0, 0xb9e6, 0x11d1, \
{0x80, 0x31, 0x00, 0x60, 0x08, 0x15, 0x9b, 0x5a}}
// Enumerator callback function. Return PR_FALSE to stop
typedef PRBool (*nsISupportsArrayEnumFunc)(nsISupports* aElement, void *aData);
class nsISupportsArray : public nsICollection {
public:
static const nsIID& GetIID() { static nsIID iid = NS_ISUPPORTSARRAY_IID; return iid; }
NS_IMETHOD_(nsISupportsArray&) operator=(const nsISupportsArray& other) = 0;
NS_IMETHOD_(PRBool) operator==(const nsISupportsArray& other) const = 0;
NS_IMETHOD_(PRBool) Equals(const nsISupportsArray* other) const = 0;
NS_IMETHOD_(nsISupports*) ElementAt(PRUint32 aIndex) const = 0;
NS_IMETHOD_(nsISupports*) operator[](PRUint32 aIndex) const = 0;
NS_IMETHOD_(PRInt32) IndexOf(const nsISupports* aPossibleElement, PRUint32 aStartIndex = 0) const = 0;
NS_IMETHOD_(PRInt32) LastIndexOf(const nsISupports* aPossibleElement) const = 0;
NS_IMETHOD_(PRBool) InsertElementAt(nsISupports* aElement, PRUint32 aIndex) = 0;
NS_IMETHOD_(PRBool) ReplaceElementAt(nsISupports* aElement, PRUint32 aIndex) = 0;
NS_IMETHOD_(PRBool) RemoveElementAt(PRUint32 aIndex) = 0;
NS_IMETHOD_(PRBool) RemoveLastElement(const nsISupports* aElement) = 0;
NS_IMETHOD_(PRBool) AppendElements(nsISupportsArray* aElements) = 0;
NS_IMETHOD_(void) Compact(void) = 0;
NS_IMETHOD_(PRBool) EnumerateForwards(nsISupportsArrayEnumFunc aFunc, void* aData) const = 0;
NS_IMETHOD_(PRBool) EnumerateBackwards(nsISupportsArrayEnumFunc aFunc, void* aData) const = 0;
private:
// Copy constructors are not allowed
// XXX test whether this has to be here nsISupportsArray(const nsISupportsArray& other);
};
// Construct and return a default implementation of nsISupportsArray:
extern NS_COM nsresult
NS_NewISupportsArray(nsISupportsArray** aInstancePtrResult);
// Construct and return a default implementation of an enumerator for nsISupportsArrays:
extern NS_COM nsresult
NS_NewISupportsArrayEnumerator(nsISupportsArray* array,
nsIBidirectionalEnumerator* *aInstancePtrResult);
#endif // nsISupportsArray_h___

View File

@@ -1,557 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef __nsISupportsUtils_h
#define __nsISupportsUtils_h
/**
* A macro to build the static const IID accessor method
*/
#define NS_DEFINE_STATIC_IID_ACCESSOR(the_iid) \
static const nsIID& GetIID() {static nsIID iid = the_iid; return iid;}
/**
* A macro to build the static const CID accessor method
*/
#define NS_DEFINE_STATIC_CID_ACCESSOR(the_cid) \
static const nsID& GetCID() {static nsID cid = the_cid; return cid;}
/**
* Some convenience macros for implementing AddRef and Release
*/
/**
* Declare the reference count variable and the implementations of the
* AddRef and QueryInterface methods.
*/
#define NS_DECL_ISUPPORTS \
public: \
NS_IMETHOD QueryInterface(REFNSIID aIID, \
void** aInstancePtr); \
NS_IMETHOD_(nsrefcnt) AddRef(void); \
NS_IMETHOD_(nsrefcnt) Release(void); \
protected: \
nsrefcnt mRefCnt; \
public:
#define NS_DECL_ISUPPORTS_EXPORTED \
public: \
NS_EXPORT NS_IMETHOD QueryInterface(REFNSIID aIID, \
void** aInstancePtr); \
NS_EXPORT NS_IMETHOD_(nsrefcnt) AddRef(void); \
NS_EXPORT NS_IMETHOD_(nsrefcnt) Release(void); \
protected: \
nsrefcnt mRefCnt; \
public:
////////////////////////////////////////////////////////////////////////////////
/**
* Initialize the reference count variable. Add this to each and every
* constructor you implement.
*/
#define NS_INIT_REFCNT() mRefCnt = 0
#define NS_INIT_ISUPPORTS() NS_INIT_REFCNT() // what it should have been called in the first place
/**
* Use this macro to implement the AddRef method for a given <i>_class</i>
* @param _class The name of the class implementing the method
*/
#define NS_IMPL_ADDREF(_class) \
NS_IMETHODIMP_(nsrefcnt) _class::AddRef(void) \
{ \
NS_PRECONDITION(PRInt32(mRefCnt) >= 0, "illegal refcnt"); \
return ++mRefCnt; \
}
/**
* Use this macro to implement the Release method for a given <i>_class</i>
* @param _class The name of the class implementing the method
*/
#define NS_IMPL_RELEASE(_class) \
NS_IMETHODIMP_(nsrefcnt) _class::Release(void) \
{ \
NS_PRECONDITION(0 != mRefCnt, "dup release"); \
if (--mRefCnt == 0) { \
NS_DELETEXPCOM(this); \
return 0; \
} \
return mRefCnt; \
}
////////////////////////////////////////////////////////////////////////////////
/*
* Some convenience macros for implementing QueryInterface
*/
/**
* This implements query interface with two assumptions: First, the
* class in question implements nsISupports and it's own interface and
* nothing else. Second, the implementation of the class's primary
* inheritance chain leads to it's own interface.
*
* @param _class The name of the class implementing the method
* @param _classiiddef The name of the #define symbol that defines the IID
* for the class (e.g. NS_ISUPPORTS_IID)
*/
#define NS_IMPL_QUERY_INTERFACE(_class,_classiiddef) \
NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \
{ \
if (NULL == aInstancePtr) { \
return NS_ERROR_NULL_POINTER; \
} \
\
*aInstancePtr = NULL; \
\
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); \
static NS_DEFINE_IID(kClassIID, _classiiddef); \
if (aIID.Equals(kClassIID)) { \
*aInstancePtr = (void*) this; \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
if (aIID.Equals(kISupportsIID)) { \
*aInstancePtr = (void*) ((nsISupports*)this); \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
return NS_NOINTERFACE; \
}
/**
* Convenience macro for implementing all nsISupports methods for
* a simple class.
* @param _class The name of the class implementing the method
* @param _classiiddef The name of the #define symbol that defines the IID
* for the class (e.g. NS_ISUPPORTS_IID)
*/
#define NS_IMPL_ISUPPORTS(_class,_classiiddef) \
NS_IMPL_ADDREF(_class) \
NS_IMPL_RELEASE(_class) \
NS_IMPL_QUERY_INTERFACE(_class,_classiiddef)
////////////////////////////////////////////////////////////////////////////////
/**
* Declare that you're going to inherit from something that already
* implements nsISupports, but also implements an additional interface, thus
* causing an ambiguity. In this case you don't need another mRefCnt, you
* just need to forward the definitions to the appropriate superclass. E.g.
*
* class Bar : public Foo, public nsIBar { // both provide nsISupports
* public:
* NS_DECL_ISUPPORTS_INHERITED
* ...other nsIBar and Bar methods...
* };
*/
#define NS_DECL_ISUPPORTS_INHERITED \
public: \
NS_IMETHOD QueryInterface(REFNSIID aIID, \
void** aInstancePtr); \
NS_IMETHOD_(nsrefcnt) AddRef(void); \
NS_IMETHOD_(nsrefcnt) Release(void); \
/**
* These macros can be used in conjunction with NS_DECL_ISUPPORTS_INHERITED
* to implement the nsISupports methods, forwarding the invocations to a
* superclass that already implements nsISupports.
*
* Note that I didn't make these inlined because they're virtual methods.
*/
#define NS_IMPL_ADDREF_INHERITED(Class, Super) \
NS_IMETHODIMP_(nsrefcnt) Class::AddRef(void) \
{ \
return Super::AddRef(); \
} \
#define NS_IMPL_RELEASE_INHERITED(Class, Super) \
NS_IMETHODIMP_(nsrefcnt) Class::Release(void) \
{ \
return Super::Release(); \
} \
#define NS_IMPL_QUERY_INTERFACE_INHERITED(Class, Super, AdditionalInterface) \
NS_IMETHODIMP Class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \
{ \
if (!aInstancePtr) return NS_ERROR_NULL_POINTER; \
if (aIID.Equals(AdditionalInterface::GetIID())) { \
*aInstancePtr = NS_STATIC_CAST(AdditionalInterface*, this); \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
return Super::QueryInterface(aIID, aInstancePtr); \
} \
#define NS_IMPL_ISUPPORTS_INHERITED(Class, Super, AdditionalInterface) \
NS_IMPL_QUERY_INTERFACE_INHERITED(Class, Super, AdditionalInterface) \
NS_IMPL_ADDREF_INHERITED(Class, Super) \
NS_IMPL_RELEASE_INHERITED(Class, Super) \
////////////////////////////////////////////////////////////////////////////////
/**
*
* Threadsafe implementations of the ISupports convenience macros
*
*/
/**
* IID for the nsIsThreadsafe interface
* {88210890-47a6-11d2-bec3-00805f8a66dc}
*
* This interface is *only* used for debugging purposes to determine if
* a given component is threadsafe.
*/
#define NS_ISTHREADSAFE_IID \
{ 0x88210890, 0x47a6, 0x11d2, \
{0xbe, 0xc3, 0x00, 0x80, 0x5f, 0x8a, 0x66, 0xdc} }
#if defined(NS_MT_SUPPORTED)
#define NS_LOCK_INSTANCE() \
PR_CEnterMonitor((void*)this)
#define NS_UNLOCK_INSTANCE() \
PR_CExitMonitor((void*)this)
/**
* Use this macro to implement the AddRef method for a given <i>_class</i>
* @param _class The name of the class implementing the method
*/
#if defined(XP_PC)
#define NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMETHODIMP_(nsrefcnt) _class::AddRef(void) \
{ \
NS_PRECONDITION(PRInt32(mRefCnt) >= 0, "illegal refcnt"); \
return InterlockedIncrement((LONG*)&mRefCnt); \
}
#else /* ! XP_PC */
#define NS_IMPL_THREADSAFE_ADDREF(_class) \
nsrefcnt _class::AddRef(void) \
{ \
nsrefcnt count; \
NS_LOCK_INSTANCE(); \
NS_PRECONDITION(PRInt32(mRefCnt) >= 0, "illegal refcnt"); \
count = ++mRefCnt; \
NS_UNLOCK_INSTANCE(); \
return count; \
}
#endif /* ! XP_PC */
/**
* Use this macro to implement the Release method for a given <i>_class</i>
* @param _class The name of the class implementing the method
*/
#if defined(XP_PC)
#define NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMETHODIMP_(nsrefcnt) _class::Release(void) \
{ \
NS_PRECONDITION(0 != mRefCnt, "dup release"); \
if (0 == InterlockedDecrement((LONG*)&mRefCnt)) { \
NS_DELETEXPCOM(this); \
return 0; \
} \
return mRefCnt; /* Not threadsafe but who cares. */ \
}
#else /* ! XP_PC */
#define NS_IMPL_THREADSAFE_RELEASE(_class) \
nsrefcnt _class::Release(void) \
{ \
nsrefcnt count; \
NS_PRECONDITION(0 != mRefCnt, "dup release"); \
NS_LOCK_INSTANCE(); \
count = --mRefCnt; \
NS_UNLOCK_INSTANCE(); \
if (0 == count) { \
NS_DELETEXPCOM(this); \
return 0; \
} \
return count; \
}
#endif /* ! XP_PC */
////////////////////////////////////////////////////////////////////////////////
/*
* Some convenience macros for implementing QueryInterface
*/
/**
* This implements query interface with two assumptions: First, the
* class in question implements nsISupports and it's own interface and
* nothing else. Second, the implementation of the class's primary
* inheritance chain leads to it's own interface.
*
* @param _class The name of the class implementing the method
* @param _classiiddef The name of the #define symbol that defines the IID
* for the class (e.g. NS_ISUPPORTS_IID)
*/
#if defined(NS_DEBUG)
#define NS_VERIFY_THREADSAFE_INTERFACE(_iface) \
if (NULL != (_iface)) { \
nsISupports* tmp; \
static NS_DEFINE_IID(kIsThreadsafeIID, NS_ISTHREADSAFE_IID); \
NS_PRECONDITION((NS_OK == _iface->QueryInterface(kIsThreadsafeIID, \
(void**)&tmp)), \
"Interface is not threadsafe"); \
}
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE(_class,_classiiddef) \
NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \
{ \
if (NULL == aInstancePtr) { \
return NS_ERROR_NULL_POINTER; \
} \
\
*aInstancePtr = NULL; \
\
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); \
static NS_DEFINE_IID(kIsThreadsafeIID, NS_ISTHREADSAFE_IID); \
static NS_DEFINE_IID(kClassIID, _classiiddef); \
if (aIID.Equals(kClassIID)) { \
*aInstancePtr = (void*) this; \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
if (aIID.Equals(kISupportsIID)) { \
*aInstancePtr = (void*) ((nsISupports*)this); \
NS_ADDREF_THIS(); \
return NS_OK; \
} \
if (aIID.Equals(kIsThreadsafeIID)) { \
return NS_OK; \
} \
return NS_NOINTERFACE; \
}
#else /* !NS_DEBUG */
#define NS_VERIFY_THREADSAFE_INTERFACE(_iface)
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE(_class,_classiiddef) \
NS_IMPL_QUERY_INTERFACE(_class, _classiiddef)
#endif /* !NS_DEBUG */
/**
* Convenience macro for implementing all nsISupports methods for
* a simple class.
* @param _class The name of the class implementing the method
* @param _classiiddef The name of the #define symbol that defines the IID
* for the class (e.g. NS_ISUPPORTS_IID)
*/
#define NS_IMPL_THREADSAFE_ISUPPORTS(_class,_classiiddef) \
NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMPL_THREADSAFE_QUERY_INTERFACE(_class,_classiiddef)
#else /* !NS_MT_SUPPORTED */
#define NS_LOCK_INSTANCE()
#define NS_UNLOCK_INSTANCE()
#define NS_IMPL_THREADSAFE_ADDREF(_class) NS_IMPL_ADDREF(_class)
#define NS_IMPL_THREADSAFE_RELEASE(_class) NS_IMPL_RELEASE(_class)
#define NS_VERIFY_THREADSAFE_INTERFACE(_iface)
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE(_class,_classiiddef) \
NS_IMPL_QUERY_INTERFACE(_class, _classiiddef)
#define NS_IMPL_THREADSAFE_ISUPPORTS(_class,_classiiddef) \
NS_IMPL_ADDREF(_class) \
NS_IMPL_RELEASE(_class) \
NS_IMPL_QUERY_INTERFACE(_class,_classiiddef)
#endif /* !NS_MT_SUPPORTED */
////////////////////////////////////////////////////////////////////////////////
// Debugging Macros
////////////////////////////////////////////////////////////////////////////////
/**
* Macro for instantiating a new object that implements nsISupports.
* Use this in your factory methods to allow for refcnt tracing.
* Note that you can only use this if you adhere to the no arguments
* constructor com policy (which you really should!).
* @param _result Where the new instance pointer is stored
* @param _type The type of object to call "new" with.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_NEWXPCOM(_result,_type) \
PR_BEGIN_MACRO \
_result = new _type(); \
nsTraceRefcnt::Create(_result, #_type, __FILE__, __LINE__); \
PR_END_MACRO
#else
#define NS_NEWXPCOM(_result,_type) \
_result = new _type()
#endif
/**
* Macro for deleting an object that implements nsISupports.
* Use this in your Release methods to allow for refcnt tracing.
* @param _ptr The object to delete.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_DELETEXPCOM(_ptr) \
PR_BEGIN_MACRO \
nsTraceRefcnt::Destroy((_ptr), __FILE__, __LINE__); \
delete (_ptr); \
PR_END_MACRO
#else
#define NS_DELETEXPCOM(_ptr) \
delete (_ptr)
#endif
/**
* Macro for adding a reference to an interface.
* @param _ptr The interface pointer.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_ADDREF(_ptr) \
((nsrefcnt) nsTraceRefcnt::AddRef((_ptr), (_ptr)->AddRef(), \
__FILE__, __LINE__))
#else
#define NS_ADDREF(_ptr) \
(_ptr)->AddRef()
#endif
/**
* Macro for adding a reference to this. This macro should be used
* because NS_ADDREF (when tracing) may require an ambiguous cast
* from the pointers primary type to nsISupports. This macro sidesteps
* that entire problem.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_ADDREF_THIS() \
((nsrefcnt) nsTraceRefcnt::AddRef(this, AddRef(), __FILE__, __LINE__))
#else
#define NS_ADDREF_THIS() \
AddRef()
#endif
/**
* Macro for adding a reference to an interface that checks for NULL.
* @param _ptr The interface pointer.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_IF_ADDREF(_ptr) \
((0 != (_ptr)) \
? ((nsrefcnt) nsTraceRefcnt::AddRef((_ptr), (_ptr)->AddRef(), __FILE__, \
__LINE__)) \
: 0)
#else
#define NS_IF_ADDREF(_ptr) \
((0 != (_ptr)) ? (_ptr)->AddRef() : 0)
#endif
/**
* Macro for releasing a reference to an interface.
*
* Note that when MOZ_TRACE_XPCOM_REFCNT is defined that the release will
* be done before the trace message is logged. If the reference count
* goes to zero and implementation of Release logs a message, the two
* messages will be logged out of order.
*
* @param _ptr The interface pointer.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_RELEASE(_ptr) \
PR_BEGIN_MACRO \
nsTraceRefcnt::Release((_ptr), (_ptr)->Release(), __FILE__, __LINE__); \
(_ptr) = 0; \
PR_END_MACRO
#else
#define NS_RELEASE(_ptr) \
PR_BEGIN_MACRO \
(_ptr)->Release(); \
(_ptr) = 0; \
PR_END_MACRO
#endif
/**
* Macro for releasing a reference to an interface, except that this
* macro preserves the return value from the underlying Release call.
* The interface pointer argument will only be NULLed if the reference count
* goes to zero.
*
* Note that when MOZ_TRACE_XPCOM_REFCNT is defined that the release will
* be done before the trace message is logged. If the reference count
* goes to zero and implementation of Release logs a message, the two
* messages will be logged out of order.
*
* @param _ptr The interface pointer.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_RELEASE2(_ptr, _result) \
PR_BEGIN_MACRO \
_result = ((nsrefcnt) nsTraceRefcnt::Release((_ptr), (_ptr)->Release(), \
__FILE__, __LINE__)); \
if (0 == (_result)) (_ptr) = 0; \
PR_END_MACRO
#else
#define NS_RELEASE2(_ptr, _result) \
PR_BEGIN_MACRO \
_result = (_ptr)->Release(); \
if (0 == (_result)) (_ptr) = 0; \
PR_END_MACRO
#endif
/**
* Macro for releasing a reference to an interface that checks for NULL;
*
* Note that when MOZ_TRACE_XPCOM_REFCNT is defined that the release will
* be done before the trace message is logged. If the reference count
* goes to zero and implementation of Release logs a message, the two
* messages will be logged out of order.
*
* @param _ptr The interface pointer.
*/
#ifdef MOZ_TRACE_XPCOM_REFCNT
#define NS_IF_RELEASE(_ptr) \
PR_BEGIN_MACRO \
((0 != (_ptr)) \
? ((nsrefcnt) nsTraceRefcnt::Release((_ptr), (_ptr)->Release(), \
__FILE__, __LINE__)) \
: 0); \
(_ptr) = 0; \
PR_END_MACRO
#else
#define NS_IF_RELEASE(_ptr) \
PR_BEGIN_MACRO \
((0 != (_ptr)) ? (_ptr)->Release() : 0); \
(_ptr) = 0; \
PR_END_MACRO
#endif
////////////////////////////////////////////////////////////////////////////////
#endif /* __nsISupportsUtils_h */

View File

@@ -1,164 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifdef XP_MAC
#ifdef MOZ_NGLAYOUT
#error "nsMacRepository.h became obsolete when the shared lib conversion was completed."
// The Mac NGLayout is not based on shared libraries yet.
// All the DLLs are built as static libraries and we present them as
// shared libraries by redefining PR_LoadLibrary(), PR_UnloadLibrary()
// and PR_FindSymbol() below.
//
// If you add or remove shared libraries on other platforms, you must
// - Add the library name to the defines below.
// - Rename the "NSGetFactory" and "NSCanUnload" procs for the Mac:
// just append the library name to the function name.
// - Add the library and its procs to the static list below.
typedef struct MacLibrary
{
char * name;
nsFactoryProc factoryProc;
nsCanUnloadProc unloadProc;
} MacLibrary;
// library names
#define WIDGET_DLL "WIDGET_DLL"
#define GFXWIN_DLL "GFXWIN_DLL"
#define VIEW_DLL "VIEW_DLL"
#define WEB_DLL "WEB_DLL"
#define PLUGIN_DLL "PLUGIN_DLL"
#define PREF_DLL "PREF_DLL"
#define PARSER_DLL "PARSER_DLL"
#define DOM_DLL "DOM_DLL"
#define LAYOUT_DLL "LAYOUT_DLL"
#define NETLIB_DLL "NETLIB_DLL"
#define EDITOR_DLL "EDITOR_DLL"
#ifdef IMPL_MAC_REPOSITORY
extern "C" nsresult NSGetFactory_WIDGET_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_GFXWIN_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_VIEW_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_WEB_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
#if 0
extern "C" nsresult NSGetFactory_PLUGIN_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
#endif
extern "C" nsresult NSGetFactory_PREF_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_PARSER_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_DOM_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_LAYOUT_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_NETLIB_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" nsresult NSGetFactory_EDITOR_DLL(nsISupports* serviceMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory);
extern "C" PRBool NSCanUnload_PREF_DLL(void);
// library list
static MacLibrary libraries[] = {
#if 0
WIDGET_DLL, NSGetFactory_WIDGET_DLL, NULL,
GFXWIN_DLL, NSGetFactory_GFXWIN_DLL, NULL,
VIEW_DLL, NSGetFactory_VIEW_DLL, NULL,
WEB_DLL, NSGetFactory_WEB_DLL, NULL,
//PLUGIN_DLL, NSGetFactory_PLUGIN_DLL, NULL,
PREF_DLL, NSGetFactory_PREF_DLL, NSCanUnload_PREF_DLL,
PARSER_DLL, NSGetFactory_PARSER_DLL, NULL,
DOM_DLL, NSGetFactory_DOM_DLL, NULL,
LAYOUT_DLL, NSGetFactory_LAYOUT_DLL, NULL,
NETLIB_DLL, NSGetFactory_NETLIB_DLL, NULL,
//EDITOR_DLL, NSGetFactory_EDITOR_DLL, NULL, // FIX ME
#endif
NULL
};
static void* FindMacSymbol(char* libName, const char *symbolName)
{
MacLibrary * macLib;
for (macLib = libraries; ; macLib ++)
{
if (macLib->name == NULL)
return NULL;
if (PL_strcmp(macLib->name, libName) == 0)
break;
}
if (PL_strcmp(symbolName, "NSGetFactory") == 0) {
return macLib->factoryProc;
}
else if (PL_strcmp(symbolName, "NSCanUnload") == 0) {
return macLib->unloadProc;
}
return NULL;
}
#define PR_LoadLibrary(libName) (PRLibrary *)libName
#define PR_UnloadLibrary(lib) lib = NULL
#define PR_FindSymbol(lib, symbolName) FindMacSymbol((char*)lib, symbolName)
#endif // IMPL_MAC_REPOSITORY
#endif // MOZ_NGLAYOUT
#endif // XP_MAC

View File

@@ -1,67 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef __nsProxyEvent_h_
#define __nsProxyEvent_h_
#include "nsISupports.h"
#include "plevent.h"
PR_BEGIN_EXTERN_C
typedef void (*nsProxyMethodHandler)(nsISupports *, void *);
struct nsProxyEvent {
/* must be the first entry in this structure so that
* a nsProxyEvent* is compatible with a PLEvent* */
PLEvent e;
nsIID* iid; /* sanity check, make
sure we have the right interface */
nsISupports *realObject; /* the non-proxy object that this
event is referring to */
PLEventQueue *destQueue; /* destination queue */
nsProxyMethodHandler methodHandler; /* which method was called? */
void *paramBuffer; /* marshalled parameter buffer */
};
nsProxyEvent *nsProxyEventCreate(PLEventQueue *, nsISupports *,
nsProxyMethodHandler, int);
nsresult nsProxyEventPost(PLEventQueue *eventQueue,
nsProxyEvent *event);
/* utility routines */
void* nsProxyEventHandler(PLEvent *self);
void nsProxyEventDestroyHandler(PLEvent *self);
#define NS_DECL_PROXY(_class, _interface) \
public: \
_class(PLEventQueue *, _interface *); \
private: \
PLEventQueue* m_eventQueue; \
_interface *m_realObject; \
public:
#define NS_IMPL_PROXY(_class, _interface)\
_class::_class(PLEventQueue *eventQueue, _interface *realObject) {\
m_eventQueue = eventQueue;\
m_realObject = realObject;\
}\
PR_END_EXTERN_C
#endif

View File

@@ -1,28 +0,0 @@
/* -*- 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 "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef __nsRespository_h
#define __nsRespository_h
#include "nsIComponentManager.h"
// XXX nsRepository is obsolete! Use nsComponentManager now!
#define nsRepository nsComponentManager
#endif

View File

@@ -1,61 +0,0 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef nsTraceRefcnt_h___
#define nsTraceRefcnt_h___
#include "nsCom.h"
/**
* This class is used to support tracing (and logging using nspr) of
* addref and release calls. Note that only calls that use the
* NS_ADDREF and related macros in nsISupports can be traced.
*
* The name of the nspr log module is "xpcomrefcnt" (case matters).
*
* This code only performs tracing built with debugging AND when
* built with -DMOZ_TRACE_XPCOM_REFCNT (because it's expensive!).
*/
class nsTraceRefcnt {
public:
static NS_COM unsigned long AddRef(void* aPtr,
unsigned long aNewRefcnt,
const char* aFile,
int aLine);
static NS_COM unsigned long Release(void* aPtr,
unsigned long aNewRefcnt,
const char* aFile,
int aLine);
static NS_COM void Create(void* aPtr,
const char* aType,
const char* aFile,
int aLine);
static NS_COM void Destroy(void* aPtr,
const char* aFile,
int aLine);
static NS_COM void LoadLibrarySymbols(const char* aLibraryName,
void* aLibrayHandle);
static NS_COM void WalkTheStack(char* aBuffer, int aBufLen);
};
#endif /* nsTraceRefcnt_h___ */

View File

@@ -1,74 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsVector_h__
#define nsVector_h__
#include "plvector.h"
#include "nsCom.h"
class nsVector : public PLVector {
public:
// Construction
nsVector(PRUint32 initialSize = 0, PRInt32 initialGrowBy = 0) {
PL_VectorInitialize(this, initialSize, initialGrowBy);
}
~nsVector(void) { PL_VectorFinalize(this); }
// Attributes
PRUint32 GetSize(void) const { return PL_VectorGetSize(this); }
PRUint32 GetUpperBound(void) const { return GetSize() - 1; }
PRBool SetSize(PRUint32 nNewSize, PRInt32 nGrowBy = PL_VECTOR_GROW_DEFAULT) {
return PL_VectorSetSize(this, nNewSize, nGrowBy);
}
PRBool IsValidIndex(PRUint32 index) { return PL_VectorIsValidIndex(this, index); }
// Operations
// Clean up
void Compact(void) { PL_VectorCompact(this); }
void RemoveAll(void) { SetSize(0); }
void Copy(nsVector* src, PRUint32 len, PRUint32 dstPos = 0, PRUint32 srcPos = 0) {
PL_VectorCopy(this, dstPos, src, srcPos, len);
}
// Accessing elements
void* Get(PRUint32 index) const { return PL_VectorGet(this, index); }
void Set(PRUint32 index, void* newElement) { PL_VectorSet(this, index, newElement); }
void*& ElementAt(PRUint32 index) { return *PL_VectorGetAddr(this, index); }
// Potentially growing the array
PRInt32 Add(void* newElement) { return PL_VectorAdd(this, newElement); }
// overloaded operator helpers
void* operator[](PRUint32 index) const { return Get(index); }
void*& operator[](PRUint32 index) { return ElementAt(index); }
// Operations that move elements around
void Insert(PRUint32 index, void* newElement, PRInt32 count = 1) {
PL_VectorInsert(this, index, newElement, count);
}
void Remove(PRUint32 index, PRInt32 count = 1) {
PL_VectorRemove(this, index, count);
}
#ifdef DEBUG
void AssertValid(void) const { PL_VectorAssertValid((PLVector*)this); }
#endif
};
#endif

Some files were not shown because too many files have changed in this diff Show More