Compare commits

..

446 Commits

Author SHA1 Message Date
edburns%acm.org
f75864d2ea Use rm -f instead of del /q
git-svn-id: svn://10.0.0.236/branches/JAVADEV_6_1_20010831@105305 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-12 23:27:59 +00:00
edburns%acm.org
a853a72847 bug: 100964
No reviewer.


git-svn-id: svn://10.0.0.236/branches/JAVADEV_6_1_20010831@103667 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 00:23:36 +00:00
edburns%acm.org
a850c63a19 wc_share should be static lib.
git-svn-id: svn://10.0.0.236/branches/JAVADEV_6_1_20010831@103524 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-22 01:10:26 +00:00
edburns%acm.org
cb677db0ef Correctly build the packages on Linux.
git-svn-id: svn://10.0.0.236/branches/JAVADEV_6_1_20010831@103106 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-18 21:23:36 +00:00
edburns%acm.org
9ace584607 For some reason, blackconnectjni was left out.
git-svn-id: svn://10.0.0.236/branches/JAVADEV_6_1_20010831@103102 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-18 18:33:42 +00:00
edburns%acm.org
cfb73dbc2b Removed space that botched classpath.
git-svn-id: svn://10.0.0.236/branches/JAVADEV_6_1_20010831@103100 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-18 17:58:34 +00:00
edburns%acm.org
204d0c2246 Updated to successfully produce an installable XPI on win32.
git-svn-id: svn://10.0.0.236/branches/JAVADEV_6_1_20010831@102963 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-15 00:49:23 +00:00
edburns%acm.org
9274a7d631 bug=99188
r=ashuk
a=edburns
This fix re-implements the "prompt for cookies" dialog, by implementing
the CBrowserContainer::ConfirmEx() method.  UniversalDialog was
deprecated, but there is no need to change the webclient API.


 Modified Files:
  Tag: JAVADEV_6_1_20010831
 	CBrowserContainer.cpp PromptActionEvents.cpp ns_util.cpp
 	ns_util.h


git-svn-id: svn://10.0.0.236/branches/JAVADEV_6_1_20010831@102851 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-12 23:40:20 +00:00
edburns%acm.org
46a13d11cf JDK1.4 doesn't have -native, and we don't need it anymore anyway.
git-svn-id: svn://10.0.0.236/branches/JAVADEV_6_1_20010831@102682 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 22:27:58 +00:00
edburns%acm.org
8a5d7a822e 99099
r=ashuk
a=edburns
Don't use the fact that we can instantiate sun.awt.*.*DrawingSurfaceInfo as
the way to tell what platform we're on.  Instead use the value of the os.name
system property.


git-svn-id: svn://10.0.0.236/branches/JAVADEV_6_1_20010831@102671 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 21:42:14 +00:00
(no author)
b414c78592 This commit was manufactured by cvs2svn to create branch
'JAVADEV_6_1_20010831'.

git-svn-id: svn://10.0.0.236/branches/JAVADEV_6_1_20010831@101796 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 04:53:45 +00:00
idk%eng.sun.com
1ad1e1d4db *not part of the build*
fix for 96935


git-svn-id: svn://10.0.0.236/trunk@101795 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 04:53:44 +00:00
jaggernaut%netscape.com
a1a0a0cbee One more for the speedracer bustage fix.
The problem is that the generated header contains the following bit:
  enum { MODIFICATION = 1U };
  enum { ADDITION = 2U };
  enum { REMOVAL = 3U };

So to speedracer's compiler, this line signals a potential programmer error:

PRInt32 modHint = modification ? nsIDOMMutationEvent::MODIFICATION : nsIDOMMutationEvent::ADDITION;

Apparently they value it like an error and not a warning.


git-svn-id: svn://10.0.0.236/trunk@101794 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 04:34:17 +00:00
jaggernaut%netscape.com
7dc4004e58 Fixing speedracer bustage. Not sure I like this, nor the reason why there's bustage in the first place. *grmbl*
git-svn-id: svn://10.0.0.236/trunk@101793 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 04:22:47 +00:00
jaggernaut%netscape.com
8f20bc9b54 Part of bug 95475.
git-svn-id: svn://10.0.0.236/trunk@101792 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 04:01:46 +00:00
jaggernaut%netscape.com
458c212d8b Fixing mac bustage.
git-svn-id: svn://10.0.0.236/trunk@101791 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 03:52:11 +00:00
racham%netscape.com
b802204244 Fixing bugs 84821 and 86992. Outgoing server panels are updated with correct user and server names instead of null values. Copies and Folders panel now fits all elements properly. r=ssu,naving sr=sspitzer a=roc+moz
git-svn-id: svn://10.0.0.236/trunk@101790 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 02:38:31 +00:00
hyatt%netscape.com
45af3d476f Fix for 95475. r=jag, sr=ben, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101789 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 02:31:56 +00:00
hyatt%netscape.com
4f51638ef4 Fix for 95475. r=jag, sr=ben, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101788 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 02:01:08 +00:00
idk%eng.sun.com
ad7d96c999 *not part of the build*
fix for 93888
a = ovk@sparc.spb.su
    jonsmirl@mediaone.net
r = jaggernaut@netscape.com
    idk@eng.sun.com


git-svn-id: svn://10.0.0.236/trunk@101787 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 01:32:15 +00:00
naving%netscape.com
4f4514acd4 95607 r=hwaara sr=bienvenu a=asa. Use nsCAutoString to avoid freeing mismatched memory.
git-svn-id: svn://10.0.0.236/trunk@101786 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 01:28:31 +00:00
pinkerton%netscape.com
82d4d6c55e remove #ifndef TARGET_CARBON since it's not needed. r=pchen/sr=sfraser/a=dbaron. bug# 96907.
git-svn-id: svn://10.0.0.236/trunk@101785 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 01:25:42 +00:00
mcafee%netscape.com
8b9153c578 startup test note
git-svn-id: svn://10.0.0.236/trunk@101784 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 01:09:38 +00:00
despotdaemon%netscape.com
9602278e24 Pseudo-automatic update of changes made by bmartin@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@101783 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 00:14:41 +00:00
jake%acutex.net
a4afec26d3 Fix for bug 95634 - Improvements to Param('voteremovedmail')
Patch by Matthew Tuck <matty@chariot.net.au>
r= jake@acutex.net


git-svn-id: svn://10.0.0.236/trunk@101782 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 00:12:12 +00:00
despotdaemon%netscape.com
641bfa7ace Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@101781 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 00:01:40 +00:00
vidur%netscape.com
bf7046a35b Fix for bug 96517. Fixing typo in NS_ISUPPORTS_IMPL_CI macros. r/sr=jband, brendan
git-svn-id: svn://10.0.0.236/trunk@101780 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 23:59:59 +00:00
darin%netscape.com
05e092f2d0 fixes bug 47041 "Unable to unregister an HTTP Notify listener"
r=bbaetz, sr=dougt, a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@101779 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 22:27:06 +00:00
darin%netscape.com
556ee0cf4a fixes bug 95981 "Changes in background images on pages do not show on reload"
r/sr=rpotts,dougt a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@101778 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 22:24:10 +00:00
morse%netscape.com
a2f243cd9c bug 92387, alignment problems in cookie and form manager, r=gemal, sr=hewitt, a=asa
git-svn-id: svn://10.0.0.236/trunk@101777 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 21:36:45 +00:00
ssu%netscape.com
4802a7cbda fixing bug 96801 - Win32 installer fails to detect if older mozilla is running. r=dveditz, sr=mscott, a=drivers@mozilla.org. not part of tinderbox builds. affects only windows platforms.
git-svn-id: svn://10.0.0.236/trunk@101776 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 21:32:29 +00:00
relyea%netscape.com
193baf4505 Land new PKCS #11 initialization code.
git-svn-id: svn://10.0.0.236/trunk@101775 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 21:16:48 +00:00
relyea%netscape.com
56a53bf5c3 Fix memory leak
git-svn-id: svn://10.0.0.236/trunk@101774 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 21:15:52 +00:00
av%netscape.com
47e21da3e9 Fixing 96528 -- crash on File/Exit with full page xpcom plugin, r=peterl, sr=attinasi, a=asa
git-svn-id: svn://10.0.0.236/trunk@101773 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 21:08:25 +00:00
av%netscape.com
0fc41edefe Adding missing file to the sample project, not part of the build
git-svn-id: svn://10.0.0.236/trunk@101772 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 21:03:50 +00:00
depstein%netscape.com
9f45520438 updated nsISHistory methods.
git-svn-id: svn://10.0.0.236/trunk@101771 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 21:03:15 +00:00
depstein%netscape.com
64dabd5a03 updating nsISHistory and nsIWebNav tests.
git-svn-id: svn://10.0.0.236/trunk@101770 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 20:05:45 +00:00
radha%netscape.com
328c8aa401 Fix for bug # 94926. assert in nsDocShell::SetTitle() r=adamlock sr=rpotts a=asa
git-svn-id: svn://10.0.0.236/trunk@101769 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 20:03:24 +00:00
nboyd%atg.com
e21b2a2198 Original problem in following mail. I implemented JDK1.1 compatibility and performance
improvements:

Subject:
        Rhino: Problem in NativeJavaMethod
   Date:
        Tue, 14 Aug 2001 10:23:35 +0200
   From:
        felix.meschberger@day.com
     To:
        Norris Boyd <nboyd@atg.com>




Hi Norris,

While working with wrapped Java classes we discovered a problem in
NativeJavaMethod : If the public method to be called is part of a
non-public class, the Sun Java VM throws an IllegalAccessException. This
bug in the Sun VM has been reported as Bug 4071593 to Sun, but has not been
resolved since....

I implemented a circumvention, for which I provide you the patch. I quickly
tested it, and it seems to work.

Regards
Felix

And here's the patch :

diff -w -r1.19 NativeJavaMethod.java
227a228,234
>        /**
>         * Due to a bug in Suns VM, public methods in private
>         * classes are not accessible by default (Sun Bug #4071593).
>         * We have to explicitly set the method accessible beforehand
>         */
>        meth.setAccessible(true);
>

-----------------------------------------------------------------
This message is a private communication. If you are not the intended
recipient, please do not read, copy, or use it, and do not disclose it
to others. Please notify the sender of the delivery error by replying to
this message, and then delete it from your system. Thank you.
The sender does not assume any liability for timely, trouble-free,
complete, virus free, secure, error free or uninterrupted arrival of
this e-mail. For verification please request a hard copy version.

mailto:felix.meschberger@day.com
http://www.day.com

Felix Meschberger
Development
Day Interactive AG
Steinenberg 21-23
4001 Basel
Switzerland

T  41 61 226 98 98
F  41 61 226 98 97


git-svn-id: svn://10.0.0.236/trunk@101768 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 20:01:49 +00:00
cmanske%netscape.com
c95183a711 Remove dialog utilities from editor c++ and nsIEditorShell interface (use nsIPromptService from JS instead). b=96649, r=brade, r=kin/sfraser, a=asa
git-svn-id: svn://10.0.0.236/trunk@101767 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 19:47:46 +00:00
mitesh%netscape.com
025e68f211 Fix for Bug 87661 - moving AutoConfig creation after reading of netscape.cfg
r=bnesse, sr=shaver and a=asa


git-svn-id: svn://10.0.0.236/trunk@101766 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 19:44:45 +00:00
cmanske%netscape.com
2bfa1db296 Fixed bad message dialog parent bug 96649, r=brade, sr=kin/sfraser, a=asa
git-svn-id: svn://10.0.0.236/trunk@101765 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 19:42:45 +00:00
chuang%netscape.com
e90eacf58d Bug96053 Executing a Query may not return an end-of-query,
fixed by john.marmion@ireland.sun.com., r=chuang, sr=mscott, a=asa


git-svn-id: svn://10.0.0.236/trunk@101764 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 19:34:50 +00:00
cmanske%netscape.com
beaee3a430 Fixed regression: Can't clear link via input field, b=96542, r=brade, sr=kin, a=asa
git-svn-id: svn://10.0.0.236/trunk@101763 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 19:32:36 +00:00
dsirnapalli%netscape.com
3ffab1967f renamed the image file.
git-svn-id: svn://10.0.0.236/trunk@101762 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 19:27:00 +00:00
mkaply%us.ibm.com
c5cc463b44 No bug
r=mkaply, a=asa for drivers
OS/2 ONLY - Code from Javier Pedemonte - more recovery from the libpr0n landing
This code makes all PNGs work and with it, all images should work on OS/2


git-svn-id: svn://10.0.0.236/trunk@101761 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 19:25:55 +00:00
jaggernaut%netscape.com
264679e48e Bug 96211: "Kill them darn js strict warnings", episode button.xml
Patch by Henrik Gemal <gemal@gemal.dk>, r=jag, sr=brendan, a=Asa


git-svn-id: svn://10.0.0.236/trunk@101760 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:54:28 +00:00
rpotts%netscape.com
da08e18b8e bug #96418 (r=valeski, sr=mscott). SaveAs dialog not shown when saving file...
git-svn-id: svn://10.0.0.236/trunk@101759 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:45:11 +00:00
brendan%mozilla.org
1fc56000f2 Fix all PL_strlen to be strlen, for 64-bit portability (shanmu's patch for 95838 generalized, sr=mscott&brendan, a=asa).
git-svn-id: svn://10.0.0.236/trunk@101758 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:38:30 +00:00
relyea%netscape.com
dadc39c1fb Memory leak fixes.
git-svn-id: svn://10.0.0.236/trunk@101757 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:34:34 +00:00
waterson%netscape.com
e9c570e73a Bug 96282. Make nsOutlinerRows::Last() work correctly when there are empty subtrees in the rows. r=varga, sr=kin, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101756 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:28:15 +00:00
relyea%netscape.com
fb609dc013 BLAPI is complete below the PKCS #11 line, so should not call high level initialization functions.
git-svn-id: svn://10.0.0.236/trunk@101755 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:21:09 +00:00
relyea%netscape.com
af9c01bd19 1) Open database RW if we are encrypting so that the SDR key can be created.
2) Return an error code if we fail to open the database.
3) Initialize the database if it wasn't already


git-svn-id: svn://10.0.0.236/trunk@101754 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:20:07 +00:00
justdave%syndicomm.com
21573c54a7 Fix for bug 95235: variables with untrusted content were being echoed back to the user in error messages. Those variables are now run through html_quote() first.
Patch by Gavin Shelley <gavins@iplbath.com>
r= justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@101751 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 17:32:25 +00:00
dbaron%fas.harvard.edu
15963ce5ed Fix FMR with a band-aid on top of a band-aid, at least until we figure this one out for real. b=93105 r=jag sr=attinasi a=asa
git-svn-id: svn://10.0.0.236/trunk@101750 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 14:00:49 +00:00
dbaron%fas.harvard.edu
96bf1bc30f Make LABEL act like an inline element rather than inline-block by removing lots of special (and not-well-tested) logic from nsLabelFrame and making it inherit from nsInlineFrame. This means LABEL will essentially always have 'display: inline', but it's hard to avoid that as long as form controls are implemented in frames rather than content. b=47149 r=rods sr=attinasi a=asa
git-svn-id: svn://10.0.0.236/trunk@101749 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 13:58:53 +00:00
dinglis%qnx.com
73f8705e3b NOT PART OF BUILD (Photon port only)
- added new prompt service
- new history resource.


git-svn-id: svn://10.0.0.236/trunk@101748 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 13:51:21 +00:00
bryner%netscape.com
5d1fb8258e Bug 85946 - file picker not resiz[e]able. Patch from colin@theblakes.com, r=bryner, sr=blake, a=asa.
git-svn-id: svn://10.0.0.236/trunk@101747 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 06:53:22 +00:00
bryner%netscape.com
5bb50b750e Bug 96434 - open folder in xp filepicker attempts a save instead of an open. r=jag, sr=shaver, a=dbaron.
git-svn-id: svn://10.0.0.236/trunk@101746 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 06:50:45 +00:00
nicolson%netscape.com
6b60ee7fd7 add getEncryptedPrivateKeyInfo.
git-svn-id: svn://10.0.0.236/trunk@101744 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 05:23:15 +00:00
nicolson%netscape.com
543f77a6c1 add NSPR wrapper around java socket.
git-svn-id: svn://10.0.0.236/trunk@101743 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 05:16:27 +00:00
nicolson%netscape.com
0996f8151f add types and ids for NSPR wrapper around java socket.
git-svn-id: svn://10.0.0.236/trunk@101742 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 05:15:18 +00:00
nicolson%netscape.com
4b77628768 Add getEncryptedPrivateKeyInfo.
git-svn-id: svn://10.0.0.236/trunk@101741 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 05:14:55 +00:00
nicolson%netscape.com
32327a46a2 add getEncryptedPrivateKeyInfo to CryptoStore.
git-svn-id: svn://10.0.0.236/trunk@101740 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 05:14:30 +00:00
syd%netscape.com
f503628d5c Add QuickLaunch panel to the installer. r=ssu,dveditz sr=mscott, a=asa. Bug is
87038


git-svn-id: svn://10.0.0.236/trunk@101739 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 05:00:02 +00:00
wtc%netscape.com
c263db4585 Bugzilla bug 94685: fixed compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@101738 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 03:52:23 +00:00
kaie%netscape.com
b01bbfd7f9 b=96696 r=kaie sr=darin a=dbaron
adding missing init code
checking in for bbaetz


git-svn-id: svn://10.0.0.236/trunk@101737 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 03:40:48 +00:00
brendan%mozilla.org
d72ef6fca0 Check keyword version when scanning, not by installing different keywords on version selection (when starting to compile; bug 96562, r=rogerl, sr=shaver&jband, a=dbaron).
git-svn-id: svn://10.0.0.236/trunk@101736 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 03:32:31 +00:00
sonmi%netscape.com
b9a1bf76d1 fixed typo
git-svn-id: svn://10.0.0.236/trunk@101735 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 01:11:58 +00:00
mcafee%netscape.com
16e058789c Fix for rh7.1/jvm1.3.0 hang bug
git-svn-id: svn://10.0.0.236/trunk@101734 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 01:02:07 +00:00
sonmi%netscape.com
9169523452 added p/f for generating objsign cert bug 96743
git-svn-id: svn://10.0.0.236/trunk@101733 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 23:41:16 +00:00
rginda%netscape.com
d27d8f9332 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
set default nickname so it'll get saved


git-svn-id: svn://10.0.0.236/trunk@101732 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 22:12:43 +00:00
radha%netscape.com
7c3783e94d Fox for bug # 90098 and 83684 r=valeski sr=rpotts a=asa
git-svn-id: svn://10.0.0.236/trunk@101731 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:56:38 +00:00
radha%netscape.com
e9ee2beb7a Fix for bug 84519 r=adamlock sr=rpotts a=asa. history.go(toofar) gives problems to back/forward buttons
git-svn-id: svn://10.0.0.236/trunk@101730 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:55:57 +00:00
rginda%netscape.com
5b2f4793ab ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
move most of the rules to content/output-base.css; remianing rules are simple text style changes


git-svn-id: svn://10.0.0.236/trunk@101729 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:45:58 +00:00
rginda%netscape.com
9e4f2a2314 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
make current tab bold
add spacers after 4th and 8th tab so they're easy to map to Fn keys


git-svn-id: svn://10.0.0.236/trunk@101728 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:44:41 +00:00
rginda%netscape.com
05a1b303e4 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
add i18n strings for css, ping, and version commands


git-svn-id: svn://10.0.0.236/trunk@101727 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:43:11 +00:00
rginda%netscape.com
8c9d67fd23 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
add i18n strings for new context menu


git-svn-id: svn://10.0.0.236/trunk@101726 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:42:07 +00:00
rginda%netscape.com
54d5a78a1e ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
bump version number to 0.8.4
reduce max word length to 20
s/toolbar/tabstrip/
dont connect to default urls if we're supposed to go to a specific irc:// url
add quakenet
add mailto: and #Channel links
remove target attribute from links that don't need one
modify smiley insertion to be css friendly
implement tooltips
add dynamic css code, not used yet
fix parsing of empty irc:// urls (irc:, irc:/, and irc://)
focus input on startup and [esc]
implement dnd for content pane and links
add getURL method for the client object


git-svn-id: svn://10.0.0.236/trunk@101725 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:41:24 +00:00
rginda%netscape.com
6e0185c279 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
add initialScripts pref
remove old style prefs
add new "default style" pref


git-svn-id: svn://10.0.0.236/trunk@101724 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:35:45 +00:00
rginda%netscape.com
39dda15dc3 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
fix function names


git-svn-id: svn://10.0.0.236/trunk@101723 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:34:58 +00:00
rginda%netscape.com
c35890a6b2 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
add doctype to prevent quirks mode
add logic to take css file from querystring


git-svn-id: svn://10.0.0.236/trunk@101722 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:34:45 +00:00
rginda%netscape.com
d4b0f9ed57 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
load initial scripts at startup
rename toolbar functions to tabstrip
add support for content area context menu
implement css command
fix i18n string concatenation to use formats instead
imlement ping and version commands
add unknown ctcp handler
put list reply header with the list
add nickname in use during initial connect logic (append an _ until it works)
add ctcp ping reply handler


git-svn-id: svn://10.0.0.236/trunk@101721 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:33:59 +00:00
rginda%netscape.com
831a75fe95 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
add css, ping, voice commands
rename toolbar to tabstrip


git-svn-id: svn://10.0.0.236/trunk@101720 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:30:40 +00:00
rginda%netscape.com
de4053fc80 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
add tooltip and drag and drop related <script>s
add <command>s and <key>s for the new context menu
add popupset for tooltip
add content area context menu
tweak main menu layout
add class name and op/voice attributes for nick column in userlist
add drag and drop handlers for content area


git-svn-id: svn://10.0.0.236/trunk@101719 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:38:57 +00:00
rginda%netscape.com
cbb6d621f1 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
robustify dumpObjectTree()
whitespace cleanup
fix getStackTrace to get function name from the correct place


git-svn-id: svn://10.0.0.236/trunk@101718 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:33:24 +00:00
rginda%netscape.com
b31541f4f5 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
add getURL methods
add default parameter for CTCP PING
route ctcp replies properly


git-svn-id: svn://10.0.0.236/trunk@101717 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:31:07 +00:00
rginda%netscape.com
529ff78392 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
prepare to use sockets correctly, changes not used yet


git-svn-id: svn://10.0.0.236/trunk@101716 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:27:24 +00:00
rginda%netscape.com
f4d5d24d79 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
remove debug dump
pass URL to new window via window.openDialog argument, instead of query string.


git-svn-id: svn://10.0.0.236/trunk@101715 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:25:42 +00:00
rginda%netscape.com
061db8269e ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
fix whitespace, add new files to chatzilla.jar


git-svn-id: svn://10.0.0.236/trunk@101714 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:24:42 +00:00
rginda%netscape.com
59bb8d2956 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
initial add of dark and light output styles


git-svn-id: svn://10.0.0.236/trunk@101713 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:24:02 +00:00
rginda%netscape.com
aa32193ffa ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
initial add of blank "dynamic" stylesheet, and base styles for output window.


git-svn-id: svn://10.0.0.236/trunk@101712 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:23:16 +00:00
dp%netscape.com
793d0d0caf bug# 96469 caching xbl service r=jag, sr=waterson, a=asa
git-svn-id: svn://10.0.0.236/trunk@101711 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:07:10 +00:00
darin%netscape.com
fd7138d231 workaround fix for blocker bug 96440 r=harishd, sr=vidur, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101710 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 18:59:46 +00:00
darin%netscape.com
8957fc6413 backing out my patch for bug 95981 to fix blocker bug 96480
git-svn-id: svn://10.0.0.236/trunk@101709 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 18:58:25 +00:00
sonmi%netscape.com
90a4fd5b7e brought comments up to date
git-svn-id: svn://10.0.0.236/trunk@101708 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 18:46:44 +00:00
dbaron%fas.harvard.edu
bcd6d38e0f Fix warning / potential bustage. b=91794
git-svn-id: svn://10.0.0.236/trunk@101705 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 14:49:06 +00:00
bienvenu%netscape.com
8aa5b7d2d9 fix leak of undo transaction mgr and undo objects on window close r=naving, sr=sspitzer a=dbaron 96564
git-svn-id: svn://10.0.0.236/trunk@101704 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 14:36:55 +00:00
bienvenu%netscape.com
6426115aad implement offline undo of imap delete r=naving, sr=sspitzer a=asa 93128
git-svn-id: svn://10.0.0.236/trunk@101703 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 14:35:50 +00:00
barnboy%trilobyte.net
dca8acb15c Adding some pretty images for the Bugzilla Guide warning,
note, caution, and tip entries.


git-svn-id: svn://10.0.0.236/trunk@101702 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 14:30:20 +00:00
dbaron%fas.harvard.edu
a70babfcd5 Use the same information for max ascent/max descent (which is used for painting backgrounds) that we've been using all along for default line spacing (ascent/descent rather than max_bounds.ascent/max_bounds.descent), since max_bounds often gives extents larger than ascent/descent. Also clean up the metrics calculation a bit and clean up some debugging macros. b=91794 (also fixes 59825, 64807, 77067, 91776, and probably 89133) r=bstell sr=waterson a=tor
git-svn-id: svn://10.0.0.236/trunk@101701 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 13:44:06 +00:00
rods%netscape.com
ebbd7dca87 Disabling the auto radio seleciton and fixing a bug if it ever gets turned on
The bug is that when printing you don't want to do the auto default selection stuff because
it ends up calling into the DOM and changing the radios on the page.
Bug 96367 r=timeless sr=attinasi a=dbaron


git-svn-id: svn://10.0.0.236/trunk@101700 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 11:09:16 +00:00
mcafee%netscape.com
7bdb7f4da9 minor comment nit
git-svn-id: svn://10.0.0.236/trunk@101699 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 07:09:09 +00:00
kaie%netscape.com
f707b4e236 Fixing my checkin for bug 76915
git-svn-id: svn://10.0.0.236/trunk@101698 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 06:15:38 +00:00
kaie%netscape.com
11fac3f796 b=76915 r=dveditz sr=sfraser a=asa
Giving GUI feedback instead of crashing
Part 3 of 3 - changes to existing code


git-svn-id: svn://10.0.0.236/trunk@101697 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 05:25:15 +00:00
kaie%netscape.com
b2949675ed b=76915 r=dveditz sr=sfraser a=asa
Giving GUI feedback instead of crashing
Part 2 of 3 - changes to make files only


git-svn-id: svn://10.0.0.236/trunk@101696 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 05:23:21 +00:00
kaie%netscape.com
6bb8af13f6 b=76915 r=dveditz sr=sfraser a=asa
Giving GUI feedback instead of crashing
Part 1 of 3 - added files only


git-svn-id: svn://10.0.0.236/trunk@101695 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 05:20:33 +00:00
mscott%netscape.com
e8510a4778 Bug #92367--> fix a crash when closing a compose window while we are busy quoting. the fix is to cleanup some ref counting issues
using a combination of nsCOMPtr and nsWeakReferences
r=varada
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101694 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 05:12:06 +00:00
mscott%netscape.com
35af079987 Bug #85825 --> don't resend messages which we weren't able to send when doing send later.
r=sspitzer
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@101693 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 05:09:58 +00:00
kaie%netscape.com
2e54ff276a b=93617 r=dcone sr=attinasi a=asa
Fixing print dialog focus problem on Unix


git-svn-id: svn://10.0.0.236/trunk@101692 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 05:04:06 +00:00
mcafee%netscape.com
7f2241dd13 Set MOZILLA_FIVE_HOME for each build loop. reduce sleep time to 10sec for performance tests. debug printouts.
git-svn-id: svn://10.0.0.236/trunk@101691 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 04:59:55 +00:00
kaie%netscape.com
0c7b4f3098 b=95987 r=relyea sr=sfraser a=asa
Fixing SSL crash by disabling ciphers


git-svn-id: svn://10.0.0.236/trunk@101690 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 04:58:27 +00:00
kaie%netscape.com
29aef92599 b=79153 r=kaie sr=sfraser a=asa
Making the new feature actually work on Mac.


git-svn-id: svn://10.0.0.236/trunk@101689 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 04:39:25 +00:00
shanjian%netscape.com
e8bca10914 #45187 Inherit character coding does not work in <a href= xxxx target="new">
r = rpotts, sr=waterson, a=tor


