Compare commits

..

2764 Commits

Author SHA1 Message Date
jgellman%netscape.com
0b2424f7ca netlib glue, not as modular as we want but getting there
git-svn-id: svn://10.0.0.236/branches/RDF_XPCOM_BRANCH@13281 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-21 21:51:10 +00:00
jgellman%netscape.com
75bfddcd5c it builds!!
git-svn-id: svn://10.0.0.236/branches/RDF_XPCOM_BRANCH@13056 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-17 01:37:57 +00:00
jgellman%netscape.com
d67638c1e0 move old C api stuff out of rdf.h, small changes to COM API
git-svn-id: svn://10.0.0.236/branches/RDF_XPCOM_BRANCH@12956 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-16 01:30:03 +00:00
jgellman%netscape.com
021dfd7c81 RDF_XPCOM_BRANCH
git-svn-id: svn://10.0.0.236/branches/RDF_XPCOM_BRANCH@12953 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-16 00:44:55 +00:00
rjc%netscape.com
272deb6ee9 More HT_RAPTOR support.
git-svn-id: svn://10.0.0.236/branches/RDF_XPCOM_BRANCH@12250 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-08 01:05:41 +00:00
rjc%netscape.com
f81f4440bd Support for HT_RAPTOR.
git-svn-id: svn://10.0.0.236/branches/RDF_XPCOM_BRANCH@12249 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-08 00:56:49 +00:00
jgellman%netscape.com
914f82571b add rdfstr.h
git-svn-id: svn://10.0.0.236/branches/RDF_XPCOM_BRANCH@12236 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-07 23:05:10 +00:00
jgellman%netscape.com
0f1dfe3d0d remove various XP dependencies
git-svn-id: svn://10.0.0.236/branches/RDF_XPCOM_BRANCH@12235 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-07 23:04:45 +00:00
guha%netscape.com
05693f5648 try again
git-svn-id: svn://10.0.0.236/branches/RDF_XPCOM_BRANCH@12217 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-07 20:43:39 +00:00
jgellman%netscape.com
26c6838a88 back out changes to rdf.h until later...: rdf.h
git-svn-id: svn://10.0.0.236/branches/RDF_XPCOM_BRANCH@12154 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-07 04:25:27 +00:00
guha%netscape.com
90406a1af2 Disentangling RDF from the include file mess.
git-svn-id: svn://10.0.0.236/branches/RDF_XPCOM_BRANCH@12149 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-07 02:06:36 +00:00
jgellman%netscape.com
41eefd7f6c rdf c api factored out
git-svn-id: svn://10.0.0.236/branches/RDF_XPCOM_BRANCH@12104 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-06 22:32:41 +00:00
jgellman%netscape.com
ab25b9b291 initial checkin of a bunch of stuff that doesn't work
git-svn-id: svn://10.0.0.236/branches/RDF_XPCOM_BRANCH@12102 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-06 22:31:12 +00:00
(no author)
a151d7380d This commit was manufactured by cvs2svn to create branch 'RDF_XPCOM_BRANCH'.
git-svn-id: svn://10.0.0.236/branches/RDF_XPCOM_BRANCH@11545 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 10:28:36 +00:00
ftang%netscape.com
971a5378de check in fix for Bugzilla bug 832. Reviewed by rjc
git-svn-id: svn://10.0.0.236/trunk@11543 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 10:28:34 +00:00
despotdaemon%netscape.com
8d6dff5003 Pseudo-automatic update of changes made by locka@cork.cig.mot.com.
git-svn-id: svn://10.0.0.236/trunk@11542 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 08:36:07 +00:00
brendan%netscape.com
35c54850af LO_GetBuiltinByIndex should not be ifdef JAVA or OJI.
git-svn-id: svn://10.0.0.236/trunk@11541 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 07:06:56 +00:00
rjc%netscape.com
a54d63b69f Finish Shack reflection into JavaScript for Win32 by setting HT_Pane reference in lo_builtin struct.
git-svn-id: svn://10.0.0.236/trunk@11540 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 06:12:35 +00:00
shaver%netscape.com
0e6ba073d6 we need RDF now
git-svn-id: svn://10.0.0.236/trunk@11539 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 06:11:58 +00:00
warren%netscape.com
8f2f0ece8a Renamed to shorter name for Mac.
git-svn-id: svn://10.0.0.236/trunk@11538 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 05:45:49 +00:00
valeski%netscape.com
3831bf98d5 fixing build bustage
git-svn-id: svn://10.0.0.236/trunk@11535 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 05:32:13 +00:00
warren%netscape.com
5f491ff820 New OJI networking APIs.
git-svn-id: svn://10.0.0.236/trunk@11533 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 05:29:48 +00:00
shaver%netscape.com
657b6cc157 start on DOM version of lo_SetStyleSheetLayerProperties
git-svn-id: svn://10.0.0.236/trunk@11532 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 05:03:27 +00:00
shaver%netscape.com
972fdcfd77 only build lm_dom.c if DOM set
git-svn-id: svn://10.0.0.236/trunk@11531 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 04:47:55 +00:00
troy%netscape.com
62662fd601 Reserved IID for nsIHTMLReflow
git-svn-id: svn://10.0.0.236/trunk@11530 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 04:15:35 +00:00
shaver%netscape.com
f5afb8bcb4 remove bogus (vestigial?) builtin_count reference
git-svn-id: svn://10.0.0.236/trunk@11529 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 03:48:49 +00:00
brendan%netscape.com
ecce3f68e3 - Need JS_THREADSAFE in mozilla.mak and config.mak (and because of the latter,
don't need it in js/src/makefile.win).
- Added DOM support.
- Break up really long lines in mozilla.mak using backslashes.
- Added /I../../lib/libdom to several places (ugh).
- factor some mime.lib stuff better, but still not consistent in how SMART_MAIL
  and MOZ_MAIL_NEWS select it.
- Include spans and transclusion stuff, shaver and toshok to clean up later.
- Use ?: instead of if/else in layout.c to minimize source and generated code.
- Use strong typing for struct DOM_foo * types without including domstyle.h,
  by using mighty struct tags.
- Fix doc_id signedness in lm_dom.h (also eliminate tabs, but use 8 for
  tab-width).


git-svn-id: svn://10.0.0.236/trunk@11524 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 02:07:26 +00:00
akkana%netscape.com
1094bbfc62 Add rdf dependancy -- fix Linux build
git-svn-id: svn://10.0.0.236/trunk@11523 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 02:05:19 +00:00
brendan%netscape.com
1f28471085 Use XP_ASSERT, not PR_ASSERT, for continuable assertbotches in mozilla.exe.
git-svn-id: svn://10.0.0.236/trunk@11521 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 01:41:04 +00:00
terry%netscape.com
19c004bc33 Mention the file 'checkoutlist' (as suggested by Todd Kennedy
<Todd.Kennedy@Eng.Sun.COM>).


git-svn-id: svn://10.0.0.236/trunk@11520 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 01:22:33 +00:00
cmanske%netscape.com
edae47c804 Added check for USEMAP when deciding default border width in image tag
git-svn-id: svn://10.0.0.236/trunk@11519 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 01:20:14 +00:00
peterl%netscape.com
2832ba164e use new get value as string api
git-svn-id: svn://10.0.0.236/trunk@11518 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 01:09:19 +00:00
peterl%netscape.com
b91b3cb2d5 added get value as string
git-svn-id: svn://10.0.0.236/trunk@11517 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 01:08:59 +00:00
peterl%netscape.com
98aaec70ef make text decoration always an enum
git-svn-id: svn://10.0.0.236/trunk@11516 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 01:08:44 +00:00
rjc%netscape.com
3388b59014 Reflect Shack into JavaScript. New file: lm_tree.c
git-svn-id: svn://10.0.0.236/trunk@11515 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:55:11 +00:00
karnaze%netscape.com
c99190b224 fixed case sensitive include for unix
git-svn-id: svn://10.0.0.236/trunk@11514 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:55:03 +00:00
rjc%netscape.com
f234b9d8da Reflect Shack into JavaScript. Approval: sdagley
git-svn-id: svn://10.0.0.236/trunk@11513 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:53:40 +00:00
cls%seawood.org
f61c2da239 Changed check for EDITOR to MOZ_EDITOR.
git-svn-id: svn://10.0.0.236/trunk@11512 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:53:10 +00:00
rjc%netscape.com
52eb848af9 Reflect Shack into JavaScript. Reviewed and approved by Brendan (libMocha) and Nisheeth (Layout).
git-svn-id: svn://10.0.0.236/trunk@11511 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:53:09 +00:00
rjc%netscape.com
9c2d9abe68 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@11510 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:51:18 +00:00
cls%seawood.org
959419a5dc Replaced checks for NO_EDITOR with checks for MOZ_EDITOR. Changed check for EDITOR to MOZ_EDITOR.
git-svn-id: svn://10.0.0.236/trunk@11509 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:50:40 +00:00
cls%seawood.org
e36b6c8d7f Replaced checks for NO_EDITOR with checks for MOZ_EDITOR. Compile embed.cpp with $(CCC) instead of $(CC).
git-svn-id: svn://10.0.0.236/trunk@11508 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:49:28 +00:00
cls%seawood.org
e6d0bdcfb8 Replaced checks for NO_EDITOR with checks for MOZ_EDITOR. Removed check for NO_EDITOR from config.mk. Removed EDITOR=1 from config.mk. Set MOZ_EDITOR= ifdef MOZ_LITE.
git-svn-id: svn://10.0.0.236/trunk@11507 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:48:23 +00:00
akkana%netscape.com
0fe4cfe496 HFolder should already be caught by the earlier wildcard
git-svn-id: svn://10.0.0.236/trunk@11506 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:39:58 +00:00
cls%seawood.org
04bc6f853f Finished off MOZ_USER_DIR patch. This allows developers to change config-dir at compile time. Defaults to .netscape for classic build and .mozilla for autoconf build.
git-svn-id: svn://10.0.0.236/trunk@11505 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:38:49 +00:00
akkana%netscape.com
6704e7d531 List Person, People and MailAttach separately to try to unconfuse Linux
git-svn-id: svn://10.0.0.236/trunk@11504 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:36:48 +00:00
akkana%netscape.com
316523feef Add HFolder* to icon list -- help fix Linux build
git-svn-id: svn://10.0.0.236/trunk@11503 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:34:36 +00:00
sudu%netscape.com
d4a78dc325 Moved .cpp files to CPPSRCS from CSRCS. apprvd checkin cyeh
git-svn-id: svn://10.0.0.236/trunk@11502 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:24:03 +00:00
cls%seawood.org
1bad763353 Finished off MOZ_USER_DIR patch. This allows developers to change config-dir at compile time. Defaults to .netscape for classic build and .mozilla for autoconf build.
git-svn-id: svn://10.0.0.236/trunk@11501 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:23:45 +00:00
terry%netscape.com
245c74634f Added admin page for changing of default owners (code by Sam Ziegler <sam@ziegler.org>)
git-svn-id: svn://10.0.0.236/trunk@11500 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:05:25 +00:00
cmanske%netscape.com
24650b9378 Fixed more Composer bugs
git-svn-id: svn://10.0.0.236/trunk@11499 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 00:01:40 +00:00
toshok%netscape.com
1a5aca39ee include prsystem.h to fix build
git-svn-id: svn://10.0.0.236/trunk@11498 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:58:54 +00:00
peterl%netscape.com
3a2cfadc61 added nsCSSProps2.cpp
git-svn-id: svn://10.0.0.236/trunk@11497 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:51:47 +00:00
peterl%netscape.com
7a1f51163c added attribute & content changed code
git-svn-id: svn://10.0.0.236/trunk@11496 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:51:28 +00:00
peterl%netscape.com
42c7b6e79f added hint table
moved non-generated code to nsCSSProps2.cpp


git-svn-id: svn://10.0.0.236/trunk@11495 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:50:56 +00:00
cmanske%netscape.com
78ccc9bab1 More Composer bug fixes: Removed password remembering from Publish dialog and removed pixel to % conversion for table and cell widths
git-svn-id: svn://10.0.0.236/trunk@11494 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:50:44 +00:00
peterl%netscape.com
ce18c9d686 added change hint to parse declaration
git-svn-id: svn://10.0.0.236/trunk@11493 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:50:09 +00:00
peterl%netscape.com
6baee6145d added hint to parse delcaration
git-svn-id: svn://10.0.0.236/trunk@11492 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:49:19 +00:00
peterl%netscape.com
2b7136b4b7 added hint to attribute change notification
git-svn-id: svn://10.0.0.236/trunk@11491 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:48:38 +00:00
peterl%netscape.com
9b94d90eca moved attribute change code to style sheete
cleaned up content change api


git-svn-id: svn://10.0.0.236/trunk@11490 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:48:07 +00:00
peterl%netscape.com
cae2faa839 added content & attribute change to style frame construction
cleaned up api


git-svn-id: svn://10.0.0.236/trunk@11489 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:47:03 +00:00
peterl%netscape.com
439691029e added change hints
git-svn-id: svn://10.0.0.236/trunk@11488 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:46:25 +00:00
peterl%netscape.com
67328bc930 routed content & attribute change through style set
routed all style frame construction calls directly to style set


git-svn-id: svn://10.0.0.236/trunk@11487 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:46:05 +00:00
peterl%netscape.com
6796d080ab removed style frame construction methods
git-svn-id: svn://10.0.0.236/trunk@11486 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:44:53 +00:00
peterl%netscape.com
7b5bbd8c57 added change hint to attribute change api
cleaned up content change api


git-svn-id: svn://10.0.0.236/trunk@11485 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:44:25 +00:00
peterl%netscape.com
a6cd5428be added change hint to attribute change api
git-svn-id: svn://10.0.0.236/trunk@11484 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:43:39 +00:00
peterl%netscape.com
6976204834 added content changed & attribute changed to style frame construction api.
cleaned up api.
added attribute change hint.


git-svn-id: svn://10.0.0.236/trunk@11483 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:41:59 +00:00
bjorn%netscape.com
316f030593 Fix for negative values, similar to the one I put into jslock.c. This version
is used when gcc is *not* the compiler.


git-svn-id: svn://10.0.0.236/trunk@11482 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:39:11 +00:00
peterl%netscape.com
777dbb325d made alias font use static strings
git-svn-id: svn://10.0.0.236/trunk@11481 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:38:50 +00:00
valeski%netscape.com
597390284a fixed crasher. whoever did the mass removal of nspr20 #defines removed a necessary routine.
git-svn-id: svn://10.0.0.236/trunk@11480 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:36:58 +00:00
shaver%netscape.com
1af14a8a8d fix sloppy errors in DOM_GetStyleDatabaseFromContext
git-svn-id: svn://10.0.0.236/trunk@11479 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:32:58 +00:00
bjorn%netscape.com
1db1439f26 Additional fix to assembly to accommodate for nv < 0.
git-svn-id: svn://10.0.0.236/trunk@11477 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:31:27 +00:00
karnaze%netscape.com
ea20d275db initial fieldset, legend content classes. minor cleanup on form control content.
git-svn-id: svn://10.0.0.236/trunk@11476 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:22:42 +00:00
shaver%netscape.com
f5c72c7ee3 initialize toplevel <HTML> properly (duh)
git-svn-id: svn://10.0.0.236/trunk@11475 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:22:25 +00:00
buster%netscape.com
a0c05dcfa4 fixed a minor bug in colspan layout
the layout strategy can now query the outer frame for the caption min width,
and use it to expand the table if necessary
did some related cleanup while I was in there.


git-svn-id: svn://10.0.0.236/trunk@11473 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:15:01 +00:00
rjc%netscape.com
3377016e58 Expose support for Shack.
git-svn-id: svn://10.0.0.236/trunk@11472 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:11:32 +00:00
shaver%netscape.com
8d3f61e3ab lock layout when setting up style_db
git-svn-id: svn://10.0.0.236/trunk@11471 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:11:05 +00:00
terry%netscape.com
a738d0ced8 Fixed bug which was stomping on "file" field if there was no dir field
and the file field had no slash.


git-svn-id: svn://10.0.0.236/trunk@11470 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:54:59 +00:00
valeski%netscape.com
5c97f51f8e removed NET_HostName() routine to cut down on size.
git-svn-id: svn://10.0.0.236/trunk@11468 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:52:46 +00:00
valeski%netscape.com
a91fa34c33 removed NET_HostName() call as this routine is no longer implemented.
git-svn-id: svn://10.0.0.236/trunk@11467 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:51:30 +00:00
michaelp%netscape.com
b53c67c4da we only notify the plugin instance via the plugin host and only if the notify
data is non-null.


git-svn-id: svn://10.0.0.236/trunk@11466 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:47:42 +00:00
valeski%netscape.com
373f454837 Added get/set methods to nsINetService interface for http request version manipulation. You can specify whether or not you want 1.1 or 1.0.
git-svn-id: svn://10.0.0.236/trunk@11464 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:43:32 +00:00
akkana%netscape.com
1a84c2242a Turn on MOZ_MAIL_COMPOSE. Approved by Briano
git-svn-id: svn://10.0.0.236/trunk@11463 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:43:22 +00:00
bjorn%netscape.com
017dc6f116 Changed the assertion which used to trigger when nv < 0 in CompareAndSwap.
It now triggers when nv == -1. This is only relevant on a Solaris compiled
for SPARC v8.


git-svn-id: svn://10.0.0.236/trunk@11462 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:42:08 +00:00
despotdaemon%netscape.com
18c2c409a4 Pseudo-automatic update of changes made by harrison@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@11461 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:41:24 +00:00
valeski%netscape.com
7dec1e0b00 initializing line_buffer in build_http_request. added ability to set different http request versions and some optimizations.
git-svn-id: svn://10.0.0.236/trunk@11460 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:40:53 +00:00
kipp%netscape.com
d33943c13b Create table-cell's body as a top-level body so that it doesn't shrink wrap around it's children during pass2 table reflow
git-svn-id: svn://10.0.0.236/trunk@11459 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:36:30 +00:00
gagan%netscape.com
5cb01b63fc NuCache wasn't building on Unix. Fixed.
git-svn-id: svn://10.0.0.236/trunk@11458 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:36:06 +00:00
kipp%netscape.com
70b47dedc6 Better margins
git-svn-id: svn://10.0.0.236/trunk@11457 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:35:24 +00:00
kipp%netscape.com
d280ea2fa3 Parse OL/UL type=A|a|I|i properly
git-svn-id: svn://10.0.0.236/trunk@11456 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:34:30 +00:00
kipp%netscape.com
42942a6501 Removed duplicate adjustment of the width/height; only use max-size-width if width is unconstrained AND it's a top-level body
git-svn-id: svn://10.0.0.236/trunk@11455 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:33:47 +00:00
slamm%netscape.com
f3d387c3e8 Fix build bustage. Put a newline at the end of the file.
git-svn-id: svn://10.0.0.236/trunk@11454 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:33:36 +00:00
kipp%netscape.com
51dce78d05 Add in a bottom-line-margin when dealing with a zero-height line that contains a BR frame
git-svn-id: svn://10.0.0.236/trunk@11453 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:32:56 +00:00
kipp%netscape.com
655a69e6ba Added SetBRFrame/GetBRFrame for handling 0 height line layout and BR's
git-svn-id: svn://10.0.0.236/trunk@11452 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:32:04 +00:00
kipp%netscape.com
4040cf15ce Made BR frames 0,0; inform line layout of presence of the BR frame
git-svn-id: svn://10.0.0.236/trunk@11449 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:31:22 +00:00
rods%netscape.com
fd81e0baf9 Added HWND cast for STRICT compiler problem.
git-svn-id: svn://10.0.0.236/trunk@11448 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:22:30 +00:00
rods%netscape.com
4a16ee4af9 Commented out the setup of the dispatch listener because the AppViewer
doesn't do anything.


git-svn-id: svn://10.0.0.236/trunk@11447 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:18:18 +00:00
rods%netscape.com
3eb99ad5e9 Run method now does an AddRef so it stays alive until the last message can
come through the pump.


git-svn-id: svn://10.0.0.236/trunk@11446 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:16:23 +00:00
jsun%netscape.com
cdab24e124 Renamed more classes from Julian* to nsCal*.
Didn't rename JulianPtrArray, JulianString, JulianFormFactory.


git-svn-id: svn://10.0.0.236/trunk@11445 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:11:18 +00:00
pinkerton%netscape.com
a74837fd01 remove semicolon after #ifdef.
git-svn-id: svn://10.0.0.236/trunk@11444 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:05:27 +00:00
kmcclusk%netscape.com
5f40f50f80 Initialize mFont to nsnull in constructor.
git-svn-id: svn://10.0.0.236/trunk@11443 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 22:01:50 +00:00
cyeh%netscape.com
03c1c646a2 hasta la vista, MOZ_GOLD
git-svn-id: svn://10.0.0.236/trunk@11442 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:57:03 +00:00
cyeh%netscape.com
b71a02dd2c Remove old NSPR20 #ifdef
git-svn-id: svn://10.0.0.236/trunk@11441 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:55:00 +00:00
pinkerton%netscape.com
1529be322d weak-link against NavServices.
git-svn-id: svn://10.0.0.236/trunk@11440 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:43:27 +00:00
cyeh%netscape.com
0a4f762689 Remove old NSPR20 and MOCHA #ifdefs
git-svn-id: svn://10.0.0.236/trunk@11439 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:35:57 +00:00
kmcclusk%netscape.com
09cba4e0fd Moved common Create(nsIWidget... and Create(nsNativeWidget to a StandardWindowCreate
utility method then call it from each of the Creates.


git-svn-id: svn://10.0.0.236/trunk@11438 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:34:58 +00:00
cyeh%netscape.com
1f2dc12a8e If NSPR20 isn't defined, the makefile wouldn't look in the NSPR header directory.
git-svn-id: svn://10.0.0.236/trunk@11437 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:32:29 +00:00
rods%netscape.com
59628ebaa7 Changed the menu creation code
git-svn-id: svn://10.0.0.236/trunk@11436 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:32:21 +00:00
rods%netscape.com
02f7f7fe9f Reworked all the menu code and removed nsWindow from several classes
git-svn-id: svn://10.0.0.236/trunk@11435 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:30:31 +00:00
gagan%netscape.com
98d3667d0d Wrong version went in. Correcting.
git-svn-id: svn://10.0.0.236/trunk@11434 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:30:00 +00:00
cyeh%netscape.com
344f351c38 Remove old NSPR20 #ifdef
git-svn-id: svn://10.0.0.236/trunk@11433 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:29:23 +00:00
cyeh%netscape.com
c446d724e8 Remove old NSPR20 #ifdefs
git-svn-id: svn://10.0.0.236/trunk@11432 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:28:25 +00:00
shaver%netscape.com
9b0250bbbe update DOM stuff for new style data, and make DOM_HTMLPushNode do more implicit-pop stuff
git-svn-id: svn://10.0.0.236/trunk@11431 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:23:15 +00:00
gagan%netscape.com
233be11345 Inlined pref accessor/modifiers.
git-svn-id: svn://10.0.0.236/trunk@11430 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:18:53 +00:00
cyeh%netscape.com
9a67de3b3b this file isn't used anymore and is very obsolete
git-svn-id: svn://10.0.0.236/trunk@11429 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:13:14 +00:00
cyeh%netscape.com
5e1e651ec3 Remove old NSPR20 and MOCHA #ifdefs
git-svn-id: svn://10.0.0.236/trunk@11428 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:12:32 +00:00
cyeh%netscape.com
8c4f04d2f1 Remove old NSPR20 #ifdefs
git-svn-id: svn://10.0.0.236/trunk@11427 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 21:02:23 +00:00
cyeh%netscape.com
b699559c9c Removing old NSPR20 #ifdef
git-svn-id: svn://10.0.0.236/trunk@11426 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 20:59:25 +00:00
nisheeth%netscape.com
b8943d030a Ifdef out support for the window.hardware JS object. If you want support to
get compiled, define NAV_HARDWARE.


git-svn-id: svn://10.0.0.236/trunk@11425 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 20:57:59 +00:00
cyeh%netscape.com
cdf7f130f2 Remove old NSPR20 #ifdef
git-svn-id: svn://10.0.0.236/trunk@11424 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 20:57:07 +00:00
nisheeth%netscape.com
b25b289a93 Remove support for the window.hardware JS object.
git-svn-id: svn://10.0.0.236/trunk@11423 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 20:56:19 +00:00
cyeh%netscape.com
048c08f8a0 Remove old MOCHA #ifdefs
git-svn-id: svn://10.0.0.236/trunk@11422 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 20:55:21 +00:00
cyeh%netscape.com
b5e3e00b52 Removing old NSPR20 and MOCHA #ifdefs
git-svn-id: svn://10.0.0.236/trunk@11421 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 20:50:44 +00:00
valeski%netscape.com
de0426f574 we're now respecting the "Proxy-Connection: close" header. we used to ignore it and eventually discover that the connection had closed. Now we close it when asked to by the proxy.
git-svn-id: svn://10.0.0.236/trunk@11420 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 20:50:20 +00:00
cyeh%netscape.com
fc5d6ce90b remove extra space at the end of a line. oops.
git-svn-id: svn://10.0.0.236/trunk@11418 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 20:34:33 +00:00
pierre%netscape.com
023c4787b4 removed LTextEdit.cp
removed "cmd/macfe/restext"


git-svn-id: svn://10.0.0.236/trunk@11417 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 20:31:42 +00:00
cyeh%netscape.com
383b90e206 adding modules for each unix fe. long live balkanization.
git-svn-id: svn://10.0.0.236/trunk@11416 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 20:31:01 +00:00
terry%netscape.com
a31855bef6 Don't do server-push if the user seems to be using Internet Explorer.
git-svn-id: svn://10.0.0.236/trunk@11415 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 19:20:59 +00:00
rods%netscape.com
0139444535 Changed casting of HMENU native data
git-svn-id: svn://10.0.0.236/trunk@11413 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 18:32:37 +00:00
cyeh%netscape.com
63f046a38e fix instance of C++ comments in a C file
git-svn-id: svn://10.0.0.236/trunk@11412 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 18:28:53 +00:00
rods%netscape.com
af68a75891 This should fix a casting error for VC++ 5.0 with STRICT
git-svn-id: svn://10.0.0.236/trunk@11411 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:50:50 +00:00
pinkerton%netscape.com
007000962c remove explicit LListener inheritance.
git-svn-id: svn://10.0.0.236/trunk@11410 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:35:23 +00:00
pinkerton%netscape.com
377be07e09 Use Client.mcp for stubs generation. These are now obsolete.
git-svn-id: svn://10.0.0.236/trunk@11409 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:35:12 +00:00
pinkerton%netscape.com
c88b3467ef pro4 namespace stuff.
git-svn-id: svn://10.0.0.236/trunk@11408 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:35:07 +00:00
pinkerton%netscape.com
fa9ab071be remove volatile.
git-svn-id: svn://10.0.0.236/trunk@11407 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:33:46 +00:00
terry%netscape.com
515fccd46a Put in some pointers to dolog.pl.
git-svn-id: svn://10.0.0.236/trunk@11406 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:33:37 +00:00
pinkerton%netscape.com
c656ccfa1d use new menu bar (no more mercutio)
git-svn-id: svn://10.0.0.236/trunk@11405 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:32:35 +00:00
pinkerton%netscape.com
250e6f2dc9 casts to make pro4 compiler happy
git-svn-id: svn://10.0.0.236/trunk@11404 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:32:11 +00:00
pinkerton%netscape.com
680bfd8e92 improper use of volatile
git-svn-id: svn://10.0.0.236/trunk@11403 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:31:52 +00:00
pinkerton%netscape.com
8a95424c44 use LTextEditView
git-svn-id: svn://10.0.0.236/trunk@11402 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:31:30 +00:00
pinkerton%netscape.com
9132e4aeb3 make sure we pick up right header files.
git-svn-id: svn://10.0.0.236/trunk@11401 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:31:08 +00:00
terry%netscape.com
75f55bbc32 Whoops; all the comments at the top got lost somehow. Restore them.
git-svn-id: svn://10.0.0.236/trunk@11400 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:30:55 +00:00
pinkerton%netscape.com
dedb0a861b make sure we pick up the correct defines.
git-svn-id: svn://10.0.0.236/trunk@11399 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:30:47 +00:00
pinkerton%netscape.com
914507e698 new pro4 exports.
git-svn-id: svn://10.0.0.236/trunk@11398 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:30:20 +00:00
pinkerton%netscape.com
b48dca7cec LTextEditView changes.
git-svn-id: svn://10.0.0.236/trunk@11397 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:30:01 +00:00
pinkerton%netscape.com
766c1c52b8 pro4 namespace stuff.
git-svn-id: svn://10.0.0.236/trunk@11396 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:29:34 +00:00
pinkerton%netscape.com
e89d08f8df new stuff from pro4
git-svn-id: svn://10.0.0.236/trunk@11395 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:29:08 +00:00
pinkerton%netscape.com
8aad8aafe6 Carbon fixes (if-def'd)
git-svn-id: svn://10.0.0.236/trunk@11394 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:28:57 +00:00
pinkerton%netscape.com
faaea0cb09 make sure defines are set right.
git-svn-id: svn://10.0.0.236/trunk@11393 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:28:38 +00:00
pinkerton%netscape.com
8ccd2c9870 const changes.
git-svn-id: svn://10.0.0.236/trunk@11392 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:28:24 +00:00
pinkerton%netscape.com
a1893d3501 const changes, LTextEditView changes
git-svn-id: svn://10.0.0.236/trunk@11391 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:28:06 +00:00
pinkerton%netscape.com
8693440d91 carbon fixes.
git-svn-id: svn://10.0.0.236/trunk@11390 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:27:42 +00:00
pinkerton%netscape.com
7e81e40bf7 some carbon stuff and LTextEditView
git-svn-id: svn://10.0.0.236/trunk@11389 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:26:59 +00:00
pinkerton%netscape.com
c2e9744557 fix warnings.
git-svn-id: svn://10.0.0.236/trunk@11388 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:25:45 +00:00
pinkerton%netscape.com
d7ae588afc carbon stuff.
git-svn-id: svn://10.0.0.236/trunk@11387 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:25:31 +00:00
pinkerton%netscape.com
d1810dc5f6 new menubar.
git-svn-id: svn://10.0.0.236/trunk@11386 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:25:13 +00:00
pinkerton%netscape.com
39020bc5b7 get ready for Carbon
git-svn-id: svn://10.0.0.236/trunk@11385 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:24:55 +00:00
pinkerton%netscape.com
7230c61711 Get/SetDescriptorLen changes.
git-svn-id: svn://10.0.0.236/trunk@11384 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:24:42 +00:00
pinkerton%netscape.com
e7bfd07afd pro4 stl changes.
git-svn-id: svn://10.0.0.236/trunk@11383 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:23:55 +00:00
pinkerton%netscape.com
ba1aa5767d add new[] and delete[] and fix other stuff (get rid of flushAlloc, etc)
git-svn-id: svn://10.0.0.236/trunk@11382 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:23:18 +00:00
pinkerton%netscape.com
f5670b3a00 extern C stuff.
git-svn-id: svn://10.0.0.236/trunk@11381 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:22:52 +00:00
pinkerton%netscape.com
d56873e49a use new menubar classes.
git-svn-id: svn://10.0.0.236/trunk@11380 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:22:26 +00:00
pinkerton%netscape.com
169698a260 remove obsolete stuff
git-svn-id: svn://10.0.0.236/trunk@11379 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:21:47 +00:00
pinkerton%netscape.com
fd7f64ffab Fixes for Pro4
git-svn-id: svn://10.0.0.236/trunk@11378 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:21:32 +00:00
pinkerton%netscape.com
6810e5d3d6 const changes for Pro4
git-svn-id: svn://10.0.0.236/trunk@11377 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:20:58 +00:00
pinkerton%netscape.com
cb41010640 fix warnings.
git-svn-id: svn://10.0.0.236/trunk@11376 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:20:41 +00:00
pinkerton%netscape.com
2b8037895e pro4 changes
git-svn-id: svn://10.0.0.236/trunk@11375 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:20:12 +00:00
pinkerton%netscape.com
79b39f86c9 pro4 changes.
git-svn-id: svn://10.0.0.236/trunk@11374 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:20:02 +00:00
pinkerton%netscape.com
63ef7ee5c6 changes for carbon (if-def'd)
git-svn-id: svn://10.0.0.236/trunk@11373 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:19:13 +00:00
pinkerton%netscape.com
fb021adc4a changes for Get/SetDescriptorLen
git-svn-id: svn://10.0.0.236/trunk@11372 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:17:20 +00:00
pinkerton%netscape.com
42b5afb8b0 improper use of volatile.
git-svn-id: svn://10.0.0.236/trunk@11371 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:16:59 +00:00
pinkerton%netscape.com
199c229ba3 use LTextEditView instead of LTextEdit
git-svn-id: svn://10.0.0.236/trunk@11370 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:16:40 +00:00
pinkerton%netscape.com
7abff9be9b Pro4 changes.
git-svn-id: svn://10.0.0.236/trunk@11369 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:16:24 +00:00
pinkerton%netscape.com
49373d9d48 fix link problems on mac.
git-svn-id: svn://10.0.0.236/trunk@11368 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:16:06 +00:00
pinkerton%netscape.com
e2a44faaf3 pull in relevant headers instead of defining things here.
git-svn-id: svn://10.0.0.236/trunk@11367 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:15:46 +00:00
pinkerton%netscape.com
700737ffbe make sure we pull in relevant headers.
git-svn-id: svn://10.0.0.236/trunk@11366 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:15:30 +00:00
pinkerton%netscape.com
3a0fba66de new export file for pro4.
git-svn-id: svn://10.0.0.236/trunk@11365 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:14:28 +00:00
pinkerton%netscape.com
214e438015 No longer pull imagelib off a branch. Generate CarbonLib wrapper project. Use Client.mcp for stubs instead of Navigator (which is obsolete).
git-svn-id: svn://10.0.0.236/trunk@11364 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:13:57 +00:00
pinkerton%netscape.com
c93817715c Make CarbonLib wrapper and use Client.mcp for stubs.
git-svn-id: svn://10.0.0.236/trunk@11363 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:12:49 +00:00
pinkerton%netscape.com
870556b705 Pro4 mods (casts).
git-svn-id: svn://10.0.0.236/trunk@11362 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:11:45 +00:00
pinkerton%netscape.com
2b2c1d0f7c Pro4 and Carbon mods. MacFE only.
git-svn-id: svn://10.0.0.236/trunk@11361 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:11:24 +00:00
pinkerton%netscape.com
c60a24416a Updated projects for Pro4. Turned off mod-date caching for depend builds. Using InterfacesStubs wrapper where appropriate for Carbon.
git-svn-id: svn://10.0.0.236/trunk@11359 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 17:11:00 +00:00
rods%netscape.com
8dc2b2c491 Additional signature changes for XPCOM
git-svn-id: svn://10.0.0.236/trunk@11358 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 16:32:04 +00:00
kipp%netscape.com
5d8504ddc6 Fixed nbsp bug on some win95 systems - it turns out the nbsp wasn't being mapped to space in a few of the compression cases (doh!)
git-svn-id: svn://10.0.0.236/trunk@11357 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 16:24:32 +00:00
rods%netscape.com
4f1f66b39a Changed all the signatures to NS_IMETHOD and NS_METHOD
git-svn-id: svn://10.0.0.236/trunk@11356 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 16:12:15 +00:00
rods%netscape.com
cf6fad9414 Added new interfaces
git-svn-id: svn://10.0.0.236/trunk@11355 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 15:32:04 +00:00
pierre%netscape.com
1e3bd4d855 fixed previous checkin
git-svn-id: svn://10.0.0.236/trunk@11354 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 15:26:03 +00:00
dcone%netscape.com
628c7c4c53 added new files from the xpviewer.
git-svn-id: svn://10.0.0.236/trunk@11353 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 15:16:57 +00:00
pierre%netscape.com
864086668f added nsIToolbarItem.h
git-svn-id: svn://10.0.0.236/trunk@11352 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 15:04:19 +00:00
rods%netscape.com
0127f5a5b8 Fixed the menubars are added to an nsWindow
Fixed last item layout for toolbars


git-svn-id: svn://10.0.0.236/trunk@11351 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 15:01:07 +00:00
cyeh%netscape.com
2834447c49 Removed missing file from the project.
git-svn-id: svn://10.0.0.236/trunk@11350 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 15:00:58 +00:00
wtc%netscape.com
1184dba161 Fixed Linux pthreads build breakage. Define _PR_POLL_AVAILABLE on
glibc systems.


git-svn-id: svn://10.0.0.236/trunk@11349 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 14:28:25 +00:00
rods%netscape.com
09621339cd Changed the menu code to use HMENUs instead of casted HWNDs
git-svn-id: svn://10.0.0.236/trunk@11348 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 14:15:32 +00:00
ramiro%netscape.com
4769f4ed9f Add #ifdef EDITOR around usage of edt_ForceTableSelection() which is only
defined if EDITOR is true.  Fixes the autoconf and MOZ_LITE builds.


git-svn-id: svn://10.0.0.236/trunk@11346 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 09:41:19 +00:00
shaver%netscape.com
0f25c0e2fd fix accidental non-OJI build breakage
git-svn-id: svn://10.0.0.236/trunk@11345 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 09:19:45 +00:00
shaver%netscape.com
6d9d3c85c4 track DOM Makefile changes
git-svn-id: svn://10.0.0.236/trunk@11344 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 09:15:05 +00:00
mcafee%netscape.com
3f145d3dcc Warning segfault possibility with XP_ASSERT(0). (bugzilla:349)
git-svn-id: svn://10.0.0.236/trunk@11341 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 07:28:50 +00:00
mcafee%netscape.com
7faca11f33 Woops backing out that last change.
git-svn-id: svn://10.0.0.236/trunk@11339 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 07:17:23 +00:00
mcafee%netscape.com
1c0aacd028 DU4.0 doesn't like casting to int and then enum. (Bugzilla:334)
git-svn-id: svn://10.0.0.236/trunk@11338 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 07:15:27 +00:00
cmanske%netscape.com
769534c943 Added question mark to save file prompt
git-svn-id: svn://10.0.0.236/trunk@11337 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 07:12:13 +00:00
mcafee%netscape.com
d6c1880df0 Cast needed for DU4.0 (Bugzilla:325)
git-svn-id: svn://10.0.0.236/trunk@11336 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 07:11:22 +00:00
mcafee%netscape.com
415902bd10 Cast needed for DU4.0 (Bugzilla:324)
git-svn-id: svn://10.0.0.236/trunk@11335 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 07:08:35 +00:00
mcafee%netscape.com
4e2d3181a2 Cast needed for DU4.0 (Bugzilla:323)
git-svn-id: svn://10.0.0.236/trunk@11334 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 07:05:31 +00:00
mcafee%netscape.com
3039b56681 Cast needed for DU4.0 (Bugzilla:322)
git-svn-id: svn://10.0.0.236/trunk@11333 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 07:02:39 +00:00
mcafee%netscape.com
2a85878803 Cast needed for DU4.0 (Bugzilla:320)
git-svn-id: svn://10.0.0.236/trunk@11332 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 06:58:21 +00:00
mcafee%netscape.com
bab7cabdaf Cast needed for DU4.0 (Bugzilla:319)
git-svn-id: svn://10.0.0.236/trunk@11331 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 06:55:47 +00:00
mcafee%netscape.com
d1cae73c52 Cast needed for DU4.0 (Bugzilla:318)
git-svn-id: svn://10.0.0.236/trunk@11330 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 06:43:05 +00:00
mcafee%netscape.com
5ca1634a4f Cast needed for DU4.0 (Bugzilla:316)
git-svn-id: svn://10.0.0.236/trunk@11329 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 06:37:03 +00:00
mcafee%netscape.com
3bd5da255c Cast needed for DU4.0 (Bugzilla:312)
git-svn-id: svn://10.0.0.236/trunk@11328 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 06:33:42 +00:00
briano%netscape.com
c0ed029036 Cleaned it up and made it work all platforms, not just the ones that support shared libs.
git-svn-id: svn://10.0.0.236/trunk@11327 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 06:30:14 +00:00
chuckb%netscape.com
f9133c97e8 added readme for 9.28
git-svn-id: svn://10.0.0.236/trunk@11324 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 05:33:50 +00:00
cmanske%netscape.com
9feb48edf3 Fixed Delete command inactive when it should be active
git-svn-id: svn://10.0.0.236/trunk@11323 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 05:26:13 +00:00
chuckb%netscape.com
603b4013e3 Java LDAP SDK 3.5 update
git-svn-id: svn://10.0.0.236/trunk@11322 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 05:16:18 +00:00
cmanske%netscape.com
eb0d2daa7e Fixed bug 123391
git-svn-id: svn://10.0.0.236/trunk@11321 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 05:10:58 +00:00
troy%netscape.com
a5e3d80369 Added back in support for absolutely positioned frames
git-svn-id: svn://10.0.0.236/trunk@11320 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 04:47:59 +00:00
mcafee%netscape.com
e8b72d2289 Missing slash, fixes Linux autoconf breakage. Thanks to <smorrison@gte.com>.
git-svn-id: svn://10.0.0.236/trunk@11319 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 04:36:29 +00:00
cmanske%netscape.com
acd3c39d6b Trying to fix Linux build problems
git-svn-id: svn://10.0.0.236/trunk@11318 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 04:12:14 +00:00
kipp%netscape.com
6b67547955 Changed factory method to parameterize the shrink wrapping behavior
git-svn-id: svn://10.0.0.236/trunk@11317 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 03:44:25 +00:00
cmanske%netscape.com
463bba0b61 Trying to appease fussy UNIX compiler
git-svn-id: svn://10.0.0.236/trunk@11316 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 02:42:30 +00:00
pierre%netscape.com
6ae061e2aa make aliases of broken-image and throbber gifs
git-svn-id: svn://10.0.0.236/trunk@11315 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 02:31:12 +00:00
troy%netscape.com
3847b443ca Fixed some bustage I introduced with the factoring
git-svn-id: svn://10.0.0.236/trunk@11314 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 02:18:09 +00:00
rods%netscape.com
ee09a7ae7a Added more casts to HMENU
git-svn-id: svn://10.0.0.236/trunk@11313 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 02:01:31 +00:00
cmanske%netscape.com
982a1ee908 Trying to fix build problem in Linux
git-svn-id: svn://10.0.0.236/trunk@11312 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 01:36:51 +00:00
rods%netscape.com
30de4ae748 Added NetService to SetupRegistry & made some other changes
git-svn-id: svn://10.0.0.236/trunk@11311 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 01:34:50 +00:00
rods%netscape.com
34fcb9def9 fixed menu casting problem.
git-svn-id: svn://10.0.0.236/trunk@11310 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 01:23:40 +00:00
kostello%netscape.com
7b2f4c649c Synch with Rod's changes to nsIWidget
git-svn-id: svn://10.0.0.236/trunk@11309 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 00:58:32 +00:00
kostello%netscape.com
478b06a76b Synch with Rod's new nsIWidget changes
git-svn-id: svn://10.0.0.236/trunk@11308 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 00:55:17 +00:00
shaver%netscape.com
f189c3d804 the perignon stuff can handle pseudoclasses like a real man, so pass them on
git-svn-id: svn://10.0.0.236/trunk@11307 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 00:40:52 +00:00
norris%netscape.com
6e8507905e Fix bug 325937.
Reviewed by brendan.


git-svn-id: svn://10.0.0.236/trunk@11306 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 00:31:47 +00:00
nisheeth%netscape.com
0d5766018c Defensive programming to avoid crashing on a NULL lo_image added to lo_ImageObserver(). Thanks a lot to ben@algroup.co.uk for reporting this problem and providing a partial fix.
git-svn-id: svn://10.0.0.236/trunk@11305 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 00:24:15 +00:00
pierre%netscape.com
1cc0f19cb7 fix drawing over other apps' windows
git-svn-id: svn://10.0.0.236/trunk@11304 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 00:20:50 +00:00
rods%netscape.com
31701a1151 Added the nsIToolbarItem interface and an additional init member to the interface and class
git-svn-id: svn://10.0.0.236/trunk@11303 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 00:12:09 +00:00
cmanske%netscape.com
d4143501ca Fixed problem with displaying borders in Navigator when we shouldn't
git-svn-id: svn://10.0.0.236/trunk@11302 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 00:02:29 +00:00
shaver%netscape.com
f5b3e91eb2 Wire up Perignon stuff #if DOM.
Remove some unused variables.


git-svn-id: svn://10.0.0.236/trunk@11301 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 23:39:17 +00:00
kipp%netscape.com
3d22089622 nuked
git-svn-id: svn://10.0.0.236/trunk@11300 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 23:32:03 +00:00
pierre%netscape.com
f2f80c5973 fixed crash due to missing {} after if() statement
git-svn-id: svn://10.0.0.236/trunk@11299 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 23:30:17 +00:00
troy%netscape.com
90bec832fd Partially enabled support for absolutely positioned elements
git-svn-id: svn://10.0.0.236/trunk@11298 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 23:24:37 +00:00
buster%netscape.com
59dc161081 minor cleanup, removed references to obsolete table content factory methods.
git-svn-id: svn://10.0.0.236/trunk@11297 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 23:16:39 +00:00
radha%netscape.com
e25e2b0762 Change thei default URL for the htmlpane
git-svn-id: svn://10.0.0.236/trunk@11296 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 23:15:24 +00:00
radha%netscape.com
d6a879b766 Toolbar properties hooked up to RDF. Toolbars get their tooltips from the new
tooltip api


git-svn-id: svn://10.0.0.236/trunk@11295 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 23:14:30 +00:00
radha%netscape.com
2ff37a6646 Really make the selector bar buttons work, so that people outside xfe can use
RDF bookmarks etc....
The images don't show up on the selector bar buttons
for some reason. Shall fix it later.


git-svn-id: svn://10.0.0.236/trunk@11294 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 23:11:12 +00:00
cmanske%netscape.com
e9897123d3 Fixed problem with font list
git-svn-id: svn://10.0.0.236/trunk@11293 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 23:07:42 +00:00
rods%netscape.com
d022499d52 Made changes to get it to come up
git-svn-id: svn://10.0.0.236/trunk@11292 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 23:02:09 +00:00
beard%netscape.com
b4c96d5b82 Moved LiveConnect initialization calls to end of lm_ReallyInitMocha, so that the rest of libmocha will be initialized properly.
git-svn-id: svn://10.0.0.236/trunk@11291 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 22:59:08 +00:00
cmanske%netscape.com
7b44c1ed64 Fixed lots and lots of Composer bugs. Implemented more feedback for mouse-over cursors
git-svn-id: svn://10.0.0.236/trunk@11290 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 22:51:56 +00:00
shaver%netscape.com
af556e9173 - Update Unix make goo to handle our new MOZILLA_CLIENT dependencies.
- Added TODO and STYLE_NOTES
- Added style data to DOM_Element
- Added GetCleanEntryData convenience function
- Added internal dom_SetElementAttribute with optional suppressing of callback
  invocation
- Added style init code
- Style support (everything)
- Fix text initialization thinko


git-svn-id: svn://10.0.0.236/trunk@11289 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 22:51:50 +00:00
cmanske%netscape.com
9ec704b72f Fixed lots of Composer bugs. Implemented delete/copy accross table cell boundaries
git-svn-id: svn://10.0.0.236/trunk@11288 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 22:51:10 +00:00
cmanske%netscape.com
5e503390a1 Added strings and error define for feedback when deleting across table boundary. Added new function prototypes
git-svn-id: svn://10.0.0.236/trunk@11287 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 22:48:43 +00:00
rods%netscape.com
612a7e66b8 Added interfaces
git-svn-id: svn://10.0.0.236/trunk@11286 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 22:37:16 +00:00
pinkerton%netscape.com
6a930c6a40 better fix for iterator problem.
git-svn-id: svn://10.0.0.236/trunk@11285 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 22:34:44 +00:00
pinkerton%netscape.com
2fc9e622cf Fix mac build bustage. Variables declared in the init section of a loop are not valid beyond the scope of the loop (regardless of what VC++ says).
git-svn-id: svn://10.0.0.236/trunk@11284 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 22:33:47 +00:00
rods%netscape.com
e8f77bc7cd XPCOM'ed most methods and added a couple of methods to BaseWidget
and added a lot of files


git-svn-id: svn://10.0.0.236/trunk@11283 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 22:32:48 +00:00
mccabe%netscape.com
b99526dfbb Initial checkin of PerlConnect, migrated from the private tree.
Perlconnect is a set of facilities for controlling and interacting
with a perl interpreter from javascript, and vice versa.  It supplies
several mechanisms for transparently reflecting perl scalars, hashes
and arrays as the corresponding types in javascript.

Currently maintained by Vladimir Livshits, val4@cornell.edu


git-svn-id: svn://10.0.0.236/trunk@11282 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 22:05:39 +00:00
cyeh%netscape.com
590829240e don't dist missing header
git-svn-id: svn://10.0.0.236/trunk@11281 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 21:53:14 +00:00
terry%netscape.com
9cc6947214 Akkana now owns Composer.
git-svn-id: svn://10.0.0.236/trunk@11280 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 21:53:08 +00:00
kipp%netscape.com
6e006d63ea Added FIELDSET and LEGEND preliminary support
git-svn-id: svn://10.0.0.236/trunk@11279 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 21:52:10 +00:00
hyatt%netscape.com
1ebd6fd1be Fixing a bug in the SHACK widget.
git-svn-id: svn://10.0.0.236/trunk@11278 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 21:43:34 +00:00
cmanske%netscape.com
153828e990 New function supplied by ftang for Composer checking of bad charsets when loading a page
git-svn-id: svn://10.0.0.236/trunk@11277 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 21:36:23 +00:00
jsun%netscape.com
0ae5282505 Renamed some classes from Julian.* to nsCal.* .
git-svn-id: svn://10.0.0.236/trunk@11276 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 21:35:33 +00:00
slamm%netscape.com
20210efbde Fix spelling errors.
git-svn-id: svn://10.0.0.236/trunk@11275 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 21:34:56 +00:00
karnaze%netscape.com
0c85a290ef bugs 642, 643; also removed unused files.
git-svn-id: svn://10.0.0.236/trunk@11274 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 21:32:24 +00:00
kostello%netscape.com
141b2ee43d Fix bug 658.
Needed to update to nsXIFDTD to match new nsSkippedContentToken API


git-svn-id: svn://10.0.0.236/trunk@11273 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 21:25:22 +00:00
ramiro%netscape.com
0c4c83e60e Add ClientData.[ch].
git-svn-id: svn://10.0.0.236/trunk@11272 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 21:22:45 +00:00
vidur%netscape.com
91958a5028 Fixed image.src=. Forwarded AttributeChanged notifications from nsPlaceholderFrame to its anchored item. Got rid of redundant calls to AttributeChanged.
git-svn-id: svn://10.0.0.236/trunk@11271 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 21:22:31 +00:00
dcone%netscape.com
2e34d13dbf Fixed the growing part of the window, setorigin was messing us up.
git-svn-id: svn://10.0.0.236/trunk@11270 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 21:08:09 +00:00
akkana%netscape.com
84d23710e9 Hope this syntax might make Linux and Solaris happier
git-svn-id: svn://10.0.0.236/trunk@11269 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 21:01:21 +00:00
cyeh%netscape.com
59c5e14f3a remove old MOCHA #ifdefs
git-svn-id: svn://10.0.0.236/trunk@11268 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:53:23 +00:00
jsun%netscape.com
9d40b2d0da Renamed files with Julian to nsCal.
git-svn-id: svn://10.0.0.236/trunk@11267 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:49:51 +00:00
cyeh%netscape.com
65c201a259 removing old NSPR20 #ifdefs
git-svn-id: svn://10.0.0.236/trunk@11266 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:49:33 +00:00
valeski%netscape.com
62f772cb7b Raptor only. Fix crasher.
git-svn-id: svn://10.0.0.236/trunk@11265 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:47:49 +00:00
jsun%netscape.com
4cde933916 Renamed classes with Julian.* in front to nsCal.*.
git-svn-id: svn://10.0.0.236/trunk@11264 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:47:07 +00:00
jsun%netscape.com
d9b95f11c1 Renamed several classes that had Julian in front.
Changed them to nsCal.
i.e. Julian_Duration -> nsCalDuration.
     JulianRecurrenceID -> nsCalRecurrenceID.


git-svn-id: svn://10.0.0.236/trunk@11263 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:46:22 +00:00
cyeh%netscape.com
46c981f3a0 remove old NSPR20 #ifdefs
git-svn-id: svn://10.0.0.236/trunk@11262 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:45:35 +00:00
gagan%netscape.com
89c84ffbf6 Prefs changes.
git-svn-id: svn://10.0.0.236/trunk@11261 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:42:58 +00:00
cyeh%netscape.com
a8429e9374 removing old NSPR20 #ifdefs
git-svn-id: svn://10.0.0.236/trunk@11260 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:42:14 +00:00
buster%netscape.com
1c6e6e88a1 fixed bug 915. Colgroup frames now get Init() calls properly with
synthesized COLs.


git-svn-id: svn://10.0.0.236/trunk@11259 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:38:10 +00:00
cyeh%netscape.com
5b7e92b84d removing old NSPR20 #ifdef
git-svn-id: svn://10.0.0.236/trunk@11258 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:38:02 +00:00
kostello%netscape.com
aa8449482e raptor checkin, took out the asserts for reading in a file, just so the viewer will work correctly. While fix this soon.
git-svn-id: svn://10.0.0.236/trunk@11255 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:34:30 +00:00
gagan%netscape.com
b73b3d94c1 Assertion added.
git-svn-id: svn://10.0.0.236/trunk@11254 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:34:28 +00:00
gagan%netscape.com
7bdf6e2c14 Cache Prefs changes. All cache prefs are now read directly by NuCache.
git-svn-id: svn://10.0.0.236/trunk@11253 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:32:40 +00:00
kostello%netscape.com
b78ff88d4e updated the OJI build info
git-svn-id: svn://10.0.0.236/trunk@11252 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:31:11 +00:00
gagan%netscape.com
1d780b327d Prefs changes. All cache preferences are now read directly by NuCache.
git-svn-id: svn://10.0.0.236/trunk@11251 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:30:54 +00:00
cyeh%netscape.com
5f807008d6 removing old NSPR20 and MOCHA #ifdefs
git-svn-id: svn://10.0.0.236/trunk@11250 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:26:20 +00:00
cyeh%netscape.com
0c0e7341ef remove old NSPR20 #ifdefs
git-svn-id: svn://10.0.0.236/trunk@11249 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:22:36 +00:00
cyeh%netscape.com
12f69944f4 remove old #ifdefs
git-svn-id: svn://10.0.0.236/trunk@11248 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:20:42 +00:00
wtc%netscape.com
49d1c3d821 Make 'gmake depend' do a 'gmake clean' temporarily, because I am
going to check in a change to the header file _linux.h and NSPR
makefiles don't implement 'gmake depend'.  I must force the
Tinderbox 'gmake depend' continuous builds to rebuild the files
after the header file change.  I really hate to do this hack but...


git-svn-id: svn://10.0.0.236/trunk@11247 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:19:41 +00:00
cyeh%netscape.com
fd70b163fa remove old NSPR20 #ifdef
git-svn-id: svn://10.0.0.236/trunk@11246 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:19:24 +00:00
cyeh%netscape.com
30fe8ba751 removing old NSPR20 #ifdefs
git-svn-id: svn://10.0.0.236/trunk@11245 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:17:44 +00:00
cyeh%netscape.com
f4402032d4 removing old NSPR20 #ifdef
git-svn-id: svn://10.0.0.236/trunk@11244 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:13:36 +00:00
wtc%netscape.com
e372290bb4 Fixed DG/UX build problems in NSPR20 v3.0 beta. The patch is
contributed by Marc J. Fraioli (fraioli@dg-rtp.dg.com).


git-svn-id: svn://10.0.0.236/trunk@11243 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:13:23 +00:00
ramiro%netscape.com
419e35b066 Add TIS-620 charset support. Thanks to Samphan Raruenrom <samphan@thai.com>
for providing the patch.


git-svn-id: svn://10.0.0.236/trunk@11242 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:09:23 +00:00
cyeh%netscape.com
cc400964fa remove old NSPR20 #ifdef
git-svn-id: svn://10.0.0.236/trunk@11241 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:08:32 +00:00
ramiro%netscape.com
599c292c94 Fix bugzilla bug 885. Compiler warning. Thanks to raff@netwinder.org for
pointing this out and providing a fix.


git-svn-id: svn://10.0.0.236/trunk@11240 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 19:57:27 +00:00
cyeh%netscape.com
377c0b4ee8 removing old NSPR20 and MOCHA #ifdefs. Sorry for the rebuild.
git-svn-id: svn://10.0.0.236/trunk@11239 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 19:56:38 +00:00
despotdaemon%netscape.com
db076dcb00 Pseudo-automatic update of changes made by shaver@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@11238 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 19:51:46 +00:00
ramiro%netscape.com
40727f404b Use new tool tip api.
git-svn-id: svn://10.0.0.236/trunk@11237 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 19:42:46 +00:00
ramiro%netscape.com
0ad7be3cb8 Update for doc string callbacks.
git-svn-id: svn://10.0.0.236/trunk@11236 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 19:41:30 +00:00
ramiro%netscape.com
ec4bfbef44 Use the client data manager.
git-svn-id: svn://10.0.0.236/trunk@11234 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 19:39:44 +00:00
ramiro%netscape.com
6a564862be Add XfeToolTipShellSetString().
git-svn-id: svn://10.0.0.236/trunk@11233 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 19:38:57 +00:00
ramiro%netscape.com
039e0051cf Make sure child is centered.
git-svn-id: svn://10.0.0.236/trunk@11232 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 19:37:55 +00:00
kin%netscape.com
bc52ba4678 mozilla/cmd/xfe/resources
mozilla/cmd/xfe/src/EmbeddedEditor.cpp
mozilla/cmd/xfe/src/ComposeView.cpp
  - Modifications to get the insert menu (editorGoodiesMenu), on the embedded
    editor and compose view toolbar, to display text instead of icons.


git-svn-id: svn://10.0.0.236/trunk@11231 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 19:31:25 +00:00
ftang%netscape.com
e01b6671a1 fix cannot convert cases
git-svn-id: svn://10.0.0.236/trunk@11230 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 19:24:13 +00:00
ftang%netscape.com
bc29f82bbb move 4.5 fix into mozilla
git-svn-id: svn://10.0.0.236/trunk@11229 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 19:23:21 +00:00
ramiro%netscape.com
06749a4471 Comment out debug printfs.
git-svn-id: svn://10.0.0.236/trunk@11228 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 19:09:28 +00:00
akkana%netscape.com
3dc6f3ec61 Lotsa minor bug fixes
git-svn-id: svn://10.0.0.236/trunk@11227 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 19:09:26 +00:00
ramiro%netscape.com
74ca811e83 Add client data manager.
git-svn-id: svn://10.0.0.236/trunk@11226 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 19:08:46 +00:00
akkana%netscape.com
a11d6d1880 Eliminate a bunch of warnings
git-svn-id: svn://10.0.0.236/trunk@11225 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 19:06:17 +00:00
kipp%netscape.com
42adeed6a7 Get max-element-size from inline-reflow state and pass it upwards
git-svn-id: svn://10.0.0.236/trunk@11224 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 18:57:28 +00:00
kipp%netscape.com
d7fce242a3 Only set margins if auto/undefined margins are present
git-svn-id: svn://10.0.0.236/trunk@11223 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 18:51:23 +00:00
kipp%netscape.com
6635abfd9a Cleaned up and repaired floater placement and spacemanager manipulation; the comments clearly (hopefully!) state whats going on...
git-svn-id: svn://10.0.0.236/trunk@11222 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 18:50:59 +00:00
kipp%netscape.com
9d96689b75 Setup spacemanager translation correctly
git-svn-id: svn://10.0.0.236/trunk@11221 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 18:50:06 +00:00
rods%netscape.com
26b0390922 Initial checkin
git-svn-id: svn://10.0.0.236/trunk@11220 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 18:02:21 +00:00
dcone%netscape.com
b519e7590e fixed a validrect problem needed for doublebuffer.
Cant call validrect in grow when doublebuffering.  Dont know why yet


git-svn-id: svn://10.0.0.236/trunk@11219 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 17:03:49 +00:00
dcone%netscape.com
bef7dd501e fixed double buffer stuff
git-svn-id: svn://10.0.0.236/trunk@11218 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 17:02:32 +00:00
dcone%netscape.com
49228fb0af fixed some double buffer things
git-svn-id: svn://10.0.0.236/trunk@11217 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 17:02:08 +00:00
rods%netscape.com
0dbf7155a8 Initial Checkin
git-svn-id: svn://10.0.0.236/trunk@11216 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 16:58:20 +00:00
rods%netscape.com
26bdcd45be Initial checkin
git-svn-id: svn://10.0.0.236/trunk@11215 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 16:57:48 +00:00
rods%netscape.com
7e647ddb9d Inial Checkin
git-svn-id: svn://10.0.0.236/trunk@11214 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 16:51:39 +00:00
rods%netscape.com
cd356bc27e Initial checkin
git-svn-id: svn://10.0.0.236/trunk@11213 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 16:32:12 +00:00
ramiro%netscape.com
6d8c13b75d Fix the realization problem so that tooltips can be added at any time whether
a widget, or gadget's parent are realized or not.


git-svn-id: svn://10.0.0.236/trunk@11212 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 11:03:11 +00:00
ramiro%netscape.com
34a324a827 Fix removal of info at item destruction. Fix positioning.
git-svn-id: svn://10.0.0.236/trunk@11211 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 08:11:25 +00:00
mcafee%netscape.com
2650c8148d Fixing more link errors.
git-svn-id: svn://10.0.0.236/trunk@11208 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 07:24:15 +00:00
mcafee%netscape.com
add9d08e27 Added Rhapsody to the long list of OS's that can't handle localtime_r().
git-svn-id: svn://10.0.0.236/trunk@11207 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 07:12:12 +00:00
mcafee%netscape.com
840850d6af Print out not-implemented warnings.
git-svn-id: svn://10.0.0.236/trunk@11206 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 07:06:46 +00:00
mcafee%netscape.com
a772f805cd closer..
git-svn-id: svn://10.0.0.236/trunk@11205 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 07:02:14 +00:00
mcafee%netscape.com
504061f9f5 First real link attempt
git-svn-id: svn://10.0.0.236/trunk@11204 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 06:54:37 +00:00
mcafee%netscape.com
0f4bd530c5 Rhapsody is having trouble linking this with the C++ compiler, linking with cc for now.
git-svn-id: svn://10.0.0.236/trunk@11203 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 06:01:12 +00:00
mcafee%netscape.com
355e72d632 Removing empty export: rule, minor whitespace-tab stuff.
git-svn-id: svn://10.0.0.236/trunk@11202 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 05:42:46 +00:00
mcafee%netscape.com
999f279f03 Removed two local rules, instead relying on global rules in config/rules.mk.
git-svn-id: svn://10.0.0.236/trunk@11201 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 05:37:23 +00:00
mcafee%netscape.com
5e0a3061d0 Missing slash
git-svn-id: svn://10.0.0.236/trunk@11200 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 01:41:50 +00:00
michaelp%netscape.com
529844045a removed libmsgc21.so from link list.
git-svn-id: svn://10.0.0.236/trunk@11199 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 00:28:17 +00:00
michaelp%netscape.com
332e700598 fixes unix build.
git-svn-id: svn://10.0.0.236/trunk@11198 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 23:59:42 +00:00
michaelp%netscape.com
345cf022f8 fix build bustage...
git-svn-id: svn://10.0.0.236/trunk@11197 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 23:49:21 +00:00
michaelp%netscape.com
2ace49bea4 fixes for unix bustage.
git-svn-id: svn://10.0.0.236/trunk@11196 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 23:44:28 +00:00
michaelp%netscape.com
0e5e64e79d hopefully will fix unix builds.
git-svn-id: svn://10.0.0.236/trunk@11195 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 23:30:56 +00:00
michaelp%netscape.com
a285a5c984 changes for new nsiplugininstanceowner.
git-svn-id: svn://10.0.0.236/trunk@11194 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:46:41 +00:00
michaelp%netscape.com
3d73ad1a59 object tag no longer processes it's children (i put troy's change from thursday
in a comment until the parser is sorted out).


git-svn-id: svn://10.0.0.236/trunk@11193 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:44:26 +00:00
michaelp%netscape.com
96fd8bbebe massive changes to support java plugins.
git-svn-id: svn://10.0.0.236/trunk@11192 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:42:48 +00:00
michaelp%netscape.com
6201c85ae3 added "param" atom.
git-svn-id: svn://10.0.0.236/trunk@11191 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:41:01 +00:00
michaelp%netscape.com
54869d3fb6 now reflects our dependence on OJI.
git-svn-id: svn://10.0.0.236/trunk@11190 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:40:10 +00:00
michaelp%netscape.com
00f8d8614f now supports direct draw using MSVC 5.0.
git-svn-id: svn://10.0.0.236/trunk@11189 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:35:54 +00:00
michaelp%netscape.com
5a27630275 obsolete.
git-svn-id: svn://10.0.0.236/trunk@11188 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:25:13 +00:00
michaelp%netscape.com
7c26bd90f5 added support for plugintaginfo2 and jvmtaginfo.
git-svn-id: svn://10.0.0.236/trunk@11187 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:24:54 +00:00
michaelp%netscape.com
d62a69de3c added support for pluginmanager2 methods.
git-svn-id: svn://10.0.0.236/trunk@11186 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:23:19 +00:00
michaelp%netscape.com
8674ae2b1c cleanup. now supports stream "as file" and "as file only." added support
for pluginmanager2 methods (largely stubs). now correctly handles URLNotify().
we noew report our user agent as 5.0. can now load 5.0 style plugins from DLLs
and instantiate them properly.


git-svn-id: svn://10.0.0.236/trunk@11185 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:21:39 +00:00
michaelp%netscape.com
54cd9ac8db removed attribute queries. added ShowStatus().
git-svn-id: svn://10.0.0.236/trunk@11184 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:17:00 +00:00
michaelp%netscape.com
2a0fe8f7ae we no longer consider failures from GetAttributes() or even expect the
plugin host to implement it.


git-svn-id: svn://10.0.0.236/trunk@11183 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:16:00 +00:00
michaelp%netscape.com
ff63394ad3 now properly handles queries for nsIFactory.
git-svn-id: svn://10.0.0.236/trunk@11182 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:14:15 +00:00
michaelp%netscape.com
f96f246d76 now reflect our dependency on OJI.
git-svn-id: svn://10.0.0.236/trunk@11181 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:12:59 +00:00
michaelp%netscape.com
3a2c5dab40 changes to support using OJI with raptor.
git-svn-id: svn://10.0.0.236/trunk@11180 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:11:12 +00:00
michaelp%netscape.com
5c7f29b898 now pulls modules/oji.
git-svn-id: svn://10.0.0.236/trunk@11179 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:09:41 +00:00
raman%netscape.com
0f3ebfecae Backing my last checkin
git-svn-id: svn://10.0.0.236/trunk@11174 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 03:15:11 +00:00
cls%seawood.org
a09bfd72e1 Added realclean target.
git-svn-id: svn://10.0.0.236/trunk@11173 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 01:30:07 +00:00
raman%netscape.com
2f8770d562 Fixed the memory leaks during startup
git-svn-id: svn://10.0.0.236/trunk@11172 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 01:22:41 +00:00
raman%netscape.com
e7290b1b56 exit gracefully if gNavCenter is NULL
git-svn-id: svn://10.0.0.236/trunk@11171 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 01:22:03 +00:00
cls%seawood.org
5b3d19ee63 Makes nsinstall not return an error if an intermediate directory already exists.
git-svn-id: svn://10.0.0.236/trunk@11169 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 00:02:21 +00:00
pinkerton%netscape.com
931ec67fb2 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@11168 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 23:14:53 +00:00
kipp%netscape.com
982b9a6b49 Fixed mac/unix build problem
git-svn-id: svn://10.0.0.236/trunk@11167 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 22:48:52 +00:00
pinkerton%netscape.com
7cd9153865 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@11166 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 22:25:10 +00:00
morse%netscape.com
eef70acbcd fix bug 325820
git-svn-id: svn://10.0.0.236/trunk@11165 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 21:46:15 +00:00
kipp%netscape.com
e5172e64c4 Fixed up list ordinal handling so that negatives don't work for roman numerals or for alphabetics, and that alphabetics count properly (a==1); this fixes bugzilla bug#589
git-svn-id: svn://10.0.0.236/trunk@11164 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 20:05:09 +00:00
kipp%netscape.com
6bec50c9d7 Added callback to image loading api
git-svn-id: svn://10.0.0.236/trunk@11163 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 18:36:59 +00:00
kipp%netscape.com
082fcd1838 use image-loader call back to trigger bullet frame reflows
git-svn-id: svn://10.0.0.236/trunk@11162 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 18:36:01 +00:00
kipp%netscape.com
1bf34c11eb Use callback to trigger frame reflows instead of hardwiring in a content-changed reflow
git-svn-id: svn://10.0.0.236/trunk@11161 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 18:35:21 +00:00
kipp%netscape.com
98c2ef3acc Dump client-data too
git-svn-id: svn://10.0.0.236/trunk@11160 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 17:39:54 +00:00
kipp%netscape.com
16f9284c0e Fixed background-image rendering so that when the entire background is not covered by the image the background color can be seen
git-svn-id: svn://10.0.0.236/trunk@11159 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 17:29:10 +00:00
kipp%netscape.com
679b3025ae Use modified css rendering API
git-svn-id: svn://10.0.0.236/trunk@11158 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 17:17:20 +00:00
kipp%netscape.com
557c249643 Support a dx,dy value to adjust origin of image rendering; add in partial support for background-position property
git-svn-id: svn://10.0.0.236/trunk@11157 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 17:16:56 +00:00
kipp%netscape.com
f28e3e4139 Diable body margin for now until rendering problem with background images is resolved
git-svn-id: svn://10.0.0.236/trunk@11156 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 17:15:07 +00:00
kipp%netscape.com
128812b271 Use modified css rendering API; handle background images differently (still not quite right)
git-svn-id: svn://10.0.0.236/trunk@11155 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 17:14:35 +00:00
wtc%netscape.com
8720d10f81 Temporary fix: comment out the exit() wrapper so that at least
Mozilla client builds and runs.  We will fix the wrong exit status
bug or zombie sproc bug later (which the exit() wrapper is for).


git-svn-id: svn://10.0.0.236/trunk@11154 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 14:32:11 +00:00
briano%netscape.com
5767fea1c2 Well, it turns out that gcc 2.8.1 for QNX has problems with error status returned by exit(). Seems to work fine, otherwise. Making the native (Watcom) compiler the default again.
git-svn-id: svn://10.0.0.236/trunk@11153 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 07:57:32 +00:00
wtc%netscape.com
80b381b2fb Temporarily comment out the symbol __exit, which is not found
on all versions of IRIX.


git-svn-id: svn://10.0.0.236/trunk@11152 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 07:28:04 +00:00
cls%seawood.org
3e3af38e98 Ok this time I actually removed libmsgc21.
git-svn-id: svn://10.0.0.236/trunk@11151 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 05:31:30 +00:00
pierre%netscape.com
59e5ec855b added nsJSHTMLFieldSetElement.cpp
git-svn-id: svn://10.0.0.236/trunk@11150 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 05:14:01 +00:00
vidur%netscape.com
3fcbc9e5a5 Added nsIDOMHTMLFieldSetElement.h back into the build...
git-svn-id: svn://10.0.0.236/trunk@11149 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 04:47:34 +00:00
vidur%netscape.com
22d8cb3e59 Added nsHTMLFieldSetElement.cpp back...
git-svn-id: svn://10.0.0.236/trunk@11148 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 04:44:53 +00:00
vidur%netscape.com
c15b4671e2 New DOM file
git-svn-id: svn://10.0.0.236/trunk@11147 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 04:41:59 +00:00
vidur%netscape.com
54f0032c94 New DOM header file...
git-svn-id: svn://10.0.0.236/trunk@11146 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 04:40:46 +00:00
kipp%netscape.com
14ab08a8c0 Backed out fieldset part of build
git-svn-id: svn://10.0.0.236/trunk@11145 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 04:28:35 +00:00
briano%netscape.com
9114d55f91 All Linux variants seem to have zip and unzip in /usr/bin, so no need for the extra ifeq to restrict it to ppc.
git-svn-id: svn://10.0.0.236/trunk@11144 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 03:15:26 +00:00
pierre%netscape.com
b51636a5a6 fixing the mac raptor build: undef some of the Mozilla specific stuff
git-svn-id: svn://10.0.0.236/trunk@11143 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 02:56:36 +00:00
pierre%netscape.com
9f185f2e65 removed mozilla/lib/htmldlgs added earlier today: it was a mistake
git-svn-id: svn://10.0.0.236/trunk@11142 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 02:55:14 +00:00
cls%seawood.org
9f87c5d98a Put libi18n after libmisc and added JAVA_OR_OJI ifdef for libjsj.
git-svn-id: svn://10.0.0.236/trunk@11141 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 02:33:18 +00:00
wtc%netscape.com
6c927fbaea Removed reference to nonexisting test file.
git-svn-id: svn://10.0.0.236/trunk@11140 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 02:28:57 +00:00
wtc%netscape.com
2a8fb8402d poll() doesn't work on some Linux machines, so we go back
to using select().


git-svn-id: svn://10.0.0.236/trunk@11139 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 02:23:06 +00:00
cls%seawood.org
86a4ef438d Removed --enable-nspr. Added check for moc.
git-svn-id: svn://10.0.0.236/trunk@11138 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 02:07:08 +00:00
spider%netscape.com
cbf6d101c2 WIP: Multi-Group View
git-svn-id: svn://10.0.0.236/trunk@11137 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 01:38:23 +00:00
briano%netscape.com
aa7252df55 Minor change to the 'test' commands. QNX breaks if there isn't an else block....
git-svn-id: svn://10.0.0.236/trunk@11136 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 01:30:16 +00:00
briano%netscape.com
47c9aa9a2f Minor tweaks to support QNX 4.24.
git-svn-id: svn://10.0.0.236/trunk@11135 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 01:28:27 +00:00
pierre%netscape.com
73efd633b7 fixing mac raptor build after landing of nspr20 v3: added mozilla/lib/htmldlgs to the checkout & makedist lists
git-svn-id: svn://10.0.0.236/trunk@11134 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 01:27:26 +00:00
pierre%netscape.com
dcd143edf3 fixing the mac raptor build after the landing of nspr20 v3
git-svn-id: svn://10.0.0.236/trunk@11133 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 01:00:00 +00:00
vidur%netscape.com
d188bf56ad More leak fixes
git-svn-id: svn://10.0.0.236/trunk@11132 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 00:44:40 +00:00
kipp%netscape.com
c8d5139b8e Fixed memory leak (bug #910)
git-svn-id: svn://10.0.0.236/trunk@11131 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 00:37:26 +00:00
pierre%netscape.com
ca559d3fdb fixed Mac build: removed nsIDOMHTMLFieldSetElement.h
git-svn-id: svn://10.0.0.236/trunk@11130 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 00:12:49 +00:00
wtc%netscape.com
6682416805 Include <sys/time.h> for the definition of FD_SETSIZE.
git-svn-id: svn://10.0.0.236/trunk@11129 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 00:08:49 +00:00
vidur%netscape.com
8bc093e8e2 Fixed memory leak in style change code
git-svn-id: svn://10.0.0.236/trunk@11128 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 00:06:26 +00:00
wtc%netscape.com
4fde6a01fa Define _PR_POLL_AVAILABLE and _PR_USE_POLL only for glibc2.
git-svn-id: svn://10.0.0.236/trunk@11127 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 00:01:16 +00:00
wtc%netscape.com
5a2946eacf Include <poll.h> instead of <sys/poll.h>. Some machines don't
have <sys/poll.h>.


git-svn-id: svn://10.0.0.236/trunk@11126 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:54:51 +00:00
pierre%netscape.com
52393d10d5 enabled debugger for some new files (nsScrollbar etc...)
git-svn-id: svn://10.0.0.236/trunk@11125 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:54:30 +00:00
cyeh%netscape.com
e3ec535a8f (Actually mlm)
- Remove definition of inline which is breaking linux build


git-svn-id: svn://10.0.0.236/trunk@11124 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:49:30 +00:00
cyeh%netscape.com
361e97bb7a (Actually mlm)
- Fix return of NULL that should be (JSCFResult) 0


git-svn-id: svn://10.0.0.236/trunk@11123 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:48:51 +00:00
cyeh%netscape.com
afb6aafabc (Actually mlm)
- Remove double definition of LMWindowGroup to avoid lossage


git-svn-id: svn://10.0.0.236/trunk@11122 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:48:24 +00:00
kipp%netscape.com
add47d2e83 Added support for percentage base margins to the root, root-content and block frames
git-svn-id: svn://10.0.0.236/trunk@11121 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:47:59 +00:00
kipp%netscape.com
e3fbcae900 Added in support for border/padding/background-* properties for the HTML frame; added support for margin properties on the child of the HTML frame
git-svn-id: svn://10.0.0.236/trunk@11120 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:39:06 +00:00
kipp%netscape.com
8d56d6cc3c Removed scrollbar sizing from body frame
git-svn-id: svn://10.0.0.236/trunk@11119 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:38:30 +00:00
kipp%netscape.com
f296734c02 Added rules to properly setup HTML and BODY and FRAMESET
git-svn-id: svn://10.0.0.236/trunk@11118 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:38:10 +00:00
kipp%netscape.com
4908e00095 Fixed the value of the background-image property when it's not set in the composite background property
git-svn-id: svn://10.0.0.236/trunk@11117 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:35:55 +00:00
cls%seawood.org
d2b277a624 Moved EDITOR ifdefs as moc does not seem to be able to handle ifdef'ing out entire functions.
git-svn-id: svn://10.0.0.236/trunk@11116 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:30:38 +00:00
cls%seawood.org
fab0aaa2cb Removed libmsgc21 from link line. Removed old history files. Removed msg from REQUIRES.
git-svn-id: svn://10.0.0.236/trunk@11115 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:29:27 +00:00
cls%seawood.org
9c0f60d63a Removed libmsgc21 from link line.
git-svn-id: svn://10.0.0.236/trunk@11114 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:25:54 +00:00
vidur%netscape.com
894b6b95ba Added FieldSetElement interface
git-svn-id: svn://10.0.0.236/trunk@11113 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:23:53 +00:00
spider%netscape.com
8349810cb8 Have View look at their Model for deciding how to render
content


git-svn-id: svn://10.0.0.236/trunk@11112 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:13:11 +00:00
rpotts%netscape.com
950d054946 Fix build bustage of MODULAR_NETLIB...
git-svn-id: svn://10.0.0.236/trunk@11111 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 23:08:21 +00:00
kipp%netscape.com
e44efe2be7 Backed out last change since it was too aggressive
git-svn-id: svn://10.0.0.236/trunk@11109 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:53:48 +00:00
troy%netscape.com
8d229a5a6e Moved ContentReplaced() handler code to style system
git-svn-id: svn://10.0.0.236/trunk@11108 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:47:00 +00:00
jsun%netscape.com
7013cde6b8 Remove msgc from link list since not used
git-svn-id: svn://10.0.0.236/trunk@11107 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:33:49 +00:00
rpotts%netscape.com
effed693be Initialized the returned rect in GetBounds() even if the HWND is null. This fixed a reference to uninitialized memory...
git-svn-id: svn://10.0.0.236/trunk@11106 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:26:28 +00:00
rpotts%netscape.com
f7730500f8 Reworked the way that refresh URLs are handled...
git-svn-id: svn://10.0.0.236/trunk@11105 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:25:21 +00:00
rpotts%netscape.com
341298f9e8 Added reference counting to modular netlib Contexts...
git-svn-id: svn://10.0.0.236/trunk@11104 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:24:32 +00:00
rpotts%netscape.com
2f92cab9c9 Added a proxy routine for net_CallexitRoutine(...) so it would be called on the correct thread at the proper time...
git-svn-id: svn://10.0.0.236/trunk@11103 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:24:09 +00:00
dcone%netscape.com
a035d18976 fixed offset problems and parent heiarchy problems
git-svn-id: svn://10.0.0.236/trunk@11102 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:23:58 +00:00
dcone%netscape.com
a377c1f3a3 Added NS_NATIVE_OFFSETX and Y for getnativedata.
Mac needed for the renderingcontext


git-svn-id: svn://10.0.0.236/trunk@11101 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:22:57 +00:00
leaf%mozilla.org
998b16b969 (Actually mlm)
Branch landing: Multithreading libmocha in mozilla.

- Add new file lm_wngrp.c


git-svn-id: svn://10.0.0.236/trunk@11100 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:22:36 +00:00
rpotts%netscape.com
27c06f1cd0 moved the define of NETLIB_THREAD out into config/config.mak
git-svn-id: svn://10.0.0.236/trunk@11099 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:22:32 +00:00
rpotts%netscape.com
21686eca15 changed the call to net_CallExitRoutine to net_CallExitRoutineProxy() so that if netlib is running in its own thread, the call can be dispatched to the correct thread... IF netlib is running in the mozilla thread, net_CallExitRoutine(...) is called directly.
git-svn-id: svn://10.0.0.236/trunk@11098 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:21:50 +00:00
leaf%mozilla.org
28ab23b3c8 (Actually mlm)
Branch landing: Multithreading libmocha in mozilla.

- Remove lm_crippled_context from export list.


git-svn-id: svn://10.0.0.236/trunk@11097 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:21:40 +00:00
dcone%netscape.com
4af1230f05 Added setorigin to init and destructor
git-svn-id: svn://10.0.0.236/trunk@11096 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:19:54 +00:00
rpotts%netscape.com
69c68ff50f Added a reference count field to MWContext when MODULAR_NETLIB is defined. This is necessary because MWContexts are now shared by multiple threads...
git-svn-id: svn://10.0.0.236/trunk@11095 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:19:50 +00:00
rpotts%netscape.com
551891377c Added a define for NETLIB_THREAD when the MODULAR_NETLIB environment variable is defined
git-svn-id: svn://10.0.0.236/trunk@11094 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:18:43 +00:00
mlm%netscape.com
5654ab2b30 Branch landing: Multithreading libmocha in mozilla.
- Add context parameter to LM_LockJS and friends.


git-svn-id: svn://10.0.0.236/trunk@11092 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:12:33 +00:00
mlm%netscape.com
4e157f4183 Branch landing: Multithreading libmocha in mozilla.
- Move jscookie.h to include directory.
- Add JS_BeginRequest and JS_EndRequest for thread safety.


git-svn-id: svn://10.0.0.236/trunk@11091 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:11:47 +00:00
mlm%netscape.com
1b4059094b Branch landing: Multithreading in mozilla.
- Move JSCF_Execute to the mocha thread.
- Add JS_BeginRequest and JS_EndRequest for thread safety.


git-svn-id: svn://10.0.0.236/trunk@11090 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:10:49 +00:00
mlm%netscape.com
31361a78d0 Branch landing: Multithreading libmocha in mozilla.
- Remove reference to lm_crippled_context; add an accessor function instead.


git-svn-id: svn://10.0.0.236/trunk@11088 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:09:58 +00:00
mlm%netscape.com
039d692684 Branch landing: Multithreading libmocha in mozilla.
- Add cx parameter to LM_LockJS and friends.


git-svn-id: svn://10.0.0.236/trunk@11087 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:09:03 +00:00
mlm%netscape.com
4486571061 Branch landing: Multithreading libmocha in mozilla.
- Add JS_BeginRequest and JS_EndRequest calls
- Add context parameters to some functions


git-svn-id: svn://10.0.0.236/trunk@11086 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:08:28 +00:00
mlm%netscape.com
e8755f7471 Branch landing: Multithreading libmocha in mozilla.
- Add JS_BeginRequest() and JS_EndRequest() to make sure contexts don't
   stomp on each other.


git-svn-id: svn://10.0.0.236/trunk@11085 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:07:48 +00:00
michaelp%netscape.com
48c90e8167 New style test
git-svn-id: svn://10.0.0.236/trunk@11084 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:07:41 +00:00
mlm%netscape.com
3d33759927 Branch landing: Multithreading libmocha in mozilla.
- Add context parameter to LM_LockJS and friends.


git-svn-id: svn://10.0.0.236/trunk@11083 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:06:47 +00:00
mlm%netscape.com
8dd7bb2efd Branch landing: Multithreading in libmocha.
- Add parameters to LM_LockJS and friends.


git-svn-id: svn://10.0.0.236/trunk@11082 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:06:09 +00:00
mlm%netscape.com
5ae966a47b Branch landing: Multithreading libmocha in mozilla.
- New file to toss contexts into thread group lists and otherwise deal
   with multithreading data.


git-svn-id: svn://10.0.0.236/trunk@11081 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:05:22 +00:00
mlm%netscape.com
a7c8885a86 Branch landing: Multithreading libmocha in mozilla.
- Add multiple window groups to allow windows to execute JS on
   different threads.
- Add new context parameters to JS and libmocha functions for thread
   safety.


git-svn-id: svn://10.0.0.236/trunk@11080 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:04:34 +00:00
mlm%netscape.com
7d803aaedd Branch landing: Multithreading libmocha in mozilla.
- Change semantics of LM_LockJS to add context parameter.


git-svn-id: svn://10.0.0.236/trunk@11079 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:03:37 +00:00
mlm%netscape.com
aa0f94398c Branch landing: Multithreading libmocha in mozilla.
- Add casts to make -DJS_THREADSAFE work.


git-svn-id: svn://10.0.0.236/trunk@11078 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:02:47 +00:00
mlm%netscape.com
6b810bf31d Branch landing: Multithreading libmocha in mozilla.
- Add -DJS_THREADSAFE


git-svn-id: svn://10.0.0.236/trunk@11077 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:02:19 +00:00
mlm%netscape.com
c4e91102b0 Branch landing: Multithreading libmocha in mozilla.
- Add jscookie.h
- Move JSCF_ function to mocha thread for thread safety.
- Add functions to libevent.h to deal with multiple window groups.
- Add functions to libmocha.h to deal with multiple window groups.


git-svn-id: svn://10.0.0.236/trunk@11076 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:01:25 +00:00
mlm%netscape.com
8a333e014d Branch landing: Multithreading in mozilla.
- Add -DJS_THREADSAFE to builds.


git-svn-id: svn://10.0.0.236/trunk@11075 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:00:13 +00:00
mlm%netscape.com
9cc4047100 Branch landing: Multithreading in mozilla.
- Add -DJS_THREADSAFE and new file lm_wngrp.c.


git-svn-id: svn://10.0.0.236/trunk@11074 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 21:59:47 +00:00
toshok%netscape.com
dbf9441ea1 package is addresscard, not AddressCard
git-svn-id: svn://10.0.0.236/trunk@11073 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 21:25:57 +00:00
cyeh%netscape.com
c464bea451 removing obsolete project files
git-svn-id: svn://10.0.0.236/trunk@11072 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 21:18:14 +00:00
toshok%netscape.com
4efdbecf72 package is addresscard, not AddressCard
git-svn-id: svn://10.0.0.236/trunk@11068 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 21:14:20 +00:00
spider%netscape.com
efa1dde27d Shutdown Inet
git-svn-id: svn://10.0.0.236/trunk@11067 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 21:07:57 +00:00
spider%netscape.com
e7b9dd730e Fix for latest raptor code
git-svn-id: svn://10.0.0.236/trunk@11066 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 20:55:26 +00:00
wtc%netscape.com
4b4994d255 Removed unused macro and enum constant definitions.
git-svn-id: svn://10.0.0.236/trunk@11065 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 20:38:11 +00:00
wtc%netscape.com
c0b3e1fb5a NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH.
git-svn-id: svn://10.0.0.236/trunk@11064 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 20:34:39 +00:00
morse%netscape.com
f34368eb6a fix up wording for single signon
git-svn-id: svn://10.0.0.236/trunk@11063 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 20:11:05 +00:00
kipp%netscape.com
08a576b7dc Hooked up width/height attributes to style changed reflow
git-svn-id: svn://10.0.0.236/trunk@11062 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 18:25:20 +00:00
kipp%netscape.com
2d8ee39707 Setup repository so that netlib will work
git-svn-id: svn://10.0.0.236/trunk@11061 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 18:18:09 +00:00
kipp%netscape.com
c1117c47db Made SkipRuleSet actually work
git-svn-id: svn://10.0.0.236/trunk@11060 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 18:17:48 +00:00
kipp%netscape.com
194d9f3a48 new
git-svn-id: svn://10.0.0.236/trunk@11059 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 18:17:07 +00:00
rogerl%netscape.com
e47ccc415b Oops, checked in a call to decompileFunctionBody which was for debugging
purposes only.


git-svn-id: svn://10.0.0.236/trunk@11058 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 18:10:27 +00:00
ramiro%netscape.com
c64125cb32 Add comment
git-svn-id: svn://10.0.0.236/trunk@11057 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 18:06:15 +00:00
ramiro%netscape.com
564f6b97d8 Adding QtMozilla to repository (qtfe).
git-svn-id: svn://10.0.0.236/trunk@11056 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 18:04:00 +00:00
spider%netscape.com
b6ec3a6450 Modularized Julian now resided in Zulu
git-svn-id: svn://10.0.0.236/trunk@11055 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 17:58:12 +00:00
kipp%netscape.com
cdf708174f Resurrected tests
git-svn-id: svn://10.0.0.236/trunk@11054 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 17:55:03 +00:00
kipp%netscape.com
9cf94d314b Added tests back into the build
git-svn-id: svn://10.0.0.236/trunk@11053 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 17:54:48 +00:00
kipp%netscape.com
d09c4a01e4 Removed silly SIDE #define
git-svn-id: svn://10.0.0.236/trunk@11052 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 17:50:53 +00:00
kipp%netscape.com
973e769864 Support break-before/after for block frames
git-svn-id: svn://10.0.0.236/trunk@11051 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 17:50:09 +00:00
ramiro%netscape.com
d5ffdf24fe Fix busted build. Dont return a value for a void function.
git-svn-id: svn://10.0.0.236/trunk@11050 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 17:31:36 +00:00
kipp%netscape.com
5c11554cef Don't block incremental loading reflows because of mInMonolithicContainer (it was necessary early on, now it isn't)
git-svn-id: svn://10.0.0.236/trunk@11049 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 17:30:59 +00:00
sman%netscape.com
f35512299b use supplied date range rather than precalculated dates
git-svn-id: svn://10.0.0.236/trunk@11048 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 17:07:58 +00:00
kipp%netscape.com
487b69be96 Removed some dead crud and implemented AttributeChanged
git-svn-id: svn://10.0.0.236/trunk@11047 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 16:35:01 +00:00
kipp%netscape.com
6494f143f9 Support style changes for leaf frames
git-svn-id: svn://10.0.0.236/trunk@11046 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 16:33:38 +00:00
saari%netscape.com
60d87886da This should fix the burning Mac tree...
git-svn-id: svn://10.0.0.236/trunk@11045 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 16:29:55 +00:00
saari%netscape.com
3573cd6a6a next step in fixing the tree
git-svn-id: svn://10.0.0.236/trunk@11044 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 16:23:07 +00:00
kipp%netscape.com
6bf24eee8e Renamed FrameDeleted to FrameRemoved
git-svn-id: svn://10.0.0.236/trunk@11043 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 16:12:13 +00:00
kipp%netscape.com
414858d8e8 Renamed style-changed reflow method; fixed implementation to generate a reflow command
git-svn-id: svn://10.0.0.236/trunk@11042 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 16:11:36 +00:00
kipp%netscape.com
5c2bb7fdc6 Switch over to FrameRemoved instead of FrameDeleted
git-svn-id: svn://10.0.0.236/trunk@11041 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 16:10:49 +00:00
kipp%netscape.com
97462690f6 Support (weakly) style-changed reflow and fixup naming of frame-removed methods
git-svn-id: svn://10.0.0.236/trunk@11040 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 16:10:10 +00:00
kipp%netscape.com
e8d5d6f05d Added StyleChanged reflow command; renamed FrameDeleted to be consistent with everything else
git-svn-id: svn://10.0.0.236/trunk@11039 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 16:09:04 +00:00
saari%netscape.com
784b153508 One more step in fixing the burning tree
git-svn-id: svn://10.0.0.236/trunk@11038 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 16:08:48 +00:00
dcone%netscape.com
7cd8b2a49d updated resize
git-svn-id: svn://10.0.0.236/trunk@11037 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 15:13:29 +00:00
dcone%netscape.com
74febbdf92 fixed some resizing issues
git-svn-id: svn://10.0.0.236/trunk@11036 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 15:12:55 +00:00
dcone%netscape.com
2fbb21a5f0 fixed resizing issues
git-svn-id: svn://10.0.0.236/trunk@11035 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 15:12:22 +00:00
dcone%netscape.com
34f4d1198e fixed some sizing issues
git-svn-id: svn://10.0.0.236/trunk@11034 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 15:12:05 +00:00
saari%netscape.com
16653a269a MacOS only
Modifications to StringLib. It now functions like the Unix version where we have all of the strings in a giant case statement instead of in resources. 

This is necessary for moving to Pro4 and reducing the number of resources in the Mac Navigator.


git-svn-id: svn://10.0.0.236/trunk@11033 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 14:45:53 +00:00
ramiro%netscape.com
3c05de4713 dgux is now DGUX. Thanks to fraioli@dg-rtp.dg.com (Marc J. Fraioli) for
pointing this out.


git-svn-id: svn://10.0.0.236/trunk@11032 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 14:00:00 +00:00
ramiro%netscape.com
5807949b88 Restore the resources to non const. const was causing problems on some
platforms.  Thanks to "Marc J. Fraioli" <fraioli@dg-rtp.dg.com> for pointing
this out.


git-svn-id: svn://10.0.0.236/trunk@11031 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 11:38:07 +00:00
mcafee%netscape.com
5324f744e6 Uninitialized variable warning from gcc
git-svn-id: svn://10.0.0.236/trunk@11030 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 10:47:56 +00:00
mcafee%netscape.com
11448daeb1 More PostScript font names, courtesy <junker@jazz.snu.ac.kr>
git-svn-id: svn://10.0.0.236/trunk@11029 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 10:24:16 +00:00
mcafee%netscape.com
97f42bd09f Added support for paper size, thanks to <junker@jazz.snu.ac.kr> for this fix
git-svn-id: svn://10.0.0.236/trunk@11028 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 10:23:01 +00:00
mcafee%netscape.com
098ffb5bfa Unix Non-latin1 PostScript conversion enhancement, thanks to <junker@jazz.snu.ac.kr> for providing this fix. Details of the fix are at http://jazz.snu.ac.kr/~junker/work/mozilla/unixps.html. Non-latin1 title printing in xl_annotate_page. Give charset info and URL in postscript output. Give attribute info in postscript output. Give papersize info in DSC comment. Be more liberal in parsing AFM files. Non-latin1 underline and strikeout decoration enabled. Japanese printing charset is fixed to SJIS(in resource file).
git-svn-id: svn://10.0.0.236/trunk@11027 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 10:21:50 +00:00
mcafee%netscape.com
46fbd47212 Moved N_FONTS, PS_BBox, PS_CharInfo, PS_FontInfo to include/xlate.h, added XP_ParseAFMFile() to xlate.h
git-svn-id: svn://10.0.0.236/trunk@11026 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 10:19:18 +00:00
mcafee%netscape.com
45d2cd99d5 Added parseAFM.c
git-svn-id: svn://10.0.0.236/trunk@11025 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 10:17:52 +00:00
mcafee%netscape.com
f1617557ac Initial version, thanks to <junker@jazz.snu.ac.kr> for providing this pd source from Adobe.
git-svn-id: svn://10.0.0.236/trunk@11024 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 10:16:57 +00:00
pinkerton%netscape.com
d4c55cfc35 vidur's dom/css changes. Got the rest of them, I hope. Added new grouping (css) and all the files in dom:src:css.
git-svn-id: svn://10.0.0.236/trunk@11023 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 06:19:02 +00:00
pinkerton%netscape.com
cc455f7e52 vidur's dom/css changes. Added a couple of new files.
git-svn-id: svn://10.0.0.236/trunk@11022 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 05:22:06 +00:00
pinkerton%netscape.com
f9389463bb add dom:public:css to manifest list.
git-svn-id: svn://10.0.0.236/trunk@11021 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 05:21:27 +00:00
troy%netscape.com
be32dfbcc4 Moved ContentDeleted() document notification code to the style system which
generates the reflow command


git-svn-id: svn://10.0.0.236/trunk@11020 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 05:13:06 +00:00
wtc%netscape.com
4aaac00988 Removed the inclusion of private NSPR header "prosdep.h" on the Mac.
Reviewed and approved by Warren Harris.


git-svn-id: svn://10.0.0.236/trunk@11019 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 04:43:58 +00:00
wtc%netscape.com
d4861241b8 Removed calls to the obsolete function PR_GetGCInfo(). That function
is only for Java garbage collection and so doesn't matter any more.
Reviewed and approved by Steve Dagley.


git-svn-id: svn://10.0.0.236/trunk@11018 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 04:42:21 +00:00
wtc%netscape.com
43f79c5880 Removed references to the unused libmsgc21 library.
Reviewed and approved by David Hyatt and Daniel Matejka.


git-svn-id: svn://10.0.0.236/trunk@11016 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 04:35:40 +00:00
peterl%netscape.com
ad7699672b handle HTML comment tags as whitespace
git-svn-id: svn://10.0.0.236/trunk@11013 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 01:50:51 +00:00
peterl%netscape.com
a0cc8381c3 fixed bug preventing properties from parsing if followed by whitespace.
ie: color : blue didn't work


git-svn-id: svn://10.0.0.236/trunk@11012 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 01:50:34 +00:00
peterl%netscape.com
445ae993ad removed table default values
git-svn-id: svn://10.0.0.236/trunk@11011 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 01:49:27 +00:00
peterl%netscape.com
f90a6c8656 performance tweaks to apply style change
git-svn-id: svn://10.0.0.236/trunk@11010 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 01:49:10 +00:00
peterl%netscape.com
8026395a26 removed content apis from style context
git-svn-id: svn://10.0.0.236/trunk@11009 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 01:48:22 +00:00
vidur%netscape.com
191acee8d0 Fix build bustage
git-svn-id: svn://10.0.0.236/trunk@11008 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 01:27:44 +00:00
vidur%netscape.com
446f29bffe style test
git-svn-id: svn://10.0.0.236/trunk@11007 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 00:59:01 +00:00
eyork%netscape.com
563a20a8f5 Fix Solaris Build problems
git-svn-id: svn://10.0.0.236/trunk@11005 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 00:57:28 +00:00
eyork%netscape.com
006e394f93 Fix Solaris Build Problem
git-svn-id: svn://10.0.0.236/trunk@11004 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 00:54:04 +00:00
eyork%netscape.com
0a4ce1b600 Fix Solaris build problem
git-svn-id: svn://10.0.0.236/trunk@11003 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 00:52:46 +00:00
vidur%netscape.com
ae2d56cabc Added new style interfaces. Implemented getStyle() on HTMLElement. Moved DOM fields into side struct for nsGenericHTMLElement. Implemented style declaration interface on proxy. Added new entry point to CSSParser and new methods to style declaration.
git-svn-id: svn://10.0.0.236/trunk@11002 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 00:51:45 +00:00
vidur%netscape.com
5e8d2d6415 Added new style interfaces. Modified property slot id allocation.
git-svn-id: svn://10.0.0.236/trunk@11001 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 00:49:44 +00:00
cyeh%netscape.com
d09199c9f8 remove crusty old NSPR20 #ifdef
git-svn-id: svn://10.0.0.236/trunk@11000 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 00:30:06 +00:00
kipp%netscape.com
51957b7f8f Fixed attribute atom typo
git-svn-id: svn://10.0.0.236/trunk@10999 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 00:01:08 +00:00
kipp%netscape.com
386e7b39df Added some attribute handlers for inline frames (temporary)
git-svn-id: svn://10.0.0.236/trunk@10998 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 00:00:55 +00:00
kipp%netscape.com
dfee384cdd Added methods for triggering style/rendering/reflow changes
git-svn-id: svn://10.0.0.236/trunk@10997 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 00:00:22 +00:00
kipp%netscape.com
cc2b0a1cf8 Hooked up noshade attribute to trigger a render
git-svn-id: svn://10.0.0.236/trunk@10996 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:57:01 +00:00
kipp%netscape.com
f316e65b76 Disable a certain kind of caching to make incremental style changes work
git-svn-id: svn://10.0.0.236/trunk@10995 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:56:45 +00:00
kipp%netscape.com
70a8128e14 Expose remap method
git-svn-id: svn://10.0.0.236/trunk@10994 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:56:30 +00:00
kipp%netscape.com
fa13ca7bfd Added in an immedate flag for controlling Invalidate rendering
git-svn-id: svn://10.0.0.236/trunk@10993 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:56:15 +00:00
kipp%netscape.com
3aec276c63 Exposed a new method
git-svn-id: svn://10.0.0.236/trunk@10992 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:55:48 +00:00
pierre%netscape.com
4cab2fc81b fixing Mac raptor build: define XP_ERRNO only ifndef'd
git-svn-id: svn://10.0.0.236/trunk@10991 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:54:31 +00:00
pinkerton%netscape.com
a2804d24b5 use system mdef instead of mercutio for all menus.
git-svn-id: svn://10.0.0.236/trunk@10990 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:45:17 +00:00
pinkerton%netscape.com
f7b9865a2e changed all menus that used mercutio to use system mdef instead.
git-svn-id: svn://10.0.0.236/trunk@10989 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:44:43 +00:00
pinkerton%netscape.com
26abd44281 Change all menus that used mercutio to use system mdef. Added some xmnu to begin support of shift/cmd accelerators.
git-svn-id: svn://10.0.0.236/trunk@10988 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:44:10 +00:00
pinkerton%netscape.com
6aaf8fa7da make all menus that used Mercutio now use system MDEF.
git-svn-id: svn://10.0.0.236/trunk@10987 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:43:04 +00:00
hyatt%netscape.com
f76bab1497 Bug fix for dialogs popping up out of popup windows.
git-svn-id: svn://10.0.0.236/trunk@10985 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:35:03 +00:00
pinkerton%netscape.com
c1cbae5646 Replace menus that used mercutio with system MDEF.
git-svn-id: svn://10.0.0.236/trunk@10984 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:32:46 +00:00
pinkerton%netscape.com
046d358f03 Make all menus use the system MDEF not Mercutio.
git-svn-id: svn://10.0.0.236/trunk@10982 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:30:01 +00:00
peterl%netscape.com
67dd35cbe9 cleaned up markup to match descriptions
added text decoration color test


git-svn-id: svn://10.0.0.236/trunk@10981 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:28:10 +00:00
pierre%netscape.com
0db2849d84 checkout cmd/macfe/applevnt + central + gui + include + pch + projects+ utility instead of the whole cmd/macfe folder
git-svn-id: svn://10.0.0.236/trunk@10980 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:27:22 +00:00
cyeh%netscape.com
06b17102af add more mac directories to Raptor
git-svn-id: svn://10.0.0.236/trunk@10979 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:24:39 +00:00
kostello%netscape.com
7cda5258ba Removed:
nsHTMLContent.cpp
nsHTMLTagContent.cpp
nsHTMLContainer.cpp
nsDOMAttributes.cpp
nsDOMIterator.cpp
nsDOMNodeList.cpp


git-svn-id: svn://10.0.0.236/trunk@10978 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:18:32 +00:00
pierre%netscape.com
f780ed3335 fixing Mac raptor build: include xp_sock.h
git-svn-id: svn://10.0.0.236/trunk@10977 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:08:56 +00:00
pierre%netscape.com
391708a77c added xp_sock.h
git-svn-id: svn://10.0.0.236/trunk@10976 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 23:07:15 +00:00
pinkerton%netscape.com
7974321fff fix mac raptor: removed nsHTMLbullet.cpp; exchanged html/forms files with their counterparts ending in Frame.
git-svn-id: svn://10.0.0.236/trunk@10974 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 22:30:05 +00:00
pinkerton%netscape.com
e726c44723 fix mac raptor, added nsTraceRefcnt.cpp
git-svn-id: svn://10.0.0.236/trunk@10973 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 22:29:09 +00:00
akkana%netscape.com
10411b6036 Remove rosetta references from mail compose code
git-svn-id: svn://10.0.0.236/trunk@10972 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:46:32 +00:00
mcafee%netscape.com
4b56adf362 Check for null pointer; print context doesn't have history. r=morse,nisheeth
git-svn-id: svn://10.0.0.236/trunk@10971 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:41:53 +00:00
kipp%netscape.com
703b38ab21 Implement revised nsIDocument/nsIDocumentObserver methods
git-svn-id: svn://10.0.0.236/trunk@10970 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:39:47 +00:00
kipp%netscape.com
6beaa547d6 changed frame remove methods
git-svn-id: svn://10.0.0.236/trunk@10969 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:39:29 +00:00
kipp%netscape.com
84501778aa XPCOM'ized the notification methods; changed frame remove methods; added AttributeChanged
git-svn-id: svn://10.0.0.236/trunk@10968 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:39:16 +00:00
kipp%netscape.com
49b247a64d nuked
git-svn-id: svn://10.0.0.236/trunk@10967 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:38:05 +00:00
kipp%netscape.com
3e2105525b Fixed up includes to not depend on old content model classes
git-svn-id: svn://10.0.0.236/trunk@10966 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:37:45 +00:00
kipp%netscape.com
e43f0e122c Added bullet pseudo-style
git-svn-id: svn://10.0.0.236/trunk@10965 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:36:21 +00:00
kipp%netscape.com
966b872fec Eliminate SetAttr/UnsetAttr; use standard 3arg version now; leave the attribute impl macros alone for now; pass on attribute changes to the document when aNotify is PR_TRUE
git-svn-id: svn://10.0.0.236/trunk@10964 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:35:52 +00:00
kipp%netscape.com
cd7a6e5c31 Pass through notify argument with UnsetAttribute method
git-svn-id: svn://10.0.0.236/trunk@10963 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:34:56 +00:00
kipp%netscape.com
2a6880e526 Removed unused include
git-svn-id: svn://10.0.0.236/trunk@10962 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:34:31 +00:00
kipp%netscape.com
0a83117a07 Updated UnsetAttribute to have a notification flag
git-svn-id: svn://10.0.0.236/trunk@10961 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:33:56 +00:00
kipp%netscape.com
0740c45e9d Fixed code to not depend on a (bad!) cast and instead use query-interface
git-svn-id: svn://10.0.0.236/trunk@10960 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:33:20 +00:00
kipp%netscape.com
f5c05399de Removed bullet pseudo-content and instead use pseudo style to process bullets properly
git-svn-id: svn://10.0.0.236/trunk@10959 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:32:39 +00:00
kipp%netscape.com
bd52764a22 Added bullet pseudo style attribute
git-svn-id: svn://10.0.0.236/trunk@10958 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:32:12 +00:00
kipp%netscape.com
c51f486001 Removed old source files from the build
git-svn-id: svn://10.0.0.236/trunk@10957 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:31:43 +00:00
cyeh%netscape.com
60913d7647 removing old NSPR20 #ifdefs
git-svn-id: svn://10.0.0.236/trunk@10956 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:13:36 +00:00
slamm%netscape.com
607fbc6afc Backout accidental checkin.
git-svn-id: svn://10.0.0.236/trunk@10955 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:13:24 +00:00
terry%netscape.com
b7913bd532 Fixed bug 890. Apparently, Apache has the habit of lower-casing some
of the boundary strings, so we'll just lower-case them all to make
things work.


git-svn-id: svn://10.0.0.236/trunk@10954 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:12:46 +00:00
slamm%netscape.com
a2b4be9279 Back out accidental checkin.
git-svn-id: svn://10.0.0.236/trunk@10953 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:10:14 +00:00
cyeh%netscape.com
1181ba7080 remove old MOCHA and NSPR20 #ifdef
git-svn-id: svn://10.0.0.236/trunk@10952 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:09:58 +00:00
cyeh%netscape.com
b5597b73c2 remove old NSPR20 #ifdef
git-svn-id: svn://10.0.0.236/trunk@10951 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 21:01:00 +00:00
beard%netscape.com
c4e831c8b9 Added #undef of NS_EXPORT, so it won't conflict with nsCom.h.
git-svn-id: svn://10.0.0.236/trunk@10950 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 20:56:58 +00:00
hyatt%netscape.com
8a95a1cd77 Fix to the title bar drawing code so that the Win98 gradient fill is used.
git-svn-id: svn://10.0.0.236/trunk@10949 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 20:54:52 +00:00
cyeh%netscape.com
2f10b69f3e removing old NSPR20 #ifdefs
git-svn-id: svn://10.0.0.236/trunk@10947 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 20:47:57 +00:00
cyeh%netscape.com
37085171b5 removing old NSPR20 #ifdef
git-svn-id: svn://10.0.0.236/trunk@10946 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 20:36:57 +00:00
troy%netscape.com
5fe4f60324 Added call to ProcessChildren() for OBJECT tag
git-svn-id: svn://10.0.0.236/trunk@10945 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 20:35:59 +00:00
cyeh%netscape.com
66dc92cb7c remove old NSPR20 #ifdef
git-svn-id: svn://10.0.0.236/trunk@10944 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 20:35:44 +00:00
blizzard%appliedtheory.com
4cbd36c8b5 Add changes from Michael O'Reilly <michael@metal.iinet.net.au> which
initialize RDF and point the RDF progress info at a dummy frame.


git-svn-id: svn://10.0.0.236/trunk@10943 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 20:28:56 +00:00
slamm%netscape.com
01045ca981 Add a command for editing the toolbars and reformat the commands into a nicer format.cmd/xfe/src/xfe_commands
git-svn-id: svn://10.0.0.236/trunk@10942 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 20:19:20 +00:00
slamm%netscape.com
b8edcf36ae Trim down formatItem. Some of the function isn't used and hasn't been for a long time.
git-svn-id: svn://10.0.0.236/trunk@10941 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 20:19:11 +00:00
slamm%netscape.com
ebfe14a0ec Fix a crash that happens when quiting.
git-svn-id: svn://10.0.0.236/trunk@10940 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 20:19:07 +00:00
slamm%netscape.com
0a657e68b8 Remove reference to bkmks.h
git-svn-id: svn://10.0.0.236/trunk@10939 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 20:19:04 +00:00
slamm%netscape.com
ae2f333e6a Add a command for editing the toolbars.
git-svn-id: svn://10.0.0.236/trunk@10938 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 20:19:01 +00:00
slamm%netscape.com
a4c746853f Fix spelling errors.
git-svn-id: svn://10.0.0.236/trunk@10937 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 20:18:56 +00:00
dcone%netscape.com
346151d956 added a search path
git-svn-id: svn://10.0.0.236/trunk@10936 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 20:12:47 +00:00
ftang%netscape.com
0fddd3d47e store only UTF8 into history entry
git-svn-id: svn://10.0.0.236/trunk@10935 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 19:50:02 +00:00
av%netscape.com
640c268911 Changed URL for plugin finder page -- approved by amusil
git-svn-id: svn://10.0.0.236/trunk@10934 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 19:46:07 +00:00
spider%netscape.com
2074a3776d Removing old stream listener classes
git-svn-id: svn://10.0.0.236/trunk@10933 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 19:17:13 +00:00
cyeh%netscape.com
18aa694bf9 fix misspelling
git-svn-id: svn://10.0.0.236/trunk@10932 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 19:12:35 +00:00
cyeh%netscape.com
c6f38c4110 fixing bugs in raptor entries.
git-svn-id: svn://10.0.0.236/trunk@10931 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 19:11:37 +00:00
sman%netscape.com
07b0dfd19b Layer updates
git-svn-id: svn://10.0.0.236/trunk@10930 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 18:41:30 +00:00
terry%netscape.com
c904abb332 It turns out that blank lines were being skipped a little too
anxiously.


git-svn-id: svn://10.0.0.236/trunk@10929 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 18:31:05 +00:00
despotdaemon%netscape.com
4d5d3f2423 Pseudo-automatic update of changes made by wtc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@10928 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 18:07:27 +00:00
troy%netscape.com
ac234bca1a Removed mChildCount from nsContainerFrame
git-svn-id: svn://10.0.0.236/trunk@10927 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 17:56:35 +00:00
kipp%netscape.com
8e06d1108f Fixed block's max-element-size computation for child inline frames
git-svn-id: svn://10.0.0.236/trunk@10926 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 17:47:25 +00:00
kmcclusk%netscape.com
1c65627670 Added INITREFCNT to constructor
git-svn-id: svn://10.0.0.236/trunk@10925 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 17:44:33 +00:00
dcone%netscape.com
b63ef940fd updated project with new files, took out obsolete files
git-svn-id: svn://10.0.0.236/trunk@10924 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 17:31:25 +00:00
kmcclusk%netscape.com
22c1640fcd Removed NS_DECL_ISUPPORTS in classes which would cause multiple mRefCnt member
variables to be delcared


git-svn-id: svn://10.0.0.236/trunk@10923 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 17:28:07 +00:00
buster%netscape.com
0c00c9f654 removed lots of assumptions about frame ordering and containership.
table frames no longer assume they are n levels below the inner table frame
table frames no longer assume their child frames are always the expected type of
frame.  Now they check the display type and use that as sufficient proof that the frame
is of the right type.  This implies a heavy reliance on the frame construction code to do
the right thing and always stamp out the right kind of frame for a given display type.


git-svn-id: svn://10.0.0.236/trunk@10922 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 16:37:22 +00:00
jfrancis%netscape.com
78d84133d6 Continuing Ender work
git-svn-id: svn://10.0.0.236/trunk@10921 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 16:30:04 +00:00
jfrancis%netscape.com
2989001a44 continueing Ender work
git-svn-id: svn://10.0.0.236/trunk@10920 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 16:29:27 +00:00
ramiro%netscape.com
64eef7f67d Link with XfeToolTip.
git-svn-id: svn://10.0.0.236/trunk@10919 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 14:54:35 +00:00
ramiro%netscape.com
7bb7e3e740 Build XfeToolTip and tests by default.
git-svn-id: svn://10.0.0.236/trunk@10918 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 14:35:54 +00:00
kin%netscape.com
0c7eaf3285 Modified edt_InitEscapes() to check for '>'. This will make composer write
out &gt; into the HTML stream instead of the '>' character.


git-svn-id: svn://10.0.0.236/trunk@10917 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 14:33:09 +00:00
kin%netscape.com
f4a511c71e Modifications to XFE_EmbeddedEditor constructor:
- Initialize charset to CS_LATIN1
  - Prevent editor from showing until layout has positioned it and
	wants to display it.
  - Manage toolbox and toolbar ahead of time so we can accurately calculate
    the height of the chrome.
  - Commented out paragraph style and character underline buttons again, they
    got blown away by the previous checkin.
  - Added spellcheck button to toolbar.
  - Moved fe_{add_to,remove_from}_all_MWContext_list() functions from
	EmbeddedEditor.cpp to context_funcs.cpp.


git-svn-id: svn://10.0.0.236/trunk@10916 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 14:31:50 +00:00
ramiro%netscape.com
0afb47919d Finalize doc string support. Add better callbacks.
git-svn-id: svn://10.0.0.236/trunk@10915 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 14:25:56 +00:00
wtc%netscape.com
0ed6d23983 Removed references to the obsolete library libmsgc21 in the comments.
Reviewed and approved by Scott Furman.
Files changed: js/src/{Makefile,Makefile.in},
js/src/xpcom/{Makefile,Makefile.in}.


git-svn-id: svn://10.0.0.236/trunk@10914 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 14:16:52 +00:00
wtc%netscape.com
139f62b7fb Removed unneeded libmsgc21.
Files changed: cmd/xfe/{Makefile,Makefile.in},
cmd/stubfe/{Makefile,Makefile.in}.


git-svn-id: svn://10.0.0.236/trunk@10913 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 14:11:18 +00:00
mcafee%netscape.com
820a06594c Fix mkdir() problem for BSDI, thanks to <driehuis@playbeing.org> for this patch
git-svn-id: svn://10.0.0.236/trunk@10912 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 09:43:55 +00:00
ramiro%netscape.com
a390956176 Fix classic off-by-one strcat buffer error.
Thanks to Michael O'Reilly <michael@metal.iinet.net.au> for providing the fix.


git-svn-id: svn://10.0.0.236/trunk@10911 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 09:27:37 +00:00
ftang%netscape.com
ee5328d780 Make the RDF stuff always render UTF8
git-svn-id: svn://10.0.0.236/trunk@10910 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 09:23:48 +00:00
ftang%netscape.com
e68d1e3642 Fix UTF8 problem
git-svn-id: svn://10.0.0.236/trunk@10909 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 09:23:19 +00:00
ftang%netscape.com
1b787aeb7f fix the wrong measurement problem in UTF8 by calling the new UTF8 function
git-svn-id: svn://10.0.0.236/trunk@10908 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 09:22:32 +00:00
ramiro%netscape.com
136d23f238 Add support for documentation strings.
git-svn-id: svn://10.0.0.236/trunk@10907 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 09:22:27 +00:00
ftang%netscape.com
e61e5700e9 implement better UTF8 drawing support. Implement mid and end truncation for UTF8
git-svn-id: svn://10.0.0.236/trunk@10906 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 09:18:25 +00:00
ftang%netscape.com
5f94fb22be add CDefaultFontFontSwitcher.cp for better UTF8 support
git-svn-id: svn://10.0.0.236/trunk@10905 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 09:17:26 +00:00
mcafee%netscape.com
a29226d213 Moving comment to fix AIX & Digital sed breakage. Maybe sed really does suck, as the comment suggests.
git-svn-id: svn://10.0.0.236/trunk@10904 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 07:54:04 +00:00
jband%netscape.com
8ba7042512 added class to minimize drawinf of list items. lxr friendlier generated files
git-svn-id: svn://10.0.0.236/trunk@10902 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 07:28:52 +00:00
jband%netscape.com
0a736ba31f add targets, generated files use C-stlye comments to be more lxr friendly
git-svn-id: svn://10.0.0.236/trunk@10901 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 07:27:07 +00:00
wtc%netscape.com
29a67aadb5 Got rid of references to "OSF1" in this file. Thanks to
raff@aromatic.com for the problem report and the patch.


git-svn-id: svn://10.0.0.236/trunk@10898 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 06:14:26 +00:00
ramiro%netscape.com
8ade4321f2 Add realize callbacks.
git-svn-id: svn://10.0.0.236/trunk@10896 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 05:19:50 +00:00
troy%netscape.com
d2a134fb41 Removed IsPseudoFrame() from nsContainerFrame
git-svn-id: svn://10.0.0.236/trunk@10895 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 04:57:30 +00:00
troy%netscape.com
aec668d182 Changed signature of PushChildren() member function
git-svn-id: svn://10.0.0.236/trunk@10894 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 04:18:58 +00:00
troy%netscape.com
2bdb85f976 Removed IsLastChild() member function from nsContainerFrame
git-svn-id: svn://10.0.0.236/trunk@10891 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 04:12:01 +00:00
troy%netscape.com
556f680fca Removed ChildIsPseudoFrame() and IsEmpty() from nsContainerFrame
git-svn-id: svn://10.0.0.236/trunk@10890 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 04:06:42 +00:00
troy%netscape.com
43e6ab37a3 Removed PreReflowCheck() and PostReflowCheck() from nsContainerFrame
git-svn-id: svn://10.0.0.236/trunk@10888 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 03:59:30 +00:00
wtc%netscape.com
4cd6f2440e Bugzilla bug #122: merged NetBSD patch contributed by
Frank van der Linden (frank@wins.uva.nl).


git-svn-id: svn://10.0.0.236/trunk@10887 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 03:55:47 +00:00
briano%netscape.com
32ad3a5b70 Changes requested by wtc@netscape.com to support NSPR 3.0.
git-svn-id: svn://10.0.0.236/trunk@10885 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 03:51:10 +00:00
troy%netscape.com
025ab65ab4 Removed some XXX CONSTRUCTION code that was work-in-progress, but is
no longer needed


git-svn-id: svn://10.0.0.236/trunk@10884 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 03:49:45 +00:00
troy%netscape.com
bf40dfa99c Removed mFirstContentOffset, LastContentOffset, and mLastContentIsComplete
from nsContainerFrame


git-svn-id: svn://10.0.0.236/trunk@10883 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 03:36:52 +00:00
briano%netscape.com
d841166270 Applied the last of the changes from Frank van der Linden (frank@wins.uva.nl).
git-svn-id: svn://10.0.0.236/trunk@10880 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 03:11:51 +00:00
spider%netscape.com
eca85e9227 Fix for unresolved external on unix
git-svn-id: svn://10.0.0.236/trunk@10879 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 02:55:18 +00:00
hyatt%netscape.com
a194f12bdf Fixing a crash when the HTML pane in Aurora is deleted.
git-svn-id: svn://10.0.0.236/trunk@10877 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 02:00:44 +00:00
troy%netscape.com
3209460837 Changed the way nsIFrame inherits from nsISupports
git-svn-id: svn://10.0.0.236/trunk@10875 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 01:50:16 +00:00
hyatt%netscape.com
3e71b6dcdd Really fix the problem with undocking. :)
git-svn-id: svn://10.0.0.236/trunk@10874 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 01:43:12 +00:00
hyatt%netscape.com
36c08de126 Fixing a problem with undocking the NavCenter window.
git-svn-id: svn://10.0.0.236/trunk@10873 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 01:40:22 +00:00
hyatt%netscape.com
1b437667c0 Making the toolbars add/remove properly.
git-svn-id: svn://10.0.0.236/trunk@10872 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 01:33:20 +00:00
cyeh%netscape.com
5ca67ee54b remove NORMANDY modules
git-svn-id: svn://10.0.0.236/trunk@10871 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 01:32:21 +00:00
beard%netscape.com
bcf18bfa01 create_java_vm_impl was always failing.
git-svn-id: svn://10.0.0.236/trunk@10870 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 01:20:09 +00:00
fur%netscape.com
5774a72d30 Removed references to now-defunct mozilla/js/jsj directory
git-svn-id: svn://10.0.0.236/trunk@10869 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 01:10:02 +00:00
cyeh%netscape.com
c071ae3970 quick fix
git-svn-id: svn://10.0.0.236/trunk@10868 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 01:07:20 +00:00
cyeh%netscape.com
43ad2f22d6 oops...quick fix
git-svn-id: svn://10.0.0.236/trunk@10867 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 01:06:20 +00:00
cyeh%netscape.com
6a972ef04e new raptor modules per scullin
git-svn-id: svn://10.0.0.236/trunk@10866 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 01:05:34 +00:00
hyatt%netscape.com
23a99f1248 Tweaking the notification handler for the toolbars.
git-svn-id: svn://10.0.0.236/trunk@10865 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 00:38:53 +00:00
fur%netscape.com
1669c00013 Deleting obsolete contents of jsj directory
git-svn-id: svn://10.0.0.236/trunk@10864 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 00:32:24 +00:00
karnaze%netscape.com
9a9aaead6d viewer saves compatibility mode preference
git-svn-id: svn://10.0.0.236/trunk@10863 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 00:21:20 +00:00
raman%netscape.com
b6f7b11a56 Added AllJavaScript target to represent a target that defines all JavaScript privileges. JavaSoft's JVM will use this target to perform privileged operations from Java in JS
git-svn-id: svn://10.0.0.236/trunk@10862 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 00:16:14 +00:00
raman%netscape.com
8c70f80362 Added AllJavaScript target to represent a target that defines all JavaScript privileges. JavaSoft's JVM will use this target to perform privileged operations from Java in JS
git-svn-id: svn://10.0.0.236/trunk@10861 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 00:16:10 +00:00
hyatt%netscape.com
6005513c3c Tweaks to the HTML pane calls to make sure they use the template.
git-svn-id: svn://10.0.0.236/trunk@10860 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 00:07:17 +00:00
hyatt%netscape.com
e9a6a7c042 Making the HTML pane work again.
git-svn-id: svn://10.0.0.236/trunk@10859 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 00:06:54 +00:00
ftang%netscape.com
745bd85555 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@10858 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-24 00:01:01 +00:00
robinf%netscape.com
369b38ae1e fixing bug #321757; updating help to reflect changed behavior of "Show Introduction Screens" global option
git-svn-id: svn://10.0.0.236/trunk@10857 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 23:42:57 +00:00
terry%netscape.com
11fc680fe3 Don't let people checking in from the outside affect any tree unless that tree has 'external' in its name.
git-svn-id: svn://10.0.0.236/trunk@10856 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 23:29:45 +00:00
valeski%netscape.com
cee7486dc6 NGLayout only. Setting the default dirs for NS_NET_FILE to be rooted in the current working directory rather than hardcoded.
git-svn-id: svn://10.0.0.236/trunk@10855 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 23:29:25 +00:00
karnaze%netscape.com
f2395f2993 viewer can set the compatibility mode
git-svn-id: svn://10.0.0.236/trunk@10851 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 23:02:54 +00:00
karnaze%netscape.com
97e632a2d8 support for getting compatibility mode from preferences
git-svn-id: svn://10.0.0.236/trunk@10850 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 23:02:02 +00:00
robinf%netscape.com
661e6070da Fixing bug #324040; adding new help screen for new flag in global options
git-svn-id: svn://10.0.0.236/trunk@10849 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 23:00:43 +00:00
dcone%netscape.com
ed77d583c6 fixed resizing issues
git-svn-id: svn://10.0.0.236/trunk@10848 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 22:10:40 +00:00
dcone%netscape.com
3332bd0528 fixed resizing problems
git-svn-id: svn://10.0.0.236/trunk@10847 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 22:09:52 +00:00
dcone%netscape.com
702526c746 fixed some sizing issues
git-svn-id: svn://10.0.0.236/trunk@10846 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 22:09:23 +00:00
dcone%netscape.com
fa8a146369 Put in code to offset drawing, hittest, etc
git-svn-id: svn://10.0.0.236/trunk@10845 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 22:08:53 +00:00
troy%netscape.com
bcec7d7c3f Removed a comment that is no longer applicable
git-svn-id: svn://10.0.0.236/trunk@10843 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 21:55:41 +00:00
buster%netscape.com
02997b3c4d re-instated fixed layout strategy
git-svn-id: svn://10.0.0.236/trunk@10842 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 21:50:49 +00:00
buster%netscape.com
4cca9446d0 all frame initialization and related logic has moved into the various table frames' Init() methods
from their respective InitalReflow() methods.
table-layout=fixed now completely skips pass1 reflow and doesn't require maxElementSize
information, saving a tremendous amount of time during initial reflow.


git-svn-id: svn://10.0.0.236/trunk@10841 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 21:48:26 +00:00
spider%netscape.com
27152055ea Fixes to load HTML Views again
git-svn-id: svn://10.0.0.236/trunk@10840 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 21:37:24 +00:00
akkana%netscape.com
8f7c44f6eb config.mk
git-svn-id: svn://10.0.0.236/trunk@10839 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 21:30:15 +00:00
vidur%netscape.com
a909e40cf9 Fixes in CSS interfaces
git-svn-id: svn://10.0.0.236/trunk@10838 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 21:28:06 +00:00
troy%netscape.com
171cbed41d Fixed leak of entire content model...
git-svn-id: svn://10.0.0.236/trunk@10836 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:59:57 +00:00
vidur%netscape.com
d955cfca51 Further refinement of style interfaces
git-svn-id: svn://10.0.0.236/trunk@10835 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:58:31 +00:00
akkana%netscape.com
dbba3fe731 more rosetta build bustage
git-svn-id: svn://10.0.0.236/trunk@10834 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:52:02 +00:00
rogerl%netscape.com
59a95935d3 Added the #define for turning on the default messages. Not sure if this is
the right place for it, but I wanted to get it in before the merge-a-thon.


git-svn-id: svn://10.0.0.236/trunk@10833 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:41:13 +00:00
kmcclusk%netscape.com
c4b5c7c1a9 Fixed filewidget query interface failure. The viewer was crashing when trying to open
a file.


git-svn-id: svn://10.0.0.236/trunk@10832 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:39:16 +00:00
rogerl%netscape.com
321b7ee962 Changes for error messages - arguments are now jschar.
git-svn-id: svn://10.0.0.236/trunk@10831 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:38:23 +00:00
rogerl%netscape.com
855761697c Bug #104766, decompileFunctionBody needed to set scope in printer before
calling decompileCode.


git-svn-id: svn://10.0.0.236/trunk@10830 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:37:58 +00:00
rogerl%netscape.com
50fd6c1e43 Changes for error messages - arguments are now jschar.
Bug #104766, decompileFunctionBody needed to set scope in printer before
calling decompileCode.


git-svn-id: svn://10.0.0.236/trunk@10829 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:36:18 +00:00
cls%seawood.org
a80dae1416 Fixed problem with FULL_STATIC_BUILD and js libs. Thanks to Tim Rowley <tor@boojum.cs.brown.edu> for the fix.
git-svn-id: svn://10.0.0.236/trunk@10828 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:20:07 +00:00
bjorn%netscape.com
7f3510ee2e Now using a lock in prarena instead of compare-and-swap.
git-svn-id: svn://10.0.0.236/trunk@10827 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:19:28 +00:00
kipp%netscape.com
298fcbcf3e Fixed up includes
git-svn-id: svn://10.0.0.236/trunk@10826 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:12:21 +00:00
kipp%netscape.com
ad717f51e1 Removed bullet factory methods
git-svn-id: svn://10.0.0.236/trunk@10824 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:12:07 +00:00
kipp%netscape.com
63bec11667 Removed block frame CID
git-svn-id: svn://10.0.0.236/trunk@10823 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:11:50 +00:00
kipp%netscape.com
0de7f63f89 stop including unneeded header file
git-svn-id: svn://10.0.0.236/trunk@10822 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:11:37 +00:00
kipp%netscape.com
d79b129f5c nuked
git-svn-id: svn://10.0.0.236/trunk@10821 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:11:22 +00:00
kipp%netscape.com
c5cf8a4efb Return error properly if NS_NewBlockFrame fails; stop including unneeded header file
git-svn-id: svn://10.0.0.236/trunk@10820 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:11:14 +00:00
kipp%netscape.com
d0b353bec8 Implement bullets here; implement list renumbering cleanly instead of having the bullets blindly do it (fixes a crash and several pagination bugs)
git-svn-id: svn://10.0.0.236/trunk@10819 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:10:40 +00:00
kipp%netscape.com
37fc6e5910 Removed nsHTMLBullet from the build
git-svn-id: svn://10.0.0.236/trunk@10817 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:09:38 +00:00
kmcclusk%netscape.com
45c17f9410 Fix for Linux build. Moved form lib to come after style lib.
git-svn-id: svn://10.0.0.236/trunk@10816 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 20:08:14 +00:00
bjorn%netscape.com
63784f2ba1 Removed a redundant assignment, f->susp=-1.
git-svn-id: svn://10.0.0.236/trunk@10815 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 19:51:26 +00:00
akkana%netscape.com
42f6400525 Remove obsolete rosetta references
git-svn-id: svn://10.0.0.236/trunk@10814 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 19:49:14 +00:00
kmcclusk%netscape.com
0b9521b1af Factored cross-platform code within nsWindow in nsBaseWidget. Converted headers and footers
to use nsISupports.h macros. Implemented nsToolkits query interface and made it creatable
through the factory.


git-svn-id: svn://10.0.0.236/trunk@10812 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 19:19:23 +00:00
kmcclusk%netscape.com
7931aee9d9 Added nsIToolkit to registry
git-svn-id: svn://10.0.0.236/trunk@10811 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 19:16:59 +00:00
robinf%netscape.com
ba8a2e2955 fixinb bug related to text corrections on these screens
git-svn-id: svn://10.0.0.236/trunk@10810 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 19:07:46 +00:00
akkana%netscape.com
46ec8b4111 Turn on MOZ_MAIL_COMPOSE by default. Approved by briano
git-svn-id: svn://10.0.0.236/trunk@10808 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 18:41:11 +00:00
fur%netscape.com
20b526f9fa When finalizing the prototype objects, don't try to access the JNIEnv, since that can cause the JVM to be unnecessarily loaded
git-svn-id: svn://10.0.0.236/trunk@10807 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 18:36:38 +00:00
cls%seawood.org
90737b279a Fixed problem with 'gmake' not executing libs and install targets. Ordering does matter. :(
git-svn-id: svn://10.0.0.236/trunk@10806 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 18:12:14 +00:00
despotdaemon%netscape.com
88c4fba289 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@10805 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 18:08:23 +00:00
karnaze%netscape.com
b7d77ef368 added image submit to first form
git-svn-id: svn://10.0.0.236/trunk@10804 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 17:55:28 +00:00
karnaze%netscape.com
353feb2fe6 forgot to add in last checkin
git-svn-id: svn://10.0.0.236/trunk@10802 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 17:44:33 +00:00
karnaze%netscape.com
ea90ff591e Converted forms to use the new content model classes and better separate content from layout.
git-svn-id: svn://10.0.0.236/trunk@10800 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 17:16:51 +00:00
rickg%netscape.com
0069eda5c1 added support for XML processing instructions
git-svn-id: svn://10.0.0.236/trunk@10798 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 16:55:13 +00:00
blizzard%appliedtheory.com
e4b452cfd7 Patch from Bert Driehuis <driehuis@playbeing.org> for returning the view
in the function.


git-svn-id: svn://10.0.0.236/trunk@10797 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 14:04:06 +00:00
pierre%netscape.com
2af99d82b0 added SetFont + call it before calculating the Width or Height
git-svn-id: svn://10.0.0.236/trunk@10796 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 09:29:51 +00:00
pierre%netscape.com
1a15e340d9 added SetFont
git-svn-id: svn://10.0.0.236/trunk@10795 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 09:28:54 +00:00
pierre%netscape.com
edf8a1125e moved SetFont guts to nsFontMetricsMac
git-svn-id: svn://10.0.0.236/trunk@10794 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 09:28:05 +00:00
pierre%netscape.com
be78567e8a handle menu events when there is no window + other fixes
git-svn-id: svn://10.0.0.236/trunk@10793 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 09:24:33 +00:00
pierre%netscape.com
3bfb6cd196 handle menu events when there is no window
git-svn-id: svn://10.0.0.236/trunk@10792 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 09:23:07 +00:00
ramiro%netscape.com
87ef5856b8 Remove 2 extra spaces that were causing Mozilla to crash on startup on some
sun computers.
Thanks to Kurt Swanson <kurt@dna.lth.se> for pointing this out and providing
the fix.


git-svn-id: svn://10.0.0.236/trunk@10791 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 09:21:28 +00:00
pierre%netscape.com
88c6e0ec95 re-enable the scrollbars on Mac, the widgets are now implemented
git-svn-id: svn://10.0.0.236/trunk@10790 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 09:19:55 +00:00
pierre%netscape.com
5edd44880b fixed a GlobalToLocal problem in FindWidgetHit
git-svn-id: svn://10.0.0.236/trunk@10789 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 09:18:46 +00:00
pierre%netscape.com
4bb8a8ed37 added widget/src/mac/manifest
git-svn-id: svn://10.0.0.236/trunk@10788 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 09:12:27 +00:00
pierre%netscape.com
4fa777855a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@10787 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 09:11:08 +00:00
ramiro%netscape.com
82072391aa Fix for bugzilla bug 864. XFE fonts.c file charset array out of whack.
Thanks to raff@aromatic.com for pointing this out and providing the fix.


git-svn-id: svn://10.0.0.236/trunk@10786 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 08:22:25 +00:00
cyeh%netscape.com
8f967ade31 adding JSRef for fur
git-svn-id: svn://10.0.0.236/trunk@10781 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 06:24:00 +00:00
gagan%netscape.com
725ac59f56 Using NET_IsURLInCache instead of NET_IsURLInDiskCache and NET_IsURLInMemCache.
git-svn-id: svn://10.0.0.236/trunk@10780 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 06:06:18 +00:00
gagan%netscape.com
277450790d Added NET_IsURLInCache function.
git-svn-id: svn://10.0.0.236/trunk@10779 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 06:03:45 +00:00
gagan%netscape.com
c1c25bfbf7 Correct check for memory objects.
git-svn-id: svn://10.0.0.236/trunk@10778 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 06:03:27 +00:00
gagan%netscape.com
69512faa8f Added NET_IsURLInCache function. This replaces most cases of NET_IsURLInMemCache || NET_IsURLInDiskCache.
git-svn-id: svn://10.0.0.236/trunk@10777 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 06:03:03 +00:00
gagan%netscape.com
afeb248e3d Misc. changes.
git-svn-id: svn://10.0.0.236/trunk@10776 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 06:01:07 +00:00
gagan%netscape.com
5f53ac2b57 Removed m_Flag, replaced with state variable.
git-svn-id: svn://10.0.0.236/trunk@10775 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 06:00:45 +00:00
gagan%netscape.com
9040db951d Disk access for streams to file.
git-svn-id: svn://10.0.0.236/trunk@10774 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 06:00:13 +00:00
gagan%netscape.com
cd4e898fad Cache Object's state functions.
git-svn-id: svn://10.0.0.236/trunk@10773 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 05:59:04 +00:00
gagan%netscape.com
9446da27fe PRFileDesc instead of XP_file*.
git-svn-id: svn://10.0.0.236/trunk@10772 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 05:58:03 +00:00
gagan%netscape.com
4cea6cdb22 Added State accessor functions.
git-svn-id: svn://10.0.0.236/trunk@10771 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 05:57:06 +00:00
troy%netscape.com
8e2160e6db Fixed bug in InsertNewFrame() that was screwing up the child list
git-svn-id: svn://10.0.0.236/trunk@10770 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 04:45:59 +00:00
troy%netscape.com
5d20ffe429 Fixed an off by one problem in the ContentInserted() code
git-svn-id: svn://10.0.0.236/trunk@10769 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 04:25:49 +00:00
spider%netscape.com
3eefd2153b XPFC Implementation on top ov Views
git-svn-id: svn://10.0.0.236/trunk@10767 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 03:40:00 +00:00
valeski%netscape.com
71efef1ee4 added mkprefs.h to the makefile.in file.
git-svn-id: svn://10.0.0.236/trunk@10766 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 03:03:21 +00:00
kipp%netscape.com
647c79cbaf Disabled some tests :-(
git-svn-id: svn://10.0.0.236/trunk@10764 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:36:21 +00:00
kipp%netscape.com
a18a35cc4f Added a list method for outputing top/right/bottom/left objects like border/padding/margins
git-svn-id: svn://10.0.0.236/trunk@10763 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:36:07 +00:00
kipp%netscape.com
8a980ec5ee Fixed parsing of margins to allow for auto values
git-svn-id: svn://10.0.0.236/trunk@10762 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:35:10 +00:00
kipp%netscape.com
5b0a290d9e Removed VerticallyAlignChildren (it's in nsInlineReflow now)
git-svn-id: svn://10.0.0.236/trunk@10761 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:34:43 +00:00
kipp%netscape.com
2f52f16b2b Improved list output for border/padding/margin
git-svn-id: svn://10.0.0.236/trunk@10760 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:34:21 +00:00
kipp%netscape.com
f8406870d2 Some improvement to list layout
git-svn-id: svn://10.0.0.236/trunk@10759 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:33:37 +00:00
kipp%netscape.com
8673b40ed5 Removed unused include
git-svn-id: svn://10.0.0.236/trunk@10758 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:33:23 +00:00
kipp%netscape.com
90fba2953e Added a reminder XXX
git-svn-id: svn://10.0.0.236/trunk@10757 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:33:04 +00:00
kipp%netscape.com
9faf57d773 Removed dead includes
git-svn-id: svn://10.0.0.236/trunk@10756 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:32:43 +00:00
kipp%netscape.com
9337a6d773 use line-layout's pres-context as a ref not a pointer
git-svn-id: svn://10.0.0.236/trunk@10755 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:32:17 +00:00
buster%netscape.com
bb5e1eca75 implementation of table-layout=fixed strategy
git-svn-id: svn://10.0.0.236/trunk@10754 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:32:15 +00:00
kipp%netscape.com
6fa4714901 use nsHTMLContainerFrame instead of nsHTMLBase
git-svn-id: svn://10.0.0.236/trunk@10753 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:31:48 +00:00
kipp%netscape.com
24df681107 Use pres-context as a ref instead of a pointer
git-svn-id: svn://10.0.0.236/trunk@10752 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:31:16 +00:00
kipp%netscape.com
7bc4aa3916 Added methods for counting the number of placed frames; switched the pres-context to a ref from a pointer; removed some debris
git-svn-id: svn://10.0.0.236/trunk@10751 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:31:00 +00:00
kipp%netscape.com
a5295b280e Use nsHTMLContainerFrame instead of nsHTMLBase
git-svn-id: svn://10.0.0.236/trunk@10750 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:30:21 +00:00
kipp%netscape.com
3bcbd67a5a Updated NS_INLINE_LINE_BREAK_BEFORE macro to not take an argument and explained why in the comment
git-svn-id: svn://10.0.0.236/trunk@10749 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:30:00 +00:00
kipp%netscape.com
c45150ede3 Moved some methods from various places into this class
git-svn-id: svn://10.0.0.236/trunk@10748 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:29:31 +00:00
kipp%netscape.com
d11f4399bc nuked
git-svn-id: svn://10.0.0.236/trunk@10747 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:29:03 +00:00
kipp%netscape.com
22e2ded2a8 moved CreateViewForFrame to nsHTMLContainerFrame; changed usage of line-layout pres-context from pointer to ref
git-svn-id: svn://10.0.0.236/trunk@10746 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:27:56 +00:00
kipp%netscape.com
da6504bc4c Added more args to ComputeDesiredSize
git-svn-id: svn://10.0.0.236/trunk@10745 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:27:21 +00:00
kipp%netscape.com
3c195f0ff8 Partial implementation of body style width/height support
git-svn-id: svn://10.0.0.236/trunk@10744 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:26:29 +00:00
kipp%netscape.com
73439c4818 Spanked hard to reorg code around nsInlineReflow; rework list handling; rework factoring of inline/block reflow
git-svn-id: svn://10.0.0.236/trunk@10743 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:25:26 +00:00
kipp%netscape.com
ee877121c9 use line layout pres-context as a ref not a pointer
git-svn-id: svn://10.0.0.236/trunk@10742 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:24:49 +00:00
kipp%netscape.com
d01f564c80 Added new source; removed old source
git-svn-id: svn://10.0.0.236/trunk@10741 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:24:15 +00:00
kipp%netscape.com
678d6e579e Made DeleteChildsNextInFlow public and virtual
git-svn-id: svn://10.0.0.236/trunk@10740 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:23:33 +00:00
kipp%netscape.com
e05239f07c Renamed margin carry in/out variables in the metrics struct
git-svn-id: svn://10.0.0.236/trunk@10739 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:21:53 +00:00
kipp%netscape.com
dc118c3bbb new
git-svn-id: svn://10.0.0.236/trunk@10738 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 02:19:05 +00:00
kipp%netscape.com
ba293acaeb Fixed the build
git-svn-id: svn://10.0.0.236/trunk@10737 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 01:47:17 +00:00
sdagley%netscape.com
918d9669f9 Added prototype for lo_ProcessHeader so the Mac will build. How any platform builds without I don't know (but I'd guess they don't have warnings for un-prototyped functions).
git-svn-id: svn://10.0.0.236/trunk@10736 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 01:45:44 +00:00
briano%netscape.com
719d4641d0 Changed EDITOR to MOZ_EDITOR, because EDITOR is almost always defined in the user's environment, and that breaks MOZ_LITE builds. Approved by ramiro@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@10731 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 00:47:17 +00:00
jsun%netscape.com
8ba4677348 added the timestamp and start,end range of events to NSCalendar.
git-svn-id: svn://10.0.0.236/trunk@10730 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 00:04:34 +00:00
briano%netscape.com
a67e0ef2aa Whether or not security is enabled is independent of the MOZ_LITE, MOZ_MEDIUM, MOZ_BLAHBLAHBLAH macros. This should help people building MOZ_LITE.
git-svn-id: svn://10.0.0.236/trunk@10729 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 23:49:58 +00:00
buster%netscape.com
28f1107062 set all the groundwork for FAST table layout based on CSS-2 table-layout property
git-svn-id: svn://10.0.0.236/trunk@10726 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 23:36:06 +00:00
radha%netscape.com
c1945f0c69 Moved MWContext utility functions to context_funcs.cpp
git-svn-id: svn://10.0.0.236/trunk@10724 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 23:32:49 +00:00
cls%seawood.org
d98292211a Moved files accidentally placed in MOZ_EDITOR ifdef.
git-svn-id: svn://10.0.0.236/trunk@10720 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 23:03:47 +00:00
cls%seawood.org
e6336bfaee Sync'd Makefile.ins
git-svn-id: svn://10.0.0.236/trunk@10718 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 23:01:29 +00:00
toshok%netscape.com
4dd4f2823f add handling for header elements in reflow. especially fixes alignment lossage.
git-svn-id: svn://10.0.0.236/trunk@10717 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 22:51:43 +00:00
beard%netscape.com
6bd298bbe0 Defining NS_EXPORT, et. al. for XP_MAC.
git-svn-id: svn://10.0.0.236/trunk@10716 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 22:46:18 +00:00
valeski%netscape.com
cea5b8a6ec mozilla - added mkprefs.h to the builds and replaced "*" pref strings with #defines.
nglayout - added get & set methods for http proxies to nsINetService.


git-svn-id: svn://10.0.0.236/trunk@10714 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 22:41:27 +00:00
radha%netscape.com
979f4bccb3 Check if image->clientData exists before trying to obtain the pixmap
from it.


git-svn-id: svn://10.0.0.236/trunk@10712 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 22:24:29 +00:00
radha%netscape.com
8526f999cd New utility functions to create MWContext and obtain frame handle from
MWContext


git-svn-id: svn://10.0.0.236/trunk@10711 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 22:23:49 +00:00
beard%netscape.com
38c5cbb164 Need a real plugin manager reference.
git-svn-id: svn://10.0.0.236/trunk@10710 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 22:23:35 +00:00
ftang%netscape.com
50defacc4d fix bug 324313 in Mozilla first. Reviwed by erik
git-svn-id: svn://10.0.0.236/trunk@10709 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 22:14:02 +00:00
beard%netscape.com
0bf5ab8b0f Removed redundant (wrong) declaration of local variable err from GetLiveconnect(), which was shadowing another declaration of err in an outer scope.
git-svn-id: svn://10.0.0.236/trunk@10708 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 22:02:33 +00:00
bjorn%netscape.com
b64ec41425 Patched the name JS_USE_ONLY_NSPR_LOCKS.
git-svn-id: svn://10.0.0.236/trunk@10705 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 21:45:13 +00:00
vidur%netscape.com
0608e3fd78 Added method to get property weight
git-svn-id: svn://10.0.0.236/trunk@10703 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 21:30:10 +00:00
vidur%netscape.com
20d458c395 New style interfaces
git-svn-id: svn://10.0.0.236/trunk@10702 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 21:19:11 +00:00
spider%netscape.com
dfdea96b6d Add io.h on windows
git-svn-id: svn://10.0.0.236/trunk@10701 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 20:44:51 +00:00
despotdaemon%netscape.com
c119975970 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@10698 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 20:26:37 +00:00
despotdaemon%netscape.com
7a16a8a9c6 Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@10695 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 18:27:59 +00:00
terry%netscape.com
7526772863 Don't forget regexp or column choices when resorting
git-svn-id: svn://10.0.0.236/trunk@10694 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 18:23:14 +00:00
wtc%netscape.com
06d57ca345 NO_NSPR_PRIVATE_HEADER_BRANCH landing. Removed the inclusions of
private NSPR headers (prosdep.h and primpl.h) from the Mozilla source.
The part of prosdep.h that is actually needed by Mozilla was extracted
and put in the new file mozilla/include/xp_path.h.


git-svn-id: svn://10.0.0.236/trunk@10691 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 16:59:57 +00:00
terry%netscape.com
24741b9973 Added disabled, voucher, signedform.
git-svn-id: svn://10.0.0.236/trunk@10690 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 16:56:39 +00:00
kipp%netscape.com
076d53dd27 Added code to map illegal ncr values as per navigator
git-svn-id: svn://10.0.0.236/trunk@10689 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 15:34:50 +00:00
briano%netscape.com
be49e1baf4 Cleaned it up and added in all the .mk files that were 'missing'.
git-svn-id: svn://10.0.0.236/trunk@10688 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 07:20:06 +00:00
rpotts%netscape.com
fb2abb314f Initialize Async DNS during the rest of the netlib initialization. This will take place on the netlib thread (where appropriate...)
git-svn-id: svn://10.0.0.236/trunk@10687 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 07:03:54 +00:00
rpotts%netscape.com
6cd03c57b9 Move DNS initialization out to when Netlib is initialized. This ensures that the initialization takes place on the Netlib Thread.
git-svn-id: svn://10.0.0.236/trunk@10686 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 07:02:20 +00:00
beard%netscape.com
ce650a3936 Added :mozilla:dist:nava-java: to access paths, to override :dist:liveconnect: version of netscape_java_JSObject.h, which #includes <jni.h>.
git-svn-id: svn://10.0.0.236/trunk@10685 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 06:48:07 +00:00
pierre%netscape.com
d4753fee99 handle Quit cmd (added mMacPump in order to call StopRunnning)
git-svn-id: svn://10.0.0.236/trunk@10684 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 04:22:57 +00:00
pierre%netscape.com
0c9c5041c3 implemented menu events
git-svn-id: svn://10.0.0.236/trunk@10683 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 04:21:31 +00:00
pierre%netscape.com
d28dcec76e added DoMenu and StopRunning
git-svn-id: svn://10.0.0.236/trunk@10682 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 04:20:05 +00:00
pierre%netscape.com
7461840b06 destructor closes window
git-svn-id: svn://10.0.0.236/trunk@10681 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 04:18:40 +00:00
raman%netscape.com
a8251d5e68 Turn on the autoupdate preference by default. OK'ed by cathleen and jar. At this point, this is more for demo of Autoupdate feature on windows
git-svn-id: svn://10.0.0.236/trunk@10680 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 04:17:52 +00:00
pierre%netscape.com
fa7548bafd removed nsMacResource.r
git-svn-id: svn://10.0.0.236/trunk@10679 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 04:17:51 +00:00
pierre%netscape.com
422ab7fe0f updated menus
git-svn-id: svn://10.0.0.236/trunk@10678 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 04:16:39 +00:00
raman%netscape.com
5c4056bbea On windows if smartupdate is not enabled, enable autoupdate manually. OK'ed by cathleen and jar. This is more for demo of Autoupdate feature
git-svn-id: svn://10.0.0.236/trunk@10677 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 04:16:31 +00:00
raman%netscape.com
cc95aca1bc Create autoupdt directory if it doesn't exist
git-svn-id: svn://10.0.0.236/trunk@10676 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 04:15:00 +00:00
despotdaemon%netscape.com
7afc87f449 Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@10675 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 04:12:09 +00:00
troy%netscape.com
adc4d0083e Changed to how broken image is handled
git-svn-id: svn://10.0.0.236/trunk@10674 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 04:01:16 +00:00
cls%seawood.org
8039a94c6a Sync'd Makefile.ins with corresponding Makefiles. Fixed problems with autoconf build. Thanks to Christopher Blizzard <blizzard@appliedtheory.com> and Tom Rini <trini@kernel.crashing.org>.
git-svn-id: svn://10.0.0.236/trunk@10673 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 03:47:27 +00:00
troy%netscape.com
d56bd3fec6 Added display of icon when loading image
git-svn-id: svn://10.0.0.236/trunk@10672 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 03:34:44 +00:00
sdagley%netscape.com
09b9d476ef per pinkerton this call to URDFUtilities::PropertyValueBool is no longer needed (and it's breaking the Mac build)
git-svn-id: svn://10.0.0.236/trunk@10671 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 03:10:12 +00:00
fur%netscape.com
430b53b9e4 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@10670 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 03:07:13 +00:00
spider%netscape.com
3787e9848b Begin hooking up the view manager
git-svn-id: svn://10.0.0.236/trunk@10667 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 02:45:21 +00:00
beard%netscape.com
80cbe1eecc Turned off registering the native methods that are now installed by the plugin.
git-svn-id: svn://10.0.0.236/trunk@10665 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 02:29:36 +00:00
blizzard%appliedtheory.com
004c7abb79 Only build liveconnect methods if OJI is defined
git-svn-id: svn://10.0.0.236/trunk@10664 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 02:26:12 +00:00
blizzard%appliedtheory.com
6c07d1e6f4 Include caps includes for prototypes
git-svn-id: svn://10.0.0.236/trunk@10663 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 02:25:43 +00:00
beard%netscape.com
e4cf2baf78 Changed all interfaces to use UNICODE strings, changed some ints to jints.
git-svn-id: svn://10.0.0.236/trunk@10662 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 02:24:56 +00:00
beard%netscape.com
2feeb0375b Added netscape_javascript_JSObject.h.
git-svn-id: svn://10.0.0.236/trunk@10661 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 02:23:44 +00:00
beard%netscape.com
52e4df93eb #include "prtypes.h" if noone else does.
git-svn-id: svn://10.0.0.236/trunk@10660 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 02:23:23 +00:00
toshok%netscape.com
cb76e927cf rework grid relayout. This fixes lots of things, like the problems of grid cells disappearing on resize, and grid cells that were specified with a fixed size acting like they were assigned a percentage on resize.
git-svn-id: svn://10.0.0.236/trunk@10659 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 02:14:49 +00:00
matt%netscape.com
34170d0ad5 Adding mak file for HP-UXB.10.20
git-svn-id: svn://10.0.0.236/trunk@10658 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 02:13:56 +00:00
peterl%netscape.com
1de0d0e996 don't set attributes that are already set
git-svn-id: svn://10.0.0.236/trunk@10657 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 02:09:26 +00:00
peterl%netscape.com
db24360778 clamp border & padding width to 0
git-svn-id: svn://10.0.0.236/trunk@10656 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 02:08:45 +00:00
peterl%netscape.com
f8aedd9a4c moved skipped content token from the attribute list to it's own slot
git-svn-id: svn://10.0.0.236/trunk@10654 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 02:07:31 +00:00
spider%netscape.com
8619f6dfcc WIP: Prep for ViewManager. Make root canvas at Container level
git-svn-id: svn://10.0.0.236/trunk@10652 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 01:35:53 +00:00
scullin%netscape.com
3e8e5f4f7e Added ngprefs test hooks.
git-svn-id: svn://10.0.0.236/trunk@10651 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 00:57:54 +00:00
scullin%netscape.com
a98743ef50 Added ngprefs dir.
git-svn-id: svn://10.0.0.236/trunk@10650 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 00:56:07 +00:00
scullin%netscape.com
4a845227e2 Added ngprefs build mechanism.
git-svn-id: svn://10.0.0.236/trunk@10649 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 00:55:04 +00:00
spider%netscape.com
0487d6f8e0 Remove old SetWidget method from Cal XML parser
git-svn-id: svn://10.0.0.236/trunk@10648 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 00:52:11 +00:00
slamm%netscape.com
1e1931c9f5 Add a parameter to HT_PaneFromURL (to match backend change that hyatt made). Fix crash on exit (We deleted the notification struct and then HT tried to send us more events).
git-svn-id: svn://10.0.0.236/trunk@10647 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 00:50:25 +00:00
sdagley%netscape.com
da168af872 Yes the tree is in flames but it'll stay that way without this mod. Reviewed/Approved hyatt. Add new paramter for call to HT_PaneFromURL.
git-svn-id: svn://10.0.0.236/trunk@10646 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 00:35:08 +00:00
rpotts%netscape.com
d2ab45317d Changed the order for deleting nsImageRequsts and the ImageGroupContext...
git-svn-id: svn://10.0.0.236/trunk@10645 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 00:27:12 +00:00
hyatt%netscape.com
f7091ec331 Support for templates added to SHACK. More properties added to front end.
git-svn-id: svn://10.0.0.236/trunk@10644 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 00:24:26 +00:00
hyatt%netscape.com
7225c36093 More properties added and template support for SHACK added.
git-svn-id: svn://10.0.0.236/trunk@10643 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 00:23:53 +00:00
scullin%netscape.com
1d2b4fc990 Removed.
git-svn-id: svn://10.0.0.236/trunk@10642 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 00:08:51 +00:00
scullin%netscape.com
6697ab47de Added.
git-svn-id: svn://10.0.0.236/trunk@10641 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 00:08:27 +00:00
cyeh%netscape.com
38029dc0ad sacrificing the chicken: try moving calls before dist
git-svn-id: svn://10.0.0.236/trunk@10640 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 00:06:11 +00:00
nisheeth%netscape.com
fdb56c6f63 Adding code submitted by Ori Kravitz (orik@mercury.co.il) that informs listeners
of keyboard/mouse events before passing the events to JS.  This is part of the
layout probe project that is trying to add test automation interfaces to the
layout engine.


git-svn-id: svn://10.0.0.236/trunk@10639 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-22 00:01:23 +00:00
rpotts%netscape.com
bba6403a16 Fixes for platforms where NETLIB_THREAD is not defined... only create proxies if NETLIB_THREAD is defined
git-svn-id: svn://10.0.0.236/trunk@10638 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 23:58:55 +00:00
nisheeth%netscape.com
b1e81f16d9 Added code submitted by Ori Kravitz (orik@mercury.co.il) that informs listeners
that all network connections have completed for the current page.  This is part
of the Layout Probe project that is trying to add test automation interfaces to
the layout engine.


git-svn-id: svn://10.0.0.236/trunk@10637 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 23:58:14 +00:00
beard%netscape.com
8c909c2738 Changed use of stricmp to XP_STRCASECMP, fixed reference to platform-specific pText field in LO_TextStruct_struct.
git-svn-id: svn://10.0.0.236/trunk@10636 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 23:51:48 +00:00
pierre%netscape.com
02e822d3bc fixed raptor build: added nsNetThread.cpp to the 'modular' targets
git-svn-id: svn://10.0.0.236/trunk@10635 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 23:45:52 +00:00
terry%netscape.com
4fc22b4fc7 Patch by (mostly) Bert Driehuis <bert_driehuis@nl.compuware.com> --
explain a bit about the versioncache file.


git-svn-id: svn://10.0.0.236/trunk@10634 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 23:29:39 +00:00
spider%netscape.com
004a69c80c Fix to getDefaultCursor on all mouse motion events based on mouse pt
git-svn-id: svn://10.0.0.236/trunk@10632 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 23:25:41 +00:00
pierre%netscape.com
0e14d5b2fa added gif and jpg files to the samples folder
git-svn-id: svn://10.0.0.236/trunk@10631 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 23:16:10 +00:00
spider%netscape.com
6b5cf5e240 Change the cursor based on the splitter's orientation
git-svn-id: svn://10.0.0.236/trunk@10630 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 23:04:32 +00:00
akkana%netscape.com
238a3242ed Fix build error: C++ comment in file included by C files
git-svn-id: svn://10.0.0.236/trunk@10629 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 22:43:50 +00:00
beard%netscape.com
cdb3424e64 Removed nsINetworkManager.
git-svn-id: svn://10.0.0.236/trunk@10628 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 22:18:43 +00:00
nisheeth%netscape.com
9499876f5c Adding files created by Ori Kravitz (orik@mercury.co.il) for exposing
interfaces for testing the layout engine.


git-svn-id: svn://10.0.0.236/trunk@10627 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 22:16:41 +00:00
ramiro%netscape.com
6072a45816 Fix taskbar action button transparency.
git-svn-id: svn://10.0.0.236/trunk@10626 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 22:08:18 +00:00
nisheeth%netscape.com
82480418fa Adding build support for modules/libtest if MOZ_LIBTEST is defined.
git-svn-id: svn://10.0.0.236/trunk@10625 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 22:08:05 +00:00
dcone%netscape.com
48e20a157a scroll bar is drawing, nothing else
git-svn-id: svn://10.0.0.236/trunk@10623 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 21:56:55 +00:00
nisheeth%netscape.com
faed7fd133 Checking in changes made for the Layout Probe API project by Ori Kravitz
(orik@mercury.co.il) and Andrei Romanov (aromanov@segue.com).


git-svn-id: svn://10.0.0.236/trunk@10622 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 21:54:50 +00:00
dcone%netscape.com
d8061bc83e Fixed alpha layer
git-svn-id: svn://10.0.0.236/trunk@10621 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 21:46:39 +00:00
nisheeth%netscape.com
9e48820e1e Add LAYPROBE_API to compiler defines if MOZ_LIBTEST is set.
git-svn-id: svn://10.0.0.236/trunk@10620 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 21:46:38 +00:00
dcone%netscape.com
2318cb3fa3 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@10619 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 21:43:58 +00:00
nisheeth%netscape.com
abeee03606 Adding build support for modules/libtest that exposes interfaces for
testing the layout engine.


git-svn-id: svn://10.0.0.236/trunk@10618 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 21:43:38 +00:00
terry%netscape.com
43c01aad71 Now works under "use strict".
git-svn-id: svn://10.0.0.236/trunk@10617 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 21:15:42 +00:00
sudu%netscape.com
e149fac3a4 Added back a initializer which I missed in last merge
git-svn-id: svn://10.0.0.236/trunk@10616 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 21:01:16 +00:00
spider%netscape.com
f3a593464f WIP: Splittable Canvas
git-svn-id: svn://10.0.0.236/trunk@10615 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 21:00:53 +00:00
ramiro%netscape.com
998d0a9865 Add a margin to taskbar action button.
git-svn-id: svn://10.0.0.236/trunk@10614 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 20:55:53 +00:00
ramiro%netscape.com
09c3da1b92 Remove unused taskbar stuff.
git-svn-id: svn://10.0.0.236/trunk@10613 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 20:51:41 +00:00
ramiro%netscape.com
d763585f82 Unbreak the taskbar some more.
git-svn-id: svn://10.0.0.236/trunk@10612 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 20:50:25 +00:00
beard%netscape.com
145d5f65c1 Added JVM_SpendTime.
git-svn-id: svn://10.0.0.236/trunk@10611 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 20:47:21 +00:00
jsun%netscape.com
2b0e455357 Removed memory leak.
The leak occurred in InitialLoadData when
copying the fetched events from the vector returned by FetchEventsByRange
to the mpShell->m_pCalendar.


git-svn-id: svn://10.0.0.236/trunk@10610 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 20:45:43 +00:00
beard%netscape.com
9596756b89 Added SpendTime to nsIJVMPlugin. Only turned on for XP_MAC, to avoid breaking other's plugins.
git-svn-id: svn://10.0.0.236/trunk@10609 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 20:41:19 +00:00
ramiro%netscape.com
826f56ec53 Add a callback to control which toolbar children are resized to the max
dimensions.


git-svn-id: svn://10.0.0.236/trunk@10608 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 20:20:14 +00:00
ramiro%netscape.com
01e9b6890c Callback reason modularization.
git-svn-id: svn://10.0.0.236/trunk@10605 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 19:49:21 +00:00
troy%netscape.com
225e1b2cb4 Fixed dump-tree problem
git-svn-id: svn://10.0.0.236/trunk@10603 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 19:33:21 +00:00
spider%netscape.com
3a4a8e7217 Add support for ActionCommand's to trickle up the canvas hierarchy
until command gets processed.  Support for LoadUrl in Container also
implemented.


git-svn-id: svn://10.0.0.236/trunk@10602 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 19:27:44 +00:00
sudu%netscape.com
92ec0851aa Bring autoconf build up to date with non-autoconf build
git-svn-id: svn://10.0.0.236/trunk@10599 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 19:25:58 +00:00
terry%netscape.com
803b2253ce Patch by Bert Driehuis <bert_driehuis@nl.compuware.com> -- recognize
BSDI systems.


git-svn-id: svn://10.0.0.236/trunk@10596 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 18:51:33 +00:00
spider%netscape.com
c613528fc5 platform independe libnls libs
git-svn-id: svn://10.0.0.236/trunk@10595 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 18:37:17 +00:00
buster%netscape.com
647a672694 added "center" to table horizontal align attribute as a legal value, although the HTML4 spec
says "middle" for h-align and "center" for v-align.  But Nav4 and IE both accept "center" as
well as "middle", so now we do too.


git-svn-id: svn://10.0.0.236/trunk@10594 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 18:34:30 +00:00
blizzard%appliedtheory.com
a3518e5690 Add the include/private directory to the include path
git-svn-id: svn://10.0.0.236/trunk@10593 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 18:18:29 +00:00
rpotts%netscape.com
34d304090c Moved the code to mangle resource: URLs into file: URLs out of the Url::Open(...) method and into the NetServiceManager...
git-svn-id: svn://10.0.0.236/trunk@10592 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 18:15:26 +00:00
cyeh%netscape.com
326152568e check-in and pray: trying a delay of 10 seconds before each external perl tool call.3
git-svn-id: svn://10.0.0.236/trunk@10591 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 18:12:30 +00:00
terry%netscape.com
79b9bd88b2 Was generating garbage instead of the Cc: line.
git-svn-id: svn://10.0.0.236/trunk@10590 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 18:07:52 +00:00
norris%netscape.com
01993cd6e1 Fix bug 122041 "get illegal url when having foo.html?http://norris.html"
git-svn-id: svn://10.0.0.236/trunk@10588 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 17:49:36 +00:00
cyeh%netscape.com
916de29ee4 adding a 10 second delay in the hopes that this will cause the automation to work.+
git-svn-id: svn://10.0.0.236/trunk@10587 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 17:48:17 +00:00
kin%netscape.com
b4607052d2 Removed the ParagraphStyle and CharacterUnderline buttons from the HTMLArea
toolbar.


git-svn-id: svn://10.0.0.236/trunk@10584 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 17:38:41 +00:00
kin%netscape.com
e4d173eef8 Modified htmlarea_create() use the current_text if it exists. Fixes HTMLArea
reload, page forward and back.


git-svn-id: svn://10.0.0.236/trunk@10583 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 17:36:59 +00:00
kin%netscape.com
685f033647 Fix for bug #318302: "Undo" leaves a line of text
Removed call to StartTyping(), in CEditBuffer::ReturnKey(), for the
case where bTyping is false.
Reviewed by cmanske. Approved by marek.

Added parens around a set of conditions in CEditBuffer::PasteText() to prevent
the occassional dereferencing of a null pointer.


git-svn-id: svn://10.0.0.236/trunk@10582 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 17:33:14 +00:00
blizzard%appliedtheory.com
d7c97208e8 Only try to detect Motif if you plan on building xfe
git-svn-id: svn://10.0.0.236/trunk@10581 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 17:29:32 +00:00
spider%netscape.com
3322333c7d Moving images to subdirectory off of XML ui description files
git-svn-id: svn://10.0.0.236/trunk@10580 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 17:27:21 +00:00
spider%netscape.com
cbce85cf02 Adding NPL's which were mistakenly forgotten upon initial checkin
git-svn-id: svn://10.0.0.236/trunk@10578 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 17:18:04 +00:00
norris%netscape.com
376d6feeba Fix bug 323696 "js12: unimplemented bytecode error in switch test"
Rename js_ResetCodeGenerator to js_FinishCodeGenerator to indicate that
js_InitCodeGenerator must be called after finish before it can be reused.


git-svn-id: svn://10.0.0.236/trunk@10577 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 17:17:26 +00:00
troy%netscape.com
21d3525b26 Fixed a bug introduced with the LastFrame() changes
git-svn-id: svn://10.0.0.236/trunk@10576 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 16:37:38 +00:00
troy%netscape.com
e592c4b9fd Fixed some horkage I introduced
git-svn-id: svn://10.0.0.236/trunk@10575 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 16:35:49 +00:00
troy%netscape.com
558109f391 Updated to latest DOM
git-svn-id: svn://10.0.0.236/trunk@10574 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 16:31:54 +00:00
spider%netscape.com
8279500d2f WIP: NLS stub implementation on NSPR
git-svn-id: svn://10.0.0.236/trunk@10573 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 16:13:08 +00:00
ramiro%netscape.com
6dec4084ff Un-break the taskbar some more.
git-svn-id: svn://10.0.0.236/trunk@10572 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 14:20:52 +00:00
ramiro%netscape.com
9cab6028bc Add XfeTabGetOrientation().
git-svn-id: svn://10.0.0.236/trunk@10571 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 13:47:39 +00:00
ramiro%netscape.com
74ab511457 Add XfeToolBar.
git-svn-id: svn://10.0.0.236/trunk@10570 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 13:22:45 +00:00
ramiro%netscape.com
a670622534 Create the ender toolbar item only when needed.
git-svn-id: svn://10.0.0.236/trunk@10569 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 12:22:38 +00:00
mcafee%netscape.com
d81d62f835 Initial version, borrowed from webshell/tests/viewer
git-svn-id: svn://10.0.0.236/trunk@10568 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 08:03:35 +00:00
mcafee%netscape.com
8f3cae2366 NGLayout source is src2
git-svn-id: svn://10.0.0.236/trunk@10567 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 08:00:15 +00:00
mcafee%netscape.com
f5245c1966 Added FE_GetRelatedLinksContext()
git-svn-id: svn://10.0.0.236/trunk@10566 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 05:30:47 +00:00
mcafee%netscape.com
d72cbff971 Renamed init() to read(), save() to write().
git-svn-id: svn://10.0.0.236/trunk@10565 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 05:29:26 +00:00
mcafee%netscape.com
d66ad63461 Added support for Smart Browsing
git-svn-id: svn://10.0.0.236/trunk@10564 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 05:27:50 +00:00
mcafee%netscape.com
2dac0fce6e read_str is now fe_PrefReadString(), write_str() is fe_PrefWriteString()
git-svn-id: svn://10.0.0.236/trunk@10563 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 05:25:49 +00:00
mcafee%netscape.com
eeef033d32 Added updateRelatedLinksShowing()
git-svn-id: svn://10.0.0.236/trunk@10562 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 05:25:09 +00:00
mcafee%netscape.com
d4ad203ca1 Removed cookie stuff from fe_GlobalPrefs
git-svn-id: svn://10.0.0.236/trunk@10561 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 05:24:30 +00:00
mcafee%netscape.com
f2e7b9f28d Unused variable warning on Linux
git-svn-id: svn://10.0.0.236/trunk@10560 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 04:58:41 +00:00
mcafee%netscape.com
fc6f5d428f Merging SmartBrowsing prefs in from Nova.
git-svn-id: svn://10.0.0.236/trunk@10559 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 04:44:42 +00:00
mcafee%netscape.com
e2b0aa940c Unused variables warnings on Linux
git-svn-id: svn://10.0.0.236/trunk@10558 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 04:43:33 +00:00
mcafee%netscape.com
6b2934e06f Fixing compiler warning on Linux
git-svn-id: svn://10.0.0.236/trunk@10557 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 04:42:13 +00:00
troy%netscape.com
2731820910 Removed references to mFirstContentOffset, mLastContentIsComplete, and mChildCount
git-svn-id: svn://10.0.0.236/trunk@10556 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 03:50:44 +00:00
troy%netscape.com
82426e2926 Removed references to mFirstContentOffset
git-svn-id: svn://10.0.0.236/trunk@10555 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 03:47:45 +00:00
troy%netscape.com
90cbfd4db8 Removed all references to m<First,Last>ContentOffset,mChildCount,mLastContentIsComplete
git-svn-id: svn://10.0.0.236/trunk@10554 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-21 03:40:32 +00:00
michaelp%netscape.com
f5847039d8 now correctly refreshes the window in ForceRefresh().
git-svn-id: svn://10.0.0.236/trunk@10553 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 22:24:21 +00:00
ramiro%netscape.com
6d78dfcafa This is a temprary hack to fix the "off by one" toolbar closed problem that
occurs when all toolbox items are closed.


git-svn-id: svn://10.0.0.236/trunk@10552 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 17:17:12 +00:00
ramiro%netscape.com
ff7a8c8a7e Remove superflous XmNchildUsePreferred{Width,Height} resources.
git-svn-id: svn://10.0.0.236/trunk@10551 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 17:06:05 +00:00
ramiro%netscape.com
283c2c2a9c Add a comment in place of broken feature.
git-svn-id: svn://10.0.0.236/trunk@10550 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 16:14:06 +00:00
ramiro%netscape.com
d1409f23fa Fix a typo.
git-svn-id: svn://10.0.0.236/trunk@10549 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 16:13:44 +00:00
ramiro%netscape.com
f3918106e8 A better name. layout_frozen instead of ignore_configure.
git-svn-id: svn://10.0.0.236/trunk@10548 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 16:01:12 +00:00
ramiro%netscape.com
63e37513dd Allow each toolbar child's width/height to be forced to the max individually.
Before, it was either all or nothing which was bad when getting dynamic
toolbars to work, especially with complicated toolbar items such as a
combo box.


git-svn-id: svn://10.0.0.236/trunk@10547 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 13:32:41 +00:00
ramiro%netscape.com
8d67666fe5 Move unused Splash.cpp into an ifdef NSPR_SPLASH.
git-svn-id: svn://10.0.0.236/trunk@10546 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 11:29:58 +00:00
ramiro%netscape.com
427cec04c9 Fix a type and update autoconf makefile.
git-svn-id: svn://10.0.0.236/trunk@10545 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 11:22:41 +00:00
ramiro%netscape.com
060696ebcd Remove taskbar widget and use toolbar instead. UNBLOAT.
git-svn-id: svn://10.0.0.236/trunk@10544 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 11:05:00 +00:00
ramiro%netscape.com
eb6509d939 Un-break MOZ_TASKBAR.
git-svn-id: svn://10.0.0.236/trunk@10543 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 09:18:38 +00:00
ramiro%netscape.com
32e7febdab Add missing rep type.
git-svn-id: svn://10.0.0.236/trunk@10542 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 08:37:33 +00:00
ramiro%netscape.com
c8d8550d35 Use a better name: FIXED_SIZE instead of OFFSET.
git-svn-id: svn://10.0.0.236/trunk@10541 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 06:48:31 +00:00
ramiro%netscape.com
bf118b3d3d Simplufy the XFE_RDFChromeTreeView class by using a divider instead of all
those broken XmForm hacks.


git-svn-id: svn://10.0.0.236/trunk@10540 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 06:39:43 +00:00
ramiro%netscape.com
8f5d66c624 More modularization changes. Move all the string defs and registration
functions to the respective places where they are needed.  Also cleanup up
a bunch of children info stuff.


git-svn-id: svn://10.0.0.236/trunk@10539 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 06:38:24 +00:00
ramiro%netscape.com
32bdffd1b0 Add #include <Xfe/Cascade.h>.
git-svn-id: svn://10.0.0.236/trunk@10538 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 06:34:28 +00:00
ramiro%netscape.com
a8c02ff8ad Fix crash when creating a chromeless window. Dont de-reference a NULL
toolbar.


git-svn-id: svn://10.0.0.236/trunk@10537 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 06:33:35 +00:00
ramiro%netscape.com
c6aad7fa64 Add divider.
git-svn-id: svn://10.0.0.236/trunk@10536 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 06:32:11 +00:00
rpotts%netscape.com
ca38b8546f Added NPL and made the implementation threadsafe.
git-svn-id: svn://10.0.0.236/trunk@10535 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 05:56:41 +00:00
rpotts%netscape.com
32ede4839b Added NPL and fixed typo in GUID #define
git-svn-id: svn://10.0.0.236/trunk@10534 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 05:56:11 +00:00
rpotts%netscape.com
c706bf9b24 Added missing NS_RELEASE(...)
git-svn-id: svn://10.0.0.236/trunk@10533 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 05:28:25 +00:00
rpotts%netscape.com
d0c8f23dbc Fixed nettest to work with threaded netlib...
git-svn-id: svn://10.0.0.236/trunk@10531 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 05:13:42 +00:00
buster%netscape.com
1524945a4b captions now work properly with new frame layout strategy.
nsTableOuterFrame->mFirstChild==nsTableOuterFrame->mInnerTableFrame, always.


git-svn-id: svn://10.0.0.236/trunk@10530 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 04:50:08 +00:00
brendan%netscape.com
0bca4e931e Fix last checkin.
git-svn-id: svn://10.0.0.236/trunk@10528 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 02:58:41 +00:00
wtc%netscape.com
ed3165f8cc Removed the NSPR20 macro definition for XP_MAC.
git-svn-id: svn://10.0.0.236/trunk@10527 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 01:04:58 +00:00
wtc%netscape.com
23894090e4 Compile this file only if HAVE_SNPRINTF is not defined so that we
won't accidentally override the system's snprintf and vsnprintf
functions.  This patch is contributed by Soren Juul Moller <sjm@nwc.dk>.


git-svn-id: svn://10.0.0.236/trunk@10526 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 00:58:30 +00:00
wtc%netscape.com
d01d831960 Backed out the HAVE_LONG_LONG change temporarily because
it breaks binary compatibility.  We will put it back in
after the v3.0 release is branched off.


git-svn-id: svn://10.0.0.236/trunk@10525 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 00:50:31 +00:00
wtc%netscape.com
1530a9b3df Bug fix: If the envp argument for PR_CreateProcess is NULL,
call execv (instead of execve) so that the new process inherits
the environment of the parent process.


git-svn-id: svn://10.0.0.236/trunk@10524 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 00:21:35 +00:00
wtc%netscape.com
4862b6113f Renamed the 'index' argument for PR_Get/SetThreadPrivate to 'tpdIndex'.
This is because BSD systems have a funciton named 'index' in
<string.h>, and if you compile with the -Wshadow flag, gcc warns
that our declaration of `index' shadows global declaration.
Thanks to Ben Laurie <ben@algroup.co.uk> for the problem report
and the suggested workaround.


git-svn-id: svn://10.0.0.236/trunk@10523 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 00:18:18 +00:00
troy%netscape.com
bb6e9bfbd9 Work in progress for displaying icon while laoding image...
git-svn-id: svn://10.0.0.236/trunk@10522 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-20 00:08:24 +00:00
wtc%netscape.com
ee405299d7 Added the 'const' qualifier to the 'fmt' argument for PR_FormatTime.
This patch is contributed by Ben Laurie <ben@algroup.co.uk>.
Files changed: prtime.h and prtime.c.


git-svn-id: svn://10.0.0.236/trunk@10521 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 23:52:13 +00:00
blizzard%appliedtheory.com
a750ddf2ea Bring autoconf build into sync with non-autoconf build
git-svn-id: svn://10.0.0.236/trunk@10520 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 22:40:53 +00:00
blizzard%appliedtheory.com
02582a5d11 Bring autoconf build up to date with non-autoconf build
git-svn-id: svn://10.0.0.236/trunk@10519 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 22:28:51 +00:00
morse%netscape.com
0c6461d468 fix up wording in cookie nag box
git-svn-id: svn://10.0.0.236/trunk@10516 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 16:27:16 +00:00
morse%netscape.com
769ce4cff2 avoid js crash in cookie viewer if cookie->host or cookie->path contain a quote
git-svn-id: svn://10.0.0.236/trunk@10515 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 15:15:59 +00:00
mcafee%netscape.com
691dfa71eb Adding support for Rhapsody
git-svn-id: svn://10.0.0.236/trunk@10514 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 08:51:59 +00:00
mcafee%netscape.com
7f4d9acaeb Rhapsody doesn't like to link with -m
git-svn-id: svn://10.0.0.236/trunk@10513 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 08:48:00 +00:00
mcafee%netscape.com
4a2e9a7966 Fixing Linux breakage
git-svn-id: svn://10.0.0.236/trunk@10512 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 08:42:51 +00:00
mcafee%netscape.com
b8d1e851dd Adding support for non-Linux OS's
git-svn-id: svn://10.0.0.236/trunk@10511 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 08:25:04 +00:00
mcafee%netscape.com
77f908d781 Adding more portable link line for non-Linux OS's
git-svn-id: svn://10.0.0.236/trunk@10510 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 07:49:42 +00:00
mcafee%netscape.com
39523b600e Initial stub version for Rhapsody
git-svn-id: svn://10.0.0.236/trunk@10509 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 07:31:47 +00:00
mcafee%netscape.com
bbc3e473b7 Adding support for Rhapsody
git-svn-id: svn://10.0.0.236/trunk@10508 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 07:21:28 +00:00
mcafee%netscape.com
7b0dbb4932 Initial version for Rhapsody
git-svn-id: svn://10.0.0.236/trunk@10507 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 07:21:02 +00:00
rpotts%netscape.com
9bda26caf9 Added new file nsNetThread.cpp
git-svn-id: svn://10.0.0.236/trunk@10506 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 07:09:45 +00:00
rpotts%netscape.com
5d24c277c9 Added a new file nsNetThread.cpp and the NETLIB_THREAD define
git-svn-id: svn://10.0.0.236/trunk@10505 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 07:08:47 +00:00
rpotts%netscape.com
dc73b41e94 changed the nsNetService to create a dedicated thread for netlib (on windows only for now)
git-svn-id: svn://10.0.0.236/trunk@10504 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 07:08:09 +00:00
rpotts%netscape.com
2845e43acc Made the nsISupports interface threadsafe...
git-svn-id: svn://10.0.0.236/trunk@10503 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 07:06:48 +00:00
rpotts%netscape.com
1ff3503847 Made the nsISupports and nsIRefreshURL interfaces threadsafe...
git-svn-id: svn://10.0.0.236/trunk@10502 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 07:06:07 +00:00
rpotts%netscape.com
39dc7e01c5 Added NSPR DLL to the link which is required for monitors...
git-svn-id: svn://10.0.0.236/trunk@10501 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 07:04:00 +00:00
rpotts%netscape.com
97fe271a46 made URLImpl threadsafe...
git-svn-id: svn://10.0.0.236/trunk@10500 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 07:03:19 +00:00
rpotts%netscape.com
da9754e0a3 Made the netlib blocking stream work correctly when netlib is running on its own thread
git-svn-id: svn://10.0.0.236/trunk@10499 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 07:02:25 +00:00
rpotts%netscape.com
7ba26a9d15 Fixed the reference counting of the URL_Struct being held by the HttpUrl.
git-svn-id: svn://10.0.0.236/trunk@10498 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 07:00:29 +00:00
rpotts%netscape.com
9536efd914 new files which create a dedicated thread for netlib
git-svn-id: svn://10.0.0.236/trunk@10497 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 06:59:33 +00:00
mcafee%netscape.com
cb0dad87de Adding support for Rhapsody
git-svn-id: svn://10.0.0.236/trunk@10496 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 06:58:53 +00:00
rpotts%netscape.com
e5b7068791 Added correct NPL
git-svn-id: svn://10.0.0.236/trunk@10495 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 06:58:32 +00:00
mcafee%netscape.com
90a096689a Initial version, copied from ../unix
git-svn-id: svn://10.0.0.236/trunk@10494 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 06:58:15 +00:00
rpotts%netscape.com
005e45fa59 enabled thread-safe code which was previously only used when JAVA was defined.
git-svn-id: svn://10.0.0.236/trunk@10493 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 06:57:29 +00:00
rpotts%netscape.com
da5741d35d Made nsTraceRefcnt threadsafe...
git-svn-id: svn://10.0.0.236/trunk@10492 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 06:56:22 +00:00
rpotts%netscape.com
70590f0a2a Added threadsafe implementations of Addref()/Release()/QueryInterface()
git-svn-id: svn://10.0.0.236/trunk@10491 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 06:55:30 +00:00
rpotts%netscape.com
1ab1258079 Enabled netlib lock when NS_MT_SUPPORTED is defined
git-svn-id: svn://10.0.0.236/trunk@10490 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 06:54:17 +00:00
rpotts%netscape.com
8db0346764 Turned on Multi-threaded define for windows... (NGLayout only)
git-svn-id: svn://10.0.0.236/trunk@10489 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 06:50:43 +00:00
mcafee%netscape.com
201d6cafda Adding support for non-X11 Unix systems
git-svn-id: svn://10.0.0.236/trunk@10488 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 06:21:01 +00:00
terry%netscape.com
dbab632bf4 Whoops. Ignore anything that tries to override the version number in
the params file.


git-svn-id: svn://10.0.0.236/trunk@10487 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 06:20:13 +00:00
mcafee%netscape.com
437157a453 Fixing -lm not found link error when linking libimg.
git-svn-id: svn://10.0.0.236/trunk@10486 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 06:20:10 +00:00
terry%netscape.com
6169849f2e Updated version string to 2.1 (development)
git-svn-id: svn://10.0.0.236/trunk@10485 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 06:08:15 +00:00
terry%netscape.com
590b42958c Updated version string to 2.0 (shipping)
git-svn-id: svn://10.0.0.236/trunk@10483 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 06:02:20 +00:00
terry%netscape.com
9766a1b60c Make it clear to people that "%version%" will work.
git-svn-id: svn://10.0.0.236/trunk@10482 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 05:48:09 +00:00
terry%netscape.com
9a9d2d401d Change default banner to include version info.
git-svn-id: svn://10.0.0.236/trunk@10481 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 05:47:54 +00:00
troy%netscape.com
4046dc8f39 Changes to nsIFrame
git-svn-id: svn://10.0.0.236/trunk@10480 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 05:03:08 +00:00
terry%netscape.com
de647fe34d Updated version string to 1.3 (development)
git-svn-id: svn://10.0.0.236/trunk@10479 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 04:52:13 +00:00
terry%netscape.com
c8c5bd886a Add simple support for a version string.
git-svn-id: svn://10.0.0.236/trunk@10478 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 04:38:12 +00:00
troy%netscape.com
fcf6ebb325 Changed FrameInserted incremental reflow code to insert the new frame
into the child frame list


git-svn-id: svn://10.0.0.236/trunk@10477 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 04:29:36 +00:00
troy%netscape.com
82c24af034 Removed farme enumeration member functions for indexed access, last child,
and child count


git-svn-id: svn://10.0.0.236/trunk@10475 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 03:24:26 +00:00
ftang%netscape.com
c04615a2c8 fix mac
git-svn-id: svn://10.0.0.236/trunk@10474 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 03:00:21 +00:00
terry%netscape.com
e3271696e2 Patch from Sam Ziegler <ziegler@mediaguaranty.com> -- Don't choke if argv is empty.
git-svn-id: svn://10.0.0.236/trunk@10473 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 02:35:09 +00:00
terry%netscape.com
48fc7dd684 Patch from Sam Ziegler <ziegler@mediaguaranty.com> -- add the URL for TiemDate.
git-svn-id: svn://10.0.0.236/trunk@10472 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 02:34:41 +00:00
pierre%netscape.com
0c5cda0630 added DoResizeWidgets()
git-svn-id: svn://10.0.0.236/trunk@10471 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 01:40:26 +00:00
pierre%netscape.com
55664594c2 added DoResizeWidgets() + fixed Create to handle resize events + imported minor fixes from Windows
git-svn-id: svn://10.0.0.236/trunk@10470 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 01:40:13 +00:00
pierre%netscape.com
55be47f4b9 use PR_IntervalNow() for mLastRefresh
git-svn-id: svn://10.0.0.236/trunk@10469 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 01:39:47 +00:00
pierre%netscape.com
ec7bff8ef9 use UnitConversion macros + some cleanup in DrawString
git-svn-id: svn://10.0.0.236/trunk@10468 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 01:38:51 +00:00
pierre%netscape.com
be6891db14 added 'demo #0'
git-svn-id: svn://10.0.0.236/trunk@10467 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 01:38:37 +00:00
pierre%netscape.com
1182fd5611 implemented resize events and redraw on resize
git-svn-id: svn://10.0.0.236/trunk@10466 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 01:38:26 +00:00
pierre%netscape.com
63d4ed7613 use UnitConversion macros + some cleanup in GetWidth
git-svn-id: svn://10.0.0.236/trunk@10465 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 01:38:10 +00:00
raman%netscape.com
b7141cc833 Added support for unsigned JAR files. This feature is controlled by a preference
git-svn-id: svn://10.0.0.236/trunk@10464 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 01:27:20 +00:00
raman%netscape.com
a36626c6b7 Added a preference to control unsigned JAR files for SmartUpdate
git-svn-id: svn://10.0.0.236/trunk@10463 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 01:26:21 +00:00
raman%netscape.com
394241f708 Added AllJavaPermission target to give complete access to all permissions in Javasoft's JVM
git-svn-id: svn://10.0.0.236/trunk@10462 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 01:25:32 +00:00
raman%netscape.com
92d1f8dbfc Added AllJavaPermission target to give complete access to all permissions in Javasoft's JVM
git-svn-id: svn://10.0.0.236/trunk@10461 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 01:25:05 +00:00
despotdaemon%netscape.com
c8f993367d Pseudo-automatic update of changes made by alecf@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@10460 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 01:10:33 +00:00
despotdaemon%netscape.com
1b6dcf963b Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@10459 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 01:03:27 +00:00
wtc%netscape.com
6a3fdcf92b Moved the obsolete function PR_SetStdioRedirect from probslet.h
back to prproces.h because we don't want to break source
compatibility in this release.


git-svn-id: svn://10.0.0.236/trunk@10458 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 01:00:52 +00:00
ftang%netscape.com
15a65a6da1 Make the history entry to store UTF8 text. We will graduately change FE code also to deal with UTF8 in history database. We need this to make the RDF history access correctly handle Multilingual text
git-svn-id: svn://10.0.0.236/trunk@10457 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 00:33:04 +00:00
ftang%netscape.com
66c7934273 fix bug 147200 by merge nova code
git-svn-id: svn://10.0.0.236/trunk@10456 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 00:30:31 +00:00
ftang%netscape.com
729e100574 Fix the DrawText problem
git-svn-id: svn://10.0.0.236/trunk@10455 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 00:27:03 +00:00
ftang%netscape.com
1aa599717a fix 147200 by merge nova code
git-svn-id: svn://10.0.0.236/trunk@10454 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 00:25:16 +00:00
ftang%netscape.com
cddd352fe4 fix bug 147200 by merge code from nova
git-svn-id: svn://10.0.0.236/trunk@10453 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 00:23:58 +00:00
ftang%netscape.com
c43a7fc0eb fix bug 147200 by merge code from nova
1. Add t61 conversion table
2. change Japanese conversion table on window to use the cp932 table instead.


git-svn-id: svn://10.0.0.236/trunk@10452 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 00:22:09 +00:00
ftang%netscape.com
681f028c40 fix 147200. merged from nova
git-svn-id: svn://10.0.0.236/trunk@10451 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 00:18:00 +00:00
raman%netscape.com
9fab93c0d3 Added CertChain Principal support for Javasoft. Added calls for AskPermission and SetPermission
git-svn-id: svn://10.0.0.236/trunk@10450 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-19 00:06:44 +00:00
pierre%netscape.com
80554f1b46 added nsScrollbar to fix a build breakage
git-svn-id: svn://10.0.0.236/trunk@10449 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 23:51:30 +00:00
pierre%netscape.com
fb31c68e28 Replaced a faulty line with NS_ERROR in order to fix a build breakage. Don will do the right thing later.
git-svn-id: svn://10.0.0.236/trunk@10448 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 23:50:04 +00:00
pierre%netscape.com
fb8add8fab remove outdated manifest files
(closed tree override: raptor build only)


git-svn-id: svn://10.0.0.236/trunk@10447 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 23:47:52 +00:00
sman%netscape.com
b7358826c8 minor updates to layers.
git-svn-id: svn://10.0.0.236/trunk@10446 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 22:54:48 +00:00
troy%netscape.com
b6ecc473ac Attempt number three...
git-svn-id: svn://10.0.0.236/trunk@10445 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 22:54:16 +00:00
troy%netscape.com
07d650b35f Attempt number two...
git-svn-id: svn://10.0.0.236/trunk@10444 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 22:51:36 +00:00
troy%netscape.com
e2934b277d Attempt number one to fix Linux builds...
git-svn-id: svn://10.0.0.236/trunk@10443 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 22:49:15 +00:00
buster%netscape.com
41b4acb09b made sure that all attributes respect their minimum values as per HTML 4 spec.
fixed some comments.


git-svn-id: svn://10.0.0.236/trunk@10442 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 22:39:16 +00:00
pierre%netscape.com
b5c9c71f16 removed nsIContentDelegate.h
git-svn-id: svn://10.0.0.236/trunk@10441 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 22:38:19 +00:00
buster%netscape.com
d92ddd9be2 added ColIsSpannedInto, ColHasSpanningCells
moved *IsSpannedInto and *HasSpanningCells into cellmap, giving us the oppurtunity
to easily cache results if we want.  These methods are still accessed through nsTableFrame.
changed nsTableFrame::GetCellAt to nsTableFrame::GetCellFrameAt to make it more clear what
the method returns:  a frame, not content.


git-svn-id: svn://10.0.0.236/trunk@10440 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 22:37:14 +00:00
spider%netscape.com
b86ce5eb47 WIP: UnicodeString -> nsString
git-svn-id: svn://10.0.0.236/trunk@10439 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 22:18:44 +00:00
cyeh%netscape.com
ad2a89277e add *.cpp file to fix bustage. really. this time i mean it.
git-svn-id: svn://10.0.0.236/trunk@10438 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 21:52:14 +00:00
spider%netscape.com
7e4368016a Fix windows build bustage
git-svn-id: svn://10.0.0.236/trunk@10437 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 21:42:28 +00:00
troy%netscape.com
037f575ef2 Changes to ContentInserted() handler
git-svn-id: svn://10.0.0.236/trunk@10436 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 21:28:21 +00:00
norris%netscape.com
a9b08a59ee Remove ECMA v2 versioning since v2 is far from settled and we don't know which JavaScript version will implement it.
git-svn-id: svn://10.0.0.236/trunk@10435 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 20:40:35 +00:00
norris%netscape.com
8dd8360df1 Update version number and release date. Use the date of our next customer drop.
git-svn-id: svn://10.0.0.236/trunk@10434 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 20:35:09 +00:00
rogerl%netscape.com
3a8f1c97b7 Bug #315139 (aka 104859). Some discrepancies between JS1.2 behaviour for
matching at empty pattern at end of string. I'm not real confident of
this fix since it removes code that seems to explicitly address the issue,
but it does fix the bug.


git-svn-id: svn://10.0.0.236/trunk@10433 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 20:22:59 +00:00
rogerl%netscape.com
278d3c31db Bug #316839. Re-allocation of space for flat1/flat coalesce wasn't using
sizeof(jschar).


git-svn-id: svn://10.0.0.236/trunk@10432 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 20:20:53 +00:00
jband%netscape.com
79eda77222 (not part of client build) added short description to each source file
git-svn-id: svn://10.0.0.236/trunk@10430 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 19:56:45 +00:00
troy%netscape.com
95d9362a90 Added AttributeChanged() member function for communicating attribute value
changes to the frame


git-svn-id: svn://10.0.0.236/trunk@10429 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 19:53:27 +00:00
spider%netscape.com
43c60ab967 Misc fixes for building trex on unix
git-svn-id: svn://10.0.0.236/trunk@10428 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 19:00:22 +00:00
spider%netscape.com
8276a767de export header files for calendar
git-svn-id: svn://10.0.0.236/trunk@10427 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 18:59:50 +00:00
cyeh%netscape.com
1386512ee7 add needed export for nsMalloc::Create
git-svn-id: svn://10.0.0.236/trunk@10426 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 18:57:35 +00:00
spider%netscape.com
52fe0546c9 exporting classes to get julian to link with nlsstub
git-svn-id: svn://10.0.0.236/trunk@10425 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 18:45:50 +00:00
spider%netscape.com
e3dc03c00d IRIX depend fixes
git-svn-id: svn://10.0.0.236/trunk@10424 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 18:29:14 +00:00
spider%netscape.com
c5c7024db2 Unix fixes for free source julian code
git-svn-id: svn://10.0.0.236/trunk@10423 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 18:22:27 +00:00
fur%netscape.com
0f8f315f7b We decided not to create mini-NSPR
git-svn-id: svn://10.0.0.236/trunk@10421 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 18:09:26 +00:00
spider%netscape.com
fde3223be8 WIP: nlsstub implementation, NPL added to all of nlsstub
git-svn-id: svn://10.0.0.236/trunk@10420 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 18:06:30 +00:00
troy%netscape.com
d670e0e0a8 Removed CreateFrame() from nsIHTMLContent
git-svn-id: svn://10.0.0.236/trunk@10419 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 18:04:42 +00:00
troy%netscape.com
b0bdb9e357 Removed nsIContentDelegate.h
git-svn-id: svn://10.0.0.236/trunk@10418 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 17:34:48 +00:00
troy%netscape.com
b60923ad33 Removed content delegates
git-svn-id: svn://10.0.0.236/trunk@10417 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 17:18:37 +00:00
spider%netscape.com
9d4f222984 Updates to pull the latest free source calendar code
git-svn-id: svn://10.0.0.236/trunk@10416 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 16:26:58 +00:00
spider%netscape.com
7bedfe4f94 Adding nsIModel interface
git-svn-id: svn://10.0.0.236/trunk@10415 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 16:18:50 +00:00
warren%netscape.com
c3f4681a93 Added a copy of nsMalloc to get the build going.
git-svn-id: svn://10.0.0.236/trunk@10382 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 11:30:54 +00:00
warren%netscape.com
fa7106b147 Removed export for nsMalloc::Create.
git-svn-id: svn://10.0.0.236/trunk@10381 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 11:07:06 +00:00
warren%netscape.com
78de9ecbcc Fixes to eliminate nsINetworkManager
git-svn-id: svn://10.0.0.236/trunk@10380 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 10:48:12 +00:00
warren%netscape.com
7e1d05c8e7 Removed nsINetworkManager.h which is obsolete.
git-svn-id: svn://10.0.0.236/trunk@10379 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 10:28:45 +00:00
sar%netscape.com
03d031e481 We want a distinct build number for each build regardless of MOZILLA_OFFICIAL
status. This is needed for fullcircle, but it's also the right thing to do.

so add a target for build_number, and add it as a dependency to the export target
This affects win only, and I've tested it.


git-svn-id: svn://10.0.0.236/trunk@10378 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 10:09:15 +00:00
sar%netscape.com
d6fb21a0ed add nsMalloc.cpp per warren
git-svn-id: svn://10.0.0.236/trunk@10376 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 09:21:54 +00:00
warren%netscape.com
133deb962e Moved nsMalloc.cpp to modules/plugin/src.
git-svn-id: svn://10.0.0.236/trunk@10375 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 08:46:06 +00:00
warren%netscape.com
0cc33c826e Updated Mac MANIFEST files.
git-svn-id: svn://10.0.0.236/trunk@10374 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 08:39:16 +00:00
warren%netscape.com
84892de9bb Removed nsINetworkManager base class.
git-svn-id: svn://10.0.0.236/trunk@10373 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 08:35:11 +00:00
warren%netscape.com
1b2552d97a Removed nsINetworkManager.h include.
git-svn-id: svn://10.0.0.236/trunk@10372 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 07:45:24 +00:00
warren%netscape.com
9dad554faf Moved nsIMalloc and impl from xpcom to modules/plugin.
git-svn-id: svn://10.0.0.236/trunk@10370 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 07:22:48 +00:00
warren%netscape.com
8a3c9ecf3d Moved nsIMalloc and impl from xpcom.
git-svn-id: svn://10.0.0.236/trunk@10369 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 07:22:15 +00:00
warren%netscape.com
4dc47505d5 Eliminated nsINetworkManager and moved it's methods to nsIPluginManager/nsIPluginManager2.
git-svn-id: svn://10.0.0.236/trunk@10368 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 07:21:21 +00:00
ramiro%netscape.com
5580f46827 Fix build bustage, what a dumb ass.
git-svn-id: svn://10.0.0.236/trunk@10362 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 06:46:35 +00:00
ramiro%netscape.com
1cd966972f Move toolbar widgetry to its own library.
git-svn-id: svn://10.0.0.236/trunk@10361 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 06:44:53 +00:00
ramiro%netscape.com
b9e18a4de2 Move toolbar widgetry to its own library.
git-svn-id: svn://10.0.0.236/trunk@10360 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 06:12:45 +00:00
gagan%netscape.com
85642b9189 nucache based changes.
git-svn-id: svn://10.0.0.236/trunk@10359 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 05:52:24 +00:00
gagan%netscape.com
d5ec2468cc Streams fix for MemCache.
git-svn-id: svn://10.0.0.236/trunk@10358 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 05:49:47 +00:00
gagan%netscape.com
d440707c51 CacheStubs- Added InfoAsHTML for about:cache and CacheObject's Reset.
nsCacheManager- InfoAsHTML for about:cache.

nsCacheObject/nsMemStream- Reset function for rereads.


git-svn-id: svn://10.0.0.236/trunk@10357 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 05:49:01 +00:00
rpotts%netscape.com
8d1509f20c Fixed build bustage...
git-svn-id: svn://10.0.0.236/trunk@10356 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 05:25:15 +00:00
troy%netscape.com
873b42bab8 Fixed a compiler warning
git-svn-id: svn://10.0.0.236/trunk@10355 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 03:13:47 +00:00
troy%netscape.com
2abf0e6c62 Removed an unreferenced label
git-svn-id: svn://10.0.0.236/trunk@10354 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 03:10:00 +00:00
troy%netscape.com
28b7bca233 Removed some dead code
git-svn-id: svn://10.0.0.236/trunk@10353 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 03:08:23 +00:00
briano%netscape.com
8cc219ef2a Support for QNX.
git-svn-id: svn://10.0.0.236/trunk@10352 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 02:58:04 +00:00
ramiro%netscape.com
11a6d6003a Fix the "it hangs for ever" problem.
git-svn-id: svn://10.0.0.236/trunk@10351 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 02:57:31 +00:00
briano%netscape.com
ffe4c93b9c Try to support QNX. Need to hack gcc to get it to build/run on this OS ASAP....
git-svn-id: svn://10.0.0.236/trunk@10350 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 02:51:39 +00:00
briano%netscape.com
d9c5508b3d Minor change to support OpenBSD and clean up NetBSD.
git-svn-id: svn://10.0.0.236/trunk@10349 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 02:47:54 +00:00
troy%netscape.com
6a903efb38 Added CreateContinuingFrame()
git-svn-id: svn://10.0.0.236/trunk@10348 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 02:47:03 +00:00
troy%netscape.com
89adfdbbe4 Removed CreateContinuingFrame()
git-svn-id: svn://10.0.0.236/trunk@10347 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 02:46:42 +00:00
sudu%netscape.com
521eac7fdf Removed dependancy on caps/oji plugin stuff in building liveconnect
git-svn-id: svn://10.0.0.236/trunk@10342 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 02:28:50 +00:00
troy%netscape.com
752499e0be Removed some old commented out code
git-svn-id: svn://10.0.0.236/trunk@10341 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 02:28:12 +00:00
troy%netscape.com
ab310b46a0 Removed some code that's no longer needed now that we've switched to
new frame construction


git-svn-id: svn://10.0.0.236/trunk@10340 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 02:22:52 +00:00
briano%netscape.com
3f1e9d981d Got rid of the pointless LINUXy_z macros (again), and made some minor tweaks for ARM systems (NetWinder).
git-svn-id: svn://10.0.0.236/trunk@10339 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 02:16:44 +00:00
wtc%netscape.com
5f37fc94d7 Added PR_ProcessAttrSetCurrentDirectory to allow setting the current
working directory of the new process.  PR_SetStdioRedirect is renamed
PR_ProcessAttrSetStdioRedirect.  The old name is retained but moved
to obsolete/probslet.h.  This work is contributed by Ben Laurie
<ben@algroup.co.ul>.
Files changed: prproces.h, probslet.h, primpl.h, uxproces.c, ntmisc.c,
prinit.c, and parent.c.


git-svn-id: svn://10.0.0.236/trunk@10338 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 02:15:21 +00:00
troy%netscape.com
2ee95ba6e1 Added NS_INIT_REFCNT() to constructor
git-svn-id: svn://10.0.0.236/trunk@10337 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 02:05:46 +00:00
jfrancis%netscape.com
0bbea4a406 Redoing Ender toolbar.
git-svn-id: svn://10.0.0.236/trunk@10336 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 01:38:51 +00:00
warren%netscape.com
aabefb01c6 Abstracted away need for JavaVM object and GetJavaVM plugin API call.
git-svn-id: svn://10.0.0.236/trunk@10335 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 01:29:08 +00:00
jfrancis%netscape.com
49a55eb55e Redoing Ender toolbar.
git-svn-id: svn://10.0.0.236/trunk@10334 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 01:24:28 +00:00
jfrancis%netscape.com
3107ffa7bd Redoing Ender toolbar
git-svn-id: svn://10.0.0.236/trunk@10333 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 01:23:45 +00:00
warren%netscape.com
85fa7333b6 Fixed comments.
git-svn-id: svn://10.0.0.236/trunk@10332 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 01:23:04 +00:00
jfrancis%netscape.com
0452c5d0d8 Redoing the Ender toolbar
git-svn-id: svn://10.0.0.236/trunk@10331 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 01:22:28 +00:00
jband%netscape.com
c878b932b0 (not part of client build) added call/return hooks to js_Invoke and js_Execute. Also added additional accessors to jsdbgapi for JSStackFrame contents. This will better facilitate tracking exceptions as they propagate up the stack, allow for faster stepping schemes, and support less intrusive tracing/profiling schemes.
git-svn-id: svn://10.0.0.236/trunk@10329 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 00:57:11 +00:00
troy%netscape.com
d2df7b2380 Removed some commented out code that's not needed now that we're using the
new frame construction


git-svn-id: svn://10.0.0.236/trunk@10328 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 00:49:40 +00:00
joki%netscape.com
44d5557928 Adding targetting of any named window
git-svn-id: svn://10.0.0.236/trunk@10327 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 00:35:55 +00:00
jgellman%netscape.com
edc8218b01 Remove java API from the build.
git-svn-id: svn://10.0.0.236/trunk@10326 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 00:10:15 +00:00
troy%netscape.com
65a64892ea Removed some code that's no longer needed with the new frame construction code
git-svn-id: svn://10.0.0.236/trunk@10325 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-18 00:04:55 +00:00
troy%netscape.com
59c46e5471 Removed some code that's no longer needed now that tables are using the
new frame construction code


git-svn-id: svn://10.0.0.236/trunk@10324 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 23:54:47 +00:00
mccabe%netscape.com
6d3c8c3245 Propagate mcafee compile-warning fixes from js/src.
git-svn-id: svn://10.0.0.236/trunk@10323 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 23:48:20 +00:00
troy%netscape.com
6ab448b5ac Removed code that's no longer needed now that tables are using new
frame construction code


git-svn-id: svn://10.0.0.236/trunk@10322 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 23:46:16 +00:00
ebina%netscape.com
a08fa2244d "This doesn't make it work, but it makes it 'better'" - Kipp
git-svn-id: svn://10.0.0.236/trunk@10321 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 22:08:35 +00:00
beard%netscape.com
22e6878541 09171998 LiveConnect Carpool: build bustage: false -> PR_FALSE.
git-svn-id: svn://10.0.0.236/trunk@10320 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 22:03:45 +00:00
jsun%netscape.com
776c60206d No change.
Just wanted to notify Mozilla, Gromit trees that my
checkins (in mozilla\modules\calendar) are not being build by Mozilla or Gromit.

Only Calendar should build these files.


git-svn-id: svn://10.0.0.236/trunk@10318 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 21:40:43 +00:00
kipp%netscape.com
4e20f650e6 Register inet service so that the test works again
git-svn-id: svn://10.0.0.236/trunk@10317 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 21:33:14 +00:00
kipp%netscape.com
90becafe72 Fixed deref of unitialized memory bug in URLImpl::Open
git-svn-id: svn://10.0.0.236/trunk@10316 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 21:32:52 +00:00
troy%netscape.com
54d2e9932f Changed some AddRef/Release calls overto use XP-COM macros
git-svn-id: svn://10.0.0.236/trunk@10315 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 21:27:22 +00:00
jsun%netscape.com
8e56243356 added the changeEventsOwnership method for moving events between calendars.
git-svn-id: svn://10.0.0.236/trunk@10314 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 21:24:52 +00:00
beard%netscape.com
4c83957aaa 09171998 LiveConnect Carpool
git-svn-id: svn://10.0.0.236/trunk@10313 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 20:41:00 +00:00
beard%netscape.com
ae218ef314 09171998 LiveConnect Carpool: build bustage.
git-svn-id: svn://10.0.0.236/trunk@10312 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 20:35:10 +00:00
beard%netscape.com
ada1dee2b0 09171998 LiveConnect Carpool: build bustage (backed out to 3.3 version)
git-svn-id: svn://10.0.0.236/trunk@10311 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 20:33:21 +00:00
troy%netscape.com
b17920e27e Changed some code to use NS_NEWPCOM and NS_DELETEXPCOM
git-svn-id: svn://10.0.0.236/trunk@10310 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 20:25:26 +00:00
beard%netscape.com
2646330d9e 09171998 LiveConnect Carpool: build bustage
git-svn-id: svn://10.0.0.236/trunk@10309 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 20:18:36 +00:00
beard%netscape.com
a6cd82d8fa 09171998 LiveConnect Carpool: build bustage.
git-svn-id: svn://10.0.0.236/trunk@10308 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 20:17:57 +00:00
spider%netscape.com
a279be7c89 Adding CalendarModel framework to core
git-svn-id: svn://10.0.0.236/trunk@10307 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 20:14:25 +00:00
kostello%netscape.com
d409292d6e Fixed textfield problems from widget changes.
git-svn-id: svn://10.0.0.236/trunk@10306 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 20:07:15 +00:00
troy%netscape.com
71760eac75 Replaced some AddRef() and Release() calls with the XP-COM macros
git-svn-id: svn://10.0.0.236/trunk@10305 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 20:02:04 +00:00
valeski%netscape.com
22ce87e890 Now nulling out a variable that was causing a crash on url open.
git-svn-id: svn://10.0.0.236/trunk@10304 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 19:56:30 +00:00
beard%netscape.com
51cd10b5a9 09171998 LiveConnect Carpool: added export for nsRepository::UnregisterFactory(const nsID&,nsIFactory*).
git-svn-id: svn://10.0.0.236/trunk@10303 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 19:55:08 +00:00
troy%netscape.com
21960f2897 Changed some AddRef() and Release() calls to use the XP-COM macros
git-svn-id: svn://10.0.0.236/trunk@10302 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 19:49:10 +00:00
beard%netscape.com
d156d485ce 09171998 LiveConnect Carpool: XP_MAC, added #define of JSJDLL, and preregistering the nsILiveconnect factory.
git-svn-id: svn://10.0.0.236/trunk@10301 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 19:39:46 +00:00
beard%netscape.com
ea3cae2a29 09171998 LiveConnect Carpool: #ifndef NS_EXPORT, to not conflict with nsCom.h definition.
git-svn-id: svn://10.0.0.236/trunk@10300 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 19:22:39 +00:00
sudu%netscape.com
4688f0e06e including config.mak to get default MOZ_OJI flag being set in config
git-svn-id: svn://10.0.0.236/trunk@10299 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 19:22:38 +00:00
beard%netscape.com
1938753e23 09171998 LiveConnect Carpool: XP_MAC, fixed NS_EXPORT to actually export on the Mac.
git-svn-id: svn://10.0.0.236/trunk@10298 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 19:21:43 +00:00
sman%netscape.com
7609d1d6bc moved some files from shell to core
git-svn-id: svn://10.0.0.236/trunk@10297 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 19:21:04 +00:00
beard%netscape.com
576429899f 09171998 LiveConnect Carpool
git-svn-id: svn://10.0.0.236/trunk@10296 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 19:20:20 +00:00
beard%netscape.com
de85d9e164 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@10295 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 19:15:15 +00:00
sudu%netscape.com
4a1c1f1011 removed c++ style comments
git-svn-id: svn://10.0.0.236/trunk@10294 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 19:06:00 +00:00
sudu%netscape.com
4a658933f1 Added nsCCodeSourcePrinicipal.h to export line
git-svn-id: svn://10.0.0.236/trunk@10291 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 18:49:51 +00:00
sudu%netscape.com
3435dc668b Included confg.mk so that MOZ_OJI flag gets picked up from there. Else liveonnect dir would not be traversed
git-svn-id: svn://10.0.0.236/trunk@10290 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 18:35:15 +00:00
sudu%netscape.com
892dd2f1aa Added caps in the include line
git-svn-id: svn://10.0.0.236/trunk@10289 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 18:32:45 +00:00
sudu%netscape.com
6f6bc9a46b Moved NPL_Init after RDF_Init as NPL_Init depends on RDF stuff via caps manager
git-svn-id: svn://10.0.0.236/trunk@10288 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 18:31:47 +00:00
sman%netscape.com
c8c3a3a102 reorganize data loading.
git-svn-id: svn://10.0.0.236/trunk@10287 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 18:28:53 +00:00
sudu%netscape.com
9f4d3b87f6 Added new XPCOM apis to liveconnect
git-svn-id: svn://10.0.0.236/trunk@10285 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 18:21:49 +00:00
terry%netscape.com
c8e4c168d6 Oops. Last checkin had more ambitious code than I meant in it.
git-svn-id: svn://10.0.0.236/trunk@10284 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 18:21:03 +00:00
sudu%netscape.com
c81d4ecd99 removing jni files which were placed by mistake in _jri dir
git-svn-id: svn://10.0.0.236/trunk@10283 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 18:18:16 +00:00
sudu%netscape.com
adf1a3ab65 Resurrecting the files which were placed in wrong dir _jri
git-svn-id: svn://10.0.0.236/trunk@10282 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 18:17:04 +00:00
terry%netscape.com
fc54758da9 Give my full e-mail address.
git-svn-id: svn://10.0.0.236/trunk@10281 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 18:16:01 +00:00
sudu%netscape.com
e1bee63656 New xpcom liveconnect apis
git-svn-id: svn://10.0.0.236/trunk@10280 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 18:13:55 +00:00
sudu%netscape.com
d59e07a06e New caps manager related changes
git-svn-id: svn://10.0.0.236/trunk@10279 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 18:12:52 +00:00
sudu%netscape.com
44ef09dc26 Changed method signature of LM_GetJSPrincipalsFromJavaCaller
git-svn-id: svn://10.0.0.236/trunk@10278 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 18:12:40 +00:00
sudu%netscape.com
db497426f5 Fixed up regenerate rules for jni
git-svn-id: svn://10.0.0.236/trunk@10277 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 18:12:36 +00:00
sudu%netscape.com
a0b23975e0 New xpcom caps manager apis
git-svn-id: svn://10.0.0.236/trunk@10276 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 18:12:32 +00:00
kmcclusk%netscape.com
fb52d0e62d Added back missing nsTextField and nsTextArea widgets to the factory.
git-svn-id: svn://10.0.0.236/trunk@10275 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 17:55:24 +00:00
despotdaemon%netscape.com
bf1dbdd67e Pseudo-automatic update of changes made by cata@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@10274 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 17:49:57 +00:00
spider%netscape.com
89cee3c002 Fix for build bustage
git-svn-id: svn://10.0.0.236/trunk@10273 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 17:43:49 +00:00
despotdaemon%netscape.com
8e62bce178 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@10272 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 16:55:08 +00:00
kmcclusk%netscape.com
f6aaa1dadb Fix for Irix build.
git-svn-id: svn://10.0.0.236/trunk@10271 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 16:18:29 +00:00
kmcclusk%netscape.com
44a2bd0758 Added fix in nsCheckButton for IRIX build. Made OnPaint and OnResize virtual
in nsWindow.h, this fixes a bug when bringing up Sample5.


git-svn-id: svn://10.0.0.236/trunk@10270 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 15:31:18 +00:00
ramiro%netscape.com
2ed4fe8e98 Add xfeCmdClearUrlBar and deal with it in XFE_BrowserFrame.
git-svn-id: svn://10.0.0.236/trunk@10269 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 14:22:38 +00:00
ramiro%netscape.com
19a0b04a4d Add clearText().
git-svn-id: svn://10.0.0.236/trunk@10268 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 14:20:06 +00:00
ramiro%netscape.com
5426185681 Move the dynamic layout parts of XfeManager to their own superclass
XfeDynamicManager.  This will make it a lot easier to write complicated
layout functions, such as the fancy configurable toolbar stuff.
Renamed a bunch of poorly named methods and data members.


git-svn-id: svn://10.0.0.236/trunk@10267 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 14:11:54 +00:00
radha%netscape.com
012ffdbd4b Call createHTMLPane only once
git-svn-id: svn://10.0.0.236/trunk@10266 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 14:11:23 +00:00
radha%netscape.com
45b1862fe8 Create the HTML pane
git-svn-id: svn://10.0.0.236/trunk@10265 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 14:10:53 +00:00
ramiro%netscape.com
69ff0aa488 Fix default rdf toolbar layout.
git-svn-id: svn://10.0.0.236/trunk@10264 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 13:48:14 +00:00
dcone%netscape.com
09df69244e First scrollbar pass
git-svn-id: svn://10.0.0.236/trunk@10263 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 13:44:46 +00:00
ramiro%netscape.com
adcf99e250 Add button layout test.
git-svn-id: svn://10.0.0.236/trunk@10262 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 10:59:23 +00:00
morse%netscape.com
69565eea61 display domain name instead of host name if domain is setting a cookie
git-svn-id: svn://10.0.0.236/trunk@10261 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 10:30:45 +00:00
ramiro%netscape.com
f0a488a96d Add include path needed for HPUX 10.20.
Thanks to Ralf Hildebrandt <R.Hildebrandt@tu-bs.de> for pointing this out.


git-svn-id: svn://10.0.0.236/trunk@10260 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 10:02:40 +00:00
ramiro%netscape.com
ff64549bac Change 'static XtResource' to 'static const XtResource' types for resources.
Thanks to Joe Keane <jgk@jgk.org>.


git-svn-id: svn://10.0.0.236/trunk@10259 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 09:55:48 +00:00
pierre%netscape.com
402408abd7 fixing mac build: renamed the factory entry point
git-svn-id: svn://10.0.0.236/trunk@10258 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 09:17:39 +00:00
pierre%netscape.com
67c6327950 added the Layout and NetLib factories
git-svn-id: svn://10.0.0.236/trunk@10257 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 09:17:10 +00:00
pierre%netscape.com
882df377a4 added nsNetFactory
git-svn-id: svn://10.0.0.236/trunk@10256 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 09:16:23 +00:00
pierre%netscape.com
dbc1a1f79d added nsLayoutFactory
git-svn-id: svn://10.0.0.236/trunk@10255 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 09:14:36 +00:00
pierre%netscape.com
594d246987 added mozilla:layout:build:MANIFEST to the list
git-svn-id: svn://10.0.0.236/trunk@10254 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 08:50:39 +00:00
pierre%netscape.com
7ebf8f628a SetFont supports styles.
Drawstring doesn't draw the 0's in Unicode strings.


git-svn-id: svn://10.0.0.236/trunk@10253 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 08:08:26 +00:00
pierre%netscape.com
94027acd31 minor cleanup in GetXHeight, GetSuperscriptOffset and GetSubscriptOffset
git-svn-id: svn://10.0.0.236/trunk@10252 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 08:07:02 +00:00
pierre%netscape.com
f8e5880591 added GetMacFontNumber and CheckFontExistence
git-svn-id: svn://10.0.0.236/trunk@10251 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 07:51:12 +00:00
brendan%netscape.com
9dc6f1d1c7 Fix missing ->pseudos and speak the same boolean as the comment uses.
git-svn-id: svn://10.0.0.236/trunk@10250 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 07:43:13 +00:00
brendan%netscape.com
32a8aa7179 Pity the machines that lack long long (and be explicit when losing bits).
git-svn-id: svn://10.0.0.236/trunk@10249 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 06:46:20 +00:00
brendan%netscape.com
d80e0cf9a7 Keep windows building via xp.h, with an XXX comment.
git-svn-id: svn://10.0.0.236/trunk@10248 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 06:44:33 +00:00
rpotts%netscape.com
435c373c8d Fixed up usage of the NS_RELEASE2(...) macro.
git-svn-id: svn://10.0.0.236/trunk@10247 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 05:40:57 +00:00
rpotts%netscape.com
1ce4b0ca1a Changed NS_RELEASE2(...) macro to conditionally NULL the interface argument...
git-svn-id: svn://10.0.0.236/trunk@10246 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 05:38:21 +00:00
troy%netscape.com
64d4e5e4c5 Removed some XXX temp code that was needed until tables were switched
over to the new frame construction code


git-svn-id: svn://10.0.0.236/trunk@10245 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 04:57:50 +00:00
troy%netscape.com
fd4da3a3ed Removed some XXX frame construction work-in-progress code
git-svn-id: svn://10.0.0.236/trunk@10244 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 04:44:27 +00:00
troy%netscape.com
9ec1729d6e Cleaned up frame construction code
git-svn-id: svn://10.0.0.236/trunk@10243 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 04:07:58 +00:00
blizzard%appliedtheory.com
afc18ecdb3 Pixmap creation and updating now use gdk primitives
git-svn-id: svn://10.0.0.236/trunk@10242 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 04:07:14 +00:00
ramiro%netscape.com
60dfee6281 Build MOZ_MAIL_COMPOSE build bustage. Its MOZ_MAIL_COMPOSE, not MOZ_COMPOSE.
Also, a bunch of icons were not being linked in.


git-svn-id: svn://10.0.0.236/trunk@10241 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 03:56:45 +00:00
spider%netscape.com
e9417fee4e WIP: nlsstub implementation
git-svn-id: svn://10.0.0.236/trunk@10240 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 02:39:51 +00:00
spider%netscape.com
486a0b2450 Initial nlsstub implementation to remove libnls dependency
for free source execution


git-svn-id: svn://10.0.0.236/trunk@10239 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 02:07:28 +00:00
vidur%netscape.com
e792ef87b8 Added constructors for DOM JS classes. nsIScriptObjectOwner::ResetScriptObject is now SetScriptObject. New factory for layout. New interface nsIDOMNativeObjectRegistry.
git-svn-id: svn://10.0.0.236/trunk@10238 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 01:53:52 +00:00
slamm%netscape.com
4590c3ac53 Add back some security icons.
git-svn-id: svn://10.0.0.236/trunk@10237 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 01:35:01 +00:00
wtc%netscape.com
b4e70e6d93 Define HAVE_LONG_LONG on BSDI. (Acknowledgements: Bert Driehuis
<driehuis@playbeing.org>.)


git-svn-id: svn://10.0.0.236/trunk@10236 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 01:10:21 +00:00
kmcclusk%netscape.com
7c54e19b31 Fix for IRIX in nsRadioButton.cpp added const to nsRadioButton::SetState.
Removed scrollbar debug printf in nsXtEventHandler.cpp.


git-svn-id: svn://10.0.0.236/trunk@10235 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:57:59 +00:00
valeski%netscape.com
edf8a94dff ? network/module/nsNetFactory.cpp
Added nsNetFactory implementation. This allows users to retrieve nsINetService pointers from the service factory manager.

M dom/src/base/nsGlobalWindow.cpp
M gfx/src/nsImageNetContextSync.cpp
M layout/html/document/src/nsHTMLDocument.cpp
M network/module/nsURL.cpp
Replaced NS_NewINetService() calls with nsServiceManager::GetService() calls.

M network/module/Makefile
M network/module/makefile.win
Added nsNetFactory.cpp to the builds.

M network/module/nsINetService.h
Added a #define for the class id of the nsNetService.

M network/module/nsIStreamListener.h
Removed the NS_DEFINE_IID of kIStreamListenerIID from the header file. Each module that wants this will need to delcare it themselves.

M network/module/nsNetFile.cpp
Fixed memory leak.

M network/module/nsNetService.cpp
Globalized the gNetlibService variable so the NetFactory can access it.

M webshell/src/nsDocLoader.cpp
M webshell/src/nsPluginViewer.cpp
NS_DEFINE_IID of kIStreamListenerIID

M webshell/tests/viewer/nsSetupRegistry.cpp
Added the netlib library to the list of libraries in the registry and register the nsNetFactory with the appropriate iid and clsids.


git-svn-id: svn://10.0.0.236/trunk@10234 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:55:35 +00:00
kmcclusk%netscape.com
b8062b30c0 Fixed scrollbar scrolling event dispatch.
Wasn't scrolling because OnScroll was not declared virtual in nsWindow.h.


git-svn-id: svn://10.0.0.236/trunk@10233 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:49:03 +00:00
kmcclusk%netscape.com
3e5ef8c6ca Removed so releaseref's from nsWindow::OnDestroy
git-svn-id: svn://10.0.0.236/trunk@10232 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:30:08 +00:00
terry%netscape.com
632858d72b Bug fix by Brian Jones <cbj@nortel.net> -- was failing to create new users.
git-svn-id: svn://10.0.0.236/trunk@10231 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:21:07 +00:00
peterl%netscape.com
ef14f3a242 connected xheight, fixed font realtive sizes,
fixed text-decoration


git-svn-id: svn://10.0.0.236/trunk@10230 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:19:47 +00:00
peterl%netscape.com
a1eec07558 fixed bugs dealing with string color values
git-svn-id: svn://10.0.0.236/trunk@10229 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:18:57 +00:00
peterl%netscape.com
91ec47226f added decoration rendering code to deal with CSSisms
git-svn-id: svn://10.0.0.236/trunk@10228 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:18:25 +00:00
peterl%netscape.com
f78b4d45b2 added decoration metrics api
git-svn-id: svn://10.0.0.236/trunk@10227 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:17:43 +00:00
peterl%netscape.com
7592a1906a connected outline metrics
git-svn-id: svn://10.0.0.236/trunk@10226 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:17:23 +00:00
peterl%netscape.com
6c08578bd3 changed overline code to use font metrics
git-svn-id: svn://10.0.0.236/trunk@10225 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:15:56 +00:00
peterl%netscape.com
c6e9f05f58 change scaling to be based on y pixel size
git-svn-id: svn://10.0.0.236/trunk@10224 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:15:22 +00:00
peterl%netscape.com
bcde5a0626 added api for decoration metrics
git-svn-id: svn://10.0.0.236/trunk@10223 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:14:45 +00:00
peterl%netscape.com
6cc6f7d1ad added decoration_none
git-svn-id: svn://10.0.0.236/trunk@10222 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:13:15 +00:00
pierre%netscape.com
d001449914 add refcount in GetFontMetrics + fix TextSize
git-svn-id: svn://10.0.0.236/trunk@10221 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:07:31 +00:00
troy%netscape.com
a880832886 Changed ContentAppended() to not walk up the frame hierarchy looking
for a frame that maps the parent content object that changed


git-svn-id: svn://10.0.0.236/trunk@10220 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:06:46 +00:00
sdagley%netscape.com
c2b43ff523 Restored radio group for cookie settings radio buttons
git-svn-id: svn://10.0.0.236/trunk@10219 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 23:57:22 +00:00
kmcclusk%netscape.com
a857bd291e Moved libraptorhtmltable down below libraptorhtmlstyle to try and resolve
a link error.


git-svn-id: svn://10.0.0.236/trunk@10218 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 23:38:59 +00:00
slamm%netscape.com
9195e9e667 Back out button simplification until security stuff is worked out.
git-svn-id: svn://10.0.0.236/trunk@10217 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 23:29:09 +00:00
troy%netscape.com
a0f03120c9 Fixed a problem with tables with COLGROUP and COL elements crashing
because there was a null cellmap


git-svn-id: svn://10.0.0.236/trunk@10216 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 23:24:39 +00:00
joki%netscape.com
8f46a864ae Add null check before queryinterface call
git-svn-id: svn://10.0.0.236/trunk@10215 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 23:16:37 +00:00
kmcclusk%netscape.com
5467b9e959 Added nsInlineLayout to unix Makefile
git-svn-id: svn://10.0.0.236/trunk@10214 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 23:09:42 +00:00
pierre%netscape.com
7c6a2c1807 fix build breakage
git-svn-id: svn://10.0.0.236/trunk@10213 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 22:55:05 +00:00
pierre%netscape.com
c7a76453a7 fix FontMetrics (getting better but still temporary code)
git-svn-id: svn://10.0.0.236/trunk@10212 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 22:49:36 +00:00
pierre%netscape.com
ca40730cd5 re-enable OnPaint() (it crashed because of missing refcounts in nsWindow)
git-svn-id: svn://10.0.0.236/trunk@10211 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 22:48:25 +00:00
pierre%netscape.com
bfacca5f3e fix SetFont (still temporary code)
git-svn-id: svn://10.0.0.236/trunk@10210 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 22:46:36 +00:00
pierre%netscape.com
720b1e9105 add refcount in GetDeviceContext and GetAppShell
git-svn-id: svn://10.0.0.236/trunk@10209 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 22:45:24 +00:00
slamm%netscape.com
9d3a83abde Make sure callbacks are visible to derived classes.
git-svn-id: svn://10.0.0.236/trunk@10207 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 22:28:12 +00:00
jband%netscape.com
877577c907 (not part of client build) moving to mozilla from jsdse_branch of ns/js/jsd/corba. This code constitutes the server side of the Corba/iiop based remote JavaScript debugging system. There is not currently a build system for the C++ code in place
git-svn-id: svn://10.0.0.236/trunk@10206 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 22:24:00 +00:00
kmcclusk%netscape.com
7585eafb04 Added nsLineLayout.cpp to Makefile
git-svn-id: svn://10.0.0.236/trunk@10205 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 21:56:43 +00:00
kmcclusk%netscape.com
0a8de7e776 Added nsInlineFrame.cpp to Makefile for unix
git-svn-id: svn://10.0.0.236/trunk@10204 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 21:51:08 +00:00
slamm%netscape.com
bbf3f0cec1 Add 'ifdef MOZ_MAIL_NEWS' around the mail & news icons.
git-svn-id: svn://10.0.0.236/trunk@10203 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 21:50:00 +00:00
kmcclusk%netscape.com
6c3f0127af Added nsBlockFrame.cpp to Makefile for unix
git-svn-id: svn://10.0.0.236/trunk@10202 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 21:47:22 +00:00
slamm%netscape.com
ccdc105a09 Move some toolbar specific code from RDFMenuToolbarBase to RDFToolbar.
git-svn-id: svn://10.0.0.236/trunk@10201 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 21:46:22 +00:00
slamm%netscape.com
18656de471 Remove unused extern.
git-svn-id: svn://10.0.0.236/trunk@10200 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 21:46:16 +00:00
slamm%netscape.com
5533746860 Use only one icon group per toolbar item. We previously allowed up to four, but no one uses it anymore and it was ugly.
git-svn-id: svn://10.0.0.236/trunk@10199 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 21:46:11 +00:00
slamm%netscape.com
90b6b18b95 Remove mouse-down (md) and insensitive (i) icons. These can be drawn on the fly.
git-svn-id: svn://10.0.0.236/trunk@10198 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 21:45:57 +00:00
slamm%netscape.com
a7129e5059 Get rid of MOZ_LITE hack.
git-svn-id: svn://10.0.0.236/trunk@10197 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 21:44:40 +00:00
slamm%netscape.com
4733fd7870 Add 'ifdef MOZ_MAIL_NEWS' around the mail & news icons.icons.c
git-svn-id: svn://10.0.0.236/trunk@10196 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 21:44:37 +00:00
pinkerton%netscape.com
b879804470 add some asserts and sanity checks on the shelves.
git-svn-id: svn://10.0.0.236/trunk@10195 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 21:18:36 +00:00
pinkerton%netscape.com
e2354d7665 fix pane id of the adSpace in the "no grow box" version of the browser window.
git-svn-id: svn://10.0.0.236/trunk@10194 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 21:17:58 +00:00
kmcclusk%netscape.com
dc7d7e8bb8 Added nsWidgetSupport to Makefile. Removed NS_RELASE in widget factory which
would get called after each widget was instantiated.


git-svn-id: svn://10.0.0.236/trunk@10193 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 21:10:51 +00:00
kmcclusk%netscape.com
48a1e6651f Added nsWidgetSupport.h to exports
git-svn-id: svn://10.0.0.236/trunk@10192 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 21:10:02 +00:00
amusil%netscape.com
b7ae7d273c Ported Java to C++ src files
git-svn-id: svn://10.0.0.236/trunk@10191 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 20:47:46 +00:00
amusil%netscape.com
04d572db49 Ported Java to C++ header files
git-svn-id: svn://10.0.0.236/trunk@10190 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 20:47:01 +00:00
kmcclusk%netscape.com
9ceaa121f9 Added ConvertToDeviceCoordinates method to nsWindow.h
git-svn-id: svn://10.0.0.236/trunk@10189 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 20:34:32 +00:00
troy%netscape.com
a80395bfae Clean up work
git-svn-id: svn://10.0.0.236/trunk@10188 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 20:27:30 +00:00
kmcclusk%netscape.com
b5674d4ead Remove PreCreate method from nsComboBox.h added QueryInterface method to
nsTextWidget.cpp


git-svn-id: svn://10.0.0.236/trunk@10187 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 20:27:23 +00:00
kmcclusk%netscape.com
2562ac522c Added missing addref and releaseref's
git-svn-id: svn://10.0.0.236/trunk@10186 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 20:19:39 +00:00
morse%netscape.com
65c8c4221c second attempt to change Bool to PRBool
git-svn-id: svn://10.0.0.236/trunk@10185 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 20:18:05 +00:00
rods%netscape.com
4c2353f325 Fixes for linking
git-svn-id: svn://10.0.0.236/trunk@10184 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 20:17:17 +00:00
robinf%netscape.com
bc8b34ee53 fixing bug #321762: adding a help screen that describes how to remove a screen from AS.
git-svn-id: svn://10.0.0.236/trunk@10183 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 20:11:57 +00:00
rods%netscape.com
eaede0c25c Changed to new interfaces
git-svn-id: svn://10.0.0.236/trunk@10182 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 19:54:06 +00:00
waterson%netscape.com
4cc8bcc30b Added wrappers for 64-bit arithmetic and PRTime.
git-svn-id: svn://10.0.0.236/trunk@10179 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 19:53:12 +00:00
kmcclusk%netscape.com
a8113ea35f Changed TextField and TextArea to use new inteface definition.
git-svn-id: svn://10.0.0.236/trunk@10178 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 19:48:02 +00:00
spider%netscape.com
f6f9317f35 Updates to latest widget interface changes
git-svn-id: svn://10.0.0.236/trunk@10177 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 19:45:57 +00:00
morse%netscape.com
c42025ef8e back out change to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@10176 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 19:11:51 +00:00
sman%netscape.com
0dcece846a More updates for customer council
git-svn-id: svn://10.0.0.236/trunk@10175 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 19:07:15 +00:00
jband%netscape.com
1c8e695487 (not part of client build) added single makefile controlled switchpoint using awk generated Java source file for ASSERT and DEBUG in ifcui
git-svn-id: svn://10.0.0.236/trunk@10174 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 19:04:53 +00:00
cyeh%netscape.com
81e63bacbf use MMDD instead of julian day
git-svn-id: svn://10.0.0.236/trunk@10173 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 19:00:25 +00:00
pinkerton%netscape.com
3ef224a9c3 Forgot to set fe_data in the text attr struct when dealing with fonts.
git-svn-id: svn://10.0.0.236/trunk@10172 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 18:44:58 +00:00
raman%netscape.com
fc377d03a9 Added AskPermission and SetPermission API calls for OJI. Added the CertChain Principal support for JavaSoft.
git-svn-id: svn://10.0.0.236/trunk@10171 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 18:39:48 +00:00
pinkerton%netscape.com
7ef43433a0 Fixes from 4.5-land for locking up the machine while scanning large global history files and memory leak fixes.
git-svn-id: svn://10.0.0.236/trunk@10170 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 18:32:49 +00:00
kin%netscape.com
3b67ca459e First pass support for the HTMLArea embedded toolbar.
git-svn-id: svn://10.0.0.236/trunk@10169 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 18:27:17 +00:00
morse%netscape.com
9af02680e2 changed Bool and XP_Bool to PRBool
git-svn-id: svn://10.0.0.236/trunk@10168 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 18:26:39 +00:00
kin%netscape.com
548da2dd1a Default input for an HTMLArea is now assumed to be HTML. Replaced all calls
to EDT_SetDefaultText() with calls to EDT_SetDefaultHTML().


git-svn-id: svn://10.0.0.236/trunk@10167 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 18:24:12 +00:00
kin%netscape.com
68ffaede91 Fixed bogus assertion thrown when the toolbox contains only one toolbar.
Fixed crash that occurs when a toolbox contains only one toolbar, and you
try to destroy the toolbar. Reviewed and approved by ramiro.


git-svn-id: svn://10.0.0.236/trunk@10166 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 18:23:37 +00:00
kin%netscape.com
496a27d449 Fix to prevent crashing in layout(), called from Manager.c:DeleteChild(),
when the Chrome and it's children are being destroyed.


git-svn-id: svn://10.0.0.236/trunk@10165 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 18:22:56 +00:00
shaver%netscape.com
d3ba34faaa fix dom.h/dom_priv.h mixup
git-svn-id: svn://10.0.0.236/trunk@10164 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 18:11:22 +00:00
rods%netscape.com
5373f0e6e1 Changed to new interfaces
git-svn-id: svn://10.0.0.236/trunk@10163 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 17:59:11 +00:00
rods%netscape.com
c726ceaa90 Changed to new interfaces
git-svn-id: svn://10.0.0.236/trunk@10162 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 17:45:04 +00:00
rods%netscape.com
245ca0fe2e Changed to new interfaces
git-svn-id: svn://10.0.0.236/trunk@10161 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 17:31:02 +00:00
rods%netscape.com
4d9468d373 Changed to new interface
git-svn-id: svn://10.0.0.236/trunk@10160 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 17:21:19 +00:00
troy%netscape.com
8b2676b6e1 Frame construction changes for tables
git-svn-id: svn://10.0.0.236/trunk@10159 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 17:19:20 +00:00
kmcclusk%netscape.com
f66f963cdc Recheckin in over the last checkin from donc which was bad.
git-svn-id: svn://10.0.0.236/trunk@10158 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 17:18:57 +00:00
dcone%netscape.com
f2d34bbd14 added some coordinate conversion
git-svn-id: svn://10.0.0.236/trunk@10157 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 17:18:56 +00:00
spider%netscape.com
dc8b9e5f19 No longer aggregate nsIWidget in nsIXPFCCanvas. Use the CanvasManager
to maintain history.


git-svn-id: svn://10.0.0.236/trunk@10156 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 17:17:45 +00:00
rods%netscape.com
e9715906c0 Fixes for compiling
git-svn-id: svn://10.0.0.236/trunk@10155 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 17:13:10 +00:00
kmcclusk%netscape.com
5a21d40ab8 Converted to use new nsIComboBox interface.
git-svn-id: svn://10.0.0.236/trunk@10154 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 17:12:32 +00:00
rods%netscape.com
c3a01c701d Changed to new interface
git-svn-id: svn://10.0.0.236/trunk@10153 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 17:01:24 +00:00
rods%netscape.com
7bf0b48df2 Changed to new interfaces
git-svn-id: svn://10.0.0.236/trunk@10152 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 17:01:03 +00:00
kmcclusk%netscape.com
d7345f60a2 More modifications to nsWindow.cpp to match nsIWidget interface.
git-svn-id: svn://10.0.0.236/trunk@10151 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 16:44:25 +00:00
dcone%netscape.com
836d0903d2 fixed some image bugs
git-svn-id: svn://10.0.0.236/trunk@10150 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 16:28:33 +00:00
dcone%netscape.com
a0544cb5e0 Fixed a few image bugs
git-svn-id: svn://10.0.0.236/trunk@10149 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 16:28:07 +00:00
dcone%netscape.com
77bdb3d163 fixed colorspace stuff
git-svn-id: svn://10.0.0.236/trunk@10148 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 16:27:36 +00:00
dcone%netscape.com
c01e583336 fixed mac version
git-svn-id: svn://10.0.0.236/trunk@10147 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 16:24:21 +00:00
terry%netscape.com
203638c58f Get rid of .tcl files; we're a perl app now.
git-svn-id: svn://10.0.0.236/trunk@10146 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 15:08:09 +00:00
shaver%netscape.com
3b655468fd perignon now compiles, and back out brendan's xp.h change
git-svn-id: svn://10.0.0.236/trunk@10145 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 14:45:07 +00:00
terry%netscape.com
a93fb2a92b Fixed bug 827 -- silly me still had a reference to a .tcl file. Oops!
git-svn-id: svn://10.0.0.236/trunk@10144 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 14:36:38 +00:00
ramiro%netscape.com
dc64faa66e Fix for bug 293266. Make sure "Joe User's Bookmarks" item appears as first
item in the "File Bookmarks" menu.


git-svn-id: svn://10.0.0.236/trunk@10143 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 14:19:11 +00:00
gagan%netscape.com
4643c44d68 Ooops.... Forgot the #ifdef NU_CACHE around this addition.
git-svn-id: svn://10.0.0.236/trunk@10142 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 10:23:21 +00:00
gagan%netscape.com
a93f248631 Initializing NuCacheProtocol instead of the MemCacheProtocol. Only in NuCache.
git-svn-id: svn://10.0.0.236/trunk@10141 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 10:20:18 +00:00
gagan%netscape.com
345fb3eadb Added CacheObject_Destroy, IsCompleted to mark end of streams. Added isCompleted field in CacheObject. Changed all PL_strncpy to PL_strncpyz to fix the missing trailing \0 problem. Now deleting streams objects correctly from nsMemCacheObjects. Other misc. changes.
git-svn-id: svn://10.0.0.236/trunk@10140 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 10:18:40 +00:00
gagan%netscape.com
58f88ff535 Miscellaneous changes for streams based objects. Added more comments.
git-svn-id: svn://10.0.0.236/trunk@10139 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 10:13:48 +00:00
gagan%netscape.com
1efbd33f60 Added class description comments.
git-svn-id: svn://10.0.0.236/trunk@10138 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 10:12:12 +00:00
gagan%netscape.com
dbeba878ff Added default comments to header files.
git-svn-id: svn://10.0.0.236/trunk@10137 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 10:10:01 +00:00
gagan%netscape.com
f5bf4b3144 Updated tests for nsMemStream testing.
git-svn-id: svn://10.0.0.236/trunk@10136 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 10:09:34 +00:00
gagan%netscape.com
2a8f50f5c9 Added URL_s updating for content_type, content_encoding, etc. Removed CacheObject_Destroy from complete which was messing up the objects.
git-svn-id: svn://10.0.0.236/trunk@10135 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 10:08:47 +00:00
gagan%netscape.com
37346ef741 Moved the nucacheprotoimpl stuff here.
git-svn-id: svn://10.0.0.236/trunk@10134 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 10:04:07 +00:00
gagan%netscape.com
119964e429 Removed nucacheproto from its own file to mkmemcac.c.
git-svn-id: svn://10.0.0.236/trunk@10133 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 10:03:41 +00:00
mcafee%netscape.com
2d9cca2eec Uninitialized variable compiler warnings on Linux
git-svn-id: svn://10.0.0.236/trunk@10132 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 09:37:45 +00:00
mcafee%netscape.com
3cb9c195d8 Uninitialized variable compiler warnings on Linux
git-svn-id: svn://10.0.0.236/trunk@10131 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 09:01:25 +00:00
mcafee%netscape.com
ce59d8aee1 Uninitialized variable compiler warnings on Linux
git-svn-id: svn://10.0.0.236/trunk@10130 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 08:25:31 +00:00
mcafee%netscape.com
5ca568de4c Uninitialized variable compiler warnings on Linux
git-svn-id: svn://10.0.0.236/trunk@10129 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 08:13:29 +00:00
mcafee%netscape.com
f6757ceb72 Uninitialized variable compiler warnings on Linux
git-svn-id: svn://10.0.0.236/trunk@10128 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 07:45:58 +00:00
mcafee%netscape.com
4d978924ca Uninitialized variable compiler warnings on Linux
git-svn-id: svn://10.0.0.236/trunk@10127 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 07:32:19 +00:00
mcafee%netscape.com
3c593fd2f0 Uninitialized variable compiler warnings on Linux
git-svn-id: svn://10.0.0.236/trunk@10126 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 07:22:06 +00:00
valeski%netscape.com
9287d6504d General memory repairs (leakage, freeing mismatched mem, umrs)
git-svn-id: svn://10.0.0.236/trunk@10125 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 07:17:34 +00:00
mcafee%netscape.com
4579eec269 Uninitialized variable compiler warnings on Linux
git-svn-id: svn://10.0.0.236/trunk@10124 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 07:14:42 +00:00
mcafee%netscape.com
9230756830 Unhandled cases in switch statement
git-svn-id: svn://10.0.0.236/trunk@10123 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 06:57:28 +00:00
mcafee%netscape.com
d688a6f0a0 Uninitialized variable compiler warnings on Linux
git-svn-id: svn://10.0.0.236/trunk@10122 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 06:54:49 +00:00
mcafee%netscape.com
981afce29a Fixing Linux breakage. r=valeski
git-svn-id: svn://10.0.0.236/trunk@10121 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 05:48:26 +00:00
mcafee%netscape.com
035bbf7fb2 Uninitialized variable compiler warnings on Linux
git-svn-id: svn://10.0.0.236/trunk@10120 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 05:16:58 +00:00
mcafee%netscape.com
e0251b80be Uninitialized variable compiler warnings on Linux
git-svn-id: svn://10.0.0.236/trunk@10119 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 04:59:00 +00:00
mcafee%netscape.com
e09369c1f8 Compiler warning on Linux
git-svn-id: svn://10.0.0.236/trunk@10118 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 04:42:09 +00:00
valeski%netscape.com
faf12721d1 Fixing build bustage. c++ comments in c file
git-svn-id: svn://10.0.0.236/trunk@10117 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 02:39:16 +00:00
pierre%netscape.com
50d0c06aec fixed raptor build: added nsLoadAttribs.cpp to the 'modular' targets
git-svn-id: svn://10.0.0.236/trunk@10116 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 02:09:08 +00:00
jband%netscape.com
948f6f521c (not part of client build) initial checkin of mozilla/js/jsdj (migrated from ns/js/jsdj)
git-svn-id: svn://10.0.0.236/trunk@10115 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 02:07:50 +00:00
spider%netscape.com
d2925651e3 Fix for clicking on links
git-svn-id: svn://10.0.0.236/trunk@10114 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 01:54:50 +00:00
pierre%netscape.com
e4f07b9064 XP_FileOpen() now supports aliases
git-svn-id: svn://10.0.0.236/trunk@10113 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 01:26:09 +00:00
pierre%netscape.com
c77e51c99a make alias of ua.css
git-svn-id: svn://10.0.0.236/trunk@10112 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 01:24:52 +00:00
spider%netscape.com
1f6655d43a minor changes...
git-svn-id: svn://10.0.0.236/trunk@10111 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 01:21:14 +00:00
spider%netscape.com
bb4142abf3 Demo UI stuff and support for application/ui in DTD and parser
git-svn-id: svn://10.0.0.236/trunk@10110 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 01:14:48 +00:00
sman%netscape.com
ec7ed76d4d New Images!
git-svn-id: svn://10.0.0.236/trunk@10109 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 01:10:02 +00:00
robinf%netscape.com
2d9c07e281 updating these files for Nova; text changes to fix links, remove Mac and Win16 references
git-svn-id: svn://10.0.0.236/trunk@10108 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 01:04:31 +00:00
jband%netscape.com
beb5a39f8e (not EVEN part of mozilla) fix conditional compile code to allow use of debugger without liveconnect
git-svn-id: svn://10.0.0.236/trunk@10107 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 00:56:47 +00:00
kmcclusk%netscape.com
aa7254cf82 Added nsObject.cpp and nsObject.h files, More mods to nsWindow to match
the nsIWidget interface


git-svn-id: svn://10.0.0.236/trunk@10106 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 00:53:19 +00:00
buster%netscape.com
436c4b73a5 better handling of non-cell frames in rowFrames
support for the case where a nested table is in a cell that has colspan>1


git-svn-id: svn://10.0.0.236/trunk@10105 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 00:48:14 +00:00
valeski%netscape.com
893604c431 M webshell/public/nsIDocumentLoader.h
nsIDocumentLoader interface method change to LoadURL() we now accept a local ip address.


M webshell/public/nsIWebShell.h
1. Extended the nsIWebShell LoadURL() method to take an additional PRUint32 parameter which represents an ip address. If specified, this address will be bound to the socket prior to connection as the local/client ip address to be used. The caller is guarantees the validity of this address.
2. Extended the nsReloadType enumeration to allow both proxy and cache bypass.


M webshell/src/nsDocLoader.cpp
1. Extended nsDocumentBindInfo::Bind() to take an additional nsILoadAttribs pointer. (class definitaion change and implementation).

2. Extended nsDocLoaderImpl::LoadURL() to take an additional PRUint32 param which represents an optional local ip address to bind the connecting socket to, prior to connection. (class definitaion change and implementation) The docloader object maintains a pointer to an nsILoadAttribs interface.


M webshell/src/nsWebShell.cpp
Implemented new LoadURL() routine. Simple pass down to doc loader of PRUint32.


M webshell/tests/ComFactory/makefile.win
Added netlib to the list of prerequisites.


git-svn-id: svn://10.0.0.236/trunk@10104 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 00:40:20 +00:00
cyeh%netscape.com
04aa3caab1 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@10103 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 00:37:28 +00:00
valeski%netscape.com
8304001d60 ? network/module/nsILoadAttribs.h
New nsIloadAttribs interface that defines the load attributes that are will be associated with a url.

? network/module/nsLoadAttribs.cpp
New nsIloadAttribs interface implementation.

M network/main/mkconect.c
Check for a new local ip address to use. If found PR_Bind() is called to bind the connecting socket to the new address.

M network/main/mkgeturl.c
Added logic to determine whether or not skip the proxy for the given url.
M network/main/mktcp.h
api change. Changed NET_BeginConnect() and NET_FinishConnect() function prototypes.

M network/module/MANIFEST
Added nsILoadAttribs.h to exports list

M network/module/Makefile
Added nsILoadAttribs.h to exports list and nsILoadAttribs.cpp to compile lists.

M network/module/makefile.win
Added nsILoadAttribs.h to exports list and nsILoadAttribs.cpp to compile lists.

M network/module/nsIURL.h
Added accessor methods to the url interface for nsILoadAttribs interface pointer.

M network/module/nsNetService.h
Added urlSetup method to class definition.

M network/module/nsNetService.cpp
Condensed url setup (from nsIURL properties to the actual url struct) into a helper routine. URL struct setup now transfers nsILoadAttributes over into the url struct.

M network/module/nsURL.cpp
Added nsILoadAttribs accessor method implementations to the url implementation.

M network/protocol/ftp/mkftp.c
api change. NET_*Connect().

M network/protocol/gopher/mkgopher.c
api change. NET_*Connect().

M network/protocol/http/mkhttp.c
api change. NET_*Connect().

M network/protocol/imap4/mkimap4.cpp
api change. NET_*Connect().

M network/protocol/nntp/mknews.c
api change. NET_*Connect().

M network/protocol/pop3/mkpop3.c
api change. NET_*Connect().

M network/protocol/smtp/mksmtp.c
api change. NET_*Connect().


git-svn-id: svn://10.0.0.236/trunk@10102 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 00:35:32 +00:00
valeski%netscape.com
5473c9c1b2 M include/net.h
Adding two new url_struct attributes. uint32 localIP (can be set to specify a local ip address to bing the connecting socket to), boolean bypassProxy (can be set to skip over any proxies that would've been used.


git-svn-id: svn://10.0.0.236/trunk@10101 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 00:25:53 +00:00
kmcclusk%netscape.com
bd037db210 Massive modifications to use the new nsIWidget interface.
git-svn-id: svn://10.0.0.236/trunk@10100 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 00:21:00 +00:00
pierre%netscape.com
eef1a274fc fix mac build: removed several files, added one
git-svn-id: svn://10.0.0.236/trunk@10099 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 00:13:41 +00:00
gagan%netscape.com
75906a59fc Fix for bug # 323918.
git-svn-id: svn://10.0.0.236/trunk@10098 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 00:01:02 +00:00
robinf%netscape.com
f5924ec122 fixing bug #322037 in aatab.htm; removed win16 note from nmtab.htm
git-svn-id: svn://10.0.0.236/trunk@10097 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 23:54:30 +00:00
pierre%netscape.com
52a78fbd8b fixing mac build (the class name was repeated in the method declaration)
git-svn-id: svn://10.0.0.236/trunk@10096 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 23:39:28 +00:00
slamm%netscape.com
31d14a596b Fix build bustage. xp_ncent.c includes htrdf.h which include pa_parse.h. Adding 'parse' to the REQUIRES line.
git-svn-id: svn://10.0.0.236/trunk@10095 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 23:39:20 +00:00
mcafee%netscape.com
6ef6ddecb3 Sample build date. Build process overwrites this file with a current value. 98=year, 258=julian date, 16=4pm PST. a=donm
git-svn-id: svn://10.0.0.236/trunk@10094 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 22:51:11 +00:00
rjc%netscape.com
b663d9987b When sending VPROP_CHANGED events, also pass along information on which property changed.
git-svn-id: svn://10.0.0.236/trunk@10093 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 22:15:46 +00:00
rjc%netscape.com
ad34d6eb08 Need to reference libparse header file.
git-svn-id: svn://10.0.0.236/trunk@10092 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 22:14:59 +00:00
terry%netscape.com
9d2a2b65f3 Whoops; a bad username was causing perl warning messages.
git-svn-id: svn://10.0.0.236/trunk@10091 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 22:12:52 +00:00
spider%netscape.com
c21d038d36 Add support for aggregation in QueryInterface
git-svn-id: svn://10.0.0.236/trunk@10090 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 22:09:57 +00:00
rjc%netscape.com
a9f87890d8 Additional changes for supporting HT_LayoutComplete().
git-svn-id: svn://10.0.0.236/trunk@10089 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 22:07:34 +00:00
spider%netscape.com
14e48ad656 Final implementation and hookup of user, layer and calcanvas
interfaces


git-svn-id: svn://10.0.0.236/trunk@10088 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 22:05:48 +00:00
dcone%netscape.com
41d9ea989b Added image test support, needed netlib in the link
git-svn-id: svn://10.0.0.236/trunk@10087 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 21:58:25 +00:00
kostello%netscape.com
860f5caafc *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@10086 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 21:56:35 +00:00
kostello%netscape.com
6132966f1a Added nsFileWidget.cpp
git-svn-id: svn://10.0.0.236/trunk@10085 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 21:56:07 +00:00
kostello%netscape.com
16a9f6d08b Fix CreateInstance
git-svn-id: svn://10.0.0.236/trunk@10084 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 21:55:50 +00:00
terry%netscape.com
eeb3fe6af9 Add a few more clues.
git-svn-id: svn://10.0.0.236/trunk@10083 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 21:55:46 +00:00
kostello%netscape.com
6bdea53350 Fix QueryInterface
git-svn-id: svn://10.0.0.236/trunk@10082 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 21:55:22 +00:00
kostello%netscape.com
8174b8a00a Update to synch with pc version
git-svn-id: svn://10.0.0.236/trunk@10081 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 21:54:29 +00:00
terry%netscape.com
763d43f255 Everything has been ported to now run under Perl.
git-svn-id: svn://10.0.0.236/trunk@10080 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 21:49:26 +00:00
cyeh%netscape.com
7cbc1b44d2 added missing about.html build numbering
git-svn-id: svn://10.0.0.236/trunk@10079 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 21:34:52 +00:00
briano%netscape.com
f271c3be83 Fix for cyeh's BUILD_OFFICIAL or MOZILLA_OFFICIAL dilemma.
git-svn-id: svn://10.0.0.236/trunk@10078 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 21:32:15 +00:00
joki%netscape.com
cc5aacfa27 More support for capturing, minor adjustments to window.open behavior.
git-svn-id: svn://10.0.0.236/trunk@10077 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 21:31:58 +00:00
mcafee%netscape.com
f974dd8c58 Adding license file. Decoupling version number from build number, version number will have to use another mechanism. a=sar, r=sar,donm
git-svn-id: svn://10.0.0.236/trunk@10076 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 21:16:39 +00:00
jsun%netscape.com
06ca545ef4 changed clobber_julian depend_julian targets so they now go to
mozilla\modules\calendar rather than ns\julian


git-svn-id: svn://10.0.0.236/trunk@10075 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 21:15:08 +00:00
spider%netscape.com
10e6bcc931 New files for user and core cal canvas implementations
git-svn-id: svn://10.0.0.236/trunk@10074 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 20:48:22 +00:00
spider%netscape.com
fe1de1631a WIP: CalUSer. Fix for rendering transparent images
git-svn-id: svn://10.0.0.236/trunk@10073 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 20:45:35 +00:00
buster%netscape.com
26f6ed9085 nsTableRowGroupFrame no longer assumes all its children are rows, or that all row children are cells.
git-svn-id: svn://10.0.0.236/trunk@10072 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 20:36:42 +00:00
michaelp%netscape.com
a62294de07 cleaned up some link jumping nonsense.
git-svn-id: svn://10.0.0.236/trunk@10071 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 20:22:37 +00:00
michaelp%netscape.com
532b0e2b0c jumping through links now works in full screen plugins.
git-svn-id: svn://10.0.0.236/trunk@10070 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 20:21:10 +00:00
ebina%netscape.com
ef7eb77867 Add the source and Makefile for the new mod_gzip_content module.
git-svn-id: svn://10.0.0.236/trunk@10069 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 20:17:13 +00:00
sman%netscape.com
d41ec0e2a0 better images, with transparent background
git-svn-id: svn://10.0.0.236/trunk@10068 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 20:16:44 +00:00
ebina%netscape.com
7f5217ff50 An example Apache 1.3 configuration file to show how to configure the
new mod_gzip_content module.


git-svn-id: svn://10.0.0.236/trunk@10067 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 20:16:19 +00:00
blizzard%appliedtheory.com
258852664b UpdatePixmap completed
git-svn-id: svn://10.0.0.236/trunk@10066 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 20:14:33 +00:00
spider%netscape.com
ac6725e002 Adding core CalCanvas implementation
git-svn-id: svn://10.0.0.236/trunk@10065 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 20:08:35 +00:00
cyeh%netscape.com
0f0198865f added mozilla/xpfc for scallan
git-svn-id: svn://10.0.0.236/trunk@10064 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 20:02:52 +00:00
ccooper%netscape.com
6185ea9c37 Added NPL to LiveConnect java classes.
New file 'JSWrappedException' is used for passing exceptions between Java
and JavaScript.


git-svn-id: svn://10.0.0.236/trunk@10063 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 19:53:48 +00:00
thom%netscape.com
3c2d58ed0a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@10062 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 19:51:15 +00:00
spider%netscape.com
bafbc69717 Implement Layer Collection management of child layers
git-svn-id: svn://10.0.0.236/trunk@10061 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 19:50:58 +00:00
rjc%netscape.com
06e0f20ba6 Fix build bustage. Need to include "structs.h" for new layout completion support.
git-svn-id: svn://10.0.0.236/trunk@10060 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 19:35:38 +00:00
despotdaemon%netscape.com
50b4d75ff1 Pseudo-automatic update of changes made by mjudge@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@10059 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 19:16:46 +00:00
spider%netscape.com
385f043bcb WIP: Initial Layer interface
git-svn-id: svn://10.0.0.236/trunk@10058 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 19:09:36 +00:00
blizzard%appliedtheory.com
66af3da999 gnomefe now creates pixmaps when asked to by the image layer
git-svn-id: svn://10.0.0.236/trunk@10057 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 19:04:32 +00:00
blizzard%appliedtheory.com
bf8fc9bf2b Remove README file. Information should be on the web site and/or elsewhere
in the tree.


git-svn-id: svn://10.0.0.236/trunk@10056 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 18:54:53 +00:00
nisheeth%netscape.com
3563fa3d18 Build list of meta tags on top_state and pass them to RDF HT once layout
completes.  Delete the meta tag list once RDF HT is done looking at it.
This enables functionality like automatically sucking in META info into the
RDF hierarchy when you add a bookmark.


git-svn-id: svn://10.0.0.236/trunk@10055 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 18:37:49 +00:00
nisheeth%netscape.com
6096872983 Changed HT_LayoutComplete() to accept different parameters.
git-svn-id: svn://10.0.0.236/trunk@10054 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 18:36:03 +00:00
nisheeth%netscape.com
fc6080da78 Changed parameters of HT_LayoutComplete().
git-svn-id: svn://10.0.0.236/trunk@10053 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 18:35:16 +00:00
robinf%netscape.com
39f64e949e Fixing bug #309332; reword text on this screen so it's clearer about the type of information the user will be asked for
git-svn-id: svn://10.0.0.236/trunk@10052 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 18:34:51 +00:00
nisheeth%netscape.com
ff8d76d433 Added TagList struct for passing meta tags to RDF HT from layout.
git-svn-id: svn://10.0.0.236/trunk@10051 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 18:32:50 +00:00
despotdaemon%netscape.com
38981d3af7 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@10050 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 18:24:13 +00:00
buster%netscape.com
446ae68865 added table content interfaces
git-svn-id: svn://10.0.0.236/trunk@10049 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 18:07:54 +00:00
buster%netscape.com
60f12ef2ba added command line switches for setting window width and height
git-svn-id: svn://10.0.0.236/trunk@10048 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 18:06:19 +00:00
buster%netscape.com
1c8d847337 nsStyleConsts.h added some HTML 4 consts for tables
nsHTMLAtoms.cpp,h             added some HTML 4 strings for tables
nsHTMLParts.h                 added constructors for new table content classes
nsGenericHTMLElement.cpp,h    added table frame creation, common table attribute parsing
nsHTMLTable*Element.cpp       these are the new table content classes
nsHTMLContentSink.cpp         enabled the new content and removed the old
nsHTMLStyleSheet.cpp          fixed the table style optimizations to work with new content
nsTable*Frame.cpp             these work with the new content


git-svn-id: svn://10.0.0.236/trunk@10047 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 17:58:24 +00:00
spider%netscape.com
49ff8f66c4 WIP: XP USer class
git-svn-id: svn://10.0.0.236/trunk@10046 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 17:29:04 +00:00
blizzard%appliedtheory.com
55be84b8dd Add patches from Bert Driehuis <driehuis@playbeing.org> These patches
make sure that the view is properly returned in all functions where it's
supposed to be.


git-svn-id: svn://10.0.0.236/trunk@10045 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 14:31:47 +00:00
ramiro%netscape.com
2451e78bb4 Comment out 2 assertions to get past toolbar layout problem.
git-svn-id: svn://10.0.0.236/trunk@10044 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 11:26:43 +00:00
ramiro%netscape.com
4f1f18498b Make sure motif link path appears before x link path.
git-svn-id: svn://10.0.0.236/trunk@10043 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 08:26:44 +00:00
warren%netscape.com
ef5fc736c3 API changes for GetValue/SetValue and GetURL/PostURL from michaelp.
git-svn-id: svn://10.0.0.236/trunk@10042 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 04:54:46 +00:00
michaelp%netscape.com
80189a3a87 new file for mac build.
git-svn-id: svn://10.0.0.236/trunk@10041 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 04:15:53 +00:00
spider%netscape.com
9e43daf824 Change to pull and build FS cal
git-svn-id: svn://10.0.0.236/trunk@10040 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 04:03:29 +00:00
spider%netscape.com
a1c09d0a73 Build off of FS calendar
git-svn-id: svn://10.0.0.236/trunk@10039 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 04:02:56 +00:00
warren%netscape.com
250e947a34 Fixed nsMalloc::Create for the non-aggregated case.
git-svn-id: svn://10.0.0.236/trunk@10038 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 03:59:21 +00:00
ramiro%netscape.com
a7a093b79f Add dynamic toolbar layout.
git-svn-id: svn://10.0.0.236/trunk@10037 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 03:56:55 +00:00
michaelp%netscape.com
adef5c738a new plugin world.
git-svn-id: svn://10.0.0.236/trunk@10036 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 03:48:58 +00:00
michaelp%netscape.com
3b967286ad changes for new plugin world.
git-svn-id: svn://10.0.0.236/trunk@10035 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 03:46:52 +00:00
michaelp%netscape.com
6adb1c959c fixes for new plugin world.
git-svn-id: svn://10.0.0.236/trunk@10034 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 03:46:05 +00:00
warren%netscape.com
2bb9a8a545 Accepting michaelp's API changes for GetValue/SetValue.
git-svn-id: svn://10.0.0.236/trunk@10033 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 03:45:38 +00:00
michaelp%netscape.com
68b263feca fix so that if our windows get subclassed and we never hear any
WM_DESTROY messages, we still cleanup properly.


git-svn-id: svn://10.0.0.236/trunk@10032 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 03:45:06 +00:00
ramiro%netscape.com
3c169b7d04 Add #include "prefapi.h".
git-svn-id: svn://10.0.0.236/trunk@10031 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 03:41:15 +00:00
ramiro%netscape.com
27a216e69c Add shell placement.
git-svn-id: svn://10.0.0.236/trunk@10030 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 03:33:06 +00:00
spider%netscape.com
e97fd467cd Getting FS Calendar Core to compile...
git-svn-id: svn://10.0.0.236/trunk@10029 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 03:21:18 +00:00
spider%netscape.com
faefa14a3b Add MOZ_TREX to CFLAGS
git-svn-id: svn://10.0.0.236/trunk@10028 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 03:20:14 +00:00
racham%netscape.com
16f90c3fe0 BUG 323175 : Use global registry variable (currentProfileDirectory)
git-svn-id: svn://10.0.0.236/trunk@10027 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 02:55:58 +00:00
racham%netscape.com
419db3f0eb BUG 323175 : Use global registry variable (urrentProfileDirectory)
git-svn-id: svn://10.0.0.236/trunk@10026 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 02:54:59 +00:00
racham%netscape.com
cb7774c7db BUG 323175 : Catch the registry value into a global variable (currentProfileDirectory)
git-svn-id: svn://10.0.0.236/trunk@10025 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 02:53:59 +00:00
racham%netscape.com
26458fe839 BUG 323175 : Sync up with Netscape Registry and Profile Manager changes
git-svn-id: svn://10.0.0.236/trunk@10024 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 02:52:02 +00:00
spider%netscape.com
795f769d5e Whomping latest Nova Calendar Core implementation into FS
NOTE:  Mozilla & Gromit should not be building this stuff.


git-svn-id: svn://10.0.0.236/trunk@10023 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 02:20:22 +00:00
ramiro%netscape.com
53e0d6f4ad Fix the create view label order.
git-svn-id: svn://10.0.0.236/trunk@10022 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 02:07:09 +00:00
kostello%netscape.com
a5a3cc3c2c Update to synch with new Widget interfaces
git-svn-id: svn://10.0.0.236/trunk@10021 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 01:40:16 +00:00
kostello%netscape.com
4ae2383f99 Add nsWidgetSupport MANIFEST
git-svn-id: svn://10.0.0.236/trunk@10020 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 01:39:26 +00:00
kostello%netscape.com
074e2ccc6f Added nsWidgetSupport.cpp
git-svn-id: svn://10.0.0.236/trunk@10019 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 01:38:53 +00:00
kostello%netscape.com
bc20d943c1 Synch with new Widget interfaces
git-svn-id: svn://10.0.0.236/trunk@10018 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 01:36:26 +00:00
kostello%netscape.com
6647fe02ad Synch with new widget interfaces
git-svn-id: svn://10.0.0.236/trunk@10017 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 01:35:27 +00:00
kipp%netscape.com
282257332e nuked
git-svn-id: svn://10.0.0.236/trunk@10016 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 00:21:25 +00:00
kipp%netscape.com
6a52b74171 Removed css/layout directory
git-svn-id: svn://10.0.0.236/trunk@10015 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 00:19:49 +00:00
kipp%netscape.com
4a9593e1f6 Fixed log module name
git-svn-id: svn://10.0.0.236/trunk@10014 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 00:18:10 +00:00
kipp%netscape.com
8d8e8d1a47 Use traceable ctor design pattern
git-svn-id: svn://10.0.0.236/trunk@10013 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 00:17:53 +00:00
kipp%netscape.com
8c8bbed687 Fixed some memory leaks
git-svn-id: svn://10.0.0.236/trunk@10012 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 00:17:13 +00:00
kipp%netscape.com
916f525269 Use nsBrowserWindow::CloseAllWindows to shutdown cleanly; added a missing NS_RELEASE and removed an improper NS_ADDREF
git-svn-id: svn://10.0.0.236/trunk@10011 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 00:16:50 +00:00
kipp%netscape.com
05141d34c2 Changed reference counting rules so that the global array holds a reference; added CloseAllWindows so that clean app shutdown is possible
git-svn-id: svn://10.0.0.236/trunk@10010 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 00:16:12 +00:00
kipp%netscape.com
54d328117f Removed Destroy and added CloseAllWindows
git-svn-id: svn://10.0.0.236/trunk@10009 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 00:14:31 +00:00
kipp%netscape.com
9095fa6e03 Cleaned up ConvertStatus code
git-svn-id: svn://10.0.0.236/trunk@10008 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 00:14:11 +00:00
kipp%netscape.com
68c7e3cf27 Only execute SymLoadModule when tracing is enabled
git-svn-id: svn://10.0.0.236/trunk@10007 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 00:13:35 +00:00
pinkerton%netscape.com
bed315ee6c don't return "boolean" in GetScrollbarMode() when the return value is a tri-state layout constant. return Int8 which is how it's stored.
git-svn-id: svn://10.0.0.236/trunk@10006 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 23:32:42 +00:00
vidur%netscape.com
854414df4f Got rid of Construct method from nsIJSScriptObject interface. Added first-pass implementation of reflow case to nsGenericHTMLElement::SetAttr.
git-svn-id: svn://10.0.0.236/trunk@10004 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 23:02:32 +00:00
vidur%netscape.com
82f15807dd Got rid of Construct method from nsIJSScriptObject interface.
git-svn-id: svn://10.0.0.236/trunk@10003 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 23:01:48 +00:00
slamm%netscape.com
250269edd6 Fix the lines removed count in the +/- column
git-svn-id: svn://10.0.0.236/trunk@10002 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 22:58:53 +00:00
sman%netscape.com
d2d2c6ff59 Updated to use the new error codes
git-svn-id: svn://10.0.0.236/trunk@10001 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 22:40:42 +00:00
pinkerton%netscape.com
04a5b3b832 Fix bug where we would randomly crash in the RDF notification handler. We weren't properly disposing of the personal toolbar pane and so it would get events long after it was deleted, causing crashes.
git-svn-id: svn://10.0.0.236/trunk@10000 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 22:36:43 +00:00
rogerl%netscape.com
93e167fada Fixed bug #316293; when break was very first statement in a loop it wasn't
getting patched and so looped for ever.


git-svn-id: svn://10.0.0.236/trunk@9999 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 22:33:19 +00:00
norris%netscape.com
3f06fb0a0a Fix 179417 "crash in with tests with with object"
The problem was that when "w=With()" is executed, the new object "w" is created
such that it shares a scope with Object.prototype. When GC runs and
Object.prototype and "w" are both collected, the test in js_DropObjectMap
currently looks like

     if (MAP_IS_NATIVE(map) && ((JSScope *)map)->object == obj)
        ((JSScope *)map)->object = NULL;

The problem is that MAP_IS_NATIVE is false because the object ops are special
for the With object. Thus map->object is left nonnull and when "w" is collected,
it tries to drop its scope, which causes map->object to be referenced, causing
the null dereference.

Update MAP_IS_NATIVE to include With objects as well.


git-svn-id: svn://10.0.0.236/trunk@9998 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 22:01:01 +00:00
troy%netscape.com
4eba509d38 Added overloaded ConstructFrame() member function. Prep work for table
changes


git-svn-id: svn://10.0.0.236/trunk@9997 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 21:16:01 +00:00
kostello%netscape.com
79c3cd8a7a Changed to match new Widget interfaces.
git-svn-id: svn://10.0.0.236/trunk@9995 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 20:56:27 +00:00
kostello%netscape.com
458aaa4768 Changes implementation to match the new Widget interfaces i.e. t
he signature of many of the "getters" changed.


git-svn-id: svn://10.0.0.236/trunk@9994 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 20:54:38 +00:00
kostello%netscape.com
72ded9346c Helper functions for widget manipulation and creation
git-svn-id: svn://10.0.0.236/trunk@9993 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 20:49:28 +00:00
kostello%netscape.com
84d1794148 Changes implementation to match the new Widget interfaces. This involves
many calls to QueryInterface because many of the instance members
no longer derive from nsIWidget.
Also, using helper functions in nsWidgetHelper for standard Create calls.


git-svn-id: svn://10.0.0.236/trunk@9992 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 20:46:42 +00:00
kostello%netscape.com
84cf5785b0 Changes implementation to match the new Widget interfaces. This involves
many calls to QueryInterface. Also, using helper functions in nsWidgetHelper
for standard Create calls.


git-svn-id: svn://10.0.0.236/trunk@9991 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 20:43:58 +00:00
kostello%netscape.com
52bb52faa0 Removed Aggregation and removed multiple inheritance.
Changes implementation to match the new Widget interfaces. This involves
many calls to QueryInterface.


git-svn-id: svn://10.0.0.236/trunk@9990 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 20:40:49 +00:00
kostello%netscape.com
2bf19c7d8f Major Change: changed all Widget interfaces so that they no longer
descend from nsIWidget. This conforms better to our standard
of not having interfaces inherit from each other.

Changed many of the interfaces to be XPCOM complient i.e. all methods
return nsresult. Therefore the signature of many of the "getters"
changed.


git-svn-id: svn://10.0.0.236/trunk@9989 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 20:38:05 +00:00
mcafee%netscape.com
24c7cf4a57 Merging in XfeToggleButtonIsSet() from Nova branch
git-svn-id: svn://10.0.0.236/trunk@9988 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 20:26:48 +00:00
slamm%netscape.com
8b10125355 Quiet a compiler warning
git-svn-id: svn://10.0.0.236/trunk@9987 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 19:52:57 +00:00
slamm%netscape.com
4fb6e7c47b Kill some dead code
git-svn-id: svn://10.0.0.236/trunk@9986 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 19:52:48 +00:00
slamm%netscape.com
aefa48de5b Use the prefapi directly for the toolbar prefs.
git-svn-id: svn://10.0.0.236/trunk@9985 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 19:52:40 +00:00
slamm%netscape.com
29aabfaa4c Use prefapi instead of fe_GlobalPrefs. Remove some unused context fe_data items.
git-svn-id: svn://10.0.0.236/trunk@9984 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 19:52:34 +00:00
slamm%netscape.com
0fb575b027 Add a doClose method to do some possible cleanup. Really just moving some old code out of the xfe close to where it should be used.
git-svn-id: svn://10.0.0.236/trunk@9983 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 19:52:31 +00:00
slamm%netscape.com
41ba60ca7e Don't need to set top_area in fe_data anymore.
git-svn-id: svn://10.0.0.236/trunk@9982 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 19:52:19 +00:00
slamm%netscape.com
12f4c1a56e Remove a bunch of uneeded items from the context fe_data.
git-svn-id: svn://10.0.0.236/trunk@9981 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 19:52:15 +00:00
slamm%netscape.com
c7b9024d78 Quiet some compiler warning. Kill some references to fe_data in context that is obsolete.
git-svn-id: svn://10.0.0.236/trunk@9980 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 19:52:08 +00:00
slamm%netscape.com
32fd78b726 Remove toolbar prefs from fe_globalPrefs. Use the backend call directly instead. Discard some unused prefs.
git-svn-id: svn://10.0.0.236/trunk@9979 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 19:52:01 +00:00
slamm%netscape.com
3bd21ad849 Move an abort clean up from mozilla.c
git-svn-id: svn://10.0.0.236/trunk@9978 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 19:51:57 +00:00
slamm%netscape.com
0c4d375986 Kill reference to url_label in fe_data. Quiet a compiler warning.
git-svn-id: svn://10.0.0.236/trunk@9977 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 19:51:50 +00:00
slamm%netscape.com
9f26899c8c Kill some dead code. Call prefs directly instead of using fe_globalPrefs.
git-svn-id: svn://10.0.0.236/trunk@9976 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 19:51:46 +00:00
pinkerton%netscape.com
82f6d6f453 HTMLPane now respects size from HT (in pixels or percentages).
git-svn-id: svn://10.0.0.236/trunk@9975 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 18:44:19 +00:00
wtc%netscape.com
0c4b855072 For Strong Arm 110 (sa110), set the OS_ARCH to "arm".
git-svn-id: svn://10.0.0.236/trunk@9974 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 18:09:06 +00:00
sman%netscape.com
4e6631611f saved folders column in a different view
git-svn-id: svn://10.0.0.236/trunk@9973 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 18:03:20 +00:00
spider%netscape.com
0470f135c4 xp button and folder birth
git-svn-id: svn://10.0.0.236/trunk@9971 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 16:20:50 +00:00
dcone%netscape.com
85c7d18ae3 added some image tests
git-svn-id: svn://10.0.0.236/trunk@9970 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 15:46:23 +00:00
toshok%netscape.com
3b6c53da74 Fix bugzilla bug 741 (typo in laybuiltin.c -- builtin->width should be builtin_width. contributed by rkl@connect.org.uk.) Also, move the builtin's layer at the end of lo_UpdateStateAfterBuiltinLayout.
git-svn-id: svn://10.0.0.236/trunk@9969 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 08:53:43 +00:00
rpotts%netscape.com
512857d619 Fixed some reference counting problems introduced by the rev 1.20 check in...
git-svn-id: svn://10.0.0.236/trunk@9968 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 05:43:54 +00:00
troy%netscape.com
6dc2d7e4d2 Container floated elements are now wrapped in a BODY frame
git-svn-id: svn://10.0.0.236/trunk@9967 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 04:01:08 +00:00
troy%netscape.com
d9e727b8ba Moved CreatePlaceholderFrame() to nsCSSContainerFrame so it's shared by
the block and the inline code


git-svn-id: svn://10.0.0.236/trunk@9966 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-13 19:58:02 +00:00
troy%netscape.com
555da3f7a1 Restored some code that I can't remove until tables are changed to work
with the new frane construction code


git-svn-id: svn://10.0.0.236/trunk@9965 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-13 19:18:39 +00:00
raman%netscape.com
dc7639086f Bug fixes to isSecurePrincipal. We weren't checking codebase_principal preference correctly.
git-svn-id: svn://10.0.0.236/trunk@9964 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-13 18:07:59 +00:00
wtc%netscape.com
4541f18760 For DG/UX, rename its OS_ARCH fro "dgux" to "DGUX".
dgux.mk is also renamed DGUX.mk.


git-svn-id: svn://10.0.0.236/trunk@9963 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-13 04:18:06 +00:00
wtc%netscape.com
b4549fd4bb Port to Linux/Strong Arm 110. Only the pthreads version works.
Files changed: Linux.mk, _linux.cfg, _linux.h.


git-svn-id: svn://10.0.0.236/trunk@9962 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-13 03:43:33 +00:00
troy%netscape.com
2f043c9e30 Changed to explicitly create frame of type frameset or outer frame instead
of using CreateFrame() which will be going away


git-svn-id: svn://10.0.0.236/trunk@9961 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-13 02:45:07 +00:00
raman%netscape.com
4ed88cebba Added some more preferences for AutoUpdate
git-svn-id: svn://10.0.0.236/trunk@9960 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-13 02:02:51 +00:00
troy%netscape.com
b8329612af Changed Reflow() to directly create the child frames rather than use
CreateFrame() member function which is going away


git-svn-id: svn://10.0.0.236/trunk@9959 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 23:53:28 +00:00
troy%netscape.com
172fff617c Changes ProcessChildren() to return the child list and leave it to the caller
(ConstructFrame() member function) to call Init()


git-svn-id: svn://10.0.0.236/trunk@9958 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 23:51:57 +00:00
kipp%netscape.com
83c8cc1fae Work around crash bug with content delegate
git-svn-id: svn://10.0.0.236/trunk@9957 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 23:30:23 +00:00
kipp%netscape.com
6e7f4e1670 Added a build variable for enable xpcom refcnt tracing
git-svn-id: svn://10.0.0.236/trunk@9956 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:35:20 +00:00
kipp%netscape.com
10b6617c48 Fixup AddRef/Release and some constructors to use NS_ADDREF (etc) macros
git-svn-id: svn://10.0.0.236/trunk@9955 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:33:48 +00:00
kipp%netscape.com
fff296425d whitespace tweak
git-svn-id: svn://10.0.0.236/trunk@9954 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:31:10 +00:00
kipp%netscape.com
8005dd0043 Use NS_ADDREF macros to enable refcnt tracing
git-svn-id: svn://10.0.0.236/trunk@9953 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:30:49 +00:00
kipp%netscape.com
feed565fc3 Added missing release's
git-svn-id: svn://10.0.0.236/trunk@9952 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:30:09 +00:00
kipp%netscape.com
b678988c90 Use ADDREF/RELEASE macros
git-svn-id: svn://10.0.0.236/trunk@9951 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:29:39 +00:00
kipp%netscape.com
c2d8209d5c Added nsTraceRefcnt to the build and exports
git-svn-id: svn://10.0.0.236/trunk@9950 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:29:03 +00:00
kipp%netscape.com
f8b196a533 whitespace tidy up
git-svn-id: svn://10.0.0.236/trunk@9949 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:28:01 +00:00
kipp%netscape.com
6fda7b24bf Use NS_ADDREF/NS_RELEASE macros
git-svn-id: svn://10.0.0.236/trunk@9948 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:26:52 +00:00
kipp%netscape.com
987394103f Support build-time usage of the nsTraceRefcnt class for tracing refcnt manipulations. In addition, added NS_NEWXPCOM and NS_DELETEXPCOM macros to track create/destroys
git-svn-id: svn://10.0.0.236/trunk@9947 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:26:36 +00:00
kipp%netscape.com
0b3cf3ff18 Register libraries with the refcnt tracer
git-svn-id: svn://10.0.0.236/trunk@9946 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:25:28 +00:00
kipp%netscape.com
d9c70e46f0 new
git-svn-id: svn://10.0.0.236/trunk@9945 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:25:06 +00:00
kipp%netscape.com
f4f2970d0a Added tools directory to windows build
git-svn-id: svn://10.0.0.236/trunk@9944 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:18:04 +00:00
kipp%netscape.com
13af87effd new
git-svn-id: svn://10.0.0.236/trunk@9943 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 17:53:08 +00:00
mcafee%netscape.com
dba7583631 Fixing Solaris bustage
git-svn-id: svn://10.0.0.236/trunk@9937 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 05:55:51 +00:00
mcafee%netscape.com
2c5daf4cc9 Solaris needs EOF character
git-svn-id: svn://10.0.0.236/trunk@9936 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 05:52:39 +00:00
mcafee%netscape.com
7f26f3101e Adding privacy prefs
git-svn-id: svn://10.0.0.236/trunk@9935 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 05:36:51 +00:00
troy%netscape.com
4e069097cb Removed some XXX CONSTRUCTION commented out code
git-svn-id: svn://10.0.0.236/trunk@9934 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 04:54:04 +00:00
raman%netscape.com
5200561a75 Commenting out the call for AutoUpdate because Mac was not building
git-svn-id: svn://10.0.0.236/trunk@9933 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 04:52:17 +00:00
raman%netscape.com
757204162b Commenting out the call for AutoUpdate because Mac was not building
git-svn-id: svn://10.0.0.236/trunk@9932 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 04:50:45 +00:00
troy%netscape.com
8189d75efa Part of frame construction changes
git-svn-id: svn://10.0.0.236/trunk@9931 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 04:46:35 +00:00
despotdaemon%netscape.com
847a52c2f3 Pseudo-automatic update of changes made by danda@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9930 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 03:45:23 +00:00
despotdaemon%netscape.com
9fa0b92dd3 Pseudo-automatic update of changes made by danda@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9929 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 03:43:39 +00:00
rjc%netscape.com
6c49d37ebf Exported autoupdt.h to dist area.
git-svn-id: svn://10.0.0.236/trunk@9928 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 02:54:33 +00:00
peterl%netscape.com
d5c5ee4080 vend important rule when present
git-svn-id: svn://10.0.0.236/trunk@9927 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 02:46:59 +00:00
peterl%netscape.com
1d00b6c9c9 fixed content ref count bugs in ContentAppended
git-svn-id: svn://10.0.0.236/trunk@9926 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 02:46:09 +00:00
peterl%netscape.com
cb4c019521 added debug code for ref counting
git-svn-id: svn://10.0.0.236/trunk@9925 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 02:45:26 +00:00
peterl%netscape.com
261f51617b init ref count of important rule
git-svn-id: svn://10.0.0.236/trunk@9924 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 02:43:48 +00:00
peterl%netscape.com
67d0ec8374 properly addref attr stylesheet before returning
git-svn-id: svn://10.0.0.236/trunk@9923 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 02:43:19 +00:00
peterl%netscape.com
b1b127a551 properly release doc & style sheet when setting attributes
git-svn-id: svn://10.0.0.236/trunk@9922 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 02:42:44 +00:00
rjc%netscape.com
f4bf910c8a Control the autoupdate via rdf. Changes from raman. Reviewed by rjc
git-svn-id: svn://10.0.0.236/trunk@9921 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 02:37:57 +00:00
rjc%netscape.com
921e6a3882 Control the autoupdate via prefereneces. Changes from raman. Reviewed by rjc
git-svn-id: svn://10.0.0.236/trunk@9920 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 02:37:24 +00:00
rjc%netscape.com
9fd5f78185 Moved autoupdt code out od MOZ_SMARTUPDATE. Changes from raman. Reviewed by rjc
git-svn-id: svn://10.0.0.236/trunk@9919 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 02:37:01 +00:00
cmanske%netscape.com
4ea3729f29 Fixed table editing bugs. Ctrl key now needed to size table with mouse
git-svn-id: svn://10.0.0.236/trunk@9918 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 01:46:12 +00:00
cmanske%netscape.com
2a7a771146 Fixed Composer bugs, changed image drag behavior in Composer window - must select image first
git-svn-id: svn://10.0.0.236/trunk@9917 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 01:44:20 +00:00
cmanske%netscape.com
051cf3669f Added strings for mouse-over image feedback and changed drag table data struct
git-svn-id: svn://10.0.0.236/trunk@9916 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 01:40:46 +00:00
kmcclusk%netscape.com
c55576e6df Fix for Irix build bustage.
git-svn-id: svn://10.0.0.236/trunk@9915 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 00:53:57 +00:00
despotdaemon%netscape.com
4ede8ac839 Pseudo-automatic update of changes made by dveditz@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9914 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 00:24:01 +00:00
joki%netscape.com
3199411b18 Add SetProgess method to nsIBrowserWindow interface
git-svn-id: svn://10.0.0.236/trunk@9913 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 00:22:27 +00:00
joki%netscape.com
2470c9051f Add SetProgess method
git-svn-id: svn://10.0.0.236/trunk@9912 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 00:21:46 +00:00
despotdaemon%netscape.com
e889dde9a5 Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9911 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 00:13:03 +00:00
mcafee%netscape.com
8f17bab161 comment: warning not to pile anything else on the obsolete fe_globalPrefs structure
git-svn-id: svn://10.0.0.236/trunk@9910 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 00:11:32 +00:00
thom%netscape.com
9a8c4bdbe9 Added return value to GetHints method to make compiler happy
git-svn-id: svn://10.0.0.236/trunk@9909 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 00:08:31 +00:00
thom%netscape.com
566ec7b92f Added code to load menus
git-svn-id: svn://10.0.0.236/trunk@9908 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 00:06:05 +00:00
thom%netscape.com
60d2cf5d1d Added code to handle Menu events
git-svn-id: svn://10.0.0.236/trunk@9907 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 00:05:39 +00:00
thom%netscape.com
5795cd1fe0 Added resource file for menu definitions
git-svn-id: svn://10.0.0.236/trunk@9906 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 00:05:11 +00:00
vidur%netscape.com
fb061b8d52 Fixed document.writeln problem from http://www.legomindspring.com
git-svn-id: svn://10.0.0.236/trunk@9905 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 00:04:22 +00:00
sman%netscape.com
42e08c860c fixes to x400 parsing
git-svn-id: svn://10.0.0.236/trunk@9904 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 23:44:36 +00:00
sman%netscape.com
43fff83d63 better use of x400 parser
git-svn-id: svn://10.0.0.236/trunk@9903 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 23:44:14 +00:00
kmcclusk%netscape.com
057684cbd7 Added 8bit visual support.
git-svn-id: svn://10.0.0.236/trunk@9902 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 23:27:22 +00:00
sman%netscape.com
758261d32e use x400 parser for capi urls
git-svn-id: svn://10.0.0.236/trunk@9901 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 23:22:43 +00:00
jsun%netscape.com
de9c7c9f85 Remove some unnecessary comments.
git-svn-id: svn://10.0.0.236/trunk@9900 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 23:22:39 +00:00
sman%netscape.com
d6d35c2e0c bug fixes
git-svn-id: svn://10.0.0.236/trunk@9899 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 23:20:34 +00:00
jsun%netscape.com
3881a8e7ff Fixed CAPI_DestroyStreams.
git-svn-id: svn://10.0.0.236/trunk@9898 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 23:17:13 +00:00
pinkerton%netscape.com
f9b0b72f25 fix frames and property dialogs by adding back PPob 1005 that I overeagerly pruned last week.
git-svn-id: svn://10.0.0.236/trunk@9897 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 22:36:02 +00:00
clu%netscape.com
aba4ece1da tweaks to the encoding dialog box. also added the page title dialog box for #123601.
git-svn-id: svn://10.0.0.236/trunk@9896 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 22:26:13 +00:00
hyatt%netscape.com
0e8c997df5 Fixes for Aurora custom icons.
git-svn-id: svn://10.0.0.236/trunk@9895 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 22:25:21 +00:00
hyatt%netscape.com
656ff915d3 Fix for Aurora custom icons. Reviewed by Nisheeth and DP.
git-svn-id: svn://10.0.0.236/trunk@9894 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 22:24:27 +00:00
jsun%netscape.com
bc25cacb74 FetchEventsByID now calls callback one more time to send finished message.
git-svn-id: svn://10.0.0.236/trunk@9893 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 22:22:26 +00:00
clu%netscape.com
f549fa7a38 #123601 - headers for CPageTitle.
git-svn-id: svn://10.0.0.236/trunk@9892 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 22:19:47 +00:00
clu%netscape.com
90fce3eb74 implmented CPageTitle for #123601.
git-svn-id: svn://10.0.0.236/trunk@9891 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 22:19:44 +00:00
clu%netscape.com
8908f97b41 #123601 - ask users for page title before saving. Also tweaked at the composer encoding dialog code so the menu item would reflect encoding changes correctly
git-svn-id: svn://10.0.0.236/trunk@9890 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 22:19:39 +00:00
clu%netscape.com
67b7716d4d #123601 - added resource number 1522 for CPageTitle.
git-svn-id: svn://10.0.0.236/trunk@9889 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 22:19:36 +00:00
waterson%netscape.com
9393d087ea Fix bustage on Linux/Motif 2.0 with reflow.
git-svn-id: svn://10.0.0.236/trunk@9888 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 22:12:47 +00:00
jsun%netscape.com
d323240c96 non quoted-printable multiline should work now.
git-svn-id: svn://10.0.0.236/trunk@9887 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 22:07:13 +00:00
pinkerton%netscape.com
f7e694d878 Fix bug in drag and drop where we were passing parent folder and any selected children to HT, which would cause it to die. Affects drag feedback in that selected children are not displayed when their parent container is selected as well.
git-svn-id: svn://10.0.0.236/trunk@9886 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 21:52:42 +00:00
ramiro%netscape.com
61c60b3eb8 Fix the stupid toolbox assertions cause the editor toolbar dont have logos.
git-svn-id: svn://10.0.0.236/trunk@9885 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 20:52:24 +00:00
jband%netscape.com
1135eee803 added CRT_CALL decoration to callback typedefs in jsprvtd.h (it had only been used in jspubtd.h) and moved the last remaining callback typedef (JSTrapHandler) out of jsdbgapi.h and into jsprvtd.h along with the others
git-svn-id: svn://10.0.0.236/trunk@9884 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 19:58:15 +00:00
brendan%netscape.com
40a934496f - Use 8 space hard tabstops like god and IBM intended, but indent-tabs-mode:nil
should eliminate hard tabs anyway (so 8 is just in case one gets thru -- LXR
  was not displaying this source well with 4).
- Don't nest jsapi.h outside the idempotent-include #ifndef in dom.h.
- Include xp.h to get this code working on Windows (to cope with some kind of
  compiled header problem).
- Fix bad JS_GetEmptyStringValue calls that were treated as returning JSString*
  rather than jsval, and fed into STRING_TO_JSVAL.
- Avoid tagging and untagging a jsval to test for a null JSString* return.
- Fiddle formatting in a couple of places.
- Avoid leaving cdata->data null after realloc failure.  Use of a local temp
  (data2) also improves generated code by eliminating memory ambiguity.


git-svn-id: svn://10.0.0.236/trunk@9883 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 19:46:23 +00:00
slamm%netscape.com
592eefc568 Fix resources for RDF Toolbars.
git-svn-id: svn://10.0.0.236/trunk@9882 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 19:33:49 +00:00
pinkerton%netscape.com
a82bc29604 Docked coordinator is now smart enough to show/hide htmlpane as appropriate. Remove (again!) the logic from here.
git-svn-id: svn://10.0.0.236/trunk@9880 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 19:05:51 +00:00
pinkerton%netscape.com
3aa8cb7842 Initializing new member vars for bug#309770
git-svn-id: svn://10.0.0.236/trunk@9879 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 19:04:59 +00:00
pinkerton%netscape.com
b844b790f1 More htmlpane work. Should now appear when it is there and load the url.
git-svn-id: svn://10.0.0.236/trunk@9878 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 19:04:22 +00:00
slamm%netscape.com
d087d7347a Back out some changes. Accidentally check 'em in.
git-svn-id: svn://10.0.0.236/trunk@9877 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 19:04:21 +00:00
pinkerton%netscape.com
d55a65eb6b Fix things to work with first or second shelf being the one that can be closed.
git-svn-id: svn://10.0.0.236/trunk@9876 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 19:03:44 +00:00
pinkerton%netscape.com
6acfcc498d export XP_GetURLForView for HTMLpane stuff.
git-svn-id: svn://10.0.0.236/trunk@9875 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 19:02:10 +00:00
pinkerton%netscape.com
d609e79f3c turn on html area code for mac (now ifdef'd mac/win).
git-svn-id: svn://10.0.0.236/trunk@9874 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 19:01:48 +00:00
pinkerton%netscape.com
3058cbf555 turn on QAP flag and define some methods so things will link.
git-svn-id: svn://10.0.0.236/trunk@9873 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 19:01:09 +00:00
pinkerton%netscape.com
aa492b455d adding QA_Partner support.
git-svn-id: svn://10.0.0.236/trunk@9872 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 19:00:41 +00:00
pinkerton%netscape.com
a3080e873f added CTextColumn.cp for QAP support
git-svn-id: svn://10.0.0.236/trunk@9871 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:59:31 +00:00
slamm%netscape.com
abad008765 Add a dependency for resources-translations
git-svn-id: svn://10.0.0.236/trunk@9870 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:59:16 +00:00
slamm%netscape.com
697080e7ab Have the popup update when it's first posted. Fix a selection problem caused by improper if-statement grouping.
git-svn-id: svn://10.0.0.236/trunk@9869 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:58:58 +00:00
slamm%netscape.com
b19ab88fef Pull hackTranslations members.
git-svn-id: svn://10.0.0.236/trunk@9868 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:58:50 +00:00
slamm%netscape.com
c5af2f108c Delete some unused member variables.
git-svn-id: svn://10.0.0.236/trunk@9867 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:58:46 +00:00
slamm%netscape.com
5ae5ce5081 Load bookmarks for docked view. Later this will be hooked up with the toolbars.
git-svn-id: svn://10.0.0.236/trunk@9866 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:58:43 +00:00
slamm%netscape.com
02f5980d91 Remove unused function prototype.
git-svn-id: svn://10.0.0.236/trunk@9865 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:58:39 +00:00
slamm%netscape.com
5c46f0b4a4 Don't require focus for a copy. Allows copy in view source window.
git-svn-id: svn://10.0.0.236/trunk@9864 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:58:32 +00:00
slamm%netscape.com
b7587ffc10 Fix some comments that were missing '!' at the beginning of the line
git-svn-id: svn://10.0.0.236/trunk@9863 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:58:29 +00:00
slamm%netscape.com
b3b4a8c2c3 Retire the bookmarks and history translation and add navcenter translations
git-svn-id: svn://10.0.0.236/trunk@9862 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:58:18 +00:00
slamm%netscape.com
30417a0709 Fixing close window bug for html dialogs. Make html dialogs have the same translations as the browser. This may be overkill. We can trim back the list later. Kill some long dead code.
git-svn-id: svn://10.0.0.236/trunk@9861 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:58:12 +00:00
slamm%netscape.com
7758150121 Compress consecutive spaces and tabs down to one space. Saves about 40k bytes.
git-svn-id: svn://10.0.0.236/trunk@9860 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:58:09 +00:00
troy%netscape.com
72786e028d Fixed leak of reflow command
git-svn-id: svn://10.0.0.236/trunk@9859 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:57:54 +00:00
vidur%netscape.com
9f52b981fe Added stopgap code for aliased constructors
git-svn-id: svn://10.0.0.236/trunk@9858 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:31:38 +00:00
sman%netscape.com
98245fe0d9 more updates
git-svn-id: svn://10.0.0.236/trunk@9857 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:23:31 +00:00
jsun%netscape.com
509191a3f7 Reads from CAPI much faster
git-svn-id: svn://10.0.0.236/trunk@9856 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:21:56 +00:00
spider%netscape.com
fd4a52eaad Remove ref to calnetwork
git-svn-id: svn://10.0.0.236/trunk@9855 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:12:07 +00:00
vidur%netscape.com
833ee5f0d5 Added stopgap code for aliased constructors
git-svn-id: svn://10.0.0.236/trunk@9854 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 18:05:11 +00:00
dcone%netscape.com
ec0f060783 fixed some focus bugs
git-svn-id: svn://10.0.0.236/trunk@9853 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 17:49:49 +00:00
dcone%netscape.com
17375f82e9 fixed focus bugs
git-svn-id: svn://10.0.0.236/trunk@9852 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 17:49:32 +00:00
dcone%netscape.com
0f5f3dad67 focus bug fixes
git-svn-id: svn://10.0.0.236/trunk@9851 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 17:47:50 +00:00
sman%netscape.com
e4f3cf32cd bumped maxrepeat up to 17
git-svn-id: svn://10.0.0.236/trunk@9850 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 17:39:46 +00:00
sman%netscape.com
e704f6fd02 need to add x400 parsing to deal with cst server login
git-svn-id: svn://10.0.0.236/trunk@9849 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 17:35:45 +00:00
spider%netscape.com
da872f430b Fix for html
git-svn-id: svn://10.0.0.236/trunk@9848 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 17:24:08 +00:00
terry%netscape.com
bcb7a51ecb Added new "Layout" component to NGLayout.
git-svn-id: svn://10.0.0.236/trunk@9847 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 16:59:02 +00:00
spider%netscape.com
d692b45ef9 Remove calnetwork lib
git-svn-id: svn://10.0.0.236/trunk@9846 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 16:27:02 +00:00
ramiro%netscape.com
36e090e4f2 Split MOZILLA_MOTIF_SEARCH_PATH into two: MOZILLA_MOTIF_INCLUDE_SEARCH_PATH
and MOZILLA_MOTIF_LIB_SEARCH_PATH to deal with "smart" oses like hpux
which place motif headers and libraries in different places.


git-svn-id: svn://10.0.0.236/trunk@9842 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 13:27:04 +00:00
rjc%netscape.com
c22092efe0 More polling mechanism testing.
git-svn-id: svn://10.0.0.236/trunk@9839 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 11:05:50 +00:00
pierre%netscape.com
b93acd208b fix crash when GetFontMetrics() returns nil, which should never happen of course
git-svn-id: svn://10.0.0.236/trunk@9838 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 10:45:26 +00:00
pierre%netscape.com
835c0822af fix SetClipRegion + FillRect / added a temp SetFont / dispose mMainRegion
git-svn-id: svn://10.0.0.236/trunk@9837 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 10:37:36 +00:00
pierre%netscape.com
a55ce54bb1 fix crash on update
git-svn-id: svn://10.0.0.236/trunk@9836 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 10:19:26 +00:00
pierre%netscape.com
dad8efe8bd fix uninitialized mWindowRegion / make the window title bar visible
git-svn-id: svn://10.0.0.236/trunk@9835 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 10:17:02 +00:00
brendan%netscape.com
a006e5dfd3 - Fix js_AllocTryNotes to track how much space has been allocated from tempPool
for trynotes in the current code generator, and grow that space as needed.
- Avoid dividing by a multiple of 3 (JSTryNote is 3 ptrdiff_t's) via (char *)
  arithmetic.


git-svn-id: svn://10.0.0.236/trunk@9834 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 09:25:15 +00:00
pierre%netscape.com
b945f26976 initialize member variables to 0
git-svn-id: svn://10.0.0.236/trunk@9833 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 09:13:02 +00:00
pierre%netscape.com
526d344aad in the works / return hard-coded values instead of 0's
git-svn-id: svn://10.0.0.236/trunk@9832 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 09:12:37 +00:00
pierre%netscape.com
e08ee4cc26 initialize mBounds
git-svn-id: svn://10.0.0.236/trunk@9831 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 09:07:19 +00:00
pierre%netscape.com
d3f5c5243c added and removed plenty of files
git-svn-id: svn://10.0.0.236/trunk@9830 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 09:02:46 +00:00
pierre%netscape.com
e63ed115af added nsDTDUtils
git-svn-id: svn://10.0.0.236/trunk@9829 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 09:02:13 +00:00
pierre%netscape.com
70e16e24c6 added nsPluginViewer
git-svn-id: svn://10.0.0.236/trunk@9828 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 09:01:42 +00:00
rjc%netscape.com
2d16ebc092 Polling mechanism test.
git-svn-id: svn://10.0.0.236/trunk@9827 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 07:45:49 +00:00
mcafee%netscape.com
86ad096869 Moved privacy prefs from Advanced pane to new privacy pane. Removed some white space and bogus comments.
git-svn-id: svn://10.0.0.236/trunk@9826 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 06:48:39 +00:00
kipp%netscape.com
c97827f9d1 Updated Makefile to have the right source file list
git-svn-id: svn://10.0.0.236/trunk@9825 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 05:53:55 +00:00
kipp%netscape.com
1e404fa6c0 Implement ListTag on bullet-frame's so that they dump better
git-svn-id: svn://10.0.0.236/trunk@9824 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 05:42:31 +00:00
kipp%netscape.com
1f0fa5c437 inlined IsSynthetic implementation AND made it work
git-svn-id: svn://10.0.0.236/trunk@9823 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 05:38:25 +00:00
kipp%netscape.com
9f507487e2 Make full-screen plugins deactivate better
git-svn-id: svn://10.0.0.236/trunk@9822 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 04:43:27 +00:00
kipp%netscape.com
fd10278074 Use InitialReflow to layout the image document instead of ResizeReflow so that images layout properly
git-svn-id: svn://10.0.0.236/trunk@9817 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 04:20:30 +00:00
kipp%netscape.com
9685925ebc Removed a bunch of bogus code that (a) did very little (b) doesn't work for image documents
git-svn-id: svn://10.0.0.236/trunk@9815 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 04:17:07 +00:00
kipp%netscape.com
fe3e1e70ce Check in of somewhat bogus handling of the notify values (which is going away!)
git-svn-id: svn://10.0.0.236/trunk@9814 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 04:16:18 +00:00
kipp%netscape.com
1eb826e1fa Support length values for vertical-align
git-svn-id: svn://10.0.0.236/trunk@9813 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 04:15:03 +00:00
kipp%netscape.com
9f2aae11bb Added length tests
git-svn-id: svn://10.0.0.236/trunk@9812 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 04:14:40 +00:00
troy%netscape.com
4e1f178389 Changed new frame construction code to handle floaters
git-svn-id: svn://10.0.0.236/trunk@9811 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 04:13:29 +00:00
jband%netscape.com
8d91096b15 (not part of mozilla build) added source hook to jsdbgapi so that debugger can get clean access to source from jsscan when the JSFILE hack is used
git-svn-id: svn://10.0.0.236/trunk@9810 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 04:04:26 +00:00
kipp%netscape.com
7c46498749 Applied patch to make the timer code independent of motif (thanks goes to cls@seewood.org)
git-svn-id: svn://10.0.0.236/trunk@9809 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 03:58:43 +00:00
gagan%netscape.com
c0154ce534 Added cachelib for Nu_cache. Should not affect the builds.
git-svn-id: svn://10.0.0.236/trunk@9808 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 02:44:07 +00:00
gagan%netscape.com
2ffc303f9b Added nu_cache define.
git-svn-id: svn://10.0.0.236/trunk@9807 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 02:43:05 +00:00
spider%netscape.com
b67f00df07 Implemented asynchronous stream manager for loading multiple
XML UI definitions simultaneously


git-svn-id: svn://10.0.0.236/trunk@9806 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 02:26:35 +00:00
peterl%netscape.com
6b3b4ad6ca added strength api to style rule
git-svn-id: svn://10.0.0.236/trunk@9805 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 02:07:58 +00:00
peterl%netscape.com
5b77f89a4f added important rule support
git-svn-id: svn://10.0.0.236/trunk@9804 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 02:07:46 +00:00
peterl%netscape.com
6185326760 added important rule support
factored declaration processing to a static method


git-svn-id: svn://10.0.0.236/trunk@9803 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 02:07:05 +00:00
peterl%netscape.com
cd8f11ec85 sort style rules by strength
git-svn-id: svn://10.0.0.236/trunk@9802 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 02:05:30 +00:00
peterl%netscape.com
f0ab82d859 added strength
git-svn-id: svn://10.0.0.236/trunk@9801 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 02:05:07 +00:00
thom%netscape.com
d61d9c4575 added new version of getWidth
git-svn-id: svn://10.0.0.236/trunk@9800 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 01:46:45 +00:00
thom%netscape.com
6a7c053dd0 Added new version of getWidth
git-svn-id: svn://10.0.0.236/trunk@9799 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 01:44:43 +00:00
cls%seawood.org
d406d1f9c9 Sync'd.
git-svn-id: svn://10.0.0.236/trunk@9796 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 01:24:33 +00:00
spider%netscape.com
4e00a8e94a WIP: Stream Manager
git-svn-id: svn://10.0.0.236/trunk@9795 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 01:16:25 +00:00
law%netscape.com
cd57b240f5 Completing work on Win98 integration feature
git-svn-id: svn://10.0.0.236/trunk@9794 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 01:14:08 +00:00
cls%seawood.org
bca0cbbde5 Resurrected tweak_nspr kludge for --enable-nspr
git-svn-id: svn://10.0.0.236/trunk@9793 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 01:10:08 +00:00
rickg%netscape.com
396baa380e improved DTD context for better style/structure handling
git-svn-id: svn://10.0.0.236/trunk@9792 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 00:54:36 +00:00
law%netscape.com
9a36fcd388 Fix for Bugzilla bug #489; thanks to Klaus Malorny (Klaus.Malorny@knipp.de) for reporting it and for providing the fix!
git-svn-id: svn://10.0.0.236/trunk@9791 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 00:53:29 +00:00
law%netscape.com
488cc4562f Debug stuff
git-svn-id: svn://10.0.0.236/trunk@9790 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 00:49:00 +00:00
law%netscape.com
33324eac4f Completing check-in of Win98 integration feature
git-svn-id: svn://10.0.0.236/trunk@9789 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 00:46:05 +00:00
law%netscape.com
ee940a4b44 Fix for 4.5 bug; enable -P to be ignored on second launch
git-svn-id: svn://10.0.0.236/trunk@9788 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-11 00:41:53 +00:00
kipp%netscape.com
12ece32c94 Revised various vertical alignment cases to use font introspection data instead of hard coding in values; corrected middle computation.
git-svn-id: svn://10.0.0.236/trunk@9787 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 23:43:12 +00:00
kipp%netscape.com
ce50d36a6c Fixed a bug with percent values being converted to strings
git-svn-id: svn://10.0.0.236/trunk@9786 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 23:42:18 +00:00
kipp%netscape.com
40c9ee9aaa Added new font intropsection methods to nsIFontMetrics
git-svn-id: svn://10.0.0.236/trunk@9785 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 23:41:25 +00:00
morse%netscape.com
cd1fc89bea fix mac bustage
git-svn-id: svn://10.0.0.236/trunk@9783 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 23:02:23 +00:00
cyeh%netscape.com
cd5f53280c remove dependencies on platform specific installs of perl, macro-ize perl
tool calls


git-svn-id: svn://10.0.0.236/trunk@9782 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 22:51:45 +00:00
cyeh%netscape.com
0051acb625 macro-ize call to PERL
git-svn-id: svn://10.0.0.236/trunk@9781 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 22:50:21 +00:00
mcafee%netscape.com
a7194cbcf7 New privacy preference pane class
git-svn-id: svn://10.0.0.236/trunk@9776 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 22:35:39 +00:00
troy%netscape.com
26a69078c9 Fixed it so bullets work again
git-svn-id: svn://10.0.0.236/trunk@9775 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 22:28:55 +00:00
mjudge%netscape.com
b968139da0 IDIOT!! sorry. added 2 of 4 files
git-svn-id: svn://10.0.0.236/trunk@9774 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 22:25:05 +00:00
shaver%netscape.com
cab0809536 perignon grows (and throbs)
git-svn-id: svn://10.0.0.236/trunk@9773 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 22:14:52 +00:00
dcone%netscape.com
c0daadaa20 added textfield
git-svn-id: svn://10.0.0.236/trunk@9770 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 21:33:56 +00:00
morse%netscape.com
5bde2697ba remove 'remember this decision' from signon nag box
git-svn-id: svn://10.0.0.236/trunk@9769 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 21:27:13 +00:00
dcone%netscape.com
2db5860769 added focus managment, textfields
git-svn-id: svn://10.0.0.236/trunk@9768 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 21:26:46 +00:00
dcone%netscape.com
766161cc44 added focus managment
git-svn-id: svn://10.0.0.236/trunk@9767 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 21:26:01 +00:00
dcone%netscape.com
9e1c876e58 Added focus managment
git-svn-id: svn://10.0.0.236/trunk@9766 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 21:25:47 +00:00
dcone%netscape.com
d081c01058 added textfield widget, focus management
git-svn-id: svn://10.0.0.236/trunk@9765 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 21:25:10 +00:00
mjudge%netscape.com
fe6b790a23 Checks for ender only in #ifdef ENDERS mjudge
git-svn-id: svn://10.0.0.236/trunk@9764 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 21:15:28 +00:00
wtc%netscape.com
adfc66903c In CreateMacPathFromUnixPath, return paramErr if unixPath is nil.
git-svn-id: svn://10.0.0.236/trunk@9763 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 21:08:47 +00:00
troy%netscape.com
f75908c03b Backed out unintentional checkin
git-svn-id: svn://10.0.0.236/trunk@9762 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 21:05:02 +00:00
troy%netscape.com
906fdf619c Hooked back up IFRAME
git-svn-id: svn://10.0.0.236/trunk@9761 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 21:03:16 +00:00
gagan%netscape.com
3b534f76f8 Removed the silly useless parameter in NET_CleanUpCache.
git-svn-id: svn://10.0.0.236/trunk@9760 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 20:55:22 +00:00
gagan%netscape.com
4d5a191c8b cvs to be blamed for a bad merge. Moving to void parameter on NET_CleanupCache. Was giving errors on Mac.
git-svn-id: svn://10.0.0.236/trunk@9759 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 20:54:41 +00:00
wtc%netscape.com
02280d597b In CreateMacPathFromUnixPath, the length of the macPath buffer
should be (strlen(unixPath) + 2) instead of (strlen(unixPath) * 2).
This is because for a zero-length unixPath, the macPath is ":",
which needs two bytes.  Thanks to Patrick Beard <beard@netscape.com>
and Steve Dagley <sdagley@netscape.com> for reporting the bug and
suggesting a fix.


git-svn-id: svn://10.0.0.236/trunk@9758 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 20:49:14 +00:00
brendan%netscape.com
9481d98451 Don't CHECK_BRANCH(len) in GOSUB (len must be > 0) or at all in RETSUB.
git-svn-id: svn://10.0.0.236/trunk@9757 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 20:46:37 +00:00
pinkerton%netscape.com
449c40a89d pass in the main browser context to HTNewPane() for what'sRelated info.
git-svn-id: svn://10.0.0.236/trunk@9756 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 20:43:45 +00:00
pinkerton%netscape.com
0782be9f08 Changed BuildHTPane to take a context where it might have to display What'sRelated info. Now registering each kind of view (shack, popdown, embedded, standalone) with HT so it knows to give the right look/behavior.
git-svn-id: svn://10.0.0.236/trunk@9755 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 20:43:19 +00:00
brendan%netscape.com
97918d4e10 - GOSUB pushes the next pc after it, not its own pc (tradition!) and RETSUB
sets pc to the unbiased result of the pop.
- Use #if JS_HAS_EXCEPTIONS in the decompiler, fiddle similar cosmetic stuff.


git-svn-id: svn://10.0.0.236/trunk@9754 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 20:42:26 +00:00
pinkerton%netscape.com
4d371c0d95 Fix bug#309770 (refresh urltimer bug). added a new member (the reload policy) to CHTMLView so that it can be set correctly in SpendTime(). Now passing the eitire URL_Struct to SetURLTimer() to avoid long param lists.
git-svn-id: svn://10.0.0.236/trunk@9753 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 20:42:05 +00:00
troy%netscape.com
a445aaa66a Fixed frameset crash
git-svn-id: svn://10.0.0.236/trunk@9752 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 20:37:19 +00:00
norris%netscape.com
8105e6a166 Fix 312954 "monkey: on HPUX, special case failure when dividing by -0"
git-svn-id: svn://10.0.0.236/trunk@9751 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 20:27:16 +00:00
brendan%netscape.com
efc54c518a - Added commentary for TOK_DEFSHARP nodes explaining pn_kid's purpose.
- Don't over-commend nearby #endifs at the expense of legibility.


git-svn-id: svn://10.0.0.236/trunk@9750 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 20:13:06 +00:00
gagan%netscape.com
ec0bf10c03 Remaining changes from Nu_Cache. Added nucacheproto.c/h.
git-svn-id: svn://10.0.0.236/trunk@9749 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 20:11:13 +00:00
morse%netscape.com
624c7671ee Change 'About Site' to 'Display Site Info'
git-svn-id: svn://10.0.0.236/trunk@9748 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 20:06:27 +00:00
gagan%netscape.com
14caf39fd4 Nu_cache leftover changes.
git-svn-id: svn://10.0.0.236/trunk@9747 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 20:00:57 +00:00
gagan%netscape.com
e621d4348a nu_cache changes.
git-svn-id: svn://10.0.0.236/trunk@9746 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 19:58:35 +00:00
blizzard%appliedtheory.com
620f9317ad Bring fe up to date which fe header files
git-svn-id: svn://10.0.0.236/trunk@9745 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 19:58:18 +00:00
brendan%netscape.com
eea9ddc5af - Use JSBool for MatchChar's return type and values.
- Spacing nits.


git-svn-id: svn://10.0.0.236/trunk@9744 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 19:58:15 +00:00
gagan%netscape.com
79ca86c7de remaining changes from nu_cache.
git-svn-id: svn://10.0.0.236/trunk@9743 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 19:57:12 +00:00
troy%netscape.com
0c4b9521d5 Phase one of frame construction changes
git-svn-id: svn://10.0.0.236/trunk@9742 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 19:32:14 +00:00
brendan%netscape.com
ee9e8bb28a Remove excessive JS_FRIEND_API uses; clean up nits.
git-svn-id: svn://10.0.0.236/trunk@9740 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 19:18:23 +00:00
rods%netscape.com
4af961e25a GetPosition now uses a binary search for locating the cursor poistion. Also, selection now
uses the half width of a character for moving selection to the next character.


git-svn-id: svn://10.0.0.236/trunk@9739 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 19:18:01 +00:00
mcafee%netscape.com
c3765026b1 Adding Window|Privacy Tools|Display Site Info
git-svn-id: svn://10.0.0.236/trunk@9738 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 19:08:09 +00:00
blizzard%appliedtheory.com
8a40ae10c1 Commit changes from Michael O'Reilly <michael@metal.iinet.net.au>
git-svn-id: svn://10.0.0.236/trunk@9736 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 17:57:58 +00:00
vidur%netscape.com
59e74e9373 Got rid of extra release in Item() method of childNodes array of nsGenericHTMLContent
git-svn-id: svn://10.0.0.236/trunk@9735 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 17:51:30 +00:00
shaver%netscape.com
a5b1f502b6 clean up old assertions and remove vestigial tryLimit
git-svn-id: svn://10.0.0.236/trunk@9734 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 17:45:37 +00:00
karnaze%netscape.com
0247d3a198 in document, renamed nsHTMLFrame.cpp, nsHTMLFrameset.h, nsHTMLFrameset.cpp
git-svn-id: svn://10.0.0.236/trunk@9733 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 17:23:31 +00:00
vidur%netscape.com
6ea82397a3 Fixes to get Rotate.html working
git-svn-id: svn://10.0.0.236/trunk@9732 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 17:11:46 +00:00
shaver%netscape.com
e0896531eb fix memory leak
git-svn-id: svn://10.0.0.236/trunk@9731 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 14:56:58 +00:00
ramiro%netscape.com
16bd46f732 Add support for fixed html pain sizing.
git-svn-id: svn://10.0.0.236/trunk@9730 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 14:55:19 +00:00
ramiro%netscape.com
44cb0fff3d Add a virtual method for specifying the parent to the tree. Have the
RDFTreeView subclasses create the tree.  All this stuff is needed to create
a hierarchy in which the html pain can be created dynamically and sized to
an either arbitrary percentage or fixed height.


git-svn-id: svn://10.0.0.236/trunk@9729 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 14:35:05 +00:00
shaver%netscape.com
a4892e98bf first Perignon work (not built by anything yet) and generic attribute support
git-svn-id: svn://10.0.0.236/trunk@9728 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 14:21:43 +00:00
brendan%netscape.com
fcb837aa66 cvsquery now helps 3.0 JS avoid 'event has no properties' errors.
git-svn-id: svn://10.0.0.236/trunk@9727 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 07:27:31 +00:00
brendan%netscape.com
5867a55bdc Need to prevent GC activation during compile on the compiling context, not
just when evaluating old-style switch case expressions.


git-svn-id: svn://10.0.0.236/trunk@9726 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 07:09:44 +00:00
cls%seawood.org
b63175db20 Added NO_MDUPDATE to NSPR kludge make flags.
git-svn-id: svn://10.0.0.236/trunk@9724 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 05:24:12 +00:00
cls%seawood.org
294f5ecf41 Turned FULL_STATIC_BUILD on by default. Turn it off via --enable switches: min-shared, oji, or java. Turned unix ldap off by default. Added kludge to build NSPR with a separate build process. Added temp --enable-nspr to allow users to still use autoconf for NSPR build.
git-svn-id: svn://10.0.0.236/trunk@9715 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 04:08:00 +00:00
cls%seawood.org
3318a39861 Don't set NSPRDIR if using autoconf. Ignore automatic settings made by MOZ_LITE or lack of MOZ_LITE. Don't add -DDEVELOPER_DEBUG to DEFINES if using autoconf.
git-svn-id: svn://10.0.0.236/trunk@9712 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 03:58:52 +00:00
cls%seawood.org
d78cf05d04 Replaced tweak_nspr kludge with empty target for autoconf.
git-svn-id: svn://10.0.0.236/trunk@9711 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 03:53:20 +00:00
cls%seawood.org
0970218907 Moved libmisc & libprgrss in BASIC_LIBS so that mailto would link ifndef JAVA_OR_OJI.
git-svn-id: svn://10.0.0.236/trunk@9710 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 03:51:36 +00:00
valeski%netscape.com
c33b41f8cc fixing build bustage.
git-svn-id: svn://10.0.0.236/trunk@9709 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 03:28:20 +00:00
hyatt%netscape.com
a65d91f309 Fixes for docking/undocking behavior.
git-svn-id: svn://10.0.0.236/trunk@9708 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 02:35:27 +00:00
spider%netscape.com
442ef3d21b Support new gfx FontMetrics api
git-svn-id: svn://10.0.0.236/trunk@9707 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 02:09:20 +00:00
spider%netscape.com
51035da4ff Fix to return app units instead of twips in GetWidth API call
git-svn-id: svn://10.0.0.236/trunk@9706 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 02:08:20 +00:00
waterson%netscape.com
283e5bb163 Added a call to reflow when all connections complete if the context contains unsized images. r=law
git-svn-id: svn://10.0.0.236/trunk@9705 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 01:19:49 +00:00
peterl%netscape.com
1adaca9cae added to string support
git-svn-id: svn://10.0.0.236/trunk@9704 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 01:19:26 +00:00
peterl%netscape.com
ab0a6e6dd0 removed assert on x-height unit
git-svn-id: svn://10.0.0.236/trunk@9703 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 01:18:27 +00:00
peterl%netscape.com
0ef705b4ba fixed filtering of valid ID selectors
git-svn-id: svn://10.0.0.236/trunk@9702 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 01:18:06 +00:00
peterl%netscape.com
b2413c6722 sync css declaration to xif with new api
git-svn-id: svn://10.0.0.236/trunk@9701 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 01:16:25 +00:00
peterl%netscape.com
4a2003b48a added to string support for style= attributes
git-svn-id: svn://10.0.0.236/trunk@9700 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 01:15:23 +00:00
waterson%netscape.com
91f2930140 Added code to reflow doc when all connections complete if it contains an unsized image. r=sdagley
git-svn-id: svn://10.0.0.236/trunk@9699 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 01:06:56 +00:00
despotdaemon%netscape.com
df8781f1c9 Pseudo-automatic update of changes made by wtc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9698 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 01:06:36 +00:00
waterson%netscape.com
d67b4d3f6b Added call to reflow document when all connections complete if it contains an unsized image.
git-svn-id: svn://10.0.0.236/trunk@9697 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 01:05:46 +00:00
despotdaemon%netscape.com
042141318b Pseudo-automatic update of changes made by wtc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9696 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 01:05:23 +00:00
waterson%netscape.com
328e79a007 Added code to the process_deferred_image_info() callback to check for new image info on a visible image and do reflow if necessary. r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@9695 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 01:04:56 +00:00
waterson%netscape.com
5c62edba3a Added code to just lay out an image and mark the context as requiring reflow when an unsized image is encountered. Also, dont bother calling LO_SetImageInfo() if w/h hasnt changed. r=nisheeth,mjudge
git-svn-id: svn://10.0.0.236/trunk@9694 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 01:04:51 +00:00
waterson%netscape.com
4e1c527b82 Added a slot to MWContext that indicates whether or not the context requires reflow because an image without width or height was layed out with a default size.
git-svn-id: svn://10.0.0.236/trunk@9693 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 01:04:40 +00:00
mcafee%netscape.com
6eff3c1884 Make stubfe link on Solaris
git-svn-id: svn://10.0.0.236/trunk@9692 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 01:03:02 +00:00
despotdaemon%netscape.com
116624b1b0 Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9691 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 01:01:21 +00:00
karnaze%netscape.com
3c618c7265 changed case sensitive include for unix
git-svn-id: svn://10.0.0.236/trunk@9690 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 00:39:38 +00:00
valeski%netscape.com
e0eaf7f00b The changes apply to MODULAR_NETLIB only
mozilla/module/nsINetFile.h
MODULAR_NETLIB only. Added the nsINetFile interface header.

mozilla/module/nsNetFile.cpp
MODULAR_NETLIB only. Added the nsINetFile interface implementation.

mozilla/module/nsNetFile.h
MODULAR_NETLIB only. Added the nsNetFile header.

mozilla/main/mkgeturl.c
MODULAR_NETLIB only. Added directory and file token initialization for new ns_net_file code.

mozilla/main/net_xp_file.h
MODULAR_NETLIB only. Added the new readline routine for ns_net_file.

mozilla/module/makefile.win
MODULAR_NETLIB only. Added the nsNetFile.cpp file to compilation list.

mozilla/module/nsNetService.cpp
MODULAR_NETLIB only. Added the static nsNetFile instance so it gets initailized.

mozilla/module/nsNetStubs.cpp
MODULAR_NETLIB only. Added NET_I_XP_FILE* versions of XP_FILE routines. These routines are compiled and used when NS_NET_FILE is defined.


git-svn-id: svn://10.0.0.236/trunk@9689 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 00:32:40 +00:00
hyatt%netscape.com
176e8c5451 Fixing Related Links.
git-svn-id: svn://10.0.0.236/trunk@9688 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 00:24:54 +00:00
valeski%netscape.com
78ea06c997 fixing compile warning
git-svn-id: svn://10.0.0.236/trunk@9686 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 00:08:33 +00:00
hyatt%netscape.com
3e45e0fcd8 Docked and popup windows can now co-exist.
git-svn-id: svn://10.0.0.236/trunk@9685 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-10 00:01:00 +00:00
despotdaemon%netscape.com
0236e06fda Pseudo-automatic update of changes made by mang@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9684 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 23:58:27 +00:00
kipp%netscape.com
ba9d85891c Checked in some bug fixes from michaelp to make fullscreen plugins work better/more often
git-svn-id: svn://10.0.0.236/trunk@9683 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 23:52:16 +00:00
kipp%netscape.com
d87f9d1060 Support (in a shaky way) some various and sundry mime types for plugins
git-svn-id: svn://10.0.0.236/trunk@9682 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 23:51:43 +00:00
kipp%netscape.com
596e7c0a01 Added new source
git-svn-id: svn://10.0.0.236/trunk@9681 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 23:51:19 +00:00
kipp%netscape.com
8957ccb149 new
git-svn-id: svn://10.0.0.236/trunk@9680 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 23:50:46 +00:00
karnaze%netscape.com
e382cf5f41 converted frame/iframe/frameset to new layout/content separation
git-svn-id: svn://10.0.0.236/trunk@9679 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 23:30:30 +00:00
hyatt%netscape.com
9857b1a59e Moving the control strip underneath the title strip.
git-svn-id: svn://10.0.0.236/trunk@9678 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 23:18:38 +00:00
hyatt%netscape.com
5d50ddb72d Fixing damage caused by internationalization. Making it use the right UI font (MS Sans Serif).
git-svn-id: svn://10.0.0.236/trunk@9677 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 23:11:20 +00:00
hyatt%netscape.com
400154027a Removed CIntlWins drawtext call. When they get it working on Windows 95, then
we can hook it back up.


git-svn-id: svn://10.0.0.236/trunk@9676 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 23:05:01 +00:00
spider%netscape.com
949e30c64f Use twips on width calculations for font metrics in app
git-svn-id: svn://10.0.0.236/trunk@9675 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 22:24:00 +00:00
buster%netscape.com
4fb1136a6c integrate caption with new frame creation code
git-svn-id: svn://10.0.0.236/trunk@9674 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 22:18:01 +00:00
despotdaemon%netscape.com
148d6b590e Pseudo-automatic update of changes made by jsun@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9673 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 22:16:08 +00:00
pinkerton%netscape.com
79727e94d8 fix build bustage (removed call to HT_ToggleTreeMode)
git-svn-id: svn://10.0.0.236/trunk@9672 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 21:36:14 +00:00
buster%netscape.com
f97d444d8f integrates with new frame creation methods
git-svn-id: svn://10.0.0.236/trunk@9671 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 21:34:10 +00:00
hyatt%netscape.com
74584ed8b6 Fixes to the toolbar code.
git-svn-id: svn://10.0.0.236/trunk@9670 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 21:30:28 +00:00
vidur%netscape.com
5e856a67d9 Added nsIJSScriptObject interface to nsGenericHTMLContent class and fixed element.childNodes
git-svn-id: svn://10.0.0.236/trunk@9669 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 21:02:42 +00:00
vidur%netscape.com
c63cdad1a0 Adjusted to change in signature for FE_SetRefreshURLTimer
git-svn-id: svn://10.0.0.236/trunk@9665 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 20:56:47 +00:00
pnunn%netscape.com
22be840209 fix for #309770. Port fix from 4.06 to Moz.
git-svn-id: svn://10.0.0.236/trunk@9663 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 20:47:35 +00:00
hyatt%netscape.com
b06ce42e18 Fixes and improvements to NavCenter.
git-svn-id: svn://10.0.0.236/trunk@9657 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 20:26:33 +00:00
hyatt%netscape.com
bb7136efe1 Added notion of window type (standalone, docked, embedded, popup) to RDF.
git-svn-id: svn://10.0.0.236/trunk@9656 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 20:26:16 +00:00
buster%netscape.com
e325a433cd many fixes that effect http://www.mozilla.org and related pages.
these fixes are for nested tables with percent widths, for tables including both rowspan and colspan,
and for tables with only a single column.
some rounding errors were eliminated.
more debugging output, and some new assertions.


git-svn-id: svn://10.0.0.236/trunk@9655 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 20:00:40 +00:00
slamm%netscape.com
b651be006c Pull netscape-specific hack.
git-svn-id: svn://10.0.0.236/trunk@9654 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 20:00:33 +00:00
slamm%netscape.com
c669313675 Get the 'Change Log' link right. Set 'LANGUAGE=JavaScript' for the SCRIPT tag
git-svn-id: svn://10.0.0.236/trunk@9653 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 19:29:00 +00:00
brendan%netscape.com
1ac77c94fe Remove javaData, left over from original LiveConnect.
git-svn-id: svn://10.0.0.236/trunk@9650 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 19:20:07 +00:00
brendan%netscape.com
74114cf984 Now that SRC_COMMA has been renamed to reflect its generality (SRC_PCDELTA),
and more important, to save a byte of useless note offset, use SRC_CONTINUE
instead of SRC_PCDELTA to annotate JSOP_ENDINIT when there's an extra comma
at the end of an array literal (e.g. [1,2,,]).


git-svn-id: svn://10.0.0.236/trunk@9649 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 19:18:01 +00:00
pnunn%netscape.com
056cdd590e fix for #309770. Porting "RefreshURLTimer" fix from 4.06 to 5.0.
git-svn-id: svn://10.0.0.236/trunk@9648 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 19:13:11 +00:00
pnunn%netscape.com
2f8cb685c4 fix for #309770. Porting "RefreshURLTimer" fix from 4.06 to Moz
git-svn-id: svn://10.0.0.236/trunk@9647 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 19:12:31 +00:00
pnunn%netscape.com
9f7e6c5e8a fix for #309770. Porting "RefreshURLTimer" fix from 4.06 to Moz.
git-svn-id: svn://10.0.0.236/trunk@9646 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 19:11:22 +00:00
pnunn%netscape.com
1558689e2b fix for #309770. Porting RefreshURLTimer fix from 4.06 to Moz.
git-svn-id: svn://10.0.0.236/trunk@9645 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 19:08:32 +00:00
pnunn%netscape.com
3ef73042ff fix for bug#309770. Porting "RefreshURLTimer" fix from 4.06 to Moz.
git-svn-id: svn://10.0.0.236/trunk@9644 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 19:06:55 +00:00
rjc%netscape.com
b49b48f521 Fix some more drag&drop issues (regarding re-ordering of existing local/remote items). Also, on PowerPPC, force compiler to use no byte padding regarding structure alignment.
git-svn-id: svn://10.0.0.236/trunk@9643 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 19:06:23 +00:00
spider%netscape.com
0fba81dc0a Checkin for sman. Support for remote CAPI and User def's
git-svn-id: svn://10.0.0.236/trunk@9642 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 19:00:40 +00:00
pinkerton%netscape.com
0f24b39bdf use CAdSpaceView class for embedded html area.
git-svn-id: svn://10.0.0.236/trunk@9640 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 18:19:19 +00:00
pinkerton%netscape.com
67af347c93 Turned off (ifdef'd) the property to not use selection in the tree view so we get d&d even in single-click modes.
git-svn-id: svn://10.0.0.236/trunk@9639 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 18:19:08 +00:00
pinkerton%netscape.com
44aa69ed84 don't bother trying to close the adSpace shelf here, RestorePlace() usurps it.
git-svn-id: svn://10.0.0.236/trunk@9638 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 18:19:02 +00:00
pinkerton%netscape.com
5d51b8377f close adspace shelf by default. Needs to be done after RestorePlace() so it cannot be done in the coordinator.
git-svn-id: svn://10.0.0.236/trunk@9637 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 18:17:54 +00:00
pinkerton%netscape.com
1894fc9484 register CAdSpaceView
git-svn-id: svn://10.0.0.236/trunk@9635 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 18:17:13 +00:00
pinkerton%netscape.com
78e0c6e329 added CAdSpaceView to special case things for the embedded html pane.
git-svn-id: svn://10.0.0.236/trunk@9634 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 18:17:00 +00:00
mcafee%netscape.com
fe233fddf4 debug stuff for add_row()
git-svn-id: svn://10.0.0.236/trunk@9633 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 18:10:27 +00:00
mcafee%netscape.com
d6c0c53360 HT_PaneFromURL() needs a context passed in from XFE_DisplayBuiltin(), so we now pass the context along.
git-svn-id: svn://10.0.0.236/trunk@9632 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 18:07:10 +00:00
rods%netscape.com
0cf8a140a9 Removed TraverseBlockContent static function
git-svn-id: svn://10.0.0.236/trunk@9631 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 17:42:21 +00:00
slamm%netscape.com
710729e972 Fix the 'Change Log' like to pass along the branch and the root. Trim the email addresses of netscape folks (i.e. slamm%netscape.com becomes slamm).
git-svn-id: svn://10.0.0.236/trunk@9630 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 17:37:12 +00:00
despotdaemon%netscape.com
f0b2db257c Pseudo-automatic update of changes made by blizzard@appliedtheory.com.
git-svn-id: svn://10.0.0.236/trunk@9629 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 17:22:07 +00:00
despotdaemon%netscape.com
87ac646444 Pseudo-automatic update of changes made by shaver@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9627 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 17:18:46 +00:00
spider%netscape.com
698f313f61 Remove pull_trex_ns target, no longer needed
git-svn-id: svn://10.0.0.236/trunk@9626 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 16:41:42 +00:00
kipp%netscape.com
5d665f2238 Support direct loading of image documents by using the GetImageFromStream method on the image group.
git-svn-id: svn://10.0.0.236/trunk@9625 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 16:19:30 +00:00
kipp%netscape.com
874cb1072c Removed some cruft
git-svn-id: svn://10.0.0.236/trunk@9624 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 16:18:40 +00:00
kipp%netscape.com
f9928a5225 Support reconnect callback
git-svn-id: svn://10.0.0.236/trunk@9623 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 16:17:55 +00:00
kipp%netscape.com
1b47ada470 Added GetImageFromStream
git-svn-id: svn://10.0.0.236/trunk@9622 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 16:15:40 +00:00
kipp%netscape.com
8684bc6d2a Added Reconnect call-back to NS_NewImageNetContext
git-svn-id: svn://10.0.0.236/trunk@9621 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 16:14:49 +00:00
kipp%netscape.com
c759fe4fbd whitespace fixup
git-svn-id: svn://10.0.0.236/trunk@9620 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 16:14:16 +00:00
kipp%netscape.com
c0384026c1 Turned off image load skid marks
git-svn-id: svn://10.0.0.236/trunk@9619 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 16:13:52 +00:00
spider%netscape.com
0c2451e92b WIP: API change on OnResize for ViewManager support.
git-svn-id: svn://10.0.0.236/trunk@9618 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 16:12:03 +00:00
rods%netscape.com
5dd2f359cc XPCOM'ed the Selection and Search methods
git-svn-id: svn://10.0.0.236/trunk@9617 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 16:11:59 +00:00
ramiro%netscape.com
c9dfe90303 Move html pane to XFE_RDFChromeTreeView.
git-svn-id: svn://10.0.0.236/trunk@9615 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 14:43:13 +00:00
ramiro%netscape.com
04671136ea Unbreak MOZ_SELECTOR_BAR for the hell of it.
git-svn-id: svn://10.0.0.236/trunk@9614 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 10:56:48 +00:00
brendan%netscape.com
7b7ccadd57 - Might as well use tempPool to arena-allocate collected_args as well as the
tokenstream in Function, to avoid calling malloc at all.
- But do check for malloc failure under PR_ARENA_ALLOCATE (the old call to
  JS_malloc was unchecked).


git-svn-id: svn://10.0.0.236/trunk@9611 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 10:02:12 +00:00
brendan%netscape.com
5f08bf111e Fix tempPool bloat bugs in Function by mark/release around NewTokenStream.
git-svn-id: svn://10.0.0.236/trunk@9610 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 09:50:40 +00:00
brendan%netscape.com
d06c6009ae - Don't cast malloc's return value, it's void *.
- Don't double-report a scanner error such as illegal character in
  Function("a@b", "return a*b")
- Do report a "malformed formal parameter" error in
  Function("a,b,", "return a*b")
- Fiddle comments to more precisely rule out the above bugs.


git-svn-id: svn://10.0.0.236/trunk@9609 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 09:27:56 +00:00
ramiro%netscape.com
d12da9f536 Many cpp's do not like "#ifdef 0" (it's illegal in strict ANSI C I suspect),
including HP-UX's ANSI C. Line 1633 of cmd/xfe/XfeWidgets/Xfe/Pane.c uses
"#ifdef 0" - it should be "#if 0" of course. HP's ANSI C refuses to compile
this file without it being fixed.
Thanks to rkl@connect.org.uk for pointing this out.


git-svn-id: svn://10.0.0.236/trunk@9608 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 09:09:00 +00:00
brendan%netscape.com
0c04e27eb1 JSMSG_NO_FORMAL duplicated DUPLICATE_FORMAL, now is reborn as BAD_FORMAL.
git-svn-id: svn://10.0.0.236/trunk@9607 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 09:04:35 +00:00
ramiro%netscape.com
f69e90bfdb Fix infinite loop on scrollbar resize from waterson@netscape.com
(Chris Waterson).
The problem with resizing on XFE has to do with the fact that the widget
resize callback is directly calling LO_RelayoutOnResize(), which causes the
scrollbars to get remapped, which causes the resize callback to be called,
which causes LO_RelayoutOnResize() to be called, which causes the scrollbars
to get remapped...you get the idea.


git-svn-id: svn://10.0.0.236/trunk@9606 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 09:03:30 +00:00
ramiro%netscape.com
9206fd904c Fix the hanging problem when invoked with -xpm (and possibly other flags) and
no include/Xm.h is found anywhere.


git-svn-id: svn://10.0.0.236/trunk@9605 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 08:34:48 +00:00
ramiro%netscape.com
71bc545ac6 This script should only do 1 thing: print a reasonable guess for a unique
host identifier.  Overriding should happen in the Makfile or wherever else
this script is invoked.


git-svn-id: svn://10.0.0.236/trunk@9604 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 08:33:49 +00:00
cls%seawood.org
3820e80eb0 Sync'd.
git-svn-id: svn://10.0.0.236/trunk@9603 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 08:15:05 +00:00
ramiro%netscape.com
ea84a1fe8e Allow the 'unique host identity' to be overriden by MOZILLA_CONFIG_HOST_IDENT.
Also make the clean target in config/mkdetect actually work.


git-svn-id: svn://10.0.0.236/trunk@9602 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 08:00:10 +00:00
brendan%netscape.com
dfee645789 Improve TABLESWITCH comment precision and add XXX about JSVERSION_IS_ECMAv2.
git-svn-id: svn://10.0.0.236/trunk@9598 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 06:35:30 +00:00
ramiro%netscape.com
623a1739b0 Add /usr/X to DEFAULT_MOTIF_SEARCH_PATH.
Thanks to tim@trr.metro.NET (Tim Rice).


git-svn-id: svn://10.0.0.236/trunk@9594 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 06:17:46 +00:00
jwz%mozilla.org
a35e03ab51 paragraph break after README (from dawn)
git-svn-id: svn://10.0.0.236/trunk@9593 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 05:14:57 +00:00
gagan%netscape.com
30fe903120 Cache_object for nu_cache.
git-svn-id: svn://10.0.0.236/trunk@9592 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 02:23:27 +00:00
gagan%netscape.com
93979e7a13 Resetting cache_objects.
git-svn-id: svn://10.0.0.236/trunk@9591 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 02:19:30 +00:00
brendan%netscape.com
4976336cd7 Renamed SRC_COMMA to SRC_PCDELTA and fixed related comments.
git-svn-id: svn://10.0.0.236/trunk@9590 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 02:16:19 +00:00
brendan%netscape.com
293dc6ae2d Fix busted version check in JSOP_TABLESWITCH.
git-svn-id: svn://10.0.0.236/trunk@9589 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 02:01:52 +00:00
cyeh%netscape.com
2722c6abf9 revert file
git-svn-id: svn://10.0.0.236/trunk@9588 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 01:37:41 +00:00
joki%netscape.com
8458f73950 Do not allow script errors to stop page parsing.
git-svn-id: svn://10.0.0.236/trunk@9587 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 01:19:52 +00:00
joki%netscape.com
c5e8af16d8 Remove duplicate functionality of nsIBrowserWindow and nsIWebShellContainer.
git-svn-id: svn://10.0.0.236/trunk@9586 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 01:19:11 +00:00
wtc%netscape.com
fb7f0ca845 Fixed dprintf as suggested by Patrick Beard (beard@netscape.com).
Now dprintf calls PR_vsnprintf instead of PR_vsmprintf, so that
dprintf does not allocate memory.  This is because PR_Assert (which
calls dprintf) can get called at interrupt time, and it is unsafe
to allocate memory at interrupt time on the Mac.


git-svn-id: svn://10.0.0.236/trunk@9585 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 01:17:41 +00:00
shaver%netscape.com
f2fe16c9ca initial import of toshok's gnomefe
git-svn-id: svn://10.0.0.236/trunk@9584 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 01:15:49 +00:00
kipp%netscape.com
d56cfbd643 Set fast-8bit-text hint on x windows
git-svn-id: svn://10.0.0.236/trunk@9583 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 01:04:29 +00:00
spider%netscape.com
79d217f984 Adding support for ViewManager into xpfc
Change painting methods to pass around the rendering context
  and dirty rect instead of gui event to be compatible with
  view api's


git-svn-id: svn://10.0.0.236/trunk@9582 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 00:55:35 +00:00
jwz%mozilla.org
1a09b34777 vivat grendel!
git-svn-id: svn://10.0.0.236/trunk@9581 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 00:52:38 +00:00
thom%netscape.com
c96ec32790 added support for DOM dll
git-svn-id: svn://10.0.0.236/trunk@9580 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 00:02:23 +00:00
thom%netscape.com
a90938b7fe added nsDOMFactory.cpp and nsHTMLTagsEnums.cpp
git-svn-id: svn://10.0.0.236/trunk@9579 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 00:01:43 +00:00
slamm%netscape.com
ff2e648658 Call show() on the builtin for SHACK.
git-svn-id: svn://10.0.0.236/trunk@9578 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 00:00:53 +00:00
slamm%netscape.com
824c376c99 Move tree widget management into RDFTreeView. Don't choke when no columns are created.
git-svn-id: svn://10.0.0.236/trunk@9577 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 00:00:42 +00:00
slamm%netscape.com
b7c785dbb9 Move tree widget management into RDFTreeView.
git-svn-id: svn://10.0.0.236/trunk@9576 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 00:00:33 +00:00
slamm%netscape.com
201747cf09 Avoid annoying warnings about _ht_pane being nil.
git-svn-id: svn://10.0.0.236/trunk@9575 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 00:00:23 +00:00
slamm%netscape.com
3b3150a851 Add default constructor call for RDFBase.
git-svn-id: svn://10.0.0.236/trunk@9574 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 00:00:20 +00:00
slamm%netscape.com
5e7c6cadbe Change relationship to RDFTreeView to 'isa' (was 'hasa'). Get SHACK going.
git-svn-id: svn://10.0.0.236/trunk@9573 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 00:00:17 +00:00
kipp%netscape.com
a629c89a47 Use a buffer to translate unichar's into XChar2b's
git-svn-id: svn://10.0.0.236/trunk@9572 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 23:52:29 +00:00
kipp%netscape.com
e12d74e626 Added a buffer used by DrawString
git-svn-id: svn://10.0.0.236/trunk@9571 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 23:52:10 +00:00
kipp%netscape.com
74460cc8e8 Whitespace tidy up
git-svn-id: svn://10.0.0.236/trunk@9570 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 23:51:54 +00:00
cyeh%netscape.com
211c01a1e7 according to scc, use do instead of system
git-svn-id: svn://10.0.0.236/trunk@9569 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 23:50:44 +00:00
spider%netscape.com
81585718f4 No longer use julian as shared library
git-svn-id: svn://10.0.0.236/trunk@9568 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 23:35:54 +00:00
pinkerton%netscape.com
82eb7aec56 sitemap/HTML area registration in docked Aurora view.
git-svn-id: svn://10.0.0.236/trunk@9567 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 23:17:21 +00:00
kipp%netscape.com
f92bc6705a Fixed unix compile bugs
git-svn-id: svn://10.0.0.236/trunk@9566 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 23:17:12 +00:00
kipp%netscape.com
1e5e004c86 Flush font cache before destroying device context to break circular links (ick)
git-svn-id: svn://10.0.0.236/trunk@9565 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:38:48 +00:00
kipp%netscape.com
9d8f9aaffa Create HTML-html-element not a root part
git-svn-id: svn://10.0.0.236/trunk@9564 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:38:17 +00:00
kipp%netscape.com
3ab02b9896 Implement HandleDOMEvent properly; clean up whitespace
git-svn-id: svn://10.0.0.236/trunk@9563 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:37:46 +00:00
kipp%netscape.com
e2c7517492 Use NS_NewBodyFrame and NS_NewHTMLFrame
git-svn-id: svn://10.0.0.236/trunk@9562 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:37:24 +00:00
kipp%netscape.com
f49ffdeb17 Renamed source files
git-svn-id: svn://10.0.0.236/trunk@9561 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:37:00 +00:00
kipp%netscape.com
4688f4a267 Removed some cruft; added NS_NewBodyFrame
git-svn-id: svn://10.0.0.236/trunk@9560 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:36:30 +00:00
kipp%netscape.com
392496f910 CHanged NewFrame method to NS_NewBodyFrame
git-svn-id: svn://10.0.0.236/trunk@9559 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:35:54 +00:00
kipp%netscape.com
429035b95e new
git-svn-id: svn://10.0.0.236/trunk@9558 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:34:40 +00:00
kipp%netscape.com
60e776c0b1 Added new atoms
git-svn-id: svn://10.0.0.236/trunk@9557 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:34:06 +00:00
kipp%netscape.com
3c90229bd1 Revised list of build files
git-svn-id: svn://10.0.0.236/trunk@9556 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:33:54 +00:00
kipp%netscape.com
e8824a34c4 Fixed bug caused during XPCOM'ing the nsIContent API
git-svn-id: svn://10.0.0.236/trunk@9555 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:32:32 +00:00
kipp%netscape.com
5e56e0d9f0 Implement revised font metrics API
git-svn-id: svn://10.0.0.236/trunk@9554 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:32:07 +00:00
kipp%netscape.com
ce87194f82 Revised API
git-svn-id: svn://10.0.0.236/trunk@9553 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:31:51 +00:00
kipp%netscape.com
8b0ea79b27 Destroy font metrics before releasing it
git-svn-id: svn://10.0.0.236/trunk@9552 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:31:28 +00:00
akkana%netscape.com
c93a7af987 Register type converters for mail compose. This makes "Send Page" work.
Approved by gagan.


git-svn-id: svn://10.0.0.236/trunk@9551 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:14:51 +00:00
rods%netscape.com
5b61252657 Changed Find to use all nsIDOMxxx classes instead of nsIContent
git-svn-id: svn://10.0.0.236/trunk@9550 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:13:29 +00:00
dcone%netscape.com
1ad612fe04 added a routine gethints() needed by the interface.
git-svn-id: svn://10.0.0.236/trunk@9549 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:13:10 +00:00
terry%netscape.com
e82ae91d3b Added 1998-09-04 version.
git-svn-id: svn://10.0.0.236/trunk@9548 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 22:06:33 +00:00
wtc%netscape.com
89a7ea308b Backed out an accidental change of the setting of OBJDIR_NAME in the
previous revision.


git-svn-id: svn://10.0.0.236/trunk@9547 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 21:45:31 +00:00
briano%netscape.com
baef3ff491 Tried to make the differences/similarities between MOZ_LITE, MOZ_MEDIUM, and MOZ_DARK more obvious.
git-svn-id: svn://10.0.0.236/trunk@9546 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 21:40:13 +00:00
cyeh%netscape.com
bacc204129 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@9545 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 21:34:22 +00:00
sdagley%netscape.com
ad616e2ae7 Implement real version of FE_CheckConfirm
git-svn-id: svn://10.0.0.236/trunk@9544 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 21:32:03 +00:00
briano%netscape.com
11e8e272dc Minor cleanup, and changed EDITOR to MOZ_EDITOR.
git-svn-id: svn://10.0.0.236/trunk@9543 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 21:24:12 +00:00
pinkerton%netscape.com
6049d54d57 use IdenticalString instead of RelString to be more localizable.
git-svn-id: svn://10.0.0.236/trunk@9542 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 21:20:19 +00:00
pinkerton%netscape.com
1bce069dc7 don't redraw caption when it doesn't change (avoids flashing).
git-svn-id: svn://10.0.0.236/trunk@9541 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 21:12:26 +00:00
raman%netscape.com
020c0b0f7f Added libsoftupdat.a to the link line when MOZ_SMARTUPDATE is defined. Made SmartUpdate independent of Java
git-svn-id: svn://10.0.0.236/trunk@9540 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 21:06:54 +00:00
raman%netscape.com
7d0b7c66d6 Added building of autoupdt.c
git-svn-id: svn://10.0.0.236/trunk@9539 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 21:00:51 +00:00
shaver%netscape.com
91f063881e ToBoolean behaviour for all non-ECMA versions, not just 1.2
git-svn-id: svn://10.0.0.236/trunk@9538 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:59:19 +00:00
rjc%netscape.com
b67d47c22e Allow mixing/repositioning of local/remote items in the same container.
git-svn-id: svn://10.0.0.236/trunk@9537 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:55:41 +00:00
dcone%netscape.com
02fcf730c2 added files to html/content area that vidor added to windows project
git-svn-id: svn://10.0.0.236/trunk@9536 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:55:14 +00:00
pinkerton%netscape.com
85c80d8532 Since we are now weak-linked against AppearanceLib, make sure it is available and quit if it is not. We were also never initializing UEnvironment's feature set. Call RegisterAppearanceClient() since we are one (again).
git-svn-id: svn://10.0.0.236/trunk@9535 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:48:29 +00:00
pinkerton%netscape.com
d3076a4587 weak link against AppearanceLib.
git-svn-id: svn://10.0.0.236/trunk@9534 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:47:16 +00:00
pinkerton%netscape.com
2928e184e7 add a new dialog to inform users how to get AppearanceLib.
git-svn-id: svn://10.0.0.236/trunk@9533 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:47:01 +00:00
spider%netscape.com
21ba3d6cb8 Removing LIBJULIAN to use julian as standalone dll.
Adding ViewManager on a per 'container' basis.


git-svn-id: svn://10.0.0.236/trunk@9532 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:34:42 +00:00
slamm%netscape.com
136fdedb42 Pass through 'nocrap' argument from express.
git-svn-id: svn://10.0.0.236/trunk@9531 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:33:28 +00:00
ftang%netscape.com
351bb2c436 check in comment about history code may need to change later. No code change.
git-svn-id: svn://10.0.0.236/trunk@9530 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:21:23 +00:00
slamm%netscape.com
e2497544f4 Add toolbar deletion.
git-svn-id: svn://10.0.0.236/trunk@9529 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:14:23 +00:00
slamm%netscape.com
83a23b5f1c Avoid adding the wrong nodes to the toolbar
git-svn-id: svn://10.0.0.236/trunk@9528 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:14:15 +00:00
slamm%netscape.com
108d88aa73 Avoid opening nodes too soon.
git-svn-id: svn://10.0.0.236/trunk@9527 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:14:12 +00:00
slamm%netscape.com
d4508c551c more support for pane creation/deletion.
git-svn-id: svn://10.0.0.236/trunk@9526 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:14:06 +00:00
slamm%netscape.com
96eae3899d Break up the constructor into more intelligible parts. Standadize some of the variable names. Massage some ht calls.
git-svn-id: svn://10.0.0.236/trunk@9525 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:13:59 +00:00
slamm%netscape.com
4ab5d272a8 Hook up the bookmarks and history windows. Get rid of the unneeded command handing stuff.
git-svn-id: svn://10.0.0.236/trunk@9524 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:13:56 +00:00
slamm%netscape.com
ec872fb07e change some extern 'C' functions to static members of the XFE_Image
git-svn-id: svn://10.0.0.236/trunk@9523 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:13:51 +00:00
slamm%netscape.com
0fb3e85ef4 create the bookmarks pane in RDFBase.
git-svn-id: svn://10.0.0.236/trunk@9522 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:13:46 +00:00
slamm%netscape.com
99f0b0e6ed Move bookmark frame creation to NavCenterFrame.cpp
git-svn-id: svn://10.0.0.236/trunk@9521 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 20:13:43 +00:00
slamm%netscape.com
24a97a12ef Re-commit the 'nocrap'. This time it's not crappy.
git-svn-id: svn://10.0.0.236/trunk@9519 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 19:48:29 +00:00
slamm%netscape.com
6c5d2d1f76 Oops, not ready yet. backout last change.
git-svn-id: svn://10.0.0.236/trunk@9518 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 19:36:56 +00:00
slamm%netscape.com
e75a82953c Add a 'nocrap' flag so the top of the page has useful information (i.e. no image, no legend).
git-svn-id: svn://10.0.0.236/trunk@9517 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 19:34:51 +00:00
akkana%netscape.com
4659274e32 Remove vcards from MOZ_MAIL_COMPOSE; fix unresolved symbols
git-svn-id: svn://10.0.0.236/trunk@9516 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 19:32:10 +00:00
akkana%netscape.com
e759a9f0ec Remove vcards from MOZ_MAIL_COMPOSE
git-svn-id: svn://10.0.0.236/trunk@9515 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 19:30:41 +00:00
despotdaemon%netscape.com
0448460aa8 Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9514 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 19:29:51 +00:00
beard%netscape.com
63d006d51c Lazy LiveConnect fixes.
git-svn-id: svn://10.0.0.236/trunk@9513 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 19:11:50 +00:00
buster%netscape.com
8aa191848a fixed 2 small errors in computing table widths.
1) sometimes we were adding 1 too many pixels in constrained tables
2) sometimes we were using the wrong value for the max width as an input to constrained tables


git-svn-id: svn://10.0.0.236/trunk@9512 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 19:11:14 +00:00
beard%netscape.com
34c2fcfcff Changed JavaPackage_resolve, to remove a memory leak.
git-svn-id: svn://10.0.0.236/trunk@9510 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 19:08:09 +00:00
pinkerton%netscape.com
86c01f03ff stupid RidL resources....
git-svn-id: svn://10.0.0.236/trunk@9509 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:52:00 +00:00
brendan%netscape.com
7d1f9f8984 Don't emit two SRC_HIDDENs in a row.
git-svn-id: svn://10.0.0.236/trunk@9508 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:26:37 +00:00
cyeh%netscape.com
a4b652fb6e remove CHANGES.html
git-svn-id: svn://10.0.0.236/trunk@9507 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:25:11 +00:00
norris%netscape.com
7f284fbf17 Fix bug: space was not allocated for terminal '\0' in string.
Spell "JavaScript" correctly.


git-svn-id: svn://10.0.0.236/trunk@9506 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:18:52 +00:00
pinkerton%netscape.com
0309575105 increase/decrease font size in html area. Fix column hiding bug in embedded tree.
git-svn-id: svn://10.0.0.236/trunk@9505 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:10:54 +00:00
pinkerton%netscape.com
b1ce1292cd increase/decrease font sizes in browser window.
git-svn-id: svn://10.0.0.236/trunk@9504 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:10:16 +00:00
pinkerton%netscape.com
b56da5283c use LScrollerView and LScrollBar
git-svn-id: svn://10.0.0.236/trunk@9503 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:09:16 +00:00
pinkerton%netscape.com
bb94402f82 Allow the user of the class to pass "" for the requested icon url.
git-svn-id: svn://10.0.0.236/trunk@9502 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:08:35 +00:00
pinkerton%netscape.com
f4e66ce9d5 use LScrollerView.
git-svn-id: svn://10.0.0.236/trunk@9501 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:07:59 +00:00
pinkerton%netscape.com
88a72b7e1b use LScrollerView
git-svn-id: svn://10.0.0.236/trunk@9500 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:07:48 +00:00
pinkerton%netscape.com
fbb3a02aba New HTML area in docked view.
git-svn-id: svn://10.0.0.236/trunk@9499 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:07:02 +00:00
pinkerton%netscape.com
d9d2d87c22 Use new FeatureFlags to configure properties.
git-svn-id: svn://10.0.0.236/trunk@9498 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:06:26 +00:00
pinkerton%netscape.com
8a3070e4d1 Landing of 4.5 changes to get more flexibility in how divided views are handled.
git-svn-id: svn://10.0.0.236/trunk@9497 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:05:48 +00:00
pinkerton%netscape.com
795c474aa2 Move to LScrollerView
git-svn-id: svn://10.0.0.236/trunk@9496 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:05:17 +00:00
pinkerton%netscape.com
6acb44cc6b Fixes for font scaling (increase/decrease) in browser.
git-svn-id: svn://10.0.0.236/trunk@9495 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:04:59 +00:00
pinkerton%netscape.com
44348b0ffc Using LScrollerView
git-svn-id: svn://10.0.0.236/trunk@9494 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:04:30 +00:00
pinkerton%netscape.com
ba637881d0 Adding increase/decrease font size menus.
git-svn-id: svn://10.0.0.236/trunk@9493 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:04:00 +00:00
pinkerton%netscape.com
f252f64f26 LScrollerView and HTML area in docked view. Now using includeViews more to avoid duplication.
git-svn-id: svn://10.0.0.236/trunk@9492 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:03:44 +00:00
pinkerton%netscape.com
f4175f9d93 changes for LScrollerView
git-svn-id: svn://10.0.0.236/trunk@9491 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:03:17 +00:00
pinkerton%netscape.com
c4d121b673 Removed CConfigActiveScroller and CExpandoDivider.
git-svn-id: svn://10.0.0.236/trunk@9490 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:03:02 +00:00
pinkerton%netscape.com
2305c46add move to LScrollerView for things that scroll and HTML view in docked Aurora.
git-svn-id: svn://10.0.0.236/trunk@9489 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:02:39 +00:00
pinkerton%netscape.com
cdf03c828e More AM classes and moving from LActiveScroller to LScrollerView.
git-svn-id: svn://10.0.0.236/trunk@9488 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 18:01:57 +00:00
dcone%netscape.com
415018ddda added a .h to the file Vidur added
git-svn-id: svn://10.0.0.236/trunk@9487 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 16:37:05 +00:00
ramiro%netscape.com
1dafb61497 Cleanup fe_getPixelFromRGB(). Move it to xfe/colors.c and rename it to
fe_GetPixelFromRGBString().


git-svn-id: svn://10.0.0.236/trunk@9486 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 14:01:20 +00:00
ramiro%netscape.com
b90a717fb1 Use real XtCallbacks instead of a hack.
git-svn-id: svn://10.0.0.236/trunk@9485 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 12:22:21 +00:00
ramiro%netscape.com
5853f77a56 Add layable children info.
git-svn-id: svn://10.0.0.236/trunk@9484 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 12:15:55 +00:00
ramiro%netscape.com
e94feb1a94 Add XfeSubResourceGetWidgetXmStringValue().
git-svn-id: svn://10.0.0.236/trunk@9483 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 11:59:26 +00:00
brendan%netscape.com
8189f39979 Oops! How did that ever work on my Win32 build?
git-svn-id: svn://10.0.0.236/trunk@9476 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 05:49:12 +00:00
brendan%netscape.com
12a9d81b7f js.c jsemit.c jsemit.h jsgc.c jsinterp.c jsopcode.c jsopcode.def
- Switch improvements:
  - JSOP_CONDSWITCH is a 1 byte nop, not variable length with the same kind
    of immediate operand as JSOP_LOOKUPSWITCH (which is useless except for
    decompilation).  New scheme uses SRC_COMMA notes on each JSOP_CASE opcode,
    usually 2 bytes per note, and a typically-1-byte 2nd offset on SRC_SWITCH:
      1 + 2 * ncases
    vs. the previous JSOP_LOOKUPSWITCH immediate, which consumed:
      4 * ncases
    bytes after the switch opcode just for decompilation.
  - SRC_SWITCH has two offsets, first to end of switch as before, the second
    to first case if JSOP_CONDSWITCH, for decompilation.
  - Optimize switches with all-constant cases using JSOP_TABLESWITH, or if
    that can't be used, JSOP_LOOKUPSWITCH, before falling back on ECMAv2's
    JSOP_CONDSWITCH.
  - Use cx->gcDisabled when evaluating case exprs at compile time for old,
    pre-ECMAv2 switches, to prevent branch-callback-based GC invocations
    from ripping apart the unrooted temporary script for each case expr.
  - Fixed up stale SRC_SWITCH comments in jsemit.h.

jsemit.c jsemit.h
  - TREE_CONTEXT_INIT to match ATOM_LIST_INIT, not English word order.
  - Reorganized JSCodeGenerator to sort of match argument order to
    js_InitCodeGenerator.
  - Got rid of confusing CG_RESET* macros and used memset(cg, 0, sizeof *cg)
    and non-zero-default init in js_InitCodeGenerator.  js_ResetCodeGenerator
    just releases the code and temp arena pools and leaves the cg in a state
    where it must be re-initialized (as before, but more obvious).
  - In the same spirit, don't do partial "resets" or src and trynotes in their
    js_FinishTaking*Notes functions -- those are friends of jsscript.c and are
    not general, idempotent functions.

jsapi.c jsapi.h jsarray.c jsatom.c jsatom.h jscntxt.c jsemit.c jsmsg.def
jsnum.c jsobj.c jsopcode.c jsregexp.c jsscan.c jsstr.c jsxdrapi.
  - Use PR_snprintf rather than sprintf always, so we don't have to worry
    about systems with 64-bit longs that overflow 12-byte buffers and open
    Morris-Worm-type security holes.
  - Trim extra spaces, fix hanging indentation, and similar anal retention.
  - Renamed JSMSG_BAD_PROTO_SORT to JSMSG_BAD_SORT_ARG cuz that's what it
    is complaining about.
  - SRC_CATCHGUARD still lived in comments, but it's SRC_CATCH in code.

jscntxt.c jscntxt.h jsinterp.c
  - Packed nearby JSPackedBools and added a new one: gcDisabled, for use by
    jsemit.c's pre-ECMAv2 switch case expr eval.
  - Rip out old js_InterpreterHooks stuff from original liveconnect (moja).
  - Remove javaData and savedErrors from JSContext.  Leaving it to fur or
    shaver to remove javaData from jsscript.h.


git-svn-id: svn://10.0.0.236/trunk@9475 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 05:39:51 +00:00
cls%seawood.org
36609ca04c Changed EDITOR env to MOZ_EDITOR. Submitted by Tim Rowley <tor@cs.brown.edu>
git-svn-id: svn://10.0.0.236/trunk@9474 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 04:52:26 +00:00
cls%seawood.org
e04e2ec644 Unset NO_EDITOR when mail-compose is enabled and removed unused variables.
git-svn-id: svn://10.0.0.236/trunk@9473 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 03:57:15 +00:00
cls%seawood.org
2bfc8c424b Made sure CC is being passed down to detect scripts.
git-svn-id: svn://10.0.0.236/trunk@9472 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 03:50:42 +00:00
cls%seawood.org
5f974b4509 Removed unused variables.
git-svn-id: svn://10.0.0.236/trunk@9471 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 03:45:34 +00:00
cls%seawood.org
f175f1713d Let user set CC & CXX to propagate the c and c++ compiler throughout the main build.
git-svn-id: svn://10.0.0.236/trunk@9470 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 03:33:40 +00:00
briano%netscape.com
55d0da1124 Deleting the 'patcher' subdir from DIRS. Not used.
git-svn-id: svn://10.0.0.236/trunk@9469 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-08 03:12:37 +00:00
raman%netscape.com
7a4a69ccea Checking bug fixes for SmartUpdate. It is not part of the build system
git-svn-id: svn://10.0.0.236/trunk@9468 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-07 21:49:56 +00:00
kipp%netscape.com
6187415172 Allocated another IID
git-svn-id: svn://10.0.0.236/trunk@9467 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-07 19:15:41 +00:00
kipp%netscape.com
538780b53b Added GetHints to nsIRenderingContext API
git-svn-id: svn://10.0.0.236/trunk@9466 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-07 19:12:44 +00:00
shaver%netscape.com
7191ecc710 remove some unbelievably dump debugging code (I no longer randomly dump core)
git-svn-id: svn://10.0.0.236/trunk@9465 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-07 18:50:13 +00:00
sdagley%netscape.com
219619ac4d Add new Privacy prefs sub-pane under Navifator, move cookie settings there (trusted cookie checkbox and config button not implemented yet), add new prefs checkbox for saving name and password, add new prefs checkbox for warning when server has no privacy policy.
git-svn-id: svn://10.0.0.236/trunk@9464 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-07 06:04:24 +00:00
toshok%netscape.com
e978f4bd52 uhh... remove xphist.* from the build.
git-svn-id: svn://10.0.0.236/trunk@9463 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 22:03:50 +00:00
toshok%netscape.com
d511d6f7cf add xp_hist.c/h. not built.
git-svn-id: svn://10.0.0.236/trunk@9462 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 22:03:12 +00:00
toshok%netscape.com
80e54a7d35 we need lo_alignStrings when we don't have memory arenas too. not just when EDITOR is defined.
git-svn-id: svn://10.0.0.236/trunk@9461 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 21:00:43 +00:00
ramiro%netscape.com
0d56597e86 BSD/OS 3.x and 4.x no longer define ___386BSD__ (which really existed
only for backward compatibility with the old Jolitz BSD releases).
Anyways, this patch makes it compile again.
Thanks to Bert Driehuis <driehuis@playbeing.org>.


git-svn-id: svn://10.0.0.236/trunk@9460 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 19:42:08 +00:00
ramiro%netscape.com
3c6f0accb0 Convert '/' to '_' in the output of uname.
Thanks to Bert Driehuis <driehuis@playbeing.org>.


git-svn-id: svn://10.0.0.236/trunk@9459 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 19:40:05 +00:00
brendan%netscape.com
828b802387 Remove '(balance' comments, fix hanging indents, other nits.
git-svn-id: svn://10.0.0.236/trunk@9458 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 19:23:06 +00:00
brendan%netscape.com
40a84ecba5 Fix switch comments, it's not a ternary node any longer.
git-svn-id: svn://10.0.0.236/trunk@9457 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 19:19:04 +00:00
terry%netscape.com
91bc17ca27 Chouck isn't here; fix owner of LibMocha.
git-svn-id: svn://10.0.0.236/trunk@9456 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 15:03:41 +00:00
brendan%netscape.com
f85feaca03 - Use consistent spelling in the API: "Callback" not "CallBack" -- it's a one
word neologism, not two words.
- Use consistent neighboring terseness ("error" rather than "err" in intercaps
  identifiers).
- Don't leave pointers in JSErrorReport to freed memory if bailing on OOM in
  jscntxt.c:js_ExpandErrorArguments.
- Hanging indentation, code fusion via continue, and other misc. cleanups.


git-svn-id: svn://10.0.0.236/trunk@9455 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 08:07:35 +00:00
kipp%netscape.com
3862b13620 Fixed linux compiling bugs
git-svn-id: svn://10.0.0.236/trunk@9454 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 04:16:22 +00:00
kipp%netscape.com
90c7bcd9de Updated to support latest API's
git-svn-id: svn://10.0.0.236/trunk@9453 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 00:21:40 +00:00
kipp%netscape.com
7c684bbb7c Create text using NS_NewTextNode API
git-svn-id: svn://10.0.0.236/trunk@9452 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 00:21:22 +00:00
kipp%netscape.com
e9662bac89 Use nsITextContent to initialize text node
git-svn-id: svn://10.0.0.236/trunk@9451 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 00:20:59 +00:00
kipp%netscape.com
7c2909f337 Cleaned up some whitespace
git-svn-id: svn://10.0.0.236/trunk@9450 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 00:19:49 +00:00
kipp%netscape.com
652229634f Expose NS_QuoteForHTML; remove duplicate frame ctor method decls
git-svn-id: svn://10.0.0.236/trunk@9449 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 00:19:14 +00:00
kipp%netscape.com
5b597d4bc6 Layer on top of nsGenericDOMData for full implementation
git-svn-id: svn://10.0.0.236/trunk@9448 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 00:18:43 +00:00
kipp%netscape.com
d7badd5a07 Added nsTextNode
git-svn-id: svn://10.0.0.236/trunk@9447 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 00:18:26 +00:00
kipp%netscape.com
43f634963b Nuked old content code
git-svn-id: svn://10.0.0.236/trunk@9446 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 00:18:12 +00:00
kipp%netscape.com
79472d0bf2 Removed some cruft; added NS_NewTextNode
git-svn-id: svn://10.0.0.236/trunk@9445 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 00:17:30 +00:00
kipp%netscape.com
50a0d285a1 new
git-svn-id: svn://10.0.0.236/trunk@9444 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 00:16:36 +00:00
troy%netscape.com
497b238e4c Reserved an IID
git-svn-id: svn://10.0.0.236/trunk@9443 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 00:15:45 +00:00
kipp%netscape.com
65ab40f772 Use allocated IID; update interface to be XPCOM'd and updated the methods
git-svn-id: svn://10.0.0.236/trunk@9442 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-06 00:15:10 +00:00
kipp%netscape.com
53c7e57bc9 Allocated iid for nsITextContent
git-svn-id: svn://10.0.0.236/trunk@9441 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 23:28:08 +00:00
kipp%netscape.com
f9c2c2bcd2 Added a macro and normalized auto-string initialization; reordered methods slightly just to annoy rickg :-)
git-svn-id: svn://10.0.0.236/trunk@9440 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 23:21:42 +00:00
cls%seawood.org
cb74fa0564 Removed libaddr and libmsg Makefile.ins
git-svn-id: svn://10.0.0.236/trunk@9439 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 23:17:44 +00:00
cls%seawood.org
41f723e37a Added missing / to command.c target.
git-svn-id: svn://10.0.0.236/trunk@9438 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 21:35:59 +00:00
michaelp%netscape.com
947b11003e added Scrolled() method. and support to call it. fixed NS_RELEASE(rc) bug in
pres shell as reported by pierre.


git-svn-id: svn://10.0.0.236/trunk@9437 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 20:57:57 +00:00
cls%seawood.org
6d2f9e6924 Added --enable-mail-compose option.
git-svn-id: svn://10.0.0.236/trunk@9436 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 20:40:43 +00:00
kipp%netscape.com
458facb9aa Stub out fe routine so that app will link
git-svn-id: svn://10.0.0.236/trunk@9435 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 20:13:34 +00:00
kipp%netscape.com
b884486032 Added missing files to the build
git-svn-id: svn://10.0.0.236/trunk@9434 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 20:11:17 +00:00
cls%seawood.org
36caf9e033 Updated.
git-svn-id: svn://10.0.0.236/trunk@9433 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 10:25:13 +00:00
pierre%netscape.com
ac435378f8 fixed other crashes in Comparators and ref counts
git-svn-id: svn://10.0.0.236/trunk@9432 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 10:25:04 +00:00
cls%seawood.org
420116584d Fixing autoconf breakage. LO_BuiltinStruct is the same for both the OJI and non-OJI cases.
git-svn-id: svn://10.0.0.236/trunk@9431 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 10:23:12 +00:00
pierre%netscape.com
66997919f6 fixed other crash
mTimers becomes a LArray, not a LArray*


git-svn-id: svn://10.0.0.236/trunk@9430 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 09:16:58 +00:00
pierre%netscape.com
f5e5c0a6f4 fixed crash in SpendTime()
git-svn-id: svn://10.0.0.236/trunk@9429 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 08:14:15 +00:00
pierre%netscape.com
367299ddef removed explicit creation of static object ImageManagerInit because "__initialize" was added to the project
git-svn-id: svn://10.0.0.236/trunk@9428 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 08:12:08 +00:00
briano%netscape.com
368872de77 If I had been paying attention, I'd have seen that the endian.h problem had already been fixed properly in mcom_db.h.
git-svn-id: svn://10.0.0.236/trunk@9427 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 08:11:59 +00:00
pierre%netscape.com
5e61c45025 removed temporary NET_PollSockets()
added OnPaint() call


git-svn-id: svn://10.0.0.236/trunk@9426 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 08:10:15 +00:00
pierre%netscape.com
0f30acf71c ported AddMouseListener() and AddEventListener() from Windows
git-svn-id: svn://10.0.0.236/trunk@9425 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 08:05:30 +00:00
pierre%netscape.com
4757c8e0e4 added __initialize and __terminate
git-svn-id: svn://10.0.0.236/trunk@9424 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 08:03:28 +00:00
ramiro%netscape.com
4049071b62 Comment out code that breaks MOZ_SELECTOR_BAR.
git-svn-id: svn://10.0.0.236/trunk@9423 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 06:44:15 +00:00
mcafee%netscape.com
eaecbf611e newPaneFromURL() can now pass paramters to HT_PaneFromURL.
git-svn-id: svn://10.0.0.236/trunk@9422 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 06:26:28 +00:00
mcafee%netscape.com
5946788239 SHACK: builtin struct gets passed in now, and we create an XFE_BuiltinTreeView instead of an XFE_NavCenterView.
git-svn-id: svn://10.0.0.236/trunk@9421 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 06:23:54 +00:00
mcafee%netscape.com
dacbe3641b added BuiltinTreeView.cpp
git-svn-id: svn://10.0.0.236/trunk@9420 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 06:21:30 +00:00
mcafee%netscape.com
91139eba00 Initial version
git-svn-id: svn://10.0.0.236/trunk@9419 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 06:21:00 +00:00
shaver%netscape.com
f5b78d1114 add refcounting to lo_TextAttr
git-svn-id: svn://10.0.0.236/trunk@9418 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 05:08:18 +00:00
shaver%netscape.com
91df78a054 Start of infrastructure for DOM-as-one-true-attr-source. Implement
DOM_NewElement.  Defend against NULL NodeOps.


git-svn-id: svn://10.0.0.236/trunk@9417 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 04:36:38 +00:00
shaver%netscape.com
454d0090b2 Remove DOMSetAttribute event guck (now tweak on mocha thread with layout
lock held, and signal reflow via event).  Check doc_id before trusting
LO_Element *s.  Make <TD>.bgcolor mutable.  Use DOM_NewElement instead
of inline hackery.  Defend against NULL returns from DOM_HTMLPopElementByType.
Make PR_ASSERTs XP_ASSERT for sake of brave users.


git-svn-id: svn://10.0.0.236/trunk@9416 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 04:34:13 +00:00
shaver%netscape.com
ab12796192 Add COW textattrs. Clean up lo_SetColor. Make <TD>.bgcolor mutable.
Remove some debugging cruft.


git-svn-id: svn://10.0.0.236/trunk@9415 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 04:29:56 +00:00
briano%netscape.com
1b0fc032b5 Added support for OpenBSD. Thanks to Marco Hyman (marc@snafu.org) for the actual work.
git-svn-id: svn://10.0.0.236/trunk@9414 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 04:22:25 +00:00
briano%netscape.com
a90118cc0c Support OpenBSD.
git-svn-id: svn://10.0.0.236/trunk@9413 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 04:16:15 +00:00
peterl%netscape.com
c728b9f01f changed the way map attributes into is connected
git-svn-id: svn://10.0.0.236/trunk@9412 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 04:00:06 +00:00
peterl%netscape.com
c053a8b481 tweaked output of percent values
git-svn-id: svn://10.0.0.236/trunk@9411 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 03:59:44 +00:00
peterl%netscape.com
0e107c4842 added content dir to includes
git-svn-id: svn://10.0.0.236/trunk@9410 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 03:58:05 +00:00
peterl%netscape.com
07befae09b added content directory to includes
git-svn-id: svn://10.0.0.236/trunk@9409 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 03:56:08 +00:00
peterl%netscape.com
ac4e93b3e5 added content to includes
git-svn-id: svn://10.0.0.236/trunk@9408 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 03:53:32 +00:00
peterl%netscape.com
dbbef7396e added base url
git-svn-id: svn://10.0.0.236/trunk@9407 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 03:52:40 +00:00
peterl%netscape.com
df4d7336c5 removed content from style mapping api
git-svn-id: svn://10.0.0.236/trunk@9406 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 03:52:30 +00:00
peterl%netscape.com
22106bc014 removed content from style map api
git-svn-id: svn://10.0.0.236/trunk@9405 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 03:51:56 +00:00
peterl%netscape.com
cbd43bb108 added base url accessor
git-svn-id: svn://10.0.0.236/trunk@9404 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 03:51:16 +00:00
sdagley%netscape.com
db0b7bc7d0 Merging fix from 4.0x branch. It's not clear that we really want to call GetURLForReferral when the passed referer is NIL since it breaks Smart Browsing keywords and does not actually appear to be needed to fix bug #90892 (which is why it was originally added). It's also a security hole since it causes the URL of the front window to be sent as the referer even if the user manually types in a URL.
git-svn-id: svn://10.0.0.236/trunk@9403 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 02:41:28 +00:00
cyeh%netscape.com
7160be3fdb dialup begone.
git-svn-id: svn://10.0.0.236/trunk@9402 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 02:04:12 +00:00
briano%netscape.com
55df62eda3 Potential fix for at least part of bug#522. Also turned off -taso for default Mozilla builds; only needed when building the commercial product.
git-svn-id: svn://10.0.0.236/trunk@9401 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 01:54:58 +00:00
briano%netscape.com
196d4e0d9a Added MOZ_EDITOR support, and did some minor cleanup.
git-svn-id: svn://10.0.0.236/trunk@9400 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 01:10:54 +00:00
waterson%netscape.com
d0a8fe62ca Fix build bustage due to change in header file from Boolean to PRBool
on XFE_Image::isImageLoaded().


git-svn-id: svn://10.0.0.236/trunk@9399 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 00:41:05 +00:00
bjorn%netscape.com
945b841d48 Added a missing read in ArenaAllocate.
git-svn-id: svn://10.0.0.236/trunk@9398 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 00:36:14 +00:00
bjorn%netscape.com
c4ef934afe Locks with almost no global locking. This will relieve contention.
git-svn-id: svn://10.0.0.236/trunk@9397 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 00:34:03 +00:00
cyeh%netscape.com
9d076721e8 this is stupid, since we now have http://www.mozilla.org/bonsai.html
to lookup changes in the tree


git-svn-id: svn://10.0.0.236/trunk@9396 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-05 00:32:35 +00:00
vidur%netscape.com
62fd8be727 Fixed bustage
git-svn-id: svn://10.0.0.236/trunk@9395 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 23:55:37 +00:00
nisheeth%netscape.com
ae9593fa10 Fix for bug #313278. Some links were unclickable. Added initialization code in lo_NewElement() for all the common fields shared across layout elements. Now, all the common fields should get sane values assigned to them at creation time.
git-svn-id: svn://10.0.0.236/trunk@9394 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 23:55:04 +00:00
ftang%netscape.com
78ab560f17 Change to the new selector so Japanese bookmark in UNIX (EUC) could be import correctly. This is a special case where bookmark file is different from the locale csid.
git-svn-id: svn://10.0.0.236/trunk@9393 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 23:25:00 +00:00
ftang%netscape.com
e486040111 add INTL_OldBookmarkCsidSel to support RDF bookmark import
git-svn-id: svn://10.0.0.236/trunk@9392 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 23:22:51 +00:00
cyeh%netscape.com
f7dea89c7a remove libaddr and libmsg from MozillaSourceCommon module
git-svn-id: svn://10.0.0.236/trunk@9391 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 23:17:25 +00:00
ftang%netscape.com
8b5a2b428e add new selector for oldbookmark
git-svn-id: svn://10.0.0.236/trunk@9390 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 23:12:45 +00:00
ftang%netscape.com
944cace649 add INTL_OldBookmarkCsidSel
git-svn-id: svn://10.0.0.236/trunk@9389 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 23:12:04 +00:00
ftang%netscape.com
08f111dd0c Add bookmark import UTF8 conversion code to convert the bookmark entry into UTF8. reviewed by rjc
git-svn-id: svn://10.0.0.236/trunk@9388 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 23:11:05 +00:00
vidur%netscape.com
c849307960 New content code adjusts to getting script objects through a factory interface
git-svn-id: svn://10.0.0.236/trunk@9387 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 23:03:16 +00:00
vidur%netscape.com
c846a918fc Tag enums
git-svn-id: svn://10.0.0.236/trunk@9386 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 23:02:06 +00:00
radha%netscape.com
04645c7a9d Implement singleclick activation for grid widget
git-svn-id: svn://10.0.0.236/trunk@9385 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 22:56:22 +00:00
radha%netscape.com
7847db06f7 Define new resource singleClickActivation for Grid widget
git-svn-id: svn://10.0.0.236/trunk@9384 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 22:55:08 +00:00
radha%netscape.com
52ff426581 Set singleClick activation in docked mode
git-svn-id: svn://10.0.0.236/trunk@9383 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 22:54:17 +00:00
radha%netscape.com
38a53f8448 Change the RDFImage Cache to a doubly linked list instead of a array.
Add a bunch of utility functions


git-svn-id: svn://10.0.0.236/trunk@9382 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 22:53:34 +00:00
radha%netscape.com
e3ce6f3f30 Make the close button close the RDFChromeTreeView
git-svn-id: svn://10.0.0.236/trunk@9381 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 22:52:19 +00:00
radha%netscape.com
d5701c2435 Change the declaration, usage and definition of isImageLoaded().
git-svn-id: svn://10.0.0.236/trunk@9380 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 22:51:29 +00:00
mcafee%netscape.com
779f5ad78d Updating -ncols, -config-dir -h comments.
git-svn-id: svn://10.0.0.236/trunk@9379 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 22:37:20 +00:00
akkana%netscape.com
306ba98b1e Fix some unresolved symbols for MOZ_MAIL_COMPOSE build.
Won't affect default build.


git-svn-id: svn://10.0.0.236/trunk@9378 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 22:30:14 +00:00
akkana%netscape.com
db39744a08 Oops, type in mailto lib name
git-svn-id: svn://10.0.0.236/trunk@9377 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 22:28:06 +00:00
cls%seawood.org
51e2313515 Applied patch by S.J.Moller <sjm@nwc.dk> to fix problem with OPTIMIZER not being overridden by ACCFLAGS.
git-svn-id: svn://10.0.0.236/trunk@9376 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 22:27:13 +00:00
cls%seawood.org
51d9b43023 Swapped order of checking for X libs as Xt requires SM as of X11R6.
git-svn-id: svn://10.0.0.236/trunk@9375 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 22:22:26 +00:00
akkana%netscape.com
97b5c848d9 mailto doesn't need mimevcrd.c after all
git-svn-id: svn://10.0.0.236/trunk@9374 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 22:07:25 +00:00
spider%netscape.com
3bf64af6a4 Adding support for depend and clobber
git-svn-id: svn://10.0.0.236/trunk@9373 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 22:02:21 +00:00
ramiro%netscape.com
f62051d76f Add lib/mailto.
git-svn-id: svn://10.0.0.236/trunk@9372 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 22:01:45 +00:00
dcone%netscape.com
de6c30b510 fixed clipping
git-svn-id: svn://10.0.0.236/trunk@9371 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 21:12:49 +00:00
dcone%netscape.com
4bf9e70937 added checkbutton
git-svn-id: svn://10.0.0.236/trunk@9370 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 21:12:12 +00:00
dcone%netscape.com
bf0f71d504 fixed text
git-svn-id: svn://10.0.0.236/trunk@9369 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 21:10:30 +00:00
dcone%netscape.com
23c40b5c0f new mac version
git-svn-id: svn://10.0.0.236/trunk@9368 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 21:10:13 +00:00
akkana%netscape.com
93682bb687 Fix build bustage -- missed an ifdef MOZ_MAIL
git-svn-id: svn://10.0.0.236/trunk@9367 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 20:26:35 +00:00
akkana%netscape.com
fa2f9817cc Mailto landing: include mime.c ifdef MOZ_MAIL_COMPOSE.
git-svn-id: svn://10.0.0.236/trunk@9366 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 19:27:45 +00:00
terry%netscape.com
f9cd004867 Encourage people to use the secure server.
git-svn-id: svn://10.0.0.236/trunk@9365 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 19:23:40 +00:00
akkana%netscape.com
1d8ede9301 Mailto landing (ifdef MOZ_MAIL_COMPOSE).
Also, add a FULL_STATIC define to the Makefile to allow the option
of compiling a truly static binary (e.g. to test for unresolveds).


git-svn-id: svn://10.0.0.236/trunk@9364 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 19:21:43 +00:00
akkana%netscape.com
a5b7868cf3 Mailto landing. ifdef MOZ_MAIL_COMPOSE, build lib/mailto.
git-svn-id: svn://10.0.0.236/trunk@9363 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 19:08:24 +00:00
akkana%netscape.com
0b1647e004 Mailto landing (ifdef MOZ_MAIL_COMPOSE). Aproved by mwelch.
Turns off MOZILLA_30, which Jamie says is probably a bad idea;
this will be reworked in the future.


git-svn-id: svn://10.0.0.236/trunk@9362 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 19:07:08 +00:00
akkana%netscape.com
3e79243700 Mailto landing.
The mailto library is the mail compose code ripped out of the old
Messenger libmsg library, then cleaned up somewhat
(it could still use more cleaning).
This library should only be built ifdef MOZ_MAIL_COMPOSE.


git-svn-id: svn://10.0.0.236/trunk@9361 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 19:04:30 +00:00
akkana%netscape.com
498b0dfae9 Mailto landing (ifdef MOZ_MAIL_COMPOSE). Approved by ftang.
git-svn-id: svn://10.0.0.236/trunk@9360 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 19:01:58 +00:00
akkana%netscape.com
67c07c175d Mailto landing (ifdef MOZ_MAIL_COMPOSE). Approved by valeski.
git-svn-id: svn://10.0.0.236/trunk@9359 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 18:59:53 +00:00
despotdaemon%netscape.com
93854c4c6b Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@9358 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 18:53:16 +00:00
akkana%netscape.com
b6a185a70e Mailto landing: grok MOZ_MAIL_COMPOSE. Approved by Briano.
git-svn-id: svn://10.0.0.236/trunk@9357 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 18:53:02 +00:00
valeski%netscape.com
0485308878 String insertion was broken if you wanted to insert at the begining (index '0') of a string.
git-svn-id: svn://10.0.0.236/trunk@9356 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 18:49:50 +00:00
shaver%netscape.com
952f75d830 fix ifdef breakage
git-svn-id: svn://10.0.0.236/trunk@9355 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 18:48:16 +00:00
terry%netscape.com
8f8f7701f0 Added "Viewer App" component.
git-svn-id: svn://10.0.0.236/trunk@9354 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 18:26:09 +00:00
dcone%netscape.com
67b43e8565 updated kipps changes
git-svn-id: svn://10.0.0.236/trunk@9353 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 18:01:46 +00:00
dcone%netscape.com
e3b01c7595 fixed to XP again
git-svn-id: svn://10.0.0.236/trunk@9352 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 18:01:00 +00:00
spider%netscape.com
e85e9626d1 adding clobber and depend support for julian
git-svn-id: svn://10.0.0.236/trunk@9351 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 18:00:47 +00:00
dcone%netscape.com
586c0aca07 updated to kipps changes
git-svn-id: svn://10.0.0.236/trunk@9350 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 18:00:21 +00:00
dcone%netscape.com
5cfb45537b updated for the latest kipp changes
git-svn-id: svn://10.0.0.236/trunk@9349 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 17:59:21 +00:00
dcone%netscape.com
245cbae5b2 Fixed mac build for the Kipp changes - Raptor only
git-svn-id: svn://10.0.0.236/trunk@9348 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 17:58:28 +00:00
dcone%netscape.com
f14fd1ee00 fixed the offscreen buffer mac things
git-svn-id: svn://10.0.0.236/trunk@9347 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 17:57:36 +00:00
dcone%netscape.com
40b4bf37e7 Mac Implementation
git-svn-id: svn://10.0.0.236/trunk@9346 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 17:57:04 +00:00
spider%netscape.com
3dc5150cef Adding depend and clobber support
git-svn-id: svn://10.0.0.236/trunk@9345 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 17:34:31 +00:00
spider%netscape.com
52061f624e adding clobber and depend support
git-svn-id: svn://10.0.0.236/trunk@9344 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 17:33:41 +00:00
spider%netscape.com
0ac14e35b2 Adding in depend and clobber support
git-svn-id: svn://10.0.0.236/trunk@9343 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 17:32:19 +00:00
cyeh%netscape.com
059f0b427f changes to CalendarClient module for spider
git-svn-id: svn://10.0.0.236/trunk@9342 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 17:30:56 +00:00
rickg%netscape.com
3615d64e55 new string improvements
git-svn-id: svn://10.0.0.236/trunk@9341 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 17:26:37 +00:00
despotdaemon%netscape.com
ce6c987c8c Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9340 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 17:25:45 +00:00
spider%netscape.com
372b246ae4 remove core from garbage
git-svn-id: svn://10.0.0.236/trunk@9339 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 17:14:31 +00:00
kipp%netscape.com
d7cef5dc99 Fixed bug in handling of textarea that caused them to terminate documents
git-svn-id: svn://10.0.0.236/trunk@9338 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 16:33:40 +00:00
kipp%netscape.com
47fb9492d2 new
git-svn-id: svn://10.0.0.236/trunk@9337 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 15:57:54 +00:00
rods%netscape.com
807f7d7725 Fixed up Find to include Replace, replace will be moved to it's
own place later.


git-svn-id: svn://10.0.0.236/trunk@9336 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 15:41:20 +00:00
terry%netscape.com
c1b6656939 Give a better message, in the case that someone changes a bug that had
an invalid component or version field.  (Like, for example, all the
new NGLayout bugs.)


git-svn-id: svn://10.0.0.236/trunk@9335 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 14:30:04 +00:00
ramiro%netscape.com
3a33b18b34 context_funcs.cpp does not build on BSD/OS because no definition for
STATFS is found. This trivial patch adds it back. It sure looks like a
pasto.
Thanks to Bert Driehuis <driehuis@playbeing.org>.


git-svn-id: svn://10.0.0.236/trunk@9334 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 13:44:34 +00:00
rods%netscape.com
70889d7b15 check for mLines being being null in FrameDeletedReflow
git-svn-id: svn://10.0.0.236/trunk@9333 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 13:33:22 +00:00
shaver%netscape.com
5412c22c77 fix ancient #if DOM breakage
git-svn-id: svn://10.0.0.236/trunk@9332 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 11:51:24 +00:00
cls%seawood.org
241c21b75a Changed checks for LINUX to linux as linux is defined by the compiler and fixes autoconf breakage under libc5.
git-svn-id: svn://10.0.0.236/trunk@9331 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 10:37:27 +00:00
cls%seawood.org
6ea484d1f5 Added USE_AUTOCONF to DEFS and made building editor disabled by default.
git-svn-id: svn://10.0.0.236/trunk@9330 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 08:50:18 +00:00
despotdaemon%netscape.com
413fab33e5 Pseudo-automatic update of changes made by brendan@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9329 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 08:49:47 +00:00
briano%netscape.com
30b0eff13f Added -DHAVE_SNPRINTF, as discussed with wtc.
git-svn-id: svn://10.0.0.236/trunk@9328 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 07:59:55 +00:00
cls%seawood.org
a2db8495bc Replaced JAVA_OR_OJI surrounding ANTHRAX with USE_AUTOCONF until the proper generic combo can be decided upon.
git-svn-id: svn://10.0.0.236/trunk@9327 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 07:36:37 +00:00
cls%seawood.org
48f6f9d56b Surrounded ANTHRAX with ifdef JAVA_OR_OJI to fix non-OJI case.
git-svn-id: svn://10.0.0.236/trunk@9325 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 05:15:42 +00:00
scc%netscape.com
3fbe1524e4 moved FCInitialize() to post pref-init for FULL CIRCLE stuff
git-svn-id: svn://10.0.0.236/trunk@9324 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 03:48:27 +00:00
ftang%netscape.com
018bd46884 add INTL_ConvertLineWithoutAutoDetect and INTL_GetCharSetID to the list
git-svn-id: svn://10.0.0.236/trunk@9323 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 03:47:20 +00:00
ftang%netscape.com
6d2ba575bd add INTL_GetCharSetID from 4.5 tree
git-svn-id: svn://10.0.0.236/trunk@9322 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 03:46:31 +00:00
ftang%netscape.com
bbcb9cc63c add FE_GetCharSetID from 4.5 tree
git-svn-id: svn://10.0.0.236/trunk@9321 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 03:45:51 +00:00
ftang%netscape.com
e9214b000b Add FE_GetCharSetID from 4.5 tree
git-svn-id: svn://10.0.0.236/trunk@9320 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 03:44:52 +00:00
ftang%netscape.com
b88451df35 Add INTL_GetCharSetID from 4.5 tree
git-svn-id: svn://10.0.0.236/trunk@9319 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 03:44:23 +00:00
wtc%netscape.com
38ce488bd0 On Unix, include <sys/types.h> for 'uint'.
git-svn-id: svn://10.0.0.236/trunk@9318 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 03:43:07 +00:00
morse%netscape.com
35c87b9bc6 improve wording on trust label info
git-svn-id: svn://10.0.0.236/trunk@9317 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 03:28:26 +00:00
mcafee%netscape.com
4f7c26fb59 Getting rid of the MOZILLA_NO_FULLCIRCLE hack.
git-svn-id: svn://10.0.0.236/trunk@9316 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 03:01:54 +00:00
briano%netscape.com
2c188de044 Added -DHAVE_SNPRINTF, as discussed with wtc.
git-svn-id: svn://10.0.0.236/trunk@9315 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 02:53:32 +00:00
rickg%netscape.com
227c173869 a few small bug fixes for DTD
git-svn-id: svn://10.0.0.236/trunk@9314 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 02:52:47 +00:00
shaver%netscape.com
34ac502065 added missing #if DOM (bad!)
git-svn-id: svn://10.0.0.236/trunk@9313 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 01:16:11 +00:00
joki%netscape.com
86035599fe Fix makefile
git-svn-id: svn://10.0.0.236/trunk@9312 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 01:09:33 +00:00
kipp%netscape.com
745aee0c4c Use new wbr element
git-svn-id: svn://10.0.0.236/trunk@9311 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 01:03:20 +00:00
kipp%netscape.com
e39b3b0498 Removed old content code
git-svn-id: svn://10.0.0.236/trunk@9310 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 01:03:05 +00:00
kipp%netscape.com
b4b6440297 Added wbr
git-svn-id: svn://10.0.0.236/trunk@9309 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 01:02:54 +00:00
kipp%netscape.com
72917f8f44 Added WBR
git-svn-id: svn://10.0.0.236/trunk@9308 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 01:02:30 +00:00
kipp%netscape.com
cf434cfd08 new
git-svn-id: svn://10.0.0.236/trunk@9307 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 01:02:20 +00:00
kipp%netscape.com
507cb508d7 Create a spacer frame for spacer parts
git-svn-id: svn://10.0.0.236/trunk@9306 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:55:47 +00:00
kipp%netscape.com
bc5eaf1b20 Removed some cruft and promoted a few frame creation routines
git-svn-id: svn://10.0.0.236/trunk@9305 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:55:20 +00:00
kipp%netscape.com
0398940b8e Removed obsoelte content code
git-svn-id: svn://10.0.0.236/trunk@9304 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:54:57 +00:00
kipp%netscape.com
b1bd236e79 Added new atoms
git-svn-id: svn://10.0.0.236/trunk@9303 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:54:45 +00:00
kipp%netscape.com
f22d94b95a Create spacer element instead of obsolete spacer part
git-svn-id: svn://10.0.0.236/trunk@9302 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:52:49 +00:00
kipp%netscape.com
ce6f7d8d9f New file
git-svn-id: svn://10.0.0.236/trunk@9301 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:52:34 +00:00
norris%netscape.com
e41858a470 Previous checkin was mistaken; back it out.
git-svn-id: svn://10.0.0.236/trunk@9300 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:47:22 +00:00
joki%netscape.com
720db7820e Add New Window menu item, added window.close()
git-svn-id: svn://10.0.0.236/trunk@9299 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:47:15 +00:00
clu%netscape.com
58d40d97e6 tweaks to the encoding dialog box so the xp strings would fit.
git-svn-id: svn://10.0.0.236/trunk@9298 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:46:13 +00:00
joki%netscape.com
560e1d1ec1 Adding window.close(), fixing window.opener, window.name
git-svn-id: svn://10.0.0.236/trunk@9297 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:46:06 +00:00
norris%netscape.com
bc2d3f5307 Add support for ECMA switch statements. These are like LISP cond in that they
evaluate the case label each time.
Still to do is to optimize so that TABLESWITCH and LOOKUPSWITCH are created
when possible.


git-svn-id: svn://10.0.0.236/trunk@9296 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:45:21 +00:00
terry%netscape.com
6e086b553a Amusil now owns plugins.
git-svn-id: svn://10.0.0.236/trunk@9295 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:45:20 +00:00
spider%netscape.com
47c94bbe3c Removing no longer used mozilla/shell
git-svn-id: svn://10.0.0.236/trunk@9294 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:39:05 +00:00
pierre%netscape.com
ba1fadc3f7 fix a crash in the destructor (don't delete mFrontBuffer)
git-svn-id: svn://10.0.0.236/trunk@9293 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:33:49 +00:00
thom%netscape.com
9668f3bd42 Quick hack to get timers working (added call to tickle LPeriodical class)
git-svn-id: svn://10.0.0.236/trunk@9292 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:28:35 +00:00
clu%netscape.com
37bfaf7023 got rid of StUseCharFormattingCache for better typing performance. Also added an EDT_SetEncoding call in OBeyCommand to get the encoding dialog box up.
git-svn-id: svn://10.0.0.236/trunk@9291 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:28:05 +00:00
thom%netscape.com
a1fd716f3b Fixed crash in timer (AddItem (&something) not AddIten (something))
git-svn-id: svn://10.0.0.236/trunk@9290 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:23:30 +00:00
kipp%netscape.com
ca034ab855 Use new content class instead of the old obsolete one
git-svn-id: svn://10.0.0.236/trunk@9289 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:20:14 +00:00
kipp%netscape.com
df0413f361 Fold in some code from nsHTMLImage.cpp
git-svn-id: svn://10.0.0.236/trunk@9288 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:19:48 +00:00
kipp%netscape.com
859eb894bc Create image frames for images
git-svn-id: svn://10.0.0.236/trunk@9287 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:19:32 +00:00
kipp%netscape.com
3b3e4fc761 obsolete
git-svn-id: svn://10.0.0.236/trunk@9286 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:19:02 +00:00
kipp%netscape.com
3dd1960b2a Added decl for NS_NewImageFrame
git-svn-id: svn://10.0.0.236/trunk@9285 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:18:53 +00:00
kipp%netscape.com
9069de4eea Stop building nsBOdyPart since it's gone
git-svn-id: svn://10.0.0.236/trunk@9284 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:18:30 +00:00
kipp%netscape.com
4d72d837be Removed image content code
git-svn-id: svn://10.0.0.236/trunk@9283 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:18:18 +00:00
despotdaemon%netscape.com
70d9be09cc Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9282 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:13:54 +00:00
terry%netscape.com
8f441bb341 Detecting the "default" partition wasn't working right.
git-svn-id: svn://10.0.0.236/trunk@9281 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:13:17 +00:00
despotdaemon%netscape.com
f59b95da76 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9280 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:12:04 +00:00
shaver%netscape.com
35c4e01d18 Enable setting of table cell attributes (bgcolor -- still broken), and
expose lo_SetColor to other code (libmocha's DOM stuff, specifically).


git-svn-id: svn://10.0.0.236/trunk@9279 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:08:08 +00:00
shaver%netscape.com
18f85f8dd0 Wired up DOM-node destruction after firing onUnload.
Added event guck for altering attributes (will be rewritten to do
poke-and-schedule).
Tentatively blocked out LM_ClearContextStream, which looks like dead code.


git-svn-id: svn://10.0.0.236/trunk@9278 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-04 00:05:53 +00:00
despotdaemon%netscape.com
a693e71f28 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9277 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 23:58:46 +00:00
terry%netscape.com
c9939d1fd3 Make the generated regexps not too general!
git-svn-id: svn://10.0.0.236/trunk@9276 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 23:57:21 +00:00
shaver%netscape.com
b36957e25d Implemented DOM_NewText.
Added stuff for node destruction, including making node_finalize module-public
for use by other node types.
Added new methods to Element (setAttribute + stubs).


git-svn-id: svn://10.0.0.236/trunk@9275 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 23:51:58 +00:00
despotdaemon%netscape.com
9e8f848074 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@9274 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 23:50:30 +00:00
despotdaemon%netscape.com
5516bd4ec8 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@9273 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 23:47:49 +00:00
despotdaemon%netscape.com
2d724b771e Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@9272 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 23:45:02 +00:00
despotdaemon%netscape.com
5f5d8230ea Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@9271 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 23:01:06 +00:00
despotdaemon%netscape.com
642ad8797c Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@9270 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 23:00:19 +00:00
rogerl%netscape.com
9f90098dfb Removed redundant #undef
git-svn-id: svn://10.0.0.236/trunk@9269 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 22:50:55 +00:00
terry%netscape.com
95101e1958 Added in NGLayout stuff. (gotta come up with a better way of tweaking
these tables!)


git-svn-id: svn://10.0.0.236/trunk@9268 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 22:50:31 +00:00
kipp%netscape.com
a20cd83e5d new
git-svn-id: svn://10.0.0.236/trunk@9267 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 22:23:41 +00:00
kipp%netscape.com
314b8f7958 Make more objects invisible
git-svn-id: svn://10.0.0.236/trunk@9266 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 22:23:22 +00:00
kipp%netscape.com
93c3e23672 Use new content objects wherever possible
git-svn-id: svn://10.0.0.236/trunk@9265 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 22:23:09 +00:00
kipp%netscape.com
76b3e558b9 tweaked element ctor methods
git-svn-id: svn://10.0.0.236/trunk@9264 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 22:22:34 +00:00
kipp%netscape.com
ab78e4bef0 Removed attribute handling since containers don't get used this way anymore
git-svn-id: svn://10.0.0.236/trunk@9263 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 22:22:16 +00:00
kipp%netscape.com
f3e136fff6 disabled most of the body part code
git-svn-id: svn://10.0.0.236/trunk@9262 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 22:21:57 +00:00
kipp%netscape.com
18a14d6bf5 Implement StringToAttribute/AttributeToString/MapAttributesInto; fix up name of embedded object
git-svn-id: svn://10.0.0.236/trunk@9261 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 22:21:32 +00:00
cyeh%netscape.com
8be3e5f2e2 final warning text
git-svn-id: svn://10.0.0.236/trunk@9260 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:47:33 +00:00
slamm%netscape.com
71379d00bf Add a form widget so that subclasses can add their own widgets.
git-svn-id: svn://10.0.0.236/trunk@9259 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:44:02 +00:00
slamm%netscape.com
33f1662279 Add ht_event debugging
git-svn-id: svn://10.0.0.236/trunk@9258 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:43:55 +00:00
akkana%netscape.com
5d8f30356a New encoding dialog API
git-svn-id: svn://10.0.0.236/trunk@9257 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:43:52 +00:00
slamm%netscape.com
60b166ac4d Let RDFBase handle deleting the pane.
git-svn-id: svn://10.0.0.236/trunk@9256 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:43:47 +00:00
slamm%netscape.com
f01c807873 Change RDFView to RDFChromeTreeView (per mcafee's request). RDFChromeTreeView inherits from RDFTreeView (adding chrome around it).
git-svn-id: svn://10.0.0.236/trunk@9255 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:43:38 +00:00
slamm%netscape.com
24d3f55a34 Make debugging fancier. Cleanup the view and destroy the
pane properly.


git-svn-id: svn://10.0.0.236/trunk@9254 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:43:29 +00:00
slamm%netscape.com
ade96f441e Replaced by RDFToolbar.
git-svn-id: svn://10.0.0.236/trunk@9253 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:43:27 +00:00
slamm%netscape.com
df22a923c4 With no selector, just pick the first view that comes
along (this will later be replace by something more useful).  Clean up
debugging. change references of RDFView to the new name, RDFChromeTreeView


git-svn-id: svn://10.0.0.236/trunk@9252 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:43:21 +00:00
slamm%netscape.com
a0b25e82f5 Replaced by RDFMenuToolbarBase.
git-svn-id: svn://10.0.0.236/trunk@9251 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:43:13 +00:00
akkana%netscape.com
953feea5d3 Fix IRIX build problem
git-svn-id: svn://10.0.0.236/trunk@9250 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:40:20 +00:00
spider%netscape.com
4785e69585 minor fix to pull calendar instead of trex
git-svn-id: svn://10.0.0.236/trunk@9249 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:37:43 +00:00
clu%netscape.com
4bfcd968a7 implmented macfe of the encoding dialog
git-svn-id: svn://10.0.0.236/trunk@9248 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:36:11 +00:00
clu%netscape.com
fd4b78e95d implement macfe of the encoding dialog
git-svn-id: svn://10.0.0.236/trunk@9247 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:34:40 +00:00
akkana%netscape.com
86867b76dd UI changes to FE_EncodingDialog to coordinate with backend and other FEs
git-svn-id: svn://10.0.0.236/trunk@9246 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:33:46 +00:00
cmanske%netscape.com
3584b2144e Added dialog for changing encoding in Composer
git-svn-id: svn://10.0.0.236/trunk@9245 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:33:18 +00:00
cmanske%netscape.com
7165b8b1c8 More work on I18N features in Composer
git-svn-id: svn://10.0.0.236/trunk@9244 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:33:05 +00:00
cmanske%netscape.com
1cdde3c8d0 Changed spelling of const and removed string not used for Change Encoding dialog
git-svn-id: svn://10.0.0.236/trunk@9243 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:33:02 +00:00
thom%netscape.com
d0bc5df348 Added comment to clarify an implementation issue (what conditions did nsITimer callback functions expect).
git-svn-id: svn://10.0.0.236/trunk@9242 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:16:41 +00:00
amusil%netscape.com
802e907ae5 MacFE code for Anthrax along with minor XP tweaks
git-svn-id: svn://10.0.0.236/trunk@9241 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:08:25 +00:00
racham%netscape.com
31019c1652 Small change in error handling
git-svn-id: svn://10.0.0.236/trunk@9240 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:03:21 +00:00
pnunn%netscape.com
a21756dedc fix for #79167. ncols. reviewed by mcafee.
Note: doc message should be changed to reflect
that ncols is added to number of system colors
for total number of colors allowed.


git-svn-id: svn://10.0.0.236/trunk@9239 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:02:31 +00:00
racham%netscape.com
976d4ef267 Changes to reflect the transition from Windows to Netscape Registry
git-svn-id: svn://10.0.0.236/trunk@9238 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 21:00:52 +00:00
cyeh%netscape.com
05b2cbb310 remove JSJ.mcp from all builds3
git-svn-id: svn://10.0.0.236/trunk@9237 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 20:54:33 +00:00
ftang%netscape.com
9a8a2fb72b merge one of 4.06 fix. bug 123957 and 311153. approved by mlm
git-svn-id: svn://10.0.0.236/trunk@9236 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 20:53:44 +00:00
cyeh%netscape.com
b355f7ea0e remove JSJDebug.o and JSJ.o files from all targets. also turn modification date caching off to fix dependencies not working
git-svn-id: svn://10.0.0.236/trunk@9235 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 20:53:27 +00:00
ftang%netscape.com
791b3309c8 Merge the fix 311741 from 4.5 tree.
git-svn-id: svn://10.0.0.236/trunk@9234 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 20:47:32 +00:00
rogerl%netscape.com
5bc4554a6e New errorNumber handling.
Fixed bug #317398, for loop without condition wasn't decompiling the body
correctly since the first statement in that body was getting eaten by
mistake when trying to consume the condition expression.


git-svn-id: svn://10.0.0.236/trunk@9233 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 20:44:55 +00:00
rogerl%netscape.com
1400e8fb8b New errorNumber handling
git-svn-id: svn://10.0.0.236/trunk@9232 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 20:35:41 +00:00
rogerl%netscape.com
f039948f09 New break-out of error message text from core engine
git-svn-id: svn://10.0.0.236/trunk@9231 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 20:33:32 +00:00
rogerl%netscape.com
112983b87d New errorNumber handling
git-svn-id: svn://10.0.0.236/trunk@9230 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 20:29:37 +00:00
spider%netscape.com
e46aa34185 fixes for new source tree
git-svn-id: svn://10.0.0.236/trunk@9229 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 20:20:45 +00:00
spider%netscape.com
211f718d25 Misc build fixes for migration to free source
git-svn-id: svn://10.0.0.236/trunk@9228 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 20:20:06 +00:00
spider%netscape.com
0d77d2ea11 Changes relative depth to gconfig
git-svn-id: svn://10.0.0.236/trunk@9227 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 20:14:26 +00:00
rods%netscape.com
b52be5a0e7 Fixed Find (still need to do more clean up)
git-svn-id: svn://10.0.0.236/trunk@9226 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 20:09:33 +00:00
spider%netscape.com
1d4b7fca78 First pass at XPFC migration to Free Source repo
git-svn-id: svn://10.0.0.236/trunk@9225 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 19:38:52 +00:00
spider%netscape.com
da31012521 First pass at XPFC migration to Free Source repo
git-svn-id: svn://10.0.0.236/trunk@9224 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 19:32:45 +00:00
despotdaemon%netscape.com
c343611bf2 Pseudo-automatic update of changes made by cata@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9223 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 19:03:22 +00:00
spider%netscape.com
e0f3d96f9a First pass at XPFC migration to Free Source repo
git-svn-id: svn://10.0.0.236/trunk@9222 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 18:59:33 +00:00
spider%netscape.com
bb3b7c2ff1 First pass at XPFC migration to Free Source repo
git-svn-id: svn://10.0.0.236/trunk@9221 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 18:47:47 +00:00
spider%netscape.com
bed2259ede First pass migrating Free Source Calendar client to mozilla repo
git-svn-id: svn://10.0.0.236/trunk@9220 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 18:23:17 +00:00
spider%netscape.com
8208dea9e2 First pass migrating Free Source Calendar client to mozilla repo
git-svn-id: svn://10.0.0.236/trunk@9219 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 18:10:14 +00:00
spider%netscape.com
94729cf355 First pass migrating Free Source Calendar client to mozilla repo
git-svn-id: svn://10.0.0.236/trunk@9218 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 18:03:30 +00:00
mcafee%netscape.com
795aee180d More solaris breakage, nsImageUnix::BuildImage() needs to return status.
git-svn-id: svn://10.0.0.236/trunk@9217 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 10:51:54 +00:00
mcafee%netscape.com
083c21c7c6 CreateSeparator() needs to return a widget, how about the one this function creates.
git-svn-id: svn://10.0.0.236/trunk@9216 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 10:48:13 +00:00
mcafee%netscape.com
c3aa33f7e2 nsToolkitErrorhandler() needs to return a value, this breaks Solaris.
git-svn-id: svn://10.0.0.236/trunk@9215 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 10:32:55 +00:00
fur%netscape.com
ae6d9a5466 Backing out check-in of these files that are causing pain with Mozilla builds,
at least until we can properly control search paths on the Mac.


git-svn-id: svn://10.0.0.236/trunk@9214 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 07:28:30 +00:00
ramiro%netscape.com
00780a8a6f Make sure MOZ_SELECTOR_BAR continues to work.
git-svn-id: svn://10.0.0.236/trunk@9213 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 06:55:12 +00:00
ramiro%netscape.com
097307a8f0 Switch the window and bookmarks menus.
git-svn-id: svn://10.0.0.236/trunk@9212 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 06:51:14 +00:00
pierre%netscape.com
5d49bab0b1 fix bug in FE_FileType()
git-svn-id: svn://10.0.0.236/trunk@9211 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 06:21:26 +00:00
pierre%netscape.com
6514a7cdee XP_FileOpen() now uses MSL like the other functions from xp_file.h, not NSPR
git-svn-id: svn://10.0.0.236/trunk@9210 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 06:21:06 +00:00
pierre%netscape.com
69cd9ff712 temporarily call NET_PollSockets() before WNE, waiting for the timers to be implemented
git-svn-id: svn://10.0.0.236/trunk@9209 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 06:20:32 +00:00
pierre%netscape.com
4682b73269 temporarily disable the scrollbars on Mac, waiting for the widgets to be implemented
git-svn-id: svn://10.0.0.236/trunk@9208 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 06:20:12 +00:00
pierre%netscape.com
62f9808ce8 set resourceBase to the magic string "usr/local/netscape/bin/"
git-svn-id: svn://10.0.0.236/trunk@9207 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 06:19:13 +00:00
buster%netscape.com
acbcec3004 fixed minColSpan to always be at least one. This helps support empty rows,
among other problems.


git-svn-id: svn://10.0.0.236/trunk@9206 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 06:15:18 +00:00
kipp%netscape.com
417b9730b3 Fixed body tags for bug reported by dbaron@netaxs.com
git-svn-id: svn://10.0.0.236/trunk@9205 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 05:07:16 +00:00
cyeh%netscape.com
9a3269d91b re-arranged search path so that :dist is searched before the local
project folder.


git-svn-id: svn://10.0.0.236/trunk@9204 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 05:01:40 +00:00
fur%netscape.com
5b2c2e76fb Added Mac-specific defines.
git-svn-id: svn://10.0.0.236/trunk@9203 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 03:52:13 +00:00
fur%netscape.com
2d3f594b08 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@9202 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 03:51:38 +00:00
fur%netscape.com
eed8c3afc6 Ignore generated files
git-svn-id: svn://10.0.0.236/trunk@9201 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 03:47:13 +00:00
fur%netscape.com
512995a690 Checked in wrong version of project by mistake. This is the right one.
git-svn-id: svn://10.0.0.236/trunk@9200 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 03:46:25 +00:00
fur%netscape.com
b983a196aa Added comments and declaration of PR_Abort().
git-svn-id: svn://10.0.0.236/trunk@9198 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 03:40:50 +00:00
thom%netscape.com
3717641c6c File names change HTMLFoo changed to HTMLFooElement
git-svn-id: svn://10.0.0.236/trunk@9197 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 02:54:46 +00:00
thom%netscape.com
39b855dfd3 Copy and paste error (SomethingClassWin needed to change to somethingClassMac)
git-svn-id: svn://10.0.0.236/trunk@9196 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 02:54:11 +00:00
thom%netscape.com
77361183d1 Fixed an XP change that wasn't XP (_MAX_PATH is already defined on the mac)
git-svn-id: svn://10.0.0.236/trunk@9195 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 02:53:25 +00:00
joki%netscape.com
d2023dac41 Fix typo
git-svn-id: svn://10.0.0.236/trunk@9194 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:58:54 +00:00
cmanske%netscape.com
24789aba9f Removed unused string
git-svn-id: svn://10.0.0.236/trunk@9193 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:32:09 +00:00
joki%netscape.com
9628820de0 This useragent code is wrong anyway but change it to at least send a backwards compat string.
git-svn-id: svn://10.0.0.236/trunk@9192 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:24:59 +00:00
joki%netscape.com
728fea362d Moving script event listener registration back to SetAttributes out of SetDocument
git-svn-id: svn://10.0.0.236/trunk@9191 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:23:59 +00:00
joki%netscape.com
f0699eac56 Standardize order during content creation to be setDoc, addAttr, appendChild
git-svn-id: svn://10.0.0.236/trunk@9190 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:23:12 +00:00
joki%netscape.com
6fe10b9054 Cleaning up unused code
git-svn-id: svn://10.0.0.236/trunk@9189 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:21:48 +00:00
joki%netscape.com
899ed70268 Adding event.cancelBubble
git-svn-id: svn://10.0.0.236/trunk@9188 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:20:29 +00:00
joki%netscape.com
968d59a50f Adding window.opener, window.focus, window.blur, event.cancelBubble, and modifying window.open
git-svn-id: svn://10.0.0.236/trunk@9187 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:19:58 +00:00
cmanske%netscape.com
4853d699d7 Added new strings for Composer I18N work
git-svn-id: svn://10.0.0.236/trunk@9186 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:18:48 +00:00
karnaze%netscape.com
b413a9ba42 frameset/frame border resizing via mouse; NORESIZE, BORDERCOLOR
git-svn-id: svn://10.0.0.236/trunk@9185 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:16:27 +00:00
cmanske%netscape.com
de39922342 Fixed problems with PA_Block and busted file loading into Composer
git-svn-id: svn://10.0.0.236/trunk@9184 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:10:13 +00:00
cyeh%netscape.com
443c21dc15 change version number to reflect ALPHA stage
git-svn-id: svn://10.0.0.236/trunk@9183 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:08:47 +00:00
kipp%netscape.com
e29bad58eb Added new files to the build
git-svn-id: svn://10.0.0.236/trunk@9182 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:04:04 +00:00
kipp%netscape.com
c39cd1d7a2 new
git-svn-id: svn://10.0.0.236/trunk@9181 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:03:33 +00:00
danm%netscape.com
3c22121f48 about: wasn't working. is now.
git-svn-id: svn://10.0.0.236/trunk@9180 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:02:27 +00:00
cyeh%netscape.com
7f08256f2f added changed warning text for absolute timebombs. WARNING: ugly short lived hack.
git-svn-id: svn://10.0.0.236/trunk@9179 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 01:01:19 +00:00
terry%netscape.com
c8fc80fb77 Send mail to Christopher Seawood's machine, so that he can run his own Bonsai.
git-svn-id: svn://10.0.0.236/trunk@9178 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 00:57:23 +00:00
cyeh%netscape.com
1c891d2dd6 set timebombs to always warn. not a part of the build, so okay to check-in
git-svn-id: svn://10.0.0.236/trunk@9177 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 00:31:39 +00:00
kipp%netscape.com
8151679e48 Updated to build new source
git-svn-id: svn://10.0.0.236/trunk@9176 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 00:05:52 +00:00
kipp%netscape.com
a0783a4a5a Fixed SetAttribute where the leaf classes StringToAttribute wasn't being called
git-svn-id: svn://10.0.0.236/trunk@9175 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-03 00:03:58 +00:00
kipp%netscape.com
a75c02b0f1 Use new element ctors
git-svn-id: svn://10.0.0.236/trunk@9174 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 23:53:49 +00:00
kipp%netscape.com
af61e4b99f Spanked
git-svn-id: svn://10.0.0.236/trunk@9173 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 23:53:16 +00:00
kipp%netscape.com
9a826752e8 Renamed element creation routines
git-svn-id: svn://10.0.0.236/trunk@9172 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 23:52:38 +00:00
kipp%netscape.com
5a6d57899a Added new atoms
git-svn-id: svn://10.0.0.236/trunk@9171 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 23:52:24 +00:00
cyeh%netscape.com
6aa7d36e69 do the right thing and parameterize calls to SetTimeBomb
git-svn-id: svn://10.0.0.236/trunk@9170 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 23:31:57 +00:00
cyeh%netscape.com
1e31df0004 removing debugging statements, support timebombs of 0
git-svn-id: svn://10.0.0.236/trunk@9169 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 23:22:59 +00:00
cyeh%netscape.com
de4253f385 set timebombs to have 0 warning days by default, so that the user
is presented with the warning dialog on every launch


git-svn-id: svn://10.0.0.236/trunk@9168 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 23:20:17 +00:00
buster%netscape.com
68a912b36d put "quickdraw" in an #ifdef NS_MAC
git-svn-id: svn://10.0.0.236/trunk@9167 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 23:01:35 +00:00
despotdaemon%netscape.com
651e6b46d0 Pseudo-automatic update of changes made by mang@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9166 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 22:58:43 +00:00
buster%netscape.com
f5e2a5ce2f fixed a space leak for tables with rowspans
git-svn-id: svn://10.0.0.236/trunk@9165 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 22:55:37 +00:00
cyeh%netscape.com
179b369fde after speaking to scc, moving utility functions to Moz.pm where they belong.
git-svn-id: svn://10.0.0.236/trunk@9164 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 22:52:49 +00:00
fur%netscape.com
815859a7bb Project files to build standalone JS using mini-NSPR
git-svn-id: svn://10.0.0.236/trunk@9163 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 22:38:20 +00:00
fur%netscape.com
d9185a5a7e Minimal NSPR subset required to build JS engine
git-svn-id: svn://10.0.0.236/trunk@9161 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 22:37:14 +00:00
fur%netscape.com
d1c09d04ff ignore generated files
git-svn-id: svn://10.0.0.236/trunk@9160 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 22:36:05 +00:00
terry%netscape.com
87de70d7ac Oops; mention nomail and maillock. (Thanks to
Sam Ziegler <ziegler@mediaguaranty.com> for pointing out their lack.)


git-svn-id: svn://10.0.0.236/trunk@9159 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 22:31:50 +00:00
buster%netscape.com
08dcf151a6 nsBrowserWindow.cpp,h
added filter name param to DumpFrames
nsViewerApp.cpp
  added -o <outputDirPath> for specifying where output files should go
  added -filter <filterName> for specifying that <filterName> should be used in an automated fashion for
dumping frames for every URL visited.
nsWebCrawler.cpp,h
  added  support methods to handle output dirs, output file name building from URL, and filter names
  added DumpFrames to ::OnStopBinding when the right state is set (from -filter option)
  added dependancies on:  nsIPresShell.h, nsIPresContext.h, and nsIFrame.h


git-svn-id: svn://10.0.0.236/trunk@9158 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 22:07:42 +00:00
dcone%netscape.com
96ef1297af mac fixes
git-svn-id: svn://10.0.0.236/trunk@9157 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 22:01:18 +00:00
buster%netscape.com
9a7b48eb26 expanded nsIFrame::List to include nsIListFilter *aFilter param, by default nsnull.
aFilter is useful for determining if a frame should output itself during
a List().  In any event, the children of the frame are always processed.
added nsIListFilter, an interface for any object that wants to act like a filter for frame dumps
added   static NS_LAYOUT nsIListFilter * GetFilter(nsString *aFilterName);
currently, only TableListFilter implements nsIListFilter.
in response to List(...TableListFilter), the frame model is dumped in a way that is useful
for table layout regression testing.  Currently this is controlled by command line switches on the viewer app.


git-svn-id: svn://10.0.0.236/trunk@9156 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 21:59:54 +00:00
dcone%netscape.com
e8732ba214 add the macradiobutton
git-svn-id: svn://10.0.0.236/trunk@9155 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 21:54:14 +00:00
dcone%netscape.com
c985cb4b0e made it a mac version
git-svn-id: svn://10.0.0.236/trunk@9154 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 21:53:49 +00:00
buster%netscape.com
51b30845c1 fixed a space leak caused by incorrect ~nsCellMap iteration through
the new data structures.


git-svn-id: svn://10.0.0.236/trunk@9153 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 21:51:01 +00:00
dcone%netscape.com
c1f3f02117 enabled the nsRadiobutton factory
git-svn-id: svn://10.0.0.236/trunk@9152 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 21:48:05 +00:00
dcone%netscape.com
364b725c28 Mac implementation, first pass
git-svn-id: svn://10.0.0.236/trunk@9151 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 21:47:47 +00:00
dcone%netscape.com
3799ccc7b8 used my own mousemoved tracking for better speed
git-svn-id: svn://10.0.0.236/trunk@9150 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 21:47:25 +00:00
dcone%netscape.com
b1a6f655d7 added better tracking
git-svn-id: svn://10.0.0.236/trunk@9149 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 21:46:53 +00:00
spider%netscape.com
18df3a3df2 Fix for modifier key state on keyboard messages
git-svn-id: svn://10.0.0.236/trunk@9148 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 21:14:45 +00:00
despotdaemon%netscape.com
7df5e2ec9a Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@9147 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 20:03:42 +00:00
rods%netscape.com
8aafdcac95 Removed nsDeviceCOntextUnix header file and replaced it with nsIDeviceContext
git-svn-id: svn://10.0.0.236/trunk@9146 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 20:01:41 +00:00
mccabe%netscape.com
c918d7df77 Further exception work - added 'message' to the js_ErrorToException
call, and experimented with copying the original JSErrorReport into
private data.  Much of this to support a toString method for exception
objects.

It's not polished, but I wanted to get toString available quickly.


git-svn-id: svn://10.0.0.236/trunk@9145 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 20:01:34 +00:00
rods%netscape.com
53df78b377 Fixed a bug in ConvertPixel
git-svn-id: svn://10.0.0.236/trunk@9144 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:51:32 +00:00
rods%netscape.com
65e3dacb58 Implemented ConvertPixel
git-svn-id: svn://10.0.0.236/trunk@9143 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:33:01 +00:00
rods%netscape.com
9db59e2782 Implemented ConvertPixel
git-svn-id: svn://10.0.0.236/trunk@9142 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:26:43 +00:00
rods%netscape.com
3f2149f1d8 Added ConvertPixel to nsIDeviceContext
git-svn-id: svn://10.0.0.236/trunk@9141 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:24:05 +00:00
sar%netscape.com
fc0025b59b Smartupdate landing. Added autoinstl to project.
git-svn-id: svn://10.0.0.236/trunk@9140 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:19:51 +00:00
raman%netscape.com
ad49532330 Build Smartupdate when MOZ_SMARTUPDATE is defined
git-svn-id: svn://10.0.0.236/trunk@9139 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:16:07 +00:00
cyeh%netscape.com
b562308535 change version number to reflect reality
git-svn-id: svn://10.0.0.236/trunk@9138 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:12:26 +00:00
raman%netscape.com
baba7c683c Added CPPSRCS
git-svn-id: svn://10.0.0.236/trunk@9137 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:11:06 +00:00
raman%netscape.com
8a29b1f0b1 Added getSigners API for SmartUpate
git-svn-id: svn://10.0.0.236/trunk@9136 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:10:57 +00:00
cyeh%netscape.com
c9567944e7 change version number to reflect alpha reality
git-svn-id: svn://10.0.0.236/trunk@9135 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:10:53 +00:00
raman%netscape.com
4215e79a8b Merging 4.5 softupdate changes and converting Java code into C++ code and making smartupdate build when MOZ_SMARTUPDATE is defined
git-svn-id: svn://10.0.0.236/trunk@9134 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:09:53 +00:00
raman%netscape.com
6342a98244 Merging 4.5 Libreg changes
git-svn-id: svn://10.0.0.236/trunk@9133 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:09:30 +00:00
raman%netscape.com
03a634f27d removing smartupdate related code, because it is not dependent on Java
git-svn-id: svn://10.0.0.236/trunk@9132 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:09:03 +00:00
raman%netscape.com
fa2721bd60 Added a background/autoupdate pulling of URLs
git-svn-id: svn://10.0.0.236/trunk@9131 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:08:32 +00:00
raman%netscape.com
803782c140 Added a background, autoupdate pulling of URLs
git-svn-id: svn://10.0.0.236/trunk@9130 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:08:00 +00:00
raman%netscape.com
37d6196690 Added SmartUpdate related strings
git-svn-id: svn://10.0.0.236/trunk@9129 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:05:49 +00:00
raman%netscape.com
5db8e09c17 Added SmartUpdate related strings
git-svn-id: svn://10.0.0.236/trunk@9128 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:05:48 +00:00
raman%netscape.com
6b27df86ca Merging 4.5 SmartUpdate changes
git-svn-id: svn://10.0.0.236/trunk@9127 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:05:33 +00:00
raman%netscape.com
bfa28a9e3a Build SmartUpdate when MOZ_SMARTUPDATE is defined
git-svn-id: svn://10.0.0.236/trunk@9126 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:05:13 +00:00
cyeh%netscape.com
20de3f4004 disable setting the agent for right now
git-svn-id: svn://10.0.0.236/trunk@9125 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:04:13 +00:00
terry%netscape.com
8695c64724 Patch by Sam Ziegler <ziegler@mediaguaranty.com> -- allow querying for
empty resolution.


git-svn-id: svn://10.0.0.236/trunk@9124 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 19:02:30 +00:00
terry%netscape.com
67e772ba10 Changelog of important Bugzilla changes.
git-svn-id: svn://10.0.0.236/trunk@9123 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 18:56:48 +00:00
cls%seawood.org
f1b39ff147 Sync'd with Makefile.
git-svn-id: svn://10.0.0.236/trunk@9122 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 18:56:17 +00:00
terry%netscape.com
978e4f71bb Changed the way password validation works. We now keep a
crypt'd version of the password in the database, and check against
that.  (This is silly, because we're also keeping the plaintext
version there, but I have plans...)  Stop passing the plaintext
password around as a cookie; instead, we have a cookie that references
a record in a new database table, logincookies.

IMPORTANT: if updating from an older version of Bugzilla, you must run
the following commands to keep things working:

 ./makelogincookiestable.sh
 echo "alter table profiles add column cryptpassword varchar(64);" | mysql bugs
 echo "update profiles set cryptpassword = encrypt(password,substring(rand(),3, 4));" | mysql bugs


git-svn-id: svn://10.0.0.236/trunk@9121 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 18:54:54 +00:00
cls%seawood.org
c36a681815 Removed OJI ifdef from LO_GetBuiltInAttribute() as the LO_BuiltinStruct is the same for both cases.
git-svn-id: svn://10.0.0.236/trunk@9120 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 18:54:53 +00:00
cls%seawood.org
bdceeef8ff Added check for HAVE_SYSERRLIST to get rid of redefinition warning when using autoconf.
git-svn-id: svn://10.0.0.236/trunk@9119 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 18:52:56 +00:00
kipp%netscape.com
ffd0bfbf4a Added new atoms
git-svn-id: svn://10.0.0.236/trunk@9118 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 18:40:08 +00:00
terry%netscape.com
c59042bc00 Mention the "comments" file.
git-svn-id: svn://10.0.0.236/trunk@9117 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 18:34:04 +00:00
kostello%netscape.com
137860a951 Add nsILookAndFeel.h MANIFEST
git-svn-id: svn://10.0.0.236/trunk@9116 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 17:58:37 +00:00
pinkerton%netscape.com
db81b82093 fix build bustage on mac (rev mjudge).
git-svn-id: svn://10.0.0.236/trunk@9115 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 16:15:43 +00:00
cmanske%netscape.com
291759bd6f Fixed build bustage for Mac
git-svn-id: svn://10.0.0.236/trunk@9114 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 16:08:46 +00:00
ramiro%netscape.com
b1712051f1 Add support for -config-dir command line flag. That means mozilla can now
use a configdir other that ~/.netscape without having to do HOME environment
hacks.
Thanks to Aleksey Nogin (ayn2@cornell.edu) for doing all the work and being
patient for me to actually check the stuff in.


git-svn-id: svn://10.0.0.236/trunk@9113 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 14:29:42 +00:00
cmanske%netscape.com
a1fc084b4f Composer work: Check for valid charset in metatag, paste character style, split table cell, optimization for table cell layout (not turned on), remove P_MENU, P_DIRECTORY support for UIs
git-svn-id: svn://10.0.0.236/trunk@9112 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 14:21:41 +00:00
cmanske%netscape.com
4146681d02 Fixed comflicts with mjudge changes for Ender toolbar
git-svn-id: svn://10.0.0.236/trunk@9111 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 13:22:13 +00:00
cmanske%netscape.com
ded4aa73f8 Composer work: Menus, paste style, paragraph properties dialog improvements, remove P_MENU, P_DIRECTORY
git-svn-id: svn://10.0.0.236/trunk@9110 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 13:12:58 +00:00
cmanske%netscape.com
4f6a05c971 Added strings for new I18N features in Composer: correct bad charset param in tag
git-svn-id: svn://10.0.0.236/trunk@9109 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 13:12:40 +00:00
cmanske%netscape.com
ad98d60489 Added strings for new I18N features in Composer: correct bad charset param in tag
git-svn-id: svn://10.0.0.236/trunk@9108 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 13:12:39 +00:00
ramiro%netscape.com
99d378c03f Add support for OpenBSD. Thanks to Marco S Hyman <marc@snafu.org>.
git-svn-id: svn://10.0.0.236/trunk@9107 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 12:36:18 +00:00
mcafee%netscape.com
b04526e650 Moving getBuiltInAttribute() from winfe to layout, it's now LO_GetBuiltInAttribute(). a+r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@9106 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 09:13:50 +00:00
mccabe%netscape.com
09183e892f Another platform!
Thanks go to Marc Fraioli <fraioli@dg-rtp.dg.com> for
the initial port of the js/ref standalone javascript
engine to DG/UX.


git-svn-id: svn://10.0.0.236/trunk@9105 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 08:19:31 +00:00
mccabe%netscape.com
5274fdddfe Fixes for NetBSD and OpenBSD.
Thanks Marco S Hyman <marc@snafu.org>.


git-svn-id: svn://10.0.0.236/trunk@9104 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 07:56:50 +00:00
rickg%netscape.com
061a6cb718 added new EnableParser() routine for kipp; WIP
git-svn-id: svn://10.0.0.236/trunk@9103 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 07:12:49 +00:00
cls%seawood.org
c46c240ec5 Tweaks to remove XFE dependencies from other parts of the tree. Approved by {gagan,malmer,ramiro}%netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9102 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 07:02:04 +00:00
morse%netscape.com
e7f07b3856 enable trust labels for unix
git-svn-id: svn://10.0.0.236/trunk@9101 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 05:06:15 +00:00
tomw%netscape.com
324119b646 Whoops. Use NETSCAPE_OFFICIAL, not BUILD_OFFICIAL
git-svn-id: svn://10.0.0.236/trunk@9100 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 03:20:44 +00:00
valeski%netscape.com
e753d19e38 added net_xp_file.h to #include
git-svn-id: svn://10.0.0.236/trunk@9099 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 03:01:14 +00:00
tomw%netscape.com
5da415cc22 Generate exports table for Cartman. This stuff needs to get moved out of
mozilla at some point.


git-svn-id: svn://10.0.0.236/trunk@9098 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:25:40 +00:00
peterl%netscape.com
ceda89bcfc reversed doc style sheet ordering in the style set
git-svn-id: svn://10.0.0.236/trunk@9097 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:13:37 +00:00
peterl%netscape.com
4ed0ab4604 fixed unit assumptions in map attributes into
git-svn-id: svn://10.0.0.236/trunk@9096 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:12:41 +00:00
peterl%netscape.com
9b0743f19a COMified interface
made first attribute local
added support for attr uniquing


git-svn-id: svn://10.0.0.236/trunk@9095 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:10:44 +00:00
peterl%netscape.com
c285c5e211 COMified style rule interface
git-svn-id: svn://10.0.0.236/trunk@9094 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:09:43 +00:00
peterl%netscape.com
5c26a357cc sync to attribute container api change
git-svn-id: svn://10.0.0.236/trunk@9093 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:08:14 +00:00
peterl%netscape.com
c1e4733c3b added DTD mode
git-svn-id: svn://10.0.0.236/trunk@9092 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:07:42 +00:00
peterl%netscape.com
60f33a4ff1 reversed style sheet order in the set
added DTD mode


git-svn-id: svn://10.0.0.236/trunk@9091 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:06:39 +00:00
peterl%netscape.com
4c10477c7c added support for uniquing attr containers
git-svn-id: svn://10.0.0.236/trunk@9090 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:05:53 +00:00
peterl%netscape.com
61a871690c added support for uniquing attribute containers
git-svn-id: svn://10.0.0.236/trunk@9089 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:05:13 +00:00
peterl%netscape.com
f4f7396cb9 COMified some interfaces
git-svn-id: svn://10.0.0.236/trunk@9088 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:03:24 +00:00
peterl%netscape.com
48058fdd77 turned around doc style sheet order
git-svn-id: svn://10.0.0.236/trunk@9087 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:02:53 +00:00
peterl%netscape.com
704c2ac772 comment about style sheet ordering
git-svn-id: svn://10.0.0.236/trunk@9086 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:02:30 +00:00
peterl%netscape.com
9ff39fd8a4 reversed style sheet ordering in the set
git-svn-id: svn://10.0.0.236/trunk@9085 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:02:14 +00:00
peterl%netscape.com
6a5da9f5b6 comments on sheet/rule ordering
git-svn-id: svn://10.0.0.236/trunk@9084 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:00:24 +00:00
peterl%netscape.com
cdc1c65a3d COMified
git-svn-id: svn://10.0.0.236/trunk@9083 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 02:00:05 +00:00
peterl%netscape.com
65f20a2d5a changed HashCode to HashValue and fixed return type
git-svn-id: svn://10.0.0.236/trunk@9082 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 01:59:30 +00:00
akkana%netscape.com
7c2b2d86a6 new FE_EncodingDialog to match new API in edtutil.cpp
git-svn-id: svn://10.0.0.236/trunk@9081 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 01:39:39 +00:00
mcafee%netscape.com
ed5c09e2ca Solaris wants EOF character, added comment for #endif.
git-svn-id: svn://10.0.0.236/trunk@9080 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 01:35:54 +00:00
kipp%netscape.com
a19b11738f Added new atoms
git-svn-id: svn://10.0.0.236/trunk@9079 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 01:08:32 +00:00
kipp%netscape.com
ea7ccf3372 New content spanking to use new impl macros for attributes
git-svn-id: svn://10.0.0.236/trunk@9078 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 01:08:23 +00:00
kipp%netscape.com
03e3476df4 Added new source to the build
git-svn-id: svn://10.0.0.236/trunk@9077 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 01:08:15 +00:00
valeski%netscape.com
80669eb600 Adding layer of abstraction (via #defines) between netlib and file code (XP_File*). This will allow raptor to build with a different file implementation (nsINetFile) and no longer rely on XP_File*(). All XP_File*() routines were renamed to NET_XP_File*(). The #define to do the masking is mozilla/network/main/net_xp_file.h .
Aleks told me all I had to do in order to export net_xp_file.h on the mac was to include it in mozilla/network/main/manifest. I did that, so, if mac builds break in netlib, it's likely the exporting of the file isn't happening (I'm not sure of the state of manifest files anymore) and I don't have a mac. So if MAC BREAKS, please add the file to the mac project and check it in (thank you).

I'll be at 408.867.2701 or cell - 415.307.7101 tonight.


git-svn-id: svn://10.0.0.236/trunk@9076 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 01:00:42 +00:00
kipp%netscape.com
17c6dc528b new
git-svn-id: svn://10.0.0.236/trunk@9075 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 00:56:01 +00:00
cls%seawood.org
4fadfde870 Sync'd Makefile.ins
git-svn-id: svn://10.0.0.236/trunk@9074 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 00:54:34 +00:00
cls%seawood.org
6ba7c9234f Added blizzard@appliedtheory.com's patches for gnomefe and enable-pthreads.
git-svn-id: svn://10.0.0.236/trunk@9073 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 00:52:55 +00:00
cls%seawood.org
dafe049ebd Sync'd and moved GARBAGE before rules.mk.
git-svn-id: svn://10.0.0.236/trunk@9072 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 00:34:07 +00:00
rpotts%netscape.com
ca9ef3c2e8 Fixed return value from PerformNastyWindowsAsyncDNSHack(...)
git-svn-id: svn://10.0.0.236/trunk@9071 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 00:27:54 +00:00
slamm%netscape.com
034db9db1f Dynamically add items (previously we rebuilt the whole thing).
git-svn-id: svn://10.0.0.236/trunk@9070 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 00:26:27 +00:00
slamm%netscape.com
9bee1c7ae6 Add support for FE commands from RDF.
git-svn-id: svn://10.0.0.236/trunk@9069 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 00:26:24 +00:00
slamm%netscape.com
bb5aa010d4 Get rid of unused notification.
git-svn-id: svn://10.0.0.236/trunk@9068 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 00:26:21 +00:00
slamm%netscape.com
be1460ac84 Add const'ness to function.
git-svn-id: svn://10.0.0.236/trunk@9067 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 00:26:18 +00:00
slamm%netscape.com
f0d2463f35 Translate 'stop' to xfeCmdStopLoading (in addition to 'abort'). This is used by the RDF command translation.
git-svn-id: svn://10.0.0.236/trunk@9066 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-02 00:26:15 +00:00
beard%netscape.com
dd8e829ab2 Added call to np_UnloadPluginClass in NPL_Shutdown.
git-svn-id: svn://10.0.0.236/trunk@9065 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 23:57:50 +00:00
kostello%netscape.com
2a60b87633 Removed nsHTMLParts.cpp
git-svn-id: svn://10.0.0.236/trunk@9064 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 23:56:40 +00:00
beard%netscape.com
45912ca0ac Added call to NPL_Shutdown.
git-svn-id: svn://10.0.0.236/trunk@9063 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 23:55:59 +00:00
terry%netscape.com
2be4d8d00a Tell people that they have to "create database bugs;".
git-svn-id: svn://10.0.0.236/trunk@9062 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 23:55:45 +00:00
ltabb%netscape.com
0ec2537a01 added CalendarClient
git-svn-id: svn://10.0.0.236/trunk@9061 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 23:48:27 +00:00
sdagley%netscape.com
f6180ffc6f Fix #316690. Reviewed/approved aoki (in veditz's absence). Fix hard coded reference to "Netscape Registry" so that Mozilla uses its own "Navigator Regsitry".
git-svn-id: svn://10.0.0.236/trunk@9060 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 23:44:31 +00:00
despotdaemon%netscape.com
c90e52b4c2 Pseudo-automatic update of changes made by ltabb@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@9059 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 23:42:53 +00:00
kmcclusk%netscape.com
94082b87b8 More 8BIT visual support.
git-svn-id: svn://10.0.0.236/trunk@9058 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 23:22:49 +00:00
rods%netscape.com
04398eaf11 Cast mWidget to Widget
git-svn-id: svn://10.0.0.236/trunk@9057 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 23:21:38 +00:00
rods%netscape.com
5e494d6339 Fixed SetLabel and Get Label in nsDialog
git-svn-id: svn://10.0.0.236/trunk@9056 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 23:13:43 +00:00
rods%netscape.com
d2416e1378 Added Top 100
git-svn-id: svn://10.0.0.236/trunk@9055 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 22:49:58 +00:00
rods%netscape.com
119a854357 The statusbar is now sized via the LookAndFeel defaults
git-svn-id: svn://10.0.0.236/trunk@9054 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 22:49:16 +00:00
danm%netscape.com
d5e7ca614a save/restore toolbar collapsed state from RDF
git-svn-id: svn://10.0.0.236/trunk@9053 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 22:48:17 +00:00
rods%netscape.com
badc0769db Fixed an include and a few nsString defs
git-svn-id: svn://10.0.0.236/trunk@9052 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 22:48:08 +00:00
rods%netscape.com
566557a3f0 Added InstallColormap call to ConvertPixel
git-svn-id: svn://10.0.0.236/trunk@9051 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 22:44:17 +00:00
rods%netscape.com
05aeccd5ca Exported nsDeviceContentUnix.h its needed by nsWindow for SetForegroundColor
and SetBackgroundColor


git-svn-id: svn://10.0.0.236/trunk@9050 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 22:43:38 +00:00
guha%netscape.com
6332596a4d Fix extra comma problem --- (jgellman)
git-svn-id: svn://10.0.0.236/trunk@9049 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 22:43:32 +00:00
rods%netscape.com
76b95ee227 SetForegroundColor and SetBackground work properly
Enabled implemented


git-svn-id: svn://10.0.0.236/trunk@9048 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 22:42:13 +00:00
rods%netscape.com
9478439139 SetForegroundColor and SetBackground work properly
git-svn-id: svn://10.0.0.236/trunk@9047 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 22:41:39 +00:00
rpotts%netscape.com
d49946e886 Fixed build bustage due to NSRepository renaming...
git-svn-id: svn://10.0.0.236/trunk@9046 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 22:37:27 +00:00
pinkerton%netscape.com
d11dbb57ab Removing const on pass-by-value params.
git-svn-id: svn://10.0.0.236/trunk@9045 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 22:30:24 +00:00
akkana%netscape.com
08357fe683 Call new FE_EncodingDialog
git-svn-id: svn://10.0.0.236/trunk@9044 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 22:19:12 +00:00
guha%netscape.com
1f401e1f45 Bunch of bug fixes, etc. Reviewd by jgellman
git-svn-id: svn://10.0.0.236/trunk@9043 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 22:18:34 +00:00
clu%netscape.com
f5ddf2b63e I18N work for encoding menu (reviewed brade)
git-svn-id: svn://10.0.0.236/trunk@9042 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 22:15:46 +00:00
kmcclusk%netscape.com
c3aa4dba38 Add some 8-bit color support + removed bit conversion in nsImageUnix.cpp Draw.
git-svn-id: svn://10.0.0.236/trunk@9041 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 21:24:32 +00:00
cmanske%netscape.com
1b05ddb812 Added FE_EncodingDialog stub necessary for futher encoding work (and build won't crash!)
git-svn-id: svn://10.0.0.236/trunk@9040 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 21:09:30 +00:00
rods%netscape.com
05b008edf1 Added LookAndFeel
git-svn-id: svn://10.0.0.236/trunk@9039 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 21:08:32 +00:00
terry%netscape.com
110fe5a836 Patch inspired by Sam Ziegler <ziegler@mediaguaranty.com> -- deal
better with product names that have spaces or other weird stuff in them.


git-svn-id: svn://10.0.0.236/trunk@9038 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 21:01:44 +00:00
terry%netscape.com
8b1f3d52f9 Patch by Sam Ziegler <ziegler@mediaguaranty.com> -- add a handy link
to enter a new bug.


git-svn-id: svn://10.0.0.236/trunk@9037 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 21:01:10 +00:00
rods%netscape.com
acef905cbe Fixed small compiler error
git-svn-id: svn://10.0.0.236/trunk@9036 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:57:16 +00:00
rods%netscape.com
d4db10c832 Renamed the enums to be more compiliant with naming conventions,
Changed API to be XP_COM correct
Added eMetric_TextHeight enum


git-svn-id: svn://10.0.0.236/trunk@9035 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:54:39 +00:00
terry%netscape.com
eba879a8ca Use POST, not GET. Allow for boolean params.
git-svn-id: svn://10.0.0.236/trunk@9034 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:54:24 +00:00
danm%netscape.com
14d930dc6d add new toolbar properties, fix early freemem in HT_SetNodeData, bmkNotifFunc notifies for all unassertions regardless of property type. r:rjc
git-svn-id: svn://10.0.0.236/trunk@9033 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:51:45 +00:00
cyeh%netscape.com
f86d88868b Dates are implemented in the non-standard way of starting from 1904 instead of 1970. As a result, we must add back those lost years in order to get cross platform compatibility with other perl time implementations. Special thanks to Chris Nandor (pudge@pobox.com) for unsticking my brain and providing a rough conversion routine.
git-svn-id: svn://10.0.0.236/trunk@9032 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:41:45 +00:00
kmcclusk%netscape.com
e1725a42b9 Removed mouse debug printf.
git-svn-id: svn://10.0.0.236/trunk@9031 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:32:56 +00:00
pinkerton%netscape.com
593aba4abe back to the AM version.
git-svn-id: svn://10.0.0.236/trunk@9030 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:30:55 +00:00
kmcclusk%netscape.com
9a65fa5b1b Added support for 16-bit visuals.
git-svn-id: svn://10.0.0.236/trunk@9029 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:30:42 +00:00
dcone%netscape.com
11f76bfa6b Fixed mouseup messaging
git-svn-id: svn://10.0.0.236/trunk@9028 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:24:54 +00:00
cls%seawood.org
76268b0341 Sync'd.
git-svn-id: svn://10.0.0.236/trunk@9027 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:24:24 +00:00
pinkerton%netscape.com
96501b1fca turn on trust labels for mac.
git-svn-id: svn://10.0.0.236/trunk@9026 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:23:44 +00:00
cls%seawood.org
c20beab072 Added DOM changes.
git-svn-id: svn://10.0.0.236/trunk@9025 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:23:24 +00:00
pinkerton%netscape.com
71712134bd add mkaccess.h to dist
git-svn-id: svn://10.0.0.236/trunk@9024 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:22:23 +00:00
pinkerton%netscape.com
2214a2a3e7 turn on trust labels for mac and fix mac problem.
git-svn-id: svn://10.0.0.236/trunk@9023 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:22:11 +00:00
pinkerton%netscape.com
d9a4819ca7 turn on trust labels on mac.
git-svn-id: svn://10.0.0.236/trunk@9022 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:21:19 +00:00
bjorn%netscape.com
7b045fdab6 Added compare-and-swap patches for AIX (_check_lock) and Solaris (stbar).
git-svn-id: svn://10.0.0.236/trunk@9021 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:21:11 +00:00
pinkerton%netscape.com
3263b3a8ac use function to get at global image cache.
git-svn-id: svn://10.0.0.236/trunk@9020 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:20:29 +00:00
kostello%netscape.com
85648460a7 Added nsHTMLBody.cpp, nsHTMLDList.cpp, nsHTMLDel.cpp, nsHTMLDirectory.cpp, nsHTMLDiv.cpp
git-svn-id: svn://10.0.0.236/trunk@9019 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:20:06 +00:00
pinkerton%netscape.com
767b0ee7b1 pull out unused lines.
git-svn-id: svn://10.0.0.236/trunk@9018 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:19:53 +00:00
pinkerton%netscape.com
fb40581e50 making RefreshRowRange const.
git-svn-id: svn://10.0.0.236/trunk@9017 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:19:34 +00:00
pinkerton%netscape.com
61cec2f531 making stuff const, making other stuff non-virtual.
git-svn-id: svn://10.0.0.236/trunk@9016 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:19:14 +00:00
pinkerton%netscape.com
b34a4917dc use new function to get global.
git-svn-id: svn://10.0.0.236/trunk@9015 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:18:23 +00:00
pinkerton%netscape.com
828552e105 Renaming class to CImageCache because that's what it is.
git-svn-id: svn://10.0.0.236/trunk@9014 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:18:10 +00:00
pinkerton%netscape.com
887b5a178a Making some more stuff const.
git-svn-id: svn://10.0.0.236/trunk@9013 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:17:46 +00:00
pinkerton%netscape.com
8c86df56bf Added CProgressCaption
git-svn-id: svn://10.0.0.236/trunk@9012 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:17:11 +00:00
pinkerton%netscape.com
b257b57e1b updated for new CProgressCaption.
git-svn-id: svn://10.0.0.236/trunk@9011 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:16:59 +00:00
pinkerton%netscape.com
4e5e360aa2 updated for new CProgressCaption
git-svn-id: svn://10.0.0.236/trunk@9010 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:16:43 +00:00
pinkerton%netscape.com
4c0e52f3e9 fix some code for offline to use the new progress bar class.
git-svn-id: svn://10.0.0.236/trunk@9009 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:14:08 +00:00
pinkerton%netscape.com
b43dcc8fd2 New progress bar based on AM.
git-svn-id: svn://10.0.0.236/trunk@9008 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:13:48 +00:00
pinkerton%netscape.com
abcc2d45a0 Registering some AM classes for the progress bar and removing obsolete ones we wrong ourselves.
git-svn-id: svn://10.0.0.236/trunk@9007 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:13:10 +00:00
pinkerton%netscape.com
186be1466f Removed CProgressBar and CPatternProgressBar because CProgressCaption replaces it.
git-svn-id: svn://10.0.0.236/trunk@9006 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:12:34 +00:00
pinkerton%netscape.com
3c3fb4e000 splash screen to match windows.
git-svn-id: svn://10.0.0.236/trunk@9005 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:11:09 +00:00
pinkerton%netscape.com
a1a2c8e6de Redundant implementation (lib/mac/UserInterface is the good one).
git-svn-id: svn://10.0.0.236/trunk@9004 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:10:25 +00:00
gagan%netscape.com
4835fef626 Changes from NuCache. Should'nt affect the build.
git-svn-id: svn://10.0.0.236/trunk@9003 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 20:00:07 +00:00
cls%seawood.org
fd1035a222 Fixed problems with parallel make.
git-svn-id: svn://10.0.0.236/trunk@9002 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 19:50:28 +00:00
cls%seawood.org
f4db6709de Added ifdef OJI around JVMPlugin define
git-svn-id: svn://10.0.0.236/trunk@9001 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 19:45:35 +00:00
valeski%netscape.com
ed5f2fad9f xp_dir to pr_dir
git-svn-id: svn://10.0.0.236/trunk@8999 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 19:18:00 +00:00
vidur%netscape.com
9eb23637ff Proper shutdown of JS engine
git-svn-id: svn://10.0.0.236/trunk@8998 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 19:13:36 +00:00
kipp%netscape.com
ad009e1438 Added new source to build
git-svn-id: svn://10.0.0.236/trunk@8997 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 19:13:02 +00:00
kipp%netscape.com
dcc313a3b7 Added new methods
git-svn-id: svn://10.0.0.236/trunk@8996 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 19:10:14 +00:00
akkana%netscape.com
d1fff060c6 New FE encoding dialog
git-svn-id: svn://10.0.0.236/trunk@8995 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 19:09:28 +00:00
kipp%netscape.com
5db3c8ded9 Added new files to build
git-svn-id: svn://10.0.0.236/trunk@8994 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 19:08:44 +00:00
kipp%netscape.com
3f4b2f7d99 Fixed boolean handling in hr
git-svn-id: svn://10.0.0.236/trunk@8993 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 19:08:36 +00:00
kipp%netscape.com
c4f158b374 new
git-svn-id: svn://10.0.0.236/trunk@8992 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 19:07:50 +00:00
akkana%netscape.com
61e70e439f Type and prototype for new FE encoding dialog
git-svn-id: svn://10.0.0.236/trunk@8991 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 19:07:27 +00:00
valeski%netscape.com
c66827cc8b adding net_xp_file.h to the list of exports
git-svn-id: svn://10.0.0.236/trunk@8990 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 18:59:17 +00:00
valeski%netscape.com
f217d60eb4 this file adds a level of abstraction between netlib and xp_file routines.
git-svn-id: svn://10.0.0.236/trunk@8989 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 18:55:22 +00:00
mjudge%netscape.com
edb5d85d3c Ender reload and new toolbar code
git-svn-id: svn://10.0.0.236/trunk@8988 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 18:53:36 +00:00
mjudge%netscape.com
bcc969ba8d more Ender things... Reload ect.
git-svn-id: svn://10.0.0.236/trunk@8987 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 18:52:52 +00:00
mjudge%netscape.com
f774effd17 Reload for Ender
git-svn-id: svn://10.0.0.236/trunk@8986 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 18:52:11 +00:00
mjudge%netscape.com
b55d68ba95 Fixes for ender to beat 9-1 reviewed winfe specific changes from Bill Law
git-svn-id: svn://10.0.0.236/trunk@8985 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 18:51:22 +00:00
ftang%netscape.com
d40148503c check in RDF UTF8 drawing, reviewed by hyatt severl days ago
git-svn-id: svn://10.0.0.236/trunk@8984 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 18:50:05 +00:00
scc%netscape.com
7ec8f8f604 Added a constructor from SPaneInfo and SViewInfo instead of an LStream; factored behavior from constructors into |common_initialization()|
git-svn-id: svn://10.0.0.236/trunk@8983 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 18:42:52 +00:00
scc%netscape.com
4444e89bbc new method |AddBar| as with RDF, not all bars come from the construction stream; also fixed routines that expected all bars to exist instantly to be a little more forgiving
git-svn-id: svn://10.0.0.236/trunk@8982 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 18:41:28 +00:00
scc%netscape.com
d7f0325595 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@8981 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 18:39:08 +00:00
buster%netscape.com
f79492b78c empty rows now handled properly
git-svn-id: svn://10.0.0.236/trunk@8980 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 17:49:05 +00:00
despotdaemon%netscape.com
925fbc076c Pseudo-automatic update of changes made by rogerl@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@8979 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 17:34:16 +00:00
rods%netscape.com
6d66f71fcf Removed some windows specific code and changed to xp code.
git-svn-id: svn://10.0.0.236/trunk@8978 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 16:29:05 +00:00
rods%netscape.com
4543df6c4b Changed the Windows platform specific dialogs to cross platform dialogs
git-svn-id: svn://10.0.0.236/trunk@8977 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 16:15:16 +00:00
despotdaemon%netscape.com
4e885a8ae1 Pseudo-automatic update of changes made by shaver@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@8976 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 16:05:55 +00:00
kostello%netscape.com
de53dbf358 Added new content objects to project file:
nsHTMLArea
nsHTMLBaseFont
nsHTMLInput
nsHTMLLink
nsHTMLParam
nsHTMLScript
nsHTMLStyle


git-svn-id: svn://10.0.0.236/trunk@8975 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 15:30:45 +00:00
rods%netscape.com
1e8647294a Added nsDialog
git-svn-id: svn://10.0.0.236/trunk@8974 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 15:29:47 +00:00
rods%netscape.com
25d3af84a1 Added the managed widget to make it work.
git-svn-id: svn://10.0.0.236/trunk@8973 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 15:28:40 +00:00
terry%netscape.com
72367ff251 Use the "urlbase" param. Make regeneration easier.
git-svn-id: svn://10.0.0.236/trunk@8972 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 14:02:13 +00:00
shaver%netscape.com
8b8a2d4790 don't call layout from the mocha thread, and other progress
git-svn-id: svn://10.0.0.236/trunk@8971 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 12:54:17 +00:00
shaver%netscape.com
eb8ec7d6d1 fix dumb typo (how embarrassing)
git-svn-id: svn://10.0.0.236/trunk@8970 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 12:52:30 +00:00
shaver%netscape.com
00bff720d0 if throwing, cx->exception is a valid root
git-svn-id: svn://10.0.0.236/trunk@8969 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 12:38:59 +00:00
ramiro%netscape.com
39c80534b0 Add XfeTopShadowColor() and XfeBottomShadowColor().
git-svn-id: svn://10.0.0.236/trunk@8968 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 08:26:03 +00:00
ramiro%netscape.com
5cf0cf98f7 Add virtual functions getFGPixel() getBGPixel() getTopShadowPixel()
getBottomShadowPixel().


git-svn-id: svn://10.0.0.236/trunk@8967 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 08:24:40 +00:00
ramiro%netscape.com
1a13e6103c Protect the usage of m_toplevel with XP_ASSERT().
git-svn-id: svn://10.0.0.236/trunk@8966 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 08:23:37 +00:00
rpotts%netscape.com
b1f6a2ce4b Added a new windows-only subdirectory called embed/AcviveX which contains an ActiveX wrapper control for NGLayout
git-svn-id: svn://10.0.0.236/trunk@8965 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 08:07:56 +00:00
nisheeth%netscape.com
8252421f26 Fix for bug# 313278. Random links on the page were unclickable.
The problem was that the width and height of the dummy floating element that gets appended to the line list were not being initialized to 0 in lo_AppendFloatToLineList() and was
fooling the selection code into thinking that the floating element is insanely large.
So, the link wasn't being returned to the FE when you moused over it.


git-svn-id: svn://10.0.0.236/trunk@8964 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 05:40:50 +00:00
terry%netscape.com
51c3eedb87 Oh, gee, djw doesn't work here anymore, and doesn't own the Layout
module anymore.  Whoops.

I gotta make all our "lists of owners" sync'd together...


git-svn-id: svn://10.0.0.236/trunk@8963 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 04:58:10 +00:00
terry%netscape.com
ad73b379e6 Fixed bug #541 -- sorting by "assignee" now works.
git-svn-id: svn://10.0.0.236/trunk@8962 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 04:41:58 +00:00
warren%netscape.com
0440512d07 Removed secstubn.h for mac build.
git-svn-id: svn://10.0.0.236/trunk@8961 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 04:35:11 +00:00
terry%netscape.com
865baefe82 Added parameters to specify the HTML that goes at the top of every
page.  The banner.html and blurb.html files are now obsolete!


git-svn-id: svn://10.0.0.236/trunk@8960 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 04:33:37 +00:00
terry%netscape.com
1732adfa07 Whine at people who haven't been checking their NEW bugs.
git-svn-id: svn://10.0.0.236/trunk@8959 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 04:22:32 +00:00
terry%netscape.com
fcf05717c4 Allow editing of parameters via a web page.
git-svn-id: svn://10.0.0.236/trunk@8958 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 04:21:45 +00:00
warren%netscape.com
6a09708500 Changed c++ comments for inclusion in c files.
git-svn-id: svn://10.0.0.236/trunk@8957 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 04:15:07 +00:00
warren%netscape.com
d3527a8a0b Added xpcom dependency.
git-svn-id: svn://10.0.0.236/trunk@8956 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 03:30:59 +00:00
jgellman%netscape.com
2f90c9532f remove bogus assertions
git-svn-id: svn://10.0.0.236/trunk@8955 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 03:26:16 +00:00
warren%netscape.com
937ce00468 Added requires for xpcom.
git-svn-id: svn://10.0.0.236/trunk@8954 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 02:45:39 +00:00
warren%netscape.com
8f61f8eb54 Added requires for oji and ojiimpl
git-svn-id: svn://10.0.0.236/trunk@8953 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:59:14 +00:00
terry%netscape.com
29bafb193c Fix up NPL and comments that cls%seawood.org horked.
git-svn-id: svn://10.0.0.236/trunk@8952 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:41:07 +00:00
terry%netscape.com
f2de337030 Fix up indentation that cls%seawood.org horked.
git-svn-id: svn://10.0.0.236/trunk@8951 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:40:24 +00:00
kipp%netscape.com
bcae082904 Added some style rules for new content objects
git-svn-id: svn://10.0.0.236/trunk@8950 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:37:43 +00:00
kipp%netscape.com
887320a8d2 Implement NS_CreateHTMLElement using same code that content sink uses; create various and sundry new content objects
git-svn-id: svn://10.0.0.236/trunk@8949 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:37:17 +00:00
kipp%netscape.com
bfcb0c92bc Stop building nsHTMLParts.cpp (obsolete)
git-svn-id: svn://10.0.0.236/trunk@8948 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:36:39 +00:00
kipp%netscape.com
9a73352750 Moved over more attribute parsing routines
git-svn-id: svn://10.0.0.236/trunk@8947 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:36:11 +00:00
kipp%netscape.com
8fe9b5e86a Added new source files
git-svn-id: svn://10.0.0.236/trunk@8946 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:35:34 +00:00
kipp%netscape.com
a716f18685 Revised factory method argument order (normalized)
git-svn-id: svn://10.0.0.236/trunk@8945 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:35:19 +00:00
kipp%netscape.com
2e717f67f3 Added missing atoms
git-svn-id: svn://10.0.0.236/trunk@8944 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:34:32 +00:00
kipp%netscape.com
ade8b21e54 Added factory method names for all the new content objects
git-svn-id: svn://10.0.0.236/trunk@8943 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:33:19 +00:00
kipp%netscape.com
a1599a84e2 added new atoms
git-svn-id: svn://10.0.0.236/trunk@8942 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:32:58 +00:00
kipp%netscape.com
0435e1c021 Unset boolean attributes (noshade)
git-svn-id: svn://10.0.0.236/trunk@8941 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:32:05 +00:00
kipp%netscape.com
7528331669 Twiddled object frame argument order
git-svn-id: svn://10.0.0.236/trunk@8940 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:31:50 +00:00
cyeh%netscape.com
42e5816d97 FTSO MacPerl. Dates are implemented in the non-standard way of starting from 1904 instead of 1970. As a result, we must add back those lost years in order to get cross platform compatibility with other perl time implementations. Please shoot me.
git-svn-id: svn://10.0.0.236/trunk@8939 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:31:32 +00:00
kipp%netscape.com
77788c00a0 new content version
git-svn-id: svn://10.0.0.236/trunk@8938 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:31:20 +00:00
kipp%netscape.com
663af9cca3 new
git-svn-id: svn://10.0.0.236/trunk@8937 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:27:08 +00:00
beard%netscape.com
2e03ecb2b3 Fixed nsRepository exports, and return type signature change for nsHashtable::Enumerate() which used to return int, and now returns void.
git-svn-id: svn://10.0.0.236/trunk@8936 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:23:54 +00:00
beard%netscape.com
752f4aefc8 Moved Checking nsServiceManager.cpp into the xpcom - src folder.
git-svn-id: svn://10.0.0.236/trunk@8935 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:22:23 +00:00
terry%netscape.com
0dbb7eb2fd Do some simple sanity checks.
git-svn-id: svn://10.0.0.236/trunk@8934 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:20:36 +00:00
warren%netscape.com
b6420f1ff6 Added ojiimpl requirement for jvmmgr.h
git-svn-id: svn://10.0.0.236/trunk@8933 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:19:59 +00:00
mccabe%netscape.com
cead6ec411 restore npl.
git-svn-id: svn://10.0.0.236/trunk@8932 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:16:45 +00:00
mccabe%netscape.com
f3c665324e More runtime errors now bound to exceptions.
Most of these will require a second look, but I wanted to get all of
them (that need exceptions) throwing something interesting.


git-svn-id: svn://10.0.0.236/trunk@8931 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:15:16 +00:00
cls%seawood.org
15cbb4eeb5 A few fixes to allow things to work relatively out of the box.
git-svn-id: svn://10.0.0.236/trunk@8930 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:14:20 +00:00
pierre%netscape.com
1892f9e030 enable debugger
git-svn-id: svn://10.0.0.236/trunk@8929 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:12:58 +00:00
pierre%netscape.com
716b9901a9 Make aliases of sample files.
(closed tree override: raptor checkin only)


git-svn-id: svn://10.0.0.236/trunk@8928 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:12:34 +00:00
cls%seawood.org
50516e8f79 Make a couple of tweaks to allow complete admin (expect setting passwd) via webpages.
git-svn-id: svn://10.0.0.236/trunk@8927 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:11:34 +00:00
cls%seawood.org
31a4d80bf5 Initial version
git-svn-id: svn://10.0.0.236/trunk@8926 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 01:09:43 +00:00
despotdaemon%netscape.com
6e43d75756 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@8925 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:59:46 +00:00
cyeh%netscape.com
7998ef60b2 we need a mac specific version of set-timebomb.pl. how annoying.
git-svn-id: svn://10.0.0.236/trunk@8923 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:30:17 +00:00
warren%netscape.com
d623edaca1 Renamed NSRepository to nsRepository.
git-svn-id: svn://10.0.0.236/trunk@8922 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:26:28 +00:00
warren%netscape.com
59dcb2a7df Added closure argument to nsHashtable::Enumerate. Renamed NSRepository to nsRepository.
git-svn-id: svn://10.0.0.236/trunk@8921 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:23:47 +00:00
warren%netscape.com
7730de5796 Changes for lazy java initialization.
git-svn-id: svn://10.0.0.236/trunk@8920 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:23:43 +00:00
warren%netscape.com
8fc72c0a4b Fixed Create to work with new nsAgg.h
git-svn-id: svn://10.0.0.236/trunk@8919 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:17:49 +00:00
warren%netscape.com
226ae1a7bb Changed NSServiceManager to nsServiceManager.
git-svn-id: svn://10.0.0.236/trunk@8918 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:17:47 +00:00
warren%netscape.com
324484e756 Made QI try the current object delegating to outer. Removed QI for kISupportsIID (which returned Internal). Added nsIOuter interfacewhich allows for notification of child release.
git-svn-id: svn://10.0.0.236/trunk@8917 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:17:28 +00:00
warren%netscape.com
78dddd29b1 Added FindProxyForURL.
git-svn-id: svn://10.0.0.236/trunk@8916 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:17:25 +00:00
warren%netscape.com
c2d6c41bed Added PR_DestroyLogModule.
git-svn-id: svn://10.0.0.236/trunk@8915 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:17:18 +00:00
warren%netscape.com
da4ceaa4fd Made counts be unsigned.
git-svn-id: svn://10.0.0.236/trunk@8914 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:17:09 +00:00
warren%netscape.com
99cc319bb3 Fixed signature of Write method.
git-svn-id: svn://10.0.0.236/trunk@8913 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:17:01 +00:00
warren%netscape.com
ef858a1b5a Replaced some Java error strings with OJI error strings.
git-svn-id: svn://10.0.0.236/trunk@8912 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:16:57 +00:00
warren%netscape.com
62c0a73a69 Added AWT_11 to NSJVM builds.
git-svn-id: svn://10.0.0.236/trunk@8911 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:16:53 +00:00
warren%netscape.com
24b7d5e489 Added closure argument to nsHashtable::Enumerate.
git-svn-id: svn://10.0.0.236/trunk@8910 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:16:47 +00:00
warren%netscape.com
6f46cc2695 Changes for lazy java initialization.
git-svn-id: svn://10.0.0.236/trunk@8909 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:16:08 +00:00
cyeh%netscape.com
1a58709bfd updated examples that are cleaner and multiple platform friendly.
git-svn-id: svn://10.0.0.236/trunk@8908 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:08:02 +00:00
leaf%mozilla.org
711e1f40e4 Added timebomb setting for MOZILLA_OFFICIAL builds
git-svn-id: svn://10.0.0.236/trunk@8907 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:02:58 +00:00
leaf%mozilla.org
e25b1dc5b6 Included the config directory if MOZILLA_OFFICIAL is set
git-svn-id: svn://10.0.0.236/trunk@8906 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:02:11 +00:00
beard%netscape.com
ce8cf140f2 The equals method isn't native in the Mozilla tree.
git-svn-id: svn://10.0.0.236/trunk@8905 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 23:39:51 +00:00
beard%netscape.com
005646cae3 Changed JavaPackage_resolve so that it doesn't return immediately if quiet_resolve_failure is true. Otherwise, pre_define_java_packages fails.
git-svn-id: svn://10.0.0.236/trunk@8904 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 23:39:04 +00:00
cyeh%netscape.com
1dd4359338 i hate it when i fuck up
git-svn-id: svn://10.0.0.236/trunk@8903 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 23:27:51 +00:00
cyeh%netscape.com
c3c997183a added support for automagically setting timebombs in the build. only used for mozilla official builds, shouldn't affect anything. (famous last words i know)
git-svn-id: svn://10.0.0.236/trunk@8902 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 22:54:56 +00:00
cyeh%netscape.com
1e3714bd28 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@8901 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 22:51:26 +00:00
shaver%netscape.com
e413d25e7d JS_InternString is volatile, so I'll avoid its use
git-svn-id: svn://10.0.0.236/trunk@8900 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 22:46:06 +00:00
dcone%netscape.com
5e8902c242 fixed the mouse enter and exit routines
git-svn-id: svn://10.0.0.236/trunk@8899 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 22:42:44 +00:00
dcone%netscape.com
35560b569a fixed update action
git-svn-id: svn://10.0.0.236/trunk@8898 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 22:42:06 +00:00
shaver%netscape.com
34f95bbbdd update NodeOps APIs
git-svn-id: svn://10.0.0.236/trunk@8897 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 22:32:57 +00:00
shaver%netscape.com
3c890f1602 avoid dangerous JS_InternString call, and update NodeOps APIs
git-svn-id: svn://10.0.0.236/trunk@8896 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 22:31:44 +00:00
kipp%netscape.com
cf548d3884 Make sure we don't run off the end of the string when translating entities in attribute values
git-svn-id: svn://10.0.0.236/trunk@8895 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 22:00:04 +00:00
rods%netscape.com
8c7e275201 Fixed several crash bugs in Find
git-svn-id: svn://10.0.0.236/trunk@8894 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 21:56:57 +00:00
rickg%netscape.com
31ccae0cec fixed a few infinite loops in new DTD code
git-svn-id: svn://10.0.0.236/trunk@8893 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 21:52:47 +00:00
dcone%netscape.com
f8fe2acdde tracking updates
git-svn-id: svn://10.0.0.236/trunk@8892 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 21:50:59 +00:00
dcone%netscape.com
f0e842dc4a fixed some update and drawing routines
git-svn-id: svn://10.0.0.236/trunk@8891 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 21:50:36 +00:00
dcone%netscape.com
726f629ae1 Re-wrote the drawing routines for this widget
git-svn-id: svn://10.0.0.236/trunk@8890 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 21:49:49 +00:00
cyeh%netscape.com
19a361f674 add timebomb perl script to mac pull
git-svn-id: svn://10.0.0.236/trunk@8889 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 21:28:39 +00:00
buster%netscape.com
cb664f26da reimplemented cell map in terms of nsVoidArrays for incremental building.
the cellmap is now built incrementally, driven by nsTableRowFrame::InitialReflow


git-svn-id: svn://10.0.0.236/trunk@8888 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 21:23:28 +00:00
cyeh%netscape.com
afe1ba95d3 change tool call from perl5 to perl, so that i can actually build
on my primary linux machine. this is purely a selfish change, and only
enabled for official type builds.

reviewed: cyeh. approved: cyeh


git-svn-id: svn://10.0.0.236/trunk@8887 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 21:19:04 +00:00
terry%netscape.com
145536c5fa Patch by Sam Ziegler <ziegler@mediaguaranty.com> -- was crashing if
you have exactly one product defined.  Oops!


git-svn-id: svn://10.0.0.236/trunk@8886 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 20:41:13 +00:00
terry%netscape.com
da880edc7c Patch by Sam Ziegler <ziegler@mediaguaranty.com> -- do some sanity
checking on the list of column names we're given.


git-svn-id: svn://10.0.0.236/trunk@8885 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 20:38:47 +00:00
warren%netscape.com
1ce76af0e9 Added jsj_JavaMember.c (Changes from SpiderMonkey131_BRANCH of js/ref/liveconnect.)
git-svn-id: svn://10.0.0.236/trunk@8884 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 20:17:31 +00:00
beard%netscape.com
72cd4eeaee Changes from SpiderMonkey131_BRANCH of ns/ref/liveconnect.
git-svn-id: svn://10.0.0.236/trunk@8883 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 20:15:32 +00:00
beard%netscape.com
721a9a478f Added jsj_JavaMember.c (Changes from SpiderMonkey131_BRANCH of ns/ref/liveconnect.)
git-svn-id: svn://10.0.0.236/trunk@8882 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 20:12:42 +00:00
spider%netscape.com
d5529afe80 Updates for new XPCOM interface changes to the font metrics
git-svn-id: svn://10.0.0.236/trunk@8881 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 20:11:08 +00:00
spider%netscape.com
44eb3af0f3 Adding netlib to the deps for nsIURL.h
git-svn-id: svn://10.0.0.236/trunk@8880 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 20:10:40 +00:00
kostello%netscape.com
08848b2e92 Added nsHTMLBR.cpp to project file
git-svn-id: svn://10.0.0.236/trunk@8879 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 19:53:21 +00:00
kostello%netscape.com
142620bced These changes match the Windows/Unix changes to methods to take a parameter instead of returning a value.
git-svn-id: svn://10.0.0.236/trunk@8876 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 19:09:55 +00:00
kostello%netscape.com
d599cef011 Add nsIDialog.h and nsILabel.h to MANIFEST
git-svn-id: svn://10.0.0.236/trunk@8875 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 19:00:38 +00:00
kipp%netscape.com
5bba47b39c Use new SetAttr API
git-svn-id: svn://10.0.0.236/trunk@8874 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 18:44:11 +00:00
kipp%netscape.com
bc26d54909 Use NS_NewHTMLBR to create BR content objects
git-svn-id: svn://10.0.0.236/trunk@8873 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 18:40:39 +00:00
kipp%netscape.com
6efc1700b6 Added NS_NewHTMLBR
git-svn-id: svn://10.0.0.236/trunk@8872 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 18:40:16 +00:00
kipp%netscape.com
fe9e562295 Removed old content code
git-svn-id: svn://10.0.0.236/trunk@8871 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 18:40:03 +00:00
kipp%netscape.com
fe08b8a496 Use new SetAttr API; implement (cheesy) version of new SetAttr entry points
git-svn-id: svn://10.0.0.236/trunk@8870 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 18:39:46 +00:00
kipp%netscape.com
a71e2703a2 Define new SetAttr api
git-svn-id: svn://10.0.0.236/trunk@8869 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 18:39:13 +00:00
kipp%netscape.com
255014182e Use new SetAttr API
git-svn-id: svn://10.0.0.236/trunk@8868 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 18:38:53 +00:00
kipp%netscape.com
e209c98eab Added new source file
git-svn-id: svn://10.0.0.236/trunk@8867 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 18:38:37 +00:00
kipp%netscape.com
6a4a0f9c36 new
git-svn-id: svn://10.0.0.236/trunk@8866 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 18:38:27 +00:00
kipp%netscape.com
5c7786f39f Added entity reduction for attributes; fixed a bug with incremental loading that would cause some content to seemingly disappear
git-svn-id: svn://10.0.0.236/trunk@8865 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 17:51:32 +00:00
ebina%netscape.com
2fd7cc20b7 Transfer encoded gzip streams were sent to this converter, but the
transfer-encoding was never removed from the URL structure, causing
infinite recursion.  This fixes that bug.


git-svn-id: svn://10.0.0.236/trunk@8864 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 16:31:12 +00:00
kipp%netscape.com
a7b4e24cf4 Fixed porting bug when porting to xpcom'd nsIContent API
git-svn-id: svn://10.0.0.236/trunk@8863 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 16:09:06 +00:00
dcone%netscape.com
4470edff4a fixed some updating problems
git-svn-id: svn://10.0.0.236/trunk@8862 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 15:14:48 +00:00
dcone%netscape.com
b33d20d927 update fix
git-svn-id: svn://10.0.0.236/trunk@8861 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 15:10:01 +00:00
dcone%netscape.com
85b4a44fb1 fixed updating
git-svn-id: svn://10.0.0.236/trunk@8860 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 15:08:46 +00:00
ramiro%netscape.com
8843e8b87e Replace duplicate functions fe_GravityCorrectForms() and fe_ScrollForms() with
XfeMoveChildrenByOffset().


git-svn-id: svn://10.0.0.236/trunk@8859 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 14:30:56 +00:00
ramiro%netscape.com
fcf525416f Make sure the debug event comments are printed only for slamm.
git-svn-id: svn://10.0.0.236/trunk@8858 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 14:14:59 +00:00
ramiro%netscape.com
768c0e1048 Workaround for broken automated browser tests.
git-svn-id: svn://10.0.0.236/trunk@8857 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 14:10:50 +00:00
mccabe%netscape.com
a7b8207a95 Further runtime error work... expose many new errors as catchable
exceptions.  Mostly syntax errors, so far.  Fixed missing #if
JS_HAS_ERROR_EXCEPTIONS


git-svn-id: svn://10.0.0.236/trunk@8856 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 09:49:43 +00:00
mccabe%netscape.com
1cf03b53f5 Added a call to js_ErrorToException to
the compile-error reporting mechanism,
providing a way to associate exceptions
(very likely SyntaxError exceptions)
with compile-time errors.

(Hopefully this is temporary, as I'd
prefer one central place in the
error-reporting process to put the
js_ErrorToException call.)

Also changed the error reporter in js.c
to only ignore error reports marked with
the JSREPORT_EXCEPTION advisory flag when
the error occurs during javascript execution.

If it's at the toplevel compilation
level, then the error is still reported
(and the exception discarded.)

The api is feeling slightly dirtier, but
it still seems like the best
compromise...


git-svn-id: svn://10.0.0.236/trunk@8855 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 08:17:40 +00:00
mccabe%netscape.com
d4a8ee886c Added jsmsg.def to the list of files used by the
'make tar' target.


git-svn-id: svn://10.0.0.236/trunk@8854 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 07:33:13 +00:00
mccabe%netscape.com
e02c67ff07 Made the enum JSErrNum into a typedef
enum JSErrNum, and changed a uintN
errorNumber declaration to JSErrNum.

It'd be nice to change the uintN
errorNumber field in JSErrorReport to
JSErrNum, but it's not clear that
JSErrNum is or should be exposed in the
API.  Any C esthetes want to offer their
opinions?

It made my debugger slightly happier.


git-svn-id: svn://10.0.0.236/trunk@8853 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 07:07:26 +00:00
cls%seawood.org
a10067bd62 More fixes.
git-svn-id: svn://10.0.0.236/trunk@8852 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 03:57:13 +00:00
cls%seawood.org
0aee1faed1 Fixed problem with file permissions not being set.
git-svn-id: svn://10.0.0.236/trunk@8851 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 03:33:55 +00:00
ddrinan%netscape.com
e365a381c6 Set NETSCAPE_OFFICIAL in order to trigger the perl script that generates the Cartman hooks
git-svn-id: svn://10.0.0.236/trunk@8850 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 02:49:51 +00:00
cls%seawood.org
2c89e09d03 Made the people:who field large enough for username%domain
git-svn-id: svn://10.0.0.236/trunk@8849 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 01:08:41 +00:00
troy%netscape.com
fd0d7ccb59 Changes nsIView and nsIScrollableView interfaces to conform to
XPCOM conventions


git-svn-id: svn://10.0.0.236/trunk@8848 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 19:16:11 +00:00
morse%netscape.com
e72a6e6400 fix bustage on all platforms
git-svn-id: svn://10.0.0.236/trunk@8847 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 16:42:20 +00:00
morse%netscape.com
7c4dc96e03 still trying to fix up mac
git-svn-id: svn://10.0.0.236/trunk@8846 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 15:59:53 +00:00
morse%netscape.com
0c4eb3452c one more attempt to clean up mac build
git-svn-id: svn://10.0.0.236/trunk@8845 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 15:43:56 +00:00
morse%netscape.com
9787972139 disable trust labels for mac
git-svn-id: svn://10.0.0.236/trunk@8844 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 13:55:38 +00:00
morse%netscape.com
2b8a3458a8 I give up, backing out trust labels
git-svn-id: svn://10.0.0.236/trunk@8843 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 08:49:56 +00:00
morse%netscape.com
ea58f0d336 giving up on mac for now, backing out some but not all of the changes
git-svn-id: svn://10.0.0.236/trunk@8842 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 07:09:27 +00:00
morse%netscape.com
e03f574b38 another attempt to fix linux bustage
git-svn-id: svn://10.0.0.236/trunk@8841 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 06:46:25 +00:00
morse%netscape.com
115715a1d8 attempt to fix build bustage on Sun in gromit tinderbox
git-svn-id: svn://10.0.0.236/trunk@8840 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 06:10:12 +00:00
morse%netscape.com
fbfaab83ad fix compile error
git-svn-id: svn://10.0.0.236/trunk@8839 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 06:01:22 +00:00
morse%netscape.com
ba2b3e9469 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@8838 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 05:54:08 +00:00
morse%netscape.com
4768c7b5e1 second attempt to fix linux bustage on gromit
git-svn-id: svn://10.0.0.236/trunk@8837 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 05:47:25 +00:00
morse%netscape.com
66e6aa031c attempt to fix bustage on the mac
git-svn-id: svn://10.0.0.236/trunk@8836 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 05:09:35 +00:00
morse%netscape.com
5dcb038fa0 attempt to fix linux bustage on gromit
git-svn-id: svn://10.0.0.236/trunk@8835 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 04:49:13 +00:00
morse%netscape.com
6d2505f53f added trust labels
git-svn-id: svn://10.0.0.236/trunk@8834 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 03:40:51 +00:00
morse%netscape.com
4f44efb156 mkaccess.h
git-svn-id: svn://10.0.0.236/trunk@8833 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 03:23:42 +00:00
morse%netscape.com
1ad2e68e4b fixed background color on signon viewer
git-svn-id: svn://10.0.0.236/trunk@8832 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 03:22:40 +00:00
morse%netscape.com
e2077b95a4 added string for cookie management
git-svn-id: svn://10.0.0.236/trunk@8831 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 03:21:00 +00:00
leaf%mozilla.org
c18bed5a9b removed the offending _jri entry
git-svn-id: svn://10.0.0.236/trunk@8830 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 00:12:52 +00:00
shaver%netscape.com
bdaf9a8ddf don't use JS_InternString for now -- weird crash in JS_AtomizeString
git-svn-id: svn://10.0.0.236/trunk@8829 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 23:46:47 +00:00
cls%seawood.org
4a37c272a1 Tweaked clobber_all dependency for autoconf tinderbox build.
git-svn-id: svn://10.0.0.236/trunk@8828 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 22:37:34 +00:00
cls%seawood.org
6f9015b67e Needed for --enable-dom.
git-svn-id: svn://10.0.0.236/trunk@8827 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 22:28:46 +00:00
cls%seawood.org
664ce07f1a Fixed problem of autoconf not using ACCFLAGS when using --enable-debug.
git-svn-id: svn://10.0.0.236/trunk@8826 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 22:12:53 +00:00
kipp%netscape.com
54c474764c Fixed bug introduced during nsIContent porting
git-svn-id: svn://10.0.0.236/trunk@8825 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 20:44:42 +00:00
kipp%netscape.com
29e64a354f XPCOM'ized nsIContent and nsIHTMLContent
git-svn-id: svn://10.0.0.236/trunk@8824 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 20:20:38 +00:00
kipp%netscape.com
96b63db44c Added error module for the layout system
git-svn-id: svn://10.0.0.236/trunk@8823 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 20:20:00 +00:00
kipp%netscape.com
8a06d2f5c0 Port to updated nsIContent API
git-svn-id: svn://10.0.0.236/trunk@8822 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 20:19:32 +00:00
rickg%netscape.com
07289be70e improved script handling--required by changes to DTD
git-svn-id: svn://10.0.0.236/trunk@8821 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 19:32:30 +00:00
rickg%netscape.com
04d51e2437 improved script handling--required by changes to DTD
git-svn-id: svn://10.0.0.236/trunk@8820 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 19:31:00 +00:00
despotdaemon%netscape.com
a236f89786 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@8819 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 15:11:19 +00:00
despotdaemon%netscape.com
91269b50d0 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@8818 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 15:10:49 +00:00
rickg%netscape.com
bc1fcf5d5a added noembed support
git-svn-id: svn://10.0.0.236/trunk@8817 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 06:52:17 +00:00
briano%netscape.com
6e313c1a0a Not needed.
git-svn-id: svn://10.0.0.236/trunk@8816 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 06:31:58 +00:00
briano%netscape.com
311bf3dfb6 Added an optimization fix.
git-svn-id: svn://10.0.0.236/trunk@8815 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 06:31:18 +00:00
rpotts%netscape.com
f48912ead3 Changes to allow building when STRICT is defined.
git-svn-id: svn://10.0.0.236/trunk@8814 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 06:30:49 +00:00
rpotts%netscape.com
791769f2e4 Changes to allow building when STRICT is defined.
git-svn-id: svn://10.0.0.236/trunk@8813 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 06:21:50 +00:00
rpotts%netscape.com
e61cbfd632 Added casts to allow building with STRICT defined...
git-svn-id: svn://10.0.0.236/trunk@8812 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 06:19:23 +00:00
rpotts%netscape.com
f267a054e1 Added specific GDI casts to allow building when STRICT is defined
git-svn-id: svn://10.0.0.236/trunk@8811 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 06:18:17 +00:00
cls%seawood.org
58743f3d5d Only link against -ljsj if JAVA_OR_OJI.
git-svn-id: svn://10.0.0.236/trunk@8810 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 06:17:01 +00:00
cls%seawood.org
cf4fa97a21 Commented out outdated non-OJI section.
git-svn-id: svn://10.0.0.236/trunk@8809 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 06:12:03 +00:00
cls%seawood.org
09107f3813 Added ifdef JAVA_OR_OJI around jsjava.h include.
git-svn-id: svn://10.0.0.236/trunk@8808 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 05:50:45 +00:00
rickg%netscape.com
6b0996df7c lots of performance work, bug fixes, and tag handling upgrades
git-svn-id: svn://10.0.0.236/trunk@8807 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 05:08:20 +00:00
rickg%netscape.com
9923f54f7f added BinarySearch method for faster string searches
git-svn-id: svn://10.0.0.236/trunk@8806 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 05:06:50 +00:00
sdagley%netscape.com
d9a9d0c30c When you add a call to an external function, include the F**KING header!!
git-svn-id: svn://10.0.0.236/trunk@8805 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:45:23 +00:00
warren%netscape.com
d20f81781c Premature checkin of renamed nsRepository.
git-svn-id: svn://10.0.0.236/trunk@8804 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:42:29 +00:00
mcafee%netscape.com
9c9dabf8b6 Fixing build bustage on Linux
git-svn-id: svn://10.0.0.236/trunk@8803 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:33:31 +00:00
mcafee%netscape.com
b23a134de1 Fixing build bustage on Linux
git-svn-id: svn://10.0.0.236/trunk@8802 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:27:09 +00:00
troy%netscape.com
d68daf37b3 Added some comments
git-svn-id: svn://10.0.0.236/trunk@8801 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:26:33 +00:00
kipp%netscape.com
d44a503526 Create anchors using NS_NewHTMLAnchor
git-svn-id: svn://10.0.0.236/trunk@8800 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:17:02 +00:00
kipp%netscape.com
64ec20b0cd Use AddRef instead of mRefCnt++; make implementation classes implement HandleDOMEvent; provide HandleDOMEvent generic routine for base behavior; provide TriggerLink for link clicking behavior
git-svn-id: svn://10.0.0.236/trunk@8799 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:16:46 +00:00
kipp%netscape.com
a025e7517b Implement nsHTMLGenericContainerContent; removed anchor code from HandleDOMEvent; implement TriggerLink
git-svn-id: svn://10.0.0.236/trunk@8798 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:15:55 +00:00
kipp%netscape.com
fa7b263033 Stubbed out HandleDOMEvent; and initialized refcnt (doh!)
git-svn-id: svn://10.0.0.236/trunk@8797 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:14:46 +00:00
kipp%netscape.com
0e6478e9bb Added new source
git-svn-id: svn://10.0.0.236/trunk@8796 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:13:56 +00:00
kipp%netscape.com
4c85e1db08 new
git-svn-id: svn://10.0.0.236/trunk@8795 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:13:29 +00:00
kipp%netscape.com
4fdac61f25 Added NewHTMLAnchor
git-svn-id: svn://10.0.0.236/trunk@8794 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:13:15 +00:00
kipp%netscape.com
e247d39ff4 Added new atoms
git-svn-id: svn://10.0.0.236/trunk@8793 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:13:03 +00:00
fur%netscape.com
1ab259806c Shane's makefiles
git-svn-id: svn://10.0.0.236/trunk@8792 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:04:11 +00:00
fur%netscape.com
65bdc27683 New file to deal with case of Java field and method with same name.
git-svn-id: svn://10.0.0.236/trunk@8791 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:03:51 +00:00
fur%netscape.com
8a8bb3d77e Error messages, in separate file for internationalization purposes.
git-svn-id: svn://10.0.0.236/trunk@8790 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:03:05 +00:00
fur%netscape.com
4eb3df0d29 Transferred work from private ns tree back into mozilla.
git-svn-id: svn://10.0.0.236/trunk@8789 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 03:00:50 +00:00
shaver%netscape.com
5f49f22fb7 Move current_node and top_node to top_state, to protect them from tables.
Handle table and row and cell data.
(We do nested-table text now.)


git-svn-id: svn://10.0.0.236/trunk@8788 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 02:52:27 +00:00
shaver%netscape.com
8e2e51702b move top_node and current_node into top_state, where they're invulnerable to the evil tactics of table layout
git-svn-id: svn://10.0.0.236/trunk@8787 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 02:49:13 +00:00
fur%netscape.com
c3bc213bef Somehow, montulli resurrected this dead file. Killing it again.
git-svn-id: svn://10.0.0.236/trunk@8786 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 02:47:25 +00:00
troy%netscape.com
1568e2814d Changed interface nsIFontMetrics to use the XPCOM conventions for returning
a nsresult


git-svn-id: svn://10.0.0.236/trunk@8785 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 02:34:34 +00:00
warren%netscape.com
6edcfe6a82 Fixed typo
git-svn-id: svn://10.0.0.236/trunk@8784 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 02:24:41 +00:00
mcafee%netscape.com
1a33421fe1 Fixing bustage on Solaris, Linux.
git-svn-id: svn://10.0.0.236/trunk@8783 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 02:23:08 +00:00
warren%netscape.com
9f2fefb606 Moved nsresult from nsISupports.h to nsError.h (so that it's defined for C files).
git-svn-id: svn://10.0.0.236/trunk@8782 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 02:21:49 +00:00
fur%netscape.com
8d0f6d433f Updated Mac build instructions.
git-svn-id: svn://10.0.0.236/trunk@8781 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 02:20:24 +00:00
fur%netscape.com
5ac9b15456 Replaced with new CodeWarrior project file macbuild/JSRef.mcp
git-svn-id: svn://10.0.0.236/trunk@8780 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 02:20:00 +00:00
mccabe%netscape.com
2ae960ccbd More loose ends towards merging the development branch.
git-svn-id: svn://10.0.0.236/trunk@8779 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 01:53:39 +00:00
warren%netscape.com
2ab76ffdb1 Added test for service manager.
git-svn-id: svn://10.0.0.236/trunk@8778 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 01:51:44 +00:00
pierre%netscape.com
f3a8b74f77 fixed freeze in XP_FileOpen()
git-svn-id: svn://10.0.0.236/trunk@8777 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 01:38:21 +00:00
pierre%netscape.com
25ac0a5f73 added nsHTMLGenericContent.cpp + nsHTMLHR.cpp
git-svn-id: svn://10.0.0.236/trunk@8776 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 01:27:11 +00:00
sdagley%netscape.com
e106f26073 Checking in for warren. Added nsIServiceManager.h to MANIFEST and nsServiceManager.cpp to xpcomPPC.mcp.
git-svn-id: svn://10.0.0.236/trunk@8775 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 01:17:19 +00:00
terry%netscape.com
77e993115e OK, turn it on -- changes will now actually have effect.
git-svn-id: svn://10.0.0.236/trunk@8774 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 00:51:15 +00:00
ftang%netscape.com
9dd07e6ba0 add XP_ASSERT IsUTF8String for more data source. reviewed by rjc
git-svn-id: svn://10.0.0.236/trunk@8773 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 00:42:07 +00:00
terry%netscape.com
22e2a9d2bf Need full pathname for CVS_PASSFILE, since change directories before using cvs.
git-svn-id: svn://10.0.0.236/trunk@8772 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 00:41:24 +00:00
mccabe%netscape.com
eb64550ea4 New platforms! More work from development branch.
git-svn-id: svn://10.0.0.236/trunk@8771 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 00:40:07 +00:00
mccabe%netscape.com
ac4f37b0a5 Propagate lots 'o work from the development branch.
Including:

Preliminary work on internationalizing error messages

Preliminary work on exposing runtime errors as catchable exceptions

ECMA-proposed throw and try/catch/finally, with multiple catch clauses
and catchguards

ECMA-proposed in/instanceof operators

IEEE-conformant number to string conversion

Fixes and other good stuff.


git-svn-id: svn://10.0.0.236/trunk@8770 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 00:38:43 +00:00
ftang%netscape.com
354837520c add XP_ASSERT for IsUTF8String, reviewed by rjc
git-svn-id: svn://10.0.0.236/trunk@8769 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 00:37:15 +00:00
terry%netscape.com
a7a3a142df Oops; wrong environment variable name.
git-svn-id: svn://10.0.0.236/trunk@8768 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 00:36:03 +00:00
ftang%netscape.com
63b976aae5 make HT Find/property dialogbox work with UTF8. reviewed by rjc
git-svn-id: svn://10.0.0.236/trunk@8767 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 00:35:53 +00:00
terry%netscape.com
7879e50a84 Keep a .cvspass in our own directory.
git-svn-id: svn://10.0.0.236/trunk@8766 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 00:35:19 +00:00
terry%netscape.com
16c17cd55c We have a variable containing the full path to the cvs executable; use it!
git-svn-id: svn://10.0.0.236/trunk@8765 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 00:20:10 +00:00
terry%netscape.com
e9a056744d Got to quote those stupid at-signs.
git-svn-id: svn://10.0.0.236/trunk@8764 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:57:42 +00:00
terry%netscape.com
9aa5b62699 Initial public checkin of despot.
git-svn-id: svn://10.0.0.236/trunk@8763 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:50:39 +00:00
ddrinan%netscape.com
72c4d2a866 Perl script to generate all export symbols
git-svn-id: svn://10.0.0.236/trunk@8762 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:48:13 +00:00
ddrinan%netscape.com
b540c7a2e7 Perl script to generate the dispatcher module.
git-svn-id: svn://10.0.0.236/trunk@8761 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:47:10 +00:00
ddrinan%netscape.com
9f84fe1bf0 Added dispatcher generation and populatio step. Need for Cartman
git-svn-id: svn://10.0.0.236/trunk@8760 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:45:59 +00:00
ddrinan%netscape.com
a0270fc060 Added Cartman hook and dispather tables export
git-svn-id: svn://10.0.0.236/trunk@8759 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:44:13 +00:00
kipp%netscape.com
9c9e082f74 Use -Zi and PDB's for dll creation too
git-svn-id: svn://10.0.0.236/trunk@8758 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:32:47 +00:00
kipp%netscape.com
83d75c3fa0 Stub out new nsIHTMLContent methods
git-svn-id: svn://10.0.0.236/trunk@8757 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:32:27 +00:00
kipp%netscape.com
dce19ba23f Added AttributeToString and StringToAttribute methods
git-svn-id: svn://10.0.0.236/trunk@8756 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:31:44 +00:00
kipp%netscape.com
44d2a050e0 Export new HTML-HR factory method
git-svn-id: svn://10.0.0.236/trunk@8755 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:31:28 +00:00
kipp%netscape.com
e0da233ad3 Stub out StringToAttribute
git-svn-id: svn://10.0.0.236/trunk@8754 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:31:12 +00:00
kipp%netscape.com
457a57d4bc Implement StringToAttribute; AttributeToString is now public
git-svn-id: svn://10.0.0.236/trunk@8753 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:30:50 +00:00
kipp%netscape.com
27a5a65695 Make AttributeToString abstract
git-svn-id: svn://10.0.0.236/trunk@8752 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:30:22 +00:00
kipp%netscape.com
dfe6b9472a Removed content code and exposed a factory method for creating HR frames; made the HR frame code content neutral
git-svn-id: svn://10.0.0.236/trunk@8751 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:29:36 +00:00
kipp%netscape.com
a2b0c41087 Added new atoms
git-svn-id: svn://10.0.0.236/trunk@8750 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:29:05 +00:00
kipp%netscape.com
948d0b54b0 Use new factory method for HR's
git-svn-id: svn://10.0.0.236/trunk@8749 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:27:55 +00:00
kipp%netscape.com
575b985fb8 new
git-svn-id: svn://10.0.0.236/trunk@8748 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:27:19 +00:00
kipp%netscape.com
3f8cc11cae Added new source files to the build
git-svn-id: svn://10.0.0.236/trunk@8747 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:25:56 +00:00
rods%netscape.com
9da3e5c9c9 Fixed nsLabel and nsDialog to compile and link correctly
git-svn-id: svn://10.0.0.236/trunk@8746 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 23:00:03 +00:00
rods%netscape.com
78dd60c020 initial checkin for nsLabel and nsDialog
git-svn-id: svn://10.0.0.236/trunk@8745 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 22:49:12 +00:00
rods%netscape.com
5bcda3f0f2 Added nsLabel and nsDialog
git-svn-id: svn://10.0.0.236/trunk@8744 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 22:48:50 +00:00
cls%seawood.org
d6fc11d98a Fixed problem with makedepend under autoconf.
git-svn-id: svn://10.0.0.236/trunk@8743 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 22:40:14 +00:00
rods%netscape.com
e23a0b6401 Fixed Focus issues with text field in Find Dialog
git-svn-id: svn://10.0.0.236/trunk@8742 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 22:36:10 +00:00
rods%netscape.com
57b7fafb37 Fixed OnPaint to draw Dialog and children correctly.
git-svn-id: svn://10.0.0.236/trunk@8741 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 22:11:04 +00:00
warren%netscape.com
9f4a9bc9a2 Added class ID to OnShutdown.
git-svn-id: svn://10.0.0.236/trunk@8740 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 21:47:44 +00:00
kipp%netscape.com
a877826048 Use kIHTMLContentSinkIID so that inferior compilers will work
git-svn-id: svn://10.0.0.236/trunk@8739 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 21:29:50 +00:00
warren%netscape.com
7876a9e765 Added service manager mechanism.
git-svn-id: svn://10.0.0.236/trunk@8738 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 21:28:35 +00:00
warren%netscape.com
31ab835636 Added service manager mechanism.
git-svn-id: svn://10.0.0.236/trunk@8737 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 21:25:34 +00:00
cyeh%netscape.com
7a3853ed06 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@8736 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 21:03:57 +00:00
ftang%netscape.com
7f80acda40 change rdf winfe to make it render UTF8. reviewed by hyatt
git-svn-id: svn://10.0.0.236/trunk@8735 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:58:01 +00:00
ftang%netscape.com
eb3d75865f fix UTF8 input problem when switch input method back to roman . reviewed by brade.
git-svn-id: svn://10.0.0.236/trunk@8734 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:52:12 +00:00
slamm%netscape.com
43c5f4b46f Bring back the commercial animation.
git-svn-id: svn://10.0.0.236/trunk@8733 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:41:53 +00:00
pinkerton%netscape.com
6890fabd3c Added RowIsContainer() with additional param to say if container is open or closed.
git-svn-id: svn://10.0.0.236/trunk@8732 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:34:43 +00:00
pinkerton%netscape.com
e44c8223ff Use new CNavCenterScroller and tell it to adjust the scroll bar when the column headers appear or disappear.
git-svn-id: svn://10.0.0.236/trunk@8731 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:33:42 +00:00
pinkerton%netscape.com
dd7e62a93c Fix mozilla problem with not showing "about:" page when security is not present.
git-svn-id: svn://10.0.0.236/trunk@8730 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:33:08 +00:00
pinkerton%netscape.com
20a62cdd6c Changed type of scroller in NavCenter panes to be a CNavCenterScroller to better handle scroll bar adjustments on mode switches.
git-svn-id: svn://10.0.0.236/trunk@8729 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:32:36 +00:00
pinkerton%netscape.com
3958cd059f New RowIsContainer method which can replace CellHasDropFlag to determine if the row is a container and if it is currently expanded or collapsed. Fixed auto-expand d&d to use this instead of CellHasDropFlag so it will still autoexpand when drop flags are not used.
git-svn-id: svn://10.0.0.236/trunk@8728 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:32:00 +00:00
pinkerton%netscape.com
53c9fd8dcb Add CNavCenterScroller.cp
git-svn-id: svn://10.0.0.236/trunk@8727 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:30:24 +00:00
pinkerton%netscape.com
be05c26268 Register CNavCenterScroller
git-svn-id: svn://10.0.0.236/trunk@8726 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:29:57 +00:00
spider%netscape.com
8e70f7c6b3 Initialize the device context to null. This was causing a crash if the
device context for a widget were queried prior the window getting
created.


git-svn-id: svn://10.0.0.236/trunk@8725 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:29:04 +00:00
pinkerton%netscape.com
f7238017b5 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@8723 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:24:25 +00:00
briano%netscape.com
064ec3f07b New file to support DG/UX. Thanks to Marc Fraioli (fraioli@dg-rtp.dg.com) for doing all the work.
git-svn-id: svn://10.0.0.236/trunk@8722 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:20:15 +00:00
terry%netscape.com
53b92f890a Get rid of "verified_ts" and "resolved_ts" stuff; we aren't keeping
that stuff in this database.


git-svn-id: svn://10.0.0.236/trunk@8721 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:19:31 +00:00
briano%netscape.com
9b4a75a2f8 Added support for DG/UX, and a fix for bug#254.
git-svn-id: svn://10.0.0.236/trunk@8720 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:17:38 +00:00
morse%netscape.com
25fa2a9395 strings for cookie trust labels
git-svn-id: svn://10.0.0.236/trunk@8719 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 20:10:32 +00:00
rods%netscape.com
516bef3e06 Fixed ref count problem in FindNext (should be able to switch docs now)
git-svn-id: svn://10.0.0.236/trunk@8718 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 19:55:03 +00:00
despotdaemon%netscape.com
74735ce7ed Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@8717 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 19:45:55 +00:00
terry%netscape.com
a7f2ec4561 Back out last change. No diffs are showing up at all!
git-svn-id: svn://10.0.0.236/trunk@8716 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 19:23:41 +00:00
terry%netscape.com
5faec3d6ed Fixed bug 544 -- now use unified diffs instead of context diffs in mail.
git-svn-id: svn://10.0.0.236/trunk@8715 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 19:17:59 +00:00
despotdaemon%netscape.com
9db2998134 Pseudo-automatic update of changes made by ddrinan@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@8714 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 18:52:19 +00:00
terry%netscape.com
326cdd5d93 Fixed bug 513 -- adding CC field caused crash.
git-svn-id: svn://10.0.0.236/trunk@8713 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 18:32:15 +00:00
terry%netscape.com
d777ef9189 Debugging support -- if we get an SQL error, show the SQL command that failed.
git-svn-id: svn://10.0.0.236/trunk@8712 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 18:31:05 +00:00
rods%netscape.com
90439d8478 Added a couple of data members to the header and cleanup some of the
ref count problems


git-svn-id: svn://10.0.0.236/trunk@8711 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 18:15:14 +00:00
cyeh%netscape.com
86bed95f8a add set-timebomb.pl to MozillaSourceUnix module. grrrr...
git-svn-id: svn://10.0.0.236/trunk@8710 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 17:31:08 +00:00
kipp%netscape.com
29d4a0272c Spanked hard to support multiple sink contexts; incremental reflow now happens only on WillInterrupt
git-svn-id: svn://10.0.0.236/trunk@8709 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 16:20:16 +00:00
kipp%netscape.com
52524023bc Avoid a crash bug
git-svn-id: svn://10.0.0.236/trunk@8708 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 16:19:38 +00:00
kipp%netscape.com
69abb91cd8 Added a new atom
git-svn-id: svn://10.0.0.236/trunk@8707 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 16:19:27 +00:00
kipp%netscape.com
22faac0a08 Removed the PushMark method
git-svn-id: svn://10.0.0.236/trunk@8706 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 16:18:14 +00:00
rods%netscape.com
3817dceba6 Added XP Find dialog
git-svn-id: svn://10.0.0.236/trunk@8705 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 16:14:37 +00:00
rods%netscape.com
9423ca5271 Added registration of nsIDialog and nsILabel
git-svn-id: svn://10.0.0.236/trunk@8704 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 16:13:56 +00:00
rods%netscape.com
1dab6ce3ed Enabled the "Find" menu item
git-svn-id: svn://10.0.0.236/trunk@8703 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 16:12:51 +00:00
rods%netscape.com
143a4edd02 Added selection code that is currently ifdef out (but it is needed)
git-svn-id: svn://10.0.0.236/trunk@8702 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 16:06:22 +00:00
rods%netscape.com
adec4ac54a Fixed up some of the selection methods
git-svn-id: svn://10.0.0.236/trunk@8701 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 16:02:33 +00:00
rods%netscape.com
db20bc1720 Added FindNext method
git-svn-id: svn://10.0.0.236/trunk@8700 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 15:59:24 +00:00
rods%netscape.com
8d96945b15 Adjusted the method signatures on most of the Selection methods
git-svn-id: svn://10.0.0.236/trunk@8699 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 15:58:37 +00:00
rods%netscape.com
a012be6a6d Added FindNext Method for Find/Search
git-svn-id: svn://10.0.0.236/trunk@8698 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 15:57:59 +00:00
rods%netscape.com
0c8b07b665 Fixed bugs and adjusted TextFrame to match revised method signatures
git-svn-id: svn://10.0.0.236/trunk@8697 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 15:56:40 +00:00
rods%netscape.com
3434b35d86 Added Find/Search capability and supporting methods
git-svn-id: svn://10.0.0.236/trunk@8696 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 15:55:31 +00:00
troy%netscape.com
ffd571769e Interface change
git-svn-id: svn://10.0.0.236/trunk@8695 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 15:19:44 +00:00
despotdaemon%netscape.com
c54323a1f8 Pseudo-automatic update of changes made by shaver@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@8694 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 14:29:58 +00:00
terry%netscape.com
b248dd0fc8 Get rid of the "read and eat" line; it doesn't make sense here.
git-svn-id: svn://10.0.0.236/trunk@8693 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 13:50:41 +00:00
shaver%netscape.com
207c272479 actually reflow altered text
git-svn-id: svn://10.0.0.236/trunk@8692 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 13:42:25 +00:00
shaver%netscape.com
f7c264af72 wire up DOM_Nodes and LO_Elements; maybe fix <LI> CSS bug? (all #if DOM)
git-svn-id: svn://10.0.0.236/trunk@8691 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 10:29:42 +00:00
shaver%netscape.com
c55c619ff7 current_node is always the current_node now. also: set up for text mutation
git-svn-id: svn://10.0.0.236/trunk@8690 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 10:23:35 +00:00
shaver%netscape.com
85c33a05a7 break universal dep on lm_dom.h; start wiring DOM_Node<->LO_Element
git-svn-id: svn://10.0.0.236/trunk@8689 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 07:53:18 +00:00
shaver%netscape.com
4d1d70ca76 switch to void * in lo_DocState, not DOM_Node * because too many places #include "layout.h"
git-svn-id: svn://10.0.0.236/trunk@8688 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 07:52:07 +00:00
cls%seawood.org
04dcdb28d2 More tweaks for make depend under autoconf.
git-svn-id: svn://10.0.0.236/trunk@8687 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 07:07:47 +00:00
cyeh%netscape.com
0a30b35651 change default homepage
git-svn-id: svn://10.0.0.236/trunk@8686 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 07:03:39 +00:00
cls%seawood.org
59a413497e ifdef'd out MOZ_OJI as only the bare minimum should be on by default for the autoconf buld.
git-svn-id: svn://10.0.0.236/trunk@8685 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 07:00:13 +00:00
cls%seawood.org
e24cdf321b Removed SHACK and added DOM.
git-svn-id: svn://10.0.0.236/trunk@8684 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 06:55:52 +00:00
cls%seawood.org
ccf2f2da9b Removed check for thread libs as they conflicted with nsprpub threads. Added option for dom and removed option for shack.
git-svn-id: svn://10.0.0.236/trunk@8683 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 06:54:06 +00:00
troy%netscape.com
d4260119a8 Changed nsIFontCache to conform to XPCOM standards
git-svn-id: svn://10.0.0.236/trunk@8682 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 05:16:41 +00:00
troy%netscape.com
e9e900374e Changed nsIViewManager interface to conform to XPCOM conventions
git-svn-id: svn://10.0.0.236/trunk@8681 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 04:56:56 +00:00
toshok%netscape.com
7b65e1900d use $(MAKE) instead of make, so it does not break on bsd machines, where make and gmake are *completely* different
git-svn-id: svn://10.0.0.236/trunk@8680 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 04:37:44 +00:00
morse%netscape.com
92b0d35986 fix bug found by mjudge
git-svn-id: svn://10.0.0.236/trunk@8679 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 04:10:08 +00:00
danm%netscape.com
43ea3d3f41 plug leak in LayoutButtons
git-svn-id: svn://10.0.0.236/trunk@8678 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 03:10:14 +00:00
michaelp%netscape.com
65433b951d changes for new viewobserver stuff.
git-svn-id: svn://10.0.0.236/trunk@8677 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 03:09:22 +00:00
michaelp%netscape.com
6702cf7961 changes to support viewobserver and troy's spankage of the device context.
git-svn-id: svn://10.0.0.236/trunk@8676 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 03:05:23 +00:00
michaelp%netscape.com
7b063335be DeleteFrame() now takes a pres context.
git-svn-id: svn://10.0.0.236/trunk@8675 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 03:02:39 +00:00
troy%netscape.com
b69cf1e950 Fixed call to GetFontCache
git-svn-id: svn://10.0.0.236/trunk@8674 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 02:56:22 +00:00
michaelp%netscape.com
1b64af0c9b added support for view observer.
git-svn-id: svn://10.0.0.236/trunk@8673 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 02:54:06 +00:00
michaelp%netscape.com
cdc8077956 DeleteFrame() now takes a pres context. now uses view's setclientdata().
git-svn-id: svn://10.0.0.236/trunk@8672 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 02:52:54 +00:00
troy%netscape.com
c9c414f1c0 Turned off gamma correction
git-svn-id: svn://10.0.0.236/trunk@8671 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 02:50:19 +00:00
michaelp%netscape.com
d1419737b5 deleteframe() now takes a pres context.
git-svn-id: svn://10.0.0.236/trunk@8670 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 02:50:17 +00:00
michaelp%netscape.com
a230da72a6 made resizereflow() an ns_imethod.
git-svn-id: svn://10.0.0.236/trunk@8669 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 02:49:49 +00:00
michaelp%netscape.com
a2271263d0 changed to pass in prescontext to deleteframe().
git-svn-id: svn://10.0.0.236/trunk@8668 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 02:49:15 +00:00
jgellman%netscape.com
dc657f64cd little patch trouble. whups.
git-svn-id: svn://10.0.0.236/trunk@8667 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 02:10:16 +00:00
troy%netscape.com
c9a229357c nsIDeviceContext API change
git-svn-id: svn://10.0.0.236/trunk@8666 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 01:58:02 +00:00
jgellman%netscape.com
fbb1f40d77 Remove data source entries from cache table when the data source is destroyed
git-svn-id: svn://10.0.0.236/trunk@8665 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 01:33:36 +00:00
thom%netscape.com
cded20b7b6 fixed heap corruption in mac version of the function mangleResourceIntoFileURL. This change ONLY effects macs
git-svn-id: svn://10.0.0.236/trunk@8664 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 01:33:14 +00:00
danm%netscape.com
0e8ef25cee teach RDF toolbars to work with toolbar display mode property. r:hyatt
git-svn-id: svn://10.0.0.236/trunk@8663 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 01:22:30 +00:00
danm%netscape.com
0be3f7f951 new toolbar property, new function which fetches templates, fix hashtable bug, bmkNotifFunc notifies regardless of property type. r:rjc
git-svn-id: svn://10.0.0.236/trunk@8662 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 01:19:41 +00:00
thom%netscape.com
4fb9e17b43 got the file in sync with troy's fontCache changes
git-svn-id: svn://10.0.0.236/trunk@8661 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 00:28:10 +00:00
slamm%netscape.com
d96f914fc1 Standardize the format of the translation resources. Make it easier to see errors.
git-svn-id: svn://10.0.0.236/trunk@8660 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 00:20:44 +00:00
kostello%netscape.com
1d4ec605a7 Added support for hit testing and mac support methods for translating between mac coordinate system and nsRects
git-svn-id: svn://10.0.0.236/trunk@8659 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 23:04:30 +00:00
troy%netscape.com
eb362e45da fixed my bustage.
git-svn-id: svn://10.0.0.236/trunk@8658 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 23:02:03 +00:00
kostello%netscape.com
993b43f31c Added methods to update window bounds rect during resize and drag
git-svn-id: svn://10.0.0.236/trunk@8657 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 23:01:56 +00:00
kostello%netscape.com
8711902173 Added Mac to nsRect support. Added HitTest logic
git-svn-id: svn://10.0.0.236/trunk@8656 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 23:01:17 +00:00
despotdaemon%netscape.com
2f43037e94 Pseudo-automatic update of changes made by mwelch@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@8655 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 22:55:53 +00:00
troy%netscape.com
15c93f90c2 More changes to nsIDeviceContext interface
git-svn-id: svn://10.0.0.236/trunk@8654 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 22:45:35 +00:00
pierre%netscape.com
6d97cac430 In the previous checkin, the path "powerplant/utility" was added to the 'domDebug.o' target only. Adding it to 'dom.o' now and verified that it was already in the 'shlb' target.
git-svn-id: svn://10.0.0.236/trunk@8653 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 22:16:56 +00:00
troy%netscape.com
ce4befff05 Fixed build bustage
git-svn-id: svn://10.0.0.236/trunk@8652 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 22:12:26 +00:00
pierre%netscape.com
555a919ddd added path "powerplant/utility"
added files jsurl.cpp + nsFrameList.cpp + nsJSWindowCollection.cpp


git-svn-id: svn://10.0.0.236/trunk@8651 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 22:11:05 +00:00
pierre%netscape.com
5847c66bb7 added nsHTMLLayer.cpp
git-svn-id: svn://10.0.0.236/trunk@8650 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 22:09:02 +00:00
pierre%netscape.com
349def3a94 re-enabled the View, Web and Pref factories
git-svn-id: svn://10.0.0.236/trunk@8649 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 22:08:39 +00:00
cyeh%netscape.com
f4f16f6856 added subroutine to adjust agent number everytime you build. for official releases only.
git-svn-id: svn://10.0.0.236/trunk@8648 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 22:04:19 +00:00
morse%netscape.com
bdcafcea64 added apple keychain
git-svn-id: svn://10.0.0.236/trunk@8647 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 21:14:41 +00:00
pinkerton%netscape.com
8ee4b70edd Fix bug where if rdf file specified that all columns should be hidden the heap would get corrupted. Now forces at least one column to be visible.
git-svn-id: svn://10.0.0.236/trunk@8646 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 21:10:07 +00:00
troy%netscape.com
917cd408ec Change to GetRenderingContext
git-svn-id: svn://10.0.0.236/trunk@8645 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 21:09:25 +00:00
morse%netscape.com
ef190fe835 single-signon fix
git-svn-id: svn://10.0.0.236/trunk@8644 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 21:05:58 +00:00
troy%netscape.com
26782f0ba7 API change to nsIDeviceContext
git-svn-id: svn://10.0.0.236/trunk@8643 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 20:45:56 +00:00
troy%netscape.com
9c277134e0 More API changes to nsIDeviceContext
git-svn-id: svn://10.0.0.236/trunk@8642 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 20:43:04 +00:00
troy%netscape.com
ad7971ffd1 Another attempt
git-svn-id: svn://10.0.0.236/trunk@8641 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 20:31:39 +00:00
rods%netscape.com
049f316091 Added InitData struct
git-svn-id: svn://10.0.0.236/trunk@8640 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 20:29:59 +00:00
pinkerton%netscape.com
8ef5bef118 Respond better to column add/delete events.
git-svn-id: svn://10.0.0.236/trunk@8639 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 20:27:10 +00:00
pinkerton%netscape.com
d85b33f31d More 4.5 merges. Fix problem with not showing form data in viewSource, print, saveAs.
git-svn-id: svn://10.0.0.236/trunk@8638 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 20:26:40 +00:00
rods%netscape.com
6a3942478b Added nsLabel and nsDialog to build
git-svn-id: svn://10.0.0.236/trunk@8637 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 20:26:30 +00:00
pinkerton%netscape.com
6ec83383e2 Fix bug that caused crash when you clicked onany blank area of the toolbar.
git-svn-id: svn://10.0.0.236/trunk@8636 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 20:25:21 +00:00
cyeh%netscape.com
b10aaddcd7 disable updating the build number in about-all.html everytime you build. needs to be turned on for official releases only until ckid/mcvs resource problem is solved. editing about-all.html causes file to be blown away.
git-svn-id: svn://10.0.0.236/trunk@8635 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 20:20:06 +00:00
shaver%netscape.com
abea434d80 tell people how to change their new password
git-svn-id: svn://10.0.0.236/trunk@8634 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 20:18:13 +00:00
rods%netscape.com
ee0e8ac41f Initial working checkin
git-svn-id: svn://10.0.0.236/trunk@8633 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 20:16:20 +00:00
cyeh%netscape.com
64c2293952 udpate the build number in about-all.html everytime you build.
git-svn-id: svn://10.0.0.236/trunk@8632 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 20:15:30 +00:00
rods%netscape.com
c900d89367 Added nsILabel.h and nsIDialog.h
git-svn-id: svn://10.0.0.236/trunk@8631 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 20:09:16 +00:00
cls%seawood.org
656bd9c3e8 Added timebomb target.
git-svn-id: svn://10.0.0.236/trunk@8630 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 19:53:30 +00:00
cls%seawood.org
16915211df Enabled dependencies for autoconf.
git-svn-id: svn://10.0.0.236/trunk@8629 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 19:52:22 +00:00
cls%seawood.org
0343f30ff3 Removed HistoryFrame.cpp
git-svn-id: svn://10.0.0.236/trunk@8628 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 19:48:25 +00:00
cls%seawood.org
519fb35777 Put DEBUG ifdefs around debugEvent() call. Approved by shaver%netscape.com
git-svn-id: svn://10.0.0.236/trunk@8627 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 19:47:48 +00:00
troy%netscape.com
29ae90ea2b More changes to nsIDeviceContext API
git-svn-id: svn://10.0.0.236/trunk@8626 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 18:47:22 +00:00
troy%netscape.com
6d5ab64685 Fixed build bustage
git-svn-id: svn://10.0.0.236/trunk@8625 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 18:46:51 +00:00
troy%netscape.com
c37f617b06 Combined GetScrollBarWidth/GetScrollBarHeight into one function
GetScrollBarDimensions


git-svn-id: svn://10.0.0.236/trunk@8624 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 18:30:55 +00:00
terry%netscape.com
08b3a23aa0 Hacky preventative for bug 540 -- disable the "edit long description"
feature entirely.


git-svn-id: svn://10.0.0.236/trunk@8623 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 18:14:14 +00:00
dcone%netscape.com
b816bd348e Fixed some small bugs.
git-svn-id: svn://10.0.0.236/trunk@8622 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 18:03:15 +00:00
dcone%netscape.com
754bbcabc4 updated some routines
git-svn-id: svn://10.0.0.236/trunk@8621 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 17:46:58 +00:00
dcone%netscape.com
9583aa7936 Updated to use regions
git-svn-id: svn://10.0.0.236/trunk@8620 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 17:36:13 +00:00
dcone%netscape.com
6ffe0079d6 updated some routines
git-svn-id: svn://10.0.0.236/trunk@8619 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 17:35:49 +00:00
dcone%netscape.com
36dc0329f9 Updated the clipping region, and some coordinate fixes
git-svn-id: svn://10.0.0.236/trunk@8618 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 17:33:51 +00:00
dcone%netscape.com
ce98b2dc7d Fixed the messaging and local/global point location
git-svn-id: svn://10.0.0.236/trunk@8617 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 17:32:57 +00:00
dcone%netscape.com
d3fa62c6e9 added a region native data type
git-svn-id: svn://10.0.0.236/trunk@8616 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 17:31:59 +00:00
troy%netscape.com
d90e450524 Fixed some bustage I intriduced
git-svn-id: svn://10.0.0.236/trunk@8615 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 17:26:48 +00:00
terry%netscape.com
0a02093753 Fixed bug 538 -- can now search through summary and description fields.
git-svn-id: svn://10.0.0.236/trunk@8614 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 17:22:23 +00:00
despotdaemon%netscape.com
c0a315bbec Pseudo-automatic update of changes made by leaf@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@8613 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 16:10:26 +00:00
terry%netscape.com
ce187b5865 The default product is now called "Mozilla".
git-svn-id: svn://10.0.0.236/trunk@8612 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 15:30:25 +00:00
terry%netscape.com
9e813ee681 Sort the list of products.
git-svn-id: svn://10.0.0.236/trunk@8611 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 15:30:01 +00:00
terry%netscape.com
e0dadcef2d Fixed bug 539 -- cope with multiple products in the system.
git-svn-id: svn://10.0.0.236/trunk@8610 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 14:56:19 +00:00
terry%netscape.com
9b69df4fe2 I'd prefer to be known as terry@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@8609 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 14:55:27 +00:00
shaver%netscape.com
f6d9f7194c start to flesh out lm_CDataOp (you can set the title!) and remove attrs from HTMLElementPrivate
git-svn-id: svn://10.0.0.236/trunk@8608 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 09:13:00 +00:00
shaver%netscape.com
a59d815420 implemented cdata_setter
git-svn-id: svn://10.0.0.236/trunk@8607 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 09:11:45 +00:00
valeski%netscape.com
3574dedce6 nsString.h - the mBuf member data type was the raw PRUnichar type, changed it to chartype.
nsString.cpp - we were dropping the ending null-byte/unichar when expanding/growing strings


git-svn-id: svn://10.0.0.236/trunk@8606 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 08:15:40 +00:00
mcafee%netscape.com
164839f6fb Fixing compile warnings on Linux
git-svn-id: svn://10.0.0.236/trunk@8605 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 07:13:15 +00:00
mcafee%netscape.com
89e50ae71e Fixing Solaris warning, native compiler
git-svn-id: svn://10.0.0.236/trunk@8604 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 07:02:04 +00:00
shaver%netscape.com
917fc12442 protect against multiple inclusion (possibe now with DOM/layout/libmocha)
git-svn-id: svn://10.0.0.236/trunk@8603 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 05:54:56 +00:00
shaver%netscape.com
0f715858f6 DOM stub tweakage and fixed Text/CData init
git-svn-id: svn://10.0.0.236/trunk@8602 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 05:54:01 +00:00
shaver%netscape.com
903f2bc165 small DOM changes (new and old)
git-svn-id: svn://10.0.0.236/trunk@8601 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 05:51:47 +00:00
troy%netscape.com
50594d5ee2 Made sure that _I32_MIN is defined (it appears to be a Windows only thing)
git-svn-id: svn://10.0.0.236/trunk@8600 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 05:28:32 +00:00
shaver%netscape.com
0e484541ef Added CData operations (append, insert, delete, replace, substring).
Added Element {[sg]et,remove}Attribute
Check for illegal child in Node ops appendChild, insertBefore and replaceChild.


git-svn-id: svn://10.0.0.236/trunk@8599 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 05:25:40 +00:00
troy%netscape.com
3a6cdd1b67 Changes to nsIDeviceContext API
git-svn-id: svn://10.0.0.236/trunk@8598 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 05:14:35 +00:00
troy%netscape.com
9b42ea4cb1 Changed nsIDeviceContext interface to conform [more] with COM conventions
git-svn-id: svn://10.0.0.236/trunk@8597 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 05:05:03 +00:00
beard%netscape.com
7ddcb2ecb1 Removed hotlist.c from non-debug target as well.
git-svn-id: svn://10.0.0.236/trunk@8596 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 03:48:28 +00:00
saari%netscape.com
2d833c1592 Fix for bug # 311002
Fixed Pinkerton's Mac scrolling optimization so that it doesn't grab the bits of floating windows above Navigator.

This is Mac only.


git-svn-id: svn://10.0.0.236/trunk@8595 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 02:43:43 +00:00
kipp%netscape.com
59188b9ffd Fixed compiler problem with other compilers by removing useless const in front of void
git-svn-id: svn://10.0.0.236/trunk@8594 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 02:39:36 +00:00
akkana%netscape.com
044185b9c7 Add a PR_ASSERT (yes, a crash) for unreproducible crash 113534;
add code for "Send now" under Publish menu, but only if MOZ_MAIL_NEWS.


git-svn-id: svn://10.0.0.236/trunk@8593 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 01:55:52 +00:00
brendan%netscape.com
541a9954be Fix funky whitespace.
git-svn-id: svn://10.0.0.236/trunk@8591 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 01:48:25 +00:00
cyeh%netscape.com
863cdb6dda added lib/libdom for shaver to MozillaSourceCommon
git-svn-id: svn://10.0.0.236/trunk@8590 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 01:13:27 +00:00
peterl%netscape.com
2512a98a4d hacked colgroup & col handling
git-svn-id: svn://10.0.0.236/trunk@8589 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 01:04:22 +00:00
peterl%netscape.com
b27c2c0f07 added default attribute handling
git-svn-id: svn://10.0.0.236/trunk@8588 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:57:24 +00:00
peterl%netscape.com
b3ace934f1 no longer force unique style contexts
git-svn-id: svn://10.0.0.236/trunk@8587 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:57:05 +00:00
peterl%netscape.com
6655d27071 remove text attribute processing
git-svn-id: svn://10.0.0.236/trunk@8586 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:56:17 +00:00
peterl%netscape.com
6a79a8665f removed hack attibute
removed attribute propogation form rows & row groups


git-svn-id: svn://10.0.0.236/trunk@8585 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:55:30 +00:00
peterl%netscape.com
25d65b9397 added table dir to includes
git-svn-id: svn://10.0.0.236/trunk@8584 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:51:11 +00:00
peterl%netscape.com
2a62f344d7 added table cell style rule inheritance
git-svn-id: svn://10.0.0.236/trunk@8583 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:50:52 +00:00
peterl%netscape.com
6a2a44c8c2 reversed rule ordering
git-svn-id: svn://10.0.0.236/trunk@8582 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:49:55 +00:00
peterl%netscape.com
fbcc465682 made col tag be handled as a leaf
git-svn-id: svn://10.0.0.236/trunk@8581 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:48:53 +00:00
peterl%netscape.com
bc4211d1ed added td & th
git-svn-id: svn://10.0.0.236/trunk@8580 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:48:06 +00:00
peterl%netscape.com
bf5ece7e7a reversed sheet/rule ordering
added backstop rule count


git-svn-id: svn://10.0.0.236/trunk@8579 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:47:15 +00:00
leaf%mozilla.org
16725b12a1 Added a timebomb target for "MOZILLA_OFFICIAL" builds, w/unix and perl5.
git-svn-id: svn://10.0.0.236/trunk@8578 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:47:14 +00:00
peterl%netscape.com
edecfc5a4c commented on sheet/rule ordering
git-svn-id: svn://10.0.0.236/trunk@8577 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:46:34 +00:00
peterl%netscape.com
c85bf386f6 added backstop rule count
git-svn-id: svn://10.0.0.236/trunk@8576 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:46:13 +00:00
mlm%netscape.com
173d73ff3c Fix from Jeff Garzik (jgarzik@pobox.com): remove SIZE_MIN and SIZE_MAX
from the include file, as they're not referenced anywhere.


git-svn-id: svn://10.0.0.236/trunk@8575 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:29:24 +00:00
rjc%netscape.com
f329c08189 Expose HT_LayoutComplete() API for layout notification.
git-svn-id: svn://10.0.0.236/trunk@8574 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:27:59 +00:00
rjc%netscape.com
a2915eebfa Disable personal toolbar relations (important for Mac). Also, when removing columns
during pane deletion, adjust internal list.


git-svn-id: svn://10.0.0.236/trunk@8573 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:27:18 +00:00
shaver%netscape.com
f5d79b0ece fix typo and kill warning
git-svn-id: svn://10.0.0.236/trunk@8572 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:17:40 +00:00
shaver%netscape.com
16523d1fdc build libdom (if DOM)
git-svn-id: svn://10.0.0.236/trunk@8571 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:14:53 +00:00
shaver%netscape.com
d5d47cefc1 add libdom to link, if DOM set
git-svn-id: svn://10.0.0.236/trunk@8570 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:14:34 +00:00
shaver%netscape.com
816b75fd0b added code to drive the lib/libdom stuff
git-svn-id: svn://10.0.0.236/trunk@8569 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:09:43 +00:00
shaver%netscape.com
fce77d4a7b added hooks to lib/libdom stuff, and exposed lo_IsEmptyTag for use by libmocha DOM hooks
git-svn-id: svn://10.0.0.236/trunk@8568 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:05:26 +00:00
terry%netscape.com
70ff2bd9be Don't choke if the user hits a space or something in the 'changed in
last ___ days' field.


git-svn-id: svn://10.0.0.236/trunk@8567 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:03:27 +00:00
shaver%netscape.com
f1886e2f6b added first cut of Level-1 DOM (not layout or XML dependent)
git-svn-id: svn://10.0.0.236/trunk@8566 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-27 00:02:31 +00:00
despotdaemon%netscape.com
c2826b34ce Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@8564 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 23:06:50 +00:00
despotdaemon%netscape.com
5704816c0b Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@8563 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 23:05:15 +00:00
kostello%netscape.com
a6e15c2d3c Remove Widget from the build list (it shouldn't have been their in the first place) -- my error.
git-svn-id: svn://10.0.0.236/trunk@8562 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 22:58:54 +00:00
terry%netscape.com
7d0b388dfa Oops; mail the right URL.
git-svn-id: svn://10.0.0.236/trunk@8561 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 22:51:52 +00:00
despotdaemon%netscape.com
95ddf7bfd9 Pseudo-automatic update of changes made by briano@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@8560 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 22:48:51 +00:00
jwz%mozilla.org
d3b1cdd2e4 give the image a border
git-svn-id: svn://10.0.0.236/trunk@8559 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 22:36:44 +00:00
jwz%mozilla.org
04599c8a68 smaller version of the ant image (8k instead of 17k.)
git-svn-id: svn://10.0.0.236/trunk@8558 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 22:36:05 +00:00
terry%netscape.com
91fea0ae34 Turn on mail notifications.
git-svn-id: svn://10.0.0.236/trunk@8557 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 22:23:00 +00:00
ramiro%netscape.com
280d940b0a Remove unused include.
git-svn-id: svn://10.0.0.236/trunk@8556 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 21:38:46 +00:00
despotdaemon%netscape.com
094a26a86b Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@8555 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 21:35:49 +00:00
slamm%netscape.com
f2557c4d40 Have cvs ingnore the generated '.c' files.
git-svn-id: svn://10.0.0.236/trunk@8554 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 21:29:46 +00:00
michaelp%netscape.com
c6b1a0acee killed Set/GetRootWindow() methods in viewmanager. this is now inferred from
the root view. added ability to select painting in view resizing.


git-svn-id: svn://10.0.0.236/trunk@8553 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 21:24:58 +00:00
michaelp%netscape.com
56715faccc killed viewmanager SetRootWindow() call.
git-svn-id: svn://10.0.0.236/trunk@8552 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 21:24:19 +00:00
rickg%netscape.com
dac30eb9e4 various bug fixes, performance wip
git-svn-id: svn://10.0.0.236/trunk@8551 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 21:20:41 +00:00
leaf%mozilla.org
b8dc6ccf8e kill warnings and '?' lines when people update with obj files, etc.
git-svn-id: svn://10.0.0.236/trunk@8550 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 21:17:04 +00:00
hyatt%netscape.com
aba751fdab Improvements to the control strip in the RDF tree widget. Fixes for two P0 bugs:
#311916 and #314414.


git-svn-id: svn://10.0.0.236/trunk@8549 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 20:51:01 +00:00
robinf%netscape.com
215bbb6978 removing outdated Mac dialer help file
git-svn-id: svn://10.0.0.236/trunk@8548 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 20:37:22 +00:00
robinf%netscape.com
66ab409858 removing outdated files
git-svn-id: svn://10.0.0.236/trunk@8547 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 20:36:09 +00:00
beard%netscape.com
09c7594e49 Removed hotlist.c, which was obsoleted (bad, bad!) before verifying on the Mac.
git-svn-id: svn://10.0.0.236/trunk@8546 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 20:33:53 +00:00
donm%netscape.com
0ba7886e77 reverting to ifdef BUILD_OFFICIAL around the build_numbering system.
git-svn-id: svn://10.0.0.236/trunk@8545 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 20:27:11 +00:00
terry%netscape.com
e12ca36c15 About the Bugzilla source.
git-svn-id: svn://10.0.0.236/trunk@8544 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 20:15:06 +00:00
beard%netscape.com
02ad7fd44b Removed obsolete files: bkmks.h, hotlist.h so build will work.
git-svn-id: svn://10.0.0.236/trunk@8543 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 19:41:55 +00:00
av%netscape.com
764e512976 Anthrax changes
git-svn-id: svn://10.0.0.236/trunk@8542 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 19:30:58 +00:00
terry%netscape.com
8cc794caff Stop looking for "target_fix_version".
git-svn-id: svn://10.0.0.236/trunk@8541 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 19:26:59 +00:00
pinkerton%netscape.com
b6e496388d No more netcaster. Minor 4.5 merges (added referrer to DoGetURL).
git-svn-id: svn://10.0.0.236/trunk@8540 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 19:07:03 +00:00
pinkerton%netscape.com
608220c2a7 Column support in tree view.
git-svn-id: svn://10.0.0.236/trunk@8539 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 19:04:54 +00:00
pinkerton%netscape.com
3805b9c59e no more netcaster.
git-svn-id: svn://10.0.0.236/trunk@8538 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 19:02:43 +00:00
pinkerton%netscape.com
c15c254fa0 No more netcaster.
git-svn-id: svn://10.0.0.236/trunk@8537 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 19:02:26 +00:00
pinkerton%netscape.com
0a32d2eefa More printing fixes and 4.5 landings. Mostly minor except for print fix.
git-svn-id: svn://10.0.0.236/trunk@8536 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 19:02:13 +00:00
slamm%netscape.com
30412e1a6d Have cvs ignore the generated files.
git-svn-id: svn://10.0.0.236/trunk@8535 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 18:36:12 +00:00
90 changed files with 29513 additions and 102 deletions

View File

@@ -0,0 +1,9 @@
#! gmake
DEPTH = ../..
DIRS = include src
INCLUDE = $(INCLUDE) -I$(DEPTH)/modules/libimg/public
include $(DEPTH)/config/rules.mk

View File

@@ -0,0 +1,14 @@
#! gmake
DEPTH = ../..
topsrcdir = @top_srcdir@
VPATH = @srcdir@
srcdir = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = include src
INCLUDE += -I$(topsrcdir)/modules/libimg/public
include $(topsrcdir)/config/rules.mk

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1017 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1017 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1,8 @@
#
# This is a list of local files which get copied to the mozilla:dist directory
#
rdf.h
vocab.h
htrdf.h
jsec2rdf.h

View File

@@ -0,0 +1,26 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
#
#
MODULE = rdf
DEPTH = ../../..
EXPORTS = rdf.h htrdf.h vocab.h jsec2rdf.h
include $(DEPTH)/config/rules.mk

View File

@@ -0,0 +1,33 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
#
#
MODULE = rdf
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
EXPORTS = rdf.h htrdf.h vocab.h jsec2rdf.h
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,8 @@
#
# This is a list of local files which get copied to the mozilla:dist directory
#
rdf.h
vocab.h
htrdf.h
jsec2rdf.h

View File

@@ -0,0 +1,580 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef htrdf_h___
#define htrdf_h___
/* the RDF HT API */
#include "rdf.h"
#ifdef XPCOM_XXX
#include "ntypes.h"
#include "structs.h"
#include "pa_parse.h"
#endif
/*
* Hyper Tree Api
*
* Hyper tree is the tree view of the rdf store. This is for use by the FE in
* implementing the nav center.
*
* The RDF structure could be a gnarly graph whose nodes are RDF_Resource.
* There can be multiple tree views (HT_View) into this graph. Corresponding
* to each view, there is a hyper tree whose nodes are HT_Resource.
* Each HT_Resource belongs to exactly one HT_View.
* The FE iterate over the hypertree to draw it. It can start the iteration
* either at the top or at some interior node. When some state change occurs
* in the hypertree, the FE will get notified about the node on which the
* change took place. At that point, it can either redraw the whole thing
* or do a partial redraw. The FE does this by iterating over the relevant
* portions of the hypertree. Since the hypertree is a strict tree, the FE
* can also iterate upwards.
*
*
* Possible state changes to the hypertree of an HT_View include :
* (i) addition/deletion of nodes
* (ii) containers closing/opening
* (iii) selection changes
* These changes could occur either because of
* (i) User clicking around the tree
* (ii) Network activity
* (iii) scripts running
* The FE can recieve notifications about these activities.
* If the FE does not want to be notified about something, it can set
* the notification mask to block certain notifications.
*/
NSPR_BEGIN_EXTERN_C
/* Opaque data structures */
typedef struct _HT_ViewStruct* HT_View;
typedef struct _HT_PaneStruct* HT_Pane;
typedef struct _HT_CursorStruct* HT_Cursor;
typedef struct _HT_ResourceStruct* HT_Resource;
/* for use with HT_GetTemplate */
enum TemplateType {
ht_template_chrome,
ht_template_management,
ht_template_navigation
};
/*
* This is the Notification structure that gets passed to the HT layer on
* creation of the view. This should be allocated/static memory. HT layer
* will store a pointer to this structure. On CloseView, a View Closed
* event will be generated and the notification function will be called.
* At this point, the module using HT can free the memory associated with
* the HT_Notification struct.
*/
typedef uint32 HT_NotificationMask;
typedef uint32 HT_Event;
typedef uint32 HT_Error;
#define HT_NoErr 0
#define HT_Err 1
struct _HT_NotificationStruct;
typedef void (*HT_NotificationProc)(struct _HT_NotificationStruct*,
HT_Resource node, HT_Event whatHappened, void *param, uint32 tokenType);
typedef struct _HT_NotificationStruct {
HT_NotificationProc notifyProc;
void *data;
} HT_NotificationStruct;
/*
* HT_Notification events and masks
*/
typedef HT_NotificationStruct* HT_Notification;
#define HT_EVENT_NODE_ADDED 0x00000001UL
#define HT_EVENT_NODE_DELETED_DATA 0x00000002UL
#define HT_EVENT_NODE_DELETED_NODATA 0x00000004UL
#define HT_EVENT_NODE_VPROP_CHANGED 0x00000008UL
#define HT_EVENT_NODE_SELECTION_CHANGED 0x00000010UL
#define HT_EVENT_NODE_OPENCLOSE_CHANGED 0x00000020UL
#define HT_EVENT_VIEW_CLOSED 0x00000040UL /* same as HT_EVENT_VIEW_DELETED */
#define HT_EVENT_VIEW_DELETED 0x00000040UL /* same as HT_EVENT_VIEW_CLOSED */
#define HT_EVENT_VIEW_SELECTED 0x00000080UL
#define HT_EVENT_VIEW_ADDED 0x00000100UL
#define HT_EVENT_NODE_OPENCLOSE_CHANGING 0x00000200UL
#define HT_EVENT_VIEW_SORTING_CHANGED 0x00000400UL
#define HT_EVENT_VIEW_REFRESH 0x00000800UL
#define HT_EVENT_VIEW_WORKSPACE_REFRESH 0x00001000UL
#define HT_EVENT_NODE_EDIT 0x00002000UL
#define HT_EVENT_WORKSPACE_EDIT 0x00004000UL
#define HT_EVENT_VIEW_HTML_ADD 0x00008000UL
#define HT_EVENT_VIEW_HTML_REMOVE 0x00010000UL
#define HT_EVENT_NODE_ENABLE 0x00020000UL
#define HT_EVENT_NODE_DISABLE 0x00040000UL
#define HT_EVENT_NODE_SCROLLTO 0x00080000UL
#define HT_EVENT_COLUMN_ADD 0x00100000UL
#define HT_EVENT_COLUMN_DELETE 0x00200000UL
#define HT_EVENT_COLUMN_SIZETO 0x00400000UL
#define HT_EVENT_COLUMN_REORDER 0x00800000UL
#define HT_EVENT_COLUMN_SHOW 0x01000000UL
#define HT_EVENT_COLUMN_HIDE 0x02000000UL
#define HT_EVENT_VIEW_MODECHANGED 0x04000000UL
#define HT_EVENT_VIEW_WINDOWTYPE_CHANGED 0x04000000UL
#define HT_EVENT_NO_NOTIFICATION_MASK 0x00000000UL
#define HT_EVENT_DEFAULT_NOTIFICATION_MASK 0xFFFFFFFFUL
/*-----------------------------------------------------------------------*/
/* View/Pane Creation / Destruction / Management */
/*-----------------------------------------------------------------------*/
/* Window Types for Panes */
#define HT_POPUP_WINDOW 0
#define HT_DOCKED_WINDOW 1
#define HT_STANDALONE_WINDOW 2
#define HT_EMBEDDED_WINDOW 3
PR_PUBLIC_API(HT_Pane) HT_PaneFromResource(RDF_Resource r, HT_Notification n, PRBool autoFlush, PRBool autoOpen, PRBool useColumns);
PR_PUBLIC_API(HT_Pane) HT_PaneFromURL(void* context, char* url, char* templateType,
HT_Notification n, PRBool autoFlush, int32 param_count,
char** param_names, char** param_values);
/* NewQuickFilePane
* Creates a pane consisting of one view. This view has the RDF resource
* corresponding to the Quickfile folder as its root.
*/
PR_PUBLIC_API(HT_Pane) HT_NewQuickFilePane (HT_Notification notify);
/* NewToolbarPane
* Added by Dave
* Create a pane consisting of multiple views. Each view corresponds to a single toolbar.
*/
PR_PUBLIC_API(HT_Pane) HT_NewToolbarPane (HT_Notification notify);
/* NewPersonalToolbarPane
* Creates a pane consisting of one view. This view has the RDF resource
* corresponding to the Personal Toolbar folder as its root.
*/
PR_PUBLIC_API(HT_Pane) HT_NewPersonalToolbarPane (HT_Notification notify);
/* HT_NewBreadcrumbPane
*/
PR_PUBLIC_API(HT_Pane) HT_NewBreadcrumbPane (HT_Notification notify);
PR_PUBLIC_API(void) HT_AddToContainer (HT_Resource container, char *url, char *optionalTitle);
PR_PUBLIC_API(void) HT_AddBookmark (char *url, char *optionalTitle);
/* CreateView
* Takes an rdf node as the root of the view tree and creates a XP view.
* HT_Notification would be to the notifier when there is a state change.
*/
PR_PUBLIC_API(HT_Pane) HT_NewPane (HT_Notification notify);
/* DeleteView
* Destroy a valid view created via CreateView
*/
PR_PUBLIC_API(HT_Error) HT_DeleteView (HT_View view);
PR_PUBLIC_API(HT_Error) HT_DeletePane (HT_Pane pane);
/* HT_TopNode
* Obtain the top node associated with a view tree
*/
PR_PUBLIC_API(HT_Resource) HT_TopNode (HT_View view);
PR_PUBLIC_API(void*) HT_GetViewFEData (HT_View node);
PR_PUBLIC_API(void) HT_SetViewFEData (HT_View node, void* data);
PR_PUBLIC_API(void*) HT_GetPaneFEData (HT_Pane pane);
PR_PUBLIC_API(void) HT_SetPaneFEData (HT_Pane pane, void* data);
PR_PUBLIC_API(HT_View) HT_GetSelectedView (HT_Pane pane);
PR_PUBLIC_API(HT_Error) HT_SetSelectedView (HT_Pane pane, HT_View view);
#ifdef XPCOM_XXX
PR_PUBLIC_API(void) HT_LayoutComplete(MWContext *context, TagList *metaTags, char *url);
#endif
enum _HT_ViewType {
HT_VIEW_BOOKMARK=0, HT_VIEW_HISTORY, HT_VIEW_SITEMAP, HT_VIEW_FILES, HT_VIEW_SEARCH
} ;
typedef enum _HT_ViewType HT_ViewType;
/*
* HT_GetViewType: find a particular view type (returns NULL if not found or unknown)
*/
PR_PUBLIC_API(HT_View) HT_GetViewType (HT_Pane pane, HT_ViewType viewType);
/*
* HT_GetView
* Obtain the view tree associated with a node
*/
PR_PUBLIC_API(HT_View) HT_GetView (HT_Resource node);
PR_PUBLIC_API(HT_Pane) HT_GetPane (HT_View view);
/*
* HT_GetViewData / HT_SetViewData
* get/set FE specific data to be associated with a view
*/
PR_PUBLIC_API(void*) HT_GetNodeFEData (HT_Resource node);
PR_PUBLIC_API(void) HT_SetNodeFEData (HT_Resource node, void* data);
/*
* HT_GetNotificationMask / HT_SetNotificationMask
* get/set the notification mask associated with a view
*/
PR_PUBLIC_API(HT_Error) HT_GetNotificationMask (HT_Pane node, HT_NotificationMask *mask);
PR_PUBLIC_API(HT_Error) HT_SetNotificationMask (HT_Pane node, HT_NotificationMask mask);
/*-----------------------------------------------------------------------*/
/* View Traversal */
/*-----------------------------------------------------------------------*/
PR_PUBLIC_API(char *) HT_GetViewName(HT_View view);
/*
* HT_GetNthView
*/
PR_PUBLIC_API(HT_View) HT_GetNthView (HT_Pane pane, uint32 theIndex);
PR_PUBLIC_API(uint32) HT_GetViewIndex(HT_View view);
PR_PUBLIC_API(uint32) HT_GetViewListCount(HT_Pane pane);
/*
* HT_GetNthItem / HT_GetNodeIndex
* get the nth resource in a view (or NULL if not in view),
* or find a resource's index in a view
*/
PR_PUBLIC_API(HT_Resource) HT_GetNthItem (HT_View view, uint32 theIndex);
PR_PUBLIC_API(uint32) HT_GetNodeIndex(HT_View view, HT_Resource node);
PR_PUBLIC_API(uint32) HT_GetItemListCount(HT_View view);
PR_PUBLIC_API(uint16) HT_GetItemIndentation(HT_Resource r);
/*
* HT_GetParent
* obtain the parent of a node
*/
PR_PUBLIC_API(HT_Resource) HT_GetParent (HT_Resource node);
/*
* HT_NodeDisplayString/HT_ViewDisplayString (obsolete)
* obtain the name of a node
*/
PR_PUBLIC_API(HT_Error) HT_NodeDisplayString (HT_Resource node, char *buffer, int bufferLen); /* obsolete! */
PR_PUBLIC_API(HT_Error) HT_ViewDisplayString (HT_View view, char *buffer, int bufferLen); /* obsolete! */
/* an API for external access to the templates. It takes a specifier
defined by enum TemplateType, in this file. HT_GetTemplate() returns
the basic HT_Pane corresponding to the requested type. */
PR_PUBLIC_API(HT_Pane) HT_GetTemplate(int templateType);
PR_PUBLIC_API(PRBool) HT_GetTemplateData(HT_Resource node, void* token, uint32 tokenType, void **nodeData);
PR_PUBLIC_API(PRBool) HT_GetNodeData (HT_Resource node, void *token,
uint32 tokenType, void **data);
PR_PUBLIC_API(PRBool) HT_IsNodeDataEditable(HT_Resource node,
void *token, uint32 tokenType);
PR_PUBLIC_API(HT_Error) HT_SetNodeData (HT_Resource node, void *token,
uint32 tokenType, void *data);
PR_PUBLIC_API(HT_Error) HT_SetNodeName (HT_Resource node, void *data);
PR_PUBLIC_API(HT_Error) HT_SetTreeStateForButton(HT_Resource node, int state);
PR_PUBLIC_API(int) HT_GetTreeStateForButton(HT_Resource node);
PR_PUBLIC_API(HT_Error) HT_SetWindowType(HT_Pane pane, int windowType);
PR_PUBLIC_API(int) HT_GetWindowType(HT_Pane pane);
/*
* HT_GetLargeIconURL / HT_GetSmallIconURL
* obtain the large/small icon URLs for a node if available, otherwise return NULL
*/
PR_PUBLIC_API(char *) HT_GetWorkspaceLargeIconURL (HT_View view);
PR_PUBLIC_API(char *) HT_GetWorkspaceSmallIconURL (HT_View view);
PR_PUBLIC_API(char *) HT_GetNodeLargeIconURL (HT_Resource r);
PR_PUBLIC_API(char *) HT_GetNodeSmallIconURL (HT_Resource r);
PR_PUBLIC_API(char *) HT_GetIconURL(HT_Resource r, PRBool isToolbarIcon, PRBool isWorkspace, int buttonState);
PR_PUBLIC_API(char *) HT_GetLargeIconURL (HT_Resource r); /* obsolete! */
PR_PUBLIC_API(char *) HT_GetSmallIconURL (HT_Resource r); /* obsolete! */
/*
* HT_NewColumnCursor / HT_GetNextColumn / HT_DeleteColumnCursor
* obtain column information
*/
enum _HT_ColumnType {
HT_COLUMN_UNKNOWN=0, HT_COLUMN_STRING, HT_COLUMN_DATE_STRING,
HT_COLUMN_DATE_INT, HT_COLUMN_INT, HT_COLUMN_RESOURCE
} ;
typedef enum _HT_ColumnType HT_ColumnType;
PR_PUBLIC_API(HT_Cursor) HT_NewColumnCursor (HT_View view);
PR_PUBLIC_API(PRBool) HT_GetNextColumn(HT_Cursor cursor, char **colName,
uint32 *colWidth, void **token, uint32 *tokenType);
PR_PUBLIC_API(void) HT_DeleteColumnCursor(HT_Cursor cursor);
PR_PUBLIC_API(void) HT_SetColumnOrder(HT_View view, void *srcColToken,
void *destColToken,
PRBool afterDestFlag);
PR_PUBLIC_API(void) HT_SetSortColumn(HT_View view, void *token,
uint32 tokenType, PRBool descendingFlag);
PR_PUBLIC_API(void) HT_SetColumnWidth(HT_View view, void *token,
uint32 tokenType, uint32 width);
PR_PUBLIC_API(uint32) HT_GetColumnWidth(HT_View view, void *token, uint32 tokenType);
PR_PUBLIC_API(void) HT_SetColumnVisibility(HT_View view, void *token, uint32 tokenType, PRBool isHiddenFlag);
PR_PUBLIC_API(PRBool) HT_GetColumnVisibility(HT_View view, void *token, uint32 tokenType);
PR_PUBLIC_API(void) HT_ShowColumn(HT_View view, void *token, uint32 tokenType);
PR_PUBLIC_API(void) HT_HideColumn(HT_View view, void *token, uint32 tokenType);
PR_PUBLIC_API(PRBool) HT_ContainerSupportsNaturalOrderSort(HT_Resource container);
PR_PUBLIC_API(void) HT_SetColumnFEData(HT_View view, void *token, void *data);
PR_PUBLIC_API(void *) HT_GetColumnFEData (HT_View view, void *token);
PR_PUBLIC_API(void) HT_SetTopVisibleNodeIndex(HT_View view, uint32 topNodeIndex);
PR_PUBLIC_API(uint32) HT_GetTopVisibleNodeIndex(HT_View view);
/*
* HT Menu Commands
*/
enum _HT_MenuCmd {
HT_CMD_SEPARATOR=0, HT_CMD_OPEN, HT_CMD_OPEN_FILE, HT_CMD_PRINT_FILE,
HT_CMD_OPEN_NEW_WIN, HT_CMD_OPEN_COMPOSER, HT_CMD_OPEN_AS_WORKSPACE,
HT_CMD_NEW_BOOKMARK, HT_CMD_NEW_FOLDER, HT_CMD_NEW_SEPARATOR,
HT_CMD_MAKE_ALIAS, HT_CMD_ADD_TO_BOOKMARKS, HT_CMD_SAVE_AS,
HT_CMD_CREATE_SHORTCUT, HT_CMD_SET_TOOLBAR_FOLDER,
HT_CMD_SET_BOOKMARK_MENU, HT_CMD_SET_BOOKMARK_FOLDER, HT_CMD_CUT,
HT_CMD_COPY, HT_CMD_PASTE, HT_CMD_DELETE_FILE, HT_CMD_DELETE_FOLDER,
HT_CMD_REVEAL_FILEFOLDER, HT_CMD_PROPERTIES, HT_CMD_RENAME_WORKSPACE,
HT_CMD_DELETE_WORKSPACE, HT_CMD_MOVE_WORKSPACE_UP, HT_CMD_MOVE_WORKSPACE_DOWN,
HT_CMD_REFRESH, HT_CMD_EXPORT, HT_CMD_REMOVE_BOOKMARK_MENU,
HT_CMD_REMOVE_BOOKMARK_FOLDER, HT_CMD_SET_PASSWORD, HT_CMD_REMOVE_PASSWORD,
HT_CMD_EXPORTALL, HT_CMD_UNDO, HT_CMD_NEW_WORKSPACE, HT_CMD_RENAME, HT_CMD_FIND,
HT_CMD_GET_NEW_MAIL
};
typedef enum _HT_MenuCmd HT_MenuCmd;
PR_PUBLIC_API(HT_Cursor) HT_NewContextMenuCursor(HT_Resource r);
PR_PUBLIC_API(HT_Cursor) HT_NewContextualMenuCursor (HT_View view,
PRBool workspaceMenuCmds,
PRBool backgroundMenuCmds);
PR_PUBLIC_API(PRBool) HT_NextContextMenuItem(HT_Cursor c, HT_MenuCmd *menuCmd);
PR_PUBLIC_API(void) HT_DeleteContextMenuCursor(HT_Cursor c);
PR_PUBLIC_API(char *) HT_GetMenuCmdName(HT_MenuCmd menuCmd);
PR_PUBLIC_API(HT_Error) HT_DoMenuCmd(HT_Pane pane, HT_MenuCmd menuCmd);
PR_PUBLIC_API(PRBool) HT_IsMenuCmdEnabled(HT_Pane pane, HT_MenuCmd menuCmd);
/*
* HT_Find
* show HTML find dialog (hint is the default string to look for and can be NULL)
*/
PR_PUBLIC_API(void) HT_Find(char *hint);
/*
* HT_Properties
* show HTML dialog of node's properties
*/
PR_PUBLIC_API(void) HT_Properties (HT_Resource r);
/*
* HT_GetRDFResource
* obtain the RDF_Resource associated with a HT node
*/
PR_PUBLIC_API(RDF_Resource) HT_GetRDFResource (HT_Resource node);
/*
* Access the node's name and URL
*/
PR_PUBLIC_API(char *) HT_GetNodeURL(HT_Resource node);
PR_PUBLIC_API(char *) HT_GetNodeDisplayURL(HT_Resource node);
PR_PUBLIC_API(char *) HT_GetNodeName(HT_Resource node);
/*-----------------------------------------------------------------------*/
/* Accessor and Mutators */
/*-----------------------------------------------------------------------*/
/*
* HT_IsURLBar
* determine whether node is a URL bar
*/
PR_PUBLIC_API(PRBool) HT_IsURLBar (HT_Resource node);
/*
* HT_IsSeparator
* determine whether node is a separator
*/
PR_PUBLIC_API(PRBool) HT_IsSeparator (HT_Resource node);
/*
* HT_IsContainer
* determine whether node is a container
*/
PR_PUBLIC_API(PRBool) HT_IsContainer (HT_Resource node);
PR_PUBLIC_API(uint32) HT_GetCountVisibleChildren(HT_Resource node);
PR_PUBLIC_API(uint32) HT_GetCountDirectChildren(HT_Resource node);
PR_PUBLIC_API(HT_Resource) HT_GetContainerItem(HT_Resource parent, uint32 childNum);
/*
* HT_DataSource : obtain the origin of the data
* HT_IsLocalData : is the data local?
*/
PR_PUBLIC_API(PRBool) HT_IsLocalData (HT_Resource node) ;
PR_PUBLIC_API(char *) HT_DataSource (HT_Resource node) ;
PR_PUBLIC_API(HT_Pane) HT_GetHTPaneList ();
PR_PUBLIC_API(HT_Pane) HT_GetNextHTPane (HT_Pane pane);
/*
* HT_IsSelected / HT_GetSelectedState / HT_SetSelectedState
* manage selection state of a node; get/set operations will generate
* a HT_EVENT_NODE_SELECTION_CHANGED notification unless masked out
*/
PR_PUBLIC_API(PRBool) HT_IsSelected (HT_Resource node);
PR_PUBLIC_API(HT_Error) HT_GetSelectedState (HT_Resource node, PRBool *selectedState);
PR_PUBLIC_API(HT_Error) HT_SetSelectedState (HT_Resource node, PRBool isSelected);
PR_PUBLIC_API(HT_Error) HT_SetSelection (HT_Resource node);
PR_PUBLIC_API(HT_Error) HT_SetSelectionAll (HT_View view, PRBool selectedState);
PR_PUBLIC_API(HT_Error) HT_SetSelectionRange (HT_Resource node1, HT_Resource node2);
PR_PUBLIC_API(HT_Resource) HT_GetNextSelection(HT_View view, HT_Resource startingNode);
PR_PUBLIC_API(void) HT_ToggleSelection(HT_Resource node);
PR_PUBLIC_API(PRBool) HT_IsEnabled (HT_Resource node);
PR_PUBLIC_API(HT_Error) HT_GetEnabledState (HT_Resource node, PRBool *enabledState);
PR_PUBLIC_API(HT_Error) HT_SetEnabledState(HT_Resource node, PRBool isEnabled);
#ifdef XPCOM_XXX /* mwcontext dependency */
PR_PUBLIC_API(PRBool) HT_Launch(HT_Resource node, MWContext *context);
PR_PUBLIC_API(PRBool) HT_LaunchURL(HT_Pane pane, char *url, MWContext *context);
#endif
PR_PUBLIC_API(void) HT_TypeTo(HT_Pane pane, char *typed);
/*
* HT_NewCursor, HT_GetNextItem, HT_DeleteCursor
* Used to iterate over a container's children. Until the container has been
* opened at least once, you won't see any of the children.
*/
PR_PUBLIC_API(HT_Cursor) HT_NewCursor (HT_Resource node) ;
PR_PUBLIC_API(HT_Error) HT_DeleteCursor (HT_Cursor cursor) ;
PR_PUBLIC_API(HT_Resource) HT_GetNextItem (HT_Cursor cursor) ;
/*
* HT_IsContainerOpen / HT_GetOpenState / HT_SetOpenState
* manage open state of a node; get/set operations will generate
* a HT_EVENT_NODE_OPENCLOSE_CHANGED notification unless masked out
*/
PR_PUBLIC_API(PRBool) HT_IsContainerOpen (HT_Resource node);
PR_PUBLIC_API(HT_Error) HT_GetOpenState (HT_Resource containerNode, PRBool *openState);
PR_PUBLIC_API(HT_Error) HT_SetOpenState (HT_Resource containerNode, PRBool isOpen);
PR_PUBLIC_API(HT_Error) HT_SetAutoFlushOpenState (HT_Resource containerNode, PRBool isOpen);
/*
* HT_ItemHasForwardSibling / HT_ItemHasBackwardSibling
* determine if a given node has a following/previous sibling node
*/
PR_PUBLIC_API(PRBool) HT_ItemHasForwardSibling(HT_Resource r);
PR_PUBLIC_API(PRBool) HT_ItemHasBackwardSibling(HT_Resource r);
PR_PUBLIC_API(void) HT_NewWorkspace(HT_Pane pane, char *id, char *optionalTitle);
PR_PUBLIC_API(void) HT_SetWorkspaceOrder(HT_View src, HT_View dest, PRBool afterDestFlag);
/*-----------------------------------------------------------------------*/
/* Creating new containers */
/*-----------------------------------------------------------------------*/
PR_PUBLIC_API(HT_Resource) HT_MakeNewContainer(HT_Resource parent, char* name);
/*-----------------------------------------------------------------------*/
/* Drag and Drop */
/* drop actions should be made an enum */
/*-----------------------------------------------------------------------*/
typedef uint8 HT_DropAction;
#define DROP_NOT_ALLOWED 0
#define COPY_MOVE_CONTENT 1
#define UPLOAD_RDF 2
#define COPY_MOVE_LINK 3
#define UPLOAD_LFS 4
#define DROP_ABORTED 5
PR_PUBLIC_API(HT_DropAction) HT_CanDropHTROn(HT_Resource dropTarget, HT_Resource obj);
PR_PUBLIC_API(HT_DropAction) HT_CanDropURLOn(HT_Resource dropTarget, char* url);
PR_PUBLIC_API(HT_DropAction) HT_DropHTROn(HT_Resource dropTarget, HT_Resource obj);
PR_PUBLIC_API(HT_DropAction) HT_DropURLOn(HT_Resource dropTarget, char* url);
PR_PUBLIC_API(HT_DropAction) HT_DropURLAndTitleOn(HT_Resource dropTarget,
char* url, char *title);
PR_PUBLIC_API(HT_DropAction) HT_CanDropHTRAtPos(HT_Resource dropTarget, HT_Resource obj,
PRBool before);
PR_PUBLIC_API(HT_DropAction) HT_CanDropURLAtPos(HT_Resource dropTarget, char* url,
PRBool before);
PR_PUBLIC_API(HT_DropAction) HT_DropHTRAtPos(HT_Resource dropTarget, HT_Resource obj,
PRBool before);
PR_PUBLIC_API(HT_DropAction) HT_DropURLAtPos(HT_Resource dropTarget, char* url,
PRBool before);
PR_PUBLIC_API(HT_DropAction) HT_DropURLAndTitleAtPos(HT_Resource dropTarget,
char* url, char *title, PRBool before);
PR_PUBLIC_API(PRBool) HT_IsDropTarget(HT_Resource dropTarget);
/*-----------------------------------------------------------------------*/
/* Editing */
/*-----------------------------------------------------------------------*/
PR_PUBLIC_API(PRBool) HT_RemoveChild (HT_Resource parent, HT_Resource child);
/*-----------------------------------------------------------------------*/
/* Other */
/*-----------------------------------------------------------------------*/
PR_PUBLIC_API(RDF) RDF_GetNavCenterDB();
PR_PUBLIC_API(void) HT_InformRDFOfNewDocument(char* address);
PR_PUBLIC_API(PRBool) HT_HasHTMLPane(HT_View htView);
PR_PUBLIC_API(char *) HT_HTMLPaneHeight(HT_View htView);
PR_PUBLIC_API(void) HT_AddSitemapFor(HT_Pane htPane, char *pUrl, char *pSitemapUrl, char* name);
PR_PUBLIC_API(void) HT_AddRelatedLinksFor(HT_Pane htPane, char *pUrl);
PR_PUBLIC_API(void) HT_ExitPage(HT_Pane htPane, char *pUrl);
PR_PUBLIC_API(void)
RDF_AddCookieResource(char* name, char* path, char* host, char* expires, char* value,
PRBool isDomain, PRBool secure) ;
NSPR_END_EXTERN_C
#endif /* htrdf_h___ */

View File

@@ -0,0 +1,75 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _JSEC_2_RDF_H_
#define _JSEC_2_RDF_H_
#include "rdf.h"
typedef int16 JSec_Error;
#define JSec_OK ((JSec_Error)0x0000)
#define JSec_NullObject ((JSec_Error)0x0001)
typedef RDF_Resource JSec_Principal;
typedef RDF_Resource JSec_PrincipalUse;
typedef RDF_Resource JSec_Target;
NSPR_BEGIN_EXTERN_C
PR_EXTERN(char*) RDFJSec_GetPrincipalURLString(char *principalID);
PR_EXTERN(const char*) RDFJSec_PrincipalUseID(JSec_PrincipalUse prUse);
PR_EXTERN(JSec_Error) RDFJSec_InitPrivilegeDB(); /* just use gNCDB */
PR_EXTERN(JSec_Error) RDFJSec_SavePrivilegeDB();
PR_EXTERN(JSec_Error) RDFJSec_ClosePrivilegeDB();
PR_EXTERN(RDF_Cursor) RDFJSec_ListAllPrincipals();
PR_EXTERN(JSec_Principal) RDFJSec_NextPrincipal(RDF_Cursor c);
PR_EXTERN(JSec_Error) RDFJSec_ReleaseCursor(RDF_Cursor c);
PR_EXTERN(JSec_Principal) RDFJSec_NewPrincipal(char* principalID);
PR_EXTERN(JSec_Error) RDFJSec_AddPrincipal(JSec_Principal pr);
PR_EXTERN(JSec_Error) RDFJSec_DeletePrincipal(JSec_Principal pr);
PR_EXTERN(char*) RDFJSec_PrincipalID(JSec_Principal pr);
PR_EXTERN(void*) RDFJSec_AttributeOfPrincipal(JSec_Principal pr, char* attributeType);
PR_EXTERN(JSec_Error) RDFJSec_SetPrincipalAttribute(JSec_Principal pr, char* attributeType, void* attValue);
PR_EXTERN(RDF_Cursor) RDFJSec_ListAllPrincipalUses(JSec_Principal pr);
PR_EXTERN(JSec_PrincipalUse) RDFJSec_NextPrincipalUse(RDF_Cursor c);
PR_EXTERN(JSec_PrincipalUse) RDFJSec_NewPrincipalUse(JSec_Principal pr, JSec_Target tr, char* priv);
PR_EXTERN(JSec_Error) RDFJSec_AddPrincipalUse(JSec_Principal pr, JSec_PrincipalUse prUse);
PR_EXTERN(JSec_Error) RDFJSec_DeletePrincipalUse (JSec_Principal pr, JSec_PrincipalUse prUse);
PR_EXTERN(JSec_Error) RDFJSec_AddPrincipalUsePrivilege (JSec_PrincipalUse prUse, char* priv);
PR_EXTERN(JSec_Error) RDFJSec_DeletePrincipalUsePrivilege (JSec_PrincipalUse prUse, char* priv);
PR_EXTERN(char*) RDFJSec_PrivilegeOfPrincipalUse (JSec_PrincipalUse p);
PR_EXTERN(JSec_Error) RDFJSec_AddTargetToPrincipalUse(JSec_PrincipalUse prUse, JSec_Target tr);
PR_EXTERN(JSec_Error) RDFJSec_DeleteTargetToPrincipalUse(JSec_PrincipalUse prUse, JSec_Target tr);
PR_EXTERN(JSec_Target) RDFJSec_TargetOfPrincipalUse (JSec_PrincipalUse p);
PR_EXTERN(JSec_Target) RDFJSec_NewTarget(char* targetName, JSec_Principal pr);
PR_EXTERN(char*) RDFJSec_GetTargetName(JSec_Target tr);
PR_EXTERN(char*) RDFJSec_AttributeOfTarget(JSec_Target tr, char* attributeType);
PR_EXTERN(JSec_Error) RDFJSec_SetTargetAttribute(JSec_Target tr, char* attributeType, char* attValue);
NSPR_END_EXTERN_C
#endif /* _JSEC_2_RDF_H_ */

View File

@@ -0,0 +1,37 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
MODULE = rdf
DEPTH = ..\..\..
EXPORTS = rdf.h \
rdfc.h \
nsIRDFService.h \
nsIRDFDataSource.h \
nsIRDFDataBase.h \
nsIRDFObserver.h \
nsIRDFCursor.h \
htrdf.h \
vocab.h \
jsec2rdf.h \
$(NULL)
include <$(DEPTH)/config/rules.mak>

View File

@@ -0,0 +1,53 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIRDFCursor_h__
#define nsIRDFCursor_h__
/*
nsIRDFCursor:
An iterator for RDF data sources.
*/
#include "nsISupports.h"
#include "rdf.h"
// 1c2abdb0-4cef-11d2-bc16-00805f912fe7
#define NS_IRDFCURSOR_IID \
{ \
0x1c2abdb0, \
0x4cef, \
0x11d2, \
{ 0xbc, 0x16, 0x00, 0x80, 0x5f, 0x91, 0x2f, 0xe7 } \
}
class nsIRDFCursor : public nsISupports {
public:
NS_IMETHOD HasElements(PRBool& hasElements) = 0;
NS_IMETHOD Next(RDF_NodeStruct& next /* in/out */) = 0;
};
#endif /* nsIRDFCursor_h__ */

View File

@@ -0,0 +1,74 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIRDFDataBase_h__
#define nsIRDFDataBase_h__
/*
This file contains the interface definition for an RDF database.
RDF databases aggregate RDF data sources (see nsIRDFDataSource.h)
*/
#include "nsISupports.h"
#include "nsIRDFDataSource.h"
#include "rdf.h"
// 96343820-307c-11d2-bc15-00805f912fe7
#define NS_IRDFDATABASE_IID \
{ \
0x96343820, \
0x307c, \
0x11d2, \
{ 0xb, 0xc15, 0x00, 0x80, 0x5f, 0x91, 0x2f, 0xe7 } \
}
class nsIRDFDataBase : public nsIRDFDataSource {
public:
#ifdef RDF_NOT_IMPLEMENTED
NS_IMETHOD Initialize(nsIRDFResourceManager* r) = 0;
#endif
#ifdef RDF_NOT_IMPLEMENTED
/*
Add a data source for the specified URL to the database.
Parameters:
dataSource -- a ptr to the data source to add
Returns:
*/
NS_IMETHOD AddDataSource(nsIRDFDataSource* dataSource) = 0;
NS_IMETHOD RemoveDataSource(nsIRDFDataSource* dataSource) = 0;
NS_IMETHOD GetDataSource(RDF_String url,
nsIRDFDataSource **source /* out */ ) = 0;
#endif
// XXX move these to datasource?
NS_IMETHOD DeleteAllArcs(RDF_Resource resource) = 0;
};
#endif /* nsIRDFDataBase_h__ */

View File

@@ -0,0 +1,223 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIRDFDataSource_h__
#define nsIRDFDataSource_h__
/*
This file contains the interface definition for an RDF data source.
Classes which implement this interface for a particular type of URL
are registered with the RDF singleton via nsIRDF::RegisterHandler(...)
*/
#include "nsISupports.h"
#include "rdf.h"
// 852666b0-2cce-11d2-bc14-00805f912fe7
#define NS_IRDFDATASOURCE_IID \
{ \
0x852666b0, \
0x2cce, \
0x11d2, \
{ 0xb, 0xc14,0x00, 0x80, 0x5f, 0x91 0x2f, 0xe7 } \
}
class nsIRDFCursor;
class nsIRDFObserver;
class nsIRDFDataBase;
class nsIRDFDataSource : public nsISupports {
public:
#ifdef RDF_NOT_IMPLEMENTED
/**
* Initialize this data source
*/
NS_IMETHOD Initialize(RDF_String url,
nsIRDFResourceManager* m);
#endif
/**
* Get the name of this data source.
*
* For regular data sources, this will be the URL of the source.
*
* For aggregated sources, it generally will not be a valid RDF URL.
*/
NS_IMETHOD GetName(const RDF_String* name /* out */ ) = 0;
/**
* Find an RDF resource that points to a given node over the
* specified arc & truth value (defaults to "PR_TRUE").
*/
NS_IMETHOD GetSource(RDF_Node target,
RDF_Resource arcLabel,
RDF_Resource *source /* out */) = 0;
NS_IMETHOD GetSource(RDF_Node target,
RDF_Resource arcLabel,
PRBool tv,
RDF_Resource *source /* out */) = 0;
/**
* Find all RDF resources that point to a given node over the
* specified arc & truth value (defaults to "PR_TRUE").
*/
NS_IMETHOD GetSources(RDF_Node target,
RDF_Resource arcLabel,
nsIRDFCursor **sources /* out */) = 0;
NS_IMETHOD GetSources(RDF_Node target,
RDF_Resource arcLabel,
PRBool tv,
nsIRDFCursor **sources /* out */) = 0;
/**
* Find a child of that is related to the source by the given arc
* arc and truth value (defaults to PR_TRUE).
*/
NS_IMETHOD GetTarget(RDF_Resource source,
RDF_Resource arcLabel,
RDF_ValueType targetType,
RDF_NodeStruct& target /* in/out */) = 0;
NS_IMETHOD GetTarget(RDF_Resource source,
RDF_Resource arcLabel,
RDF_ValueType targetType,
PRBool tv,
RDF_NodeStruct& target /* in/out */) = 0;
/**
* Find all children of that are related to the source by the given arc
* arc and truth value (defaults to PR_TRUE).
*/
NS_IMETHOD GetTargets(RDF_Resource source,
RDF_Resource arcLabel,
RDF_ValueType targetType,
nsIRDFCursor **targets /* out */) = 0;
NS_IMETHOD GetTargets(RDF_Resource source,
RDF_Resource arcLabel,
PRBool tv,
RDF_ValueType targetType,
nsIRDFCursor **targets /* out */) = 0;
#ifdef RDF_NOT_IMPLEMENTED
/**
* Find all parents that point to a node over a given arc label,
* regardless of truth value.
*/
NS_IMETHOD GetAllSources(RDF_Node target,
RDF_Resource arcLabel,
nsIRDFCursor2 **sources /* out */) = 0;
/**
* Find all children of a resource that are related by the
* given arc label, regardless of the truth value.
*/
NS_IMETHOD GetAllTargets(RDF_Resource source,
RDF_Resource arcLabel,
RDF_ValueType targetType,
nsIRDFCursor2 **targets /* out */);
#endif /* RDF_NOT_IMPLEMENTED */
/**
* Add an assertion to the graph.
*/
NS_IMETHOD Assert(RDF_Resource source,
RDF_Resource arcLabel,
RDF_Node target,
PRBool tv = PR_TRUE) = 0;
/**
* Remove an assertion from the graph.
*/
NS_IMETHOD Unassert(RDF_Resource source,
RDF_Resource arcLabel,
RDF_Node target) = 0;
/**
* Query whether an assertion exists in this graph.
*
*/
NS_IMETHOD HasAssertion(RDF_Resource source,
RDF_Resource arcLabel,
RDF_Node target,
PRBool truthValue,
PRBool* hasAssertion /* out */) = 0;
/**
* Add an observer to this data source.
*/
NS_IMETHOD AddObserver(nsIRDFObserver *n,
RDF_EventMask type = RDF_ANY_NOTIFY) = 0;
/**
* Remove an observer from this data source
*/
NS_IMETHOD RemoveObserver(nsIRDFObserver *n,
RDF_EventMask = RDF_ANY_NOTIFY) = 0;
/**
* Get a cursor to iterate over all the arcs that point into a node.
*/
NS_IMETHOD ArcLabelsIn(RDF_Node node,
nsIRDFCursor **labels /* out */) = 0;
/**
* Get a cursor to iterate over all the arcs that originate in
* a resource.
*/
NS_IMETHOD ArcLabelsOut(RDF_Resource source,
nsIRDFCursor **labels /* out */) = 0;
#ifdef RDF_NOT_IMPLEMENTED
/**
* Notify this data source that it is a child of a database.
*
* The datasource must send notifications to the parent when
* changes to it's graph are made, in case the parent has observers
* interested in the events generated.
*/
NS_IMETHOD AddParent(nsIRDFDataBase* parent) = 0;
/**
* Notify this data source that it has been disconnected from a
* parent.
*/
NS_IMETHOD RemoveParent(nsIRDFDataBase* parent) = 0;
/**
* Request that a data source obtain updates if applicable.
*/
// XXX move this to an nsIRDFRemoteDataStore interface?
NS_IMETHOD Update(RDF_Resource hint) = 0;
#endif /* RDF_NOT_IMPLEMENTED */
/**
* Request that a data source write it's contents out to
* permanent storage if applicable.
*/
NS_IMETHOD Flush() = 0;
};
#endif /* nsIRDFDataSource_h__ */

View File

@@ -0,0 +1,51 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIRDFObserver_h__
#define nsIRDFObserver_h__
/*
This file defines the interface for RDF observers.
*/
#include "nsISupports.h"
#include "rdf.h"
// 3cc75360-484a-11d2-bc16-00805f912fe7
#define NS_IRDFOBSERVER_IID \
{ \
0x3cc75360, \
0x484a, \
0x11d2, \
{ 0xbc, 0x16, 0x00, 0x80, 0x5f, 0x91, 0x2f, 0xe7 } \
}
class nsIRDFDataSource;
class nsIRDFObserver : public nsISupports
{
public:
NS_IMETHOD HandleEvent(nsIRDFDataSource *source,
RDF_Event event) = 0;
};
#endif /* nsIRDFObserver_h__ */

View File

@@ -0,0 +1,68 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIRDFService_h__
#define nsIRDFService_h__
/*
This file defines the interface for the RDF singleton,
which maintains various pieces of pieces of information global
to all RDF data sources.
In particular, it provides the interface for mapping rdf URL types
to nsIRDFDataSource implementors for that type of content.
*/
#include "nsISupports.h"
#include "nsIFactory.h" /* nsCID typedef, for consistency */
#include "rdf.h"
class nsIRDFDataSource;
class nsIRDFDataBase;
// 6edf3660-32f0-11d2-9abe-00600866748f
#define NS_IRDFSERVICE_IID \
{ \
0x6edf3660, \
0x32f0, \
0x11d2, \
{ 0x9a, 0xbe, 0x00, 0x60, 0x08, 0x66, 0x74, 0x8f } \
}
class nsIRDFService : public nsISupports {
public:
NS_IMETHOD Initialize();
#ifdef RDF_NOT_IMPLEMENTED
NS_IMETHOD RegisterHandler(RDF_String url_selector, const nsCID& clsid) = 0;
NS_IMETHOD RemoveHandler(RDF_String url_selector, const nsCID& clsid) = 0;
NS_IMETHOD CreateDataSource(RDF_String url,
nsIRDFDataSource **source /* out */) = 0;
#endif /* RDF_NOT_IMPLEMENTED */
NS_IMETHOD CreateDatabase(const RDF_String* url_ary,
nsIRDFDataBase **db /* out */) = 0;
};
#endif /* nsIRDFService_h__ */

View File

@@ -0,0 +1,120 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef rdf_h___
#define rdf_h___
#include "nspr.h"
#include "nsError.h"
typedef nsresult RDF_Error;
#define RDF_ERROR_ILLEGAL_ASSERT NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_RDF,1)
#define RDF_ERROR_ILLEGAL_KILL NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_RDF,2)
#define RDF_ERROR_UNABLE_TO_CREATE NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_RDF,3)
#define RDF_ERROR_NO_MEMORY NS_ERROR_OUT_OF_MEMORY /* XXX remove this */
NSPR_BEGIN_EXTERN_C
typedef struct RDF_ResourceStruct* RDF_Resource;
typedef struct RDF_CursorStruct* RDF_Cursor;
typedef struct RDF_DBStruct* RDF;
typedef struct RDF_TranslatorStruct *RDFT;
typedef char* RDF_String;
typedef enum {
RDF_ANY_TYPE,
RDF_RESOURCE_TYPE,
RDF_INT_TYPE,
RDF_STRING_TYPE,
#ifdef RDF_BLOB
RDF_BLOB_TYPE
#endif
} RDF_ValueType;
#ifdef RDF_BLOB
typedef struct RDF_BlobStruct {
PRUint32 size;
void* data;
} *RDF_Blob;
#endif
typedef struct RDF_NodeStruct {
RDF_ValueType type;
union {
RDF_Resource r;
RDF_String s;
#ifdef RDF_BLOB
RDF_Blob b;
#endif
} value;
} *RDF_Node;
typedef PRUint32 RDF_EventType;
#define RDF_ASSERT_NOTIFY ((RDF_EventType)0x00000001)
#define RDF_DELETE_NOTIFY ((RDF_EventType)0x00000002)
#define RDF_KILL_NOTIFY ((RDF_EventType)0x00000004)
#define RDF_CREATE_NOTIFY ((RDF_EventType)0x00000008)
#define RDF_RESOURCE_GC_NOTIFY ((RDF_EventType)0x00000010)
#define RDF_INSERT_NOTIFY ((RDF_EventType)0x00000020)
typedef PRUint32 RDF_EventMask;
#define RDF_ANY_NOTIFY ((RDF_EventMask)0xFFFFFFFF)
typedef struct RDF_AssertEventStruct {
RDF_Resource u;
RDF_Resource s;
void* v;
RDF_ValueType type;
PRBool tv;
char* dataSource;
} *RDF_AssertEvent;
typedef struct RDF_UnassertEventStruct {
RDF_Resource u;
RDF_Resource s;
void* v;
RDF_ValueType type;
char* dataSource;
} *RDF_UnassertEvent;
typedef struct RDF_KillEventStruct {
RDF_Resource u;
} *RDF_KillEvent;
typedef struct RDF_EventStruct {
RDF_EventType eventType;
union ev {
struct RDF_AssertEventStruct assert;
struct RDF_UnassertEventStruct unassert;
struct RDF_KillEventStruct kill;
} event;
} *RDF_Event;
#include "vocab.h"
#include "rdfc.h"
NSPR_END_EXTERN_C
#endif /* rdf_h___ */

View File

@@ -0,0 +1,106 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef rdf_h___
#define rdf_h___
#include "nspr.h"
#include "nsError.h"
typedef nsresult RDF_Error;
#define RDF_ERROR_ILLEGAL_ASSERT NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_RDF,1)
#define RDF_ERROR_ILLEGAL_KILL NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_RDF,2)
NSPR_BEGIN_EXTERN_C
typedef struct RDF_ResourceStruct* RDF_Resource;
typedef struct RDF_CursorStruct* RDF_Cursor;
typedef struct RDF_DBStruct* RDF;
typedef struct RDF_TranslatorStruct *RDFT;
typedef enum {
RDF_ANY_TYPE,
RDF_RESOURCE_TYPE,
RDF_INT_TYPE,
RDF_STRING_TYPE.
#ifdef RDF_BLOB
RDF_BLOB_TYPE
#endif
} RDF_ValueType;
#ifdef RDF_BLOB
typedef struct RDF_BlobStruct {
PRUint32 size;
void* data;
} *RDF_Blob;
#endif
typedef struct RDF_NodeStruct {
RDF_ValueType type;
union {
RDF_Resource r;
RDF_String s;
#ifdef RDF_BLOB
RDF_Blob b;
#endif
} value;
} *RDF_Node;
typedef PRUint32 RDF_EventType;
#define RDF_ASSERT_NOTIFY ((RDF_EventType)0x00000001)
#define RDF_DELETE_NOTIFY ((RDF_EventType)0x00000002)
typedef PRUint32 RDF_EventMask;
#define RDF_ANY_NOTIFY ((RDF_EventMask)0xFFFFFFFF)
typedef struct RDF_AssertEventStruct {
RDF_Resource u;
RDF_Resource s;
struct RDF_NodeStruct v;
PRBool tv;
char* dataSource;
} *RDF_AssertEvent;
typedef struct RDF_UnassertEventStruct {
RDF_Resource u;
RDF_Resource s;
struct RDF_NodeStruct v;
char* dataSource;
} *RDF_UnassertEvent;
typedef struct RDF_KillEventStruct {
RDF_Resource u;
} *RDF_KillEvent;
typedef struct RDF_EventStruct {
RDF_EventType eventType;
union ev {
struct RDF_AssertEventStruct assert;
struct RDF_UnassertEventStruct unassert;
struct RDF_KillEventStruct kill;
} event;
} *RDF_Event;
#include "vocab.h"
NSPR_END_EXTERN_C
#endif /* rdf_h___ */

View File

@@ -0,0 +1,128 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef rdfc_h__
#define rdfc_h__
#include "rdf.h"
#include "nspr.h"
/* core rdf apis */
NSPR_BEGIN_EXTERN_C
typedef struct _RDF_InitParamsStruct {
char *profileURL;
char *bookmarksURL;
char *globalHistoryURL;
} RDF_InitParamsStruct;
typedef struct _RDF_InitParamsStruct* RDF_InitParams;
struct RDF_NotificationStruct;
typedef struct RDF_NotificationStruct* RDF_Notification;
typedef void (*RDF_NotificationProc)(RDF_Event theEvent, void* pdata);
PR_PUBLIC_API(RDF) RDF_GetDB(const RDF_String* dbs);
PR_PUBLIC_API(RDF_Error) RDF_ReleaseDB(RDF rdf);
PR_PUBLIC_API(RDFT) RDF_AddDataSource(RDF rdf, char* dataSource);
PR_PUBLIC_API(RDF_Error) RDF_ReleaseDataSource(RDF rdf, RDFT dataSource);
PR_PUBLIC_API(RDF_Resource) RDF_GetResource(RDF db, char* id, PRBool createp);
PR_PUBLIC_API(RDF_Error) RDF_ReleaseResource(RDF db, RDF_Resource resource);
PR_PUBLIC_API(RDF_Error) RDF_DeleteAllArcs(RDF rdfDB, RDF_Resource source);
PR_PUBLIC_API(RDF_Error) RDF_Update(RDF rdfDB, RDF_Resource u);
PR_PUBLIC_API(RDF_Notification) RDF_AddNotifiable (RDF rdfDB, RDF_NotificationProc callBack, RDF_Event ev, void* pdata);
PR_PUBLIC_API(RDF_Error) RDF_DeleteNotifiable (RDF_Notification ns);
PR_PUBLIC_API(PRBool) RDF_Assert(RDF rdfDB, RDF_Resource source, RDF_Resource arcLabel,
void* target, RDF_ValueType targetType);
PR_PUBLIC_API(PRBool) RDF_AssertFalse(RDF rdfDB, RDF_Resource source, RDF_Resource arcLabel,
void* target, RDF_ValueType targetType);
PR_PUBLIC_API(PRBool) RDF_Unassert(RDF rdfDB, RDF_Resource source, RDF_Resource arcLabel,
void* target, RDF_ValueType targetType);
PR_PUBLIC_API(PRBool) RDF_CanAssert(RDF rdfDB, RDF_Resource u, RDF_Resource arcLabel, void* v, RDF_ValueType targetType);
PR_PUBLIC_API(PRBool) RDF_CanAssertFalse(RDF rdfDB, RDF_Resource u, RDF_Resource arcLabel, void* v, RDF_ValueType targetType);
PR_PUBLIC_API(PRBool) RDF_CanUnassert(RDF rdfDB, RDF_Resource u, RDF_Resource arcLabel, void* v, RDF_ValueType targetType);
PR_PUBLIC_API(PRBool) RDF_HasAssertion (RDF rdfDB, RDF_Resource source, RDF_Resource arcLabel,
void* target, RDF_ValueType targetType, PRBool tv);
PR_PUBLIC_API(void*) RDF_GetSlotValue (RDF rdfDB, RDF_Resource u, RDF_Resource s, RDF_ValueType targetType,
PRBool inversep, PRBool tv);
PR_PUBLIC_API(RDF_Cursor) RDF_GetTargets (RDF rdfDB, RDF_Resource source, RDF_Resource arcLabel,
RDF_ValueType targetType, PRBool tv);
PR_PUBLIC_API(RDF_Cursor) RDF_GetSources (RDF rdfDB, RDF_Resource target, RDF_Resource arcLabel,
RDF_ValueType sourceType, PRBool tv);
PR_PUBLIC_API(RDF_Cursor) RDF_ArcLabelsOut (RDF rdfDB, RDF_Resource u);
PR_PUBLIC_API(RDF_Cursor) RDF_ArcLabelsIn (RDF rdfDB, RDF_Resource u);
PR_PUBLIC_API(void*) RDF_NextValue(RDF_Cursor c);
PR_PUBLIC_API(char*) RDF_ValueDataSource(RDF_Cursor c);
PR_PUBLIC_API(RDF_ValueType) RDF_CursorValueType(RDF_Cursor c);
PR_PUBLIC_API(RDF_Error) RDF_DisposeCursor (RDF_Cursor c);
/*** Guha needs to get his act together and figure out how to do this.
PR_PUBLIC_API(RDF_Error) RDF_Undo(RDF rdf);
***/
/* These two should be removed soon. They are here because Nav Center
depends on them. */
/* PR_PUBLIC_API(RDF_Error) RDF_Init(char *profileDirURL); */
PR_PUBLIC_API(RDF_Error) RDF_Init(RDF_InitParams params);
PR_PUBLIC_API(RDF_Error) RDF_Shutdown(void);
/* the stuff in vocab.h will supercede whats below. I am leaving this here
only for the very near future */
/** utilities : move out of here!!! **/
/* well known resources */
PR_PUBLIC_API(char*) RDF_GetResourceName(RDF rdfDB, RDF_Resource node);
PR_PUBLIC_API(RDF_Resource) RDFUtil_GetFirstInstance (RDF_Resource type, char* defaultURL);
PR_PUBLIC_API(void) RDFUtil_SetFirstInstance (RDF_Resource type, RDF_Resource item);
typedef void (*printProc)(void* data, char* str);
PR_PUBLIC_API(void) outputMCFTree (RDF db, printProc printer, void* data, RDF_Resource node);
PR_PUBLIC_API(RDF_Resource) RDFUtil_GetBreadcrumb();
PR_PUBLIC_API(RDF_Resource) RDFUtil_GetQuickFileFolder();
PR_PUBLIC_API(void) RDFUtil_SetQuickFileFolder(RDF_Resource container);
PR_PUBLIC_API(RDF_Resource) RDFUtil_GetPTFolder();
PR_PUBLIC_API(void) RDFUtil_SetPTFolder(RDF_Resource container);
PR_PUBLIC_API(RDF_Cursor) RDF_Find (RDF_Resource s, RDF_Resource match, void* v, RDF_ValueType type);
PR_PUBLIC_API(RDF_Resource) RDFUtil_GetNewBookmarkFolder();
PR_PUBLIC_API(void) RDFUtil_SetNewBookmarkFolder(RDF_Resource container);
PR_PUBLIC_API(RDF_Resource) RDFUtil_GetDefaultSelectedView();
PR_PUBLIC_API(void) RDFUtil_SetDefaultSelectedView(RDF_Resource container);
/** end utilities **/
/* this stuff is stuck in here for netlib */
NSPR_END_EXTERN_C
#endif /* rdfc_h__ */

View File

@@ -0,0 +1,229 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_VOCAB_H_
#define _RDF_VOCAB_H_
typedef struct _RDF_CoreVocabStruct {
RDF_Resource RDF_parent;
RDF_Resource RDF_name;
RDF_Resource RDF_instanceOf;
RDF_Resource RDF_subClassOf;
RDF_Resource RDF_PropertyType;
RDF_Resource RDF_Class;
RDF_Resource RDF_slotsHere;
RDF_Resource RDF_slotsIn;
RDF_Resource RDF_domain;
RDF_Resource RDF_range;
RDF_Resource RDF_StringType;
RDF_Resource RDF_IntType;
RDF_Resource RDF_equals;
RDF_Resource RDF_lessThan;
RDF_Resource RDF_greaterThan;
RDF_Resource RDF_lessThanOrEqual;
RDF_Resource RDF_greaterThanOrEqual;
RDF_Resource RDF_stringEquals;
RDF_Resource RDF_stringNotEquals;
RDF_Resource RDF_substring;
RDF_Resource RDF_stringStartsWith;
RDF_Resource RDF_stringEndsWith;
RDF_Resource RDF_child;
RDF_Resource RDF_comment;
RDF_Resource RDF_content;
RDF_Resource RDF_summary;
} RDF_CoreVocabStruct;
typedef RDF_CoreVocabStruct* RDF_CoreVocab;
typedef struct _RDF_NCVocabStruct {
RDF_Resource RDF_overview;
RDF_Resource RDF_Trash;
RDF_Resource RDF_Clipboard;
RDF_Resource RDF_Top;
RDF_Resource RDF_Search;
RDF_Resource RDF_Sitemaps;
RDF_Resource RDF_BreadCrumbCategory;
RDF_Resource RDF_BookmarkFolderCategory;
RDF_Resource RDF_NewBookmarkFolderCategory;
RDF_Resource RDF_History;
RDF_Resource RDF_HistoryBySite;
RDF_Resource RDF_HistoryByDate;
RDF_Resource RDF_HistoryMostVisited;
/* IE items */
RDF_Resource RDF_IEBookmarkFolderCategory;
RDF_Resource RDF_IEHistory;
RDF_Resource RDF_bookmarkAddDate;
RDF_Resource RDF_PersonalToolbarFolderCategory;
RDF_Resource RDF_Column;
RDF_Resource RDF_ColumnResource;
RDF_Resource RDF_ColumnWidth;
RDF_Resource RDF_ColumnIconURL;
RDF_Resource RDF_ColumnDataType;
RDF_Resource RDF_smallIcon; /* Small normal icon. */
RDF_Resource RDF_largeIcon; /* Large normal icon. */
RDF_Resource RDF_Guide;
RDF_Resource RDF_HTMLURL;
RDF_Resource RDF_HTMLHeight;
RDF_Resource RDF_LocalFiles;
RDF_Resource RDF_FTP;
RDF_Resource RDF_Appletalk;
RDF_Resource RDF_Mail;
RDF_Resource RDF_Password;
RDF_Resource RDF_SBProviders;
RDF_Resource RDF_WorkspacePos;
RDF_Resource RDF_ItemPos;
RDF_Resource RDF_Locks;
RDF_Resource RDF_AddLock;
RDF_Resource RDF_DeleteLock;
RDF_Resource RDF_IconLock;
RDF_Resource RDF_NameLock;
RDF_Resource RDF_CopyLock;
RDF_Resource RDF_MoveLock;
RDF_Resource RDF_WorkspacePosLock;
RDF_Resource RDF_DefaultSelectedView;
RDF_Resource RDF_AutoOpen;
RDF_Resource RDF_resultType;
RDF_Resource RDF_methodType;
RDF_Resource RDF_prompt;
RDF_Resource RDF_HTMLType;
RDF_Resource RDF_URLShortcut;
RDF_Resource RDF_Poll;
RDF_Resource RDF_PollInterval;
RDF_Resource RDF_PollURL;
RDF_Resource RDF_Cookies;
#ifdef TRANSACTION_RECEIPTS
RDF_Resource RDF_Receipts;
#endif
RDF_Resource RDF_Toolbar;
RDF_Resource RDF_JSec;
RDF_Resource RDF_JSecPrincipal;
RDF_Resource RDF_JSecTarget;
RDF_Resource RDF_JSecAccess;
/* Commands */
RDF_Resource RDF_Command;
RDF_Resource RDF_Command_Launch;
RDF_Resource RDF_Command_Refresh;
RDF_Resource RDF_Command_Reveal;
RDF_Resource RDF_Command_Atalk_FlatHierarchy;
RDF_Resource RDF_Command_Atalk_Hierarchy;
/* NavCenter appearance styles */
RDF_Resource viewFGColor;
RDF_Resource viewBGColor;
RDF_Resource viewBGURL;
RDF_Resource showTreeConnections;
RDF_Resource treeConnectionFGColor;
RDF_Resource treeOpenTriggerIconURL;
RDF_Resource treeClosedTriggerIconURL;
RDF_Resource selectionFGColor;
RDF_Resource selectionBGColor;
RDF_Resource columnHeaderFGColor;
RDF_Resource columnHeaderBGColor;
RDF_Resource columnHeaderBGURL;
RDF_Resource showColumnHeaders;
RDF_Resource showColumnHeaderDividers;
RDF_Resource showTitleBar; /* Whether or not to show the title bar at all */
RDF_Resource showControlStrip; /* Whether or not to show the control strip at all. */
RDF_Resource sortColumnFGColor;
RDF_Resource sortColumnBGColor;
RDF_Resource titleBarFGColor;
RDF_Resource titleBarBGColor;
RDF_Resource titleBarBGURL;
RDF_Resource titleBarShowText;
RDF_Resource dividerColor;
RDF_Resource showDivider;
RDF_Resource selectedColumnHeaderFGColor;
RDF_Resource selectedColumnHeaderBGColor;
RDF_Resource showColumnHilite;
RDF_Resource triggerPlacement;
/* NavCenter behavior flags */
RDF_Resource useInlineEditing;
RDF_Resource useSingleClick;
RDF_Resource loadOpenState;
RDF_Resource saveOpenState;
/* Toolbar Appearance Styles */
RDF_Resource toolbarBitmapPosition; /* Bitmap's position ("side"/"top") */
RDF_Resource toolbarDisplayMode;
RDF_Resource toolbarCollapsed;
RDF_Resource toolbarVisible;
RDF_Resource toolbarRolloverIcon; /* The icon to display on rollover. */
RDF_Resource toolbarPressedIcon; /* The icon to display on a press. */
RDF_Resource toolbarDisabledIcon; /* The icon to display when disabled. */
RDF_Resource toolbarEnabledIcon; /* THe icon to display when enabled. */
/* Cookie Stuff */
RDF_Resource cookieDomain;
RDF_Resource cookieValue;
RDF_Resource cookieHost;
RDF_Resource cookiePath;
RDF_Resource cookieSecure;
RDF_Resource cookieExpires;
RDF_Resource toolbarButtonsFixedSize; /* Whether or not the buttons must be the same size ("yes"/"no") */
RDF_Resource viewRolloverColor; /* What to display when an item is rolled over in a view.*/
RDF_Resource viewPressedColor; /* What to display when an item is pressed in a view. */
RDF_Resource viewDisabledColor; /* Color to use when item is disabled in a view. */
RDF_Resource urlBar; /* Whether or not the button is a URL bar. */
RDF_Resource urlBarWidth; /* The width of the URL bar. */
RDF_Resource buttonTreeState; /* The tree state (docked, popup) for a button. */
RDF_Resource buttonTooltipText; /* The tooltip text for a button. */
RDF_Resource buttonStatusbarText; /* The status bar text for a button. */
RDF_Resource buttonBorderStyle; /* What type of border the button should have. */
RDF_Resource controlStripFGColor; /* The tree's control strip foreground */
RDF_Resource controlStripBGColor; /* The tree's control strip background */
RDF_Resource controlStripBGURL; /* The tree's control strip BG URL */
RDF_Resource controlStripCloseText; /* The text displayed for the close function in the control strip. */
RDF_Resource pos;
RDF_Resource from;
RDF_Resource to;
RDF_Resource subject;
RDF_Resource date;
RDF_Resource displayURL;
} RDF_NCVocabStruct;
typedef RDF_NCVocabStruct* RDF_NCVocab;
typedef struct _RDF_WDVocabStruct {
RDF_Resource RDF_URL;
RDF_Resource RDF_description;
RDF_Resource RDF_keyword;
RDF_Resource RDF_Container;
RDF_Resource RDF_firstVisitDate;
RDF_Resource RDF_lastVisitDate;
RDF_Resource RDF_numAccesses;
RDF_Resource RDF_creationDate;
RDF_Resource RDF_lastModifiedDate;
RDF_Resource RDF_size;
} RDF_WDVocabStruct;
typedef RDF_WDVocabStruct* RDF_WDVocab;
#endif

View File

@@ -0,0 +1,27 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
//
// RDFDebug.Prefix
//
// Global prefix file for the debug RDF project.
//
//
#include "MacPrefix_debug.h"
#include "RDFConfig.h"

View File

@@ -0,0 +1,193 @@
###
### Symbols you may have to hand annotate with #{code} or #{data}...
###
HT_CanDropHTROn
HT_CanDropURLOn
HT_DeleteCursor
HT_DeleteView
HT_DropHTROn
HT_DropURLOn
HT_GetNextItem
HT_GetNotificationMask
HT_GetNthItem
HT_GetNthItemInt
HT_GetOpenState
HT_GetParent
HT_GetRDFResource
HT_GetSelectedState
HT_GetView
HT_GetViewData
HT_IsContainer
HT_IsContainerOpen
HT_IsSelected
HT_KillResource
HT_MakeNewContainer
HT_NewCursor
HT_NewView
HT_NodeDisplayString
HT_RemoveChild
HT_SetNotificationMask
HT_SetOpenState
HT_SetSelectedState
HT_SetViewData
HT_TopNode
HT_WriteOutAsBookmarks
RDF_AddNotifiable
RDF_Assert
RDF_CanAssert
RDF_CanUnassert
RDF_Create
RDF_DeleteNotifiable
RDF_DisposeCursor
RDF_GetSlotValue
RDF_GetSlotValues
RDF_HasAssertion
RDF_Init
RDF_InitLocalStores
RDF_Kill
RDF_NextValue
RDF_SaveState
RDF_SetResourceLock
RDF_Shutdown
RDF_StdVocab
RDF_Unassert
RDF_AddCookieResource
# RDFglueExit
# RDFglueInitialize
# __initialize
# __ptmf_null
# __terminate
# abortRDFParse
# addChildAfter
# addChildBefore
# addDescription
# addNotifiable
# addSlotValue
# addToAssertionList
# addToResourceList
# append2Strings
# asEqual
# asTv
# asType
# assert
# assignHeaderSlot
# assignSlot
# beginReadingRDFFile
# bkStateTransition
# bookmarkSlotp
# charSearch
# containerIDp
# containerp
# copyString
# createBootstrapResources
# createContainer
# createSeparator
# deleteNotifiable
# derelativizeURL
# destroyViewInt
# disposeCursor
# endsWith
# exitRDF
# fillContainer
# finishRDFParse
# freeAssertion
# freeMem
# gBookmarkURL
# gLocalStoreURL
# gRDFDB
# gcRDFFile
# getElfProp
# getFirstToken
# getHash
# getMem
# getRDFDB
# getRelURL
# getSlotValue
# getSlotValues
# globals
# hasAssertion
# hashIndex
# ht_fprintf
# htrdfNotifFunc
# idenEqual
# idenHash
# initDataSources
# initLocalStore
# inverseTV
# isContainer
# isLeaf
# isSeparator
# isTypeOf
# killResource
# localStoreAdd
# localStoreAssert
# localStoreDisposeCursor
# localStoreGetSlotValue
# localStoreGetSlotValues
# localStoreHasAssertion
# localStoreNextValue
# localStoreRemove
# localStoreUnassert
# lockedp
# longjmp
# makeNewAssertion
# makeNewID
# makeNewRDFDB
# makeRDFFile
# newFolderBkItem
# newHTEntry
# newHashtable
# newLeafBkItem
# nextValue
# outputRDFTree
# outputRDFTreeInt
# parseNextBkBlob
# parseNextBkToken
# parseNextMCFBlob
# parseNextRDFBlob
# parseNextRDFLine
# parseNextRDFToken
# parseNextRDFXMLBlob
# parseRDFElement
# parseSlotValue
# possiblyGCResource
# putHash
# rdfDB
# rdfDBInited
# readRDFFile
# remHash
# remoteAssert
# remoteStoreAdd
# remoteStoreDisposeCursor
# remoteStoreGetSlotValue
# remoteStoreGetSlotValues
# remoteStoreHasAssertion
# remoteStoreNextValue
# remoteStoreRemove
# remoteUnassert
# resolveGenlPosReference
# resolveReference
# resourceDescription
# resourceFromID
# resourceLastModifiedDate
# resourceLastVisitDate
# resourceName
# resourceTransition
# revCharSearch
# saveLocalStore
# sendNotification
# sendNotifications
# separatorCounter
# setAsTv
# setAsType
# setContainerp
# setHiddenState
# setLockedp
# startsWith
# stringAppend
# stringEquals
# translators
# unassert
# urlEquals
# writeResource

Binary file not shown.

View File

@@ -0,0 +1,18 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#define CGLUESUPPORTED 0 // turn off C glue support to avoid conflict on create() in RDF

View File

@@ -0,0 +1,27 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
//
// RDFDebug.Prefix
//
// Global prefix file for the debug RDF project.
//
//
#include "MacPrefix_debug.h"
#include "RDFConfig.h"

View File

@@ -0,0 +1,29 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
//
// RDFDebug.Prefix
//
// Global prefix file for the debug RDF project.
//
//
#define MOZ_LITE 1
#define DEVELOPER_DEBUG 1
#include "RDFConfig.h"
#include <OpenTransport.h>

View File

@@ -0,0 +1,30 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
//
// RDFDebug.Prefix
//
// Global prefix file for the debug RDF project.
//
//
#define MOZ_LITE 1
#define DEBUG 1
#define DEVELOPER_DEBUG 1
#include "RDFConfig.h"
#include <OpenTransport.h>

View File

@@ -0,0 +1,9 @@
DEPTH=..\..
DIRS=\
include \
src \
$(NULL)
include <$(DEPTH)\config\rules.mak>

View File

@@ -0,0 +1,46 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
#
#
DEPTH = ../../..
MODULE = rdf
LIBRARY_NAME = $(LITE_PREFIX)rdf
LIBXP = $(DIST)/lib/libxp.$(LIB_SUFFIX)
REQUIRES = nspr
JNI_GEN = netscape.rdf.core.NativeRDF netscape.rdf.core.NativeRDFEnumeration
CSRCS = \
vocab.c \
mcf.c \
remstore.c \
utils.c \
rdfparse.c \
bmk2mcf.c \
rdfht.c \
columns.c \
$(NULL)
LOCAL_INCLUDES = -I$(PUBLIC)/rdf
include $(DEPTH)/config/rules.mk
$(LIBRARY): $(OBJS)

View File

@@ -0,0 +1,87 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
#
#
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = rdf
LIBRARY_NAME = $(LITE_PREFIX)rdf
LIBXP = $(DIST)/lib/libxp.$(LIB_SUFFIX)
REQUIRES = nspr dbm java js htmldlgs util img layer pref ldap network parse
JNI_GEN = netscape.rdf.core.NativeRDF netscape.rdf.core.NativeRDFEnumeration
CSRCS = \
vocab.c \
mcf.c \
remstore.c \
utils.c \
rdfparse.c \
mcff2mcf.c \
bmk2mcf.c \
ldap2rdf.c \
glue.c \
rdfht.c \
jsec2rdf.c \
$(NULL)
ifndef RDF_STANDALONE
CSRCS += \
nlcstore.c \
find2rdf.c \
fs2rdf.c \
hist2rdf.c \
pm2rdf.c \
es2mcf.c \
columns.c \
ht.c \
$(NULL)
endif
SPF_OBJS = $(OBJDIR)/spf2ldif.o \
$(OBJDIR)/hashtable.o
LOCAL_INCLUDES = -I$(PUBLIC)/rdf
include $(topsrcdir)/config/rules.mk
ifdef RDF_STANDALONE
DEFINES := $(filter-out -DMOZILLA_CLIENT, $(DEFINES))
endif
$(LIBRARY): $(OBJS)
test: $(OBJDIR)/test
spf2ldif: $(OBJDIR)/spf2ldif
.PHONY: test spf2ldif
$(OBJDIR)/test: $(OBJDIR)/test.o $(LIBRARY)
@$(MAKE_OBJDIR)
$(CC) -o $@ $(OBJDIR)/test.o $(LIBRARY) $(LIBNSPR) $(LIBXP) $(LDFLAGS) $(OS_LIBS)
$(OBJDIR)/spf2ldif: $(SPF_OBJS) $(LIBRARY)
@$(MAKE_OBJDIR)
$(CC) -o $@ $(SPF_OBJS) $(LIBRARY) $(LIBNSPR) $(LIBXP) $(LDFLAGS) $(OS_LIBS)

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,87 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_ATALK_H_
#define _RDF_ATALK_H_
#ifdef XP_MAC
#include <Appletalk.h>
#include <Devices.h>
#include <Gestalt.h>
#include "rdf.h"
#include "rdf-int.h"
#include "mcf.h"
#include "vocab.h"
#include "utils.h"
#include "prefapi.h"
/* atalk.c data structures and defines */
extern int RDF_APPLETALK_TOP_NAME, RDF_AFP_CLIENT_37_STR, RDF_AFP_AUTH_FAILED_STR;
extern int RDF_AFP_PW_EXPIRED_STR, RDF_AFP_ALREADY_MOUNTED_STR, RDF_AFP_MAX_SERVERS_STR;
extern int RDF_AFP_NOT_RESPONDING_STR, RDF_AFP_SAME_NODE_STR, RDF_AFP_ERROR_NUM_STR;
extern int RDF_VOLUME_DESC_STR, RDF_DIRECTORY_DESC_STR, RDF_FILE_DESC_STR;
#define ATALK_NOHIERARCHY_PREF "browser.navcenter.appletalk.zone.nohierarchy"
#define ATALK_CMD_PREFIX "Command:at:"
#define kAppleShareVerGestalt 'afps'
#define kAppleShareVer_3_7 0x00000006
#define AFPX_PROT_VERSION 0
#define BASE_AFPX_OFFSET 30
#define BASE_AFP_OFFSET 24
typedef struct _ourNBPUserDataStruct
{
RDFT rdf;
char *parentID;
} ourNBPUserDataStruct;
typedef ourNBPUserDataStruct *ourNBPUserDataPtr;
/* atalk.c function prototypes */
NSPR_BEGIN_EXTERN_C
#ifdef XP_MAC
PRBool isAFPVolume(short ioVRefNum);
#endif
void getZones(RDFT rdf);
void processZones(RDFT rdf, char *zones, uint16 numZones, XP_Bool noHierarchyFlag);
void checkServerLookup (MPPParamBlock *nbp);
void getServers(RDFT rdf, RDF_Resource parent);
void AtalkPossible(RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep);
RDF_Error AtalkDestroy (RDFT r);
PRBool AtalkHasAssertion (RDFT mcf, RDF_Resource u, RDF_Resource s, void *v, RDF_ValueType type, PRBool tv);
PRBool AtalkAssert (RDFT rdf, RDF_Resource u, RDF_Resource s, void *v, RDF_ValueType type, PRBool tv);
char * convertAFPtoUnescapedFile(char *id);
void * AtalkGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
RDF_Cursor AtalkGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
void * AtalkNextValue (RDFT rdf, RDF_Cursor c);
RDF_Resource CreateAFPFSUnit (char *nname, PRBool isDirectoryFlag);
RDFT MakeAtalkStore (char* url);
NSPR_END_EXTERN_C
#endif
#endif

View File

@@ -0,0 +1,602 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/* Reading bookmarks.htm into rdf.
tags in the bookmark file.
<TITLE>
<H1>
<H3>
<DL></DL>
<DT>
<P>
<DT> indicates that an item is coming.
If the next item is an <a then we have a url
If the next item is a h3, we have a folder.
<DL> indicates that the previous item (which should have been a folder)
is the parent of the next set.
</DL> indicates pop out a level
<P> ignore this on reading, but write out one after each <DL>
<DD> the description for the previous <DT>
Category urls. Make it up out of the add dates. */
/*
This file translates netscape bookmarks into the rdf data model.
For more information on this file, contact rjc or guha
For more information on RDF, look at the RDF section of www.mozilla.org
*/
#include "bmk2mcf.h"
#include "utils.h"
#include "time.h"
#ifdef MOZILLA_CLIENT
/* extern declarations */
PR_PUBLIC_API(void) HT_WriteOutAsBookmarks (RDF r, PRFileDesc *fp, RDF_Resource u); /* XXX this should be elsewhere */
extern char *gBookmarkURL;
extern RDF gNCDB;
/* globals */
uint16 separatorCounter = 0;
static char* gBkFolderDate;
static RDFT gBMKStore = 0;
extern int RDF_PERSONAL_TOOLBAR_NAME;
RDF_Resource
createSeparator(void)
{
char url[50];
RDF_Resource sep;
PR_snprintf(url, 50, "separator%i", separatorCounter++);
sep = RDF_GetResource(NULL, url, 1);
return sep;
}
#endif
RDF_Resource
createContainer (char* id)
{
RDF_Resource r = RDF_GetResource(NULL, id, true);
setContainerp(r, 1);
return r;
}
#ifdef MOZILLA_CLIENT
char *
resourceDescription (RDF rdf, RDF_Resource r)
{
return (char*)RDF_GetSlotValue(rdf, r, gWebData->RDF_description, RDF_STRING_TYPE, false, true);
}
char *
resourceLastVisitDate (RDF rdf, RDF_Resource r)
{
return (char*)RDF_GetSlotValue(rdf, r, gWebData->RDF_lastVisitDate, RDF_STRING_TYPE, false, true);
}
char *
resourceLastModifiedDate (RDF rdf, RDF_Resource r)
{
return (char*)RDF_GetSlotValue(rdf, r, gWebData->RDF_lastModifiedDate, RDF_STRING_TYPE, false, true);
}
void
parseNextBkBlob (RDFFile f, char* blob, int32 size)
{
int32 n, last, m;
PRBool somethingseenp = false;
n = last = 0;
while (n < size) {
char c = blob[n];
m = 0;
somethingseenp = false;
memset(f->line, '\0', f->lineSize);
if (f->holdOver[0] != '\0') {
memcpy(f->line, f->holdOver, RDF_STRLEN(f->holdOver));
m = RDF_STRLEN(f->holdOver);
somethingseenp = true;
memset(f->holdOver, '\0', RDF_BUF_SIZE);
}
while ((m < 300) && (c != '<') && (c != '>') && (n < size)) {
f->line[m] = c;
m++;
somethingseenp = (somethingseenp || ((c != ' ') && (c != '\r') && (c != '\n')));
n++;
c = blob[n];
}
if (c == '>') f->line[m] = c;
n++;
if (m > 0) {
if ((c == '<') || (c == '>')) {
last = n;
if (c == '<') f->holdOver[0] = '<';
if (somethingseenp == true) parseNextBkToken(f, f->line);
} else if (size > last) {
memcpy(f->holdOver, f->line, m);
}
} else if (c == '<') f->holdOver[0] = '<';
}
}
void
parseNextBkToken (RDFFile f, char* token)
{
/* printf(token); */
if (token[0] == '<') {
bkStateTransition(f, token);
} else {
/* ok, we have a piece of content.
can be the title, or a description or */
if ((f->status == IN_TITLE) || (f->status == IN_H3) ||
(f->status == IN_ITEM_TITLE)) {
if (IN_H3 && gBkFolderDate) {
char *url;
RDF_Resource newFolder;
url = PR_smprintf("%s%s.rdf", gBkFolderDate, token);
newFolder = createContainer(url);
free(url);
addSlotValue(f,newFolder, gCoreVocab->RDF_parent, f->stack[f->depth-1],
RDF_RESOURCE_TYPE, NULL);
freeMem(gBkFolderDate);
gBkFolderDate = NULL;
f->lastItem = newFolder;
}
if ((f->db == gLocalStore) || (f->status != IN_TITLE))
{
addSlotValue(f, f->lastItem, gCoreVocab->RDF_name,
copyString(token), RDF_STRING_TYPE, NULL);
}
if (startsWith("Personal Toolbar", token) && (containerp(f->lastItem)))
addSlotValue(f, f->lastItem, gCoreVocab->RDF_instanceOf,
gNavCenter->RDF_PersonalToolbarFolderCategory,
RDF_RESOURCE_TYPE, "true");
} else if (f->status == IN_ITEM_DESCRIPTION) {
addDescription(f, f->lastItem, token);
}
}
}
void
addDescription (RDFFile f, RDF_Resource r, char* token)
{
char* desc = (char*) remoteStoreGetSlotValue(gLocalStore, r, gWebData->RDF_description,
RDF_STRING_TYPE, false, true);
if (desc == NULL) {
addSlotValue(f, f->lastItem, gWebData->RDF_description,
copyString(token),
RDF_STRING_TYPE, NULL);
} else {
addSlotValue(f, f->lastItem, gWebData->RDF_description,
append2Strings(desc, token), RDF_STRING_TYPE, NULL);
remoteUnassert(gLocalStore, f->lastItem, gWebData->RDF_description, desc, RDF_STRING_TYPE);
}
}
void
bkStateTransition (RDFFile f, char* token)
{
if (startsWith("<A", token)) {
newLeafBkItem(f, token);
f->status = IN_ITEM_TITLE;
} else if (startsWith(OPEN_H3_STRING, token)) {
newFolderBkItem(f, token);
f->status = IN_H3;
} else if (startsWith(OPEN_TITLE_STRING, token)) {
f->status = IN_TITLE;
} else if (startsWith(OPEN_H3_STRING, token)) {
f->status = IN_H3;
} else if (startsWith(DD_STRING, token)) {
if (remoteStoreGetSlotValue(gLocalStore, f->lastItem, gWebData->RDF_description,
RDF_STRING_TYPE, false, true)
== NULL) f->status = IN_ITEM_DESCRIPTION;
} else if (startsWith(OPEN_DL_STRING, token)) {
f->stack[f->depth++] = f->lastItem;
} else if (startsWith(CLOSE_DL_STRING, token)) {
f->depth--;
} else if (startsWith("<HR>", token)) {
addSlotValue(f, createSeparator(), gCoreVocab->RDF_parent, f->stack[f->depth-1],
RDF_RESOURCE_TYPE, NULL);
f->status = 0;
} else if ((f->status == IN_ITEM_DESCRIPTION) && (startsWith("<BR>", token))) {
addDescription(f, f->lastItem, token);
} else f->status = 0;
}
void
newFolderBkItem(RDFFile f, char* token)
{
int16 start, end;
start = charSearch('"', token);
end = revCharSearch('"', token);
token[end] = '\0';
gBkFolderDate = copyString(&token[start+1]);
}
void
newLeafBkItem (RDFFile f, char* token)
{
char buffer[128];
struct tm *time;
uint32 dateVal;
char* url = NULL;
char* addDate = NULL;
char* lastVisit = NULL;
char* lastModified = NULL;
uint8 current = 0;
int32 len = RDF_STRLEN(token);
int32 n = 0;
char c = token[n++];
PRBool inString = false;
RDF_Resource newR;
while (n < len) {
if (c == '"') {
if (inString) {
token[n-1] = '\0';
inString = false;
} else {
inString = true;
if (current == 0) {
url = &token[n];
} else if (current == 1) {
addDate = &token[n];
} else if (current == 2) {
lastVisit = &token[n];
} else if (current == 3) {
lastModified = &token[n];
}
current++;
}
}
c = token[n++];
}
if (url == NULL) return;
newR = RDF_GetResource(NULL, url, true);
addSlotValue(f, newR, gCoreVocab->RDF_parent, f->stack[f->depth-1],
RDF_RESOURCE_TYPE, NULL);
/* addSlotValue(f, newR, gWebData->RDF_URL, (void*)copyString(url),
RDF_STRING_TYPE, true); */
if (addDate != NULL)
{
dateVal = atol(addDate);
if ((time = localtime((time_t *) &dateVal)) != NULL)
{
/* xxx
#ifdef XP_MAC
time->tm_year += 4;
strftime(buffer,sizeof(buffer),XP_GetString(RDF_HTML_MACDATE),time);
#elif XP_UNIX
strftime(buffer,sizeof(buffer),XP_GetString(RDF_HTML_MACDATE),time);
#else
strftime(buffer,sizeof(buffer),XP_GetString(RDF_HTML_WINDATE),time);
#endif
addSlotValue(f, newR, gNavCenter->RDF_bookmarkAddDate,
(void*)copyString(buffer), RDF_STRING_TYPE, NULL);
*/
}
}
if (lastVisit != NULL)
{
dateVal = atol(lastVisit);
if ((time = localtime((time_t *) &dateVal)) != NULL)
{
/* xxx
#ifdef XP_MAC
time->tm_year += 4;
strftime(buffer,sizeof(buffer),XP_GetString(RDF_HTML_MACDATE),time);
#elif XP_UNIX
strftime(buffer,sizeof(buffer),XP_GetString(RDF_HTML_MACDATE),time);
#else
strftime(buffer,sizeof(buffer),XP_GetString(RDF_HTML_WINDATE),time);
#endif
addSlotValue(f, newR, gWebData->RDF_lastVisitDate,
(void*)copyString(buffer), RDF_STRING_TYPE, NULL);
*/
}
}
if (lastModified != NULL)
{
dateVal = atol(lastModified);
if ((time = localtime((time_t *) &dateVal)) != NULL)
{
/* xxx
#ifdef XP_MAC
time->tm_year += 4;
strftime(buffer,sizeof(buffer),XP_GetString(RDF_HTML_MACDATE),time);
#elif XP_UNIX
strftime(buffer,sizeof(buffer),XP_GetString(RDF_HTML_MACDATE),time);
#else
strftime(buffer,sizeof(buffer),XP_GetString(RDF_HTML_WINDATE),time);
#endif
addSlotValue(f, newR, gWebData->RDF_lastModifiedDate,
(void*)copyString(buffer), RDF_STRING_TYPE, NULL);
*/
}
}
f->lastItem = newR;
}
char *
numericDate(char *url)
{
char *date = NULL;
int len=0;
if (!url) return NULL;
while (url[len])
{
if (!isdigit(url[len])) break;
++len;
}
if (len > 0)
{
if ((date = getMem(len+1)) != NULL)
{
strncpy(date, url, len);
}
}
return(date);
}
PRBool
bookmarkSlotp (RDF_Resource s)
{
return ((s == gCoreVocab->RDF_parent) || (s == gWebData->RDF_lastVisitDate) || (s == gWebData->RDF_description) ||
(s == gNavCenter->RDF_bookmarkAddDate) || (s == gWebData->RDF_lastModifiedDate) ||
(s == gCoreVocab->RDF_name));
}
void
HT_WriteOutAsBookmarks1 (RDF rdf, PRFileDesc *fp, RDF_Resource u, RDF_Resource top, int indent)
{
RDF_Cursor c = RDF_GetSources(rdf, u, gCoreVocab->RDF_parent, RDF_RESOURCE_TYPE, true);
RDF_Resource next;
char *date, *name, *url;
int loop;
if (c == NULL) return;
if (u == top) {
name = RDF_GetResourceName(rdf, u);
ht_rjcprintf(fp, "<!DOCTYPE NETSCAPE-Bookmark-file-1>\n", NULL);
ht_rjcprintf(fp, "<!-- This is an automatically generated file.\n", NULL);
ht_rjcprintf(fp, "It will be read and overwritten.\n", NULL);
ht_rjcprintf(fp, "Do Not Edit! -->\n", NULL);
ht_rjcprintf(fp, "<TITLE>%s</TITLE>\n", (name) ? name:"");
ht_rjcprintf(fp, "<H1>%s</H1>\n<DL><p>\n", (name) ? name:"");
}
while ((next = RDF_NextValue(c)) != NULL) {
url = resourceID(next);
if (containerp(next) && (!startsWith("ftp:",url)) && (!startsWith("file:",url))
&& (!startsWith("IMAP:", url)) && (!startsWith("nes:", url))
&& (!startsWith("mail:", url)) && (!startsWith("cache:", url))
&& (!startsWith("ldap:", url))) {
for (loop=0; loop<indent; loop++) ht_rjcprintf(fp, " ", NULL);
date = numericDate(resourceID(next));
ht_rjcprintf(fp, "<DT><H3 ADD_DATE=\"%s\">", (date) ? date:"");
if (date) freeMem(date);
name = RDF_GetResourceName(rdf, next);
ht_rjcprintf(fp, "%s</H3>\n", name);
for (loop=0; loop<indent; loop++) ht_rjcprintf(fp, " ", NULL);
ht_rjcprintf(fp, "<DL><p>\n", NULL);
HT_WriteOutAsBookmarks1(rdf, fp, next, top, indent+1);
for (loop=0; loop<indent; loop++) ht_rjcprintf(fp, " ", NULL);
ht_rjcprintf(fp, "</DL><p>\n", NULL);
}
else if (isSeparator(next)) {
for (loop=0; loop<indent; loop++) ht_rjcprintf(fp, " ", NULL);
ht_rjcprintf(fp, "<HR>\n", NULL);
}
else {
char* bkAddDate = (char*)RDF_GetSlotValue(rdf, next,
gNavCenter->RDF_bookmarkAddDate,
RDF_STRING_TYPE, false, true);
for (loop=0; loop<indent; loop++) ht_rjcprintf(fp, " ", NULL);
ht_rjcprintf(fp, "<DT><A HREF=\"%s\" ", resourceID(next));
date = numericDate(bkAddDate);
ht_rjcprintf(fp, "ADD_DATE=\"%s\" ", (date) ? date: "");
if (date) freeMem(date);
ht_rjcprintf(fp, "LAST_VISIT=\"%s\" ", resourceLastVisitDate(rdf, next));
ht_rjcprintf(fp, "LAST_MODIFIED=\"%s\">", resourceLastModifiedDate(rdf, next));
ht_rjcprintf(fp, "%s</A>\n", RDF_GetResourceName(rdf, next));
if (resourceDescription(rdf, next) != NULL) {
ht_rjcprintf(fp, "<DD>%s\n", resourceDescription(rdf, next));
}
}
}
RDF_DisposeCursor(c);
if (u == top) {
ht_rjcprintf(fp, "</DL>\n", NULL);
}
}
PR_PUBLIC_API(void)
HT_WriteOutAsBookmarks (RDF r, PRFileDesc *fp, RDF_Resource u)
{
HT_WriteOutAsBookmarks1 (r, fp, u, u, 1);
}
void
flushBookmarks()
{
PRFileDesc *bkfp;
if (gBookmarkURL != NULL)
{
/*
delete bookmark.htm as PROpen() with PR_TRUNCATE appears broken (at least on Mac)
*/
CallPRDeleteFileUsingFileURL(gBookmarkURL);
if ((bkfp = CallPROpenUsingFileURL(gBookmarkURL, (PR_WRONLY|PR_CREATE_FILE|PR_TRUNCATE),
0644)) != NULL)
{
HT_WriteOutAsBookmarks(gNCDB, bkfp, gNavCenter->RDF_BookmarkFolderCategory);
PR_Close(bkfp);
}
}
}
PRBool
ResourceBelongsToBookmarksp (RDF_Resource r, int32 depth) {
if (depth > 20) {
return false;
} else if (r == gNavCenter->RDF_BookmarkFolderCategory) {
return 1;
} else if (containerp(r)) {
Assertion as = r->rarg1;
while (as) {
if ((as->db == gBMKStore) &&
(as->s == gCoreVocab->RDF_parent) &&
(as->tv == 1) &&
(ResourceBelongsToBookmarksp((RDF_Resource)as->value, depth+1))) return 1;
as = as->next;
}
return 0;
} else return 0;
}
PRBool remoteAssert3 (RDFFile fi, RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv);
PRBool remoteUnassert3 (RDFFile fi, RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type);
PRBool
bmkUnassert (RDFT mcf, RDF_Resource u, RDF_Resource s,
void* v, RDF_ValueType type) {
if (ResourceBelongsToBookmarksp(u, 0)) {
return (remoteStoreRemove(mcf, u, s, v, type) != NULL);
} else return 0;
}
PRBool
bmkAssert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv) {
if (ResourceBelongsToBookmarksp(u, 0)) {
return (remoteStoreAdd(mcf, u, s, v, type, tv) != NULL);
} else return 0;
}
extern RDF_Resource gPTFolder;
void
readInBookmarks()
{
/* RDF_Resource ptFolder; */
RDF_Resource bmk = RDF_GetResource(NULL, "NC:Bookmarks", true);
RDFFile f = makeRDFFile(gBookmarkURL, bmk, true);
PRFileDesc *fp;
int32 len;
char buf[512];
f->fileType = RDF_BOOKMARKS;
f->db = gBMKStore;
f->assert = remoteAssert3;
fp = CallPROpenUsingFileURL(f->url, PR_RDONLY|PR_CREATE_FILE, 0644);
if (fp == NULL) return;
while((len=PR_Read(fp, buf, sizeof(buf))) >0) {
parseNextBkBlob(f, buf, len);
}
gPTFolder = remoteStoreGetSlotValue(f->db,
gNavCenter->RDF_PersonalToolbarFolderCategory,
gCoreVocab->RDF_instanceOf, RDF_RESOURCE_TYPE, true, true);
if (gPTFolder == NULL) {
if ((gPTFolder = createContainer("personaltoolbar.rdf")) != NULL) {
addSlotValue(f, gPTFolder, gCoreVocab->RDF_instanceOf,
gNavCenter->RDF_PersonalToolbarFolderCategory,
RDF_RESOURCE_TYPE, "true");
addSlotValue(f, gPTFolder, gCoreVocab->RDF_name,
copyString("Personal Toolbar"),
RDF_STRING_TYPE, "true");
RDFUtil_SetPTFolder(gPTFolder);
}
}
PR_Close(fp);
freeMem(f->line);
freeMem(f->currentSlot);
freeMem(f->holdOver);
}
RDFT
MakeBMKStore (char* url)
{
if (startsWith("rdf:bookmarks", url)) {
if (gBMKStore == 0) {
RDFT ntr = gBMKStore = NewRemoteStore(url);
ntr->assert = bmkAssert;
ntr->unassert = bmkUnassert;
readInBookmarks();
return ntr;
} else return gBMKStore;
} else return NULL;
}
#endif

View File

@@ -0,0 +1,72 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_BMK2MCF_H_
#define _RDF_BMK2MCF_H_
#include "rdf.h"
#include "rdf-int.h"
#include "vocab.h"
#include "stdio.h"
#include "ctype.h"
/* bmk2mcf.c data structures and defines */
#define OPEN_TITLE_STRING "<TITLE>"
#define CLOSE_TITLE_STRING "</TITLE>"
#define OPEN_H1_STRING "<H1>"
#define CLOSE_H1_STRING "</H1>"
#define OPEN_H3_STRING "<H3"
#define CLOSE_H3_STRING "</H3>"
#define OPEN_DL_STRING "<DL>"
#define CLOSE_DL_STRING "</DL>"
#define DT_STRING "<DT>"
#define PAR_STRING "<P>"
#define DD_STRING "<DD>"
#define IN_TITLE 1
#define IN_H3 5
#define IN_ITEM_TITLE 7
#define IN_ITEM_DESCRIPTION 9
/* bmk2mcf.c function prototypes */
RDF_Resource createSeparator(void);
RDF_Resource createContainer (char* id);
char * resourceDescription (RDF rdf, RDF_Resource r);
char * resourceLastVisitDate (RDF rdf, RDF_Resource r);
char * resourceLastModifiedDate (RDF rdf, RDF_Resource r);
void parseNextBkBlob (RDFFile f, char* blob, int32 size);
void parseNextBkToken (RDFFile f, char* token);
void addDescription (RDFFile f, RDF_Resource r, char* token);
void bkStateTransition (RDFFile f, char* token);
void newFolderBkItem(RDFFile f, char* token);
void newLeafBkItem (RDFFile f, char* token);
char * numericDate(char *url);
void HT_WriteOutAsBookmarks1 (RDF rdf, PRFileDesc *fp, RDF_Resource u, RDF_Resource top, int indent);
void flushBookmarks();
#endif

View File

@@ -0,0 +1,114 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "rdf-int.h"
/* We need to define a new class of urls for cache objects.
e.g., cache:<something here>
The url for the rdf datastore corresponding to the cache
is rdf:cache.
The Cache Schema.
The cache consists of a hierarchy of objects. The standard
hierarchy relation (RDF_parent). In addition, each object
may have the following properties.
lastAccess
lastModified
container cache objects start with cache:container ...
*/
RDFT gCacheStore = NULL;
RDFT MakeCacheStore (char* url) {
if (startsWith("rdf:cache", url)) {
if (gCacheStore != NULL) {
return gCacheStore;
} else {
RDF_Translator ntr = (RDF_Translator)getMem(sizeof(RDF_TranslatorStruct));
ntr->assert = NULL;
ntr->unassert = NULL;
ntr->getSlotValue = cacheGetSlotValue;
ntr->getSlotValues = cacheGetSlotValues;
ntr->hasAssertion = cacheHasAssertion;
ntr->nextValue = cacheNextValue;
ntr->disposeCursor = cacheDisposeCursor;
gCacheStore = ntr;
return ntr;
}
} else return NULL;
}
PRBool
cacheHasAssertion (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv) {
if ((resourceType(u) == CACHE_RT) && tv) {
/*e.g., u->id = cache:http://www.netscape.com/
s = gWebData->RDF_size
v = 1000
type = RDF_INT_TYPE
return true if the cache object corresponding to u has a size of 1000
e.g., u->id = cache:http://www.netscape.com/
s = gCoreVocab->RDF_parent
type = RDF_RESOURCE_TYPE
v-> = "cache:container:MemoryCache"
*/
} else {
return 0;
}
}
RDF_Cursor cacheGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s,
RDF_ValueType type, PRBool inversep, PRBool tv) {
if ((resourceType(u) == CACHE_RT) && tv && (s == gCoreVocab->RDF_parent) && inversep) {
RDF_Cursor c;
c = (RDF_Cursor) getMem(sizeof(RDF_CursorStruc));
c->u = u;
c->count = 0;
c->pdata = NULL;
c->type = type;
return c;
} else return NULL;
}
void* cacheNextValue (RDFT rdf, RDF_Cursor c) {
"return the next value, update count, return NUll when there are no more.
the children are nodes. to create a new node, call RDF_Create(url, 1);
If something is a container, after getting the object, do setContainerp(r, 1);"
}
RDF_Error cacheDisposeCursor (RDFT rdf, RDF_Cursor c) {
"dispose it. c could be NULL"
}
void* cacheGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type,
PRBool inversep, PRBool tv) {
if ("willing to answer this") {
return the value;
} else {
return NULL;
}
}

View File

@@ -0,0 +1,284 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file synthesizes default columns for a given node.
For more information on this file, contact rjc or guha
For more information on RDF, look at the RDF section of www.mozilla.org
*/
#include "columns.h"
RDF_Cursor
ColumnsGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s,
RDF_ValueType type, PRBool inversep, PRBool tv)
{
RDF_Cursor c;
if (!containerp(u) || (s != gNavCenter->RDF_Column) || (inversep) ||
(!tv) || (type != RDF_RESOURCE_TYPE))
{
return(NULL);
}
if ((c = (RDF_Cursor)getMem(sizeof(struct RDF_CursorStruct))) != NULL)
{
c->u = u;
c->value = NULL;
c->count = 0;
}
return(c);
}
void *
ColumnsGetSlotValue(RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type,
PRBool inversep, PRBool tv)
{
void *val = NULL;
if (u == NULL) return(NULL);
if ((s == gCoreVocab->RDF_name) && (type == RDF_STRING_TYPE)
&& (!inversep) && (tv))
{
#ifdef XXX
if (u == gCoreVocab->RDF_name) val = copyString(XP_GetString(RDF_NAME_STR));
else if (u == gNavCenter->RDF_URLShortcut) val = copyString(XP_GetString(RDF_SHORTCUT_STR));
else if (u == gWebData->RDF_URL) val = copyString(XP_GetString(RDF_URL_STR));
else if (u == gWebData->RDF_description) val = copyString(XP_GetString(RDF_DESCRIPTION_STR));
else if (u == gWebData->RDF_firstVisitDate) val = copyString(XP_GetString(RDF_FIRST_VISIT_STR));
else if (u == gWebData->RDF_lastVisitDate) val = copyString(XP_GetString(RDF_LAST_VISIT_STR));
else if (u == gWebData->RDF_numAccesses) val = copyString(XP_GetString(RDF_NUM_ACCESSES_STR));
else if (u == gWebData->RDF_creationDate) val = copyString(XP_GetString(RDF_CREATED_ON_STR));
else if (u == gWebData->RDF_lastModifiedDate) val = copyString(XP_GetString(RDF_LAST_MOD_STR));
else if (u == gWebData->RDF_size) val = copyString(XP_GetString(RDF_SIZE_STR));
else if (u == gNavCenter->RDF_bookmarkAddDate) val = copyString(XP_GetString(RDF_ADDED_ON_STR));
#endif
}
else if ((s == gNavCenter->RDF_ColumnDataType) &&
(type == RDF_INT_TYPE) && (!inversep) && (tv))
{
if (u == gNavCenter->RDF_bookmarkAddDate ||
u == gWebData->RDF_firstVisitDate ||
u == gWebData->RDF_lastVisitDate ||
u == gWebData->RDF_lastModifiedDate ||
u == gWebData->RDF_creationDate)
{
val = (void *)HT_COLUMN_STRING;
}
else if (u == gWebData->RDF_size ||
u == gWebData->RDF_numAccesses ||
u == gNavCenter->cookieDomain ||
u == gNavCenter->cookieSecure)
{
val = (void *)HT_COLUMN_INT;
}
else
{
/* default to string... XXX wrong thing to do? */
val = (void *)HT_COLUMN_STRING;
}
}
else if ((s == gNavCenter->RDF_ColumnWidth) &&
(type == RDF_INT_TYPE) && (!inversep) && (tv))
{
if (u == gCoreVocab->RDF_name) val = (void *)128L;
else if (u == gWebData->RDF_URL) val = (void *)200L;
else val = (void *)80;
}
return(val);
}
void *
ColumnsNextValue (RDFT rdf, RDF_Cursor c)
{
void *arc = NULL;
PR_ASSERT(c != NULL);
if (c == NULL) return(NULL);
switch( resourceType(c->u) )
{
case RDF_RT:
if ((c->u == gNavCenter->RDF_Sitemaps) || (c->u == gNavCenter->RDF_Mail))
{
switch(c->count)
{
case 0: arc = gCoreVocab->RDF_name; break;
case 1: arc = gWebData->RDF_URL; break;
}
}
else do
{
switch(c->count)
{
case 0: arc = gCoreVocab->RDF_name; break;
case 1:
if ((idenEqual(c->u, gNavCenter->RDF_BookmarkFolderCategory)) ||
((!startsWith("http://", resourceID(c->u))) && endsWith(".rdf", resourceID(c->u))))
{
arc = gNavCenter->RDF_URLShortcut;
}
else
{
/* disallow shortcuts from external RDF graphs, so skip to next column */
arc = NULL;
++(c->count);
}
break;
case 2: arc = gWebData->RDF_URL; break;
case 3: arc = gWebData->RDF_description; break;
case 4: arc = gWebData->RDF_keyword; break;
case 5: arc = gNavCenter->RDF_bookmarkAddDate; break;
case 6: arc = gWebData->RDF_lastVisitDate; break;
case 7: arc = gWebData->RDF_lastModifiedDate; break;
case 8: arc = gNavCenter->pos; break;
}
} while ((c->count <= 6) && (arc == NULL));
break;
case HISTORY_RT:
switch(c->count)
{
case 0: arc = gCoreVocab->RDF_name; break;
case 1: arc = gWebData->RDF_URL; break;
case 2: arc = gWebData->RDF_firstVisitDate; break;
case 3: arc = gWebData->RDF_lastVisitDate; break;
case 4: arc = NULL; break;
case 5: arc = gWebData->RDF_numAccesses; break;
}
break;
case COOKIE_RT:
switch(c->count)
{
case 0: arc = gCoreVocab->RDF_name; break;
case 1: arc = gNavCenter->cookieHost; break;
case 2: arc = gNavCenter->cookiePath; break;
case 3: arc = gNavCenter->cookieValue; break;
case 4: arc = gNavCenter->cookieExpires; break;
case 5: arc = gNavCenter->cookieDomain; break;
case 6: arc = gNavCenter->cookieSecure; break;
}
break;
case FTP_RT:
case ES_RT:
switch(c->count)
{
case 0: arc = gCoreVocab->RDF_name; break;
case 1: arc = gWebData->RDF_URL; break;
case 2: arc = gWebData->RDF_description; break;
case 3: arc = gWebData->RDF_size; break;
case 4: arc = gWebData->RDF_lastModifiedDate; break;
}
break;
case LFS_RT:
switch(c->count)
{
case 0: arc = gCoreVocab->RDF_name; break;
case 1: arc = gWebData->RDF_URL; break;
case 2: arc = gWebData->RDF_description; break;
case 3: arc = gWebData->RDF_size; break;
case 4: arc = gWebData->RDF_lastModifiedDate; break;
case 5: arc = gWebData->RDF_creationDate; break;
}
break;
case LDAP_RT:
switch(c->count)
{
case 0: arc = gCoreVocab->RDF_name; break;
}
break;
case PM_RT:
case IM_RT:
switch(c->count)
{
case 0: arc = gCoreVocab->RDF_name; break;
case 1: arc = gWebData->RDF_URL; break;
}
break;
case SEARCH_RT:
switch(c->count)
{
case 0: arc = gCoreVocab->RDF_name; break;
case 1: arc = gNavCenter->RDF_URLShortcut; break;
case 2: arc = gWebData->RDF_URL; break;
case 3: arc = gWebData->RDF_description; break;
case 4: arc = gWebData->RDF_keyword; break;
}
break;
default:
switch(c->count)
{
case 0: arc = gCoreVocab->RDF_name; break;
}
break;
}
++(c->count);
return(arc);
}
RDF_Error
ColumnsDisposeCursor (RDFT rdf, RDF_Cursor c)
{
if (c != NULL)
{
freeMem(c);
}
return(0);
}
RDFT
MakeColumnStore (char* url)
{
RDFT ntr = NULL;
if (strstr(url, "rdf:columns"))
{
if ((ntr = (RDFT)getMem(sizeof(struct RDF_TranslatorStruct))) != NULL)
{
ntr->getSlotValues = ColumnsGetSlotValues;
ntr->getSlotValue = ColumnsGetSlotValue;
ntr->nextValue = ColumnsNextValue;
ntr->disposeCursor = ColumnsDisposeCursor;
ntr->url = copyString(url);
}
}
return(ntr);
}

View File

@@ -0,0 +1,48 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_COLUMNS_H_
#define _RDF_COLUMNS_H_
#include "rdf-int.h"
#include "htrdf.h"
#include "utils.h"
/* columns.c data structures */
extern int RDF_NAME_STR, RDF_SHORTCUT_STR, RDF_URL_STR, RDF_DESCRIPTION_STR;
extern int RDF_FIRST_VISIT_STR, RDF_LAST_VISIT_STR, RDF_NUM_ACCESSES_STR;
extern int RDF_CREATED_ON_STR, RDF_LAST_MOD_STR, RDF_SIZE_STR, RDF_ADDED_ON_STR;
/* columns.c function prototypes */
NSPR_BEGIN_EXTERN_C
RDF_Cursor ColumnsGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
void * ColumnsGetSlotValue(RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
void * ColumnsNextValue (RDFT rdf, RDF_Cursor c);
RDF_Error ColumnsDisposeCursor (RDFT rdf, RDF_Cursor c);
RDFT MakeColumnStore (char* url);
NSPR_END_EXTERN_C
#endif

View File

@@ -0,0 +1,574 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "rdf.h"
#include "nsIRDFDataSource.h"
#include "nsIRDFDataBase.h"
#include "nsIRDFObserver.h"
#include "nsIRDFService.h"
#include "nsIRDFCursor.h"
#include "nspr.h"
#include "plhash.h"
PR_BEGIN_EXTERN_C
PR_PUBLIC_API(void) _comwrap_NotificationCB(RDF_Event event, void* pdata);
PR_END_EXTERN_C
class rdfDataBaseWrapper;
class rdfCursorWrapper;
class rdfServiceWrapper;
class rdfServiceFactory;
class rdfDatabaseWrapper : public nsIRDFDataBase {
public:
NS_DECL_ISUPPORTS
rdfDatabaseWrapper(RDF r);
virtual ~rdfDatabaseWrapper();
/* nsIRDFDataSource methods: */
NS_METHOD GetName(const RDF_String* name /* out */ );
NS_METHOD GetSource(RDF_Node target,
RDF_Resource arcLabel,
RDF_Resource *source /* out */);
NS_METHOD GetSource(RDF_Node target,
RDF_Resource arcLabel,
PRBool tv,
RDF_Resource *source /* out */);
NS_METHOD GetSources(RDF_Node target,
RDF_Resource arcLabel,
nsIRDFCursor **sources /* out */);
NS_METHOD GetSources(RDF_Node target,
RDF_Resource arcLabel,
PRBool tv,
nsIRDFCursor **sources /* out */);
NS_METHOD GetTarget(RDF_Resource source,
RDF_Resource arcLabel,
RDF_ValueType targetType,
RDF_NodeStruct& target /* in/out */);
NS_METHOD GetTarget(RDF_Resource source,
RDF_Resource arcLabel,
RDF_ValueType targetType,
PRBool tv,
RDF_NodeStruct& target /* in/out */);
NS_METHOD GetTargets(RDF_Resource source,
RDF_Resource arcLabel,
RDF_ValueType targetType,
nsIRDFCursor **targets /* out */);
NS_METHOD GetTargets(RDF_Resource source,
RDF_Resource arcLabel,
PRBool tv,
RDF_ValueType targetType,
nsIRDFCursor **targets /* out */);
NS_METHOD Assert(RDF_Resource source,
RDF_Resource arcLabel,
RDF_Node target,
PRBool tv = PR_TRUE);
NS_METHOD Unassert(RDF_Resource source,
RDF_Resource arcLabel,
RDF_Node target);
NS_METHOD HasAssertion(RDF_Resource source,
RDF_Resource arcLabel,
RDF_Node target,
PRBool tv,
PRBool* hasAssertion /* out */);
NS_METHOD AddObserver(nsIRDFObserver *n,
RDF_EventMask type = RDF_ANY_NOTIFY);
NS_METHOD RemoveObserver(nsIRDFObserver *n,
RDF_EventMask = RDF_ANY_NOTIFY);
NS_METHOD ArcLabelsIn(RDF_Node node,
nsIRDFCursor **labels /* out */);
NS_METHOD ArcLabelsOut(RDF_Resource source,
nsIRDFCursor **labels /* out */);
NS_METHOD Flush();
/* nsIRDFDataBase methods: */
NS_METHOD AddDataSource(nsIRDFDataSource* dataSource);
NS_METHOD RemoveDataSource(nsIRDFDataSource* dataSource);
NS_METHOD GetDataSource(RDF_String url,
nsIRDFDataSource **source /* out */ );
NS_METHOD DeleteAllArcs(RDF_Resource resource);
private:
RDF mRDF;
PLHashTable* mpObserverMap;
};
class rdfCursorWrapper : public nsIRDFCursor {
public:
NS_DECL_ISUPPORTS
rdfCursorWrapper(RDF_Cursor c);
virtual ~rdfCursorWrapper();
NS_METHOD HasElements(PRBool& hasElements);
NS_METHOD Next(RDF_NodeStruct& n);
private:
RDF_Cursor mCursor;
};
class rdfServiceWrapper : public nsIRDFService {
public:
NS_DECL_ISUPPORTS
NS_METHOD CreateDatabase(const RDF_String* url,
nsIRDFDataBase** db);
};
class rdfServiceFactory : public nsIFactory {
public:
NS_DECL_ISUPPORTS
rdfServiceFactory();
virtual ~rdfServiceFactory();
NS_METHOD CreateInstance(nsISupports *aOuter,
REFNSIID anIID,
void **aResult);
NS_METHOD LockFactory(PRBool aLock);
};
/*
rdfDataBaseWrapper:
*/
NS_IMPL_ISUPPORTS( rdfDatabaseWrapper, NS_IRDFDATABASE_IID )
rdfDatabaseWrapper::rdfDatabaseWrapper(RDF r) : mRDF(r)
{
mpObserverMap = PL_NewHashTable( 100,
NULL, // XXX isn't there are hash fn for pointers???
PL_CompareValues,
PL_CompareValues,
0,
0 );
PR_ASSERT( mpObserverMap );
#ifdef XXX
if( !mpObserverMap ) // XXX just like 'new' failing on this object?
throw bad_alloc("rdf: unable to allocate observer map" );
#endif
}
rdfDatabaseWrapper::~rdfDatabaseWrapper()
{
PL_HashTableDestroy( mpObserverMap );
}
NS_METHOD
rdfDatabaseWrapper::GetName(const RDF_String* name /* out */ )
{
PR_ASSERT( PR_FALSE );
return NS_ERROR_NOT_IMPLEMENTED; // XXX
}
NS_METHOD
rdfDatabaseWrapper::GetSource(RDF_Node target,
RDF_Resource arcLabel,
RDF_Resource *source /* out */)
{
PR_ASSERT( target && source );
*source = (RDF_Resource) RDF_GetSlotValue( mRDF,
target->value.r,
arcLabel,
RDF_RESOURCE_TYPE, // anything else makes no sense
PR_TRUE,
PR_TRUE );
return NS_OK;
}
NS_METHOD
rdfDatabaseWrapper::GetSource(RDF_Node target,
RDF_Resource arcLabel,
PRBool tv,
RDF_Resource *source /* out */)
{
*source = (RDF_Resource) RDF_GetSlotValue( mRDF,
target->value.r,
arcLabel,
RDF_RESOURCE_TYPE, // anything else makes no sense
PR_TRUE,
tv );
return NS_OK;
}
NS_METHOD
rdfDatabaseWrapper::GetSources(RDF_Node target,
RDF_Resource arcLabel,
nsIRDFCursor **sources /* out */)
{
return GetSources(target,arcLabel,PR_TRUE,sources);
}
NS_METHOD
rdfDatabaseWrapper::GetSources(RDF_Node target,
RDF_Resource arcLabel,
PRBool tv,
nsIRDFCursor **sources /* out */)
{
PR_ASSERT( sources );
if( 0 == sources )
return NS_ERROR_NULL_POINTER;
*sources = 0;
RDF_Cursor c = RDF_GetSources( mRDF,
target->value.r,
arcLabel,
RDF_RESOURCE_TYPE, // anything else makes no sense
tv );
if( c ) {
*sources = new rdfCursorWrapper( c );
(*sources)->AddRef();
}
return NS_OK;
}
NS_METHOD
rdfDatabaseWrapper::GetTarget(RDF_Resource source,
RDF_Resource arcLabel,
RDF_ValueType targetType,
RDF_NodeStruct& target /* in/out */)
{
return GetTarget(source,arcLabel,targetType,PR_TRUE,target);
}
NS_METHOD
rdfDatabaseWrapper::GetTarget(RDF_Resource source,
RDF_Resource arcLabel,
RDF_ValueType targetType,
PRBool tv,
RDF_NodeStruct& target /* in/out */)
{
PR_ASSERT( targetType != RDF_ANY_TYPE ); // not ready to support this yet
void* value = RDF_GetSlotValue( mRDF,
target.value.r,
arcLabel,
targetType, // anything else makes no sense
PR_FALSE,
tv );
target.type = targetType;
target.value.r = (RDF_Resource) value; // reasonable? XXX
return NS_OK;
}
NS_METHOD
rdfDatabaseWrapper::GetTargets(RDF_Resource source,
RDF_Resource arcLabel,
RDF_ValueType targetType,
nsIRDFCursor **targets /* out */)
{
return GetTargets(source,arcLabel,PR_TRUE,targetType,targets);
}
NS_METHOD
rdfDatabaseWrapper::GetTargets(RDF_Resource source,
RDF_Resource arcLabel,
PRBool tv,
RDF_ValueType targetType,
nsIRDFCursor **targets /* out */)
{
PR_ASSERT( targets );
if( 0 == targets )
return NS_ERROR_NULL_POINTER;
*targets = 0;
RDF_Cursor c = RDF_GetTargets( mRDF,
source,
arcLabel,
targetType,
tv );
if( c ) {
*targets = new rdfCursorWrapper( c );
(*targets)->AddRef();
}
return NS_OK;
}
NS_METHOD
rdfDatabaseWrapper::Assert(RDF_Resource source,
RDF_Resource arcLabel,
RDF_Node target,
PRBool tv)
{
PRBool b = tv ? RDF_Assert( mRDF, source, arcLabel, (void*)target->value.r, target->type ) :
RDF_AssertFalse( mRDF, source, arcLabel, (void*)target->value.r, target->type );
// XXX
return NS_OK;
}
NS_METHOD
rdfDatabaseWrapper::Unassert(RDF_Resource source,
RDF_Resource arcLabel,
RDF_Node target)
{
PRBool b = RDF_Unassert( mRDF,
source,
arcLabel,
target->value.r,
target->type ); // XXX
return NS_OK;
}
NS_METHOD
rdfDatabaseWrapper::HasAssertion(RDF_Resource source,
RDF_Resource arcLabel,
RDF_Node target,
PRBool truthValue,
PRBool* hasAssertion /* out */)
{
*hasAssertion = RDF_HasAssertion( mRDF,
source,
arcLabel,
target->value.r,
target->type,
truthValue );
return NS_OK;
}
PR_IMPLEMENT(void)
_comwrap_NotificationCB(RDF_Event event, void* pdata)
{
nsIRDFObserver* observer = (nsIRDFObserver*) pdata;
// XXX QueryInterface & release??
observer->HandleEvent( (nsIRDFDataSource*)pdata, event );
}
NS_METHOD
rdfDatabaseWrapper::AddObserver(nsIRDFObserver *observer,
RDF_EventMask type)
{
// XXX event masking does not currently work
RDF_Notification notification = (RDF_Notification) PL_HashTableLookup( mpObserverMap, observer );
if( !notification ) {
observer->AddRef();
notification = RDF_AddNotifiable( mRDF,
_comwrap_NotificationCB,
NULL, // XXX
observer );
PL_HashTableAdd( mpObserverMap,
observer,
notification );
}
return NS_OK; // XXX
}
NS_METHOD
rdfDatabaseWrapper::RemoveObserver(nsIRDFObserver *observer,
RDF_EventMask type)
{
RDF_Notification notification = (RDF_Notification) PL_HashTableLookup( mpObserverMap, observer );
if( !notification )
return NS_ERROR_ILLEGAL_VALUE;
RDF_Error err = RDF_DeleteNotifiable( notification );
PR_ASSERT( !err ); // the current implementation never fails!
PL_HashTableRemove( mpObserverMap, observer );
observer->Release();
return NS_OK; // XXX
}
NS_METHOD
rdfDatabaseWrapper::ArcLabelsIn(RDF_Node node,
nsIRDFCursor **labels /* out */)
{
PR_ASSERT( labels );
if( 0 == labels )
return NS_ERROR_NULL_POINTER;
*labels = 0;
RDF_Cursor c = RDF_ArcLabelsIn( mRDF, node->value.r );
if( c ) {
*labels = new rdfCursorWrapper( c );
(*labels)->AddRef();
}
return NS_OK;
}
NS_METHOD
rdfDatabaseWrapper::ArcLabelsOut(RDF_Resource source,
nsIRDFCursor **labels /* out */)
{
PR_ASSERT( labels );
if( 0 == labels )
return NS_ERROR_NULL_POINTER;
*labels = 0;
RDF_Cursor c = RDF_ArcLabelsOut( mRDF, source );
if( c ) {
*labels = new rdfCursorWrapper( c );
(*labels)->AddRef();
}
return NS_OK;
}
NS_METHOD
rdfDatabaseWrapper::Flush()
{
return NS_ERROR_NOT_IMPLEMENTED; // XXX
}
NS_METHOD
rdfDatabaseWrapper::DeleteAllArcs(RDF_Resource resource)
{
return RDF_DeleteAllArcs( mRDF, resource );
}
/*
rdfServiceWrapper: the RDF service singleton
*/
NS_IMPL_ISUPPORTS( rdfServiceWrapper, NS_IRDFSERVICE_IID )
NS_METHOD
rdfServiceWrapper::CreateDatabase(const RDF_String* url_ary,
nsIRDFDataBase **db)
{
PR_ASSERT( 0 != db );
if( 0 == db )
return NS_ERROR_NULL_POINTER;
*db = 0;
nsresult result = NS_OK;
RDF rdf = RDF_GetDB(url_ary);
if( 0 == rdf ) {
result = RDF_ERROR_UNABLE_TO_CREATE; // XXX this is too wishy-washy
} else {
*db = new rdfDatabaseWrapper(rdf); // XXX
}
return result;
}
/*
rdfCursorWrapper
*/
NS_IMPL_ISUPPORTS( rdfCursorWrapper, NS_IRDFCURSOR_IID )
rdfCursorWrapper::rdfCursorWrapper(RDF_Cursor c) : mCursor(c)
{
}
rdfCursorWrapper::~rdfCursorWrapper()
{
RDF_DisposeCursor( mCursor );
}
NS_METHOD
rdfCursorWrapper::Next(RDF_NodeStruct& next)
{
next.type = RDF_CursorValueType( mCursor );
next.value.r = (RDF_Resource) RDF_NextValue( mCursor );
return NS_OK;
}
/*
rdfServiceFactory
*/
NS_IMPL_ISUPPORTS( rdfServiceFactory, NS_IFACTORY_IID )
NS_METHOD
rdfServiceFactory::CreateInstance( nsISupports *aOuter,
REFNSIID aIID,
void **aResult )
{
PR_ASSERT( aResult );
if( 0 == aResult )
return NS_ERROR_NULL_POINTER;
*aResult = 0;
nsISupports* instance = new rdfServiceWrapper();
nsresult result = instance->QueryInterface( aIID, aResult );
PR_ASSERT( result = NS_OK );
if( result != NS_OK )
delete instance; // wrong interface!
return result;
}
NS_METHOD
rdfServiceFactory::LockFactory(PRBool lock)
{
PR_ASSERT( PR_FALSE );
return NS_ERROR_NOT_IMPLEMENTED;
}

View File

@@ -0,0 +1,490 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file implements FTP support for the rdf data model.
For more information on this file, contact rjc or guha
For more information on RDF, look at the RDF section of www.mozilla.org
*/
#include "es2mcf.h"
#include "glue.h"
#include "ht.h"
#include "utils.h"
/* externs */
extern RDF gNCDB;
#define ESFTPRT(x) ((resourceType((RDF_Resource)x) == ES_RT) || (resourceType((RDF_Resource)x) == FTP_RT))
RDFT
MakeESFTPStore (char* url)
{
RDFT ntr = NewRemoteStore(url);
ntr->assert = ESAssert;
ntr->unassert = ESUnassert;
ntr->possiblyAccessFile = ESFTPPossiblyAccessFile;
return ntr;
}
void
ESFTPPossiblyAccessFile (RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep)
{
if (((resourceType(u) == ES_RT) || (resourceType(u) == FTP_RT)) &&
(s == gCoreVocab->RDF_parent) && (containerp(u))) {
char* id = resourceID(u);
readRDFFile((resourceType(u) == ES_RT ? &id[4] : id), u, false, rdf);
}
}
PRBool
ESAssert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv)
{
PRBool retVal;
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char*) v)));
if ((s == gCoreVocab->RDF_parent) && (type == RDF_RESOURCE_TYPE) &&
(ESFTPRT((RDF_Resource)v)) &&
(tv) && (containerp((RDF_Resource)v))) {
ESAddChild((RDF_Resource)v, u);
retVal = PR_TRUE;
} else {
retVal = PR_FALSE;
}
return(retVal);
}
PRBool
ESUnassert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type)
{
PRBool retVal;
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char*) v)));
if ((s == gCoreVocab->RDF_parent) && (type == RDF_RESOURCE_TYPE) &&
(ESFTPRT((RDF_Resource)v)) &&
(containerp((RDF_Resource)v))) {
ESRemoveChild((RDF_Resource)v, u);
retVal = PR_TRUE;
} else {
retVal = PR_FALSE;
}
return(retVal);
}
void
es_GetUrlExitFunc (URL_Struct *urls, int status, MWContext *cx)
{
RDF_Resource parent = NULL, child = NULL, r;
_esFEData *feData;
char *newURL, *p;
feData = (_esFEData *)urls->fe_data;
if ((status >= 0) && (feData != NULL))
{
parent = RDF_GetResource(gNCDB, feData->parent, false);
child = RDF_GetResource(gNCDB, feData->child, false);
if ((parent != NULL) && (child != NULL))
{
switch(feData->method)
{
case URL_POST_METHOD:
if (((p = RDF_STRRCHR(resourceID(child), '/')) != NULL) && (*++p != '\0'))
{
if ((newURL = append2Strings(resourceID(parent), p)) != NULL)
{
if ((r = RDF_GetResource(gNCDB, newURL, 1)) != NULL)
{
setContainerp(r, containerp(child));
setResourceType(r, resourceType(child));
remoteStoreAdd(gRemoteStore, r,
gCoreVocab->RDF_parent, parent,
RDF_RESOURCE_TYPE, 1);
}
freeMem(newURL);
}
}
break;
case URL_DELETE_METHOD:
remoteStoreRemove(gRemoteStore, child,
gCoreVocab->RDF_parent, parent,
RDF_RESOURCE_TYPE);
break;
}
}
}
else if (status < 0)
{
if ((cx != NULL) && (urls != NULL) && (urls->error_msg != NULL))
{
FE_Alert(cx, urls->error_msg);
}
}
if (feData != NULL)
{
esFreeFEData(feData);
}
NET_FreeURLStruct (urls);
}
char *
nativeFilename(char *filename)
{
char *newName = NULL, *temp;
int x = 0;
if (filename == NULL) return(NULL);
if ((newName = unescapeURL(filename)) != NULL)
{
if ((temp = convertFileURLToNSPRCopaceticPath(newName)) != NULL)
{
temp = copyString(temp);
}
freeMem(newName);
newName = temp;
#ifdef XP_WIN
if (newName != NULL)
{
while (newName[x] != '\0')
{
if (newName[x] == '/')
{
newName[x] = '\\';
}
++x;
}
}
#endif
}
return(newName);
}
_esFEData *
esMakeFEData(RDF_Resource parent, RDF_Resource child, int method)
{
_esFEData *feData;
if ((feData = (_esFEData *)XP_ALLOC(3*sizeof(char *))) != NULL)
{
feData->parent = copyString(resourceID(parent));
feData->child = copyString(resourceID(child));
feData->method = method;
}
return(feData);
}
void
esFreeFEData(_esFEData *feData)
{
if (feData != NULL)
{
if (feData->parent) freeMem(feData->parent);
if (feData->child) freeMem(feData->child);
freeMem(feData);
}
}
/** go tell the directory that child got added to parent **/
void
ESAddChild (RDF_Resource parent, RDF_Resource child)
{
URL_Struct *urls;
void *feData, **files_to_post = NULL;
if ((urls = NET_CreateURLStruct(resourceID(parent), NET_SUPER_RELOAD)) != NULL)
{
feData = (void *)esMakeFEData(parent, child, URL_POST_METHOD);
if ((files_to_post = (char **)XP_ALLOC(2*sizeof(char *))) != NULL)
{
files_to_post[0] = nativeFilename(resourceID(child));
files_to_post[1] = NULL;
}
if ((feData != NULL) && (files_to_post != NULL))
{
urls->files_to_post = (void *)files_to_post;
urls->post_to = NULL;
urls->method = URL_POST_METHOD;
urls->fe_data = (void *)feData;
NET_GetURL(urls, FO_PRESENT,
(MWContext *)gRDFMWContext(NULL),
es_GetUrlExitFunc);
}
else
{
if (feData != NULL)
{
esFreeFEData(feData);
}
if (files_to_post != NULL)
{
if (files_to_post[0] != NULL) freeMem(files_to_post[0]);
XP_FREE(files_to_post);
}
NET_FreeURLStruct(urls);
}
}
}
/** remove the child from the directory **/
void
ESRemoveChild (RDF_Resource parent, RDF_Resource child)
{
URL_Struct *urls;
void *feData;
if ((urls = NET_CreateURLStruct(resourceID(child), NET_SUPER_RELOAD)) != NULL)
{
feData = (void *)esMakeFEData(parent, child, URL_DELETE_METHOD);
if (feData != NULL)
{
urls->method = URL_DELETE_METHOD;
urls->fe_data = (void *)feData;
NET_GetURL(urls, FO_PRESENT,
(MWContext *)gRDFMWContext(NULL),
es_GetUrlExitFunc);
}
else
{
NET_FreeURLStruct(urls);
}
}
}
void
parseNextESFTPLine (RDFFile f, char* line)
{
PRBool directoryp;
RDF_Resource ru;
char *token, *url;
int16 loop, tokenNum = 0;
int32 val;
if (f->fileType != FTP_RT && f->fileType != ES_RT) return;
/* work around bug where linefeeds are actually encoded as %0A */
if (endsWith("%0A", line)) line[RDF_STRLEN(line)-3] = '\0';
if ((token = strtok(line, " ")) != NULL)
{
/* skip 1st token (the numeric command) */
token = strtok(NULL, " \t");
}
if (startsWith("200:", line))
{
while (token != NULL)
{
while ((token != NULL) && (tokenNum < RDF_MAX_NUM_FILE_TOKENS))
{
if (!RDF_STRCMP(token, "Filename"))
{
f->tokens[f->numFileTokens].token = gCoreVocab->RDF_name;
f->tokens[f->numFileTokens].type = RDF_STRING_TYPE;
f->tokens[f->numFileTokens].tokenNum = tokenNum;
++(f->numFileTokens);
}
else if (!RDF_STRCMP(token, "Content-Length"))
{
f->tokens[f->numFileTokens].token = gWebData->RDF_size;
f->tokens[f->numFileTokens].type = RDF_INT_TYPE;
f->tokens[f->numFileTokens].tokenNum = tokenNum;
++(f->numFileTokens);
}
else if (!RDF_STRCMP(token, "File-type"))
{
f->tokens[f->numFileTokens].token = gWebData->RDF_description;
f->tokens[f->numFileTokens].type = RDF_STRING_TYPE;
f->tokens[f->numFileTokens].tokenNum = tokenNum;
++(f->numFileTokens);
}
else if (!RDF_STRCMP(token, "Last-Modified"))
{
f->tokens[f->numFileTokens].token = gWebData->RDF_lastModifiedDate;
f->tokens[f->numFileTokens].type = RDF_STRING_TYPE;
f->tokens[f->numFileTokens].tokenNum = tokenNum;
++(f->numFileTokens);
}
/*
else if (!RDF_STRCMP(token, "Permissions"))
{
f->tokens[f->numFileTokens].token = NULL;
f->tokens[f->numFileTokens].type = RDF_STRING_TYPE;
f->tokens[f->numFileTokens].tokenNum = tokenNum;
++(f->numFileTokens);
}
*/
++tokenNum;
token = strtok(NULL, " \t");
}
}
}
else if (startsWith("201:", line))
{
directoryp = false;
while (token != NULL)
{
for (loop=0; loop<f->numFileTokens; loop++)
{
if (tokenNum == f->tokens[loop].tokenNum)
{
f->tokens[loop].data = strdup(token);
if (f->tokens[loop].token == gWebData->RDF_description)
{
if (startsWith("Directory", token) ||
startsWith("Sym-Directory", token))
{
directoryp = true;
}
}
}
}
++tokenNum;
token = strtok(NULL, " \t");
}
ru = NULL;
for (loop=0; loop<f->numFileTokens; loop++)
{
/* find name, create resource from it */
if (f->tokens[loop].token == gCoreVocab->RDF_name)
{
if (resourceType(f->top) == ES_RT)
{
url = PR_smprintf("nes:%s%s%s", f->url, f->tokens[loop].data, (directoryp) ? "/":"");
}
else
{
url = PR_smprintf("%s%s%s", f->url, f->tokens[loop].data, (directoryp) ? "/":"");
}
if (url != NULL)
{
if ((ru = RDF_GetResource(NULL, url, 1)) != NULL)
{
setResourceType(ru, resourceType(f->top));
if (directoryp == true)
{
setContainerp(ru, 1);
}
XP_FREE(url);
}
}
break;
}
}
if (ru != NULL)
{
for (loop=0; loop<f->numFileTokens; loop++)
{
if (f->tokens[loop].data != NULL)
{
switch(f->tokens[loop].type)
{
case RDF_STRING_TYPE:
addSlotValue(f, ru, f->tokens[loop].token,
unescapeURL(f->tokens[loop].data),
f->tokens[loop].type, NULL);
break;
case RDF_INT_TYPE:
if (directoryp == false)
{
sscanf(f->tokens[loop].data, "%lu", &val);
if (val != 0)
{
addSlotValue(f, ru, f->tokens[loop].token,
(void *)val, f->tokens[loop].type, NULL);
}
}
break;
}
}
}
addSlotValue(f, ru, gCoreVocab->RDF_parent, f->top, RDF_RESOURCE_TYPE, NULL);
}
}
}
int
parseNextESFTPBlob(NET_StreamClass *stream, char* blob, int32 size)
{
RDFFile f;
int32 n, last, m;
n = last = 0;
f = (RDFFile)stream->data_object;
if (f == NULL || size < 0) {
return MK_INTERRUPTED;
}
while (n < size) {
char c = blob[n];
m = 0;
memset(f->line, '\0', f->lineSize);
if (f->holdOver[0] != '\0') {
memcpy(f->line, f->holdOver, RDF_STRLEN(f->holdOver));
m = RDF_STRLEN(f->holdOver);
memset(f->holdOver, '\0', RDF_BUF_SIZE);
}
while ((m < f->lineSize) && (c != '\r') && (c != '\n') && (n < size)) {
f->line[m] = c;
m++;
n++;
c = blob[n];
}
n++;
if (m > 0) {
if ((c == '\n') || (c == '\r')) {
last = n;
parseNextESFTPLine(f, f->line);
} else if (size > last) {
memcpy(f->holdOver, f->line, m);
}
}
}
return(size);
}

View File

@@ -0,0 +1,67 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_ES2MCF_H_
#define _RDF_ES2MCF_H_
#include "rdf-int.h"
#include "net.h"
/* es2mcf.c data structures and defines */
typedef struct {
char *parent;
char *child;
int method;
} _esFEData;
/* es2mcf.c function prototypes */
NSPR_BEGIN_EXTERN_C
RDFT MakeESFTPStore (char* url);
_esFEData * esMakeFEData(RDF_Resource parent, RDF_Resource child, int method);
void esFreeFEData(_esFEData *feData);
void ESFTPPossiblyAccessFile (RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep) ;
RDF_Error ESInit (RDFT ntr);
PRBool ESFTPRT (RDF_Resource u);
PRBool ESAssert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
PRBool ESUnassert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
PRBool ESDBAdd (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
PRBool ESDBRemove (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
PRBool ESHasAssertion (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
void * ESGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
RDF_Cursor ESGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
void * ESNextValue (RDFT mcf, RDF_Cursor c);
RDF_Error ESDisposeCursor (RDFT mcf, RDF_Cursor c);
void es_GetUrlExitFunc (URL_Struct *urls, int status, MWContext *cx);
char * nativeFilename(char *filename);
void ESAddChild (RDF_Resource parent, RDF_Resource child);
void ESRemoveChild (RDF_Resource parent, RDF_Resource child);
void possiblyAccessES(RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep);
void parseNextESFTPLine (RDFFile f, char* line);
int parseNextESFTPBlob(NET_StreamClass *stream, char* blob, int32 size);
NSPR_END_EXTERN_C
#endif

View File

@@ -0,0 +1,372 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file implements Find support for the rdf data model.
For more information on this file, contact rjc or guha
For more information on RDF, look at the RDF section of www.mozilla.org
*/
#include "find2rdf.h"
/* globals */
static RDFT gRDFFindDB = NULL;
void
parseResourceIntoFindTokens(RDF_Resource u, findTokenStruct *tokens)
{
char *id, *token, *value;
int loop;
if ((id = copyString(resourceID(u) + RDF_STRLEN("find:"))) != NULL)
{
/* parse ID, build up token list */
if ((token = strtok(id, "&")) != NULL)
{
while (token != NULL)
{
if ((value = strstr(token, "=")) != NULL)
{
*value++ = '\0';
}
for (loop=0; tokens[loop].token != NULL; loop++)
{
if (!RDF_STRCMP(token, tokens[loop].token))
{
tokens[loop].value = copyString(value);
break;
}
}
token = strtok(NULL, "&");
}
}
freeMem(id);
}
}
RDF_Cursor
parseFindURL(RDFT rdf, RDF_Resource u, RDF_Resource s,
RDF_ValueType type, PRBool inversep, PRBool tv)
{
RDF_Cursor c = NULL;
RDF_Resource searchOn = NULL, matchOn = NULL;
int loop;
findTokenStruct tokens[5];
/* build up a token list */
tokens[0].token = "location"; tokens[0].value = NULL;
tokens[1].token = "attribute"; tokens[1].value = NULL;
tokens[2].token = "method"; tokens[2].value = NULL;
tokens[3].token = "value"; tokens[3].value = NULL;
tokens[4].token = NULL; tokens[4].value = NULL;
parseResourceIntoFindTokens(u, tokens);
if ((tokens[1].value != NULL) && (tokens[3].value != NULL))
{
if ((searchOn = RDF_GetResource(NULL, tokens[1].value, 0)) != NULL)
{
if ((matchOn = RDF_GetResource(NULL, tokens[2].value, 0)) == NULL)
{
matchOn = gCoreVocab->RDF_substring;
}
if ((c = getMem(sizeof(struct RDF_CursorStruct))) != NULL)
{
c->u = u;
c->s = s;
c->type = type;
c->tv = tv;
c->inversep = inversep;
c->count = 0;
/* Note: need to copy value string [its a local variable] */
c->pdata = (void *)RDF_Find(searchOn, matchOn,
copyString(tokens[3].value), RDF_STRING_TYPE);
if (c->pdata == NULL)
{
freeMem(c);
c = NULL;
}
}
}
}
/* free values in token list */
for (loop=0; tokens[loop].token != NULL; loop++)
{
if (tokens[loop].value != NULL)
{
freeMem(tokens[loop].value);
tokens[loop].value = NULL;
}
}
return(c);
}
RDF_Cursor
FindGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s,
RDF_ValueType type, PRBool inversep, PRBool tv)
{
RDF_Cursor c = NULL;
PRBool passThru = PR_TRUE;
if ((((s == gCoreVocab->RDF_child) && (!inversep)) ||
((s == gCoreVocab->RDF_parent) && (inversep))) &&
(type == RDF_RESOURCE_TYPE) && (tv))
{
if (startsWith("find:", resourceID(u)))
{
passThru = PR_FALSE;
c = parseFindURL(rdf, u, s, type, inversep, tv);
}
}
if (passThru == PR_TRUE)
{
c = remoteStoreGetSlotValues(rdf, u, s, type, inversep, tv);
}
return(c);
}
void *
findNextURL(RDF_Cursor c)
{
RDF_Resource r = NULL;
PRBool valid = PR_FALSE;
do
{
if ((r = (RDF_Resource)RDF_NextValue(c)) != NULL)
{
if (strstr(resourceID(r), ":"))
{
if ((!startsWith("find:", resourceID(r))) &&
(!startsWith("NC:", resourceID(r))) &&
(!startsWith("Command:", resourceID(r))))
{
valid = PR_TRUE;
}
}
}
} while((r != NULL) && (valid == PR_FALSE));
return((void *)r);
}
void *
FindNextValue(RDFT rdf, RDF_Cursor c)
{
PRBool passThru = PR_TRUE;
void *retVal = NULL;
PR_ASSERT(c != NULL);
if (c == NULL) return(NULL);
if ((c->u != NULL) && (((c->s == gCoreVocab->RDF_child) && (!(c->inversep))) ||
((c->s == gCoreVocab->RDF_parent) && (c->inversep))) &&
(c->type == RDF_RESOURCE_TYPE) && (c->tv))
{
if (startsWith("find:", resourceID(c->u)))
{
if (c->pdata != NULL)
{
passThru = PR_FALSE;
retVal = findNextURL((RDF_Cursor)(c->pdata));
}
}
}
if (passThru == PR_TRUE)
{
retVal = remoteStoreNextValue(rdf, c);
}
return(retVal);
}
void *
FindGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s,
RDF_ValueType type, PRBool inversep, PRBool tv)
{
void *retVal = NULL;
PRBool passThru = PR_TRUE;
if ((startsWith("find:", resourceID(u))) && (s == gCoreVocab->RDF_name))
{
/* DebugStr("\p FindGetSlotValue on name"); */
}
if (passThru == PR_TRUE)
{
retVal = remoteStoreGetSlotValue(rdf, u, s, type, inversep, tv);
}
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char*) retVal)));
return(retVal);
}
void
FindPossible(RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep)
{
RDF_Cursor c;
RDF_Resource r;
if ((startsWith("find:", resourceID(u))) && (containerp(u) &&
(((s == gCoreVocab->RDF_parent) && (inversep)) ||
((s == gCoreVocab->RDF_child) && (!inversep))) ))
{
if ((c = FindGetSlotValues (rdf, u, s, RDF_RESOURCE_TYPE, inversep, PR_TRUE)) != NULL)
{
while((r = (RDF_Resource)FindNextValue(rdf, c)) != NULL)
{
if (!remoteStoreHasAssertion (rdf, r, gCoreVocab->RDF_parent,
u, RDF_RESOURCE_TYPE, PR_TRUE))
{
remoteStoreAdd(rdf, r, gCoreVocab->RDF_parent,
u, RDF_RESOURCE_TYPE, PR_TRUE);
}
}
RDF_DisposeCursor(c);
}
}
}
RDF_Error
FindDisposeCursor(RDFT mcf, RDF_Cursor c)
{
RDF_Error err = noRDFErr;
char *value;
if (c != NULL)
{
if ((((c->s == gCoreVocab->RDF_child) && (!(c->inversep))) ||
((c->s == gCoreVocab->RDF_parent) && (c->inversep))) &&
(c->type == RDF_RESOURCE_TYPE) && (c->tv))
{
if (startsWith("find:", resourceID(c->u)))
{
if (c->pdata != NULL)
{
/* Note: at creation, we had to copy "v",
so free it here */
if ((value = ((RDF_Cursor)(c->pdata))->value) != NULL)
{
freeMem(value);
((RDF_Cursor)(c->pdata))->value = NULL;
}
RDF_DisposeCursor((RDF_Cursor)(c->pdata));
c->pdata = NULL;
}
}
freeMem(c);
}
else
{
err = remoteStoreDisposeCursor (mcf, c);
}
}
return(0);
}
void
findPossiblyAddName(RDFT rdf, RDF_Resource u)
{
findTokenStruct tokens[5];
char *name;
if ((name = (char *)remoteStoreGetSlotValue(rdf, u, gCoreVocab->RDF_name,
RDF_STRING_TYPE, PR_FALSE, PR_TRUE)) == NULL)
{
/* build up a token list */
tokens[0].token = "location"; tokens[0].value = NULL;
tokens[1].token = "attribute"; tokens[1].value = NULL;
tokens[2].token = "method"; tokens[2].value = NULL;
tokens[3].token = "value"; tokens[3].value = NULL;
tokens[4].token = NULL; tokens[4].value = NULL;
parseResourceIntoFindTokens(u, tokens);
if ((name = PR_smprintf(XP_GetString(RDF_FIND_FULLNAME_STR),
((tokens[1].value != NULL) ? tokens[1].value : ""),
((tokens[2].value != NULL) ? tokens[2].value : ""),
((tokens[3].value != NULL) ? tokens[3].value : ""))) != NULL)
{
remoteStoreAdd(rdf, u, gCoreVocab->RDF_name, name,
RDF_STRING_TYPE, PR_TRUE);
}
}
}
PRBool
FindAssert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv)
{
/* don't handle the assert, but simply add a name if it doesn't already have one */
if (startsWith("find:", resourceID(u)))
{
findPossiblyAddName(rdf, u);
}
return(PR_FALSE);
}
RDFT
MakeFindStore (char *url)
{
RDFT ntr = NULL;
if (gRDFFindDB != NULL) return(gRDFFindDB);
if (strstr(url, "rdf:find"))
{
if ((ntr = (RDFT)getMem(sizeof(struct RDF_TranslatorStruct))) != NULL)
{
ntr->assert = FindAssert;
ntr->unassert = NULL;
ntr->hasAssertion = remoteStoreHasAssertion;
ntr->getSlotValue = FindGetSlotValue;
ntr->getSlotValues = FindGetSlotValues;
ntr->nextValue = FindNextValue;
ntr->disposeCursor = FindDisposeCursor;
ntr->possiblyAccessFile = FindPossible;
ntr->destroy = NULL;
ntr->url = copyString(url);
gRDFFindDB = ntr;
}
}
return(ntr);
}

View File

@@ -0,0 +1,52 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_FIND_H_
#define _RDF_FIND_H_
#include "rdf-int.h"
#include "utils.h"
/* find.c data structures and defines */
typedef struct _findTokenStruct {
char *token;
char *value;
} findTokenStruct;
/* find.c function prototypes */
NSPR_BEGIN_EXTERN_C
void parseResourceIntoFindTokens(RDF_Resource u, findTokenStruct *tokens);
RDF_Cursor parseFindURL(RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
RDF_Cursor FindGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
void * findNextURL(RDF_Cursor c);
void * FindNextValue(RDFT rdf, RDF_Cursor c);
void * FindGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
void FindPossible(RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep);
RDF_Error FindDisposeCursor(RDFT mcf, RDF_Cursor c);
void findPossiblyAddName(RDFT rdf, RDF_Resource u);
PRBool FindAssert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
RDFT MakeFindStore (char* url);
NSPR_END_EXTERN_C
#endif

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,84 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_FS2RDF_H_
#define _RDF_FS2RDF_H_
#include "rdf-int.h"
#include "xp_mem.h"
#include "client.h"
#include "prio.h"
#include "prlong.h"
#include "nlcstore.h"
#include "remstore.h"
#ifdef XP_MAC
#include <Appletalk.h>
#include <Devices.h>
#include <Files.h>
#include <FinderRegistry.h>
#include <Folders.h>
#include <Processes.h>
#include "FullPath.h"
#endif
/* fs2rdf.c data structures and defines */
extern int RDF_VOLUME_DESC_STR, RDF_DIRECTORY_DESC_STR, RDF_FILE_DESC_STR;
#define fsUnitp(u) (resourceType(u) == LFS_RT)
#define XP_DIRECTORY_SEPARATOR '/'
/* fs2rdf.c function prototypes */
NSPR_BEGIN_EXTERN_C
#ifdef XP_MAC
OSErr nativeMacPathname(char *fileURL, FSSpec *fss);
OSErr getPSNbyTypeSig(ProcessSerialNumber *thePSN, OSType pType, OSType pSignature);
#endif
void importForProfile (char *dir, const char *uname);
void GuessIEBookmarks(void);
char * getVolume(int16 volNum, PRBool afpVols);
PRDir * OpenDir(char *name);
RDFT MakeLFSStore (char* url);
PRBool fsAssert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
PRBool fsRemoveFile(char *filePathname, PRBool justCheckWriteAccess);
PRBool fsRemoveDir(char *filePathname, PRBool justCheckWriteAccess);
PRBool fsUnassert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
PRBool fsHasAssertion (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
void * fsGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
PRBool fileDirectoryp(RDF_Resource u);
RDF_Cursor fsGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
void * fsNextValue (RDFT rdf, RDF_Cursor c);
PRBool isFileVisible(char *fileURL);
RDF_Error fsDisposeCursor (RDFT rdf, RDF_Cursor c);
RDF_Resource CreateFSUnit (char* nname, PRBool isDirectoryFlag);
NSPR_END_EXTERN_C
#endif

View File

@@ -0,0 +1,469 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* This file contains the glue code that links the RDF module with
* ugly navigator stuff including Netlib for getURL, preferences for
* finding out where bookmarks.htm and lclstore.mcf are located. By
* changing this glue file, one should be able to use the rest of the
* RDF library with something else (like the server).
* For more information on this file, contact rjc or guha
* For more information on RDF, look at the RDF section of www.mozilla.org
*/
#include "rdf-int.h"
#include "glue.h"
#include "remstore.h"
#include "rdfparse.h"
#include "es2mcf.h"
#include "mcff2mcf.h"
#include "nlcstore.h"
#include "autoupdt.h"
#include "ht.h"
#ifdef NU_CACHE
#include "CacheStubs.h"
#endif
/* external routines */
extern MWContext *FE_GetRDFContext(void);
extern char *gDefaultNavcntr;
extern RDF gNCDB;
unsigned int
rdf_write_ready(NET_StreamClass *stream)
{
return MAX_WRITE_READY;
}
void
rdf_complete(NET_StreamClass *stream)
{
RDFFile f = (RDFFile)stream->data_object;
if (RDF_STRCMP(f->url, gNavCntrUrl) == 0) {
if (f->resourceCount == 0) {
parseNextRDFXMLBlob(stream, gDefaultNavcntr, RDF_STRLEN(gDefaultNavcntr));
} else {
RDF_Resource browser = RDF_GetResource(NULL, "netscape:browser", 1);
RDF_Resource updateFrom = RDF_GetResource(NULL, "updateURL", 1);
char* uf = RDF_GetSlotValue(gNCDB, browser, updateFrom,
RDF_STRING_TYPE, false, true);
RDF_Resource fileSize = RDF_GetResource(NULL, "fileSize", 1);
char* fs = RDF_GetSlotValue(gNCDB, browser, fileSize,
RDF_STRING_TYPE, false, true);
uint32 fSize;
if (fs == NULL) {
fSize = 3000;
} else {
sscanf("%lu", fs, &fSize);
freeMem(fs);
}
if (uf != NULL) {
#ifdef MOZ_SMARTUPDATE
checkForAutoUpdate((void *)FE_GetRDFContext(), uf, fSize);
#endif /* MOZ_SMARTUPDATE */
freeMem(uf);
}
/* A temporary hack to demo AutoUpdate on windows */
#ifndef MOZ_SMARTUPDATE
#ifdef XP_WIN
checkForAutoUpdate((void *)FE_GetRDFContext(), "http://warp/u/raman/gromit/softupdt.exe", 45328);
#endif /* XP_WIN */
#endif /* MOZ_SMARTUPDATE */
}
}
if (f) {
freeMem(f->line);
freeMem(f->currentSlot);
freeMem(f->holdOver);
freeNamespaces(f) ;
f->line = NULL;
f->currentSlot = NULL;
f->holdOver = NULL;
}
}
void
rdf_abort(NET_StreamClass *stream, int status)
{
RDFFile f = (RDFFile)stream->data_object;
if (RDF_STRCMP(f->url, gNavCntrUrl) == 0) {
parseNextRDFXMLBlob(stream, gDefaultNavcntr, RDF_STRLEN(gDefaultNavcntr));
}
if (f) {
f->locked = false;
gcRDFFile (f);
freeMem(f->line);
freeMem(f->currentSlot);
freeMem(f->holdOver);
freeNamespaces(f) ;
}
}
#ifdef MOZILLA_CLIENT
#ifdef XP_MAC
PR_PUBLIC_API(NET_StreamClass *)
#else
PUBLIC NET_StreamClass *
#endif
int
parseNextRDFXMLBlob (NET_StreamClass *stream, char* blob, int32 size)
{
RDFFile f;
f = (RDFFile)stream->data_object;
if ((f == NULL) || (size < 0)) {
return MK_INTERRUPTED;
}
return parseNextRDFXMLBlobInt(f, blob, size);
}
rdf_Converter(FO_Present_Types format_out, void *client_data,
URL_Struct *urls, MWContext *cx)
{
RDFFile rdfFile;
MKStreamWriteFunc writeFunc = NULL;
if ((urls == NULL) || (urls->fe_data == NULL))
{
return(NULL);
}
/* determine appropriate write function to use */
rdfFile = urls->fe_data;
switch(rdfFile->fileType)
{
/* case ES_RT:
case FTP_RT:
writeFunc = (MKStreamWriteFunc)parseNextESFTPBlob;
break;
*/
default:
writeFunc = (MKStreamWriteFunc)parseNextRDFXMLBlob;
break;
}
/* allocate stream data block */
return NET_NewStream("RDF", writeFunc,
(MKStreamCompleteFunc)rdf_complete,
(MKStreamAbortFunc)rdf_abort,
(MKStreamWriteReadyFunc)rdf_write_ready,
urls->fe_data, cx);
}
void
rdf_GetUrlExitFunc (URL_Struct *urls, int status, MWContext *cx)
{
RDFFile f;
char *navCenterURL = NULL;
if ((status < 0) && (urls != NULL))
{
if ((cx != NULL) && (urls->error_msg != NULL))
{
FE_Alert(cx, urls->error_msg);
}
/* if unable to read in navcntr.rdf file, create some default views */
if ((f = (RDFFile) urls->fe_data) != NULL)
{
if (RDF_STRCMP(f->url, gNavCntrUrl) == 0)
{
parseNextRDFXMLBlobInt(f, gDefaultNavcntr,
RDF_STRLEN(gDefaultNavcntr));
}
}
}
if (urls != NULL)
{
if ((f = (RDFFile) urls->fe_data) != NULL)
{
htLoadComplete(f->url, status);
}
}
NET_FreeURLStruct (urls);
}
/*
int
rdfRetrievalType (RDFFile f)
{
URL_Struct *urls;
char *url;
int type;
url = f->url;
if (f->localp)
{
urls = NET_CreateURLStruct(url, NET_CACHE_ONLY_RELOAD);
if ((urls != NULL) && (NET_IsURLInDiskCache(urls) || NET_IsURLInMemCache(urls)))
{
type = NET_DONT_RELOAD;
}
else
{
type = NET_NORMAL_RELOAD;
}
if (urls != NULL) NET_FreeURLStruct(urls);
}
else
{
type = NET_NORMAL_RELOAD;
}
return(type);
}
*/
int
rdf_GetURL (MWContext *cx, int method, Net_GetUrlExitFunc *exit_routine, RDFFile rdfFile)
{
URL_Struct *urls = NULL;
char* url ;
#ifdef DEBUG_gagan
return 0;
#endif
if (cx == NULL) return 0;
if (rdfFile->refreshingp && rdfFile->updateURL) {
url = rdfFile->updateURL;
} else {
url = rdfFile->url;
}
if (RDF_STRCMP(url, gNavCntrUrl) == 0) {
urls = NET_CreateURLStruct(url, NET_CACHE_ONLY_RELOAD);
#ifdef NU_CACHE
if (!CacheManager_Contains(url)) {
#else
if (NET_IsURLInDiskCache(urls) || NET_IsURLInMemCache(urls)) {
} else {
#endif
NET_FreeURLStruct(urls);
urls = NULL;
}
}
if (!urls)
urls = NET_CreateURLStruct(url, (rdfFile->refreshingp ?
NET_SUPER_RELOAD : NET_NORMAL_RELOAD));
if (urls == NULL) return 0;
urls->fe_data = rdfFile;
if (method) urls->method = method;
NET_GetURL(urls, FO_CACHE_AND_RDF, cx, rdf_GetUrlExitFunc);
return 1;
}
#endif /* MOZILLA_CLIENT */
void
possiblyRereadRDFFiles (void* data)
{
possiblyRefreshRDFFiles();
/* timerID = FE_SetTimeout(possiblyRereadRDFFiles, NULL, 1000 * 60 * 10);
once every 10 minutes
diabled for legal reasons.*/
}
void
RDFglueInitialize()
{
#ifdef MOZILLA_CLIENT
timerID = FE_SetTimeout(possiblyRereadRDFFiles, NULL, 1000 * 60 * 10); /* once every 10 minutes */
if (gRLForbiddenDomains != NULL)
{
freeMem(gRLForbiddenDomains);
gRLForbiddenDomains = NULL;
}
if (PREF_CopyCharPref("browser.relatedLinksDisabledForDomains", &gRLForbiddenDomains) != PREF_OK)
{
gRLForbiddenDomains = NULL;
}
#endif /* MOZILLA_CLIENT */
}
void
RDFglueExit (void)
{
#ifdef MOZILLA_CLIENT
if (timerID != NULL)
{
/* commented out as the timer's window has already been destroyed */
/* FE_ClearTimeout(timerID); */
timerID = NULL;
}
#endif /* MOZILLA_CLIENT */
}
void *
gRDFMWContext(RDFT db)
{
#ifndef MOZILLA_CLIENT
return NULL;
#else
void *cx;
RDFL rdf = NULL;
if (db) rdf = db->rdf;
while (rdf) {
if (rdf->rdf->context) return (rdf->rdf->context);
rdf = rdf->next;
}
cx = (void *)FE_GetRDFContext();
return(cx);
#endif
}
/*
* beginReadingRDFFile is called whenever we need to read something of
* the net (or local drive). The url of the file to be read is at
* file->url. As the bits are read in (and it can take the bits in
* any sized chunks) it should call parseNextRDFBlob(file, nextBlock,
* blobSize) when its done, it should call void finishRDFParse
* (RDFFile f) to abort, it should call void abortRDFParse (RDFFile f)
* [which will undo all that has been read from that file]
*/
void
beginReadingRDFFile (RDFFile file)
{
char *url;
int method = 0;
#ifndef MOZILLA_CLIENT
/* If standalone, we just use to open the file */
NET_StreamClass stream;
PRFileDesc *fd;
PRFileInfo fi;
PRBool bSuccess = FALSE;
url = file->url;
fd = CallPROpenUsingFileURL(url, PR_RDONLY, 0);
if(fd)
{
if(PR_GetOpenFileInfo(fd, &fi) == PR_SUCCESS)
{
char* buf = malloc(fi.size);
if(PR_Read(fd, buf, fi.size))
{
stream.data_object = file;
if(parseNextRDFXMLBlob (&stream, buf, fi.size))
bSuccess = TRUE;
}
free(buf);
}
PR_Close(fd);
}
if(bSuccess == TRUE)
rdf_complete(&stream);
#else
/*
XXX this is the pre-raptor world
url = file->url;
if (file->fileType == ES_RT) method = URL_INDEX_METHOD;
rdf_GetURL (gRDFMWContext(file->db), method, NULL, file);
*/
rdfStreamListener* pListener = new rdfStreamListener;
pListener->AddRef(); // XXX is this evil? Can't see any reason to use factories but...
#endif
}
#ifdef MOZILLA_CLIENT
DB *
CallDBOpenUsingFileURL(char *fileURL, int flags,int mode, DBTYPE type, const void *openinfo)
{
DB *result;
char *path;
char *escapedPath;
if (fileURL == NULL) return NULL;
escapedPath = unescapeURL(fileURL);
#ifdef XP_MAC
path = WH_FilePlatformName(convertFileURLToNSPRCopaceticPath(fileURL));
PR_ASSERT(path != NULL);
#else
path = convertFileURLToNSPRCopaceticPath(escapedPath);
#endif
result = dbopen(path, flags, mode, type, openinfo);
#ifdef XP_MAC
XP_FREE(path);
#endif
if (escapedPath != NULL) freeMem(escapedPath);
return result;
}
#else
#if defined(XP_WIN) && defined(DEBUG)
/* Some XP functions that are implemented in winfe
* in the client.
*/
void XP_AssertAtLine( char *pFileName, int iLine )
{
fprintf(stderr, "assert: line %d, file %s%c\n", __LINE__, pFileName, 7);
}
char* NOT_NULL(const char* x)
{
return (char*)x;
}
#endif
#endif

View File

@@ -0,0 +1,90 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_GLUE_H_
#define _RDF_GLUE_H_
#include "xp.h"
#include "xp_mem.h"
#include "net.h"
#include "ntypes.h"
#include "fe_proto.h"
#include "prinit.h"
#ifdef XP_UNIX
#include <sys/fcntl.h>
#elif defined(XP_MAC)
#include <fcntl.h>
#endif
#include "rdf.h"
#include "rdf-int.h"
#include "ht.h"
#define APPLICATION_RDF "application/x-rdf" /* XXX what should these be? */
#define EXTENSION_RDF ".rdf"
#define EXTENSION_MCF ".mcf"
/* external globals */
extern char* gLocalStoreURL;
extern char* gBookmarkURL;
/* glue.c prototypes */
NSPR_BEGIN_EXTERN_C
void ht_fprintf(PRFileDesc *file, const char *fmt, ...);
unsigned int rdf_write_ready(NET_StreamClass *stream);
void rdf_complete(NET_StreamClass *stream);
void rdf_abort(NET_StreamClass *stream, int status);
NET_StreamClass * rdf_Converter(FO_Present_Types format_out,
void *client_data, URL_Struct *urls, MWContext *cx);
void rdf_GetUrlExitFunc (URL_Struct *urls, int status, MWContext *cx);
int rdfRetrievalType (RDFFile f);
int rdf_GetURL (MWContext *cx, int method,
Net_GetUrlExitFunc *exit_routine, RDFFile rdfFile);
void possiblyRereadRDFFiles (void* data);
void RDFglueInitialize (void);
void RDFglueExit (void);
void *gRDFMWContext(RDFT db);
void beginReadingRDFFile (RDFFile file);
void readLocalFile (RDFFile file);
char *unescapeURL(char *inURL);
char *convertFileURLToNSPRCopaceticPath(char* inURL);
PRFileDesc *CallPROpenUsingFileURL(char *fileURL, PRIntn flags, PRIntn mode);
PRDir *CallPROpenDirUsingFileURL(char *fileURL);
int32 CallPRWriteAccessFileUsingFileURL(char *fileURL);
int32 CallPRDeleteFileUsingFileURL(char *fileURL);
int CallPR_RmDirUsingFileURL(char *dirURL);
int32 CallPRMkDirUsingFileURL(char *dirURL, int mode);
DB *CallDBOpenUsingFileURL(char *fileURL, int flags,int mode,
DBTYPE type, const void *openinfo);
NSPR_END_EXTERN_C
#endif

View File

@@ -0,0 +1,675 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file implements History support for the rdf data model.
For more information on this file, contact rjc or guha
For more information on RDF, look at the RDF section of www.mozilla.org
*/
#include "hist2rdf.h"
#include "remstore.h"
#include "utils.h"
static PRBool histInFlatFilep = 0;
/* extern declarations */
void GH_DeleteHistoryItem (char * url);
PR_PUBLIC_API(void) updateNewHistItem (DBT *key, DBT *data); /* XXX this should be elsewhere */
/* externs */
extern char *profileDirURL;
extern char *gGlobalHistoryURL;
/* external string references in allxpstr */
extern int RDF_WEEKOF, RDF_WITHINLASTHOUR, RDF_TODAY, RDF_DAY_0;
extern int RDF_RELATEDLINKSNAME;
/* globals */
PLHashTable *hostHash = 0;
RDFT grdf = NULL;
RDFT gHistoryStore = 0;
PRBool ByDateOpened = 0;
PRBool historyInitialized = 0;
static int saveCount = 0;
char *prefixList[] = {
"about:", "javascript:", "livescript:", "mailbox:", "mailto:",
"mocha:", "news:", "pop3", "snews:", "view-source", "wysiwyg:", NULL
};
char *suffixList[] = {
".gif", ".jpg", ".jpeg", ".xbm", ".pfr", ".class", ".tmp", ".js", ".rdf",
".mcf", ".mco", NULL
};
char *intermediateList[] = {
".gif", ".GIF", NULL
};
void
collateHistory (RDFT r, RDF_Resource u, PRBool byDateFlag)
{
HASHINFO hash = { 4*1024, 0, 0, 0, 0, 0};
DBT key, data;
time_t last,first;
uint32 numaccess;
PRBool firstOne = 0;
DB* db = CallDBOpenUsingFileURL(gGlobalHistoryURL, O_RDONLY ,0600,
DB_HASH, &hash);
grdf = r;
if (db != NULL) {
while (0 == (*db->seq)(db, &key, &data, (firstOne ? R_NEXT : R_FIRST))) {
char* title = ((char*)data.data + 16); /* title */
char* url = (char*)key.data; /* url */
/* int32 flag = (int32)*((char*)data.data + 3*sizeof(int32)); */
int32 flag;
HIST_COPY_INT32(&flag, (int8 *)data.data + 3 * sizeof(int32));
firstOne = 1;
#ifdef XP_UNIX
if ((/*1 == flag &&*/ displayHistoryItem((char*)key.data))) {
#else
if (1 == flag && displayHistoryItem((char*)key.data)) {
#endif
HIST_COPY_INT32(&last, (time_t *)((int8 *)data.data));
HIST_COPY_INT32(&first, (time_t *)((int8 *)data.data + sizeof(int32)));
HIST_COPY_INT32(&numaccess, (time_t *)((int8 *)data.data + 2*sizeof(int32)));
collateOneHist(r, u,url,title, last, first, numaccess, byDateFlag);
}
}
(*db->close)(db);
}
}
void
collateOneHist (RDFT r, RDF_Resource u, char* url, char* title, time_t lastAccessDate,
time_t firstAccessDate, uint32 numAccesses, PRBool byDateFlag)
{
char buffer[128];
struct tm *time;
RDF_Resource hostUnit, urlUnit;
char* existingName = NULL;
uint32 oldNumAccess = 0;
if (startsWith("404", title)) return;
urlUnit = HistCreate(url, 1);
existingName = remoteStoreGetSlotValue(gLocalStore, urlUnit, gCoreVocab->RDF_name, RDF_STRING_TYPE, 0, 1);
PR_ASSERT( IsUTF8String((const char* )existingName));
if (existingName == NULL) {
if (title[0] != '\0') remoteAddName(urlUnit, title);
} else freeMem(existingName);
if (byDateFlag) {
hostUnit = hostUnitOfDate(r, u, lastAccessDate);
} else {
hostUnit = hostUnitOfURL(r, u, urlUnit, title);
}
if (hostUnit == NULL) return;
if (hostUnit != urlUnit) remoteAddParent(urlUnit, hostUnit);
if ((time = localtime((time_t *) &lastAccessDate)) != NULL)
{
#ifdef XP_MAC
time->tm_year += 4;
strftime(buffer,sizeof(buffer),XP_GetString(RDF_HTML_MACDATE),time);
#elif XP_UNIX
strftime(buffer,sizeof(buffer),XP_GetString(RDF_HTML_MACDATE),time);
#else
strftime(buffer,sizeof(buffer),XP_GetString(RDF_HTML_WINDATE),time);
#endif
PR_ASSERT( IsUTF8String((const char* )buffer));
remoteStoreAdd(gRemoteStore, urlUnit, gWebData->RDF_lastVisitDate,
(void *)copyString(buffer), RDF_STRING_TYPE, 1);
}
if ((time = localtime((time_t *) &firstAccessDate)) != NULL)
{
#ifdef XP_MAC
time->tm_year += 4;
strftime(buffer,sizeof(buffer),XP_GetString(RDF_HTML_MACDATE),time);
#elif XP_UNIX
strftime(buffer,sizeof(buffer),XP_GetString(RDF_HTML_MACDATE),time);
#else
strftime(buffer,sizeof(buffer),XP_GetString(RDF_HTML_WINDATE),time);
#endif
PR_ASSERT( IsUTF8String((const char* )buffer));
remoteStoreAdd(gRemoteStore, urlUnit, gWebData->RDF_firstVisitDate,
(void *)copyString(buffer), RDF_STRING_TYPE, 1);
}
/* oldNumAccess = remoteStoreGetSlotValue(gHistoryStore, urlUnit, gWebData->RDF_numAccesses,
RDF_INT_TYPE, 0, 1);
if (oldNumAccess) remoteStoreRemove(gHistoryStore, urlUnit, gWebData->RDF_numAccesses, oldNumAccess,
RDF_INT_TYPE);
if (numAccesses==0) ++numAccesses;
remoteStoreAdd(gHistoryStore, urlUnit, gWebData->RDF_numAccesses,
(void *)numAccesses, RDF_INT_TYPE, 1); */
if (numAccesses > 5) histAddParent(urlUnit, gNavCenter->RDF_HistoryMostVisited);
}
RDF_Resource
hostUnitOfURL (RDFT r, RDF_Resource top, RDF_Resource nu, char* title)
{
char host[100];
char* url = resourceID(nu);
int16 s1, s2, s3;
RDF_Resource hostResource, existing;
if (RDF_STRLEN(url) > 100) return NULL;
if (startsWith("file", url)) {
return RDF_GetResource(NULL, "Local Files", 1);
} else {
memset(host, '\0', 100);
s1 = charSearch(':', url)+3;
s2 = charSearch('/', &url[s1]);
s3 = charSearch(':', &url[s1]);
if (s2 == -1) s2 = RDF_STRLEN(url)-s1;
if ((s3 != -1) && (s2 > s3)) s2 = s3;
if (startsWith("www", &url[s1])) {s1 = s1+4; s2 = s2-4;}
if (s2<1) return(NULL);
memcpy((char*)host, &url[s1], s2);
host[0] = toupper(host[0]);
hostResource = RDF_GetResource(NULL, host, 1);
setContainerp(hostResource, 1);
setResourceType(hostResource, HISTORY_RT);
existing = PL_HashTableLookup(hostHash, hostResource);
if (existing != NULL) {
if (existing == nu) {
return existing;
} else if (existing == top) {
return hostResource;
} else {
remoteStoreRemove(gHistoryStore, existing, gCoreVocab->RDF_parent, top, RDF_RESOURCE_TYPE);
histAddParent(existing, hostResource);
histAddParent(hostResource, top);
PL_HashTableAdd(hostHash, hostResource, top);
return hostResource;
}
} else {
PL_HashTableAdd(hostHash, hostResource, nu);
histAddParent(nu, top);
return nu;
}
}
}
void
hourRange(char *buffer, struct tm *theTm)
{
char *startHourStr="AM",*endHourStr="AM";
if (theTm->tm_hour > 0 && theTm->tm_hour < 12) {
sprintf(buffer, "AM");
} else {
sprintf(buffer, "PM");
}
}
RDF_Resource
hostUnitOfDate (RDFT r, RDF_Resource u, time_t lastAccessDate)
{
RDF_Resource node = NULL, parentNode;
/*
RDF_Resources std;
*/
time_t now, tempTime;
struct tm *T,nowStruct, dateStruct;
char hourBuffer[128], dayBuffer[128], weekBuffer[128];
char bigBuffer[1024];
int numDays;
/* NOTE: localtime uses a single static buffer, so MUST copy contents out */
time((time_t *)&now);
if ((T = localtime(&now)) == NULL) return(NULL);
nowStruct = *T;
if ((T = localtime(&lastAccessDate)) == NULL) return(NULL);
dateStruct = *T;
bigBuffer[0] = hourBuffer[0] = dayBuffer[0] = weekBuffer[0] = 0;
if (now < (lastAccessDate + SECS_IN_HOUR)) /* within the last hour */
{
strcpy(hourBuffer, XP_GetString(RDF_WITHINLASTHOUR));
}
else if ((nowStruct.tm_year == dateStruct.tm_year) && /* some time today */
(nowStruct.tm_yday == dateStruct.tm_yday))
{
strcpy(dayBuffer, XP_GetString(RDF_TODAY));
hourRange(hourBuffer, &dateStruct);
}
else /* check if within last week */
{
numDays = 7;
do
{
now -= SECS_IN_DAY;
if ((T = localtime(&now)) == NULL) return(NULL);
nowStruct = *T;
if ((nowStruct.tm_year == dateStruct.tm_year) &&
(nowStruct.tm_yday == dateStruct.tm_yday))
{
sprintf(dayBuffer, "%d/%d - %s",
(uint) dateStruct.tm_mon + 1, (uint)dateStruct.tm_mday,
XP_GetString(RDF_DAY_0 + nowStruct.tm_wday));
hourRange(hourBuffer, &dateStruct);
break;
}
} while (numDays-- > 0);
if (dayBuffer[0] == '\0') /* older than a week */
{
tempTime = lastAccessDate;
numDays = dateStruct.tm_wday;
while (numDays-- > 0)
{
tempTime -= SECS_IN_DAY;
}
if ((T = localtime(&tempTime)) == NULL) return(NULL);
dateStruct = *T;
#ifdef XP_MAC
/* Mac epoch according to localtime is 1904 */
PR_snprintf(weekBuffer, sizeof(weekBuffer)-1, XP_GetString(RDF_WEEKOF), (uint)dateStruct.tm_mon + 1,
(int)dateStruct.tm_mday, (uint)dateStruct.tm_year + 1904);
#else
PR_snprintf(weekBuffer, sizeof(weekBuffer)-1, XP_GetString(RDF_WEEKOF), (uint)dateStruct.tm_mon + 1,
(int)dateStruct.tm_mday, (uint)dateStruct.tm_year + 1900);
#endif
if ((T = localtime(&lastAccessDate)) == NULL) return(NULL);
dateStruct = *T;
#ifdef XP_MAC
/* Mac epoch according to localtime is 1904 */
sprintf(dayBuffer, "%s - %d/%d/%d",
XP_GetString(RDF_DAY_0 + dateStruct.tm_wday), (uint) dateStruct.tm_mon + 1,
(uint)dateStruct.tm_mday, (uint)dateStruct.tm_year + 1904);
#else
sprintf(dayBuffer, "%s - %d/%d/%d",
XP_GetString(RDF_DAY_0 + dateStruct.tm_wday), (uint) dateStruct.tm_mon + 1,
(uint)dateStruct.tm_mday, (uint)dateStruct.tm_year + 1900);
#endif
hourRange(hourBuffer, &dateStruct);
}
}
parentNode = u;
if (weekBuffer[0] != '\0')
{
if ((node = RDF_GetResource(NULL, weekBuffer, false)) == NULL)
{
if ((node = RDF_GetResource(NULL, weekBuffer, true)) == NULL) return(NULL);
}
setContainerp(node, 1);
setResourceType(node, HISTORY_RT);
remoteStoreAdd(gHistoryStore, node, gCoreVocab->RDF_parent,
parentNode, RDF_RESOURCE_TYPE, 1);
PR_ASSERT( IsUTF8String((const char* )weekBuffer));
remoteStoreAdd(gHistoryStore, node, gCoreVocab->RDF_name,
copyString(weekBuffer), RDF_STRING_TYPE, 1);
parentNode = node;
}
if (dayBuffer[0] != '\0')
{
sprintf(bigBuffer, "%d/%d", (uint) dateStruct.tm_mon + 1,
(uint)dateStruct.tm_mday);
if ((node = RDF_GetResource(NULL, bigBuffer, false)) == NULL)
{
if ((node = RDF_GetResource(NULL, bigBuffer, true)) == NULL) return(NULL);
}
setContainerp(node, 1);
setResourceType(node, HISTORY_RT);
histAddParent(node, parentNode);
sprintf(bigBuffer,"%s - %s",weekBuffer,dayBuffer);
PR_ASSERT( IsUTF8String((const char* )dayBuffer));
remoteStoreAdd(gHistoryStore, node, gCoreVocab->RDF_name,
copyString(dayBuffer), RDF_STRING_TYPE, 1);
parentNode = node;
}
if (hourBuffer[0] == 'W')
{
sprintf(bigBuffer, "%s", hourBuffer);
if ((node = RDF_GetResource(NULL, bigBuffer, false)) == NULL)
{
if ((node = RDF_GetResource(NULL, bigBuffer, true)) == NULL) return(NULL);
}
setContainerp(node, 1);
setResourceType(node, HISTORY_RT);
remoteStoreAdd(gHistoryStore, node, gCoreVocab->RDF_parent,
parentNode, RDF_RESOURCE_TYPE, 1);
PR_ASSERT( IsUTF8String((const char* )hourBuffer));
remoteStoreAdd(gHistoryStore, node, gCoreVocab->RDF_name,
copyString(hourBuffer), RDF_STRING_TYPE, 1);
parentNode = node;
}
return (node);
}
void
saveHistory ()
{
char* escapedPath = unescapeURL(gGlobalHistoryURL);
char* path = WH_FilePlatformName(convertFileURLToNSPRCopaceticPath(escapedPath));
PRFileDesc* file = PR_Open(path, PR_WRONLY | PR_CREATE_FILE, 00200);
char* hist;
if (file != NULL) {
hist = RDF_SerializeRDFStore(gHistoryStore) ;
if (hist != NULL) {
PR_Write(file, hist, RDF_STRLEN(hist));
}
}
freeMem(path);
freeMem(escapedPath);
PR_Close(file);
}
PR_PUBLIC_API(void)
updateNewHistItem (DBT *key, DBT *data)
{
time_t last,first,numaccess;
int32 flg = (int32)*((char*)data->data + 3*sizeof(int32));
if (!displayHistoryItem((char*)key->data)) return;
if (historyInitialized && (gHistoryStore != NULL)) {
HIST_COPY_INT32(&last, (time_t *)((char *)data->data));
HIST_COPY_INT32(&first, (time_t *)((char *)data->data + sizeof(int32)));
HIST_COPY_INT32(&numaccess, (time_t *)((char *)data->data + 2*sizeof(int32)));
if (hostHash) collateOneHist(grdf, gNavCenter->RDF_HistoryBySite,
(char*)key->data, /* url */
((char*)data->data + 4*sizeof(int32)), /* title */
last, first, numaccess, 0);
if (ByDateOpened) collateOneHist(grdf, gNavCenter->RDF_HistoryByDate,
(char*)key->data, /* url */
((char*)data->data + 4*sizeof(int32)), /* title */
last, first, numaccess, 1);
saveCount++;
if (saveCount > 5) {
if (histInFlatFilep) saveHistory();
saveCount = 0;
}
}
}
/** History clustering utils **/
PRBool
displayHistoryItem (char* url)
{
int x;
x=0;
while (prefixList[x]) {
if (startsWith(prefixList[x++], url)) return 0;
}
x=0;
while (suffixList[x]) {
if (endsWith(suffixList[x++], url)) return 0;
}
x=0;
while (intermediateList[x]) {
if (strstr(url, intermediateList[x++])) return 0;
}
return 1;
}
RDF_Resource
HistCreate (char* url, PRBool createp)
{
size_t size = RDF_STRLEN(url);
char* nurl = getMem(size+8);
RDF_Resource ans;
if (charSearch(':', url) == -1) {
if (url[size-1] == '/') {
sprintf(nurl, "http://%s", url);
nurl[RDF_STRLEN(nurl)-1] = '\0';
} else {
sprintf(nurl, "http://%s/", url);
}
} else {
if (url[size-1] == '/') {
memcpy(nurl, url, size-1);
} else {
sprintf(nurl, "%s/", url);
}
}
ans = RDF_GetResource(NULL, nurl, 0);
if (ans != NULL) {
freeMem(nurl);
return ans;
}
freeMem(nurl);
ans = RDF_GetResource(NULL, url, createp);
if (ans != NULL) {
return ans;
} else {
return NULL;
}
}
PRBool bySite = 0;
Assertion
histAddParent (RDF_Resource child, RDF_Resource parent)
{
Assertion nextAs, prevAs, newAs;
RDF_Resource s = gCoreVocab->RDF_parent;
RDF_ValueType type = RDF_RESOURCE_TYPE;
nextAs = prevAs = child->rarg1;
while (nextAs != null) {
if (asEqual(gHistoryStore, nextAs, child, s, parent, type)) return null;
prevAs = nextAs;
nextAs = nextAs->next;
}
newAs = makeNewAssertion(gHistoryStore, child, s, parent, type, 1);
if (prevAs == null) {
child->rarg1 = newAs;
} else {
prevAs->next = newAs;
}
nextAs = prevAs = parent->rarg2;
if (nextAs == NULL) {
parent->rarg2 = newAs;
} else {
PRBool added = 0;
if (bySite) {
while (nextAs && !isSeparator(nextAs->u)) {
prevAs = nextAs;
nextAs = nextAs->invNext;
}
if (nextAs) {
prevAs = nextAs;
nextAs = nextAs->invNext;
}
}
while (nextAs != null) {
char* nid = resourceID(nextAs->u);
if (RDF_STRCMP(resourceID(child), resourceID(nextAs->u)) > 0) {
if (prevAs == nextAs) {
newAs->invNext = prevAs;
parent->rarg2 = newAs;
added = 1;
break;
} else {
newAs->invNext = nextAs;
prevAs->invNext = newAs;
added = 1;
break;
}
}
prevAs = nextAs;
nextAs = nextAs->invNext;
}
if (!added) prevAs->invNext = newAs;
}
sendNotifications2(gHistoryStore, RDF_ASSERT_NOTIFY, child, s, parent, type, 1);
/* XXX have to mark the entire subtree XXX */
/* sendNotifications(gHistoryStore->rdf, RDF_ASSERT_NOTIFY, child, s, parent, type, 1); */
return(newAs);
}
PRBool
historyUnassert (RDFT hst, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type)
{
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )v)));
if ((type == RDF_RESOURCE_TYPE) && (resourceType((RDF_Resource)v) == HISTORY_RT) &&
(s == gCoreVocab->RDF_parent)) {
RDF_Resource parents[5];
int8 n = 0;
Assertion as = u->rarg1;
memset(parents, '\0', 5 * sizeof(RDF_Resource));
while (as) {
if ((as->type == RDF_RESOURCE_TYPE) && (as->s == gCoreVocab->RDF_parent) &&
(resourceType((RDF_Resource)as->value) == HISTORY_RT) && (n < 5)) {
parents[n++] = (RDF_Resource)as->value;
}
as = as->next;
}
if (containerp(u)) {
Assertion as = u->rarg2;
while (as) {
if ((as->db == gHistoryStore) && (as->s == gCoreVocab->RDF_parent)) {
GH_DeleteHistoryItem (resourceID(as->u));
}
as = as->invNext;
}
} else {
GH_DeleteHistoryItem (resourceID(u));
}
while (n > 0) {
n = n - 1;
if (parents[n]) {
Assertion nas = remoteStoreRemove (gHistoryStore, u, gCoreVocab->RDF_parent,
parents[n], RDF_RESOURCE_TYPE);
freeMem(nas);
}
}
return 1;
}
return 0;
}
void
HistPossiblyAccessFile (RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep)
{
if ((s == gCoreVocab->RDF_parent) && inversep && (rdf == gHistoryStore) &&
((u == gNavCenter->RDF_HistoryByDate) || (u == gNavCenter->RDF_HistoryBySite))) {
if (histInFlatFilep) {
readRDFFile(gGlobalHistoryURL, NULL, 0, gHistoryStore);
historyInitialized = 1;
} else {
collateHistory(rdf, u, (u == gNavCenter->RDF_HistoryByDate));
historyInitialized = 1;
}
} else if ((s == gCoreVocab->RDF_parent) && inversep && (rdf == gHistoryStore) &&
(u == gNavCenter->RDF_HistoryMostVisited)) {
collateHistory(rdf, gNavCenter->RDF_HistoryBySite, 0);
historyInitialized = 1;
}
}
RDFT
MakeHistoryStore (char* url)
{
if (startsWith("rdf:history", url)) {
if (gHistoryStore == 0) {
RDFT ntr = (RDFT)getMem(sizeof(struct RDF_TranslatorStruct));
RDF_Resource sep = createSeparator();
ntr->assert = NULL;
ntr->unassert = historyUnassert;
ntr->getSlotValue = remoteStoreGetSlotValue;
ntr->getSlotValues = remoteStoreGetSlotValues;
ntr->hasAssertion = remoteStoreHasAssertion;
ntr->nextValue = remoteStoreNextValue;
ntr->disposeCursor = remoteStoreDisposeCursor;
ntr->possiblyAccessFile = HistPossiblyAccessFile;
gHistoryStore = ntr;
histInFlatFilep = endsWith(".rdf", gGlobalHistoryURL);
ntr->url = copyString(url);
hostHash = PL_NewHashTable(500, idenHash, PL_CompareValues, PL_CompareValues, null, null);
ByDateOpened = 1;
return ntr;
} else return gHistoryStore;
} else return NULL;
}
/*
void
dumpHist ()
{
FILE *fp = fopen("history.txt", "w");
HASHINFO hash = { 4*1024, 0, 0, 0, 0, 0};
DBT key, data;
PRBool firstOne = 0;
DB* db = CallDBOpenUsingFileURL(gGlobalHistoryURL, O_RDONLY ,0600,
DB_HASH, &hash);
if (db != NULL) {
while (0 == (*db->seq)(db, &key, &data, (firstOne ? R_NEXT : R_FIRST))) {
firstOne = 1;
if ((1 == (int32)*((char*)data.data + 3*sizeof(uint32)) &&
displayHistoryItem((char*)key.data))) {
fprintf(fp, "%s\n", (char*)key.data);
}
}
}
fclose(fp);
(*db->close)(db);
}
*/

View File

@@ -0,0 +1,84 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_HIST2RDF_H_
#define _RDF_HIST2RDF_H_
#include "rdf-int.h"
#include <stdio.h>
#include "prtypes.h" /* for IS_LITTLE_ENDIAN / IS_BIG_ENDIAN */
#if !defined(IS_LITTLE_ENDIAN) && !defined(IS_BIG_ENDIAN)
#error Must have a byte order
#endif
#ifdef IS_LITTLE_ENDIAN
#define HIST_COPY_INT32(_a,_b) XP_MEMCPY(_a, _b, sizeof(int32));
#else
#define HIST_COPY_INT32(_a,_b) \
do { \
((char *)(_a))[0] = ((char *)(_b))[3]; \
((char *)(_a))[1] = ((char *)(_b))[2]; \
((char *)(_a))[2] = ((char *)(_b))[1]; \
((char *)(_a))[3] = ((char *)(_b))[0]; \
} while(0)
#endif
/* hist2rdf.c data structures and defines */
#define remoteAddParent(child, parent) histAddParent(child, parent);
#define remoteAddName(u, name) remoteStoreAdd(gRemoteStore, u, gCoreVocab->RDF_name, copyString(name), RDF_STRING_TYPE, 1);
#define SECS_IN_HOUR (60L * 60L)
#define SECS_IN_DAY (SECS_IN_HOUR * 24L)
extern int RDF_HTML_WINDATE, RDF_HTML_MACDATE;
/* hist2rdf.c function prototypes */
NSPR_BEGIN_EXTERN_C
void collateHistory (RDFT r, RDF_Resource u, PRBool byDateFlag);
void collateOneHist (RDFT r, RDF_Resource u, char* url, char* title, time_t lastAccessDate, time_t firstAccessDate, uint32 numAccesses, PRBool byDateFlag);
RDF_Resource hostUnitOfURL (RDFT r, RDF_Resource top, RDF_Resource nu, char* title);
void hourRange(char *buffer, struct tm *theTm);
RDF_Resource hostUnitOfDate (RDFT r, RDF_Resource u, time_t lastAccessDate);
void saveHistory();
void deleteCurrentSitemaps (char *address);
void addRelatedLinks (char* address);
PRBool displayHistoryItem (char* url);
RDF_Resource HistCreate (char* url, PRBool createp);
Assertion histAddParent (RDF_Resource child, RDF_Resource parent);
PRBool historyUnassert (RDFT hst, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
void HistPossiblyAccessFile (RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep);
RDF_Cursor historyStoreGetSlotValuesInt (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
PRBool historyStoreHasAssertion (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
RDFT MakeHistoryStore (char* url);
void dumpHist ();
NSPR_END_EXTERN_C
#endif

10391
mozilla/modules/rdf/src/ht.c Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,398 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_HT_H_
#define _RDF_HT_H_
#ifndef HT_RAPTOR
#include "xpassert.h"
#include "xp_qsort.h"
#include "xp_time.h"
#include "client.h"
#include "net.h"
#include "xpgetstr.h"
#include "xp_str.h"
#include "htmldlgs.h"
#include "xp_ncent.h"
#include "xpassert.h"
#include "nspr.h"
#include "prefapi.h"
#include "fe_proto.h"
#include "intl_csi.h"
#ifdef XP_MAC
#include "stdlib.h"
#include <Aliases.h>
#endif
#include "rdf.h"
#include "rdf-int.h"
#include "math.h"
#include "htrdf.h"
#ifdef SMART_MAIL
#include "pm2rdf.h"
#endif
#else
#include "prprf.h"
#include "plhash.h"
#include "xp_core.h"
#include "rdf.h"
#include "rdf-int.h"
#include "mcf.h"
#include "htrdf.h"
#include "vocab.h"
#ifndef XP_ASSERT
#define XP_ASSERT(x)
#endif
#ifndef XP_FREE
#define XP_FREE(x) PR_Free((x))
#endif
#ifndef XP_STRCASECMP
#define XP_STRCASECMP(x,y) strcmp((x),(y))
#endif
#define MWContext void
#endif
/* HT data structures and defines */
#define ITEM_LIST_SIZE 500 /* XXX ITEM_LIST_SIZE should be dynamic */
#define ITEM_LIST_ELEMENT_SIZE 20
#define NUM_MENU_CMDS 40
#define RDF_SITEMAP 1
#define RDF_RELATED_LINKS 2
#define FROM_PAGE 1
#define GUESS_FROM_PREVIOUS_PAGE 2
#define HTDEL remoteStoreRemove
#ifndef HT_RAPTOR
/* external string references in allxpstr */
extern int RDF_HTML_STR, RDF_HTML_STR_1, RDF_HTML_STR_2, RDF_HTML_STR_3;
extern int RDF_HTML_STR_4, RDF_HTML_STR_5, RDF_HTML_STR_NUMBER;
extern int RDF_HTML_WINDATE, RDF_HTML_MACDATE, RDF_CMD_0, RDF_DATA_1, RDF_DATA_2;
extern int RDF_DELETEFILE, RDF_UNABLETODELETEFILE, RDF_DELETEFOLDER;
extern int RDF_UNABLETODELETEFOLDER, RDF_SITEMAPNAME;
extern int RDF_RELATEDLINKSNAME, RDF_DEFAULTCOLUMNNAME;
extern int RDF_NEWWORKSPACEPROMPT, RDF_DELETEWORKSPACE;
extern int RDF_ADDITIONS_ALLOWED, RDF_DELETION_ALLOWED;
extern int RDF_ICON_URL_LOCKED, RDF_NAME_LOCKED, RDF_COPY_ALLOWED;
extern int RDF_MOVE_ALLOWED, RDF_WORKSPACE_POS_LOCKED;
extern int RDF_MAIN_TITLE, RDF_COLOR_TITLE, RDF_HTML_INFOHEADER_STR;
extern int RDF_MISSION_CONTROL_TITLE, RDF_TREE_COLORS_TITLE, RDF_SELECTION_COLORS_TITLE;
extern int RDF_COLUMN_COLORS_TITLE, RDF_TITLEBAR_COLORS_TITLE, RDF_HTML_MAININFOHEADER_STR;
extern int RDF_HTML_EMPTYHEADER_STR, RDF_HTML_COLOR_STR, RDF_SETCOLOR_JS, RDF_DEFAULTCOLOR_JS;
extern int RDF_COLOR_LAYER, RDF_HTMLCOLOR_STR;
extern int RDF_SELECT_START, RDF_SELECT_END, RDF_SELECT_OPTION;
extern int RDF_FIND_STR1, RDF_FIND_STR2, RDF_FIND_INPUT_STR;
extern int RDF_LOCAL_LOCATION_STR, RDF_REMOTE_LOCATION_STR, RDF_ALL_LOCATION_STR;
extern int RDF_CONTAINS_STR, RDF_IS_STR, RDF_IS_NOT_STR, RDF_STARTS_WITH_STR, RDF_ENDS_WITH_STR;
extern int RDF_FIND_TITLE, RDF_FIND_FULLNAME_STR, RDF_SHORTCUT_CONFLICT_STR, RDF_FTP_NAME_STR;
#ifdef HT_PASSWORD_RTNS
extern int RDF_NEWPASSWORD, RDF_CONFIRMPASSWORD;
extern int RDF_MISMATCHPASSWORD, RDF_ENTERPASSWORD;
#endif
#endif
#define MISSION_CONTROL_RDF_PREF "browser.navcenter.admin"
#define NETSCAPE_RDF_FILENAME "netscape.rdf"
typedef struct _SBProviderStruct {
struct _SBProviderStruct *next;
char *url;
char *name;
PRBool containerp;
PRBool openp;
} SBProviderStruct;
typedef SBProviderStruct* SBProvider;
typedef struct _HT_PaneStruct {
struct _HT_PaneStruct *next;
void *pdata;
HT_Notification ns;
PLHashTable *hash;
HT_NotificationMask mask;
RDF db;
RDF_Notification rns;
struct _HT_ViewStruct *viewList;
struct _HT_ViewStruct *selectedView;
struct _HT_URLSiteMapAssoc *smp;
struct _HT_URLSiteMapAssoc *sbp;
uint32 viewListCount;
PRBool autoFlushFlag;
SBProvider smartBrowsingProviders;
PRBool dirty;
PRBool personaltoolbar;
PRBool toolbar;
PRBool bookmarkmenu;
PRBool special;
int windowType;
char *windowURL;
char *templateType;
struct _HT_PaneStruct *templatePane;
char *htdburl;
RDFT htdb;
} HT_PaneStruct;
typedef struct HT_ColumnStruct {
struct HT_ColumnStruct *next;
char *name;
uint32 width;
uint32 tokenType;
void *token;
void *feData;
PRBool isHiddenFlag;
} HT_ColumnStruct, *HT_Column;
typedef struct _HT_ViewStruct {
struct _HT_ViewStruct *next;
HT_Pane pane;
HT_Resource top;
void *pdata;
HT_Column columns;
uint32 workspacePos;
struct _HT_ResourceStruct ***itemList;
uint32 itemListSize;
uint32 itemListCount;
uint32 topNodeIndex;
uint32 selectedNodeHint;
uint32 sortTokenType;
void *sortToken;
PRBool descendingFlag;
PRBool refreshingItemListp;
PRBool inited;
RDF_Resource treeRel;
} HT_ViewStruct;
typedef struct _HT_ValueStruct {
struct _HT_ValueStruct *next;
uint32 tokenType;
RDF_Resource token;
void *data;
} HT_ValueStruct, *HT_Value;
#define HT_CONTAINER_FLAG 0x0001
#define HT_OPEN_FLAG 0x0002
#define HT_AUTOFLUSH_OPEN_FLAG 0x0004
#define HT_HIDDEN_FLAG 0x0008
#define HT_SELECTED_FLAG 0x0010
#define HT_VOLATILE_URL_FLAG 0x0020
#define HT_FREEICON_URL_FLAG 0x0040
#define HT_PASSWORDOK_FLAG 0x0080
#define HT_INITED_FLAG 0x0100
#define HT_DIRTY_FLAG 0x0200
#define HT_ENABLED_FLAG 0x0400
typedef struct _HT_ResourceStruct {
struct _HT_ResourceStruct *nextItem;
HT_View view;
HT_Resource parent;
RDF_Resource node;
void *feData;
char *dataSource;
char *url[5];
HT_Value values;
HT_Resource child;
HT_Resource *children; /* used by sorting */
uint32 unsortedIndex; /* used by sorting */
uint32 itemListIndex;
uint32 numChildren, numChildrenTotal;
uint16 flags;
uint16 depth;
HT_Resource next;
/* a pane or view might have multiple occurances of a RDF_Resource.
The hash table just points to the first of them. This allows us to
make a linked list of it */
} HT_ResourceStruct;
typedef struct _HT_MenuCommandStruct {
struct _HT_MenuCommandStruct *next;
HT_MenuCmd menuCmd;
char *name;
RDF_Resource graphCommand;
} _HT_MenuCommandStruct, *HT_MenuCommand;
typedef struct _HT_CursorStruct {
HT_Resource container;
HT_Resource node;
RDF_Cursor cursor;
uint32 numElements;
HT_Column columns;
uint16 contextMenuIndex;
PRBool foundValidMenuItem;
PRBool isWorkspaceFlag;
PRBool isBackgroundFlag;
PRBool commandExtensions;
PRBool commandListBuild;
HT_MenuCmd menuCmd;
HT_MenuCommand menuCommandList;
} HT_CursorStruct;
typedef struct _HT_Icon {
struct _HT_Icon *next;
char *name;
} _HT_Icon, *HT_Icon;
typedef struct _htmlElement {
struct _htmlElement *next;
HT_Resource node;
RDF_Resource token;
uint32 tokenType;
} _htmlElement, *_htmlElementPtr;
typedef struct _HT_URLSiteMapAssoc {
uint8 siteToolType;
uint8 origin;
uint8 onDisplayp;
char *url;
RDF_Resource sitemap;
char* name;
char* sitemapUrl;
RDFT db;
struct _HT_URLSiteMapAssoc *next;
} HT_URLSiteMapAssoc;
/* HT function prototypes */
XP_BEGIN_PROTOS
void HT_Startup();
void HT_Shutdown();
void htLoadComplete(char *url, int status);
void htTimerRoutine(void *timerID);
PRBool possiblyUpdateView(HT_View view);
void updateViewItem(HT_Resource node);
HT_Resource newHTEntry (HT_View view, RDF_Resource node);
void addWorkspace(HT_Pane pane, RDF_Resource r, void *feData);
void deleteWorkspace(HT_Pane pane, RDF_Resource r);
void htrdfNotifFunc (RDF_Event ns, void* pdata);
void bmkNotifFunc (RDF_Event ns, void* pdata);
void refreshItemListInt (HT_View view, HT_Resource node);
PRBool relatedLinksContainerp (HT_Resource node);
int nodeCompareRtn(HT_Resource *node1, HT_Resource *node2);
void sortNodes(HT_View view, HT_Resource parent, HT_Resource *children, uint32 numChildren);
uint32 refreshItemList1(HT_View view, HT_Resource node);
void refreshItemList (HT_Resource node, HT_Event whatHappened);
void refreshPanes();
PRBool initToolbars (HT_Pane pane);
HT_Pane paneFromResource(RDF db, RDF_Resource resource, HT_Notification notify, PRBool autoFlushFlag, PRBool autoOpenFlag, PRBool useColumns);
void htSetBookmarkAddDateToNow(RDF_Resource r);
RDF newHTPaneDB();
RDF HTRDF_GetDB();
PRBool initViews (HT_Pane pane);
void htNewWorkspace(HT_Pane pane, char *id, char *optionalTitle, uint32 workspacePos);
HT_PaneStruct * HT_GetHTPaneList ();
HT_PaneStruct * HT_GetNextHTPane (HT_PaneStruct* pane);
void htSetWorkspaceOrder(RDF_Resource src, RDF_Resource dest, PRBool afterDestFlag);
HT_View HT_NewView (RDF_Resource topNode, HT_Pane pane, PRBool useColumns, void *feData, PRBool autoOpen);
void sendNotification (HT_Resource node, HT_Event whatHappened, RDF_Resource s, HT_ColumnType type);
void deleteHTNode(HT_Resource node);
void destroyViewInt (HT_Resource r, PRBool saveOpenState);
void htDeletePane(HT_Pane pane, PRBool saveWorkspaceOrder);
void saveWorkspaceOrder(HT_Pane pane);
void resynchItem (HT_Resource node, void *token, void *data, PRBool assertAction);
void resynchContainer (HT_Resource container);
HT_Resource addContainerItem (HT_Resource container, RDF_Resource item);
void refreshContainerIndexes(HT_Resource container);
void removeHTFromHash (HT_Pane pane, HT_Resource item);
void deleteHTSubtree (HT_Resource subtree);
void deleteContainerItem (HT_Resource container, RDF_Resource item);
uint32 fillContainer (HT_Resource node);
void sendColumnNotification (HT_View view, void *token, uint32 tokenType, HT_Event whatHappened);
PRBool htIsMenuCmdEnabled(HT_Pane pane, HT_MenuCmd menuCmd, PRBool isWorkspaceFlag, PRBool isBackgroundFlag);
void freeMenuCommandList();
void exportCallbackWrite(PRFileDesc *fp, char *str);
void exportCallback(MWContext *context, char *filename, RDF_Resource node);
void htEmptyClipboard(RDF_Resource parent);
void htCopyReference(RDF_Resource original, RDF_Resource newParent, PRBool empty);
PRBool htVerifyUniqueToken(HT_Resource node, void *token, uint32 tokenType, char *data);
PRBool ht_isURLReal(HT_Resource node);
char * buildInternalIconURL(HT_Resource node, PRBool *volatileURLFlag, PRBool largeIconFlag, PRBool workspaceFlag);
char * getIconURL( HT_Resource node, PRBool toolbarFlag, PRBool workspaceFlag, int state);
PRBool htIsPropertyInMoreOptions(RDF_Resource r);
void addHtmlElement(HT_Resource node, RDF_Resource token, uint32 tokenType);
void freeHtmlElementList();
_htmlElementPtr findHtmlElement(void *token);
void freeHtmlElement(void *token);
char * constructHTMLTagData(char *dynStr, int strID, char *data);
char * constructHTML(char *dynStr, HT_Resource node, void *token, uint32 tokenType);
char * constructHTMLPermission(char *dynStr, HT_Resource node, RDF_Resource token, char *permText);
PRBool htIsOpLocked(HT_Resource node, RDF_Resource token);
char * constructBasicHTML(char *dynStr, int strID, char *data1, char *data2);
void setHiddenState (HT_Resource node);
void htSetFindResourceName(RDF db, RDF_Resource r);
void htOpenTo(HT_View view, RDF_Resource u, PRBool selectView);
PRBool mutableContainerp (RDF_Resource node);
char * possiblyCleanUpTitle (char* title);
PRBool htRemoveChild(HT_Resource parent, HT_Resource child, PRBool moveToTrash);
void ht_SetPassword(HT_Resource node, char *password);
PRBool ht_hasPassword(HT_Resource node);
PRBool ht_checkPassword(HT_Resource node, PRBool alwaysCheck);
HT_DropAction htLaunchSmartNode(HT_Resource dropTarget, char *fullURL);
HT_DropAction dropOnSmartNode(HT_Resource dropTarget, HT_Resource dropObject, PRBool justAction);
HT_DropAction dropOnSmartURL(HT_Resource dropTarget, char *objTitle, PRBool justAction);
HT_DropAction dropOn (HT_Resource dropTarget, HT_Resource dropObject, PRBool justAction);
void Win32FileCopyMove(HT_Resource dropTarget, HT_Resource dropObject);
HT_DropAction copyMoveRDFLink (HT_Resource dropTarget, HT_Resource dropObject);
HT_DropAction copyMoveRDFLinkAtPos (HT_Resource dropx, HT_Resource dropObject, PRBool before);
HT_DropAction uploadLFS (HT_Resource dropTarget, HT_Resource dropObject);
HT_DropAction uploadRDFFile (HT_Resource dropTarget, HT_Resource dropObject);
HT_DropAction esfsCopyMoveContent (HT_Resource dropTarget, HT_Resource dropObject);
RDF_BT urlResourceType (char* url);
HT_DropAction dropURLOn (HT_Resource dropTarget, char* objURL, char *objTitle, PRBool justAction);
void replacePipeWithColon(char* url);
HT_DropAction copyRDFLinkURL (HT_Resource dropTarget, char* objURL, char *objTitle);
HT_DropAction copyRDFLinkURLAt (HT_Resource dropx, char* objURL, char *objTitle, PRBool before);
HT_DropAction uploadLFSURL (HT_Resource dropTarget, char* objURL);
HT_DropAction uploadRDFFileURL (HT_Resource dropTarget, char* objURL);
HT_DropAction esfsCopyMoveContentURL (HT_Resource dropTarget, char* objURL);
RDFT HTADD(HT_Pane pane, RDF_Resource u, RDF_Resource s, void* v);
HT_URLSiteMapAssoc * makeNewSMP (HT_Pane htPane, char* pUrl, char* sitemapurl);
void RetainOldSitemaps (HT_Pane htPane, char *pUrl);
void populateSBProviders (HT_Pane htPane);
SBProvider SBProviderOfNode (HT_Resource node);
PRBool implicitDomainURL (char* url);
PRBool domainMatches (char *dom, char *url);
void nextDomain (char* dom, size_t *n);
PRBool relatedLinksEnabledURL (char* url);
void cleanupInt (HT_Pane htPane, HT_URLSiteMapAssoc *nsmp, RDF_Resource parent);
HT_Pane newTemplatePane(char* templateName);
void PaneDeleteSBPCleanup (HT_Pane htPane);
#ifndef HT_RAPTOR
PRBool rdfFindDialogHandler(XPDialogState *dlgstate, char **argv, int argc, unsigned int button);
#endif
XP_END_PROTOS
#endif

View File

@@ -0,0 +1,404 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "jsec2rdf.h"
#include "fs2rdf.h"
#include "utils.h"
#include "nlcstore.h"
#include "vocabint.h"
NSPR_BEGIN_EXTERN_C
extern RDF gNCDB;
RDF gJSecDB = NULL;
JSec_Error
RDFJSec_InitPrivilegeDB()
{
if (gJSecDB == 0) {
gJSecDB = gNCDB;
}
return JSec_OK;
}
JSec_Error
RDFJSec_SavePrivilegeDB()
{
return JSec_OK;
}
JSec_Error
RDFJSec_ClosePrivilegeDB()
{
return JSec_OK;
}
#define JSEC_PRINCIPAL_URL "jsecprin:"
char *
RDFJSec_GetPrincipalURLString(char *principalID)
{
size_t size = RDF_STRLEN(principalID);
char* url = getMem(size+RDF_STRLEN(JSEC_PRINCIPAL_URL)+1);
if (url == NULL) {
return NULL;
}
sprintf(url, "%s%s", JSEC_PRINCIPAL_URL, principalID);
strcpy(url, principalID);
return url;
}
RDF_Cursor
RDFJSec_ListAllPrincipals()
{
RDF_Cursor c = NULL;
if (gNavCenter != NULL) {
c = RDF_GetSources(gJSecDB, gNavCenter->RDF_JSec,
gNavCenter->RDF_JSecPrincipal,
RDF_RESOURCE_TYPE, TRUE);
}
return(c);
}
JSec_Principal
RDFJSec_NextPrincipal(RDF_Cursor c)
{
if (c != NULL) {
return RDF_NextValue(c);
}
return NULL;
}
RDF_Error
RDFJSec_ReleaseCursor(RDF_Cursor c)
{
RDF_Error err = 0;
if (c != NULL) {
err = RDF_DisposeCursor(c);
}
return (err);
}
JSec_Principal
RDFJSec_NewPrincipal(char* principalID)
{
RDF_Resource principalUnit;
char *url = RDFJSec_GetPrincipalURLString(principalID);
if (url == NULL) {
return NULL;
}
principalUnit = RDF_GetResource(NULL, url, FALSE);
if (!principalUnit) {
principalUnit = RDF_GetResource(NULL, url, TRUE);
}
freeMem(url);
return (JSec_Principal)principalUnit;
}
JSec_Error
RDFJSec_AddPrincipal(JSec_Principal pr)
{
if ((pr == NULL) || (gNavCenter == NULL)) {
return JSec_NullObject;
}
if (RDF_HasAssertion(gJSecDB, pr, gNavCenter->RDF_JSecPrincipal, gNavCenter->RDF_JSec,
RDF_RESOURCE_TYPE, PR_FALSE)) {
return JSec_OK;
}
setContainerp(pr, PR_TRUE);
setResourceType(pr, JSEC_RT);
RDF_Assert(gJSecDB, pr, gNavCenter->RDF_JSecPrincipal, gNavCenter->RDF_JSec, RDF_RESOURCE_TYPE);
return JSec_OK;
}
JSec_Error
RDFJSec_DeletePrincipal(JSec_Principal pr)
{
RDF_Cursor c;
if ((pr == NULL) || (gNavCenter == NULL)) {
return JSec_NullObject;
}
/* Before deleting the principal, delete all the PrincipalUses for this principal.
*/
c = RDFJSec_ListAllPrincipalUses(pr);
if (c != NULL) {
JSec_PrincipalUse prUse;
while ((prUse = RDFJSec_NextPrincipalUse(c)) != NULL) {
RDFJSec_DeletePrincipalUse(pr, prUse);
}
}
RDF_Unassert(gJSecDB, pr, gNavCenter->RDF_JSecPrincipal, gNavCenter->RDF_JSec, RDF_RESOURCE_TYPE);
return JSec_OK;
}
char *
RDFJSec_PrincipalID(JSec_Principal pr)
{
char *url = resourceID(pr);
char *ans = getMem(RDF_STRLEN(url)+1);
int n;
if (ans == NULL) {
return NULL;
}
n = charSearch(':', url);
if (n == -1) {
strcpy(ans, url);
} else {
strcpy(ans, url+n+1);
}
return ans;
}
void *
RDFJSec_AttributeOfPrincipal(JSec_Principal pr, char* attributeType)
{
RDF_Resource attributeResource = RDF_GetResource(NULL, attributeType, TRUE);
void *attValue;
RDF_Cursor c = NULL;
c = RDF_GetTargets(gJSecDB, pr, attributeResource, RDF_STRING_TYPE, TRUE);
if (c == NULL) {
return NULL;
}
attValue = RDF_NextValue(c);
RDF_DisposeCursor(c);
return attValue;
}
JSec_Error
RDFJSec_SetPrincipalAttribute(JSec_Principal pr, char* attributeType, void* attValue)
{
RDF_Resource attributeResource = RDF_GetResource(NULL, attributeType, TRUE);
RDF_Assert(gJSecDB, pr, attributeResource, attValue, RDF_STRING_TYPE);
return JSec_OK;
}
RDF_Cursor
RDFJSec_ListAllPrincipalUses(JSec_Principal pr)
{
RDF_Cursor c = NULL;
c = RDF_GetSources(gJSecDB, (RDF_Resource)pr, gCoreVocab->RDF_parent, RDF_RESOURCE_TYPE, true);
return(c);
}
JSec_PrincipalUse
RDFJSec_NextPrincipalUse(RDF_Cursor c)
{
if (c != NULL) {
return RDF_NextValue(c);
}
return NULL;
}
JSec_PrincipalUse
RDFJSec_NewPrincipalUse(JSec_Principal pr, JSec_Target tr, char* priv)
{
RDF_Resource principalUseUnit;
char *targetID = resourceID(tr);
char *principalID = resourceID(pr);
char *principalUseID = getMem(RDF_STRLEN(principalID) + strlen(targetID) + 2);
if (principalUseID == NULL) {
return NULL;
}
sprintf(principalUseID, "%s!%s", principalID, targetID);
principalUseUnit = RDF_GetResource(NULL, principalUseID, FALSE);
if (!principalUseUnit) {
principalUseUnit = RDF_GetResource(NULL, principalUseID, TRUE);
RDFJSec_AddTargetToPrincipalUse(principalUseUnit, tr);
RDFJSec_AddPrincipalUsePrivilege(principalUseUnit, priv);
}
return principalUseUnit;
}
JSec_Error
RDFJSec_AddPrincipalUse(JSec_Principal pr, JSec_PrincipalUse prUse)
{
if ((pr == NULL) || (prUse == NULL)) {
return JSec_NullObject;
}
setContainerp(prUse, PR_TRUE);
setResourceType(prUse, JSEC_RT);
RDF_Assert(gJSecDB, prUse, gCoreVocab->RDF_parent, pr, RDF_RESOURCE_TYPE);
return JSec_OK;
}
JSec_Error
RDFJSec_DeletePrincipalUse (JSec_Principal pr, JSec_PrincipalUse prUse)
{
JSec_Target tr;
char *priv;
if ((pr == NULL) || (prUse == NULL)) {
return JSec_NullObject;
}
/* Before deleting the principal, delete all the PrincipalUses for this principal.
*/
tr = RDFJSec_TargetOfPrincipalUse(prUse);
RDFJSec_DeleteTargetToPrincipalUse(prUse, tr);
priv = RDFJSec_PrivilegeOfPrincipalUse(prUse);
RDFJSec_DeletePrincipalUsePrivilege(prUse, priv);
RDF_Unassert(gJSecDB, prUse, gCoreVocab->RDF_parent, pr, RDF_RESOURCE_TYPE);
return JSec_OK;
}
const char *
RDFJSec_PrincipalUseID(JSec_PrincipalUse prUse)
{
return resourceID(prUse);
}
JSec_Error
RDFJSec_AddPrincipalUsePrivilege (JSec_PrincipalUse prUse, char* priv)
{
char *oldPriv;
if ((prUse == NULL) || (priv == NULL) || (gNavCenter == NULL)) {
return JSec_NullObject;
}
/* Each PrincipalUse can only have one Privilege. Thus delete the old privilege*/
oldPriv = RDFJSec_PrivilegeOfPrincipalUse(prUse);
RDFJSec_DeletePrincipalUsePrivilege(prUse, oldPriv);
RDF_Assert(gJSecDB, prUse, gNavCenter->RDF_JSecAccess, priv, RDF_STRING_TYPE);
return JSec_OK;
}
JSec_Error
RDFJSec_DeletePrincipalUsePrivilege (JSec_PrincipalUse prUse, char* priv)
{
if ((prUse == NULL) || (priv == NULL) || (gNavCenter == NULL)) {
return JSec_NullObject;
}
RDF_Unassert(gJSecDB, prUse, gNavCenter->RDF_JSecAccess, priv, RDF_STRING_TYPE);
return JSec_OK;
}
char *
RDFJSec_PrivilegeOfPrincipalUse (JSec_PrincipalUse prUse)
{
RDF_Cursor c = NULL;
char *privilege;
if (gNavCenter == NULL) {
return NULL;
}
c = RDF_GetTargets(gJSecDB, (RDF_Resource)prUse, gNavCenter->RDF_JSecAccess, RDF_STRING_TYPE, TRUE);
if (c == NULL) {
return NULL;
}
privilege = RDF_NextValue(c);
RDF_DisposeCursor(c);
return privilege;
}
JSec_Error
RDFJSec_AddTargetToPrincipalUse(JSec_PrincipalUse prUse, JSec_Target tr)
{
JSec_Target oldTarget;
if ((prUse == NULL) || (tr == NULL) || (gNavCenter == NULL)) {
return JSec_NullObject;
}
/* Each PrincipalUse can only have one Target. Thus delete the old target */
oldTarget = RDFJSec_TargetOfPrincipalUse(prUse);
RDFJSec_DeleteTargetToPrincipalUse(prUse, oldTarget);
RDF_Assert(gJSecDB, prUse, gNavCenter->RDF_JSecTarget, tr, RDF_RESOURCE_TYPE);
return JSec_OK;
}
JSec_Error
RDFJSec_DeleteTargetToPrincipalUse(JSec_PrincipalUse prUse, JSec_Target tr)
{
if ((prUse == NULL) || (tr == NULL) || (gNavCenter == NULL)) {
return JSec_NullObject;
}
RDF_Unassert(gJSecDB, prUse, gNavCenter->RDF_JSecTarget, tr, RDF_RESOURCE_TYPE);
return JSec_OK;
}
JSec_Target
RDFJSec_TargetOfPrincipalUse (JSec_PrincipalUse prUse)
{
RDF_Cursor c = NULL;
JSec_Target tr;
if ((prUse == NULL) || (gNavCenter == NULL)) {
return NULL;
}
c = RDF_GetTargets(gJSecDB, (RDF_Resource)prUse, gNavCenter->RDF_JSecTarget, RDF_RESOURCE_TYPE, true);
if (c == NULL) {
return NULL;
}
tr = RDF_NextValue(c);
RDF_DisposeCursor(c);
return tr;
}
JSec_Target
RDFJSec_NewTarget(char* targetName, JSec_Principal pr)
{
RDF_Resource tr;
/* RDF_Resource prResource; */
char *principalID = RDFJSec_PrincipalID(pr);
char *targetID = getMem(RDF_STRLEN(targetName) + strlen(principalID) + 2);
if (targetID == NULL) {
return NULL;
}
if (gNavCenter == NULL) {
return NULL;
}
sprintf(targetID, "%s!%s", targetName, principalID);
tr = RDF_GetResource(NULL, targetID, FALSE);
if (!tr) {
tr = RDF_GetResource(NULL, targetID, TRUE);
if (tr == NULL) {
return NULL;
}
RDFJSec_SetTargetAttribute(tr, "targetName", targetName);
RDF_Assert(gJSecDB, tr, gNavCenter->RDF_JSecPrincipal, pr, RDF_RESOURCE_TYPE);
}
return tr;
}
char *
RDFJSec_GetTargetName(JSec_Target tr)
{
return RDFJSec_AttributeOfTarget(tr, "targetName");
}
char *
RDFJSec_AttributeOfTarget(JSec_Target tr, char* attributeType)
{
RDF_Resource attributeResource = RDF_GetResource(NULL, attributeType, TRUE);
char *attValue;
RDF_Cursor c = NULL;
c = RDF_GetTargets(gJSecDB, tr, attributeResource, RDF_STRING_TYPE, TRUE);
if (c == NULL) {
return NULL;
}
attValue = RDF_NextValue(c);
RDF_DisposeCursor(c);
return attValue;
}
JSec_Error
RDFJSec_SetTargetAttribute(JSec_Target tr, char* attributeType, char* attValue)
{
RDF_Resource attributeResource = RDF_GetResource(NULL, attributeType, TRUE);
RDF_Assert(gJSecDB, tr, attributeResource, attValue, RDF_STRING_TYPE);
return JSec_OK;
}
NSPR_END_EXTERN_C

View File

@@ -0,0 +1,562 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file implements LDAP support for the rdf data model.
For more information on this file, contact rjc or guha
For more information on RDF, look at the RDF section of www.mozilla.org
*/
/*
XXX Someone needs to get this up to speed again
*/
#if 0
#ifdef MOZ_LDAP
#include "ldap2rdf.h"
#include "utils.h"
/* statics */
static PRHashTable *ldap2rdfHash;
static PRHashTable *invldap2rdfHash;
static RDFT gRDFDB;
static PRBool ldap2rdfInitedp = 0;
RDFT
MakeLdapStore (char* url)
{
RDFT ntr = (RDFT)getMem(sizeof(RDF_TranslatorStruct));
ntr->assert = ldapAssert;
ntr->unassert = ldapUnassert;
ntr->getSlotValue = ldapGetSlotValue;
ntr->getSlotValues = ldapGetSlotValues;
ntr->hasAssertion = ldapHasAssertion;
ntr->nextValue = ldapNextValue;
ntr->disposeCursor = ldapDisposeCursor;
ldap2rdfInit(ntr);
return ntr;
}
RDF_Error
LdapInit (RDFT ntr)
{
ntr->assert = ldapAssert;
ntr->unassert = ldapUnassert;
ntr->getSlotValue = ldapGetSlotValue;
ntr->getSlotValues = ldapGetSlotValues;
ntr->hasAssertion = ldapHasAssertion;
ntr->nextValue = ldapNextValue;
ntr->disposeCursor = ldapDisposeCursor;
ldap2rdfInit(ntr);
return 0;
}
void
ldap2rdfInit (RDFT rdf)
{
if (!ldap2rdfInitedp) {
ldap2rdfHash = PR_NewHashTable(500, idenHash, idenEqual, idenEqual, null, null);
invldap2rdfHash = PR_NewHashTable(500, idenHash, idenEqual, idenEqual, null, null);
gRDFDB = rdf;
ldap2rdfInitedp = 1;
}
}
Assertion
ldaparg1 (RDF_Resource u)
{
return (Assertion) PR_HashTableLookup(ldap2rdfHash, u);
}
Assertion
setldaparg1 (RDF_Resource u, Assertion as)
{
return (Assertion) PR_HashTableAdd(ldap2rdfHash, u, as);
}
Assertion
ldaparg2 (RDF_Resource u)
{
return (Assertion) PR_HashTableLookup(invldap2rdfHash, u);
}
Assertion
setldaparg2 (RDF_Resource u, Assertion as)
{
return (Assertion) PR_HashTableAdd(invldap2rdfHash, u, as);
}
PRBool
ldapAssert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv)
{
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )v));
if (!ldap2rdfInitedp) ldap2rdfInit(rdf);
if ((s == gCoreVocab->RDF_parent) && (type == RDF_RESOURCE_TYPE) &&
(tv) && (ldapContainerp(v))) {
return (ldapAddChild(rdf, (RDF_Resource)v, u));
} else {
return 0;
}
}
PRBool
ldapUnassert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type)
{
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )v)));
if (!ldap2rdfInitedp) ldap2rdfInit(rdf);
if ((s == gCoreVocab->RDF_parent) && (type == RDF_RESOURCE_TYPE) &&
(ldapContainerp(v))) {
return (ldapRemoveChild(rdf, (RDF_Resource)v, u));
} else {
return 0;
}
}
PRBool
ldapDBAdd (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type)
{
Assertion nextAs, prevAs, newAs;
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )v)));
if ((s == gCoreVocab->RDF_instanceOf) && (v == gWebData->RDF_Container)) {
setContainerp(u, true);
return 1;
}
nextAs = prevAs = ldaparg1(u);
while (nextAs != null) {
if (asEqual(nextAs, u, s, v, type)) return 1;
prevAs = nextAs;
nextAs = nextAs->next;
}
newAs = makeNewAssertion(u, s, v, type, 1);
if (prevAs == null) {
setldaparg1(u, newAs);
} else {
prevAs->next = newAs;
}
if (type == RDF_RESOURCE_TYPE) {
nextAs = prevAs = ldaparg2((RDF_Resource)v);
while (nextAs != null) {
prevAs = nextAs;
nextAs = nextAs->invNext;
}
if (prevAs == null) {
setldaparg2((RDF_Resource)v, newAs);
} else {
prevAs->invNext = newAs;
}
}
sendNotifications2(rdf, RDF_ASSERT_NOTIFY, u, s, v, type, 1);
return true;
}
PRBool
ldapDBRemove (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type)
{
Assertion nextAs, prevAs, ans;
PRBool found = false;
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )v)));
nextAs = prevAs = ldaparg1(u);
while (nextAs != null) {
if (asEqual(nextAs, u, s, v, type)) {
if (prevAs == null) {
setldaparg1(u, nextAs->next);
} else {
prevAs->next = nextAs->next;
}
found = true;
ans = nextAs;
break;
}
prevAs = nextAs;
nextAs = nextAs->next;
}
if (found == false) return false;
if (type == RDF_RESOURCE_TYPE) {
nextAs = prevAs = ldaparg2((RDF_Resource)v);
while (nextAs != null) {
if (nextAs == ans) {
if (prevAs == nextAs) {
setldaparg2((RDF_Resource)v, nextAs->invNext);
} else {
prevAs->invNext = nextAs->invNext;
}
}
prevAs = nextAs;
nextAs = nextAs->invNext;
}
}
sendNotifications2(rdf, RDF_DELETE_NOTIFY, u, s, v, type, 1);
return true;
}
PRBool
ldapHasAssertion (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv)
{
Assertion nextAs;
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )v)));
if (!ldap2rdfInitedp) ldap2rdfInit(rdf);
nextAs = ldaparg1(u);
while (nextAs != null) {
if (asEqual(nextAs, u, s, v, type) && (nextAs->tv == tv)) return true;
nextAs = nextAs->next;
}
possiblyAccessldap(rdf, u, s, false);
nextAs = ldaparg1(u);
while (nextAs != null) {
if (asEqual(nextAs, u, s, v, type) && (nextAs->tv == tv)) return true;
nextAs = nextAs->next;
}
return false;
}
void *
ldapGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv)
{
Assertion nextAs;
if (!ldap2rdfInitedp) ldap2rdfInit(rdf);
nextAs = (inversep ? ldaparg2(u) : ldaparg1(u));
while (nextAs != null) {
if ((nextAs->s == s) && (nextAs->tv == tv) && (nextAs->type == type)) {
void * retVal = (inversep ? nextAs->u : nextAs->value);
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )retVal)));
return retVal
}
nextAs = (inversep ? nextAs->invNext : nextAs->next);
}
possiblyAccessldap(rdf, u, s, inversep);
nextAs = (inversep ? ldaparg2(u) : ldaparg1(u));
while (nextAs != null) {
if ((nextAs->s == s) && (nextAs->tv == tv) && (nextAs->type == type)) {
void * retVal = (inversep ? nextAs->u : nextAs->value);
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )retVal)));
return retVal
}
nextAs = (inversep ? nextAs->invNext : nextAs->next);
}
return null;
}
RDF_Cursor
ldapGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv)
{
Assertion as;
RDF_Cursor c;
if (!ldap2rdfInitedp) ldap2rdfInit(rdf);
as = (inversep ? ldaparg2(u) : ldaparg1(u));
if (as == null) {
possiblyAccessldap(rdf, u, s, inversep);
as = (inversep ? ldaparg2(u) : ldaparg1(u));
if (as == null)
return null;
}
c = (RDF_CursorStruc*)getMem(sizeof(RDF_CursorStruc));
c->u = u;
c->s = s;
c->type = type;
c->inversep = inversep;
c->tv = tv;
c->count = 0;
c->pdata = as;
return c;
}
void *
ldapNextValue (RDFT mcf, RDF_Cursor c)
{
while (c->pdata != null) {
Assertion as = (Assertion) c->pdata;
if ((as->s == c->s) && (as->tv == c->tv) && (c->type == as->type)) {
c->value = (c->inversep ? as->u : as->value);
c->pdata = (c->inversep ? as->invNext : as->next);
return c->value;
}
c->pdata = (c->inversep ? as->invNext : as->next);
}
return null;
}
RDF_Error
ldapDisposeCursor (RDFT mcf, RDF_Cursor c)
{
freeMem(c);
return noRDFErr;
}
RDF_Resource
ldapNewContainer(char *id)
{
return(NULL);
}
int
ldapModifyEntry (RDFT rdf, RDF_Resource parent, RDF_Resource child, PRBool addFlag)
{
RDF_Cursor c;
RDF_Resource newParent, r;
char *urivals[2];
LDAP *ld;
LDAPMod urimod, *mods[2];
LDAPURLDesc *ldURL=NULL;
int err;
char *errStr, *parentID;
parentID = resourceID(parent);
if (containerp(child))
{
if (newParent = ldapNewContainer(parentID))
{
if ((c = RDF_GetSources(rdf->rdf->rdf, child,
gCoreVocab->RDF_parent, RDF_RESOURCE_TYPE, 1)) != NULL)
{
while ((r = RDF_NextValue(c)) != NULL)
{
err = ldapModifyEntry(rdf, newParent, r, addFlag);
if (err)
{
/* XXX MAJOR rollback issues!
Punt for now! */
return(err);
}
}
}
else
{
return(-1);
}
}
else
{
return(-1);
}
}
ldap_url_parse(parentID, &ldURL);
if (ldURL == NULL) return(-1);
ld = ldap_init (ldURL->lud_host, ldURL->lud_port);
if (ld == NULL)
{
ldap_free_urldesc(ldURL);
return(-1);
}
if ((err = ldap_simple_bind_s(ld, ADMIN_ID, ADMIN_PW)) /* XXX */
!= LDAP_SUCCESS)
{
if ((errStr = ldap_err2string(err)) != NULL)
{
/* We need to change XP_MakeHTMLAlert to use UTF8 */
XP_MakeHTMLAlert(NULL, errStr);
}
ldap_unbind(ld);
ldap_free_urldesc(ldURL);
return(-1);
}
urivals[0] = resourceID(child);
urivals[1] = NULL;
urimod.mod_op = ((addFlag == true) ? LDAP_MOD_ADD : LDAP_MOD_DELETE);
urimod.mod_type = "labeledURI";
urimod.mod_values = urivals;
mods[0] = &urimod;
mods[1] = NULL;
err = ldap_modify_s(ld, ldURL->lud_dn, mods);
if (err != LDAP_SUCCESS)
{
if ((errStr = ldap_err2string(err)) != NULL)
{
/* We need to change XP_MakeHTMLAlert to use UTF8 */
XP_MakeHTMLAlert(NULL, errStr);
}
}
ldap_unbind(ld);
ldap_free_urldesc(ldURL);
return(err);
}
PRBool
ldapAddChild (RDFT rdf, RDF_Resource parent, RDF_Resource child)
{
return (ldapModifyEntry(rdf, parent, child, true) != LDAP_SUCCESS);
}
PRBool
ldapRemoveChild (RDFT rdf, RDF_Resource parent, RDF_Resource child)
{
return (ldapModifyEntry(rdf, parent, child, false) != LDAP_SUCCESS);
}
void
possiblyAccessldap(RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep)
{
/** try to get the values of u.s from the directory **/
LDAP *ld;
LDAPMessage *result=NULL, *entry;
LDAPURLDesc *ldURL=NULL;
RDF_Resource node;
char *attrs[2], **vals;
int err, i;
char *title = NULL;
/*
Note: a labeledURI is a url followed by an optional [space title-string]
*/
if (!stringEquals(resourceID(s), resourceID(gCoreVocab->RDF_parent)) || (!inversep) || (!ldap_is_ldap_url(resourceID(u)))) return;
ldap_url_parse(resourceID(u), &ldURL);
if (ldURL == NULL) return;
ld = ldap_init (ldURL->lud_host, ldURL->lud_port);
if (ld == NULL)
{
ldap_free_urldesc(ldURL);
return;
}
if ((err = ldap_simple_bind_s(ld, NULL, NULL)) != LDAP_SUCCESS)
{
ldap_unbind(ld);
ldap_free_urldesc(ldURL);
return;
}
attrs[0] = "labeledURI";
attrs[1] = NULL;
err = ldap_search_s(ld, ldURL->lud_dn, LDAP_SCOPE_BASE, ldURL->lud_filter, attrs, 0, &result);
if (err == LDAP_SUCCESS)
{
for (entry=ldap_first_entry(ld, result); entry!=NULL; entry=ldap_next_entry(ld, entry))
{
if ((vals = ldap_get_values(ld, entry, attrs[0])) != NULL)
{
for (i=0; vals[i] != NULL; i++)
{
/* vals[i] has a URL... add into RDF graph */
/*
if (((title = strstr(vals[i], " ")) != NULL)
&& (*(title+1) != '\0'))
{
*(++title) = '\0';
}
else
{
title = NULL;
}
*/
if ((node = RDF_Create(vals[i], true)) != NULL)
{
setResourceType(node, LDAP_RT);
if (ldapContainerp(node) == true)
{
setContainerp(node, 1);
}
ldapDBAdd(rdf, node, gCoreVocab->RDF_parent,
u, RDF_RESOURCE_TYPE);
if (title != NULL)
{
ldapDBAdd(rdf, node, gCoreVocab->RDF_name,
title, RDF_STRING_TYPE);
}
}
}
ldap_value_free(vals);
}
}
}
if (result != NULL)
{
ldap_msgfree(result);
}
ldap_unbind(ld);
ldap_free_urldesc(ldURL);
}
PRBool
ldapContainerp (RDF_Resource u)
{
return(ldap_is_ldap_url(resourceID(u))); /* XXX ??? */
}
#endif /* MOZ_LDAP */
#endif

View File

@@ -0,0 +1,69 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_LDAP2RDF_H_
#define _RDF_LDAP2RDF_H_
#include "rdf-int.h"
#ifdef MOZ_LDAP
#include "ldap.h"
#include "xpgetstr.h"
#include "htmldlgs.h"
#endif
/* ldap2rdf.c data structures and defines */
#define ADMIN_ID "uid=rjc, ou=People, o=airius.com"
#define ADMIN_PW "netscape"
/* ldap2rdf.c function prototypes */
NSPR_BEGIN_EXTERN_C
RDFT MakeLdapStore (char* url);
RDF_Error LdapInit (RDFT ntr);
void ldap2rdfInit (RDFT rdf);
Assertion ldaparg1 (RDF_Resource u);
Assertion setldaparg1 (RDF_Resource u, Assertion as);
Assertion ldaparg2 (RDF_Resource u);
Assertion setldaparg2 (RDF_Resource u, Assertion as);
PRBool ldapAssert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
PRBool ldapUnassert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
PRBool ldapDBAdd (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
PRBool ldapDBRemove (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
PRBool ldapHasAssertion (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
void * ldapGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
RDF_Cursor ldapGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
void * ldapNextValue (RDFT mcf, RDF_Cursor c);
RDF_Error ldapDisposeCursor (RDFT mcf, RDF_Cursor c);
RDF_Resource ldapNewContainer(char *id);
int ldapModifyEntry (RDFT rdf, RDF_Resource parent, RDF_Resource child, PRBool addFlag);
PRBool ldapAddChild (RDFT rdf, RDF_Resource parent, RDF_Resource child);
PRBool ldapRemoveChild (RDFT rdf, RDF_Resource parent, RDF_Resource child);
void possiblyAccessldap(RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep);
PRBool ldapContainerp (RDF_Resource u);
NSPR_END_EXTERN_C
#endif

View File

@@ -0,0 +1,52 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
DEPTH = ..\..\..
LIBRARY_SUFFIX=$(MOZ_BITS)
MAKE_OBJ_TYPE=DLL
MODULE=rdf
LIBRARY_NAME=rdf
REQUIRES=nspr
C_OBJS=.\$(OBJDIR)\vocab.obj \
.\$(OBJDIR)\mcf.obj \
.\$(OBJDIR)\remstore.obj \
.\$(OBJDIR)\utils.obj \
.\$(OBJDIR)\rdfparse.obj \
.\$(OBJDIR)\bmk2mcf.obj \
.\$(OBJDIR)\columns.obj \
.\$(OBJDIR)\rdfht.obj \
$(NULL)
CPP_OBJS=\
.\$(OBJDIR)\comwrap.obj \
.\$(OBJDIR)\netglue.obj \
$(NULL)
LINCS=-I$(XPDIST)\public\xpcom
LINCS=$(LINCS) -I$(PUBLIC)\rdf
LINCS=$(LINCS) -I$(PUBLIC)\netlib -I$(PUBLIC)\raptor
include <$(DEPTH)\config\rules.mak>
libs:: $(LIBRARY)
$(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,93 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_MCF_H_
#define _RDF_MCF_H_
#include "rdf-int.h"
#include "prprf.h"
#include "prtime.h"
#include <string.h>
/* mcf.c data structures and defines */
struct RDF_NotificationStruct {
RDF_Event theEvent;
void* pdata;
RDF_NotificationProc notifFunction;
RDF rdf;
struct RDF_NotificationStruct* next;
};
#define ntr(r, n) (*((RDFT*)r->translators + n))
#define ntrn(r, n) (*((RDFT*)r->translators + n) == NULL)
#define callAssert(n, r, u, s, v,type,tv) (ntrn(r, n) || (ntr(r, n)->assert == NULL) ? 0 : (*(ntr(r, n)->assert))(ntr(r, n), u, s, v, type, tv))
#define callUnassert(n, r, u, s, v,type) (ntrn(r, n) || (ntr(r, n)->unassert == NULL) ? 0 : (*(ntr(r, n)->unassert))(ntr(r, n), u, s, v, type))
#define callGetSlotValue(n, r, u, s, type, invp, tv) (ntrn(r, n) || (ntr(r, n)->getSlotValue == NULL) ? 0 : (*(ntr(r, n)->getSlotValue))(ntr(r, n), u, s, type, invp, tv))
#define callGetSlotValues(n, r, u, s, type,invp, tv) (ntrn(r, n) || (ntr(r, n)->getSlotValues == NULL) ? 0 : (*(ntr(r, n)->getSlotValues))(ntr(r, n), u, s, type,invp, tv))
#define callHasAssertions(n, r, u, s, v,type,tv) (ntrn(r, n) || (ntr(r, n)->hasAssertion == NULL) ? 0 : (*(ntr(r, n)->hasAssertion))(ntr(r, n), u, s, v, type, tv))
#define callArcLabelsOut(n, r, u) (ntrn(r, n) || (ntr(r, n)->arcLabelsOut == NULL) ? 0 : (*(ntr(r, n)->arcLabelsOut))(ntr(r, n), u))
#define callArcLabelsIn(n, r, u) (ntrn(r, n) || (ntr(r, n)->arcLabelsIn == NULL) ? 0 : (*(ntr(r, n)->arcLabelsIn))(ntr(r, n), u))
#define callDisposeResource(n, r, u) (ntrn(r, n) || (ntr(r, n)->disposeResource == NULL) ? 1 : (*(ntr(r, n)->disposeResource))(ntr(r, n), u))
#define callExitRoutine(n, r) (ntrn(r, n) || (ntr(r, n)->destroy == NULL) ? 0 : (*(ntr(r, n)->destroy))(ntr(r, n)))
#define callUpdateRoutine(n, r, u) (ntrn(r, n) || (ntr(r, n)->update == NULL) ? 0 : (*(ntr(r, n)->update))(ntr(r, n), u))
#define ID_BUF_SIZE 20
/* mcf.c function prototypes */
RDFT getTranslator (char* url);
RDFL deleteFromRDFList (RDFL xrl, RDF db);
RDF_Error exitRDF (RDF rdf);
RDF_Resource addDep (RDF db, RDF_Resource u);
PRBool rdfassert(RDF rdf, RDF_Resource u, RDF_Resource s, void* value, RDF_ValueType type, PRBool tv);
PRBool containerIDp(char* id);
char * makeNewID ();
PRBool iscontainerp (RDF_Resource u);
RDF_BT resourceTypeFromID (char* id);
RDF_Resource specialUrlResource (char* id);
RDF_Resource NewRDFResource (char* id);
RDF_Resource QuickGetResource (char* id);
RDF_Cursor getSlotValues (RDF rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
void disposeResourceInt (RDF rdf, RDF_Resource u);
void possiblyGCResource (RDF_Resource u);
RDF_Resource NewRDFResource (char* id);
RDF_Resource QuickGetResource (char* id);
void assertNotify (RDF rdf, RDF_Notification not, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv, char* ds);
void insertNotify (RDF rdf, RDF_Notification not, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv, char* ds);
void unassertNotify (RDF_Notification not, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, char* ds);
void sendNotifications1 (RDFL rl, RDF_EventType opType, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
void sendNotifications (RDF rdf, RDF_EventType opType, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv, char* ds);
RDF_Resource nextFindValue (RDF_Cursor c);
PRBool matchStrings(RDF_Resource match, char *str1, char *str2);
PRBool itemMatchesFind (RDF r, RDF_Resource u, RDF_Resource s, void* v, RDF_Resource match, RDF_ValueType type);
PR_PUBLIC_API(RDF_Cursor)RDF_Find (RDF_Resource s, RDF_Resource match, void* v, RDF_ValueType type);
PRIntn findEnumerator (PLHashEntry *he, PRIntn i, void *arg);
void disposeAllDBs ();
#endif

View File

@@ -0,0 +1,374 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "mcff2mcf.h"
#include "utils.h"
int
parseNextMCFBlob(NET_StreamClass *stream, char* blob, int32 size)
{
RDFFile f;
int32 n, last, m;
n = last = 0;
f = (RDFFile)stream->data_object;
if ((f == NULL) || (size < 0)) {
return MK_INTERRUPTED;
}
while (n < size) {
char c = blob[n];
m = 0;
memset(f->line, '\0', f->lineSize);
if (f->holdOver[0] != '\0') {
memcpy(f->line, f->holdOver, RDF_STRLEN(f->holdOver));
m = RDF_STRLEN(f->holdOver);
memset(f->holdOver, '\0', RDF_BUF_SIZE);
}
while ((m < f->lineSize) && (c != '\r') && (c != '\n') && (n < size)) {
f->line[m] = c;
m++;
n++;
c = blob[n];
}
n++;
if (m > 0) {
if ((c == '\n') || (c == '\r')) {
last = n;
parseNextMCFLine(f, f->line);
} else if (size > last) {
memcpy(f->holdOver, f->line, m);
}
}
}
return(size);
}
void
parseNextMCFLine (RDFFile f, char* line)
{
char* nextToken ;
int16 offset = 0;
RDF_Error err;
if ((nullp(line)) || (line[0] == '\0'))return;
nextToken = getMem(MAX_URL_SIZE);
err = getFirstToken(line, nextToken, &offset);
offset++;
if ((err != noRDFErr) && (nextToken[0] == ';')) {
freeMem(nextToken);
return;
}
if (startsWith("begin-headers", nextToken)) {
f->status = HEADERS;
} else if (startsWith("end-headers", nextToken)) {
f->status = BODY;
} else if (startsWith("unit", nextToken)) {
f->status = BODY;
if (!(nullp(f->currentResource))) resourceTransition(f);
getFirstToken(&line[offset], nextToken, &offset);
f->currentResource = resolveReference(nextToken, f);
} else if (nextToken[RDF_STRLEN(nextToken)-1] == ':') {
memset(f->currentSlot, '\0', 100);
memcpy(f->currentSlot, nextToken, RDF_STRLEN(nextToken)-1);
while (getFirstToken(&line[offset], nextToken, &offset) == noRDFErr) {
if (f->status == HEADERS) {
assignHeaderSlot(f, f->currentSlot, nextToken);
} else if (f->currentResource) {
assignSlot(f->currentResource, f->currentSlot, nextToken, f);
}
offset++;
}
}
freeMem(nextToken);
}
void
finishMCFParse (RDFFile f)
{
parseNextMCFLine(f, f->storeAway);
resourceTransition(f);
}
void
resourceTransition (RDFFile f)
{
if ((f->currentResource) && (!f->genlAdded))
addSlotValue(f, f->currentResource, gCoreVocab->RDF_parent, f->rtop,
RDF_RESOURCE_TYPE, NULL);
f->genlAdded = false;
}
void
assignHeaderSlot (RDFFile f, char* slot, char* value)
{
if (startsWith(slot, "expiresOn")) {
if (f->expiryTime == NULL) f->expiryTime = (PRTime*)getMem(sizeof(PRTime));
if (PR_ParseTimeString (value, 0, f->expiryTime) != PR_SUCCESS) {
freeMem(f->expiryTime);
f->expiryTime = NULL;
}
} else if (!(startsWith(slot, "RDFVersion"))) {
assignSlot(f->top, slot, value, f);
}
}
RDF_Error
getFirstToken (char* line, char* nextToken, int16* l)
{
PRBool in_paren = 0;
PRBool in_string = 0;
PRBool in_bracket = 0;
PRBool something_seen = 0;
uint16 front_spaces = 0;
uint16 index;
RDF_Error ans = -1;
memset(nextToken, '\0', 200);
for (index = 0; index < RDF_STRLEN(line); index++) {
char c = line[index];
if ((c == '\n') || (c == '\0') || (c == '\r')) {
*l = index + *l ;
return ans;
}
if ((c == ':') && ((index == 0) || (line[index-1] == ' ')) &&
((line[index+1] == ' ') || (line[index+1] == '\0'))) c = ' ';
if (c != ' ') something_seen = 1;
if (in_paren) {
if (c == ')') {
nextToken[index-front_spaces] = c;
ans = noRDFErr;
*l = index + *l ;
return ans;
} else {
ans = noRDFErr;
nextToken[index-front_spaces] = c;
}
} else if (in_string) {
if (c == '"') {
nextToken[index-front_spaces] = c;
ans = noRDFErr;
*l = index + *l ;
return ans;
} else {
ans = noRDFErr;
nextToken[index-front_spaces] = c;
}
} else if (in_bracket) {
if (c == ']') {
nextToken[index-front_spaces] = c;
*l = index + *l ;
ans = noRDFErr;
return ans;
} else {
ans = noRDFErr;
nextToken[index-front_spaces] = c;
}
} else if (c == '"') {
ans = noRDFErr;
nextToken[index-front_spaces] = c;
in_string = 1;
} else if (c == '[') {
ans = noRDFErr;
nextToken[index-front_spaces] = c;
in_bracket = 1;
} else if (c == '(') {
ans = noRDFErr;
nextToken[index-front_spaces] = c;
in_paren = 1;
} else if (c == ' '){
if (something_seen) {
*l = index + *l ;
return ans;
} else {
front_spaces++;
}
} else {
ans = noRDFErr;
nextToken[index-front_spaces] = c;
}
}
*l = index + *l ;
return ans;
}
void
assignSlot (RDF_Resource u, char* slot, char* value, RDFFile f)
{
PRBool tv = true;
char* tvstr;
if (value[0] == '(') {
tv = false;
value = &value[1];
value[RDF_STRLEN(value)-1] = '\0';
}
if (tv) {
tvstr = "true";
} else tvstr = "false";
if (startsWith("default_genl", slot)) return;
if (startsWith("name", slot) || (startsWith("local-name", slot))) {
value[RDF_STRLEN(value)-1] = '\0';
addSlotValue(f, u, gCoreVocab->RDF_name, copyString(&value[1]), RDF_STRING_TYPE, tvstr);
} else if (startsWith("specs", slot) || (startsWith("child", slot))) {
RDF_Resource spec = resolveReference(value, f);
if (!nullp(spec)) addSlotValue(f, spec, gCoreVocab->RDF_parent, u, RDF_RESOURCE_TYPE, tvstr);
} else if (startsWith("genls_pos", slot)) {
RDF_Resource genl = resolveGenlPosReference(value, f);
if (!nullp(genl)) addSlotValue(f, u, gCoreVocab->RDF_parent, genl, RDF_RESOURCE_TYPE, tvstr);
} else if ((startsWith("genls", slot)) || (startsWith("parent", slot))) {
RDF_Resource genl = resolveReference(value, f);
if (!nullp(genl)) addSlotValue(f, u, gCoreVocab->RDF_parent, genl, RDF_RESOURCE_TYPE, tvstr);
} else {
void* parsed_value;
RDF_ValueType data_type;
RDF_Resource s = RDF_GetResource(NULL, slot, true);
RDF_Error err = parseSlotValue(f, s, value, &parsed_value, &data_type);
if ((err == noRDFErr) && (!nullp(parsed_value)))
addSlotValue(f, u, s, parsed_value, data_type, tvstr);
}
}
RDF_Error
parseSlotValue (RDFFile f, RDF_Resource s, char* value, void** parsed_value, RDF_ValueType* data_type)
{
if (value[0] == '"') {
int32 size = RDF_STRLEN(value)-1;
*parsed_value = getMem(size);
value[size] = '\0';
*parsed_value = &value[1];
*data_type = RDF_STRING_TYPE;
return noRDFErr;
} else if (value[0] == '#') {
if (value[1] == '"') {
value[RDF_STRLEN(value)-1] = '\0';
value = &value[2];
} else {
value = &value[1];
}
*parsed_value = resolveReference(value, f);
return noRDFErr;
} else if (charSearch('.', value) == -1) {
int16 ans = 0;
/* XXX sscanf(value, "%ld", &ans); */
*data_type = RDF_INT_TYPE;
return noRDFErr;
} else {
return -1;
}
}
void
derelativizeURL (char* tok, char* url, RDFFile f)
{
if ((tok[0] == '/') && (endsWith(".mco", tok))) {
void stringAppendBase (char* dest, const char* addition) ;
stringAppendBase(url, f->url);
stringAppend(url, "#");
stringAppend(url, tok);
} else if ((endsWith(".mco", tok)) && (charSearch('#', tok) == -1)) {
void stringAppendBase (char* dest, const char* addition) ;
stringAppendBase(url, f->url);
stringAppend(url, "#");
stringAppend(url, tok);
} else {
memcpy(url, tok, RDF_STRLEN(tok));
}
}
RDF_Resource
resolveReference (char *tok, RDFFile f)
{
RDF_Resource existing;
char* url = getMem(MAX_URL_SIZE);
if (tok[0] == '#') tok = &tok[1];
if (tok[RDF_STRLEN(tok)-1] == '"') tok[strlen(tok)-1] = '\0';
if (tok[0] == '"') tok = &tok[1];
memset(url, '\0', 200);
if (charSearch(':', tok) == -1) {
derelativizeURL(tok, url, f);
} else {
memcpy(url, tok, RDF_STRLEN(tok));
}
if (RDF_STRCMP(url,"this") == 0) {
existing = f->top;
} else {
existing = RDF_GetResource(NULL, url, false);
}
if (existing != null) return existing;
existing = RDF_GetResource(NULL, url, true);
addToResourceList(f, existing);
freeMem(url);
return existing;
}
RDF_Resource
resolveGenlPosReference(char* tok, RDFFile f)
{
RDF_Resource ans;
char* url = (char*)getMem(MAX_URL_SIZE);
long i1, i2;
i1 = charSearch('"', tok);
i2 = revCharSearch('"', tok);
memcpy(url, &tok[i1], i2-i1+1);
ans = resolveReference(url, f);
freeMem(url);
return ans;
}
char *
getRelURL (RDF_Resource u, RDF_Resource top)
{
char* uID = resourceID(u);
char* topID = resourceID(top);
if (startsWith(topID, uID)) {
int16 n = charSearch('#', uID);
if (n == -1) return uID;
return &(uID)[n+1];
} else return uID;
}

View File

@@ -0,0 +1,61 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_MCFF2MCF_H_
#define _RDF_MCFF2MCF_H_
#include "rdf-int.h"
/* mcff2mcf.c data structures and defines */
/* mcff2mcf.c function prototypes */
NSPR_BEGIN_EXTERN_C
RDF_Resource getMCFFrtop (char* furl);
RDFFile makeRDFFile (char* url, RDF_Resource top, PRBool localp);
void initRDFFile (RDFFile ans);
void finishRDFParse (RDFFile f);
void abortRDFParse (RDFFile f);
void addToResourceList (RDFFile f, RDF_Resource u);
void addToAssertionList (RDFFile f, Assertion as);
void parseNextRDFBlob (RDFFile f, char* blob, int32 size);
int parseNextMCFBlob(NET_StreamClass *stream, char* blob, int32 size);
void parseNextMCFLine (RDFFile f, char* line);
void finishMCFParse (RDFFile f);
void resourceTransition (RDFFile f);
void assignHeaderSlot (RDFFile f, char* slot, char* value);
RDF_Error getFirstToken (char* line, char* nextToken, int16* l);
void assignSlot (RDF_Resource u, char* slot, char* value, RDFFile f);
RDF_Error parseSlotValue (RDFFile f, RDF_Resource s, char* value, void** parsed_value, RDF_ValueType* data_type);
void derelativizeURL (char* tok, char* url, RDFFile f);
RDF_Resource resolveReference (char *tok, RDFFile f);
RDF_Resource resolveGenlPosReference(char* tok, RDFFile f);
char * getRelURL (RDF_Resource u, RDF_Resource top);
PRBool bookmarkSlotp (RDF_Resource s);
NSPR_END_EXTERN_C
#endif

View File

@@ -0,0 +1,165 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsIStreamListener.h"
#include "nsIURL.h"
#include "nsIInputStream.h"
#include "nsString.h"
#include "rdf-int.h"
class rdfStreamListener : public nsIStreamListener
{
public:
NS_DECL_ISUPPORTS
rdfStreamListener(RDFFile);
~rdfStreamListener();
NS_METHOD GetBindInfo(nsIURL* aURL);
NS_METHOD OnProgress(nsIURL* aURL, PRInt32 Progress, PRInt32 ProgressMax);
NS_METHOD OnStatus(nsIURL* aURL, const nsString& aMsg);
NS_METHOD OnStartBinding(nsIURL* aURL, const char *aContentType);
NS_METHOD OnDataAvailable(nsIURL* aURL, nsIInputStream *pIStream, PRInt32 length);
NS_METHOD OnStopBinding(nsIURL* aURL, PRInt32 status, const nsString& aMsg);
protected:
rdfStreamListener::rdfStreamListener();
private:
RDFFile mFile;
};
rdfStreamListener::rdfStreamListener(RDFFile f) : mFile(f)
{
}
rdfStreamListener::~rdfStreamListener()
{
}
NS_METHOD
rdfStreamListener::GetBindInfo(nsIURL* aURL)
{
return NS_OK;
}
NS_METHOD
rdfStreamListener::OnProgress(nsIURL* aURL,
PRInt32 Progress,
PRInt32 ProgressMax)
{
return NS_OK;
}
NS_METHOD
rdfStreamListener::OnStatus(nsIURL* aURL,
const nsString& aMsg)
{
return NS_OK;
}
NS_METHOD
rdfStreamListener::OnStartBinding(nsIURL* aURL,
const char *aContentType)
{
return NS_OK;
}
NS_METHOD
rdfStreamListener::OnDataAvailable(nsIURL* aURL,
nsIInputStream *pIStream,
PRInt32 length)
{
PRInt32 len;
// PRLOG(("\n+++ rdfStreamListener::OnDataAvailable: URL: %p, %d bytes available...\n", aURL, length));
do {
const PRUint32 buffer_size = 80;
char buffer[buffer_size];
nsresult err = pIStream->Read(buffer, 0, buffer_size, &len);
if (err == NS_OK) {
(void) parseNextRDFXMLBlobInt(mFile, buffer, len);
} // else XXX ?
} while (len > 0);
return NS_OK;
}
NS_METHOD
rdfStreamListener::OnStopBinding(nsIURL* aURL,
PRInt32 status,
const nsString& aMsg)
{
nsresult result = NS_OK;
switch( status ) {
case NS_BINDING_SUCCEEDED:
finishRDFParse( mFile );
break;
case NS_BINDING_FAILED:
case NS_BINDING_ABORTED:
abortRDFParse( mFile );
// XXX status code?
break;
default:
PR_ASSERT(PR_FALSE);
result = NS_ERROR_ILLEGAL_VALUE;
}
return result;
}
/*
* beginReadingRDFFile is called whenever we need to read something of
* the net (or local drive). The url of the file to be read is at
* file->url. As the bits are read in (and it can take the bits in
* any sized chunks) it should call parseNextRDFBlobInt(file, nextBlock,
* blobSize) when its done, it should call void finishRDFParse
* (RDFFile f) to abort, it should call void abortRDFParse (RDFFile f)
* [which will undo all that has been read from that file]
*/
void
beginReadingRDFFile (RDFFile file)
{
rdfStreamListener* pListener = new rdfStreamListener(file);
pListener->AddRef(); // XXX is this evil? Can't see any reason to use factories but...
nsIURL* pURL = NULL;
nsString url_address( file->url );
nsresult r = NS_NewURL( &pURL, url_address );
if( NS_OK != r ) {
// XXX what to do?
}
r = pURL->Open(pListener);
if( NS_OK != r ) {
// XXX what to do?
}
}

View File

@@ -0,0 +1,829 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file implements local store support for the rdf data model.
For more information on this file, contact rjc or guha
For more information on RDF, look at the RDF section of www.mozilla.org
*/
#include "nlcstore.h"
#include "glue.h"
#include "mcf.h"
#include "xpassert.h"
#include "utils.h"
/* globals */
PRBool doingFirstTimeInitp = 0;
RDFT gOPSStore = 0;
/* externs */
extern char *profileDirURL;
extern char *gBookmarkURL;
/*
To do : killing a unit
*/
PRBool
compareUnalignedUINT32Ptrs(void *v1, void *v2)
{
uint32 val1, val2;
memcpy(&val1,v1,sizeof(uint32));
memcpy(&val2,v2,sizeof(uint32));
return((val1==val2) ? PR_TRUE:PR_FALSE);
}
void
DBM_OpenDBMStore (DBMRDF store, char* directory)
{
HASHINFO hash_info = {128, 0, 0, 0, 0, 0};
PRBool createp = 0;
char* dbPathname;
char* dirPathname;
CHECK_VAR1(profileDirURL);
dirPathname = makeDBURL(directory);
CallPRMkDirUsingFileURL(dirPathname, 00700);
freeMem(dirPathname);
dbPathname = makeRDFDBURL(directory, "names.db");
CHECK_VAR1(dbPathname);
store->nameDB = CallDBOpenUsingFileURL(dbPathname, O_RDWR, 0644, DB_HASH, &hash_info);
if (store->nameDB == NULL) {
createp = 1;
store->nameDB = CallDBOpenUsingFileURL(dbPathname, O_RDWR | O_CREAT, 0644, DB_HASH, &hash_info);
}
freeMem(dbPathname);
CHECK_VAR1(store->nameDB);
dbPathname = makeRDFDBURL(directory, "child.db");
CHECK_VAR1(dbPathname);
hash_info.bsize = 2056;
store->childrenDB = CallDBOpenUsingFileURL(dbPathname,
O_RDWR | O_CREAT, 0644, DB_HASH, &hash_info);
freeMem(dbPathname);
CHECK_VAR1(store->childrenDB);
dbPathname = makeRDFDBURL(directory, "lstr.db");
hash_info.bsize = 1024 ;
store->propDB = CallDBOpenUsingFileURL(dbPathname,
O_RDWR | O_CREAT, 0644, DB_HASH, &hash_info);
freeMem(dbPathname);
CHECK_VAR1(store->propDB);
dbPathname = makeRDFDBURL(directory, "ilstr.db");
CHECK_VAR1(dbPathname);
hash_info.bsize = 1024*16;
store->invPropDB = CallDBOpenUsingFileURL(dbPathname,
O_RDWR | O_CREAT, 0644, DB_HASH, &hash_info);
freeMem(dbPathname);
CHECK_VAR1(store->invPropDB);
if (RDF_STRCMP(directory, "NavCen") == 0) {
}
}
RDF_Error
DBM_CloseRDFDBMStore (RDFT r)
{
DBMRDF db = (DBMRDF)r->pdata;
if (r->rdf) return 0;
if (db->nameDB != NULL) (*db->nameDB->close)(db->nameDB);
if (db->childrenDB != NULL) (*db->childrenDB->close)(db->childrenDB);
if (db->propDB != NULL) (*db->propDB->close)(db->propDB);
if (db->invPropDB != NULL) (*db->invPropDB->close)(db->invPropDB);
freeMem(db);
r->pdata = NULL;
return 0;
}
char *
makeUSKey (RDF_Resource u, RDF_Resource s, PRBool inversep, size_t *size)
{
if ((s == gCoreVocab->RDF_name) || (inversep && (s == gCoreVocab->RDF_parent))) {
*size = RDF_STRLEN(resourceID(u));
return resourceID(u);
} else {
char* ans;
*size = RDF_STRLEN(resourceID(u)) + strlen(resourceID(s));
ans = getMem(*size);
memcpy(ans, resourceID(u), RDF_STRLEN(resourceID(u)));
memcpy(&ans[RDF_STRLEN(resourceID(u))], resourceID(s), strlen(resourceID(s)));
return ans;
}
}
DB *
getUSDB (RDFT r, RDF_Resource u, RDF_Resource s, PRBool inversep)
{
DBMRDF db = (DBMRDF)r->pdata;
if (inversep) {
if (s == gCoreVocab->RDF_parent) {
return db->childrenDB;
} else {
return db->invPropDB;
}
} else if (s == gCoreVocab->RDF_name) {
return db->nameDB;
} else return db->propDB;
}
void
freeKey (char* keyData, RDF_Resource u, RDF_Resource s, PRBool inversep)
{
if ((s == gCoreVocab->RDF_name) || (inversep && (s == gCoreVocab->RDF_parent))) return;
freeMem(keyData);
}
DBMAs *
DBM_GetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep, size_t *size)
{
size_t keySize;
void* keyData = makeUSKey(u, s, inversep, &keySize);
DBT key, data;
DB *db;
int status;
CHECK_VAR(keyData, NULL);
key.data = keyData;
key.size = keySize;
db = getUSDB(rdf, u, s, inversep);
if (db == NULL) {
*size = 0;
freeKey(keyData, u, s, inversep);
return NULL;
}
status = (*db->get)(db, &key, &data, 0);
if (status != 0) {
*size = 0;
freeKey(keyData, u, s, inversep);
return NULL;
} else {
void* ans = (char*)getMem(data.size);
*size = data.size;
memcpy(ans, data.data, *size);
freeKey(keyData, u, s, inversep);
return (DBMAs*) ans;
}
}
void
DBM_PutSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep, void* value, size_t size)
{
size_t keySize;
void* keyData = makeUSKey(u, s, inversep, &keySize);
DBT key, data;
int status;
DB* db;
CHECK_VAR1(keyData);
db = getUSDB(rdf, u, s, inversep);
if (db == NULL) {
freeKey(keyData, u, s, inversep);
return ;
}
key.data = keyData;
key.size = keySize;
data.data = value;
data.size = size;
status = (*db->del)(db, &key, 0);
if (value != NULL) {
status = (*db->put)(db, &key, &data, 0);
}
if ((status == 0) && (!doingFirstTimeInitp)) (*db->sync)(db, 0);
freeKey(keyData, u, s, inversep);
}
PRBool
nlocalStoreHasAssertion (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv)
{
size_t size ;
DBMAs *data;
uint16 n = 0;
PRBool ans = 0;
PRBool invp = (s == gCoreVocab->RDF_parent);
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )v)));
data = (invp ? DBM_GetSlotValue(rdf, (RDF_Resource)v, s, 1, &size) :
DBM_GetSlotValue(rdf, u, s, 0, &size));
if (data == NULL) return 0;
while (n < size) {
DBMAs nas = nthdbmas(data, n);
if (nas == NULL) break;
if ((type == valueTypeOfAs(nas)) && (tvOfAs(nas) == tv) &&
(invp ? valueEqual(type, dataOfDBMAs(nas), u) : valueEqual(type, dataOfDBMAs(nas), v))) {
ans = 1;
break;
}
n = dbmasSize(nas) + n;
}
freeMem(data);
return ans;
}
void *
nlocalStoreGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s,
RDF_ValueType type, PRBool inversep, PRBool tv)
{
size_t size ;
DBMAs *data;
uint16 n = 0;
void* ans;
data = DBM_GetSlotValue(rdf, u, s, inversep, &size);
if (data == NULL) return 0;
while (n < size) {
DBMAs nas = nthdbmas(data, n);
if (nas == NULL) break;
if (type == valueTypeOfAs(nas)) {
if (type == RDF_STRING_TYPE) {
ans = copyString((char *)dataOfDBMAs(nas));
} else if (type == RDF_RESOURCE_TYPE) {
ans = RDF_GetResource(NULL, (char *)dataOfDBMAs(nas), true);
} else if (type == RDF_INT_TYPE) {
/* ans = dataOfDBMAs(nas); */
memcpy((char*)&ans, dataOfDBMAs(nas), sizeof(uint32));
}
freeMem(data);
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )ans)));
return ans;
}
n = dbmasSize(nas) + n;
}
freeMem((void*)data);
return NULL;
}
RDF_Cursor
nlocalStoreGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s,
RDF_ValueType type,
PRBool inversep, PRBool tv)
{
RDF_Cursor c;
void* val;
size_t size;
if (resourceType(u) == LFS_RT) return NULL;
if (!tv && (s != gCoreVocab->RDF_parent)) return NULL;
val = DBM_GetSlotValue(rdf, u, s, inversep, &size);
if (val == NULL) return NULL;
c = (RDF_Cursor) getMem(sizeof(struct RDF_CursorStruct));
if (c == NULL) {
freeMem(val);
return NULL;
}
c->u = u;
c->s = s;
c->inversep = inversep;
c->type = type;
c->tv = tv;
c->count = 0;
c->pdata = val;
c->size = size;
return c;
}
void *
nlocalStoreNextValue (RDFT rdf, RDF_Cursor c)
{
void* ans;
void* data;
if ((c == NULL) || (c->pdata == NULL)) return NULL;
if ((c->type == RDF_ARC_LABELS_IN_QUERY) || (c->type == RDF_ARC_LABELS_OUT_QUERY))
return nlcStoreArcsInOutNextValue(rdf, c);
data = c->pdata;
while (c->count < c->size) {
DBMAs nas = nthdbmas(data, c->count);
if (nas == NULL) break;
if ((c->tv == tvOfAs(nas)) && (c->type == valueTypeOfAs(nas))) {
if (c->type == RDF_RESOURCE_TYPE) {
RDF_Resource nu = RDF_GetResource(NULL, (char *)dataOfDBMAs(nas), 1);
if (nu && startsWith("http:", resourceID(nu)) && strstr(resourceID(nu), ".rdf")) {
RDFL rl = rdf->rdf;
char* dburl = getBaseURL(resourceID(nu));
while (rl) {
RDF_AddDataSource(rl->rdf, dburl);
rl = rl->next;
}
freeMem(dburl);
}
ans = nu;
c->count = dbmasSize(nas) + c->count;
return nu;
} else {
ans = dataOfDBMAs(nas);
c->count = dbmasSize(nas) + c->count;
return ans;
}
}
c->count = dbmasSize(nas) + c->count;
}
return NULL;
}
RDF_Error
nlocalStoreDisposeCursor (RDFT rdf, RDF_Cursor c)
{
if (c != NULL) {
if (c->pdata) freeMem(c->pdata);
c->pdata = NULL;
freeMem(c);
}
return noRDFErr;
}
DBMAs
makeAsBlock (void* v, RDF_ValueType type, PRBool tv, size_t *size)
{
size_t vsize=0;
DBMAs ans;
int rem = 0;
/*
ldiv_t cdiv ;
*/
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )v)));
if (type == RDF_STRING_TYPE) {
vsize = RDF_STRLEN(v);
} else if (type == RDF_RESOURCE_TYPE) {
vsize = RDF_STRLEN( resourceID((RDF_Resource)v));
} else if (type == RDF_INT_TYPE) {
vsize = 4;
}
*size = 4 + vsize + 1;
rem = *size % 4;
if (rem) {
*size += 4 - rem;
}
ans = (DBMAs) getMem(*size);
if (ans == NULL) return NULL;
ans->size[0] = (uint8)(((*size) & 0x00FF0000) >> 16);
ans->size[1] = (uint8)(((*size) & 0x0000FF00) >> 8);
ans->size[2] = (uint8)((*size) & 0x000000FF);
*(((unsigned char *)ans)+3) = (tv ? 0x10 : 0) | (type & 0x0F);
if (type == RDF_STRING_TYPE) {
memcpy((char*)ans+4, (char*) v, vsize);
} else if (type == RDF_RESOURCE_TYPE) {
memcpy((char*)ans+4, resourceID((RDF_Resource)v), vsize);
} else if (type == RDF_INT_TYPE) {
memcpy((char*)ans+4, (char*)v, vsize);
}
/*
cdiv = ldiv(*size, 256);
ans->size[0] = (uint8)(cdiv.quot);
ans->size[1] = (uint8)(cdiv.rem);
ans->tag = (tv ? 0x10 : 0) | (type & 0x0F);
if (type == RDF_STRING_TYPE) {
memcpy((char*)ans+3, (char*) v, vsize);
} else if (type == RDF_RESOURCE_TYPE) {
memcpy((char*)ans+3, resourceID((RDF_Resource)v), vsize);
} else if (type == RDF_INT_TYPE) {
memcpy((char*)ans+3, (char*)v, vsize);
}
*/
return ans;
}
PRBool
nlocalStoreAssert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv)
{
size_t size ;
DBMAs* data;
char* ndata;
DBMAs temp;
uint16 n = 0;
size_t tsize;
PRBool ans = 0;
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )v)));
/* don't store RDF Commands in the local store */
if (s == gNavCenter->RDF_Command) return 0;
data = DBM_GetSlotValue(rdf, u, s, 0, &size);
if (((data == NULL) && (size != 0)) || ((size == 0) && (data != NULL))) return 0;
while (n < size) {
DBMAs nas = nthdbmas(data, n);
if (nas == NULL) {freeMem(data); return 0;}
if (type == valueTypeOfAs(nas) && (valueEqual(type, dataOfDBMAs(nas), v))) {
ans = 1;
break;
}
n = dbmasSize(nas) + n;
}
if (ans) {
freeMem(data);
return 1;
} else {
temp = makeAsBlock(v, type, tv, &tsize);
if (temp == NULL) {freeMem(data);return 0;}
if (data == NULL) {
DBM_PutSlotValue(rdf, u, s, 0, (void*)temp, tsize);
/* addSlotsHere(rdf, u, s); */
freeMem(temp);
temp = NULL;
} else {
ndata = (char*)getMem(size + tsize);
if (ndata == NULL) {freeMem(data); freeMem(temp);return 0;}
memcpy(ndata, data, size);
memcpy(&ndata[size], (char*)temp, tsize);
DBM_PutSlotValue(rdf, u,s, 0, ndata, size+tsize);
freeMem(data);
freeMem(ndata);
freeMem(temp);
}
if (type == RDF_RESOURCE_TYPE) {
temp = makeAsBlock(u, RDF_RESOURCE_TYPE, tv, &tsize);
if (temp == NULL) return 0;
data = DBM_GetSlotValue(rdf, (RDF_Resource)v, s, 1, &size);
if (data == NULL) {
DBM_PutSlotValue(rdf, (RDF_Resource)v, s, 1, (void*) temp, tsize);
freeMem(temp);
/* addSlotsIn(rdf, (RDF_Resource)v, s);*/
} else {
ndata = (char*)getMem(size + tsize);
if (ndata == NULL) {freeMem(data); freeMem(temp);return 0;}
memcpy(ndata, data, size);
memcpy(&ndata[size], (char*)temp, tsize);
DBM_PutSlotValue(rdf, (RDF_Resource)v, s, 1, ndata, size+tsize);
freeMem(data);
freeMem(ndata);
freeMem(temp);
}
}
}
sendNotifications2(rdf, RDF_INSERT_NOTIFY, u, s, v, type, tv);
return 1;
}
PRBool
nlocalStoreAssert1 (RDFFile f, RDFT rdf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv)
{
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )v)));
return nlocalStoreAssert(rdf, u, s, v, type, tv);
}
PRBool
nlocalStoreUnassert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type)
{
size_t size ;
DBMAs* data;
char* temp;
uint16 n = 0;
size_t tsize;
PRBool ans = 0;
DBMAs nas;
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )v)));
data = DBM_GetSlotValue(rdf, u, s, 0, &size);
if (data == NULL) return 1;
while (n < size) {
nas = nthdbmas(data, n);
if (type == valueTypeOfAs(nas) && (valueEqual(type, dataOfDBMAs(nas), v))) {
ans = 1;
break;
}
n = dbmasSize(nas) + n;
}
if (!ans) {
freeMem(data);
return 1;
} else {
if (size == dbmasSize(nas)) {
DBM_PutSlotValue(rdf, u, s, 0, NULL, 0);
/*deleteSlotsHere(rdf, u, s);*/
} else {
tsize = size - dbmasSize(nas);
temp = (char*)getMem(tsize);
if (temp == NULL) {
freeMem(data);
return 0;
}
if (n != 0) memcpy(temp, data, n);
memcpy(((char*)temp+n), ((char*)data + n + dbmasSize(nas)), tsize-n);
DBM_PutSlotValue(rdf, u, s, 0, temp, tsize);
freeMem(temp);
}
freeMem(data);
if (type == RDF_RESOURCE_TYPE) {
data = DBM_GetSlotValue(rdf, ((RDF_Resource)v), s, 1, &size);
ans = n = 0;
if (data == NULL) {
return 1;
} else {
while (n < size) {
nas = nthdbmas(data, n);
if (valueEqual(RDF_RESOURCE_TYPE, dataOfDBMAs(nas), u)){
ans = 1;
break;
}
n = dbmasSize(nas) + n;
}
if (!ans) {
return 1;
} else {
if (size == dbmasSize(nas)) {
DBM_PutSlotValue(rdf, (RDF_Resource)v, s, 1, NULL, 0);
/* deleteSlotsIn(rdf, (RDF_Resource)v, s); */
} else {
tsize = size - dbmasSize(nas);
temp = (char*)getMem(tsize);
if (temp == NULL) {
freeMem(data);
return 0;
}
if (n) memcpy(temp, data, n);
memcpy(((char*)temp+n), ((char*)data + n + dbmasSize(nas)), tsize-n);
DBM_PutSlotValue(rdf, ((RDF_Resource)v), s, 1, temp, tsize);
freeMem(temp);
}
freeMem(data);
}
}
}
}
sendNotifications2(rdf, RDF_DELETE_NOTIFY, u, s, v, type, 1);
return 1;
}
void
addSlotsHere (RDFT rdf, RDF_Resource u, RDF_Resource s)
{
if ((s != gCoreVocab->RDF_name) && (s != gCoreVocab->RDF_parent) &&
(s != gCoreVocab->RDF_slotsHere) && (s != gCoreVocab->RDF_slotsIn)) {
nlocalStoreAssert (rdf, u, gCoreVocab->RDF_slotsHere, s, RDF_RESOURCE_TYPE, 1);
}
}
void
deleteSlotsHere (RDFT rdf, RDF_Resource u, RDF_Resource s)
{
if ((s != gCoreVocab->RDF_name) && (s != gCoreVocab->RDF_parent) &&
(s != gCoreVocab->RDF_slotsHere) && (s != gCoreVocab->RDF_slotsIn)) {
nlocalStoreUnassert (rdf, u, gCoreVocab->RDF_slotsHere, s, RDF_RESOURCE_TYPE);
}
}
void
addSlotsIn (RDFT rdf, RDF_Resource u, RDF_Resource s)
{
if ((s != gCoreVocab->RDF_name) && (s != gCoreVocab->RDF_parent) &&
(s != gCoreVocab->RDF_slotsHere) && (s != gCoreVocab->RDF_slotsIn)) {
nlocalStoreAssert (rdf, u, gCoreVocab->RDF_slotsIn, s, RDF_RESOURCE_TYPE, 1);
}
}
void
deleteSlotsIn (RDFT rdf, RDF_Resource u, RDF_Resource s)
{
if ((s != gCoreVocab->RDF_name) && (s != gCoreVocab->RDF_parent) &&
(s != gCoreVocab->RDF_slotsHere) && (s != gCoreVocab->RDF_slotsIn)) {
nlocalStoreUnassert (rdf, u, gCoreVocab->RDF_slotsIn, s, RDF_RESOURCE_TYPE);
}
}
void
nlclStoreKill (RDFT rdf, RDF_Resource u)
{
size_t size ;
DBMAs* data;
uint16 n = 0;
data = DBM_GetSlotValue(rdf, u, gCoreVocab->RDF_slotsHere, 0, &size);
while (n < size) {
DBMAs nas = nthdbmas(data, n);
RDF_Resource s;
s = RDF_GetResource(NULL, (char*)dataOfDBMAs(nas), 1);
DBM_PutSlotValue(rdf, u, s, 0, NULL, 0);
n = dbmasSize(nas) + n;
}
DBM_PutSlotValue(rdf, u, gCoreVocab->RDF_name, 0, NULL, 0) ;
DBM_PutSlotValue(rdf, u, gCoreVocab->RDF_parent, 1, NULL, 0) ;
DBM_PutSlotValue(rdf, u, gCoreVocab->RDF_parent, 0, NULL, 0) ;
data = DBM_GetSlotValue(rdf, u, gCoreVocab->RDF_slotsIn, 0, &size);
while (n < size) {
DBMAs nas = nthdbmas(data, n);
RDF_Resource s;
s = RDF_GetResource(NULL, (char*)dataOfDBMAs(nas), 1);
DBM_PutSlotValue(rdf, u, s, 1, NULL, 0);
n = dbmasSize(nas) + n;
}
}
PRBool
nlocalStoreAddChildAt(RDFT rdf, RDF_Resource parent, RDF_Resource ref,
RDF_Resource new, PRBool beforep)
{
size_t size ;
DBMAs* data;
char* ndata;
RDF_Resource s = gCoreVocab->RDF_parent;
DBMAs temp;
uint16 n = 0;
size_t tsize;
PRBool ans = 0;
DBMAs nas;
data = DBM_GetSlotValue(rdf, parent, s, 1, &size);
if (!data) return 0;
while (n < size) {
nas = nthdbmas(data, n);
if (valueEqual(RDF_RESOURCE_TYPE, dataOfDBMAs(nas), ref)) {
ans = 1;
if (!beforep) {
n = dbmasSize(nas) + n;
}
break;
}
n = dbmasSize(nas) + n;
}
if (!ans) {
freeMem(data);
return 0;
} else {
char* dx = (char*)data;
temp = makeAsBlock(new, RDF_RESOURCE_TYPE, 1, &tsize);
ndata = (char*)getMem(size + tsize);
if ((temp == NULL) || (ndata == NULL)) {freeMem(data);freeMem(temp);freeMem(ndata);return 1;}
memcpy(ndata, dx, n);
memcpy(&ndata[n], (char*)temp, tsize);
memcpy(&ndata[n+tsize], &dx[n], size-n);
DBM_PutSlotValue(rdf, parent, s, 1, ndata, size+tsize);
freeMem(data);
freeMem(ndata);
freeMem(temp);
}
temp = makeAsBlock(parent, RDF_RESOURCE_TYPE, 1, &tsize);
if (temp == NULL) return 0;
data = DBM_GetSlotValue(rdf, new, s, 0, &size);
if (data == NULL) {
DBM_PutSlotValue(rdf, new, s, 0, (void*) temp, tsize);
} else {
ndata = (char*)getMem(size + tsize);
if (ndata == NULL) {freeMem(data);freeMem(temp);return 0;}
memcpy(ndata, data, size);
memcpy(&ndata[size], (char*)temp, tsize);
DBM_PutSlotValue(rdf, (RDF_Resource)new, s, 0, ndata, size+tsize);
freeMem(data);
freeMem(ndata);
freeMem(temp);
}
sendNotifications2(rdf, RDF_INSERT_NOTIFY, new, s, parent, RDF_RESOURCE_TYPE, 1);
return 1;
}
RDF_Cursor
nlcStoreArcsIn (RDFT rdf, RDF_Resource u)
{
RDF_Cursor c = (RDF_Cursor) getMem(sizeof(struct RDF_CursorStruct));
c->u = u;
c->queryType = RDF_ARC_LABELS_IN_QUERY;
c->inversep = 1;
c->count = 0;
return c;
}
RDF_Cursor
nlcStoreArcsOut (RDFT rdf, RDF_Resource u)
{
RDF_Cursor c = (RDF_Cursor) getMem(sizeof(struct RDF_CursorStruct));
c->u = u;
c->queryType = RDF_ARC_LABELS_OUT_QUERY;
c->count = 0;
return c;
}
RDF_Resource
nlcStoreArcsInOutNextValue (RDFT rdf, RDF_Cursor c)
{
while (c->count < (int16) gCoreVocabSize) {
RDF_Resource s = *(gAllVocab + c->count);
size_t size;
void* data = DBM_GetSlotValue(rdf, c->u, s, c->inversep, &size);
c->count++;
if (data) {
freeMem(data);
return s;
} else {
freeMem(data);
}
}
return NULL;
}
/*
RDFT
MakeLocalStore (char* url)
{
if (startsWith(url, "rdf:localStore") && (gLocalStore)) {
return gLocalStore;
} else if (startsWith(url, "rdf:ops") && (gOPSStore)) {
return gOPSStore;
} else if (startsWith(url, "rdf:ops") || startsWith(url, "rdf:localStore")) {
RDFT ntr = (RDFT)getMem(sizeof(struct RDF_TranslatorStruct));
DBMRDF db = (DBMRDF)getMem(sizeof(struct _DBMRDFStruct));
CHECK_VAR(ntr, NULL);
CHECK_VAR(db, NULL);
if (startsWith(url, "rdf:localStore")) {
gLocalStore = ntr;
} else {
gOPSStore = ntr;
}
ntr->url = copyString(url);
ntr->assert = nlocalStoreAssert;
ntr->unassert = nlocalStoreUnassert;
ntr->getSlotValue = nlocalStoreGetSlotValue;
ntr->getSlotValues = nlocalStoreGetSlotValues;
ntr->hasAssertion = nlocalStoreHasAssertion;
ntr->nextValue = nlocalStoreNextValue;
ntr->disposeCursor = nlocalStoreDisposeCursor;
ntr->destroy = DBM_CloseRDFDBMStore;
ntr->arcLabelsIn = nlcStoreArcsIn;
ntr->arcLabelsOut = nlcStoreArcsOut;
ntr->pdata = db;
DBM_OpenDBMStore(db, (startsWith(url, "rdf:localStore") ? "NavCen" : &url[4]));
nlocalStoreAssert(ntr, gNavCenter->RDF_BookmarkFolderCategory, gCoreVocab->RDF_name,
copyString("Bookmarks"), RDF_STRING_TYPE, 1);
return ntr;
}
else return NULL;
} */

View File

@@ -0,0 +1,122 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_NLCSTORE_H_
#define _RDF_NLCSTORE_H_
#include "rdf-int.h"
#include "rdf.h"
#include "mcom_ndbm.h"
#if !defined(IS_LITTLE_ENDIAN) && !defined(IS_BIG_ENDIAN)
#error Must have a byte order
#endif
#ifdef IS_LITTLE_ENDIAN
#define COPY_INT16(_a,_b) XP_MEMCPY(_a, _b, sizeof(uint16));
#else
#define COPY_INT16(_a,_b) \
do { \
((char *)(_a))[0] = ((char *)(_b))[1]; \
((char *)(_a))[1] = ((char *)(_b))[0]; \
} while(0)
#endif
#if !defined(XP_MAC) && !defined(COPY_INT16)
#define COPY_INT16(_a,_b) XP_MEMCPY(_a, _b, sizeof(int16));
#endif
/* nlcstore.c data structures and defines */
#ifdef XP_MAC
#pragma options align=packed
#endif
typedef struct _DBMAsStruct {
uint8 size[3];
uint8 tag;
uint8 data[1]; /* me & the compiler man, we're like _this_ */
} DBMAsStruct;
typedef DBMAsStruct* DBMAs;
#ifdef XP_MAC
#pragma options align=reset
#endif
typedef struct _DBMRDFStruct {
DB *propDB;
DB *invPropDB;
DB *nameDB;
DB *childrenDB;
} *DBMRDF;
#define dataOfDBMAs(dbmas) (((char *)dbmas) + 4)
#define dbmasSize(dbmas) ((size_t)(((1 << 16) * dbmas->size[0]) + ((1 << 8) * dbmas->size[1]) + dbmas->size[2]))
#define nthdbmas(data, n) ((DBMAs)(((char *)data) + n))
#define valueTypeOfAs(nas) (RDF_ValueType) ((*(((uint8 *)(nas)) + 3)) & 0x0F)
#define tvOfAs(nas) ((PRBool)(((*((uint8 *)(nas) + 3)) & 0x10) != 0))
#define valueEqual(type, v1, v2) (((type == RDF_RESOURCE_TYPE) && stringEquals((char*)v1, resourceID((RDF_Resource)v2))) || \
((type == RDF_INT_TYPE) && (compareUnalignedUINT32Ptrs(v1,v2))) || \
((type == RDF_STRING_TYPE) && stringEquals((char*)v1, (char*)v2)))
/* nlcstore.c function prototypes */
NSPR_BEGIN_EXTERN_C
PRBool compareUnalignedUINT32Ptrs(void *v1, void *v2);
char * makeRDFDBURL(char* directory, char* name);
void readInBookmarksOnInit(RDFFile f);
void DBM_OpenDBMStore (DBMRDF store, char* directory);
RDF_Error DBM_CloseRDFDBMStore (RDFT r);
char * makeUSKey (RDF_Resource u, RDF_Resource s, PRBool inversep, size_t *size);
DB * getUSDB (RDFT r, RDF_Resource u, RDF_Resource s, PRBool inversep);
void freeKey (char* keyData, RDF_Resource u, RDF_Resource s, PRBool inversep);
DBMAs * DBM_GetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep, size_t *size);
void DBM_PutSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep, void* value, size_t size);
PRBool nlocalStoreHasAssertion (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
void * nlocalStoreGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
RDF_Cursor nlocalStoreGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
void * nlocalStoreNextValue (RDFT rdf, RDF_Cursor c);
RDF_Error nlocalStoreDisposeCursor (RDFT rdf, RDF_Cursor c);
DBMAs makeAsBlock (void* v, RDF_ValueType type, PRBool tv, size_t *size);
PRBool nlocalStoreAssert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
PRBool nlocalStoreAssert1 (RDFFile f, RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
PRBool nlocalStoreUnassert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
void addSlotsHere (RDFT rdf, RDF_Resource u, RDF_Resource s);
void deleteSlotsHere (RDFT rdf, RDF_Resource u, RDF_Resource s);
void addSlotsIn (RDFT rdf, RDF_Resource u, RDF_Resource s);
void deleteSlotsIn (RDFT rdf, RDF_Resource u, RDF_Resource s);
void nlclStoreKill (RDFT rdf, RDF_Resource u);
PRBool nlocalStoreAddChildAt(RDFT rdf, RDF_Resource parent, RDF_Resource ref, RDF_Resource new, PRBool beforep);
RDF_Cursor nlcStoreArcsIn (RDFT rdf, RDF_Resource u);
RDF_Cursor nlcStoreArcsOut (RDFT rdf, RDF_Resource u);
RDF_Resource nlcStoreArcsInOutNextValue (RDFT rdf, RDF_Cursor c);
RDFT MakeLocalStore (char* url);
RDF_Resource nlcStoreArcsInOutNextValue (RDFT rdf, RDF_Cursor c) ;
NSPR_END_EXTERN_C
#endif

View File

@@ -0,0 +1,563 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file implements mail support for the rdf data model.
For more information on this file, contact rjc or guha
For more information on RDF, look at the RDF section of www.mozilla.org
*/
#ifdef SMART_MAIL
#include "pm2rdf.h"
extern char *profileDirURL;
void
Pop_GetUrlExitFunc (URL_Struct *urls, int status, MWContext *cx)
{
}
void
GetPopToRDF (RDFT rdf)
{
MF folder = (MF) rdf->pdata;
if (endsWith("/inbox", rdf->url)) {
char* popurl = getMem(100);
int n = 10;
int l = RDF_STRLEN(rdf->url);
URL_Struct *urls ;
memcpy(popurl, "pop3://", 7);
while (n < l) {
if (rdf->url[n] == '/') break;
popurl[n-3] = rdf->url[n];
n++;
}
urls = NET_CreateURLStruct(popurl, NET_DONT_RELOAD);
if (urls != NULL) {
urls->fe_data = rdf;
NET_GetURL(urls, FO_PRESENT, gRDFMWContext(rdf), Pop_GetUrlExitFunc);
}
}
}
void
PopGetNewMail (RDF_Resource r)
{
if (containerp(r) && (resourceType(r) == PM_RT)) {
MF folder = (MF) r->pdata;
GetPopToRDF(folder->rdf);
}
}
char *
stripCopy (char* str)
{
return copyString(XP_StripLine(str));
}
PRBool
msgDeletedp (MM msg)
{
return (msg && (msg->flags) && (msg->flags[4] == '8'));
}
FILE *
openPMFile (char* path)
{
FILE* ans = fopen(path, "r+");
if (!ans) {
ans = fopen(path, "w");
if (ans) fclose(ans);
ans = fopen(path, "r+");
}
return ans;
}
void
addMsgToFolder (MF folder, MM msg)
{
if (!folder->tail) {
folder->msg = folder->tail = msg;
} else {
folder->tail->next = msg;
folder->tail = msg;
}
}
void
RDF_StartMessageDelivery (RDFT rdf)
{
MF folder = (MF) rdf->pdata;
MM msg = (MM) getMem(sizeof(struct MailMessage));
char* nurl = getMem(100);
fseek(folder->mfile, 0L, SEEK_END);
fprintf(folder->mfile, "From - \n");
msg->offset = ftell(folder->mfile);
sprintf(nurl, "%s?%i", rdf->url, msg->offset);
msg->r = RDF_GetResource(NULL, nurl, 1);
msg->r->pdata = msg;
msg->flags = getMem(4);
folder->add = msg;
setResourceType(msg->r, PM_RT);
fseek(folder->mfile, 0L, SEEK_END);
fputs("X-Mozilla-Status: 0000\n", folder->mfile);
}
char *
MIW1 (const char* block, int32 len)
{
char* blk = XP_ALLOC(len +1);
int32 n = 0;
int32 m = 0;
PRBool seenp = 0;
PRBool wsendp = 0;
memset(blk, '\0', len);
while (n++ < len) {
char c = block[n];
if ((c == '\r') || (c == '\n')) break;
if (!seenp) {
seenp = (c == ':');
} else {
if (c != ' ') wsendp = 1;
if (wsendp) {
blk[m++] = c;
}
}
}
return blk;
}
void
RDF_AddMessageLine (RDFT rdf, char* block, int32 length)
{
MF folder = (MF) rdf->pdata;
MM msg = folder->add;
char* temp = getMem(length+1);
memcpy(temp, block, length);
if (!msg->from && (startsWith("From:", block))) {
msg->from = MIW1(block, length);
} else if (!msg->subject && (startsWith("Subject:", block))) {
msg->subject = MIW1(block, length);
} else if (!msg->date && (startsWith("Date:", block))) {
msg->date = MIW1(block, length);
}
fseek(folder->mfile, 0L, SEEK_END);
fputs(temp, folder->mfile);
freeMem(temp);
}
#define TON(s) ((s == NULL) ? "" : s)
void writeMsgSum (MF folder, MM msg) {
if (!msg->flags) msg->flags = copyString("0000");
if (msg->summOffset == -1) {
fseek(folder->sfile, 0L, SEEK_END);
msg->summOffset = ftell(folder->sfile);
} else {
fseek(folder->sfile, msg->summOffset, SEEK_SET);
}
fprintf(folder->sfile, "Status: %s\nSOffset: %d\nFrom: %s\nSubject: %s\nDate: %s\nMOffset: %d\n",
msg->flags, ftell(folder->sfile),
TON(msg->from), TON(msg->subject), TON(msg->date), msg->offset );
}
void
RDF_FinishMessageDelivery (RDFT rdf)
{
MF folder = (MF) rdf->pdata;
MM msg = folder->add;
folder->add = NULL;
addMsgToFolder(folder, msg);
setResourceType(msg->r, PM_RT);
fseek(folder->sfile, 0L, SEEK_END);
msg->summOffset = ftell(folder->sfile);
writeMsgSum(folder, msg);
fseek(folder->mfile, 0L, SEEK_END);
fputs("\n", folder->mfile);
sendNotifications2(rdf, RDF_ASSERT_NOTIFY, msg->r, gCoreVocab->RDF_parent, folder->top,
RDF_RESOURCE_TYPE, 1);
}
void
setMessageFlag (RDFT rdf, RDF_Resource r, char* newFlag)
{
MF folder = (MF) rdf->pdata;
MM msg = (MM)r->pdata;
fseek(folder->sfile, msg->summOffset+8, SEEK_SET);
fputs(newFlag, folder->sfile);
freeMem(msg->flags);
msg->flags = copyString(newFlag);
/* need to mark the flag in the message file */
fflush(folder->sfile);
}
#define BUFF_SIZE 50000
RDFT
getBFTranslator (char* url) {
if (startsWith("mailbox://folder/", url)) {
char* temp = getMem(RDF_STRLEN(url));
RDFT ans = NULL;
sprintf(temp, "mailbox://%s", &url[17]);
ans = getTranslator(temp);
freeMem(temp);
return ans;
} else return getTranslator(url);
}
PRBool
MoveMessage (char* to, char* from, MM message) {
RDFT todb = getBFTranslator(to);
RDFT fromdb = getBFTranslator(from);
MF tom = todb->pdata;
MF fom = fromdb->pdata;
RDF_Resource r;
MM newMsg = (MM)getMem(sizeof(struct MailMessage));
char* buffer = getMem(BUFF_SIZE);
if (!buffer) return 0;
setMessageFlag(fromdb, message->r, "0008");
fseek(tom->mfile, 0L, SEEK_END);
fseek(fom->mfile, message->offset, SEEK_SET);
fputs("From -\n", tom->mfile);
sprintf(buffer, "mailbox://%s?%d", &to[17], ftell(tom->mfile));
r = RDF_GetResource(NULL, buffer, 1);
newMsg->subject = copyString(message->subject);
newMsg->from = copyString(message->from);
newMsg->date = copyString(message->date);
newMsg->r = r;
r->pdata = newMsg;
setResourceType(r, PM_RT);
newMsg->summOffset = -1;
newMsg->offset = ftell(tom->mfile);
writeMsgSum(tom, newMsg);
addMsgToFolder (tom, newMsg) ;
fflush(tom->sfile);
while (fgets(buffer, BUFF_SIZE, fom->mfile) && strncmp("From ", buffer, 5)) {
fputs(buffer, tom->mfile);
}
sendNotifications2(todb, RDF_ASSERT_NOTIFY, r, gCoreVocab->RDF_parent, tom->top,
RDF_RESOURCE_TYPE, 1);
sendNotifications2(fromdb, RDF_DELETE_NOTIFY, message->r, gCoreVocab->RDF_parent, fom->top,
RDF_RESOURCE_TYPE, 1);
freeMem(buffer);
return 1;
}
void
readSummaryFile (RDFT rdf)
{
if (startsWith("mailbox://", rdf->url)) {
char* url = rdf->url;
char* folderURL = &url[10];
int32 flen = RDF_STRLEN(profileDirURL) + strlen(folderURL) + 4;
char* fileurl = getMem(flen);
char* nurl = getMem(RDF_STRLEN(url) + 20);
FILE *f;
char* buff = getMem(BUFF_SIZE);
MF folder = (MF) getMem(sizeof(struct MailFolder));
MM msg = NULL;
FILE *mf;
char* aclen;
rdf->pdata = folder;
sprintf(fileurl, "%s%s.ssf", profileDirURL, folderURL);
fileurl = MCDepFileURL(fileurl);
f = openPMFile(fileurl);
sprintf(fileurl, "%s%s", profileDirURL, folderURL);
fileurl = MCDepFileURL(fileurl);
mf = openPMFile(fileurl);
folder->top = RDF_GetResource(NULL, rdf->url, 1);
setResourceType(folder->top, PM_RT);
setContainerp(folder->top, 1);
folder->top->pdata = folder;
folder->rdf = rdf;
folder->sfile = f;
folder->mfile = mf;
while (f && fgets(buff, BUFF_SIZE, f)) {
if (startsWith("Status:", buff)) {
msg = (MM) getMem(sizeof(struct MailMessage));
msg->flags = stripCopy(&buff[8]);
fgets(buff, BUFF_SIZE, f);
sscanf(&buff[9], "%d", &msg->summOffset);
fgets(buff, BUFF_SIZE, f);
msg->from = stripCopy(&buff[6]);
fgets(buff, BUFF_SIZE, f);
msg->subject = stripCopy(&buff[8]);
fgets(buff, BUFF_SIZE, f);
msg->date = stripCopy(&buff[6]);
fgets(buff, BUFF_SIZE, f);
sscanf(&buff[9], "%d", &msg->offset);
sprintf(nurl, "%s?%d", url, msg->offset);
msg->r = RDF_GetResource(NULL, nurl, 1);
msg->r->pdata = msg;
addMsgToFolder (folder, msg) ;
setResourceType(msg->r, PM_RT);
}
}
if (msg == NULL) {
/* either a new mailbox or need to read BMF to recreate */
while (mf && fgets(buff, BUFF_SIZE, mf)) {
if (strncmp("From ", buff, 5) ==0) {
if (msg) writeMsgSum(folder, msg);
msg = (MM) getMem(sizeof(struct MailMessage));
msg->offset = ftell(mf);
msg->summOffset = -1;
sprintf(nurl, "%s?%i", url, msg->offset);
msg->r = RDF_GetResource(NULL, nurl, 1);
msg->r->pdata = msg;
setResourceType(msg->r, PM_RT);
addMsgToFolder (folder, msg) ;
}
if ((!msg->from) && (startsWith("From:", buff))) {
msg->from = stripCopy(&buff[6]);
} else if ((!msg->date) && (startsWith("Date:", buff))) {
msg->date = stripCopy(&buff[6]);
} else if ((!msg->subject) && (startsWith("Subject:", buff))) {
msg->subject = stripCopy(&buff[8]);
} else if ((!msg->flags) && (startsWith("X-Mozilla-Status:", buff))) {
msg->flags = stripCopy(&buff[17]);
}
}
if (msg) writeMsgSum(folder, msg);
if (folder->sfile) fflush(folder->sfile);
}
memset(fileurl, '\0', flen);
memcpy(fileurl, rdf->url, RDF_STRLEN(rdf->url));
aclen = RDF_STRCHR(&fileurl[10], '/');
fileurl[aclen-fileurl] = '\0';
RDF_STRCAT(fileurl, "/trash");
folder->trash = fileurl;
freeMem(buff);
freeMem(nurl);
/* GetPopToRDF(rdf); */
}
}
void *
pmGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type,
PRBool inversep, PRBool tv)
{
if ((resourceType(u) == PM_RT) && tv && (!inversep) && (type == RDF_STRING_TYPE) && (u->pdata)) {
MM msg = (MM) u->pdata;
if (s == gNavCenter->from) {
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )msg->from)));
return copyString(msg->from);
} else if (s == gNavCenter->subject) {
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )msg->subject)));
return copyString(msg->subject);
} else if (s == gNavCenter->date) {
return copyString(msg->date);
} else return NULL;
} else return NULL;
}
RDF_Cursor
pmGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type,
PRBool inversep, PRBool tv)
{
if ((resourceType(u) == PM_RT) && tv && (inversep) && (type == RDF_RESOURCE_TYPE)
&& (s == gCoreVocab->RDF_parent)) {
MF folder = (MF)rdf->pdata;
if (folder->top == u) {
RDF_Cursor c = (RDF_Cursor)getMem(sizeof(struct RDF_CursorStruct));
c->u = u;
c->s = s;
c->type = type;
c->inversep = inversep;
c->tv = tv;
c->count = 0;
c->pdata = folder->msg;
return c;
} else return NULL;
} else return NULL;
}
void *
pmNextValue (RDFT rdf, RDF_Cursor c)
{
MM msg = (MM) c->pdata;
RDF_Resource ans = NULL;
while (msg && msgDeletedp(msg)) {
msg = msg->next;
}
if (msg) {
ans = msg->r;
c->pdata = msg->next;
}
return ans;
}
RDF_Error
pmDisposeCursor (RDFT mcf, RDF_Cursor c)
{
freeMem(c);
return noRDFErr;
}
FILE *
getPopMBox (RDFT db)
{
MF folder = (MF)db->pdata;
return folder->mfile;
}
PRBool
pmHasAssertion (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv)
{
/*this is clearly wrong, but doesn't break anything now ...*/
return 1;
}
PRBool
pmRemove (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type)
{
PR_ASSERT( (RDF_STRING_TYPE != type) || ( IsUTF8String((const char* )v)));
if ((startsWith("mailbox://", rdf->url)) && (resourceType(u) == PM_RT) && (s == gCoreVocab->RDF_parent)
&& (type == RDF_RESOURCE_TYPE)) {
RDF_Resource mbox = (RDF_Resource) v;
if (!(containerp(mbox) && (resourceType(mbox) == PM_RT))) {
return false;
} else {
MF folder = (MF)mbox->pdata;
sendNotifications2(rdf, RDF_DELETE_NOTIFY, u, s, v, type, 1);
MoveMessage(folder->trash, resourceID(mbox), (MM)u->pdata);
return 1;
}
} else return false;
}
RDFT
MakePopDB (char* url)
{
if (startsWith("mailbox://", url)) {
RDFT ntr;
if ((ntr = (RDFT)getMem(sizeof(struct RDF_TranslatorStruct))) != NULL) {
char* fileurl = getMem(100);
PRDir* dir ;
char* aclen;
sprintf(fileurl, "%s%s", profileDirURL, &url[10]);
aclen = RDF_STRCHR(&fileurl[RDF_STRLEN(profileDirURL)+1], '/');
fileurl[aclen-fileurl] = '\0';
dir = OpenDir(fileurl);
if (dir == NULL) {
if ( CallPRMkDirUsingFileURL(fileurl, 00700) > -1) dir = OpenDir(fileurl);
}
freeMem(fileurl);
if (dir) {
PR_CloseDir(dir);
ntr->assert = NULL;
ntr->unassert = pmRemove;
ntr->getSlotValue = pmGetSlotValue;
ntr->getSlotValues = pmGetSlotValues;
ntr->hasAssertion = pmHasAssertion;
ntr->nextValue = pmNextValue;
ntr->disposeCursor = pmDisposeCursor;
ntr->url = copyString(url);
readSummaryFile(ntr);
return ntr;
} else {
freeMem(ntr);
return NULL;
}
}
else return NULL;
} else return NULL;
}
RDFT
MakeMailAccountDB (char* url)
{
if (startsWith("mailaccount://", url)) {
RDFT ntr = NewRemoteStore(url);
char* fileurl = getMem(100);
int32 n = PR_SKIP_BOTH;
PRDirEntry *de;
PRDir* dir ;
RDF_Resource top = RDF_GetResource(NULL, url, 1);
sprintf(fileurl, "%s%s", profileDirURL, &url[14]);
dir = OpenDir(fileurl);
if (dir == NULL) {
if ( CallPRMkDirUsingFileURL(fileurl, 00700) > -1) dir = OpenDir(fileurl);
}
while ((dir != NULL) && ((de = PR_ReadDir(dir, (PRDirFlags)(n++))) != NULL)) {
if ((!endsWith(".ssf", de->name)) && (!endsWith(".dat", de->name)) &&
(!endsWith(".snm", de->name)) && (!endsWith("~", de->name))) {
RDF_Resource r;
sprintf(fileurl, "mailbox://folder/%s/%s", &url[14], de->name);
r = RDF_GetResource(NULL, fileurl, 1);
setResourceType(r, PMF_RT);
remoteStoreAdd(ntr, r, gCoreVocab->RDF_parent, top, RDF_RESOURCE_TYPE, 1);
remoteStoreAdd(ntr, r, gCoreVocab->RDF_name, copyString(de->name), RDF_STRING_TYPE, 1);
}
}
freeMem(fileurl);
if (dir) PR_CloseDir(dir);
return ntr;
} else return NULL;
}
#endif

View File

@@ -0,0 +1,101 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_PM2RDF_H_
#define _RDF_PM2RDF_H_
#include "net.h"
#include "rdf.h"
#include "rdf-int.h"
#include "prio.h"
#include "glue.h"
#include "utils.h"
#include "xp_str.h"
#include <stdio.h>
/* pm2rdf.c data structures and defines */
#define TON(s) ((s == NULL) ? "" : s)
#define pmUnitp(u) ((resourceType(u) == PM_RT) || (resourceType(u) == IM_RT))
struct MailFolder {
FILE *sfile;
FILE *mfile;
struct MailMessage* msg;
struct MailMessage* tail;
struct MailMessage* add;
RDF_Resource top;
int32 status;
RDFT rdf;
char* trash;
};
typedef struct MailFolder* MF;
struct MailMessage {
char* subject;
char* from;
char* date;
int32 offset;
char* flags;
int32 summOffset;
RDF_Resource r;
struct MailMessage *next;
};
typedef struct MailMessage* MM;
/* pm2rdf.c function prototypes */
NSPR_BEGIN_EXTERN_C
void Pop_GetUrlExitFunc (URL_Struct *urls, int status, MWContext *cx);
void GetPopToRDF (RDFT rdf);
void PopGetNewMail (RDF_Resource r);
char * stripCopy (char* str);
PRBool msgDeletedp (MM msg);
FILE * openPMFile (char* path);
void addMsgToFolder (MF folder, MM msg);
void RDF_StartMessageDelivery (RDFT rdf);
char * MIW1 (const char* block, int32 len);
void RDF_AddMessageLine (RDFT rdf, char* block, int32 length);
void writeMsgSum (MF folder, MM msg);
void RDF_FinishMessageDelivery (RDFT rdf);
void setMessageFlag (RDFT rdf, RDF_Resource r, char* newFlag);
PRBool MoveMessage (char* to, char* from, MM message);
void readSummaryFile (RDFT rdf);
void * pmGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
RDF_Cursor pmGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
void * pmNextValue (RDFT rdf, RDF_Cursor c);
RDF_Error pmDisposeCursor (RDFT mcf, RDF_Cursor c);
FILE * getPopMBox (RDFT db);
PRBool pmHasAssertion (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
PRBool pmRemove (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
RDFT MakePopDB (char* url);
RDFT MakeMailAccountDB (char* url);
NSPR_END_EXTERN_C
#endif

View File

@@ -0,0 +1,432 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/* qryparse.c
A parser for queries expressed in RDF syntax.
There is a query tag (RDF:Query) which encloses one or more literal tags.
It has an id (which is currently ignored).
Literal tags (RDF:Literal) are like assertions, except they may contain variables.
Variables are specified as hrefs, the first character of which is $.
The format of a literal whose range is a resource type is:
<RDF:Literal href=domain>
<property href=range>
</RDF:Literal>
a literal whose range is a string or int is expressed as:
<RDF:Literal href=domain>
<property>string-or-int-value</property>
</RDF:Literal>
Note: in order for the query engine to correctly retrieve property values
which are strings or ints, you must add assertions about the
property's range (otherwise it is assumed to be a resource).
The range property may be the resource named "String", "Int", or any
other resource.
For example:
<RDF:Resource id="motto">
<domain href="State.mcf"/>
<range href="String"/>
</RDF:Resource>
Here is an example of a query:
<RDF:Query id="query1">
<result href="$result"/>
<RDF:Literal href="$var1">
<typeof href="Country.mcf"/>
</RDF:Literal>
<RDF:Literal href="$var1">
<state href="$var2"/>
</RDF:Literal>
<RDF:Literal href="$var2">
<capitalCity href="$result"/>
</RDF:Literal>
</RDF:Query>
In the Prolog-like syntax this looks like:
typeof($var1, Country) & state($var1, $var2) & capitalCity($var2, $result)
*/
#include "query.h"
#include "rdf-int.h"
#define QUERY_TAG "RDF:Query"
#define LITERAL_TAG "RDF:Literal"
#define RESULT_TAG "RDF:result"
#define SEQ_TAG "RDF:seq"
#define SEQ_END_TAG "</RDF:seq>"
#define LI_TAG "RDF:li"
#define RDF_OBJECT 10 /* status */
#define RDF_PROPERTY 11 /* status */
#define RDF_SEQ 12
#define RDF_LI 13
#define RDF_PARSE_ERROR 5 /* this should go in rdf.h */
/* analogous to RDFFile */
typedef struct _QueryParseStruct {
uint16 status; /* whether we're parsing an object or property */
PRBool tv; /* truth value of current literal */
uint16 depth;
RDF rdf;
RDF_Query query;
RDFElement elf;
TermStruc stack[16];
TermStruc* value;
uint8 valueCount;
uint8 valueSize;
} QueryParseStruct;
extern void parseRDFElement(RDFElement elf, char* token);
extern char* getElfProp(char* prop, RDFElement elf);
extern PRBool variableTermp(TermStruc term);
extern PRBool resourceTermp(TermStruc term);
extern PRBool constantTermp(TermStruc term);
/* prototypes */
PRBool variablep(char* elf);
RDF_ValueType rangeType(RDF rdf, RDF_Resource prop);
RDF_Error parseNextQueryToken (QueryParseStruct *q, char* token);
RDF_Query parseQuery(RDF rdf, char* blob, int32 size);
RDF_Error parsePropertyValue(QueryParseStruct *q, char* token);
RDF_Error parseEndTag(QueryParseStruct *q, char* token);
RDF_Error parseTag (QueryParseStruct *q, char* token);
RDF_Error addValueToList(QueryParseStruct *q, void* value, RDF_TermType type);
TermStruc* copyTermList(TermStruc* list, uint8 count);
PRBool variablep(char* elf) {
return elf[0] == '$';
}
/* Returns the ValueType of the range of the property specified */
RDF_ValueType rangeType(RDF rdf, RDF_Resource prop) {
RDF_Resource rangeType;
if (prop == gCoreVocab->RDF_substring) return RDF_STRING_TYPE;
else if (prop == gCoreVocab->RDF_notSubstring) return RDF_STRING_TYPE;
else if (prop == gCoreVocab->RDF_stringEquals) return RDF_STRING_TYPE;
else if (prop == gCoreVocab->RDF_notStringEquals) return RDF_STRING_TYPE;
else if (prop == gCoreVocab->RDF_lessThan) return RDF_INT_TYPE;
else if (prop == gCoreVocab->RDF_greaterThan) return RDF_INT_TYPE;
else if (prop == gCoreVocab->RDF_lessThanOrEqual) return RDF_INT_TYPE;
else if (prop == gCoreVocab->RDF_greaterThanOrEqual) return RDF_INT_TYPE;
else if (prop == gCoreVocab->RDF_equals) return RDF_INT_TYPE;
else if (prop == gCoreVocab->RDF_notEquals) return RDF_INT_TYPE;
/* fix me - add RDF_stringEquals */
rangeType = RDF_GetSlotValue(rdf, prop, gCoreVocab->RDF_range, RDF_RESOURCE_TYPE, false, true);
if (rangeType == NULL) return RDF_RESOURCE_TYPE; /* don't know so assume resource */
else if (rangeType == gCoreVocab->RDF_StringType) return RDF_STRING_TYPE;
else if (rangeType == gCoreVocab->RDF_IntType) return RDF_INT_TYPE;
else return RDF_RESOURCE_TYPE; /* not string or int so must be a resource */
}
/* Returns query parsed from blob, NULL if there was a parsing error.
This is adapted from parseNextRDFXMLBlob, the main differences being that
a file structure is not maintained. blob must contain the entire query.
*/
RDF_Query parseQuery(RDF rdf, char* blob, int32 size) {
RDF_Error err = noRDFErr;
QueryParseStruct q;
char line[LINE_SIZE];
char holdOver[LINE_SIZE];
int32 n, last, m;
PRBool somethingseenp = false;
n = last = 0;
q.depth = 0;
q.elf = (RDFElement)getMem(sizeof(RDFElementStruct));
q.rdf = rdf;
q.query = RDF_CreateQuery(rdf);
q.tv = true;
q.value = NULL;
q.valueCount = 0;
q.valueSize = 0;
memset(holdOver, '\0', LINE_SIZE);
while (n < size) {
char c = blob[n];
m = 0;
somethingseenp = false;
memset(line, '\0', LINE_SIZE);
if (holdOver[0] != '\0') {
memcpy(line, holdOver, RDF_STRLEN(holdOver));
m = RDF_STRLEN(holdOver);
somethingseenp = true;
memset(holdOver, '\0', LINE_SIZE);
}
while ((m < 300) && (c != '<') && (c != '>')) {
line[m] = c;
m++;
somethingseenp = (somethingseenp || ((c != ' ') && (c != '\r') && (c != '\n')));
n++;
if (n < size) c = blob[n];
else break;
}
if (c == '>') line[m] = c;
n++;
if (m > 0) {
if ((c == '<') || (c == '>')) {
last = n;
if (c == '<') holdOver[0] = '<';
if (somethingseenp == true) {
err = parseNextQueryToken(&q, line);
if (err != noRDFErr) {
if (q.query != NULL) RDF_DestroyQuery(q.query);
q.query = NULL;
break; /* while (n < size) */
}
}
} else if (size > last) {
memcpy(holdOver, line, m);
}
} else if (c == '<') holdOver[0] = '<';
}
if (q.elf != NULL) freeMem(q.elf);
return q.query;
}
RDF_Error addValueToList(QueryParseStruct *q, void* value, RDF_TermType type) {
RDF_Error err = noRDFErr;
int increment = 5;
if (q->valueSize == q->valueCount) {
TermStruc* old = q->value;
TermStruc* newTermList = (TermStruc*)getMem((q->valueSize + increment) * sizeof(TermStruc));
if (newTermList == NULL) return RDF_NO_MEMORY;
memcpy((char*)newTermList, (char*)q->value, (q->valueSize)* sizeof(TermStruc));
q->value = newTermList;
q->valueSize = q->valueSize + increment;
freeMem(old);
}
(q->value + q->valueCount)->value = value;
(q->value + q->valueCount)->type = type;
q->valueCount++;
return err;
}
TermStruc* copyTermList(TermStruc* list, uint8 count) {
TermStruc* newList = (TermStruc*)getMem(count * sizeof(TermStruc));
if (newList == NULL) return NULL;
memcpy((char*)newList, (char*)list, count * sizeof(TermStruc));
return newList;
}
RDF_Error parsePropertyValue(QueryParseStruct *q, char* token) {
RDF_Error err = noRDFErr;
if ((q->depth == 3) && (q->status == RDF_PROPERTY)) {
/* parse the property value */
RDF_Resource slot = (RDF_Resource)q->stack[q->depth-1].value;
RDF_ValueType type = rangeType(q->rdf, slot);
TermStruc unitTerm = q->stack[q->depth-2];
switch (type) { /* switch on value type of property */
int i;
case RDF_RESOURCE_TYPE:
err = RDF_PARSE_ERROR;
break;
case RDF_STRING_TYPE:
if (variablep(token)) {
RDF_Variable rangeVar = RDF_GetVariable(q->query, token);
if (variableTermp(unitTerm))
err = RDF_AddConjunctVRV(q->query, (RDF_Variable)unitTerm.value, slot, rangeVar, type);
else err = RDF_AddConjunctRRV(q->query, (RDF_Resource)unitTerm.value, slot, rangeVar, type);
} else if (variableTermp(unitTerm)) {
err = RDF_AddConjunctVRO(q->query, (RDF_Variable)unitTerm.value, slot, (void*)token, type);
} else err = RDF_AddConjunctRRO(q->query, (RDF_Resource)unitTerm.value, slot, (void*)token, type);
break;
case RDF_INT_TYPE:
if (variablep(token)) {
RDF_Variable rangeVar = RDF_GetVariable(q->query, token);
if (variableTermp(unitTerm))
err = RDF_AddConjunctVRV(q->query, (RDF_Variable)unitTerm.value, slot, rangeVar, type);
else err = RDF_AddConjunctRRV(q->query, (RDF_Resource)unitTerm.value, slot, rangeVar, type);
} else if (sscanf(token, "%d", &i) == 1) { /* fix me */
if (variableTermp(unitTerm)) {
err = RDF_AddConjunctVRO(q->query, (RDF_Variable)unitTerm.value, slot, (void*)i, type);
} else err = RDF_AddConjunctRRO(q->query, (RDF_Resource)unitTerm.value, slot, (void*)i, type);
} else err = RDF_PARSE_ERROR;
break;
default:
err = RDF_PARSE_ERROR; /* should never get here */
break;
}
} else if (q->status == RDF_LI) {
RDF_Resource slot = (RDF_Resource)q->stack[q->depth-3].value;
RDF_ValueType type = rangeType(q->rdf, slot);
switch (type) {
int i;
case RDF_RESOURCE_TYPE:
err = RDF_PARSE_ERROR;
break;
case RDF_STRING_TYPE:
if (variablep(token))
err = addValueToList(q, RDF_GetVariable(q->query, token), RDF_VARIABLE_TERM_TYPE);
else err = addValueToList(q, copyString(token), RDF_CONSTANT_TERM_TYPE);
break;
case RDF_INT_TYPE:
if (variablep(token)) {
err = addValueToList(q, RDF_GetVariable(q->query, token), RDF_VARIABLE_TERM_TYPE);
} else if (sscanf(token, "%d", &i) == 1) { /* fix me */
err = addValueToList(q, (void*)i, RDF_CONSTANT_TERM_TYPE);
} else err = RDF_PARSE_ERROR;
break;
default:
err = RDF_PARSE_ERROR; /* should never get here */
break;
}
}
return err;
}
RDF_Error parseTag (QueryParseStruct *q, char* token) {
RDF_Error err = noRDFErr;
RDFElement elf = q->elf;
memset((char*)elf, '\0', sizeof(RDFElementStruct));
parseRDFElement(elf, token);
/* the block can start with Query, Literal or a property name */
if (startsWith(QUERY_TAG, elf->tagName)) {
char* url = getElfProp("id", elf);
/* don't have anything to do with id right now */
q->stack[q->depth++].value = (void*)NULL;
q->status = RDF_OBJECT;
} else if (startsWith(LITERAL_TAG, elf->tagName)) {
char* domain = getElfProp("href", elf);
if (variablep(domain)) {
q->stack[q->depth].value = RDF_GetVariable(q->query, domain);
q->stack[q->depth].type = RDF_VARIABLE_TERM_TYPE;
q->depth++;
} else {
q->stack[q->depth].value = resourceFromID(domain, true);
q->stack[q->depth].type = RDF_RESOURCE_TERM_TYPE;
q->depth++;
}
q->status = RDF_OBJECT;
/*
if (stringEquals(LITERAL_NEGATION_TAG, elf->tagName))
q->tv = false;
else q->tv = true;
*/
} else if (stringEquals(elf->tagName, RESULT_TAG) && (q->depth == 1)) {
/* set a result variable */
char* range = getElfProp("href", elf);
RDF_Variable resultVar = RDF_GetVariable(q->query, range);
RDF_SetResultVariable(resultVar, true);
q->status = RDF_OBJECT;
} else if (stringEquals(elf->tagName, SEQ_TAG) && (q->depth == 3)) {
/* ignore stack value */
q->depth++;
q->status = RDF_SEQ;
q->valueSize = 10;
q->valueCount = 0;
q->value = (TermStruc*)getMem(q->valueSize * sizeof(TermStruc));
if (q->value == NULL) err = RDF_PARSE_ERROR;
} else if (stringEquals(elf->tagName, LI_TAG) && (q->depth == 4)) {
/* ignore stack value */
if (elf->emptyTagp) { /* <RDF:li href="$var"/> */
char* range = getElfProp("href", elf);
RDF_Resource slot = (RDF_Resource)q->stack[q->depth-2].value;
RDF_ValueType type = rangeType(q->rdf, slot);
if (type == RDF_RESOURCE_TYPE) {
if (variablep(range)) {
err = addValueToList(q, RDF_GetVariable(q->query, range), RDF_VARIABLE_TERM_TYPE);
} else err = addValueToList(q, resourceFromID(range, true), RDF_RESOURCE_TERM_TYPE);
} else err = RDF_PARSE_ERROR;
} else { /* <RDF:li> */
q->depth++;
q->status = RDF_LI;
}
} else if (q->depth != 1) { /* property */
char* pname = elf->tagName;
RDF_Resource slot = resourceFromID(pname, true);
if (elf->emptyTagp) {
char* range = getElfProp("href", elf);
RDF_ValueType type = rangeType(q->rdf, slot);
TermStruc unitTerm = q->stack[q->depth-1];
switch (type) { /* switch on value type of property */
case RDF_RESOURCE_TYPE:
if (variablep(range)) {
RDF_Variable rangeVar = RDF_GetVariable(q->query, range);
if (variableTermp(unitTerm)) {
err = RDF_AddConjunctVRV(q->query, (RDF_Variable)unitTerm.value, slot, rangeVar, type);
} else {
err = RDF_AddConjunctRRV(q->query, (RDF_Resource)unitTerm.value, slot, rangeVar, type);
}
} else {
RDF_Resource rangeRsrc = resourceFromID(range, true);
if (variableTermp(unitTerm)) {
/* RDF_AddConjunctVRR */
err = RDF_AddConjunctVRR(q->query, (RDF_Variable)unitTerm.value, slot, rangeRsrc);
} else err = RDF_PARSE_ERROR;
}
break;
default:
err = RDF_PARSE_ERROR; /* strings and ints cannot be inside href */
break;
}
q->status = RDF_OBJECT;
} else {
/* this isn't really a term, its just a property but we access it in the same way as a term */
q->stack[q->depth].value = slot;
q->stack[q->depth].type = RDF_RESOURCE_TERM_TYPE;
q->depth++;
q->status = RDF_PROPERTY;
}
}
return err;
}
RDF_Error parseEndTag(QueryParseStruct *q, char* token) {
RDF_Error err = noRDFErr;
if (stringEquals(SEQ_END_TAG, token)) {
RDF_Resource slot = (RDF_Resource)q->stack[q->depth-2].value;
RDF_ValueType type = rangeType(q->rdf, slot);
TermStruc unitTerm = q->stack[q->depth-3];
/* copy the value list, add the conjunct, and destroy the list - the engine destroys the copy. */
TermStruc* copy = copyTermList(q->value, q->valueCount);
if (copy == NULL) return RDF_NO_MEMORY;
err = RDF_AddConjunctVRL(q->query, (RDF_Variable)unitTerm.value, slot, (RDF_Term)copy, type, q->valueCount);
q->valueCount = q->valueSize = 0;
freeMem(q->value);
}
if (q->depth == 0) return RDF_PARSE_ERROR;
q->depth--;
if (q->status == RDF_OBJECT)
q->status = RDF_PROPERTY;
else if (q->status == RDF_LI)
q->status = RDF_SEQ;
else if (q->status == RDF_SEQ)
q->status = RDF_OBJECT; /* also terminates the property */
return err;
}
/* this is adapted from parseNextRDFToken, the difference being in the actions. */
RDF_Error parseNextQueryToken (QueryParseStruct *q, char* token) {
RDF_Error err = noRDFErr;
if (token[0] == '\n' || token[0] == '\r') return err;
if (token[0] != '<') {
err = parsePropertyValue(q, token);
} else if (token[1] == '/') {
err = parseEndTag(q, token);
} else {
err = parseTag(q, token);
}
return err;
}

View File

@@ -0,0 +1,651 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file implements query support for the rdf data model.
For more information on this file, contact rjc or guha
For more information on RDF, look at the RDF section of www.mozilla.org
*/
#ifdef XP_PC
#define strcasecomp RDF_STRCMP
#endif
#include "query.h"
#include "rdf-int.h"
/* prototypes */
PRBool variableTermp(TermStruc term);
PRBool resourceTermp(TermStruc term);
PRBool constantTermp(TermStruc term);
RDF_Error addVariableToList(RDF_Variable variable, RDF_VariableList *list);
void destroyVariableList(RDF_VariableList list, PRBool destroyVariables);
void destroyLiteralList(RDF_LiteralList list, PRBool destroyLiterals);
PRBool comparisonp(RDF_Resource r);
PRBool specialResourcePredicate(RDF_Resource r);
PRBool findLiteral(RDF_Literal target, RDF_LiteralList list);
RDF_Literal getNthLiteral(RDF_Query q, uint16 index);
PRBool constantp(TermStruc term, RDF_VariableList knownVars);
RDF_Literal oneUnknownAs(RDF_Query q, RDF_LiteralList orderedLiterals, RDF_VariableList knownVars);
RDF_Literal noUnknownAs(RDF_Query q, RDF_LiteralList orderedLiterals, RDF_VariableList knownVars);
PRBool orderConjuncts(RDF_Query q);
PRBool processNextLiteral(RDF_Query q, RDF_Literal literal);
void addLiteral(RDF_Query q, RDF_Literal literal);
/* Variable API */
PR_PUBLIC_API(PRBool) RDF_IsResultVariable(RDF_Variable var) {
return var->isResult;
}
PR_PUBLIC_API(void) RDF_SetResultVariable(RDF_Variable var, PRBool isResult) {
var->isResult = isResult;
}
PR_PUBLIC_API(void*) RDF_GetVariableValue(RDF_Variable var) {
if (var->query->queryRunning)
return var->value;
else return NULL;
}
PR_PUBLIC_API(void) RDF_SetVariableValue(RDF_Variable var, void* value, RDF_ValueType type) {
if (!var->query->queryRunning) var->query->conjunctsOrdered = false;
var->value = value;
var->type = type;
}
PRBool variableTermp(TermStruc term) {
return term.type == RDF_VARIABLE_TERM_TYPE;
}
PRBool resourceTermp(TermStruc term) {
return term.type == RDF_RESOURCE_TERM_TYPE;
}
PRBool constantTermp(TermStruc term) {
return term.type == RDF_CONSTANT_TERM_TYPE;
}
/* Adds the variable to the variable list if it isn't already on the list. */
RDF_Error addVariableToList(RDF_Variable variable, RDF_VariableList *list) {
PRBool found = false;
RDF_VariableList current = *list;
while (current != NULL) {
if (current->element == variable) {
found = true;
break;
}
current = current->next;
}
if (!found) {
RDF_VariableList newlist = (RDF_VariableList)getMem(sizeof(RDF_VariableListStruc));
if (newlist == NULL) return RDF_NO_MEMORY;
newlist->element = variable;
newlist->next = *list;
*list = newlist;
}
return noRDFErr;
}
void destroyVariableList(RDF_VariableList list, PRBool destroyVariables) {
if (list != NULL) {
destroyVariableList(list->next, destroyVariables);
if (destroyVariables) freeMem(list->element); /* free the variable */
freeMem(list); /* free the list structure */
}
}
void destroyLiteralList(RDF_LiteralList list, PRBool destroyLiterals) {
if (list != NULL) {
destroyLiteralList(list->next, destroyLiterals);
if (destroyLiterals) {
RDF_Literal literal = list->element;
if (literal->c != NULL) RDF_DisposeCursor(literal->c);
if (literal->valueType == RDF_STRING_TYPE) {
int i;
for (i = 0; i < literal->valueCount; i++) {
TermStruc term = *(literal->v + i);
if (constantTermp(term)) freeMem(term.value);
}
}
freeMem(literal->v);
freeMem(list->element); /* free the literal */
}
freeMem(list); /* free the list structure */
}
}
PRBool comparisonp(RDF_Resource r) {
return (r == gCoreVocab->RDF_substring ||
r == gCoreVocab->RDF_notSubstring ||
r == gCoreVocab->RDF_lessThan ||
r == gCoreVocab->RDF_greaterThan ||
r == gCoreVocab->RDF_lessThanOrEqual ||
r == gCoreVocab->RDF_greaterThanOrEqual ||
r == gCoreVocab->RDF_equals ||
r == gCoreVocab->RDF_notEquals ||
r == gCoreVocab->RDF_stringEquals ||
r == gCoreVocab->RDF_notStringEquals);
}
PRBool specialResourcePredicate(RDF_Resource r) {
return (r == gCoreVocab->RDF_notInstanceOf || r == gCoreVocab->RDF_notParent);
}
/* Creates and initializes a query. Returns NULL if not enough memory. */
PR_PUBLIC_API(RDF_Query) RDF_CreateQuery(RDF rdf) {
RDF_Query q = (RDF_Query)getMem(sizeof(RDF_QueryStruc));
if (q == NULL) return q;
q->variables = NULL;
q->literals = NULL;
q->numLiterals = 0;
q->index = 0;
q->conjunctsOrdered = false;
q->queryRunning = false;
q->rdf = rdf;
return q;
}
/* Destroys a query. */
PR_PUBLIC_API(void) RDF_DestroyQuery(RDF_Query q) {
destroyLiteralList(q->literals, true); /* free the literals */
q->literals = NULL;
destroyVariableList(q->variables, true); /* free the variables */
q->variables = NULL;
freeMem(q); /* free the query */
q = NULL;
}
/* Returns the variable with the given name in the query.
If not found:
if the query is running, return NULL
otherwise create a new variable with the given name.
if there isn't enough memory, return NULL.
*/
PR_PUBLIC_API(RDF_Variable) RDF_GetVariable(RDF_Query q, char* name) {
RDF_Variable newvar;
RDF_VariableList newlist;
RDF_VariableList current = q->variables;
while (current != NULL) {
if (stringEquals(current->element->id, name)) return current->element;
if (current->next == NULL) break;
else current = current->next;
}
if (q->queryRunning) return NULL;
newvar = (RDF_Variable)getMem(sizeof(RDF_VariableStruc));
if (newvar == NULL) return NULL;
newvar->id = copyString(name);
newvar->query = q;
/* create a list containing the variable and append it to the front of the variable list */
newlist = (RDF_VariableList)getMem(sizeof(RDF_VariableListStruc));
if (newlist == NULL) {
freeMem(newvar);
return NULL;
}
newlist->element = newvar;
newlist->next = q->variables;
q->variables = newlist;
return newvar;
}
/* Returns the number of variables in the query. */
PR_PUBLIC_API(uint16) RDF_GetVariableListCount(RDF_Query q) {
RDF_VariableList current = q->variables;
uint16 count = 0;
while (current != NULL) {
current = current->next;
count++;
}
return count;
}
/* Returns the variables belonging to the query at the given index. */
PR_PUBLIC_API(RDF_Variable) RDF_GetNthVariable(RDF_Query q, uint16 index) {
RDF_VariableList current = q->variables;
uint16 count = 0;
while (current != NULL) {
if (count == index)
return current->element;
else {
current = current->next;
count++;
}
}
return NULL;
}
/* Returns true if target is found in literal */
PRBool findLiteral(RDF_Literal target, RDF_LiteralList list) {
while (list != NULL) {
if (list->element == target) return true;
else list = list->next;
}
return false;
}
/* Returns the literal belonging to the query at the given index. */
RDF_Literal getNthLiteral(RDF_Query q, uint16 index) {
RDF_LiteralList current = q->literals;
uint16 count = 0;
while (current != NULL) {
if (count == index)
return current->element;
else {
current = current->next;
count++;
}
}
return NULL;
}
/* A term is constant if it is not a variable, if it is a variable with
a non-null value, or if it is a known variable.
*/
PRBool constantp(TermStruc term, RDF_VariableList knownVars) {
if (term.type != RDF_VARIABLE_TERM_TYPE) return true;
else {
RDF_Variable var = (RDF_Variable)term.value;
if (var->value != NULL) return true;
else {
while (knownVars != NULL) {
if (knownVars->element == var) return true;
knownVars = knownVars->next;
}
return false;
}
}
}
/* Returns a literal with a constant term which has not been ordered yet. */
RDF_Literal oneUnknownAs(RDF_Query q, RDF_LiteralList orderedLiterals, RDF_VariableList knownVars) {
RDF_LiteralList list = q->literals;
RDF_Literal answer = NULL;
while (list != NULL) {
RDF_Literal current = list->element;
if (!findLiteral(current, orderedLiterals)) {
if (((constantp(current->u, knownVars)) || (constantp(*current->v, knownVars))) &&
current->valueCount == 1 && /* no disjunctions */
!comparisonp(current->s) && /* comparisons must have constant terms */
!specialResourcePredicate(current->s) /* notTypeOf and notParent must have constant terms */
/* && current->tv == true */) {
if (answer == NULL) {
answer = current;
} else {
/* fix me - deal with branching factor */
answer = current;
}
}
}
list = list->next;
}
return answer;
}
/* Returns a literal with both terms constant which has not been ordered yet. */
RDF_Literal noUnknownAs(RDF_Query q, RDF_LiteralList orderedLiterals, RDF_VariableList knownVars) {
RDF_LiteralList list = q->literals;
while (list != NULL) {
RDF_Literal current = list->element;
if (!findLiteral(current, orderedLiterals) &&
constantp(current->u, knownVars)) {
int i;
PRBool foundNonConstant = false;
for (i = 0; i < current->valueCount; i++) { /* all values constant? */
TermStruc term = *(current->v + i);
if (!constantp(term, knownVars)) foundNonConstant = true;
}
if (foundNonConstant) list = list->next;
else return current;
}
else list = list->next;
}
return NULL;
}
/* Returns true if the conjuncts were ordered succesfully.
*/
PRBool orderConjuncts(RDF_Query q) {
uint16 numOrdered = 0;
RDF_Error err = noRDFErr;
RDF_LiteralList orderedLiterals = NULL;
RDF_LiteralList orderedLiteralsTail = orderedLiterals;
RDF_VariableList knownVars = NULL;
if (q->conjunctsOrdered) return true;
while (numOrdered < q->numLiterals) {
RDF_Literal lit1 = noUnknownAs(q, orderedLiterals, knownVars);
if (lit1 != NULL) {
/* add literal to ordered list */
RDF_LiteralList newlist = (RDF_LiteralList)getMem(sizeof(RDF_LiteralListStruc));
if (newlist == NULL) break;
newlist->element = lit1;
newlist->next = NULL;
if (orderedLiterals == NULL)
orderedLiterals = orderedLiteralsTail = newlist;
else {
orderedLiteralsTail->next = newlist;
orderedLiteralsTail = orderedLiteralsTail->next;
}
numOrdered++;
} else {
RDF_Literal lit2 = oneUnknownAs(q, orderedLiterals, knownVars);
if (lit2 != NULL) {
RDF_LiteralList newlist = (RDF_LiteralList)getMem(sizeof(RDF_LiteralListStruc));
if (newlist == NULL) break;
/* add unit and value as known variables */
lit2->variable = (RDF_Variable) (constantp(lit2->u, knownVars) ? lit2->v->value : lit2->u.value);
if (variableTermp(lit2->u)) {
err = addVariableToList((RDF_Variable)lit2->u.value, &knownVars);
if (err != noRDFErr) break;
}
if (variableTermp(*lit2->v)) {
err = addVariableToList((RDF_Variable)lit2->v->value, &knownVars);
if (err != noRDFErr) break;
}
/* add literal to ordered list */
newlist->element = lit2;
newlist->next = NULL;
if (orderedLiterals == NULL)
orderedLiterals = orderedLiteralsTail = newlist;
else {
orderedLiteralsTail->next = newlist;
orderedLiteralsTail = orderedLiteralsTail->next;
}
numOrdered++;
} else break;
}
}
if (numOrdered == q->numLiterals) { /* ordered all succesfully so replace literals */
RDF_LiteralList old = q->literals;
q->literals = orderedLiterals;
destroyLiteralList(old, false);
q->conjunctsOrdered = true;
} else { /* unsuccessful so destroy ordered list structure */
destroyLiteralList(orderedLiterals, false);
q->conjunctsOrdered = false;
}
destroyVariableList(knownVars, false); /* free the knownVars list structure */
return q->conjunctsOrdered;
}
PRBool processNextLiteral(RDF_Query q, RDF_Literal literal) {
if (literal->c != NULL) {
RDF_SetVariableValue(literal->variable, RDF_NextValue(literal->c), literal->valueType);
return (RDF_GetVariableValue(literal->variable) != NULL);
} else {
RDF_Resource u; /* unit is a resource except for the comparison case so don't set it yet. */
RDF_Resource s = literal->s;
void* v;
if (literal->variable == NULL) {
PRBool result = false;
PRBool ans = false;
int i;
if (literal->bt) return false;
/* find a value that satisfies predicate */
for (i = 0; i < literal->valueCount; i++) {
TermStruc valueTerm = *(literal->v + i);
if (comparisonp(s)) {
/* unit is a variable in all comparisons.
value may be a variable or a constant.
*/
switch (literal->valueType) {
char *str, *pattern;
int i, j;
case RDF_STRING_TYPE:
if (literal->u.type != RDF_VARIABLE_TERM_TYPE) return false; /* error */
if (((RDF_Variable)literal->u.value)->type != RDF_STRING_TYPE) return false;
str = (char*)RDF_GetVariableValue((RDF_Variable)literal->u.value);
switch (valueTerm.type) {
case RDF_VARIABLE_TERM_TYPE:
pattern = (char*)RDF_GetVariableValue((RDF_Variable)valueTerm.value);
break;
case RDF_CONSTANT_TERM_TYPE:
pattern = (char*)valueTerm.value;
break;
default:
/* should blow up */
return false;
break;
}
if (s == gCoreVocab->RDF_stringEquals) {
ans = stringEquals(pattern, str);
} else if (s == gCoreVocab->RDF_substring) {
ans = substring(pattern, str);
} else if (s == gCoreVocab->RDF_notStringEquals) {
ans = !stringEquals(pattern, str);
} else if (s == gCoreVocab->RDF_notSubstring) {
ans = !substring(pattern, str);
} else return false; /* error */
break;
case RDF_INT_TYPE:
if (literal->u.type != RDF_VARIABLE_TERM_TYPE) return false; /* error */
if (((RDF_Variable)literal->u.value)->type != RDF_INT_TYPE) return false;
i = (int)RDF_GetVariableValue((RDF_Variable)literal->u.value);
switch (valueTerm.type) {
case RDF_VARIABLE_TERM_TYPE:
j = (int)RDF_GetVariableValue((RDF_Variable)valueTerm.value);
break;
case RDF_CONSTANT_TERM_TYPE:
j = (int)valueTerm.value;
break;
default:
/* should blow up */
return false;
break;
}
if (s == gCoreVocab->RDF_equals) {
ans = (i == j);
} else if (s == gCoreVocab->RDF_notEquals) {
ans = (i != j);
} else if (s == gCoreVocab->RDF_lessThan) {
ans = (i < j);
} else if (s == gCoreVocab->RDF_greaterThan) {
ans = (i > j);
} else if (s == gCoreVocab->RDF_lessThanOrEqual) {
ans = (i <= j);
} else if (s == gCoreVocab->RDF_greaterThanOrEqual) {
ans = (i >= j);
} else return false;
break;
default:
return false;
break;
}
}
else {
u = (RDF_Resource)((variableTermp(literal->u)) ? ((RDF_Variable)literal->u.value)->value : literal->u.value);
/* special predicates */
if (s == gCoreVocab->RDF_notInstanceOf) {
ans = !RDF_HasAssertion(q->rdf, u, gCoreVocab->RDF_instanceOf, valueTerm.value, literal->valueType, true);
} else if (s == gCoreVocab->RDF_notParent) {
ans = !RDF_HasAssertion(q->rdf, u, gCoreVocab->RDF_parent, valueTerm.value, literal->valueType, true);
} else ans = RDF_HasAssertion(q->rdf, u, s, valueTerm.value, literal->valueType, true);
}
literal->bt = true;
/* result = ((literal->tv == true) ? ans : !ans); */
result = ans;
if (result) return result; /* otherwise try next value */
}
return result;
}
u = (RDF_Resource)((variableTermp(literal->u)) ? ((RDF_Variable)literal->u.value)->value : literal->u.value);
v = (variableTermp(*literal->v)) ? ((RDF_Variable)literal->v->value)->value : literal->v->value;
if ((u == NULL) && variableTermp(literal->u) && resourceTermp(*literal->v)) {
literal->c = RDF_GetSources(q->rdf, (RDF_Resource)v, s, literal->valueType, true);
if (literal->c == NULL) return false;
RDF_SetVariableValue(literal->variable, RDF_NextValue(literal->c), literal->valueType);
return (RDF_GetVariableValue(literal->variable) != NULL);
} else if ((v == NULL) && variableTermp(*literal->v) && (u != NULL)) {
literal->c = RDF_GetTargets(q->rdf, u, s, literal->valueType, true); /* note arg order differs from java implementation */
if (literal->c == NULL) return false;
RDF_SetVariableValue(literal->variable, RDF_NextValue(literal->c), literal->valueType);
return (RDF_GetVariableValue(literal->variable) != NULL);
} else return false;
}
}
PR_PUBLIC_API(PRBool) RDF_RunQuery (RDF_Query q) {
q->queryRunning = true;
orderConjuncts(q);
if (q->conjunctsOrdered)
return true;
else return false;
}
PR_PUBLIC_API(PRBool) RDF_GetNextElement(RDF_Query q) {
if (!q->queryRunning) RDF_RunQuery(q);
if (q->index == q->numLiterals) q->index--;
while (q->index < q->numLiterals) {
RDF_Literal lit = getNthLiteral(q, q->index); /* we know it's it range so don't have to check for NULL */
if (!processNextLiteral(q, lit)) {
if (q->index == 0) return false;
lit->c = NULL;
if (lit->variable != NULL) RDF_SetVariableValue(lit->variable, (void*)NULL, RDF_RESOURCE_TYPE);
lit->bt = false;
q->index--;
} else {
q->index++;
}
}
return true;
}
PR_PUBLIC_API(void) RDF_EndQuery (RDF_Query q) {
q->queryRunning = false;
}
PR_PUBLIC_API(RDF_VariableList) RDF_GetVariableList(RDF_Query q) {
return q->variables;
}
/* Note: should put a test for overflow of numLiterals */
/* Adds a literal to the query. */
void addLiteral(RDF_Query q, RDF_Literal literal) {
RDF_LiteralList newlist = (RDF_LiteralList)getMem(sizeof(RDF_LiteralListStruc));
if (newlist == NULL) return;
newlist->element = literal;
newlist->next = q->literals;
q->literals = newlist;
q->numLiterals++;
}
PR_PUBLIC_API(RDF_Error) RDF_AddConjunctVRV(RDF_Query q, RDF_Variable arg1, RDF_Resource s, RDF_Variable arg2, RDF_ValueType type) {
RDF_Literal literal = (RDF_Literal)getMem(sizeof(LiteralStruc));
if (literal == NULL) return RDF_NO_MEMORY;
literal->u.value = (void*)arg1;
literal->u.type = RDF_VARIABLE_TERM_TYPE;
((RDF_Variable)literal->u.value)->type = RDF_RESOURCE_TYPE;
literal->s = s;
literal->valueCount = 1;
literal->v = (TermStruc*)getMem(sizeof(TermStruc));
literal->v->value = (void*)arg2;
literal->v->type = RDF_VARIABLE_TERM_TYPE;
((RDF_Variable)literal->v->value)->type = literal->valueType = type;
literal->tv = true;
addLiteral(q, literal);
q->conjunctsOrdered = false;
return noRDFErr;
}
PR_PUBLIC_API(RDF_Error) RDF_AddConjunctVRO(RDF_Query q, RDF_Variable arg1, RDF_Resource s, void* arg2, RDF_ValueType type) {
RDF_Literal literal = (RDF_Literal)getMem(sizeof(LiteralStruc));
if (literal == NULL) return RDF_NO_MEMORY;
literal->u.value = (void*)arg1;
literal->u.type = RDF_VARIABLE_TERM_TYPE;
((RDF_Variable)literal->u.value)->type = type;
literal->s = s;
literal->valueCount = 1;
literal->v = (TermStruc*)getMem(sizeof(TermStruc));
literal->v->value = (type == RDF_STRING_TYPE) ? (void*)copyString((char*)arg2) : (void*)arg2;
literal->v->type = RDF_CONSTANT_TERM_TYPE;
literal->valueType = type;
literal->tv = true;
addLiteral(q, literal);
q->conjunctsOrdered = false;
return noRDFErr;
}
PR_PUBLIC_API(RDF_Error) RDF_AddConjunctRRO(RDF_Query q, RDF_Resource arg1, RDF_Resource s, void* arg2, RDF_ValueType type) {
RDF_Literal literal = (RDF_Literal)getMem(sizeof(LiteralStruc));
if (literal == NULL) return RDF_NO_MEMORY;
literal->u.value = (void*)arg1;
literal->u.type = RDF_RESOURCE_TERM_TYPE;
literal->s = s;
literal->valueCount = 1;
literal->v = (TermStruc*)getMem(sizeof(TermStruc));
literal->v->value = (type == RDF_STRING_TYPE) ? (void*)copyString((char*)arg2) : (void*)arg2;
literal->v->type = RDF_CONSTANT_TERM_TYPE;
literal->valueType = type;
literal->tv = true;
addLiteral(q, literal);
q->conjunctsOrdered = false;
return noRDFErr;
}
PR_PUBLIC_API(RDF_Error) RDF_AddConjunctVRR(RDF_Query q, RDF_Variable arg1, RDF_Resource s, RDF_Resource arg2) {
RDF_Literal literal = (RDF_Literal)getMem(sizeof(LiteralStruc));
if (literal == NULL) return RDF_NO_MEMORY;
literal->u.value = (void*)arg1;
literal->u.type = RDF_VARIABLE_TERM_TYPE;
((RDF_Variable)literal->u.value)->type = RDF_RESOURCE_TYPE;
literal->s = s;
literal->valueCount = 1;
literal->v = (TermStruc*)getMem(sizeof(TermStruc));
literal->v->value = (void*)arg2;
literal->v->type = RDF_RESOURCE_TERM_TYPE;
literal->valueType = RDF_RESOURCE_TYPE;
literal->tv = true;
addLiteral(q, literal);
q->conjunctsOrdered = false;
return noRDFErr;
}
PR_PUBLIC_API(RDF_Error) RDF_AddConjunctRRV(RDF_Query q, RDF_Resource arg1, RDF_Resource s, RDF_Variable arg2, RDF_ValueType type) {
RDF_Literal literal = (RDF_Literal)getMem(sizeof(LiteralStruc));
if (literal == NULL) return RDF_NO_MEMORY;
literal->u.value = arg1;
literal->u.type = RDF_RESOURCE_TERM_TYPE;
literal->s = s;
literal->valueCount = 1;
literal->v = (TermStruc*)getMem(sizeof(TermStruc));
literal->v->value = (void*)arg2;
literal->v->type = RDF_VARIABLE_TERM_TYPE;
((RDF_Variable)literal->v->value)->type = literal->valueType = type;
literal->tv = true;
addLiteral(q, literal);
q->conjunctsOrdered = false;
return noRDFErr;
}
PR_PUBLIC_API(RDF_Error) RDF_AddConjunctVRL(RDF_Query q, RDF_Variable arg1, RDF_Resource s, RDF_Term arg2, RDF_ValueType type, uint8 count) {
RDF_Literal literal = (RDF_Literal)getMem(sizeof(LiteralStruc));
if (literal == NULL) return RDF_NO_MEMORY;
literal->u.value = (void*)arg1;
literal->u.type = RDF_VARIABLE_TERM_TYPE;
((RDF_Variable)literal->u.value)->type = type;
literal->s = s;
literal->valueCount = count;
literal->v = (void*)arg2;
/* value and type of each term already assigned */
literal->valueType = type;
literal->tv = true;
addLiteral(q, literal);
q->conjunctsOrdered = false;
return noRDFErr;
}

View File

@@ -0,0 +1,113 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef query_h___
#define query_h___
/* the RDF Query API. */
#include "rdf.h"
typedef uint8 RDF_TermType; /* type of a term */
/* values of RDF_TermType */
#define RDF_VARIABLE_TERM_TYPE 1
#define RDF_RESOURCE_TERM_TYPE 2
#define RDF_CONSTANT_TERM_TYPE 3
typedef struct _RDF_VariableStruc {
void* value;
RDF_ValueType type;
char* id;
PRBool isResult;
struct _RDF_QueryStruc* query;
} RDF_VariableStruc;
typedef RDF_VariableStruc* RDF_Variable;
typedef struct _RDF_VariableListStruc {
RDF_Variable element;
struct _RDF_VariableListStruc* next;
} RDF_VariableListStruc;
typedef RDF_VariableListStruc* RDF_VariableList;
PR_PUBLIC_API(PRBool) RDF_IsResultVariable(RDF_Variable var);
PR_PUBLIC_API(void) RDF_SetResultVariable(RDF_Variable var, PRBool isResult);
PR_PUBLIC_API(void*) RDF_GetVariableValue(RDF_Variable var);
PR_PUBLIC_API(void) RDF_SetVariableValue(RDF_Variable var, void* value, RDF_ValueType type);
typedef struct _Term {
void* value;
RDF_TermType type;
} TermStruc;
typedef struct TermStruc* RDF_Term;
typedef struct _LiteralStruc {
TermStruc u;
RDF_Resource s;
TermStruc* v;
uint8 valueCount; /* disjunction */
RDF_Cursor c;
PRBool tv;
PRBool bt;
RDF_Variable variable;
RDF_ValueType valueType;
} LiteralStruc;
typedef LiteralStruc* RDF_Literal;
typedef struct _RDF_LiteralListStruc {
RDF_Literal element;
struct _RDF_LiteralListStruc* next;
} RDF_LiteralListStruc;
typedef RDF_LiteralListStruc* RDF_LiteralList;
typedef struct _RDF_QueryStruc {
struct _RDF_VariableListStruc* variables;
struct _RDF_LiteralListStruc* literals;
uint16 numLiterals;
uint16 index;
PRBool conjunctsOrdered;
PRBool queryRunning;
RDF rdf;
} RDF_QueryStruc;
typedef RDF_QueryStruc* RDF_Query;
/* Note: the API assumes that the query parameter is non-NULL. */
PR_PUBLIC_API(RDF_Query) RDF_CreateQuery(RDF rdf);
PR_PUBLIC_API(void) RDF_DestroyQuery(RDF_Query q);
PR_PUBLIC_API(RDF_Variable) RDF_GetVariable(RDF_Query q, char* name);
PR_PUBLIC_API(PRBool) RDF_RunQuery (RDF_Query q);
PR_PUBLIC_API(PRBool) RDF_GetNextElement(RDF_Query q);
PR_PUBLIC_API(void) RDF_EndQuery (RDF_Query q);
PR_PUBLIC_API(RDF_VariableList) RDF_GetVariableList(RDF_Query q);
PR_PUBLIC_API(uint16) RDF_GetVariableListCount(RDF_Query q);
PR_PUBLIC_API(RDF_Variable) RDF_GetNthVariable(RDF_Query q, uint16 index);
PR_PUBLIC_API(RDF_Error) RDF_AddConjunctVRV(RDF_Query q, RDF_Variable arg1, RDF_Resource s, RDF_Variable arg2, RDF_ValueType type);
PR_PUBLIC_API(RDF_Error) RDF_AddConjunctVRO(RDF_Query q, RDF_Variable arg1, RDF_Resource s, void* arg2, RDF_ValueType type);
PR_PUBLIC_API(RDF_Error) RDF_AddConjunctRRO(RDF_Query q, RDF_Resource arg1, RDF_Resource s, void* arg2, RDF_ValueType type);
PR_PUBLIC_API(RDF_Error) RDF_AddConjunctVRR(RDF_Query q, RDF_Variable arg1, RDF_Resource s, RDF_Resource arg2);
PR_PUBLIC_API(RDF_Error) RDF_AddConjunctRRV(RDF_Query q, RDF_Resource arg1, RDF_Resource s, RDF_Variable arg2, RDF_ValueType type);
PR_PUBLIC_API(RDF_Error) RDF_AddConjunctVRL(RDF_Query q, RDF_Variable arg1, RDF_Resource s, RDF_Term arg2, RDF_ValueType type, uint8 count);
#endif /* query_h___ */

View File

@@ -0,0 +1,451 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_RDF_INT_H
#define _RDF_RDF_INT_H
#define WINTEST 0
#define DBMTEST 1
#define FSTEST 1
#define RDF_BUF_SIZE 4096
#define LINE_SIZE 512
#define RDF_BOOKMARKS 128
#define RDF_MCF 129
#define RDF_XML 130
#include <stdlib.h>
#include <string.h>
#include "rdf.h"
#include "nspr.h"
#include "plhash.h"
#include "rdfstr.h"
#ifndef true
#define true PR_TRUE
#endif
#ifndef false
#define false PR_FALSE
#endif
#define null NULL
#define nullp(x) (((void*)x) == ((void*)0))
#define LookupResource(x) ((RDF_Resource)PL_HashTableLookup(resourceHash, x));
#define noRDFErr 0
#define noMoreValuesErr 1
#define MAX_ATTRIBUTES 64
#define RDF_RT 0
#define LFS_RT 1
#define FTP_RT 3
#define ES_RT 4
#define SEARCH_RT 5
#define HISTORY_RT 6
#define LDAP_RT 7
#define PM_RT 8
#define RDM_RT 9
#define IM_RT 10
#define CACHE_RT 11
#define ATALK_RT 12
#define ATALKVIRTUAL_RT 13
#define COOKIE_RT 14
#define JSEC_RT 15
#define PMF_RT 16
#define CHECK_VAR(var, return_value) {if (var == NULL) {/*xxx PR_ASSERT(var); */ return return_value;}}
#define CHECK_VAR1(var) {if (var == NULL) {/*xxx PR_ASSERT(var);*/ return;}}
#ifdef XP_WIN
#define FS_URL_OFFSET 8
#else
#define FS_URL_OFFSET 7
#endif
#define MAX_URL_SIZE 300
#define convertString2UTF8(charsetid, s) \
(s != NULL ? \
INTL_ConvertLineWithoutAutoDetect( \
(charsetid) , \
CS_UTF8, \
(unsigned char*)(s), \
RDF_STRLEN(s) \
) : NULL)
#define stringEquals(x, y) (strcasecomp(x, y) ==0)
/*#define stringAppend(x, y) XP_AppendStr(x,y) */
struct RDF_ResourceStruct {
char* url;
uint8 type;
uint8 flags;
struct RDF_AssertionStruct* rarg1;
struct RDF_AssertionStruct* rarg2;
struct RDF_ListStruct* rdf;
void* pdata;
} ;
#define RDF_GET_SLOT_VALUES_QUERY 0x01
#define RDF_GET_SLOT_VALUE_QUERY 0x02
#define RDF_FIND_QUERY 0x03
#define RDF_ARC_LABELS_IN_QUERY 0x04
#define RDF_ARC_LABELS_OUT_QUERY 0x05
struct RDF_CursorStruct {
RDF_Resource u;
RDF_Resource s;
RDF_Resource match;
void *value;
struct RDF_CursorStruct* current;
RDF rdf;
void* pdata;
PRBool tv;
PRBool inversep;
RDF_ValueType type;
int16 count;
uint16 size;
uint8 queryType;
};
typedef uint8 RDF_BT;
#define getMem(x) PR_Calloc(1,(x))
#define freeMem(x) PR_Free((x))
struct RDF_AssertionStruct {
RDF_Resource u;
RDF_Resource s;
void* value;
PRBool tv;
RDF_ValueType type;
uint8 tags;
struct RDF_AssertionStruct* next;
struct RDF_AssertionStruct* invNext;
struct RDF_TranslatorStruct* db;
} ;
typedef struct RDF_AssertionStruct *Assertion;
typedef struct RDF_FileStruct *RDFFile;
typedef PRBool (*assertProc)(RDFT r, RDF_Resource u, RDF_Resource s, void* value, RDF_ValueType type, PRBool tv);
typedef PRBool (*hasAssertionProc)(RDFT r, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
typedef void* (*getSlotValueProc)(RDFT r, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv) ;
typedef RDF_Cursor (*getSlotValuesProc)(RDFT r, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
typedef PRBool (*unassertProc)(RDFT r, RDF_Resource u, RDF_Resource s, void* value, RDF_ValueType type);
typedef void* (*nextItemProc)(RDFT r, RDF_Cursor c) ;
typedef RDF_Error (*disposeCursorProc)(RDFT r, RDF_Cursor c);
typedef RDF_Error (*disposeResourceProc)(RDFT r, RDF_Resource u);
typedef RDF_Error (*updateProc)(RDFT r, RDF_Resource u);
typedef RDF_Error (*destroyProc)(struct RDF_TranslatorStruct*);
typedef RDF_Cursor (*arcLabelsOutProc)(RDFT r, RDF_Resource u);
typedef RDF_Cursor (*arcLabelsInProc)(RDFT r, RDF_Resource u);
typedef PRBool (*fAssert1Proc) (RDFFile file, RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv) ;
typedef PRBool (*fUnAssert1Proc) (RDFFile file, RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type) ;
typedef void (*accessFileProc) (RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep) ;
struct RDF_ListStruct {
struct RDF_DBStruct* rdf;
struct RDF_ListStruct* next;
} ;
typedef struct RDF_ListStruct *RDFL;
struct RDF_TranslatorStruct {
RDFL rdf;
char* url;
void* pdata;
destroyProc destroy;
hasAssertionProc hasAssertion;
unassertProc unassert;
assertProc assert;
getSlotValueProc getSlotValue;
getSlotValuesProc getSlotValues;
nextItemProc nextValue;
disposeCursorProc disposeCursor;
disposeResourceProc disposeResource;
arcLabelsInProc arcLabelsIn;
arcLabelsInProc arcLabelsOut;
accessFileProc possiblyAccessFile;
updateProc update;
RDFL dependents;
RDFL dependentOn;
};
extern PLHashTable* resourceHash;
extern PLHashTable* dataSourceHash;
extern char* gNavCntrUrl;
struct RDF_DBStruct {
int32 numTranslators;
int32 translatorArraySize;
RDFT* translators;
struct RDF_FileStruct* files;
struct RDF_NotificationStruct* notifs;
void* context;
};
extern RDFT gLocalStore;
extern RDFT gRemoteStore;
extern RDFT gSessionDB;
extern size_t gCoreVocabSize;
extern RDF_Resource* gAllVocab;
/* reading rdf */
#define HEADERS 1
#define BODY 2
struct XMLNameSpaceStruct {
char* as;
char* url;
struct XMLNameSpaceStruct* next;
} ;
typedef struct XMLNameSpaceStruct *XMLNameSpace;
#define RDF_MAX_NUM_FILE_TOKENS 8
struct RDF_FileStructTokens {
RDF_Resource token;
RDF_ValueType type;
int16 tokenNum;
char *data;
};
struct RDF_FileStruct {
char* url;
RDF_Resource currentResource;
RDF_Resource top;
RDF_Resource rtop;
char* currentSlot;
PRBool genlAdded;
PRBool localp;
char* storeAway;
char* line;
XMLNameSpace namespaces;
uint16 status;
char* holdOver;
int32 lineSize;
RDF_Resource stack[16];
uint16 depth ;
uint16 resourceCount;
uint16 resourceListSize;
uint16 assertionCount;
uint16 assertionListSize;
RDF_Resource* resourceList;
Assertion* assertionList;
char* updateURL;
char* postURL;
PRTime lastReadTime;
PRTime *expiryTime;
uint8 fileType;
PRBool locked;
RDF_Resource lastItem;
PRBool tv;
fAssert1Proc assert;
fUnAssert1Proc unassert;
RDFT db;
PRBool refreshingp;
void* pdata;
int16 numFileTokens;
struct RDF_FileStructTokens tokens[RDF_MAX_NUM_FILE_TOKENS];
struct RDF_FileStruct* next;
};
RDF newNavCenterDB();
void walkThroughAllBookmarks (RDF_Resource u);
RDFT NewRemoteStore (char* url);
RDF_Resource nextFindValue (RDF_Cursor c) ;
PRBool isTypeOf (RDF rdf, RDF_Resource u, RDF_Resource v);
RDF getRDFDB (void);
RDFFile readRDFFile (char* url, RDF_Resource top, PRBool localp, RDFT rdf);
void sendNotifications (RDF rdf, RDF_EventType opType, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv, char* ds);
void sendNotifications2 (RDFT rdf, RDF_EventType opType, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv) ;
RDF_Error exitRDF (RDF rdf);
void gcRDFFileInt (RDFFile f);
void parseNextBkBlob(RDFFile f, char* blob, int32 blobSize);
void printAssertion(Assertion as);
RDF_Error addChildAfter (RDFT rdf, RDF_Resource parent, RDF_Resource child, RDF_Resource afterWhat);
RDF_Error addChildBefore (RDFT rdf, RDF_Resource parent, RDF_Resource child, RDF_Resource beforeWhat);
void nlclStoreKill(RDFT rdf, RDF_Resource r);
char* resourceID(RDF_Resource id);
PRBool containerp (RDF_Resource r);
void setContainerp (RDF_Resource r, PRBool contp);
PRBool lockedp (RDF_Resource r);
void setLockedp (RDF_Resource r, PRBool contp);
uint8 resourceType (RDF_Resource r);
void setResourceType (RDF_Resource r, uint8 type);
char* getBaseURL (const char* url) ;
void freeNamespaces (RDFFile f) ;
PRBool asEqual(RDFT r, Assertion as, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
Assertion makeNewAssertion (RDFT r, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
RDFT MakeRemoteStore (char* url);
RDFT MakeMailAccountDB(char* url);
PRDir * OpenDir(char *name);
void PopGetNewMail (RDF_Resource r) ;
void readResourceFile(RDF rdf, RDF_Resource u);
void possiblyGCResource(RDF_Resource u);
PLHashNumber idenHash(const void* key);
RDFT MakeBMKStore (char* url);
/* string utilities */
int16 charSearch(const char c,const char* string);
int16 revCharSearch(const char c, const char* string);
PR_PUBLIC_API(PRBool) startsWith(const char* startPattern,const char* string);
PRBool endsWith(const char* endPattern,const char* string);
PRBool inverseTV(PRBool tv);
void createBootstrapResources();
PRBool urlEquals(const char* url1,const char* url2);
char* append2Strings(const char* str1,const char* str2);
char* convertString2UTF8AndAppend(int16 charsetID, const char* str1,const char* str2);
PRBool substring(const char* pattern, const char* data);
void stringAppend(char* in, const char* append);
RDFFile makeRDFFile (char* url, RDF_Resource top, PRBool localp);
void initRDFFile (RDFFile ans) ;
void parseNextRDFLine (RDFFile f, char* line) ;
void parseNextRDFBlob (RDFFile f, char* blob, int32 size);
void finishRDFParse (RDFFile f) ;
void abortRDFParse (RDFFile f);
void unitTransition (RDFFile f) ;
void assignHeaderSlot (RDFFile f, char* slot, char* value);
RDF_Error getFirstToken (char* line, char* nextToken, int16* l) ;
void addSlotValue (RDFFile f, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, char* op);
void assignSlot (RDF_Resource u, char* slot, char* value, RDFFile f);
RDF_Error parseSlotValue (RDFFile f, RDF_Resource s, char* value, void** parsed_value, RDF_ValueType* data_type) ;
RDF_Resource resolveReference (char *tok, RDFFile f) ;
RDF_Resource resolveGenlPosReference(char* tok, RDFFile f);
RDF_Resource resolveReference (char *tok, RDFFile f) ;
RDF_Resource resolveGenlPosReference(char* tok, RDFFile f);
void beginReadingRDFFile(RDFFile f);
void gcRDFFile (RDFFile f);
#ifdef XP_MAC
char* unescapeURL(char* inURL);
#endif
char* convertFileURLToNSPRCopaceticPath(char* inURL);
PRFileDesc* CallPROpenUsingFileURL(char *fileURL, PRIntn flags, PRIntn mode);
/* DB *CallDBOpenUsingFileURL(char *fileURL, int flags,int mode, DBTYPE type, const void *openinfo); */
char* copyString (const char* url);
PRBool nlocalStoreAssert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv) ;
char* MCDepFileURL (char* url) ;
void initLocalStore(RDFT rdf);
void freeAssertion(Assertion as);
Assertion localStoreAdd (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv) ;
Assertion localStoreRemove (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type) ;
Assertion remoteStoreAdd (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv) ;
Assertion remoteStoreRemove (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type) ;
void* remoteStoreGetSlotValue (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv) ;
void ht_fprintf(PRFileDesc *file, const char *fmt, ...);
RDF_Resource createContainer (char* id);
PRBool isContainer (RDF_Resource r) ;
PRBool isSeparator (RDF_Resource r) ;
PRBool isLeaf (RDF_Resource r) ;
PRBool bookmarkSlotp (RDF_Resource s) ;
void basicAssertions (void) ;
char* makeResourceName (RDF_Resource node) ;
char* makeDBURL (char* name);
/* int rdf_GetURL (MWContext *cx, int method, Net_GetUrlExitFunc *exit_routine, RDFFile rdfFile); */
RDFT MakePopDB (char* url) ;
PRBool nlocalStoreAssert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv) ;
PRBool nlocalStoreUnassert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type) ;
PRBool nlocalStoreHasAssertion (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv) ;
void* nlocalStoreGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv) ;
RDF_Cursor nlocalStoreGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv) ;
void* nlocalStoreNextValue (RDFT mcf, RDF_Cursor c) ;
RDF_Error nlocalStoreDisposeCursor (RDFT mcf, RDF_Cursor c) ;
void createCoreVocab () ;
int parseNextRDFXMLBlobInt(RDFFile f, char* blob, int32 size) ;
PRBool remoteAssert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv) ;
PRBool remoteUnassert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type) ;
PRBool remoteAssert1 (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv) ;
PRBool remoteAssert2 (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv) ;
PRBool remoteUnassert1 (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type) ;
PRBool remoteStoreHasAssertion (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv) ;
void* remoteStoreGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv) ;
RDF_Cursor remoteStoreGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv) ;
RDF_Cursor remoteStoreGetSlotValuesInt (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv) ;
RDF_Resource createSeparator(void);
PRBool
remoteAssert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
void* remoteStoreNextValue (RDFT mcf, RDF_Cursor c) ;
RDF_Error remoteStoreDisposeCursor (RDFT mcf, RDF_Cursor c) ;
PRBool remoteStoreHasAssertion (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv) ;
PRBool remoteStoreHasAssertionInt (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv) ;
PRBool nlocalStoreAddChildAt(RDFT mcf, RDF_Resource obj, RDF_Resource ref, RDF_Resource _new,
PRBool beforep);
RDFT getTranslator (char* url);
RDFT MakeCookieStore (char* url);
char* advertURLOfContainer (RDF r, RDF_Resource u) ;
RDFT RDFTNamed (RDF rdf, char* name) ;
char* RDF_SerializeRDFStore (RDFT store) ;
char * unescapeURL(char *inURL);
extern RDF_WDVocab gWebData;
extern RDF_NCVocab gNavCenter;
extern RDF_CoreVocab gCoreVocab;
#endif

View File

@@ -0,0 +1,177 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file implements high level support for the rdf data model.
For more information on this file, contact rjc or guha
For more information on RDF, look at the RDF section of www.mozilla.org
*/
#include "rdf-int.h"
#include "vocab.h"
#include "vocabint.h"
#include "bmk2mcf.h"
#include "mcf.h"
/* globals */
char *profileDirURL = NULL;
char *gLocalStoreURL = NULL;
char *gBookmarkURL = NULL;
char *gGlobalHistoryURL = NULL;
void *timerID = NULL;
char *gRLForbiddenDomains = NULL;
extern RDF gNCDB ;
static PRBool sRDFInitedB = PR_FALSE;
char* gNavCntrUrl;
char * gNavCenterDataSources[15] =
{"rdf:localStore", "rdf:remoteStore", "rdf:bookmarks", "rdf:remoteStore", "rdf:history",
/* "rdf:ldap", */
"rdf:esftp",
"rdf:lfs", "rdf:CookieStore",
"rdf:columns", "rdf:find",
#ifdef XP_MAC
"rdf:appletalk",
#endif
NULL, NULL
};
RDF
newNavCenterDB()
{
return RDF_GetDB((char**)gNavCenterDataSources);
}
void
walkThroughAllBookmarks (RDF_Resource u)
{
#ifdef MOZILLA_CLIENT
RDF_Cursor c = RDF_GetSources(gNCDB, u, gCoreVocab->RDF_parent, RDF_RESOURCE_TYPE, true);
RDF_Resource next;
while ((next = RDF_NextValue(c)) != NULL) {
if (resourceType(next) == RDF_RT) walkThroughAllBookmarks(next);
}
RDF_DisposeCursor(c);
#endif
}
PR_PUBLIC_API(RDF_Error)
RDF_Init(RDF_InitParams params)
{
#ifdef MOZILLA_CLIENT
char* navCenterURL;
#endif
if ( sRDFInitedB )
return -1;
#ifdef MOZILLA_CLIENT
/*
copy init params out before doing anything else (such as creating vocabulary)
to prevent any XP_GetString round-robin problems (ex: FE could be using XP_GetString
to pass in the init strings, which createVocabs() could affect
*/
profileDirURL = copyString(params->profileURL);
gBookmarkURL = copyString(params->bookmarksURL);
gGlobalHistoryURL = copyString(params->globalHistoryURL);
#endif
resourceHash = PL_NewHashTable(500, PL_HashString, PL_CompareStrings,
PL_CompareValues, NULL, NULL);
dataSourceHash = PL_NewHashTable(100, PL_HashString, PL_CompareStrings,
PL_CompareValues, NULL, NULL);
RDFglueInitialize();
MakeRemoteStore("rdf:remoteStore");
createVocabs();
sRDFInitedB = PR_TRUE;
#ifdef MOZILLA_CLIENT
/* xxx
PREF_SetDefaultCharPref("browser.NavCenter", "http://rdf.netscape.com/rdf/navcntr.rdf");
PREF_CopyCharPref("browser.NavCenter", &navCenterURL);
*/
navCenterURL = copyString("http://rdf.netscape.com/rdf/navcntr.rdf");
if (!RDF_STRCHR(navCenterURL, ':')) {
navCenterURL = makeDBURL(navCenterURL);
}
gNavCntrUrl = copyString(navCenterURL);
*(gNavCenterDataSources + 1) = copyString(navCenterURL);
gNCDB = newNavCenterDB();
freeMem(navCenterURL);
HT_Startup();
/* GuessIEBookmarks(); */
#endif
walkThroughAllBookmarks(RDF_GetResource(NULL, "NC:Bookmarks", true));
return 0;
}
/*need to keep a linked list of all the dbs opened so that they
can all be closed down on exit */
PR_PUBLIC_API(RDF_Error)
RDF_Shutdown ()
{
#ifdef MOZILLA_CLIENT
/* flushBookmarks(); */
HT_Shutdown();
RDFglueExit();
if (profileDirURL != NULL)
{
freeMem(profileDirURL);
profileDirURL = NULL;
}
if (gBookmarkURL != NULL)
{
freeMem(gBookmarkURL);
gBookmarkURL = NULL;
}
if (gGlobalHistoryURL != NULL)
{
freeMem(gGlobalHistoryURL);
gGlobalHistoryURL = NULL;
}
if (gLocalStoreURL != NULL)
{
freeMem(gLocalStoreURL);
gLocalStoreURL = NULL;
}
#endif
disposeAllDBs();
sRDFInitedB = PR_FALSE;
return 0;
}

View File

@@ -0,0 +1,554 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file implements parsing support for the rdf data model.
For more information on this file, contact rjc or guha
For more information on RDF, look at the RDF section of www.mozilla.org
*/
#include "rdfparse.h"
#include "mcf.h"
#define wsCharp(c) ((c == '\r') || (c == '\t') || (c == ' ') || (c == '\n'))
char
decodeEntityRef (char* string, int32* stringIndexPtr, int32 len)
{
if (startsWith("lt;", string)) {
*stringIndexPtr = *stringIndexPtr + 3;
return '<';
} else if (startsWith("gt;", string)) {
*stringIndexPtr = *stringIndexPtr + 3;
return '>';
} else if (startsWith("amp;", string)) {
*stringIndexPtr = *stringIndexPtr + 4;
return '&';
} else return -1;
}
char *
copyStringIgnoreWhiteSpace(char* string)
{
int32 len = RDF_STRLEN(string);
char* buf = (char*)getMem(len + 1);
PRBool inWhiteSpace = 1;
int32 buffIndex = 0;
int32 stringIndex = 0;
while (stringIndex < len) {
char nextChar = *(string + stringIndex);
PRBool wsp = wsCharp(nextChar);
if (!wsp) {
if (nextChar == '&') {
*(buf + buffIndex++) = decodeEntityRef(&string[stringIndex+1],
&stringIndex, len-stringIndex);
} else {
*(buf + buffIndex++) = nextChar;
}
inWhiteSpace = 0;
} else if (!inWhiteSpace) {
*(buf + buffIndex++) = ' ';
inWhiteSpace = 1;
} else {
inWhiteSpace = 1;
}
stringIndex++;
}
return buf;
}
char *
getHref(char** attlist)
{
char* ans = getAttributeValue(attlist, "rdf:href");
if (!ans) ans = getAttributeValue(attlist, "RDF:href");
if (!ans) ans = getAttributeValue(attlist, "href");
return ans;
}
int parseNextRDFXMLBlobInt(RDFFile f, char* blob, int32 size) {
int32 n, last, m;
PRBool somethingseenp = 0;
n = last = 0;
while (n < size) {
char c = blob[n];
m = 0;
somethingseenp = 0;
memset(f->line, '\0', RDF_BUF_SIZE-1);
if (f->holdOver[0] != '\0') {
memcpy(f->line, f->holdOver, RDF_STRLEN(f->holdOver));
m = RDF_STRLEN(f->holdOver);
somethingseenp = 1;
memset(f->holdOver, '\0', RDF_BUF_SIZE-1);
}
while ((n < size) && (wsc(c))) {c = blob[++n];}
/* f->line[m++] = c;
c = blob[++n]; */
while ((m < RDF_BUF_SIZE) && (c != '<') && (c != '>')) {
f->line[m] = c;
m++;
somethingseenp = (somethingseenp || (!(wsc(c))));
n++;
if (n < size) c = blob[n];
else break;
}
if (c == '>') f->line[m] = c;
n++;
if (m > 0) {
if ((c == '<') || (c == '>')) {
last = n;
if (c == '<') f->holdOver[0] = '<';
if (somethingseenp == 1) parseNextRDFToken(f, f->line);
} else if (size > last) {
memcpy(f->holdOver, f->line, m);
}
} else if (c == '<') f->holdOver[0] = '<';
}
return(size);
}
void
parseRDFProcessingInstruction (RDFFile f, char* token)
{
char* attlist[2*MAX_ATTRIBUTES+1];
char* elementName;
tokenizeElement(token, attlist, &elementName);
if (RDF_STRCMP(elementName, "?xml:namespace") == 0) {
char* as = getAttributeValue(attlist, "prefix");
char* url = getAttributeValue(attlist, "ns");
if ((as != NULL) && (url != NULL)) {
XMLNameSpace ns = (XMLNameSpace)getMem(sizeof(struct XMLNameSpaceStruct));
size_t urln = RDF_STRLEN(url);
PRBool addSlash = (url[urln-1] != '/');
if(addSlash) urln++;
ns->url = (char*)getMem(sizeof(char) * (urln + 1));
sprintf(ns->url, "%s%s", url, addSlash ? "/" : "");
ns->as = copyString(as);
ns->next = f->namespaces;
f->namespaces = ns;
}
}
}
void
freeNamespaces (RDFFile f)
{
XMLNameSpace ns1 = f->namespaces;
while (ns1) {
XMLNameSpace next = ns1->next;
freeMem(ns1->as);
freeMem(ns1->url);
freeMem(ns1);
ns1 = next;
}
f->namespaces = NULL;
}
PR_PUBLIC_API(char *)
getAttributeValue (char** attlist, char* elName)
{
size_t n = 0;
if (!attlist) return NULL;
while ((n < 2*MAX_ATTRIBUTES) && (*(attlist + n) != NULL)) {
if (RDF_STRCMP(*(attlist + n), elName) == 0) return *(attlist + n + 1);
n = n + 2;
}
return NULL;
}
PRBool
tagEquals (RDFFile f, char* tag1, char* tag2)
{
return (RDF_STRCMP(tag1, tag2) == 0);
}
void
addElementProps (char** attlist, char* elementName, RDFFile f, RDF_Resource obj)
{
uint32 count = 0;
while (count < 2*MAX_ATTRIBUTES) {
char* attName = attlist[count++];
char* attValue = attlist[count++];
if ((attName == NULL) || (attValue == NULL)) break;
if (!tagEquals(f, attName, "href") && !tagEquals(f, attName, "rdf:href") &&
!tagEquals(f, attName, "RDF:href") && !tagEquals(f, attName, "tv")
&& !tagEquals(f, attName, "id")) {
addSlotValue(f, obj, ResourceFromElementName(f, attName), copyStringIgnoreWhiteSpace(attValue),
RDF_STRING_TYPE, "true");
}
}
}
PRBool
knownObjectElement (char* eln)
{
return (RDF_STRCMP(eln, "RDF:Description") == 0);
}
char *
possiblyMakeAbsolute (RDFFile f, char* url)
{
if (RDF_STRCHR(url, ':') != NULL) {
return copyString(url);
} else {
char* ans = getMem(RDF_STRLEN(f->url) + strlen(url)+2);
sprintf(ans, "%s#%s", f->url, url);
return ans;
}
}
PRBool
containerTagp (RDFFile f, char* elementName)
{
return (tagEquals(f, elementName, "Container") ||
tagEquals(f, elementName, "Topic") ||
(tagEquals(f, elementName, "RelatedLinks")));
}
#define DC_TITLE "http://purl.org/metadata/dublin_core/title"
#define SM_CHILD "http://purl.org/metadata/sitemap/child"
RDF_Resource
ResourceFromElementName (RDFFile f, char* elementName)
{
if(!elementName || (RDF_STRCHR(elementName, ':') == NULL) ) {
return RDF_GetResource(NULL, elementName, 1);
} else {
XMLNameSpace ns = f->namespaces;
while (ns) {
if (startsWith(ns->as, elementName)) {
RDF_Resource ans;
size_t asn = RDF_STRLEN(ns->as);
size_t urln = RDF_STRLEN(ns->url);
char* url = getMem(RDF_STRLEN(ns->url) + strlen(elementName)-asn);
memcpy(url, ns->url, urln);
RDF_STRCAT(url, &elementName[asn+1]);
if (RDF_STRCMP(url, DC_TITLE) == 0) {
ans = gCoreVocab->RDF_name;
} else if (RDF_STRCMP(url, SM_CHILD) == 0) {
ans = gCoreVocab->RDF_child;
} else
ans = RDF_GetResource(NULL, url, 1);
freeMem(url);
return ans;
}
ns = ns->next;
}
return RDF_GetResource(NULL, elementName, 1);
}
}
void
parseNextRDFToken (RDFFile f, char* token)
{
char* attlist[2*MAX_ATTRIBUTES+1];
char* elementName;
if (token[0] != '<') {
if ((f->status == EXPECTING_OBJECT) && (f->depth > 1)) {
RDF_Resource u = f->stack[f->depth-2];
RDF_Resource s = f->stack[f->depth-1];
addSlotValue(f, u, s, copyStringIgnoreWhiteSpace(token), RDF_STRING_TYPE, NULL);
}
} else if (startsWith("<!--", token)) {
return;
} else if (token[1] == '?') {
parseRDFProcessingInstruction(f, token);
} else if (token[1] == '/') {
if ((f->status != EXPECTING_OBJECT) && (f->status != EXPECTING_PROPERTY)) return;
if (f->depth > 0) f->depth--;
f->status = (f->status == EXPECTING_OBJECT ? EXPECTING_PROPERTY : EXPECTING_OBJECT);
} else if ((f->status == 0) && startsWith("<RDF:RDF", token)) {
char* status = NULL;
char* update;
char* post;
f->status = EXPECTING_OBJECT;
tokenizeElement(token, attlist, &elementName);
update = getAttributeValue(attlist, "updateURL");
post = getAttributeValue(attlist, "postURL");
if (update) f->updateURL = copyString(update);
if (post) f->postURL = copyString(post);
status = getAttributeValue(attlist, "status");
if (status && (RDF_STRCMP(status, "replace"))) gcRDFFileInt(f);
} else if (startsWith("<RelatedLinks", token)) {
f->stack[f->depth++] = f->top;
f->status = EXPECTING_PROPERTY;
} else {
PRBool emptyElementp = (token[RDF_STRLEN(token)-2] == '/');
if ((f->status != EXPECTING_OBJECT) && (f->status != EXPECTING_PROPERTY)) return;
tokenizeElement(token, attlist, &elementName);
if ((f->status == EXPECTING_PROPERTY) && (knownObjectElement(elementName))) return;
if (f->status == EXPECTING_OBJECT) {
char* url = NULL;
RDF_Resource obj;
uint16 count = 0;
url = getHref(attlist);
if (url == NULL) url = getAttributeValue(attlist, "id");
if (url) url = possiblyMakeAbsolute(f, url);
obj = ResourceFromElementName(f, url);
if (url) freeMem(url);
addToResourceList(f, obj);
addElementProps (attlist, elementName, f, obj) ;
if (!tagEquals(f, elementName, "RDF:Description")) {
if (containerTagp(f, elementName)) {
setContainerp(obj, 1);
} else {
RDF_Resource eln = ResourceFromElementName(f, elementName);
addSlotValue(f, obj, gCoreVocab->RDF_instanceOf, eln, RDF_RESOURCE_TYPE, getAttributeValue(attlist, "tv"));
}
}
if (f->depth > 1) {
addSlotValue(f, f->stack[f->depth-2], f->stack[f->depth-1], obj,
RDF_RESOURCE_TYPE, getAttributeValue(attlist, "tv"));
}
if (!emptyElementp) {
f->stack[f->depth++] = obj;
f->status = EXPECTING_PROPERTY;
}
} else if (f->status == EXPECTING_PROPERTY) {
char* url;
RDF_Resource obj;
uint16 count = 0;
url = getHref(attlist) ;
if (url) {
RDF_Resource eln = ResourceFromElementName(f, elementName);
char* tvAtt = getAttributeValue(attlist, "tv");
url = possiblyMakeAbsolute(f, url);
obj = ResourceFromElementName(f, url);
freeMem(url);
addElementProps (attlist, elementName, f, obj) ;
addToResourceList(f, obj);
addSlotValue(f, f->stack[f->depth-1], eln,obj,RDF_RESOURCE_TYPE,
getAttributeValue(attlist, "tv"));
} else if ((RDF_STRCMP(elementName, "child") == 0) && attlist[0] &&
(RDF_STRCMP(attlist[0], "instanceOf") == 0) &&
attlist[1] && startsWith("Separator", attlist[1])) {
RDF_Resource sep = createSeparator();
RDF_Resource eln = ResourceFromElementName(f, elementName);
addSlotValue(f, f->stack[f->depth-1], eln,sep,RDF_RESOURCE_TYPE,
getAttributeValue(attlist, "tv"));
}
if (!emptyElementp) {
f->stack[f->depth++] = ResourceFromElementName(f, elementName);
f->status = EXPECTING_OBJECT;
}
}
}
}
void
tokenizeElement (char* attr, char** attlist, char** elementName)
{
size_t n = 1;
size_t s = RDF_STRLEN(attr);
char c ;
size_t m = 0;
size_t atc = 0;
PRBool emptyTagp = (attr[s-2] == '/');
PRBool inAttrNamep = 1;
c = attr[n++];
while (wsc(c)) {
c = attr[n++];
}
*elementName = &attr[n-1];
while (n < s) {
if (wsc(c)) break;
c = attr[n++];
}
attr[n-1] = '\0';
while (atc < 2*MAX_ATTRIBUTES+1) {*(attlist + atc++) = NULL;}
atc = 0;
s = (emptyTagp ? s-2 : s-1);
while (n < s) {
PRBool attributeOpenStringSeenp = 0;
m = 0;
c = attr[n++];
while ((n <= s) && (atc < 2*MAX_ATTRIBUTES)) {
if (inAttrNamep && (m > 0) && (wsc(c) || (c == '='))) {
attr[n-1] = '\0';
*(attlist + atc++) = &attr[n-m-1];
break;
}
if (!inAttrNamep && attributeOpenStringSeenp && (c == '"')) {
attr[n-1] = '\0';
*(attlist + atc++) = &attr[n-m-1];
break;
}
if (inAttrNamep) {
if ((m > 0) || (!wsc(c))) m++;
} else {
if (c == '"') {
attributeOpenStringSeenp = 1;
} else {
if ((m > 0) || (!(wsc(c)))) m++;
}
}
c = attr[n++];
}
inAttrNamep = (inAttrNamep ? 0 : 1);
}
}
void
outputRDFTreeInt (RDF rdf, PRFileDesc *fp, RDF_Resource node, uint32 depth, PRBool localOnly)
{
RDF_Cursor c = RDF_GetSources(rdf, node, gCoreVocab->RDF_parent, RDF_RESOURCE_TYPE, true);
RDF_Resource next;
char* buf = getMem(1024);
char* space = getMem((4*depth)+1);
char* url = resourceID(node);
char* name = RDF_GetResourceName(rdf, node);
char* hrefid;
if ((buf == NULL) || (space == NULL)) return;
if (depth > 0) memset(space, ' ', depth);
if (!RDF_STRCHR(url, ':') || (depth == 0)) {
hrefid = "id";
} else {
hrefid = "rdf:href";
}
if (depth == 0) url="root";
if (containerp(node)) {
if (depth > 0) {
sprintf(buf, "%s<child>\n", space);
PR_Write(fp, buf, RDF_STRLEN(buf));
}
sprintf(buf, "%s<Topic %s=\"%s\"\n%s name=\"%s\">\n", space, hrefid, url, space, name);
PR_Write(fp, buf, RDF_STRLEN(buf));
while ((next = RDF_NextValue(c)) != NULL) {
/* if exporting EVERYTHING, need to skip over certain things */
if ((localOnly == PR_FALSE) || ((!startsWith("ftp:",url)) && (!startsWith("file:",url))
&& (!startsWith("IMAP:", url)) && (!startsWith("nes:", url))
&& (!startsWith("mail:", url)) && (!startsWith("cache:", url))
&& (!startsWith("ldap:", url)) &&
(!urlEquals(resourceID(node), resourceID(gNavCenter->RDF_LocalFiles))) &&
(!urlEquals(resourceID(node), resourceID(gNavCenter->RDF_History)))))
{
outputRDFTreeInt(rdf, fp, next, depth+1, localOnly);
}
}
sprintf(buf, "%s</Topic>\n", space);
PR_Write(fp, buf, RDF_STRLEN(buf));
if (depth > 0) {
sprintf(buf, "%s</child>\n", space);
PR_Write(fp, buf, RDF_STRLEN(buf));
}
} else {
sprintf(buf, "%s<child %s=\"%s\"\n%s name=\"%s\"/>\n", space, hrefid, url, space, name);
PR_Write(fp, buf, RDF_STRLEN(buf));
}
RDF_DisposeCursor(c);
freeMem(buf);
freeMem(space);
}
void
outputRDFTree (RDF rdf, PRFileDesc *fp, RDF_Resource node)
{
ht_fprintf(fp, "<RDF:RDF>\n\n");
outputRDFTreeInt(rdf, fp, node, 0, (node==gNavCenter->RDF_Top) ? PR_TRUE:PR_FALSE);
ht_fprintf(fp, "\n</RDF:RDF>\n");
}
void
addSlotValue (RDFFile f, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, char* op)
{
PRBool tv;
if (f == NULL || u == NULL || s == NULL || v == NULL) return;
if (s == gCoreVocab->RDF_child) {
RDF_Resource temp = (RDF_Resource)v;
if (type != RDF_RESOURCE_TYPE) return;
s = gCoreVocab->RDF_parent;
v = u;
u = temp;
}
if (op == NULL) {
tv = 1;
} else if (RDF_STRCMP(op, "true") == 0) {
tv = 1;
} else if (RDF_STRCMP(op, "false") == 0) {
tv = 0;
} else if (RDF_STRCMP(op, "delete") == 0) {
if (f->unassert) (*f->unassert)(f, f->db, u, s, v, type);
return;
}
if ((s == gCoreVocab->RDF_parent) && (type == RDF_RESOURCE_TYPE)) {
f->genlAdded = true;
if (strstr(resourceID(u), ".rdf") && startsWith("http", resourceID(u))) {
RDFL rl = f->db->rdf;
char* dburl = getBaseURL(resourceID(u));
if (!startsWith(dburl, resourceID((RDF_Resource)v))) {
while (rl) {
RDF_AddDataSource(rl->rdf, dburl);
rl = rl->next;
}
freeMem(dburl);
}
}
}
(*f->assert)(f, f->db, u, s, v, type, tv);
if (s == gCoreVocab->RDF_parent) setContainerp((RDF_Resource)v, 1);
#ifndef MOZILLA_CLIENT
notifySlotValueAdded(u, s, v, type);
#endif
}

View File

@@ -0,0 +1,60 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_RDFPARSE_H_
#define _RDF_RDFPARSE_H_
#include "rdf-int.h"
/* rdfparse.c data structures and defines */
#define wsc(c) ((c == ' ') || (c == '\r') || (c == '\n') || (c == '\t'))
#define EXPECTING_OBJECT 21
#define EXPECTING_PROPERTY 22
/* rdfparse.c function prototypes */
char decodeEntityRef (char* string, int32* stringIndexPtr, int32 len);
char * copyStringIgnoreWhiteSpace(char* string);
char * getHref(char** attlist);
void parseRDFProcessingInstruction (RDFFile f, char* token);
PR_PUBLIC_API(char *) getAttributeValue (char** attlist, char* elName);
PRBool tagEquals (RDFFile f, char* tag1, char* tag2);
void addElementProps (char** attlist, char* elementName, RDFFile f, RDF_Resource obj);
PRBool knownObjectElement (char* eln);
char * possiblyMakeAbsolute (RDFFile f, char* url);
PRBool containerTagp (RDFFile f, char* elementName);
RDF_Resource ResourceFromElementName (RDFFile f, char* elementName);
void parseNextRDFToken (RDFFile f, char* token);
void tokenizeElement (char* attr, char** attlist, char** elementName);
void outputRDFTreeInt (RDF rdf, PRFileDesc *fp, RDF_Resource node, uint32 depth, PRBool localOnly);
void outputRDFTree (RDF rdf, PRFileDesc *fp, RDF_Resource node);
#endif

View File

@@ -0,0 +1,32 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "plstr.h"
#define RDF_STRLEN(s) PL_strlen((s))
#define RDF_STRCMP(s1,s2) PL_strcmp((s1),(s2))
/* #define RDF_STRDUP(s) PL_strdup((s)) evil? */
#define RDF_STRCHR(s,c) PL_strchr((s),(c))
#define RDF_STRRCHR(s,c) PL_strrchr((s),(c))
#define RDF_STRCAT(dest,src) PL_strcat((dest),(src))
#define RDF_STRCASECMP(s1,s2) PL_strcasecmp((s1),(s2))
#define RDF_STRNCASECMP(s1,s2,n) PL_strncasecmp((s1),(s2),(n))
#define RDF_STRCASESTR(s1,s2) PL_strcasestr((s1),(s2))

View File

@@ -0,0 +1,832 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file implements remote store support for the rdf data model.
For more information on this file, contact rjc or guha
For more information on RDF, look at the RDF section of www.mozilla.org
*/
#include "remstore.h"
/* globals */
extern char *profileDirURL;
extern char *gBookmarkURL;
RDFT gLocalStore = 0;
RDFT
MakeRemoteStore (char* url)
{
if (startsWith("rdf:remoteStore", url)) {
if (gRemoteStore == 0) {
gRemoteStore = NewRemoteStore(url);
return gRemoteStore;
} else return gRemoteStore;
} else return NULL;
}
RDFT
MakeFileDB (char* url)
{
if (RDF_STRCHR(url, ':')) {
RDFT ntr = NewRemoteStore(url);
ntr->possiblyAccessFile = RDFFilePossiblyAccessFile ;
if (RDF_STRCMP(gNavCntrUrl, url) == 0)
readRDFFile(url, RDF_GetResource(NULL, url, 1), 0, ntr);
return ntr;
} else return NULL;
}
PRBool
asEqual(RDFT r, Assertion as, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type)
{
return ((as->db == r) && (as->u == u) && (as->s == s) && (as->type == type) &&
((as->value == v) ||
((type == RDF_STRING_TYPE) && ((RDF_STRCMP(v, as->value) == 0) || (((char *)v)[0] =='\0')))));
}
Assertion
makeNewAssertion (RDFT r, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv)
{
Assertion newAs = (Assertion) getMem(sizeof(struct RDF_AssertionStruct));
newAs->u = u;
newAs->s = s;
newAs->value = v;
newAs->type = type;
newAs->tv = tv;
newAs->db = r;
if (RDF_STRCMP(r->url, "rdf:history")) {
int n = 0;
}
return newAs;
}
void
freeAssertion (Assertion as)
{
if (as->type == RDF_STRING_TYPE) {
freeMem(as->value);
}
freeMem(as);
}
PRBool
remoteAssert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv)
{
return (remoteStoreAdd(mcf, u, s, v, type, tv) != NULL);
}
PRBool
remoteUnassert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type)
{
return (remoteStoreRemove(mcf, u, s, v, type) != NULL);
}
PRBool
remoteAssert3 (RDFFile fi, RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv)
{
Assertion as = remoteStoreAdd(mcf, u, s, v, type, tv);
if (as != NULL) {
addToAssertionList(fi, as);
return 1;
} else return 0;
}
PRBool
remoteUnassert3 (RDFFile fi, RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type)
{
Assertion as = remoteStoreRemove(mcf, u, s, v, type);
if (as != NULL) {
removeFromAssertionList(fi, as);
return 1;
} else return 0;
}
void
remoteStoreflushChildren(RDFT mcf, RDF_Resource parent)
{
RDF_Cursor c;
RDF_Resource child;
#if 0
RDF_Cursor cc;
RDF_Resource s;
char *value;
#endif
if (parent == NULL) return;
if ((c = remoteStoreGetSlotValues (mcf, parent, gCoreVocab->RDF_parent,
RDF_RESOURCE_TYPE, true, true)) != NULL)
{
while((child = remoteStoreNextValue (mcf, c)) != NULL)
{
remoteStoreflushChildren(mcf, child);
/* XXX should we remove all arcs coming off of this node? */
#if 0
if ((cc = remoteStoreArcLabelsOut(mcf, child)) != NULL)
{
if ((s = remoteStoreNextValue (mcf, cc)) != NULL)
{
if (s == gCoreVocab->RDF_name)
{
value = remoteStoreGetSlotValue (mcf, child, s,
RDF_STRING_TYPE, PR_FALSE, PR_TRUE);
if (value != NULL)
{
remoteStoreRemove (mcf, child, s,
value, RDF_STRING_TYPE);
}
}
}
remoteStoreDisposeCursor(mcf, cc);
}
#endif
remoteStoreRemove (mcf, child, gCoreVocab->RDF_parent,
parent, RDF_RESOURCE_TYPE);
}
remoteStoreDisposeCursor (mcf, c);
}
}
Assertion
remoteStoreAdd (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv)
{
Assertion nextAs, prevAs, newAs;
nextAs = prevAs = u->rarg1;
if (s == gNavCenter->RDF_Command)
{
if ((type == RDF_RESOURCE_TYPE) && (tv) && (v == gNavCenter->RDF_Command_Refresh))
{
/* flush any children of 'u' */
remoteStoreflushChildren(mcf, u);
}
/* don't store RDF Commands in the remote store */
return(NULL);
}
while (nextAs != null) {
if (asEqual(mcf, nextAs, u, s, v, type)) return null;
prevAs = nextAs;
nextAs = nextAs->next;
}
newAs = makeNewAssertion(mcf, u, s, v, type, tv);
if (prevAs == null) {
u->rarg1 = newAs;
} else {
prevAs->next = newAs;
}
if (type == RDF_RESOURCE_TYPE) {
nextAs = prevAs = ((RDF_Resource)v)->rarg2;
while (nextAs != null) {
prevAs = nextAs;
nextAs = nextAs->invNext;
}
if (prevAs == null) {
((RDF_Resource)v)->rarg2 = newAs;
} else {
prevAs->invNext = newAs;
}
}
sendNotifications2(mcf, RDF_ASSERT_NOTIFY, u, s, v, type, tv);
return newAs;
}
Assertion
remoteStoreRemove (RDFT mcf, RDF_Resource u, RDF_Resource s,
void* v, RDF_ValueType type)
{
Assertion nextAs, prevAs, ans;
PRBool found = false;
nextAs = prevAs = u->rarg1;
while (nextAs != null) {
if (asEqual(mcf, nextAs, u, s, v, type)) {
if (prevAs == nextAs) {
u->rarg1 = nextAs->next;
} else {
prevAs->next = nextAs->next;
}
found = true;
ans = nextAs;
break;
}
prevAs = nextAs;
nextAs = nextAs->next;
}
if (found == false) return null;
if (type == RDF_RESOURCE_TYPE) {
nextAs = prevAs = ((RDF_Resource)v)->rarg2;
while (nextAs != null) {
if (nextAs == ans) {
if (prevAs == nextAs) {
((RDF_Resource)v)->rarg2 = nextAs->invNext;
} else {
prevAs->invNext = nextAs->invNext;
}
}
prevAs = nextAs;
nextAs = nextAs->invNext;
}
}
sendNotifications2(mcf, RDF_DELETE_NOTIFY, u, s, v, type, ans->tv);
return ans;
}
static PRBool
fileReadp (RDFT rdf, char* url, PRBool mark)
{
RDFFile f;
RDFFile rdfFiles = (RDFFile) rdf->pdata;
uint n = 0;
for (f = rdfFiles; (f != NULL) ; f = f->next) {
if (urlEquals(url, f->url)) {
if (mark == true) f->lastReadTime = PR_Now();
return false; /* true; */
}
}
return false;
}
static void
possiblyAccessFile (RDFT mcf, RDF_Resource u, RDF_Resource s, PRBool inversep)
{
if (mcf->possiblyAccessFile)
(*(mcf->possiblyAccessFile))(mcf, u, s, inversep);
}
void
RDFFilePossiblyAccessFile (RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep)
{
if ((resourceType(u) == RDF_RT) &&
(startsWith(rdf->url, resourceID(u))) &&
(s == gCoreVocab->RDF_parent) && (containerp(u))) {
readRDFFile( resourceID(u), u, false, rdf);
/* if(newFile) newFile->lastReadTime = PR_Now(); */
}
}
PRBool
remoteStoreHasAssertion (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv)
{
Assertion nextAs;
if ((s == gNavCenter->RDF_Command) && (type == RDF_RESOURCE_TYPE) && (tv) && (v == gNavCenter->RDF_Command_Refresh))
{
return true;
}
nextAs = u->rarg1;
while (nextAs != null) {
if (asEqual(mcf, nextAs, u, s, v, type) && (nextAs->tv == tv)) return true;
nextAs = nextAs->next;
}
possiblyAccessFile(mcf, u, s, 0);
return false;
}
void *
remoteStoreGetSlotValue (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv)
{
Assertion nextAs;
if ((s == gWebData->RDF_URL) && (tv) && (!inversep) && (type == RDF_STRING_TYPE))
{
return copyString(resourceID(u));
}
nextAs = (inversep ? u->rarg2 : u->rarg1);
while (nextAs != null) {
if ((nextAs->db == mcf) && (nextAs->s == s) && (nextAs->tv == tv) && (nextAs->type == type)) {
void* ans = (inversep ? nextAs->u : nextAs->value);
if (type == RDF_STRING_TYPE) {
return copyString((char*)ans);
} else return ans;
}
nextAs = (inversep ? nextAs->invNext : nextAs->next);
}
if (s == gCoreVocab->RDF_parent) possiblyAccessFile(mcf, u, s, inversep);
return null;
}
RDF_Cursor
remoteStoreGetSlotValuesInt (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv)
{
Assertion as = (inversep ? u->rarg2 : u->rarg1);
RDF_Cursor c;
if (as == null) {
possiblyAccessFile(mcf, u, s, inversep);
as = (inversep ? u->rarg2 : u->rarg1);
if (as == NULL) return null;
}
c = (RDF_Cursor)getMem(sizeof(struct RDF_CursorStruct));
c->u = u;
c->s = s;
c->type = type;
c->inversep = inversep;
c->tv = tv;
c->count = 0;
c->pdata = as;
return c;
}
RDF_Cursor
remoteStoreGetSlotValues (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv)
{
return remoteStoreGetSlotValuesInt(mcf, u, s, type, inversep, tv);
}
RDF_Cursor
remoteStoreArcLabelsIn (RDFT mcf, RDF_Resource u)
{
if (u->rarg2) {
RDF_Cursor c = (RDF_Cursor)getMem(sizeof(struct RDF_CursorStruct));
c->u = u;
c->queryType = RDF_ARC_LABELS_IN_QUERY;
c->pdata = u->rarg2;
return c;
} else return NULL;
}
RDF_Cursor
remoteStoreArcLabelsOut (RDFT mcf, RDF_Resource u)
{
if (u->rarg1) {
RDF_Cursor c = (RDF_Cursor)getMem(sizeof(struct RDF_CursorStruct));
c->u = u;
c->queryType = RDF_ARC_LABELS_OUT_QUERY;
c->pdata = u->rarg1;
return c;
} else return NULL;
}
void *
arcLabelsOutNextValue (RDFT mcf, RDF_Cursor c)
{
while (c->pdata != null) {
Assertion as = (Assertion) c->pdata;
if ((as->db == mcf) && (as->u == c->u)) {
c->value = as->s;
c->pdata = as->next;
return c->value;
}
c->pdata = as->next;
}
return null;
}
void *
arcLabelsInNextValue (RDFT mcf, RDF_Cursor c)
{
while (c->pdata != null) {
Assertion as = (Assertion) c->pdata;
if ((as->db == mcf) && (as->value == c->u)) {
c->value = as->s;
c->pdata = as->invNext;
return c->value;
}
c->pdata = as->invNext;
}
return null;
}
void *
remoteStoreNextValue (RDFT mcf, RDF_Cursor c)
{
if (c->queryType == RDF_ARC_LABELS_OUT_QUERY) {
return arcLabelsOutNextValue(mcf, c);
} else if (c->queryType == RDF_ARC_LABELS_IN_QUERY) {
return arcLabelsInNextValue(mcf, c);
} else {
while (c->pdata != null) {
Assertion as = (Assertion) c->pdata;
if ((as->db == mcf) && (as->s == c->s) && (as->tv == c->tv) && (c->type == as->type)) {
c->value = (c->inversep ? as->u : as->value);
c->pdata = (c->inversep ? as->invNext : as->next);
return c->value;
}
c->pdata = (c->inversep ? as->invNext : as->next);
}
return null;
}
}
RDF_Error
remoteStoreDisposeCursor (RDFT mcf, RDF_Cursor c)
{
freeMem(c);
return noRDFErr;
}
static RDFFile
leastRecentlyUsedRDFFile (RDF mcf)
{
RDFFile lru = mcf->files;
RDFFile f;
#ifndef HAVE_LONG_LONG
int64 result;
#endif /* !HAVE_LONG_LONG */
for (f = mcf->files ; (f != NULL) ; f = f->next) {
if (!f->locked) {
#ifndef HAVE_LONG_LONG
LL_SUB(result, lru->lastReadTime, f->lastReadTime);
if ((!LL_IS_ZERO(result) && LL_GE_ZERO(result)) && (f->localp == false))
#else
if (((lru->lastReadTime - f->lastReadTime) > 0) && (f->localp == false))
#endif /* !HAVE_LONG_LONG */
lru = f;
}
}
if (!lru->locked) {
return lru;
} else return NULL;
}
void
gcRDFFileInt (RDFFile f)
{
int32 n = 0;
while (n < f->assertionCount) {
Assertion as = *(f->assertionList + n);
remoteStoreRemove(f->db, as->u, as->s, as->value, as->type);
freeAssertion(as);
*(f->assertionList + n) = NULL;
n++;
}
n = 0;
while (n < f->resourceCount) {
*(f->resourceList + n) = NULL;
n++;
}
}
RDF_Error
DeleteRemStore (RDFT db)
{
RDFFile f = (RDFFile) db->pdata;
RDFFile next;
while (f) {
next = f->next;
gcRDFFileInt(f);
freeMem(f->assertionList);
freeMem(f->resourceList);
f = next;
}
freeMem(db);
return 0;
}
RDF_Error
remStoreUpdate (RDFT db, RDF_Resource u)
{
RDFFile f = db->pdata;
if (f != NULL) {
int32 n = 0;
PRBool proceedp = 0;
while (n < f->resourceCount) {
if (*(f->resourceList + n++) == u) {
proceedp = 1;
break;
}
}
if (proceedp) {
RDF_Resource top = f->top;
char* url = db->url;
PRBool localp = f->localp;
gcRDFFileInt(f);
freeMem(f->assertionList);
freeMem(f->resourceList);
f->assertionList = NULL;
f->resourceList = NULL;
initRDFFile(f);
f->refreshingp = 1;
beginReadingRDFFile(f);
return 0;
} else return -1;
} else return -1;
}
void
gcRDFFile (RDFFile f)
{
RDFFile f1 = (RDFFile) f->db->pdata;
if (f->locked) return;
if (f == f1) {
f->db->pdata = f->next;
} else {
RDFFile prev = f1;
while (f1 != NULL) {
if (f1 == f) {
prev->next = f->next;
break;
}
prev = f1;
f1 = f1->next;
}
}
gcRDFFileInt(f);
freeMem(f->assertionList);
freeMem(f->resourceList);
}
static PRBool
freeSomeRDFSpace (RDF mcf)
{
RDFFile lru = leastRecentlyUsedRDFFile (mcf);
if (lru== NULL) {
return false;
} else {
gcRDFFile(lru);
freeMem(lru);
return true;
}
}
RDFFile
readRDFFile (char* url, RDF_Resource top, PRBool localp, RDFT db)
{
RDFFile f = makeNewRDFFile(url, top, localp, db);
if (!f) return NULL;
beginReadingRDFFile(f);
return f;
}
RDFFile
makeNewRDFFile (char* url, RDF_Resource top, PRBool localp, RDFT db)
{
if ((!strstr(url, ":/")) ||
(fileReadp(db, url, true))) {
return NULL;
} else {
RDFFile newFile = makeRDFFile(url, top, localp);
if (db->pdata) {
newFile->next = (RDFFile) db->pdata;
db->pdata = newFile;
} else {
db->pdata = (RDFFile) newFile;
}
newFile->assert = remoteAssert3;
newFile->unassert = remoteUnassert3;
if (top) {
if (resourceType(top) == RDF_RT) {
if (strstr(url, ".mcf")) {
newFile->fileType = RDF_MCF;
} else {
newFile->fileType = RDF_XML;
}
} else {
newFile->fileType = resourceType(top);
}
}
newFile->db = db;
return newFile;
}
}
void
possiblyRefreshRDFFiles ()
{
RDFFile f = (RDFFile)gRemoteStore->pdata;
PRTime tm = PR_Now();
while (f != NULL) {
if (f->expiryTime != NULL) {
PRTime *expiry = f->expiryTime;
#ifdef HAVE_LONG_LONG
if ((tm - *expiry) > 0)
#else
int64 result;
LL_SUB(result, tm, *expiry);
if ((!LL_IS_ZERO(result) && LL_GE_ZERO(result)))
#endif
{
gcRDFFile (f);
initRDFFile(f);
beginReadingRDFFile(f);
}
}
f = f->next;
}
}
void
SCookPossiblyAccessFile (RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep)
{
/*if ((resourceType(u) == RDF_RT) && (startsWith("rdf:ht", rdf->url)) &&
(s == gCoreVocab->RDF_parent) &&
(containerp(u))) {
RDFFile newFile = readRDFFile( resourceID(u), u, false, rdf);
if(newFile) newFile->lastReadTime = PR_Now();
} */
}
RDFT
NewRemoteStore (char* url)
{
RDFT ntr;
if ((ntr = (RDFT)getMem(sizeof(struct RDF_TranslatorStruct))) != NULL)
{
ntr->getSlotValue = remoteStoreGetSlotValue;
ntr->getSlotValues = remoteStoreGetSlotValues;
ntr->hasAssertion = remoteStoreHasAssertion;
ntr->nextValue = remoteStoreNextValue;
ntr->disposeCursor = remoteStoreDisposeCursor;
ntr->url = copyString(url);
ntr->destroy = DeleteRemStore;
ntr->arcLabelsIn = remoteStoreArcLabelsIn;
ntr->arcLabelsOut = remoteStoreArcLabelsOut;
ntr->update = remStoreUpdate;
}
return(ntr);
}
RDFT
MakeSCookDB (char* url)
{
if (startsWith("rdf:scook:", url) || (startsWith("rdf:ht", url))) {
RDFT ntr = NewRemoteStore(url);
ntr->possiblyAccessFile = SCookPossiblyAccessFile;
return ntr;
} else return NULL;
}
RDFT
MakeLocalStore (char* url)
{
char* file = makeRDFDBURL(profileDirURL, "localStore.rdf");
RDFT ntr = NewRemoteStore(file);
gLocalStore = ntr;
ntr->assert = remoteAssert;
ntr->unassert = remoteUnassert;
return ntr;
}
void
addToRDFTOut (RDFTOut out)
{
int32 len = RDF_STRLEN(out->temp);
if (len + out->bufferPos < out->bufferSize) {
RDF_STRCAT(out->buffer, out->temp);
out->bufferPos = out->bufferPos + len;
memset(out->temp, '\0', 1000);
} else {
PR_Realloc(out->buffer, out->bufferSize + 20000);
out->bufferSize = out->bufferSize + 20000;
addToRDFTOut (out);
}
}
PRIntn
RDFSerializerEnumerator (PLHashEntry *he, PRIntn i, void *arg)
{
RDF_Resource u = (RDF_Resource)he->value;
RDFTOut out = (RDFTOut) arg;
Assertion as = u->rarg1;
PRBool somethingOutp = 0;
while (as) {
if (as->db == out->store) {
if (!somethingOutp) {
somethingOutp = 1;
sprintf(out->temp, "<RDF:Description href=\"%s\">\n", resourceID(as->u));
addToRDFTOut(out);
}
if (as->type == RDF_RESOURCE_TYPE) {
sprintf(out->temp, " <%s href=\"%s\"/>\n", resourceID(as->s),
resourceID((RDF_Resource)as->value));
} else if (as->type == RDF_INT_TYPE) {
sprintf(out->temp, " <%s dt=\"int\">%i</%s>\n", resourceID(as->s),
(int)as->value, resourceID(as->s));
} else {
sprintf(out->temp, " <%s>%s</%s>\n", resourceID(as->s),
(char*)as->value, resourceID(as->s));
}
addToRDFTOut(out);
}
as = as->next;
}
if (somethingOutp) {
sprintf(out->temp, "</RDF:Description>\n\n");
addToRDFTOut(out);
}
return HT_ENUMERATE_NEXT;
}
char*
RDF_SerializeRDFStore (RDFT store) {
RDFTOut out = getMem(sizeof(struct RDFTOutStruct));
char* ans = out->buffer = getMem(20000);
out->bufferSize = 20000;
out->temp = getMem(1000);
out->store = store;
sprintf(out->temp, "<RDF:RDF>\n\n");
addToRDFTOut(out);
PL_HashTableEnumerateEntries(resourceHash, RDFSerializerEnumerator, out);
sprintf(out->temp, "</RDF:RDF>\n\n");
addToRDFTOut(out);
freeMem(out->temp);
freeMem(out);
return ans;
}

View File

@@ -0,0 +1,85 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_REMSTORE_H_
#define _RDF_REMSTORE_H_
#include "rdf-int.h"
#include "prtime.h"
/* remstore.c data structures and defines */
struct RDFTOutStruct {
char *buffer;
int32 bufferSize;
int32 bufferPos;
char *temp;
RDFT store;
};
typedef struct RDFTOutStruct *RDFTOut;
/* remstore.c function prototypes */
RDFT MakeRemoteStore (char* url);
RDFT existingRDFFileDB (char* url);
RDFT MakeFileDB (char* url);
void freeAssertion (Assertion as);
PRBool remoteAssert3 (RDFFile fi, RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
PRBool remoteUnassert3 (RDFFile fi, RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
void remoteStoreflushChildren(RDFT mcf, RDF_Resource parent);
Assertion remoteStoreAdd (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
Assertion remoteStoreRemove (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
PRBool fileReadablep (char* id);
PRBool remoteStoreHasAssertionInt (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
PRBool remoteStoreHasAssertion (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
void * remoteStoreGetSlotValue (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
RDF_Cursor remoteStoreGetSlotValuesInt (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
RDF_Cursor remoteStoreGetSlotValues (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
RDF_Cursor remoteStoreArcLabelsIn (RDFT mcf, RDF_Resource u);
RDF_Cursor remoteStoreArcLabelsOut (RDFT mcf, RDF_Resource u);
void * arcLabelsOutNextValue (RDFT mcf, RDF_Cursor c);
void * arcLabelsInNextValue (RDFT mcf, RDF_Cursor c);
void * remoteStoreNextValue (RDFT mcf, RDF_Cursor c);
RDF_Error remoteStoreDisposeCursor (RDFT mcf, RDF_Cursor c);
RDF_Error DeleteRemStore (RDFT db);
RDF_Error remStoreUpdate (RDFT db, RDF_Resource u);
void gcRDFFile (RDFFile f);
void RDFFilePossiblyAccessFile (RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep);
void possiblyRefreshRDFFiles ();
void SCookPossiblyAccessFile (RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep);
RDFT MakeSCookDB (char* url);
void addToRDFTOut (RDFTOut out);
PRIntn RDFSerializerEnumerator (PLHashEntry *he, PRIntn i, void *arg);
RDFFile makeNewRDFFile (char* url, RDF_Resource top, PRBool localp, RDFT db) ;
static PRBool fileReadp (RDFT rdf, char* url, PRBool mark);
static void possiblyAccessFile (RDFT mcf, RDF_Resource u, RDF_Resource s, PRBool inversep);
static RDFFile leastRecentlyUsedRDFFile (RDF mcf);
static PRBool freeSomeRDFSpace (RDF mcf);
RDFFile reReadRDFFile (char* url, RDF_Resource top, PRBool localp, RDFT db);
#endif

View File

@@ -0,0 +1,440 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file implements Super Cookie support for the rdf data model.
For more information on this file, contact rjc or guha
For more information on RDF, look at the RDF section of www.mozilla.org
*/
#include "rdf-int.h"
#include "scook.h"
#include "glue.h"
#include "remstore.h"
/* externs */
extern char* profileDirURL;
char *
makeSCookPathname(char* name)
{
char *ans ;
size_t s;
if ((ans = (char*) getMem(RDF_STRLEN(profileDirURL) + strlen(name) + 8)) != NULL) {
s = RDF_STRLEN(profileDirURL);
memcpy(ans, profileDirURL, s);
if (ans[s-1] != '/') {
ans[s++] = '/';
}
memcpy(&ans[s], "SCook/", 5);
s = s + 5;
#ifdef XP_WIN
if (ans[9] == '|') ans[9] = ':';
#endif
CallPRMkDirUsingFileURL(ans, 00700);
memcpy(&ans[s], name, RDF_STRLEN(name));
}
return(ans);
}
PRBool
SCookAssert1 (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv)
{
return 0;
}
PRBool
SCookAssert3 (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv)
{
return (SCookAssert(mcf, u, s, v, type, tv) != NULL);
}
PRBool
SCookAssert2 (RDFFile file, RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv)
{
Assertion as = SCookAssert(mcf , u, s, v, type, tv);
if (as != NULL) {
void addToAssertionList (RDFFile f, Assertion as) ;
addToAssertionList(file, as);
return 1;
} else return 0;
}
Assertion
SCookAssert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type, PRBool tv)
{
Assertion nextAs, prevAs, newAs;
nextAs = prevAs = getArg1(mcf, u);
while (nextAs != null) {
if (asEqual(mcf, nextAs, u, s, v, type)) return null;
prevAs = nextAs;
nextAs = nextAs->next;
}
newAs = makeNewAssertion(mcf, u, s, v, type, tv);
if (prevAs == null) {
setArg1(mcf, u, newAs);
} else {
prevAs->next = newAs;
}
if (type == RDF_RESOURCE_TYPE) {
nextAs = prevAs = getArg2(mcf, (RDF_Resource)v);
while (nextAs != null) {
prevAs = nextAs;
nextAs = nextAs->invNext;
}
if (prevAs == null) {
setArg2(mcf, ((RDF_Resource)v), newAs);
} else {
prevAs->invNext = newAs;
}
}
/* XXX have to mark the entire subtree XXX */
sendNotifications2(mcf, RDF_ASSERT_NOTIFY, u, s, v, type, tv);
return newAs;
}
PRBool
SCookUnassert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v,
RDF_ValueType type)
{
Assertion as = SCookRemove(mcf, u, s, v, type);
freeMem(as);
return (as != NULL);
}
Assertion
SCookRemove (RDFT mcf, RDF_Resource u, RDF_Resource s,
void* v, RDF_ValueType type)
{
Assertion nextAs, prevAs, ans;
PRBool found = false;
nextAs = prevAs = getArg1(mcf, u);
while (nextAs != null) {
if (asEqual(mcf, nextAs, u, s, v, type)) {
if (prevAs == nextAs) {
setArg1(mcf, u, nextAs->next);
} else {
prevAs->next = nextAs->next;
}
found = true;
ans = nextAs;
break;
}
prevAs = nextAs;
nextAs = nextAs->next;
}
if (found == false) return null;
if (type == RDF_RESOURCE_TYPE) {
nextAs = prevAs = getArg2(mcf, (RDF_Resource)v);
while (nextAs != null) {
if (nextAs == ans) {
if (prevAs == nextAs) {
setArg2(mcf, ((RDF_Resource)v), nextAs->invNext);
} else {
prevAs->invNext = nextAs->invNext;
}
}
prevAs = nextAs;
nextAs = nextAs->invNext;
}
}
/* Need to make sure that if something is removed from the bookmark tree,
the type is updated */
sendNotifications2(mcf, RDF_DELETE_NOTIFY, u, s, v, type, ans->tv);
return ans;
}
PRBool
SCookHasAssertion (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv)
{
Assertion nextAs;
nextAs = getArg1(mcf, u);
while (nextAs != null) {
if (asEqual(mcf, nextAs, u, s, v, type) && (nextAs->tv == tv)) return true;
nextAs = nextAs->next;
}
possiblyAccessSCookFile(mcf, u, s, 0);
return false;
}
void *
SCookGetSlotValue (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv)
{
Assertion nextAs;
nextAs = (inversep ? getArg2(mcf, u) : getArg1(mcf, u));
while (nextAs != null) {
if ((nextAs->s == s) && (nextAs->tv == tv) && (nextAs->type == type)) {
return (inversep ? nextAs->u : nextAs->value);
}
nextAs = (inversep ? nextAs->invNext : nextAs->next);
}
possiblyAccessSCookFile(mcf, u, s, inversep);
return null;
}
RDF_Cursor
SCookGetSlotValues (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv)
{
Assertion as = (inversep ? getArg2(mcf, u) : getArg1(mcf, u));
RDF_Cursor c;
if (as == null) {
possiblyAccessSCookFile(mcf, u, s, inversep);
as = (inversep ? getArg2(mcf, u) : getArg1(mcf, u));
if (as == NULL) return null;
}
c = (RDF_Cursor)getMem(sizeof(struct RDF_CursorStruct));
c->u = u;
c->s = s;
c->type = type;
c->inversep = inversep;
c->tv = tv;
c->count = 0;
c->pdata = as;
return c;
}
void *
SCookNextValue (RDFT mcf, RDF_Cursor c)
{
while (c->pdata != null) {
Assertion as = (Assertion) c->pdata;
if ((as->s == c->s) && (as->tv == c->tv) && (c->type == as->type)) {
if (c->s == gCoreVocab->RDF_slotsHere) {
c->value = as->s;
} else {
c->value = (c->inversep ? as->u : as->value);
}
c->pdata = (c->inversep ? as->invNext : as->next);
return c->value;
}
c->pdata = (c->inversep ? as->invNext : as->next);
}
return null;
}
RDF_Error
SCookDisposeCursor (RDFT mcf, RDF_Cursor c)
{
freeMem(c);
return noRDFErr;
}
Assertion
getArg1 (RDFT r, RDF_Resource u)
{
return PL_HashTableLookup(((SCookDB)r->pdata)->lhash, u);
}
Assertion
getArg2 (RDFT r, RDF_Resource u)
{
return PL_HashTableLookup(((SCookDB)r->pdata)->rhash, u);
}
void
setArg1 (RDFT r, RDF_Resource u, Assertion as)
{
if (as == NULL) {
PL_HashTableRemove(((SCookDB)r->pdata)->lhash, u);
} else {
PL_HashTableAdd(((SCookDB)r->pdata)->lhash, u, as);
}
}
void
setArg2 (RDFT r, RDF_Resource u, Assertion as)
{
if (as == NULL) {
PL_HashTableRemove(((SCookDB)r->pdata)->rhash, u);
} else {
PL_HashTableAdd(((SCookDB)r->pdata)->rhash, u, as);
}
}
void
gcSCookFile (RDFT rdf, RDFFile f)
{
int16 n = 0;
RDFFile f1;
SCookDB sk = (SCookDB)rdf->pdata;
f1 = sk->rf;
if (f->locked) return;
if (f == f1) {
sk->rf = f->next;
} else {
RDFFile prev = f1;
while (f1 != NULL) {
if (f1 == f) {
prev->next = f->next;
break;
}
prev = f1;
f1 = f1->next;
}
}
while (n < f->assertionCount) {
Assertion as = *(f->assertionList + n);
SCookUnassert(rdf, as->u, as->s, as->value, as->type);
freeAssertion(as);
*(f->assertionList + n) = NULL;
n++;
}
n = 0;
while (n < f->resourceCount) {
RDF_Resource u = *(f->resourceList + n);
possiblyGCResource(u);
n++;
}
freeMem(f->assertionList);
freeMem(f->resourceList);
}
void
disposeAllSCookFiles (RDFT rdf, RDFFile f)
{
if (f != NULL) {
disposeAllSCookFiles(rdf, f->next);
gcSCookFile(rdf, f);
}
}
void
SCookDisposeDB (RDFT rdf)
{
SCookDB db = (SCookDB)rdf->pdata;
disposeAllSCookFiles(rdf, db->rf);
PL_HashTableDestroy(db->rhash);
PL_HashTableDestroy(db->lhash);
freeMem(db);
}
static PRBool
SCookFileReadp (RDFT rdf, RDF_Resource u)
{
RDFFile f;
SCookDB db = (SCookDB)rdf->pdata;
uint n = 0;
for (f = db->rf; (f != NULL) ; f = f->next) {
n++;
if (urlEquals( resourceID(u), f->url)) {
return true;
}
}
return false;
}
void
possiblyAccessSCookFile (RDFT mcf, RDF_Resource u, RDF_Resource s, PRBool inversep)
{
if ((s == gCoreVocab->RDF_parent) && (strstr(resourceID(u), ":/")) &&
(((SCookDB)mcf->pdata)->rf != NULL) && (containerp(u)) &&
(resourceType(u) == RDF_RT) && (!SCookFileReadp(mcf, u))) {
RDFFile newFile = makeRDFFile( resourceID(u), u, 0);
SCookDB db = (SCookDB)mcf->pdata;
newFile->next = db->rf;
newFile->fileType = RDF_XML;
newFile->db = mcf;
db->rf = newFile;
newFile->db = mcf;
newFile->assert = SCookAssert2;
beginReadingRDFFile(newFile);
}
}
void SCookPossiblyAccessFile1 (RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep) {
if ((resourceType(u) == RDF_RT) && (RDF_STRCMP(rdf->url, "rdf:ht") ==0) &&
(strstr(resourceID(u), ".rdf") || strstr(resourceID(u), ".mcf")) &&
(s == gCoreVocab->RDF_parent) &&
(containerp(u))) {
RDFFile newFile = readRDFFile( resourceID(u), u, false, rdf);
if(newFile) newFile->lastReadTime = PR_Now();
}
}
RDFT
MakeSCookDB1 (char* url)
{
if (startsWith("rdf:scook:", url) || (startsWith("rdf:ht", url))) {
RDFT ntr = (RDFT)getMem(sizeof(struct RDF_TranslatorStruct));
ntr->assert = NULL;
ntr->unassert = NULL;
ntr->getSlotValue = remoteStoreGetSlotValue;
ntr->getSlotValues = remoteStoreGetSlotValues;
ntr->hasAssertion = remoteStoreHasAssertion;
ntr->nextValue = remoteStoreNextValue;
ntr->disposeCursor = remoteStoreDisposeCursor;
ntr->possiblyAccessFile = RDFFilePossiblyAccessFile ;
ntr->url = copyString(url);
return ntr;
} else return NULL;
}

View File

@@ -0,0 +1,69 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_SCOOK_H_
#define _RDF_SCOOK_H_
#include "rdf-int.h"
/* scook.c data structures */
typedef struct _SCookDBStruct {
PLHashTable* lhash;
PLHashTable* rhash;
char* reader;
RDFFile rf;
RDFT db;
} SCookDBStruct;
typedef SCookDBStruct* SCookDB;
/* scook.c function prototypes */
NSPR_BEGIN_EXTERN_C
char * makeSCookPathname(char* name);
PRBool SCookAssert1 (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
PRBool SCookAssert3 (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
PRBool SCookAssert2 (RDFFile file, RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
Assertion SCookAssert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
PRBool SCookUnassert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
Assertion SCookRemove (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
PRBool SCookHasAssertion (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
void * SCookGetSlotValue (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
RDF_Cursor SCookGetSlotValues (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
void * SCookNextValue (RDFT mcf, RDF_Cursor c);
RDF_Error SCookDisposeCursor (RDFT mcf, RDF_Cursor c);
Assertion getArg1 (RDFT r, RDF_Resource u);
Assertion getArg2 (RDFT r, RDF_Resource u);
void setArg1 (RDFT r, RDF_Resource u, Assertion as);
void setArg2 (RDFT r, RDF_Resource u, Assertion as);
void gcSCookFile (RDFT rdf, RDFFile f);
void disposeAllSCookFiles (RDFT rdf, RDFFile f);
void SCookDisposeDB (RDFT rdf);
void possiblyAccessSCookFile (RDFT mcf, RDF_Resource u, RDF_Resource s, PRBool inversep);
RDFT MakeSCookDB (char* url);
NSPR_END_EXTERN_C
#endif

View File

@@ -0,0 +1,177 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* test.cpp
*
* This file is provided to ensure that the RDF engine will
* compile and run standalone (outside of mozilla). It may also
* be useful as a demonstration of how to initialize and
* use the engine, and possibly for performance testing.
* Finally, it ensures that the header files are probably written
* for C++.
*
* Currently this program simply reads in an rdf site-map file
* and spits it back out to the display. Feel free to
* modify/enhance as desired.
*
* See Dan Libby (danda@netscape.com) for more info.
*
*/
#include "stdlib.h"
#include "rdf-int.h"
#include "rdf.h"
#include "rdfparse.h"
const char *dataSources[] = {
"rdf:remoteStore", NULL
};
void
main(int argc, char** argv)
{
RDF rdf;
RDF_Error err;
RDF_InitParamsStruct initParams = {0};
RDF_Resource u, s, root;
void *v;
RDFFile file;
#ifdef XP_WIN
char* fileURL = (argc > 1) ? argv[1] : "file:///test.rdf";
#else
char* fileURL = (argc > 1) ? argv[1] : "file://test.rdf";
#endif
char* rootURL = (char*)getMem(200);
err = RDF_Init(&initParams);
if (err)
{
perror("RDF_Init: ");
exit(1);
}
else
{
printf("RDF Init success\n");
}
/*
* Try and get a reference to the remote store DB
*/
rdf = RDF_GetDB(dataSources);
if (rdf == NULL)
{
perror("RDF_GetDB");
exit(1);
}
else
{
printf("RDF_GetDB success\n");
}
sprintf(rootURL, "%s#root", fileURL);
root = (RDF_Resource)RDF_GetResource(NULL, rootURL, PR_TRUE);
setResourceType(root, RDF_RT);
/* Create a test resource */
u = RDF_GetResource(rdf, "http://people.netscape.com/danda/", TRUE);
s = gCoreVocab->RDF_name;
v = "Dan Libby";
/* make an assertion into RDF's graph */
RDF_Assert(rdf, u,s,v, RDF_STRING_TYPE);
/* check to see if assertion exists */
if (!RDF_HasAssertion(rdf,u,s,v, RDF_STRING_TYPE, true))
{
printf("Assertion failure.\n");
}
else
{
printf("Assertion success.\n");
}
/* Import an RDF file */
printf("Reading \"%s\"\n", fileURL);
fflush(stdout);
file = readRDFFile (fileURL, root, PR_TRUE, gRemoteStore);
if (file && file->assertionCount > 0)
{
printf("\"%s\" read in successfully. (%i assertions)\n", fileURL, file->assertionCount);
fflush(stdout);
PRFileDesc *fd = PR_GetSpecialFD(PR_StandardOutput);
outputRDFTree (rdf, fd, root);
#if 0
RDF_Cursor c;
int i = 0;
c = RDF_GetSources(rdf, root, gCoreVocab->RDF_parent, RDF_RESOURCE_TYPE, true);
if (c)
{
u = (RDF_Resource)RDF_NextValue(c);
while (u)
{
printf("%i: %s\n", ++i, u->url);
u = (RDF_Resource)RDF_NextValue(c);
}
RDF_DisposeCursor(c);
}
#endif
}
else
{
printf("error reading %s\n", fileURL);
}
RDF_Shutdown();
}
/* This function has to be here when building standalone RDF or you
* will get a link error.
*/
extern "C"
void notifySlotValueAdded(RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type)
{
if(type == RDF_STRING_TYPE)
{
#if 0
printf("String Value added: %s\n", (char*)v);
#endif
}
else if(type == RDF_RESOURCE_TYPE)
{
if(type == RDF_RESOURCE_TYPE)
{
/* Right here you can find out when
* resources are added, and what their
* ids are, for querying later. This is
* useful when the ID of the resource is
* not known at compile time.
*/
#if 0
printf("Resource added, ID: %s\n", resourceID((RDF_Resource)v));
#endif
}
}
}

View File

@@ -0,0 +1,798 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file implements utility routines for the rdf data model.
For more information on this file, contact rjc or guha
For more information on RDF, look at the RDF section of www.mozilla.org
*/
#include "utils.h"
#include "vocabint.h"
/* globals */
PRBool rdfDBInited = 0;
PLHashTable* resourceHash = 0;
PLHashTable* dataSourceHash = 0;
RDFT gRemoteStore = 0;
RDFT gSessionDB = 0;
/* externs */
extern char *profileDirURL;
#define INITIAL_RESOURCE_LIST_SIZE 50
#define INITIAL_ASSERTION_LIST_SIZE 100
#define GROW_LIST_INCR 50
int
compareStrings(char *s1, char *s2)
{
return RDF_STRCASECMP(s1, s2);
}
char *
makeRDFDBURL(char* directory, char* name)
{
char *ans;
size_t s;
if (profileDirURL == NULL) return NULL;
if ((ans = (char*) getMem(RDF_STRLEN(profileDirURL) + strlen(directory) + strlen(name) + 3)) != NULL) {
s = RDF_STRLEN(profileDirURL);
memcpy(ans, profileDirURL, s);
if (ans[s-1] != '/') {
ans[s++] = '/';
}
stringAppend(ans, directory);
stringAppend(ans, "/");
stringAppend(ans, name);
}
return(ans);
}
RDF_Resource
getMCFFrtop (char* furl)
{
char* url = getBaseURL(furl);
RDF_Resource r;
r = RDF_GetResource(NULL, url, 1);
freeMem(url);
return r;
}
char*
copyString (const char* url) {
int32 len = RDF_STRLEN(url);
char* newStr = (char*)getMem(len+1);
if (newStr != NULL) {
memcpy(newStr, url, len);
}
return newStr;
}
RDFFile
makeRDFFile (char* url, RDF_Resource top, PRBool localp)
{
RDFFile ans = (RDFFile)getMem(sizeof(struct RDF_FileStruct));
/* ans->rdf = rdf; */
ans->url = getBaseURL(url);
ans->top = top;
ans->localp = localp;
if (!localp) ans->refreshingp = PR_TRUE;
initRDFFile(ans);
return ans;
}
void
initRDFFile (RDFFile ans)
{
char* url = ans->url;
ans->rtop = getMCFFrtop(url);
ans->line = (char*)getMem(RDF_BUF_SIZE);
ans->currentSlot = (char*)getMem(100);
ans->resourceList = (RDF_Resource*)getMem(INITIAL_RESOURCE_LIST_SIZE * sizeof(RDF_Resource));
ans->assertionList = (Assertion*)getMem(INITIAL_ASSERTION_LIST_SIZE * sizeof(Assertion));
ans->resourceListSize = INITIAL_RESOURCE_LIST_SIZE;
ans->assertionListSize = INITIAL_ASSERTION_LIST_SIZE;
ans->holdOver = (char*)getMem(RDF_BUF_SIZE);
ans->depth = 1;
ans->lastItem = ans->stack[0] = ans->top;
ans->locked = ans->localp;
ans->lineSize = LINE_SIZE;
ans->tv = true;
ans->resourceCount = 0;
ans->assertionCount = 0;
}
void
addToResourceList (RDFFile f, RDF_Resource u)
{
if (f->resourceListSize == f->resourceCount) {
RDF_Resource* newResourceList = (RDF_Resource*)getMem(sizeof(RDF_Resource)*(f->resourceListSize + GROW_LIST_INCR));
RDF_Resource* old = f->resourceList;
memcpy((char*)newResourceList, (char*)f->resourceList, sizeof(RDF_Resource)*f->resourceListSize);
f->resourceList = newResourceList;
f->resourceListSize = f->resourceListSize + GROW_LIST_INCR;
freeMem(old);
}
*(f->resourceList + f->resourceCount++) = u;
}
void
addToAssertionList (RDFFile f, Assertion as)
{
if (f->assertionListSize == f->assertionCount) {
Assertion* newAssertionList = (Assertion*)getMem(sizeof(RDF_Resource)*(f->assertionListSize + GROW_LIST_INCR));
Assertion* old = f->assertionList;
memcpy((char*)newAssertionList, (char*)f->assertionList, sizeof(RDF_Resource)*f->assertionListSize);
f->assertionList = newAssertionList;
f->assertionListSize = f->assertionListSize + GROW_LIST_INCR;
freeMem(old);
}
*(f->assertionList + f->assertionCount++) = as;
}
void
removeFromAssertionList(RDFFile f, Assertion as)
{
/* XXX implement */
}
void
ht_fprintf(PRFileDesc *file, const char *fmt, ...)
{
va_list ap;
char *buf;
va_start(ap, fmt);
buf = PR_smprintf(fmt, ap);
va_end(ap);
if(buf) {
PR_Write(file, buf, RDF_STRLEN(buf));
free(buf);
}
}
void
ht_rjcprintf(PRFileDesc *file, const char *fmt, const char *data)
{
char *buf;
buf = PR_smprintf(fmt, data);
if(buf) {
PR_Write(file, buf, RDF_STRLEN(buf));
free(buf);
}
}
char *
makeDBURL(char* name)
{
char *ans;
size_t s;
if (profileDirURL == NULL) return NULL;
if ((ans = (char*) getMem(RDF_STRLEN(profileDirURL) + strlen(name) + 3)) != NULL) {
s = RDF_STRLEN(profileDirURL);
memcpy(ans, profileDirURL, s);
if (ans[s-1] != '/') {
ans[s++] = '/';
}
memcpy(&ans[s], name, RDF_STRLEN(name));
#ifdef XP_WIN
if (ans[9] == '|') ans[9] = ':';
#endif
}
return(ans);
}
PLHashNumber
idenHash (const void *key)
{
return (PLHashNumber)key;
}
int
idenEqual (const void *v1, const void *v2)
{
return (v1 == v2);
}
PRBool
inverseTV (PRBool tv)
{
if (tv == true) {
return false;
} else return true;
}
char *
append2Strings (const char* str1, const char* str2)
{
int32 l1 = RDF_STRLEN(str1);
int32 len = l1 + RDF_STRLEN(str2);
char* ans = (char*) getMem(len+1);
memcpy(ans, str1, l1);
memcpy(&ans[l1], str2, len-l1);
return ans;
}
void
stringAppendBase (char* dest, const char* addition)
{
int32 l1 = RDF_STRLEN(dest);
int32 l2 = RDF_STRLEN(addition);
int32 l3 = charSearch('#', addition);
if (l3 != -1) l2 = l3;
memcpy(&dest[l1], addition, l2);
}
void
stringAppend (char* dest, const char* addition)
{
int32 l1 = RDF_STRLEN(dest);
int32 l2 = RDF_STRLEN(addition);
memcpy(&dest[l1], addition, l2);
}
int16
charSearch (const char c, const char* data)
{
char* ch = RDF_STRCHR(data, c);
if (ch) {
return (ch - data);
} else {
return -1;
}
}
PRBool
endsWith (const char* pattern, const char* uuid)
{
short l1 = RDF_STRLEN(pattern);
short l2 = RDF_STRLEN(uuid);
short index;
if (l2 < l1) return false;
for (index = 1; index <= l1; index++) {
if (toupper(pattern[l1-index]) != toupper(uuid[l2-index])) return false;
}
return true;
}
PR_PUBLIC_API(PRBool)
startsWith (const char* pattern, const char* uuid)
{
short l1 = RDF_STRLEN(pattern);
short l2 = RDF_STRLEN(uuid);
if (l2 < l1) return false;
return (RDF_STRNCASECMP(pattern, uuid, l1) == 0);
}
PRBool
substring (const char* pattern, const char* data)
{
char *p = RDF_STRCASESTR(data, pattern);
return p != NULL;
}
int16
revCharSearch (const char c, const char* data)
{
char *p = RDF_STRRCHR(data, c);
return p ? p-data : -1;
}
PRBool
urlEquals (const char* url1, const char* url2)
{
int16 n1 = charSearch('#', url1);
int16 n2 = charSearch('#', url2);
if ((n1 == -1) && (n2 == -1)) {
return (RDF_STRCMP(url1, url2) == 0);
} else if ((n2 == -1) && (n1 > 0)) {
return ((RDF_STRLEN(url2) == (size_t)(n1)) && (strncmp(url1, url2, n1) == 0));
} else if ((n1 == -1) && (size_t) (n2 > 0)) {
return ((RDF_STRLEN(url1) == (size_t)(n2)) && (strncmp(url1, url2, n2) == 0));
} else return 0;
}
PRBool
isSeparator (RDF_Resource r)
{
return (startsWith("separator", resourceID(r)) || startsWith("nc:separator", resourceID(r))) ;
}
char *
getBaseURL (const char* url)
{
int n = charSearch('#' , url);
char* ans;
if (n == -1) return copyString(url);
if (n == 0) return NULL;
ans = getMem(n+1);
memcpy(ans, url, n);
return ans;
}
void
setContainerp (RDF_Resource r, PRBool val)
{
if (val) {
r->flags |= CONTAINER_FLAG;
} else {
r->flags &= (~CONTAINER_FLAG);
}
}
PRBool
containerp (RDF_Resource r)
{
return (r->flags & CONTAINER_FLAG);
}
void
setLockedp (RDF_Resource r, PRBool val)
{
if (val) {
r->flags |= LOCKED_FLAG;
} else {
r->flags &= (~LOCKED_FLAG);
}
}
PRBool
lockedp (RDF_Resource r)
{
return (r->flags & LOCKED_FLAG);
}
uint8
resourceType (RDF_Resource r)
{
return r->type;
}
void
setResourceType (RDF_Resource r, uint8 val)
{
r->type = val;
}
char *
resourceID(RDF_Resource r)
{
return r->url;
}
char* opTypeToString (RDF_EventType opType) {
switch (opType) {
case RDF_ASSERT_NOTIFY :
return "Assert";
case RDF_INSERT_NOTIFY :
return "Insert";
case RDF_DELETE_NOTIFY :
return "Unassert";
}
return "Unknown Op";
}
void traceNotify (char* event, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type) {
#ifdef DEBUG_guha1
char* traceLine = getMem(1000);
if (type == RDF_INT_TYPE) {
sprintf(traceLine, "%s %s(%s, %i)\n",
event, resourceID(s), resourceID(u), (int) v);
} else if (type == RDF_STRING_TYPE){
sprintf(traceLine, "%s %s(%s, \"%s\")\n",
event, resourceID(s), resourceID(u), (char*) v);
} else if (type == RDF_RESOURCE_TYPE) {
sprintf(traceLine, "%s %s(%s, %s)\n",
event, resourceID(s), resourceID(u), resourceID((RDF_Resource)v));
} else {
sprintf(traceLine, "%s <gubbish>\n", event);
}
FE_Trace(traceLine);
freeMem(traceLine);
#endif
}
char *
makeResourceName (RDF_Resource node)
{
char *name = NULL;
name = resourceID(node);
if (startsWith("http:", resourceID(node)))
{
name = &name[7];
}
else if (startsWith("file:", resourceID(node)))
{
name = &name[FS_URL_OFFSET];
}
else
{
name = resourceID(node);
}
return ((name != NULL) ? copyString(name) : NULL);
}
PR_PUBLIC_API(char *)
RDF_GetResourceName(RDF rdf, RDF_Resource node)
{
char* name = RDF_GetSlotValue(rdf, node, gCoreVocab->RDF_name, RDF_STRING_TYPE, false, true);
if (name != NULL) return name;
name = makeResourceName(node);
return name;
}
#ifdef MOZILLA_CLIENT
PR_PUBLIC_API(RDF_Resource)
RDFUtil_GetFirstInstance (RDF_Resource type, char* defaultURL)
{
RDF_Resource bmk = remoteStoreGetSlotValue(gLocalStore, type,
gCoreVocab->RDF_instanceOf,
RDF_RESOURCE_TYPE, true, true);
if (bmk == NULL) {
/* bmk = RDF_GetResource(NULL, defaultURL, 1); */
bmk = createContainer(defaultURL);
remoteAssert(gLocalStore, bmk, gCoreVocab->RDF_instanceOf,
type, RDF_RESOURCE_TYPE, 1);
}
return bmk;
}
PR_PUBLIC_API(void)
RDFUtil_SetFirstInstance (RDF_Resource type, RDF_Resource item)
{
RDF_Resource bmk = remoteStoreGetSlotValue(gLocalStore, type,
gCoreVocab->RDF_instanceOf,
RDF_RESOURCE_TYPE, true, true);
if (bmk) {
remoteUnassert(gLocalStore, bmk, gCoreVocab->RDF_instanceOf,
type, RDF_RESOURCE_TYPE);
}
if (item) {
remoteAssert(gLocalStore, item, gCoreVocab->RDF_instanceOf,
type, RDF_RESOURCE_TYPE, true);
}
}
PR_PUBLIC_API(RDF_Resource)
RDFUtil_GetQuickFileFolder()
{
return RDFUtil_GetFirstInstance(gNavCenter->RDF_BookmarkFolderCategory, "NC:Bookmarks");
}
PR_PUBLIC_API(void)
RDFUtil_SetQuickFileFolder(RDF_Resource container)
{
RDFUtil_SetFirstInstance(gNavCenter->RDF_BookmarkFolderCategory, container);
}
RDF_Resource gPTFolder = NULL;
PR_PUBLIC_API(RDF_Resource)
RDFUtil_GetPTFolder()
{
if (gPTFolder) return gPTFolder;
return (gPTFolder = RDFUtil_GetFirstInstance(gNavCenter->RDF_PersonalToolbarFolderCategory, "PersonalToolbar"));
}
PR_PUBLIC_API(void)
RDFUtil_SetPTFolder(RDF_Resource container)
{
/*
RDFUtil_SetFirstInstance( gNavCenter->RDF_PersonalToolbarFolderCategory, container);
*/
}
PR_PUBLIC_API(RDF_Resource)
RDFUtil_GetNewBookmarkFolder()
{
return RDFUtil_GetFirstInstance(gNavCenter->RDF_NewBookmarkFolderCategory, "NC:Bookmarks");
}
PR_PUBLIC_API(void)
RDFUtil_SetNewBookmarkFolder(RDF_Resource container)
{
RDFUtil_SetFirstInstance(gNavCenter->RDF_NewBookmarkFolderCategory, container);
}
PR_PUBLIC_API(RDF_Resource)
RDFUtil_GetDefaultSelectedView()
{
return RDFUtil_GetFirstInstance(gNavCenter->RDF_DefaultSelectedView, "selectedView");
}
PR_PUBLIC_API(void)
RDFUtil_SetDefaultSelectedView(RDF_Resource container)
{
RDFUtil_SetFirstInstance(gNavCenter->RDF_DefaultSelectedView, container);
}
/* Returns a new string with inURL unescaped. */
/* We return a new string because NET_UnEscape unescapes */
/* string in place */
char *
unescapeURL(char *inURL)
{
char *escapedPath = copyString(inURL);
#ifdef MOZILLA_CLIENT
#ifdef XP_WIN
replacePipeWithColon(escapedPath);
#endif
/* xxx NET_UnEscape(escapedPath); */
#endif
return (escapedPath);
}
/* Given a file URL of form "file:///", return substring */
/* that can be used as a path for PR_Open. */
/* NOTE: This routine DOESN'T allocate a new string */
char *
convertFileURLToNSPRCopaceticPath(char* inURL)
{
#ifdef XP_WIN
if (startsWith("file://", inURL)) return (inURL + 8);
else if (startsWith("mailbox:/", inURL)) return (inURL + 9);
else if (startsWith("IMAP:/", inURL)) return (inURL + 6);
else return (inURL);
#else
/* For Mac & Unix, need preceeding '/' so that NSPR */
/* interprets path as full path */
if (startsWith("file://", inURL)) return (inURL + 7);
else if (startsWith("mailbox:/", inURL)) return (inURL + 8);
else if (startsWith("IMAP:/", inURL)) return (inURL + 5);
else return (inURL);
#endif
}
char* MCDepFileURL (char* url) {
char* furl;
int32 len;
char* baz = "\\";
int32 n = 0;
furl = convertFileURLToNSPRCopaceticPath(unescapeURL(url));
len = RDF_STRLEN(furl);
#ifdef XP_WIN
while (n < len) {
if (furl[n] == '/') furl[n] = baz[0];
n++;
}
#endif
return furl;
}
PRFileDesc *
CallPROpenUsingFileURL(char *fileURL, PRIntn flags, PRIntn mode)
{
PRFileDesc* result = NULL;
const char *path;
char *escapedPath = unescapeURL(fileURL);
path = convertFileURLToNSPRCopaceticPath(escapedPath);
if (path != NULL) {
result = PR_Open(path, flags, mode);
}
if (escapedPath != NULL) freeMem(escapedPath);
return result;
}
PRDir *
CallPROpenDirUsingFileURL(char *fileURL)
{
PRDir* result = NULL;
const char *path;
char *escapedPath = unescapeURL(fileURL);
path = convertFileURLToNSPRCopaceticPath(escapedPath);
if (path != NULL) {
result = PR_OpenDir(path);
}
if (escapedPath != NULL) freeMem(escapedPath);
return result;
}
int32
CallPRWriteAccessFileUsingFileURL(char *fileURL)
{
int32 result = -1;
const char *path;
char *escapedPath = unescapeURL(fileURL);
path = convertFileURLToNSPRCopaceticPath(escapedPath);
if (path != NULL) {
result = PR_Access(path, PR_ACCESS_WRITE_OK);
}
if (escapedPath != NULL) freeMem(escapedPath);
return result;
}
int32
CallPRDeleteFileUsingFileURL(char *fileURL)
{
int32 result = -1;
const char *path;
char *escapedPath = unescapeURL(fileURL);
path = convertFileURLToNSPRCopaceticPath(escapedPath);
if (path != NULL) {
result = PR_Delete(path);
}
if (escapedPath != NULL) freeMem(escapedPath);
return result;
}
int
CallPR_RmDirUsingFileURL(char *dirURL)
{
int32 result=-1;
const char *path;
char *escapedPath = unescapeURL(dirURL);
path = convertFileURLToNSPRCopaceticPath(escapedPath);
if (path != NULL) {
result = PR_RmDir(path);
}
if (escapedPath != NULL) freeMem(escapedPath);
return result;
}
int32
CallPRMkDirUsingFileURL(char *dirURL, int mode)
{
int32 result=-1;
const char *path;
char *escapedPath = unescapeURL(dirURL);
path = convertFileURLToNSPRCopaceticPath(escapedPath);
if (path != NULL) {
result = PR_MkDir(path,mode);
}
if (escapedPath != NULL) freeMem(escapedPath);
return result;
}
#endif /* MOZILLA_CLIENT */

View File

@@ -0,0 +1,89 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_UTILS_H_
#define _RDF_UTILS_H_
#include "rdf.h"
#include "rdf-int.h"
#include "htrdf.h"
#include "prprf.h"
#include <stdarg.h>
#include <ctype.h>
/* utils.c data structures and defines */
#define CONTAINER_FLAG 0x01
#define LOCKED_FLAG 0x02
/* utils.c function prototypes */
RDF_Resource getMCFFrtop (char* furl);
void addToResourceList (RDFFile f, RDF_Resource u);
void addToAssertionList (RDFFile f, Assertion as);
void removeFromAssertionList(RDFFile f, Assertion as);
void ht_fprintf(PRFileDesc *file, const char *fmt, ...);
void ht_rjcprintf(PRFileDesc *file, const char *fmt, const char *data);
char * makeDBURL(char* name);
PLHashNumber idenHash (const void *key);
int idenEqual (const void *v1, const void *v2);
PRBool inverseTV (PRBool tv);
char * append2Strings (const char* str1, const char* str2);
void stringAppendBase (char* dest, const char* addition);
void stringAppend (char* dest, const char* addition);
int16 charSearch (const char c, const char* data);
PRBool endsWith (const char* pattern, const char* uuid);
PRBool substring (const char* pattern, const char* data);
int compareStrings(char *s1, char *s2);
int16 revCharSearch (const char c, const char* data);
PRBool urlEquals (const char* url1, const char* url2);
PRBool isSeparator (RDF_Resource r);
void setContainerp (RDF_Resource r, PRBool val);
PRBool containerp (RDF_Resource r);
uint8 resourceType (RDF_Resource r);
void setResourceType (RDF_Resource r, uint8 val);
char * resourceID(RDF_Resource r);
char * makeResourceName (RDF_Resource node);
char* opTypeToString (RDF_EventType opType) ;
void traceNotify (char* event, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type) ;
PRBool IsUTF8Text(const char* utf8, int32 len);
PRBool IsUTF8String(const char* utf8);
void AddCookieResource(char* name, char* path, char* host, char* expires);
void RDF_ReadCookies(char * filename);
PRBool CookieUnassert (RDFT r, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
RDF_Cursor CookieGetSlotValues(RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
void * CookieGetNextValue(RDFT rdf, RDF_Cursor c);
RDF_Error CookieDisposeCursor(RDFT rdf, RDF_Cursor c);
PRBool CookieAssert(RDFT rdf, RDF_Resource u, RDF_Resource s, void *v, RDF_ValueType type, PRBool tv);
void * CookieGetSlotValue(RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep, PRBool tv);
#endif

View File

@@ -0,0 +1,338 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file implements a standard vocabulary for the rdf data model.
For more information on this file, contact rjc or guha
For more information on RDF, look at the RDF section of www.mozilla.org
*/
#include "vocabint.h"
#include "bmk2mcf.h"
/* globals */
#ifdef XP_MAC
#pragma export on
#endif
RDF_WDVocab gWebData = NULL;
RDF_NCVocab gNavCenter = NULL;
RDF_CoreVocab gCoreVocab = NULL;
#ifdef XP_MAC
#pragma export off
#endif
size_t gCoreVocabSize = 0;
RDF_Resource* gAllVocab;
/* externs */
extern char* gLocalStoreURL;
extern char* profileDirURL;
RDF gCoreDB = 0;
void
createVocabs ()
{
size_t n = 0;
size_t m = 0;
gAllVocab = getMem((gCoreVocabSize =
sizeof(RDF_CoreVocabStruct)+sizeof(RDF_NCVocabStruct)+sizeof(RDF_WDVocabStruct)));
gCoreDB = (RDF)getMem(sizeof(struct RDF_DBStruct));
createCoreVocab();
createNavCenterVocab();
createWebDataVocab();
while (n < (sizeof(RDF_CoreVocabStruct)/sizeof(RDF_Resource))) {
*(gAllVocab + m++) = *((RDF_Resource*)gCoreVocab + n++);
}
n = 0;
while (n < (sizeof(RDF_NCVocabStruct)/sizeof(RDF_Resource))) {
*(gAllVocab + m++) = *((RDF_Resource*)gNavCenter + n++);
}
n = 0;
while (n < (sizeof(RDF_WDVocabStruct)/sizeof(RDF_Resource))) {
*(gAllVocab + m++) = *((RDF_Resource*)gWebData + n++);
}
}
void
createCoreVocab ()
{
gCoreVocab = (RDF_CoreVocab) getMem(sizeof(RDF_CoreVocabStruct));
gCoreVocab->RDF_parent = RDF_GetResource(gCoreDB, "parent", 1);
gCoreVocab->RDF_name = RDF_GetResource(gCoreDB, "name", 1);
gCoreVocab->RDF_instanceOf = RDF_GetResource(gCoreDB, "instanceOf", 1);
gCoreVocab->RDF_subClassOf = RDF_GetResource(gCoreDB, "subClassOf", 1);
gCoreVocab->RDF_Class = RDF_GetResource(gCoreDB, "Class", 1);
gCoreVocab->RDF_PropertyType = RDF_GetResource(gCoreDB, "PropertyType", 1);
gCoreVocab->RDF_slotsHere = RDF_GetResource(gCoreDB, "slotsHere", 1);
gCoreVocab->RDF_slotsIn = RDF_GetResource(gCoreDB, "slotsIn", 1);
gCoreVocab->RDF_domain = RDF_GetResource(gCoreDB, "domain", 1);
gCoreVocab->RDF_range = RDF_GetResource(gCoreDB, "range", 1);
gCoreVocab->RDF_StringType = RDF_GetResource(gCoreDB, "String", 1);
gCoreVocab->RDF_IntType = RDF_GetResource(gCoreDB, "Int", 1);
gCoreVocab->RDF_equals = RDF_GetResource(gCoreDB, "equals", 1);
gCoreVocab->RDF_lessThan = RDF_GetResource(gCoreDB, "lessThan", 1);
gCoreVocab->RDF_greaterThan = RDF_GetResource(gCoreDB, "greaterThan", 1);
gCoreVocab->RDF_lessThanOrEqual = RDF_GetResource(gCoreDB, "lessThanOrEqualTo", 1);
gCoreVocab->RDF_greaterThanOrEqual = RDF_GetResource(gCoreDB, "greaterThanOrEqualTo", 1);
gCoreVocab->RDF_stringEquals = newResource("stringEquals", RDF_IS_STR);
gCoreVocab->RDF_stringNotEquals = newResource("stringNotEquals", RDF_IS_NOT_STR);
gCoreVocab->RDF_substring = newResource("substring", RDF_CONTAINS_STR);
gCoreVocab->RDF_stringStartsWith = newResource("stringStartsWith", RDF_STARTS_WITH_STR);
gCoreVocab->RDF_stringEndsWith = newResource("stringEndsWith", RDF_ENDS_WITH_STR);
gCoreVocab->RDF_child = RDF_GetResource(gCoreDB, "child", 1);
gCoreVocab->RDF_content = RDF_GetResource(gCoreDB, "content", 1);
gCoreVocab->RDF_summary = RDF_GetResource(gCoreDB, "summary", 1);
gCoreVocab->RDF_comment = RDF_GetResource(gCoreDB, "comment", 1);
}
void
createNavCenterVocab () {
gNavCenter = (RDF_NCVocab) getMem(sizeof(RDF_NCVocabStruct));
#ifdef MOZILLA_CLIENT
gNavCenter->RDF_overview = RDF_GetResource(gCoreDB, "overview", 1);
gNavCenter->RDF_Trash = createContainer("Trash");
gNavCenter->RDF_Clipboard = createContainer("Clipboard");
gNavCenter->RDF_Top = createContainer("NC:NavCenter");
setResourceType(gNavCenter->RDF_Top, RDF_RT);
gNavCenter->RDF_Search = createContainer("NC:Search");
setResourceType(gNavCenter->RDF_Search, SEARCH_RT);
gNavCenter->RDF_Sitemaps = createContainer("NC:Sitemaps");
gNavCenter->RDF_BreadCrumbCategory = createContainer("BreadCrumbs");
gNavCenter->RDF_BookmarkFolderCategory = createContainer("NC:Bookmarks");
gNavCenter->RDF_NewBookmarkFolderCategory = RDF_GetResource(gCoreDB, "NewBookmarks", true);
gNavCenter->RDF_History = createContainer("NC:History");
gNavCenter->RDF_HistoryBySite = createContainer("NC:HistoryBySite");
gNavCenter->RDF_HistoryByDate = createContainer("NC:HistoryByDate");
gNavCenter->RDF_HistoryMostVisited = createContainer("NC:HistoryMostVisited");
setResourceType(gNavCenter->RDF_History, HISTORY_RT);
setResourceType(gNavCenter->RDF_HistoryBySite, HISTORY_RT);
setResourceType(gNavCenter->RDF_HistoryByDate, HISTORY_RT);
setResourceType(gNavCenter->RDF_HistoryMostVisited, HISTORY_RT);
/* IE items */
gNavCenter->RDF_IEBookmarkFolderCategory = createContainer("NC:IEBookmarks");
gNavCenter->RDF_IEHistory = createContainer("NC:IEHistory");
setResourceType(gNavCenter->RDF_IEHistory, HISTORY_RT);
gNavCenter->RDF_bookmarkAddDate = newResource("bookmarkAddDate", RDF_ADDED_ON_STR);
gNavCenter->RDF_PersonalToolbarFolderCategory =
RDF_GetResource(gCoreDB, "PersonalToolbarCat", true);
gNavCenter->RDF_Column = RDF_GetResource(gCoreDB, "Column", true);
gNavCenter->RDF_ColumnResource = RDF_GetResource(gCoreDB, "ColumnResource", true);
gNavCenter->RDF_ColumnWidth = RDF_GetResource(gCoreDB, "ColumnWidth", true);
gNavCenter->RDF_ColumnIconURL = RDF_GetResource(gCoreDB, "ColumnIconURL", true);
gNavCenter->RDF_ColumnDataType = RDF_GetResource(gCoreDB, "ColumnDataType", true);
gNavCenter->RDF_smallIcon = newResource("smallIcon", RDF_ICON_URL_STR);
gNavCenter->RDF_largeIcon = newResource("largeIcon", RDF_LARGE_ICON_URL_STR);
gNavCenter->RDF_HTMLURL = newResource("htmlURL", RDF_HTML_URL_STR);
gNavCenter->RDF_HTMLHeight = newResource("htmlHeight", RDF_HTML_HEIGHT_STR);
gNavCenter->RDF_LocalFiles = createContainer("NC:LocalFiles");
/* setResourceType(gNavCenter->RDF_LocalFiles, LFS_RT); */
gNavCenter->RDF_FTP = createContainer("NC:FTP");
gNavCenter->RDF_FTP = newResource("NC:FTP", RDF_FTP_NAME_STR);
gNavCenter->RDF_Appletalk = createContainer("NC:Appletalk");
gNavCenter->RDF_Appletalk = newResource("NC:Appletalk", RDF_APPLETALK_TOP_NAME);
setResourceType(gNavCenter->RDF_Appletalk, ATALKVIRTUAL_RT);
gNavCenter->RDF_Mail = RDF_GetResource(gCoreDB, "NC:Mail", true);
gNavCenter->RDF_Guide = RDF_GetResource(gCoreDB, "NC:Guide", true);
gNavCenter->RDF_Password = RDF_GetResource(gCoreDB, "password", true);
gNavCenter->RDF_SBProviders = RDF_GetResource(gCoreDB, "NC:SmartBrowsingProviders", true);
gNavCenter->RDF_WorkspacePos = RDF_GetResource(gCoreDB, "workspacePos", true);
gNavCenter->RDF_ItemPos = RDF_GetResource(gCoreDB, "pos", true);
gNavCenter->RDF_Locks = RDF_GetResource(gCoreDB, "locks", true);
gNavCenter->RDF_AddLock = RDF_GetResource(gCoreDB, "addLock", true);
gNavCenter->RDF_DeleteLock = RDF_GetResource(gCoreDB, "deleteLock", true);
gNavCenter->RDF_IconLock = RDF_GetResource(gCoreDB, "iconLock", true);
gNavCenter->RDF_NameLock = RDF_GetResource(gCoreDB, "nameLock", true);
gNavCenter->RDF_CopyLock = RDF_GetResource(gCoreDB, "copyLock", true);
gNavCenter->RDF_MoveLock = RDF_GetResource(gCoreDB, "moveLock", true);
gNavCenter->RDF_WorkspacePosLock = RDF_GetResource(gCoreDB, "workspacePosLock", true);
gNavCenter->RDF_DefaultSelectedView = RDF_GetResource(gCoreDB, "selectedView", true);
gNavCenter->RDF_AutoOpen = RDF_GetResource(gCoreDB, "autoOpen", true);
gNavCenter->RDF_resultType = RDF_GetResource (gCoreDB, "resultType", true);
gNavCenter->RDF_methodType = RDF_GetResource (gCoreDB, "methodType", true);
gNavCenter->RDF_prompt = RDF_GetResource (gCoreDB, "prompt", true);
gNavCenter->RDF_HTMLType = RDF_GetResource (gCoreDB, "HTMLPage", true);
gNavCenter->RDF_URLShortcut = RDF_GetResource(gCoreDB, "URLShortcut", true);
gNavCenter->RDF_Poll = RDF_GetResource(gCoreDB, "poll", true);
gNavCenter->RDF_PollInterval = RDF_GetResource(gCoreDB, "pollInterval", true);
gNavCenter->RDF_PollURL = RDF_GetResource(gCoreDB, "pollURL", true);
gNavCenter->RDF_Cookies = createContainer("NC:Cookies");
setResourceType(gNavCenter->RDF_Cookies, COOKIE_RT);
gNavCenter->RDF_Toolbar = createContainer("NC:Toolbar");
gNavCenter->RDF_JSec = createContainer("NC:Jsec");
gNavCenter->RDF_JSecPrincipal = RDF_GetResource(gCoreDB, "JsecPrincipal", true);
gNavCenter->RDF_JSecTarget = RDF_GetResource(gCoreDB, "JsecTarget", true);
gNavCenter->RDF_JSecAccess = RDF_GetResource(gCoreDB, "JsecAccess", true);
/* Commands */
gNavCenter->RDF_Command = RDF_GetResource (gCoreDB, "Command", true);
gNavCenter->RDF_Command_Launch = RDF_GetResource(gCoreDB, "Command:Launch", true);
gNavCenter->RDF_Command_Refresh = RDF_GetResource(gCoreDB, "Command:Refresh", true);
gNavCenter->RDF_Command_Reveal = RDF_GetResource(gCoreDB, "Command:Reveal", true);
gNavCenter->RDF_Command_Atalk_FlatHierarchy = RDF_GetResource(gCoreDB, "Command:at:View Zone List", true);
gNavCenter->RDF_Command_Atalk_Hierarchy = RDF_GetResource(gCoreDB, "Command:at:View Zone Hierarchy", true);
/* NavCenter appearance styles */
gNavCenter->viewFGColor = newResource("viewFGColor", RDF_FOREGROUND_COLOR_STR);
gNavCenter->viewBGColor = newResource("viewBGColor", RDF_BACKGROUND_COLOR_STR);
gNavCenter->viewBGURL = newResource("viewBGURL", RDF_BACKGROUND_IMAGE_STR);
gNavCenter->showTreeConnections = newResource("showTreeConnections", RDF_SHOW_TREE_CONNECTIONS_STR);
gNavCenter->treeConnectionFGColor = newResource("treeConnectionFGColor", RDF_CONNECTION_FG_COLOR_STR);
gNavCenter->treeOpenTriggerIconURL = newResource("treeOpenTriggerIconURL", RDF_OPEN_TRIGGER_IMAGE_STR);
gNavCenter->treeClosedTriggerIconURL = newResource("treeClosedTriggerIconURL", RDF_CLOSED_TRIGGER_IMAGE_STR);
gNavCenter->selectionFGColor = newResource("selectionFGColor", RDF_FOREGROUND_COLOR_STR);
gNavCenter->selectionBGColor = newResource("selectionBGColor", RDF_BACKGROUND_COLOR_STR);
gNavCenter->columnHeaderFGColor = newResource("columnHeaderFGColor", RDF_FOREGROUND_COLOR_STR);
gNavCenter->columnHeaderBGColor = newResource("columnHeaderBGColor", RDF_BACKGROUND_COLOR_STR);
gNavCenter->columnHeaderBGURL = newResource("columnHeaderBGURL", RDF_BACKGROUND_IMAGE_STR);
gNavCenter->showColumnHeaders = newResource("showColumnHeaders", RDF_SHOW_HEADERS_STR);
gNavCenter->showColumnHeaderDividers = newResource("showColumnHeaderDividers", RDF_SHOW_HEADER_DIVIDERS_STR);
gNavCenter->sortColumnFGColor = newResource("sortColumnFGColor", RDF_SORT_COLUMN_FG_COLOR_STR);
gNavCenter->sortColumnBGColor = newResource("sortColumnBGColor", RDF_SORT_COLUMN_BG_COLOR_STR);
gNavCenter->titleBarFGColor = newResource("titleBarFGColor", RDF_FOREGROUND_COLOR_STR);
gNavCenter->titleBarBGColor = newResource("titleBarBGColor", RDF_BACKGROUND_COLOR_STR);
gNavCenter->titleBarBGURL = newResource("titleBarBGURL", RDF_BACKGROUND_IMAGE_STR);
gNavCenter->dividerColor = newResource("dividerColor", RDF_DIVIDER_COLOR_STR);
gNavCenter->showDivider = newResource("showDivider", RDF_SHOW_COLUMN_DIVIDERS_STR);
gNavCenter->selectedColumnHeaderFGColor = newResource("selectedColumnHeaderFGColor", RDF_SELECTED_HEADER_FG_COLOR_STR);
gNavCenter->selectedColumnHeaderBGColor = newResource("selectedColumnHeaderBGColor", RDF_SELECTED_HEADER_BG_COLOR_STR);
gNavCenter->showColumnHilite = newResource("showColumnHilite", RDF_SHOW_COLUMN_HILITING_STR);
gNavCenter->triggerPlacement = newResource("triggerPlacement", RDF_TRIGGER_PLACEMENT_STR);
/* NavCenter behavior properties */
gNavCenter->useInlineEditing = newResource("useInlineEditing", 0 /* XXX */);
gNavCenter->useSingleClick = newResource("useSingleClick", 0 /* XXX */);
gNavCenter->loadOpenState = newResource("loadOpenState", 0 /* XXX */);
gNavCenter->saveOpenState = newResource("saveOpenState", 0 /* XXX */);
/* Toolbars */
/* Toolbar Appearance Styles */
gNavCenter->toolbarBitmapPosition = newResource("toolbarBitmapPosition", 0 /* XXX "Toolbar Bitmap Position" */ );
gNavCenter->toolbarButtonsFixedSize = newResource("toolbarButtonsFixedSize", 0 /* XXX "Toolbar Bitmap Position" */ );
gNavCenter->toolbarDisplayMode = newResource("toolbarDisplayMode", 0);
gNavCenter->toolbarCollapsed = newResource("toolbarCollapsed", 0);
gNavCenter->toolbarVisible = newResource("toolbarVisible", 0);
gNavCenter->toolbarDisabledIcon = newResource("toolbarDisabledIcon", 0 /* XXX */);
gNavCenter->toolbarEnabledIcon = newResource("toolbarEnabledIcon", 0 /* XXX */);
gNavCenter->toolbarRolloverIcon = newResource("toolbarRolloverIcon", 0 /* XXX */);
gNavCenter->toolbarPressedIcon = newResource("toolbarPressedIcon", 0 /* XXX */);
gNavCenter->buttonTooltipText = newResource("buttonTooltipText", 0 /* XXX */);
gNavCenter->buttonStatusbarText = newResource("buttonStatusbarText", 0 /* XXX */);
gNavCenter->buttonBorderStyle = newResource("buttonBorderStyle", 0 /* XXX */);
gNavCenter->urlBar = newResource("urlBar", 0 /* XXX */);
gNavCenter->urlBarWidth = newResource("urlBarWidth", 0 /* XXX */);
gNavCenter->pos = newResource("pos", 0 /* XXX */);
gNavCenter->viewRolloverColor = newResource("viewRolloverColor", 0 /* XXX */);
gNavCenter->viewPressedColor = newResource("viewPressedColor", 0 /* XXX */);
gNavCenter->viewDisabledColor = newResource("viewDisabledColor", 0 /* XXX */);
gNavCenter->controlStripFGColor = newResource("controlStripFGColor", 0 /* XXX */);
gNavCenter->controlStripBGColor = newResource("controlStripBGColor", 0 /* XXX */);
gNavCenter->controlStripBGURL = newResource("controlStripBGURL", 0 /* XXX */);
gNavCenter->controlStripCloseText = newResource("controlStripCloseText", 0 /* XXX */);
gNavCenter->titleBarShowText = newResource("titleBarShowText", 0 /* XXX */);
gNavCenter->showTitleBar = newResource("showTitleBar", 0 /* XXX */);
gNavCenter->showControlStrip = newResource("showControlStrip", 0 /* XXX */);
/* Buttons */
gNavCenter->buttonTreeState = newResource("buttonTreeState", 0 /* XXX */);
/* Cookies */
gNavCenter->cookieDomain = newResource("cookieDomain", 0 /* XXX */);
gNavCenter->cookieValue = newResource("cookieValue", 0 /* XXX */);
gNavCenter->cookieHost = newResource("cookieHost", 0 /* XXX */);
gNavCenter->cookiePath = newResource("cookiePath", 0 /* XXX */);
gNavCenter->cookieSecure = newResource("cookieSecure", 0 /* XXX */);
gNavCenter->cookieExpires = newResource("cookieExpiration", 0 /* XXX */);
gNavCenter->from = newResource("mail:From", 0 );
gNavCenter->to = newResource("mail:To", 0 );
gNavCenter->subject = newResource("mail:Subject", 0 /* XXX */);
gNavCenter->date = newResource("mail:Date", 0 /* XXX */);
gNavCenter->displayURL = newResource("displayURL", 0 /* XXX */);
remoteStoreAdd(gRemoteStore, gNavCenter->from, gCoreVocab->RDF_name, copyString("from"), RDF_STRING_TYPE, 1);
remoteStoreAdd(gRemoteStore, gNavCenter->to, gCoreVocab->RDF_name, copyString("to"), RDF_STRING_TYPE, 1);
remoteStoreAdd(gRemoteStore, gNavCenter->subject, gCoreVocab->RDF_name, copyString("subject"), RDF_STRING_TYPE, 1);
remoteStoreAdd(gRemoteStore, gNavCenter->date, gCoreVocab->RDF_name, copyString("date"), RDF_STRING_TYPE, 1);
#endif /* MOZILLA_CLIENT */
}
void
createWebDataVocab ()
{
gWebData = (RDF_WDVocab) getMem(sizeof(RDF_WDVocabStruct));
#ifdef MOZILLA_CLIENT
gWebData->RDF_URL = newResource("URL", RDF_URL_STR);
gWebData->RDF_description = newResource("description", RDF_DESCRIPTION_STR);
gWebData->RDF_keyword = newResource("keyword", 0 /* XXX */);
gWebData->RDF_Container = RDF_GetResource (gCoreDB, "Container", true);
gWebData->RDF_firstVisitDate = newResource("firstVisitDate", RDF_FIRST_VISIT_STR);
gWebData->RDF_lastVisitDate = newResource("lastVisitDate", RDF_LAST_VISIT_STR);
gWebData->RDF_numAccesses = newResource("numAccesses", RDF_NUM_ACCESSES_STR);
gWebData->RDF_creationDate = newResource("creationDate", RDF_CREATED_ON_STR);
gWebData->RDF_lastModifiedDate = newResource("lastModifiedDate", RDF_LAST_MOD_STR);
gWebData->RDF_size = newResource("size", RDF_SIZE_STR);
#endif /* MOZILLA_CLIENT */
}
RDF_Resource
newResource(char *id, int optionalNameStrID)
{
RDF_Resource r;
r = RDF_GetResource(gCoreDB, id, true);
return(r);
}
char *
getResourceDefaultName(RDF_Resource node)
{
int strID = 0;
char *defaultName = NULL;
return resourceID(node);
}
char *gDefaultNavcntr =
"<RDF:RDF> <Topic id=\"NC:Toolbar\"> <child> <Topic id=\"NC:CommandToolBar\" name=\"Command Toolbar\" toolbarBitmapPosition=\"top\" toolbarButtonsFixedSize=\"yes\" > <child href=\"command:back\" name=\"Back\"/> <child buttonTooltipText=\"Reload this page from the server\" buttonStatusbarText=\"Reload the current page\" href=\"command:reload\" name=\"Reload\"/> <child href=\"command:stop\" name=\"Stop\"/> <child href=\"command:forward\" name=\"Forward\"/> <child name=\"separator0\" href=\"nc:separator0\"/> <child href=\"command:urlbar\" name=\" \" buttonStatusBarText=\"Location/Search Bar\" buttonTooltipText=\"Location/Search Bar\" urlBar=\"Yes\" urlBarWidth=\"*\"/> <child name=\"separator2\" href=\"nc:separator2\"/> </Topic> </child> <child> <Topic id=\"NC:InfoToolbar\" name=\"Info Toolbar\"> <child> <Topic id=\"NC:Bookmarks\" name=\"Bookmarks\"></Topic> </child> <child> <Topic id=\"NC:History\" largeIcon=\"icon/large:workspace,history\" name=\"History\"> <child href=\"NC:HistoryMostVisited\" name=\"Most Frequented Pages\"/> <child href=\"NC:HistoryBySite\" name=\"History By Site\"/> <child href=\"NC:HistoryByDate\" name=\"History By Date\"/> </Topic> </child> <child href=\"NC:Sitemaps\" name=\"Related\" htmlURL=\"http://rdf.netscape.com/rdf/navcntradvert.html\"/> </Topic> </child> <child> <Topic id=\"NC:PersonalToolbar\" name=\"Personal Toolbar\"> </Topic> </child> </Topic> <Topic id=\"NC:NavCenter\"> <child href=\"NC:Bookmarks\" name=\"Bookmarks\"/> <child href=\"NC:Search\" largeIcon=\"icon/large:workspace,search\" name=\"Search\"/> <child href=\"NC:History\" name=\"History\"/> <child id=\"NC:Sitemaps\" name=\"Site Tools\" htmlURL=\"http://rdf.netscape.com/rdf/navcntradvert.html\" /> <child id=\"NC:LocalFiles\" name=\"Files\" largeIcon=\"http://rdf.netscape.com/rdf/heabou.gif\"/> </Topic></RDF:RDF>" ;

View File

@@ -0,0 +1,56 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _RDF_VOCABINT_H_
#define _RDF_VOCABINT_H_
#include "rdf-int.h"
#include "htrdf.h"
/* vocab.c data structures */
extern int RDF_FOREGROUND_COLOR_STR, RDF_BACKGROUND_COLOR_STR, RDF_BACKGROUND_IMAGE_STR;
extern int RDF_SHOW_TREE_CONNECTIONS_STR, RDF_CONNECTION_FG_COLOR_STR, RDF_OPEN_TRIGGER_IMAGE_STR;
extern int RDF_CLOSED_TRIGGER_IMAGE_STR, RDF_SHOW_HEADERS_STR, RDF_SHOW_HEADER_DIVIDERS_STR;
extern int RDF_SORT_COLUMN_FG_COLOR_STR, RDF_SORT_COLUMN_BG_COLOR_STR, RDF_DIVIDER_COLOR_STR;
extern int RDF_SHOW_COLUMN_DIVIDERS_STR, RDF_SELECTED_HEADER_FG_COLOR_STR, RDF_SELECTED_HEADER_BG_COLOR_STR;
extern int RDF_SHOW_COLUMN_HILITING_STR, RDF_TRIGGER_PLACEMENT_STR, RDF_URL_STR;
extern int RDF_DESCRIPTION_STR, RDF_FIRST_VISIT_STR, RDF_LAST_VISIT_STR, RDF_NUM_ACCESSES_STR;
extern int RDF_CREATED_ON_STR, RDF_LAST_MOD_STR, RDF_SIZE_STR, RDF_ADDED_ON_STR, RDF_ICON_URL_STR;
extern int RDF_LARGE_ICON_URL_STR, RDF_HTML_URL_STR, RDF_HTML_HEIGHT_STR;
extern int RDF_CONTAINS_STR, RDF_IS_STR, RDF_IS_NOT_STR, RDF_STARTS_WITH_STR, RDF_ENDS_WITH_STR;
extern int RDF_FTP_NAME_STR, RDF_APPLETALK_TOP_NAME;
/* vocab.c function prototypes */
NSPR_BEGIN_EXTERN_C
void createVocabs ();
void createCoreVocab ();
void createNavCenterVocab ();
void createWebDataVocab ();
RDF_Resource newResource(char *id, int optionalNameStrID);
char *getResourceDefaultName(RDF_Resource r);
NSPR_END_EXTERN_C
#endif

View File

@@ -1,48 +0,0 @@
# KDE Config File
[mozilla.lsm]
install_location=
dist=true
install=false
type=DATA
[Config for BinMakefileAm]
ldflags=
cxxflags=-O0 -g3 -Wall
bin_program=mozilla
[po/Makefile.am]
sub_dirs=
type=po
[LFV Groups]
Dialogs=*.kdevdlg,
Others=*,
Translations=*.po,
groups=Headers,Sources,Dialogs,Translations,Others,
Sources=*.cpp,*.c,*.cc,*.C,*.cxx,*.ec,*.ecpp,*.lxx,*.l++,*.ll,*.l,
Headers=*.h,*.hh,*.hxx,*.hpp,*.H,
[mozilla.kdevprj]
install_location=
dist=true
install=false
type=DATA
[mozilla/docs/en/Makefile.am]
sub_dirs=
type=normal
[mozilla/Makefile.am]
sub_dirs=
type=prog_main
[General]
makefiles=Makefile.am,mozilla/Makefile.am,mozilla/docs/Makefile.am,mozilla/docs/en/Makefile.am,po/Makefile.am,
version_control=CVS
author=Heikki Toivonen
project_type=normal_empty
sub_dir=mozilla/
version=0.1
project_name=Mozilla
email=heikki@netscape.com
kdevprj_version=1.2
[Makefile.am]
files=mozilla.kdevprj,mozilla.lsm,
sub_dirs=mozilla,
type=normal
[mozilla/docs/Makefile.am]
sub_dirs=
type=normal

View File

@@ -1,14 +0,0 @@
Begin3
Title: Mozilla
Version: 0.1
Entered-date:
Description:
Keywords:
Author: Heikki Toivonen <heikki@netscape.com>
Maintained-by: Heikki Toivonen <heikki@netscape.com>
Primary-site:
Home-page: http://
Original-site:
Platforms: Linux and other Unices
Copying-policy: GNU Public License
End

View File

@@ -1,20 +0,0 @@
/*
* 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 Communicator client code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/

View File

@@ -1,20 +0,0 @@
/*
* 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 Communicator client code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/