git-svn-id: svn://10.0.0.236/trunk@101688 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 04:24:25 +00:00
waldemar%netscape.com
1b74aa96ce Removed type-expression
git-svn-id: svn://10.0.0.236/trunk@101687 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 04:22:56 +00:00
waldemar%netscape.com
99aeb2f52f Added more basic semantics
git-svn-id: svn://10.0.0.236/trunk@101686 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 04:22:24 +00:00
waldemar%netscape.com
4496362776 Added vector subtyping, support for & on unions of tags, and the nonempty operator
git-svn-id: svn://10.0.0.236/trunk@101685 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 04:21:18 +00:00
dcone%netscape.com
91859fd4e4 b=58002 r=dcone sr=attinasi r=rods a=asa. Fix radio buttons to print the correct setting.
git-svn-id: svn://10.0.0.236/trunk@101682 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 02:25:14 +00:00
brendan%mozilla.org
a76cace18d Avoid corrupting backpatch chains by checking for jump offset operand overflow (90445, khanson's patch with minor changes, sr=shaver&me, a=asa).
git-svn-id: svn://10.0.0.236/trunk@101681 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 02:07:07 +00:00
bienvenu%netscape.com
0878f16ccb fix crash reading an imap message rs=mscott, a=asa 96518
git-svn-id: svn://10.0.0.236/trunk@101680 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 02:04:43 +00:00
sspitzer%netscape.com
25946e9f42 fix for #96499, account central not being shown on start up, "read messages" not working if server collapsed
fix for #95358, folder pane sorting should be case insensitive
fix for #18343, newsgroups in the folder pane should be in newsrc order, not alphabetical order.

plus, some clean up.

r=racham, sr=bienvenu, a=asa


git-svn-id: svn://10.0.0.236/trunk@101679 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 01:10:05 +00:00
mcafee%netscape.com
e22ce8c658 Adding java test, whitespace cleanup
git-svn-id: svn://10.0.0.236/trunk@101678 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 01:06:35 +00:00
sfraser%netscape.com
6df210f43c Fix bug 96232, crash while typing if tooltip is showing. Add kung fu death grip on the nsMacWindow. r=pinkerton/brade, sr=brendan, a=drivers
git-svn-id: svn://10.0.0.236/trunk@101675 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:23:45 +00:00
pinkerton%netscape.com
bf647de1f0 rollup popups when a toplevel window hides. makes popups go away about the same time in destruction sequences as on win32. r=pchen/sr=sfraser/a=asa. bug 89373.
git-svn-id: svn://10.0.0.236/trunk@101674 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:23:30 +00:00
wtc%netscape.com
266995ef87 Bugzilla bug 94685: defining SECUTIL_NEW caused the wrong function
declaration (with PRFileDesc* as the first parameter) to be used and
hence a compiler warning.


git-svn-id: svn://10.0.0.236/trunk@101673 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:22:07 +00:00
wtc%netscape.com
8baf9712df Bugzilla bug 94685: added 'const' to eliminate compiler warning.
Modified files: install.c instsec.c


git-svn-id: svn://10.0.0.236/trunk@101670 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:10:00 +00:00
cmanske%netscape.com
fd5f0f38b8 Finish fixing Fixed Width bug 79200, r=brade, sr=sfraser, a=asa
git-svn-id: svn://10.0.0.236/trunk@101669 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:05:53 +00:00
wtc%netscape.com
2e28d51dbd Bugzilla bug 94685: deleted unused variable 'iter'.
git-svn-id: svn://10.0.0.236/trunk@101668 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:05:46 +00:00
wtc%netscape.com
91fb185586 Bugzilla bug 94685: added 'const' to eliminate a compiler warning.
git-svn-id: svn://10.0.0.236/trunk@101665 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:00:05 +00:00
mitesh%netscape.com
bd06551cdd Fix for Bug 95795 Timer on Linux doesn't work in AutoConfig
r=bnesse , sr=sfraser and a=asa


git-svn-id: svn://10.0.0.236/trunk@101664 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:58:12 +00:00
wtc%netscape.com
055cb216bc Bugzilla bug 94685: added 'const' to eliminate compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@101663 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:55:53 +00:00
harishd%netscape.com
b4cb458835 56245 - Misplaced /FONT was closing out TABLE. I've added logic such that if a residual style tag ( inline element ) cannot contain a tag ( block element ) then it
cannot close it either. Which implies that the end tag is misplaced. Also, made userdefined tags to act as inline elements.
r=heikki,sr=vidur,a=tor.


git-svn-id: svn://10.0.0.236/trunk@101661 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:43:43 +00:00
javi%netscape.com
11a5994ba7 Remove PSM 1 file from repository.
git-svn-id: svn://10.0.0.236/trunk@101660 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:36:18 +00:00
javi%netscape.com
68c83acfed Remove PSM 1 files from repository.
git-svn-id: svn://10.0.0.236/trunk@101659 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:34:43 +00:00
wtc%netscape.com
fda93275b2 Bugzilla bug 94685: eliminated a compiler warning about unreferenced label
'retry'.


git-svn-id: svn://10.0.0.236/trunk@101658 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:25:54 +00:00
javi%netscape.com
984e133ae5 Remove PSM 1 files from repository
git-svn-id: svn://10.0.0.236/trunk@101657 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:25:25 +00:00
wtc%netscape.com
d82456cdd4 Bugzilla bug 94685: added missing 'case' in a switch statement. I have
to say that switch statement looks unusual.


git-svn-id: svn://10.0.0.236/trunk@101656 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:22:12 +00:00
javi%netscape.com
8acd9a2f2a Remove PSM 1 files from repository.
git-svn-id: svn://10.0.0.236/trunk@101655 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:17:12 +00:00
wtc%netscape.com
8790f9d8ae Bugzilla bug 94685: deleted the unreferenced label 'no_wrapped_key'.
git-svn-id: svn://10.0.0.236/trunk@101654 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:15:45 +00:00
javi%netscape.com
5e24ed3bb5 Remove PSM 1 files from repository
git-svn-id: svn://10.0.0.236/trunk@101653 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:08:46 +00:00
javi%netscape.com
b884dca0fd Removing PSM 1 files from repository.
git-svn-id: svn://10.0.0.236/trunk@101652 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:04:38 +00:00
javi%netscape.com
de4209c234 Removing old psm files
git-svn-id: svn://10.0.0.236/trunk@101651 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:03:22 +00:00
javi%netscape.com
102f8d04c2 Check to make sure we're still logged into a slot when trying
to re-use a client-auth session.


git-svn-id: svn://10.0.0.236/trunk@101649 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 22:50:26 +00:00
wtc%netscape.com
115f45b12d Bugzilla bug 94685: fixed compiler warnings. The patch is from
timeless@mac.com.
Modified Files:
    cmd/certcgi/certcgi.c cmd/pk12util/pk12util.c
    lib/certdb/certdb.c


git-svn-id: svn://10.0.0.236/trunk@101646 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 22:40:42 +00:00
pinkerton%netscape.com
f8df04c373 fix for strlen being called on a null string when there is no text to convert to the platform charset. r=pchen/sr=sfraser/a=asa. bug# 92755.
git-svn-id: svn://10.0.0.236/trunk@101645 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 22:21:43 +00:00
sspitzer%netscape.com
405829e2aa fix for blocker #96282. use SelectFolder() to select the inbox on the default account
on startup.  r=mscott,sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@101644 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 18:41:59 +00:00
mcgreer%netscape.com
0a4cd7d781 Move functions to 3.3.1 to avoid confustion (they are not 3.2.x functions!)
git-svn-id: svn://10.0.0.236/trunk@101642 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 16:26:07 +00:00
cls%seawood.org
0c8b34787a Removing dos newlines (^M) to fix irix bustage
git-svn-id: svn://10.0.0.236/trunk@101640 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 07:30:46 +00:00
cls%seawood.org
6032c63285 Fixing REQUIRES bustage
git-svn-id: svn://10.0.0.236/trunk@101639 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 07:11:45 +00:00
blakeross%telocity.com
2941635522 smart browsing pref pane polish. r/sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@101638 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 06:59:21 +00:00
ccarlen%netscape.com
5c3ef884fc Bug 89854 - Confirm migration dialog won't fit on small screen. r=racham/sr=ben
git-svn-id: svn://10.0.0.236/trunk@101637 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 06:54:01 +00:00
dveditz%netscape.com
0c3fb27ad6 bug 91519 regression fix
git-svn-id: svn://10.0.0.236/trunk@101636 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:56:16 +00:00
brendan%mozilla.org
5bd9bfb18a Checking in khanson's patch for bug 85112, based on joemansh@interl.net's algorithm (r=beard, sr=me).
git-svn-id: svn://10.0.0.236/trunk@101635 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:42:16 +00:00
loadrunner%betak.net
d8e621de9c bug 70341, Non-ASCII attachment filename is not MIME encoded if filename is short, or with no or other extensions
r=ducarroz
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101634 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:34:22 +00:00
brendan%mozilla.org
8404f27930 Forget to include jsopcode.h.
git-svn-id: svn://10.0.0.236/trunk@101633 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:33:32 +00:00
markh%activestate.com
243cc35e4f Fix unicode handling for octet arrays, and finally fix the test suite
for Python 2.2.

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@101632 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:33:05 +00:00
jfrancis%netscape.com
dc74067145 fixes:
bug 83918 - Not able to start a list (number or bullets) when using Bold style
bug 62347 - Selecting "Body Text" doesn't change style if in <pre> text that has <br>
bug 86476 - ubercaret appears on multi-line text block
bug 87882 - pasting text from one bullet to another yields extra bullet
---------------
r=sfraser; sr=kin


git-svn-id: svn://10.0.0.236/trunk@101631 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:32:44 +00:00
akkana%netscape.com
80d9d8aa50 94751: make validate use nsIFile so it will work on non-Unix platforms. r=bbaetz sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101630 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:14:30 +00:00
ccarlen%netscape.com
29dc4f1588 Bug 92100 - When searching in frames, selection is visible in > 1 frame. r=valeski/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101629 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:14:15 +00:00
brendan%mozilla.org
97dea81da0 Support ref()++ etc. for native ref (75688) and fix exn_toSource (96284); sr=shaver&jband.
git-svn-id: svn://10.0.0.236/trunk@101627 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:59:28 +00:00
blakeross%telocity.com
b4e046129c minor polish for autocomplete prefs dialog. r=kerz sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@101626 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:42:32 +00:00
mkaply%us.ibm.com
32e8dc3056 #95651
r=mkaply, timeless a=blizzard
OS/2 only - code from Javier Pedemonte - fix Launch/Reveal behavior for Os/2


git-svn-id: svn://10.0.0.236/trunk@101624 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:33:17 +00:00
bryner%netscape.com
b8ce2ebf02 Removing this file since it's no longer needed.
git-svn-id: svn://10.0.0.236/trunk@101623 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:27:55 +00:00
karnaze%netscape.com
4072b4f8d3 bug 48827 - round column width to even pixel when calculating percent column. sr=attinasi,r=bernd
git-svn-id: svn://10.0.0.236/trunk@101622 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:24:10 +00:00
karnaze%netscape.com
1a0768b791 bug 60013 - make table with html width set to 0 behave like an auto table. sr=attinasi,r=bernd
git-svn-id: svn://10.0.0.236/trunk@101621 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:21:05 +00:00
karnaze%netscape.com
fd3fccbde9 bug 89315 - made CalculateRowHeights incremental by starting at a row other than the 1st. Row group dirty reflow passes in first reflowed row. sr=waterson,r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@101620 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:18:48 +00:00
markh%activestate.com
d25f7195de Remove an extra, incorrect comment I accidently left in.
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@101619 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:16:37 +00:00
eddyk%netscape.com
ac060ce4e2 bug 75469: move <script><![CDATA] ... into a .js file
r=timeless sr=ben


git-svn-id: svn://10.0.0.236/trunk@101618 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:15:28 +00:00
markh%activestate.com
1a0a3e63cc Fix a subtle bug in the weak-reference support - the weak reference must
always be made against the "base" interface for the instance, not one
of the tear-offs (as the tear-off may have a shorter life than the base)

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@101617 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:11:28 +00:00
markh%activestate.com
6f58a1ebcc Fix a bug when building on Windows from a binary install (rather than
from Python sources).
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@101616 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:10:08 +00:00
javi%netscape.com
64c06e8edd Fix for bug 91407 r=ddrinan, sr=tor
Make downloading a CA cert mime type blob smart enough
to handle blobs with more than one cert.


git-svn-id: svn://10.0.0.236/trunk@101615 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:05:45 +00:00
bienvenu%netscape.com
0e4f103070 attempt to fix linux bustage
git-svn-id: svn://10.0.0.236/trunk@101614 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:04:02 +00:00
bienvenu%netscape.com
dcc8931e52 attempt to fix linux bustage
git-svn-id: svn://10.0.0.236/trunk@101613 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:03:37 +00:00
bienvenu%netscape.com
58772b052b attempt to fix linux bustage
git-svn-id: svn://10.0.0.236/trunk@101612 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:02:12 +00:00
mscott%netscape.com
d981b838a6 Bug #59787 --> when showing the start page, clear the force charset on the document viewer. Then when we switch back to showing a message
force it to be UTF-8 again. This fixes problems with I18N start pages which attempt to specify a meta charset.
r=naving
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101611 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:57:56 +00:00
peterlubczynski%netscape.com
4933556d7a Fix for not opening bundles plugin resources on Mac fixing crashes (and tab clean up) bug 91988 r=bnesse sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101610 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:55:53 +00:00
bienvenu%netscape.com
3914be8e45 fix 95601 crash after getting new pop mail before selecting pop inbox r=naving, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@101609 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:53:31 +00:00
hewitt%netscape.com
e49a6ab0ff 94870 - Autocomplete ignores history entires starting with www, r=dmose, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@101608 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:49:31 +00:00
hewitt%netscape.com
77db0135ff 89198 - add option to show comments column in autocomplete, r=blake, sr=ben
git-svn-id: svn://10.0.0.236/trunk@101607 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:47:04 +00:00
barnboy%trilobyte.net
305a7218e6 Big checkin of docs to resolve every
known outstanding doc bug! Yay release.
Still many things to fix. Aren't there always?


git-svn-id: svn://10.0.0.236/trunk@101604 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:44:35 +00:00
naving%netscape.com
6a8e0d6f5b 90640 r=bienvenu sr=sspitzer. Make the MarkFlagged filter action work for IMAP
git-svn-id: svn://10.0.0.236/trunk@101602 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:31:48 +00:00
sspitzer%netscape.com
6119b06110 fix for #96298. get "next unread" to work again now that we have switched to outliner.
when trying to "land" on folder, we need to make sure all the ancestors are "expanded".
r/sr=mscott,bienvenu


git-svn-id: svn://10.0.0.236/trunk@101601 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:24:52 +00:00
blakeross%telocity.com
64044fe4dc Fallout from box syntax changes. sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@101600 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:20:36 +00:00
blakeross%telocity.com
7bbe890752 Textfield for anon ftp password not same length as checkbox (94939). r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@101599 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 02:55:33 +00:00
blakeross%telocity.com
4ffc8ef645 Send Link and Send Page in Manage Bookmarks do nothing, and some history polish (73904). r=hewitt sr=ben
git-svn-id: svn://10.0.0.236/trunk@101598 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 02:52:30 +00:00
blakeross%telocity.com
553835824a fixing a minor typo, no bug, rs=hewitt
git-svn-id: svn://10.0.0.236/trunk@101597 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 02:49:22 +00:00
dbradley%netscape.com
85eba49665 Fix for bustage, remove extra paren from my patch
git-svn-id: svn://10.0.0.236/trunk@101595 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:53:43 +00:00
tao%netscape.com
5b60844ecd 91217: update locale version in package/locale provider registry.
r=jbetak,sr=sspitzer. 0.9.3 ->0.9.4


git-svn-id: svn://10.0.0.236/trunk@101594 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:52:23 +00:00
cmanske%netscape.com
7788779500 Added new input filter to restrict first character: b=88881, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@101593 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:49:36 +00:00
cmanske%netscape.com
51e74cc9eb Added text style to toggle 'TT' (fixed width) tag in Composer, b=79200, r=brade, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101592 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:43:22 +00:00
leif%netscape.com
1342a2ecf3 Bug 85452, 100% CPU usage in LDAP autocomplete. r=dmose, sr=mscott,
patch=leif.


git-svn-id: svn://10.0.0.236/trunk@101591 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:30:19 +00:00
sspitzer%netscape.com
d0d081dc51 fix the fix for #87177. thanks to walk84 for pointing it out.
r=walk84, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@101590 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:18:40 +00:00
jdunn%netscape.com
b97569864f fixing dcone's checkin
in a enum, certain compilers don't like when the
last item has a ',' so I removed it

Fixing messina's tbox bustage


git-svn-id: svn://10.0.0.236/trunk@101589 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:10:21 +00:00
javi%netscape.com
3dc7e75605 Fix for Bug 44042, checking in for Gervase Markham
r=javi, sr=bin

Fix up some confusing wording in security dialgs.


git-svn-id: svn://10.0.0.236/trunk@101588 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:06:56 +00:00
dbradley%netscape.com
4869c56528 Bug 93792: This is the part to make passing nsID by value illegal in xpidl without notxpcom, see bug for a better explanation. sr=brendan, r=jband
git-svn-id: svn://10.0.0.236/trunk@101587 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:04:26 +00:00
sspitzer%netscape.com
b5a1706ebb fix for #90781. clean up the confirm dialog when you cancel the account wizard
and you don't have any existing accounts.  thanks to bhart00@yahoo.com
for the patch.  r=racham, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101585 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:56:21 +00:00
srilatha%netscape.com
2c0e523232 Fix for bug # 95047. removing dependency on csid.h
r=dbaron, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101583 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:54:29 +00:00
mscott%netscape.com
933ccd9648 Bug #86773 --> string bundle fix up for signed messages. checking in for ducarroz
r=sspitzer
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@101582 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:51:12 +00:00
srilatha%netscape.com
77622f1166 Fix for bug #95047. Removing dependency on csid.h
r=dbaron, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101581 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:50:30 +00:00
stephend%netscape.com
fb03c5c83b Bug 88673. Cleaning up wording in history's prefs panel. Patch by Bradley Hart <bhart00@yahoo.com> r=jatin@netscape.com/timeless@mac.com sr=scc@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@101580 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:47:21 +00:00
darin%netscape.com
5ba03ff3ef fixes bug 95981 "Changes in background images on pages do not show on reload"
r=pavlov, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@101579 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:46:08 +00:00
srilatha%netscape.com
3368ddf222 Fix for bug #87896. Hitting backspace creates bogus enty in the autompletion dropdown box. r=ducarroz, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@101578 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:41:20 +00:00
darin%netscape.com
c45df76363 fixes bug 90288 (part 2) "not honoring Pragma: no-cache from HTTP-EQUIV"
r=gagan, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@101577 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:38:46 +00:00
darin%netscape.com
4570680930 fixes bug 90288 (part 1) "not honoring "Pragma: no-cache" from HTTP-EQUIV"
r=gagan, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@101575 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:26:42 +00:00
darin%netscape.com
1d408a0e35 fixes bug 94811 "leaking sockets; nsISocketTransport::IsAlive not implemented reliably"
r=wtc, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@101574 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:24:26 +00:00
pchen%netscape.com
377e9302d5 bug 91726, r=pinkerton, sr=sfraser, under carbon, Internet Config seems to return mappings with a null mime type string, if we see a null mime type string, set mime type in nsMimeInfo to octet-stream
git-svn-id: svn://10.0.0.236/trunk@101573 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:19:08 +00:00
danm%netscape.com
73d5550252 allow larger windows when sizing with the mouse. also moved standard-state calculation to nsMacWindow. some code by rjc@rjcdb.com. bugs 80431,95740 r=hyatt,pinkerton
git-svn-id: svn://10.0.0.236/trunk@101572 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:18:45 +00:00
dianesun%netscape.com
29c5504b82 Fix to bug 94961 (kB -> KB). r=buhvan, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@101571 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:17:55 +00:00
danm%netscape.com
2df78d7028 always adjust maximized ("standard") window size before zooming. some code by rjc@rjcdb.com. bugs 80431,95740 r=hyatt,pinkerton
git-svn-id: svn://10.0.0.236/trunk@101570 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:17:04 +00:00
dianesun%netscape.com
2c267c8f3c Fix to bug 94961 (kB -> KB). r=buvhan, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@101569 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:14:14 +00:00
dianesun%netscape.com
306136e548 Fix to bug (95201: disable Download/Sync) r=buhvan, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@101568 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:07:46 +00:00
loadrunner%betak.net
9d3611c19f bug 56304, HTML ja signature displays as garbage in the mail body
bug 91670, Signature file with the charset different from the system on
r=ducarroz, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101566 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:02:01 +00:00
timeless%mac.com
729a18f51e 1.206 <cavin@netscape.com> 21 Aug 2001 11:39 checked in ^Ms while fixing Bug #68296
a=bustage,sheriffs#mozilla


git-svn-id: svn://10.0.0.236/trunk@101564 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 23:49:54 +00:00
stephend%netscape.com
5d52c1ab97 Attempt to fix rjesup's bustage. a=sheriff
git-svn-id: svn://10.0.0.236/trunk@101562 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 22:43:47 +00:00
dp%netscape.com
1c97d50450 bug 94883 nsCreateInstanceByContractID() performance improvement
git-svn-id: svn://10.0.0.236/trunk@101561 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 22:42:35 +00:00
dcone%netscape.com
19670eec75 b=73884 r=peterl sr=attinasi invert mode support added
git-svn-id: svn://10.0.0.236/trunk@101560 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 22:37:17 +00:00
mkaply%us.ibm.com
7a0c0a2b08 OS/2 will take this as well, thank you very much.
Fixes transparent PNGs on OS/2.


git-svn-id: svn://10.0.0.236/trunk@101559 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 22:29:25 +00:00
sspitzer%netscape.com
2947c88829 bulletproofing fix for #96291 to prevent crashing on the first autocomplete.
there is still a bug here, so #96291 will stay open.  sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@101557 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 22:16:42 +00:00
ftang%netscape.com
79feec38c3 new file for 90804. not part of the build yet
git-svn-id: svn://10.0.0.236/trunk@101556 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 22:14:56 +00:00
tor%cs.brown.edu
0d3c9ba521 Bug 84980 - zero out the color components of transparent pixels
in a binary alpha PNG on win32 before handing them off to libpr0n.
r=pavlov, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@101555 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:59:08 +00:00
mkaply%us.ibm.com
402f5c0a60 No bug
r=mkaply, a=blizzard
OS/2 only - Code from Dainis Jonitis - Fix fallout from imagelib removal
Add back in tiling support for OS/2


git-svn-id: svn://10.0.0.236/trunk@101554 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:56:36 +00:00
mkaply%us.ibm.com
9fe696d442 #95301
r=pedemonte, a=blizzard
OS/2 only - leaking presentation spaces


git-svn-id: svn://10.0.0.236/trunk@101553 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:53:46 +00:00
rjesup%wgate.com
9773ad26f7 bug 96289: mURLParsers cache wasn't. r=gagan@netscape.com,
sr=dougt@netscape.com


git-svn-id: svn://10.0.0.236/trunk@101552 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:49:04 +00:00
jj%netscape.com
bee31306ad bugscape #6794: updated 'vers' resources for Mozilla/Netscape installer
git-svn-id: svn://10.0.0.236/trunk@101551 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:43:53 +00:00
naving%netscape.com
79b33fc997 89698 r=robinf, jglick for alert wording changes.
git-svn-id: svn://10.0.0.236/trunk@101550 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:35:41 +00:00
sspitzer%netscape.com
8181258744 fix for #72869.
in the tree view (in subscribe) allow for multiple selection.
r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@101549 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:27:26 +00:00
bryner%netscape.com
efb03cfbd3 Bug 92210 - Window steals focus if you switch to another app during "Transferring data from...". r=saari, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@101548 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:18:45 +00:00
mozilla.BenB%bucksch.org
7fe6346c58 76359: Fixing regression: namespace for CSS in Modern broke the mail msg display layout, incl. quotes and prefs.
Some reformatting (both skins).
r/sr=Ben Goodger, r=blake, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101547 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:18:16 +00:00
pchen%netscape.com
a174005e00 bug 93195, r=brade, sr=sfraser, relax minimum macos requirement back to 8.5
git-svn-id: svn://10.0.0.236/trunk@101546 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:14:12 +00:00
naving%netscape.com
5c2ece1991 88251 r=bienvenu sr=sspitzer. Maintain the sort-order etc when emptying local trash.
git-svn-id: svn://10.0.0.236/trunk@101545 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:06:40 +00:00
brendan%mozilla.org
6abf5e7f73 Bit checkin for bug 68045, r/sr=waterson&shaver, second attempt. It all works
for me on optimized and debug gcc2.96, rh7.1.

- Better failure codes from nsXULPrototypeScript::Deserialize.

- Call nsXULDocument::AbortFastLoads after nsXULPrototypeScript::Serialize
  failure, instead of just nulling the FastLoad service's output stream.

- Expose nsXULDocument::AbortFastLoads via nsIXULPrototypeCache, for use from
  nsChromeProtocolHandler.cpp.  AbortFastLoads flushes the XUL cache now, for
  good measure.

- The needless "Current" adjective in nsIFastLoadService attribute and method
  names is no more.

- Add a do_GetFastLoadService() helper, to use CID instead of contractid, and
  to let the compiler consolidate the static inline CID.

- Add "nglayout.debug.checksum_xul_fastload_file" pref so people can do without
  the checksum verification step when reading a FastLoad file.

- Verify the FastLoad file checksum, by default.  Also, cache it in the FastLoad
  service so we don't recompute it when re-opening the FastLoad file as mailnews
  and other top-levels start up.  Fill the checksum cache in EndFastLoad, when
  the last pseudo-concurrent top-level finishes loading.

  My hope to compute the checksum while writing the FastLoad file ran afoul of
  misordered writes.  The old code to checksum the in-memory nsFastLoadHeader
  also was broken on little endian platforms.  Now all checksumming is done via
  a separate read pass over the complete file, save for the header's checksum
  field, which is summed as if it contained zero.

- Track and check FastLoad file dependencies.  This required groveling with a
  bunch of Necko interfaces in nsChromeProtocolHandler::NewChannel -- read it
  and weep.  Dependency checking, as well as checksum access and computation,
  use better-factored nsIFastLoad{File,Read,Write}Control interfaces.

- nsBufferedStream::Seek wasn't flushing the buffer when seeking backward
  within the buffer, but it must, because mCursor bounds the amount to write
  if the buffer contains the end of file.

- Add an unbufferedStream readonly attribute to nsIStreamBufferAccess, so we
  don't have to screw around with the bufferying layer when checksumming. Also
  implement nsIStreamBufferAccess in nsBufferedOutputStream.

- nsISeekableOutputStream was bogus, based on a bad state I had put the
  nsBufferedOutputStream code in on its way from being completely broken when
  you seek backwards outside of the buffer.  Removing this interface required
  using nsIFastLoadFileIO in nsFastLoadFileWriter, and it also required careful
  ordering of Close calls (the Reader must close after the Writer or Updater,
  so that the Reader's underlying, unbuffered input stream can be read by
  nsFastLoadFileWriter::Close to compute the checksum.

- Miscellaneous tab/indentation, comment typo, bracing, if( => if ( style,
  nsnull vs. 0, useless variable elimination, tortured control flow,
  AutoString instead of String, and gratuitous ; after nsISupportsUtils.h
  macro call cleanups.


git-svn-id: svn://10.0.0.236/trunk@101544 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:51:34 +00:00
chuang%netscape.com
63850355cc Bug 17476 Move/Copy menus should sort, r/sr=sspitzer, mscott
git-svn-id: svn://10.0.0.236/trunk@101543 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:41:33 +00:00
cotter%netscape.com
ec5fac7cdf ongoing security & privacy help content updates per b=85925, r=oeschger@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101542 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:40:24 +00:00
hewitt%netscape.com
34ae532cda 63540 - make classic broken lock icon clearer
git-svn-id: svn://10.0.0.236/trunk@101541 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:40:08 +00:00
jat%princeton.edu
fd4eef96c5 Checking in for jesse. Replacing some eval() calls in chrome js with calls to parseInt() and new RegExp(). b=83314, r=mstoltz, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@101540 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:37:19 +00:00
andreas.otte%primus-online.de
a655de9c6e fix bug 84409 [Incorrect request for page components if main page URL contains ";" character] Implementing param support according to RFC 2396, r=dougt, sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@101539 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:35:01 +00:00
pavlov%netscape.com
f2d747d729 fix for bug 87739 r=dougt sr=darin
git-svn-id: svn://10.0.0.236/trunk@101538 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:17:22 +00:00
dp%netscape.com
ec2d360be6 Bug 94366 Reducing url object creations by not converting urls schemes
that done need conversion to absolute. r,sr=waterson


git-svn-id: svn://10.0.0.236/trunk@101537 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:09:20 +00:00
naving%netscape.com
725d0f7df9 89698 r=suresh sr=bienvenu; Check if the newName for folder to be renamed has hierarchyDelimiter, if
so throw an alert. Also did some clean up in nsImapStringBundle.


git-svn-id: svn://10.0.0.236/trunk@101536 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:04:00 +00:00
jj%netscape.com
c2561ef554 #93164: bump up mac version number to 0.9.3+ on the trunk
git-svn-id: svn://10.0.0.236/trunk@101535 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:49:54 +00:00
pavlov%netscape.com
1602a591a1 fixing indentation of {
git-svn-id: svn://10.0.0.236/trunk@101533 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:45:18 +00:00
dougt%netscape.com
f702a21dc6 fixes 95671, 96129. Caching control connections fixed, removing check against browser.enabled.cache, fixing double list response handling error. r= gordon, darin, sr= darin
git-svn-id: svn://10.0.0.236/trunk@101532 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:40:55 +00:00
timeless%mac.com
4b17af72b7 Bugzilla Bug 24515 Cant build XPCOM standalone
Bugzilla Bug 88747 nsCRT::atoi should be removed or fixed
Whoops, i contributed to xpcom standalone not working
patch by jband, r=dbaron, sr=brendan

This makes nsCRT::atoi in standalone assert and functionally NOP


git-svn-id: svn://10.0.0.236/trunk@101531 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:36:07 +00:00
bernd.mielke%snafu.de
f5274636fb handle captions and innertable frames identical if the containing block is to small,
bug 76726 r=karnaze sr=waterson


git-svn-id: svn://10.0.0.236/trunk@101530 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:31:53 +00:00
ftang%netscape.com
6b10e406d5 fix 91193. r=nhotta, sr=blizzard
add universialchardet.dll to the window installer packages


git-svn-id: svn://10.0.0.236/trunk@101529 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:16:35 +00:00
javi%netscape.com
de755f9415 Fix for Bug 92003, r=ddrinan, sr=mscott
If the client of SSL/TLS socket provider doesn't provide callbacks,
use the window watcher service to get an nsIPrompt or whatever
interface is requested.


git-svn-id: svn://10.0.0.236/trunk@101528 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:10:56 +00:00
dp%netscape.com
719083975b adapting to CreateInstancebyContractID() perf improvement
git-svn-id: svn://10.0.0.236/trunk@101527 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:07:26 +00:00
ftang%netscape.com
5257d4fa4b fix 92988. r=shanjian rs=ftang
add more fallback font face for Japanese


git-svn-id: svn://10.0.0.236/trunk@101526 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:01:40 +00:00
jaggernaut%netscape.com
1859a898c0 Bug 91884: postpone focus() calls from browser onload till after the window is shown. r=jrgm, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@101524 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:54:51 +00:00
harishd%netscape.com
41b05e57a0 96117 - Cache Observer service. r=dp, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@101523 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:46:46 +00:00
shanjian%netscape.com
c7216dd2df #95162 Auto-detect doesn't work on kinokuniya page
r=yokoyama sr=jst


git-svn-id: svn://10.0.0.236/trunk@101522 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:46:44 +00:00
rjesup%wgate.com
02427b265c bug 93830. patch by gisburn. r=dcone@netscape.com, r=timeless,
sr=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@101521 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:43:55 +00:00
cavin%netscape.com
d51fea8551 Bug #68296: In SubscribeToFolder(), make sure we pass the right folder object to SubscribeFolder(). In PossibleImapMailbox(), set the correct delimiter for unsubscribed folders. r=bienvenu, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@101520 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:39:46 +00:00
rjesup%wgate.com
ea72c243bc Bug 96132. ~nsTypedSelection misuses arrays. r=dbaron,
sr=jst@netscape.com sr=kin@netscape.com


git-svn-id: svn://10.0.0.236/trunk@101519 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:38:20 +00:00
cavin%netscape.com
b6a249a49e Bug #55774: In GetListOfFoldersWithPath(), make sure we pass the right folder object to DiscoverChildren(). r=bienvenu, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@101518 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:38:02 +00:00
rjesup%wgate.com
a5c27c09f2 Bug 96137. Fix array accesses. r=pavlov@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101517 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:34:40 +00:00
varada%netscape.com
bad97a6c43 fix for bug#79053-identity crisis mail compose;r=ducarroz;sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@101516 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:33:33 +00:00
rods%netscape.com
bd6fc5b878 Oops, left in a rule I used for testing.
It's removed.


git-svn-id: svn://10.0.0.236/trunk@101510 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 15:12:45 +00:00
dbaron%fas.harvard.edu
c9b9e16848 Fixing MOZ_TRACK_MODULE_DEPS bustage by adding pref to REQUIRES (for nsRuleNode.cpp).
git-svn-id: svn://10.0.0.236/trunk@101505 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 14:27:36 +00:00
morse%netscape.com
9aa7e24589 bug 84432, wallet menu items missing when inside certain frames, r=matt, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@101504 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 14:25:48 +00:00
kaie%netscape.com
8bee469992 addon for b=79153 rs=wtc@netscape.com
Fixes obvious portability error, moving thread starter function from C++ static method to C function.
No change in logic or functionality.
You can reach me at kai.engert@gmx.de


git-svn-id: svn://10.0.0.236/trunk@101503 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 14:22:11 +00:00
rods%netscape.com
48fbd4f113 Disabling Quirks sizing for form controls, it can be put back in via a pref
and uncommenting a line in quirk.css
Bug 91602 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@101502 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 14:01:55 +00:00
cmanske%netscape.com
845c66cf30 Fixed Doc title in Revert dialog message bug=96073, r=brade, sr=kin; Composer part of 'noshade' syntax bug 88761, r=kin, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101501 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 13:45:01 +00:00
dbradley%netscape.com
7ddcdbae03 Bug 44989: the memory allocated via g_malloc() should be freed via g_free(). sr=blizzard, r=jst
git-svn-id: svn://10.0.0.236/trunk@101500 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 12:33:28 +00:00
dbradley%netscape.com
1582213550 Bug 83591: XPIDL does not store the file length in the header in XPT Files. sr=scc, r=jband
git-svn-id: svn://10.0.0.236/trunk@101499 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 12:29:34 +00:00
peterv%netscape.com
0893039a53 Adding null checks to fix crash. No bug. r=Pike, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@101498 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 09:14:51 +00:00
jst%netscape.com
f263b2fd0c Fixing bug 92272. Avoid malloc(0), patch mostly by mkaply@us.ibm.com. sr=me, r=nobody (trivial fix)
git-svn-id: svn://10.0.0.236/trunk@101497 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 09:02:22 +00:00
jst%netscape.com
474e77dd29 Fixing bug 95871. Making it possible to put null pointers in nsISupportArrays. r=pavlov@netscape.com, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101496 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 08:51:19 +00:00
rpotts%netscape.com
5478c3dde3 Fix warnings...
git-svn-id: svn://10.0.0.236/trunk@101495 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 08:13:04 +00:00
darin%netscape.com
a29a5f6d7f fixes bug 92563 "Bad comment in nsIInputStream?" r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@101494 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:49:46 +00:00
stephend%netscape.com
c3a6298c89 Bug 40191. Bad 'connection refused' message. Patch by Jessico Blanco <jblanco@us.ibm.com> r=jglick@netscape.com/stephend@netscape.com sr=sspitzer@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101493 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:43:46 +00:00
hyatt%netscape.com
d22f2c03ba Fix for 96179. r=sspitzer, sr=darin
git-svn-id: svn://10.0.0.236/trunk@101492 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:41:21 +00:00
rpotts%netscape.com
52ded30b9f bug #96029 (r=valeski, sr=mscott) Loading cnn.com caused the sav-as dialog to appear...
git-svn-id: svn://10.0.0.236/trunk@101491 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:26:59 +00:00
sspitzer%netscape.com
ededf45bdc backing out an accidental check in.
git-svn-id: svn://10.0.0.236/trunk@101490 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:26:51 +00:00
rpotts%netscape.com
78f013faba bug #92425 (r=adamlock, sr=jst). OnLoad() handler which executes a javascript URL causes an infinite loop...
git-svn-id: svn://10.0.0.236/trunk@101489 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:20:53 +00:00
sspitzer%netscape.com
acaa48c1b7 fix for #95457. the open / closed state of servers and folders in the folder pane
was not persisting across sessions.  I added a new attribute to outliner "statedatasource"
that you can set to use for state, otherwise, if you are "trusted" it will use the localstore.
if not trusted, it will use an in memory datasource, which will not persist across sessions.

r/sr=bienvenu for the mailnews part, r/sr=waterson for the content part.


git-svn-id: svn://10.0.0.236/trunk@101488 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:18:58 +00:00
blakeross%telocity.com
8025a894e1 More fallout from xul syntax changes. r=ben sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@101487 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:16:33 +00:00
hyatt%netscape.com
015c7b4e92 Fix for 95422. r/sr=the usuals (brendan et al)
git-svn-id: svn://10.0.0.236/trunk@101486 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:14:38 +00:00
blakeross%telocity.com
24f3afdd62 Removing files used for performance testing that shouldn't be part of default build. r=hewitt sr=ben
git-svn-id: svn://10.0.0.236/trunk@101485 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:14:21 +00:00
sspitzer%netscape.com
d16c4dec7a more mac bustage fixage. sr=waterson
git-svn-id: svn://10.0.0.236/trunk@101484 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 05:56:48 +00:00
waterson%netscape.com
d15b77ae3e Fix Mac build bustage.
git-svn-id: svn://10.0.0.236/trunk@101481 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 04:26:03 +00:00
sspitzer%netscape.com
f05d062183 fix for #96164.
don't make a connection to the news server when updating unread counts
if there are no groups.  r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@101480 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 04:17:27 +00:00
waterson%netscape.com
a7ccc20459 Attempt to fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@101479 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 03:30:03 +00:00
hewitt%netscape.com
20a39cba9b 93936 - die, 'work offline' text, die!, r=blake, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@101477 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 03:11:54 +00:00
hewitt%netscape.com
bb13ef3aef 95190 - buttons too tall, r=blake, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@101476 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:59:14 +00:00
dbaron%fas.harvard.edu
fdd5d25c83 fixing Mac bustage. b=45797
git-svn-id: svn://10.0.0.236/trunk@101475 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:58:44 +00:00
hewitt%netscape.com
11930ff64b 91430 - precache back and forward images, r=blake, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@101474 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:58:25 +00:00
brendan%mozilla.org
5f91bd99d8 Checking in shaver's patch for bug 78100, adding JS_GetExternalStringGCType (sr=brendan&jband).
git-svn-id: svn://10.0.0.236/trunk@101473 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:53:19 +00:00
kaie%netscape.com
2859af72c0 Fixes #88303
r=wtc@netscape.com rs=darin@netscape.com
You can reach me at kai.engert@gmx.de


git-svn-id: svn://10.0.0.236/trunk@101472 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:45:43 +00:00
dmose%netscape.com
894c700200 LDAP addressbook code cleanup changes from John Marmion <john.marmion@ireland.sun.com> for bug 17879 review. r=dmose@netscape.com; sr=mscott@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101470 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:35:19 +00:00
saari%netscape.com
c3957a5361 I messed up my checkin for bug93521, I screwed up nesting when applying a patch that needed merging. Bah.
git-svn-id: svn://10.0.0.236/trunk@101469 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:27:34 +00:00
Xiaobin.Lu%eng.Sun.com
85ca40dcdb Fix for 77194 (liveconnect does not work for non-applet case)
r=edburns & beard sr=brendan


git-svn-id: svn://10.0.0.236/trunk@101468 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:23:24 +00:00
Xiaobin.Lu%eng.Sun.com
a6ddde9413 Fix for 77194 (liveconnect does not work for non-applet case)
r=edburns&beard sr=brendan


git-svn-id: svn://10.0.0.236/trunk@101467 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:11:10 +00:00
Xiaobin.Lu%eng.Sun.com
bdf0db8824 Fix for 77194 (liveconnect does not work for non-applet case)
r=edburns & beard sr=brendan


git-svn-id: svn://10.0.0.236/trunk@101466 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:04:12 +00:00
jband%netscape.com
71d7122618 bug 65727. Make it an error to not have XP_WIN defined if you are compiling on Win32. Too many people with their own build projects stumble into this hole. r=valeski sr=scc (turns out this was reviewed months ago and I neglected to check it in. My bad)
git-svn-id: svn://10.0.0.236/trunk@101465 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:59:55 +00:00
nicolson%netscape.com
3a78c98174 remove superfluous trace message.
git-svn-id: svn://10.0.0.236/trunk@101464 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:59:22 +00:00
Xiaobin.Lu%eng.Sun.com
b5a12dfb12 Fix for 77194 (liveconnect does not work for non applet case)
r=edburns & beard sr= brendan


git-svn-id: svn://10.0.0.236/trunk@101463 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:57:48 +00:00
dbaron%fas.harvard.edu
3485888237 Replace uses of deprecated NS_IMPL_ISUPPORTS and NS_IMPL_QUERYINTERFACE macros with NS_IMPL_{ISUPPORTS,QUERYINTERFACE}{1,0}. r=jag rs=brendan b=45797
git-svn-id: svn://10.0.0.236/trunk@101462 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:48:11 +00:00
waterson%netscape.com
a54036173e Bug 93100. Change NS_DECL_NSGETMODULE to be table driven so we can get at module ctor & dtor callbacks. Update meta-module and static-module stuff for this change, fix meta-module to not register stuff twice. r=cls,leaf
git-svn-id: svn://10.0.0.236/trunk@101461 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:47:31 +00:00
jst%netscape.com
9485c0e78a Fixing bug 95904. Comment changes only, patch mostly by drepper@cygnus.com.
git-svn-id: svn://10.0.0.236/trunk@101460 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:43:29 +00:00
waterson%netscape.com
e75b4e9d1a Bug 93100. Missed one file.
git-svn-id: svn://10.0.0.236/trunk@101458 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:25:10 +00:00
gerv%gerv.net
bf4b2f5e3e Bug 30208 - fix to avoid breaking gcc 2.7.2.3. Thanks to dbaron. r=dbaron, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@101455 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:15:55 +00:00
rangansen%netscape.com
31382162ac Activating choice of smart card when new cert is requested
bug# 89972, r=javi, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@101454 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:12:38 +00:00
rangansen%netscape.com
d633dc86c5 Activating view button in download cert
bug# 81257, r=javi, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101453 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:11:29 +00:00
rangansen%netscape.com
4ee328f248 Making delete crl work
bug# 95328, r=kaie, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101452 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:08:48 +00:00
rangansen%netscape.com
0e9e8ab353 Localizing access keys
bug# 95578, r=rangansen sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101451 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:07:35 +00:00
rangansen%netscape.com
703cd83058 Making sure password strength is between 0 and 100
bug# 94179. r=ddrinan, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101450 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 00:59:20 +00:00
rangansen%netscape.com
b472d57a07 Makes the label appear on enable/disable fips button
Bug# 95683; r=ddrinan; sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101449 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 00:57:20 +00:00
waterson%netscape.com
4e63322b10 Bug 93100. Change NS_DECL_NSGETMODULE to be table driven so we can get at module ctor & dtor callbacks. Update meta-module and static-module stuff for this change, fix meta-module to not register stuff twice. r=cls,leaf
git-svn-id: svn://10.0.0.236/trunk@101447 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 00:55:20 +00:00
locka%iol.ie
ecfed0d85b Fix for anchors that try and load content into a docshell that has already been destroyed. b=94229 r=ccarlen@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101446 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 00:50:26 +00:00
aaronl%netscape.com
887b433600 Bug 96065. Active Accessibility text nodes should not be focusable. r=jgaunt, sr=brendan\
git-svn-id: svn://10.0.0.236/trunk@101445 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 00:47:07 +00:00
gerv%gerv.net
ad1e86251d Bug 96063 - the old method of doing this barfed on long URL strings.
git-svn-id: svn://10.0.0.236/trunk@101444 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 00:36:54 +00:00
mcafee%netscape.com
10c30f5782 moving cvsroot out to tinder-defaults.pl, getting rid of netscape default. Fixed a my variable so I can comment out the run_shell_command line for testing.
git-svn-id: svn://10.0.0.236/trunk@101443 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 22:45:25 +00:00
mcafee%netscape.com
c926aee195 minor stuff, comments, using right cvs command
git-svn-id: svn://10.0.0.236/trunk@101442 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 22:43:36 +00:00
sspitzer%netscape.com
903f3a55dc build changes for hyatt.
git-svn-id: svn://10.0.0.236/trunk@101441 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 21:58:04 +00:00
sspitzer%netscape.com
3d8afd2681 build changes for hyatt.
git-svn-id: svn://10.0.0.236/trunk@101439 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 21:52:15 +00:00
hyatt%netscape.com
b06293d4c4 Fix for 96042. r=dbaron, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@101437 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 21:42:14 +00:00
sonmi%netscape.com
8e4502355e took hardcoded reference to clio out
git-svn-id: svn://10.0.0.236/trunk@101436 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 21:25:56 +00:00
sonmi%netscape.com
0a71722bf1 changed handeling of $RSH - if already set keep value
RSH is needed to be set to the current installation of WinNT,
problems on multiboot machines if c:/winnt/system32/rsh is being used
when running the Win2K from d:
also problems with MKS and cygnus rsh


git-svn-id: svn://10.0.0.236/trunk@101435 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 20:50:17 +00:00
sonmi%netscape.com
2f0fef135d added OSF 5.1
git-svn-id: svn://10.0.0.236/trunk@101434 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 20:47:52 +00:00
myk%mozilla.org
063c2aa355 Fix for bug 96085: don't allow unauthorized users to access restricted bugs that do not have a QA contact.
Patch by Myk Melez <myk@mozilla.org>
r=Jake <jake@acutex.net>


git-svn-id: svn://10.0.0.236/trunk@101433 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 20:36:10 +00:00
dianesun%netscape.com
682ec4ea31 Fix for bug 87177. R=buhvan, SR=sspitzer
git-svn-id: svn://10.0.0.236/trunk@101432 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 19:09:39 +00:00
wtc%netscape.com
fdb50e4111 Bugzilla bug 95797: fixed a typo. Thanks to Joerg Brunsmann
<joerg_brunsmann@yahoo.de> for the bug report and patch.


git-svn-id: svn://10.0.0.236/trunk@101431 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 19:05:34 +00:00
kestes%walrus.com
3a338c583b current as of mon aug 20
git-svn-id: svn://10.0.0.236/trunk@101430 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 18:59:56 +00:00
kestes%walrus.com
fc856d74e9 catch io errors from storable and give better discriptions.
git-svn-id: svn://10.0.0.236/trunk@101429 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 18:57:12 +00:00
jst%netscape.com
c396d662a0 Followup to Attribute --> Attr renaming...
git-svn-id: svn://10.0.0.236/trunk@101428 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 09:03:25 +00:00
mkaply%us.ibm.com
ea433b853c No bug - NOT PART OF BUILD
Initial checkin of xpinstall wizard for OS/2


git-svn-id: svn://10.0.0.236/trunk@101427 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 04:00:19 +00:00
blakeross%telocity.com
5b74314f22 another missed case of renamed command method. rs=hyatt
git-svn-id: svn://10.0.0.236/trunk@101426 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 02:43:34 +00:00
hyatt%netscape.com
03ac984644 Fix for 96017. r-bryner, sr-blake
git-svn-id: svn://10.0.0.236/trunk@101425 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 00:36:52 +00:00
myk%mozilla.org
9d8541adf1 Fix for bug 95890: Correctly convert/record keyword changes in the bugs_activity table for keywords containing a plus sign or other
regular expression meta-characters.  Myk's first ever Bugzilla checkin!
Patch by Dave Miller <justdave@syndicomm.com> and Myk Melez <myk@mozilla.org>.
r=myk@mozilla.org,justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@101424 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-19 18:26:21 +00:00
gerv%gerv.net
8a61e44563 Do not add "-- " if already present in .sig file. Attempt 2. Bug 30208. r=bratell, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@101422 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-19 15:59:26 +00:00
varga%utcru.sk
3778ea3b2c Fix for 94652.
allow for no multiple select in outliner.
r=bryner, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@101421 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-19 08:24:42 +00:00
blakeross%telocity.com
a3483b3aa9 add null check to prevent 6.1 topcrash (84832). r=saari sr=ben
git-svn-id: svn://10.0.0.236/trunk@101420 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-19 04:48:34 +00:00
wtc%netscape.com
540c9d67e4 Merged brendan's fix from NSPRPUB_CLIENT_BRANCH (now obsolete).
git-svn-id: svn://10.0.0.236/trunk@101419 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-19 01:22:59 +00:00
bryner%netscape.com
205255fdcd Bug 92879 - textbox select() causes window to steal focus. r=dbaron, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@101418 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 23:55:01 +00:00
hwaara%chello.se
75ce2b24db #67369, "Bcc: field doesn't change when switching From:"
Patch by kazhik@mozilla.gr.jp

r=varada, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@101417 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 22:15:58 +00:00
wtc%netscape.com
16fc64dde5 fix unitialized key_type variable. Add asserts to it doesn't happen again.
git-svn-id: svn://10.0.0.236/trunk@101416 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 19:15:46 +00:00
dbaron%fas.harvard.edu
af4cfa0c47 Remove obsolete references to nsImageManager to fix build bustage after imglib1 removal.
git-svn-id: svn://10.0.0.236/trunk@101415 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 16:51:20 +00:00
dbaron%fas.harvard.edu
fec1844dd7 Remove obsolete references to nsImageManager to fix build bustage after imglib1 removal.
git-svn-id: svn://10.0.0.236/trunk@101414 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 16:43:50 +00:00
ccarlen%netscape.com
54c6894257 Bug 78498 - Carbonize PPEmbed. r=pinkerton/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101413 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 15:10:38 +00:00
markh%activestate.com
d1f00a5439 Fix a bug in interface flattening when an attribute was set before one
on the same interface was fetched.  Added test for this case too.

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@101412 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 14:27:46 +00:00
dbaron%fas.harvard.edu
f45cbae471 Add CallGetInterface. b=92602 r=jag sr=scc
git-svn-id: svn://10.0.0.236/trunk@101411 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 14:15:07 +00:00
hwaara%chello.se
64a4ea989b #3745, "Must handle Followup-to: poster in news", part II; add an alert warning the user when followup-to: poster is being used, as per the GNKSA.
r=ducarroz, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101410 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 12:19:49 +00:00
locka%iol.ie
b99fbdffe8 Added res/arrow.gif and res/arrowd.gif to embedding manifests to fix drawing problem with form combo boxes. b=95310 r=jeff@tcbnetworks.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101409 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 10:18:09 +00:00
locka%iol.ie
00261ca7b8 Changed memory allocation and stack usage to be less brutal as the DOM is being walked. b=92534 r=rjesup@wgate.com sr=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@101408 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 09:59:28 +00:00
bryner%netscape.com
bf9fa1fa2f Bug 66617 - if tabbing scrolls page, focus outline doesn't leave first link (second try). r=saari, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@101405 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 07:25:52 +00:00
sfraser%netscape.com
c3f049538f Fix the output file of the headers target, which is a dummy file used for dependency tracking. It was the same as that in AutoCompleteIDL.mcp, which caused these IDL-generated headers to not be created.
git-svn-id: svn://10.0.0.236/trunk@101400 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 04:27:05 +00:00
cls%seawood.org
8b17e5e0ca Making sure that we export & build LDAP before mailnews like we do on every other platform. This might fix the current bustage possibly related to bug #89198
git-svn-id: svn://10.0.0.236/trunk@101399 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 04:15:19 +00:00
jake%acutex.net
4d649ab63c Refixing bug 95875 - The code that breakes the typed in CC list into individual lists is now slightly more robust and allows perl to handle the splitting more efficiently (by using a space as the delimiter).
r= myk@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@101398 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 03:35:36 +00:00
dbaron%fas.harvard.edu
29b48554fd Fix accumulated P3P build bustage. b=75924 (and 62399) moa=harishd sr=tor
git-svn-id: svn://10.0.0.236/trunk@101397 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 03:05:48 +00:00
blakeross%telocity.com
f7df03c0cb First cut of drag and drop bookmark filing (53707: dragging a link onto bookmarks button should open menu; dragging over subfolders should open them). r=hewitt sr=ben
git-svn-id: svn://10.0.0.236/trunk@101396 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 02:44:35 +00:00
jaggernaut%netscape.com
df49ed7ff7 Fix mac bustage (I hope)
git-svn-id: svn://10.0.0.236/trunk@101394 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 02:12:35 +00:00
hyatt%netscape.com
a9b4d33720 Fix leaks. r=jag, sr=blake
git-svn-id: svn://10.0.0.236/trunk@101392 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 02:03:37 +00:00
ccarlen%netscape.com
7cfbc7bde4 Bug 78498 - Carbonize PPEmbed - adding new files. r=pinkerton/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101391 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:57:33 +00:00
justdave%syndicomm.com
1136151446 Fix for bug 95857: process_bugs.cgi sees blank address in cc: line (would show up as __UNKNOWN__)
Patch by Myk Melez <myk@mozilla.org>
r= justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@101390 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:49:02 +00:00
dbaron%fas.harvard.edu
2049bb32c3 Add REQUIRES lines. b=75924 r=cls
git-svn-id: svn://10.0.0.236/trunk@101389 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:17:02 +00:00
syd%netscape.com
255b5688c7 Fix for 65672. Add CRC checking and single connection ftp to install.
r=dveditz, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@101388 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:15:59 +00:00
dbaron%fas.harvard.edu
4e410a3ede Clean up makefile listings for extensions. b=75924 r=cls
git-svn-id: svn://10.0.0.236/trunk@101387 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:14:23 +00:00
dbaron%fas.harvard.edu
c4495112a3 At least list all the files we do have. b=75924 r=cls
git-svn-id: svn://10.0.0.236/trunk@101386 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:12:29 +00:00
dbaron%fas.harvard.edu
e8cd401a1c Add REQUIRES lines. b=75924 r=cls
git-svn-id: svn://10.0.0.236/trunk@101385 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:09:46 +00:00
dbaron%fas.harvard.edu
e05c7dff20 Add autoconf |Makefile.in|s. r=cls b=75924
git-svn-id: svn://10.0.0.236/trunk@101384 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:08:54 +00:00
dbaron%fas.harvard.edu
1f2556263d Fix makefile to work with objdir builds. b=75924 r=cls
git-svn-id: svn://10.0.0.236/trunk@101383 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:07:08 +00:00
hyatt%netscape.com
83bb56dc40 Fix for 94943. r=jag, sr=blake
git-svn-id: svn://10.0.0.236/trunk@101382 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:04:47 +00:00
thesteve%netscape.com
0319de1366 Bug #81373: landing the mac static build: making MailNews a meta-component.
This new file is Mac ONLY. Furthermore, it is specific to the mac static build, and CAN NOT break the existing mac builds.


git-svn-id: svn://10.0.0.236/trunk@101379 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:55:03 +00:00
thesteve%netscape.com
bacecdfe25 Bug #81373: landing the mac static build: making security a meta-component.
This new file is Mac ONLY. Furthermore, it is specific to the mac static build, and CAN NOT break the existing mac builds.


git-svn-id: svn://10.0.0.236/trunk@101378 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:54:03 +00:00
dmose%netscape.com
e2fb9a8f10 Update REQUIRES line to fix MOZ_TRACK_MODULE_DEPS bustage; the dependency on 'widget' might conceivably be avoidable, however.
git-svn-id: svn://10.0.0.236/trunk@101377 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:39:53 +00:00
av%netscape.com
e971f4e9e1 Fixing 73436 -- hiding platform specific calls in xp files, not part of the build, r=peterl
git-svn-id: svn://10.0.0.236/trunk@101376 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:13:37 +00:00
av%netscape.com
c3a92267af Fixing project file for the spy plugin reflecting new folder structure, not part of the build, r=av
git-svn-id: svn://10.0.0.236/trunk@101375 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:11:16 +00:00
cmanske%netscape.com
cd82b1c709 Add 'List Item' property menuitem by neil@parkwaycc.co.uk, b=95085, r=cmanske, sr=kin
git-svn-id: svn://10.0.0.236/trunk@101374 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:10:37 +00:00
dmose%netscape.com
bb7a2da9d4 Build ordering issues busted the clobber builds; forward declaring an interface and moving a #include around to fix.
git-svn-id: svn://10.0.0.236/trunk@101373 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:04:54 +00:00
rangansen%netscape.com
facf701071 Rolling back last change
git-svn-id: svn://10.0.0.236/trunk@101372 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:02:16 +00:00
rangansen%netscape.com
46e3a96ae3 Rolling back last change
git-svn-id: svn://10.0.0.236/trunk@101371 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:55:46 +00:00
dsirnapalli%netscape.com
6114c5757a Made some changes to put the test case on ngdriver.
git-svn-id: svn://10.0.0.236/trunk@101369 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:41:14 +00:00
rangansen%netscape.com
a9835bd5ed Changing xul window id to remove effect of persistence
bug# 95441, r=javi sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101368 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:35:44 +00:00
rangansen%netscape.com
4fb0f4ca49 Changing dialog title
bug# 94026, r=rangansen. sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101367 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:34:36 +00:00
heikki%netscape.com
57ec326731 Bug 15089, make XML parser error messages localizable. r=harishd,ftang, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@101364 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:27:20 +00:00
ian%hixie.ch
2fa1204013 Make the canvas background use the root element's frame's origin instead of the canvas frame's origin. Bug 46446; r=dcone, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@101363 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:26:29 +00:00
av%netscape.com
41c8b588ee Fixing 73430 -- removing MFC dependency from Windows project, not part of the build patch by timeless, r=av
git-svn-id: svn://10.0.0.236/trunk@101362 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:11:02 +00:00
akkana%netscape.com
877c882bea 92331: revert plaintext quote pref back to using pre. r=mcafee sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@101361 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:00:41 +00:00
peterlubczynski%netscape.com
fdc7d9f811 Fix for crash on Mac when we don't have an mWidget, bug 83155 Browser crashes when trying to load html parameter test on mac, r=bnesse sr=waterson
git-svn-id: svn://10.0.0.236/trunk@101360 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:52:12 +00:00
sicking%bigfoot.com
5c701fdeff Fix default-priorities for patterns and priorities for templates.
b=84677 r=Pike sr=shaver


git-svn-id: svn://10.0.0.236/trunk@101359 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:42:16 +00:00
cmanske%netscape.com
19ddbf2e73 Fixed Advanced Editor dialog bugs (fixed warnings, user input filter rules, dynamic value menulist for particular attributes): bugs 86710, 86712, 86713, 86934, 88878, 88888, 88917, 88923, 88930, 88935, 89445, 92554 (includes help from stephend), r=brade (86713=rcassin, 92554=glazman), sr=kin; fix to 95085 by neil@parkwayscc.co.uk, r=cmanske, sr=kin
git-svn-id: svn://10.0.0.236/trunk@101358 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:41:52 +00:00
naving%netscape.com
58e1261023 95720 r/sr=bienvenu. Make minor change to pop3 NSPR_LOG
git-svn-id: svn://10.0.0.236/trunk@101357 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:38:26 +00:00
av%netscape.com
54b5c1e0ad Bug 73874 -- sample plugin (4.x scriptability), not part of the build, r=peterl
git-svn-id: svn://10.0.0.236/trunk@101356 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:36:46 +00:00
brade%netscape.com
61b6143771 not in the build
git-svn-id: svn://10.0.0.236/trunk@101355 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:34:11 +00:00
dmose%netscape.com
78ac63fcea Fix RFC 822 quoting for LDAP autocompleted display names (bug 89198). Fix works by creating a new "formatter" interface and implementing an addressbook-specific version of it which uses the mailnews quoting code to fix it up. Also provides infrastructure for setting the LDAP autocomplete dropdown comment field, and fixes some error-handling issues in the compose window code for setting up LDAP autocompletion. r=leif@netscape.com (backend changes), srilatha@netscape.com (compose window changes); sr=bienvenu@netscape.com'
git-svn-id: svn://10.0.0.236/trunk@101354 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:32:35 +00:00
dmose%netscape.com
956ad82821 Fix RFC 822 quoting for LDAP autocompleted display names (bug 89198). Fix works by creating a new "formatter" interface and implementing an addressbook-specific version of it which uses the mailnews quoting code to fix it up. Also provides infrastructure for setting the LDAP autocomplete dropdown comment field, and fixes some error-handling issues in the compose window code for setting up LDAP autocompletion. r=leif@netscape.com (backend changes), srilatha@netscape.com (compose window changes); sr=bienvenu@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101353 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:32:28 +00:00
harishd%netscape.com
9a07a3e168 94903 - Don't forgot to resume parsing if loading external js fails.
r=heikki,sr=jst


git-svn-id: svn://10.0.0.236/trunk@101351 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:24:39 +00:00
av%netscape.com
ec4a2b1c71 Bug 73874 -- sample plugin (4.x scriptability), not part of the build, r=peterl
git-svn-id: svn://10.0.0.236/trunk@101350 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:23:41 +00:00
heikki%netscape.com
1dcce3a581 Bug 85554, xml-stylesheet PI should work only in prolog. r=peterv, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@101349 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:19:37 +00:00
loadrunner%betak.net
61e9fc5f07 bug 76444, JavaScript error when Adding Language in Preferences, r=jag, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@101348 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:17:56 +00:00
dcone%netscape.com
9647b47a8d b=91290 fix for printing regression tests r=karnaze sr=waterson
git-svn-id: svn://10.0.0.236/trunk@101347 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:16:17 +00:00
dcone%netscape.com
70733590f6 b=91290 fix for printing regression test. r=karnaze sr=waterson
git-svn-id: svn://10.0.0.236/trunk@101346 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:14:22 +00:00
sicking%bigfoot.com
06d6d324d4 Fix crash by makeing sure that no Expr objects are deleted until the entire transform is done.
b=91332 r=Pike sr=shaver


git-svn-id: svn://10.0.0.236/trunk@101345 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:12:07 +00:00
wtc%netscape.com
2bc7a42751 Added to support Tru64 Unix V5.1.
git-svn-id: svn://10.0.0.236/trunk@101344 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:03:33 +00:00
wtc%netscape.com
ab3cc687dd Bugzilla bug 82259: added the XP_OS2 case.
git-svn-id: svn://10.0.0.236/trunk@101341 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 20:58:05 +00:00
jake%acutex.net
e7597bc03e Fix for bug 95747 - CC List validation (for additions) wasn't happening until after the bug's changes were in the process of being commited. This caused problems if a typo was made in the e-mail address.
r= myk@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@101338 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 20:18:33 +00:00
waldemar%netscape.com
0f612cd98b Renamed a few semantic types. Added 'named' parameter attribute.
git-svn-id: svn://10.0.0.236/trunk@101337 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 20:04:04 +00:00
waldemar%netscape.com
0fff7a6ee9 Tags with fields are now depicted with the 'tuple' keyword instead of 'tag'
git-svn-id: svn://10.0.0.236/trunk@101336 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 20:03:11 +00:00
blizzard%redhat.com
ac9d1a4c2e Back out brendan's checkin to try and get linux starting up again.
git-svn-id: svn://10.0.0.236/trunk@101334 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 19:45:11 +00:00
waterson%netscape.com
2d8777b061 Oops. Cut too deep.
git-svn-id: svn://10.0.0.236/trunk@101333 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 19:40:45 +00:00
sonmi%netscape.com
2ba4ec7a94 removed AIX 32 bit and HP 32 bit
git-svn-id: svn://10.0.0.236/trunk@101330 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 18:34:05 +00:00
waterson%netscape.com
cbaa99ac97 Bug 95780. Rename locale.dll back to nslocale.dll so installer doesn't freak out.
git-svn-id: svn://10.0.0.236/trunk@101329 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 18:00:14 +00:00
javi%netscape.com
85681d6c82 Add NSS.prefix to the optimized target of NSSckbi.shlb
git-svn-id: svn://10.0.0.236/trunk@101328 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 17:29:57 +00:00
thayes%netscape.com
ac5431535c Bug 95531 - correct ref count on certificate in CMS (SMIME) recipient
handling.


git-svn-id: svn://10.0.0.236/trunk@101324 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 16:48:50 +00:00
vishy%netscape.com
4a46dcf20b bugscape 7843, there was a typo in bookmarks.xul, changed label to accesskey so that keyboard access works properly, sorry for no review but this is trivial
git-svn-id: svn://10.0.0.236/trunk@101320 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:46:52 +00:00
kaie%netscape.com
b5a29b81c7 #95334, adding mime types for download certificate revocation lists
r=ssaux@netscape.com sr=blizzard@mozilla.org
You can reach me at kai.engert@gmx.de


git-svn-id: svn://10.0.0.236/trunk@101319 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:44:35 +00:00
kaie%netscape.com
f92c6df558 #92131, SSL client authentication,
fixing memory leak, fixing crash, fixing spacing, adding extra space to layout
r=javi@netscape.com sr=blizzard@mozilla.org
You can reach me at kai.engert@gmx.de


git-svn-id: svn://10.0.0.236/trunk@101318 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:41:01 +00:00
despotdaemon%netscape.com
4cc466f6f1 Pseudo-automatic update of changes made by cls@seawood.org.
git-svn-id: svn://10.0.0.236/trunk@101317 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:33:14 +00:00
peterlubczynski%netscape.com
ffbd960a99 Fixing Carbon bustage (where is the carbon tinderbox?)
git-svn-id: svn://10.0.0.236/trunk@101313 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:30:45 +00:00
nboyd%atg.com
d78515b0e1 Subject:
Rhino: Problem in NativeJavaMethod
   Date:
        Tue, 14 Aug 2001 10:23:35 +0200
   From:
        felix.meschberger@day.com
     To:
        Norris Boyd <nboyd@atg.com>




Hi Norris,

While working with wrapped Java classes we discovered a problem in
NativeJavaMethod : If the public method to be called is part of a
non-public class, the Sun Java VM throws an IllegalAccessException. This
bug in the Sun VM has been reported as Bug 4071593 to Sun, but has not been
resolved since....

I implemented a circumvention, for which I provide you the patch. I quickly
tested it, and it seems to work.

Regards
Felix


git-svn-id: svn://10.0.0.236/trunk@101312 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:29:48 +00:00
dcone%netscape.com
a288b8f058 b=94546 r=peterl sr=attinasi. Fixed the printdialog so it is Modal for windows.
git-svn-id: svn://10.0.0.236/trunk@101308 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:11:05 +00:00
cmanske%netscape.com
19dab37d4e Remove reference to unused variables, b=86705, r=mjudge, sr=kin
git-svn-id: svn://10.0.0.236/trunk@101307 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:07:33 +00:00
cmanske%netscape.com
a7f2ac4447 Use href URL as link text in Link properties dialog, b=90230, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@101305 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 13:54:41 +00:00
wtc%netscape.com
1f779f80d2 Bugzilla bug 95744: handle the case that ENOTEMPTY and EEXIST have the
same value.  (They do on AIX 4.3.)


git-svn-id: svn://10.0.0.236/trunk@101302 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 13:31:15 +00:00
jake%acutex.net
c097cb3b32 Fix for bug 95731: "INSERT INTO shadowlog" failed because "Table 'shadowlog' not locked", fixed typo in lock tables command.
Patch by Myk Melez <myk@mozilla.org>
r= jake@acutex.net


git-svn-id: svn://10.0.0.236/trunk@101301 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 12:42:34 +00:00
leaf%mozilla.org
46984d96e6 Automated update
git-svn-id: svn://10.0.0.236/trunk@101300 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 12:13:57 +00:00
cls%seawood.org
4df6348887 Do not set initial variables to 0 unless you explicitly test using ifeq (1,$(var)) in the makefiles. gmake will treat variables set to 0 as defined.
git-svn-id: svn://10.0.0.236/trunk@101299 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 12:11:48 +00:00
cls%seawood.org
99b12b961f Use mozLock instead of flock() when building lists.
git-svn-id: svn://10.0.0.236/trunk@101298 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 12:06:03 +00:00
cls%seawood.org
a3454095af Pull using the NSPRPUB_PRE_4_2_CLIENT_BRANCH instead of the static tag.
r=leaf


git-svn-id: svn://10.0.0.236/trunk@101297 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 11:17:02 +00:00
justdave%syndicomm.com
b2c6ce4e69 Fix for bug 95743: the role-accessible checkboxes were getting cleared if a user with group access had to log in to make changes to a public bug.
Patch by Myk Melez <myk@mozilla.org>
r= justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@101296 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 11:15:04 +00:00
brendan%mozilla.org
f6e26a3367 Don't resolve standard classes if JSRESOLVE_ASSIGNING (NOT PART OF BUILD).
git-svn-id: svn://10.0.0.236/trunk@101295 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 10:40:15 +00:00
brendan%mozilla.org
9bf59a0feb Checking in khanson's patch with whitespace cleanups for bug 89443, to avoid stack overflow on too many || operators in one expression (r=rogerl, sr=me).
git-svn-id: svn://10.0.0.236/trunk@101294 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 10:29:59 +00:00
brendan%mozilla.org
89a27dff8f Shrinking realloc can fail (95517, basic patch from epstein@tellme.com, r=brendan, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@101292 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:56:48 +00:00
bryner%netscape.com
6c440dcc36 Fixing SVG bustage.
git-svn-id: svn://10.0.0.236/trunk@101291 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:56:46 +00:00
bryner%netscape.com
7b3ce3a03b Fixing mathml bustage.
git-svn-id: svn://10.0.0.236/trunk@101290 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:54:04 +00:00
brendan%mozilla.org
cad980f881 - Better failure codes from nsXULPrototypeScript::Deserialize.
- Call nsXULDocument::AbortFastLoads after nsXULPrototypeScript::Serialize
  failure, instead of just nulling the FastLoad service's output stream.

- Expose nsXULDocument::AbortFastLoads via nsIXULPrototypeCache, for use from
  nsChromeProtocolHandler.cpp.  AbortFastLoads flushes the XUL cache now, for
  good measure.

- The needless "Current" adjective in nsIFastLoadService attribute and method
  names is no more.

- Add a do_GetFastLoadService() helper, to use CID instead of contractid, and
  to let the compiler consolidate the static inline CID.

- Add "nglayout.debug.checksum_xul_fastload_file" pref so people can do without
  the checksum verification step when reading a FastLoad file.

- Verify the FastLoad file checksum, by default.  Also, cache it in the FastLoad
  service so we don't recompute it when re-opening the FastLoad file as mailnews
  and other top-levels start up.  Fill the checksum cache in EndFastLoad, when
  the last pseudo-concurrent top-level finishes loading.

  My hope to compute the checksum while writing the FastLoad file ran afoul of
  misordered writes.  The old code to checksum the in-memory nsFastLoadHeader
  also was broken on little endian platforms.  Now all checksumming is done via
  a separate read pass over the complete file, save for the header's checksum
  field, which is summed as if it contained zero.

- Track and check FastLoad file dependencies.  This required groveling with a
  bunch of Necko interfaces in nsChromeProtocolHandler::NewChannel -- read it
  and weep.  Dependency checking, as well as checksum access and computation,
  use better-factored nsIFastLoad{File,Read,Write}Control interfaces.

- nsBufferedStream::Seek wasn't flushing the buffer when seeking backward
  within the buffer, but it must, because mCursor bounds the amount to write
  if the buffer contains the end of file.

- Add an unbufferedStream readonly attribute to nsIStreamBufferAccess, so we
  don't have to screw around with the bufferying layer when checksumming. Also
  implement nsIStreamBufferAccess in nsBufferedOutputStream.

- nsISeekableOutputStream was bogus, based on a bad state I had put the
  nsBufferedOutputStream code in on its way from being completely broken when
  you seek backwards outside of the buffer.  Removing this interface required
  using nsIFastLoadFileIO in nsFastLoadFileWriter, and it also required careful
  ordering of Close calls (the Writer or Updater must close after the Reader,
  so that the Reader's underlying, unbuffered input stream can be read by
  nsFastLoadFileWriter::Close to compute the checksum.

- Miscellaneous tab/indentation, comment typo, bracing, if( => if ( style,
  nsnull vs. 0, useless variable elimination, tortured control flow,
  AutoString instead of String, and gratuitous ; after nsISupportsUtils.h
  macro call cleanups.


git-svn-id: svn://10.0.0.236/trunk@101289 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:52:55 +00:00
bryner%netscape.com
89ad8fb4c6 Fixing mac bustage, I hope.
git-svn-id: svn://10.0.0.236/trunk@101288 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:44:54 +00:00
waterson%netscape.com
375fff5fe0 Stab at fixing OS/2 bustage.
git-svn-id: svn://10.0.0.236/trunk@101287 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:40:23 +00:00
bryner%netscape.com
fc0aad073f Fixing win32 bustage.
git-svn-id: svn://10.0.0.236/trunk@101286 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:09:27 +00:00
justdave%syndicomm.com
715a4d1008 Fix for bug 95731: "INSERT INTO shadowlog" failed because "Table 'shadowlog' not locked", fixed typo in lock tables command.
Patch by Myk Melez <myk@mozilla.org>
r= justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@101285 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 08:38:54 +00:00
waterson%netscape.com
0a0078ba6a Bug 94831, redux. Fix windows static build stuff.
git-svn-id: svn://10.0.0.236/trunk@101284 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 08:38:26 +00:00
bryner%netscape.com
7da361b479 Bug 66835 - fix method hiding warnings by renaming some methods on nsIContent. r=jag, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@101283 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 08:14:14 +00:00
cls%seawood.org
7c473115e1 Removing hardcoded test for TestGtkEmbed as not all of our platforms build TestGtkEmbed by default
git-svn-id: svn://10.0.0.236/trunk@101282 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 08:12:31 +00:00
cls%seawood.org
bf0ad62e6b Stop pulling psm1. Bug #78975 r=leaf sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101281 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 07:50:15 +00:00
waterson%netscape.com
556a7ee768 Bug 94831. Convert locale into a generic module. r/sr=nobody
git-svn-id: svn://10.0.0.236/trunk@101279 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 05:54:29 +00:00
waterson%netscape.com
d11171b5e7 Bug 94831. Convert locale stuff to generic module. r/sr=nobody: I am the devil.
git-svn-id: svn://10.0.0.236/trunk@101278 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 05:52:48 +00:00
jst%netscape.com
541f0e0bd9 Fixing bug 88151, anchor.accessKey wasn't working correctly. r=heikki@netscape.com, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101277 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 04:52:13 +00:00
rjesup%wgate.com
e55dbe1a1e Fix for evil win32 compiler to unhork build. sr=hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101274 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 04:46:35 +00:00
rjesup%wgate.com
eb7a5f2ca8 Checkin for buig 92641. Cuts 1000ish allocations from startup; doesn't dup schem as often. r=dougt@netscape.com sr=hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101273 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 04:01:38 +00:00
leaf%mozilla.org
b7f2f63bb9 Automated update
git-svn-id: svn://10.0.0.236/trunk@101272 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 03:13:56 +00:00
jgaunt%netscape.com
92c01c45b6 fix for bug 94768
r=smfr,leaf
sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@101271 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 03:13:07 +00:00
saari%netscape.com
0a7ae8e975 Fix for bug 93521, selections are sometimes grayed out. r=bryner, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@101268 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 02:38:41 +00:00
saari%netscape.com
64bddd3cc3 Fix for bug 82569, a simple null check to patch over a crash some people are seeing from talkback.
r=blake, sr=jst


git-svn-id: svn://10.0.0.236/trunk@101267 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 02:30:22 +00:00
leaf%mozilla.org
4f878214fe Automated update
git-svn-id: svn://10.0.0.236/trunk@101266 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 02:14:02 +00:00
waterson%netscape.com
5af445c54c modify mac project files for MOZ_TIMELINE tool, bug 78793
git-svn-id: svn://10.0.0.236/trunk@101265 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 02:04:20 +00:00
3364 changed files with 283865 additions and 5885 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,219 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* ex: set tabstop=8 softtabstop=2 shiftwidth=2 expandtab:
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/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.org 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.
*
* Contributor(s):
*/
#ifndef nsFontMetricsGTK_h__
#define nsFontMetricsGTK_h__
#include "nsDeviceContextGTK.h"
#include "nsIFontMetrics.h"
#include "nsIFontEnumerator.h"
#include "nsFont.h"
#include "nsString.h"
#include "nsUnitConversion.h"
#include "nsIDeviceContext.h"
#include "nsCRT.h"
#include "nsCOMPtr.h"
#include "nsRenderingContextGTK.h"
#include "nsICharRepresentable.h"
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#undef FONT_HAS_GLYPH
#define FONT_HAS_GLYPH(map, char) IS_REPRESENTABLE(map, char)
typedef struct nsFontCharSetInfo nsFontCharSetInfo;
typedef gint (*nsFontCharSetConverter)(nsFontCharSetInfo* aSelf,
XFontStruct* aFont, const PRUnichar* aSrcBuf, PRInt32 aSrcLen,
char* aDestBuf, PRInt32 aDestLen);
struct nsFontCharSet;
struct nsFontFamily;
struct nsFontNode;
struct nsFontStretch;
class nsFontGTKUserDefined;
class nsFontMetricsGTK;
class nsFontGTK
{
public:
nsFontGTK();
virtual ~nsFontGTK();
NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
void LoadFont(void);
PRBool IsEmptyFont(GdkFont*);
inline int SupportsChar(PRUnichar aChar)
{ return mFont && FONT_HAS_GLYPH(mMap, aChar); };
virtual GdkFont* GetGDKFont(void);
virtual PRBool GetGDKFontIs10646(void);
virtual gint GetWidth(const PRUnichar* aString, PRUint32 aLength) = 0;
virtual gint DrawString(nsRenderingContextGTK* aContext,
nsDrawingSurfaceGTK* aSurface, nscoord aX,
nscoord aY, const PRUnichar* aString,
PRUint32 aLength) = 0;
#ifdef MOZ_MATHML
// bounding metrics for a string
// remember returned values are not in app units
// - to emulate GetWidth () above
virtual nsresult
GetBoundingMetrics(const PRUnichar* aString,
PRUint32 aLength,
nsBoundingMetrics& aBoundingMetrics) = 0;
#endif
PRUint32* mMap;
nsFontCharSetInfo* mCharSetInfo;
char* mName;
nsFontGTKUserDefined* mUserDefinedFont;
PRUint16 mSize;
PRInt16 mBaselineAdjust;
protected:
GdkFont* mFont;
PRBool mAlreadyCalledLoadFont;
};
class nsFontMetricsGTK : public nsIFontMetrics
{
public:
nsFontMetricsGTK();
virtual ~nsFontMetricsGTK();
NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
NS_DECL_ISUPPORTS
NS_IMETHOD Init(const nsFont& aFont, nsIAtom* aLangGroup,
nsIDeviceContext* aContext);
NS_IMETHOD Destroy();
NS_IMETHOD GetXHeight(nscoord& aResult);
NS_IMETHOD GetSuperscriptOffset(nscoord& aResult);
NS_IMETHOD GetSubscriptOffset(nscoord& aResult);
NS_IMETHOD GetStrikeout(nscoord& aOffset, nscoord& aSize);
NS_IMETHOD GetUnderline(nscoord& aOffset, nscoord& aSize);
NS_IMETHOD GetHeight(nscoord &aHeight);
NS_IMETHOD GetNormalLineHeight(nscoord &aHeight);
NS_IMETHOD GetLeading(nscoord &aLeading);
NS_IMETHOD GetEmHeight(nscoord &aHeight);
NS_IMETHOD GetEmAscent(nscoord &aAscent);
NS_IMETHOD GetEmDescent(nscoord &aDescent);
NS_IMETHOD GetMaxHeight(nscoord &aHeight);
NS_IMETHOD GetMaxAscent(nscoord &aAscent);
NS_IMETHOD GetMaxDescent(nscoord &aDescent);
NS_IMETHOD GetMaxAdvance(nscoord &aAdvance);
NS_IMETHOD GetFont(const nsFont *&aFont);
NS_IMETHOD GetLangGroup(nsIAtom** aLangGroup);
NS_IMETHOD GetFontHandle(nsFontHandle &aHandle);
virtual nsresult GetSpaceWidth(nscoord &aSpaceWidth);
nsFontGTK* FindFont(PRUnichar aChar);
nsFontGTK* FindUserDefinedFont(PRUnichar aChar);
nsFontGTK* FindStyleSheetSpecificFont(PRUnichar aChar);
nsFontGTK* FindStyleSheetGenericFont(PRUnichar aChar);
nsFontGTK* FindLangGroupPrefFont(nsIAtom* aLangGroup, PRUnichar aChar);
nsFontGTK* FindLangGroupFont(nsIAtom* aLangGroup, PRUnichar aChar, nsCString* aName);
nsFontGTK* FindAnyFont(PRUnichar aChar);
nsFontGTK* FindSubstituteFont(PRUnichar aChar);
nsFontGTK* SearchNode(nsFontNode* aNode, PRUnichar aChar);
nsFontGTK* TryAliases(nsCString* aName, PRUnichar aChar);
nsFontGTK* TryFamily(nsCString* aName, PRUnichar aChar);
nsFontGTK* TryNode(nsCString* aName, PRUnichar aChar);
nsFontGTK* TryNodes(nsAWritableCString &aFFREName, PRUnichar aChar);
nsFontGTK* TryLangGroup(nsIAtom* aLangGroup, nsCString* aName, PRUnichar aChar);
nsFontGTK* AddToLoadedFontsList(nsFontGTK* aFont);
nsFontGTK* PickASizeAndLoad(nsFontStretch* aStretch,
nsFontCharSetInfo* aCharSet,
PRUnichar aChar,
const char *aName);
static nsresult FamilyExists(const nsString& aFontName);
//friend struct nsFontGTK;
nsFontGTK **mLoadedFonts;
PRUint16 mLoadedFontsAlloc;
PRUint16 mLoadedFontsCount;
nsFontGTK *mSubstituteFont;
nsCStringArray mFonts;
PRUint16 mFontsIndex;
nsVoidArray mFontIsGeneric;
nsCAutoString mDefaultFont;
nsCString *mGeneric;
nsCOMPtr<nsIAtom> mLangGroup;
nsCAutoString mUserDefined;
PRUint8 mTriedAllGenerics;
PRUint8 mIsUserDefined;
protected:
void RealizeFont();
nsIDeviceContext *mDeviceContext;
nsFont *mFont;
nsFontGTK *mWesternFont;
nscoord mLeading;
nscoord mEmHeight;
nscoord mEmAscent;
nscoord mEmDescent;
nscoord mMaxHeight;
nscoord mMaxAscent;
nscoord mMaxDescent;
nscoord mMaxAdvance;
nscoord mXHeight;
nscoord mSuperscriptOffset;
nscoord mSubscriptOffset;
nscoord mStrikeoutSize;
nscoord mStrikeoutOffset;
nscoord mUnderlineSize;
nscoord mUnderlineOffset;
nscoord mSpaceWidth;
PRUint16 mPixelSize;
PRUint8 mStretchIndex;
PRUint8 mStyleIndex;
nsFontCharSetConverter mDocConverterType;
};
class nsFontEnumeratorGTK : public nsIFontEnumerator
{
public:
nsFontEnumeratorGTK();
NS_DECL_ISUPPORTS
NS_DECL_NSIFONTENUMERATOR
};
#endif

71
mozilla/java/Makefile.in Normal file
View File

@@ -0,0 +1,71 @@
#!gmake
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/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.org 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.
#
# Contributor(s):
DEPTH = ..
topsrcdir = @top_srcdir@
VPATH = @srcdir@
srcdir = @srcdir@
include $(DEPTH)/config/autoconf.mk
ifneq ($(BUILD_DOM_ONLY),)
DIRS = external \
util \
dom
else
ifneq ($(BUILD_PLUGLETS_ONLY),)
DIRS = external \
util \
dom \
plugins
else
ifneq ($(BUILD_WEBCLIENT_ONLY),)
DIRS = external \
util \
dom \
xpcom \
webclient
else
ifneq ($(BUILD_BLACKCONNECT_ONLY),)
DIRS = external \
util \
xpcom
else
ifneq ($(BUILD_BLACKWOOD),)
DIRS = external \
util \
dom \
xpcom \
webclient \
plugins
endif
endif
endif
endif
endif
ifneq ($(PACKAGE_BUILD),)
DIRS += build
endif
include $(topsrcdir)/config/rules.mk

82
mozilla/java/Makefile.win Normal file
View File

@@ -0,0 +1,82 @@
#!nmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun are
# Copyright (C) 1999 Sun Microsystems, Inc. All
# Rights Reserved.
#
# Contributor(s):
IGNORE_MANIFEST=1
#//------------------------------------------------------------------------
#//
#// Makefile to build the java enhancers to mozilla
#//
#//------------------------------------------------------------------------
#//------------------------------------------------------------------------
#//
#// Specify the depth of the current directory relative to the
#// root of NS
#//
#//------------------------------------------------------------------------
DEPTH = ..
!ifdef BUILD_DOM_ONLY
DIRS = external \
util \
dom
!else
!ifdef BUILD_PLUGLETS_ONLY
DIRS = external \
util \
dom \
plugins
!else
!ifdef BUILD_WEBCLIENT_ONLY
DIRS = external \
util \
dom \
xpcom \
webclient \
build
!else
!ifdef BUILD_BLACKCONNECT_ONLY
DIRS = external \
util \
xpcom
!else
!ifdef BUILD_BLACKWOOD
DIRS = external \
util \
dom \
xpcom \
webclient \
plugins
!endif
!endif
!endif
!endif
!endif
!ifdef PACKAGE_BUILD
DIRS = $(DIRS) build
!endif
include <$(DEPTH)\config\rules.mak>
edburns:
echo $(DIRS)

36
mozilla/java/README Normal file
View File

@@ -0,0 +1,36 @@
Here lies the code that comprises the java enhancers to mozilla.
Authors: see the README files for each individual subdirectory
Requirements:
* JDK1.2 or greater (may work with lower versions, haven't checked).
* Successfully built MOZ_DEBUG=1 Mozilla M13 tree.
* Perl 5 perl.exe must be in your path
How To Build:
* make it so the directory in which this file resides is a child of your
top level Mozilla M13 directory
* make sure the environment var JDKHOME is set to your jdk installation
directory, ie SET JDKHOME=C:\jdk1.2.2
* type "nmake /f makefile.win all" and hope for the best
* this should compile the clasess into %MOZ_SRC%\dist\classes
Problems:
* clobber_all doesn't remove the .class files from dist\classes. You
have to do this manually.
* post to netscape.public.mozilla.java newsgroup
General notes:
* Please update the ChangeLog (changelo) files in the subdirectories when
you make changes.

View File

@@ -0,0 +1,104 @@
******************** BLACKWOOD RELEASE 0.9 README ********************
READ THIS DOCUMENT BEFORE RUNNING ANY OF THE BLACKWOOD COMPONENTS
This version of Blackwood has been built on and configured for
the Solaris(TM) operating environment
This package contains the following components of the Blackwood Project
- Pluglets, JavaDOM and Webclient
The Blackwood project aims to -
1. Better integrate the Java (TM) platform with the Mozilla (Netscape 6)
Browser so developers can extend the browser with components and
plug-ins written in the Java programming language
2. Make sure that Mozilla's layout engine can be embedded in
applications running on a Java virtual machine (JVM).
More information on the Blackwood project can be obtained online at
http://www.mozilla.org/projects/blackwood/
------------------------------------------------------------------------
SYSTEM REQUIREMENTS
------------------------------------------------------------------------
The Blackwood software components run on Solaris for SPARC(TM) and
Solaris for Intel with Solaris versions 7 and 8.
You will also need to install the JRE1.3.0_01 Java Bundle that goes
with Netscape 6 PR3
-------------------------------------------------------------------------
BLACKWOOD COMPONENTS
-------------------------------------------------------------------------
JAVA PLUGLET API - A Pluglet is a plug-in that is written in the Java
programming Language. The Java Pluglet API is a close 1:1 implementation
of the new C++ Plug-in API in Mozilla and it allows users to develop
plug-ins in Java that run inside a Java Virtual Machione (JVM).
More information can be obtained online at
http://www.mozilla.org/projects/blackwood/java-plugins/
JAVA DOM API - The Java DOM API is an implementation of the Java Bindings
specified in the Document Object Model (DOM) Level 1 Specification. This
API allows Java Applets and Pluglets to interact with and modify the
document they are embedded into.
More information can be obtained online at
http://www.mozilla.org/projects/blackwood/dom/
http://www.w3.org/TR/REC-DOM-Level-1/java-language-binding.html
WEBCLIENT - Webclient is a browser-neutral Java API that enables generic
web browsing capabilities in a Java application.
More information can be obtained online at
http://www.mozilla.org/projects/blackwood/webclient/
http://www.mozilla.org/projects/blackwood/webclient/ref_guides/Developer_guide/index.htm
http://www.mozilla.org/projects/blackwood/webclient/ref_guides/Implementation_guide/index.htm
-------------------------------------------------------------------------
RUN INSTRUCTIONS
-------------------------------------------------------------------------
PLUGLETS
- Launch the browser using the shell script "netscape"
- Navigate to the url file:///opt/SUNWns6/res/javadev/pluglets/test.html
This contains several Pluglet examples.
JAVADOM
- The DOMViewer example in the Pluglets example list is a JavaDOM example
WEBCLIENT
- set the Environment variable MOZILLA_FIVE_HOME to the location of your
Netscape 6 binaries. If you install the SVR4 package, this will be
setenv MOZILLA_FIVE_HOME /opt/SUNWns6
- cd to the javadev/example directory
- run the shell script runem as
runem <your url>
============================================================================
Copyright 2000 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto,
California 94303 U.S.A. All rights reserved.
Sun, Sun Microsystems, Java, SunOS, OpenWindows, and Solaris are trademarks,
registered trademarks, or service marks of Sun Microsystems, Inc. in the U.S.A.
and other countries. All SPARC trademarks are used under license and are
trademarks or registered trademarks of SPARC International, Inc. in the U.S.A.
and other countries. Products bearing SPARC trademarks are based upon an
architecture developed by Sun Microsystems, Inc. Netscape is a trademark of
Netscape Communications Corporation. PostScript is a trademark of Adobe
Systems, Incorporated, which may be registered in certain jurisdictions.

View File

@@ -0,0 +1,271 @@
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun are
# Copyright (C) 1999 Sun Microsystems, Inc. All
# Rights Reserved.
#
# Contributor(s):
DEPTH = ../..
topsrcdir = $(DEPTH)
JAVAHOME = $(JDKHOME)
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/rules.mk
PACKAGE_DIR=$(topsrcdir)/dist/javadev
PACKAGE_LIB=$(PACKAGE_DIR)/lib
PACKAGE_EXAMPLE=$(PACKAGE_DIR)/example
ifeq ($(PACKAGE_VER),)
PACKAGE_VER=1_1
endif
ifeq ($(OS_ARCH),Linux)
PACKAGE_OS=linux
SET_CLASSPATH="export CLASSPATH="
else
PACKAGE_OS=solaris
SET_CLASSPATH="setenv CLASSPATH "
endif
buildRunems:
ifneq ($(BUILD_DOM_ONLY),)
if test ! -d $(PACKAGE_DIR) ; then mkdir $(PACKAGE_DIR) ; else true ; fi ;
if test ! -d $(PACKAGE_LIB) ; then mkdir $(PACKAGE_LIB) ; else true ; fi ;
if test ! -d $(PACKAGE_EXAMPLE) ; then mkdir $(PACKAGE_EXAMPLE) ; else true ; fi ;
if test ! -d $(DIST)/../java/build/org ; then mkdir $(DIST)/../java/build/org ; else true ; fi ;
if test ! -d $(DIST)/../java/build/org/mozilla ; then mkdir $(DIST)/../java/build/org/mozilla ; else true ; fi ;
cp -R $(DIST)/classes/org/mozilla/dom $(DIST)/../java/build/org/mozilla
cp -R $(DIST)/classes/org/mozilla/util $(DIST)/../java/build/org/mozilla
cp -R $(DIST)/classes/org/w3c $(DIST)/../java/build/org
cd $(DIST)/../java/build
$(JDKHOME)/bin/jar -cvfM0 JavaDOM_$(PACKAGE_VER)_$(PACKAGE_OS).jar org
cp JavaDOM_$(PACKAGE_VER)_$(PACKAGE_OS).jar $(PACKAGE_LIB)/JavaDOM_$(PACKAGE_VER)_$(PACKAGE_OS).jar
rm -Rf $(DIST)/../java/build/org
rm -f $(DIST)/../java/build/JavaDOM_$(PACKAGE_VER)_$(PACKAGE_OS).jar
cp $(DIST)/bin/libjavadomjni.so $(PACKAGE_LIB)/libjavadomjni.so
cp $(DIST)/bin/components/libjavadom.so $(PACKAGE_LIB)/libjavadom.so
chmod 775 $(PACKAGE_LIB)/libjavadomjni.so
chmod 775 $(PACKAGE_LIB)/libjavadom.so
cp $(DIST)/../java/build/install_dom_unix.js $(DIST)/install.js
cp $(DIST)/../java/build/symlink.sh $(DIST)/symlink.sh
chmod 775 $(DIST)/symlink.sh
cp $(DIST)/../java/build/README.DOM $(PACKAGE_DIR)/README.DOM
cd $(DIST) ; \
zip -r JavaDOM_$(PACKAGE_VER)_$(PACKAGE_OS).xpi install.js symlink.sh javadev
else
ifneq ($(BUILD_PLUGLETS_ONLY),)
if test ! -d $(PACKAGE_DIR) ; then mkdir $(PACKAGE_DIR) ; else true ; fi ;
if test ! -d $(PACKAGE_LIB) ; then mkdir $(PACKAGE_LIB) ; else true ; fi ;
if test ! -d $(PACKAGE_EXAMPLE) ; then mkdir $(PACKAGE_EXAMPLE) ; else true ; fi ;
if test ! -d $(DIST)/../java/build/org ; then mkdir $(DIST)/../java/build/org ; else true ; fi ;
if test ! -d $(DIST)/../java/build/org/mozilla ; then mkdir $(DIST)/../java/build/org/mozilla ; else true ; fi ;
cp -R $(DIST)/classes/org/mozilla/util $(DIST)/../java/build/org/mozilla
cp -R $(DIST)/classes/org/mozilla/dom $(DIST)/../java/build/org/mozilla
cp -R $(DIST)/classes/org/mozilla/plugins $(DIST)/../java/build/org/mozilla
cp -R $(DIST)/classes/org/w3c $(DIST)/../java/build/org
cd $(DIST)/../java/build
$(JDKHOME)/bin/jar -cvfM0 Pluglet_$(PACKAGE_VER)_$(PACKAGE_OS).jar org
cp Pluglet_$(PACKAGE_VER)_$(PACKAGE_OS).jar $(PACKAGE_LIB)/Pluglet_$(PACKAGE_VER)_$(PACKAGE_OS).jar
rm -Rf $(DIST)/../java/build/org
rm -f $(DIST)/../java/build/Pluglet_$(PACKAGE_VER)_$(PACKAGE_OS).jar
cp $(DIST)/bin/libjavadomjni.so $(PACKAGE_LIB)/libjavadomjni.so
cp $(DIST)/bin/components/libjavadom.so $(PACKAGE_LIB)/libjavadom.so
cp $(DIST)/bin/libplugletjni.so $(PACKAGE_LIB)/libplugletjni.so
cp $(DIST)/bin/components/libpluglet.so $(PACKAGE_LIB)/libpluglet.so
chmod 775 $(PACKAGE_LIB)/libjavadomjni.so
chmod 775 $(PACKAGE_LIB)/libjavadom.so
chmod 775 $(PACKAGE_LIB)/libplugletjni.so
chmod 775 $(PACKAGE_LIB)/libpluglet.so
cp $(DIST)/../java/build/install_pluglet_unix.js $(DIST)/install.js
cp $(DIST)/../java/build/symlink.sh $(DIST)/symlink.sh
chmod 775 $(DIST)/symlink.sh
cp $(DIST)/../java/build/README.PLUGLET $(PACKAGE_DIR)/README.PLUGLET
cd $(DIST) ; \
zip -r Pluglet_$(PACKAGE_VER)_$(PACKAGE_OS).xpi install.js symlink.sh javadev
else
ifneq ($(BUILD_WEBCLIENT_ONLY),)
if test ! -d $(PACKAGE_DIR) ; then mkdir $(PACKAGE_DIR) ; else true ; fi ;
if test ! -d $(PACKAGE_LIB) ; then mkdir $(PACKAGE_LIB) ; else true ; fi ;
if test ! -d $(PACKAGE_EXAMPLE) ; then mkdir $(PACKAGE_EXAMPLE) ; else true ; fi ;
if test ! -d $(DIST)/../java/build/org ; then mkdir $(DIST)/../java/build/org ; else true ; fi ;
if test ! -d $(DIST)/../java/build/org/mozilla ; then mkdir $(DIST)/../java/build/org/mozilla ; else true ; fi ;
cp -R $(DIST)/classes/org/mozilla/util $(DIST)/../java/build/org/mozilla
cp -R $(DIST)/classes/org/mozilla/dom $(DIST)/../java/build/org/mozilla
cp -R $(DIST)/classes/org/mozilla/webclient $(DIST)/../java/build/org/mozilla
cp -R $(DIST)/classes/org/mozilla/xpcom $(DIST)/../java/build/org/mozilla
cp -R $(DIST)/classes/org/w3c $(DIST)/../java/build/org
cd $(DIST)/../java/build
$(JDKHOME)/bin/jar -cvfM0 webclient_$(PACKAGE_VER)_$(PACKAGE_OS).jar org
cp webclient_$(PACKAGE_VER)_$(PACKAGE_OS).jar $(PACKAGE_LIB)/webclient_$(PACKAGE_VER)_$(PACKAGE_OS).jar
rm -Rf $(DIST)/../java/build/org
rm -f $(DIST)/../java/build/webclient_$(PACKAGE_VER)_$(PACKAGE_OS).jar
cp $(DIST)/bin/libjavadomjni.so $(PACKAGE_LIB)/libjavadomjni.so
cp $(DIST)/bin/components/libjavadom.so $(PACKAGE_LIB)/libjavadom.so
cp $(DIST)/bin/libwebclient.so $(PACKAGE_LIB)/libwebclient.so
cp $(DIST)/bin/libwebclientstub.so $(PACKAGE_LIB)/libwebclientstub.so
cp $(DIST)/lib/libwc_share.so $(PACKAGE_LIB)/libwc_share.so
cp $(DIST)/bin/components/libbcorb.so $(PACKAGE_LIB)/libbcorb.so
cp $(DIST)/bin/libblackconnectjni.so $(PACKAGE_LIB)/libblackconnectjni.so
cp $(DIST)/bin/components/libbcjavastubs.so $(PACKAGE_LIB)/libbcjavastubs.so
cp $(DIST)/bin/components/libjavaloader.so $(PACKAGE_LIB)/libjavaloader.so
cp $(DIST)/bin/components/libjavaSample.so $(PACKAGE_LIB)/libjavaSample.so
cp $(DIST)/bin/components/libbcxpcomstubs.so $(PACKAGE_LIB)/libbcxpcomstubs.so
cp $(DIST)/bin/regxpcom $(PACKAGE_LIB)/regxpcom
chmod 775 $(PACKAGE_LIB)/libbcorb.so
chmod 775 $(PACKAGE_LIB)/libbcjavastubs.so
chmod 775 $(PACKAGE_LIB)/libjavaloader.so
chmod 775 $(PACKAGE_LIB)/libjavaSample.so
chmod 775 $(PACKAGE_LIB)/libbcxpcomstubs.so
chmod 775 $(PACKAGE_LIB)/regxpcom
chmod 775 $(PACKAGE_LIB)/libjavadomjni.so
chmod 775 $(PACKAGE_LIB)/libjavadom.so
chmod 775 $(PACKAGE_LIB)/libwebclient.so
chmod 775 $(PACKAGE_LIB)/libwebclientstub.so
chmod 775 $(PACKAGE_LIB)/libwc_share.so
@echo +++ Creating Commercial Package. Use runem.bat to run the test browser.
rm -f runem_unix_commercial.bat
@echo cp ../lib/libwebclient.so ../.. >> runem_unix_commercial.bat
@echo cp ../lib/libwebclientstub.so ../.. >> runem_unix_commercial.bat
@echo cp ../lib/libjavadom.so ../../components >> runem_unix_commercial.bat
@echo cp ../lib/libjavadomjni.so ../.. >> runem_unix_commercial.bat
@echo cp ../lib/libblackconnectjni.so ../.. >> runem_unix_commercial.bat
@echo $(SET_CLASSPATH)../lib/webclient_$(PACKAGE_VER)_$(PACKAGE_OS).jar>> runem_unix_commercial.bat
@echo $(PERL) ./runem.pl org.mozilla.webclient.test.EmbeddedMozillaImpl $(DEPTH) %1% >> runem_unix_commercial.bat
cp -f runem_unix_commercial.bat $(PACKAGE_EXAMPLE)/runem.bat
cp -f $(DIST)/../java/webclient/src_share/runem.pl $(PACKAGE_EXAMPLE)/runem.pl
chmod 775 $(PACKAGE_EXAMPLE)/runem.bat
chmod 775 $(PACKAGE_EXAMPLE)/runem.pl
cp $(DIST)/../java/build/install_webclient_unix.js $(DIST)/install.js
cp $(DIST)/../java/build/symlink.sh $(DIST)/symlink.sh
chmod 775 $(DIST)/symlink.sh
cp $(DIST)/../java/build/README.WEBCLIENT $(PACKAGE_DIR)/README.WEBCLIENT
cd $(DIST) ; \
zip -r webclient_$(PACKAGE_VER)_$(PACKAGE_OS).xpi install.js symlink.sh javadev
else
ifneq ($(BUILD_BLACKCONNECT_ONLY),)
if test ! -d $(PACKAGE_DIR) ; then mkdir $(PACKAGE_DIR) ; else true ; fi ;
if test ! -d $(PACKAGE_LIB) ; then mkdir $(PACKAGE_LIB) ; else true ; fi ;
if test ! -d $(PACKAGE_EXAMPLE) ; then mkdir $(PACKAGE_EXAMPLE) ; else true ; fi ;
if test ! -d $(DIST)/../java/build/org ; then mkdir $(DIST)/../java/build/org ; else true ; fi ;
if test ! -d $(DIST)/../java/build/org/mozilla ; then mkdir $(DIST)/../java/build/org/mozilla ; else true ; fi ;
cp -R $(DIST)/classes/org/mozilla/util $(DIST)/../java/build/org/mozilla
cp -R $(DIST)/classes/org/mozilla/xpcom $(DIST)/../java/build/org/mozilla
cd $(DIST)/../java/build
$(JDKHOME)/bin/jar -cvfM0 Blackconnect_$(PACKAGE_VER)_$(PACKAGE_OS).jar org
cp Blackconnect_$(PACKAGE_VER)_$(PACKAGE_OS).jar $(PACKAGE_LIB)/Blackconnect_$(PACKAGE_VER)_$(PACKAGE_OS).jar
rm -Rf $(DIST)/../java/build/org
rm -f $(DIST)/../java/build/Blackconnect_$(PACKAGE_VER)_$(PACKAGE_OS).jar
cp $(DIST)/bin/components/libbcorb.so $(PACKAGE_LIB)/libbcorb.so
cp $(DIST)/bin/components/libbcjavastubs.so $(PACKAGE_LIB)/libbcjavastubs.so
cp $(DIST)/bin/components/libjavaloader.so $(PACKAGE_LIB)/libjavaloader.so
cp $(DIST)/bin/components/libjavaSample.so $(PACKAGE_LIB)/libjavaSample.so
cp $(DIST)/bin/components/libbcxpcomstubs.so $(PACKAGE_LIB)/libbcxpcomstubs.so
cp $(DIST)/bin/regxpcom $(PACKAGE_LIB)/regxpcom
chmod 775 $(PACKAGE_LIB)/libbcorb.so
chmod 775 $(PACKAGE_LIB)/libbcjavastubs.so
chmod 775 $(PACKAGE_LIB)/libjavaloader.so
chmod 775 $(PACKAGE_LIB)/libjavaSample.so
chmod 775 $(PACKAGE_LIB)/libbcxpcomstubs.so
chmod 775 $(PACKAGE_LIB)/regxpcom
cp $(DIST)/../java/build/install_blackconnect_unix.js $(DIST)/install.js
cp $(DIST)/../java/build/symlink.sh $(DIST)/symlink.sh
chmod 775 $(DIST)/symlink.sh
cp $(DIST)/../java/build/README.BLACKCONNECT $(PACKAGE_DIR)/README.BLACKCONNECT
cd $(DIST) ; \
zip -r Blackconnect_$(PACKAGE_VER)_$(PACKAGE_OS).xpi install.js symlink.sh javadev
else
ifneq ($(BUILD_BLACKWOOD),)
if test ! -d $(PACKAGE_DIR) ; then mkdir $(PACKAGE_DIR) ; else true ; fi ;
if test ! -d $(PACKAGE_LIB) ; then mkdir $(PACKAGE_LIB) ; else true ; fi ;
if test ! -d $(PACKAGE_EXAMPLE) ; then mkdir $(PACKAGE_EXAMPLE) ; else true ; fi ;
if test ! -d $(DIST)/../java/build/org ; then mkdir $(DIST)/../java/build/org ; else true ; fi ;
if test ! -d $(DIST)/../java/build/org/mozilla ; then mkdir $(DIST)/../java/build/org/mozilla ; else true ; fi ;
cp -R $(DIST)/classes/org/mozilla $(DIST)/../java/build/org
cp -R $(DIST)/classes/org/w3c $(DIST)/../java/build/org
cd $(DIST)/../java/build
$(JDKHOME)/bin/jar -cvfM0 Blackwood_$(PACKAGE_VER)_$(PACKAGE_OS).jar org
cp Blackwood_$(PACKAGE_VER)_$(PACKAGE_OS).jar $(PACKAGE_LIB)/Blackwood_$(PACKAGE_VER)_$(PACKAGE_OS).jar
rm -Rf $(DIST)/../java/build/org
rm -f $(DIST)/../java/build/Blackwood_$(PACKAGE_VER)_$(PACKAGE_OS).jar
cp $(DIST)/bin/libjavadomjni.so $(PACKAGE_LIB)/libjavadomjni.so
cp $(DIST)/bin/components/libjavadom.so $(PACKAGE_LIB)/libjavadom.so
cp $(DIST)/bin/libplugletjni.so $(PACKAGE_LIB)/libplugletjni.so
cp $(DIST)/bin/components/libpluglet.so $(PACKAGE_LIB)/libpluglet.so
cp $(DIST)/bin/libwebclient.so $(PACKAGE_LIB)/libwebclient.so
cp $(DIST)/bin/libwebclientstub.so $(PACKAGE_LIB)/libwebclientstub.so
cp $(DIST)/lib/libwc_share.so $(PACKAGE_LIB)/libwc_share.so
cp $(DIST)/bin/components/libbcorb.so $(PACKAGE_LIB)/libbcorb.so
cp $(DIST)/bin/components/libbcjavastubs.so $(PACKAGE_LIB)/libbcjavastubs.so
cp $(DIST)/bin/components/libjavaloader.so $(PACKAGE_LIB)/libjavaloader.so
cp $(DIST)/bin/components/libjavaSample.so $(PACKAGE_LIB)/libjavaSample.so
cp $(DIST)/bin/components/libbcxpcomstubs.so $(PACKAGE_LIB)/libbcxpcomstubs.so
cp $(DIST)/bin/regxpcom $(PACKAGE_LIB)/regxpcom
chmod 775 $(PACKAGE_LIB)/libjavadomjni.so
chmod 775 $(PACKAGE_LIB)/libjavadom.so
chmod 775 $(PACKAGE_LIB)/libplugletjni.so
chmod 775 $(PACKAGE_LIB)/libpluglet.so
chmod 775 $(PACKAGE_LIB)/libwebclient.so
chmod 775 $(PACKAGE_LIB)/libwebclientstub.so
chmod 775 $(PACKAGE_LIB)/libwc_share.so
chmod 775 $(PACKAGE_LIB)/libbcorb.so
chmod 775 $(PACKAGE_LIB)/libbcjavastubs.so
chmod 775 $(PACKAGE_LIB)/libjavaloader.so
chmod 775 $(PACKAGE_LIB)/libjavaSample.so
chmod 775 $(PACKAGE_LIB)/libbcxpcomstubs.so
chmod 775 $(PACKAGE_LIB)/regxpcom
@echo +++ Creating Commercial Package. Use runem.bat to run the test browser.
rm -f runem_unix_commercial.bat
@echo cp ../lib/libwebclient.so ../.. >> runem_unix_commercial.bat
@echo cp ../lib/libwebclientstub.so ../.. >> runem_unix_commercial.bat
@echo cp ../lib/libjavadom.so ../../components >> runem_unix_commercial.bat
@echo cp ../lib/libjavadomjni.so ../.. >> runem_unix_commercial.bat
@echo cp ../lib/libplugletjni.so ../.. >> runem_unix_commercial.bat
@echo cp ../lib/libpluglet.so ../../components >> runem_unix_commercial.bat
@echo $(SET_CLASSPATH)../lib/Blackwood_$(PACKAGE_VER)_$(PACKAGE_OS).jar>> runem_unix_commercial.bat
@echo $(PERL) ./runem.pl org.mozilla.webclient.test.EmbeddedMozillaImpl $(DEPTH) %1% >> runem_unix_commercial.bat
cp -f runem_unix_commercial.bat $(PACKAGE_EXAMPLE)/runem.bat
cp -f $(DIST)/../java/webclient/src_share/runem.pl $(PACKAGE_EXAMPLE)/runem.pl
chmod 775 $(PACKAGE_EXAMPLE)/runem.bat
chmod 775 $(PACKAGE_EXAMPLE)/runem.pl
cp $(DIST)/../java/build/install_blackwood_unix.js $(DIST)/install.js
cp $(DIST)/../java/build/symlink.sh $(DIST)/symlink.sh
chmod 775 $(DIST)/symlink.sh
cp $(DIST)/../java/build/README.BLACKWOOD $(PACKAGE_DIR)/README.BLACKWOOD
cd $(DIST) ; \
zip -r Blackwood_$(PACKAGE_VER)_$(PACKAGE_OS).xpi install.js symlink.sh javadev
endif #BLACKWOOD
endif #BLACKCONNECT
endif #WEBCLIENT
endif #PLUGLETS
endif #DOM
install::buildRunems
clobber::
rm -f $(DIST)/*.zip
rm -f $(DIST)/*.js
rm -rf $(DIST)/javadev
rm -f $(DIST)/symlink.sh
clobber_all::clobber
clean::clobber

View File

@@ -0,0 +1,241 @@
#!nmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun are
# Copyright (C) 1999 Sun Microsystems, Inc. All
# Rights Reserved.
#
# Contributor(s):
DEPTH = ..\..
IGNORE_MANIFEST = 1
JAVAHOME = $(JDKHOME)
include <$(DEPTH)\config\rules.mak>
PACKAGE_DIR = $(DEPTH)\dist\javadev
PACKAGE_LIB = $(PACKAGE_DIR)\lib
PACKAGE_EXAMPLE = $(PACKAGE_DIR)\example
!ifndef PACKAGE_VER
PACKAGE_VER = 1_1
!endif
buildRunems:
!ifdef BUILD_DOM_ONLY
-mkdir $(PACKAGE_DIR)
-mkdir $(PACKAGE_LIB)
-mkdir $(PACKAGE_EXAMPLE)
-mkdir $(DIST)\..\java\build\org
-mkdir $(DIST)\..\java\build\org\mozilla
xcopy /E $(DIST)\..\classes\org\mozilla\dom $(DIST)\..\java\build\org\mozilla
xcopy /E $(DIST)\..\classes\org\mozilla\util $(DIST)\..\java\build\org\mozilla
xcopy /E $(DIST)\..\classes\org\w3c $(DIST)\..\java\build\org
cd $(DIST)\..\java\build
jar -cvfM0 JavaDOM_$(PACKAGE_VER)_win32.jar org
copy JavaDOM_$(PACKAGE_VER)_win32.jar ..\..\javadev\lib\JavaDOM_$(PACKAGE_VER)_win32.jar
cd ..\..\..\java\build
rmdir /S/Q $(DIST)\..\java\build\org
del /Q $(DIST)\..\java\build\JavaDOM_$(PACKAGE_VER)_win32.jar
copy $(DIST)\bin\javadomjni.dll $(PACKAGE_LIB)\javadomjni.dll
copy $(DIST)\bin\components\javadom.dll $(PACKAGE_LIB)\javadom.dll
chmod 775 $(PACKAGE_LIB)\javadomjni.dll
chmod 775 $(PACKAGE_LIB)\javadom.dll
copy install_dom_win32.js $(DIST)\..\install.js
copy README.DOM $(PACKAGE_DIR)\README.DOM
cd $(DIST)\..
zip -r JavaDOM_$(PACKAGE_VER)_win32.xpi install.js javadev
cd ..\java\build
!else
!ifdef BUILD_PLUGLETS_ONLY
-mkdir $(PACKAGE_DIR)
-mkdir $(PACKAGE_LIB)
-mkdir $(PACKAGE_EXAMPLE)
-mkdir $(DIST)\..\java\build\org
-mkdir $(DIST)\..\java\build\org\mozilla
xcopy /E $(DIST)\..\classes\org\mozilla\util $(DIST)\..\java\build\org\mozilla
xcopy /E $(DIST)\..\classes\org\mozilla\dom $(DIST)\..\java\build\org\mozilla
xcopy /E $(DIST)\..\classes\org\mozilla\plugins $(DIST)\..\java\build\org\mozilla
xcopy /E $(DIST)\..\classes\org\w3c $(DIST)\..\java\build\org
cd $(DIST)\..\java\build
jar -cvfM0 Pluglet_$(PACKAGE_VER)_win32.jar org
copy Pluglet_$(PACKAGE_VER)_win32.jar ..\..\javadev\lib\Pluglet_$(PACKAGE_VER)_win32.jar
cd ..\..\..\java\build
rmdir /S/Q $(DIST)\..\java\build\org
del /Q $(DIST)\..\java\build\Pluglet_$(PACKAGE_VER)_win32.jar
copy $(DIST)\bin\javadomjni.dll $(PACKAGE_LIB)\javadomjni.dll
copy $(DIST)\bin\components\javadom.dll $(PACKAGE_LIB)\javadom.dll
copy $(DIST)\bin\plugletjni.dll $(PACKAGE_LIB)\plugletjni.dll
copy $(DIST)\bin\components\pluglet.dll $(PACKAGE_LIB)\pluglet.dll
chmod 775 $(PACKAGE_LIB)\javadomjni.dll
chmod 775 $(PACKAGE_LIB)\javadom.dll
chmod 775 $(PACKAGE_LIB)\plugletjni.dll
chmod 775 $(PACKAGE_LIB)\pluglet.dll
copy install_pluglet_win32.js $(DIST)\..\install.js
copy README.PLUGLET $(PACKAGE_DIR)\README.PLUGLET
cd $(DIST)\..
zip -r Pluglet_$(PACKAGE_VER)_win32.xpi install.js javadev
cd ..\java\build
!else
!ifdef BUILD_WEBCLIENT_ONLY
-mkdir $(PACKAGE_DIR)
-mkdir $(PACKAGE_LIB)
-mkdir $(PACKAGE_EXAMPLE)
-mkdir $(DIST)\..\java\build\org
-mkdir $(DIST)\..\java\build\org\mozilla
xcopy /E /I $(DIST)\..\classes\org\mozilla\util\*.* $(DIST)\..\java\build\org\mozilla\util
xcopy /E /I $(DIST)\..\classes\org\mozilla\dom\*.* $(DIST)\..\java\build\org\mozilla\dom
xcopy /E /I $(DIST)\..\classes\org\mozilla\webclient\*.* $(DIST)\..\java\build\org\mozilla\webclient
xcopy /E /I $(DIST)\..\classes\org\mozilla\xpcom\*.* $(DIST)\..\java\build\org\mozilla\xpcom
xcopy /E /I $(DIST)\..\classes\org\w3c\*.* $(DIST)\..\java\build\org\w3c
cd $(DIST)\..\java\build
jar -cvfM0 webclient_$(PACKAGE_VER)_win32.jar org
copy webclient_$(PACKAGE_VER)_win32.jar ..\..\javadev\lib\webclient_$(PACKAGE_VER)_win32.jar
cd ..\..\..\java\build
rmdir /S/Q $(DIST)\..\java\build\org
del /Q $(DIST)\..\java\build\webclient_$(PACKAGE_VER)_win32.jar
copy $(DIST)\bin\javadomjni.dll $(PACKAGE_LIB)\javadomjni.dll
copy $(DIST)\bin\components\javadom.dll $(PACKAGE_LIB)\javadom.dll
copy $(DIST)\bin\webclient.dll $(PACKAGE_LIB)\webclient.dll
copy $(DIST)\lib\wc_share.lib $(PACKAGE_LIB)\wc_share.lib
copy $(DIST)\bin\components\bcorb.dll $(PACKAGE_LIB)\bcorb.dll
copy $(DIST)\bin\blackconnectjni.dll $(PACKAGE_LIB)\blackconnectjni.dll
copy $(DIST)\bin\components\bcjavastubs.dll $(PACKAGE_LIB)\bcjavastubs.dll
copy $(DIST)\bin\components\bcjavaloader.dll $(PACKAGE_LIB)\bcjavaloader.dll
copy $(DIST)\bin\components\bcxpcomstubs.dll $(PACKAGE_LIB)\bcxpcomstubs.dll
copy $(DIST)\bin\regxpcom.exe $(PACKAGE_LIB)\regxpcom.exe
chmod 775 $(PACKAGE_LIB)\bcorb.dll
chmod 775 $(PACKAGE_LIB)\bcjavastubs.dll
chmod 775 $(PACKAGE_LIB)\bcjavaloader.dll
chmod 775 $(PACKAGE_LIB)\bcxpcomstubs.dll
chmod 775 $(PACKAGE_LIB)\regxpcom.exe
chmod 775 $(PACKAGE_LIB)\javadomjni.dll
chmod 775 $(PACKAGE_LIB)\javadom.dll
chmod 775 $(PACKAGE_LIB)\webclient.dll
chmod 775 $(PACKAGE_LIB)\wc_share.lib
@echo +++ Creating Commercial Package. Use runem.bat to run the test browser.
rm -f runem_win_commercial.bat
@echo set CLASSPATH="..\lib\webclient_$(PACKAGE_VER)_win32.jar"> runem_win_commercial.bat
@echo $(PERL) .\runem.pl org.mozilla.webclient.test.EmbeddedMozillaImpl $(DEPTH) %1% >> runem_win_commercial.bat
copy runem_win_commercial.bat $(PACKAGE_EXAMPLE)\runem.bat
copy $(DIST)\..\..\java\webclient\src_share\runem.pl $(PACKAGE_EXAMPLE)\runem.pl
chmod 775 $(PACKAGE_EXAMPLE)\runem.bat
chmod 775 $(PACKAGE_EXAMPLE)\runem.pl
copy install_webclient_win32.js $(DIST)\..\install.js
copy README.WEBCLIENT $(PACKAGE_DIR)\README.WEBCLIENT
cd $(DIST)\..
zip -r webclient_$(PACKAGE_VER)_win32.xpi install.js javadev
cd ..\java\build
!else
!ifdef BUILD_BLACKCONNECT_ONLY
-mkdir $(PACKAGE_DIR)
-mkdir $(PACKAGE_LIB)
-mkdir $(PACKAGE_EXAMPLE)
-mkdir $(DIST)\..\java\build\org
-mkdir $(DIST)\..\java\build\org\mozilla
xcopy /E $(DIST)\..\classes\org\mozilla\util $(DIST)\..\java\build\org\mozilla
xcopy /E $(DIST)\..\classes\org\mozilla\xpcom $(DIST)\..\java\build\org\mozilla
cd $(DIST)\..\java\build
jar -cvfM0 Blackconnect_$(PACKAGE_VER)_win32.jar org
copy Blackconnect_$(PACKAGE_VER)_win32.jar ..\..\javadev\lib\Blackconnect_$(PACKAGE_VER)_win32.jar
cd ..\..\..\java\build
rmdir /S/Q $(DIST)\..\java\build\org
del /Q $(DIST)\..\java\build\Blackconnect_$(PACKAGE_VER)_win32.jar
copy $(DIST)\bin\components\bcorb.dll $(PACKAGE_LIB)\bcorb.dll
copy $(DIST)\bin\components\bcjavastubs.dll $(PACKAGE_LIB)\bcjavastubs.dll
copy $(DIST)\bin\components\bcjavaloader.dll $(PACKAGE_LIB)\bcjavaloader.dll
copy $(DIST)\bin\components\bcxpcomstubs.dll $(PACKAGE_LIB)\bcxpcomstubs.dll
copy $(DIST)\bin\regxpcom.exe $(PACKAGE_LIB)\regxpcom.exe
chmod 775 $(PACKAGE_LIB)\bcorb.dll
chmod 775 $(PACKAGE_LIB)\bcjavastubs.dll
chmod 775 $(PACKAGE_LIB)\bcjavaloader.dll
chmod 775 $(PACKAGE_LIB)\bcxpcomstubs.dll
chmod 775 $(PACKAGE_LIB)\regxpcom.exe
copy install_blackconnect_win32.js $(DIST)\..\install.js
copy README.BLACKCONNECT $(PACKAGE_DIR)\README.BLACKCONNECT
cd $(DIST)\..
zip -r Blackconnect_$(PACKAGE_VER)_win32.xpi install.js javadev
cd ..\java\build
!else
!ifdef BUILD_BLACKWOOD
-mkdir $(PACKAGE_DIR)
-mkdir $(PACKAGE_LIB)
-mkdir $(PACKAGE_EXAMPLE)
-mkdir $(DIST)\..\java\build\org
-mkdir $(DIST)\..\java\build\org\mozilla
xcopy /E $(DIST)\..\classes\org\mozilla\* $(DIST)\..\java\build\org
xcopy /E $(DIST)\..\classes\org\w3c $(DIST)\..\java\build\org
cd $(DIST)\..\java\build
jar -cvfM0 Blackwood_$(PACKAGE_VER)_win32.jar org
copy Blackwood_$(PACKAGE_VER)_win32.jar ..\..\javadev\lib\Blackwood_$(PACKAGE_VER)_win32.jar
cd ..\..\..\java\build
rmdir /S/Q $(DIST)\..\java\build\org
del /Q $(DIST)\..\java\build\Blackwood_$(PACKAGE_VER)_win32.jar
copy $(DIST)\bin\javadomjni.dll $(PACKAGE_LIB)\javadomjni.dll
copy $(DIST)\bin\components\javadom.dll $(PACKAGE_LIB)\javadom.dll
copy $(DIST)\bin\plugletjni.dll $(PACKAGE_LIB)\plugletjni.dll
copy $(DIST)\bin\components\pluglet.dll $(PACKAGE_LIB)\pluglet.dll
copy $(DIST)\bin\webclient.dll $(PACKAGE_LIB)\webclient.dll
copy $(DIST)\lib\wc_share.lib $(PACKAGE_LIB)\wc_share.lib
copy $(DIST)\bin\components\bcorb.dll $(PACKAGE_LIB)\bcorb.dll
copy $(DIST)\bin\components\bcjavastubs.dll $(PACKAGE_LIB)\bcjavastubs.dll
copy $(DIST)\bin\components\bcjavaloader.dll $(PACKAGE_LIB)\bcjavaloader.dll
copy $(DIST)\bin\components\bcxpcomstubs.dll $(PACKAGE_LIB)\bcxpcomstubs.dll
copy $(DIST)\bin\regxpcom.exe $(PACKAGE_LIB)\regxpcom.exe
chmod 775 $(PACKAGE_LIB)\javadomjni.dll
chmod 775 $(PACKAGE_LIB)\javadom.dll
chmod 775 $(PACKAGE_LIB)\plugletjni.dll
chmod 775 $(PACKAGE_LIB)\pluglet.dll
chmod 775 $(PACKAGE_LIB)\webclient.dll
chmod 775 $(PACKAGE_LIB)\wc_share.lib
chmod 775 $(PACKAGE_LIB)\bcorb.dll
chmod 775 $(PACKAGE_LIB)\bcjavastubs.dll
chmod 775 $(PACKAGE_LIB)\bcjavaloader.dll
chmod 775 $(PACKAGE_LIB)\bcxpcomstubs.dll
chmod 775 $(PACKAGE_LIB)\regxpcom.exe
@echo +++ Creating Commercial Package. Use runem.bat to run the test browser.
del /Q runem_win_commercial.bat
@echo set CLASSPATH=..\lib\Blackwood_$(PACKAGE_VER)_win32.jar > runem_win_commercial.bat
@echo $(PERL) .\runem.pl org.mozilla.webclient.test.EmbeddedMozilla $(DEPTH) %1% >> runem_win_commercial.bat
copy runem_win_commercial.bat $(PACKAGE_EXAMPLE)\runem.bat
copy $(DIST)\..\..\java\webclient\src_share\runem.pl $(PACKAGE_EXAMPLE)\runem.pl
chmod 775 $(PACKAGE_EXAMPLE)\runem.bat
chmod 775 $(PACKAGE_EXAMPLE)\runem.pl
copy install_blackwood_win32.js $(DIST)\..\install.js
copy README.BLACKWOOD $(PACKAGE_DIR)\README.BLACKWOOD
cd $(DIST)\..
zip -r Blackwood_$(PACKAGE_VER)_win32.xpi install.js javadev
cd ..\java\build
!endif #BLACKWOOD
!endif #BLACKCONNECT
!endif #WEBCLIENT
!endif #PLUGLETS
!endif #DOM
install::buildRunems
clobber::
rm -rf $(DIST)\..\*.xpi
rm -rf $(DIST)\..\javadev
rm -rf $(DIST)\..\java
clobber_all::clobber
clean::clobber

View File

@@ -0,0 +1,78 @@
Black Connect
================================
This directory contains the Black Connect
The sources is divided into three directories
connect
public headers.
ORB implementation.
xpcom
XPCOM stubs and proxy implementation
java
JAVA stubs and proxy implementation
Java component loader
===============================================
Solaris directions
===============================================
Requirements:
* current mozilla built tree
* JDK1.3
* Perl 5 must be in your path
How To Build:
* make sure the environment var JDKHOME is set to your jdk installation
directory, ie export JDKHOME=/usr/local/jdk1.3
* Add following directories to to your LD_LIBRARY_PATH:
$MOZILLA_FIVE_HOME:$JDKHOME/jre/lib/$HOSTTYPE/native_threads:$JDKHOME/jre/lib/$HOSTTYPE/classic:
$JDKHOME/jre/lib/$HOSTTYPE/:
* type "gmake"
==============================================
Linux directions
===============================================
Requirements:
* mozilla m16 build tree
* JDK1.3 from IBM
* Perl 5 must be in your path
How To Build:
* make sure the environment var JDKHOME is set to your jdk installation
directory, ie export JDKHOME=/usr/local/jdk1.3
* Add following directories to to your LD_LIBRARY_PATH:
$MOZILLA_FIVE_HOME:$JDKHOME/jre/bin:$JDKHOME/jre/bin/classic:
* remove jni* jri* from MOZILLA_FIVE_HOME/dist/include
* type "gmake"
==============================================
How to run test java component
===============================================
* cd java/test
* gmake
* add $MOZILLA_FIVE_HOME/dist/classes to your CLASSPATH
Test component would be placed in dist/bin/componets and loaded on mozilla
sturtup (or you can use regxpcom for testing)

View File

@@ -0,0 +1,95 @@
Here lies the MozWebShell java wrapper to mozilla M8.
Authors: Kirk Baker <kbaker@eb.com>
Ian Wilkinson <iw@ennoble.co>
Build hacking and packaging: Ed Burns <edburns@acm.org>
Unix port: Mark Lin <mark.lin@eng.sun.com>
========================================================================
Win32 Build Directions:
========================================================================
Requirements:
* built mozilla with source code from after 10/5/99
* JDK1.1.7 or greater
* built org.mozilla.util java classes (see NOTE_UTIL)
* Perl 5 perl.exe must be in your path
How To Build:
* Follow the directions in ..\README
* type "nmake /f makefile.win all" and hope for the best
How to Run:
* once the build has successfully completed, run this batch file:
.\src\WIN32_D.OBJ\runem.bat <opt: YOUR_URL>
Note that YOUR_URL is probably necessary since firewall support wasn't
working in M8.
Problems:
* clobber_all doesn't remove the .class files from dist\classes. You
have to do this manually.
* post to netscape.public.mozilla.java newsgroup
========================================================================
Unix Build Directions (currently only Linux,
Solaris support is coming soon):
========================================================================
Requirements:
* built mozilla tree for some variant of Linux
* JDK1.2 with native threads support from http://www.blackdown.org
(JDK1.1 doesn't seem to work)
* built org.mozilla.util java classes (see NOTE_UTIL)
How To Build:
* Follow the directions in ../util/README
* set JDKHOME to where your JDK install directory resides
-> setenv JDKHOME /usr/local/jdk1.2
* cd to 'classes' and type "make -f makefile.unix" and hope for the best
-> cd classes; make -f Makefile.unix
* then cd to 'src' and type "make -f makefile.unix" and hope for the best
-> cd src; make -f Makefile.unix
How to Run:
* once the build has successfully completed, run 'runem.unix' in your
'src' directory:
-> cd src; ./runem.unix <YOUR_URL>
Note that YOUR_URL is probably necessary since firewall support wasn't
working in M8.
Problems? Email mark.lin@eng.sun.com or post to netscape.public.mozilla.java.
========================================================================
NOTE_UTIL:
========================================================================
* this package depends on the org.mozilla.util classes, which can be
found in the mozilla tree under mozilla\java\util. They are a
separate checkout and build. Once you check out the org.mozilla.util
classes, see the README in the mozilla\java\util\README.
General notes:
* Please update the ChangeLog (changelo) when you make changes.

View File

@@ -0,0 +1,153 @@
Sources
=======
The sources are located in mozilla/java/dom.
Subdirectories
classes
jni
src
tests
contain Java sources, Java native methods implementation,
native c++ code and Java DOM API tests respectively.
Note:
Sources that work with mozilla PR1 and earlier
versions should be checked out using DOM_PR1 tag.
No tags are needed for the sources that work with
the latest mozilla tree.
Building
========
Requirenments:
--------------
Current mozilla build
JDK1.2 or JDK1.3
Perl 5 must be in your path
JDKHOME environment variable set to your JDK dir
CLASSPATH environment cvariable set to contain
org.w3c.dom classes. The sources can be found at
http://www.w3.org/TR/2000/CR-DOM-Level-2-20000307/java-binding.html
(for mozilla PR1 and earlie versions)
http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510/java-binding.html
(for the latest mozilla)
Solaris specific
----------------
Add following directories to LD_LIBRARY_PATH environment variable:
$MOZILLA_FIVE_HOME
$JDKHOME/jre/lib/$HOSTTYPE/native_threads
$JDKHOME/jre/lib/$HOSTTYPE/classic
$JDKHOME/jre/lib/$HOSTTYPE/
goto mozilla/java/dom directory and type "gmake"
Windows NT specific
-------------------
To enable OJI usage set environment variable JAVA_DOM_OJI_ENABLE=1
Add following directories to PATH environment variable:
%MOZILLA_FIVE_HOME%
%JDKHOME%\jre\bin\classic (only in case you don't use OJI)
goto mozilla/java/dom directory and type "nmake /f makefile.win"
Using the Java DOM API
======================
A Java component obtains a org.w3c.dom.Document by registering for
Document load notifications. The Document is passed in along with the
notifications. The preferred way for a Java component to register for
Document load notifications is to register via the DOMAccessor class.
However, this is possible only if OJI usage is enabled. This works
on Windows NT platform.
On Solaris currently the nsJavaDOM component instantiates its own JVM.
When an OJI-compatible JVM is available, we will move over to using it.
So, one has to apply two patches to
mozilla/webshell/src/nsWebShell.cpp
mozilla/java/dom/classes/org/mozilla/dom/DOMAccessor.java
They can be found at mozilla/java/dom directory.
The first one inits nsJavaDOM component and adds it as a
document load observer listener.
The second one registers a document load listener via DOMAccessor.
Note:
any class that implements the DocumentLoadListener interface may
stand for GenericDocLoadListener.
After applying a patch to nsWebShell.cpp edit
mozilla/webshell/src/Makefile.in to add -DJAVA_DOM to the list of
defines. Then do a gmake in this directory.
After applying a patch to DOMAccessor.java go to mozilla/java/dom/classes
and do a gmake. No changes in makefiles are needed.
You can find examples of Java DOM API usage in
mozilla/java/dom/classes/org/mozilla/dom/util
mozilla/java/dom/tests/src/applets
DOM2 events
------------
At the moment all DOM2 event-related interfaces are present
however they are not fully implemented yet
because Mozilla's core DOM does not support DOM2 events fully.
Consequences:
- some methods throws OperationUnsupportedException()
The basic implementation architecture is following:
- NodeImpl is extended to support EventTarget interface
- for every addEventListener call special NativeDOMProxyListener object is
created and is registered with Mozilla's DOM
It's task is to propagate event notifications from Mozilla's DOM
to target Java EventListener
- In order to sucessfully unregister EventListeners we need to
save association between java EventListener and corresponding
NativeDOMProxyListener object. This is done by storing such
associations Vector at NodeImpl
- javaDOMEventsGlobals class is used much like javaDOMGlobals for caching
(this code may be moved to javaDOMGlobals)
NSPR Logging
------------
The NSPR Log module name is javadom. For instructions on how to enable
logging, see dist/include/prlog.h
Debug output
------------
The debug build of the Java DOM API creates the JVM with the verbose
and the verboseGC options turned on, to help in debugging. It also
creates two files in the current working directory, dom-java.txt and
dom-cpp.txt, which are simple dumps of the DOM, as printed from C++
and from Java. The two should be identical. The code to write these
files is, essentially, my regression test. Feel free to add to it.
Dependencies
------------
Currently tested on Solaris 7 only with Java 2 SDK 1.2.1. egcs-2.91.66,
Sun Workshop C++ 4.2 and 5.0 have been know to compile this code
fine. gcc-2.8.1 does *not* work. I have not used anything
Java2-specific, and it works with JDK1.1.x too (I have been using JDK
1.1.6 too).
References
----------
I highly recommend reading Sheng Liang's new JNI book.

View File

@@ -0,0 +1,105 @@
Java-Implemented Plug-ins.
================================
http://www.mozilla.org/projects/blackwood/java-plugins/
--------------------------------
This directory contains the beginnings of the Java-Implemented plug-uns.
The sources is divided into four directories
classes
Java source files
src
Native code (c++/c)
jni
Implamentations of java native methods
test
Test code, including simple pluglet.
========================================================================
Win32 Directions:
========================================================================
Requirements:
* current mozilla built tree
* JDK1.3 or JDK1.2 if you are not using OJI
* Perl 5 perl.exe must be in your path
How To Build:
* make sure the environment var JDKHOME is set to your jdk installation
directory, ie SET JDKHOME=C:\jdk1.2
* if you do not have working OJI set OJI_DISABLE to 1
(You can do it in your command prompt, or you can set it in
mozilla/java/plugins/src/makefile.win).
* type "nmake /f makefile.win"
How to Run:
* Add following directories to to your path:
%MOZILLA_FIVE_HOME%
In case OJI_DISABLE add %JDKHOME%\jre\bin\client to your path
* Copy class files from mozilla/dist/classes to your JRE/lib/ext directory and
add JRE/lib/ext to your classpath
How to build and run test
* go to the test directory and type "nmake /f makefile.win"
* Set PLUGLET environment to the directory you have test.jar
* Run mozilla and load page test.html from test directory and if everething is ok you will see
some awt demo.
=========================================================================
Unix (Sparc Solaris and i386 Linux) Directions:
=========================================================================
Requirements:
* current mozilla built tree
* JDK1.3
* Perl 5 must be in your path
How To Build:
* make sure the environment var JDKHOME is set to your jdk installation
directory, ie export JDKHOME=/usr/local/jdk1.3
* Add following directories to to your LD_LIBRARY_PATH:
$MOZILLA_FIVE_HOME:$JDKHOME/jre/lib/$HOSTTYPE/native_threads:$JDKHOME/jre/lib/$HOSTTYPE/client:
$JDKHOME/jre/lib/$HOSTTYPE/:
* type "gmake"
How to Run:
* Add $MOZILLA_FILE_HOME/../classes to your CLASSPATH
How to build and run test
* go to the test directory and type "gmake"
test.jar will be placed in mozilla/dist/bin/plugins directory
* set LD_PRELOAD to libXm.so (to libawt.so on linux platform)
* Run mozilla and load page resource:///res/javadev/pluglets/test.html and if everething is ok you will see some awt demo.
========================================================================
Problems:
* post to netscape.public.mozilla.java newsgroup

View File

@@ -0,0 +1,95 @@
Here lies the MozWebShell java wrapper to mozilla M8.
Authors: Kirk Baker <kbaker@eb.com>
Ian Wilkinson <iw@ennoble.co>
Build hacking and packaging: Ed Burns <edburns@acm.org>
Unix port: Mark Lin <mark.lin@eng.sun.com>
========================================================================
Win32 Build Directions:
========================================================================
Requirements:
* built mozilla with source code from after 10/5/99
* JDK1.1.7 or greater
* built org.mozilla.util java classes (see NOTE_UTIL)
* Perl 5 perl.exe must be in your path
How To Build:
* Follow the directions in ..\README
* type "nmake /f makefile.win all" and hope for the best
How to Run:
* once the build has successfully completed, run this batch file:
.\src\WIN32_D.OBJ\runem.bat <opt: YOUR_URL>
Note that YOUR_URL is probably necessary since firewall support wasn't
working in M8.
Problems:
* clobber_all doesn't remove the .class files from dist\classes. You
have to do this manually.
* post to netscape.public.mozilla.java newsgroup
========================================================================
Unix Build Directions (currently only Linux,
Solaris support is coming soon):
========================================================================
Requirements:
* built mozilla tree for some variant of Linux
* JDK1.2 with native threads support from http://www.blackdown.org
(JDK1.1 doesn't seem to work)
* built org.mozilla.util java classes (see NOTE_UTIL)
How To Build:
* Follow the directions in ../util/README
* set JDKHOME to where your JDK install directory resides
-> setenv JDKHOME /usr/local/jdk1.2
* cd to 'classes' and type "make -f makefile.unix" and hope for the best
-> cd classes; make -f Makefile.unix
* then cd to 'src' and type "make -f makefile.unix" and hope for the best
-> cd src; make -f Makefile.unix
How to Run:
* once the build has successfully completed, run 'runem.unix' in your
'src' directory:
-> cd src; ./runem.unix <YOUR_URL>
Note that YOUR_URL is probably necessary since firewall support wasn't
working in M8.
Problems? Email mark.lin@eng.sun.com or post to netscape.public.mozilla.java.
========================================================================
NOTE_UTIL:
========================================================================
* this package depends on the org.mozilla.util classes, which can be
found in the mozilla tree under mozilla\java\util. They are a
separate checkout and build. Once you check out the org.mozilla.util
classes, see the README in the mozilla\java\util\README.
General notes:
* Please update the ChangeLog (changelo) when you make changes.

View File

@@ -0,0 +1,86 @@
// Installation guide for BlackConnect.xpi
// this function verifies disk space in kilobytes
function verifyDiskSpace(dirPath, spaceRequired)
{
var spaceAvailable;
// Get the available disk space on the given path
spaceAvailable = fileGetDiskSpaceAvailable(dirPath);
// Convert the available disk space into kilobytes
spaceAvailable = parseInt(spaceAvailable / 1024);
// do the verification
if(spaceAvailable < spaceRequired)
{
logComment("Insufficient disk space: " + dirPath);
logComment(" required : " + spaceRequired + " K");
logComment(" available: " + spaceAvailable + " K");
return(false);
}
return(true);
}
// this function creates a symlink
function symlink(lnk, tgt)
{
var err = execute("symlink.sh", tgt + " " + lnk);
logComment("execute symlink.sh "+tgt+" "+lnk+" returned: "+err);
}
// main
var srDest;
var err;
var fProgram;
srDest = 1000;
logComment("Starting Install Process");
err = initInstall("BlackConnect", "BlackConnect", "1.0");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
if(verifyDiskSpace(fProgram, srDest))
{
setPackageFolder(fProgram);
err = addDirectory("",
"1.0",
"javadev", // dir name in jar to extract
fProgram, // Where to put this file
// (Returned from GetFolder)
"javadev", // subdir name to create relative to fProgram
true); // Force Flag
logComment("addDirectory() returned: " + err);
var fComponents = getFolder("Components");
var fJavadev = getFolder("Program","javadev");
symlink(fComponents + "libbcorb.so",
getFolder(fJavadev, "lib/libbcorb.so"));
symlink(fComponents + "libbcjavastubs.so",
getFolder(fJavadev, "lib/libbcjavastubs.so"));
symlink(fComponents + "libjavaloader.so",
getFolder(fJavadev, "lib/libjavaloader.so"));
symlink(fComponents + "libjavaSample.so",
getFolder(fJavadev, "lib/libjavaSample.so"));
symlink(fComponents + "libbcTest.so",
getFolder(fJavadev, "lib/libbcTest.so"));
symlink(fComponents + "libbcxpcomstubs.so",
getFolder(fJavadev, "lib/libbcxpcomstubs.so"));
symlink(fProgram + "regxpcom",
getFolder(fJavadev, "lib/regxpcom"));
// check return value
if(err == SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
cancelInstall(err);
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);
// end main

View File

@@ -0,0 +1,76 @@
// Installation guide for BlackConnect.xpi
// this function verifies disk space in kilobytes
function verifyDiskSpace(dirPath, spaceRequired)
{
var spaceAvailable;
// Get the available disk space on the given path
spaceAvailable = fileGetDiskSpaceAvailable(dirPath);
// Convert the available disk space into kilobytes
spaceAvailable = parseInt(spaceAvailable / 1024);
// do the verification
if(spaceAvailable < spaceRequired)
{
logComment("Insufficient disk space: " + dirPath);
logComment(" required : " + spaceRequired + " K");
logComment(" available: " + spaceAvailable + " K");
return(false);
}
return(true);
}
// main
var srDest;
var err;
var fProgram;
srDest = 1000;
logComment("Starting Install Process");
err = initInstall("BlackConnect", "BlackConnect", "1.0");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
if(verifyDiskSpace(fProgram, srDest))
{
setPackageFolder(fProgram);
err = addDirectory("",
"1.0",
"javadev", // dir name in jar to extract
fProgram, // Where to put this file
// (Returned from GetFolder)
"javadev", // subdir name to create relative to fProgram
true); // Force Flag
logComment("addDirectory() returned: " + err);
var fComponents = getFolder("Components");
var fJavadev = getFolder("Program","javadev");
src = getFolder(fJavadev, "lib/bcorb.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "lib/bcjavastubs.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "lib/javaloader.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "lib/bcxpcomstubs.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "regxpcom.exe");
err = File.copy(src, fProgram);
// check return value
if(err == SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
cancelInstall(err);
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);
// end main

View File

@@ -0,0 +1,90 @@
// Installation guide for Blackwood.xpi
// this function verifies disk space in kilobytes
function verifyDiskSpace(dirPath, spaceRequired)
{
var spaceAvailable;
// Get the available disk space on the given path
spaceAvailable = fileGetDiskSpaceAvailable(dirPath);
// Convert the available disk space into kilobytes
spaceAvailable = parseInt(spaceAvailable / 1024);
// do the verification
if(spaceAvailable < spaceRequired)
{
logComment("Insufficient disk space: " + dirPath);
logComment(" required : " + spaceRequired + " K");
logComment(" available: " + spaceAvailable + " K");
return(false);
}
return(true);
}
// this function creates a symlink
function symlink(lnk, tgt)
{
var err = execute("symlink.sh", tgt + " " + lnk);
logComment("execute symlink.sh "+tgt+" "+lnk+" returned: "+err);
}
// main
var srDest;
var err;
var fProgram;
srDest = 1000;
logComment("Starting Install Process");
err = initInstall("Blackwood", "Blackwood", "1.0");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
if(verifyDiskSpace(fProgram, srDest))
{
setPackageFolder(fProgram);
err = addDirectory("",
"1.0",
"javadev", // dir name in jar to extract
fProgram, // Where to put this file
// (Returned from GetFolder)
"javadev", // subdir name to create relative to fProgram
true); // Force Flag
logComment("addDirectory() returned: " + err);
var fComponents = getFolder("Components");
var fJavadev = getFolder("Program","javadev");
symlink(fComponents + "libjavadom.so",
getFolder(fJavadev, "lib/libjavadom.so"));
symlink(fComponents + "libpluglet.so",
getFolder(fJavadev, "lib/libpluglet.so"));
symlink(fComponents + "libbcorb.so",
getFolder(fJavadev, "lib/libbcorb.so"));
symlink(fComponents + "libbcjavastubs.so",
getFolder(fJavadev, "lib/libbcjavastubs.so"));
symlink(fComponents + "libjavaloader.so",
getFolder(fJavadev, "lib/libjavaloader.so"));
symlink(fComponents + "libjavaSample.so",
getFolder(fJavadev, "lib/libjavaSample.so"));
symlink(fComponents + "libbcTest.so",
getFolder(fJavadev, "lib/libbcTest.so"));
symlink(fComponents + "libbcxpcomstubs.so",
getFolder(fJavadev, "lib/libbcxpcomstubs.so"));
symlink(fProgram + "regxpcom",
getFolder(fJavadev, "lib/regxpcom"));
// check return value
if(err == SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
cancelInstall(err);
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);
// end main

View File

@@ -0,0 +1,80 @@
// Installation guide for Blackwood.xpi
// this function verifies disk space in kilobytes
function verifyDiskSpace(dirPath, spaceRequired)
{
var spaceAvailable;
// Get the available disk space on the given path
spaceAvailable = fileGetDiskSpaceAvailable(dirPath);
// Convert the available disk space into kilobytes
spaceAvailable = parseInt(spaceAvailable / 1024);
// do the verification
if(spaceAvailable < spaceRequired)
{
logComment("Insufficient disk space: " + dirPath);
logComment(" required : " + spaceRequired + " K");
logComment(" available: " + spaceAvailable + " K");
return(false);
}
return(true);
}
// main
var srDest;
var err;
var fProgram;
srDest = 1000;
logComment("Starting Install Process");
err = initInstall("Blackwood", "Blackwood", "1.0");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
if(verifyDiskSpace(fProgram, srDest))
{
setPackageFolder(fProgram);
err = addDirectory("",
"1.0",
"javadev", // dir name in jar to extract
fProgram, // Where to put this file
// (Returned from GetFolder)
"javadev", // subdir name to create relative to fProgram
true); // Force Flag
logComment("addDirectory() returned: " + err);
var fComponents = getFolder("Components");
var fJavadev = getFolder("Program","javadev");
src = getFolder(fJavadev, "lib/javadom.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "lib/pluglet.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "lib/bcorb.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "lib/bcjavastubs.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "lib/javaloader.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "lib/bcxpcomstubs.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "regxpcom.exe");
err = File.copy(src, fProgram);
// check return value
if(err == SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
cancelInstall(err);
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);
// end main

View File

@@ -0,0 +1,74 @@
// Installation guide for JavaDOM.xpi
// this function verifies disk space in kilobytes
function verifyDiskSpace(dirPath, spaceRequired)
{
var spaceAvailable;
// Get the available disk space on the given path
spaceAvailable = fileGetDiskSpaceAvailable(dirPath);
// Convert the available disk space into kilobytes
spaceAvailable = parseInt(spaceAvailable / 1024);
// do the verification
if(spaceAvailable < spaceRequired)
{
logComment("Insufficient disk space: " + dirPath);
logComment(" required : " + spaceRequired + " K");
logComment(" available: " + spaceAvailable + " K");
return(false);
}
return(true);
}
// this function creates a symlink
function symlink(lnk, tgt)
{
var err = execute("symlink.sh", tgt + " " + lnk);
logComment("execute symlink.sh "+tgt+" "+lnk+" returned: "+err);
}
// main
var srDest;
var err;
var fProgram;
srDest = 1000;
logComment("Starting Install Process");
err = initInstall("JavaDOM", "JavaDOM", "1.0");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
if(verifyDiskSpace(fProgram, srDest))
{
setPackageFolder(fProgram);
err = addDirectory("",
"1.0",
"javadev", // dir name in jar to extract
fProgram, // Where to put this file
// (Returned from GetFolder)
"javadev", // subdir name to create relative to fProgram
true); // Force Flag
logComment("addDirectory() returned: " + err);
var fComponents = getFolder("Components");
var fJavadev = getFolder("Program","javadev");
symlink(fComponents + "libjavadom.so",
getFolder(fJavadev, "lib/libjavadom.so"));
// check return value
if(err == SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
cancelInstall(err);
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);
// end main

View File

@@ -0,0 +1,68 @@
// Installation guide for JavaDOM.xpi
// this function verifies disk space in kilobytes
function verifyDiskSpace(dirPath, spaceRequired)
{
var spaceAvailable;
// Get the available disk space on the given path
spaceAvailable = fileGetDiskSpaceAvailable(dirPath);
// Convert the available disk space into kilobytes
spaceAvailable = parseInt(spaceAvailable / 1024);
// do the verification
if(spaceAvailable < spaceRequired)
{
logComment("Insufficient disk space: " + dirPath);
logComment(" required : " + spaceRequired + " K");
logComment(" available: " + spaceAvailable + " K");
return(false);
}
return(true);
}
// main
var srDest;
var err;
var fProgram;
srDest = 1000;
logComment("Starting Install Process");
err = initInstall("JavaDOM", "JavaDOM", "1.0");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
if(verifyDiskSpace(fProgram, srDest))
{
setPackageFolder(fProgram);
err = addDirectory("",
"1.0",
"javadev", // dir name in jar to extract
fProgram, // Where to put this file
// (Returned from GetFolder)
"javadev", // subdir name to create relative to fProgram
true); // Force Flag
logComment("addDirectory() returned: " + err);
var fComponents = getFolder("Components");
var fJavadev = getFolder("Program","javadev");
src = getFolder(fJavadev, "lib/javadom.dll");
err = File.copy(src, fComponents);
// check return value
if(err == SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
cancelInstall(err);
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);
// end main

View File

@@ -0,0 +1,76 @@
// Installation guide for Pluglets.xpi
// this function verifies disk space in kilobytes
function verifyDiskSpace(dirPath, spaceRequired)
{
var spaceAvailable;
// Get the available disk space on the given path
spaceAvailable = fileGetDiskSpaceAvailable(dirPath);
// Convert the available disk space into kilobytes
spaceAvailable = parseInt(spaceAvailable / 1024);
// do the verification
if(spaceAvailable < spaceRequired)
{
logComment("Insufficient disk space: " + dirPath);
logComment(" required : " + spaceRequired + " K");
logComment(" available: " + spaceAvailable + " K");
return(false);
}
return(true);
}
// this function creates a symlink
function symlink(lnk, tgt)
{
var err = execute("symlink.sh", tgt + " " + lnk);
logComment("execute symlink.sh "+tgt+" "+lnk+" returned: "+err);
}
// main
var srDest;
var err;
var fProgram;
srDest = 1000;
logComment("Starting Install Process");
err = initInstall("Pluglets", "Pluglets", "1.0");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
if(verifyDiskSpace(fProgram, srDest))
{
setPackageFolder(fProgram);
err = addDirectory("",
"1.0",
"javadev", // dir name in jar to extract
fProgram, // Where to put this file
// (Returned from GetFolder)
"javadev", // subdir name to create relative to fProgram
true); // Force Flag
logComment("addDirectory() returned: " + err);
var fComponents = getFolder("Components");
var fJavadev = getFolder("Program","javadev");
symlink(fComponents + "libjavadom.so",
getFolder(fJavadev, "lib/libjavadom.so"));
symlink(fComponents + "libpluglet.so",
getFolder(fJavadev, "lib/libpluglet.so"));
// check return value
if(err == SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
cancelInstall(err);
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);
// end main

View File

@@ -0,0 +1,70 @@
// Installation guide for Pluglets.xpi
// this function verifies disk space in kilobytes
function verifyDiskSpace(dirPath, spaceRequired)
{
var spaceAvailable;
// Get the available disk space on the given path
spaceAvailable = fileGetDiskSpaceAvailable(dirPath);
// Convert the available disk space into kilobytes
spaceAvailable = parseInt(spaceAvailable / 1024);
// do the verification
if(spaceAvailable < spaceRequired)
{
logComment("Insufficient disk space: " + dirPath);
logComment(" required : " + spaceRequired + " K");
logComment(" available: " + spaceAvailable + " K");
return(false);
}
return(true);
}
// main
var srDest;
var err;
var fProgram;
srDest = 1000;
logComment("Starting Install Process");
err = initInstall("Pluglets", "Pluglets", "1.0");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
if(verifyDiskSpace(fProgram, srDest))
{
setPackageFolder(fProgram);
err = addDirectory("",
"1.0",
"javadev", // dir name in jar to extract
fProgram, // Where to put this file
// (Returned from GetFolder)
"javadev", // subdir name to create relative to fProgram
true); // Force Flag
logComment("addDirectory() returned: " + err);
var fComponents = getFolder("Components");
var fJavadev = getFolder("Program","javadev");
src = getFolder(fJavadev, "lib/javadom.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "lib/pluglet.dll");
err = File.copy(src, fComponents);
// check return value
if(err == SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
cancelInstall(err);
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);
// end main

View File

@@ -0,0 +1,88 @@
// Installation guide for Webclient.xpi
// this function verifies disk space in kilobytes
function verifyDiskSpace(dirPath, spaceRequired)
{
var spaceAvailable;
// Get the available disk space on the given path
spaceAvailable = fileGetDiskSpaceAvailable(dirPath);
// Convert the available disk space into kilobytes
spaceAvailable = parseInt(spaceAvailable / 1024);
// do the verification
if(spaceAvailable < spaceRequired)
{
logComment("Insufficient disk space: " + dirPath);
logComment(" required : " + spaceRequired + " K");
logComment(" available: " + spaceAvailable + " K");
return(false);
}
return(true);
}
// this function creates a symlink
function symlink(lnk, tgt)
{
var err = execute("symlink.sh", tgt + " " + lnk);
logComment("execute symlink.sh "+tgt+" "+lnk+" returned: "+err);
}
// main
var srDest;
var err;
var fProgram;
srDest = 1000;
logComment("Starting Install Process");
err = initInstall("Webclient", "Webclient", "1.1");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
if(verifyDiskSpace(fProgram, srDest))
{
setPackageFolder(fProgram);
err = addDirectory("",
"1.1",
"javadev", // dir name in jar to extract
fProgram, // Where to put this file
// (Returned from GetFolder)
"javadev", // subdir name to create relative to fProgram
true); // Force Flag
logComment("addDirectory() returned: " + err);
var fComponents = getFolder("Components");
var fJavadev = getFolder("Program","javadev");
symlink(fComponents + "libjavadom.so",
getFolder(fJavadev, "lib/libjavadom.so"));
symlink(fComponents + "libbcorb.so",
getFolder(fJavadev, "lib/libbcorb.so"));
symlink(fComponents + "libbcjavastubs.so",
getFolder(fJavadev, "lib/libbcjavastubs.so"));
symlink(fComponents + "libbcjavaloader.so",
getFolder(fJavadev, "lib/libbcjavaloader.so"));
symlink(fComponents + "libjavaSample.so",
getFolder(fJavadev, "lib/libjavaSample.so"));
symlink(fComponents + "libbcTest.so",
getFolder(fJavadev, "lib/libbcTest.so"));
symlink(fComponents + "libbcxpcomstubs.so",
getFolder(fJavadev, "lib/libbcxpcomstubs.so"));
symlink(fProgram + "regxpcom",
getFolder(fJavadev, "lib/regxpcom"));
// check return value
if(err == SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
cancelInstall(err);
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);
// end main

View File

@@ -0,0 +1,85 @@
// Installation guide for Webclient.xpi
// this function verifies disk space in kilobytes
function verifyDiskSpace(dirPath, spaceRequired)
{
var spaceAvailable;
// Get the available disk space on the given path
spaceAvailable = fileGetDiskSpaceAvailable(dirPath);
// Convert the available disk space into kilobytes
spaceAvailable = parseInt(spaceAvailable / 1024);
// do the verification
if(spaceAvailable < spaceRequired)
{
logComment("Insufficient disk space: " + dirPath);
logComment(" required : " + spaceRequired + " K");
logComment(" available: " + spaceAvailable + " K");
return(false);
}
return(true);
}
// main
var srDest;
var err;
var fProgram;
srDest = 1000;
logComment("Starting Install Process");
err = initInstall("Webclient", "Webclient", "1.1");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
if(verifyDiskSpace(fProgram, srDest))
{
setPackageFolder(fProgram);
err = addDirectory("",
"1.1",
"javadev", // dir name in jar to extract
fProgram, // Where to put this file
// (Returned from GetFolder)
"javadev", // subdir name to create relative to fProgram
true); // Force Flag
logComment("addDirectory() returned: " + err);
var fComponents = getFolder("Components");
var fJavadev = getFolder("Program","javadev");
src = getFolder(fJavadev, "lib/javadom.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "lib/bcorb.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "lib/blackconnectjni.dll");
err = File.copy(src, fProgram);
src = getFolder(fJavadev, "lib/bcjavastubs.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "lib/bcjavaloader.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "lib/bcxpcomstubs.dll");
err = File.copy(src, fComponents);
src = getFolder(fJavadev, "lib/regxpcom.exe");
err = File.copy(src, fProgram);
src = getFolder(fJavadev, "lib/javadomjni.dll");
err = File.copy(src, fProgram);
src = getFolder(fJavadev, "lib/webclient.dll");
err = File.copy(src, fProgram);
// check return value
if(err == SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
cancelInstall(err);
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);
// end main

View File

@@ -0,0 +1,11 @@
#!/bin/sh
#-------------------------------------------------------
# Hack to allow symlinking (required for Sun's JRE) in
# a zippy.
#
# usage: symlink.sh <srcfile> <newlink>
#
#-------------------------------------------------------
ln -s $1 $2

5
mozilla/java/changelo Normal file
View File

@@ -0,0 +1,5 @@
Fri Jul 30 14:57:28 1999 Ed Burns <Ed Burns <ed.burns@sun.com>>
* Made necessary changes to build files to build with jdk1.1.7 or
jdk1.2.2.

View File

@@ -0,0 +1,44 @@
@echo off
rem The contents of this file are subject to the Netscape Public
rem License Version 1.1 (the "License"); you may not use this file
rem except in compliance with the License. You may obtain a copy of
rem the License at http://www.mozilla.org/NPL/
rem
rem Software distributed under the License is distributed on an "AS
rem IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
rem implied. See the License for the specific language governing
rem rights and limitations under the License.
rem
rem The Original Code is mozilla.org code.
rem
rem The Initial Developer of the Original Code is Netscape
rem Communications Corporation. Portions created by Netscape are
rem Copyright (C) 1998 Netscape Communications Corporation. All
rem Rights Reserved.
rem
rem Contributor(s):
@echo on
@echo off
if not exist %2 echo Warning: %2 does not exist! (you may need to check it out)
if not exist %2 exit 1
pushd %2
goto NO_CAFE
if "%MOZ_CAFE%"=="" goto NO_CAFE
mkdir %MOZ_SRC%\mozilla\dist\classes\%2
%MOZ_TOOLS%\bin\sj.exe -classpath %MOZ_SRC%\mozilla\dist\classes;%MOZ_SRC%\mozilla\sun-java\classsrc -d %MOZ_SRC%\mozilla\dist\classes *.java
goto END
:NO_CAFE
perl.exe %MOZ_SRC%\mozilla\config\outofdate.pl -d %MOZ_SRC%\mozilla\dist\classes\%2 -cfg %1 *.java > doit.bat
call doit.bat
del /F /A:A doit.bat
:END
popd

View File

@@ -0,0 +1,19 @@
# this file contains defs that should be in the top level mozilla/config
# directory, but may not be there due to tree update issues.
!ifndef JAVA_HOME
JAVA_HOME=$(JDKHOME)
!endif
JAVA_DESTPATH = $(MOZ_SRC)\mozilla\dist\classes
DEFAULT_JAVA_SOURCEPATH = $(MOZ_SRC)\mozilla\sun-java\classsrc
JAVA_SOURCEPATH = $(MOZ_SRC)\mozilla\sun-java\classsrc11;$(DEFAULT_JAVA_SOURCEPATH)
JAVAC_ZIP=$(JAVA_HOME)\lib\classes.zip
JAVAC_CLASSPATH=$(JAVAC_ZIP)$(PATH_SEPARATOR)$(JAVA_DESTPATH)$(PATH_SEPARATOR)$(JAVA_SOURCEPATH)
JAVA=$(JDKHOME)\bin\java
JAVAH=$(JDKHOME)\bin\JAVAH
JAVAH_FLAGS=-jni -classpath $(JAVAC_CLASSPATH)

View File

@@ -0,0 +1,134 @@
#!perl
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/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.org 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.
#
# Contributor(s):
#
#
#Input: [-d dir] foo1.java foo2.java
#Compares with: foo1.class foo2.class (if -d specified, checks in 'dir',
# otherwise assumes .class files in same directory as .java files)
#Returns: list of input arguments which are newer than corresponding class
#files (non-existant class files are considered to be real old :-)
#
$found = 1;
# GLOBALS
$SEP = 0; # the paltform independent path separator
$CFG = 0; # the value of the -cfg flag
# determine the path separator
$_ = $ENV{"PATH"};
if (m|/|) {
$SEP = "/";
}
else {
$SEP = "\\";
}
if ($ARGV[0] eq '-d') {
$classdir = $ARGV[1];
$classdir .= $SEP;
shift;
shift;
} else {
$classdir = "." . $SEP;
}
# if -cfg is specified, print out the contents of the cfg file to stdout
if ($ARGV[0] eq '-cfg') {
$CFG = $ARGV[1];
shift;
shift;
}
$_ = $ARGV[0];
if (m/\*.java/) {
# Account for the fact that the shell didn't expand *.java by doing it
# manually.
&manuallyExpandArgument("java");
}
$printFile = 0;
foreach $filename (@ARGV) {
$classfilename = $classdir;
$classfilename .= $filename;
$classfilename =~ s/.java$/.class/;
# workaround to only build sun/io/* classes when necessary
# change the pathname of target file to be consistent
# with sun/io subdirectories
#
# sun/io was always getting rebuilt because the java files
# were split into subdirectories, but the package names
# remained the same. This was confusing outofdate.pl
#
$classfilename =~ s/sun\/io\/extended.\//sun\/io\//;
$classfilename =~ s/\.\.\/\.\.\/sun-java\/classsrc\///;
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,
$ctime,$blksize,$blocks) = stat($filename);
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$classmtime,
$ctime,$blksize,$blocks) = stat($classfilename);
# print $filename, " ", $mtime, ", ", $classfilename, " ", $classmtime, "\n";
if ($mtime > $classmtime) {
# Only print the file header if we actually have some files to
# compile.
if (!$printFile) {
$printFile = 1;
&printFile($CFG);
}
print $filename, " ";
$found = 0;
}
}
print "\n";
# push onto $ARG array all filenames with extension $ext
# @param ext the extension of the file
sub manuallyExpandArgument {
local($ext) = @_;
$ext = "\." . $ext; # put it in regexp
$result = opendir(DIR, ".");
@allfiles = grep(/$ext/, readdir(DIR));
$i = 0;
foreach $file (@allfiles) {
#skip emacs save files
$_ = $file;
if (!/~/) {
$ARGV[$i++] = $file;
}
}
}
sub printFile {
local($file) = @_;
$result = open(CFG, $file);
while (<CFG>) {
chop;
print $_;
}
}

View File

@@ -0,0 +1,10 @@
Index: DOMAccessor.java
===================================================================
RCS file: /cvsroot/mozilla/java/dom/classes/org/mozilla/dom/DOMAccessor.java,v
retrieving revision 1.2
diff -r1.2 DOMAccessor.java
31a32,33
> import org.mozilla.dom.util.GenericDocLoadListener;
>
38a41
> addDocumentLoadListener(new GenericDocLoadListener("JavaDOM"));

View File

@@ -0,0 +1,30 @@
#!gmake
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/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.org 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.
#
# Contributor(s):
DEPTH = ../..
topsrcdir = @top_srcdir@
VPATH = @srcdir@
srcdir = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = classes src jni
include $(topsrcdir)/config/rules.mk

153
mozilla/java/dom/README Normal file
View File

@@ -0,0 +1,153 @@
Sources
=======
The sources are located in mozilla/java/dom.
Subdirectories
classes
jni
src
tests
contain Java sources, Java native methods implementation,
native c++ code and Java DOM API tests respectively.
Note:
Sources that work with mozilla PR1 and earlier
versions should be checked out using DOM_PR1 tag.
No tags are needed for the sources that work with
the latest mozilla tree.
Building
========
Requirenments:
--------------
Current mozilla build
JDK1.2 or JDK1.3
Perl 5 must be in your path
JDKHOME environment variable set to your JDK dir
CLASSPATH environment cvariable set to contain
org.w3c.dom classes. The sources can be found at
http://www.w3.org/TR/2000/CR-DOM-Level-2-20000307/java-binding.html
(for mozilla PR1 and earlie versions)
http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510/java-binding.html
(for the latest mozilla)
Solaris specific
----------------
Add following directories to LD_LIBRARY_PATH environment variable:
$MOZILLA_FIVE_HOME
$JDKHOME/jre/lib/$HOSTTYPE/native_threads
$JDKHOME/jre/lib/$HOSTTYPE/classic
$JDKHOME/jre/lib/$HOSTTYPE/
goto mozilla/java/dom directory and type "gmake"
Windows NT specific
-------------------
To enable OJI usage set environment variable JAVA_DOM_OJI_ENABLE=1
Add following directories to PATH environment variable:
%MOZILLA_FIVE_HOME%
%JDKHOME%\jre\bin\classic (only in case you don't use OJI)
goto mozilla/java/dom directory and type "nmake /f makefile.win"
Using the Java DOM API
======================
A Java component obtains a org.w3c.dom.Document by registering for
Document load notifications. The Document is passed in along with the
notifications. The preferred way for a Java component to register for
Document load notifications is to register via the DOMAccessor class.
However, this is possible only if OJI usage is enabled. This works
on Windows NT platform.
On Solaris currently the nsJavaDOM component instantiates its own JVM.
When an OJI-compatible JVM is available, we will move over to using it.
So, one has to apply two patches to
mozilla/webshell/src/nsWebShell.cpp
mozilla/java/dom/classes/org/mozilla/dom/DOMAccessor.java
They can be found at mozilla/java/dom directory.
The first one inits nsJavaDOM component and adds it as a
document load observer listener.
The second one registers a document load listener via DOMAccessor.
Note:
any class that implements the DocumentLoadListener interface may
stand for GenericDocLoadListener.
After applying a patch to nsWebShell.cpp edit
mozilla/webshell/src/Makefile.in to add -DJAVA_DOM to the list of
defines. Then do a gmake in this directory.
After applying a patch to DOMAccessor.java go to mozilla/java/dom/classes
and do a gmake. No changes in makefiles are needed.
You can find examples of Java DOM API usage in
mozilla/java/dom/classes/org/mozilla/dom/util
mozilla/java/dom/tests/src/applets
DOM2 events
------------
At the moment all DOM2 event-related interfaces are present
however they are not fully implemented yet
because Mozilla's core DOM does not support DOM2 events fully.
Consequences:
- some methods throws OperationUnsupportedException()
The basic implementation architecture is following:
- NodeImpl is extended to support EventTarget interface
- for every addEventListener call special NativeDOMProxyListener object is
created and is registered with Mozilla's DOM
It's task is to propagate event notifications from Mozilla's DOM
to target Java EventListener
- In order to sucessfully unregister EventListeners we need to
save association between java EventListener and corresponding
NativeDOMProxyListener object. This is done by storing such
associations Vector at NodeImpl
- javaDOMEventsGlobals class is used much like javaDOMGlobals for caching
(this code may be moved to javaDOMGlobals)
NSPR Logging
------------
The NSPR Log module name is javadom. For instructions on how to enable
logging, see dist/include/prlog.h
Debug output
------------
The debug build of the Java DOM API creates the JVM with the verbose
and the verboseGC options turned on, to help in debugging. It also
creates two files in the current working directory, dom-java.txt and
dom-cpp.txt, which are simple dumps of the DOM, as printed from C++
and from Java. The two should be identical. The code to write these
files is, essentially, my regression test. Feel free to add to it.
Dependencies
------------
Currently tested on Solaris 7 only with Java 2 SDK 1.2.1. egcs-2.91.66,
Sun Workshop C++ 4.2 and 5.0 have been know to compile this code
fine. gcc-2.8.1 does *not* work. I have not used anything
Java2-specific, and it works with JDK1.1.x too (I have been using JDK
1.1.6 too).
References
----------
I highly recommend reading Sheng Liang's new JNI book.

25
mozilla/java/dom/TODO Normal file
View File

@@ -0,0 +1,25 @@
o Convert to using IDL and GenericFactories. Once support for
ComponentLoaders is implemented in xpcom, use that to load our
component.
[5d]
o Use OJI to obtain the JVM.
[5d. Awaiting OJI availability]
o i18n the API
o Use nsISupportsProxies to work around thread
limitations. This will mean writing an IDL for nsIJavaDOM.h, but
that sould be trivial. Dcumentation for nsISupportsProxies is
available at
http://www.mozilla.org/projects/xpcom/Proxies.html.
[2w. Assigned. Contact: Sergey Lunegov <lsv@sparc.spb.su>]
o Investigate the possibility of writing a tool that can generate the
JNI code from idl. This is the only practical way to implement the
HTML DOM (because it is too big to hand-code).
[4w+]

View File

@@ -0,0 +1,36 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/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.org 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.
#
# Contributor(s):
# Igor Kushnirskiy <idk@eng.sun.com>
#
DEPTH = ../../../..
topsrcdir = ../../../..
VPATH = .
srcdir = .
include $(DEPTH)/config/autoconf.mk
DIRS= \
classes \
stubs \
accessor \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,30 @@
#!gmake
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/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.org 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.
#
# Contributor(s):
DEPTH = ../../../..
topsrcdir = @top_srcdir@
VPATH = @srcdir@
srcdir = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = classes stubs accessor
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,56 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/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.org 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.
#
# Contributor(s):
#
DEPTH = ../../../../..
topsrcdir = @top_srcdir@
VPATH = @srcdir@
srcdir = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = DOMAccessor
COMPONENT = DOMAccessor
LIBRARY_NAME = DOMAccessor
IS_COMPONENT = 1
XPIDL_MODULE = DOMAccessor
XPIDLSRCS = bcIDOMAccessor.idl
CPPSRCS = bcDOMAccessor.cpp \
$(NULL)
EXTRA_LIBS = -ljavadomstubs -L$(DIST)/lib
include $(topsrcdir)/config/rules.mk
bcDOMAccessor.jar.comp: manifest bcIDOMAccessor.class bcDOMAccessor.class
$(JDKHOME)/bin/jar cvfm bcDOMAccessor.jar.comp manifest *.class
.java.class:
$(JDKHOME)/bin/javac -classpath $(CLASSPATH) $<
install-component: bcDOMAccessor.jar.comp bcDOMAccessor.jar.info
cp bcDOMAccessor.jar.comp bcDOMAccessor.jar.info $(DEPTH)/dist/bin/components/
clobber-java:
rm -f *.class *.jar
clobber:: clobber-java
clobber_all:: clobber-java
install:: install-component

View File

@@ -0,0 +1,244 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
* Denis Sharypov <sdv@sparc.spb.su>
*/
#include "bcIDOMAccessor.h"
#include "nsIGenericFactory.h"
#include "nsIModule.h"
#include "nsIServiceManager.h"
#include "nsCURILoader.h"
#include "nsIURL.h"
#include "nsIChannel.h"
#include "nsIDocument.h"
#include "nsIDocumentLoader.h"
#include "nsIDocumentLoaderObserver.h"
#include "nsIDocumentViewer.h"
#include "nsIDOMDocument.h"
#include "nsIDocShell.h"
#include "bcNode.h"
#include "bcDocument.h"
#include "bcElement.h"
// #include "nsIEnumerator.h"
// #include "stdlib.h"
static nsIDOMDocument* GetDocument(nsIDocumentLoader* loader);
#if defined(DEBUG)
#include <stdio.h>
#include "nsIDOMElement.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMNamedNodeMap.h"
#endif
static NS_DEFINE_IID(kIDocShellIID, NS_IDOCSHELL_IID);
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIDocumentViewerIID, NS_IDOCUMENT_VIEWER_IID);
static NS_DEFINE_IID(kIDOMDocumentIID, NS_IDOMDOCUMENT_IID);
static NS_DEFINE_IID(kIDocumentLoaderObserverIID, NS_IDOCUMENT_LOADER_OBSERVER_IID);
/* 151dd030-9ed0-11d4-a983-00105ae3801e */
#define BC_DOM_ACCESSOR_CID \
{0x151dd030, 0x9ed0, 0x11d4, \
{0xa9, 0x83, 0x00, 0x10, 0x5a, 0xe3, 0x80, 0x1e}}
static NS_DEFINE_IID(kDocLoaderServiceCID, NS_DOCUMENTLOADER_SERVICE_CID);
class bcDOMAccessor : public bcIDOMAccessor, public nsIDocumentLoaderObserver
{
public:
NS_DECL_ISUPPORTS
NS_DECL_BCIDOMACCESSOR
NS_DECL_NSIDOCUMENTLOADEROBSERVER
bcDOMAccessor(bcIDOMAccessor* accessor);
virtual ~bcDOMAccessor();
/* additional members */
private:
bcIDOMAccessor* accessor;
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(bcDOMAccessor, bcIDOMAccessor)
bcDOMAccessor::bcDOMAccessor(bcIDOMAccessor* accessor)
{
NS_INIT_ISUPPORTS();
this->accessor = accessor;
/* member initializers and constructor code */
}
bcDOMAccessor::~bcDOMAccessor()
{
/* destructor code */
}
NS_IMETHODIMP bcDOMAccessor::EndDocumentLoad(const char *url, Document* doc)
// NS_IMETHODIMP bcDOMAccessor::EndDocumentLoad(const char *url, Node *node, Element *elem)
{
// wrap bcDOMDocumentImpl(doc)
// addref(bcDOMDocumentImpl)
if (accessor)
accessor->EndDocumentLoad(url, doc);
// accessor->EndDocumentLoad(url, node, elem);
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onStartDocumentLoad (in nsIDocumentLoader aLoader, in nsIURI aURL, in string aCommand); */
NS_IMETHODIMP bcDOMAccessor::OnStartDocumentLoad(nsIDocumentLoader *aLoader, nsIURI *aURL, const char *aCommand)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onEndDocumentLoad (in nsIDocumentLoader loader, in nsIChannel aChannel, in unsigned long aStatus); */
NS_IMETHODIMP bcDOMAccessor::OnEndDocumentLoad(nsIDocumentLoader *loader, nsIChannel *aChannel, PRUint32 aStatus)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onStartURLLoad (in nsIDocumentLoader aLoader, in nsIChannel channel); */
NS_IMETHODIMP bcDOMAccessor::OnStartURLLoad(nsIDocumentLoader *aLoader, nsIChannel *channel)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onProgressURLLoad (in nsIDocumentLoader aLoader, in nsIChannel aChannel, in unsigned long aProgress, in unsigned long aProgressMax); */
NS_IMETHODIMP bcDOMAccessor::OnProgressURLLoad(nsIDocumentLoader *aLoader, nsIChannel *aChannel, PRUint32 aProgress, PRUint32 aProgressMax)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void onStatusURLLoad (in nsIDocumentLoader loader, in nsIChannel channel, in nsStringRef aMsg); */
NS_IMETHODIMP bcDOMAccessor::OnStatusURLLoad(nsIDocumentLoader *loader, nsIChannel *channel, nsString & aMsg)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onEndURLLoad (in nsIDocumentLoader aLoader,
in nsIChannel aChannel,
in unsigned long aStatus); */
NS_IMETHODIMP bcDOMAccessor::OnEndURLLoad(nsIDocumentLoader *loader,
nsIChannel *channel,
PRUint32 aStatus)
{
char* urlSpec = (char*) "";
nsIURI* url = nsnull;
if (channel && NS_SUCCEEDED(channel->GetURI(&url)))
url->GetSpec(&urlSpec);
nsIDOMDocument* domDoc = GetDocument(loader);
nsIDOMElement* docEl;
domDoc->GetDocumentElement(&docEl);
nsIDOMNode* node = nsnull;
nsresult rv = domDoc->QueryInterface(NS_GET_IID(nsIDOMNode), (void**)&node);
// nb: error check
EndDocumentLoad(urlSpec, new bcDocument(domDoc));
return NS_OK;
}
void test() {
printf("--DOMAccessor test start\n");
nsresult rv = NS_OK;
bcIDOMAccessor *accessor = NULL;
rv = nsComponentManager::CreateInstance("bcDOMAccessor",
nsnull,
NS_GET_IID(bcIDOMAccessor),
(void**)&accessor);
if (NS_FAILED(rv)) {
printf(" === [debug] can not load bcDOMAccessor\n");
return;
}
NS_WITH_SERVICE(nsIDocumentLoader, docLoaderService, kDocLoaderServiceCID, &rv);
if (NS_FAILED(rv) || !docLoaderService) {
printf("=== no doc loader found...\n");
} else {
rv = docLoaderService->AddObserver((nsIDocumentLoaderObserver*)(new bcDOMAccessor(accessor)));
if (NS_FAILED(rv)) {
printf("=== AddObserver(DOMAccessor) failed x\n", rv);
}
}
printf("--DOMAccessor test end\n");
}
static int counter = 0; //we do not need to call it on unload time;
extern "C" NS_EXPORT nsresult NSGetModule(nsIComponentManager *compMgr,
nsIFile *location,
nsIModule** result) //I am using it for runnig test *only*
{
if (counter == 0) {
counter ++;
printf("--DOMAccessor before test\n");
test();
printf("--DOMAccessor after test\n");
}
return NS_ERROR_FAILURE;
}
static nsIDOMDocument* GetDocument(nsIDocumentLoader* loader)
{
nsIDocShell* docshell = nsnull;
nsISupports* container = nsnull;
nsIContentViewer* contentv = nsnull;
nsIDocumentViewer* docv = nsnull;
nsIDocument* document = nsnull;
nsIDOMDocument* domDoc = nsnull;
nsresult rv = loader->GetContainer(&container);
if (NS_SUCCEEDED(rv) && container) {
rv = container->QueryInterface(kIDocShellIID, (void**) &docshell);
container->Release();
if (NS_SUCCEEDED(rv) && docshell) {
rv = docshell->GetContentViewer(&contentv);
docshell->Release();
if (NS_SUCCEEDED(rv) && contentv) {
rv = contentv->QueryInterface(kIDocumentViewerIID, (void**) &docv);
contentv->Release();
if (NS_SUCCEEDED(rv) && docv) {
rv = docv->GetDocument(document);
docv->Release();
if (NS_SUCCEEDED(rv) && document) {
rv = document->QueryInterface(kIDOMDocumentIID, (void**) &domDoc);
if (NS_SUCCEEDED(rv) && docv) {
return domDoc;
}
}
}
}
}
}
fprintf(stderr,
"=== GetDocument: failed: "
"container=%x, webshell=%x, contentViewer=%x, "
"documentViewer=%x, document=%x, "
"domDocument=%x, error=%x\n",
(unsigned) (void*) container,
(unsigned) (void*) docshell,
(unsigned) (void*) contentv,
(unsigned) (void*) docv,
(unsigned) (void*) document,
(unsigned) (void*) domDoc,
rv);
return NULL;
}

View File

@@ -0,0 +1,3 @@
6b777772-1dd2-11b2-91bd-d3ab05f89834
bcDOMAccessor
bcDOMAccessor

View File

@@ -0,0 +1,56 @@
import org.mozilla.xpcom.*;
import org.mozilla.dom.Attr;
import org.mozilla.dom.Node;
import org.mozilla.dom.Document;
import org.mozilla.dom.Element;
import org.mozilla.dom.DOMTreeDumper;
public class bcDOMAccessor implements bcIDOMAccessor {
public bcDOMAccessor() {}
public Object queryInterface(IID iid) {
System.out.println("--[java]::queryInterface iid="+iid);
Object result;
if ( iid.equals(nsISupportsIID)
|| iid.equals(bcIDOMAccessorIID)) {
result = this;
} else {
result = null;
}
System.out.println("--[java]::queryInterface result=null "+(result==null));
return result;
}
public void endDocumentLoad(String url, Document doc) {
System.out.println("=== GOT URL: " + url);
if (url.startsWith("about")) {
return;
}
new DOMTreeDumper().dumpToStream(System.out, doc);
}
static IID bcIDOMAccessorIID = new IID(bcIDOMAccessor.IID);
static IID nsISupportsIID = new IID(nsISupports.IID);
static {
InterfaceRegistry.register("org.mozilla.dom.Attr");
InterfaceRegistry.register("org.mozilla.dom.CDATASection");
InterfaceRegistry.register("org.mozilla.dom.CharacterData");
InterfaceRegistry.register("org.mozilla.dom.Comment");
InterfaceRegistry.register("org.mozilla.dom.Document");
InterfaceRegistry.register("org.mozilla.dom.DocumentFragment");
InterfaceRegistry.register("org.mozilla.dom.DocumentType");
InterfaceRegistry.register("org.mozilla.dom.DOMImplementation");
InterfaceRegistry.register("org.mozilla.dom.Element");
InterfaceRegistry.register("org.mozilla.dom.Entity");
InterfaceRegistry.register("org.mozilla.dom.EntityReference");
InterfaceRegistry.register("org.mozilla.dom.NamedNodeMap");
InterfaceRegistry.register("org.mozilla.dom.Node");
InterfaceRegistry.register("org.mozilla.dom.NodeList");
InterfaceRegistry.register("org.mozilla.dom.Notation");
InterfaceRegistry.register("org.mozilla.dom.ProcessingInstruction");
InterfaceRegistry.register("org.mozilla.dom.Text");
}
}

View File

@@ -0,0 +1,9 @@
#include "nsISupports.idl"
#include "dom.idl"
#pragma prefix
[scriptable, uuid(d0ee9960-9ecf-11d4-a983-00105ae3801e)]
interface bcIDOMAccessor : nsISupports
{
void endDocumentLoad(in string url, in Document doc);
};

View File

@@ -0,0 +1,30 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from bcIDOMAccessor.idl.
*/
import org.mozilla.xpcom.*;
import org.mozilla.dom.*;
/**
* Interface bcIDOMAccessor
*
* IID: 0xd0ee9960-9ecf-11d4-a983-00105ae3801e
*/
public interface bcIDOMAccessor extends nsISupports
{
public static final String IID =
"d0ee9960-9ecf-11d4-a983-00105ae3801e";
/* void endDocumentLoad (in string url, in Document doc); */
public void endDocumentLoad(String url, Document doc);
}
/*
* end
*/

View File

@@ -0,0 +1,66 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/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.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1999 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
# Denis Sharypov <sdv@sparc.spb.su>
#
DEPTH = ..\..\..\..\..
topsrcdir = ..\..\..\..\..
srcdir = .
VPATH = .
MAKE_OBJ_TYPE=DLL
MODULE=DOMAccessor
COMPONENT=1
DLLNAME=$(MODULE)
DLL=.\$(OBJDIR)\$(DLLNAME).dll
XPIDLSRCS = \
.\bcIDOMAccessor.idl \
$(NULL)
OBJS = \
.\$(OBJDIR)\bcDOMAccessor.obj \
$(NULL)
LLIBS=$(LLIBS) $(LIBNSPR) $(DIST)\lib\xpcom.lib $(DIST)\lib\javadomstubs.lib
include <$(DEPTH)\config\rules.mak>
bcDOMAccessor.jar.comp: manifest bcDOMAccessor.class bcDOMAccessor.class
$(JDKHOME)\bin\jar cvfm bcDOMAccessor.jar.comp manifest *.class
.SUFFIXES: .java .class
.java.class:
$(JDKHOME)\bin\javac -classpath $(CLASSPATH) $<
install-component: bcDOMAccessor.jar.comp bcDOMAccessor.jar.info $(DLL)
copy bcDOMAccessor.jar* $(DIST)\bin\components
copy $(DLL) $(DIST)\bin\components
clobber-java:
-del *.class *.jar.comp
clobber:: clobber-java
rm $(DIST)\bin\components\$(DLLNAME).dll
rm $(DIST)\bin\components\bcDOMAccessor.jar.*
clobber_all:: clobber-java
install:: install-component

View File

@@ -0,0 +1 @@
Component-Class: bcDOMAccessor

View File

@@ -0,0 +1,40 @@
#!gmake
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/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.org 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.
#
# Contributor(s):
DEPTH = ../../../../..
topsrcdir = @top_srcdir@
VPATH = @srcdir@
srcdir = @srcdir@
IGNORE_MANIFEST=1
JAVA_OR_NSJVM=1
NO_CAFE=1
JDIRS = org/mozilla/dom \
$(NULL)
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/rules.mk
JAVAC_PROG = $(JDKHOME)/bin/javac
JAVAC_FLAGS = -classpath $(CLASSPATH) -d $(JAVA_DESTPATH)
JAVAC = $(JAVAC_PROG) $(JAVAC_FLAGS)

View File

@@ -0,0 +1,35 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun are
# Copyright (C) 1999 Sun Microsystems, Inc. All
# Rights Reserved.
#
# Contributor(s):
IGNORE_MANIFEST=1
DEPTH = ..\..\..\..\..
JAVA_OR_NSJVM=1
NO_CAFE=1
include <$(DEPTH)\config\config.mak>
JDIRS = org\mozilla\dom \
$(NULL)
JAVAC_PROG=$(JDKHOME)\bin\javac
JAVAC_FLAGS=-classpath $(CLASSPATH);$(JAVA_DESTPATH) -d $(JAVA_DESTPATH)
include <$(DEPTH)\config\javarules.mak>
include <$(DEPTH)\config\rules.mak>

View File

@@ -0,0 +1,42 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
/**
* Interface Attr
*
* IID: 0x09e31950-9ad5-11d4-a983-00105ae3801e
*/
public interface Attr extends Node
{
public static final String IID =
"09e31950-9ad5-11d4-a983-00105ae3801e";
/* readonly attribute DOMString name; */
public String getName();
/* readonly attribute boolean specified; */
public boolean getSpecified();
/* attribute DOMString value; */
public String getValue();
public void setValue(String value);
/* readonly attribute Element ownerElement; */
public Element getOwnerElement();
}
/*
* end
*/

View File

@@ -0,0 +1,29 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
/**
* Interface CDATASection
*
* IID: 0x0b813520-9ad5-11d4-a983-00105ae3801e
*/
public interface CDATASection extends Text
{
public static final String IID =
"0b813520-9ad5-11d4-a983-00105ae3801e";
}
/*
* end
*/

View File

@@ -0,0 +1,52 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
import org.w3c.dom.DOMException;
/**
* Interface CharacterData
*
* IID: 0x0965cbf0-9ad5-11d4-a983-00105ae3801e
*/
public interface CharacterData extends Node
{
public static final String IID =
"0965cbf0-9ad5-11d4-a983-00105ae3801e";
/* attribute DOMString data; */
public String getData();
public void setData(String value);
/* readonly attribute unsigned long length; */
public int getLength();
/* DOMString substringData (in unsigned long offset, in unsigned long count) raises (DOMException); */
public String substringData(int offset, int count) throws DOMException;
/* void appendData (in DOMString arg) raises (DOMException); */
public void appendData(String arg) throws DOMException;
/* void insertData (in unsigned long offset, in DOMString arg) raises (DOMException); */
public void insertData(int offset, String arg) throws DOMException;
/* void deleteData (in unsigned long offset, in unsigned long count) raises (DOMException); */
public void deleteData(int offset, int count) throws DOMException;
/* void replaceData (in unsigned long offset, in unsigned long count, in DOMString arg) raises (DOMException); */
public void replaceData(int offset, int count, String arg) throws DOMException;
}
/*
* end
*/

View File

@@ -0,0 +1,29 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
/**
* Interface Comment
*
* IID: 0x0ae9ed90-9ad5-11d4-a983-00105ae3801e
*/
public interface Comment extends CharacterData
{
public static final String IID =
"0ae9ed90-9ad5-11d4-a983-00105ae3801e";
}
/*
* end
*/

View File

@@ -0,0 +1,39 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
import org.w3c.dom.DOMException;
/**
* Interface DOMImplementation
*
* IID: 0x0776b330-9ad5-11d4-a983-00105ae3801e
*/
public interface DOMImplementation extends nsISupports
{
public static final String IID =
"0776b330-9ad5-11d4-a983-00105ae3801e";
/* boolean hasFeature (in DOMString feature, in DOMString version); */
public boolean hasFeature(String feature, String version);
/* DocumentType createDocumentType (in DOMString qualifiedName, in DOMString publicId, in DOMString systemId) raises (DOMException); */
public DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) throws DOMException;
/* Document createDocument (in DOMString namespaceURI, in DOMString qualifiedName, in DocumentType doctype) raises (DOMException); */
public Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) throws DOMException;
}
/*
* end
*/

View File

@@ -0,0 +1,224 @@
/*
* The contents of this file are subject to the Mozilla 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/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are Copyright (C) 1999 Sun Microsystems,
* Inc. All Rights Reserved.
*
* Contributor(s): Denis Sharypov <sdv@sparc.spb.su>
*
*/
package org.mozilla.dom;
import java.io.BufferedOutputStream;
import java.io.PrintStream;
import java.io.FileOutputStream;
import java.io.IOException;
public class DOMTreeDumper {
private String name;
private boolean debug;
private PrintStream ps;
private boolean inA;
private final String[] endTagForbiddenNames = {"AREA",
"BASE",
"BASEFONT",
"BR",
"COL",
"FRAME",
"HR",
"IMG",
"INPUT",
"ISINDEX",
"LINK",
"META",
"PARAM"};
public DOMTreeDumper() {
this("DOMTreeDumper", true);
}
public DOMTreeDumper(boolean debug) {
this("DOMTreeDumper", debug);
}
public DOMTreeDumper(String name) {
this(name, true);
}
public DOMTreeDumper(String name, boolean debug) {
this.name = name;
this.debug = debug;
}
private void dumpDocument(Document doc) {
if (doc == null) return;
Element element = doc.getDocumentElement();
if (element == null) return;
element.normalize();
// DocumentType dt = doc.getDoctype();
// dumpNode(dt);
dumpNode(element);
ps.println();
ps.flush();
element = null;
doc = null;
}
private void dumpNode(Node node) {
dumpNode(node, false);
}
private void dumpNode(Node node, boolean isMapNode) {
if (node == null) {
return;
}
int type = node.getNodeType();
String name = node.getNodeName();
String value = node.getNodeValue();
switch (type) {
case Node.ELEMENT_NODE:
if (name.equals("A")) inA = true;
if (!(inA || name.equals("BR"))) {
ps.println();
}
ps.print("<" + name);
dumpAttributes(node);
ps.print(">");
dumpChildren(node);
if (name.equals("A")) inA = false;
if (!endTagForbidden(name)) {
ps.print("</" + node.getNodeName() + ">");
}
break;
case Node.ATTRIBUTE_NODE:
ps.print(" " + name.toUpperCase() + "=\"" + value + "\"");
break;
case Node.TEXT_NODE:
if (!node.getParentNode().getNodeName().equals("PRE")) {
value = value.trim();
}
if (!value.equals("")) {
if (!inA) {
ps.println();
}
ps.print(canonicalize(value));
}
break;
case Node.COMMENT_NODE:
ps.print("\n<!--" + value + "-->");
break;
case Node.CDATA_SECTION_NODE:
case Node.ENTITY_REFERENCE_NODE:
case Node.ENTITY_NODE:
case Node.PROCESSING_INSTRUCTION_NODE:
case Node.DOCUMENT_NODE:
case Node.DOCUMENT_TYPE_NODE:
case Node.DOCUMENT_FRAGMENT_NODE:
case Node.NOTATION_NODE:
ps.println("\n<!-- NOT HANDLED: " + name +
" value=" + value + " -->");
break;
}
}
private void dumpAttributes(Node node) {
NamedNodeMap map = node.getAttributes();
if (map == null) return;
int length = map.getLength();
for (int i=0; i < length; i++) {
Node item = map.item(i);
dumpNode(item, true);
}
}
private void dumpChildren(Node node) {
NodeList children = node.getChildNodes();
int length = 0;
boolean hasChildren = ((children != null) && ((length = children.getLength()) > 0));
if (!hasChildren) {
return;
}
for (int i=0; i < length; i++) {
dumpNode(children.item(i), false);
}
if (!inA) {
ps.println();
}
}
private String canonicalize(String str) {
StringBuffer in = new StringBuffer(str);
int length = in.length();
StringBuffer out = new StringBuffer(length);
char c;
for (int i = 0; i < length; i++) {
switch (c = in.charAt(i)) {
case '&' :
out.append("&amp;");
break;
case '<':
out.append("&lt;");
break;
case '>':
out.append("&gt;");
break;
case '\u00A0':
out.append("&nbsp;");
break;
default:
out.append(c);
}
}
return out.toString();
}
private boolean endTagForbidden(String name) {
for (int i = 0; i < endTagForbiddenNames.length; i++) {
if (name.equals(endTagForbiddenNames[i])) {
return true;
}
}
return false;
}
public void dumpToFile(String fileName, Document doc) {
try {
FileOutputStream fos = new FileOutputStream(fileName);
ps = new PrintStream(new BufferedOutputStream(fos, 1024));
} catch (IOException ex) {
ex.printStackTrace();
return;
}
dbg("dumping to " + fileName);
dumpDocument(doc);
dbg("finished dumping...");
}
public void dumpToStream(PrintStream ps, Document doc) {
this.ps = ps;
dbg("dumping to stream...");
dumpDocument(doc);
dbg("finished dumping...");
}
private void dbg(String str) {
if (debug) {
System.out.println(name + ": " + str);
}
}
}

View File

@@ -0,0 +1,81 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
import org.w3c.dom.DOMException;
/**
* Interface Document
*
* IID: 0x0e81d470-9ad5-11d4-a983-00105ae3801e
*/
public interface Document extends Node
{
public static final String IID =
"0e81d470-9ad5-11d4-a983-00105ae3801e";
/* readonly attribute DocumentType doctype; */
public DocumentType getDoctype();
/* readonly attribute DOMImplementation implementation; */
public DOMImplementation getImplementation();
/* readonly attribute Element documentElement; */
public Element getDocumentElement();
/* Element createElement (in DOMString tagName) raises (DOMException); */
public Element createElement(String tagName) throws DOMException;
/* DocumentFragment createDocumentFragment (); */
public DocumentFragment createDocumentFragment();
/* Text createTextNode (in DOMString data); */
public Text createTextNode(String data);
/* Comment createComment (in DOMString data); */
public Comment createComment(String data);
/* CDATASection createCDATASection (in DOMString data) raises (DOMException); */
public CDATASection createCDATASection(String data) throws DOMException;
/* ProcessingInstruction createProcessingInstruction (in DOMString target, in DOMString data) raises (DOMException); */
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException;
/* Attr createAttribute (in DOMString name) raises (DOMException); */
public Attr createAttribute(String name) throws DOMException;
/* EntityReference createEntityReference (in DOMString name) raises (DOMException); */
public EntityReference createEntityReference(String name) throws DOMException;
/* NodeList getElementsByTagName (in DOMString tagname); */
public NodeList getElementsByTagName(String tagname);
/* Node importNode (in Node importedNode, in boolean deep) raises (DOMException); */
public Node importNode(Node importedNode, boolean deep) throws DOMException;
/* Element createElementNS (in DOMString namespaceURI, in DOMString qualifiedName) raises (DOMException); */
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException;
/* Attr createAttributeNS (in DOMString namespaceURI, in DOMString qualifiedName) raises (DOMException); */
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException;
/* NodeList getElementsByTagNameNS (in DOMString namespaceURI, in DOMString localName); */
public NodeList getElementsByTagNameNS(String namespaceURI, String localName);
/* Element getElementById (in DOMString elementId); */
public Element getElementById(String elementId);
}
/*
* end
*/

View File

@@ -0,0 +1,29 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
/**
* Interface DocumentFragment
*
* IID: 0x0e249e00-9ad5-11d4-a983-00105ae3801e
*/
public interface DocumentFragment extends Node
{
public static final String IID =
"0e249e00-9ad5-11d4-a983-00105ae3801e";
}
/*
* end
*/

View File

@@ -0,0 +1,47 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
/**
* Interface DocumentType
*
* IID: 0x0c07ada0-9ad5-11d4-a983-00105ae3801e
*/
public interface DocumentType extends Node
{
public static final String IID =
"0c07ada0-9ad5-11d4-a983-00105ae3801e";
/* readonly attribute DOMString name; */
public String getName();
/* readonly attribute NamedNodeMap entities; */
public NamedNodeMap getEntities();
/* readonly attribute NamedNodeMap notations; */
public NamedNodeMap getNotations();
/* readonly attribute DOMString publicId; */
public String getPublicId();
/* readonly attribute DOMString systemId; */
public String getSystemId();
/* readonly attribute DOMString internalSubset; */
public String getInternalSubset();
}
/*
* end
*/

View File

@@ -0,0 +1,78 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
import org.w3c.dom.DOMException;
/**
* Interface Element
*
* IID: 0x0a7d6f40-9ad5-11d4-a983-00105ae3801e
*/
public interface Element extends Node
{
public static final String IID =
"0a7d6f40-9ad5-11d4-a983-00105ae3801e";
/* readonly attribute DOMString tagName; */
public String getTagName();
/* DOMString getAttribute (in DOMString name); */
public String getAttribute(String name);
/* void setAttribute (in DOMString name, in DOMString value) raises (DOMException); */
public void setAttribute(String name, String value) throws DOMException;
/* void removeAttribute (in DOMString name) raises (DOMException); */
public void removeAttribute(String name) throws DOMException;
/* Attr getAttributeNode (in DOMString name); */
public Attr getAttributeNode(String name);
/* Attr setAttributeNode (in Attr newAttr) raises (DOMException); */
public Attr setAttributeNode(Attr newAttr) throws DOMException;
/* Attr removeAttributeNode (in Attr oldAttr) raises (DOMException); */
public Attr removeAttributeNode(Attr oldAttr) throws DOMException;
/* NodeList getElementsByTagName (in DOMString name); */
public NodeList getElementsByTagName(String name);
/* DOMString getAttributeNS (in DOMString namespaceURI, in DOMString localName); */
public String getAttributeNS(String namespaceURI, String localName);
/* void setAttributeNS (in DOMString namespaceURI, in DOMString qualifiedName, in DOMString value) raises (DOMException); */
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException;
/* void removeAttributeNS (in DOMString namespaceURI, in DOMString localName) raises (DOMException); */
public void removeAttributeNS(String namespaceURI, String localName) throws DOMException;
/* Attr getAttributeNodeNS (in DOMString namespaceURI, in DOMString localName); */
public Attr getAttributeNodeNS(String namespaceURI, String localName);
/* Attr setAttributeNodeNS (in Attr newAttr) raises (DOMException); */
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException;
/* NodeList getElementsByTagNameNS (in DOMString namespaceURI, in DOMString localName); */
public NodeList getElementsByTagNameNS(String namespaceURI, String localName);
/* boolean hasAttribute (in DOMString name); */
public boolean hasAttribute(String name);
/* boolean hasAttributeNS (in DOMString namespaceURI, in DOMString localName); */
public boolean hasAttributeNS(String namespaceURI, String localName);
}
/*
* end
*/

View File

@@ -0,0 +1,38 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
/**
* Interface Entity
*
* IID: 0x0cf30080-9ad5-11d4-a983-00105ae3801e
*/
public interface Entity extends Node
{
public static final String IID =
"0cf30080-9ad5-11d4-a983-00105ae3801e";
/* readonly attribute DOMString publicId; */
public String getPublicId();
/* readonly attribute DOMString systemId; */
public String getSystemId();
/* readonly attribute DOMString notationName; */
public String getNotationName();
}
/*
* end
*/

View File

@@ -0,0 +1,29 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
/**
* Interface EntityReference
*
* IID: 0x0d4eafc0-9ad5-11d4-a983-00105ae3801e
*/
public interface EntityReference extends Node
{
public static final String IID =
"0d4eafc0-9ad5-11d4-a983-00105ae3801e";
}
/*
* end
*/

View File

@@ -0,0 +1,54 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
import org.w3c.dom.DOMException;
/**
* Interface NamedNodeMap
*
* IID: 0x08f4b810-9ad5-11d4-a983-00105ae3801e
*/
public interface NamedNodeMap extends nsISupports
{
public static final String IID =
"08f4b810-9ad5-11d4-a983-00105ae3801e";
/* Node getNamedItem (in DOMString name); */
public Node getNamedItem(String name);
/* Node setNamedItem (in Node arg) raises (DOMException); */
public Node setNamedItem(Node arg) throws DOMException;
/* Node removeNamedItem (in DOMString name) raises (DOMException); */
public Node removeNamedItem(String name) throws DOMException;
/* Node item (in unsigned long index); */
public Node item(int index);
/* readonly attribute unsigned long length; */
public int getLength();
/* Node getNamedItemNS (in DOMString namespaceURI, in DOMString localName); */
public Node getNamedItemNS(String namespaceURI, String localName);
/* Node setNamedItemNS (in Node arg) raises (DOMException); */
public Node setNamedItemNS(Node arg) throws DOMException;
/* Node removeNamedItemNS (in DOMString namespaceURI, in DOMString localName) raises (DOMException); */
public Node removeNamedItemNS(String namespaceURI, String localName) throws DOMException;
}
/*
* end
*/

View File

@@ -0,0 +1,133 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
import org.w3c.dom.DOMException;
/**
* Interface Node
*
* IID: 0x082f98e0-9ad5-11d4-a983-00105ae3801e
*/
public interface Node extends nsISupports
{
public static final String IID =
"082f98e0-9ad5-11d4-a983-00105ae3801e";
/* const unsigned short ELEMENT_NODE = 1; */
public static final short ELEMENT_NODE = 1;
/* const unsigned short ATTRIBUTE_NODE = 2; */
public static final short ATTRIBUTE_NODE = 2;
/* const unsigned short TEXT_NODE = 3; */
public static final short TEXT_NODE = 3;
/* const unsigned short CDATA_SECTION_NODE = 4; */
public static final short CDATA_SECTION_NODE = 4;
/* const unsigned short ENTITY_REFERENCE_NODE = 5; */
public static final short ENTITY_REFERENCE_NODE = 5;
/* const unsigned short ENTITY_NODE = 6; */
public static final short ENTITY_NODE = 6;
/* const unsigned short PROCESSING_INSTRUCTION_NODE = 7; */
public static final short PROCESSING_INSTRUCTION_NODE = 7;
/* const unsigned short COMMENT_NODE = 8; */
public static final short COMMENT_NODE = 8;
/* const unsigned short DOCUMENT_NODE = 9; */
public static final short DOCUMENT_NODE = 9;
/* const unsigned short DOCUMENT_TYPE_NODE = 10; */
public static final short DOCUMENT_TYPE_NODE = 10;
/* const unsigned short DOCUMENT_FRAGMENT_NODE = 11; */
public static final short DOCUMENT_FRAGMENT_NODE = 11;
/* const unsigned short NOTATION_NODE = 12; */
public static final short NOTATION_NODE = 12;
/* readonly attribute DOMString nodeName; */
public String getNodeName();
/* attribute DOMString nodeValue; */
public String getNodeValue();
public void setNodeValue(String value);
/* readonly attribute unsigned short nodeType; */
public short getNodeType();
/* readonly attribute Node parentNode; */
public Node getParentNode();
/* readonly attribute NodeList childNodes; */
public NodeList getChildNodes();
/* readonly attribute Node firstChild; */
public Node getFirstChild();
/* readonly attribute Node lastChild; */
public Node getLastChild();
/* readonly attribute Node previousSibling; */
public Node getPreviousSibling();
/* readonly attribute Node nextSibling; */
public Node getNextSibling();
/* readonly attribute NamedNodeMap attributes; */
public NamedNodeMap getAttributes();
/* readonly attribute Document ownerDocument; */
public Document getOwnerDocument();
/* Node insertBefore (in Node newChild, in Node refChild) raises (DOMException); */
public Node insertBefore(Node newChild, Node refChild) throws DOMException;
/* Node replaceChild (in Node newChild, in Node oldChild) raises (DOMException); */
public Node replaceChild(Node newChild, Node oldChild) throws DOMException;
/* Node removeChild (in Node oldChild) raises (DOMException); */
public Node removeChild(Node oldChild) throws DOMException;
/* Node appendChild (in Node newChild) raises (DOMException); */
public Node appendChild(Node newChild) throws DOMException;
/* boolean hasChildNodes (); */
public boolean hasChildNodes();
/* Node cloneNode (in boolean deep); */
public Node cloneNode(boolean deep);
/* void normalize (); */
public void normalize();
/* boolean supports (in DOMString feature, in DOMString version); */
public boolean supports(String feature, String version);
/* readonly attribute DOMString namespaceURI; */
public String getNamespaceURI();
/* attribute DOMString prefix; */
public String getPrefix();
public void setPrefix(String value);
/* readonly attribute DOMString localName; */
public String getLocalName();
}
/*
* end
*/

View File

@@ -0,0 +1,35 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
/**
* Interface NodeList
*
* IID: 0x0895fa70-9ad5-11d4-a983-00105ae3801e
*/
public interface NodeList extends nsISupports
{
public static final String IID =
"0895fa70-9ad5-11d4-a983-00105ae3801e";
/* Node item (in unsigned long index); */
public Node item(int index);
/* readonly attribute unsigned long length; */
public int getLength();
}
/*
* end
*/

View File

@@ -0,0 +1,35 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
/**
* Interface Notation
*
* IID: 0x0c7a48b0-9ad5-11d4-a983-00105ae3801e
*/
public interface Notation extends Node
{
public static final String IID =
"0c7a48b0-9ad5-11d4-a983-00105ae3801e";
/* readonly attribute DOMString publicId; */
public String getPublicId();
/* readonly attribute DOMString systemId; */
public String getSystemId();
}
/*
* end
*/

View File

@@ -0,0 +1,36 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
/**
* Interface ProcessingInstruction
*
* IID: 0x0db69880-9ad5-11d4-a983-00105ae3801e
*/
public interface ProcessingInstruction extends Node
{
public static final String IID =
"0db69880-9ad5-11d4-a983-00105ae3801e";
/* readonly attribute DOMString target; */
public String getTarget();
/* attribute DOMString data; */
public String getData();
public void setData(String value);
}
/*
* end
*/

View File

@@ -0,0 +1,33 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from dom.idl.
*/
package org.mozilla.dom;
import org.mozilla.xpcom.*;
import org.w3c.dom.DOMException;
/**
* Interface Text
*
* IID: 0x0eefd9f0-9ad5-11d4-a983-00105ae3801e
*/
public interface Text extends CharacterData
{
public static final String IID =
"0eefd9f0-9ad5-11d4-a983-00105ae3801e";
/* Text splitText (in unsigned long offset) raises (DOMException); */
public Text splitText(int offset) throws DOMException;
}
/*
* end
*/

View File

@@ -0,0 +1 @@
C:\jdk1.3\bin\javac -classpath .;C:\JDK1.3\jre\lib\rt.jar;;C:\JDK1.3\jre\lib\jaws.jar;d:\wrk\mozilla\dist\classes;;d:\wrk\classes;;d:\wrk\mozilla\dist\classes -d d:\wrk\mozilla\dist\classes Attr.java CDATASection.java CharacterData.java Comment.java Document.java DocumentFragment.java DocumentType.java DOMImplementation.java DOMTreeDumper.java Element.java Entity.java EntityReference.java NamedNodeMap.java Node.java NodeList.java Notation.java ProcessingInstruction.java Text.java

View File

@@ -0,0 +1,32 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun are
# Copyright (C) 1999 Sun Microsystems, Inc. All
# Rights Reserved.
#
# Contributor(s):
IGNORE_MANIFEST=1
#//------------------------------------------------------------------------
#//
#// Specify the depth of the current directory relative to the
#// root of NS
#//
#//------------------------------------------------------------------------
DEPTH = ..\..\..\..
DIRS = classes stubs accessor
include <$(DEPTH)\config\rules.mak>

View File

@@ -0,0 +1,88 @@
About the project
=================
The goal is to provide access to the DOM API provided
by the mozilla browser using the java to xpcom bridge(Blackconnect).
The implementation currently consists of stubs between mozilla core DOM
interfaces and core DOM interfaces defined in dom.idl (blackconnect
requires scriptable interfaces), java interfaces generated from
dom.idl and a DOMAccessor as an example of using the DOM API.
Sources
=======
The sources are located in mozilla/java/dom
Subdirectories
classes - contains classes generated automatically from
idl definition of core DOM interfaces (stubs/dom.idl)
using xpidl compiler (mozilla/java/xpcom/java/xpidl)
and a sample DOMTreeDumper class that dumps an html
document source using its DOM tree.
stubs - stubs between mozilla core DOM interfaces and
core DOM interfaces defined in dom.idl
accessor - a sample java component which demonstrates the
use of the DOM API from java via blackconnect
Building
========
Requirenments:
--------------
- you need to build the blackconnect bridge
mozilla/java/xpcom and to have all the
environment variables set required for
building blackconnect
- mozilla_Netscape_20000922_BRANCH mozilla build
- JDK1.3
- Perl 5 must be in your path
- JDKHOME environment variable set to your JDK dir
- CLASSPATH environment variable set to contain
mozilla/dist/classes directory and
org.w3c.dom.DOMException class. The source can be found at
http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510/java-binding.html
Solaris and Linux:
------------------
goto mozilla/java/dom directory and type "gmake"
Windows NT:
-----------
goto mozilla/java/dom directory and type "nmake /f makefile.win"
Running
=======
After building a component run a mozilla browser. The document
sources will be dumped into console.
Using the Java DOM API
======================
Directory accessor contains a sample java component which
becomes a document load listener and dumps sources of documents
being displayed in mozilla using their DOM trees.
if you have a C++ pointer to any core DOM mozilla interface nsIDOM<...>
you need to wrap it into a corresponding scriptable stub interface
bc<...> (e.g. nsIDOMDocument into bcDocument using
bcDocument::bcDocument(nsIDOMDocument* ptr) constructor) and you
can use it to pass to java as a class instance which implements
a org.mozill.dom.Document interface using blackconnect.
An example works this way:
A C++ implementation of a component gets a call via NSGetModule method,
registrates itself as a document load listener, gets a reference to
a java component and then pass references to all documents being
displayed into a java component.
Notes:
- Since exception passing mechanism is not yet implemented in blackconnect
no DOMExceptions are raised.
- The mechanism used in a sample allows to modify any documents in any
way provided by the DOM API, so there are no security restrictions at all.

View File

@@ -0,0 +1,74 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/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.org 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.
#
# Contributor(s):
#
DEPTH = ../../../../..
topsrcdir = @top_srcdir@
VPATH = @srcdir@
srcdir = @srcdir@
include $(DEPTH)/config/autoconf.mk
LIBRARY_NAME = javadomstubs
MODULE = javadomstubs
XPIDLSRCS = dom.idl
CPPSRCS = bcNode.cpp \
bcElement.cpp \
bcAttr.cpp \
bcNodeList.cpp \
bcNamedNodeMap.cpp \
bcDocument.cpp \
bcCharacterData.cpp \
bcText.cpp \
bcComment.cpp \
bcCDATASection.cpp \
bcDocumentFragment.cpp \
bcEntityReference.cpp \
bcEntity.cpp \
bcNotation.cpp \
bcDocumentType.cpp \
bcProcessingInstruction.cpp \
bcDOMImplementation.cpp \
$(NULL)
EXPORTS = bcNode.h \
bcElement.h \
bcAttr.h \
bcNodeList.h \
bcNamedNodeMap.h \
bcDocument.h \
bcCharacterData.h \
bcText.h \
bcComment.h \
bcCDATASection.h \
bcDocumentFragment.h \
bcEntityReference.h \
bcEntity.h \
bcNotation.h \
bcDocumentType.h \
bcProcessingInstruction.h \
bcDOMImplementation.h \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,56 @@
#include "bcAttr.h"
#include "bcElement.h"
NS_IMPL_ISUPPORTS1(bcAttr, Attr)
bcAttr::bcAttr(nsIDOMAttr* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
nodePtr = new bcNode(ptr);
}
bcAttr::~bcAttr()
{
/* destructor code */
}
/* readonly attribute DOMString name; */
NS_IMETHODIMP bcAttr::GetName(DOMString *aName)
{
nsString ret;
nsresult rv = domPtr->GetName(ret);
*aName = ret.ToNewUnicode();
return rv;
}
/* readonly attribute boolean specified; */
NS_IMETHODIMP bcAttr::GetSpecified(PRBool *aSpecified)
{
return domPtr->GetSpecified(aSpecified);
}
/* attribute DOMString value; */
NS_IMETHODIMP bcAttr::GetValue(DOMString *aValue)
{
nsString ret;
nsresult rv = domPtr->GetValue(ret);
*aValue = ret.ToNewUnicode();
return rv;
}
NS_IMETHODIMP bcAttr::SetValue(DOMString aValue)
{
nsString val(aValue);
nsresult rv = domPtr->SetValue(val);
return rv;
}
/* readonly attribute Element ownerElement; */
NS_IMETHODIMP bcAttr::GetOwnerElement(Element * *aOwnerElement)
{
nsIDOMElement* ret = nsnull;
nsresult rv = domPtr->GetOwnerElement(&ret);
*aOwnerElement = new bcElement(ret);
return rv;
}

View File

@@ -0,0 +1,26 @@
#ifndef __bcAttr_h__
#define __bcAttr_h__
#include "dom.h"
#include "bcNode.h"
#include "nsIDOMAttr.h"
#define DOM_ATTR_PTR(_attr_) (!_attr_ ? nsnull : ((bcAttr*)_attr_)->domPtr)
#define NEW_BCATTR(_attr_) (!_attr_ ? nsnull : new bcAttr(_attr_))
class bcAttr : public Attr
{
public:
NS_DECL_ISUPPORTS
NS_DECL_ATTR
NS_FORWARD_NODE(nodePtr->)
bcAttr(nsIDOMAttr* domPtr);
virtual ~bcAttr();
nsIDOMAttr* domPtr;
private:
bcNode* nodePtr;
/* additional members */
};
#endif // __bcAttr_h__

View File

@@ -0,0 +1,17 @@
#include "bcCDATASection.h"
NS_IMPL_ISUPPORTS1(bcCDATASection, CDATASection)
bcCDATASection::bcCDATASection(nsIDOMCDATASection* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
textPtr = new bcText(ptr);
}
bcCDATASection::~bcCDATASection()
{
/* destructor code */
}

View File

@@ -0,0 +1,28 @@
#ifndef __bcCDATASection_h__
#define __bcCDATASection_h__
#include "dom.h"
#include "nsIDOMCDATASection.h"
#include "bcText.h"
#define DOM_CDATASECTION_PTR(_cdatasection_) (!_cdatasection_ ? nsnull : ((bcCDATASection*)_cdatasection_)->domPtr)
#define NEW_BCCDATASECTION(_cdatasection_) (!_cdatasection_ ? nsnull : new bcCDATASection(_cdatasection_))
class bcCDATASection : public CDATASection
{
public:
NS_DECL_ISUPPORTS
NS_DECL_CDATASECTION
NS_FORWARD_NODE(textPtr->)
NS_FORWARD_CHARACTERDATA(textPtr->)
NS_FORWARD_TEXT(textPtr->)
bcCDATASection(nsIDOMCDATASection* domPtr);
virtual ~bcCDATASection();
private:
nsIDOMCDATASection* domPtr;
bcText* textPtr;
/* additional members */
};
#endif // __bcCDATASection_h__

View File

@@ -0,0 +1,75 @@
#include "bcCharacterData.h"
NS_IMPL_ISUPPORTS1(bcCharacterData, CharacterData)
bcCharacterData::bcCharacterData(nsIDOMCharacterData* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
nodePtr = new bcNode(ptr);
}
bcCharacterData::~bcCharacterData()
{
/* destructor code */
}
/* attribute DOMString data; */
NS_IMETHODIMP bcCharacterData::GetData(DOMString *aData)
{
nsString ret;
nsresult rv = domPtr->GetData(ret);
*aData = ret.ToNewUnicode();
return rv;
}
NS_IMETHODIMP bcCharacterData::SetData(DOMString aData)
{
nsString _aData(aData);
return domPtr->SetData(_aData);
}
/* readonly attribute unsigned long length; */
NS_IMETHODIMP bcCharacterData::GetLength(PRUint32 *aLength)
{
return domPtr->GetLength(aLength);
}
/* DOMString substringData (in unsigned long offset, in unsigned long count) raises (DOMException); */
NS_IMETHODIMP bcCharacterData::SubstringData(PRUint32 offset, PRUint32 count, DOMString *_retval)
{
nsString ret;
nsresult rv = domPtr->SubstringData(offset, count, ret);
*_retval = ret.ToNewUnicode();
return rv;
}
/* void appendData (in DOMString arg) raises (DOMException); */
NS_IMETHODIMP bcCharacterData::AppendData(DOMString arg)
{
nsString _arg(arg);
return domPtr->AppendData(_arg);
}
/* void insertData (in unsigned long offset, in DOMString arg) raises (DOMException); */
NS_IMETHODIMP bcCharacterData::InsertData(PRUint32 offset, DOMString arg)
{
nsString _arg(arg);
return domPtr->InsertData(offset, _arg);
}
/* void deleteData (in unsigned long offset, in unsigned long count) raises (DOMException); */
NS_IMETHODIMP bcCharacterData::DeleteData(PRUint32 offset, PRUint32 count)
{
return domPtr->DeleteData(offset, count);
}
/* void replaceData (in unsigned long offset, in unsigned long count, in DOMString arg) raises (DOMException); */
NS_IMETHODIMP bcCharacterData::ReplaceData(PRUint32 offset, PRUint32 count, DOMString arg)
{
nsString _arg(arg);
return domPtr->ReplaceData(offset, count, _arg);
}

View File

@@ -0,0 +1,26 @@
#ifndef __bcCharacterData_h__
#define __bcCharacterData_h__
#include "dom.h"
#include "bcNode.h"
#include "nsIDOMCharacterData.h"
#define DOM_CHARACTERDATA_PTR(_characterdata_) (!_characterdata_ ? nsnull : ((bcCharacterData*)_characterdata_)->domPtr)
#define NEW_BCCHARACTERDATA(_characterdata_) (!_characterdata_ ? nsnull : new bcCharacterData(_characterdata_))
class bcCharacterData : public CharacterData
{
public:
NS_DECL_ISUPPORTS
NS_DECL_CHARACTERDATA
NS_FORWARD_NODE(nodePtr->)
bcCharacterData(nsIDOMCharacterData* domPtr);
virtual ~bcCharacterData();
private:
nsIDOMCharacterData* domPtr;
bcNode* nodePtr;
/* additional members */
};
#endif // __bcCharacterData_h__

View File

@@ -0,0 +1,17 @@
#include "bcComment.h"
NS_IMPL_ISUPPORTS1(bcComment, Comment)
bcComment::bcComment(nsIDOMComment* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
dataPtr = new bcCharacterData(ptr);
}
bcComment::~bcComment()
{
/* destructor code */
}

View File

@@ -0,0 +1,27 @@
#ifndef __bcComment_h__
#define __bcComment_h__
#include "dom.h"
#include "nsIDOMComment.h"
#include "bcCharacterData.h"
#define DOM_COMMENT_PTR(_comment_) (!_comment_ ? nsnull : ((bcComment*)_comment_)->domPtr)
#define NEW_BCCOMMENT(_comment_) (!_comment_ ? nsnull : new bcComment(_comment_))
class bcComment : public Comment
{
public:
NS_DECL_ISUPPORTS
NS_DECL_COMMENT
NS_FORWARD_NODE(dataPtr->)
NS_FORWARD_CHARACTERDATA(dataPtr->)
bcComment(nsIDOMComment* domPtr);
virtual ~bcComment();
private:
nsIDOMComment* domPtr;
bcCharacterData* dataPtr;
/* additional members */
};
#endif // __bcComment_h__

View File

@@ -0,0 +1,46 @@
#include "bcDOMImplementation.h"
#include "bcDocumentType.h"
#include "bcDocument.h"
NS_IMPL_ISUPPORTS1(bcDOMImplementation, DOMImplementation)
bcDOMImplementation::bcDOMImplementation(nsIDOMDOMImplementation* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
}
bcDOMImplementation::~bcDOMImplementation()
{
/* destructor code */
}
/* boolean hasFeature (in DOMString feature, in DOMString version); */
NS_IMETHODIMP bcDOMImplementation::HasFeature(DOMString feature, DOMString version, PRBool *_retval)
{
nsString _feature(feature), _version(version);
return domPtr->HasFeature(_feature, _version, _retval);
}
/* DocumentType createDocumentType (in DOMString qualifiedName, in DOMString publicId, in DOMString systemId) raises (DOMException); */
NS_IMETHODIMP bcDOMImplementation::CreateDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId, DocumentType **_retval)
{
nsIDOMDocumentType* ret = nsnull;
nsString _qualifiedName(qualifiedName), _publicId(publicId), _systemId(systemId);
nsresult rv = domPtr->CreateDocumentType(_qualifiedName, _publicId, _systemId, &ret);
*_retval = NEW_BCDOCUMENTTYPE(ret);
return rv;
}
/* Document createDocument (in DOMString namespaceURI, in DOMString qualifiedName, in DocumentType doctype) raises (DOMException); */
NS_IMETHODIMP bcDOMImplementation::CreateDocument(DOMString namespaceURI, DOMString qualifiedName, DocumentType *doctype, Document **_retval)
{
nsIDOMDocument* ret = nsnull;
nsString _namespaceURI(namespaceURI), _qualifiedName(qualifiedName);
nsresult rv = domPtr->CreateDocument(_namespaceURI, _qualifiedName,
DOM_DOCUMENTTYPE_PTR(doctype), &ret);
*_retval = NEW_BCDOCUMENT(ret);
return rv;
}

View File

@@ -0,0 +1,23 @@
#ifndef __bcDOMImplementation_h__
#define __bcDOMImplementation_h__
#include "dom.h"
#include "nsIDOMDOMImplementation.h"
#define DOM_DOMIMPLEMENTATION_PTR(_domimplementation_) (!_domimplementation_ ? nsnull : ((bcDOMImplementation*)_domimplementation_)->domPtr)
#define NEW_BCDOMIMPLEMENTATION(_domimplementation_) (!_domimplementation_ ? nsnull : new bcDOMImplementation(_domimplementation_))
class bcDOMImplementation : public DOMImplementation
{
public:
NS_DECL_ISUPPORTS
NS_DECL_DOMIMPLEMENTATION
bcDOMImplementation(nsIDOMDOMImplementation* domPtr);
virtual ~bcDOMImplementation();
private:
nsIDOMDOMImplementation* domPtr;
/* additional members */
};
#endif // __bcDOMImplementation_h__

View File

@@ -0,0 +1,196 @@
#include "bcDocument.h"
#include "bcElement.h"
#include "bcNodeList.h"
#include "bcAttr.h"
#include "bcText.h"
#include "bcComment.h"
#include "bcCDATASection.h"
#include "bcEntityReference.h"
#include "bcDocumentType.h"
#include "bcDocumentFragment.h"
#include "bcProcessingInstruction.h"
#include "bcDOMImplementation.h"
NS_IMPL_ISUPPORTS1(bcDocument, Document)
bcDocument::bcDocument(nsIDOMDocument* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
nodePtr = new bcNode(ptr);
}
bcDocument::~bcDocument()
{
/* destructor code */
}
/* readonly attribute DocumentType doctype; */
NS_IMETHODIMP bcDocument::GetDoctype(DocumentType * *aDoctype)
{
nsIDOMDocumentType* ret;
nsresult rv = domPtr->GetDoctype(&ret);
*aDoctype = NEW_BCDOCUMENTTYPE(ret);
return rv;
}
/* readonly attribute DOMImplementation implementation; */
NS_IMETHODIMP bcDocument::GetImplementation(DOMImplementation * *aImplementation)
{
nsIDOMDOMImplementation* ret;
nsresult rv = domPtr->GetImplementation(&ret);
*aImplementation = NEW_BCDOMIMPLEMENTATION(ret);
return rv;
}
/* readonly attribute Element documentElement; */
NS_IMETHODIMP bcDocument::GetDocumentElement(Element * *aDocumentElement)
{
nsIDOMElement* ret = nsnull;
nsresult rv = domPtr->GetDocumentElement(&ret);
*aDocumentElement = NEW_BCELEMENT(ret);
return rv;
}
/* Element createElement (in DOMString tagName) raises (DOMException); */
NS_IMETHODIMP bcDocument::CreateElement(DOMString tagName, Element **_retval)
{
nsIDOMElement* ret = nsnull;
nsString _tagName(tagName);
nsresult rv = domPtr->CreateElement(_tagName, &ret);
*_retval = NEW_BCELEMENT(ret);
return rv;
}
/* DocumentFragment createDocumentFragment (); */
NS_IMETHODIMP bcDocument::CreateDocumentFragment(DocumentFragment **_retval)
{
nsIDOMDocumentFragment* ret;
nsresult rv = domPtr->CreateDocumentFragment(&ret);
*_retval = NEW_BCDOCUMENTFRAGMENT(ret);
return rv;
}
/* Text createTextNode (in DOMString data); */
NS_IMETHODIMP bcDocument::CreateTextNode(DOMString data, Text **_retval)
{
nsString _data(data);
nsIDOMText* ret = nsnull;
nsresult rv = domPtr->CreateTextNode(_data, &ret);
*_retval = NEW_BCTEXT(ret);
return rv;
}
/* Comment createComment (in DOMString data); */
NS_IMETHODIMP bcDocument::CreateComment(DOMString data, Comment **_retval)
{
nsString _data(data);
nsIDOMComment* ret = nsnull;
nsresult rv = domPtr->CreateComment(_data, &ret);
*_retval = NEW_BCCOMMENT(ret);
return rv;
}
/* CDATASection createCDATASection (in DOMString data) raises (DOMException); */
NS_IMETHODIMP bcDocument::CreateCDATASection(DOMString data, CDATASection **_retval)
{
nsString _data(data);
nsIDOMCDATASection* ret = nsnull;
nsresult rv = domPtr->CreateCDATASection(_data, &ret);
*_retval = NEW_BCCDATASECTION(ret);
return rv;
}
/* ProcessingInstruction createProcessingInstruction (in DOMString target, in DOMString data) raises (DOMException); */
NS_IMETHODIMP bcDocument::CreateProcessingInstruction(DOMString target, DOMString data, ProcessingInstruction **_retval)
{
nsIDOMProcessingInstruction* ret;
nsString _target(target), _data(data);
nsresult rv = domPtr->CreateProcessingInstruction(_target, _data, &ret);
*_retval = NEW_BCPROCESSINGINSTRUCTION(ret);
return rv;
}
/* Attr createAttribute (in DOMString name) raises (DOMException); */
NS_IMETHODIMP bcDocument::CreateAttribute(DOMString name, Attr **_retval)
{
nsString _name(name);
nsIDOMAttr* ret = nsnull;
nsresult rv = domPtr->CreateAttribute(_name, &ret);
*_retval = NEW_BCATTR(ret);
return rv;
}
/* EntityReference createEntityReference (in DOMString name) raises (DOMException); */
NS_IMETHODIMP bcDocument::CreateEntityReference(DOMString name, EntityReference **_retval)
{
nsString _name(name);
nsIDOMEntityReference* ret = nsnull;
nsresult rv = domPtr->CreateEntityReference(_name, &ret);
*_retval = NEW_BCENTITYREFERENCE(ret);
return rv;
}
/* NodeList getElementsByTagName (in DOMString tagname); */
NS_IMETHODIMP bcDocument::GetElementsByTagName(DOMString tagname, NodeList **_retval)
{
nsString _tagname(tagname);
nsIDOMNodeList* ret = nsnull;
nsresult rv = domPtr->GetElementsByTagName(_tagname, &ret);
*_retval = NEW_BCNODELIST(ret);
return rv;
}
/* Node importNode (in Node importedNode, in boolean deep) raises (DOMException); */
NS_IMETHODIMP bcDocument::ImportNode(Node *importedNode, PRBool deep, Node **_retval)
{
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->ImportNode(DOM_NODE_PTR(importedNode), deep, &ret);
*_retval = NEW_BCNODE(ret);
return rv;
}
/* Element createElementNS (in DOMString namespaceURI, in DOMString qualifiedName) raises (DOMException); */
NS_IMETHODIMP bcDocument::CreateElementNS(DOMString namespaceURI, DOMString qualifiedName, Element **_retval)
{
nsString _namespaceURI(namespaceURI), _qualifiedName(qualifiedName);
nsIDOMElement* ret = nsnull;
nsresult rv = domPtr->CreateElementNS(_namespaceURI, _qualifiedName, &ret);
*_retval = NEW_BCELEMENT(ret);
return rv;
}
/* Attr createAttributeNS (in DOMString namespaceURI, in DOMString qualifiedName) raises (DOMException); */
NS_IMETHODIMP bcDocument::CreateAttributeNS(DOMString namespaceURI, DOMString qualifiedName, Attr **_retval)
{
nsString _namespaceURI(namespaceURI), _qualifiedName(qualifiedName);
nsIDOMAttr* ret = nsnull;
nsresult rv = domPtr->CreateAttributeNS(_namespaceURI, _qualifiedName, &ret);
*_retval = NEW_BCATTR(ret);
return rv;
}
/* NodeList getElementsByTagNameNS (in DOMString namespaceURI, in DOMString localName); */
NS_IMETHODIMP bcDocument::GetElementsByTagNameNS(DOMString namespaceURI, DOMString localName, NodeList **_retval)
{
nsString _namespaceURI(namespaceURI), _localName(localName);
nsIDOMNodeList* ret;
nsresult rv = domPtr->GetElementsByTagNameNS(_namespaceURI, _localName, &ret);
*_retval = NEW_BCNODELIST(ret);
return rv;
}
/* Element getElementById (in DOMString elementId); */
NS_IMETHODIMP bcDocument::GetElementById(DOMString elementId, Element **_retval)
{
nsString _elementId(elementId);
nsIDOMElement* ret = nsnull;
nsresult rv = domPtr->GetElementById(_elementId, &ret);
*_retval = NEW_BCELEMENT(ret);
return rv;
}

View File

@@ -0,0 +1,26 @@
#ifndef __bcDocument_h__
#define __bcDocument_h__
#include "dom.h"
#include "bcNode.h"
#include "nsIDOMDocument.h"
#define DOM_DOCUMENT_PTR(_document_) (!_document_ ? nsnull : ((bcDocument*)_document_)->domPtr)
#define NEW_BCDOCUMENT(_document_) (!_document_ ? nsnull : new bcDocument(_document_))
class bcDocument : public Document
{
public:
NS_DECL_ISUPPORTS
NS_DECL_DOCUMENT
NS_FORWARD_NODE(nodePtr->)
bcDocument(nsIDOMDocument* domPtr);
virtual ~bcDocument();
private:
nsIDOMDocument* domPtr;
bcNode* nodePtr;
/* additional members */
};
#endif // __bcDocument_h__

View File

@@ -0,0 +1,17 @@
#include "bcDocumentFragment.h"
NS_IMPL_ISUPPORTS1(bcDocumentFragment, DocumentFragment)
bcDocumentFragment::bcDocumentFragment(nsIDOMDocumentFragment* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
nodePtr = new bcNode(ptr);
}
bcDocumentFragment::~bcDocumentFragment()
{
/* destructor code */
}

View File

@@ -0,0 +1,26 @@
#ifndef __bcDocumentFragment_h__
#define __bcDocumentFragment_h__
#include "dom.h"
#include "bcNode.h"
#include "nsIDOMDocumentFragment.h"
#define DOM_DOCUMENTFRAGMENT_PTR(_documentfragment_) (!_documentfragment_ ? nsnull : ((bcDocumentFragment*)_documentfragment_)->domPtr)
#define NEW_BCDOCUMENTFRAGMENT(_documentfragment_) (!_documentfragment_ ? nsnull : new bcDocumentFragment(_documentfragment_))
class bcDocumentFragment : public DocumentFragment
{
public:
NS_DECL_ISUPPORTS
NS_DECL_DOCUMENTFRAGMENT
NS_FORWARD_NODE(nodePtr->)
bcDocumentFragment(nsIDOMDocumentFragment* domPtr);
virtual ~bcDocumentFragment();
private:
nsIDOMDocumentFragment* domPtr;
bcNode* nodePtr;
/* additional members */
};
#endif // __bcDocumentFragment_h__

View File

@@ -0,0 +1,78 @@
#include "bcDocumentType.h"
#include "bcNamedNodeMap.h"
NS_IMPL_ISUPPORTS1(bcDocumentType, DocumentType)
bcDocumentType::bcDocumentType(nsIDOMDocumentType* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
nodePtr = new bcNode(ptr);
}
bcDocumentType::~bcDocumentType()
{
/* destructor code */
}
/* readonly attribute DOMString name; */
NS_IMETHODIMP bcDocumentType::GetName(DOMString *aName)
{
nsString ret;
nsresult rv = domPtr->GetName(ret);
*aName = ret.ToNewUnicode();
return rv;
}
/* readonly attribute NamedNodeMap entities; */
NS_IMETHODIMP bcDocumentType::GetEntities(NamedNodeMap * *aEntities)
{
nsIDOMNamedNodeMap* ret = nsnull;
nsresult rv = domPtr->GetEntities(&ret);
*aEntities = NEW_BCNAMEDNODEMAP(ret);
return rv;
}
/* readonly attribute NamedNodeMap notations; */
NS_IMETHODIMP bcDocumentType::GetNotations(NamedNodeMap * *aNotations)
{
nsIDOMNamedNodeMap* ret = nsnull;
nsresult rv = domPtr->GetNotations(&ret);
*aNotations = NEW_BCNAMEDNODEMAP(ret);
return rv;
}
/* readonly attribute DOMString publicId; */
NS_IMETHODIMP bcDocumentType::GetPublicId(DOMString *aPublicId)
{
nsString ret;
nsresult rv = domPtr->GetPublicId(ret);
*aPublicId = ret.ToNewUnicode();
return rv;
}
/* readonly attribute DOMString systemId; */
NS_IMETHODIMP bcDocumentType::GetSystemId(DOMString *aSystemId)
{
nsString ret;
nsresult rv = domPtr->GetSystemId(ret);
*aSystemId = ret.ToNewUnicode();
return rv;
}
/* readonly attribute DOMString internalSubset; */
NS_IMETHODIMP bcDocumentType::GetInternalSubset(DOMString *aInternalSubset)
{
nsString ret;
nsresult rv = domPtr->GetInternalSubset(ret);
*aInternalSubset = ret.ToNewUnicode();
return rv;
}

View File

@@ -0,0 +1,26 @@
#ifndef __bcDocumentType_h__
#define __bcDocumentType_h__
#include "dom.h"
#include "bcNode.h"
#include "nsIDOMDocumentType.h"
#define DOM_DOCUMENTTYPE_PTR(_documenttype_) (!_documenttype_ ? nsnull : ((bcDocumentType*)_documenttype_)->domPtr)
#define NEW_BCDOCUMENTTYPE(_documenttype_) (!_documenttype_ ? nsnull : new bcDocumentType(_documenttype_))
class bcDocumentType : public DocumentType
{
public:
NS_DECL_ISUPPORTS
NS_DECL_DOCUMENTTYPE
NS_FORWARD_NODE(nodePtr->)
bcDocumentType(nsIDOMDocumentType* domPtr);
virtual ~bcDocumentType();
nsIDOMDocumentType* domPtr;
private:
bcNode* nodePtr;
/* additional members */
};
#endif // __bcDocumentType_h__

View File

@@ -0,0 +1,159 @@
#include "bcElement.h"
#include "bcAttr.h"
#include "bcNodeList.h"
NS_IMPL_ISUPPORTS1(bcElement, Element)
bcElement::bcElement(nsIDOMElement* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
nodePtr = new bcNode(ptr);
}
bcElement::~bcElement()
{
/* destructor code */
}
/* readonly attribute DOMString tagName; */
NS_IMETHODIMP bcElement::GetTagName(DOMString *aTagName)
{
nsString ret;
nsresult rv = domPtr->GetTagName(ret);
*aTagName = ret.ToNewUnicode();
return rv;
}
/* DOMString getAttribute (in DOMString name); */
NS_IMETHODIMP bcElement::GetAttribute(DOMString name, DOMString *_retval)
{
nsString ret, _name(name);
nsresult rv = domPtr->GetAttribute(_name, ret);
*_retval = ret.ToNewUnicode();
return rv;
}
/* void setAttribute (in DOMString name, in DOMString value) raises (DOMException); */
NS_IMETHODIMP bcElement::SetAttribute(DOMString name, DOMString value)
{
nsString _name(name), _value(value);
nsresult rv = domPtr->SetAttribute(_name, _value);
printf("\n===== setting value (%s) to attr (%s)\n\n",
_value.ToNewCString(),
_name.ToNewCString());
return rv;
}
/* void removeAttribute (in DOMString name) raises (DOMException); */
NS_IMETHODIMP bcElement::RemoveAttribute(DOMString name)
{
nsString _name(name);
return domPtr->RemoveAttribute(_name);
}
/* Attr getAttributeNode (in DOMString name); */
NS_IMETHODIMP bcElement::GetAttributeNode(DOMString name, Attr **_retval)
{
nsString _name(name);
nsIDOMAttr* ret = nsnull;
nsresult rv = domPtr->GetAttributeNode(_name, &ret);
*_retval = NEW_BCATTR(ret);
return rv;
}
/* Attr setAttributeNode (in Attr newAttr) raises (DOMException); */
NS_IMETHODIMP bcElement::SetAttributeNode(Attr *newAttr, Attr **_retval)
{
nsIDOMAttr* ret = nsnull;
nsresult rv = domPtr->SetAttributeNode(DOM_ATTR_PTR(newAttr), &ret);
*_retval = NEW_BCATTR(ret);
return rv;
}
/* Attr removeAttributeNode (in Attr oldAttr) raises (DOMException); */
NS_IMETHODIMP bcElement::RemoveAttributeNode(Attr *oldAttr, Attr **_retval)
{
nsIDOMAttr* ret = nsnull;
nsresult rv = domPtr->RemoveAttributeNode(DOM_ATTR_PTR(oldAttr), &ret);
*_retval = NEW_BCATTR(ret);
return rv;
}
/* NodeList getElementsByTagName (in DOMString name); */
NS_IMETHODIMP bcElement::GetElementsByTagName(DOMString name, NodeList **_retval)
{
nsIDOMNodeList* ret = nsnull;
nsString _name(name);
nsresult rv = domPtr->GetElementsByTagName(_name, &ret);
*_retval = NEW_BCNODELIST(ret);
return rv;
}
/* DOMString getAttributeNS (in DOMString namespaceURI, in DOMString localName); */
NS_IMETHODIMP bcElement::GetAttributeNS(DOMString namespaceURI, DOMString localName, DOMString *_retval)
{
nsString _namespaceURI(namespaceURI), _localName(localName), ret;
nsresult rv = domPtr->GetAttributeNS(_namespaceURI, _localName, ret);
*_retval = ret.ToNewUnicode();
return rv;
}
/* void setAttributeNS (in DOMString namespaceURI, in DOMString qualifiedName, in DOMString value) raises (DOMException); */
NS_IMETHODIMP bcElement::SetAttributeNS(DOMString namespaceURI, DOMString qualifiedName, DOMString value)
{
nsString _namespaceURI(namespaceURI), _qualifiedName(qualifiedName), _value(value);
return domPtr->SetAttributeNS(_namespaceURI, _qualifiedName, _value);
}
/* void removeAttributeNS (in DOMString namespaceURI, in DOMString localName) raises (DOMException); */
NS_IMETHODIMP bcElement::RemoveAttributeNS(DOMString namespaceURI, DOMString localName)
{
nsString _namespaceURI(namespaceURI), _localName(localName);
return domPtr->RemoveAttributeNS(_namespaceURI, _localName);
}
/* Attr getAttributeNodeNS (in DOMString namespaceURI, in DOMString localName); */
NS_IMETHODIMP bcElement::GetAttributeNodeNS(DOMString namespaceURI, DOMString localName, Attr **_retval)
{
nsString _namespaceURI(namespaceURI), _localName(localName);
nsIDOMAttr* ret = nsnull;
nsresult rv = domPtr->GetAttributeNodeNS(_namespaceURI, _localName, &ret);
*_retval = NEW_BCATTR(ret);
return rv;
}
/* Attr setAttributeNodeNS (in Attr newAttr) raises (DOMException); */
NS_IMETHODIMP bcElement::SetAttributeNodeNS(Attr *newAttr, Attr **_retval)
{
nsIDOMAttr* ret = nsnull;
nsresult rv = domPtr->SetAttributeNodeNS(DOM_ATTR_PTR(newAttr), &ret);
*_retval = NEW_BCATTR(ret);
return rv;
}
/* NodeList getElementsByTagNameNS (in DOMString namespaceURI, in DOMString localName); */
NS_IMETHODIMP bcElement::GetElementsByTagNameNS(DOMString namespaceURI, DOMString localName, NodeList **_retval)
{
nsIDOMNodeList* ret = nsnull;
nsString _namespaceURI(namespaceURI), _localName(localName);
nsresult rv = domPtr->GetElementsByTagNameNS(_namespaceURI, _localName, &ret);
*_retval = NEW_BCNODELIST(ret);
return rv;
}
/* boolean hasAttribute (in DOMString name); */
NS_IMETHODIMP bcElement::HasAttribute(DOMString name, PRBool *_retval)
{
nsString _name(name);
return domPtr->HasAttribute(_name, _retval);
}
/* boolean hasAttributeNS (in DOMString namespaceURI, in DOMString localName); */
NS_IMETHODIMP bcElement::HasAttributeNS(DOMString namespaceURI, DOMString localName, PRBool *_retval)
{
nsString _namespaceURI(namespaceURI), _localName(localName);
return domPtr->HasAttributeNS(_namespaceURI, _localName, _retval);
}

View File

@@ -0,0 +1,26 @@
#ifndef __bcElement_h__
#define __bcElement_h__
#include "dom.h"
#include "bcNode.h"
#include "nsIDOMElement.h"
#define DOM_ELEMENT_PTR(_element_) (!_element_ ? nsnull : ((bcElement*)_element_)->domPtr)
#define NEW_BCELEMENT(_element_) (!_element_ ? nsnull : new bcElement(_element_))
class bcElement : public Element
{
public:
NS_DECL_ISUPPORTS
NS_DECL_ELEMENT
NS_FORWARD_NODE(nodePtr->)
bcElement(nsIDOMElement* domPtr);
virtual ~bcElement();
private:
nsIDOMElement* domPtr;
bcNode* nodePtr;
/* additional members */
};
#endif // __bcElement_h__

View File

@@ -0,0 +1,47 @@
#include "bcEntity.h"
NS_IMPL_ISUPPORTS1(bcEntity, Entity)
bcEntity::bcEntity(nsIDOMEntity* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
nodePtr = new bcNode(ptr);
}
bcEntity::~bcEntity()
{
/* destructor code */
}
/* readonly attribute DOMString publicId; */
NS_IMETHODIMP bcEntity::GetPublicId(DOMString *aPublicId)
{
nsString ret;
nsresult rv = domPtr->GetPublicId(ret);
*aPublicId = ret.ToNewUnicode();
return rv;
}
/* readonly attribute DOMString systemId; */
NS_IMETHODIMP bcEntity::GetSystemId(DOMString *aSystemId)
{
nsString ret;
nsresult rv = domPtr->GetSystemId(ret);
*aSystemId = ret.ToNewUnicode();
return rv;
}
/* readonly attribute DOMString notationName; */
NS_IMETHODIMP bcEntity::GetNotationName(DOMString *aNotationName)
{
nsString ret;
nsresult rv = domPtr->GetNotationName(ret);
*aNotationName = ret.ToNewUnicode();
return rv;
}

View File

@@ -0,0 +1,26 @@
#ifndef __bcEntity_h__
#define __bcEntity_h__
#include "dom.h"
#include "bcNode.h"
#include "nsIDOMEntity.h"
#define DOM_ENTITY_PTR(_entity_) (!_entity_ ? nsnull : ((bcEntity*)_entity_)->domPtr)
#define NEW_BCENTITY(_entity_) (!_entity_ ? nsnull : new bcEntity(_entity_))
class bcEntity : public Entity
{
public:
NS_DECL_ISUPPORTS
NS_DECL_ENTITY
NS_FORWARD_NODE(nodePtr->)
bcEntity(nsIDOMEntity* domPtr);
virtual ~bcEntity();
private:
nsIDOMEntity* domPtr;
bcNode* nodePtr;
/* additional members */
};
#endif // __bcEntity_h__

View File

@@ -0,0 +1,17 @@
#include "bcEntityReference.h"
NS_IMPL_ISUPPORTS1(bcEntityReference, EntityReference)
bcEntityReference::bcEntityReference(nsIDOMEntityReference* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
nodePtr = new bcNode(ptr);
}
bcEntityReference::~bcEntityReference()
{
/* destructor code */
}

View File

@@ -0,0 +1,26 @@
#ifndef __bcEntityReference_h__
#define __bcEntityReference_h__
#include "dom.h"
#include "bcNode.h"
#include "nsIDOMEntityReference.h"
#define DOM_ENTITYREFERENCE_PTR(_entityreference_) (!_entityreference_ ? nsnull : ((bcEntityReference*)_entityreference_)->domPtr)
#define NEW_BCENTITYREFERENCE(_entityreference_) (!_entityreference_ ? nsnull : new bcEntityReference(_entityreference_))
class bcEntityReference : public EntityReference
{
public:
NS_DECL_ISUPPORTS
NS_DECL_ENTITYREFERENCE
NS_FORWARD_NODE(nodePtr->)
bcEntityReference(nsIDOMEntityReference* domPtr);
virtual ~bcEntityReference();
private:
nsIDOMEntityReference* domPtr;
bcNode* nodePtr;
/* additional members */
};
#endif // __bcEntityReference_h__

View File

@@ -0,0 +1,91 @@
#include "bcNamedNodeMap.h"
#include "bcNode.h"
NS_IMPL_ISUPPORTS1(bcNamedNodeMap, NamedNodeMap)
bcNamedNodeMap::bcNamedNodeMap(nsIDOMNamedNodeMap* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
}
bcNamedNodeMap::~bcNamedNodeMap()
{
/* destructor code */
}
/* Node getNamedItem (in DOMString name); */
NS_IMETHODIMP bcNamedNodeMap::GetNamedItem(DOMString name, Node **_retval)
{
nsString _name(name);
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->GetNamedItem(_name, &ret);
*_retval = NEW_BCNODE(ret);
return rv;
}
/* Node setNamedItem (in Node arg) raises (DOMException); */
NS_IMETHODIMP bcNamedNodeMap::SetNamedItem(Node *arg, Node **_retval)
{
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->SetNamedItem(DOM_NODE_PTR(arg), &ret);
*_retval = NEW_BCNODE(ret);
return rv;
}
/* Node removeNamedItem (in DOMString name) raises (DOMException); */
NS_IMETHODIMP bcNamedNodeMap::RemoveNamedItem(DOMString name, Node **_retval)
{
nsString _name(name);
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->RemoveNamedItem(_name, &ret);
*_retval = NEW_BCNODE(ret);
return rv;
}
/* Node item (in unsigned long index); */
NS_IMETHODIMP bcNamedNodeMap::Item(PRUint32 index, Node **_retval)
{
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->Item(index, &ret);
*_retval = NEW_BCNODE(ret);
return rv;
}
/* readonly attribute unsigned long length; */
NS_IMETHODIMP bcNamedNodeMap::GetLength(PRUint32 *aLength)
{
return domPtr->GetLength(aLength);
}
/* Node getNamedItemNS (in DOMString namespaceURI, in DOMString localName); */
NS_IMETHODIMP bcNamedNodeMap::GetNamedItemNS(DOMString namespaceURI, DOMString localName, Node **_retval)
{
nsString _namespaceURI(namespaceURI), _localName(localName);
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->GetNamedItemNS(_namespaceURI, _localName, &ret);
*_retval = NEW_BCNODE(ret);
return rv;
}
/* Node setNamedItemNS (in Node arg) raises (DOMException); */
NS_IMETHODIMP bcNamedNodeMap::SetNamedItemNS(Node *arg, Node **_retval)
{
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->SetNamedItemNS(DOM_NODE_PTR(arg), &ret);
*_retval = NEW_BCNODE(ret);
return rv;
}
/* Node removeNamedItemNS (in DOMString namespaceURI, in DOMString localName) raises (DOMException); */
NS_IMETHODIMP bcNamedNodeMap::RemoveNamedItemNS(DOMString namespaceURI, DOMString localName, Node **_retval)
{
nsString _namespaceURI(namespaceURI), _localName(localName);
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->RemoveNamedItemNS(_namespaceURI, _localName, &ret);
*_retval = NEW_BCNODE(ret);
return rv;
}

View File

@@ -0,0 +1,23 @@
#ifndef __bcNamedNodeMap_h__
#define __bcNamedNodeMap_h__
#include "dom.h"
#include "nsIDOMNamedNodeMap.h"
#define DOM_NAMEDNODEMAP_PTR(_namednodemap_) (!_namednodemap_ ? nsnull : ((bcNamedNodeMap*)_namednodemap_)->domPtr)
#define NEW_BCNAMEDNODEMAP(_namednodemap_) (!_namednodemap_ ? nsnull : new bcNamedNodeMap(_namednodemap_))
class bcNamedNodeMap : public NamedNodeMap
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NAMEDNODEMAP
bcNamedNodeMap(nsIDOMNamedNodeMap* domPtr);
virtual ~bcNamedNodeMap();
private:
nsIDOMNamedNodeMap* domPtr;
/* additional members */
};
#endif // __bcNamedNodeMap_h__

View File

@@ -0,0 +1,224 @@
#include "bcNode.h"
#include "bcNodeList.h"
#include "bcNamedNodeMap.h"
#include "bcDocument.h"
// #include "nsDOMError.h"
// #include "nsIDOMEventTarget.h"
/* Implementation file */
NS_IMPL_ISUPPORTS1(bcNode, Node)
bcNode::bcNode(nsIDOMNode* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
}
bcNode::~bcNode()
{
/* destructor code */
}
/* readonly attribute DOMString nodeName; */
NS_IMETHODIMP bcNode::GetNodeName(DOMString *aNodeName)
{
nsString ret;
nsresult rv = domPtr->GetNodeName(ret);
*aNodeName = ret.ToNewUnicode();
return rv;
}
/* attribute DOMString nodeValue; */
NS_IMETHODIMP bcNode::GetNodeValue(DOMString *aNodeValue)
{
nsString ret;
nsresult rv = domPtr->GetNodeValue(ret);
*aNodeValue = ret.ToNewUnicode();
return rv;
}
NS_IMETHODIMP bcNode::SetNodeValue(DOMString aNodeValue)
{
nsString val(aNodeValue);
nsresult rv = domPtr->SetNodeValue(val);
return rv;
}
/* readonly attribute unsigned short nodeType; */
NS_IMETHODIMP bcNode::GetNodeType(PRUint16 *aNodeType)
{
PRUint16 type = 0;
nsresult rv = domPtr->GetNodeType(&type);
*aNodeType = type;
return rv;
}
/* readonly attribute Node parentNode; */
NS_IMETHODIMP bcNode::GetParentNode(Node * *aParentNode)
{
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->GetParentNode(&ret);
*aParentNode = NEW_BCNODE(ret);
return rv;
}
/* readonly attribute NodeList childNodes; */
NS_IMETHODIMP bcNode::GetChildNodes(NodeList * *aChildNodes)
{
nsIDOMNodeList* ret = nsnull;
nsresult rv = domPtr->GetChildNodes(&ret);
*aChildNodes = NEW_BCNODELIST(ret);
return rv;
}
/* readonly attribute Node firstChild; */
NS_IMETHODIMP bcNode::GetFirstChild(Node * *aFirstChild)
{
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->GetFirstChild(&ret);
*aFirstChild = NEW_BCNODE(ret);
return rv;
}
/* readonly attribute Node lastChild; */
NS_IMETHODIMP bcNode::GetLastChild(Node * *aLastChild)
{
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->GetLastChild(&ret);
*aLastChild = NEW_BCNODE(ret);
return rv;
}
/* readonly attribute Node previousSibling; */
NS_IMETHODIMP bcNode::GetPreviousSibling(Node * *aPreviousSibling)
{
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->GetPreviousSibling(&ret);
*aPreviousSibling = NEW_BCNODE(ret);
return rv;
}
/* readonly attribute Node nextSibling; */
NS_IMETHODIMP bcNode::GetNextSibling(Node * *aNextSibling)
{
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->GetNextSibling(&ret);
*aNextSibling = NEW_BCNODE(ret);
return rv;
}
/* readonly attribute NamedNodeMap attributes; */
NS_IMETHODIMP bcNode::GetAttributes(NamedNodeMap * *aAttributes)
{
nsIDOMNamedNodeMap* ret = nsnull;
nsresult rv = domPtr->GetAttributes(&ret);
*aAttributes = NEW_BCNAMEDNODEMAP(ret);
return rv;
}
/* readonly attribute Document ownerDocument; */
NS_IMETHODIMP bcNode::GetOwnerDocument(Document * *aOwnerDocument)
{
nsIDOMDocument* ret;
nsresult rv = domPtr->GetOwnerDocument(&ret);
*aOwnerDocument = NEW_BCDOCUMENT(ret);
return rv;
}
/* Node insertBefore (in Node newChild, in Node refChild) raises (DOMException); */
NS_IMETHODIMP bcNode::InsertBefore(Node *newChild, Node *refChild, Node **_retval)
{
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->InsertBefore(DOM_NODE_PTR(newChild), DOM_NODE_PTR(refChild), &ret);
*_retval = NEW_BCNODE(ret);
return rv;
}
/* Node replaceChild (in Node newChild, in Node oldChild) raises (DOMException); */
NS_IMETHODIMP bcNode::ReplaceChild(Node *newChild, Node *oldChild, Node **_retval)
{
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->ReplaceChild(DOM_NODE_PTR(newChild), DOM_NODE_PTR(oldChild), &ret);
*_retval = NEW_BCNODE(ret);
return rv;
}
/* Node removeChild (in Node oldChild) raises (DOMException); */
NS_IMETHODIMP bcNode::RemoveChild(Node *oldChild, Node **_retval)
{
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->RemoveChild(DOM_NODE_PTR(oldChild), &ret);
*_retval = NEW_BCNODE(ret);
return rv;
}
/* Node appendChild (in Node newChild) raises (DOMException); */
NS_IMETHODIMP bcNode::AppendChild(Node *newChild, Node **_retval)
{
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->AppendChild(DOM_NODE_PTR(newChild), &ret);
*_retval = NEW_BCNODE(ret);
return rv;
}
/* boolean hasChildNodes (); */
NS_IMETHODIMP bcNode::HasChildNodes(PRBool *_retval)
{
return domPtr->HasChildNodes(_retval);
}
/* Node cloneNode (in boolean deep); */
NS_IMETHODIMP bcNode::CloneNode(PRBool deep, Node **_retval)
{
nsIDOMNode* ret = nsnull;
nsresult rv = domPtr->CloneNode(deep, &ret);
*_retval = NEW_BCNODE(ret);
return rv;
}
/* void normalize (); */
NS_IMETHODIMP bcNode::Normalize()
{
return domPtr->Normalize();
}
/* boolean supports (in DOMString feature, in DOMString version); */
NS_IMETHODIMP bcNode::Supports(DOMString feature, DOMString version, PRBool *_retval)
{
nsString _feature(feature), _version(version);
return domPtr->IsSupported(_feature, _version, _retval);
}
/* readonly attribute DOMString namespaceURI; */
NS_IMETHODIMP bcNode::GetNamespaceURI(DOMString *aNamespaceURI)
{
nsString ret;
nsresult rv = domPtr->GetNamespaceURI(ret);
*aNamespaceURI = ret.ToNewUnicode();
return rv;
}
/* attribute DOMString prefix; */
NS_IMETHODIMP bcNode::GetPrefix(DOMString *aPrefix)
{
nsString ret;
nsresult rv = domPtr->GetPrefix(ret);
*aPrefix = ret.ToNewUnicode();
return rv;
}
NS_IMETHODIMP bcNode::SetPrefix(DOMString aPrefix)
{
nsString val(aPrefix);
nsresult rv = domPtr->SetPrefix(val);
return rv;
}
/* readonly attribute DOMString localName; */
NS_IMETHODIMP bcNode::GetLocalName(DOMString *aLocalName)
{
nsString ret;
nsresult rv = domPtr->GetPrefix(ret);
*aLocalName = ret.ToNewUnicode();
return rv;
}

View File

@@ -0,0 +1,23 @@
#ifndef __bcNode_h__
#define __bcNode_h__
#include "dom.h"
#include "nsIDOMNode.h"
#define DOM_NODE_PTR(_node_) (!_node_ ? nsnull : ((bcNode*)_node_)->domPtr)
#define NEW_BCNODE(_node_) (!_node_ ? nsnull : new bcNode(_node_))
class bcNode : public Node
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NODE
bcNode(nsIDOMNode* domPtr);
virtual ~bcNode();
/* private: */
nsIDOMNode* domPtr;
/* additional members */
};
#endif // __bcNode_h__

View File

@@ -0,0 +1,32 @@
#include "bcNodeList.h"
#include "bcNode.h"
NS_IMPL_ISUPPORTS1(bcNodeList, NodeList)
bcNodeList::bcNodeList(nsIDOMNodeList* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
}
bcNodeList::~bcNodeList()
{
/* destructor code */
}
/* Node item (in unsigned long index); */
NS_IMETHODIMP bcNodeList::Item(PRUint32 index, Node **_retval)
{
nsIDOMNode* ret = NULL;
nsresult rv = domPtr->Item(index, &ret);
*_retval = NEW_BCNODE(ret);
return rv;
}
/* readonly attribute unsigned long length; */
NS_IMETHODIMP bcNodeList::GetLength(PRUint32 *aLength)
{
return domPtr->GetLength(aLength);
}

View File

@@ -0,0 +1,23 @@
#ifndef __bcNodeList_h__
#define __bcNodeList_h__
#include "dom.h"
#include "nsIDOMNodeList.h"
#define DOM_NODELIST_PTR(_nodelist_) (!_nodelist_ ? nsnull : ((bcNodeList*)_nodelist_)->domPtr)
#define NEW_BCNODELIST(_nodelist_) (!_nodelist_ ? nsnull : new bcNodeList(_nodelist_))
class bcNodeList : public NodeList
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NODELIST
bcNodeList(nsIDOMNodeList* domPtr);
virtual ~bcNodeList();
private:
nsIDOMNodeList* domPtr;
/* additional members */
};
#endif // __bcNodeList_h__

View File

@@ -0,0 +1,37 @@
#include "bcNotation.h"
NS_IMPL_ISUPPORTS1(bcNotation, Notation)
bcNotation::bcNotation(nsIDOMNotation* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
nodePtr = new bcNode(ptr);
}
bcNotation::~bcNotation()
{
/* destructor code */
}
/* readonly attribute DOMString publicId; */
NS_IMETHODIMP bcNotation::GetPublicId(DOMString *aPublicId)
{
nsString ret;
nsresult rv = domPtr->GetPublicId(ret);
*aPublicId = ret.ToNewUnicode();
return rv;
}
/* readonly attribute DOMString systemId; */
NS_IMETHODIMP bcNotation::GetSystemId(DOMString *aSystemId)
{
nsString ret;
nsresult rv = domPtr->GetSystemId(ret);
*aSystemId = ret.ToNewUnicode();
return rv;
}

View File

@@ -0,0 +1,26 @@
#ifndef __bcNotation_h__
#define __bcNotation_h__
#include "dom.h"
#include "bcNode.h"
#include "nsIDOMNotation.h"
#define DOM_NOTATION_PTR(_notation_) (!_notation_ ? nsnull : ((bcNotation*)_notation_)->domPtr)
#define NEW_BCNOTATION(_notation_) (!_notation_ ? nsnull : new bcNotation(_notation_))
class bcNotation : public Notation
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NOTATION
NS_FORWARD_NODE(nodePtr->)
bcNotation(nsIDOMNotation* domPtr);
virtual ~bcNotation();
private:
nsIDOMNotation* domPtr;
bcNode* nodePtr;
/* additional members */
};
#endif // __bcNotation_h__

View File

@@ -0,0 +1,43 @@
#include "bcProcessingInstruction.h"
NS_IMPL_ISUPPORTS1(bcProcessingInstruction, ProcessingInstruction)
bcProcessingInstruction::bcProcessingInstruction(nsIDOMProcessingInstruction* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
nodePtr = new bcNode(ptr);
}
bcProcessingInstruction::~bcProcessingInstruction()
{
/* destructor code */
}
/* readonly attribute DOMString target; */
NS_IMETHODIMP bcProcessingInstruction::GetTarget(DOMString *aTarget)
{
nsString ret;
nsresult rv = domPtr->GetTarget(ret);
*aTarget = ret.ToNewUnicode();
return rv;
}
/* attribute DOMString data; */
NS_IMETHODIMP bcProcessingInstruction::GetData(DOMString *aData)
{
nsString ret;
nsresult rv = domPtr->GetData(ret);
*aData = ret.ToNewUnicode();
return rv;
}
NS_IMETHODIMP bcProcessingInstruction::SetData(DOMString aData)
{
nsString _aData(aData);
return domPtr->SetData(_aData);
}

View File

@@ -0,0 +1,26 @@
#ifndef __bcProcessingInstruction_h__
#define __bcProcessingInstruction_h__
#include "dom.h"
#include "bcNode.h"
#include "nsIDOMProcessingInstruction.h"
#define DOM_PROCESSINGINSTRUCTION_PTR(_processinginstruction_) (!_processinginstruction_ ? nsnull : ((bcProcessingInstruction*)_processinginstruction_)->domPtr)
#define NEW_BCPROCESSINGINSTRUCTION(_processinginstruction_) (!_processinginstruction_ ? nsnull : new bcProcessingInstruction(_processinginstruction_))
class bcProcessingInstruction : public ProcessingInstruction
{
public:
NS_DECL_ISUPPORTS
NS_DECL_PROCESSINGINSTRUCTION
NS_FORWARD_NODE(nodePtr->)
bcProcessingInstruction(nsIDOMProcessingInstruction* domPtr);
virtual ~bcProcessingInstruction();
private:
nsIDOMProcessingInstruction* domPtr;
bcNode* nodePtr;
/* additional members */
};
#endif // __bcProcessingInstruction_h__

View File

@@ -0,0 +1,26 @@
#include "bcText.h"
NS_IMPL_ISUPPORTS1(bcText, Text)
bcText::bcText(nsIDOMText* ptr)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
domPtr = ptr;
dataPtr = new bcCharacterData(ptr);
}
bcText::~bcText()
{
/* destructor code */
}
/* Text splitText (in unsigned long offset) raises (DOMException); */
NS_IMETHODIMP bcText::SplitText(PRUint32 offset, Text **_retval)
{
nsIDOMText* ret = nsnull;
nsresult rv = domPtr->SplitText(offset, &ret);
*_retval = NEW_BCTEXT(ret);
return rv;
}

View File

@@ -0,0 +1,27 @@
#ifndef __bcText_h__
#define __bcText_h__
#include "dom.h"
#include "nsIDOMText.h"
#include "bcCharacterData.h"
#define DOM_TEXT_PTR(_text_) (!_text_ ? nsnull : ((bcText*)_text_)->domPtr)
#define NEW_BCTEXT(_text_) (!_text_ ? nsnull : new bcText(_text_))
class bcText : public Text
{
public:
NS_DECL_ISUPPORTS
NS_DECL_TEXT
NS_FORWARD_NODE(dataPtr->)
NS_FORWARD_CHARACTERDATA(dataPtr->)
bcText(nsIDOMText* domPtr);
virtual ~bcText();
private:
nsIDOMText* domPtr;
bcCharacterData* dataPtr;
/* additional members */
};
#endif // __bcText_h__

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