Compare commits

..

4041 Commits

Author SHA1 Message Date
(no author)
a6b98be20b This commit was manufactured by cvs2svn to create tag 'build'.
git-svn-id: svn://10.0.0.236/tags/build@7070 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 21:41:57 +00:00
michaelp%netscape.com
c4bd8ca7d5 got the plugin code off the OJI branch.
git-svn-id: svn://10.0.0.236/trunk@7069 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 21:41:56 +00:00
michaelp%netscape.com
eda302622f added docs for function.
git-svn-id: svn://10.0.0.236/trunk@7068 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 21:37:40 +00:00
michaelp%netscape.com
15e34a049a added font existence API.
git-svn-id: svn://10.0.0.236/trunk@7067 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 21:36:05 +00:00
law%netscape.com
4a20761ebc Still cleaning up after mjudge (just touching cxpane.cpp to force it to be recompiled)
git-svn-id: svn://10.0.0.236/trunk@7066 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 21:13:16 +00:00
law%netscape.com
b0e78cde31 Undoing mjudge's last screwup as a single man
git-svn-id: svn://10.0.0.236/trunk@7065 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 20:35:58 +00:00
buster%netscape.com
a228539105 made auto-width tables that have all-fixed-width columns act like
fixed-width tables.


git-svn-id: svn://10.0.0.236/trunk@7064 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 20:31:40 +00:00
joki%netscape.com
f6fc5baf9a Adding submit and reset events
git-svn-id: svn://10.0.0.236/trunk@7063 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 20:30:11 +00:00
shaver%netscape.com
8899f4d056 added JSVERSION_1_4, removed prconv.sed NULs
git-svn-id: svn://10.0.0.236/trunk@7062 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 19:52:50 +00:00
shaver%netscape.com
e450ec31e8 added JSVersion JSVERSION_1_4
git-svn-id: svn://10.0.0.236/trunk@7061 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 19:43:23 +00:00
mjudge%netscape.com
ad6622db39 turning on ENDER father forgive me. if this is bad, backout this mozilla.mak change only please
git-svn-id: svn://10.0.0.236/trunk@7060 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 19:32:58 +00:00
mjudge%netscape.com
8204439408 one more fix to default to treeview in builtin
git-svn-id: svn://10.0.0.236/trunk@7059 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 19:29:51 +00:00
mjudge%netscape.com
c74c65c72f left builtin to default to treeview
git-svn-id: svn://10.0.0.236/trunk@7058 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 19:29:02 +00:00
mjudge%netscape.com
34cdc9e40d font fix and kill focus problem correction for toolbars. long live ender
git-svn-id: svn://10.0.0.236/trunk@7057 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 19:26:52 +00:00
mjudge%netscape.com
f97a76b68d Font correction.
git-svn-id: svn://10.0.0.236/trunk@7056 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 19:13:31 +00:00
law%netscape.com
3039c74045 mozprobe feature (approved by blythe/don); mozprobe.dll implementation, plus C/C++ test programs
git-svn-id: svn://10.0.0.236/trunk@7055 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 19:12:04 +00:00
shaver%netscape.com
eedb2202bc added XMLGraph and XMLParser JS/XML glue
git-svn-id: svn://10.0.0.236/trunk@7054 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 19:08:05 +00:00
law%netscape.com
8f1df79429 mozprobe feature (approved by blythe/don); Add code to process mozprobe IPC requests
git-svn-id: svn://10.0.0.236/trunk@7053 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 19:05:02 +00:00
law%netscape.com
8a8a4a5267 mozprobe feature (approved by blythe/don); expose ProcessIPCRequst even without mail/news
git-svn-id: svn://10.0.0.236/trunk@7052 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 19:01:55 +00:00
law%netscape.com
85c7d17a0d mozprobe feature (approved by blythe/don); interface to mozprobe.dll
git-svn-id: svn://10.0.0.236/trunk@7051 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 19:00:03 +00:00
morse%netscape.com
d0d981bccf change tutorial http address to inside the firewall
git-svn-id: svn://10.0.0.236/trunk@7050 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 17:02:14 +00:00
morse%netscape.com
b62ce08b4f backing out change
git-svn-id: svn://10.0.0.236/trunk@7049 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 16:09:55 +00:00
morse%netscape.com
37ca678ba8 backing out change to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@7048 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 16:08:35 +00:00
morse%netscape.com
4930ad811a fix build bustage
git-svn-id: svn://10.0.0.236/trunk@7047 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 15:56:23 +00:00
morse%netscape.com
2806f82fc9 changes for anonymous mode, reviewed by rdf
git-svn-id: svn://10.0.0.236/trunk@7046 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 15:00:35 +00:00
morse%netscape.com
90f4be2d7b change for anonymous mode, reviewed by nisheeth
git-svn-id: svn://10.0.0.236/trunk@7045 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 14:55:14 +00:00
morse%netscape.com
1f93fdf7b6 change for anonymous mode, reviewed by valeski
git-svn-id: svn://10.0.0.236/trunk@7044 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 14:52:41 +00:00
morse%netscape.com
49fca03352 changes for anonymous mode, reviewed by valeski
git-svn-id: svn://10.0.0.236/trunk@7043 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 14:51:15 +00:00
morse%netscape.com
3fd68b1053 add routines needed for anonymous mode
git-svn-id: svn://10.0.0.236/trunk@7042 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 14:48:51 +00:00
morse%netscape.com
e44920ed5d add field needed for anonymous mode
git-svn-id: svn://10.0.0.236/trunk@7041 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 14:47:43 +00:00
wtc%netscape.com
04cef24c72 Backed out accidental check-in from OJI branch merge.
git-svn-id: svn://10.0.0.236/trunk@7040 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 14:35:39 +00:00
ftang%netscape.com
debf18bbba correct typo in the resource name
git-svn-id: svn://10.0.0.236/trunk@7039 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 09:19:53 +00:00
ftang%netscape.com
8b84cabf97 Add Thai Unicode conersion table for Mac
git-svn-id: svn://10.0.0.236/trunk@7038 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 09:18:28 +00:00
ftang%netscape.com
38fcda1489 add macthai.uf and macthai.ut which build based on
ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/APPLE/THAI.TXT
dated Feb 6,1998


git-svn-id: svn://10.0.0.236/trunk@7037 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 09:13:51 +00:00
rpotts%netscape.com
fe90fe64c6 Disable NET_PollSockets(...) optimization until it works correctly...
git-svn-id: svn://10.0.0.236/trunk@7036 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 09:13:20 +00:00
ftang%netscape.com
9eada2ea36 Check in new cp874.ut cp874.uf based on the one which include EURO sign.
The source is posted in ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP874.TXT
and date as Apr 15, 1998 by cpxlate@microsoft.com


git-svn-id: svn://10.0.0.236/trunk@7035 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 09:04:33 +00:00
ftang%netscape.com
bd5bbb0616 add Unicode conversion table for Thai
git-svn-id: svn://10.0.0.236/trunk@7034 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 08:46:02 +00:00
ftang%netscape.com
450443c152 Make the table easier to change and read.
git-svn-id: svn://10.0.0.236/trunk@7033 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 08:03:19 +00:00
ftang%netscape.com
318d37b780 Check in submit by Samphan Raruenrom <samphan@email.ksc.net> for Thai support.
git-svn-id: svn://10.0.0.236/trunk@7032 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 07:53:24 +00:00
ftang%netscape.com
4cb0b7d10c Check in submit by Samphan Raruenrom <samphan@email.ksc.net> for Thai languages
git-svn-id: svn://10.0.0.236/trunk@7031 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 07:52:36 +00:00
ftang%netscape.com
8cdb0ab306 Check in changes for Thai WinFE UI changes. Approved by Garrett Blythe
submitted by samphan@email.ksc.net (with slight changes)


git-svn-id: svn://10.0.0.236/trunk@7030 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 07:49:21 +00:00
ftang%netscape.com
412d0bb646 Check in change to make it easier to do different line breaking.
Prepare for Thai line break to land. approved by thshok


git-svn-id: svn://10.0.0.236/trunk@7029 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 07:44:33 +00:00
ftang%netscape.com
556baa99b8 Add NPL to file in fromftp .
Check in unicode table submit by chenxy@sun.ihep.ac.cn


git-svn-id: svn://10.0.0.236/trunk@7028 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 07:42:06 +00:00
ftang%netscape.com
47ff0d6d0d check in the changes in 3.4 again after teh tree is green
git-svn-id: svn://10.0.0.236/trunk@7027 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 07:35:18 +00:00
rpotts%netscape.com
1c2b66d0d1 Added a new test for the raptorweb.dll COM factory. This is WIN32 only
git-svn-id: svn://10.0.0.236/trunk@7026 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 06:48:28 +00:00
rpotts%netscape.com
99f9d9ce10 Added support (on WIN32 only) for the raptorweb.dll to be a COM component...
git-svn-id: svn://10.0.0.236/trunk@7025 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 06:46:38 +00:00
rpotts%netscape.com
05ff888e16 Added check to see if DocLoader exists before dereferencing the pointer...
git-svn-id: svn://10.0.0.236/trunk@7024 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 06:45:43 +00:00
mjudge%netscape.com
b611fe765a Ender checkins got Nisheeth's approval. whew last one
git-svn-id: svn://10.0.0.236/trunk@7023 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 06:18:19 +00:00
mjudge%netscape.com
9f99464fef Damn almost let that one by.
git-svn-id: svn://10.0.0.236/trunk@7022 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 06:16:47 +00:00
mjudge%netscape.com
f6972e7936 Ender checkins got Nisheeth's approval.
git-svn-id: svn://10.0.0.236/trunk@7021 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 06:14:59 +00:00
mjudge%netscape.com
446b48f5ce Error if ENDER turned on. inside ifdef
git-svn-id: svn://10.0.0.236/trunk@7020 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 06:09:47 +00:00
mjudge%netscape.com
fc954d3e8a Ender checkins got Nisheeth's approval.
git-svn-id: svn://10.0.0.236/trunk@7019 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 06:08:32 +00:00
michaelp%netscape.com
c16cdc6288 plugin changes.
git-svn-id: svn://10.0.0.236/trunk@7018 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 05:47:53 +00:00
michaelp%netscape.com
fcde59601b turned on plugins.
git-svn-id: svn://10.0.0.236/trunk@7017 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 05:47:34 +00:00
michaelp%netscape.com
0d0da6883a changes for plugins.
git-svn-id: svn://10.0.0.236/trunk@7016 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 05:47:19 +00:00
michaelp%netscape.com
eaa37a2444 changes for plugin support.
git-svn-id: svn://10.0.0.236/trunk@7015 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 05:46:47 +00:00
pierre%netscape.com
bb5be67502 Changed to the log filename to "Mozilla.BuildLog" as required by the Tinderbox script.
git-svn-id: svn://10.0.0.236/trunk@7014 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 02:37:32 +00:00
buster%netscape.com
e8a410eac4 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@7013 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 02:36:31 +00:00
buster%netscape.com
66c58fcd10 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@7012 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 02:32:27 +00:00
buster%netscape.com
7a18ab6e6c fixed cases where we were not computing the table width correctly
fixed cases where we were inappropriately portioning out
a spanning cell's min width to the columns it spanned.


git-svn-id: svn://10.0.0.236/trunk@7011 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 02:31:55 +00:00
buster%netscape.com
c5e030feb0 fixed a memory leak on a style context
git-svn-id: svn://10.0.0.236/trunk@7010 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 02:30:35 +00:00
spider%netscape.com
86ede49e0d Prefs support
git-svn-id: svn://10.0.0.236/trunk@7009 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 01:43:57 +00:00
peterl%netscape.com
da229082e2 sync to new unit conversion functions
git-svn-id: svn://10.0.0.236/trunk@7008 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 01:08:36 +00:00
warren%netscape.com
3aa25d856d Added compile of base for mozilla.
git-svn-id: svn://10.0.0.236/trunk@7007 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 01:01:27 +00:00
peterl%netscape.com
59508a6259 re-added backed-out changes
git-svn-id: svn://10.0.0.236/trunk@7006 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 00:56:28 +00:00
despotdaemon%netscape.com
7431dbd43b Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@7005 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 00:42:01 +00:00
warren%netscape.com
f7983eaff1 removed jsj for MOZ_JAVA
git-svn-id: svn://10.0.0.236/trunk@7004 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 00:03:31 +00:00
donm%netscape.com
fd2f6646d6 backing out changes made while trying to land OJI.
git-svn-id: svn://10.0.0.236/trunk@7003 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 23:58:26 +00:00
warren%netscape.com
e5b5100917 Stubbed out nsZig.c
git-svn-id: svn://10.0.0.236/trunk@7002 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 23:58:02 +00:00
beard%netscape.com
827e053795 For OJI landing, changed access paths from mozila/lib/plugin to mozilla/modules/plugin/src, added Caps[Debug].o static libraries.
git-svn-id: svn://10.0.0.236/trunk@7001 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 23:49:49 +00:00
warren%netscape.com
51701bcb12 Changes from OJI_19980727_BRANCH since the OJI_19980727_TIP_MERGE tag.
git-svn-id: svn://10.0.0.236/trunk@7000 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 23:41:45 +00:00
peterl%netscape.com
ac2ec1a340 rounding support
git-svn-id: svn://10.0.0.236/trunk@6999 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 23:34:45 +00:00
michaelp%netscape.com
2f0ac5c990 Fixed Raptor build bustage caused by the OJI landing...
git-svn-id: svn://10.0.0.236/trunk@6997 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 23:32:08 +00:00
peterl%netscape.com
ad487cbb39 replaced macros with inline functions
git-svn-id: svn://10.0.0.236/trunk@6996 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 23:27:36 +00:00
warren%netscape.com
cf5f61ee24 Fixed mysterious c++ name mangling problem.
git-svn-id: svn://10.0.0.236/trunk@6995 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 23:19:02 +00:00
warren%netscape.com
f0afa16a2f Added plugin dir
git-svn-id: svn://10.0.0.236/trunk@6994 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 23:14:42 +00:00
peterl%netscape.com
1f85b02bec temporarily removed CvtURL test to fix build
git-svn-id: svn://10.0.0.236/trunk@6993 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 22:56:02 +00:00
donm%netscape.com
51f1a96c5d backing out change made during OJIcarpool.
git-svn-id: svn://10.0.0.236/trunk@6992 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 22:54:04 +00:00
joki%netscape.com
e21130395e Change AddScriptListener call to get EventManager from window, not tag content
git-svn-id: svn://10.0.0.236/trunk@6991 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 22:53:00 +00:00
thom%netscape.com
1040fc9cbe Added new domDebug.slib target. Envolved added a bunch of shared libraries, but only for that target. Also added all the DOM files that weren't in the project previously and grouped them. This change was for ALL targets.
git-svn-id: svn://10.0.0.236/trunk@6990 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 22:49:58 +00:00
warren%netscape.com
a8abe80143 Added plugimpl include path (even though it's the current dir) to fix irix breakage.
git-svn-id: svn://10.0.0.236/trunk@6989 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 22:49:31 +00:00
warren%netscape.com
972b565f31 Added caps
git-svn-id: svn://10.0.0.236/trunk@6988 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 22:43:05 +00:00
kmcclusk%netscape.com
bdae8e6b98 Removed call to XtMoveWidget since this breaks the IRIX build.
git-svn-id: svn://10.0.0.236/trunk@6987 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 22:36:54 +00:00
warren%netscape.com
48bb689076 fixed irix -rdynamic (again)
git-svn-id: svn://10.0.0.236/trunk@6986 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 22:25:23 +00:00
joki%netscape.com
ddaa767e02 Filling out document event handlers, adding form events
git-svn-id: svn://10.0.0.236/trunk@6985 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 22:09:51 +00:00
joki%netscape.com
741dfdf08c Adding form events in, filling out window event handling code.
git-svn-id: svn://10.0.0.236/trunk@6984 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 22:09:03 +00:00
thom%netscape.com
3ffd801f50 Added MOZ_NGLAYOUT. This had better not effect any other platforms or we're doomed.
git-svn-id: svn://10.0.0.236/trunk@6983 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 22:08:15 +00:00
joki%netscape.com
2cccada0d4 More new event types
git-svn-id: svn://10.0.0.236/trunk@6981 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 22:01:42 +00:00
warren%netscape.com
5e49404e07 Removed build of java classes.
git-svn-id: svn://10.0.0.236/trunk@6980 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:54:16 +00:00
warren%netscape.com
07bd30dde7 removed bad rules from old ns tree
git-svn-id: svn://10.0.0.236/trunk@6979 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:38:13 +00:00
kmcclusk%netscape.com
a2f786f21a Removed debug output.
git-svn-id: svn://10.0.0.236/trunk@6978 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:37:51 +00:00
warren%netscape.com
1e26476c44 Removed -rdynamic for irix.
git-svn-id: svn://10.0.0.236/trunk@6977 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:34:15 +00:00
warren%netscape.com
af74b07970 Fixed _jni dir problem
git-svn-id: svn://10.0.0.236/trunk@6976 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:22:43 +00:00
clayton
62a3e61147 Makefile.PL - Fixed a build problem with NT and Perl 5.005
- Added define for LDAPV3.
            - Needs gobs of work before release
               o LDAPv2 Library Support
               o Better UI
               o Consistent environment variable usage.


git-svn-id: svn://10.0.0.236/trunk@6975 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:18:29 +00:00
clayton
d07d7bbac2 Fixed the 'use' line in the examples. Removed a few lines from api.pl
and added a configuration option to set the number of adds.


git-svn-id: svn://10.0.0.236/trunk@6974 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:16:32 +00:00
kmcclusk%netscape.com
3238987342 Fixed SetCursor
git-svn-id: svn://10.0.0.236/trunk@6973 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:13:31 +00:00
warren%netscape.com
20b5610704 Removed unzip step.
git-svn-id: svn://10.0.0.236/trunk@6972 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:12:32 +00:00
warren%netscape.com
63a5564d72 Fixed breakage on irix -- couldn't cast void* to int.
git-svn-id: svn://10.0.0.236/trunk@6971 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:06:04 +00:00
kmcclusk%netscape.com
f5749c3dcc Fixed up scrolling some more.
git-svn-id: svn://10.0.0.236/trunk@6970 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 20:48:30 +00:00
warren%netscape.com
5254948d65 Landing changes in the OJI_19980727_BRANCH since the OJI_19980727_TIP_MERGE tag.
git-svn-id: svn://10.0.0.236/trunk@6969 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 20:46:45 +00:00
warren%netscape.com
d149ed5625 Landing changes in the OJI_19980727_BRANCH since the OJI_19980727_TIP_MERGE tag.
git-svn-id: svn://10.0.0.236/trunk@6968 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 20:31:14 +00:00
warren%netscape.com
3c42f93bf9 Landing changes in the OJI_19980727_BRANCH since the OJI_19980727_TIP_MERGE tag.
git-svn-id: svn://10.0.0.236/trunk@6967 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 20:19:50 +00:00
kmcclusk%netscape.com
16d692ef0b Fix for Linux.
git-svn-id: svn://10.0.0.236/trunk@6966 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 20:06:41 +00:00
kostello%netscape.com
ede619c82a Add NS_RELEASE in save code
git-svn-id: svn://10.0.0.236/trunk@6965 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 18:35:19 +00:00
kostello%netscape.com
a7b5f12c78 Fix retail build problem
git-svn-id: svn://10.0.0.236/trunk@6964 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 18:34:53 +00:00
joki%netscape.com
3666aec195 Adding get status method to nsIBrowserWindow
git-svn-id: svn://10.0.0.236/trunk@6963 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 18:22:27 +00:00
joki%netscape.com
098159977e Adding support for event handlers in html tags and moving event handler IIDs to central file.
git-svn-id: svn://10.0.0.236/trunk@6962 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 18:21:37 +00:00
karnaze%netscape.com
aa933a2dd5 temporary fix of bug causing www.stocksite.com to crash
git-svn-id: svn://10.0.0.236/trunk@6961 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 17:47:50 +00:00
kmcclusk%netscape.com
d5612e4264 Added extern reference for XtMoveWidget to fix Irix build.
git-svn-id: svn://10.0.0.236/trunk@6960 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 17:40:43 +00:00
kmcclusk%netscape.com
d7c85290bf Removed XmP.h include
git-svn-id: svn://10.0.0.236/trunk@6957 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 16:57:02 +00:00
kostello%netscape.com
eaeb75712d Moved DoCopy and related methods out of debug build into public
git-svn-id: svn://10.0.0.236/trunk@6956 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 16:53:45 +00:00
kmcclusk%netscape.com
eec5a10700 Fix for Irix. Pass Positions to XtMoveWidget
git-svn-id: svn://10.0.0.236/trunk@6955 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 16:39:43 +00:00
kmcclusk%netscape.com
e46ccabec6 Fix for IRIX build.
git-svn-id: svn://10.0.0.236/trunk@6954 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 15:52:20 +00:00
ramiro%netscape.com
651ee361f4 Fix small typo.
git-svn-id: svn://10.0.0.236/trunk@6953 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 11:37:03 +00:00
ramiro%netscape.com
8ef332b25b Make it build on solaris.
git-svn-id: svn://10.0.0.236/trunk@6952 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 11:30:03 +00:00
ramiro%netscape.com
2eddd55d12 Make it build on losing platforms.
git-svn-id: svn://10.0.0.236/trunk@6951 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 11:28:35 +00:00
ramiro%netscape.com
b9dc591ecb oops. check the value, not the pointer.
git-svn-id: svn://10.0.0.236/trunk@6950 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 11:25:15 +00:00
ramiro%netscape.com
fe09c443a4 Pick a dumbass pixmap default for loser platforms.
git-svn-id: svn://10.0.0.236/trunk@6949 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 11:23:36 +00:00
ramiro%netscape.com
e46af11968 I want to build these tests on platforms that dont have xpm, so i added
some ifdefs to allow building on loser platforms that dont ship xpm.


git-svn-id: svn://10.0.0.236/trunk@6948 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 11:00:24 +00:00
ramiro%netscape.com
e09030687b Add caption files.
git-svn-id: svn://10.0.0.236/trunk@6947 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 10:46:34 +00:00
ramiro%netscape.com
f2b0de0319 Unbloat the XfeWidgets a little bit. Move the combo stuff to their own lib.
git-svn-id: svn://10.0.0.236/trunk@6946 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 10:22:09 +00:00
peterl%netscape.com
1431e4c8e5 connected prefs
git-svn-id: svn://10.0.0.236/trunk@6945 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 06:02:06 +00:00
peterl%netscape.com
2a63cbc80b connected prefs, tweaked UI font sizes
git-svn-id: svn://10.0.0.236/trunk@6944 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 06:01:45 +00:00
peterl%netscape.com
effad0e88b renamed LoadImage
git-svn-id: svn://10.0.0.236/trunk@6943 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 05:59:31 +00:00
mcafee%netscape.com
825dd8b76e These files moved to Netscape private tree, ns/fullsoft.
git-svn-id: svn://10.0.0.236/trunk@6942 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 05:59:17 +00:00
peterl%netscape.com
78fe4d5089 connected prefs to the webshell
git-svn-id: svn://10.0.0.236/trunk@6941 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 05:58:41 +00:00
peterl%netscape.com
456b6e2d39 cleaned up
git-svn-id: svn://10.0.0.236/trunk@6940 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 05:58:13 +00:00
peterl%netscape.com
2acc4cfa0e renamed LoadImage to avoid conflicts with windows headers
git-svn-id: svn://10.0.0.236/trunk@6939 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 05:55:41 +00:00
peterl%netscape.com
5411e49c2d connected prefs
added compatibility mode


git-svn-id: svn://10.0.0.236/trunk@6938 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 05:54:59 +00:00
peterl%netscape.com
f28d7e2a30 improved font rounding when app units aren't twips
git-svn-id: svn://10.0.0.236/trunk@6937 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 05:53:55 +00:00
sdagley%netscape.com
1095e94380 Merging fix for #311292
git-svn-id: svn://10.0.0.236/trunk@6936 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 05:37:56 +00:00
mjudge%netscape.com
92bd81fc60 Updating files for Ender, should all be ifdefed. reviewed->danm
git-svn-id: svn://10.0.0.236/trunk@6935 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 05:31:02 +00:00
mjudge%netscape.com
fda02295cd Adding files for Ender, should all be ifdefed. reviewed->danm
git-svn-id: svn://10.0.0.236/trunk@6934 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 05:27:32 +00:00
mjudge%netscape.com
e9d1eee5d3 Adding file for Ender's toolbar reviewed->danm
git-svn-id: svn://10.0.0.236/trunk@6933 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 05:26:44 +00:00
karnaze%netscape.com
8fa66a552f sizing improvements of form controls for nav4 compatibility
git-svn-id: svn://10.0.0.236/trunk@6932 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 05:22:35 +00:00
guha%netscape.com
ebc10caa28 Fix build breakage
git-svn-id: svn://10.0.0.236/trunk@6927 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 03:29:24 +00:00
toshok%netscape.com
f1c203035b make sure we use the right size for an LO_FLOAT element.
git-svn-id: svn://10.0.0.236/trunk@6926 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 03:25:08 +00:00
toshok%netscape.com
17e01443e6 track change to lo_AppendFloatInLineList, and plug a style sheet memory leak.
git-svn-id: svn://10.0.0.236/trunk@6925 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 03:23:54 +00:00
toshok%netscape.com
32ed47adb3 Change lo_AppendFloatInLineList to use lo_NewElement instead of XP_NEW_ZAP. This fixes a memory leak, since now it's allocated from the arena instead of just random heap space.
git-svn-id: svn://10.0.0.236/trunk@6924 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 03:22:35 +00:00
toshok%netscape.com
581b791ae3 Add LO_SPACER to the list of elements to ignore in lo_DisplayElement.
git-svn-id: svn://10.0.0.236/trunk@6923 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 03:19:21 +00:00
toshok%netscape.com
ad26fcbbfc plug memory leak.
git-svn-id: svn://10.0.0.236/trunk@6922 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 03:11:30 +00:00
guha%netscape.com
9e61e87372 Make related links work again
git-svn-id: svn://10.0.0.236/trunk@6921 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 02:55:27 +00:00
guha%netscape.com
7681c7bed8 Make Related links work again
git-svn-id: svn://10.0.0.236/trunk@6920 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 02:54:10 +00:00
mcafee%netscape.com
5bfeb23563 Moving this file to the Netscape private tree @ ns/fullsoft/public/fullsoft.h
git-svn-id: svn://10.0.0.236/trunk@6919 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 02:25:43 +00:00
thom%netscape.com
84f17a989b Someone forgot to add nsParserCIID.h to the manifest, broke mac build (what about the others?)
git-svn-id: svn://10.0.0.236/trunk@6918 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 02:24:24 +00:00
leif
f93b06cfdf *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6917 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 02:22:50 +00:00
ftang%netscape.com
5b5645a301 back up last check in untill Mac Gromit tree green
git-svn-id: svn://10.0.0.236/trunk@6916 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 01:55:21 +00:00
mccabe%netscape.com
cd73b6485a Another attempt to remove trailing nul characters added courtesy CVS.
git-svn-id: svn://10.0.0.236/trunk@6915 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 01:45:05 +00:00
buster%netscape.com
741b4316ae LengthOf defined in both debug and non-debug builds
git-svn-id: svn://10.0.0.236/trunk@6914 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 01:40:21 +00:00
clu%netscape.com
7a3534c2f3 Backing out changes.
git-svn-id: svn://10.0.0.236/trunk@6913 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 00:43:46 +00:00
buster%netscape.com
7e38cceda4 we now paint backgrounds regardless of our content. Cell borders are
still conditionally painted based on whether the cell's content has
0=size or not.


git-svn-id: svn://10.0.0.236/trunk@6912 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 00:32:27 +00:00
buster%netscape.com
fa31586077 fixed an error where min width of col spanners were getting proportionately distributed
only desired width gets distributed, not min size.


git-svn-id: svn://10.0.0.236/trunk@6911 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 00:31:09 +00:00
mjudge%netscape.com
ad7d54c91e ENDER checkins. all Ifdef'd out
git-svn-id: svn://10.0.0.236/trunk@6910 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 00:24:57 +00:00
blythe%netscape.com
3289858341 Remove unneeded functions
git-svn-id: svn://10.0.0.236/trunk@6909 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 00:18:30 +00:00
warren%netscape.com
b5a5fc2ebe Added dummy privilege manager classes.
git-svn-id: svn://10.0.0.236/trunk@6908 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 00:14:18 +00:00
mccabe%netscape.com
b32b6c20e8 Propagating numerous fixes from js/ref
and development branches, including but
not limited to:

- Preliminary exception handling per
ECMA proposal; try, multiple
catchblocks, and finally.  Catchblocks
are of the form catch (v) or
catch(v:<guard>), where guard is an
optional boolean expression that is
evaluated to determine whether the
exception is to be caught by that block.

- ECMA-proposed 'in' operator; "'foo' in
o" or "4 in o" asks if o has property
foo or element 4.

- Added a new set of defines in
jsconfig.h for js 1.4
features-in-progress.  (in, instanceof,
exception handling.)  Default build
version is now 1.4.  Fixed a few
conditional features that had become
broken.

- Progress towards porting to FreeBSD
and Alpha; casts of NaN and friends to
int are a little more localized.  Not
there yet...

- New config files to compile on more
OSes; various fixes to improve
portability.


git-svn-id: svn://10.0.0.236/trunk@6907 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 00:07:22 +00:00
ftang%netscape.com
8eb80556d6 Fix 310625. Change single byte conversion table in macfe.r to convert EURO sign from 0x80 (cp1252) to 0xDB (MacRoman)
git-svn-id: svn://10.0.0.236/trunk@6906 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 23:58:53 +00:00
mccabe%netscape.com
5dce40da3b Propagating work and bug fixes from
development branch:

- Preliminary exception handling per
ECMA proposal; try, multiple
catchblocks, and finally.  Catchblocks
are of the form catch (v) or
catch(v:<guard>), where guard is an
optional boolean expression that is
evaluated to determine whether the
exception is to be caught by that block.

- ECMA-proposed 'in' operator; "'foo' in
o" or "4 in o" asks if o has property
foo or element 4.

- Added a new set of defines in
jsconfig.h for js 1.4
features-in-progress.  (in, instanceof,
exception handling.)  Default build
version is now 1.4.  Fixed a few
conditional features that had become
broken.

- Progress towards porting to FreeBSD
and Alpha; casts of NaN and friends to
int are a little more localized.  Not
there yet...

- New config files to compile on more
OSes; various fixes to improve
portability.


git-svn-id: svn://10.0.0.236/trunk@6905 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 23:46:29 +00:00
mccabe%netscape.com
b289a7e9f5 Added NPL.
git-svn-id: svn://10.0.0.236/trunk@6904 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 23:44:39 +00:00
spider%netscape.com
e421318622 Use new raptor gfx stuff
git-svn-id: svn://10.0.0.236/trunk@6903 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 23:33:17 +00:00
michaelp%netscape.com
2ee65356fb improved performance of background rendering.
git-svn-id: svn://10.0.0.236/trunk@6902 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 23:31:42 +00:00
scullin%netscape.com
3ee1c27792 Fixed date struct overflow.
git-svn-id: svn://10.0.0.236/trunk@6901 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 23:30:10 +00:00
spider%netscape.com
a67a24d215 New rules to pull/build raptor as dist
git-svn-id: svn://10.0.0.236/trunk@6900 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 23:28:03 +00:00
spider%netscape.com
34a0f53dec Update to new nsIWidget interface
git-svn-id: svn://10.0.0.236/trunk@6899 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 23:26:58 +00:00
clu%netscape.com
ffaeff57e7 #300214; #300216; #300212; reviewed by jfrancis.
Fixed PREV and NEXT in cell dialog in order that it would apply the changes before moving down to the next selection.  Fixed the color chip in cell dialog so it now updates correctly.  Captions in the cell dialog are now enabled and disabled with their respective edit fields.


git-svn-id: svn://10.0.0.236/trunk@6898 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 23:25:34 +00:00
spider%netscape.com
2b601bf2f4 Removing NS_NewParserNode method
git-svn-id: svn://10.0.0.236/trunk@6897 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 23:14:18 +00:00
kmcclusk%netscape.com
53a506556c Fixes for scrolling. Each widget does an AddChild to insert it in it's parent's
list of children.


git-svn-id: svn://10.0.0.236/trunk@6896 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 23:06:32 +00:00
pierre%netscape.com
9364207962 fix tinderbox: compile the MemAllocator stubs before NSRuntime
git-svn-id: svn://10.0.0.236/trunk@6895 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 22:54:07 +00:00
spider%netscape.com
443dbc8a98 XPCOM'ing the parser. Use repository to get a parser now.
git-svn-id: svn://10.0.0.236/trunk@6893 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 22:42:27 +00:00
spider%netscape.com
4c38e53112 Support for parser changes
git-svn-id: svn://10.0.0.236/trunk@6892 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 22:29:10 +00:00
troy%netscape.com
918e7f33f8 Removed assertion in image complete code that assumed we have gotten at
least one pixmap update notification


git-svn-id: svn://10.0.0.236/trunk@6891 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 22:24:11 +00:00
leif
515a889e19 Changed all hardcoded index references, e.g. 0 to $[.
git-svn-id: svn://10.0.0.236/trunk@6890 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 22:12:24 +00:00
leif
a018b1f1ba - Changed all hardcoded index numbers (from 0 to $[).
- Added modifyRDN, not tested yet...


git-svn-id: svn://10.0.0.236/trunk@6889 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 22:12:02 +00:00
thom%netscape.com
3b31111d11 Added Shared Library target. Shouldn't affect any current targets.
git-svn-id: svn://10.0.0.236/trunk@6888 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 21:36:21 +00:00
karnaze%netscape.com
9644a5c3c8 turn off frameborders ala nav4; mouse sensitive to frame borders, but can't yet resize
git-svn-id: svn://10.0.0.236/trunk@6884 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 21:25:35 +00:00
kmcclusk%netscape.com
31595bc655 Build XImage on each draw only if Optimize has not been called.
git-svn-id: svn://10.0.0.236/trunk@6883 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 20:42:15 +00:00
troy%netscape.com
197e645830 Fixed some crashes where it wa assumes mStr was non-NULL
git-svn-id: svn://10.0.0.236/trunk@6882 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 20:36:51 +00:00
buster%netscape.com
c3210c7b46 fixed non-Debug build by making LengthOf part of both debug and non-Debug builds
git-svn-id: svn://10.0.0.236/trunk@6881 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 19:54:17 +00:00
rickg%netscape.com
18cb3820b8 more string improvements
git-svn-id: svn://10.0.0.236/trunk@6880 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 18:35:58 +00:00
rickg%netscape.com
6a4fa58e55 fixed string assignment bug
git-svn-id: svn://10.0.0.236/trunk@6879 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 18:26:46 +00:00
troy%netscape.com
93da04bdcf Added some calls to NS_RELEASE() when exiting the function
git-svn-id: svn://10.0.0.236/trunk@6878 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 17:46:33 +00:00
kmcclusk%netscape.com
2135ae7e66 Changed Enumerator constructor to initialize mRefCnt to 1 instead of 0.
git-svn-id: svn://10.0.0.236/trunk@6877 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 17:40:22 +00:00
troy%netscape.com
711459c9ae Re-ordered some code to ensure we don't miss a Release() call
git-svn-id: svn://10.0.0.236/trunk@6876 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 17:39:41 +00:00
kmcclusk%netscape.com
911790834d Changed back to initialize refcount to 1 instead of 0 for now.
git-svn-id: svn://10.0.0.236/trunk@6875 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 17:37:26 +00:00
troy%netscape.com
123d50d86b Added XXX comment about the lack of proper ref counting...
git-svn-id: svn://10.0.0.236/trunk@6874 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 17:30:44 +00:00
kmcclusk%netscape.com
c55ea2573c Fix for loading second document in the viewer
git-svn-id: svn://10.0.0.236/trunk@6873 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 17:29:22 +00:00
kipp%netscape.com
a6afed5582 Make gamma 1.0
git-svn-id: svn://10.0.0.236/trunk@6872 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 16:07:18 +00:00
kipp%netscape.com
ca5c9e43cc Removed ForceRefresh call
git-svn-id: svn://10.0.0.236/trunk@6871 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 16:07:04 +00:00
kipp%netscape.com
1348d186a9 Moved root creation into WillBuildModel; added code to enable refresh of the display on the first StartLayout call
git-svn-id: svn://10.0.0.236/trunk@6870 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 16:06:22 +00:00
dfm%netscape.com
4d1f5e2897 Moved a couple necessary things out of receipt.c into privacy.c. This
file doesn't build on the tip.


git-svn-id: svn://10.0.0.236/trunk@6869 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 14:55:50 +00:00
leif
6bc4a36c04 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6868 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 10:14:41 +00:00
leif
9407f90220 This mostly works now.
git-svn-id: svn://10.0.0.236/trunk@6867 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 10:13:23 +00:00
leif
9630a95462 This actually works now, mostly...
git-svn-id: svn://10.0.0.236/trunk@6866 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 10:08:31 +00:00
leif
2ca35af400 Fixed references to normalizeDN.
git-svn-id: svn://10.0.0.236/trunk@6865 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 10:08:00 +00:00
leif
feedc2e63c - Bug fixes in normalizeDN, because of calling convention changed.
- Added the answer function, from our LdapUtils.pm module.


git-svn-id: svn://10.0.0.236/trunk@6864 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 10:06:56 +00:00
leif
655135bbdc *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6863 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 09:55:12 +00:00
leif
cd7a2de712 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6862 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 09:52:33 +00:00
leif
71fd832d76 Minor changes.
git-svn-id: svn://10.0.0.236/trunk@6861 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 09:52:19 +00:00
leif
79ab6e22ec * Bug fixes.
* Changed the update code, works.

* Added some debug code for the LDAPMod code.


git-svn-id: svn://10.0.0.236/trunk@6860 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 09:51:35 +00:00
leif
73eaecc323 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6859 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 09:22:15 +00:00
leif
8d74f72858 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6858 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 09:02:33 +00:00
leif
c956783074 Added unixCrypt. This is non-portable, since it doesn't exist on
Windows...


git-svn-id: svn://10.0.0.236/trunk@6857 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 08:43:06 +00:00
leif
afb8179583 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6856 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 08:42:31 +00:00
chuckb%netscape.com
3b81970ba8 Small fix for killing connections
git-svn-id: svn://10.0.0.236/trunk@6855 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 07:35:57 +00:00
valeski%netscape.com
a86457db07 309383 - http:// is now assumed by the browser shell window url bar.
git-svn-id: svn://10.0.0.236/trunk@6854 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 06:57:02 +00:00
leif
0a43abaf6c *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6853 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 06:49:18 +00:00
leif
3da0615f40 This is the first version, of a script originally implemented at Netscape.
git-svn-id: svn://10.0.0.236/trunk@6852 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 06:49:03 +00:00
slamm%netscape.com
6654b1f9f5 Reverting to 3.4. Changes were breaking the builds.
git-svn-id: svn://10.0.0.236/trunk@6851 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 06:11:41 +00:00
leif
5ebce5fcdf *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6848 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 05:26:08 +00:00
troy%netscape.com
d67ed45304 Changed BuildCellMap() to iterate table cell frames using the sibling
list instead of ChildAt()


git-svn-id: svn://10.0.0.236/trunk@6847 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 04:50:38 +00:00
pierre%netscape.com
8ac7ba0910 fixing Unix build
git-svn-id: svn://10.0.0.236/trunk@6846 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 04:47:44 +00:00
cmanske%netscape.com
8be1a4ec6d Fixed build bustage
git-svn-id: svn://10.0.0.236/trunk@6845 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 04:38:01 +00:00
pierre%netscape.com
24e28fb9d2 removed nsDocLoader.cpp which already sits in webshell.mcp
git-svn-id: svn://10.0.0.236/trunk@6844 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 03:41:26 +00:00
pierre%netscape.com
4c46861f34 fixing Mac build: added "ostrstream.h"
git-svn-id: svn://10.0.0.236/trunk@6843 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 03:38:37 +00:00
pierre%netscape.com
83de131366 added ostrstream.h
git-svn-id: svn://10.0.0.236/trunk@6842 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 03:32:43 +00:00
pierre%netscape.com
e5201ae718 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@6841 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 03:32:20 +00:00
leif
8e9e2b911a *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6840 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 03:08:03 +00:00
troy%netscape.com
4cfdd62847 Changed nsString to nsAutoString to eliminate heap allocation
git-svn-id: svn://10.0.0.236/trunk@6838 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 02:49:13 +00:00
despotdaemon%netscape.com
19d0b80056 Pseudo-automatic update of changes made by jwz@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6837 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 02:47:33 +00:00
gagan%netscape.com
5af3525e5e Fix for 309717 and 64550.
git-svn-id: svn://10.0.0.236/trunk@6835 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 02:32:48 +00:00
cmanske%netscape.com
db02faf87d Backed out hack for loading image problems in Composer
git-svn-id: svn://10.0.0.236/trunk@6834 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 02:32:46 +00:00
cmanske%netscape.com
23a6ffe225 Backed out hack for loading image problems in Composer. Also fixed other Composer bugs
git-svn-id: svn://10.0.0.236/trunk@6833 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 02:30:35 +00:00
cmanske%netscape.com
dee408681b Backed out hack for loading image problems in Composer. The correct mime converter is now being used
git-svn-id: svn://10.0.0.236/trunk@6832 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 02:20:52 +00:00
ramiro%netscape.com
af9d5f0304 Add clobber_all target to make mozilla build system happy.
git-svn-id: svn://10.0.0.236/trunk@6831 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 02:05:13 +00:00
slamm%netscape.com
694ab1fe1c Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@6830 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 01:53:30 +00:00
scc%netscape.com
26b948db34 added Chris Nandor's changes to call CodeWarriorLib.pm instead of using AppleScript.
git-svn-id: svn://10.0.0.236/trunk@6827 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 01:09:52 +00:00
scc%netscape.com
b972bab520 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@6826 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 01:04:27 +00:00
scc%netscape.com
d884324335 removed Talkback glue library
git-svn-id: svn://10.0.0.236/trunk@6825 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 01:02:37 +00:00
scc%netscape.com
0db2e2e30f removed FullCircle headers
git-svn-id: svn://10.0.0.236/trunk@6824 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 01:01:17 +00:00
scc%netscape.com
905181057a conditionalized references to FullCircle routines and headers
git-svn-id: svn://10.0.0.236/trunk@6823 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 00:58:34 +00:00
racham%netscape.com
ccbc26fbe6 1step & 2step changes
git-svn-id: svn://10.0.0.236/trunk@6822 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 00:42:52 +00:00
blythe%netscape.com
ac6882437f winpref optimization, submitted by rix2k@radsoft.net
git-svn-id: svn://10.0.0.236/trunk@6821 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 00:27:35 +00:00
racham%netscape.com
42b41ca723 Added Onestepmode checkbox text
git-svn-id: svn://10.0.0.236/trunk@6820 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 00:23:01 +00:00
racham%netscape.com
c507f796aa 1step mode is set to default
git-svn-id: svn://10.0.0.236/trunk@6819 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 00:21:55 +00:00
racham%netscape.com
5b140ce414 1step & 2step changes
git-svn-id: svn://10.0.0.236/trunk@6818 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 00:18:47 +00:00
hardts%netscape.com
1380afdee5 make NGLayout use tip imagelib
git-svn-id: svn://10.0.0.236/trunk@6817 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 00:16:06 +00:00
timm%netscape.com
617756d545 put in old Reggie 4.0 stuff for allowing old style reg serv connections... moved the new stuff to CompServ.IAS
git-svn-id: svn://10.0.0.236/trunk@6816 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 23:57:29 +00:00
timm%netscape.com
4379fc6a87 fix up button showing for error2.htm
git-svn-id: svn://10.0.0.236/trunk@6815 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 23:56:06 +00:00
pierre%netscape.com
3c74a5eaa1 fixing Mac build: moved NS_IMPL_IDS
git-svn-id: svn://10.0.0.236/trunk@6814 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 23:43:22 +00:00
rickg%netscape.com
2016c7c883 fixed attribute bug and factored DTDDebug interfaces
git-svn-id: svn://10.0.0.236/trunk@6813 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 23:43:20 +00:00
slamm%netscape.com
1d3f47fe60 An even easier way to fix the commercial animation.
git-svn-id: svn://10.0.0.236/trunk@6812 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 23:37:27 +00:00
pierre%netscape.com
1b97e85cdb fixing Mac build: moved NS_IMPL_IDS
git-svn-id: svn://10.0.0.236/trunk@6811 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 23:37:15 +00:00
troy%netscape.com
47dbd5c803 Changed CreateFrame() to do quick style resolution for text by calling
ResolvePseudoStyleContextFor()


git-svn-id: svn://10.0.0.236/trunk@6810 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 23:31:56 +00:00
slamm%netscape.com
57d723d6ea Fix pull of commercial animation.
git-svn-id: svn://10.0.0.236/trunk@6809 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 23:24:23 +00:00
pinkerton%netscape.com
94cd62c965 Updated "no-close-box" browser window to not have selector bar.
git-svn-id: svn://10.0.0.236/trunk@6808 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 23:17:05 +00:00
troy%netscape.com
be511b110e Changed default constructor to leave capacity at 0 and not allocate
a buffer of 24 bytes


git-svn-id: svn://10.0.0.236/trunk@6807 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 23:06:21 +00:00
kmcclusk%netscape.com
2f5683111e Added debug menu items to bring motif viewer in sync with win32 viewer.
git-svn-id: svn://10.0.0.236/trunk@6806 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 22:56:25 +00:00
pinkerton%netscape.com
37e44bb207 Turning on privacy features for dfm.
git-svn-id: svn://10.0.0.236/trunk@6805 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 22:49:24 +00:00
pinkerton%netscape.com
2ee9b92e03 Added privacy.c for dfm.
git-svn-id: svn://10.0.0.236/trunk@6804 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 22:49:01 +00:00
hardts%netscape.com
c4600fcf79 Finally use the tip imagelib
git-svn-id: svn://10.0.0.236/trunk@6803 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 22:48:44 +00:00
dfm%netscape.com
7afa6f4df7 Minor changes; this file does not yet build on tip.
git-svn-id: svn://10.0.0.236/trunk@6802 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 22:45:03 +00:00
hardts%netscape.com
1dc2e6d9d6 Reenable Charlie's editor hack to deal with IL_ViewStream/IL_NewStream problems
git-svn-id: svn://10.0.0.236/trunk@6801 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 22:42:44 +00:00
hardts%netscape.com
4672676a7f add more stub functions to ImageURLImpl to deal with changes in nsIURL
git-svn-id: svn://10.0.0.236/trunk@6800 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 22:39:28 +00:00
dfm%netscape.com
0228a06e22 Removed privacy dependencies on transaction receipt functions.
This file does not yet build in the default tree configuration.


git-svn-id: svn://10.0.0.236/trunk@6799 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 22:39:12 +00:00
pierre%netscape.com
c6d7eb9a7a fixing Windows build bustage: moved NS_IMPL_IDS
git-svn-id: svn://10.0.0.236/trunk@6798 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 22:33:29 +00:00
kmcclusk%netscape.com
4dcba7ae30 Implemented SetCursor
git-svn-id: svn://10.0.0.236/trunk@6797 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 22:33:03 +00:00
scullin%netscape.com
a34505b241 Added motif LAF stubs.
git-svn-id: svn://10.0.0.236/trunk@6796 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 22:16:24 +00:00
scullin%netscape.com
5869dcb368 Ref count fixes, fix widget test app.
git-svn-id: svn://10.0.0.236/trunk@6795 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 22:15:18 +00:00
timm%netscape.com
36ef104588 get CompServer value from ACCTSET.INI, not RegServer value for IAS file to dial
git-svn-id: svn://10.0.0.236/trunk@6794 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 22:09:37 +00:00
timm%netscape.com
c507506992 change RegSource to DUE5, add CompServer which points to compare page server
git-svn-id: svn://10.0.0.236/trunk@6793 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 22:08:46 +00:00
timm%netscape.com
81d169809e new file for compare page dial
git-svn-id: svn://10.0.0.236/trunk@6792 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:59:17 +00:00
sdagley%netscape.com
ff306adb95 Fix build hoarkage caused by missing access path in one of the project targets
git-svn-id: svn://10.0.0.236/trunk@6791 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:55:32 +00:00
akkana%netscape.com
d04aa84313 Lots of table resizing, object resizing, and table editing fixes.
git-svn-id: svn://10.0.0.236/trunk@6790 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:45:52 +00:00
scc%netscape.com
61b0eb02e1 added :mozilla:privacy:public:MANIFEST
git-svn-id: svn://10.0.0.236/trunk@6788 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:36:20 +00:00
timm%netscape.com
9cbd03adf7 change to 888
git-svn-id: svn://10.0.0.236/trunk@6787 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:31:56 +00:00
pinkerton%netscape.com
19c5c7aaa2 Use new CDockedRDFCoordinator and bumped saved state version #. (rev saari, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@6786 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:23:40 +00:00
pinkerton%netscape.com
e9d4fccf05 Remove stuff dealing with selector bar. (rev saari, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@6785 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:22:55 +00:00
pinkerton%netscape.com
6a5afa63e9 Removed obsolete command (rev saari, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@6784 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:22:37 +00:00
pinkerton%netscape.com
a8832f6ea0 removed obsolete constants (selector bar is no more).
git-svn-id: svn://10.0.0.236/trunk@6783 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:22:13 +00:00
scc%netscape.com
e2d0e914d3 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@6782 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:22:10 +00:00
pinkerton%netscape.com
90498eb149 SHACK changes (rev saari, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@6781 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:21:52 +00:00
kmcclusk%netscape.com
bca21726d0 Added the <strstream.h> for all non WIN32 platforms. Removed the ifdef WIN32 in DoCopy
git-svn-id: svn://10.0.0.236/trunk@6780 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:21:08 +00:00
pinkerton%netscape.com
5b4f890482 Removed selector bar. (rev saari, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@6779 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:20:35 +00:00
pinkerton%netscape.com
7fdf152aba No more selector bar, and broke out docked stuff into a new CDockedRDFCoordinator class. (rev saari, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@6778 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:20:16 +00:00
pinkerton%netscape.com
aae50b72a8 Shack stub implementations (rev saari, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@6777 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:19:49 +00:00
pinkerton%netscape.com
895233ceed Shack methods (rev saari, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@6776 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:19:31 +00:00
pinkerton%netscape.com
de0e98511d Removed Guide submenu (rev saari, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@6775 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:18:56 +00:00
pinkerton%netscape.com
351854c5e9 Removed selector bar stuff, and some other small stuff (rev saari, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@6774 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:18:16 +00:00
pinkerton%netscape.com
cf1ac0c58b Removed CNavCenterSelectorBar.cp (rev saari, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@6773 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:17:57 +00:00
pinkerton%netscape.com
228061140f Changed CTYP for CRDFCoordinator because it no longer has a selector bar. (rev saari, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@6772 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:17:36 +00:00
pinkerton%netscape.com
e5f36930ea Removed selector bar (rev saari, appr sdagley) and using new CDockedRDFCoordinator.
git-svn-id: svn://10.0.0.236/trunk@6771 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:17:09 +00:00
blythe%netscape.com
717caf714f Fix Build bustage, totally my fault
git-svn-id: svn://10.0.0.236/trunk@6770 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:15:23 +00:00
pierre%netscape.com
89f3d25c47 added nsSetupRegistry.cpp and nsWebCrawler.cpp
git-svn-id: svn://10.0.0.236/trunk@6769 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:09:25 +00:00
pierre%netscape.com
34090236fe fixing Mac build: moved NS_IMPL_IDS
git-svn-id: svn://10.0.0.236/trunk@6768 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:06:19 +00:00
scullin%netscape.com
db399badcd More refcount fixes.
git-svn-id: svn://10.0.0.236/trunk@6767 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:04:44 +00:00
pierre%netscape.com
dd40185241 pull the correct branches for imglib and plugin, no longer pull the 5.0 layout libs
git-svn-id: svn://10.0.0.236/trunk@6766 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 21:03:47 +00:00
pierre%netscape.com
4dee89d0c6 changed the 'modular' targets: removed cvpics.c, added cvmime.c and nsRelatedLinks.cp
git-svn-id: svn://10.0.0.236/trunk@6765 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 20:57:11 +00:00
pierre%netscape.com
4421a53984 added a bunch of cpp files according to the Window make file
git-svn-id: svn://10.0.0.236/trunk@6763 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 20:54:38 +00:00
scullin%netscape.com
c47cbfadcc Fix ref count oddities.
git-svn-id: svn://10.0.0.236/trunk@6761 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 20:49:28 +00:00
akkana%netscape.com
ac20e0a2b1 EditHdrDialog should be part of MOZ_MAIL_NEWS.
git-svn-id: svn://10.0.0.236/trunk@6760 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 20:46:18 +00:00
hardts%netscape.com
cf5fd08af6 Change from JRI_PUBLIC_API to PR_PUBLIC_API so NGLayout build will work
git-svn-id: svn://10.0.0.236/trunk@6759 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 20:38:47 +00:00
toshok%netscape.com
e587c8d3a2 Always initialize clear_type. gets rid of UMR.
git-svn-id: svn://10.0.0.236/trunk@6758 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 20:30:24 +00:00
despotdaemon%netscape.com
71608a398f Pseudo-automatic update of changes made by gagan@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6757 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 20:20:06 +00:00
kipp%netscape.com
101913b9b5 Remove most compiler warnings on IRIX
git-svn-id: svn://10.0.0.236/trunk@6756 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 20:19:08 +00:00
akkana%netscape.com
580743b370 Fix build bustage for MOZ_MEDIUM (which doesn't show up on Tinderbox!):
Move fe_make_option_menu and friends from MOZ_MAIL_NEWS to all.


git-svn-id: svn://10.0.0.236/trunk@6755 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 20:04:14 +00:00
kmcclusk%netscape.com
0b0fe0850a Added check in CreateInstance to see if QueryObject returns NS_OK. If it doesn't then release the interface.
git-svn-id: svn://10.0.0.236/trunk@6754 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 20:04:05 +00:00
toshok%netscape.com
5b7053a1c6 make sure to initialize all parts of the LO_TextStruct structure. this was causing UMR's in the XFE (and causing the text to just not be displayed).
git-svn-id: svn://10.0.0.236/trunk@6753 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 19:41:17 +00:00
kipp%netscape.com
9fd4236998 Disabled widget&view for now; render the object so that people know code is coming
git-svn-id: svn://10.0.0.236/trunk@6752 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 19:33:48 +00:00
kipp%netscape.com
70f2d42c59 Tidy up the rendering; don't take space when show-borders is on
git-svn-id: svn://10.0.0.236/trunk@6751 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 19:33:27 +00:00
kipp%netscape.com
159a848417 When debugging allow zero width/height frames to render; do not render show-borders around them however
git-svn-id: svn://10.0.0.236/trunk@6750 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 19:33:00 +00:00
blythe%netscape.com
0cf565fe00 VC6 compiler support changes, had to rename structure as now defined in system headers
git-svn-id: svn://10.0.0.236/trunk@6749 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 19:15:05 +00:00
scullin%netscape.com
f2f0d180f6 Normalize widget api on UNIX and Win.
git-svn-id: svn://10.0.0.236/trunk@6748 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 18:57:26 +00:00
scullin%netscape.com
845b37a7b7 Added LAF implementation.
git-svn-id: svn://10.0.0.236/trunk@6747 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 18:55:25 +00:00
scullin%netscape.com
47287b80cc Added LAF interface.
git-svn-id: svn://10.0.0.236/trunk@6746 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 18:54:36 +00:00
scullin%netscape.com
1af12fa1dc Normalize widget api on UNIX and win, add LAF interface, make sample
apps function again.


git-svn-id: svn://10.0.0.236/trunk@6745 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 18:51:45 +00:00
scullin%netscape.com
e8b12694fb Normalize widget api on UNIX and Win
git-svn-id: svn://10.0.0.236/trunk@6744 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 18:50:51 +00:00
scullin%netscape.com
a3a8ac0459 Make widget tests work again, normalize widget api on UNIX and Win, and
add start of platform LAF interface.


git-svn-id: svn://10.0.0.236/trunk@6743 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 18:47:50 +00:00
scullin%netscape.com
9eb212f8af Safety check our automatic context deleting. (NGLayout only)
git-svn-id: svn://10.0.0.236/trunk@6742 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 18:44:23 +00:00
rods%netscape.com
cbb188e7fa added NS_RELEASE in DoToggleSelection
git-svn-id: svn://10.0.0.236/trunk@6740 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 17:39:28 +00:00
timm%netscape.com
149282bbac change to use language value from dynamic data
git-svn-id: svn://10.0.0.236/trunk@6739 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 17:21:46 +00:00
timm%netscape.com
41b5b09c96 change to hardcoded IP numbers
git-svn-id: svn://10.0.0.236/trunk@6738 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 17:18:33 +00:00
despotdaemon%netscape.com
b34ee30d13 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6737 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 14:10:37 +00:00
ramiro%netscape.com
9b734c20fb Add underline drawing support to XfeButton - XmNunderlineThickness.
git-svn-id: svn://10.0.0.236/trunk@6736 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 12:10:32 +00:00
ramiro%netscape.com
e785b8dd24 Add XmNarmForeground resource.
git-svn-id: svn://10.0.0.236/trunk@6735 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 10:50:34 +00:00
rpotts%netscape.com
d204bd4f80 Call nsIWebShell::Destroy() when the Browser window is going away...
git-svn-id: svn://10.0.0.236/trunk@6734 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 10:49:51 +00:00
rpotts%netscape.com
2f4d8826cb Added a Destroy() method which is called when the WebShell container is going away...
git-svn-id: svn://10.0.0.236/trunk@6733 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 10:49:01 +00:00
rpotts%netscape.com
9c1ca7e3d2 Added a missing Release() which should allow the nsDocument to be destroyed...
git-svn-id: svn://10.0.0.236/trunk@6732 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 10:47:52 +00:00
ramiro%netscape.com
077da1fbd3 I screwed up. Backout changes that should not have gone in.
git-svn-id: svn://10.0.0.236/trunk@6731 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 10:06:53 +00:00
ramiro%netscape.com
923a5b4c6f Fix a bunch of comments that got screwed when the license was pasted. Also,
add a basic defines header where to put commonly accesed macros without
having to include all the stuff in <Xfe/Xfe.h>.


git-svn-id: svn://10.0.0.236/trunk@6730 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 09:53:53 +00:00
leif
eabb9f8d80 Added ChangeLog for main and example directories.
git-svn-id: svn://10.0.0.236/trunk@6729 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 09:14:06 +00:00
leif
3a1c5fa430 Added monitor.pl
git-svn-id: svn://10.0.0.236/trunk@6728 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 09:13:21 +00:00
leif
0aefd13b24 First version, this actually works as well.
git-svn-id: svn://10.0.0.236/trunk@6727 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 09:12:37 +00:00
leif
fabbed1c05 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6726 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 09:09:20 +00:00
leif
044aeb6fa1 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6725 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 09:01:12 +00:00
leif
f9afb384c1 Added support for passing a hash array of arguments, as returned by the
ldapArgs() function.


git-svn-id: svn://10.0.0.236/trunk@6724 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 09:00:51 +00:00
leif
07133eaf0b First working version.
git-svn-id: svn://10.0.0.236/trunk@6723 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 08:59:14 +00:00
leif
fe233a2e11 Changed to not import the Utils name space into this object. Bad Leif.
git-svn-id: svn://10.0.0.236/trunk@6722 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 08:41:39 +00:00
leif
185de4543c Minor changes, to look better.
git-svn-id: svn://10.0.0.236/trunk@6721 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 08:36:45 +00:00
leif
885158f827 Added more functions.
git-svn-id: svn://10.0.0.236/trunk@6720 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 08:29:07 +00:00
leif
f705a7fbe7 Minor change, to do regex match on osname=MSwin.
git-svn-id: svn://10.0.0.236/trunk@6719 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 08:27:00 +00:00
leif
4c6ab90699 Changed some of the "reserved" hash indexes, to make sure they all both
start and end with the "_". This makes it easy to isolate them, with the
regexp /^_.*_$/.


git-svn-id: svn://10.0.0.236/trunk@6718 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 08:25:57 +00:00
leif
c01960c631 * Got it to work.
* Changed some of the error handling functions, this needs to be tested.
* Converts attribute values from arrays to pointers to arrays.
* Changed the bind API calls.


git-svn-id: svn://10.0.0.236/trunk@6717 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 08:23:53 +00:00
leif
a1b398d580 Changed to use Exporter::export_ok_tags().
git-svn-id: svn://10.0.0.236/trunk@6716 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 08:21:44 +00:00
leif
84cd95d233 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6715 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 08:19:12 +00:00
toshok%netscape.com
ee971790f0 Free the cloned tag of the LO_LIST element.
git-svn-id: svn://10.0.0.236/trunk@6713 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 07:37:14 +00:00
toshok%netscape.com
f7e76b6217 call lo_FreeLayoutData when we're done relaying out -- stop leaking memory on resizes
git-svn-id: svn://10.0.0.236/trunk@6712 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 07:36:54 +00:00
toshok%netscape.com
c80a2e0d7b plug memory leak when reading/writing font_specs.
git-svn-id: svn://10.0.0.236/trunk@6711 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 07:35:05 +00:00
waterson%netscape.com
d1bf922eed Added FE hooks to dynamically enable/disable runtime tracing. Approved by blythe.
git-svn-id: svn://10.0.0.236/trunk@6709 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 06:05:33 +00:00
rpotts%netscape.com
e4f888c485 Removed all calls to NET_PollSockets(...). Netlib now does this itself...
git-svn-id: svn://10.0.0.236/trunk@6708 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 06:03:29 +00:00
waterson%netscape.com
55e8dd989c Added runtime tracing calls. Approved by gagan.
git-svn-id: svn://10.0.0.236/trunk@6707 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 06:03:10 +00:00
rpotts%netscape.com
fa4119dae4 Removed all calls to NET_PollSockets(...). Netlib now does the polling itself...
git-svn-id: svn://10.0.0.236/trunk@6706 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 06:01:57 +00:00
rpotts%netscape.com
9c98d36f7e Removed the need for clients to explicitly call NET_PollSockets(...). This has been replaced with a timer based polling scheme
git-svn-id: svn://10.0.0.236/trunk@6705 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 06:01:11 +00:00
waterson%netscape.com
6d82776c4e Added timing.h file for runtime performance tracing. Approved by gagan.
git-svn-id: svn://10.0.0.236/trunk@6704 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 06:00:38 +00:00
leif
be7f1e0133 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6703 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 05:56:54 +00:00
rickg%netscape.com
bd7f2685e8 improved parser handling of pathologic attributes
git-svn-id: svn://10.0.0.236/trunk@6702 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 05:13:35 +00:00
kipp%netscape.com
ef71e68407 Clean up stuff during destruction
git-svn-id: svn://10.0.0.236/trunk@6697 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 04:08:27 +00:00
kipp%netscape.com
eb3766b3d2 Free up some stuff during shutdown
git-svn-id: svn://10.0.0.236/trunk@6696 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 04:07:54 +00:00
kipp%netscape.com
27dee5dead Dont' release browser after destroying it
git-svn-id: svn://10.0.0.236/trunk@6695 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 04:07:27 +00:00
kipp%netscape.com
943b5f0770 Release font metrics when done
git-svn-id: svn://10.0.0.236/trunk@6693 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 04:06:37 +00:00
kipp%netscape.com
230a9dbfac Made placeholders implement nsIInlineReflow so that their existance wouldn't screw up whitespace compression
git-svn-id: svn://10.0.0.236/trunk@6692 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 04:05:49 +00:00
kipp%netscape.com
fa400ce72c Added support for hspace and vspace style attributes
git-svn-id: svn://10.0.0.236/trunk@6691 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 04:05:04 +00:00
kipp%netscape.com
abcc6dc4b8 Added missing NS_RELEASE call
git-svn-id: svn://10.0.0.236/trunk@6690 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 04:04:39 +00:00
kipp%netscape.com
85f83e02fc Added code to try (poorly unfortunately) to give events to floating objects before regular objects
git-svn-id: svn://10.0.0.236/trunk@6689 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 04:04:01 +00:00
kipp%netscape.com
d2a90e7073 cleaned up handling of list bullets; fixed FindFloaters to not recurse into child blocks (doh!); get x,y coordinate right for blocks that don't implement IRunAround; place floaters in nested blocks properly
git-svn-id: svn://10.0.0.236/trunk@6688 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 04:03:12 +00:00
kipp%netscape.com
a6b61cb882 When computing the max avail space for a frame, allow zero as a legal answer so that zero width objects on the same line stay on the line (e.g. BR's); fixed reflow routines to translate the spacemanager x,y
git-svn-id: svn://10.0.0.236/trunk@6687 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 03:59:33 +00:00
kipp%netscape.com
95e52c80f6 updated
git-svn-id: svn://10.0.0.236/trunk@6686 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 03:57:40 +00:00
kipp%netscape.com
5dae01efa5 Fixed GetFontMetrics API to AddRef
git-svn-id: svn://10.0.0.236/trunk@6685 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 03:57:27 +00:00
leif
9cfd62203f *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6684 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 03:53:52 +00:00
donm%netscape.com
824e466d47 fixing build bustage where ldap is required without MOZ_LDAP set.
git-svn-id: svn://10.0.0.236/trunk@6683 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 03:47:59 +00:00
clayton
e36b8520f9 MANIFEST - Changed Connection.pm to Conn.pm
Makefile.PL - Added Interactive and Automatic Makefile creation
test.pl - Added Automatic Testing through use of environment variables.


git-svn-id: svn://10.0.0.236/trunk@6682 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 03:43:34 +00:00
leif
bffe7206dc *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6681 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 03:30:26 +00:00
leif
c6d936194f Fixed the #include for <ldap.h>
git-svn-id: svn://10.0.0.236/trunk@6679 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 02:58:54 +00:00
leif
a7e90811c0 Changed this file to be Conn.pm.
git-svn-id: svn://10.0.0.236/trunk@6675 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 02:45:53 +00:00
sar%netscape.com
2da3296ca7 backing out toshok's changes made to a closed burning tree
git-svn-id: svn://10.0.0.236/trunk@6674 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 02:41:52 +00:00
leif
af18f1f6a8 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6673 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 02:41:11 +00:00
troy%netscape.com
c03ad51328 Added LoadIconImage() for Unix
git-svn-id: svn://10.0.0.236/trunk@6671 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 01:31:59 +00:00
toshok%netscape.com
3ca2ba26f0 plug memory leak when reading/writing font_specs.
git-svn-id: svn://10.0.0.236/trunk@6669 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 00:52:46 +00:00
troy%netscape.com
991de4f579 Added LoadIconImage member function to nsIDeviceContext, and added new
network context for doing sync load (used when loading icons)


git-svn-id: svn://10.0.0.236/trunk@6668 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 00:42:50 +00:00
toshok%netscape.com
d0694efad3 call lo_FreeLayoutData when we're done relaying out -- stop leaking memory on resizes.
git-svn-id: svn://10.0.0.236/trunk@6667 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 00:37:32 +00:00
toshok%netscape.com
754905c3b1 Free the cloned tag of the LO_LIST element.
git-svn-id: svn://10.0.0.236/trunk@6666 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 00:37:04 +00:00
sar%netscape.com
3f7ace6ead removing npwplat.cpp and .h because they are mysteriously breaking gromit
git-svn-id: svn://10.0.0.236/trunk@6665 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 00:23:08 +00:00
kipp%netscape.com
2b08aad70b Setup metrics better for closer navigator compatability (and fix a bug)
git-svn-id: svn://10.0.0.236/trunk@6663 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 23:34:01 +00:00
kipp%netscape.com
5cb6cac74f Bottom align BR's to make the compatible with nav
git-svn-id: svn://10.0.0.236/trunk@6662 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 23:33:31 +00:00
leif
1fbbe7b925 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6659 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 23:28:53 +00:00
leif
ed6be948b3 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6657 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 23:28:29 +00:00
leif
42f5e7735f *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6656 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 23:28:18 +00:00
leif
6ce5ffb62f First version, migrated from my Netscape source.
git-svn-id: svn://10.0.0.236/trunk@6655 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 23:27:17 +00:00
spider%netscape.com
818952ccf3 Add WIN#@_LEAN_AND_MEAN
git-svn-id: svn://10.0.0.236/trunk@6654 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 22:37:09 +00:00
timm%netscape.com
1daa7eff14 new templates for more info page
git-svn-id: svn://10.0.0.236/trunk@6651 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 21:31:33 +00:00
despotdaemon%netscape.com
2a2f4dfd4e Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6643 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 20:40:22 +00:00
jwz%netscape.com
c9bb816841 from Dawn Endico <dawn@cannibal.mi.org>:
Make the url prefix for bonsai configurable.


git-svn-id: svn://10.0.0.236/trunk@6638 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 19:18:54 +00:00
jwz%netscape.com
7024b10684 from Dawn Endico <dawn@cannibal.mi.org>:
add bonsaihome configuration variable


git-svn-id: svn://10.0.0.236/trunk@6637 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 19:17:42 +00:00
jwz%netscape.com
0c7f1b1eb1 from Dawn Endico <dawn@cannibal.mi.org>:
export $Path variable. Local.pm needs it as a global variable.

htmlify file names and email addresses


git-svn-id: svn://10.0.0.236/trunk@6636 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 19:17:30 +00:00
jwz%netscape.com
9252ea44ab from Dawn Endico <dawn@cannibal.mi.org>:
remove the hard space from the template. Its now the job of the
description function to provide a space in case of a blank desc.


git-svn-id: svn://10.0.0.236/trunk@6635 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 19:17:14 +00:00
jwz%netscape.com
bbaf60067d from Dawn Endico <dawn@cannibal.mi.org>:
move description functions to the new Local.pm module


git-svn-id: svn://10.0.0.236/trunk@6634 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 19:17:03 +00:00
jwz%netscape.com
467e984c7d from Dawn Endico <dawn@cannibal.mi.org>:
use the new bonsaihome configuration variable


git-svn-id: svn://10.0.0.236/trunk@6633 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 19:16:48 +00:00
jwz%netscape.com
3019692d1a from Dawn Endico <dawn@cannibal.mi.org>:
Place installation specific subroutines into their own module.
New improved file/directory description hackery goes here.


git-svn-id: svn://10.0.0.236/trunk@6632 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 19:16:34 +00:00
selmer%netscape.com
7d7ed29a10 Changed reference of 'yeahr' to 'year'
git-svn-id: svn://10.0.0.236/trunk@6631 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 17:22:05 +00:00
sar%netscape.com
a29a980565 backing out Akanna's changes that broke Irix
git-svn-id: svn://10.0.0.236/trunk@6627 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 08:33:24 +00:00
pierre%netscape.com
c88159a432 renamed some header files > 31 chars but left them ifdef'ed out XP_MAC because of other problems
git-svn-id: svn://10.0.0.236/trunk@6625 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 07:56:55 +00:00
pierre%netscape.com
d98b37220d added modules/plugin in the Checkout and Manifest lists
git-svn-id: svn://10.0.0.236/trunk@6624 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 07:55:23 +00:00
pierre%netscape.com
161249f916 updated to Windows make file (removed "npupp.h" from the list)
git-svn-id: svn://10.0.0.236/trunk@6623 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 07:54:29 +00:00
pierre%netscape.com
a0405018f5 renamed some filenames > 31 chars
git-svn-id: svn://10.0.0.236/trunk@6622 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 07:53:45 +00:00
pierre%netscape.com
8adf059210 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@6620 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 07:52:53 +00:00
pierre%netscape.com
f02b246974 fix build breakage from previous checkin
git-svn-id: svn://10.0.0.236/trunk@6618 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 05:31:01 +00:00
troy%netscape.com
f2399dd3fa Added dependency on raptorgfx_s.lib
git-svn-id: svn://10.0.0.236/trunk@6617 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 05:09:31 +00:00
pierre%netscape.com
999df4ec5e added nsWebCrawler.cpp
git-svn-id: svn://10.0.0.236/trunk@6616 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 04:18:01 +00:00
pierre%netscape.com
38b94a423c fix Mac build: include <fstream.h>
git-svn-id: svn://10.0.0.236/trunk@6614 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 04:16:13 +00:00
pierre%netscape.com
b100b34267 fix Mac build (is this file obsolete?)
git-svn-id: svn://10.0.0.236/trunk@6613 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 04:15:46 +00:00
pierre%netscape.com
2814f6638f fix Mac build: include <iosfwd.h>
git-svn-id: svn://10.0.0.236/trunk@6612 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 04:14:58 +00:00
pierre%netscape.com
134996a137 use standalone imglib from tips, added dom:public:html:MANIFEST, build Navigator stubs
git-svn-id: svn://10.0.0.236/trunk@6611 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 04:14:22 +00:00
pierre%netscape.com
97a888a6e4 raptor: added mkstream.c to the 'modular' targets
git-svn-id: svn://10.0.0.236/trunk@6610 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 04:09:06 +00:00
pierre%netscape.com
635ae3f59c updated to Windows make file
git-svn-id: svn://10.0.0.236/trunk@6609 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 04:08:33 +00:00
pierre%netscape.com
e859e783ed added the 2 'standalone' targets
git-svn-id: svn://10.0.0.236/trunk@6608 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 04:05:23 +00:00
pierre%netscape.com
cc15527c71 added CParserContext.cpp (for now... we may need to add plenty of other files later)
git-svn-id: svn://10.0.0.236/trunk@6607 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 04:04:23 +00:00
rickg%netscape.com
d914584ab7 unwound changes to skipped content consumption
git-svn-id: svn://10.0.0.236/trunk@6606 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 04:00:38 +00:00
rickg%netscape.com
640b8153eb even more improvements to containment creation
git-svn-id: svn://10.0.0.236/trunk@6605 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 02:54:02 +00:00
warren%netscape.com
6cf0255e58 Committed from OJI_19980618_TIP_MERGE1.
git-svn-id: svn://10.0.0.236/trunk@6602 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 02:11:07 +00:00
warren%netscape.com
450194e0b1 Moved to modules/plugin/bad
git-svn-id: svn://10.0.0.236/trunk@6601 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 01:49:33 +00:00
rickg%netscape.com
3778c0a397 fixed build buster; seems VC doesn't know false
git-svn-id: svn://10.0.0.236/trunk@6600 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 01:39:55 +00:00
pinkerton%netscape.com
5d87d25bcd Now that the cache actually works, make sure we put the entry into the icon cache _before_ we go to the net to try to fetch it.
git-svn-id: svn://10.0.0.236/trunk@6599 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 01:25:14 +00:00
rickg%netscape.com
bce39df640 too many fixes to enumerate
git-svn-id: svn://10.0.0.236/trunk@6598 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 01:08:12 +00:00
chuckb%netscape.com
a85bc4645d Java LDAP SDK
git-svn-id: svn://10.0.0.236/trunk@6597 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 00:58:49 +00:00
akkana%netscape.com
e4a5b58d33 Move fe_make_option_menu from SearchRuleView to Menu so that it no
longer is bound to MOZ_MAIL_NEWS.


git-svn-id: svn://10.0.0.236/trunk@6596 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 00:58:40 +00:00
buster%netscape.com
011fab0947 made this test case a bit flashier
git-svn-id: svn://10.0.0.236/trunk@6595 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 00:51:53 +00:00
pinkerton%netscape.com
36ebd21591 Respond to even more properties in HT, esp ones that allow creation of a Simple View.
git-svn-id: svn://10.0.0.236/trunk@6594 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 00:46:33 +00:00
pinkerton%netscape.com
c6a25fe8a4 don't allow context menu when the HT property is turned off.
git-svn-id: svn://10.0.0.236/trunk@6593 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 00:45:52 +00:00
pinkerton%netscape.com
231bc767e7 Added GetColor() and PropertyValueBool() and rewrote most utility routines (for chrome color) to use these.
git-svn-id: svn://10.0.0.236/trunk@6592 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 00:45:31 +00:00
pinkerton%netscape.com
ae7de3af09 Added clickCountToOpen() and made some methods const.
git-svn-id: svn://10.0.0.236/trunk@6591 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 00:44:27 +00:00
pinkerton%netscape.com
5a5d658338 consolodate Post() and Post1() into one routine with one API.
git-svn-id: svn://10.0.0.236/trunk@6590 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 00:43:42 +00:00
pinkerton%netscape.com
aa7298e2ef Adding new behavior properties for tree view (rev/appr rjc)
git-svn-id: svn://10.0.0.236/trunk@6589 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 00:43:07 +00:00
buster%netscape.com
3fbc040e9a fix for distributing spanned width that is less than the column minimums it spans.
git-svn-id: svn://10.0.0.236/trunk@6588 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 00:23:01 +00:00
michaelp%netscape.com
547a56e5a1 fixed webcrawler relater build bustage.
git-svn-id: svn://10.0.0.236/trunk@6587 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 00:05:32 +00:00
michaelp%netscape.com
2d351f43df fixed build bustage.
git-svn-id: svn://10.0.0.236/trunk@6586 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 00:00:35 +00:00
despotdaemon%netscape.com
0200b3b5d0 Pseudo-automatic update of changes made by av@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6585 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 23:54:20 +00:00
buster%netscape.com
d5270b8dea more span fixes
git-svn-id: svn://10.0.0.236/trunk@6584 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 23:47:54 +00:00
rods%netscape.com
1c3decd6bd Removed a debug printf
git-svn-id: svn://10.0.0.236/trunk@6583 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 23:30:49 +00:00
rods%netscape.com
4777c88f25 removed DO_SELECTION #define
git-svn-id: svn://10.0.0.236/trunk@6582 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 23:20:35 +00:00
kipp%netscape.com
f585f169b0 Fixed -p flag; fixed so that it exits on last window close
git-svn-id: svn://10.0.0.236/trunk@6581 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 23:19:06 +00:00
rods%netscape.com
9adea67d43 Added processing for the mouse up event
git-svn-id: svn://10.0.0.236/trunk@6580 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 23:17:10 +00:00
rods%netscape.com
03b9fd94cc Added drag scrolling, and event processing for mouse events
outside the scrolling view.


git-svn-id: svn://10.0.0.236/trunk@6579 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 23:14:31 +00:00
michaelp%netscape.com
1c0dd973b4 hooked up the plugin manager to the webshell.
git-svn-id: svn://10.0.0.236/trunk@6578 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 23:08:52 +00:00
kipp%netscape.com
feaa1ebcb4 Added max-pages
git-svn-id: svn://10.0.0.236/trunk@6577 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 23:01:06 +00:00
kipp%netscape.com
4ca88f4858 Limit crawling to a max number of pages
git-svn-id: svn://10.0.0.236/trunk@6576 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 23:00:50 +00:00
kipp%netscape.com
6f93197da6 Make crawler exit properly; added -N argument
git-svn-id: svn://10.0.0.236/trunk@6575 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 23:00:11 +00:00
kipp%netscape.com
13773b205c Skip over junky url's
git-svn-id: svn://10.0.0.236/trunk@6574 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 22:42:12 +00:00
kmcclusk%netscape.com
36ce6ff732 Added implementation for nsScrollbar::Create passing a nsNativeWidget.
Also check for nsnull cliprect in ScrollTo


git-svn-id: svn://10.0.0.236/trunk@6573 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 22:25:43 +00:00
kipp%netscape.com
c2707a82ec time to crawl
git-svn-id: svn://10.0.0.236/trunk@6572 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 22:16:13 +00:00
kipp%netscape.com
be3b2b8207 Use web crawler instead of doc loader; new argument support code for web crawler
git-svn-id: svn://10.0.0.236/trunk@6571 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 22:15:58 +00:00
kipp%netscape.com
d0f020831f Switch to nsWebCrawler
git-svn-id: svn://10.0.0.236/trunk@6570 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 22:15:30 +00:00
pinkerton%netscape.com
4b1663ca70 backing out dcone's addition of nsRelatedLinks.cpp to project.
git-svn-id: svn://10.0.0.236/trunk@6568 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 22:15:18 +00:00
despotdaemon%netscape.com
6ca35e3037 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6565 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 21:42:39 +00:00
dcone%netscape.com
5c399e2012 defined NS_IMPL_IDS for the mac build only
git-svn-id: svn://10.0.0.236/trunk@6564 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 21:37:49 +00:00
despotdaemon%netscape.com
10fb35f292 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6563 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 21:36:59 +00:00
michaelp%netscape.com
d4a702b3f9 documented GetClipView() API.
git-svn-id: svn://10.0.0.236/trunk@6562 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 21:30:14 +00:00
dcone%netscape.com
3a46dd85d5 fixed up the project to use the cross platform files
git-svn-id: svn://10.0.0.236/trunk@6561 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 21:26:29 +00:00
terry%netscape.com
cc89ce6837 Expand email addresses properly when sending tree opened, tree closed notices.
git-svn-id: svn://10.0.0.236/trunk@6560 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 21:10:16 +00:00
kostello%netscape.com
41a83c0d74 Really fix unix build bustage
git-svn-id: svn://10.0.0.236/trunk@6559 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 21:10:02 +00:00
michaelp%netscape.com
a9864345c6 made color handling code in css part of the gfx color utilities.
git-svn-id: svn://10.0.0.236/trunk@6557 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 21:07:47 +00:00
terry%netscape.com
d0c9a2719a Munge the username to a proper email address before sending mail.
git-svn-id: svn://10.0.0.236/trunk@6556 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 20:57:51 +00:00
ramiro%netscape.com
3e4135e7f3 Remove un needed xmversion.sh. The file has been 'cvs rm'ed already.
git-svn-id: svn://10.0.0.236/trunk@6555 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 20:57:31 +00:00
terry%netscape.com
860721ac93 Deal better with % in the middle of usernames.
git-svn-id: svn://10.0.0.236/trunk@6554 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 20:53:06 +00:00
despotdaemon%netscape.com
2e70f238d8 Pseudo-automatic update of changes made by gordon@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6553 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 20:40:17 +00:00
dcone%netscape.com
810d77c032 defined a mac WH_TempName for modular Netlib. Raptor change.
git-svn-id: svn://10.0.0.236/trunk@6552 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 19:53:51 +00:00
dcone%netscape.com
b27a458d85 turned on the compilation of mkstream.c
git-svn-id: svn://10.0.0.236/trunk@6551 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 19:50:40 +00:00
donm%netscape.com
d55464fe49 fixing build bustage on linux.
git-svn-id: svn://10.0.0.236/trunk@6550 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 19:27:12 +00:00
kostello%netscape.com
559cf2d43a Removed DoCopy for all but the Win32 build. We are
having build problems because of the ostrstream class.


git-svn-id: svn://10.0.0.236/trunk@6549 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 19:26:18 +00:00
kostello%netscape.com
0b713b26ad Fix UNIX bustage
git-svn-id: svn://10.0.0.236/trunk@6548 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 19:11:51 +00:00
kostello%netscape.com
2469387b1d Fix build problem
git-svn-id: svn://10.0.0.236/trunk@6547 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 18:52:31 +00:00
kostello%netscape.com
aefcc6d34a Implemented DoCopy to put HTML on the pasteboard
Added Dialog for DoDebugSave


git-svn-id: svn://10.0.0.236/trunk@6546 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 18:17:07 +00:00
kostello%netscape.com
d4d89af1ef Moved pretty printing interfaces inside implementation of nsHTMLContentSinkStream
Added interfaces to turn pretty printing on/off -- support for copy/paste


git-svn-id: svn://10.0.0.236/trunk@6545 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 18:16:01 +00:00
kostello%netscape.com
8835c76c61 Added support for the copy command (converting the selection to XIF)
Changed XIF interface


git-svn-id: svn://10.0.0.236/trunk@6544 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 18:11:14 +00:00
kostello%netscape.com
0442716683 Added support for saving the selection (important for copy).
Change XIF interfaces


git-svn-id: svn://10.0.0.236/trunk@6543 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 18:08:58 +00:00
kipp%netscape.com
0ea28e0b66 Fixed a top-100 url
git-svn-id: svn://10.0.0.236/trunk@6542 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 18:05:55 +00:00
kostello%netscape.com
167baa01ed Added support for toggling selection on/off in a document.
Added more support methods for selection, made parameters const
where possible.
Changed XIF interfaces


git-svn-id: svn://10.0.0.236/trunk@6541 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 18:05:35 +00:00
kipp%netscape.com
9d6b2116f7 Some hackery for image documents
git-svn-id: svn://10.0.0.236/trunk@6540 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 18:05:34 +00:00
kipp%netscape.com
f69df9e46f Added some trace messages
git-svn-id: svn://10.0.0.236/trunk@6539 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 18:05:11 +00:00
kipp%netscape.com
7a8119443f Disable releasing atoms for now
git-svn-id: svn://10.0.0.236/trunk@6538 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 18:04:58 +00:00
kipp%netscape.com
2504bb6855 Added some more logging; discard dangling frame's
git-svn-id: svn://10.0.0.236/trunk@6537 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 18:04:38 +00:00
kostello%netscape.com
04527bd3a6 Changed XIF interface
git-svn-id: svn://10.0.0.236/trunk@6536 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 18:04:04 +00:00
kostello%netscape.com
277877cda2 Added method for toggling selection on/off in a document.
Added more support methods for selection, made parameters const
where possible.


git-svn-id: svn://10.0.0.236/trunk@6535 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 18:03:16 +00:00
kipp%netscape.com
6bf078cf47 Added nsImageDocument
git-svn-id: svn://10.0.0.236/trunk@6534 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 18:01:06 +00:00
kipp%netscape.com
54fea7573f snapshot
git-svn-id: svn://10.0.0.236/trunk@6533 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 17:55:17 +00:00
kipp%netscape.com
68f4e124c0 REference NS_NewImageDocument too
git-svn-id: svn://10.0.0.236/trunk@6532 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 17:51:56 +00:00
kipp%netscape.com
951f0e17ca Added NS_NewImageDocument
git-svn-id: svn://10.0.0.236/trunk@6531 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 17:51:42 +00:00
kipp%netscape.com
bbdead3958 Fixed a typo
git-svn-id: svn://10.0.0.236/trunk@6530 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 17:51:17 +00:00
kipp%netscape.com
2dd71806c2 new
git-svn-id: svn://10.0.0.236/trunk@6529 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 17:50:58 +00:00
cmanske%netscape.com
2907537361 Tweaked return key handling to pay attention to m_bUseCurrentTextFormat value when adjusting text format
git-svn-id: svn://10.0.0.236/trunk@6528 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 16:34:48 +00:00
dcone%netscape.com
be2fb0c641 added some manifest support for layout/event includes
git-svn-id: svn://10.0.0.236/trunk@6527 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 16:30:48 +00:00
dcone%netscape.com
833f51e679 Added nsEventListenerManager.h
git-svn-id: svn://10.0.0.236/trunk@6526 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 16:29:58 +00:00
dcone%netscape.com
2785da3077 added nsIStateManager.h, nsIEventListenerManager.h, nsIPrivateDOMEvent.h
git-svn-id: svn://10.0.0.236/trunk@6525 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 16:29:24 +00:00
hardts%netscape.com
ddbb64f57e landing MODULAR_IMGLIB_BRANCH
git-svn-id: svn://10.0.0.236/trunk@6524 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 16:14:32 +00:00
cmanske%netscape.com
3e2fbbd7f5 Added check for null pointer in lo_ValidEditableElement
git-svn-id: svn://10.0.0.236/trunk@6523 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 16:14:29 +00:00
hardts%netscape.com
198fb52d49 renaming .c files to .cpp for landing MODULAR_IMGLIB_BRANCH
git-svn-id: svn://10.0.0.236/trunk@6522 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 16:12:07 +00:00
cmanske%netscape.com
25cc9f3bac Implemented smart detection of character format (to be used for next text type) depending on last arrow key usage
git-svn-id: svn://10.0.0.236/trunk@6521 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 15:45:27 +00:00
cmanske%netscape.com
55eee39394 Fixed problem with deleting Meta tag entry in Composer dialog
git-svn-id: svn://10.0.0.236/trunk@6520 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 15:42:24 +00:00
dcone%netscape.com
701aa2cc9f Added manifiest file so the nsIEventListenerManager could be public
git-svn-id: svn://10.0.0.236/trunk@6519 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 15:30:14 +00:00
dcone%netscape.com
0d71371179 Added this file so nsEventListenerManager.h is public
git-svn-id: svn://10.0.0.236/trunk@6518 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 14:41:36 +00:00
ramiro%netscape.com
0a7ca31ae0 Add xfe pref for toggling PORT and PASV ftp modes.
Thanks to Christopher Seawood <cls@seawood.org>.


git-svn-id: svn://10.0.0.236/trunk@6516 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 11:19:28 +00:00
ramiro%netscape.com
d54301919c Add xfe pref for toggling PORT and PASV ftp modes.
Thanks to Christopher Seawood <cls@seawood.org>.


git-svn-id: svn://10.0.0.236/trunk@6515 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 10:41:02 +00:00
buster%netscape.com
e61f20a237 empty cells do not render border or background color
git-svn-id: svn://10.0.0.236/trunk@6514 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 07:37:57 +00:00
buster%netscape.com
d257e2c1e8 minor fixes for spans
git-svn-id: svn://10.0.0.236/trunk@6513 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 07:20:03 +00:00
karnaze%netscape.com
70d80c6f21 more robust frameset layout; <frame>, <iframe> borders; reenabled scrolling attr for <iframe>
git-svn-id: svn://10.0.0.236/trunk@6512 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 05:59:37 +00:00
buster%netscape.com
97be0fee7f cleaner version of earlier code. still buggy on some pages for no apparent reason.
git-svn-id: svn://10.0.0.236/trunk@6511 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 05:32:50 +00:00
cmanske%netscape.com
450a45329e Fixed Composer bug 153443. Move delete button in meta tag editor. Changed tab labels in Table property dialogs
git-svn-id: svn://10.0.0.236/trunk@6510 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 04:46:11 +00:00
cmanske%netscape.com
69bc9b643f Fixed Composer bug 227527 - Implemented autodelete of single space in table cell when new text is typed.
git-svn-id: svn://10.0.0.236/trunk@6509 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 04:17:18 +00:00
buster%netscape.com
5eeba2d305 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6508 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 03:02:32 +00:00
buster%netscape.com
c017339e1c much better handling of tables who have fixed-width columns that make the table wider than it is allowed to be
added some sanity checking in BalanceColumnWidths be ensure that a column width
can never be less than the minimum element in that column.


git-svn-id: svn://10.0.0.236/trunk@6507 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 02:15:37 +00:00
cmanske%netscape.com
0de1753c64 Added detection of element clicked on to determine text format to use
git-svn-id: svn://10.0.0.236/trunk@6506 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 02:01:51 +00:00
troy%netscape.com
d5bd3a30e4 Added a #undef NS_EXPORT_ before defining it so that we don't get all
the warnings. Our definition is defined differently than in nsCom.h in
xpcom. The problem with the way it's defined in xpcom is that the 4.x
compiler generates a compiler error


git-svn-id: svn://10.0.0.236/trunk@6505 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 01:42:13 +00:00
cmanske%netscape.com
3818c4e571 Fixed lots of Composer bugs, modified property dialogs for tables, images; menu updates
git-svn-id: svn://10.0.0.236/trunk@6504 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 01:18:38 +00:00
cmanske%netscape.com
82028137ff Lots of Composer bug fixes and continued work on table and list editing
git-svn-id: svn://10.0.0.236/trunk@6503 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 01:09:58 +00:00
troy%netscape.com
7362b47fb3 Defined macros for Unix and Mac
git-svn-id: svn://10.0.0.236/trunk@6502 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 00:45:35 +00:00
michaelp%netscape.com
9137aba336 changed order of stuff in new macros.
git-svn-id: svn://10.0.0.236/trunk@6501 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 00:32:36 +00:00
cmanske%netscape.com
1fd568b4a9 Added comments for no-longer supported alignments for Composer
git-svn-id: svn://10.0.0.236/trunk@6500 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 00:01:18 +00:00
troy%netscape.com
ae50bd2628 Combined raptorgfx.dll and raptorgfxwin.dll into one DLL
git-svn-id: svn://10.0.0.236/trunk@6499 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-26 23:52:36 +00:00
troy%netscape.com
33313b0fda Added some variants of NS_EXPORT and NS_IMPORT that take a type and
declare the function __stdcall


git-svn-id: svn://10.0.0.236/trunk@6498 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-26 23:40:58 +00:00
michaelp%netscape.com
35726078d4 a tiny fix for scrollbars in scrolling views made without a widget association.
git-svn-id: svn://10.0.0.236/trunk@6497 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-26 23:32:33 +00:00
michaelp%netscape.com
89fd53967c fixed troy's bustage.
git-svn-id: svn://10.0.0.236/trunk@6496 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-26 23:25:05 +00:00
troy%netscape.com
a9d89fc3c0 Added DeviceContextImpl base class
git-svn-id: svn://10.0.0.236/trunk@6495 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-26 04:28:48 +00:00
michaelp%netscape.com
fa4330329c form elements, etc. (i.e. sub widgets) now scroll smoothly.
git-svn-id: svn://10.0.0.236/trunk@6494 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-26 04:24:42 +00:00
buster%netscape.com
a264875bff COLS attribute ignored if any column width info is specified (like <TD width=100>)
fixed lots of COLS related bugs.
handle min width spec (<TD width=0 or width=0% or width=0*>)
major fix to colspan handling


git-svn-id: svn://10.0.0.236/trunk@6493 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-26 04:23:01 +00:00
ramiro%netscape.com
ab5b0557eb Insert an intermediate cast when casting (void *) to enum. Fixes the OSF
build.
Thanks to wtc@netscape.com for providing the fix.


git-svn-id: svn://10.0.0.236/trunk@6492 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 08:26:42 +00:00
wtc%netscape.com
c269e80a83 Use -std1 (strict ANSI C) instead of -std (ANSI C but allows common
programming practices disallowed by the standard).  Define OSF1V4
for all V4.x versions.


git-svn-id: svn://10.0.0.236/trunk@6487 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 04:58:47 +00:00
wtc%netscape.com
3bb3e18910 We should not use -I/usr/include/machine. That is not the right way
to fix the endian.h inclusion problem in mcom_db.h.  We should fix
mcom_db.h to say:
#ifdef __osf__
#include <machine/endian.h>
#endif
Using -I/usr/include/machine will pull in <machine/signal.h>, which
is incompatible with the intended <signal.h>.


git-svn-id: svn://10.0.0.236/trunk@6483 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 04:46:55 +00:00
peterl%netscape.com
e51bea9ab6 fixed build on unix
git-svn-id: svn://10.0.0.236/trunk@6482 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 02:17:13 +00:00
racham%netscape.com
10c921aa07 Corrected NPL comment style.
git-svn-id: svn://10.0.0.236/trunk@6481 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 02:15:52 +00:00
racham%netscape.com
d9d6119f49 BUG 181242 : ASE 1step&2step sync-up. Corrected path for windows ACCTSET.INI file
git-svn-id: svn://10.0.0.236/trunk@6480 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 02:11:54 +00:00
rickg%netscape.com
192449c4bc warning removal
git-svn-id: svn://10.0.0.236/trunk@6479 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 02:11:02 +00:00
racham%netscape.com
753fbc325b BUG 181242 : ASE 1step & 2step sync-up. Added check box to control OneStepMode Flag.
git-svn-id: svn://10.0.0.236/trunk@6478 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 02:09:30 +00:00
racham%netscape.com
ffdc7c9c14 BUG 181242 : ASE sync-up between 1step and 2step worlds. Added OneStepMode flag handling.
git-svn-id: svn://10.0.0.236/trunk@6477 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 02:07:10 +00:00
joki%netscape.com
f59e41e644 Fix for unitialized var and missing add/release ref pair in the GetScriptGlobalObject call
git-svn-id: svn://10.0.0.236/trunk@6476 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 01:53:54 +00:00
joki%netscape.com
30a68f1ef5 Fix for missing add/release ref pair in the GetScriptGlobalObject call
git-svn-id: svn://10.0.0.236/trunk@6475 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 01:53:15 +00:00
racham%netscape.com
64042f998a BUG 181240 : added OneStepMode flag (OneStepMode=no)
git-svn-id: svn://10.0.0.236/trunk@6474 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 01:35:03 +00:00
racham%netscape.com
d0876ea50f BUG 181240 : added control statements to decide 1step vs 2step
git-svn-id: svn://10.0.0.236/trunk@6473 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 01:29:14 +00:00
peterl%netscape.com
3fd424e374 added accessor for html style sheet
git-svn-id: svn://10.0.0.236/trunk@6472 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 01:26:12 +00:00
racham%netscape.com
50f3cd6f98 BUG 181240 : 1step vs 2step changes
git-svn-id: svn://10.0.0.236/trunk@6471 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 01:22:46 +00:00
peterl%netscape.com
1be2f50f93 added font scaling support
git-svn-id: svn://10.0.0.236/trunk@6470 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 01:22:10 +00:00
peterl%netscape.com
f13e8293ce made anchor pseudo classes not resolve unless anchor has an href
git-svn-id: svn://10.0.0.236/trunk@6469 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 01:21:47 +00:00
peterl%netscape.com
f22a2a560b added body link color support
git-svn-id: svn://10.0.0.236/trunk@6468 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 01:20:48 +00:00
peterl%netscape.com
d9316198c0 added bosy link color support
added font scaling support


git-svn-id: svn://10.0.0.236/trunk@6467 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 01:17:42 +00:00
vidur%netscape.com
b1a93e7680 Added recursive document.write
git-svn-id: svn://10.0.0.236/trunk@6465 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 01:13:23 +00:00
peterl%netscape.com
b04e60046d added Nav's magic font scaler
git-svn-id: svn://10.0.0.236/trunk@6464 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 01:11:49 +00:00
rickg%netscape.com
d59fdb0f14 fixed a state problem in parser related to nesting levels
git-svn-id: svn://10.0.0.236/trunk@6463 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 01:02:01 +00:00
vidur%netscape.com
62319c5f57 Added methods to nsINetService to get and set cookie string for a URL
git-svn-id: svn://10.0.0.236/trunk@6459 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 00:32:32 +00:00
vidur%netscape.com
640de09889 Added document.cookie. HTMLCollection.namedItem looks for both NAME and ID attributes
git-svn-id: svn://10.0.0.236/trunk@6458 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 00:31:52 +00:00
rickg%netscape.com
1cc0a2a7f3 added line number support to nodes for Javascript
git-svn-id: svn://10.0.0.236/trunk@6457 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 00:29:15 +00:00
rickg%netscape.com
3e91f727ac even more progress in the parser
git-svn-id: svn://10.0.0.236/trunk@6456 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 00:05:29 +00:00
kin%netscape.com
b5ea9e187d Fix for 5.0SF1 in bug #300901: Lose <br> inside a cell in a table
Modified lo_LayoutTag() to set hard linebreaks for NSDTs.
Reviewed by toshok and nisheeth.


git-svn-id: svn://10.0.0.236/trunk@6455 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 23:59:46 +00:00
vidur%netscape.com
96502a2a0f Added PR_EXTERN_C macros necessry for Raptor
git-svn-id: svn://10.0.0.236/trunk@6454 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 23:52:27 +00:00
morse%netscape.com
f43582b3bb fix bug 309831, reviewed by gagan
git-svn-id: svn://10.0.0.236/trunk@6453 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 23:38:25 +00:00
waterson%netscape.com
dd6486ad2f Removed until approval from modul owner.
git-svn-id: svn://10.0.0.236/trunk@6452 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 23:33:15 +00:00
rickg%netscape.com
45deb3064c first pass at getting javascript to work in parser
git-svn-id: svn://10.0.0.236/trunk@6451 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 23:29:30 +00:00
akkana%netscape.com
aa5e0e516c New composer Table menu.
git-svn-id: svn://10.0.0.236/trunk@6449 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 23:26:39 +00:00
buster%netscape.com
de71f78fb7 NOWRAP turned off in fixed-width cells for backwards compatibility
we handle inconsistent width attributes better


git-svn-id: svn://10.0.0.236/trunk@6448 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 23:26:23 +00:00
akkana%netscape.com
9fb0d085b6 Strings for table menu and replace dialog
git-svn-id: svn://10.0.0.236/trunk@6447 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 23:26:05 +00:00
akkana%netscape.com
a5d27ceb5d Split off find dialog into new file; add optional Replace functionality to it.
git-svn-id: svn://10.0.0.236/trunk@6446 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 23:25:16 +00:00
mccabe%netscape.com
171803661a typedef of int64 for osf now avoids long long - because long long is a
compiler extension, and we want to be able to turn off compiler
extensions for osf.  And longs are long long there anyway.

Propagated from nspr, courtesy wtc.


git-svn-id: svn://10.0.0.236/trunk@6445 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 23:12:09 +00:00
waterson%netscape.com
eaad300991 Initial revision.
git-svn-id: svn://10.0.0.236/trunk@6444 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 23:07:58 +00:00
kin%netscape.com
3c85661c1e Fix for bug #300809: Composer adds and deletes tags; bad image display;
HTML does not validate
Modified CEditContainerElement::PrintEnd() to fix problem where we were
not closing all CENTER tags.


git-svn-id: svn://10.0.0.236/trunk@6443 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 23:04:39 +00:00
blythe%netscape.com
5e83276d6e Fix a few pref calls to check or assert for errors
git-svn-id: svn://10.0.0.236/trunk@6442 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:56:50 +00:00
danm%netscape.com
9cc5d97580 fixing glowcode build stompage from landing of jpeg branch
git-svn-id: svn://10.0.0.236/trunk@6441 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:49:02 +00:00
waterson%netscape.com
b2e56958d6 Fixed MOZ_PROF to include symbols, build optimized.
git-svn-id: svn://10.0.0.236/trunk@6438 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:47:22 +00:00
waterson%netscape.com
d161cfc014 Fixed MOZ_PROF to build optimized with symbols.
git-svn-id: svn://10.0.0.236/trunk@6437 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:46:44 +00:00
blythe%netscape.com
3af887bde9 VC6 support, aprvd Suresh Duddi
git-svn-id: svn://10.0.0.236/trunk@6436 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:46:04 +00:00
blythe%netscape.com
2fe9fa8ecb VC6 support, aprvd module owner
git-svn-id: svn://10.0.0.236/trunk@6435 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:45:25 +00:00
timm%netscape.com
aa0dbf56cd turn off trace in non-debug builds
git-svn-id: svn://10.0.0.236/trunk@6434 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:43:39 +00:00
timm%netscape.com
890b559654 add GetISPSupportPhoneNumber
git-svn-id: svn://10.0.0.236/trunk@6433 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:42:52 +00:00
timm%netscape.com
716900606e remove trace statements
git-svn-id: svn://10.0.0.236/trunk@6432 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:42:14 +00:00
robinf%netscape.com
c52e5c3bcb fixed corrupted file
git-svn-id: svn://10.0.0.236/trunk@6431 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:41:58 +00:00
timm%netscape.com
12cf6870b1 fix path bug
git-svn-id: svn://10.0.0.236/trunk@6430 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:41:37 +00:00
timm%netscape.com
d3f0b6a904 add isp support number window
git-svn-id: svn://10.0.0.236/trunk@6429 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:41:21 +00:00
timm%netscape.com
adde46a635 make sure to rm ispplans.htm
git-svn-id: svn://10.0.0.236/trunk@6428 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:41:04 +00:00
timm%netscape.com
d6c49742c1 was going to wrong error page
git-svn-id: svn://10.0.0.236/trunk@6427 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:40:04 +00:00
robinf%netscape.com
18615611ed Main.htm: removed text about profiles; dialinf1.htm: reworded description of outside line dialing prefix
git-svn-id: svn://10.0.0.236/trunk@6426 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:39:42 +00:00
clayton
a8566748df Fixed some constant handling for constants that return strings or other
non-numeric data.  Fixes problem with LDAP_OPT_ON/LDAP_OPT_OFF.


git-svn-id: svn://10.0.0.236/trunk@6425 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 22:31:03 +00:00
rickg%netscape.com
a927f7ef63 tons-o-fixes in the parser
git-svn-id: svn://10.0.0.236/trunk@6422 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 21:57:43 +00:00
michaelp%netscape.com
d6b827040d re-added optimization with the ability to use it anywhere by setting the
NS_VMREFRESH_AUTO_DOUBLE_BUFFER when calling UpdateView().


git-svn-id: svn://10.0.0.236/trunk@6421 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 21:49:02 +00:00
michaelp%netscape.com
e54b780b41 backed out change for a moment.
git-svn-id: svn://10.0.0.236/trunk@6420 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 21:32:02 +00:00
michaelp%netscape.com
62cb870d39 re-added conditional double buffering based on screen area thresholding.
git-svn-id: svn://10.0.0.236/trunk@6419 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 21:29:47 +00:00
kostello%netscape.com
3b64843424 Added SetDefaultString for the Save dialog
git-svn-id: svn://10.0.0.236/trunk@6418 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 21:12:19 +00:00
michaelp%netscape.com
b8cc27a234 added APIs to viewmanager to enable and disable all rendering.
made Refresh() APIs of viewmanager implementation private.


git-svn-id: svn://10.0.0.236/trunk@6417 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 21:05:50 +00:00
sman%netscape.com
461d137537 libmime updates: security cleansing
git-svn-id: svn://10.0.0.236/trunk@6416 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 21:05:24 +00:00
rpotts%netscape.com
1d8ecc8b94 Get rid of those unix warnings...
git-svn-id: svn://10.0.0.236/trunk@6415 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 21:03:33 +00:00
rpotts%netscape.com
ce01187b95 Get rid of some unix warnings...
git-svn-id: svn://10.0.0.236/trunk@6414 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 20:53:38 +00:00
sman%netscape.com
ae398f4411 libmime updates: move crypto into rosetta
git-svn-id: svn://10.0.0.236/trunk@6413 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 20:47:34 +00:00
clayton
4ea2e640fb - Moved everything from @EXPORT to @EXPORT_OK and %EXPORT_TAGS
- Removed references to 'donley@cig.mot.com' substituted 'donley@wwa.com'


git-svn-id: svn://10.0.0.236/trunk@6411 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 19:01:51 +00:00
kipp%netscape.com
4ae741811a snapshot
git-svn-id: svn://10.0.0.236/trunk@6410 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 18:20:55 +00:00
kipp%netscape.com
01a663f33e Added base tag support
git-svn-id: svn://10.0.0.236/trunk@6409 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 18:20:27 +00:00
kipp%netscape.com
01768db263 support base href/target
git-svn-id: svn://10.0.0.236/trunk@6408 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 18:18:05 +00:00
kipp%netscape.com
d66f99c127 Support base_href attributes
git-svn-id: svn://10.0.0.236/trunk@6407 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 18:17:36 +00:00
kipp%netscape.com
11ea3f2bd6 New atoms for base tag handling
git-svn-id: svn://10.0.0.236/trunk@6406 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 18:16:24 +00:00
kipp%netscape.com
dc04c5339f Handle absolute url's better
git-svn-id: svn://10.0.0.236/trunk@6405 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 18:16:05 +00:00
dcone%netscape.com
c0015d5b1d New file for the macintosh main viewer routine
git-svn-id: svn://10.0.0.236/trunk@6404 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 17:19:44 +00:00
buster%netscape.com
2f95de4aac turn off debug
git-svn-id: svn://10.0.0.236/trunk@6403 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 17:15:12 +00:00
buster%netscape.com
5c09b61055 GetColCount now returns the effective column count of the table, adjusted
for nonsense COLSPANs at the edge of a table.  Fixed some bugs this uncovered
where the cell was being asked for its colspan attribute rather than the table
being asked for the cell's effective col span.


git-svn-id: svn://10.0.0.236/trunk@6402 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 16:51:16 +00:00
kipp%netscape.com
44408c2dc0 Check style unit before translating relative position coords
git-svn-id: svn://10.0.0.236/trunk@6401 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 16:22:54 +00:00
despotdaemon%netscape.com
8a69b9ef71 Pseudo-automatic update of changes made by harishd@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6400 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 16:16:23 +00:00
kipp%netscape.com
e573e3c06b Futz the fonts a bit to make it look a little softer
git-svn-id: svn://10.0.0.236/trunk@6399 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 16:03:11 +00:00
kipp%netscape.com
927512c9f4 Allow most everything to live in a caption, just like a table cell
git-svn-id: svn://10.0.0.236/trunk@6398 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 15:54:18 +00:00
clayton
2b5a9cae67 Adding write.pl test program - again...
git-svn-id: svn://10.0.0.236/trunk@6397 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 15:35:52 +00:00
clayton
faaa021048 Actually adding the files that were under t/
git-svn-id: svn://10.0.0.236/trunk@6396 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 15:32:08 +00:00
clayton
752e571041 Moved t to test_api, as 't' is a special use directory for running multiple
automated tests.  Perhaps we will change our tests to run this way in
   the future, but until then, it breaks 'make test'.


git-svn-id: svn://10.0.0.236/trunk@6395 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 15:21:41 +00:00
spider%netscape.com
6a5a9ab7c7 Pull JULIAN_TREX_BRANCH instead of Nav45
git-svn-id: svn://10.0.0.236/trunk@6394 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 15:20:54 +00:00
clayton
fd87d7144a Fixed conflicts from last checkin.
git-svn-id: svn://10.0.0.236/trunk@6393 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 15:19:10 +00:00
spider%netscape.com
bd3d6d162c Pull JULIAN_TREX_BRANCH rather than Nav45_BRANCH
git-svn-id: svn://10.0.0.236/trunk@6392 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 14:48:51 +00:00
spider%netscape.com
179d62077d If MOZ_DEBUG set, force USE_DEBUG_RTL
git-svn-id: svn://10.0.0.236/trunk@6391 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 14:27:06 +00:00
spider%netscape.com
83deae3fe0 Module Specific Error Generation
git-svn-id: svn://10.0.0.236/trunk@6390 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 13:47:09 +00:00
rpotts%netscape.com
b174cb490f Added IStreamListener::OnStatus(...)...
git-svn-id: svn://10.0.0.236/trunk@6389 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 10:02:50 +00:00
morse%netscape.com
6d7c9aeb3e fix build bustage
git-svn-id: svn://10.0.0.236/trunk@6388 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 08:27:56 +00:00
morse%netscape.com
00f1429fcc moved variables from FE to BE, reviewed by dfm
git-svn-id: svn://10.0.0.236/trunk@6386 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 07:29:38 +00:00
morse%netscape.com
4f1c5ed789 moved some privacy variables from FE to BE, reviewed by blythe
git-svn-id: svn://10.0.0.236/trunk@6385 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 07:26:46 +00:00
morse%netscape.com
1fe6378eb7 remove receipt transactions from emenu, reviewed by blythe
git-svn-id: svn://10.0.0.236/trunk@6384 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 07:21:37 +00:00
morse%netscape.com
a218080548 add prefs for privacy features
git-svn-id: svn://10.0.0.236/trunk@6383 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 07:19:42 +00:00
rpotts%netscape.com
3f44a70bba When stopping a TextTimer Cancel(...) the nsTimer before releasing it...
git-svn-id: svn://10.0.0.236/trunk@6381 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 05:41:34 +00:00
rpotts%netscape.com
9b3fc28076 Fixed up some reference counting issues...
git-svn-id: svn://10.0.0.236/trunk@6380 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 05:39:18 +00:00
rpotts%netscape.com
dcf0540afc Removed an incorrect comment...
git-svn-id: svn://10.0.0.236/trunk@6379 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 05:33:29 +00:00
joki%netscape.com
0b0de7e5d8 Adding GetScriptGlobalObject function to nsIScriptContextOwner interface
git-svn-id: svn://10.0.0.236/trunk@6378 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 05:07:51 +00:00
joki%netscape.com
5333c0c290 Adding a few more events types.
git-svn-id: svn://10.0.0.236/trunk@6377 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 05:07:07 +00:00
joki%netscape.com
fb49c0d645 Hooking up window element to event chain and adding in support for a few more event types.
git-svn-id: svn://10.0.0.236/trunk@6376 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 05:06:44 +00:00
joki%netscape.com
ff52657708 Hooking up the 'window' object into the event chain.
git-svn-id: svn://10.0.0.236/trunk@6375 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 05:05:42 +00:00
timm%netscape.com
169e3faf3a 242587 change text on page to UI spec
git-svn-id: svn://10.0.0.236/trunk@6374 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 05:05:17 +00:00
timm%netscape.com
158355fa13 300984 fix feature icons
git-svn-id: svn://10.0.0.236/trunk@6373 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 05:01:14 +00:00
timm%netscape.com
fa69365814 added abililty to make release builds
git-svn-id: svn://10.0.0.236/trunk@6372 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 04:36:26 +00:00
timm%netscape.com
f2b16bf5ec make level match
git-svn-id: svn://10.0.0.236/trunk@6371 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 04:35:58 +00:00
timm%netscape.com
58dea11975 added call to generate compare page contents
git-svn-id: svn://10.0.0.236/trunk@6370 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 04:35:20 +00:00
timm%netscape.com
a7b6073bb3 renamed message to setMessage and remove_message to clearMessage
git-svn-id: svn://10.0.0.236/trunk@6369 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 04:34:20 +00:00
timm%netscape.com
be48a74d02 fixed javascript ids
git-svn-id: svn://10.0.0.236/trunk@6368 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 04:33:48 +00:00
timm%netscape.com
1ef3f5a16c added functionality for more info page
git-svn-id: svn://10.0.0.236/trunk@6367 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 04:33:22 +00:00
brade%netscape.com
b4266e4fea make editor call API change
git-svn-id: svn://10.0.0.236/trunk@6366 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 04:15:11 +00:00
brade%netscape.com
f1ce19d2c1 remove warnings on Macintosh; clean up internal API calls
git-svn-id: svn://10.0.0.236/trunk@6365 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 04:14:39 +00:00
brade%netscape.com
0e8f476059 remove warnings on Macintosh; clean up internal API calls
(if'd out for now)


git-svn-id: svn://10.0.0.236/trunk@6364 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 04:12:58 +00:00
brade%netscape.com
29d322c2d2 remove warnings on Macintosh; clean up internal API calls
git-svn-id: svn://10.0.0.236/trunk@6363 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 04:05:16 +00:00
brade%netscape.com
b237fb9611 fix warnings (only for Macintosh)
git-svn-id: svn://10.0.0.236/trunk@6362 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 03:58:28 +00:00
buster%netscape.com
37153913f6 fixed column balancing for case where minColWidth > specifiedFixedColumnWidth
git-svn-id: svn://10.0.0.236/trunk@6361 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 03:53:59 +00:00
troy%netscape.com
1de4ef58fe Changed PaintChildren() to check for lines that intersect the damage
area


git-svn-id: svn://10.0.0.236/trunk@6359 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 03:18:35 +00:00
despotdaemon%netscape.com
d95db16f30 Pseudo-automatic update of changes made by mjudge@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6356 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 03:05:22 +00:00
brade%netscape.com
e8fbbb15f2 fix warning on Macintosh
git-svn-id: svn://10.0.0.236/trunk@6354 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 01:56:47 +00:00
brade%netscape.com
5c1e57c90a new resizing; cursor stuff; other stuff
git-svn-id: svn://10.0.0.236/trunk@6353 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 01:55:23 +00:00
scullin%netscape.com
ee9b5b7370 Really fix cookies for modular netlib.
git-svn-id: svn://10.0.0.236/trunk@6352 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 01:34:52 +00:00
blythe%netscape.com
d27423a88c aprvd Scott Furman, changes to support VC6 compiler
git-svn-id: svn://10.0.0.236/trunk@6351 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 01:30:02 +00:00
blythe%netscape.com
7257a7479d VC6 compiler support changes, editor files reviewed by mjudge
git-svn-id: svn://10.0.0.236/trunk@6350 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 01:12:13 +00:00
despotdaemon%netscape.com
23ac6801ae Pseudo-automatic update of changes made by harishd@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6349 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 01:10:18 +00:00
despotdaemon%netscape.com
fb4ca610ec Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6348 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 01:03:54 +00:00
wtc%netscape.com
94bbe5a07a Merged Linux/MIPS patch contributed by Ralf <ralf@uni-koblenz.de>.
Files changed: _linux.cfg and _linux.h.


git-svn-id: svn://10.0.0.236/trunk@6347 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 00:52:44 +00:00
pierre%netscape.com
8776327b1e Back to MOZ_MEDIUM: updated the splashscreen.
git-svn-id: svn://10.0.0.236/trunk@6346 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 00:52:00 +00:00
blythe%netscape.com
8c1000970a Support VC6 compiler
git-svn-id: svn://10.0.0.236/trunk@6345 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 00:48:33 +00:00
buster%netscape.com
ec0b3d1318 any table with a nonsense rowspan lays out better
git-svn-id: svn://10.0.0.236/trunk@6344 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 00:43:09 +00:00
akkana%netscape.com
1021fec2f1 244341: infinite loop/hang in text layout. Reviewed by Nisheeth.
Thanks to Matthew Dillon <dillon@backplane.com> for the fix!


git-svn-id: svn://10.0.0.236/trunk@6343 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 00:39:30 +00:00
michaelp%netscape.com
8e0db3595b fixed resource leak.
git-svn-id: svn://10.0.0.236/trunk@6342 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 00:29:17 +00:00
clu%netscape.com
c5602959cb #71523; reviewed by jfrancis.
Added EDITDLG_BROWSE_PUBLISHED, a new dialog resource id.


git-svn-id: svn://10.0.0.236/trunk@6341 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 00:22:35 +00:00
clu%netscape.com
1bf750dd57 #103493; #71523; #300239; reviewed by jfrancis.
1) Brings up extra-html help window.
2) Added a new dialog box to see if the user wants to browse the the default location after publishing.  
3) Selects the row field when the table info dialog box first pops up.


git-svn-id: svn://10.0.0.236/trunk@6340 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 00:20:48 +00:00
slamm%netscape.com
624b40b849 Clear dropdown history in location bar when the user clears the history (in Prefs). Bug #114674 (P1 & TS1). This change also keeps all the dropdown lists in sync.
git-svn-id: svn://10.0.0.236/trunk@6339 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 00:19:21 +00:00
clu%netscape.com
459baf5730 #300236; #300209; #300231.
New layout in table and cell dialogs.  Also changed tab order in table info, and disable/enable popup menus in table info correctly.


git-svn-id: svn://10.0.0.236/trunk@6338 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 00:15:34 +00:00
clu%netscape.com
bd6227ad48 #300219 and #67722; reviewed by jfrancis.
Fixed carret redrawing in tables.  Also fixed bullet undo/redo.


git-svn-id: svn://10.0.0.236/trunk@6337 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 00:10:09 +00:00
troy%netscape.com
6ea9614ff6 CHanged Invalidate() to pass the NS_VMREFRESH_NO_SYNC flag. Temporary
measure to keep us from painting before the DidReflow() notifications
have been sent...


git-svn-id: svn://10.0.0.236/trunk@6336 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 00:01:53 +00:00
rjc%netscape.com
f070701e0c Bug fix re: HT_SetNodeData()
git-svn-id: svn://10.0.0.236/trunk@6335 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 23:51:12 +00:00
pinkerton%netscape.com
43591af1ce Fix bug where an infinite loop in the RDF data file could blow out the stack. Limits menu to 5 levels.
git-svn-id: svn://10.0.0.236/trunk@6334 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 23:48:46 +00:00
troy%netscape.com
8f713e8e5f Tweaked the repaint code in Reflow() to make sure the entire frame is
repainted for a resize reflow


git-svn-id: svn://10.0.0.236/trunk@6333 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 23:28:03 +00:00
kipp%netscape.com
1b1be3143d Use proper cast path for query-interfaces
git-svn-id: svn://10.0.0.236/trunk@6332 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 23:13:39 +00:00
vidur%netscape.com
e5d5261a5e Simple document.write test
git-svn-id: svn://10.0.0.236/trunk@6331 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 22:47:32 +00:00
vidur%netscape.com
9f87056a2e Added missing parameter to scanner constructor in the case where we're parsing a string
git-svn-id: svn://10.0.0.236/trunk@6330 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 22:46:48 +00:00
kmcclusk%netscape.com
03a157cd07 Added mAlphaBit field to prevent crashes when loading images in the viewer
git-svn-id: svn://10.0.0.236/trunk@6329 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 22:46:02 +00:00
scullin%netscape.com
6fed7dc68b Fix operator grouping warning.
git-svn-id: svn://10.0.0.236/trunk@6328 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 22:27:53 +00:00
bjorn%netscape.com
8b53ff3864 Restoring tree to previous version. Should not affect the build. The previous
checkin had no impact on the build either, but I'll wait with these changes until
the tree is open again. Sorry for the inconvenience.


git-svn-id: svn://10.0.0.236/trunk@6327 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 22:25:16 +00:00
michaelp%netscape.com
4235b6cfbb added libraptorplugin.so to link libs.
git-svn-id: svn://10.0.0.236/trunk@6326 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 22:12:09 +00:00
dcone%netscape.com
57e35a7302 added new manifest support for layout/base/src
git-svn-id: svn://10.0.0.236/trunk@6325 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 22:07:20 +00:00
vidur%netscape.com
73ae93f3a5 nsHTMLDocument now holds on to its parser till loading is complete. Hooked up document.write and document.writeln
git-svn-id: svn://10.0.0.236/trunk@6324 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 22:06:05 +00:00
dcone%netscape.com
dc272fac46 added manifest file
git-svn-id: svn://10.0.0.236/trunk@6323 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 22:05:51 +00:00
dcone%netscape.com
d5136b7105 fixed the project so the Async image file for nsImageContext is used
git-svn-id: svn://10.0.0.236/trunk@6322 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 22:04:02 +00:00
buster%netscape.com
73c07a04f5 completed AdjustTableThatIsTooWide, now gets the table down to the right width.
git-svn-id: svn://10.0.0.236/trunk@6321 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 21:55:45 +00:00
michaelp%netscape.com
6c788bcc59 unix will build again...
git-svn-id: svn://10.0.0.236/trunk@6320 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 21:54:26 +00:00
troy%netscape.com
c76ea311f7 Added XXX description of floater problem
git-svn-id: svn://10.0.0.236/trunk@6319 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 21:35:53 +00:00
troy%netscape.com
4bf14165ae Fixed nbody code to do a WillReflow() and to size the frame when incrementally
reflowing an absolutely positioned frame


git-svn-id: svn://10.0.0.236/trunk@6316 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 21:16:09 +00:00
rickg%netscape.com
55ada9fcc7 bug fixes; more docs; lots of new testing
git-svn-id: svn://10.0.0.236/trunk@6315 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 21:10:19 +00:00
michaelp%netscape.com
4ab5768050 removed double pull of plugins... oops again.
git-svn-id: svn://10.0.0.236/trunk@6314 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 21:02:31 +00:00
michaelp%netscape.com
6c911103de oops again...
git-svn-id: svn://10.0.0.236/trunk@6313 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:59:45 +00:00
michaelp%netscape.com
214d4a18ac oops.
git-svn-id: svn://10.0.0.236/trunk@6312 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:57:34 +00:00
michaelp%netscape.com
5828551631 modified to pull plugins.
git-svn-id: svn://10.0.0.236/trunk@6311 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:55:32 +00:00
dcone%netscape.com
6502e2da9d first version
git-svn-id: svn://10.0.0.236/trunk@6310 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:49:20 +00:00
bjorn%netscape.com
f507367ff5 New version of jsIScriptable.h (clobbers the old one). New files added for
testing (MyScriptable) and embedding support (JSWrapper,jsIScriptable,main).


git-svn-id: svn://10.0.0.236/trunk@6309 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:46:28 +00:00
michaelp%netscape.com
117c98f47a modified for new streaming APIs.
git-svn-id: svn://10.0.0.236/trunk@6308 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:43:08 +00:00
michaelp%netscape.com
5887cc994a added in plugins and cleaned up.
git-svn-id: svn://10.0.0.236/trunk@6306 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:36:48 +00:00
michaelp%netscape.com
d3c5fd6e43 cleaning and plugin preparation.
git-svn-id: svn://10.0.0.236/trunk@6305 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:36:06 +00:00
michaelp%netscape.com
b492b0ebd1 modified for new streaming APIs.
git-svn-id: svn://10.0.0.236/trunk@6304 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:35:43 +00:00
kmcclusk%netscape.com
af0caa0115 Added KeyRelease event generation
git-svn-id: svn://10.0.0.236/trunk@6303 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:34:46 +00:00
michaelp%netscape.com
8afa74e8ef modified streaming APIs to be what the OJI guys want.
git-svn-id: svn://10.0.0.236/trunk@6302 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:34:01 +00:00
dcone%netscape.com
a86f7df66e first version of manifest for this directory
git-svn-id: svn://10.0.0.236/trunk@6301 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:31:35 +00:00
slamm%netscape.com
467d2a3ccf Bring over another change from the RDFBranch.
git-svn-id: svn://10.0.0.236/trunk@6300 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:29:01 +00:00
troy%netscape.com
5b0c4cb47f Moved cde that does damage repair for a resize reflow from the
body to the root content frame


git-svn-id: svn://10.0.0.236/trunk@6299 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:19:05 +00:00
guha%netscape.com
58eae65277 Fix for crashing bug when related links pane is docked
git-svn-id: svn://10.0.0.236/trunk@6298 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:08:27 +00:00
spider%netscape.com
289fec2239 Backing out nsError.h revision 3.2 until the tree opens...
git-svn-id: svn://10.0.0.236/trunk@6297 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:08:13 +00:00
kipp%netscape.com
9939f47884 new
git-svn-id: svn://10.0.0.236/trunk@6296 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 19:58:09 +00:00
kipp%netscape.com
33be9dd48b Removed hack reflow code now that body/block do it properly
git-svn-id: svn://10.0.0.236/trunk@6295 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 19:56:11 +00:00
kipp%netscape.com
2b5bf809b8 Handle floaters better by triggering a resize-reflow on the body's content frame after reflowing the floater
git-svn-id: svn://10.0.0.236/trunk@6294 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 19:55:27 +00:00
kipp%netscape.com
9b7a4a531c Fix floater placement by removing it's old location before adding it again; use proper reflow state when getting a floaters style-size; don't forget to place below-current-line-floaters on frame-appended reflow
git-svn-id: svn://10.0.0.236/trunk@6293 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 19:54:44 +00:00
slamm%netscape.com
b243f33db6 Change some extern'd functions to static. Fixes Solaris build bustage.
git-svn-id: svn://10.0.0.236/trunk@6292 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 19:51:30 +00:00
slamm%netscape.com
0451077787 Fix more Solaris build bustage.
git-svn-id: svn://10.0.0.236/trunk@6291 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 19:43:11 +00:00
slamm%netscape.com
8be75e77c8 Fix more build bustage on Solaris.
git-svn-id: svn://10.0.0.236/trunk@6290 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 19:39:37 +00:00
spider%netscape.com
d87285d4ce Added Support for Module Specific Error Codes which are compatible with
the native platform.


git-svn-id: svn://10.0.0.236/trunk@6289 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 19:28:00 +00:00
slamm%netscape.com
da5747b7fb Kill a warning.
git-svn-id: svn://10.0.0.236/trunk@6288 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 19:26:31 +00:00
slamm%netscape.com
45706a2dab Add some casts to fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@6287 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 19:12:31 +00:00
rjc%netscape.com
0efa4ab3f7 Propagate change to notification handler parameters to all clients (RDF_BRANCH landing).
git-svn-id: svn://10.0.0.236/trunk@6286 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 19:05:47 +00:00
racham%netscape.com
baee9c9c09 BUG 181240 : Added dial2stp.js to support dial2stp.htm
git-svn-id: svn://10.0.0.236/trunk@6285 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:44:40 +00:00
racham%netscape.com
97c75cd418 BUG 181240 : Added dial1stp.js to support dial1stp.htm
git-svn-id: svn://10.0.0.236/trunk@6284 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:43:25 +00:00
racham%netscape.com
818c1598c1 BUG 181240 : Added dial2stp.htm which is equivalent ot dialinf2.htm
git-svn-id: svn://10.0.0.236/trunk@6283 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:42:42 +00:00
racham%netscape.com
16c214e981 Added dial1stp.htm file that is required for 1step world
git-svn-id: svn://10.0.0.236/trunk@6282 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:41:32 +00:00
racham%netscape.com
01e39bf79a BUG 181240 : Setting right syntax for variable oneStepMode
git-svn-id: svn://10.0.0.236/trunk@6281 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:40:06 +00:00
ramiro%netscape.com
b3dc7a2697 Mege from RDF_BRANCH_060398 branch. Also known as RDF landing.
git-svn-id: svn://10.0.0.236/trunk@6280 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:38:03 +00:00
racham%netscape.com
5067649fe6 BUG 181240 : Changed Javascript ID to Connect 102
git-svn-id: svn://10.0.0.236/trunk@6279 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:37:50 +00:00
racham%netscape.com
348a392e75 BUG 181240 : Added display control for 1step world
git-svn-id: svn://10.0.0.236/trunk@6278 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:36:16 +00:00
racham%netscape.com
1ab28e6260 BUG 181240 : Added Connect to Server to the control panel
git-svn-id: svn://10.0.0.236/trunk@6277 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:34:58 +00:00
racham%netscape.com
17453d56f0 BUG 181240 : Changed navigation to allow 1step and 2step modes
git-svn-id: svn://10.0.0.236/trunk@6276 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:32:29 +00:00
scullin%netscape.com
2be66236a5 Fixed build bustage. I can't believe people are still adding context
functions. They should be shot.


git-svn-id: svn://10.0.0.236/trunk@6275 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:31:05 +00:00
pinkerton%netscape.com
4c0a98ae4d Two new params added for column support (RDF_BRANCH landing).
git-svn-id: svn://10.0.0.236/trunk@6274 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:26:26 +00:00
pinkerton%netscape.com
1a647b3201 Update vocab used in properties for RDF_BRANCH landing
git-svn-id: svn://10.0.0.236/trunk@6273 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:26:08 +00:00
pinkerton%netscape.com
0cb550e1b2 Added laybuiltin.c for SHACK.
git-svn-id: svn://10.0.0.236/trunk@6272 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:25:49 +00:00
pinkerton%netscape.com
44752b9db7 Added support for SHACK and RDF_BRANCH landing.
git-svn-id: svn://10.0.0.236/trunk@6271 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:25:35 +00:00
ramiro%netscape.com
8a953006b3 C++ comment begone from c code. thank you.
git-svn-id: svn://10.0.0.236/trunk@6270 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:22:43 +00:00
peterl%netscape.com
0911285865 properly setup fonts and backgound colors
git-svn-id: svn://10.0.0.236/trunk@6269 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:16:11 +00:00
kmcclusk%netscape.com
cc5d2e7044 Initialize event structure for mouse events
git-svn-id: svn://10.0.0.236/trunk@6268 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:07:42 +00:00
peterl%netscape.com
b1788da65c replaced with one more useful
git-svn-id: svn://10.0.0.236/trunk@6267 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:05:35 +00:00
peterl%netscape.com
590cae8cb1 factored backgound finding code to nsStyleUtil
git-svn-id: svn://10.0.0.236/trunk@6266 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:05:03 +00:00
peterl%netscape.com
7dcc12313b added nsStyleUtil.cpp
git-svn-id: svn://10.0.0.236/trunk@6265 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:04:24 +00:00
peterl%netscape.com
dd9f55d2a4 factored font sizing code to nsStyleUtil
implemented font flags


git-svn-id: svn://10.0.0.236/trunk@6264 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:03:55 +00:00
peterl%netscape.com
ccca01f09b added nsStyleUtil.h
git-svn-id: svn://10.0.0.236/trunk@6263 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:02:55 +00:00
peterl%netscape.com
88f335a54b factored font size= code to style utils
added font flag support
body tag now sets default color


git-svn-id: svn://10.0.0.236/trunk@6262 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:58:22 +00:00
peterl%netscape.com
cbaf7c38af added font flags
git-svn-id: svn://10.0.0.236/trunk@6261 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:57:16 +00:00
peterl%netscape.com
37869e4433 added setters for default colors
git-svn-id: svn://10.0.0.236/trunk@6260 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:57:00 +00:00
peterl%netscape.com
986889e04c removed threed text hack, added font flags
git-svn-id: svn://10.0.0.236/trunk@6259 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:55:02 +00:00
peterl%netscape.com
6b8b1e525d tweaks to rounding problems with twips to pixels and font point sizes
added hack to support desdemona font for test cases


git-svn-id: svn://10.0.0.236/trunk@6258 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:52:40 +00:00
rjc%netscape.com
69afc71335 Export XP_GetNavCenterContext
git-svn-id: svn://10.0.0.236/trunk@6257 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:52:36 +00:00
rjc%netscape.com
77999d0f25 Add Java Security code into Mac project.
git-svn-id: svn://10.0.0.236/trunk@6256 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:50:48 +00:00
rjc%netscape.com
f9f414f38a Add prototypes.
git-svn-id: svn://10.0.0.236/trunk@6255 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:50:27 +00:00
hyatt%netscape.com
093c33bb46 Landing the WinFE RDF branch.
git-svn-id: svn://10.0.0.236/trunk@6254 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:48:39 +00:00
kmcclusk%netscape.com
9ce4fd6a3d Added key event support.
git-svn-id: svn://10.0.0.236/trunk@6253 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:47:28 +00:00
hyatt%netscape.com
9c0a5be316 Landing SHACK changes for RDF_BRANCH.
git-svn-id: svn://10.0.0.236/trunk@6252 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:44:53 +00:00
hyatt%netscape.com
94d927d118 Landing SHACK changes from RDF branch.
git-svn-id: svn://10.0.0.236/trunk@6251 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:44:04 +00:00
hyatt%netscape.com
93e1523a5b Committing changes for RDF branch landing.
git-svn-id: svn://10.0.0.236/trunk@6250 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:38:51 +00:00
hyatt%netscape.com
589041359f Landing the RDF branch.
git-svn-id: svn://10.0.0.236/trunk@6249 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:36:59 +00:00
dcone%netscape.com
fe06c4c582 deleted nsCellCol, nsCollColl and nsHTMLIFrame.cpp
git-svn-id: svn://10.0.0.236/trunk@6248 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:06:48 +00:00
dcone%netscape.com
8fa6cfff0c added nsIContentViewerContainer.h and nsIWebshell.h
git-svn-id: svn://10.0.0.236/trunk@6247 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 17:05:42 +00:00
kipp%netscape.com
fbc199b1b4 Work around scrolling bug and fix a memory leak with #ref url's
git-svn-id: svn://10.0.0.236/trunk@6246 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 15:29:04 +00:00
clayton
a89aaf3810 Fixed memory leak in hash2mod
Fixed segfault in avref2*
Replaced calls to av2modvals with avref2*


git-svn-id: svn://10.0.0.236/trunk@6244 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 12:34:32 +00:00
leif
43126b9a90 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6243 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 11:05:59 +00:00
rickg%netscape.com
9e4bdbf96e tried again to fix linux build
git-svn-id: svn://10.0.0.236/trunk@6242 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 09:17:45 +00:00
rickg%netscape.com
4922d71172 fixed a linux build problem
git-svn-id: svn://10.0.0.236/trunk@6241 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 09:01:24 +00:00
ftang%netscape.com
d86de835bd fix bug #bug 122043; . This have been check in into 4.06 already.
git-svn-id: svn://10.0.0.236/trunk@6240 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 08:50:11 +00:00
ftang%netscape.com
ab5a9206b1 seperate Encoding menu into different menu spec so it will make sense
according to the type of window. Approved by ramiro


git-svn-id: svn://10.0.0.236/trunk@6239 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 08:44:30 +00:00
rickg%netscape.com
1988983aeb table bug fixes, heading fixes, performance, docs
git-svn-id: svn://10.0.0.236/trunk@6238 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 08:21:02 +00:00
leif
3eaf5c79b8 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6237 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 05:31:22 +00:00
leif
d035e5af1a *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6236 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 05:25:09 +00:00
troy%netscape.com
9da17705fc Moved code to invalidate dirty area for an initial reflow from the
body frame to the root content frame


git-svn-id: svn://10.0.0.236/trunk@6235 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 05:00:39 +00:00
joki%netscape.com
50ac03bebf Fix addref problem during mouseovers.
git-svn-id: svn://10.0.0.236/trunk@6233 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 04:53:14 +00:00
rpotts%netscape.com
431c95c8f5 Get rid of those tabs...
git-svn-id: svn://10.0.0.236/trunk@6231 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 04:26:07 +00:00
rpotts%netscape.com
181523663d Fixed uninitialized variable...
git-svn-id: svn://10.0.0.236/trunk@6230 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 04:25:20 +00:00
rpotts%netscape.com
cb4fec62ef Added GetDocumentLoader(...) and support for creating nested document loaders if the webshell is nested itself...
git-svn-id: svn://10.0.0.236/trunk@6229 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 04:24:36 +00:00
rpotts%netscape.com
56a717417c Added GetDocumentLoader(...).
git-svn-id: svn://10.0.0.236/trunk@6228 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 04:23:00 +00:00
troy%netscape.com
e67dda592f Added code to Reflow() to invalidate the damaged areas
git-svn-id: svn://10.0.0.236/trunk@6227 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 04:22:41 +00:00
troy%netscape.com
4a9451f206 Changed MoveViewTo() so it doesn't do any painting unless the
origin actually changes


git-svn-id: svn://10.0.0.236/trunk@6226 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 04:21:05 +00:00
cmanske%netscape.com
5919a65f53 Added status info for table cursors. Implemented new drag cursor and drag table and cell behavior
git-svn-id: svn://10.0.0.236/trunk@6225 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 04:20:38 +00:00
cmanske%netscape.com
8ac0270738 Fixed bugs 174178, 188530, 299735. Implemented new drag cell and table behavior
git-svn-id: svn://10.0.0.236/trunk@6224 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 04:18:49 +00:00
cmanske%netscape.com
170d9ecd11 Added strings for table editing status. Added function to give user feedback to select line in Composer
git-svn-id: svn://10.0.0.236/trunk@6223 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 04:18:07 +00:00
cmanske%netscape.com
7fb2283c96 Added new cursor to indicate selecting a line in Composer
git-svn-id: svn://10.0.0.236/trunk@6222 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 04:07:24 +00:00
pinkerton%netscape.com
1b584db1e9 Fix warning about assignment to temp (thanks to paule@edmark.com).
git-svn-id: svn://10.0.0.236/trunk@6221 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 04:03:02 +00:00
pinkerton%netscape.com
252797444a Migrate over bugfixes for bug #116389 (form submission fixes).
git-svn-id: svn://10.0.0.236/trunk@6220 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 04:02:03 +00:00
joki%netscape.com
5352fa5b8e More event stuff. Modified HandleDOMEvent, modified nsGUIEvent types, added mouseover, mouseout.
git-svn-id: svn://10.0.0.236/trunk@6219 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 02:55:33 +00:00
despotdaemon%netscape.com
718c6d0a66 Pseudo-automatic update of changes made by benito@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6214 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 00:14:54 +00:00
kipp%netscape.com
60401b4303 Implement scroll to ref
git-svn-id: svn://10.0.0.236/trunk@6210 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 23:42:47 +00:00
kipp%netscape.com
677f8123bb Init mStatus
git-svn-id: svn://10.0.0.236/trunk@6209 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 23:41:36 +00:00
kipp%netscape.com
021f275c40 Implement GetURL
git-svn-id: svn://10.0.0.236/trunk@6208 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 23:40:54 +00:00
kipp%netscape.com
b6847ea0a2 Added GetURL method
git-svn-id: svn://10.0.0.236/trunk@6207 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 23:40:27 +00:00
kipp%netscape.com
17974ca433 Implement ScrollTo method
git-svn-id: svn://10.0.0.236/trunk@6206 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 23:39:56 +00:00
kipp%netscape.com
03ec186995 Added ScrollTo method
git-svn-id: svn://10.0.0.236/trunk@6205 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 23:39:23 +00:00
kipp%netscape.com
4a3ed7cb7d Added in parsing for references
git-svn-id: svn://10.0.0.236/trunk@6204 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 23:38:20 +00:00
vidur%netscape.com
d1ec90d994 Reenabled JSConsole.
git-svn-id: svn://10.0.0.236/trunk@6203 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 23:34:07 +00:00
vidur%netscape.com
63fb0a9b04 Fixed HTMLDocument and HTMLCollection interfaces
git-svn-id: svn://10.0.0.236/trunk@6202 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 23:33:17 +00:00
vidur%netscape.com
5c9e91ae0c Introduced nsContentLists. Added a DocumentWillBeDestroyed method to nsIDocumentObserver. Added a document parameter to all DocumentObserver notifications. Added the nsIDOMHTMLDocument interface to HTMLDocument. Implemented document.images, etc and getElementsByTagName.
git-svn-id: svn://10.0.0.236/trunk@6201 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 23:32:19 +00:00
jevering%netscape.com
43474df1cd Fixed build problem on NT 5.0 with null exports line.
git-svn-id: svn://10.0.0.236/trunk@6200 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 23:25:35 +00:00
scullin%netscape.com
1aba8c9108 Fix win95 build bustage.
git-svn-id: svn://10.0.0.236/trunk@6199 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 23:21:23 +00:00
leif
6d635e52a6 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6198 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 22:49:55 +00:00
leif
103fac8e49 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6195 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 22:38:38 +00:00
leif
4b70ba63b9 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6194 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 22:35:46 +00:00
troy%netscape.com
282ad01de6 Changed mEmptyString to be a static const nsAutoString, and commented
out mName because it isn't being used


git-svn-id: svn://10.0.0.236/trunk@6193 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 22:18:14 +00:00
hshaw%netscape.com
86f2db9106 Changes for bug#301401, remove java from build, ldap library is needed independent of MOZ_JAVA
git-svn-id: svn://10.0.0.236/trunk@6192 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 22:04:31 +00:00
spider%netscape.com
05f3322529 Pull Nav45_BRANCH for Julian now
git-svn-id: svn://10.0.0.236/trunk@6191 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 22:02:33 +00:00
rods%netscape.com
c4bfa9d561 turning off debug
git-svn-id: svn://10.0.0.236/trunk@6190 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 22:01:46 +00:00
spider%netscape.com
99fce32288 Pull Nav45_BRANCH of Julian instead
git-svn-id: svn://10.0.0.236/trunk@6189 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 22:01:08 +00:00
rods%netscape.com
bb3075fd02 selection improvements
git-svn-id: svn://10.0.0.236/trunk@6188 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 22:00:23 +00:00
rods%netscape.com
18fe376320 selection improvements
git-svn-id: svn://10.0.0.236/trunk@6187 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 21:56:48 +00:00
troy%netscape.com
522244780d Added some '=' operator member functions to nsAutoString
git-svn-id: svn://10.0.0.236/trunk@6185 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 21:38:48 +00:00
sar%netscape.com
49a6d2747e Pam Nunn- JPEG landing
git-svn-id: svn://10.0.0.236/trunk@6184 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 21:33:05 +00:00
pnunn%netscape.com
a4d038762d Landing JPEG_BRANCH
git-svn-id: svn://10.0.0.236/trunk@6182 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 21:17:01 +00:00
pnunn%netscape.com
c544a8329e Landing JPEG_BRANCH.
git-svn-id: svn://10.0.0.236/trunk@6181 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 21:15:59 +00:00
terry%netscape.com
a1d0935400 Call ldap with only 20 people at a time, because it sometimes seems to
choke if you give it too many at once.


git-svn-id: svn://10.0.0.236/trunk@6180 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 21:12:19 +00:00
buster%netscape.com
87d38283ca fixed-width columns now respected when their content desired width exceeds
the specified width.


git-svn-id: svn://10.0.0.236/trunk@6179 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 20:06:31 +00:00
terry%netscape.com
b27eb6980d Can't use /bin/mail, so be disgusting and use dolog.pl just to cause mail to be sent.
git-svn-id: svn://10.0.0.236/trunk@6178 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 19:02:30 +00:00
terry%netscape.com
4877d40dd3 Fix to deal with new '%' style of usernames.
git-svn-id: svn://10.0.0.236/trunk@6177 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 19:01:47 +00:00
kipp%netscape.com
4db8df159f Pretend we are 4.05 since some websites can't handle 5.0 yet
git-svn-id: svn://10.0.0.236/trunk@6176 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 18:50:17 +00:00
kipp%netscape.com
747b6f6fd4 Implement block in inline
git-svn-id: svn://10.0.0.236/trunk@6175 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 18:38:57 +00:00
troy%netscape.com
b6576e3de5 Fixed it so backgrounds are properly tiled again
git-svn-id: svn://10.0.0.236/trunk@6174 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 18:34:14 +00:00
buster%netscape.com
00a794eb94 BasicTableLayoutStrategy::Initialize now properly re-iinitializes instance variables
git-svn-id: svn://10.0.0.236/trunk@6173 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 18:22:12 +00:00
kipp%netscape.com
9bc848dc75 Avoid excessive content-changed reflows during text appending
git-svn-id: svn://10.0.0.236/trunk@6172 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 17:40:05 +00:00
rpotts%netscape.com
0a063a503f nsIWebShell now supports a single observer for all documents loads...
git-svn-id: svn://10.0.0.236/trunk@6168 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 11:26:18 +00:00
rpotts%netscape.com
71f151059e nsIWebShell now supports a single observer for all document loads...The DocLoader now stops any pending binds when a new document is requested...
git-svn-id: svn://10.0.0.236/trunk@6167 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 11:24:50 +00:00
rpotts%netscape.com
15b08d846d First pass at nested document loaders...
git-svn-id: svn://10.0.0.236/trunk@6166 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 11:23:32 +00:00
rpotts%netscape.com
d99534a520 nsIWebShell now supports a single observer for all document loads...
git-svn-id: svn://10.0.0.236/trunk@6165 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 11:22:59 +00:00
rpotts%netscape.com
fe21e56f28 Allow OnDataAvailable(...) to abort a binding operation by returning an error code...
git-svn-id: svn://10.0.0.236/trunk@6164 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 11:21:27 +00:00
rpotts%netscape.com
3bc4158ab9 Removed some signed/unsigned warnings...
git-svn-id: svn://10.0.0.236/trunk@6163 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 11:20:37 +00:00
rpotts%netscape.com
be262a9a8f IWebShell now supports a single observer...
git-svn-id: svn://10.0.0.236/trunk@6162 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 11:19:54 +00:00
despotdaemon%netscape.com
6483954dab Pseudo-automatic update of changes made by davidm@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6161 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 07:36:44 +00:00
ramiro%netscape.com
848b28b7b5 Allow the user to ignore the OS_VERSION, which is usually irrelevant.
git-svn-id: svn://10.0.0.236/trunk@6155 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 05:38:53 +00:00
buster%netscape.com
97ce24b2ed fixed table width problems when there are colspanning cells
git-svn-id: svn://10.0.0.236/trunk@6154 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 05:38:41 +00:00
troy%netscape.com
878c1d1350 Changed PaintBorder() to use the (x,y) that's passed in
git-svn-id: svn://10.0.0.236/trunk@6152 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 05:02:07 +00:00
ramiro%netscape.com
cc38f9f94a Define proper macros for linux 2.2.
git-svn-id: svn://10.0.0.236/trunk@6150 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 04:59:29 +00:00
ramiro%netscape.com
8a21134be1 Allow the user to override the default host identity.
git-svn-id: svn://10.0.0.236/trunk@6149 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 04:53:19 +00:00
troy%netscape.com
4f2b172ab6 Changed clip operation to intersect
git-svn-id: svn://10.0.0.236/trunk@6148 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 04:49:09 +00:00
buster%netscape.com
26234a5a97 * reworked the way colspan and rowspans are handled in table layout strategy. We do less work, and we look better.
* fixed more margin code.  we're inching towards correctness.
* the width contributed by a colspanning cell is now proportionately distributed to the columns based on the columns "effective width"
* added logic for handling illegal COLS attribute on a table (like COLS=4 in a 3-column table).  See nsTableFrame::GetEffectiveCOLSAttribute()
* added logic for handling illegal COLSPAN attribute on a cell (like COLSPAN=4 in a 3-column table).  See nsTableFrame::GetEffectiveColSpan().  This is wrong, and will get reworked soon.
* added the ability for cell width attributes to effect column width like Nav4.


git-svn-id: svn://10.0.0.236/trunk@6145 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 03:53:43 +00:00
scullin%netscape.com
e6798021cc Fix crash _and_ memory leak? Is it too much to hope?
git-svn-id: svn://10.0.0.236/trunk@6144 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 03:48:17 +00:00
scullin%netscape.com
264497527a Fix crash, leak again.
git-svn-id: svn://10.0.0.236/trunk@6137 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 02:56:50 +00:00
troy%netscape.com
e727c63ed5 Changed nsCSSRendering::PaintBorder() so the entire rect is used
and not just the width and height


git-svn-id: svn://10.0.0.236/trunk@6136 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 02:46:00 +00:00
troy%netscape.com
e926f6207a Added support for displaying inset border and alt-text while loading
an image


git-svn-id: svn://10.0.0.236/trunk@6135 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 02:44:44 +00:00
ramiro%netscape.com
19cf1d19e5 Add realclean target to be compatible with the rest of the build system.
git-svn-id: svn://10.0.0.236/trunk@6134 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 01:19:28 +00:00
valeski%netscape.com
8d0b4bad42 299916. no longer sending gratuitus connection header if we don't need to. and no longer sending uname/password in referer fields (edge case bug)
git-svn-id: svn://10.0.0.236/trunk@6133 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 01:04:01 +00:00
sar%netscape.com
134a79fff9 adding mozilla/base in preparaion for landing OJI
git-svn-id: svn://10.0.0.236/trunk@6132 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 00:56:55 +00:00
valeski%netscape.com
adac52bc7f 123018, changing http authentication mechanism.
git-svn-id: svn://10.0.0.236/trunk@6131 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 00:49:51 +00:00
selmer%netscape.com
f28d93a148 Include stubs for vanilla build
git-svn-id: svn://10.0.0.236/trunk@6130 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 00:47:51 +00:00
scullin%netscape.com
5c0ed389df Propagate alerts, confirms and prompts up to browser window.
git-svn-id: svn://10.0.0.236/trunk@6128 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 00:26:23 +00:00
scullin%netscape.com
ece788d507 Fix context leakage.
git-svn-id: svn://10.0.0.236/trunk@6127 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 00:16:00 +00:00
law%netscape.com
679388d3aa Fix for bug #49584
git-svn-id: svn://10.0.0.236/trunk@6126 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 23:59:38 +00:00
robinf%netscape.com
a24c0b9a96 Fixinb bug # 300065; adding help screen for Connect to ISP screen in Accnt setup
git-svn-id: svn://10.0.0.236/trunk@6125 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 23:45:57 +00:00
danm%netscape.com
1634836c14 copy fullsoft runtime files
git-svn-id: svn://10.0.0.236/trunk@6124 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 23:41:39 +00:00
cmanske%netscape.com
bf2df107ef Fixed problem with clearing is_new_document flag in edit buffer when reusing existing new-doc buffer
git-svn-id: svn://10.0.0.236/trunk@6123 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 23:36:03 +00:00
karnaze%netscape.com
51d7d8a151 set attributes on <frame>, <frameset> layout
git-svn-id: svn://10.0.0.236/trunk@6121 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 23:20:04 +00:00
cmanske%netscape.com
59ebdc3a76 Fixed bad XP_BOOL usage. Submitted by Kazushi Marukawa (jam@pobox.com)
git-svn-id: svn://10.0.0.236/trunk@6120 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 22:57:04 +00:00
hshaw%netscape.com
1038485a49 Fix for NETBSD from toshok@netscape.com via net (don't have email address to assign credit to)
git-svn-id: svn://10.0.0.236/trunk@6119 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 22:40:49 +00:00
dcone%netscape.com
07eb8f4373 Fixed build for this, took out files not needed.
git-svn-id: svn://10.0.0.236/trunk@6115 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 21:53:32 +00:00
dcone%netscape.com
ce48cf9e85 added nsIContentViewerContainer.h and nsIWebshell.h
git-svn-id: svn://10.0.0.236/trunk@6114 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 21:49:35 +00:00
dcone%netscape.com
4e21959daf added nsHTMLTAGS.h
git-svn-id: svn://10.0.0.236/trunk@6113 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 21:48:26 +00:00
dcone%netscape.com
217141c147 removed nsHTMLTags.cpp
git-svn-id: svn://10.0.0.236/trunk@6112 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 21:47:41 +00:00
dcone%netscape.com
593a7a9486 added nsIScriptEventListener.h
git-svn-id: svn://10.0.0.236/trunk@6111 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 21:46:32 +00:00
danm%netscape.com
674e1eacd6 plug leaking URL in Icon_GetUrlExitRoutine. r:hyatt
git-svn-id: svn://10.0.0.236/trunk@6110 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 21:37:45 +00:00
scullin%netscape.com
f3792def27 Default implementation of QueryInterface needs to NULL result on failure.
git-svn-id: svn://10.0.0.236/trunk@6109 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 21:32:52 +00:00
kmcclusk%netscape.com
c58eb3c9b0 Fixed bug where child window is not being displayed in Viewer. Show() now
manages and unmanages the widget directly without testing visibility.


git-svn-id: svn://10.0.0.236/trunk@6108 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 21:26:17 +00:00
scullin%netscape.com
1aa94e896b Added rules to install/clobber resource gifs.
git-svn-id: svn://10.0.0.236/trunk@6107 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 21:22:25 +00:00
kipp%netscape.com
5fec00d851 Set max-element-size when computing reflow metrics
git-svn-id: svn://10.0.0.236/trunk@6106 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 21:20:55 +00:00
danm%netscape.com
e6c9332b26 plug leak, ensure viewstream initialization in IL_ViewStream. a:pnunn
git-svn-id: svn://10.0.0.236/trunk@6105 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 21:17:58 +00:00
ftang%netscape.com
54d2ce0bd9 Seperate "View:Encoding" submenu into different menu so the content can make sense
git-svn-id: svn://10.0.0.236/trunk@6103 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:40:51 +00:00
valeski%netscape.com
4bf506b49c switching a trace macro around
git-svn-id: svn://10.0.0.236/trunk@6102 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:40:03 +00:00
ftang%netscape.com
e256481bce fix 241429
git-svn-id: svn://10.0.0.236/trunk@6101 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:38:27 +00:00
valeski%netscape.com
88c98253cd No longer setting the referrer field on retrieveal of image urls. 299916.
git-svn-id: svn://10.0.0.236/trunk@6100 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:35:44 +00:00
scullin%netscape.com
629d196dca Hook up status remarks from netlib, add interface for prompts and alerts.
git-svn-id: svn://10.0.0.236/trunk@6099 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:27:59 +00:00
selmer%netscape.com
9ec6531e85 Include stubs for vanilla build
git-svn-id: svn://10.0.0.236/trunk@6098 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:26:23 +00:00
selmer%netscape.com
c8b6434e08 Add stubs for vanilla build
git-svn-id: svn://10.0.0.236/trunk@6097 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:25:50 +00:00
scullin%netscape.com
399fd53444 Add field for modular netlib data to MWContext (sigh).
git-svn-id: svn://10.0.0.236/trunk@6096 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:18:42 +00:00
scullin%netscape.com
af41501a41 Export lib as soon as it is built, instead of waiting until install
phase.


git-svn-id: svn://10.0.0.236/trunk@6095 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:17:44 +00:00
scullin%netscape.com
cca057f5f8 Use resource urls for icons, close stream on completion, and clean up
generated html, all only for nglayout.


git-svn-id: svn://10.0.0.236/trunk@6094 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:16:16 +00:00
scullin%netscape.com
05829765bd Include different types table in nglayout that uses resource urls instead
of internal icons.


git-svn-id: svn://10.0.0.236/trunk@6093 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:14:50 +00:00
scullin%netscape.com
c748d35ec8 mkformat.c was inadvertantly resurrected by montulli, re-removing.
git-svn-id: svn://10.0.0.236/trunk@6092 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:12:47 +00:00
scullin%netscape.com
4df989a34e Internal news url type is obsolete, according to montulli.
git-svn-id: svn://10.0.0.236/trunk@6091 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:12:21 +00:00
scullin%netscape.com
2616593e0f Fix to allow stderr tracing on windows.
git-svn-id: svn://10.0.0.236/trunk@6090 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:11:17 +00:00
scullin%netscape.com
6c862c7f6a Add cvmime back into nglayout build. Not hooked up, though.
git-svn-id: svn://10.0.0.236/trunk@6089 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:10:27 +00:00
scullin%netscape.com
0e61d096db Comment out assert that's problematic for ftp without a disk cache.
git-svn-id: svn://10.0.0.236/trunk@6088 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:09:08 +00:00
selmer%netscape.com
7a2c9a7176 Adding stubs for vanilla build
git-svn-id: svn://10.0.0.236/trunk@6087 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:07:31 +00:00
scullin%netscape.com
d9de96f70c Icons for ftp/file directories.
git-svn-id: svn://10.0.0.236/trunk@6086 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 19:35:35 +00:00
scullin%netscape.com
0f1d8f5b7d Allow multipe urls on command line.
NGLayout only.


git-svn-id: svn://10.0.0.236/trunk@6083 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 18:44:20 +00:00
scullin%netscape.com
73407b8a14 Ready to accept status messages from netlib.
git-svn-id: svn://10.0.0.236/trunk@6082 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 18:42:50 +00:00
scullin%netscape.com
8bf713df1d Include xp strings.
NGLayout build only.


git-svn-id: svn://10.0.0.236/trunk@6081 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 18:40:42 +00:00
scullin%netscape.com
cfb0210f8f These were inadvertantly resurrected by montulli. Moved to network/mimetype.
Not part of any build.


git-svn-id: svn://10.0.0.236/trunk@6080 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 18:38:21 +00:00
scullin%netscape.com
7203a3e8df Fix release build.
git-svn-id: svn://10.0.0.236/trunk@6079 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 18:09:53 +00:00
rods%netscape.com
efc42cfbad fixed the bug for setting background color on controls
git-svn-id: svn://10.0.0.236/trunk@6078 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 18:04:18 +00:00
rods%netscape.com
b6afa0b36e commented out the setting of the statusbar's background color
git-svn-id: svn://10.0.0.236/trunk@6077 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 18:03:15 +00:00
dcone%netscape.com
146e25619c fixed libpref to pull off of XPCOM
git-svn-id: svn://10.0.0.236/trunk@6076 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 17:55:19 +00:00
kipp%netscape.com
b73cf8f832 Fixed map tag and area tag handling
git-svn-id: svn://10.0.0.236/trunk@6073 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 17:35:48 +00:00
kipp%netscape.com
8a7c46a03f Implement Open File dialog and -q option
git-svn-id: svn://10.0.0.236/trunk@6072 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 16:45:21 +00:00
kipp%netscape.com
bc6df48804 Support aggregation (sort of)
git-svn-id: svn://10.0.0.236/trunk@6071 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 16:44:45 +00:00
kipp%netscape.com
c37a73c664 Enable scripts
git-svn-id: svn://10.0.0.236/trunk@6070 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 16:44:22 +00:00
kipp%netscape.com
80a892fcdc include script directly
git-svn-id: svn://10.0.0.236/trunk@6069 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 16:44:09 +00:00
kipp%netscape.com
ef426ce17e Get correct url to open for script src=
git-svn-id: svn://10.0.0.236/trunk@6068 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 16:43:48 +00:00
kipp%netscape.com
0667f6d4e3 Repaired script tag handling so that attributes make it through
git-svn-id: svn://10.0.0.236/trunk@6067 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 16:43:25 +00:00
kipp%netscape.com
3021463397 Fixed GetGlobalObject
git-svn-id: svn://10.0.0.236/trunk@6066 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 16:43:02 +00:00
kipp%netscape.com
edc794281a Added missing refcnt; use an explicit cast to nsIDOMWindow
git-svn-id: svn://10.0.0.236/trunk@6065 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 16:41:42 +00:00
troy%netscape.com
fab674a39b Fixed MakeSide() so it does a better job of drawing the correct pixels in
the case of 1-pixel thick lines


git-svn-id: svn://10.0.0.236/trunk@6064 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 09:30:03 +00:00
troy%netscape.com
a237b859e6 Fixed it so tables that don't want a border don't get a border
git-svn-id: svn://10.0.0.236/trunk@6063 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 08:12:22 +00:00
troy%netscape.com
23025b2d69 Commented out code that was forcing the border style to solid rather
than using whatever is in the default ua style sheet (inset)


git-svn-id: svn://10.0.0.236/trunk@6062 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 07:47:46 +00:00
warren%netscape.com
3ae4ac68e3 Added generated files for when we're not building java anymore.
git-svn-id: svn://10.0.0.236/trunk@6059 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 05:42:12 +00:00
kipp%netscape.com
84c3cb94bf Removed IScriptContextOwner from browser impl
git-svn-id: svn://10.0.0.236/trunk@6058 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 04:47:14 +00:00
kipp%netscape.com
b30217fe4a Implement IScriptContextOwner API
git-svn-id: svn://10.0.0.236/trunk@6057 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 04:46:55 +00:00
kipp%netscape.com
72bc3d12af Added code (currently disabled) to setup the script context appropriately
git-svn-id: svn://10.0.0.236/trunk@6056 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 04:46:35 +00:00
cmanske%netscape.com
2a928c28d9 Added flag to signal editor when laying out images in Composer
git-svn-id: svn://10.0.0.236/trunk@6055 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 04:13:04 +00:00
ramiro%netscape.com
4f472ea5d9 Fix build bustage. Remove unused ",".
git-svn-id: svn://10.0.0.236/trunk@6053 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 04:01:14 +00:00
sar%netscape.com
c7b1990d86 adding mozilla/modules/plugin in preparation for OJI branch landing
git-svn-id: svn://10.0.0.236/trunk@6051 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 03:11:17 +00:00
kipp%netscape.com
5bcb76b2a7 Fixed unix build
git-svn-id: svn://10.0.0.236/trunk@6049 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 02:45:39 +00:00
leif
393e3ce985 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6048 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 02:43:28 +00:00
leif
48c89df8e2 Added the MPL license to all files.
git-svn-id: svn://10.0.0.236/trunk@6047 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 02:42:38 +00:00
cmanske%netscape.com
bfa2b247ce Fixed problem with loading images in Composer
git-svn-id: svn://10.0.0.236/trunk@6046 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 02:38:18 +00:00
leif
567b3713fa *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@6044 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 02:32:13 +00:00
danm%netscape.com
2712d45df7 fix leak in NET_FreeURLStruct r:gagan
git-svn-id: svn://10.0.0.236/trunk@6043 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 02:20:45 +00:00
akkana%netscape.com
ac2ab0818b Add new functionality for the new 5.0 table dialog.
Consolidate "new table" and "table properties" dialogs into one.
Includes massive move/redesign of code out of editordialogs.c
into new C++ class XFE_EditTableDialog.


git-svn-id: svn://10.0.0.236/trunk@6042 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 02:14:23 +00:00
akkana%netscape.com
0e1d664058 Improve table selection
git-svn-id: svn://10.0.0.236/trunk@6041 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 02:11:06 +00:00
cmanske%netscape.com
fc352cb59a Fixed SF1 bug 148158 as well as problems with loading images into an editor document
git-svn-id: svn://10.0.0.236/trunk@6040 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 01:59:47 +00:00
cmanske%netscape.com
52de04840b Removed clearing of is_new_document flag so images loaded into Composer do not kill the new doc state
git-svn-id: svn://10.0.0.236/trunk@6039 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 01:57:59 +00:00
cmanske%netscape.com
e543027dc6 Added use of flag in IL_GetImage to identify an Editor when loading images, and use of that flag in IL_ViewStream to do use IL_NewStream instead (fixes regresion bug)
git-svn-id: svn://10.0.0.236/trunk@6038 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 01:55:52 +00:00
valeski%netscape.com
9dd807b6d0 63313 - Bugsplat query page now loads faster. This was a problem with javascript pages. approved by don.
git-svn-id: svn://10.0.0.236/trunk@6037 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 01:53:10 +00:00
cmanske%netscape.com
7011559bb7 Added a comment to explain how Editor uses the owner_id field in URL_Struct
git-svn-id: svn://10.0.0.236/trunk@6036 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 01:44:25 +00:00
kipp%netscape.com
fbfcf0a2e5 Enabled the js-console accelerators
git-svn-id: svn://10.0.0.236/trunk@6035 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 01:22:52 +00:00
kipp%netscape.com
a89427d59d byebye
git-svn-id: svn://10.0.0.236/trunk@6034 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 01:04:09 +00:00
kipp%netscape.com
4d83794d2a Fixed unix porting bugs
git-svn-id: svn://10.0.0.236/trunk@6032 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 01:03:28 +00:00
kipp%netscape.com
c3fd39a44f Spanked to get most of the menus working again
git-svn-id: svn://10.0.0.236/trunk@6030 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 00:48:35 +00:00
kipp%netscape.com
a5f64bdca9 Added two getters: GetBounds and GetWebShell
git-svn-id: svn://10.0.0.236/trunk@6029 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 00:48:10 +00:00
despotdaemon%netscape.com
3f30d6ac28 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6028 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 00:00:01 +00:00
despotdaemon%netscape.com
91510a3429 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@6027 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 23:59:17 +00:00
troy%netscape.com
5e3cee8013 Changed Paint() to use the parent frame's color style struct. We can't use our
color style struct because we're a pseudo frame and so the style system forces
us to have a transparent background


git-svn-id: svn://10.0.0.236/trunk@6026 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 23:58:00 +00:00
troy%netscape.com
6b933cd127 Changed Paint() to render the background if there is one
git-svn-id: svn://10.0.0.236/trunk@6025 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 23:56:17 +00:00
troy%netscape.com
690770da55 Changed SetAttribute() to call nsTableTagContent base class version so that
processing of things like "style=" happens


git-svn-id: svn://10.0.0.236/trunk@6024 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 23:50:46 +00:00
troy%netscape.com
3771cc3a17 Changed MapAttributesInto() to call MapBackgroundAttributesInto() so that
the bgcolor attribute is properly handled


git-svn-id: svn://10.0.0.236/trunk@6022 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 23:30:49 +00:00
spider%netscape.com
7bbcb73e57 Fix for latest cvs server move
git-svn-id: svn://10.0.0.236/trunk@6021 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 23:21:01 +00:00
scullin%netscape.com
3ace1794b6 Fix release mode.
git-svn-id: svn://10.0.0.236/trunk@6013 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 22:45:35 +00:00
kipp%netscape.com
187754c11c Resurrected DoDebugSave method
git-svn-id: svn://10.0.0.236/trunk@6012 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 22:22:13 +00:00
kipp%netscape.com
475c61f41a Updated to match revised menu api
git-svn-id: svn://10.0.0.236/trunk@6011 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 22:16:26 +00:00
kipp%netscape.com
97ea75bbb4 Ported to unix
git-svn-id: svn://10.0.0.236/trunk@6010 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 22:13:11 +00:00
kipp%netscape.com
43a309b147 new
git-svn-id: svn://10.0.0.236/trunk@6007 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 22:11:02 +00:00
dfm%netscape.com
37263592a8 Fixed morse's typo.
git-svn-id: svn://10.0.0.236/trunk@6000 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 21:50:15 +00:00
kipp%netscape.com
483e5874f6 Switch to new source files
git-svn-id: svn://10.0.0.236/trunk@5997 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 21:17:13 +00:00
kipp%netscape.com
a8d837c019 Implement a pile of debug methods and menu code; abstract out menu bar creation into a native subclass
git-svn-id: svn://10.0.0.236/trunk@5996 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 21:16:38 +00:00
kipp%netscape.com
c3a8f7b177 Get pref-id's properly setup
git-svn-id: svn://10.0.0.236/trunk@5995 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 21:16:12 +00:00
kipp%netscape.com
7f7af5b81b new
git-svn-id: svn://10.0.0.236/trunk@5994 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 21:15:52 +00:00
kipp%netscape.com
332e9db934 Added chrome control for the menu bar
git-svn-id: svn://10.0.0.236/trunk@5993 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 21:15:21 +00:00
morse%netscape.com
342e6afcee Landing privacy features (con't)
git-svn-id: svn://10.0.0.236/trunk@5992 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 21:13:22 +00:00
dfm%netscape.com
52c72a5e73 Fixed winfe bustage, morse's whitespace clobber..
git-svn-id: svn://10.0.0.236/trunk@5991 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 21:13:09 +00:00
robinf%netscape.com
7deafae3d2 added thes files for our dialup builds
git-svn-id: svn://10.0.0.236/trunk@5990 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 21:11:08 +00:00
timm%netscape.com
88dd91fc24 fix path to routine to append last slash
git-svn-id: svn://10.0.0.236/trunk@5989 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 21:04:08 +00:00
robinf%netscape.com
2a4aa4df97 merging help files for generic dialup build
git-svn-id: svn://10.0.0.236/trunk@5987 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 20:57:38 +00:00
robinf%netscape.com
35a5b775f2 Checing in the generic dialup readme
git-svn-id: svn://10.0.0.236/trunk@5985 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 20:52:28 +00:00
dcone%netscape.com
12f3018569 removed nsDomnodeiterator.cpp, nsHTMLTagContent.cpp
git-svn-id: svn://10.0.0.236/trunk@5984 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 20:52:14 +00:00
dcone%netscape.com
cab1c3b003 removed nsJSAttributeList.cpp, nsJSNodeIterator.cpp, nsJSDocumentContext.cpp, nsJSTreeIterator.cpp
git-svn-id: svn://10.0.0.236/trunk@5983 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 20:50:44 +00:00
robinf%netscape.com
1cc1c1b96f checking in the version that turns off billing and dialing screesn
git-svn-id: svn://10.0.0.236/trunk@5982 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 20:50:12 +00:00
robinf%netscape.com
f641426a5f checking in the de-prestonized versions of these files which are needed for the dialup version.
git-svn-id: svn://10.0.0.236/trunk@5981 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 20:48:58 +00:00
morse%netscape.com
fca0b01d09 temporary hack to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@5980 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 20:47:32 +00:00
dcone%netscape.com
3eab84b56a fixed so the fstream include is added.
git-svn-id: svn://10.0.0.236/trunk@5979 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 20:47:07 +00:00
dcone%netscape.com
3ae6209204 removed nsIHtmlcontentsink.cpp from project
git-svn-id: svn://10.0.0.236/trunk@5978 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 20:45:56 +00:00
dcone%netscape.com
750c3136b1 Removed nsIWebwidget.h and nsIDocumentWidget.h from the
file for building dist


git-svn-id: svn://10.0.0.236/trunk@5977 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 20:34:36 +00:00
karnaze%netscape.com
201c38b1f8 initial support for <frameset> <frame> in content sink
git-svn-id: svn://10.0.0.236/trunk@5969 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 18:52:40 +00:00
dfm%netscape.com
3d17427a85 Landed privacy features from PRIVACY_BRANCH_070898; Transaction Receipts
and Privacy Policies are still switched off, so mozilla/privacy doesn't
build by default.


git-svn-id: svn://10.0.0.236/trunk@5968 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 18:40:09 +00:00
despotdaemon%netscape.com
95184a8af4 Pseudo-automatic update of changes made by radha@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5967 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 18:16:46 +00:00
saari%netscape.com
f0f8f6a60e Merging sfraser's MacMemAllocator changes from 4.5
git-svn-id: svn://10.0.0.236/trunk@5966 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 18:10:48 +00:00
despotdaemon%netscape.com
c75c1577ba Pseudo-automatic update of changes made by jdunn@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5965 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 17:47:07 +00:00
kipp%netscape.com
918f834845 Fixed Makefile
git-svn-id: svn://10.0.0.236/trunk@5963 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:38:04 +00:00
kipp%netscape.com
1cc17408d9 Added missing nsweb.h
git-svn-id: svn://10.0.0.236/trunk@5962 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:37:52 +00:00
kipp%netscape.com
507d263bab Moved nsBrowserWindow in
git-svn-id: svn://10.0.0.236/trunk@5961 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:19:22 +00:00
kipp%netscape.com
58c3ef71e3 Removed factory proc
git-svn-id: svn://10.0.0.236/trunk@5960 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:19:00 +00:00
kipp%netscape.com
6b7723a631 Moved nsBrowserWindow out
git-svn-id: svn://10.0.0.236/trunk@5959 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:18:42 +00:00
pinkerton%netscape.com
e961d2ef86 Export right symbols for mac. THis will get whomped by RDF_BRANCH landing.
git-svn-id: svn://10.0.0.236/trunk@5958 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:18:00 +00:00
pinkerton%netscape.com
fe2a29a909 Util routines for setting fg/bg colors in presence (or absence) of HT properties and appearance manager. Also checking with HT to see if it wants to handle loading urls.
git-svn-id: svn://10.0.0.236/trunk@5957 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:13:06 +00:00
pinkerton%netscape.com
359e02bf13 Call HT before loading urls. Handle about:XXX.gif for Aurora gifs.
git-svn-id: svn://10.0.0.236/trunk@5956 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:11:54 +00:00
pinkerton%netscape.com
ce545afbea Adding Tang resource id's for aurora gifs.
git-svn-id: svn://10.0.0.236/trunk@5955 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:11:23 +00:00
pinkerton%netscape.com
87feb577c8 Re-added CTargetFramer, as it got lost somewhere.
git-svn-id: svn://10.0.0.236/trunk@5954 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:11:06 +00:00
pinkerton%netscape.com
2f006739cf lots of stuff that was private is now public to support drawing of gifs anywhere we want, not just in html views.
git-svn-id: svn://10.0.0.236/trunk@5953 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:10:48 +00:00
pinkerton%netscape.com
d569f4f205 Fix so that images can be displayed in places other than HTML views.
git-svn-id: svn://10.0.0.236/trunk@5952 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:10:21 +00:00
pinkerton%netscape.com
fc92503ee8 Add aurora gifs as 'Tang' resources.
git-svn-id: svn://10.0.0.236/trunk@5951 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:09:57 +00:00
pinkerton%netscape.com
901e2ae790 turn on Hyatt's hack for chrome images on mac. Still off on X.
git-svn-id: svn://10.0.0.236/trunk@5950 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:09:34 +00:00
pinkerton%netscape.com
027c9ef5ae Lots o' utility routines, some new, some code moved from other parts of the app. Things like building and extracting the most common flavor data types.
git-svn-id: svn://10.0.0.236/trunk@5949 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:09:05 +00:00
pinkerton%netscape.com
4eec5875b6 Preliminary stuff for turning off drag feedback if container is sorted. Bug fixes for dropping at end of list. Handle tabbing into in Pro2 way.
git-svn-id: svn://10.0.0.236/trunk@5948 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:08:17 +00:00
pinkerton%netscape.com
1b74cc2212 Bug fixes, use gifs and bg and icons, fix tabbing problems, rearchitect FE data for views.
git-svn-id: svn://10.0.0.236/trunk@5947 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:07:09 +00:00
pinkerton%netscape.com
afff616187 use more stuff in CURLDragHelper.
git-svn-id: svn://10.0.0.236/trunk@5946 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:06:03 +00:00
pinkerton%netscape.com
6d2613cf62 Added parameter so data can be passed in before drag for bookmarks flavor. Needed so Aurora can work.
git-svn-id: svn://10.0.0.236/trunk@5945 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:05:38 +00:00
terry%netscape.com
6267ed2bcb Don't exec mail any more.
git-svn-id: svn://10.0.0.236/trunk@5944 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:05:37 +00:00
pinkerton%netscape.com
53a3c681fb Pass correct data to HT on drag and drop, fixes in d&d, check with HT before loading URL.
git-svn-id: svn://10.0.0.236/trunk@5943 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:04:52 +00:00
pinkerton%netscape.com
61c42a6a49 Draw using HT properties for colors or bg gif.
git-svn-id: svn://10.0.0.236/trunk@5942 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:04:20 +00:00
pinkerton%netscape.com
1a325a3d4f Draw selector images using gifs.
git-svn-id: svn://10.0.0.236/trunk@5941 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:03:59 +00:00
pinkerton%netscape.com
d74acc7b1e Added CImageIconMixin, CIconCache, CIconContext. Removed CGuidePopup.
git-svn-id: svn://10.0.0.236/trunk@5940 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:03:16 +00:00
pinkerton%netscape.com
e7a4fcd2ae Drag and drop rewrites (pass valid data to HT), draw using HT properties for colors, etc. BG can now be a gif. Check with HT before loading url.
git-svn-id: svn://10.0.0.236/trunk@5939 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:02:14 +00:00
pinkerton%netscape.com
6ccd891149 No longer an LTabGroup so tabbing works again, can now drag text out of the window, double-click words to select them. Added ScrollBits scrolling fix to make scrolling smooth again.
git-svn-id: svn://10.0.0.236/trunk@5938 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 16:01:13 +00:00
pinkerton%netscape.com
0604784464 Can now double-click on words to select them and drag selected text out of the browser window.
git-svn-id: svn://10.0.0.236/trunk@5937 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 15:59:42 +00:00
pinkerton%netscape.com
c38f543d15 expose HT_Pane to those who may need it.
git-svn-id: svn://10.0.0.236/trunk@5936 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 15:59:11 +00:00
pinkerton%netscape.com
ebbe807887 Check with HT before loading URL.
git-svn-id: svn://10.0.0.236/trunk@5935 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 15:58:48 +00:00
pinkerton%netscape.com
bcafc84299 Add CTargetFramer (which we lost somehow) and remove the guide popup button.
git-svn-id: svn://10.0.0.236/trunk@5934 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 15:57:47 +00:00
pinkerton%netscape.com
2fcda19cbc First Checked In.
git-svn-id: svn://10.0.0.236/trunk@5933 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 15:55:36 +00:00
spider%netscape.com
e9f390557c Re-Exporting CNavDTD class, until a *better* solution is implemented...
git-svn-id: svn://10.0.0.236/trunk@5932 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 15:39:48 +00:00
ramiro%netscape.com
44638680ff Use -r instead of -x to test for existence of libs - since the permissions
are not always 755.
Thanks to "Gábor Lipták" <gliptak@hotmail.com> for poiting this out.


git-svn-id: svn://10.0.0.236/trunk@5931 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-20 08:55:30 +00:00
troy%netscape.com
484403779a Changed it so image frames don't have a view, and turned on transparent
images


git-svn-id: svn://10.0.0.236/trunk@5930 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 05:48:46 +00:00
kipp%netscape.com
c35f90152c Added a reminder comment
git-svn-id: svn://10.0.0.236/trunk@5929 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 04:07:59 +00:00
kipp%netscape.com
dceaa480b6 Implement
git-svn-id: svn://10.0.0.236/trunk@5928 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 04:07:44 +00:00
kipp%netscape.com
ea492cae9b Upgraded API
git-svn-id: svn://10.0.0.236/trunk@5927 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 04:07:32 +00:00
kipp%netscape.com
7f47a93775 Removed registry init into a seperate file; use browser window instead of old code
git-svn-id: svn://10.0.0.236/trunk@5926 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 04:07:20 +00:00
kipp%netscape.com
9055c4fbf5 Moved windows init into winmain
git-svn-id: svn://10.0.0.236/trunk@5925 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 04:06:47 +00:00
kipp%netscape.com
c1e243702e Build new source
git-svn-id: svn://10.0.0.236/trunk@5924 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 04:06:25 +00:00
kipp%netscape.com
98981d49fb new
git-svn-id: svn://10.0.0.236/trunk@5923 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 04:06:14 +00:00
kipp%netscape.com
8926d26f0c Fixed ommision of include of nscore.h
git-svn-id: svn://10.0.0.236/trunk@5922 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 02:03:59 +00:00
kipp%netscape.com
797eee3958 Allocate some IIDs
git-svn-id: svn://10.0.0.236/trunk@5921 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 01:19:30 +00:00
kipp%netscape.com
4a74506b36 Whacked to use new pluggable throbber
git-svn-id: svn://10.0.0.236/trunk@5920 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 01:18:57 +00:00
kipp%netscape.com
4c4eb24536 Implement new title API's; normalized factory code
git-svn-id: svn://10.0.0.236/trunk@5919 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 01:18:40 +00:00
kipp%netscape.com
c4f7797c4b Normalized factory code
git-svn-id: svn://10.0.0.236/trunk@5918 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 01:18:15 +00:00
kipp%netscape.com
4be9528519 Added new files
git-svn-id: svn://10.0.0.236/trunk@5917 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 01:17:50 +00:00
kipp%netscape.com
1421902e3a Added title controls; normalized factory API; added GetRootWebShell; removed 2nd arg from AddChild
git-svn-id: svn://10.0.0.236/trunk@5916 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 01:17:39 +00:00
kipp%netscape.com
42b52ac30b Updated copyright and IID; removed useless Init method
git-svn-id: svn://10.0.0.236/trunk@5915 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 01:17:09 +00:00
kipp%netscape.com
b0aa64a6c6 Normalized factory api
git-svn-id: svn://10.0.0.236/trunk@5914 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 01:16:46 +00:00
kipp%netscape.com
bf301b12e7 Export new files
git-svn-id: svn://10.0.0.236/trunk@5913 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 01:15:26 +00:00
kipp%netscape.com
926e41da39 Pass title to web shell if we are wrapped in one
git-svn-id: svn://10.0.0.236/trunk@5912 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 01:14:53 +00:00
kipp%netscape.com
3d7769be04 Removed SetTitle
git-svn-id: svn://10.0.0.236/trunk@5911 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 01:14:21 +00:00
kipp%netscape.com
64f17cd3d4 new
git-svn-id: svn://10.0.0.236/trunk@5910 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-19 01:13:06 +00:00
kipp%netscape.com
f7f11b5f3f Updated exports list
git-svn-id: svn://10.0.0.236/trunk@5909 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 22:01:25 +00:00
kipp%netscape.com
70e5a7a7c2 Allocated some IID's
git-svn-id: svn://10.0.0.236/trunk@5908 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 21:51:28 +00:00
kipp%netscape.com
a3d19a5501 Spanked to use web-shell API's
git-svn-id: svn://10.0.0.236/trunk@5907 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 21:51:03 +00:00
kipp%netscape.com
e67298a126 Updated build list
git-svn-id: svn://10.0.0.236/trunk@5906 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 21:50:41 +00:00
kipp%netscape.com
63f46c6f39 Updated to use revised API's; pass UA style sheet to nsIDocumentViewer instance
git-svn-id: svn://10.0.0.236/trunk@5905 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 21:50:29 +00:00
kipp%netscape.com
a5f12624a7 obsoleted
git-svn-id: svn://10.0.0.236/trunk@5904 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 21:49:35 +00:00
kipp%netscape.com
e1d02e5761 Updated exports list
git-svn-id: svn://10.0.0.236/trunk@5903 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 21:49:11 +00:00
kipp%netscape.com
73efbb3649 Decoupled from web widget
git-svn-id: svn://10.0.0.236/trunk@5902 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 21:49:03 +00:00
kipp%netscape.com
542f84d4a3 Seperated out nsIViewerContainer and nsIContentViewer API's
git-svn-id: svn://10.0.0.236/trunk@5901 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 21:48:47 +00:00
kipp%netscape.com
a9a829dd34 Obsolete
git-svn-id: svn://10.0.0.236/trunk@5900 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 21:48:26 +00:00
kipp%netscape.com
f2faff6fb7 Port to new nsIWebShell and related API's
git-svn-id: svn://10.0.0.236/trunk@5899 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 21:47:56 +00:00
kipp%netscape.com
67fd58be8c Added missing includes
git-svn-id: svn://10.0.0.236/trunk@5898 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 21:46:51 +00:00
kipp%netscape.com
33803d96e8 Added AddFloater method (not yet used)
git-svn-id: svn://10.0.0.236/trunk@5897 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 21:45:40 +00:00
kipp%netscape.com
3f5bbb2c14 Find floaters after placing line so that floater list is kept up to date
git-svn-id: svn://10.0.0.236/trunk@5896 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 21:45:17 +00:00
kipp%netscape.com
11356346b9 Disabled selection noise with an ifdef
git-svn-id: svn://10.0.0.236/trunk@5895 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 21:44:11 +00:00
kipp%netscape.com
a0cb50b4de new
git-svn-id: svn://10.0.0.236/trunk@5894 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 21:43:02 +00:00
rods%netscape.com
5ccadb7f78 made changes to selection for debugging
git-svn-id: svn://10.0.0.236/trunk@5893 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 18:19:41 +00:00
rods%netscape.com
b43d68f5f5 changed GetNextContent to pas back next leaf node content
git-svn-id: svn://10.0.0.236/trunk@5892 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 18:18:53 +00:00
rods%netscape.com
b70f709081 made minor changes to selection
git-svn-id: svn://10.0.0.236/trunk@5891 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 18:18:20 +00:00
rods%netscape.com
499d780d00 exported nsSelectionPoint.h
git-svn-id: svn://10.0.0.236/trunk@5890 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 18:17:08 +00:00
troy%netscape.com
ae75899844 Eliminated some unnecessary image rendering
git-svn-id: svn://10.0.0.236/trunk@5889 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 15:26:03 +00:00
rods%netscape.com
088defba07 turned off selection
git-svn-id: svn://10.0.0.236/trunk@5888 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 14:03:43 +00:00
ramiro%netscape.com
4fc83a8447 Fix a dumbass typo.
git-svn-id: svn://10.0.0.236/trunk@5887 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 07:42:15 +00:00
ramiro%netscape.com
6d5ebec537 Remove circular dependancy on config/config.mk from config/mkdepend.
git-svn-id: svn://10.0.0.236/trunk@5886 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 07:38:13 +00:00
ramiro%netscape.com
f9e0ae9815 Add x11 include flags so the motif detection can work on plaforms that dont
have /usr/include/X11 links.  Like solaris, for instance.


git-svn-id: svn://10.0.0.236/trunk@5884 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 06:55:12 +00:00
ramiro%netscape.com
44b495a951 Add -xif, --set-x11-include-flags - Set X11 include flags.
git-svn-id: svn://10.0.0.236/trunk@5883 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 06:52:27 +00:00
ramiro%netscape.com
e4d2d9db4f Look for include/X11/Xlib.h instead as well. Safer Xlib detection.
git-svn-id: svn://10.0.0.236/trunk@5882 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 06:32:55 +00:00
ramiro%netscape.com
552f7e970b Dont use "function" since it breaks on some bourne shells.
git-svn-id: svn://10.0.0.236/trunk@5881 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 06:28:19 +00:00
ramiro%netscape.com
793c609e30 Remove old motif.mk hack. No longer needed. See config/mkdepend for a better
solution.


git-svn-id: svn://10.0.0.236/trunk@5880 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 05:27:15 +00:00
ramiro%netscape.com
ca467285d4 Remove old motif.mk hack.
git-svn-id: svn://10.0.0.236/trunk@5879 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 05:15:49 +00:00
troy%netscape.com
e67414d867 Added some comments clarifying that the value returned are in
device units (pixels)


git-svn-id: svn://10.0.0.236/trunk@5878 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 03:52:37 +00:00
ramiro%netscape.com
cb4b5239a1 Adding support for detecting various platform specific libraries, paths and
other things (anything, really).

Should make building mozilla on diverse platforms such as linux/lesstif
much easier.

Currently Linux is the only platform that supports detection.

The new detection mechanism is very scaleable.  We will be able to add support
for other operating systems as well as more permutations of linux/arch/toolkit.

It has received the Reverend Ostrom blessing of approval.

So the lesstif people can stop bitching.  thank you for the feedback ;-)


git-svn-id: svn://10.0.0.236/trunk@5877 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 03:34:56 +00:00
ramiro%netscape.com
3b55437db6 Adding support for detecting various platform specific libraries, paths and
other things (anything, really).

Should make building mozilla on diverse platforms such as linux/lesstif
much easier.

Currently Linux is the only platform that supports detection.

The new detection mechanism is very scaleable.  We will be able to add support
for other operating systems as well as more permutations of linux/arch/toolkit.

It has received the Reverend Ostrom blessing of approval.

So the lesstif people can stop bitching.  thank you for the feedback ;-)

Notice how much simpler the Linux chunk of the xfe Makfile has become.


git-svn-id: svn://10.0.0.236/trunk@5876 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 03:34:26 +00:00
ramiro%netscape.com
ead3497f44 Adding support for detecting various platform specific libraries, paths and
other things (anything, really).

Should make building mozilla on diverse platforms such as linux/lesstif
much easier.

Currently Linux is the only platform that supports detection.

The new detection mechanism is very scaleable.  We will be able to add support
for other operating systems as well as more permutations of linux/arch/toolkit.

It has received the Reverend Ostrom blessing of approval.

So the lesstif people can stop bitching.  thank you for the feedback ;-)

The shell script detection magic is very modular and can be easily shared
with other build schemes (autoconf for instance).


git-svn-id: svn://10.0.0.236/trunk@5875 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 03:33:07 +00:00
ramiro%netscape.com
8493233a99 Adding support for detecting various platform specific libraries, paths and
other things (anything, really).

Should make building mozilla on diverse platforms such as linux/lesstif
much easier.

Currently Linux is the only platform that supports detection.

The new detection mechanism is very scaleable.  We will be able to add support
for other operating systems as well as more permutations of linux/arch/toolkit.

It has received the Reverend Ostrom blessing of approval.

So the lesstif people can stop bitching.  thank you for the feedback ;-)


git-svn-id: svn://10.0.0.236/trunk@5874 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 03:26:34 +00:00
ramiro%netscape.com
7975e66ba8 Added mkdetect sub directory to mozilla/config.
git-svn-id: svn://10.0.0.236/trunk@5873 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 03:22:00 +00:00
kipp%netscape.com
7b704db54c Fixed a regression: we were eating the character following a bare ampersand that isn't an entity; in addition tables were being kicked out of paragraphs which is no-no
git-svn-id: svn://10.0.0.236/trunk@5869 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 01:35:45 +00:00
kipp%netscape.com
97c2d3d296 Fixed crasher bug
git-svn-id: svn://10.0.0.236/trunk@5867 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 01:06:30 +00:00
donm%netscape.com
0698bcec4d added NPL. approved by: briano
git-svn-id: svn://10.0.0.236/trunk@5866 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 00:29:29 +00:00
despotdaemon%netscape.com
8536c4fcdd Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@5865 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-18 00:27:36 +00:00
michaelp%netscape.com
cccd011826 the throbbing N lives. yuck.
git-svn-id: svn://10.0.0.236/trunk@5862 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 23:48:58 +00:00
ftang%netscape.com
ef73aa833d add EUR for &EURO; ascii fallback
git-svn-id: svn://10.0.0.236/trunk@5861 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 23:46:26 +00:00
ftang%netscape.com
da6158e6bc Add several unicode tables
Fix the problem in cp1251/2
Add euro sign into mac unicode table


git-svn-id: svn://10.0.0.236/trunk@5860 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 23:45:44 +00:00
despotdaemon%netscape.com
da4b03c81d Pseudo-automatic update of changes made by clu@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5859 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 23:43:54 +00:00
despotdaemon%netscape.com
4a9f595d63 Pseudo-automatic update of changes made by clu@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5858 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 23:41:33 +00:00
wtc%netscape.com
d9b16d723f Bugzilla bug #263: Merged the NetBSD port of NSPR contributed by
Frank van der Linden <frank@wins.uva.nl>.


git-svn-id: svn://10.0.0.236/trunk@5857 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 23:33:36 +00:00
kostello%netscape.com
165a6f7dd0 Changed name of method from ToXIF to CreateXIF
git-svn-id: svn://10.0.0.236/trunk@5856 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 23:02:53 +00:00
kostello%netscape.com
8a1b7e11ba 1) Move the CSS dependent methods out of nsDocument and placed them
in a new class nsMarkupDocument. The point of nsMarkupDocument is
to hold methods which are common to HTML and XML but not relevant
to the base nsDocument class.

2) Added Selection support methods for Rod.

3) Added LookupProperty to nsCSSProperty:
Given a property ID and Property Index returns back the string representation
of the property. This was need to convert CSSValues back to strings for saving.
TODO: Make sure that our URL Information stored in a CSSDeclaration contains
enough information to return it to it's original form on output.


git-svn-id: svn://10.0.0.236/trunk@5855 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 23:00:54 +00:00
michaelp%netscape.com
a9572472c4 throbber now has 14 frames and works as a button.
git-svn-id: svn://10.0.0.236/trunk@5853 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 22:58:11 +00:00
kipp%netscape.com
89c8f4ba2a Removed redundant DidReflow's
git-svn-id: svn://10.0.0.236/trunk@5851 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 21:50:43 +00:00
troy%netscape.com
54fb369e34 Fixed DuplicateImage() code to copy alpha bits properly
git-svn-id: svn://10.0.0.236/trunk@5850 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 21:37:55 +00:00
kipp%netscape.com
e879a5e8b9 Fixed nesting headings in lists bug
git-svn-id: svn://10.0.0.236/trunk@5849 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 21:27:42 +00:00
mccabe%netscape.com
2320e36eef added some more #if JS_HAS_SHARP_VARS checks so towards compiliation
under version 120 in jsconfig.h.  Other fixes needed, though...


git-svn-id: svn://10.0.0.236/trunk@5848 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 21:18:41 +00:00
kipp%netscape.com
530abde14f Implement dom access to the SRC attribute
git-svn-id: svn://10.0.0.236/trunk@5847 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 21:16:43 +00:00
kipp%netscape.com
2d1f589401 new
git-svn-id: svn://10.0.0.236/trunk@5846 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 21:16:18 +00:00
despotdaemon%netscape.com
5f1491d0a6 Pseudo-automatic update of changes made by cmanske@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5845 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 21:09:57 +00:00
despotdaemon%netscape.com
f3a23f8ca2 Pseudo-automatic update of changes made by ltabb@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5843 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 21:07:23 +00:00
buster%netscape.com
2d3b42883a fixed a space leak/logic error handling colspans
added backwards compatibility for percent width tables inside of auto width tables (see http://webreview.com/wr/pub  warning:  you'll have to look at a local copy until
Troy/Vidur/somebody fixes an image problem.)


git-svn-id: svn://10.0.0.236/trunk@5842 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 21:02:28 +00:00
despotdaemon%netscape.com
6ab6eefc24 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5841 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 21:01:11 +00:00
despotdaemon%netscape.com
8caad06268 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5840 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 20:58:17 +00:00
mccabe%netscape.com
005974ff02 Fixed #ifdef to #if for various features defined in jsconfig.h -
JS_HAS_IN_OPERATOR, and JS_HAS_INITIALIZERS.


git-svn-id: svn://10.0.0.236/trunk@5839 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 20:46:12 +00:00
despotdaemon%netscape.com
d2b73548fa Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5833 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 19:33:53 +00:00
despotdaemon%netscape.com
dd442f6895 Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5832 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 19:33:18 +00:00
joki%netscape.com
479fac2162 Fix notation on key event enum values.
git-svn-id: svn://10.0.0.236/trunk@5831 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 19:25:14 +00:00
mccabe%netscape.com
beb8b2b683 Fixed interpretation of JSOP_IN to match our ECMA proposal - throw a
runtime error if the RHS is not an object.


git-svn-id: svn://10.0.0.236/trunk@5830 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 19:10:46 +00:00
kipp%netscape.com
4d15ea17d4 get dom document directly instead of from defunct web-widget api
git-svn-id: svn://10.0.0.236/trunk@5829 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 18:14:56 +00:00
kipp%netscape.com
5211cc650a Only break from next-in-flow when we have a next-in-flow
git-svn-id: svn://10.0.0.236/trunk@5828 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 18:14:23 +00:00
scullin%netscape.com
5758ee1ca9 Moved from branch
git-svn-id: svn://10.0.0.236/trunk@5827 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 18:07:21 +00:00
kipp%netscape.com
373f9cfa70 Implement debug methods in nsViewer not in WindowData or WebWidget
git-svn-id: svn://10.0.0.236/trunk@5826 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 17:55:47 +00:00
kipp%netscape.com
13e95eaebb Added GetContentViewer API; removed debug dump methods
git-svn-id: svn://10.0.0.236/trunk@5825 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 17:55:21 +00:00
kipp%netscape.com
928cbbee13 Removed debug dump methods
git-svn-id: svn://10.0.0.236/trunk@5824 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 17:55:00 +00:00
kipp%netscape.com
37c51a47ec Init unintialized variable
git-svn-id: svn://10.0.0.236/trunk@5823 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 17:54:46 +00:00
buster%netscape.com
2280d3dcab fixed table maxElementSize
git-svn-id: svn://10.0.0.236/trunk@5821 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 17:51:55 +00:00
buster%netscape.com
8928761040 we now allow empty rows
git-svn-id: svn://10.0.0.236/trunk@5820 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 17:51:43 +00:00
scullin%netscape.com
a75d8a4287 Fixed odd 24 bit gamma problem where gamme correction was being applied
in the reverse direction pixels were coming in, resulting in jpgs
being only half gamma corrected.


git-svn-id: svn://10.0.0.236/trunk@5818 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 17:35:22 +00:00
troy%netscape.com
409c3597f9 Changed array of points to be a const for DrawPolygon() and FillPolygon()
git-svn-id: svn://10.0.0.236/trunk@5817 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 17:32:53 +00:00
troy%netscape.com
8afd0cc8f1 Added DrawPolyline
git-svn-id: svn://10.0.0.236/trunk@5816 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 17:26:21 +00:00
leaf%mozilla.org
f3d165b58d added bdate.c
git-svn-id: svn://10.0.0.236/trunk@5815 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 17:24:13 +00:00
despotdaemon%netscape.com
ad7faa941a Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@5814 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 17:22:32 +00:00
troy%netscape.com
a03f7427cd Changed to use MaskBlt() under NT when rendering a transparent image
git-svn-id: svn://10.0.0.236/trunk@5813 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 16:50:32 +00:00
despotdaemon%netscape.com
e922be9270 Pseudo-automatic update of changes made by dionisio@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5812 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 16:44:09 +00:00
kipp%netscape.com
cac20d9639 Don't create new frames when a continuation is being reflowed for the first time
git-svn-id: svn://10.0.0.236/trunk@5811 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 16:16:19 +00:00
kipp%netscape.com
79338bbe55 Removed doc-observer LoadURL method and fixedup progress printf's and start throbber at a better time
git-svn-id: svn://10.0.0.236/trunk@5810 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 15:30:59 +00:00
joki%netscape.com
19e7899868 More of the fixe for IRIX weirdness on enums in switches
git-svn-id: svn://10.0.0.236/trunk@5809 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 07:36:50 +00:00
joki%netscape.com
06c8df51e8 Adding JS event handler test
git-svn-id: svn://10.0.0.236/trunk@5808 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 07:32:13 +00:00
joki%netscape.com
37ee608cea Fix IRIX issues with enums in case statements.
git-svn-id: svn://10.0.0.236/trunk@5807 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 07:10:43 +00:00
rpotts%netscape.com
40c0155b10 Split the Content viewer out of the WebWidget. The WebWidget is now a ContentViewer Container (supporting the nsIViewerContainer interface)...
git-svn-id: svn://10.0.0.236/trunk@5806 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 06:32:39 +00:00
rpotts%netscape.com
e223754865 Split the Content viewer out of the WebWidget. The WebWidget is now a ContentViewer Container (supporting the nsIViewerContainer interface)...nsHTMLDocument.h
git-svn-id: svn://10.0.0.236/trunk@5805 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 06:30:00 +00:00
rpotts%netscape.com
9307060f24 Added XXX comment to a particularly nasty piece of code...
git-svn-id: svn://10.0.0.236/trunk@5804 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 06:27:37 +00:00
joki%netscape.com
8608c3d067 Change DIRS order to fix Unix build
git-svn-id: svn://10.0.0.236/trunk@5803 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 06:05:39 +00:00
peterl%netscape.com
7a6d281274 added comment support
git-svn-id: svn://10.0.0.236/trunk@5802 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 05:50:35 +00:00
peterl%netscape.com
fb2f836259 fixed @import parsing
rejected malformed id selectors
sync to declaration api change


git-svn-id: svn://10.0.0.236/trunk@5801 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 05:50:07 +00:00
peterl%netscape.com
19ed791fd0 fixed fixed font handling
git-svn-id: svn://10.0.0.236/trunk@5800 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 05:49:03 +00:00
peterl%netscape.com
22e8ae3d18 added fixed font support
better font size support


git-svn-id: svn://10.0.0.236/trunk@5799 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 05:46:12 +00:00
peterl%netscape.com
40d6b240c1 removed body & table default settings
changed heading sizes to absolute instead of length
removed form element font hacks


git-svn-id: svn://10.0.0.236/trunk@5798 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 05:45:22 +00:00
peterl%netscape.com
9c49287aa8 better font support
git-svn-id: svn://10.0.0.236/trunk@5797 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 05:44:27 +00:00
peterl%netscape.com
d6c861205a added fixed pitch font
added default color support
added content pointer
added style reset for table cells & captions
added linear links


git-svn-id: svn://10.0.0.236/trunk@5796 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 05:43:31 +00:00
peterl%netscape.com
17dc517b22 added default fixed pitch font & default colors
git-svn-id: svn://10.0.0.236/trunk@5795 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 05:41:41 +00:00
peterl%netscape.com
f3fd63b465 added fixed pitch font, added content pointer
git-svn-id: svn://10.0.0.236/trunk@5794 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 05:41:02 +00:00
joki%netscape.com
cf64669911 Modifying editor code to correspond to slight change in event interfaces.
git-svn-id: svn://10.0.0.236/trunk@5793 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 04:53:01 +00:00
joki%netscape.com
20c386dbe1 Adding new DOM stuff to handle JS event handlers
git-svn-id: svn://10.0.0.236/trunk@5792 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 04:52:12 +00:00
troy%netscape.com
71a267fe0b Added a #if 0 around the code to turn on transparent images
git-svn-id: svn://10.0.0.236/trunk@5791 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 04:41:35 +00:00
joki%netscape.com
1077b49b25 Turning on scripts by default. This should just show an error or two
and not affect how pages show up.  If this proves not to be true we'll
turn it back off.  But it will help show where we are.


git-svn-id: svn://10.0.0.236/trunk@5790 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 04:38:47 +00:00
troy%netscape.com
cbcbc0a7f3 Added code to do bit-blt with a mask using a SRCAND of the mask
followed by a SRCPAINT of the image


git-svn-id: svn://10.0.0.236/trunk@5789 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 04:37:18 +00:00
joki%netscape.com
304337f7d9 Adding new events code to JS event handler support
git-svn-id: svn://10.0.0.236/trunk@5788 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 04:29:16 +00:00
troy%netscape.com
29a03e020f Sets the frame's view to indicate transparency if an image
associated with the frame is transparent


git-svn-id: svn://10.0.0.236/trunk@5787 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 03:43:46 +00:00
mccabe%netscape.com
24714d3ec7 Modified grammar for for/in and the in operator to exclude parsing the
'in' keyword as an operator in the init clause of for loops; this
disambiguates for/in loop parsing.  (Previously, there was some
treenode examination magic going on.)  Per recent ECMA submission.


git-svn-id: svn://10.0.0.236/trunk@5784 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 02:56:04 +00:00
rickg%netscape.com
d11a9fb1d2 major changes to nested tag handling
git-svn-id: svn://10.0.0.236/trunk@5783 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 02:35:23 +00:00
despotdaemon%netscape.com
1f306cc5bb Pseudo-automatic update of changes made by sudu@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5781 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 00:57:34 +00:00
despotdaemon%netscape.com
9ff7ccaeba Pseudo-automatic update of changes made by friedman@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5779 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 00:54:09 +00:00
pierre%netscape.com
d0fede611a #301870 (Subscribe dialog: crash on Cancel) call AttemptClose() instead of DoClose(). Full explanations in the bug report.
git-svn-id: svn://10.0.0.236/trunk@5777 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 00:49:17 +00:00
troy%netscape.com
8d0ccc1717 Some more work on transparent images
git-svn-id: svn://10.0.0.236/trunk@5774 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 00:09:19 +00:00
pierre%netscape.com
5d311683b9 Imported the Offline panels from Nova.
git-svn-id: svn://10.0.0.236/trunk@5773 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 00:02:23 +00:00
donm%netscape.com
f838bb527d update build number automatically. approved by: briano
git-svn-id: svn://10.0.0.236/trunk@5772 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:58:00 +00:00
donm%netscape.com
bd7a00be8d update build_number automatically. approved by: briano
git-svn-id: svn://10.0.0.236/trunk@5771 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:57:55 +00:00
spider%netscape.com
53921f2a93 Fix for throbber and offset painting
git-svn-id: svn://10.0.0.236/trunk@5769 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:50:29 +00:00
kmcclusk%netscape.com
d4808d75b9 Removed setting the boundary size in the resize callback directly. This fixes a bug
where the web widget window does not display initially.


git-svn-id: svn://10.0.0.236/trunk@5768 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:46:54 +00:00
despotdaemon%netscape.com
494fab093b Pseudo-automatic update of changes made by robinf@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5767 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:43:22 +00:00
vidur%netscape.com
5d9aef20dd Rotation test revamped
git-svn-id: svn://10.0.0.236/trunk@5766 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:39:08 +00:00
kipp%netscape.com
4782a5dbe9 Implement paint method
git-svn-id: svn://10.0.0.236/trunk@5765 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:32:04 +00:00
kipp%netscape.com
4e57742055 Size the placeholder differently when visually debugging; render it too:
git-svn-id: svn://10.0.0.236/trunk@5764 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:31:53 +00:00
kipp%netscape.com
4281a0c565 Tweaked assertions
git-svn-id: svn://10.0.0.236/trunk@5763 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:31:33 +00:00
kipp%netscape.com
668b4d6bc1 Remove descent from BR
git-svn-id: svn://10.0.0.236/trunk@5762 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:31:08 +00:00
kipp%netscape.com
c26cf113d8 Treat floating tables better; place below current line floaters BEFORE clearing over them for nav compatability
git-svn-id: svn://10.0.0.236/trunk@5761 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:30:49 +00:00
kipp%netscape.com
2c0cf21ae5 Build win-dns too
git-svn-id: svn://10.0.0.236/trunk@5760 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:29:34 +00:00
kipp%netscape.com
a4af6bed5c Enable async-dns for windows in the modular netlib
git-svn-id: svn://10.0.0.236/trunk@5759 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:29:18 +00:00
kipp%netscape.com
e3e84177aa updated a comment
git-svn-id: svn://10.0.0.236/trunk@5758 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:28:47 +00:00
kipp%netscape.com
ed43b74945 new
git-svn-id: svn://10.0.0.236/trunk@5757 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:28:21 +00:00
law%netscape.com
00acaea3c1 Fix for bug#301644; don't call SetContext if we ain't got no context
git-svn-id: svn://10.0.0.236/trunk@5756 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:26:42 +00:00
buster%netscape.com
5ec227a946 ua.css changed to match Nav default for cell padding
git-svn-id: svn://10.0.0.236/trunk@5755 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:24:53 +00:00
buster%netscape.com
6ec4e2be88 fundemental overhaul of the BasicTableLayoutStrategy
We now cache lots of useful info in the colframes
we now properly account for margins just as uniform cellspacing


git-svn-id: svn://10.0.0.236/trunk@5754 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:23:31 +00:00
despotdaemon%netscape.com
4988910e53 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5752 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 23:16:22 +00:00
kin%netscape.com
5a773283e4 Fix for 5.0 SF1in bug #301716: Table WIDTH parameter lost when loaded in
composer

Changed the type of the m_iWidth field of the CEditTableElement class from
XP_Bool to int32.

Reviewed by mjudge.


git-svn-id: svn://10.0.0.236/trunk@5751 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 22:19:46 +00:00
troy%netscape.com
0cd5c7bd84 Fixed Init() to compute the mask row size correctly
git-svn-id: svn://10.0.0.236/trunk@5750 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 22:18:36 +00:00
kipp%netscape.com
fe90cdc817 Fix incremental reflow bug
git-svn-id: svn://10.0.0.236/trunk@5748 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 22:15:02 +00:00
spider%netscape.com
4ab8449abd Performance Optimization: Do not create a writeable GC on every
instantiation of a rendering context.  Re-use the old one.


git-svn-id: svn://10.0.0.236/trunk@5743 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 22:02:36 +00:00
spider%netscape.com
331e3930f0 Optimization: Don't create a writeable GC for non-html drawing area
git-svn-id: svn://10.0.0.236/trunk@5741 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 22:01:47 +00:00
kin%netscape.com
46f318388c Fix for 5.0 SF1in bug #300809: Composer adds and deletes tags; bad image
display; HTML does not validate
There are actually 3 different bugs reported in 300809. This checkin fixes
the problem where the spacing and the image are too close: <P></P><BR><IMG>

edtbuf.cpp:
    - Modified CEditBuffer::ParseOpenTag() so we don't discard a <BR> that
      comes after a </P>.
    - Commented out code that adds a blank container before a table that
      follows a </P>.

edtele.cpp:
    - Modified CEditContainerElement::AdjustContainers() to add a blank
      container after a paragraph that ends with a </P> tag.


git-svn-id: svn://10.0.0.236/trunk@5740 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 21:56:54 +00:00
kmcclusk%netscape.com
a917ff1639 Removed commented out CreateWindow code
git-svn-id: svn://10.0.0.236/trunk@5739 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 21:43:15 +00:00
spider%netscape.com
34075737ce Do not reset the clip mask when drawing to onscreen buffer.
git-svn-id: svn://10.0.0.236/trunk@5738 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 21:36:39 +00:00
vidur%netscape.com
c5a2b254f9 Fixed memory leak in the case where a view already exists for a frame
git-svn-id: svn://10.0.0.236/trunk@5737 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 21:36:25 +00:00
despotdaemon%netscape.com
a04aa720a3 Pseudo-automatic update of changes made by hoi@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5736 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 21:33:38 +00:00
kmcclusk%netscape.com
bd5ae348cd Added code to set the XmNx and XmNy attributes in the resize method
git-svn-id: svn://10.0.0.236/trunk@5735 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 21:28:51 +00:00
despotdaemon%netscape.com
9ade803eca Pseudo-automatic update of changes made by petitta@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5734 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 21:15:54 +00:00
vidur%netscape.com
79d4e9fa87 Rotation test
git-svn-id: svn://10.0.0.236/trunk@5733 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 21:13:10 +00:00
despotdaemon%netscape.com
a4c716f7ce Pseudo-automatic update of changes made by rods@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5731 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 20:43:38 +00:00
despotdaemon%netscape.com
e4855f7555 Pseudo-automatic update of changes made by ricardob@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5730 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 20:37:32 +00:00
despotdaemon%netscape.com
97160293e8 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5729 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 20:34:37 +00:00
karnaze%netscape.com
39be1d110e revised hack for input controls
git-svn-id: svn://10.0.0.236/trunk@5726 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 19:50:03 +00:00
karnaze%netscape.com
e811304f41 removed hack for input, textarea
git-svn-id: svn://10.0.0.236/trunk@5725 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 19:48:37 +00:00
rickg%netscape.com
0affe937f5 fixed frameset/frames
git-svn-id: svn://10.0.0.236/trunk@5724 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 19:36:28 +00:00
jevering%netscape.com
5316230e71 null out related links item.
git-svn-id: svn://10.0.0.236/trunk@5722 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 19:00:11 +00:00
spider%netscape.com
31ac77393a Remove broken-image.gif from install of Makefile. It was moved
to layout/html...


git-svn-id: svn://10.0.0.236/trunk@5721 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 18:44:32 +00:00
troy%netscape.com
580a3e6cb1 Turned back on optimized images
git-svn-id: svn://10.0.0.236/trunk@5720 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 18:32:17 +00:00
kmcclusk%netscape.com
48931652e9 Removed #ifdef (!XP_PC) so the VIEWER_UI is defined for Unix
git-svn-id: svn://10.0.0.236/trunk@5719 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 18:24:56 +00:00
guha%netscape.com
086796380f Fix for bug reported by Mr. Hickman
git-svn-id: svn://10.0.0.236/trunk@5717 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 18:22:23 +00:00
kipp%netscape.com
cf157da228 Deal with lingering leaf content properly during append reflow
git-svn-id: svn://10.0.0.236/trunk@5716 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 18:19:53 +00:00
spider%netscape.com
4557a59f98 Update for new cvs server
git-svn-id: svn://10.0.0.236/trunk@5714 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 17:54:57 +00:00
despotdaemon%netscape.com
c097f3ec61 Pseudo-automatic update of changes made by waterson@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5713 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 17:54:15 +00:00
spider%netscape.com
b887e12c4f Misc fixes to build on Unix
git-svn-id: svn://10.0.0.236/trunk@5712 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 17:53:13 +00:00
kmcclusk%netscape.com
1efa86d99c Changed CopyOffScreenBits to copy from 0,0 instead of using the aBounds (x,y)
git-svn-id: svn://10.0.0.236/trunk@5711 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 17:40:47 +00:00
despotdaemon%netscape.com
7bd0b31bd7 Pseudo-automatic update of changes made by jfrancis@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5710 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 17:22:48 +00:00
troy%netscape.com
5017300bbc Fixed some more nsColor.h captitalization problems
git-svn-id: svn://10.0.0.236/trunk@5709 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 17:09:26 +00:00
nisheeth%netscape.com
d917a74fa9 Fix for bug #300477 to stabilize the table freeing changes. This fixes
the crash that occurred when you aborted the loading of the Netscape home
page.


git-svn-id: svn://10.0.0.236/trunk@5705 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 08:42:43 +00:00
ramiro%netscape.com
023a2014d0 Fix a broken INCLUDES += ./
Should be INCLUDES += -I./
Im not really sure why this is needed since the current mime is on the
REQUIRES list.  I had to fix this cause 'make depend' was breaking because
of the misplaced './'


git-svn-id: svn://10.0.0.236/trunk@5703 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 07:25:12 +00:00
mlm%netscape.com
3a7ff11ae4 Fix for bug 122467 (P0 SF1 In): Merge from 4.06 fix for 123836.
If two layers come in with the same name, rename the first one
to avoid a layer getting prematurely garbage collected or GC'd
twice.  Originally reviewed by brendan, chouck, and nisheeth.


git-svn-id: svn://10.0.0.236/trunk@5696 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 05:20:45 +00:00
kipp%netscape.com
3c214f8066 Fixed include
git-svn-id: svn://10.0.0.236/trunk@5694 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 05:04:01 +00:00
troy%netscape.com
7ff89af8f6 Changed background color to be a const
git-svn-id: svn://10.0.0.236/trunk@5693 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 04:51:12 +00:00
troy%netscape.com
1648bbf5e6 Added background color to image loading member functions
git-svn-id: svn://10.0.0.236/trunk@5690 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 04:34:59 +00:00
despotdaemon%netscape.com
d60a52e529 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5684 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 03:39:22 +00:00
gagan%netscape.com
0540d29926 Fix for #300506 and #300207.
git-svn-id: svn://10.0.0.236/trunk@5683 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 03:36:10 +00:00
gagan%netscape.com
f2ba7567ee Fix for bug #300506 and #300207. Incompatible cache formats between gromit and mozilla were causing the crash/asserts. Cleaning your cache before using this should fix everything.
git-svn-id: svn://10.0.0.236/trunk@5682 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 03:33:34 +00:00
troy%netscape.com
f6f52c69d7 Fixed some build bustage I introduced
git-svn-id: svn://10.0.0.236/trunk@5681 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 03:09:33 +00:00
troy%netscape.com
03207dfebf Changed image group GetImage() member function so the background color
is a pointer and not a color by value. This allows it to be NULL if the
caller wants a transparency mask to be created


git-svn-id: svn://10.0.0.236/trunk@5680 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 02:32:08 +00:00
kipp%netscape.com
78c22abb8f Setup includes for unix
git-svn-id: svn://10.0.0.236/trunk@5679 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 02:21:30 +00:00
kipp%netscape.com
efa878fad9 Fixed exporting makefile bug
git-svn-id: svn://10.0.0.236/trunk@5678 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 02:16:05 +00:00
despotdaemon%netscape.com
bc12ec3db4 Pseudo-automatic update of changes made by nisheeth@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5677 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 02:04:25 +00:00
despotdaemon%netscape.com
b19c26c59c Pseudo-automatic update of changes made by ltabb@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5676 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 01:55:28 +00:00
kipp%netscape.com
2a17e31d0d build workage for windows
git-svn-id: svn://10.0.0.236/trunk@5675 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 01:53:55 +00:00
kipp%netscape.com
b332b3527a Fix unix build woes
git-svn-id: svn://10.0.0.236/trunk@5674 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 01:19:02 +00:00
kipp%netscape.com
afaab7b6e4 new
git-svn-id: svn://10.0.0.236/trunk@5673 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 01:16:47 +00:00
despotdaemon%netscape.com
c665396945 Pseudo-automatic update of changes made by ramiro@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5672 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 01:10:06 +00:00
despotdaemon%netscape.com
8d9e76babf Pseudo-automatic update of changes made by ltabb@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5671 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 01:08:17 +00:00
despotdaemon%netscape.com
21c2c436de Pseudo-automatic update of changes made by waterson@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5670 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 01:02:33 +00:00
despotdaemon%netscape.com
4e7df64507 Pseudo-automatic update of changes made by ltabb@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5669 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 01:01:13 +00:00
despotdaemon%netscape.com
08dc50491e Pseudo-automatic update of changes made by rickg@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5668 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 00:36:03 +00:00
despotdaemon%netscape.com
afcb3283db Pseudo-automatic update of changes made by ltabb@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5667 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 00:33:04 +00:00
rpotts%netscape.com
71ff145fb3 Fix for view reference counting... A reference to the scrolling view was not being release. This prevented Scrolling views from being destroyed.
git-svn-id: svn://10.0.0.236/trunk@5666 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 00:14:03 +00:00
guha%netscape.com
7f12704c8a Fix bug in related links
git-svn-id: svn://10.0.0.236/trunk@5665 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 00:10:48 +00:00
despotdaemon%netscape.com
e7e4e7e2b2 Pseudo-automatic update of changes made by slamm@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5664 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 00:07:37 +00:00
despotdaemon%netscape.com
c2e61578c6 Pseudo-automatic update of changes made by ltabb@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5663 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 00:04:50 +00:00
despotdaemon%netscape.com
43b525e379 Pseudo-automatic update of changes made by rjc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5662 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 23:50:01 +00:00
vidur%netscape.com
2e9c34fbe0 Got rid of unnecessary file
git-svn-id: svn://10.0.0.236/trunk@5661 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 23:49:22 +00:00
karnaze%netscape.com
035ea058c0 initial framesets, nsHTMLIFrame.cpp absorbed by nsHTMLFrame.cpp
git-svn-id: svn://10.0.0.236/trunk@5660 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 23:42:14 +00:00
guha%netscape.com
b5e791727c Remove duplicates from related links
git-svn-id: svn://10.0.0.236/trunk@5659 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 23:39:14 +00:00
kipp%netscape.com
639971d701 Allocated IID's for nsIHTMLContentSink, nsIContentSink, nsIDTD
git-svn-id: svn://10.0.0.236/trunk@5658 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 22:51:30 +00:00
scullin%netscape.com
da0680f5c0 Attempting to fix raptor mac build (not part of grommit or mozilla build)
git-svn-id: svn://10.0.0.236/trunk@5657 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 22:41:57 +00:00
rpotts%netscape.com
ced3fe0f75 Added nsIURL argument to the nsIStreamListener interface
git-svn-id: svn://10.0.0.236/trunk@5656 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 22:38:01 +00:00
kipp%netscape.com
34e87dc2dc Updated to XPCOM'ized sink api
git-svn-id: svn://10.0.0.236/trunk@5653 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 22:31:10 +00:00
kipp%netscape.com
04161762b4 Revised sink API's and others to be more xpcom'ish
git-svn-id: svn://10.0.0.236/trunk@5652 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 22:30:39 +00:00
kipp%netscape.com
950b54bd25 Cleaned up exports list
git-svn-id: svn://10.0.0.236/trunk@5651 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 22:04:21 +00:00
kipp%netscape.com
ed753de2b5 Fixed build issue
git-svn-id: svn://10.0.0.236/trunk@5650 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 22:03:56 +00:00
despotdaemon%netscape.com
524459db1d Pseudo-automatic update of changes made by shaver@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5649 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 22:02:47 +00:00
terry%netscape.com
2bf9ff773f Testing Bonsai, try 11.
git-svn-id: svn://10.0.0.236/trunk@5648 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 21:40:59 +00:00
despotdaemon%netscape.com
57629c5dca Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5647 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 21:32:47 +00:00
despotdaemon%netscape.com
47cbac7838 Pseudo-automatic update of changes made by gagan@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5646 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 21:31:12 +00:00
despotdaemon%netscape.com
175c5255a7 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5645 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 21:28:42 +00:00
despotdaemon%netscape.com
60f3889b09 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5644 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 21:26:26 +00:00
despotdaemon%netscape.com
2554945201 Pseudo-automatic update of changes made by blythe@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5643 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 21:21:41 +00:00
kipp%netscape.com
7c9fe2aa68 Fixed up to build
git-svn-id: svn://10.0.0.236/trunk@5642 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 21:07:47 +00:00
kipp%netscape.com
dc021cf11b fix directory name
git-svn-id: svn://10.0.0.236/trunk@5641 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 21:03:38 +00:00
terry%netscape.com
585c039d35 Testing Bonsai, try 10.
git-svn-id: svn://10.0.0.236/trunk@5640 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 20:56:25 +00:00
terry%netscape.com
b82af375e5 Testing Bonsai, try 9.
git-svn-id: svn://10.0.0.236/trunk@5639 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 20:50:31 +00:00
terry%netscape.com
7584b406cd Use the CVS_ROOT environment variable.
git-svn-id: svn://10.0.0.236/trunk@5638 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 20:50:10 +00:00
terry%netscape.com
b8960a3212 Testing Bonsai, try 8.
git-svn-id: svn://10.0.0.236/trunk@5637 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 20:47:57 +00:00
terry%netscape.com
2b35e8bea8 Testing Bonsai, try 7.
git-svn-id: svn://10.0.0.236/trunk@5636 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 19:56:37 +00:00
terry%netscape.com
fb6ddda634 Testing Bonsai, try 6.
git-svn-id: svn://10.0.0.236/trunk@5635 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 19:50:56 +00:00
terry%netscape.com
81e3585758 Testing Bonsai, try 5.
git-svn-id: svn://10.0.0.236/trunk@5634 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 19:43:52 +00:00
terry%netscape.com
44096764a6 Doesn't seem to know what "localhost" is. Try "127.0.0.1" instead.
git-svn-id: svn://10.0.0.236/trunk@5633 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 19:43:19 +00:00
terry%netscape.com
f88fa00a15 Testing Bonsai, try 4.
git-svn-id: svn://10.0.0.236/trunk@5632 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 19:41:56 +00:00
terry%netscape.com
5e730b77d7 Testing Bonsai, try 3.
git-svn-id: svn://10.0.0.236/trunk@5631 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 19:39:32 +00:00
terry%netscape.com
7bd8088f2b Oops; still wasn't quite right.
git-svn-id: svn://10.0.0.236/trunk@5630 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 19:39:01 +00:00
terry%netscape.com
7c460a98ff Testing Bonsai, try 2.
git-svn-id: svn://10.0.0.236/trunk@5629 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 19:37:24 +00:00
terry%netscape.com
66bf2e0829 Speak SMTP directly.
git-svn-id: svn://10.0.0.236/trunk@5628 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 19:36:44 +00:00
danm%netscape.com
ac4fd77ecc bumping the revision number some more. making last checkin more likely to work. bug 301138.
git-svn-id: svn://10.0.0.236/trunk@5627 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 19:22:02 +00:00
despotdaemon%netscape.com
e38f77bc0f Pseudo-automatic update of changes made by wtc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5626 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 19:19:54 +00:00
terry%netscape.com
fd2945836b Just testing to make sure we haven't busted Bonsai.
git-svn-id: svn://10.0.0.236/trunk@5625 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 19:18:58 +00:00
despotdaemon%netscape.com
2a9c0f80b3 Pseudo-automatic update of changes made by wtc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5624 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 19:18:11 +00:00
despotdaemon%netscape.com
406902047f Pseudo-automatic update of changes made by wtc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5623 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 19:16:01 +00:00
troy
ef7aa18cc4 Unused
git-svn-id: svn://10.0.0.236/trunk@5622 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 18:58:44 +00:00
kipp
3af0a3fee5 nuked
git-svn-id: svn://10.0.0.236/trunk@5621 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 18:55:53 +00:00
despotdaemon%netscape.com
51be4c224e Pseudo-automatic update of changes made by wtc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5620 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 18:55:37 +00:00
kipp
aed38e36a1 new
git-svn-id: svn://10.0.0.236/trunk@5619 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 18:54:51 +00:00
jevering
52fabf17ef Hooked up the related links code to the demo. Getting duplicated now,
hopefully get that fixed soon.


git-svn-id: svn://10.0.0.236/trunk@5616 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 18:45:16 +00:00
despotdaemon%netscape.com
97066c53f3 Pseudo-automatic update of changes made by saari@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5615 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 18:44:55 +00:00
jevering
0eabd76492 Related links stuff.. Guha's related links code stolen from 4.5 and
spanked seriously.. then jammed into netlib.  Nice huh?


git-svn-id: svn://10.0.0.236/trunk@5614 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 18:44:26 +00:00
despotdaemon%netscape.com
51152f3442 Pseudo-automatic update of changes made by wtc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5613 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 18:42:38 +00:00
despotdaemon%netscape.com
38d381c811 Pseudo-automatic update of changes made by takacs@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5612 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 18:35:16 +00:00
despotdaemon%netscape.com
94b4e02014 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@5611 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 18:31:47 +00:00
vidur
8c254f6bc3 Added HTML idl definitions. Changed directory structure in src
git-svn-id: svn://10.0.0.236/trunk@5610 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 18:30:35 +00:00
vidur
ce2208290b Added HTML idl definitions. Changed directory structure in src
git-svn-id: svn://10.0.0.236/trunk@5608 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 17:36:53 +00:00
danm
72a189d7d8 plugging leaks. bug 301138 a:don.
git-svn-id: svn://10.0.0.236/trunk@5607 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 17:26:32 +00:00
kipp
e79ebcce8a Handle unconstrained width during percentage width computations
git-svn-id: svn://10.0.0.236/trunk@5606 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 17:07:20 +00:00
kipp
ff251ca05b Fixed HR style
git-svn-id: svn://10.0.0.236/trunk@5605 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 17:07:00 +00:00
kipp
663bd5580e Speed up doc loading by not reflowing after appending leaf elements (temporary hack)
git-svn-id: svn://10.0.0.236/trunk@5604 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 17:06:53 +00:00
kipp
6e34ee0270 Indent tweak
git-svn-id: svn://10.0.0.236/trunk@5603 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 17:05:59 +00:00
kipp
a223ac715f Stop storing image attrs directly; changed layout code to not use nsHTMLImage directly
git-svn-id: svn://10.0.0.236/trunk@5602 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 17:05:49 +00:00
troy
ca3a5dd4c3 Some more changes of nsIPresContext* to nsIPresContext&
git-svn-id: svn://10.0.0.236/trunk@5601 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 17:05:21 +00:00
kmcclusk
20068e802e Put all EXPORT's on a single line. Didn't work on Linux when they were on separate lines.
git-svn-id: svn://10.0.0.236/trunk@5600 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 17:04:56 +00:00
kipp
c2ab0d6da9 Make bullets a bit smaller to look better
git-svn-id: svn://10.0.0.236/trunk@5599 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 17:04:30 +00:00
spider
e1e1054268 Fix for multitude of print statements that SHM is not available when
displaying on Hummingbird PC X Display Server


git-svn-id: svn://10.0.0.236/trunk@5598 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 17:03:53 +00:00
shaver
469e36a3d2 more jsI?Context stuff, some Scriptable hackery
git-svn-id: svn://10.0.0.236/trunk@5597 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 16:59:47 +00:00
kostello
cd12d6b39a Fix Unix build bustage
git-svn-id: svn://10.0.0.236/trunk@5596 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 16:54:29 +00:00
vidur
fa88168f3b Added HTML idl definitions. Changed directory structure in src
git-svn-id: svn://10.0.0.236/trunk@5595 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 16:54:19 +00:00
kipp
0e0312bc86 Use GetStyleSize to get a better width; store away computed width so that paint code doesn't have to compute it
git-svn-id: svn://10.0.0.236/trunk@5594 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 16:49:07 +00:00
kipp
6ecb9b1752 Keep unconstrained flowing downward
git-svn-id: svn://10.0.0.236/trunk@5593 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 16:48:21 +00:00
danm
f644f74ce6 removing Windows-specific obsolete version of Full Circle code. bug 300132 a:don.
git-svn-id: svn://10.0.0.236/trunk@5592 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 16:39:21 +00:00
ftang
c5fa348c20 Partially fix 5.0 SF1 In bug 122807 and hand it to clu per brade request.
git-svn-id: svn://10.0.0.236/trunk@5591 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 16:33:40 +00:00
terry%netscape.com
e0b760ddcd Sync up with the way things worked on /m/pub.
git-svn-id: svn://10.0.0.236/trunk@5590 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 14:05:24 +00:00
terry%netscape.com
c482a50b05 Turn on Bonsai notification in new repository.
git-svn-id: svn://10.0.0.236/trunk@5589 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 14:03:09 +00:00
ramiro
080cc049b6 Nasty hack to deal with hpux 10.x ANSI C compiler bug. Do the expression
expansion "by hand".
HPUX patches from http://hpux.csc.liv.ac.uk/hppd/mozilla/patch.html.


git-svn-id: svn://10.0.0.236/trunk@5588 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 10:34:34 +00:00
ramiro
937dba67cc Replace (un-hardcode) /usr/lib/libm.a with -lm.
HP-UX patches from http://hpux.csc.liv.ac.uk/hppd/mozilla/patch.html.
This is a good change for all platforms.  ITs dumb to hardcode the library
like that.  If for some reason a particular paltform requires a hard coded
path to libm, then it should be special cased.


git-svn-id: svn://10.0.0.236/trunk@5587 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 10:30:51 +00:00
ramiro
6952561c18 Add support for HPUX A.09. Cleanup HPUX B.10 defines. Add hpux support for
NS_USE_GCC.
Comment out an unused variable.
HP-UX patches from http://hpux.csc.liv.ac.uk/hppd/mozilla/patch.html.


git-svn-id: svn://10.0.0.236/trunk@5586 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 10:19:36 +00:00
ramiro
e4ad3c0509 Turn editres off on hpux. Declare missing XmString function on motif 2.x.
HP-UX patches from http://hpux.csc.liv.ac.uk/hppd/mozilla/patch.html.


git-svn-id: svn://10.0.0.236/trunk@5585 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 10:09:51 +00:00
ramiro
c1c1d6f094 Turn EDITRES of on hpux. HP-UX patches from http://hpux.csc.liv.ac.uk/hppd/mozilla/patch.html.
git-svn-id: svn://10.0.0.236/trunk@5584 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 10:04:44 +00:00
troy
ee770f6c01 Added an XXX to remind me to talk with Cujo about how we determine
whether the column widths have changed...


git-svn-id: svn://10.0.0.236/trunk@5581 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 04:52:32 +00:00
troy
fea23176e8 Turned off some code that was accidently turned on
git-svn-id: svn://10.0.0.236/trunk@5580 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 04:46:51 +00:00
troy
daf7150ca5 Some improvements to the incremental reflow logic to handle all the
cases handled by resize reflow


git-svn-id: svn://10.0.0.236/trunk@5579 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 04:45:58 +00:00
danm
9f30d47e7f use ns/fullsoft dll if MOZ_FULLCIRCLE
git-svn-id: svn://10.0.0.236/trunk@5577 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 04:07:56 +00:00
danm
9855ad6bbb build Full Circle using /ns source, and only ifdef MOZ_FULLCIRCLE. bug 300132 a:don.
git-svn-id: svn://10.0.0.236/trunk@5576 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 04:05:21 +00:00
pierre
1b081b8d0b 300635 (Missing icons in Aurora control bar). Put back the 3 Aurora icons ('ics8' 16251-3) inadvertently removed during the last MOZ_DARK checkin.
git-svn-id: svn://10.0.0.236/trunk@5573 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 03:31:57 +00:00
troy
eb7fa8a66e Changed API for CreateContinuingFrame and GetReflowMetrics to take
a reference to a nsIPresContext


git-svn-id: svn://10.0.0.236/trunk@5569 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 03:23:23 +00:00
racham
ccdfb61a55 Error Checking statements added at various locations
git-svn-id: svn://10.0.0.236/trunk@5568 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 03:12:25 +00:00
mccabe
b00377b8ce Added configuration section for js 1.4, with in/instanceof/exceptions turned
on.  (Default configuration is still 1.3.)


git-svn-id: svn://10.0.0.236/trunk@5567 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 03:00:24 +00:00
troy
81b8ba2d1c Changed GetReflowMetrics() to take a reference to a nsIPresContext
git-svn-id: svn://10.0.0.236/trunk@5566 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 02:59:06 +00:00
troy
547dc8ae9b Changed Reflow() member function to take a reference to a nsIPresContext
instead of a pointer


git-svn-id: svn://10.0.0.236/trunk@5565 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 02:53:09 +00:00
spider
497caf9280 Fix for crash on servers not supporting MIT-SHM
git-svn-id: svn://10.0.0.236/trunk@5564 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 02:29:10 +00:00
rickg
7bf871658d eliminated warnings from linux build
git-svn-id: svn://10.0.0.236/trunk@5563 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 02:08:19 +00:00
rickg
8a3ce47586 fixed linux warnings
git-svn-id: svn://10.0.0.236/trunk@5562 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 02:01:00 +00:00
rickg
3ee5a73f35 fixed linux tinderbox error
git-svn-id: svn://10.0.0.236/trunk@5561 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 01:58:02 +00:00
akkana
2948f23337 Bug 112612: Don't do anything with mail/news-specific preferences unless
MOZ_MAIL_NEWS is defined, so we won't save garbage out. r=brade.


git-svn-id: svn://10.0.0.236/trunk@5560 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 01:52:21 +00:00
spider
4db20609da query the server for the pixmap format rather than trying to guess ourselves
git-svn-id: svn://10.0.0.236/trunk@5559 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 01:29:20 +00:00
spider
d5e479a7da MIT-SHM implementation for offscreen drawables
git-svn-id: svn://10.0.0.236/trunk@5558 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 01:08:35 +00:00
ramiro
0f726a9fe6 Protect debug printf with #ifdef.
git-svn-id: svn://10.0.0.236/trunk@5557 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:56:51 +00:00
kipp
dc79c6750a Treat embed properly as a leaf; fixed typo with object tag
git-svn-id: svn://10.0.0.236/trunk@5556 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:49:26 +00:00
kipp
f809f86477 Made applet's, embed's and object's inlines
git-svn-id: svn://10.0.0.236/trunk@5555 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:48:56 +00:00
kipp
72d875c3de Rebased to use nsObjectContent to share common code
git-svn-id: svn://10.0.0.236/trunk@5554 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:48:39 +00:00
kipp
165aa88ae1 new
git-svn-id: svn://10.0.0.236/trunk@5553 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:48:22 +00:00
kipp
c7a0a24011 Added nsObjectContent
git-svn-id: svn://10.0.0.236/trunk@5552 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:48:15 +00:00
kipp
bb375cde2c More hacks for floating embed's, object's and applet's
git-svn-id: svn://10.0.0.236/trunk@5551 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:47:46 +00:00
kipp
2532972048 Treat embed just like img
git-svn-id: svn://10.0.0.236/trunk@5550 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:47:19 +00:00
briano
0ef6d5c477 Fix for Mozilla bug#117. Thanks to thorsten@wurzelausix.cs.uni-sb.de and wtc@netscape.com for the suggestions.
git-svn-id: svn://10.0.0.236/trunk@5549 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:37:11 +00:00
morse
4b4dfdf1d8 fix bug 161346, reviewed by valeski
git-svn-id: svn://10.0.0.236/trunk@5548 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:29:04 +00:00
kipp
b3e9e70eb9 Handle null pointers better
git-svn-id: svn://10.0.0.236/trunk@5547 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:23:31 +00:00
kipp
bac02831ad Added applet, object and embed support
git-svn-id: svn://10.0.0.236/trunk@5546 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:23:07 +00:00
kipp
ec1f86413c Added nsObjectFrame
git-svn-id: svn://10.0.0.236/trunk@5545 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:22:56 +00:00
kipp
9f488fc36a new
git-svn-id: svn://10.0.0.236/trunk@5544 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:22:30 +00:00
kipp
3fb1d547c1 Handle applet, object and embed tags
git-svn-id: svn://10.0.0.236/trunk@5543 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:22:15 +00:00
kipp
66f0ceca5c Use NS_NewObjectFrame
git-svn-id: svn://10.0.0.236/trunk@5542 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:21:51 +00:00
kipp
00dccbb4e9 added nsHTMLEmbed
git-svn-id: svn://10.0.0.236/trunk@5541 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:21:43 +00:00
rickg
c02241edaa fixed a tinderbox problem introduced in latest contentsinkstream
git-svn-id: svn://10.0.0.236/trunk@5540 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 00:21:39 +00:00
briano
f4329226d6 Fix for Mozilla bug#249. Thanks to armen@unx.dec.com for doing the testing for me.
git-svn-id: svn://10.0.0.236/trunk@5539 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 23:49:35 +00:00
radha
8af45b29f5 Fix for Gromit SF1 in bug # 123826. COde reviewed by Judson Valeski.
Type of change:
--------------
Set the timer to call NET_ProcessNet() after a request for network access
is made. See bug report for more details.


git-svn-id: svn://10.0.0.236/trunk@5538 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 23:40:16 +00:00
joki
26b73797ac Change these to PR boolean values
git-svn-id: svn://10.0.0.236/trunk@5537 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 23:34:37 +00:00
kostello
dd53fc97c8 Sync with new DOM interfaces
git-svn-id: svn://10.0.0.236/trunk@5536 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 23:30:44 +00:00
rickg
bd87244c26 fixed 's' tag which broke with introduction of nsHTMLTags
git-svn-id: svn://10.0.0.236/trunk@5535 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 23:29:25 +00:00
briano
9377549c32 Fix for mozilla bug#477. Thanks to sjm@nwc.dk for the info.
git-svn-id: svn://10.0.0.236/trunk@5533 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 23:24:30 +00:00
law
1a1678d85a Fix for bug#197179
git-svn-id: svn://10.0.0.236/trunk@5531 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 23:11:05 +00:00
vidur
00cf93dbea Added square-bracket indexing for any interface that has an item() method.
git-svn-id: svn://10.0.0.236/trunk@5530 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 23:07:26 +00:00
chuang
f6f78f53ed Fix300421 Edit Preferences doesn't work, reviewed by putterman
git-svn-id: svn://10.0.0.236/trunk@5528 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 23:03:07 +00:00
karnaze
c8d410f8d0 made "get" the default for submission when method is omitted
git-svn-id: svn://10.0.0.236/trunk@5526 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 22:52:07 +00:00
ramiro
d701cb3361 Fix for 124262 5.0 SF1 in bug.
Thanks to for providing the initial fix Juergen Keil <jk@tools.de>.


git-svn-id: svn://10.0.0.236/trunk@5525 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 22:51:57 +00:00
kostello
4a76768a22 Added XIF Support. XIF is a Netscape internal XML format which is
designed to allow for easy conversion from the NGLayoutContent model
to other formats. It's primary focus is to allow easy conversion to
HTML3.2 and HTML4.0 formats. Other formats may be supported in the future.


git-svn-id: svn://10.0.0.236/trunk@5523 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 22:37:51 +00:00
spider
d7ff18d3fe Removing incorrectly added Mac specific files from Motif directory
git-svn-id: svn://10.0.0.236/trunk@5522 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 22:35:56 +00:00
kostello
99d792b211 Added XIF (XML Interchange Format) Support. XIF is designed
as an Netscape internal XML application. It is designed to
allow conversion from our content model to any output format --
most importantly to HTML 3.2 and HTML4.0 format.


git-svn-id: svn://10.0.0.236/trunk@5521 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 22:34:27 +00:00
despotdaemon%netscape.com
80c2608628 Pseudo-automatic update of changes made by terry.
git-svn-id: svn://10.0.0.236/trunk@5520 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 22:30:28 +00:00
kostello
2a61f0d9df Helper object that creates a buffer of XIF data
git-svn-id: svn://10.0.0.236/trunk@5519 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 22:29:21 +00:00
jevering
2719dea262 Turned on location bar in windows.
git-svn-id: svn://10.0.0.236/trunk@5518 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 22:29:01 +00:00
kostello
ca721596f3 DTD to take XIF input and write to a IHTMLContentSinkStream
git-svn-id: svn://10.0.0.236/trunk@5517 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 22:26:38 +00:00
toshok
6fbaecdce2 Only call lo_SetLineBreak if we indeed inserted a line break - fixes SF1 P0 bug 300047.
git-svn-id: svn://10.0.0.236/trunk@5516 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 22:16:21 +00:00
despotdaemon%netscape.com
6896c191b6 Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5515 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 21:53:12 +00:00
danm
011bd0d82f plug small memory leak. bug 300980 a:don.
git-svn-id: svn://10.0.0.236/trunk@5514 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 21:51:36 +00:00
toshok
858173e862 switch order of if checks. gets rid of a SF1 P0 bug 300045.
git-svn-id: svn://10.0.0.236/trunk@5512 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 21:39:00 +00:00
despotdaemon%netscape.com
563ed8fb9b Pseudo-automatic update of changes made by ebina@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5511 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 21:26:32 +00:00
cyeh
2e82e0f7a3 fix for Macintosh raptor build. target name was mispelled, so the build defaulted to the wrong networking target. corrected spelling so that modular netlib is built instead. (not a part of mozilla or gromit builds, reviewed cyeh)
git-svn-id: svn://10.0.0.236/trunk@5510 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 21:13:23 +00:00
spider
f8b19557c3 Fix for not unloading fonts no longer needed
git-svn-id: svn://10.0.0.236/trunk@5509 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 20:32:33 +00:00
joki
d670f3d6e9 Generated JS from IDL now calls backdoor routine all the time from js getters/setters
git-svn-id: svn://10.0.0.236/trunk@5508 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 20:19:28 +00:00
spider
25ff908892 Export the CNavDTD interface so DTD's residing in remote shared libraries
can use it.


git-svn-id: svn://10.0.0.236/trunk@5506 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 19:24:54 +00:00
rickg
b4dce18854 added a few missing tags
git-svn-id: svn://10.0.0.236/trunk@5505 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 19:18:06 +00:00
rickg
a943a03baf added a few missing tags
git-svn-id: svn://10.0.0.236/trunk@5504 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 19:10:42 +00:00
kipp
085aef855b Add factory methods for applets and objects
git-svn-id: svn://10.0.0.236/trunk@5503 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 18:54:20 +00:00
kipp
ee1d54a263 new
git-svn-id: svn://10.0.0.236/trunk@5502 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 18:52:27 +00:00
vidur
1b41003b82 Moved over to a new version of Level 1. NodeIterators and AttributeLists out. NodeLists and NamedNodeMaps in.
git-svn-id: svn://10.0.0.236/trunk@5501 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 18:44:44 +00:00
scullin
9a53260754 Turn on image caching.
git-svn-id: svn://10.0.0.236/trunk@5500 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 18:43:47 +00:00
kipp
f5f0f625ca Use FirstChild method so that more subclasses can use the method
git-svn-id: svn://10.0.0.236/trunk@5499 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 18:38:11 +00:00
kipp
c05fb3bd95 Check for silly width/height's and repair them; fixed bug where a silly height was created; removed redundant handle-event code
git-svn-id: svn://10.0.0.236/trunk@5498 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 18:37:51 +00:00
spider
064ddf3fe8 Add Network support for UI Loading
git-svn-id: svn://10.0.0.236/trunk@5497 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 18:22:27 +00:00
despotdaemon%netscape.com
80101e87ac Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5496 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 17:55:03 +00:00
terry%netscape.com
a73edc1475 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5495 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 17:43:16 +00:00
spider
de2747552e Performance Optimization: Cache the XFontInfo struct so don't need
to call XQueryFont on every GetWidth.


git-svn-id: svn://10.0.0.236/trunk@5494 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 17:41:06 +00:00
terry%netscape.com
077a01033e Pseudo-automatic update of changes made by despotdaemon@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5493 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 17:38:45 +00:00
kmcclusk
19b25d95ae Added #ifdef VIEWER_UI to OnStopBinding to prevent crash when running without GUI
git-svn-id: svn://10.0.0.236/trunk@5492 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 17:37:42 +00:00
scullin
3c4fca0705 Didn't mean to start pulling the XPCOM branch for xpcom or libreg again.
(sigh).


git-svn-id: svn://10.0.0.236/trunk@5491 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 17:24:26 +00:00
terry%netscape.com
f3edbed615 Pseudo-automatic update of changes made by terry.
git-svn-id: svn://10.0.0.236/trunk@5490 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 17:19:13 +00:00
terry%netscape.com
f435b2615c Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5489 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 17:17:52 +00:00
terry%netscape.com
2d34ff75f9 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5488 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 17:16:25 +00:00
terry%netscape.com
7b02fa1fc5 Pseudo-automatic update of changes made by terry.
git-svn-id: svn://10.0.0.236/trunk@5487 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 17:12:43 +00:00
terry%netscape.com
283136ab27 Turn on commitcheck.pl
git-svn-id: svn://10.0.0.236/trunk@5486 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 16:52:16 +00:00
terry%netscape.com
fac1ed544a Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@5485 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 16:49:58 +00:00
terry%netscape.com
85fb64814f Pseudo-automatic update of changes made by terry.
git-svn-id: svn://10.0.0.236/trunk@5484 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 16:42:51 +00:00
terry%netscape.com
36ec67254e Automatically generated script to implement despot control.
git-svn-id: svn://10.0.0.236/trunk@5483 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 16:27:59 +00:00
troy
5d54fed53c Incremental reflow changes
git-svn-id: svn://10.0.0.236/trunk@5482 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 15:29:50 +00:00
kipp
5d58dac108 Hack around url parsing bug; urls that start with / are not absolute even if they contain a colon
git-svn-id: svn://10.0.0.236/trunk@5481 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 15:24:32 +00:00
kipp
b5e35e2bd9 Handle null pointer bugs
git-svn-id: svn://10.0.0.236/trunk@5480 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 15:22:30 +00:00
kipp
f13e4e5b36 Made tables look more real by eliminating ebina auto margins
git-svn-id: svn://10.0.0.236/trunk@5479 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 15:22:11 +00:00
kipp
46bda6f8ac Commented out an unused variable
git-svn-id: svn://10.0.0.236/trunk@5478 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 15:21:50 +00:00
kipp
d9a3931568 Removed MoveTo/SizeTo; added DidReflow and changed it so that on final placement the widget is made visible; during widget creation the widget is created hidden; updated hack font name to match ua.css
git-svn-id: svn://10.0.0.236/trunk@5477 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 15:21:36 +00:00
kipp
86d409d25c Removed MoveTo/SizeTo and added DidReflow
git-svn-id: svn://10.0.0.236/trunk@5476 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 15:20:43 +00:00
kipp
b7b5e4a567 Removed WS_VISIBLE from everywhere so that windows when created are hidden until positioned and shown
git-svn-id: svn://10.0.0.236/trunk@5475 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 15:17:29 +00:00
danm
109f9fbcdf fix %@# goof from the _last_ fix checkin. time to go home.
git-svn-id: svn://10.0.0.236/trunk@5467 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 03:20:52 +00:00
kipp
218d170d43 Stop using GetText for node tag names whenever possible
git-svn-id: svn://10.0.0.236/trunk@5460 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 01:57:51 +00:00
rickg
8ee1bc17c0 better support for applet/param tags; also converted DIR/MENU to UL
git-svn-id: svn://10.0.0.236/trunk@5459 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 01:57:25 +00:00
kipp
8287b3a383 Put prlog.h back in again
git-svn-id: svn://10.0.0.236/trunk@5458 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 01:45:01 +00:00
kin
b2dec3ba0c Fix for 5.0 SF1in bug 299978: html compose fails: can't save file:///Untitled
Ignore autosave code in fe_EditorCleanup() if the context is for a
MWContextMessageComposition.  Reviewed by akkana.


git-svn-id: svn://10.0.0.236/trunk@5456 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 01:29:37 +00:00
pierre
fbf09cf662 Following my MOZ_DARK checkin 2 weeks ago, changed a "((long (*) (char *, uint32, void *))" to "((int32 (*) (char *, uint32, void *))". Just in case...
git-svn-id: svn://10.0.0.236/trunk@5455 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 01:17:15 +00:00
scullin
0da10cc6ec Attempt to fix build.
git-svn-id: svn://10.0.0.236/trunk@5454 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 01:09:34 +00:00
scullin
605bf92aef Fix UNIX link problems.
git-svn-id: svn://10.0.0.236/trunk@5453 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 00:57:49 +00:00
kipp
08a2fe283f Removed bogus include
git-svn-id: svn://10.0.0.236/trunk@5452 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 00:57:16 +00:00
kipp
14c8e34ecb Clamp bullet x coordinate to stay in the available area; if we have a bullet then the first 2 frames are considered the first frame
git-svn-id: svn://10.0.0.236/trunk@5451 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 00:56:49 +00:00
raman
f3152cb469 Added caps to the pull. caps is not part of the build system. caps is checked into both the tip and it is part of the OJI branch. When OJI branch lands on the tip, the build of caps will be enabled. Permission warren/ltabb
git-svn-id: svn://10.0.0.236/trunk@5450 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 00:56:33 +00:00
kipp
f4279ba768 Added have-bullet flag
git-svn-id: svn://10.0.0.236/trunk@5449 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 00:55:43 +00:00
kipp
ee32cc07cd Revamp list handling so that the LI frame is placed differently then regular frames by the LI container
git-svn-id: svn://10.0.0.236/trunk@5448 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 00:55:28 +00:00
kipp
4d29852f8a Removed LI hack
git-svn-id: svn://10.0.0.236/trunk@5447 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 00:54:21 +00:00
scullin
ccf0a01c00 Fix nglayout UNIX build?
git-svn-id: svn://10.0.0.236/trunk@5446 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 00:17:00 +00:00
scullin
6e47abf3ed Fix build?
git-svn-id: svn://10.0.0.236/trunk@5445 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 00:13:49 +00:00
briano
9b218551c3 Fix for bug#356. Cleaned up the logic a bit and got rid of the pointless checks for NSPR20.
git-svn-id: svn://10.0.0.236/trunk@5443 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 23:57:26 +00:00
pollmann
4f6e01509a Bugfixes 5.0 SF1 in (Bug #300542)
git-svn-id: svn://10.0.0.236/trunk@5442 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 23:57:14 +00:00
danm
058b2de7f3 fix Win95 bustage introduced last version. Sorry about that.
git-svn-id: svn://10.0.0.236/trunk@5441 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 23:52:48 +00:00
sar
0ab9bdbda4 adding libmsg and libaddr to MozillaSourceCommon now that they are free. NormandyBeach* will be going away as soon as aclimation is ensured.
git-svn-id: svn://10.0.0.236/trunk@5439 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 23:50:22 +00:00
scullin
20cdc31eeb Re-enable normal netlib stream handling. Caching and chunking should
work now.


git-svn-id: svn://10.0.0.236/trunk@5438 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 23:43:13 +00:00
scullin
350aab065b Re-add mkstream to nglayout build, give a default value to memory
cache pref if defaults aren't loaded.
Approved, reviewed by ltabb.


git-svn-id: svn://10.0.0.236/trunk@5437 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 23:41:21 +00:00
scullin
795f43a5f6 Added NGLAYOUT FO_ type, used only by nglayout. Approved, reviewed by
ltabb.


git-svn-id: svn://10.0.0.236/trunk@5436 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 23:39:43 +00:00
scullin
94e0117e46 Added pref initialization.
git-svn-id: svn://10.0.0.236/trunk@5435 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 23:38:08 +00:00
pollmann
0ec35225ab Bugfixes 5.0 SF1 in (Bug #300542)
git-svn-id: svn://10.0.0.236/trunk@5433 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 23:35:44 +00:00
kin
d15e036243 Fix for SF1in bug 299356: Indentation increases line spacing for same indent
level
Modified CEditBuffer::IndentContainer (case 0) to combine adjacent
blockquote containers.

Reviewed by mjudge.


git-svn-id: svn://10.0.0.236/trunk@5432 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 23:22:50 +00:00
mjudge
773f9f69fb 117388 110370 are both solved by this change. tadaaa
git-svn-id: svn://10.0.0.236/trunk@5430 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 22:55:01 +00:00
timm
d4df13696f fix typo
git-svn-id: svn://10.0.0.236/trunk@5429 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 22:33:21 +00:00
timm
1ea42370c1 changed text
git-svn-id: svn://10.0.0.236/trunk@5428 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 22:24:47 +00:00
kipp
e87676f371 Fixed UL/OL to be blocks again (whoops)
git-svn-id: svn://10.0.0.236/trunk@5421 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 22:12:58 +00:00
kipp
3343b49fd2 Fixed bug with dangling empty lines
git-svn-id: svn://10.0.0.236/trunk@5420 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 22:12:43 +00:00
rickg
7a41228ec0 quick fix to deal with applet tags
git-svn-id: svn://10.0.0.236/trunk@5419 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 21:56:26 +00:00
rickg
48495d02d4 fixed a few problems with unix build
git-svn-id: svn://10.0.0.236/trunk@5418 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 21:42:45 +00:00
kipp
9d6bd8a74c work around build bug
git-svn-id: svn://10.0.0.236/trunk@5417 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 21:37:26 +00:00
kipp
38ae948bcb Fixed tracing macro bug
git-svn-id: svn://10.0.0.236/trunk@5416 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 21:32:26 +00:00
kipp
cbddf0bf47 Fixed rickg's build bustage
git-svn-id: svn://10.0.0.236/trunk@5415 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 21:26:18 +00:00
kipp
68b5b8e074 Added code so that TR VALIGN's will dump properly when content is dumped
git-svn-id: svn://10.0.0.236/trunk@5414 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 21:16:51 +00:00
rickg
434bedca96 added WIP support for reentrancy in the parser
git-svn-id: svn://10.0.0.236/trunk@5413 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 21:13:09 +00:00
buster
d23536257e turned debug noise off
git-svn-id: svn://10.0.0.236/trunk@5412 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 20:44:07 +00:00
buster
1a959d659a for Nav compatibility, 0-width cells do not have insets
git-svn-id: svn://10.0.0.236/trunk@5411 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 20:41:38 +00:00
kipp
043e7f9a28 Removed extra semicolon
git-svn-id: svn://10.0.0.236/trunk@5410 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 19:56:19 +00:00
kipp
af77c269f2 Added LoadURL method to observer; cleaned up load progress messages
git-svn-id: svn://10.0.0.236/trunk@5409 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 19:53:50 +00:00
kipp
fd28796530 Added LoadURL method to observer
git-svn-id: svn://10.0.0.236/trunk@5408 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 19:53:32 +00:00
kipp
02eae4377e Removed unused variable
git-svn-id: svn://10.0.0.236/trunk@5407 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 19:53:18 +00:00
kipp
5215d98a83 Added back in the current url to the observer so that it can print it out during load progress
git-svn-id: svn://10.0.0.236/trunk@5406 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 19:53:03 +00:00
kipp
4e1de881b6 Removed dead code; moved some printf's into nspr logging
git-svn-id: svn://10.0.0.236/trunk@5405 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 19:52:37 +00:00
kipp
90e2fb29ad Cleaned up style sheet
git-svn-id: svn://10.0.0.236/trunk@5404 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 19:49:53 +00:00
kipp
c6d347ff1a Implement VerifyReflow
git-svn-id: svn://10.0.0.236/trunk@5403 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 19:49:42 +00:00
kipp
689bb0f583 Added reflow verification api
git-svn-id: svn://10.0.0.236/trunk@5402 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 19:49:20 +00:00
kipp
139edf2c4d updated a few comments
git-svn-id: svn://10.0.0.236/trunk@5401 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 19:49:07 +00:00
buster
b481b4f1eb added Nav4 compatibility code for 0-width cells
git-svn-id: svn://10.0.0.236/trunk@5400 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 19:22:45 +00:00
buster
e51faf6d00 fixed 2 minor space leaks having to do with temporary structs allocated
to handle colspans


git-svn-id: svn://10.0.0.236/trunk@5398 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 18:11:12 +00:00
ftang
d1f7fd0548 Fix 5.0 SF1 in bug 123225. merged from 4.5 fix.
git-svn-id: svn://10.0.0.236/trunk@5397 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 16:51:53 +00:00
ftang
a2b983aa2a Fix crashing bug # Approved by jar. This bug currently tag as 4.5 bug but since it is
a crashing bug, jar approve to check it in. We didn't change the bug Target FIX version
to 5.0 SF1 in because Nova also need to track it.


git-svn-id: svn://10.0.0.236/trunk@5396 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 16:38:30 +00:00
ftang
61bcbc2473 Fix crashing bug #241466 Approved by jar. This bug currently tag as 4.5 bug but since it is
a crashing bug, jar approve to check it in. We didn't change the bug Target FIX version
to 5.0 SF1 in because Nova also need to track it.


git-svn-id: svn://10.0.0.236/trunk@5395 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 16:37:49 +00:00
kipp
e7a3f07580 Support progressive loading
git-svn-id: svn://10.0.0.236/trunk@5394 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 16:25:15 +00:00
shaver
afca99d6a9 support int JSVALs in XDRValue (duh)
git-svn-id: svn://10.0.0.236/trunk@5393 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 16:12:41 +00:00
danm
a677161106 optionally include GlowCode. bug 299200 a:don.
git-svn-id: svn://10.0.0.236/trunk@5392 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 00:22:53 +00:00
shaver
e2c90b8b76 modules subdir doesn't build, but mozilla doesn't seem to need it?
removed from subdirs list to let it build again.
(r=nobody, a=nobody...sorry)


git-svn-id: svn://10.0.0.236/trunk@5377 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-12 01:15:13 +00:00
kipp
231947e27f Empty the style stack when closing out a td/th
git-svn-id: svn://10.0.0.236/trunk@5376 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-12 01:12:34 +00:00
kipp
c6eae7d71d Reflow child when max-element-size is requested (this works around a purify detected crash)
git-svn-id: svn://10.0.0.236/trunk@5375 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-12 00:19:17 +00:00
kipp
88e680a7ba Set max-element-size
git-svn-id: svn://10.0.0.236/trunk@5374 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-12 00:18:36 +00:00
kipp
121e87e365 Added code to move content in bad spots in tables out
git-svn-id: svn://10.0.0.236/trunk@5373 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-12 00:18:26 +00:00
kipp
5d59509372 Work around table bugs in a different way
git-svn-id: svn://10.0.0.236/trunk@5372 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-12 00:17:50 +00:00
ramiro
da9ab54d23 Fix broken '#if defined' and no new line at end of makefile.
git-svn-id: svn://10.0.0.236/trunk@5367 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 12:45:01 +00:00
rpotts
f1c061e017 Fixed up CVS merge problem that was horking reference counts...
git-svn-id: svn://10.0.0.236/trunk@5365 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 08:07:17 +00:00
michaelp
ff99d20bf4 fixed copying of anims10.gif in Makefile.
git-svn-id: svn://10.0.0.236/trunk@5364 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 06:23:49 +00:00
michaelp
408d13cd26 killed much hated borders on views...
git-svn-id: svn://10.0.0.236/trunk@5363 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 06:17:09 +00:00
michaelp
e95e8e4755 added throbber.
git-svn-id: svn://10.0.0.236/trunk@5362 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 05:33:00 +00:00
michaelp
b37f92956d fixed.
git-svn-id: svn://10.0.0.236/trunk@5361 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 05:28:22 +00:00
michaelp
2f8b0194f3 new gifs for throbber animation...
git-svn-id: svn://10.0.0.236/trunk@5360 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 05:24:57 +00:00
troy
fd17693b35 Added back in some changes that got lost in the previous
check-in


git-svn-id: svn://10.0.0.236/trunk@5359 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 04:16:29 +00:00
kipp
40973d714e Improved tracing somewhat; fixed map handling; removed some dead code
git-svn-id: svn://10.0.0.236/trunk@5354 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 03:51:50 +00:00
kipp
c2c3112e46 Split HandleEvent between the two classes; in theory this is because the RootContentFrame gets the scroll adjusted x,y coordinate and RootFrame doesnt
git-svn-id: svn://10.0.0.236/trunk@5353 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 03:51:18 +00:00
kipp
a7f407ad3b Disabled some code to make cursors over links work
git-svn-id: svn://10.0.0.236/trunk@5352 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 03:50:14 +00:00
kipp
1c19e35dbc Adjust coordinates to account for borders; don't consume the event when just mouse overing (only consume it when clicking); this fixes cursors oddly enough
git-svn-id: svn://10.0.0.236/trunk@5351 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 03:49:56 +00:00
kipp
49715b7ad9 Tweaked
git-svn-id: svn://10.0.0.236/trunk@5350 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 03:49:17 +00:00
kipp
ee315c54c3 Removed GetCursorAt code
git-svn-id: svn://10.0.0.236/trunk@5348 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 03:48:33 +00:00
kipp
8ede9c3501 Avoid crashing when we have no content
git-svn-id: svn://10.0.0.236/trunk@5347 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 03:47:56 +00:00
kipp
a0967f2628 Made GetCursorAt looping generic so that more subclasses could use it
git-svn-id: svn://10.0.0.236/trunk@5346 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 03:47:37 +00:00
briano
13492a0183 Finally added most of Richard Lloyd's (hpux@csc.liv.ac.uk) changes, in a manner that I think will work for everyone.
git-svn-id: svn://10.0.0.236/trunk@5333 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 01:44:28 +00:00
warren
5764b360ff Added simple LiveConnected plugin test case that used backward adapter.
git-svn-id: svn://10.0.0.236/trunk@5331 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 01:40:24 +00:00
warren
63804b1d7f Fixed up and moved backward adapter from oji dir.
git-svn-id: svn://10.0.0.236/trunk@5330 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 01:39:51 +00:00
warren
318510e6b4 Removed bogus npupp.h -- clean one on mozilla/include
git-svn-id: svn://10.0.0.236/trunk@5328 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 01:23:27 +00:00
buster
27d15214e7 fixed unix build, and one small uninitialized variable problem
git-svn-id: svn://10.0.0.236/trunk@5326 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 00:47:29 +00:00
briano
da33ac3419 Added a few minor requested changes.
git-svn-id: svn://10.0.0.236/trunk@5324 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 00:08:56 +00:00
buster
8baeb40126 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@5323 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 00:08:08 +00:00
buster
7e8cc1207b major hackage to the table data structures. slimmer, simpler, faster
this work exposed a few bugs and slow spots, which have been fixed
for the aol page, I added some additional backwards compatibility code
to proportionately distribute width when a fixed-width cell has colspans


git-svn-id: svn://10.0.0.236/trunk@5322 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 00:00:31 +00:00
rpotts
dc3c10b49e Fixed circular reference problem between the nsScrollingView and its scrollbars...
git-svn-id: svn://10.0.0.236/trunk@5321 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 23:10:26 +00:00
troy
5b2534fcda More code re-shuffling. I need to hurry and check-in before Cujo
whacks the tree


git-svn-id: svn://10.0.0.236/trunk@5320 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 22:56:13 +00:00
pinkerton
944e9273a8 Really fix bug #299909 (appr don, rev rjc).
git-svn-id: svn://10.0.0.236/trunk@5314 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 22:19:56 +00:00
warren
2d45ee2644 Moved lib/plugin to modules/plugin.
git-svn-id: svn://10.0.0.236/trunk@5313 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 21:45:46 +00:00
kipp
75f8dd277f Fixed max-element-size to account for the border+padding
git-svn-id: svn://10.0.0.236/trunk@5312 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 21:45:30 +00:00
rpotts
38bff0f0ed Fixed reference counting leak when processing mouse button down events...
git-svn-id: svn://10.0.0.236/trunk@5311 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 21:44:15 +00:00
kmcclusk
c81bc9c159 Factored CreateWindow code into CreateMainWindow and CreateChildWindow code.
git-svn-id: svn://10.0.0.236/trunk@5310 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 21:26:46 +00:00
raman
8547f117f6 This is not part of any build system. caps is part of OJI effort. It will be used by JavaScript in future. Approved by warren/jar/jsw.
git-svn-id: svn://10.0.0.236/trunk@5307 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 21:12:19 +00:00
kipp
0afd53b9cc Generate automatic margin values for most blocks; this emulates ebina margins fairly well
git-svn-id: svn://10.0.0.236/trunk@5306 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 20:30:23 +00:00
kipp
fe64e82ae0 Removed SetMargins call; the default ctor zeros things out now
git-svn-id: svn://10.0.0.236/trunk@5305 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 20:28:30 +00:00
kipp
46cfe4e14b Made it more ebina ish
git-svn-id: svn://10.0.0.236/trunk@5304 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 20:28:04 +00:00
kipp
93e0331886 Pass on DidReflow always so that sub-frames that contain views can get notified and move the views
git-svn-id: svn://10.0.0.236/trunk@5303 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 20:27:43 +00:00
kipp
c36e74b064 initialize reflow metrics and reflow state to avoid downstream bugs
git-svn-id: svn://10.0.0.236/trunk@5302 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 20:26:20 +00:00
kipp
7bc7766680 Fixed case of nsString.h include
git-svn-id: svn://10.0.0.236/trunk@5301 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 20:19:03 +00:00
troy
99f12e096a Deprecated the SetFirstContentOffset/SetLastContentOffset member
functions that take a nsIFrame*


git-svn-id: svn://10.0.0.236/trunk@5297 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 19:04:06 +00:00
jevering
91b4ec0238 Fixing Linux & Irix builds...
git-svn-id: svn://10.0.0.236/trunk@5296 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 18:49:02 +00:00
jevering
0039b478e5 Fix parser build bustage on win32.
git-svn-id: svn://10.0.0.236/trunk@5292 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 18:14:11 +00:00
rods
a232c4f55a Turned off debugging.
git-svn-id: svn://10.0.0.236/trunk@5291 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 17:29:03 +00:00
rods
bf3d278b06 Added the proper initialization for the DeviceContext and the toolkit
git-svn-id: svn://10.0.0.236/trunk@5289 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 17:22:58 +00:00
hyatt
c520053213 Fix for 300331. Reviewed by blythe, approved by don.
git-svn-id: svn://10.0.0.236/trunk@5288 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 17:22:06 +00:00
rods
52818a7c17 Fixed positioning errors.
git-svn-id: svn://10.0.0.236/trunk@5287 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 17:22:05 +00:00
hyatt
992f858aff Fixes for bugs 299992, 299994, 300042. Reviewed by blythe, approved by don.
git-svn-id: svn://10.0.0.236/trunk@5286 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 17:10:25 +00:00
dcone
716e464d23 fixed back to async
git-svn-id: svn://10.0.0.236/trunk@5284 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 13:25:36 +00:00
dcone
504a76af04 16 bit speed testing code
git-svn-id: svn://10.0.0.236/trunk@5283 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 12:53:15 +00:00
nisheeth
82329d36b5 Fix the Mac build bustage...
git-svn-id: svn://10.0.0.236/trunk@5282 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 07:05:12 +00:00
rickg
837fc0806e dynamic DTD support
git-svn-id: svn://10.0.0.236/trunk@5278 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 05:35:23 +00:00
troy
45923e2e1b Changed it so we assume that rows are always complete
git-svn-id: svn://10.0.0.236/trunk@5277 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 05:23:05 +00:00
troy
c54f7d9d1c Some incremental improvements
git-svn-id: svn://10.0.0.236/trunk@5276 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 04:00:38 +00:00
raman
6db3ca35c1 This is not part of any build system. caps is part of OJI effort. It will be used by JavaScript in future
git-svn-id: svn://10.0.0.236/trunk@5275 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 03:19:59 +00:00
peterl
f3f3b09d24 tweaking <FONT size=x> handling
git-svn-id: svn://10.0.0.236/trunk@5274 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 02:45:18 +00:00
cyeh
ed6e9c3fa8 remove xp_sec.c, it's not being used anyway. removing cruft.
git-svn-id: svn://10.0.0.236/trunk@5273 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 02:23:01 +00:00
cyeh
0224c80093 make changes to remove xp_sec.c and xp_sec.h from macbuild. they aren't used anywhere.
git-svn-id: svn://10.0.0.236/trunk@5272 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 02:17:54 +00:00
mccabe
407732a410 Added newline in 2nd comment to make the LXR indexer slightly happier.
Thanks to Dawn Endico <dawn@cannibal.mi.org> for LXR hacking.


git-svn-id: svn://10.0.0.236/trunk@5271 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 02:13:17 +00:00
danm
6a6b1ec5ab glowcode, the right way. bug 299200 a:don
git-svn-id: svn://10.0.0.236/trunk@5270 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 02:04:46 +00:00
pierre
6352135f15 Added MailNewsPrefPanes.cnst
git-svn-id: svn://10.0.0.236/trunk@5269 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 01:13:52 +00:00
pierre
bc774c261c Removed the MailNews resources: they are stored in MailNewsPrefPanes.cnst.
git-svn-id: svn://10.0.0.236/trunk@5268 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 01:12:58 +00:00
pierre
3a061708cd First Checked In.
git-svn-id: svn://10.0.0.236/trunk@5267 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 01:11:18 +00:00
nisheeth
2b6e32c052 Fix for bug #173417 and bug #186496. Reviewed by toshok.
We redo the way tables get freed.
Earlier when the LO_TABLE element got freed, it would free stuff that hangs
of the subsequent LO_CELL elements.  Now, only table related stuff gets freed
and the LO_CELL peer data structures get freed when the LO_CELL is freed.
Lots of code that was if-defed or commented out since Mariner hit the tip
has been removed to improve code readability.


git-svn-id: svn://10.0.0.236/trunk@5266 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 01:03:46 +00:00
clu
9baa06d225 #300180; reviewed by brade. Added editor.r to the project file.
git-svn-id: svn://10.0.0.236/trunk@5265 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 00:53:56 +00:00
kmcclusk
37a2860a21 Added fields mXstring and mXstringSize
git-svn-id: svn://10.0.0.236/trunk@5264 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 00:49:04 +00:00
kmcclusk
ed7d989a06 Modified GetWidth to give correct values under Linux
git-svn-id: svn://10.0.0.236/trunk@5263 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 00:20:38 +00:00
rjc
e7964eff27 Fix bug # 124117
git-svn-id: svn://10.0.0.236/trunk@5261 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 23:00:29 +00:00
rjc
a944e4ae45 Fix bug # 129629
git-svn-id: svn://10.0.0.236/trunk@5260 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 22:53:25 +00:00
rjc
d1fdea91c6 Fix bug # 299980 (disable FTP output into Aurora, until RDF_BRANCH_060398 lands)
git-svn-id: svn://10.0.0.236/trunk@5259 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 22:48:38 +00:00
rjc
9b1be8298a Fixes for bugs # 299744 and # 299909.
git-svn-id: svn://10.0.0.236/trunk@5258 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 22:43:11 +00:00
jevering
c107cb777f Added Top 100 site viewer.
git-svn-id: svn://10.0.0.236/trunk@5256 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 21:07:58 +00:00
troy
d003171be2 Added some new sizing constraints
git-svn-id: svn://10.0.0.236/trunk@5255 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 20:53:37 +00:00
rods
9b86931409 Changed cast to XID (for IRIX)
git-svn-id: svn://10.0.0.236/trunk@5254 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 19:51:53 +00:00
timm
4d04825004 added GetFileContents
git-svn-id: svn://10.0.0.236/trunk@5253 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 19:23:46 +00:00
timm
6aeccc21cf some routines from globals1.js
git-svn-id: svn://10.0.0.236/trunk@5252 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 19:22:49 +00:00
timm
4109e233c8 added new makefile
git-svn-id: svn://10.0.0.236/trunk@5251 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 19:22:01 +00:00
timm
d606bc7217 115784 and separated out js
git-svn-id: svn://10.0.0.236/trunk@5250 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 19:21:12 +00:00
timm
a47765d689 seperate from the html files
git-svn-id: svn://10.0.0.236/trunk@5249 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 19:19:00 +00:00
rods
3b078d34d2 Add support for initializing the Device Context and Toolkit
git-svn-id: svn://10.0.0.236/trunk@5248 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 19:10:35 +00:00
rods
c51912ce5d Added methods for initializing the Device Context and the Toolkit
git-svn-id: svn://10.0.0.236/trunk@5247 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 19:10:04 +00:00
rods
980a891e7c Implemented SetFont and created separate methods for initializing
the DeviceContext and the Toolkit


git-svn-id: svn://10.0.0.236/trunk@5246 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 19:09:19 +00:00
rods
96429025ab Added error callback
git-svn-id: svn://10.0.0.236/trunk@5245 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 19:03:30 +00:00
troy
612be3f747 Added a check for multiple frames occupying a trapezoid. This keeps us from
crashing


git-svn-id: svn://10.0.0.236/trunk@5239 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 18:14:19 +00:00
karnaze
12532e9214 borders
git-svn-id: svn://10.0.0.236/trunk@5238 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 17:47:33 +00:00
cyeh
dca7e82da4 add example tinderbox client scripts
git-svn-id: svn://10.0.0.236/trunk@5237 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 17:36:13 +00:00
kipp
0e49486b51 Added debug code that syncs up the display when running slow so that incremental loading reflow can be visible
git-svn-id: svn://10.0.0.236/trunk@5236 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 17:08:40 +00:00
kipp
f3712a5860 tweaked nested lists style; add in bottom margins for most block elements
git-svn-id: svn://10.0.0.236/trunk@5235 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 17:08:09 +00:00
kipp
ed6bbc7c7f Init passed in margins
git-svn-id: svn://10.0.0.236/trunk@5234 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 17:07:39 +00:00
kipp
66e26827d4 Implement css collapsing margins
git-svn-id: svn://10.0.0.236/trunk@5233 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 17:06:35 +00:00
kipp
633b008454 Added some slots to nsReflowMetrics specifically to support collapsing css margins; it needs to go somewhere else!
git-svn-id: svn://10.0.0.236/trunk@5232 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 17:06:12 +00:00
kipp
fc4de87351 Added a temporary hack to normalize nested lists
git-svn-id: svn://10.0.0.236/trunk@5231 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 17:05:36 +00:00
kipp
fb77f4be1c fixed comments
git-svn-id: svn://10.0.0.236/trunk@5230 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 17:04:45 +00:00
kipp
7d2cd32a5f tweak
git-svn-id: svn://10.0.0.236/trunk@5229 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 17:04:31 +00:00
slamm
a0b4e23e2e Fix off by one error. Messed up inplace editing.
git-svn-id: svn://10.0.0.236/trunk@5228 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 16:42:08 +00:00
slamm
9e0f06faeb Fix double click behavior in such a way that inline editing still works. #149082 SF1 in.
git-svn-id: svn://10.0.0.236/trunk@5227 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 16:42:06 +00:00
danm
99159ddc96 glowcode. bug 299200 a:don.
git-svn-id: svn://10.0.0.236/trunk@5225 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 16:33:15 +00:00
vidur
e68955f859 Fixed build breakage on Unix
git-svn-id: svn://10.0.0.236/trunk@5224 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 16:30:26 +00:00
troy
b936040985 Changed it so the inner table is reflowed by using the Reflow()
member function rather than poking the individual pass 1, pass 2, ...
member functions


git-svn-id: svn://10.0.0.236/trunk@5223 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 14:30:34 +00:00
dcone
09291e63da 16 bit blending is now operational
git-svn-id: svn://10.0.0.236/trunk@5222 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 14:08:36 +00:00
warren
fba9d30962 Breaking out oji interfaces into separate headers.
git-svn-id: svn://10.0.0.236/trunk@5218 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 08:57:00 +00:00
warren
82c371bd69 Breaking out new plugin APIs into separate classes. Moving lib/plugin into a module.
git-svn-id: svn://10.0.0.236/trunk@5217 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 08:42:58 +00:00
mcafee
f30cbd2d2c woops, if -> ifdef
git-svn-id: svn://10.0.0.236/trunk@5215 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 06:18:07 +00:00
mcafee
d83114b4df MOZ_FULLCIRCLE was on by default, turning this off. MOZ_FULLCIRCLE=1 turns this on now.
git-svn-id: svn://10.0.0.236/trunk@5214 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 06:17:07 +00:00
mcafee
4e331d5e84 Turning on full circle crash-reporting (5.0). r=donm, a=jar
git-svn-id: svn://10.0.0.236/trunk@5210 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 05:21:34 +00:00
mcafee
e95f941870 set NO_MOZ_FULLCIRCLE=1 if you need to turn full circle off.
git-svn-id: svn://10.0.0.236/trunk@5209 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 05:20:53 +00:00
pierre
5d607d63c2 Mac MOZ_DARK: landing resources from Nova. Note: these resources are from May 26 while the Normandy branch was tagged on May 11.
git-svn-id: svn://10.0.0.236/trunk@5208 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 05:18:18 +00:00
pierre
2587a7a394 Mac MOZ_DARK: updated stream contructor (why didn't that land before?)
git-svn-id: svn://10.0.0.236/trunk@5207 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 05:14:58 +00:00
pierre
0d3e4adba1 Mac MOZ_DARK: replaced unnecessary references to CTSMEditField with references to LEditField.
git-svn-id: svn://10.0.0.236/trunk@5206 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 05:13:47 +00:00
mcafee
9599246c21 Turning on Full Circle crash-reporting for glibc2 only. Need to check for other vendors later. r=donm, a=jar
git-svn-id: svn://10.0.0.236/trunk@5205 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 05:11:39 +00:00
mcafee
93552004a2 Added NETSCAPE_BUILD to include the private tree; added full circle crash reporting compiler flag. r=donm, a=jar
git-svn-id: svn://10.0.0.236/trunk@5204 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 05:10:20 +00:00
blythe
cdd9cab217 Partial fix for 299200, get glowcode and purify support into the makefiles for stability
git-svn-id: svn://10.0.0.236/trunk@5203 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 05:03:15 +00:00
mcafee
72ec7ea178 Initial full circle crash-reporting checkin. r=donm
git-svn-id: svn://10.0.0.236/trunk@5202 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 05:00:33 +00:00
mcafee
3173aa0fa3 Prefs for full circle crash-reporting (5.0). r=donm
git-svn-id: svn://10.0.0.236/trunk@5201 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 04:59:31 +00:00
mcafee
b579a92aed Adding full circle crash-reporting for 5.0
git-svn-id: svn://10.0.0.236/trunk@5200 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 04:58:02 +00:00
dfm
9bc114facb Added single signon code. THIS IS NOT YET PART OF THE BUILD.
Fixing sync problem with PRIVACY_BRANCH. Approved by don.


git-svn-id: svn://10.0.0.236/trunk@5197 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 03:25:30 +00:00
guha
8e98ccf173 Fix for 299931 and an attempt to fix 124173
git-svn-id: svn://10.0.0.236/trunk@5193 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 02:19:37 +00:00
blythe
b4f421a273 Fix bug 290445, FCInitialize happens after prefs initialized to allow turning it off
git-svn-id: svn://10.0.0.236/trunk@5192 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 02:14:11 +00:00
blythe
73f19b2625 Fix Bug 291002, MOZ_LITE now builds with OJI/JAVA turned on
git-svn-id: svn://10.0.0.236/trunk@5191 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 02:11:44 +00:00
law
2d29b15a2c Fixing bug#105062; reviewed by mjudge
git-svn-id: svn://10.0.0.236/trunk@5188 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 00:41:14 +00:00
morse
d5525d1ff7 fix bug 159169, reviewed by rpotts & valeski
git-svn-id: svn://10.0.0.236/trunk@5187 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 00:37:11 +00:00
vidur
0d5cbcbbdc Timer test
git-svn-id: svn://10.0.0.236/trunk@5186 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 23:46:56 +00:00
vidur
6a96048a04 Moved ScriptContextOwner-ship from WebWidget to the DocObserver
git-svn-id: svn://10.0.0.236/trunk@5185 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 23:46:01 +00:00
vidur
fc2a2d0c41 Added back asynchronous image loading
git-svn-id: svn://10.0.0.236/trunk@5184 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 23:45:10 +00:00
vidur
5879143695 Added setTimeout/setInterval to Window. Added ellipsis special-case to IDL generation code. Slightly better error reporting in generated JavaScript stub classes
git-svn-id: svn://10.0.0.236/trunk@5183 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 23:44:46 +00:00
kipp
f7850f3d9a Worked around a startup problem that caused body's attributes and style context to be prematurely mapped before the attributes were read in or the ua.css was read in
git-svn-id: svn://10.0.0.236/trunk@5182 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 23:15:32 +00:00
kmcclusk
c722ac6974 Modified the order of the source shareables so all of the symbols
are in the single destination shareable for Linux.


git-svn-id: svn://10.0.0.236/trunk@5178 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 21:11:09 +00:00
troy
6044ce3680 Changes to the caption handling code
git-svn-id: svn://10.0.0.236/trunk@5176 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 20:21:17 +00:00
ricardob
44d8450357 Fix unix bustage on xxx
git-svn-id: svn://10.0.0.236/trunk@5159 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 19:17:11 +00:00
rods
f3ef30b6b7 Fixed argc problem
git-svn-id: svn://10.0.0.236/trunk@5157 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 17:40:16 +00:00
leaf
7a18ca09ed Added toplevel directory 'privacy'
git-svn-id: svn://10.0.0.236/trunk@5156 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 17:35:36 +00:00
kipp
9941cf0373 Fixed unix build
git-svn-id: svn://10.0.0.236/trunk@5155 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 17:34:26 +00:00
rods
b35633e6db Added Focus processing
git-svn-id: svn://10.0.0.236/trunk@5154 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 17:01:37 +00:00
rods
0922fee126 Fixed the radio buttons so they work.
git-svn-id: svn://10.0.0.236/trunk@5153 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 17:00:18 +00:00
rods
9f840f2c48 The necessary fixes to get Scribble working.
git-svn-id: svn://10.0.0.236/trunk@5152 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 16:58:51 +00:00
donm
803595712c still working on the 5.0 build bustage.
git-svn-id: svn://10.0.0.236/trunk@5151 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 16:54:24 +00:00
shaver
878a85e07b start at jsContext and jsRuntime implementations, enough to run trivial script
git-svn-id: svn://10.0.0.236/trunk@5148 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 16:53:49 +00:00
danm
981a316abd form text element widgets now subclassed so they can activate their window in response to a WM_MOUSEACTIVATE message. bug 126974 r:blythe a:don
git-svn-id: svn://10.0.0.236/trunk@5147 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 16:28:16 +00:00
dcone
eb99bfd773 Intermediate 16 bit blending
git-svn-id: svn://10.0.0.236/trunk@5141 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 14:31:31 +00:00
mccabe
1301adda9f Changed the definition of JSDOUBLE_IS_INT(d, i) to delay a (jsint)d
cast until after the double in question has been determined to be
finite, not NaN, etc.  This may make the code a little more XP for
platforms like BSD and Alpha Linux that don't like casting strange
values to int.  Thanks go to Uncle George <gatgul@voicenet.com> and
hankin <hankin@consultco.com> for their porting work.


git-svn-id: svn://10.0.0.236/trunk@5137 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 07:56:43 +00:00
briano
ba7ca55a17 Okay, so I'm an idiot. It helps to put the fix in the right place....
git-svn-id: svn://10.0.0.236/trunk@5136 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 05:05:21 +00:00
troy
e3b310d6e6 Tables not allow only one caption
git-svn-id: svn://10.0.0.236/trunk@5134 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 04:49:01 +00:00
briano
52ba1a8002 Fixed the build error that Tinderbox is catching, but not reporting as a failure.
git-svn-id: svn://10.0.0.236/trunk@5133 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 04:35:55 +00:00
briano
4cc3b63923 Added Mike Shaver's (shaver@netscape.com) changes to allow for better
differentiation between libraries and executables built in the same
directory, and the ability to build only shared libraries if the user
prefers.


git-svn-id: svn://10.0.0.236/trunk@5132 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 03:49:31 +00:00
briano
9ea8549725 Changes to support SINIX-Z (x86-based). This will, unfortunately, cause
the object directory name for mips-based SINIX versions to change, requiring
a complete rebuild.  Sorry, but there was no acceptable alternative....


git-svn-id: svn://10.0.0.236/trunk@5131 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 03:43:53 +00:00
mccabe
c575d8c493 Made the assign hack conditional on JSVERSION_IS_ECMA.
git-svn-id: svn://10.0.0.236/trunk@5117 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 23:59:45 +00:00
donm
a29bf2cae2 messed up libldap line in Makefile, fixed.
git-svn-id: svn://10.0.0.236/trunk@5116 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 23:21:40 +00:00
jevering
eda808f4ca Fixing optimized build.
git-svn-id: svn://10.0.0.236/trunk@5114 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 22:20:00 +00:00
jevering
b937870e02 Fixed optimized build.
git-svn-id: svn://10.0.0.236/trunk@5113 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 22:07:35 +00:00
michaelp
c907c2baed when a view is the root, it's position will now always be 0, 0.
git-svn-id: svn://10.0.0.236/trunk@5112 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 21:51:57 +00:00
thom
dc2387b8a6 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@5111 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 21:26:45 +00:00
thom
423669d5b6 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@5110 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 21:07:54 +00:00
ricardob
6c25b0b56f fixed call to free bug reported from outside
git-svn-id: svn://10.0.0.236/trunk@5109 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 20:00:18 +00:00
cltbld
0ffbcdf75c fixing linking problem for 5.0 product.
git-svn-id: svn://10.0.0.236/trunk@5108 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 19:35:52 +00:00
ricardob
bb030154e8 free mail unix changes
git-svn-id: svn://10.0.0.236/trunk@5105 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 18:29:09 +00:00
ricardob
6d4821b427 use libmsg only with security
git-svn-id: svn://10.0.0.236/trunk@5104 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 18:28:11 +00:00
ricardob
44ae7fbb1c free mail unix fixes
git-svn-id: svn://10.0.0.236/trunk@5103 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 18:27:05 +00:00
ricardob
1e96e7fae8 Free mail unix fixes
git-svn-id: svn://10.0.0.236/trunk@5102 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 18:26:15 +00:00
ricardob
2c222c8f6e free mail fixes
git-svn-id: svn://10.0.0.236/trunk@5101 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 18:23:47 +00:00
rods
4be012a3cb Removed Windows specific code
git-svn-id: svn://10.0.0.236/trunk@5099 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 18:00:06 +00:00
rods
b95c8c73f0 Removed the RadioGroup and fixed the RadioButtons so they would work
git-svn-id: svn://10.0.0.236/trunk@5098 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 17:56:24 +00:00
mjudge
be75387a7b Fixing Sf1in. no number but definate crash. no initializer for int i=0
git-svn-id: svn://10.0.0.236/trunk@5097 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 16:49:37 +00:00
timm
d4b0d09e4a new routines for isp phone number
git-svn-id: svn://10.0.0.236/trunk@5096 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 16:26:19 +00:00
timm
d3f74f0d4c added error checking
git-svn-id: svn://10.0.0.236/trunk@5095 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 16:25:30 +00:00
timm
8bb3a04137 change for new button size
git-svn-id: svn://10.0.0.236/trunk@5094 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 16:24:14 +00:00
timm
757d6e0d6e new buttons
git-svn-id: svn://10.0.0.236/trunk@5093 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 16:23:52 +00:00
timm
f12ea743dd interface changes
git-svn-id: svn://10.0.0.236/trunk@5092 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 16:22:35 +00:00
kipp
dc7de1f2ae Added a reminder to not mess with the NS_ISUPPORTS IID
git-svn-id: svn://10.0.0.236/trunk@5091 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 16:08:55 +00:00
kipp
df2369f8bc Allocated IID for nsIFrame
git-svn-id: svn://10.0.0.236/trunk@5090 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 16:07:35 +00:00
kipp
dbf41fac3d new
git-svn-id: svn://10.0.0.236/trunk@5089 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 16:04:02 +00:00
nisheeth
dd9ba14445 Fix for bug 123318. Only do the textblock checks in lo_BoundaryJumpingPrev()
and lo_BoundaryJumpingNext() for the editor context.
If you don't do it the editor, backspacing between lines gets hosed.
If you do it for the browser, selection goes into an infinite loop.


git-svn-id: svn://10.0.0.236/trunk@5088 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 06:31:07 +00:00
ramiro
0678c47f1a Documentation fixes. Cleanups for dead/changed file/class names.
No code changes, only comments.  Makes the xfe LXR pages better.
Approved by don.
Thanks do Dawn Endico <dawn@cannibal.mi.org> for providing the patch.


git-svn-id: svn://10.0.0.236/trunk@5087 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 06:15:49 +00:00
nisheeth
0cf2d30e72 Fix for bug 232611 which was a duplicate of bug 120234 which got fixed in 4.06.
Fix was reviewed by rjc and dp when it went into the 4.06 branch.
Fixed the case where an unclosed single quote in a
tag causes the STYLE attribute to not be found. This was causing
an infinite loop where layout would process the style attribute repeatedly.
See bug report for details. Affected code is inside lo_ProcessStyleAttribute().


git-svn-id: svn://10.0.0.236/trunk@5086 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 05:57:50 +00:00
troy
276aea3a61 Cleaned up ShrinkWrapChildren so pass 1 doesn't resize the rows
git-svn-id: svn://10.0.0.236/trunk@5084 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 03:48:21 +00:00
kipp
661a411e3d Implement back/forward/location handling
git-svn-id: svn://10.0.0.236/trunk@5083 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 01:40:05 +00:00
buster
38ee9372e2 fixed 3 dumb bugs I introduced recently.
1. cellmap couldn't properly delete CellData because definition was unavailable
2. optimized table cells made taller wouldn't shrink when they should because we were not
remembering the previous desired height of the cell.
3. rows were placing cells on the left edge, and not adding in the left margin.


git-svn-id: svn://10.0.0.236/trunk@5082 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 01:06:51 +00:00
troy
3b5b47465b More incremental reflow changes
git-svn-id: svn://10.0.0.236/trunk@5081 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 00:49:07 +00:00
kipp
df781def35 Snapshot of history code
git-svn-id: svn://10.0.0.236/trunk@5080 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 00:32:09 +00:00
buster
07691d8960 fix for empty tables. we now support tables that have no content.
git-svn-id: svn://10.0.0.236/trunk@5079 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 00:20:21 +00:00
kipp
3d550e4049 Added some UI to the viewer (currently disabled)
git-svn-id: svn://10.0.0.236/trunk@5078 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 00:17:34 +00:00
buster
4771ca51e3 fixed a few bugs with distributing excess/restricted space inappropriately.
we now pass around info about whether we're an auto width table.


git-svn-id: svn://10.0.0.236/trunk@5074 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 22:48:19 +00:00
briano
2abab16f50 Added support for NetBSD, and support for Steve Morse's (morse@netscape.com) Cookie Management and Single Sign-on code.
git-svn-id: svn://10.0.0.236/trunk@5073 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 22:45:22 +00:00
briano
7a9f13ca9e Use a more elegant mechanism to set OS-version-specific -D flags.
git-svn-id: svn://10.0.0.236/trunk@5072 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 22:37:17 +00:00
warren
0ff15a9587 Added Backward Adapter for new Plugin API (runs 5.0-style plugins in 4.0 browser).
git-svn-id: svn://10.0.0.236/trunk@5071 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 22:21:12 +00:00
kipp
68e2cde37d Changed AttributeToString to handle empty value types
git-svn-id: svn://10.0.0.236/trunk@5070 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 22:16:23 +00:00
kipp
c452bc7501 Create head & body object during init phase to avoid having the root content frame code have to renumber it's child frames when the head section shows up)
git-svn-id: svn://10.0.0.236/trunk@5069 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 22:15:55 +00:00
kipp
a258f5b6dd Removed obsolete tags header file generation rules
git-svn-id: svn://10.0.0.236/trunk@5068 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 22:15:22 +00:00
kmcclusk
696e9e439f Removed _s files from Linux link
git-svn-id: svn://10.0.0.236/trunk@5066 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 22:06:05 +00:00
troy
a40632c113 Incremental reflow work-in-progress
git-svn-id: svn://10.0.0.236/trunk@5065 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 21:39:23 +00:00
rods
d56e753015 fixed a few minor things and removed the GetSelectedItem test for MultiList
git-svn-id: svn://10.0.0.236/trunk@5064 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 21:38:18 +00:00
kipp
b90bf87135 Implement ContentDeleted
git-svn-id: svn://10.0.0.236/trunk@5063 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 21:37:33 +00:00
kipp
5645981087 Fixed a few bugs in ContentDeleted reflow; implemented a cheesy version of FrameDeletedReflow
git-svn-id: svn://10.0.0.236/trunk@5062 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 21:37:08 +00:00
rods
25aa7ef690 activated the build of the widget test and scribble apps
git-svn-id: svn://10.0.0.236/trunk@5061 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 21:36:55 +00:00
rods
53a1e6716e Removed RadioGroup and fixed the "Create" of the AppShell
git-svn-id: svn://10.0.0.236/trunk@5060 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 21:36:17 +00:00
kipp
c8141809f6 new
git-svn-id: svn://10.0.0.236/trunk@5059 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 21:36:00 +00:00
rods
e6aa541d3e Implemented Get/Set Caret and Insert
git-svn-id: svn://10.0.0.236/trunk@5058 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 21:31:01 +00:00
rods
8741f5374c Changed GetSelectedItem so it throws an exception when it is call by nsListBox
git-svn-id: svn://10.0.0.236/trunk@5057 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 21:30:08 +00:00
buster
ead43eee9f added support for "effective column widths", the width of a column pretending that spanning cells have no effect.
this gets us some more Nav4 compatibility.
several minor fixes.


git-svn-id: svn://10.0.0.236/trunk@5056 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 21:00:11 +00:00
rods
17cbd670c0 Fixed cast
git-svn-id: svn://10.0.0.236/trunk@5055 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 20:27:57 +00:00
rods
a8236ce79d Commented out the SetBKColor in the callback
git-svn-id: svn://10.0.0.236/trunk@5053 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 19:58:36 +00:00
rods
724441e9cf Minor fix to get it compiling on Windows
git-svn-id: svn://10.0.0.236/trunk@5052 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 19:56:08 +00:00
rods
f90f37fa1e Added more tests
git-svn-id: svn://10.0.0.236/trunk@5051 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 19:34:50 +00:00
rods
092dfdad74 Changed the array of widget to be of type "Widget" instead of "long"
git-svn-id: svn://10.0.0.236/trunk@5050 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 19:26:06 +00:00
kmcclusk
ce6ada8e5a Moved *._s files into Linux specific EX_LIBS
git-svn-id: svn://10.0.0.236/trunk@5049 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 19:21:07 +00:00
rods
a5f947a523 Added SetSelectedIndices method (no implementation)
git-svn-id: svn://10.0.0.236/trunk@5048 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 19:16:45 +00:00
rods
40a8090171 Filled in more of the methods and added additional tests
git-svn-id: svn://10.0.0.236/trunk@5047 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 18:13:38 +00:00
kmcclusk
af0217dd64 Removed unused define and commented out code.
git-svn-id: svn://10.0.0.236/trunk@5046 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 18:06:30 +00:00
kmcclusk
a9e59b9598 Added missing libraries to get viewer to link under Linux
git-svn-id: svn://10.0.0.236/trunk@5045 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 17:55:38 +00:00
kipp
e47d50b7fd Changed the event loop to install a timer to make sure that the net will always get some cycles
git-svn-id: svn://10.0.0.236/trunk@5044 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 17:41:27 +00:00
terry
ef1e53f505 Patch by Matthew Wilson <msw@gimp.org> -- more layer poisition fixes.
git-svn-id: svn://10.0.0.236/trunk@5041 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 17:09:33 +00:00
terry
e1cd689fd7 Needs to loadConfigData() so that it can get the value of $rcsdiffcommand.
git-svn-id: svn://10.0.0.236/trunk@5040 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-06 16:50:08 +00:00
nisheeth
5eb51a940a Fix for Mac build bustage.
git-svn-id: svn://10.0.0.236/trunk@5038 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-05 01:51:33 +00:00
nisheeth
8620a5332d Approved by Don. Checking in latest Layout Probe API implementation from
the 4.06 branch into the mozilla tip.  This API is not being called from
anywhere and hence cannot affect stability.


git-svn-id: svn://10.0.0.236/trunk@5037 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-04 23:25:24 +00:00
shaver
818813f0fd tentative and likely useless script verifier for XDR (-DJS_XDR_SCRIPT_VERIFIER)
git-svn-id: svn://10.0.0.236/trunk@5036 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-04 19:45:46 +00:00
guha
3ff88d3e72 Fix the major RDF bugs on the tip.
git-svn-id: svn://10.0.0.236/trunk@5035 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-04 19:13:55 +00:00
kipp
e2b3d76321 Don't build shared library
git-svn-id: svn://10.0.0.236/trunk@5032 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 23:54:25 +00:00
kipp
56f0019027 Removed some compiler warnings
git-svn-id: svn://10.0.0.236/trunk@5031 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 23:16:43 +00:00
kipp
09ade9fd5b Eliminate some compiler warnings
git-svn-id: svn://10.0.0.236/trunk@5030 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 23:14:21 +00:00
kipp
137defc4e7 Don't forget to build nsHTMLTags.o
git-svn-id: svn://10.0.0.236/trunk@5029 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 23:13:37 +00:00
kipp
c5fdde395f Don't build shared libraries
git-svn-id: svn://10.0.0.236/trunk@5028 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 23:12:11 +00:00
kipp
61de46f180 Updated makefile to be single pass so that clobber, etc. work correctly now
git-svn-id: svn://10.0.0.236/trunk@5027 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 23:09:42 +00:00
kipp
e222065446 Added rules to export and generate nsHTMLTags.h, nsHTMLTags.cpp
git-svn-id: svn://10.0.0.236/trunk@5023 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 20:33:10 +00:00
kipp
0b41fee071 Removed obsolete files
git-svn-id: svn://10.0.0.236/trunk@5020 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 19:09:41 +00:00
fur
77b26c0ea1 These files were moved to js/ref/liveconnect/macbuild/JavaSession.
git-svn-id: svn://10.0.0.236/trunk@5018 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 19:00:59 +00:00
kipp
5c6ac69ca4 Added some style for html4 tags and some nav tags
git-svn-id: svn://10.0.0.236/trunk@5017 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 18:41:44 +00:00
kipp
3646c57ad5 Removed some cruft
git-svn-id: svn://10.0.0.236/trunk@5016 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 18:40:45 +00:00
kipp
f311729b88 updated
git-svn-id: svn://10.0.0.236/trunk@5015 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 18:40:25 +00:00
kipp
aabbf4cd5c Fixed tag enum table to start at 1
git-svn-id: svn://10.0.0.236/trunk@5014 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 18:40:12 +00:00
kipp
d11614eec7 Removed a test
git-svn-id: svn://10.0.0.236/trunk@5013 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 17:51:45 +00:00
kipp
a6c0242128 Build nsHTMLParts too
git-svn-id: svn://10.0.0.236/trunk@5012 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 17:50:53 +00:00
kipp
25695317b1 Use NS_CreateHTMLElement to implement dom create-element method
git-svn-id: svn://10.0.0.236/trunk@5011 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 17:50:25 +00:00
kipp
5fe453f4cb new
git-svn-id: svn://10.0.0.236/trunk@5010 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 17:50:00 +00:00
kipp
040bb08d84 Added NS_CreateHTMLElement
git-svn-id: svn://10.0.0.236/trunk@5009 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 17:49:49 +00:00
kipp
61f8058f13 Reworked ContentInserted handling
git-svn-id: svn://10.0.0.236/trunk@5008 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 17:46:44 +00:00
kipp
2dcbeaa53e new
git-svn-id: svn://10.0.0.236/trunk@5007 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 17:19:58 +00:00
kipp
812efebb8f Use new generated tags table/search routines
git-svn-id: svn://10.0.0.236/trunk@5006 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 17:19:26 +00:00
fur
90721aa429 + Fixed heap corruption caused by free'ing of an uninitialized pointer.
+ Changed the way JS wrapper functions for Java instance methods are constructed.

  Previously, these were computed the first time that an instance method was
  accessed for a particular JavaObject and cached in the native, private portion
  of that JavaObject.  However, the required call to JS_AddRoot() causes an root
  to appear as a link in a cyclical graph, leading to uncollectible objects, i.e.
  the JavaObject has a root pointer to the function object and the function has
  a parent that points back to the JavaObject.  Now, we compute the functions
  at the time a class is reflected and use JS_CloneFunctionObject() each time
  a JS wrapper function is needed, which is slower, but avoids this GC problem.


git-svn-id: svn://10.0.0.236/trunk@5005 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 15:50:16 +00:00
mcafee
18be643b7c Full Circle assembly files hangs the compiler w/o this flag.
git-svn-id: svn://10.0.0.236/trunk@5004 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 13:15:40 +00:00
rpotts
d81b006e8f Added error checking to the document creation. IF a document cannot be found, the network load will fail and the old document will not be deleted...
git-svn-id: svn://10.0.0.236/trunk@4990 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 06:16:02 +00:00
rpotts
5273f998d4 Cause the netlib load to fail if OnStartBinding(...) returns an error.
git-svn-id: svn://10.0.0.236/trunk@4989 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 06:15:06 +00:00
scullin
00a860dea1 Attempt to fix mac build.
git-svn-id: svn://10.0.0.236/trunk@4988 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 05:09:43 +00:00
fur
5d2426cebb Tweaked comment.
git-svn-id: svn://10.0.0.236/trunk@4985 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 02:43:34 +00:00
fur
c583e2e8f7 Fix Win32 warnings that were introduced as a result of curing Mac warnings.
git-svn-id: svn://10.0.0.236/trunk@4984 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 02:42:16 +00:00
fur
0318d6d143 Got rid of debug printf().
git-svn-id: svn://10.0.0.236/trunk@4983 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 02:41:31 +00:00
fur
cf3292cbf7 Added Compatibility discussion.
Tweaked Mac build instructions.


git-svn-id: svn://10.0.0.236/trunk@4982 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 02:40:48 +00:00
ricardob
d523ee5063 fix winfe mozilla mapi call
git-svn-id: svn://10.0.0.236/trunk@4981 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 01:12:50 +00:00
vidur
c4b7d2a4c9 Moved core DOM interfaces to coreDom directory
git-svn-id: svn://10.0.0.236/trunk@4976 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 00:50:16 +00:00
vidur
5cd417ba06 Moved core DOM interfaces to coreDom directory
git-svn-id: svn://10.0.0.236/trunk@4975 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 00:48:44 +00:00
vidur
467a104f6a Added special case for global object. Changed geniid.pl to take multiple directories
git-svn-id: svn://10.0.0.236/trunk@4974 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 00:48:06 +00:00
ricardob
0e823fac83 Comment out again temp define for Gromit, use addrbook.h instead
git-svn-id: svn://10.0.0.236/trunk@4968 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 00:35:22 +00:00
ricardob
f000ca1fb8 Use kGromitxxx definition from addrbook.h
git-svn-id: svn://10.0.0.236/trunk@4967 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 00:34:45 +00:00
fur
e121f64e4f Fixed incorect argument type in jlong_to_jdouble() which was causing Java long values to get mangled.
git-svn-id: svn://10.0.0.236/trunk@4964 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 00:00:15 +00:00
atotic
9224c5657e Aaah, someone split the MANIFEST file inside config/mac
git-svn-id: svn://10.0.0.236/trunk@4962 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 23:54:24 +00:00
ricardob
bfe67a1902 fix for free moz in unix
git-svn-id: svn://10.0.0.236/trunk@4961 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 23:50:34 +00:00
guha
5cdf2a86a6 Back out changes.
git-svn-id: svn://10.0.0.236/trunk@4960 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 23:48:19 +00:00
kipp
97c6970030 Fixed a typo (blush)
git-svn-id: svn://10.0.0.236/trunk@4959 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 23:44:46 +00:00
ricardob
4612d1aa32 fix for free moz in unix
git-svn-id: svn://10.0.0.236/trunk@4958 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 23:42:42 +00:00
rpotts
9f3a0b265a Fixes to make the automated document loader work again...
git-svn-id: svn://10.0.0.236/trunk@4955 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 23:39:38 +00:00
rpotts
66adbc5795 Added some missing forward declarations...
git-svn-id: svn://10.0.0.236/trunk@4954 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 23:38:48 +00:00
rpotts
285c8dc2af Fix viewer bug where pages would not load unless the mouse was wiggled...
git-svn-id: svn://10.0.0.236/trunk@4953 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 23:34:30 +00:00
pierre
4a0ecc19d2 Fixing Mac MOZ_MEDIUM: ifndef'd XP_MAC the "misc temp kludges"
git-svn-id: svn://10.0.0.236/trunk@4952 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 23:32:15 +00:00
troy
91626f8759 More work-in-progress incremental reflow code
git-svn-id: svn://10.0.0.236/trunk@4951 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 23:19:31 +00:00
pierre
9e30c0e9d0 Fixing MOZ_MEDIUM: ifdef'd XP_MAC the "#include" added yesterday.
git-svn-id: svn://10.0.0.236/trunk@4950 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 23:05:50 +00:00
kipp
b530035104 Moved initial reflow processing into InitialReflow method (doh)
git-svn-id: svn://10.0.0.236/trunk@4941 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 22:55:15 +00:00
kipp
99f5e93df3 Added more asserts to catch bad behavior of parents and children
git-svn-id: svn://10.0.0.236/trunk@4940 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 22:54:53 +00:00
terry
f7a4cda1e7 Patch by Matthew Wilson <msw@gimp.org> -- removed extraneous apostrophe.
git-svn-id: svn://10.0.0.236/trunk@4938 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 22:54:16 +00:00
kipp
07047d35f3 new
git-svn-id: svn://10.0.0.236/trunk@4937 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 22:53:47 +00:00
ricardob
a5c069ecdf put back include string, instead of glyph
git-svn-id: svn://10.0.0.236/trunk@4933 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 22:47:25 +00:00
guha
ee5c33a9bf Fix the RDF backend P0 bugs
git-svn-id: svn://10.0.0.236/trunk@4932 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 22:45:01 +00:00
ricardob
c755e95d1f changes for free mozilla and fix builds (also in mknews.c)
git-svn-id: svn://10.0.0.236/trunk@4931 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 22:43:34 +00:00
rods
91b3925529 fixed build problem
git-svn-id: svn://10.0.0.236/trunk@4930 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 22:43:08 +00:00
ricardob
b5b69976cd changes for free mozilla
git-svn-id: svn://10.0.0.236/trunk@4929 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 22:42:36 +00:00
atotic
fefb11aebd Fixed mac build bustage
git-svn-id: svn://10.0.0.236/trunk@4928 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 22:34:46 +00:00
pierre
f1f75b2298 Fixing MOZ_MEDIUM: fixed 2 paths like in the previous checkin and added Progress.mcp
git-svn-id: svn://10.0.0.236/trunk@4926 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 21:46:01 +00:00
pierre
dd951f6fe1 Fixing MOZ_MEDIUM.
git-svn-id: svn://10.0.0.236/trunk@4925 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 21:39:17 +00:00
ricardob
33eea4007c fix build
git-svn-id: svn://10.0.0.236/trunk@4924 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 21:35:53 +00:00
pierre
205756968b Fixing MOZ_MEDIUM
git-svn-id: svn://10.0.0.236/trunk@4923 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 21:28:46 +00:00
kipp
9397552bbe updated test
git-svn-id: svn://10.0.0.236/trunk@4922 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 21:26:54 +00:00
kipp
8c01eeea23 Bug fix for content-appended reflow
git-svn-id: svn://10.0.0.236/trunk@4921 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 21:26:34 +00:00
kipp
659ef637cf Fixed up logging to use the frame logging
git-svn-id: svn://10.0.0.236/trunk@4920 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 21:26:00 +00:00
kipp
7cf6711c96 Fixed bug where tables weren't returning a proper set of metrics
git-svn-id: svn://10.0.0.236/trunk@4919 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 21:24:56 +00:00
atotic
bc993aea8c Added CNavDTD.h
git-svn-id: svn://10.0.0.236/trunk@4918 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 21:21:53 +00:00
rods
682732e96f Continued to implement the remain methods
git-svn-id: svn://10.0.0.236/trunk@4917 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 21:18:04 +00:00
troy
89a3525fb4 Moved code that resized the table row cells from the row group frame
to the row frame. It's now handled as part of the DidReflow() post-
processing code


git-svn-id: svn://10.0.0.236/trunk@4916 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 20:35:23 +00:00
donm
631802630d Approved by: Don Melton. Let's fix this bustage!
git-svn-id: svn://10.0.0.236/trunk@4915 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 20:03:09 +00:00
sar
2ec3379c19 adding needed include paths, removing bad export headers
git-svn-id: svn://10.0.0.236/trunk@4914 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 20:03:03 +00:00
rpotts
c0cda15aab Initialized the file extension to content-type mappings to allow netlib to determine the content-type of a file based on its extension...
git-svn-id: svn://10.0.0.236/trunk@4913 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 19:44:56 +00:00
kipp
942da4bbb6 half attempt to build on unix
git-svn-id: svn://10.0.0.236/trunk@4908 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 18:21:12 +00:00
vidur
95e4fbc39d Fixed casting problems on Linux
git-svn-id: svn://10.0.0.236/trunk@4907 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 17:46:15 +00:00
cyeh
d4c96a9d4a fill out path when building MOZ_MEDIUM target. This looks like an
incorrect copy/paste of code.


git-svn-id: svn://10.0.0.236/trunk@4906 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 17:41:56 +00:00
buster
192406dc56 added an optimization that skips pass2 cell reflows when the new available width is unchanged
from the prior available width.  Some real-world test cases sped up
1-2 orders of magnitude for resize reflow.  Initial reflow is unchanged because
we still need to get pass1 metrics on all content.
fixed nsCSSBlockFrame.cpp to take margins into account when computing parent's available width
fixed distribution of excess space to table cells when table is bigger than the content it holds.
not quite finished yet, but better.


git-svn-id: svn://10.0.0.236/trunk@4905 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 17:40:56 +00:00
buster
10397594d9 now takew margins into account when computing parent's available width
git-svn-id: svn://10.0.0.236/trunk@4904 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 17:40:02 +00:00
cyeh
1c12a499e2 added "Couldn't find project file " error. This happens when a CW project
can't find the file to compile.


git-svn-id: svn://10.0.0.236/trunk@4903 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 17:26:48 +00:00
donm
fb81f23298 Approved by: Don Melton build bustage fixage.
git-svn-id: svn://10.0.0.236/trunk@4902 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 17:26:07 +00:00
sar
9af0d1543f add needed headers for mail/news. approved by don.
git-svn-id: svn://10.0.0.236/trunk@4901 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 17:25:37 +00:00
sar
3c19f144a0 wrapping mkcertld.h in ifdef MOZ_SECURITY to fix some breakage. approved by don. suggested by ricardob. corresponding fix in makefiles will come along soon.
git-svn-id: svn://10.0.0.236/trunk@4900 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 17:24:35 +00:00
donm
8fef0b686f approved by: Don Melton fixing build bustage.
git-svn-id: svn://10.0.0.236/trunk@4899 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 17:05:05 +00:00
pierre
122ed386c8 For some reason, the file previously checked-in was corrupted.
git-svn-id: svn://10.0.0.236/trunk@4898 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 10:40:54 +00:00
pierre
c4690718a0 Fixing MOZ_MEDIUM: build the right target in network.mcp
git-svn-id: svn://10.0.0.236/trunk@4897 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 10:21:58 +00:00
pierre
e8e75fab9e First Checked In.
git-svn-id: svn://10.0.0.236/trunk@4896 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 10:20:18 +00:00
pierre
cf14f98ad6 Fixing MOZ_MEDIUM: created two "mailnews" targets
git-svn-id: svn://10.0.0.236/trunk@4895 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 10:19:25 +00:00
rickg
5ec2e184eb major improvements to parser API's; fixed a few bugs
git-svn-id: svn://10.0.0.236/trunk@4894 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 08:14:22 +00:00
troy
5984f25221 Some work-in-progress for incremental reflow
git-svn-id: svn://10.0.0.236/trunk@4892 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 05:39:10 +00:00
fur
b601507a5e Use Types.h instead of more modern MacTypes.h so that we can build with CodeWarrior 2 on the Mac.
git-svn-id: svn://10.0.0.236/trunk@4891 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 04:11:53 +00:00
montulli
20e270f2b3 merge montulli1 branch with tip
git-svn-id: svn://10.0.0.236/trunk@4889 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 02:41:04 +00:00
pierre
b388d6f208 Mac MOZ_DARK
git-svn-id: svn://10.0.0.236/trunk@4888 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 02:38:19 +00:00
pierre
000a0cdc17 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@4887 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 02:24:28 +00:00
ricardob
fe2c9afdc2 fixed typo in free mail api
git-svn-id: svn://10.0.0.236/trunk@4886 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 02:01:55 +00:00
ricardob
ea6c1c8097 xfe free world changes
git-svn-id: svn://10.0.0.236/trunk@4884 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 01:38:15 +00:00
cmanske
da9cc14599 Part of fix for Composer SF1 in bug 148474. Reviewed by mjudge
git-svn-id: svn://10.0.0.236/trunk@4883 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 01:32:06 +00:00
akkana
d42d73c42b 226857: Normandy landing didn't include kini's notification center fix.
git-svn-id: svn://10.0.0.236/trunk@4882 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 01:31:12 +00:00
akkana
abfc075e28 BUG 224560: Stever's netlib checkin didn't fix the cookie persistence bug
on the XFE; he says we need to replace the GH_InitGlobalHistory with one
to NET_FinishInitNetLib.


git-svn-id: svn://10.0.0.236/trunk@4881 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 01:25:49 +00:00
cmanske
0be124206f Fixed Composer SF1 in bugs 26852, 123355, 148474, 233518. Reviewed by mjudge
git-svn-id: svn://10.0.0.236/trunk@4879 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 01:20:39 +00:00
cmanske
d0817b8097 New function declared as part of fix for SF1 in bug 26852. Reviewed by mjudge
git-svn-id: svn://10.0.0.236/trunk@4878 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 01:18:54 +00:00
ricardob
ad2308a031 Use MOZ_SECURITY
git-svn-id: svn://10.0.0.236/trunk@4877 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 01:15:11 +00:00
joki
922f48ccea Remove temporary setFocus() call. Focus shift moved to nsScrollingView
git-svn-id: svn://10.0.0.236/trunk@4876 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 01:14:28 +00:00
joki
642b35a5e1 Move scrolling event code into new event handler to keep it out of DOM loop
git-svn-id: svn://10.0.0.236/trunk@4875 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 01:13:09 +00:00
vidur
206737c1d6 Fixed casting problems on Linux
git-svn-id: svn://10.0.0.236/trunk@4874 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 01:10:21 +00:00
ricardob
8e67359d7b free world changes
git-svn-id: svn://10.0.0.236/trunk@4873 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 01:09:54 +00:00
jevering
26b3044dfc Use the new allocating ReplaceElementAt so that the context and style
stacks aren't sliding memory buffers all over the place (and over
allocating).


git-svn-id: svn://10.0.0.236/trunk@4859 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 00:29:59 +00:00
jevering
1aaeb9f146 Modified ReplaceElementAt to grow the array if an index out of the
allocated boundary was requested.


git-svn-id: svn://10.0.0.236/trunk@4858 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 00:28:56 +00:00
ricardob
e34f8d1521 added SOCKET_ERRNO for mail-news
git-svn-id: svn://10.0.0.236/trunk@4855 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 00:19:29 +00:00
kipp
7b08ae6046 Fixed some dom methods
git-svn-id: svn://10.0.0.236/trunk@4854 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 00:04:44 +00:00
kipp
54de62f7b7 Removed unneeded duplicate code
git-svn-id: svn://10.0.0.236/trunk@4853 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 00:04:26 +00:00
kipp
b3a82d5b57 First pass implementation of content insertion/deletion handling code (untested at this point); also did some misc cleanup
git-svn-id: svn://10.0.0.236/trunk@4852 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 00:04:12 +00:00
kipp
d341e19414 new
git-svn-id: svn://10.0.0.236/trunk@4851 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 00:02:42 +00:00
vidur
4b22c2900e Added nsINetContainerApplication interface and a way for netlib to get the user agent, etc. from the containing application
git-svn-id: svn://10.0.0.236/trunk@4850 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 23:56:46 +00:00
vidur
eedd12e63c Added nsINetContainerApplication interface and a way to get the user agent, etc. from the containing application
git-svn-id: svn://10.0.0.236/trunk@4849 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 23:56:20 +00:00
vidur
3723c3cdee Added window.navigator and Navigator interface
git-svn-id: svn://10.0.0.236/trunk@4848 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 23:55:40 +00:00
pinkerton
cb2127bb18 Columns now work again, after Normandy added mLastShowableColumn field. (bug #243547, appr don).
git-svn-id: svn://10.0.0.236/trunk@4847 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 23:47:06 +00:00
ricardob
a82eabfb8a added missing glyph 02070
git-svn-id: svn://10.0.0.236/trunk@4846 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 23:46:53 +00:00
ricardob
463038e496 Fixed mozilla call parametrs to compose new msg
git-svn-id: svn://10.0.0.236/trunk@4845 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 23:35:51 +00:00
thom
4ef089e668 Mac linux fix.
git-svn-id: svn://10.0.0.236/trunk@4844 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 23:31:42 +00:00
thom
eb30684bba Fixes for mac linux
git-svn-id: svn://10.0.0.236/trunk@4843 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 23:29:55 +00:00
blythe
2efd71c3c6 aprvd don, transparency fixes, dithering improvements, submitted by martin.nilsson@bigfoot.com
git-svn-id: svn://10.0.0.236/trunk@4842 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 23:10:18 +00:00
blythe
624c4e6369 aprvd don, fix 95 print scale problem, submitted by ajtal@ezlink.com
git-svn-id: svn://10.0.0.236/trunk@4840 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 22:50:42 +00:00
atotic
8336cedefe Fixed the for (PRInt32 i=) problem
git-svn-id: svn://10.0.0.236/trunk@4839 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 22:40:00 +00:00
atotic
6124ae0d42 Added a new export
git-svn-id: svn://10.0.0.236/trunk@4838 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 22:39:00 +00:00
valeski
c744b665a8 fixed cookies reset by server bug. 241770, approved by don
git-svn-id: svn://10.0.0.236/trunk@4837 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 22:36:44 +00:00
atotic
d1d35e3d54 Added nsDocLoader to theproject
git-svn-id: svn://10.0.0.236/trunk@4836 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 22:29:53 +00:00
troy
6b8fcf2004 Eliminated some usage of ChildAt()
git-svn-id: svn://10.0.0.236/trunk@4835 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 22:22:28 +00:00
kipp
3cc9a6fb23 Fixed up iframe layout (again)
git-svn-id: svn://10.0.0.236/trunk@4834 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 22:21:13 +00:00
thom
d3fa69c290 (scullin) fix for mac linux?
git-svn-id: svn://10.0.0.236/trunk@4831 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 21:16:14 +00:00
valeski
00950ed234 fixed netlib debug trace messages, approved by don
git-svn-id: svn://10.0.0.236/trunk@4828 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 21:07:28 +00:00
karnaze
53cf2c58ae more nav4 compatibility, radio group bug fixes
git-svn-id: svn://10.0.0.236/trunk@4825 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 20:11:57 +00:00
shaver
c00692bd31 forgot the NPL
git-svn-id: svn://10.0.0.236/trunk@4824 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 19:59:06 +00:00
beard
feeaf633f6 Fixed unintended assignment warning in lookup_member_by_id.
git-svn-id: svn://10.0.0.236/trunk@4823 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:58:29 +00:00
beard
546d7d594b Fixed unintended assignment warning in access_java_array_element.
git-svn-id: svn://10.0.0.236/trunk@4822 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:55:49 +00:00
atotic
f75efd0b13 Trimmed out some dead code
git-svn-id: svn://10.0.0.236/trunk@4821 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:49:35 +00:00
beard
9d8774e021 Added prototype for jsj_ConvertJavaStringToJSString.
git-svn-id: svn://10.0.0.236/trunk@4820 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:48:12 +00:00
beard
87f6d6e462 enter_js now static, since it had no external prototype.
git-svn-id: svn://10.0.0.236/trunk@4819 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:47:26 +00:00
beard
93f8eb2a1a define_JavaPackage now static since it had no external prototype.
git-svn-id: svn://10.0.0.236/trunk@4818 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:46:23 +00:00
beard
2a4bff8f61 JavaObject_getObjectOps now static since it had no external prototype.
git-svn-id: svn://10.0.0.236/trunk@4817 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:45:32 +00:00
beard
65dfe85d74 JavaClass_getObjectOps, jsj_new_JavaClass now static, since they had no external prototypes anyway.
git-svn-id: svn://10.0.0.236/trunk@4816 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:44:50 +00:00
gagan
e601145c2c Fixes the cache bug that was causing PR_ASSERTs to fire. (Fixes animated gifs too). See bug #226203,
#241297 (main) for details.


git-svn-id: svn://10.0.0.236/trunk@4815 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:44:28 +00:00
beard
10021cd9dc Made JavaArray_getObjectOps static to fix no prototype warning.
git-svn-id: svn://10.0.0.236/trunk@4814 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:43:16 +00:00
beard
f56b7bed0f Fixed unintended assignment warnings, made default_map_java_object_to_js_object static to fix no prototype warning.
git-svn-id: svn://10.0.0.236/trunk@4813 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:42:27 +00:00
atotic
61dd96b918 Ooops, forgot to check in full implementation
git-svn-id: svn://10.0.0.236/trunk@4812 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:40:46 +00:00
beard
618e21bd13 Removed some dead code.
git-svn-id: svn://10.0.0.236/trunk@4811 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:37:43 +00:00
vidur
e9cf900c9c Deal with NULL object case for parameters to methods
git-svn-id: svn://10.0.0.236/trunk@4810 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:36:59 +00:00
vidur
2e6a3bf88b Deal with NULL object case before asking if its an object
git-svn-id: svn://10.0.0.236/trunk@4809 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:32:35 +00:00
shaver
d72485a1e5 adding XPCOM interface support (non-functional) -- not part of Gromit
git-svn-id: svn://10.0.0.236/trunk@4808 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:18:00 +00:00
kipp
ec2ff1035a Fixed a js-stub generating problem with null's vs's objects (vidur told me what to type)
git-svn-id: svn://10.0.0.236/trunk@4807 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 17:00:18 +00:00
terry
fca689e773 Patch by Dawn Endico <dawn@cannibal.mi.org> -- add comment at top.
git-svn-id: svn://10.0.0.236/trunk@4806 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 13:53:28 +00:00
rpotts
4a68238526 Changed PR_ASSERT to NS_ASSERTION...
git-svn-id: svn://10.0.0.236/trunk@4805 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 12:25:49 +00:00
rpotts
f81e4d3483 Changed nsIStreamListener to nsIStreamObserver... First pass of changes for the Document Loader...
git-svn-id: svn://10.0.0.236/trunk@4804 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:34:00 +00:00
rpotts
344e29cf59 Changed to use the Document Loader instead of LoadURL(...)
git-svn-id: svn://10.0.0.236/trunk@4803 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:31:24 +00:00
rpotts
0f96131583 Fixed up Post data to avoid leaks...
git-svn-id: svn://10.0.0.236/trunk@4802 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:30:35 +00:00
rpotts
d6ef25d76d Added nsDocLoader.cpp...
git-svn-id: svn://10.0.0.236/trunk@4801 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:29:20 +00:00
rpotts
a93275bb44 Changed some interface methods to use NS_IMETHOD for consistancy...
git-svn-id: svn://10.0.0.236/trunk@4800 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:28:05 +00:00
rpotts
4f2d809c6b Changed nsIStreamListener to nsIStreamOBserver. Added the BindToDocument(...) method which is used by the DocumentLoader.
git-svn-id: svn://10.0.0.236/trunk@4799 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:27:06 +00:00
rpotts
66272b6db3 Added nsIDocumentLoader.h
git-svn-id: svn://10.0.0.236/trunk@4798 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:25:55 +00:00
rpotts
2d2875f4c9 Fixed up IID for nsIStreamListener
git-svn-id: svn://10.0.0.236/trunk@4797 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:24:10 +00:00
rpotts
210c8cb5c5 Split the nsIStreamListner interface into nsIStreamObserver and nsIStreamListener
git-svn-id: svn://10.0.0.236/trunk@4796 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:23:17 +00:00
rpotts
c9139d013b Changed sprintf(...) to PR_snprintf(...)
git-svn-id: svn://10.0.0.236/trunk@4795 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:22:25 +00:00
rpotts
e9b3947be4 Changed LoadURL(...) to StartDocumentLoad(...) TestAttributes.cpp TestInlineFrame.cpp
git-svn-id: svn://10.0.0.236/trunk@4794 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:21:41 +00:00
rpotts
6fefbee45b Reworked Post data to avoid memory leaks...
git-svn-id: svn://10.0.0.236/trunk@4793 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:18:39 +00:00
rpotts
e80a02583e Now uses nsIViewerContainer interface and the Document Loader...
git-svn-id: svn://10.0.0.236/trunk@4792 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:17:41 +00:00
rpotts
765a97fd10 Reworked Post data to avoid memory leaks... Removed nsIDocument::LoadURL(...). Added nsIDocument::StartDocumentLoad(...) as a callback method for the DocumentLoader...
git-svn-id: svn://10.0.0.236/trunk@4791 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:16:09 +00:00
rpotts
e79df5b7d0 Fix crash by checking whether a link handler was returned bu GetLinkHandler(...)
git-svn-id: svn://10.0.0.236/trunk@4790 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:15:20 +00:00
rpotts
e6b61670d4 Changed nsIStreamListener to nsIStreamObserver...
git-svn-id: svn://10.0.0.236/trunk@4789 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:11:44 +00:00
rpotts
e608595a3f Changed nsIStreamListener to nsIStreamObserver. Added BeginParse(...) method for the DocumentLoader...
git-svn-id: svn://10.0.0.236/trunk@4788 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:11:05 +00:00
rpotts
8d1882ed56 Fixed up IID for nsIStreamListener interface
git-svn-id: svn://10.0.0.236/trunk@4787 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 11:09:49 +00:00
fur
d4018e3656 If the same JSObject is reflected into Java more than once then we should
return the same Java object, both for efficiency and so that the '=='
operator works as expected in Java when comparing two JSObjects.
However, it is not possible to hold a reference to a Java object without
inhibiting GC of that object, at least not in a way that is portable
to all vendor's JVMs, i.e. a weak reference. So, for now, JSObject identity
is broken.


git-svn-id: svn://10.0.0.236/trunk@4782 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 06:11:39 +00:00
fur
fe603e369e Added equals() method to override java.lang.Object.equals(). This is
necessary because the '==' operator won't work with LC2.


git-svn-id: svn://10.0.0.236/trunk@4781 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 06:00:10 +00:00
wtc
a046f097da In _PR_MD_OPEN_DIR, we append \*.* to the directory name,
but if the directory name ends in a slash or backslash,
we do not append the backslash.
Files changed: ntio.c and w95io.c.


git-svn-id: svn://10.0.0.236/trunk@4780 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 05:13:10 +00:00
troy
a4008f60fb Some work-in-progress for incremental reflow
git-svn-id: svn://10.0.0.236/trunk@4779 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 04:55:15 +00:00
troy
e7ec0d1a2b Removed some vertical margin collapsing stuff that wasn't needed
git-svn-id: svn://10.0.0.236/trunk@4777 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 03:03:32 +00:00
brendan
cc6ce74501 - Remove duplicate error fprintf from js.c:Load.
- Revise exception handling runtime info (now called trynotes a la srcnotes)
  for more efficient loop control under JSOP_THROW.  Avoid all uses of catch
  and throw while at it, to make C++ lusers happy.
- Combine JSStackFrame.exception with rval, and rename
  JSStackFrame.exceptPending to be ...throwing.
- Optimize JS_TypeOfValue a bit.
- Name, control flow, whitespace, etc. cleanup.


git-svn-id: svn://10.0.0.236/trunk@4772 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 02:12:45 +00:00
kipp
bc2524278c Keep view around so that it moves properly
git-svn-id: svn://10.0.0.236/trunk@4767 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 00:54:54 +00:00
beard
69e8927cbd Changed jsj_HashJavaObject to conform to JSJHashFunction.
git-svn-id: svn://10.0.0.236/trunk@4766 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 00:21:18 +00:00
kipp
33f162ccc8 Revised logging code to work with nspr properly; updated to support incremental content appended reflow
git-svn-id: svn://10.0.0.236/trunk@4764 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 23:51:53 +00:00
kipp
a64c2b851a Added state recovery logic for FrameAppendedReflow (though it still reflows too much)
git-svn-id: svn://10.0.0.236/trunk@4763 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 23:51:26 +00:00
gagan
e2848f697b Fixes the great netlib initialization problem. NET_FinishInitNetLib was
never being called. Moved some stuff from NET_InitNetlib to this function.
See bug #231596 for details. Rev. by stever/valeski.


git-svn-id: svn://10.0.0.236/trunk@4762 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 23:48:14 +00:00
gagan
ba6e3a1e81 Fixes the great netlib initialization problem. NET_FinishInitNetLib was
never being called. See bug #231596.


git-svn-id: svn://10.0.0.236/trunk@4761 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 23:42:17 +00:00
kipp
9990bec890 Fixed memory overwrite bug
git-svn-id: svn://10.0.0.236/trunk@4760 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 23:37:35 +00:00
troy
4b6f9cce8d Changed reflow processing for floaters
git-svn-id: svn://10.0.0.236/trunk@4759 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 23:19:10 +00:00
beard
5959c9b500 #defined PR_IMPLEMENT for XP_MAC/XP_UNIX cases.
git-svn-id: svn://10.0.0.236/trunk@4744 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 22:18:23 +00:00
beard
35cfe6062d Fixed JSVAL_TO_JLONG_JVALUE macro for XP_MAC -- can't assign 0 directly to a jlong.
git-svn-id: svn://10.0.0.236/trunk@4743 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 22:17:19 +00:00
briano
6348093892 Support for SINIX-Z (x86) as well as SINIX-N (mips).
git-svn-id: svn://10.0.0.236/trunk@4742 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 22:15:47 +00:00
beard
16ea61e480 Added jsj_hash.c, turned on debugging by default.
git-svn-id: svn://10.0.0.236/trunk@4741 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 22:15:38 +00:00
briano
eac3161141 Support for NetBSD.
git-svn-id: svn://10.0.0.236/trunk@4740 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 22:14:55 +00:00
briano
38f24f1df5 Welcome to the club, NetBSD.
git-svn-id: svn://10.0.0.236/trunk@4739 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 22:13:11 +00:00
jevering
5edc77d9f9 Added the nsVoidArray support to the COtherDTD class.
git-svn-id: svn://10.0.0.236/trunk@4738 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 22:11:24 +00:00
ricardob
a33d1273aa Dont build ns_mime with no sec
git-svn-id: svn://10.0.0.236/trunk@4737 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 22:06:09 +00:00
troy
5eaf9b56bf Changed a XXX comment that was now out of date
git-svn-id: svn://10.0.0.236/trunk@4736 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 21:37:30 +00:00
jevering
e2038d6968 Changed the context stack and style stacks to be nsVoidArray to avoid
stack overflow.


git-svn-id: svn://10.0.0.236/trunk@4735 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 21:36:10 +00:00
troy
7002f99964 Changed anchor frames to forward content notifications to the real frame
git-svn-id: svn://10.0.0.236/trunk@4734 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 21:35:07 +00:00
kipp
3962528be4 Use new PropagateContentOffsets API
git-svn-id: svn://10.0.0.236/trunk@4733 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 20:22:44 +00:00
kipp
d6205b6157 Avoid crashing when no link handler is involved
git-svn-id: svn://10.0.0.236/trunk@4732 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 20:22:27 +00:00
kipp
381be9a9e1 update to new nsIInlineReflow API
git-svn-id: svn://10.0.0.236/trunk@4731 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 20:22:04 +00:00
kipp
434a14b512 Implement new PropagateContentOffsets to avoid looking at floaters
git-svn-id: svn://10.0.0.236/trunk@4730 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 20:21:57 +00:00
kipp
8a3fff4ae9 Pretend to map STYLE attributes back to strings to avoid crashing
git-svn-id: svn://10.0.0.236/trunk@4729 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 20:20:51 +00:00
kipp
ad35cb911a disabled calls to PropagateContentOffsets for now
git-svn-id: svn://10.0.0.236/trunk@4728 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 20:20:29 +00:00
kipp
c5d042d339 Pass attribute-to-string calls to superclass when it's an unkown attribute/type
git-svn-id: svn://10.0.0.236/trunk@4727 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 20:15:37 +00:00
kipp
b30632e73a Improved listing output
git-svn-id: svn://10.0.0.236/trunk@4726 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 20:14:33 +00:00
kipp
8a408fc3a8 Updated APIs
git-svn-id: svn://10.0.0.236/trunk@4725 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 20:14:16 +00:00
kipp
f824480796 Various pagination related bug fixes; pass in reflow command to FindTextRuns
git-svn-id: svn://10.0.0.236/trunk@4724 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 20:14:04 +00:00
kipp
20726b50dc Added aReflowCommand argument so that inline frames can properly determine what is triggering the TextRun discovery and properly avoid (or not avoid) creating new frames
git-svn-id: svn://10.0.0.236/trunk@4723 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 20:13:07 +00:00
buster
28ed0c4991 fixed-width cells no longer improperly impact the available size
of subsequent cells in reflow pass 1

we correctly distribute extra space in a table proportionately.
We try to give the extra space to auto-width columns first,
and if there are none we distribute it to all columns.
The percentage is based on the cell content's desired size.


git-svn-id: svn://10.0.0.236/trunk@4722 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 20:12:45 +00:00
kipp
8c86ab671a Reworked PropagateContentOffsets so that the update to the offsets is done by the frame itself instead of the child whacking the parent directly; this allows subclasses to override the whackage.
git-svn-id: svn://10.0.0.236/trunk@4721 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 20:12:23 +00:00
kipp
5f9fb5d239 Documented a bug
git-svn-id: svn://10.0.0.236/trunk@4720 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 20:11:34 +00:00
troy
f1abc17cde Added ContentDeleted() member function
git-svn-id: svn://10.0.0.236/trunk@4719 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 20:11:10 +00:00
jevering
bcf0aab923 Temporarily crank up the context stack size.. we are overrunning it.
I will put a growable stack in later.
This could be a security hole.


git-svn-id: svn://10.0.0.236/trunk@4715 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 18:23:21 +00:00
fur
09fea5f8fe = Replicate the JS engine machinery that gives the appearance of converting
all element access expressions to strings, e.g. so that obj["3"] and
  obj[3] refer to the same property for a JavaArray object.

= Return false when using 'delete' operator on JavaArray objects.


git-svn-id: svn://10.0.0.236/trunk@4714 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 18:18:03 +00:00
joki
175b270a7f Allow hex values in numbers
git-svn-id: svn://10.0.0.236/trunk@4712 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 18:12:40 +00:00
fur
88bc9aaf64 Return false when using the 'delete' operator on JavaClass or JavaObject objects.
git-svn-id: svn://10.0.0.236/trunk@4711 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 18:10:14 +00:00
terry
3cae29b636 Oops; left out one sentence.
git-svn-id: svn://10.0.0.236/trunk@4709 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 17:46:26 +00:00
terry
e21d22fea3 Add some explaination of what "the hook" is.
git-svn-id: svn://10.0.0.236/trunk@4708 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 17:39:57 +00:00
terry
7e41c4c394 Patch by Dawn Endico <dawn@cannibal.mi.org> -- cleaned up some
comments, added a README file.


git-svn-id: svn://10.0.0.236/trunk@4707 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 14:06:34 +00:00
fur
5bc94271e8 Eliminated the last uses of the JNIEnv global variable. Unfortunately, this
means that we had to switch from using NSPR hash tables to a private version.
The new jsj_hash.c file is derived from plhash.c, but it provides for an additional
argument to be passed to the hash key comparison function.  This capability
is used to pass in the JNIEnv pointer.

On shutdown, LiveConnect now removes all references to Java objects and classes,
so that the JVM might be able to GC them.


git-svn-id: svn://10.0.0.236/trunk@4706 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 10:04:32 +00:00
atotic
6b66b065a7 Added nsMacFile to the project
git-svn-id: svn://10.0.0.236/trunk@4705 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 09:04:26 +00:00
atotic
d956c44f83 Moved file implementation stuff into nsMacFile.cp
git-svn-id: svn://10.0.0.236/trunk@4704 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 09:03:51 +00:00
atotic
b65cd51bc2 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@4703 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 09:03:30 +00:00
atotic
86f2b8fdbc Code browser was inactive
git-svn-id: svn://10.0.0.236/trunk@4702 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 09:03:04 +00:00
atotic
29f3c2b7ec Real timer implementation
git-svn-id: svn://10.0.0.236/trunk@4701 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 09:01:11 +00:00
vidur
77fe01a990 Deal with hex values in numerical values
git-svn-id: svn://10.0.0.236/trunk@4696 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 02:23:59 +00:00
vidur
45d118ce09 Deal with hex values in numerical values
git-svn-id: svn://10.0.0.236/trunk@4694 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 02:18:05 +00:00
troy
1d0565bf04 Moved shrink wrap code from table frame to table row group frame
git-svn-id: svn://10.0.0.236/trunk@4693 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 02:11:07 +00:00
gagan
b578914a6f Fix for bug #226203. Setup Prefs was not being called.
git-svn-id: svn://10.0.0.236/trunk@4688 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 01:11:22 +00:00
atotic
2b3b67505c Upped the app memory partition to 5 megs
git-svn-id: svn://10.0.0.236/trunk@4685 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 00:52:43 +00:00
atotic
0360fc5b81 Added making of aliases to .SYM files in the viewer_debug directory.
git-svn-id: svn://10.0.0.236/trunk@4684 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 00:52:06 +00:00
buster
192935238f columns that are fixed-width due to an attribute on the corresponding cell in the first row
now work correctly.
extra space is now properly apportioned in the "table fits" case when the table contains auto-width cells.


git-svn-id: svn://10.0.0.236/trunk@4683 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 00:37:03 +00:00
ricardob
81dd8a938c updated rules
git-svn-id: svn://10.0.0.236/trunk@4682 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-30 00:04:44 +00:00
cmanske
a7a6b3c351 New artwork checkin for Composer toolbar and other images. Requested by brade
git-svn-id: svn://10.0.0.236/trunk@4681 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 23:53:40 +00:00
valeski
cf71d459fc 152993 approved by don, rev'd by Lou. fixes (debug builds only) a random crasher when posting data.
git-svn-id: svn://10.0.0.236/trunk@4677 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 22:29:52 +00:00
norris
8c66cb57c2 (Not part of Communicator build.)
fur's fix for repeating properties in enumeration bug.


git-svn-id: svn://10.0.0.236/trunk@4675 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 22:01:22 +00:00
norris
efab4ced7d (Not part of Communicator build.)
Handle NaNs better for non-PC platforms as well.


git-svn-id: svn://10.0.0.236/trunk@4674 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 22:00:11 +00:00
joki
b68afd8642 Small change to editor keyCode translation
git-svn-id: svn://10.0.0.236/trunk@4673 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 21:35:27 +00:00
joki
4f5389f76c Validity check for focus event during nsWindow destruction
git-svn-id: svn://10.0.0.236/trunk@4671 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 21:18:19 +00:00
buster
4028747412 cells no longer monkey with their available width based on attribute constraints.
The row does this work now. This makes table layout more properly top-down.


git-svn-id: svn://10.0.0.236/trunk@4670 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 20:38:22 +00:00
atotic
c5296c8b14 Forgot to check out libpwcac
git-svn-id: svn://10.0.0.236/trunk@4669 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 18:38:11 +00:00
terry
1b8454b4ec Oops; backed out last change. (I need to learn how to use CVS. :-)
git-svn-id: svn://10.0.0.236/trunk@4667 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 17:37:06 +00:00
terry
ac1101d225 Patches by Matthew Wilson <msw@gimp.org> -- added much of the missing configuration ability.
git-svn-id: svn://10.0.0.236/trunk@4666 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 16:21:41 +00:00
terry
e263a5365f Updated to reflect new config stuff introduced by Matthew Wilson <msw@gimp.org>
git-svn-id: svn://10.0.0.236/trunk@4665 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 16:20:46 +00:00
kipp
aafff5aeab Made sub/sup look more like navigator
git-svn-id: svn://10.0.0.236/trunk@4664 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 16:10:41 +00:00
kipp
f11c9d4401 Fixed bug where percentage width in an unconstrained situation was yielding a bad size
git-svn-id: svn://10.0.0.236/trunk@4663 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 16:09:44 +00:00
kipp
15cf5294da Condensed switch statement, treat sub/sup like other span tags
git-svn-id: svn://10.0.0.236/trunk@4662 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 16:08:57 +00:00
terry
097a96580e Patch by Artem Belevich <abelevic@ctron.com> -- don't choke so easily when parsing modules files.
git-svn-id: svn://10.0.0.236/trunk@4661 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 15:40:24 +00:00
buster
545749c070 minor tweaks for table layout
git-svn-id: svn://10.0.0.236/trunk@4660 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-29 03:09:14 +00:00
ramiro
ef1650b53f Generate and build the get_info programs only once to speed things up.
git-svn-id: svn://10.0.0.236/trunk@4657 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-28 10:56:03 +00:00
fur
eab84ce532 Aggressively track and release JNI local references to constructed
Java objects, because otherwise at least one JVM is reticent about
GC'ing them.


git-svn-id: svn://10.0.0.236/trunk@4656 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-28 07:53:04 +00:00
fur
4afcf18993 = Force result to zero when converting JS NaN to Java integral types.
= Aggressively track and release JNI local references to constructed
  Java objects, because otherwise at least one JVM is reticent about
  GC'ing them.


git-svn-id: svn://10.0.0.236/trunk@4655 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-28 07:52:23 +00:00
fur
60abeb293c Added toString() method for JavaPackage objects.
git-svn-id: svn://10.0.0.236/trunk@4654 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-28 07:51:27 +00:00
fur
64ba961948 Property deletion should be silent for ECMA-conformant versions of JS.
git-svn-id: svn://10.0.0.236/trunk@4653 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-28 07:50:47 +00:00
fur
94fedc809c Property deletion should be silent for ECMA-conformant versions of JS.
git-svn-id: svn://10.0.0.236/trunk@4652 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-28 07:39:58 +00:00
kipp
72b609913c Take text content and join it together so reduce the size of the content model
git-svn-id: svn://10.0.0.236/trunk@4651 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 22:57:52 +00:00
kipp
493f039a09 Use revised inline reflow status; fixed bug in pre-return status to indicate when continuations are needed after line breaks
git-svn-id: svn://10.0.0.236/trunk@4650 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 22:57:26 +00:00
kipp
d8cbf8103f Use revised inline reflow status
git-svn-id: svn://10.0.0.236/trunk@4649 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 22:56:59 +00:00
kipp
ace86ab545 Revised nsInlineReflowStatus to (a) use nsReflowStatus directly and to (b) seperate out completion and break status as orthogonal status
git-svn-id: svn://10.0.0.236/trunk@4648 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 22:56:09 +00:00
kipp
562f6ee466 Added NS_IS_REFLOW_ERROR; updated reflow status comment to indicate which bits are reserved by nsIFrame API's
git-svn-id: svn://10.0.0.236/trunk@4647 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 22:54:58 +00:00
beard
bfa75471f4 Added code that guarantees MRJ will be shutdown when the program exits.
git-svn-id: svn://10.0.0.236/trunk@4646 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 18:24:26 +00:00
atotic
9e5ef1500e OK, one more project typo
git-svn-id: svn://10.0.0.236/trunk@4644 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 03:24:33 +00:00
atotic
989d1592ba Ooooh, more directories are needed by checkout script
git-svn-id: svn://10.0.0.236/trunk@4642 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 03:07:26 +00:00
atotic
c9ca5d305a Bug fix for picking what you want to do
git-svn-id: svn://10.0.0.236/trunk@4641 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 02:50:12 +00:00
atotic
fb06985c98 That for (int i)... problem fix
git-svn-id: svn://10.0.0.236/trunk@4640 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 02:49:36 +00:00
atotic
10a86048e8 It builds and links
git-svn-id: svn://10.0.0.236/trunk@4639 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 02:49:08 +00:00
atotic
de08420b29 Another class reference inside class declaration problem
class A {
  void A:method
};
is bad


git-svn-id: svn://10.0.0.236/trunk@4638 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 02:48:39 +00:00
atotic
ddf76d4a60 Fixed mac warnings
git-svn-id: svn://10.0.0.236/trunk@4637 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 02:47:44 +00:00
atotic
de5bb38c01 Added/removed some files
git-svn-id: svn://10.0.0.236/trunk@4636 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 02:47:08 +00:00
atotic
332d1b7cbe Fixed the exports
git-svn-id: svn://10.0.0.236/trunk@4635 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 02:46:16 +00:00
atotic
bab4147ba1 More build fixes
git-svn-id: svn://10.0.0.236/trunk@4634 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 02:45:22 +00:00
atotic
5fef11e3ce First Checked In.
git-svn-id: svn://10.0.0.236/trunk@4631 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 01:28:36 +00:00
atotic
7c54f578d3 More build fixes
git-svn-id: svn://10.0.0.236/trunk@4630 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 01:26:41 +00:00
atotic
a2c3b797ef NetworkModular changes
git-svn-id: svn://10.0.0.236/trunk@4629 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 01:18:08 +00:00
atotic
5ca7fcdc5c MODULAR_NETLIB fixes for netlib
git-svn-id: svn://10.0.0.236/trunk@4628 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 00:16:36 +00:00
atotic
169f395747 MODULAR_NETLIB fixes for theMac
git-svn-id: svn://10.0.0.236/trunk@4627 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 00:14:34 +00:00
terry
fdd3fee1f5 Artem Belevich <abelevic@ctron.com> has provided absolutely wonderful
installation instructions.


git-svn-id: svn://10.0.0.236/trunk@4626 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-27 00:03:19 +00:00
atotic
3f1c3913f1 Making it compile on the Mac
git-svn-id: svn://10.0.0.236/trunk@4618 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:55:37 +00:00
atotic
cb8305eb86 Fixed the Mac build
git-svn-id: svn://10.0.0.236/trunk@4617 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:55:11 +00:00
atotic
0e21a5e5ab Moved MacBinSupport to network project, fixed more imglib stuff
git-svn-id: svn://10.0.0.236/trunk@4616 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:54:31 +00:00
atotic
d574fb0cb4 Fixing up the imglib project
git-svn-id: svn://10.0.0.236/trunk@4615 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:53:58 +00:00
sman
c9c79c527a Whether or not we compile CALENDAR, we still want to image VCARDs.
Had to move a define 2 lines down to make this happen.


git-svn-id: svn://10.0.0.236/trunk@4614 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:43:04 +00:00
atotic
8b55892494 Removed MacBinSupport from the list of exportable headers
git-svn-id: svn://10.0.0.236/trunk@4613 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:42:00 +00:00
atotic
2f3828e7a8 Remove NavigatorStubs dependency
Added new targets (JavaScriptNoJSJ$D) to build JavaScript without JSJ dependency.


git-svn-id: svn://10.0.0.236/trunk@4611 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:37:04 +00:00
atotic
8b49e55a21 Implemented MyReadLocation inline to remove the NavigatorStubs dependency
git-svn-id: svn://10.0.0.236/trunk@4610 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:35:01 +00:00
buster
3b31c107da support for Nav4 compatibility -- auto-width cells with 0-width content are 1 pixel wide
git-svn-id: svn://10.0.0.236/trunk@4609 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:31:33 +00:00
atotic
ad145690b3 Moved to mozilla/network/main
git-svn-id: svn://10.0.0.236/trunk@4608 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:31:02 +00:00
atotic
e7755f506e Moved MacBinSupport to network project
git-svn-id: svn://10.0.0.236/trunk@4606 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:21:36 +00:00
atotic
27d6dc3afe Moved MacBinSupport to network from the main client project
git-svn-id: svn://10.0.0.236/trunk@4605 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:20:56 +00:00
scullin
cf28176dc2 Added missing library for Linux.
git-svn-id: svn://10.0.0.236/trunk@4604 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:16:18 +00:00
atotic
645c73eb32 Moved MacBinary support where it is used (netlib) from the old
location mozilla/cmd/macfe/utility/


git-svn-id: svn://10.0.0.236/trunk@4603 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:15:40 +00:00
atotic
49743eaff7 More exports are needed for Raptor
git-svn-id: svn://10.0.0.236/trunk@4602 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:02:03 +00:00
atotic
b2747fec01 Moved libimg out of a main project into a static library
git-svn-id: svn://10.0.0.236/trunk@4601 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 22:55:18 +00:00
atotic
671152c9ac Made libimg and png part of the build.
git-svn-id: svn://10.0.0.236/trunk@4600 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 22:49:58 +00:00
atotic
689e0d3897 Fixing up the imglib project
git-svn-id: svn://10.0.0.236/trunk@4599 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 22:49:26 +00:00
atotic
7c0c96c740 Alias optimization in MakeAlias: if correct alias already exists, do not create a new one.
git-svn-id: svn://10.0.0.236/trunk@4597 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 22:28:20 +00:00
vidur
e9b72399a1 Added code to relative->absolute URL conversion path to deal with .. and . in the path
git-svn-id: svn://10.0.0.236/trunk@4596 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 22:09:18 +00:00
vidur
7f1d93488b Fail if the FirstWrite for the image returns an error
git-svn-id: svn://10.0.0.236/trunk@4595 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 22:08:03 +00:00
wtc
481c4718e5 Bug #180965: Mac gets PR_IO_PENDING_ERROR. In
SendReceiveStream and SendReceiveDgram, make
sure that we set the io_pending flag of the current
thread to PR_FALSE before we return.
In gethostbyname(), just store the OS error code in
me->md.osErrCode.  Do not call macsock_map_error()
to map to NSPR error code.


git-svn-id: svn://10.0.0.236/trunk@4588 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 20:24:25 +00:00
terry
a5ff6897c0 More patches from Matthew Wilson <msw@gimp.org> -- keep popup layer location; quote some URLs better.
git-svn-id: svn://10.0.0.236/trunk@4587 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 19:00:22 +00:00
troy
85ae51a4b3 Changed absolutely positioned elements to have the body as their
geometric parent


git-svn-id: svn://10.0.0.236/trunk@4586 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 18:49:30 +00:00
terry
6e9e47a27c Use time2str instead of ctime; ctime seems to return different things on different systems.
git-svn-id: svn://10.0.0.236/trunk@4585 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 18:37:51 +00:00
terry
64dbc6721a Patch from Matthew Wilson <msw@gimp.org> -- keep the popup layer in a reasonable place on the screen.
git-svn-id: svn://10.0.0.236/trunk@4584 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 18:12:08 +00:00
kipp
abfe3d303b Removed PutCachedData(etc) API from nsIPresShell
git-svn-id: svn://10.0.0.236/trunk@4582 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 16:26:24 +00:00
kipp
49464f4fc7 Removed spurious includes of nsIPresShell
git-svn-id: svn://10.0.0.236/trunk@4581 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 16:23:48 +00:00
kipp
866b1583c9 Make a title object that's a child of the head when we get a title
git-svn-id: svn://10.0.0.236/trunk@4580 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 16:12:51 +00:00
kipp
8a60c93be8 Added NS_NewHTMLComment and NS_NewHTMLTitle
git-svn-id: svn://10.0.0.236/trunk@4579 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 16:12:22 +00:00
kipp
0b12f1c173 new
git-svn-id: svn://10.0.0.236/trunk@4578 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 16:11:41 +00:00
kipp
9da360fb43 new files
git-svn-id: svn://10.0.0.236/trunk@4577 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 16:11:26 +00:00
terry
f43e17d413 Patch from Matthew Wilson <msw@gimp.org> -- was not parsing dates correctly.
git-svn-id: svn://10.0.0.236/trunk@4576 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 16:02:03 +00:00
terry
6629a8d833 Patch from Artem Belevich <ABelevic@ctron.com> -- greatly increase speed when rebuilding database by caching everything. Probably makes the runtime huge, but who cares?
git-svn-id: svn://10.0.0.236/trunk@4574 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 15:42:01 +00:00
kipp
6d26e61d89 Updated for irix
git-svn-id: svn://10.0.0.236/trunk@4573 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 15:31:45 +00:00
kipp
4593b1d8dd Removed stale reference to nsHTMLMeta
git-svn-id: svn://10.0.0.236/trunk@4572 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 15:15:58 +00:00
kipp
f6b5d7af28 Link new content library in
git-svn-id: svn://10.0.0.236/trunk@4571 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 15:12:06 +00:00
kipp
c70ccbc299 Removed obsolete justify-reflow method
git-svn-id: svn://10.0.0.236/trunk@4570 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 15:11:53 +00:00
kipp
465ae2a4de Added content directory and moved some code
git-svn-id: svn://10.0.0.236/trunk@4569 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 15:08:55 +00:00
kipp
410a0c4bb2 Eliminated IRIX compiler warnings (and a bug)
git-svn-id: svn://10.0.0.236/trunk@4568 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 15:07:09 +00:00
dcone
dbc3bfcab0 Blending now uses the Upper left to place the source image
git-svn-id: svn://10.0.0.236/trunk@4566 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 14:06:34 +00:00
ramiro
bc225f01f6 Fix the linux motif/glibc config problems once and for all. Build a small
test program to find out if we are using gnu libc2.  Build a small test
program to determine the version of motif/lesstif being used.  Use the
output of these to set flags used in the xfe.  See config/Makefile for
comments.


git-svn-id: svn://10.0.0.236/trunk@4563 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 12:20:30 +00:00
fur
38185cca7b Tweaked error messages and comments.
git-svn-id: svn://10.0.0.236/trunk@4562 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 06:46:15 +00:00
fur
c74bb371ca Store overloaded methods in the same order as they arrive from the JVM, so
that overloaded method resolution works the same as before, although probably
only with the Sun JVM, because this order isn't specified anywhere.


git-svn-id: svn://10.0.0.236/trunk@4561 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 06:45:04 +00:00
peterl
8d43a01b94 fixed dumping style contexts
git-svn-id: svn://10.0.0.236/trunk@4560 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 05:52:40 +00:00
peterl
9571138f52 added ! important support
git-svn-id: svn://10.0.0.236/trunk@4559 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 05:51:55 +00:00
peterl
dcad152f0b fixed equal weight rule ordering
git-svn-id: svn://10.0.0.236/trunk@4558 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 05:50:10 +00:00
peterl
75f693e437 fixed context dumping
git-svn-id: svn://10.0.0.236/trunk@4557 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 05:49:01 +00:00
fur
b2ea090c2b When running in ECMA-compatibility mode, silently ignore attempts to delete
properties of JavaArray objects.


git-svn-id: svn://10.0.0.236/trunk@4556 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 05:44:02 +00:00
pierre
f78a2c806d getting prepared for MOZ_DARK
git-svn-id: svn://10.0.0.236/trunk@4555 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 04:20:29 +00:00
pierre
a4ea2629bd added comments from other '.pl' files
git-svn-id: svn://10.0.0.236/trunk@4554 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 04:19:47 +00:00
pierre
0f66720816 For some reason, this file was not landed yesterday. Fixing that...
git-svn-id: svn://10.0.0.236/trunk@4553 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 03:28:26 +00:00
pierre
05614074d3 Fix bad landing of binary files
git-svn-id: svn://10.0.0.236/trunk@4552 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 03:08:50 +00:00
kipp
7f636c5180 Made blink act more like bold
git-svn-id: svn://10.0.0.236/trunk@4551 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 01:12:32 +00:00
buster
9c71826ed6 fixed some nested table bugs and made some minor adjustments to Kipp's new line layout code.
git-svn-id: svn://10.0.0.236/trunk@4550 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 00:48:44 +00:00
sar
b23516e974 per spider, approved by montulli
include config.mak to make sure that MOZ_MAIL_NEWS definition makes sense.
This is to fix MOZ_DARK link error.


git-svn-id: svn://10.0.0.236/trunk@4549 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 00:43:24 +00:00
kipp
8b57280e24 Removed gratuitous if's
git-svn-id: svn://10.0.0.236/trunk@4548 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 00:31:44 +00:00
spider
d2ee8b1e43 Bitmap on trunk never made it in Normandy merge... MOZ_DARK only
git-svn-id: svn://10.0.0.236/trunk@4547 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 00:22:20 +00:00
timm
9ca001f79e fix trace to be var args
git-svn-id: svn://10.0.0.236/trunk@4545 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 23:46:39 +00:00
pierre
cff1eb4400 #176047. Reverted bad code introduced in Nova -> Normandy -> Gromit generating frequent crashes.
git-svn-id: svn://10.0.0.236/trunk@4544 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 23:40:06 +00:00
kipp
e1321a1af8 Bug fix for loading www.espn.com; the reflow-command wasn't getting passed down appropriately when the image size update occured.
git-svn-id: svn://10.0.0.236/trunk@4543 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 23:35:53 +00:00
spider
4a14093166 MOZ_DARK build fix
git-svn-id: svn://10.0.0.236/trunk@4542 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 23:18:11 +00:00
kipp
2b85e97019 Added code to giving floating children a width to reflow into when they don't specify one themselves
git-svn-id: svn://10.0.0.236/trunk@4540 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 23:09:04 +00:00
vidur
dc5b85be54 Hooked up SCRIPT tag evaluation. Added the nsIScriptContextOwner interface.
git-svn-id: svn://10.0.0.236/trunk@4539 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 22:26:52 +00:00
kipp
da3ed94619 Fixed images/form-elements in tables being incorrectly positioned by preventing nested body's from pre-maturely DidReflowing their children
git-svn-id: svn://10.0.0.236/trunk@4538 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 22:26:35 +00:00
vidur
cf184906ab Hooked up SCRIPT tag evaluation.
git-svn-id: svn://10.0.0.236/trunk@4537 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 22:26:20 +00:00
vidur
e3e4d2ffbb Added the nsIScriptContextOwner.h to aid in SCRIPT tag evaluation
git-svn-id: svn://10.0.0.236/trunk@4536 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 22:25:39 +00:00
michaelp
a6474a3611 removed flushgc in setfont.
git-svn-id: svn://10.0.0.236/trunk@4535 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 22:20:30 +00:00
kmcclusk
2cf6f5a9c9 Added libnglcsslay_s library to link against
git-svn-id: svn://10.0.0.236/trunk@4534 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 22:11:05 +00:00
timm
518061b72e change 'debug' to a static
git-svn-id: svn://10.0.0.236/trunk@4533 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 22:05:51 +00:00
spider
451d946237 Perf improvement...
git-svn-id: svn://10.0.0.236/trunk@4532 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 21:42:39 +00:00
timm
97cd879894 added trace facility
git-svn-id: svn://10.0.0.236/trunk@4531 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 21:39:35 +00:00
kipp
1eab3719eb Change ParseColor to be more compatible with navigator
git-svn-id: svn://10.0.0.236/trunk@4530 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 21:37:07 +00:00
kipp
5f67ed05d3 Support text attribute in body tags
git-svn-id: svn://10.0.0.236/trunk@4529 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 21:36:51 +00:00
kipp
f7cd4556fb Use different (implicit copy) constructor to get proper reason passed through for better handling of incremental reflow
git-svn-id: svn://10.0.0.236/trunk@4528 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 21:11:12 +00:00
montulli
bad847c57a fix purify warning
git-svn-id: svn://10.0.0.236/trunk@4527 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 20:58:07 +00:00
kipp
a5e669bb29 Better handling of incremental reflow commands that pass through the block/inlines; it also makes sure that the incremental reflow happens only once, even if the frame is reflowed more than once.
git-svn-id: svn://10.0.0.236/trunk@4526 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 20:51:04 +00:00
ricardob
e30366bfb1 change to compliment 22087
git-svn-id: svn://10.0.0.236/trunk@4523 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 20:09:03 +00:00
ricardob
f88736bac8 trying to fix compile error for HG22087 with rosetta.h
git-svn-id: svn://10.0.0.236/trunk@4522 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 20:03:52 +00:00
kipp
a65d313301 Rework the way that bullets are detected; this fixes up the http://client/nova page
git-svn-id: svn://10.0.0.236/trunk@4521 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 19:02:15 +00:00
spider
36ab8f1482 fixed.
git-svn-id: svn://10.0.0.236/trunk@4520 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 18:43:50 +00:00
kipp
d768b1fc02 Link html .so properly
git-svn-id: svn://10.0.0.236/trunk@4517 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 18:38:59 +00:00
kipp
733cd2f24b Fixed library name
git-svn-id: svn://10.0.0.236/trunk@4516 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 18:38:40 +00:00
mccabe
4722c241c8 (Not part of the client build.)
Parenthesized assignment-in-conditional to quiet gcc compiler warning.


git-svn-id: svn://10.0.0.236/trunk@4513 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 18:36:53 +00:00
mccabe
3a9f94eeae Extend #ifdef SHELL_HACK from recent fix to 187538 (mistakenly 187537)
to avoid compiler warning on defined-but-unused 'Exec'.


git-svn-id: svn://10.0.0.236/trunk@4512 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 18:34:13 +00:00
michaelp
38592a6b8d killed commented hackyfontname junk. removed malloc()/free(), etc. from unichar
text measurement.


git-svn-id: svn://10.0.0.236/trunk@4511 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 18:27:26 +00:00
atotic
2f3716ca23 Making it compile on the Mac
git-svn-id: svn://10.0.0.236/trunk@4510 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 18:25:36 +00:00
atotic
1799bff666 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@4509 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 18:24:18 +00:00
atotic
ddb5399fbe First Checked In.
git-svn-id: svn://10.0.0.236/trunk@4508 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 18:17:36 +00:00
atotic
5fc112b33b Keeping projects up to date
git-svn-id: svn://10.0.0.236/trunk@4507 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 18:01:28 +00:00
atotic
3028d48c7d More mac build work
git-svn-id: svn://10.0.0.236/trunk@4506 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 18:01:11 +00:00
atotic
d823427289 Making it compile & run....
git-svn-id: svn://10.0.0.236/trunk@4505 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 18:00:52 +00:00
atotic
e5e63e85fe More defines for Raptor
git-svn-id: svn://10.0.0.236/trunk@4504 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 17:59:42 +00:00
atotic
dc337feee7 New DOM manifests
git-svn-id: svn://10.0.0.236/trunk@4503 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 17:59:26 +00:00
gordon
5033963d20 Bug #188317, approved by Don Melton. Removing the setting of the CLASSPATH environment variable from the 'Envi' 128 resource so we use the default classpath provided by lj_GrovelForClasses() instead.
git-svn-id: svn://10.0.0.236/trunk@4502 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 17:29:27 +00:00
kipp
aaf9103f63 Work around infinite-width bug by not passing down an infinite width to a block child of a block
git-svn-id: svn://10.0.0.236/trunk@4500 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 17:26:40 +00:00
kipp
8589831de4 Fixed irix build bustage
git-svn-id: svn://10.0.0.236/trunk@4499 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 17:23:32 +00:00
kipp
b640ec4e66 Fixed unix makefile
git-svn-id: svn://10.0.0.236/trunk@4497 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 16:58:59 +00:00
kipp
462705c804 Support menu on print-preview window
git-svn-id: svn://10.0.0.236/trunk@4496 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 16:33:11 +00:00
kipp
55b2683b92 New and improved (?) line layout
git-svn-id: svn://10.0.0.236/trunk@4495 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 16:33:10 +00:00
spider
c76e6db235 Attempt to fix Solaris bustage
git-svn-id: svn://10.0.0.236/trunk@4494 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 16:25:15 +00:00
norris
d1f93f089d (Not part of Communicator build.)
Fix GC bug involving load().


git-svn-id: svn://10.0.0.236/trunk@4493 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 15:56:19 +00:00
dcone
739975230a added the offset for blending, and a routine to save off bits
git-svn-id: svn://10.0.0.236/trunk@4492 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 15:07:31 +00:00
kipp
a434431b96 Revised page size computation
git-svn-id: svn://10.0.0.236/trunk@4491 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 15:05:35 +00:00
kipp
fb607410da Removed include of stdio.h
git-svn-id: svn://10.0.0.236/trunk@4490 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 15:03:49 +00:00
kipp
55e3a7b15c Assign values to reflow reason so that when printing them numerically it's easier to map the integer back to the enum
git-svn-id: svn://10.0.0.236/trunk@4489 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 15:03:37 +00:00
kipp
5d74b31feb Added missing include line; minor tidy up as well
git-svn-id: svn://10.0.0.236/trunk@4488 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 15:01:13 +00:00
kipp
b99656a4f5 Init mSink
git-svn-id: svn://10.0.0.236/trunk@4487 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 14:58:46 +00:00
kipp
9cd3ec0d05 Made unknown image size be 1,1 twips instead of 0,0 so that other code doesn't eliminate images; added left and right margins around floating images ala ebina
git-svn-id: svn://10.0.0.236/trunk@4486 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 14:56:46 +00:00
kipp
d2b8ec4315 Added CreateFrame method
git-svn-id: svn://10.0.0.236/trunk@4485 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 14:55:15 +00:00
kipp
4760c13c27 Added the same skip-over-non-body-content code that's in the root content frame code
git-svn-id: svn://10.0.0.236/trunk@4484 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 14:53:45 +00:00
kipp
5d9ce13196 Init refcnt so that it behaves properly
git-svn-id: svn://10.0.0.236/trunk@4483 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 14:51:48 +00:00
spider
aa9d1e5eb1 Fix build bustage for routine not available in modular world
git-svn-id: svn://10.0.0.236/trunk@4481 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 08:52:31 +00:00
spider
5717a9f052 mkabook needed for Mail/News only
git-svn-id: svn://10.0.0.236/trunk@4480 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 08:47:25 +00:00
spider
085a502492 a little cleanup for unix.
git-svn-id: svn://10.0.0.236/trunk@4479 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 05:54:12 +00:00
spider
d56dcfe52f NORMANDY_DDAY merge...
git-svn-id: svn://10.0.0.236/trunk@4478 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 05:50:45 +00:00
gagan
9039d5a21d Not is the build yet.
git-svn-id: svn://10.0.0.236/trunk@4477 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 05:44:21 +00:00
spider
a92180be2c once again runs under unix.
git-svn-id: svn://10.0.0.236/trunk@4476 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 05:39:02 +00:00
spider
b602c75268 once again runs under linux.
git-svn-id: svn://10.0.0.236/trunk@4475 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 05:37:54 +00:00
spider
1d875e2e40 fixed build errors.
git-svn-id: svn://10.0.0.236/trunk@4474 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 04:59:17 +00:00
michaelp
c0d17b54f9 added init() method to prescontext.
creator of prescontext is responsible for initializing pres context.
devicecontext is now init()ed with a nsNativeWidget.
removed hacky X Display stuff from device context and font metrics.
removed hacky code from windows font metrics.
changed nsNativeWindow to be nsNativeWidget.
added more code for compositor back-to-front pass.
improved text performance on X.
changed nsHTMLTagContent.cpp so that it will build with MSVC 4.1.


git-svn-id: svn://10.0.0.236/trunk@4472 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 04:24:45 +00:00
michaelp
d68195318d fixed build.
git-svn-id: svn://10.0.0.236/trunk@4469 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 03:25:22 +00:00
timm
5daf4bc516 change to use images instead of text
git-svn-id: svn://10.0.0.236/trunk@4466 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 03:16:42 +00:00
timm
1cdf28e6e1 new images
git-svn-id: svn://10.0.0.236/trunk@4464 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 03:16:03 +00:00
friedman%netscape.com
448f35b3b4 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@4462 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 02:20:13 +00:00
mccabe
d40b3992ac Fix to 187537. The 'assign' hack was interacting with the 'shell
command' hack - the resolver defined by js.c would get called to look
up 'assign' - and on Irix systems, it would find the 'assign' command
in the current path, and decide to define a function called 'assign'
in the global object that would run the assign command.  Then when an
attempt was made to assign a property to the global object, the assign
command would get run, and unexpected behavior followed.


git-svn-id: svn://10.0.0.236/trunk@4461 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 02:07:13 +00:00
root
ba61bdc750 initial checkin
git-svn-id: svn://10.0.0.236/trunk@4460 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 02:05:56 +00:00
root
68a9bd6bba initial checkin
git-svn-id: svn://10.0.0.236/trunk@4459 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 02:05:55 +00:00
jevering
210ccda853 Added the new debug file.
git-svn-id: svn://10.0.0.236/trunk@4458 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 01:58:55 +00:00
jevering
df9a6e8401 Removed parser's knowledge of the Parser Debugger.
The Parser debugger has been moved out and renamed to DTDDebugger since this actually what it is doing.
I cant totally remove the DTDDebugger parameter passed to the parser under the DTD creation is somehow moved from the parser.


git-svn-id: svn://10.0.0.236/trunk@4456 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 01:42:50 +00:00
timm
68e604e881 fix busted javascript
git-svn-id: svn://10.0.0.236/trunk@4449 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 00:05:44 +00:00
kmcclusk
5e26d51304 Changed the name of the WEB_WIDGET DLL to match unix name
git-svn-id: svn://10.0.0.236/trunk@4448 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 00:03:56 +00:00
kmcclusk
eb75a2c002 Fixed PRInt16 cast
git-svn-id: svn://10.0.0.236/trunk@4446 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 23:58:59 +00:00
kmcclusk
a82aee8e6e fix 16bit visuals
git-svn-id: svn://10.0.0.236/trunk@4442 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 22:51:16 +00:00
blythe
c2f2f0c743 aprvd don, bitmap changes from martin.nilsson@bigfoot.com - no more political arguments over bitmaps
git-svn-id: svn://10.0.0.236/trunk@4441 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 22:37:46 +00:00
troy
c792cab9c2 Added some asserts to the incremental reflow code
git-svn-id: svn://10.0.0.236/trunk@4440 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 22:05:59 +00:00
timm
ef8075f2b3 123505 remove case dependency
git-svn-id: svn://10.0.0.236/trunk@4438 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 21:51:04 +00:00
kmcclusk
4ef63b0456 Added code to allow more than one top-level window.
git-svn-id: svn://10.0.0.236/trunk@4435 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 21:12:39 +00:00
buster
49fc78ed8a fixed some bugs related to rowspans. This gets us closer on pages like Mozilla.org that were getting wild table heights.
git-svn-id: svn://10.0.0.236/trunk@4429 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 19:13:19 +00:00
troy
baaf01afc1 Changed to make sure we set the (x,y) for the frame before we reflow it
git-svn-id: svn://10.0.0.236/trunk@4424 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 18:09:47 +00:00
kipp
76c90bc42c snapshot
git-svn-id: svn://10.0.0.236/trunk@4423 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 17:52:42 +00:00
scullin
fb1436ff0e Memory fixes from my branch.
git-svn-id: svn://10.0.0.236/trunk@4422 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 17:38:21 +00:00
atotic
25d01cc00e Fixed the exports
git-svn-id: svn://10.0.0.236/trunk@4421 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 17:37:49 +00:00
troy
344f630d8d Changed to make sure we link the child frame into the list of frames before
we reflow it


git-svn-id: svn://10.0.0.236/trunk@4420 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 16:35:21 +00:00
clu
6a86699f96 #145304 and #145305; reviewed by saari; approved by scc.
added two fields in CEDTableContain to prefill rows and cols.


git-svn-id: svn://10.0.0.236/trunk@4419 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 15:46:15 +00:00
clu
77a64a0436 #145304 and #145305; reviewed by sarri; approved by scc.
fixed table format dialog so that it pre-fills rows and cols.  Also fixed the crashing bug caused by hitting enter, return, or escape.


git-svn-id: svn://10.0.0.236/trunk@4418 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 15:42:47 +00:00
fur
d322c107cd Conversion to a primitive now results in a string value, even with a
hint of JSTYPE_NUMBER.  This is a case that nobody cares about, but it's
used in a LiveConnect test case.

Added more registered Java packages for reduced server-roundtrips.  Also,
loosened restrictions on accessing unregistered packages under "java" and
some of the other packages, in case Sun or somebody adds a "java.fooBar"
package.


git-svn-id: svn://10.0.0.236/trunk@4398 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 05:47:46 +00:00
fur
a572d8d419 Allow closures when the JS version is JSVERSION_DEFAULT.
git-svn-id: svn://10.0.0.236/trunk@4395 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 05:37:44 +00:00
fur
a36a121a82 Fix bug in which leaving the JS version as JSVERSION_DEFAULT would return
all enumerated property names as strings, as was the case in JS1.1, instead
of the modern (>=JS1.2) behavior of allowing either string or integer property
names.


git-svn-id: svn://10.0.0.236/trunk@4394 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 05:36:46 +00:00
troy
45ccdb4fb7 Some incremental reflow changes
git-svn-id: svn://10.0.0.236/trunk@4391 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 04:38:52 +00:00
troy
9451bc42a8 Work around for the case where a content change notification has
no corresponding frame in the frame hierarchy


git-svn-id: svn://10.0.0.236/trunk@4390 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 04:37:11 +00:00
fur
7f94e92383 Ignore generated files
git-svn-id: svn://10.0.0.236/trunk@4388 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 03:18:48 +00:00
fur
f42952dbf1 Files moved to liveconnect/macbuild subdir
git-svn-id: svn://10.0.0.236/trunk@4386 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 03:09:57 +00:00
beard
894dc59a2f Updated Mac build instructions.
git-svn-id: svn://10.0.0.236/trunk@4384 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 02:44:30 +00:00
beard
83d8209393 Turned off LIVECONNECT for default case.
git-svn-id: svn://10.0.0.236/trunk@4382 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 02:25:36 +00:00
beard
ab046e8823 Made JavaSession stuff conditional on LIVECONNECT.
git-svn-id: svn://10.0.0.236/trunk@4381 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 02:24:58 +00:00
beard
7a57954a31 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@4380 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 02:20:45 +00:00
beard
2866a9403e builds standalone JS shell, without LiveConnect.
git-svn-id: svn://10.0.0.236/trunk@4379 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 02:15:02 +00:00
atotic
99d58d1f50 More compile fixes
git-svn-id: svn://10.0.0.236/trunk@4378 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 01:45:16 +00:00
atotic
ebb4953de4 More defines for Raptor
git-svn-id: svn://10.0.0.236/trunk@4377 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 01:45:00 +00:00
atotic
230cdbbd39 More project fixes
git-svn-id: svn://10.0.0.236/trunk@4376 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 01:44:20 +00:00
atotic
731abceda1 Making it compile on the Mac
git-svn-id: svn://10.0.0.236/trunk@4374 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 01:43:10 +00:00
atotic
16e158b38e First Checked In.
git-svn-id: svn://10.0.0.236/trunk@4372 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 01:41:16 +00:00
atotic
16d5dda6f2 Making it compile & run....
git-svn-id: svn://10.0.0.236/trunk@4371 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 01:37:58 +00:00
atotic
0cdb0a8059 Fixed the following Mac compile error:
Error   : inconsistent linkage: 'extern' object redeclared as 'static'
nsNetService.cpp line 292   {



git-svn-id: svn://10.0.0.236/trunk@4369 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 01:17:51 +00:00
buster
33a90e073e now tables with precent width nested within tables with auto width work
git-svn-id: svn://10.0.0.236/trunk@4366 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 00:40:33 +00:00
brade
f4f56933fc first pass at #122807
git-svn-id: svn://10.0.0.236/trunk@4364 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 00:34:50 +00:00
joki
842aa4055d Focus method modification for editor.
git-svn-id: svn://10.0.0.236/trunk@4363 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 00:30:41 +00:00
joki
0d600c0e19 Adding editor mode to the viewer
git-svn-id: svn://10.0.0.236/trunk@4362 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 00:29:00 +00:00
brade
33fd8d0516 [clu] #72864; reviewed brade; approved don.
changed the icon resource number in Selection Contains Link dialog.


git-svn-id: svn://10.0.0.236/trunk@4359 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-24 00:06:36 +00:00
jgellman
b4e140c36a added empty file on tip before adding to branch
git-svn-id: svn://10.0.0.236/trunk@4353 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 23:41:03 +00:00
norris
ded6dd1b99 (Not part of Communicator build)
Fix warning for unspecified prototype.


git-svn-id: svn://10.0.0.236/trunk@4350 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 23:28:36 +00:00
buster
fe4ba8793e lots of nested tables look much better
misc. nav4 compatibility enhancements
added the ability to QueryInterface for some specific table frame types


git-svn-id: svn://10.0.0.236/trunk@4348 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 23:23:21 +00:00
vidur
2b9c958220 Removed old files nsIScriptObject.h nsIDOMIterators.h and nsDOM.h
git-svn-id: svn://10.0.0.236/trunk@4345 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 22:51:07 +00:00
troy
55cdbb41d8 Initialized mColLayoutData to nsnull
git-svn-id: svn://10.0.0.236/trunk@4343 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 22:45:26 +00:00
fur
fbfc042f83 Allow NULL name argument for JS_NewFunction()
git-svn-id: svn://10.0.0.236/trunk@4341 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 22:40:24 +00:00
karnaze
175a8e2054 named <iframe>s, scrolling attribute, more complete test9.html
git-svn-id: svn://10.0.0.236/trunk@4335 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 22:25:28 +00:00
jgellman
0f5ff984bd adding empty files on the tip before adding them on the branch
git-svn-id: svn://10.0.0.236/trunk@4330 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 22:03:06 +00:00
jgellman
b15f666fdc adding empty files on the tip before adding real ones on the branch
git-svn-id: svn://10.0.0.236/trunk@4329 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 21:57:32 +00:00
joki
b48db24dcc Slight change to nsGUIEvent struct internals
git-svn-id: svn://10.0.0.236/trunk@4328 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 21:54:43 +00:00
jgellman
a764a89d8b adding empty files on tip before adding the real ones on the branch
git-svn-id: svn://10.0.0.236/trunk@4327 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 21:54:06 +00:00
joki
4520e7ae2d Event handling additions for DOM suport. Adding additional event pathway through HandleDOMEvent
git-svn-id: svn://10.0.0.236/trunk@4326 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 21:53:02 +00:00
joki
9d7f91a94a Modifications to event listener interfaces.
git-svn-id: svn://10.0.0.236/trunk@4325 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 21:51:30 +00:00
joki
eedd7b9238 Change order of event handling to go children then view, not view then children.
git-svn-id: svn://10.0.0.236/trunk@4324 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 21:50:30 +00:00
kmcclusk
cd04468943 Added code to fix reference counting and destroy widgets when their refcount goes to 0
git-svn-id: svn://10.0.0.236/trunk@4323 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 21:48:41 +00:00
rods
3bd48e46f6 Initial checkin
git-svn-id: svn://10.0.0.236/trunk@4322 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 21:19:12 +00:00
rods
908b020900 Last few changes to make everything work.
git-svn-id: svn://10.0.0.236/trunk@4321 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 21:18:43 +00:00
fur
709cef3527 Print java error messages even when netscape.javascript classes
are not accessible.


git-svn-id: svn://10.0.0.236/trunk@4320 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 21:11:37 +00:00
norris
c56b8776fa (Not part of Communicator build)
Fix 111202 ECMA: division and modulo operator special cases (/ %)
Another instance of the MSVC NaN == 0 bug.


git-svn-id: svn://10.0.0.236/trunk@4319 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 20:53:12 +00:00
vidur
b48ae874e5 Added js dependency
git-svn-id: svn://10.0.0.236/trunk@4317 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 19:11:22 +00:00
vidur
c3ec7cb982 Changed over to asynchronous image loading
git-svn-id: svn://10.0.0.236/trunk@4316 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 18:49:06 +00:00
rpotts
656e8a8c9c Made the destructors on some XPCOM objects virtual (and protected) to make sure everything gets cleaned up...
git-svn-id: svn://10.0.0.236/trunk@4315 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 18:44:06 +00:00
vidur
002ed7ef49 Separated scripting global object responsibilities from the WebWidget. Added better masking of JS-specific structures in generic interfaces. Creation of a scripting global object interface.
git-svn-id: svn://10.0.0.236/trunk@4314 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 18:43:49 +00:00
vidur
140a853e4f Added autogeneration of XPCOM headers and JavaScript stub classes. Added better masking of JS-specific structures in generic interfaces. Creation of a scripting global object interface.
git-svn-id: svn://10.0.0.236/trunk@4313 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 18:43:06 +00:00
rpotts
333af92193 Some reference counting to make things go away...
git-svn-id: svn://10.0.0.236/trunk@4312 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 18:40:18 +00:00
rpotts
037d815078 Keep a global reference to the Image Manager to prevent it from being deleted.
git-svn-id: svn://10.0.0.236/trunk@4311 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 18:38:33 +00:00
rpotts
c65579b402 Do not crash if the Font cache has not been initialized yet...
git-svn-id: svn://10.0.0.236/trunk@4310 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 18:37:49 +00:00
norris
adc6800400 (Not part of Communicator build.)
Fix array length updating for negative indices.


git-svn-id: svn://10.0.0.236/trunk@4309 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 18:20:59 +00:00
norris
0af9ed1cc1 (Not part of Communicator build)
Fix 105721 ECMA: assigning String.prototype.indexOf to the global object


git-svn-id: svn://10.0.0.236/trunk@4308 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 18:16:02 +00:00
michaelp
3dc293a3fe killed debug code.
git-svn-id: svn://10.0.0.236/trunk@4303 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 17:50:19 +00:00
michaelp
c72c6f20c7 made led prettier.
git-svn-id: svn://10.0.0.236/trunk@4302 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 17:47:06 +00:00
brade
6363cfd142 Back out part of Normandy merge that shouldn't have been checked in.
git-svn-id: svn://10.0.0.236/trunk@4300 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 17:34:02 +00:00
cyeh
d2b684e8cf add back $DEBUG flag accidentily deleted in previous rev
git-svn-id: svn://10.0.0.236/trunk@4294 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 14:45:56 +00:00
fur
1c23e4b83c Prevent crash when accessing numeric properties of a JavaPackage
object.  (Such properties should never exist, but we shouldn't crash.)


git-svn-id: svn://10.0.0.236/trunk@4292 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 08:15:40 +00:00
sdagley
868cbdc597 Fix merge error that caused first character of URL typed into Location field to be lost (pierre/sdagley)
git-svn-id: svn://10.0.0.236/trunk@4286 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 06:41:18 +00:00
fur
b1bd546218 Simplifications and aesthetic tweaks to changes required to build on the Mac.
Also, eliminated uses of tab characters.


git-svn-id: svn://10.0.0.236/trunk@4285 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 06:28:14 +00:00
fur
76dd7ed969 Ignore generated files
git-svn-id: svn://10.0.0.236/trunk@4284 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 06:09:44 +00:00
cyeh
dd2f836cb0 removing yet more conflicts as a result of the normandy merge. ARGH.
git-svn-id: svn://10.0.0.236/trunk@4283 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 05:56:23 +00:00
troy
a1d33a1377 Some work-in-progress for table incremental reflow
git-svn-id: svn://10.0.0.236/trunk@4282 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 05:43:27 +00:00
michaelp
4f01298ca8 fixed build.
git-svn-id: svn://10.0.0.236/trunk@4281 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 05:26:58 +00:00
cyeh
ac5c46ab5e remove conflict caused by NORAMNDY_BEACH merge.
git-svn-id: svn://10.0.0.236/trunk@4280 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 05:19:54 +00:00
troy
ef681df8af pubbed
git-svn-id: svn://10.0.0.236/trunk@4279 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 05:13:58 +00:00
troy
528197bb09 Initial check-in
git-svn-id: svn://10.0.0.236/trunk@4278 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 05:13:22 +00:00
cyeh
4037846d63 make it match BuildMozillaDebug.pl. normandy landing missed this file, that's why the continous builds were failing, but manual builds were succeeding without an error.
git-svn-id: svn://10.0.0.236/trunk@4277 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 04:21:35 +00:00
pierre
3b4f6b4413 Normandy landing: added CBrowserApplicationsMediator.cp and UDeferredTask.cp
git-svn-id: svn://10.0.0.236/trunk@4276 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 02:58:53 +00:00
mlm
cbb79e399a - Merge with 4.06 sources: Add another byte to source numbering so that
scripts that start on lines >32K still work.
- Fix is from fur


git-svn-id: svn://10.0.0.236/trunk@4275 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 02:32:45 +00:00
beard
3a654f69c4 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@4274 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 02:05:14 +00:00
beard
3b7b6e6234 Added prototype for strdup.
git-svn-id: svn://10.0.0.236/trunk@4273 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 02:04:48 +00:00
beard
6a65dfcde7 #define LIVECONNECT 1
git-svn-id: svn://10.0.0.236/trunk@4272 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 02:04:22 +00:00
beard
235352e5a0 Added prosdep.h to get strdup prototype.
git-svn-id: svn://10.0.0.236/trunk@4271 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 02:03:59 +00:00
beard
a0981c3b35 Added XP_MAC changes to export the JSObject native methods.
git-svn-id: svn://10.0.0.236/trunk@4270 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 02:03:10 +00:00
beard
2f60f039b8 Added XP_MAC changes for struct-based jlongs.
git-svn-id: svn://10.0.0.236/trunk@4269 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 02:01:53 +00:00
beard
8613a2c1bf Added prosdep.h to get strdup prototype. Corrected JSJ_InitJSContext to match its prototype.
git-svn-id: svn://10.0.0.236/trunk@4268 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 01:59:26 +00:00
beard
20827ef061 MacOS/MSL malloc also needs non-zero size.
git-svn-id: svn://10.0.0.236/trunk@4267 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 01:57:05 +00:00
beard
0e0889da3d Added XP_MAC initialization function.
git-svn-id: svn://10.0.0.236/trunk@4266 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 01:55:31 +00:00
beard
070e336e44 Added Mac build instructions.
git-svn-id: svn://10.0.0.236/trunk@4265 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 01:54:20 +00:00
timm
f89fd96ee4 123973 go to a different error page for 1st and 2nd dial errors
git-svn-id: svn://10.0.0.236/trunk@4264 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 01:51:11 +00:00
beard
2e9f413f82 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@4263 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 01:48:49 +00:00
spider
e3fbeeb7de Normandy checkin for MacFE ... woohoo!
git-svn-id: svn://10.0.0.236/trunk@4261 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 01:36:59 +00:00
rickg
96fcb89fb0 fixed API mismatch
git-svn-id: svn://10.0.0.236/trunk@4260 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 01:35:25 +00:00
rickg
63134a16f2 added support for doc quality
git-svn-id: svn://10.0.0.236/trunk@4259 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 01:34:25 +00:00
beard
e288d22f49 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@4258 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 01:31:44 +00:00
jwz
2d3b8bb1f0 dawn@cannibal.mi.org:
htmlify descriptions in directory listings

   remove some more style file stuff


git-svn-id: svn://10.0.0.236/trunk@4255 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 01:01:39 +00:00
jwz
9c9afb7761 dawn@cannibal.mi.org:
</TD> was getting gobbled up


git-svn-id: svn://10.0.0.236/trunk@4254 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 01:01:26 +00:00
jwz
283951a1c5 dawn@cannibal.mi.org:
yet another attempt at adding descriptions to directory listings.
This time use the following search criterion for rcs variables
which hopefully won't confuse cvs.  /Id: $filename/

mozilla/README directory was confusing lxr. Added a check
that README is a regular file before its displayed in the directory
listing.


git-svn-id: svn://10.0.0.236/trunk@4253 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 01:01:11 +00:00
michaelp
5e2a441d76 added ability to set behavior of scrollbars in scrollable views.
git-svn-id: svn://10.0.0.236/trunk@4252 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 00:53:56 +00:00
rickg
f755281cca more API cleanup; home.netscape.com working again
git-svn-id: svn://10.0.0.236/trunk@4251 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 00:53:50 +00:00
rickg
40ee4ec401 added a new secret argument to Parse()
git-svn-id: svn://10.0.0.236/trunk@4250 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 00:52:21 +00:00
spider
31269e1554 More libmsg Normandy stuff
git-svn-id: svn://10.0.0.236/trunk@4243 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 22:54:34 +00:00
spider
72ff943e29 Adding libmsg in Normandy merge
git-svn-id: svn://10.0.0.236/trunk@4242 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 22:39:40 +00:00
spider
309f310c15 Normandy Merge
git-svn-id: svn://10.0.0.236/trunk@4241 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 22:02:09 +00:00
troy
2b41d4547a Eliminated mFirstPassValid and changed code to key off the reflow
reason


git-svn-id: svn://10.0.0.236/trunk@4240 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 21:59:43 +00:00
spider
38483fbd67 Adding libaddr as part of Normandy merge
git-svn-id: svn://10.0.0.236/trunk@4239 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 21:46:46 +00:00
spider
074ad167d8 Fix nasty crash dereferncing mContext
git-svn-id: svn://10.0.0.236/trunk@4237 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 21:33:12 +00:00
ltabb
b0475728c8 added the ability to disable builds instead of removing them from the page
git-svn-id: svn://10.0.0.236/trunk@4236 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 21:28:47 +00:00
spider
f7bedbedd5 Normandy Merge ....
git-svn-id: svn://10.0.0.236/trunk@4232 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 21:21:28 +00:00
spider
957093e8c5 Normandy Merge ....
git-svn-id: svn://10.0.0.236/trunk@4231 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 21:19:46 +00:00
norris
a43d7627c5 (Not part of Communicator build.)
Fix crash occurring on most tests, nits from brendan code review.


git-svn-id: svn://10.0.0.236/trunk@4228 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 17:53:05 +00:00
fur
ff5959553f Minor updates to build instructions and file descriptions
git-svn-id: svn://10.0.0.236/trunk@4226 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 17:41:18 +00:00
fur
f45d82f8e7 [Not used for Mozilla builds]
These project files were just checked in temporarily and are replaced by the
LiveConnectShell project files located in the js/ref/liveconnect subdirectory.


git-svn-id: svn://10.0.0.236/trunk@4225 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 17:28:12 +00:00
fur
f11cb1211a [Doesn't build with mozilla]
Java files associated with new LiveConnect.


git-svn-id: svn://10.0.0.236/trunk@4224 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 17:23:57 +00:00
dcone
d75bcda183 took out printf's and cleaned up code
git-svn-id: svn://10.0.0.236/trunk@4223 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 17:06:13 +00:00
terry
11d4cd401a Last change also included a patch from Matthew Wilson <msw@gimp.org> to make things correctly deal with RCS files that somehow get an extra CR at the end. Thanks Matthew!
git-svn-id: svn://10.0.0.236/trunk@4222 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 16:36:43 +00:00
rods
a09331a942 Added basic support for nsTextAreaWidget
git-svn-id: svn://10.0.0.236/trunk@4221 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 16:27:57 +00:00
terry
7260888d18 Don't hardcode the bonsai directory name.
git-svn-id: svn://10.0.0.236/trunk@4220 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 15:43:47 +00:00
dcone
216c671d5e fixed some bugs, intermediate checkin
git-svn-id: svn://10.0.0.236/trunk@4219 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 14:41:23 +00:00
troy
38dc935943 Started hooking up incremental reflow. So far we only handle changed
captions


git-svn-id: svn://10.0.0.236/trunk@4218 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 05:34:17 +00:00
kmcclusk
1dc5a40b18 Fix for GIF animation color table bug. Don't create a new color table when converting to a new image format
git-svn-id: svn://10.0.0.236/trunk@4217 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 01:57:13 +00:00
kmcclusk
03ea1800a9 Changes to nsImageUnix.cpp to support GIF animation. Works but color table is still wrong.
git-svn-id: svn://10.0.0.236/trunk@4216 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-22 01:37:17 +00:00
kmcclusk
4cea57c1b1 Fixed places which were deleting the mImageBits which was causing viewer to crash. Also fixes some of the GIF animation problems.
git-svn-id: svn://10.0.0.236/trunk@4215 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-21 23:55:08 +00:00
cmanske
bcad3efc4e UI changes needed as part of SF1 bug 122061, adding support for multiple META tags with same NAME. Reviewed by mjudge
git-svn-id: svn://10.0.0.236/trunk@4214 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-21 19:04:54 +00:00
cmanske
bd3fe3289f Fixed SF1 Composer bugs 117881, 122061, 147518, 148003. Reviewed by mjudge
git-svn-id: svn://10.0.0.236/trunk@4213 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-21 19:03:10 +00:00
cmanske
7ca7bcba8c Added field to support multiple META tags with same NAME, SF1 bug 122061. Reviewed by mjudge
git-svn-id: svn://10.0.0.236/trunk@4212 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-21 19:00:42 +00:00
spider
81d3b16346 Support for Optimized GC and Regions in Rendering
git-svn-id: svn://10.0.0.236/trunk@4211 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-21 07:02:44 +00:00
fur
084c69d9c7 Added the getClass() method for backward-compatibility with old LiveConnect.
git-svn-id: svn://10.0.0.236/trunk@4210 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-21 06:51:27 +00:00
fur
cf01601caa Removed all ifdef NO_JSOBJECTOPS code. This was older code that used the
"classic" JSAPI, rather than the new, faster JSObjectOps API.


git-svn-id: svn://10.0.0.236/trunk@4206 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-21 05:17:15 +00:00
michaelp
0c5cf13fbb added content quality indicator.
git-svn-id: svn://10.0.0.236/trunk@4203 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-21 01:23:44 +00:00
fur
28549242ec [Not in the mozilla build]
This new vendor-neutral version of LiveConnect is designed to replace the older
one in the js/jsj directory, which only works with the Netscape JVM.  It is part
of the OJI initiative.


git-svn-id: svn://10.0.0.236/trunk@4202 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-20 17:46:42 +00:00
jwz
2059495936 oh, fuck me
git-svn-id: svn://10.0.0.236/trunk@4198 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-20 01:31:01 +00:00
jwz
f0cfa012a8 backed out the last few changes; it's all messed up and I don't feel like messing with it right now.
git-svn-id: svn://10.0.0.236/trunk@4197 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-20 01:29:23 +00:00
mccabe
98d71cb6fb ECMA (sort of) fix to 156615, platform-dependent troubles on Solaris.
There was a check in our mini-nspr against asking the OS time services
what the DST offset was for time 0... but the check didn't do what the
comment said it did.  So we got the wrong DST offset for... (drum roll
please) the two seconds on either side of the eve of 1970 GMT.

I have a similar fix ready for prmjtime.c, but I'll wait until the
stability freeze settles down.


git-svn-id: svn://10.0.0.236/trunk@4196 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-20 01:21:01 +00:00
jwz
6f0c951205 fixed cvs botch
git-svn-id: svn://10.0.0.236/trunk@4195 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-20 01:09:35 +00:00
troy
4b7e8b60ba Changed AddObserver() to check if the observer is already in the list.
This worksaround a problem with the pres shell being added twice


git-svn-id: svn://10.0.0.236/trunk@4189 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-20 00:45:05 +00:00
slamm
ca2d3a6f5c Make a warning debug-only. #123912 (SF1 in).
git-svn-id: svn://10.0.0.236/trunk@4188 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-20 00:42:41 +00:00
slamm
8f9c129f18 Pull extra warning message. #123912 (SF1 in).
git-svn-id: svn://10.0.0.236/trunk@4186 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-20 00:41:43 +00:00
rickg
1a752708f9 added support for empty (XML) tags
git-svn-id: svn://10.0.0.236/trunk@4178 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-20 00:12:10 +00:00
troy
592bc7771f Changed TextFrame to implement ContentChanged() notification and generate
a reflow command


git-svn-id: svn://10.0.0.236/trunk@4177 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-20 00:04:22 +00:00
norris
d3cb14f1ce (Not part of Communicator build.)
Add implementation version API call.


git-svn-id: svn://10.0.0.236/trunk@4175 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 23:47:07 +00:00
slamm
dc535aadd0 Fix monochrome icons. Fixes #148544 (SF1 in). Thanks to Juergen Keil <jk@tools.de> for the fix.
git-svn-id: svn://10.0.0.236/trunk@4173 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 23:24:48 +00:00
akkana
930884cf0b 94115: don't show unnecessary horizontal scrollbars on resize.
git-svn-id: svn://10.0.0.236/trunk@4172 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 23:18:59 +00:00
akkana
35c979295d 94115: don't show unnecessary horizontal scrollbars on resize.
Reviewed by cmanske.


git-svn-id: svn://10.0.0.236/trunk@4171 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 23:18:04 +00:00
spider
250660d652 Fix dcone bustage
git-svn-id: svn://10.0.0.236/trunk@4170 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 23:16:07 +00:00
jwz
6d400b0656 from dawn: cleverly generate stuff for the "Description" column in LXR directory listings.
git-svn-id: svn://10.0.0.236/trunk@4169 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 23:06:50 +00:00
cyeh
82cf712377 added some more documentation
git-svn-id: svn://10.0.0.236/trunk@4168 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 23:05:51 +00:00
norris
d4519bab58 (Not part of Communicator build.)
Fix 153640 monkey crash calling Math as function or constructor
Just added a null pointer check


git-svn-id: svn://10.0.0.236/trunk@4166 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 22:21:36 +00:00
dcone
4830bb0faa fixed some image problems, put 16 bit support in
git-svn-id: svn://10.0.0.236/trunk@4165 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 22:02:12 +00:00
norris
35c260396c (Not part of Communicator build.)
Fix 123724 hippo: problems declaring var in an eval statement
This ended up being more complex than I initially thought it would be.
See comments in jsparse.c.


git-svn-id: svn://10.0.0.236/trunk@4164 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 21:52:14 +00:00
rods
7cb149b36e Added ListBox and fixed RadioButton to be managed
git-svn-id: svn://10.0.0.236/trunk@4161 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 21:38:32 +00:00
kmcclusk
4a723c28ff Removed the explict setting of the width and height of the main window. This lets the frame window stay the fixed width and height causing the main window to grow. This fixes a bug in the Linux viewer where scrollbars are the wronng size.
git-svn-id: svn://10.0.0.236/trunk@4156 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 21:20:08 +00:00
mlm
7755b587a3 Merge Win16 "fixes" from Dogbert4xDevelopment_BRANCH
- Reorder identical code
 - Move scope of local variable
 - ifdef out stderr


git-svn-id: svn://10.0.0.236/trunk@4155 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 20:13:15 +00:00
rods
91c8cf72a8 fixed the factory to check the internal mClassID instead of the incoming interface id
git-svn-id: svn://10.0.0.236/trunk@4154 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 20:09:18 +00:00
rods
3a5db91e92 removed the initial 'button' string from create
git-svn-id: svn://10.0.0.236/trunk@4153 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 20:08:40 +00:00
rods
a1097b9c70 add XP_UNIX size temporary fixes
git-svn-id: svn://10.0.0.236/trunk@4152 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 20:07:35 +00:00
kipp
239e473481 Fixed pullup logic for ReflowLine to not de-reference deleted nextLine's
git-svn-id: svn://10.0.0.236/trunk@4151 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 19:57:59 +00:00
kipp
0c2560432d Added more assertions; commented the cases where continuations are created and not created; fixed up kidContentIndex in all cases; fixed return result error in the pullup code
git-svn-id: svn://10.0.0.236/trunk@4150 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 19:57:14 +00:00
rods
6ba2af7cb6 Optimize fixes
git-svn-id: svn://10.0.0.236/trunk@4149 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 19:45:47 +00:00
kipp
c49fafa043 snapshot
git-svn-id: svn://10.0.0.236/trunk@4147 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 18:23:28 +00:00
michaelp
65cd847520 fixed for real. yikes.
git-svn-id: svn://10.0.0.236/trunk@4146 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 17:44:03 +00:00
terry
a0dc174c92 Don't be chatty.
git-svn-id: svn://10.0.0.236/trunk@4144 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 15:36:21 +00:00
terry
afea16062a cd to the real tinderbox dir.
git-svn-id: svn://10.0.0.236/trunk@4143 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 15:32:07 +00:00
terry
6fc7fab2b0 Don't show diffs for files that we're 'hiding'.
git-svn-id: svn://10.0.0.236/trunk@4142 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 15:13:40 +00:00
terry
b311d3be21 Use POST for multidiff, since the URL otherwise can get too big.
git-svn-id: svn://10.0.0.236/trunk@4141 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 14:58:19 +00:00
rods
e1d2005761 Fixed up images even more, added calls to get the appropriate bits_per_pixel
git-svn-id: svn://10.0.0.236/trunk@4140 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 14:47:36 +00:00
troy
57e7d240bb Work in progress for incremental reflow
git-svn-id: svn://10.0.0.236/trunk@4135 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 05:21:45 +00:00
spider
5eb2bf4c3b Fix previous runtime bustage by placing XP_UNIX ifdef correctly
git-svn-id: svn://10.0.0.236/trunk@4134 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 05:03:26 +00:00
spider
66cd6e3dd5 Unix fix as per mmp
git-svn-id: svn://10.0.0.236/trunk@4133 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 04:11:01 +00:00
mjudge
671fe78e81 Bugs numbers 78936,78922,78925,78926,78934,78939,105689,139286,139301,139359
git-svn-id: svn://10.0.0.236/trunk@4132 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 04:00:49 +00:00
michaelp
103248f21c painting fixes...
git-svn-id: svn://10.0.0.236/trunk@4129 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 02:46:25 +00:00
rickg
12eeecf8db fixed another containment bug; DTD's are very cool
git-svn-id: svn://10.0.0.236/trunk@4118 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 01:15:19 +00:00
rickg
3564703faa more bug fixes; changed nsHTMLParser to nsParser.
git-svn-id: svn://10.0.0.236/trunk@4110 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 01:00:27 +00:00
troy
6ab2c7e66c Eliminated nsTableCaptionFrame and now we just use a nsBodyFrame instead
git-svn-id: svn://10.0.0.236/trunk@4107 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 00:34:12 +00:00
atotic
49772e50d5 Removed prstrm includes
git-svn-id: svn://10.0.0.236/trunk@4105 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 00:15:19 +00:00
pnunn
08af2b82f9 SF1in #142422.
git-svn-id: svn://10.0.0.236/trunk@4104 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 00:05:19 +00:00
cyeh
edb1f32e81 these were moved to mozilla/README
git-svn-id: svn://10.0.0.236/trunk@4103 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 00:05:05 +00:00
kipp
07058f3c89 snapshot
git-svn-id: svn://10.0.0.236/trunk@4102 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 23:44:30 +00:00
norris
347031bfd2 (Not part of Communicator build.)
Change C++ keyword "catch" (and Java keyword "finally" for good measure)
to other identifiers to help out embedders calling JS from C++.


git-svn-id: svn://10.0.0.236/trunk@4101 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 23:43:51 +00:00
cyeh
f0600ac0c9 moved README dir to reside under mozilla/
git-svn-id: svn://10.0.0.236/trunk@4100 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 23:42:13 +00:00
cyeh
30ccf955e6 updating and moving README's to the toplevel of the mozilla hierarchy. this
is to conform to the new tree layout standards.


git-svn-id: svn://10.0.0.236/trunk@4099 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 23:41:22 +00:00
spider
84c96864fd Remove NOISY_FONTS ifdef so not printing so much
git-svn-id: svn://10.0.0.236/trunk@4098 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 23:32:58 +00:00
jevering
4678cb1baa Forgot to check in the robot changes for new object.
git-svn-id: svn://10.0.0.236/trunk@4097 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 23:26:55 +00:00
kipp
ebb9839152 new
git-svn-id: svn://10.0.0.236/trunk@4095 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 23:16:18 +00:00
kipp
62199e67d7 snapshot
git-svn-id: svn://10.0.0.236/trunk@4094 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 23:16:00 +00:00
spider
67b33b7986 Cache visual and depth information in drawing surface since it is not available
when the surface is an offscreen PixMap


git-svn-id: svn://10.0.0.236/trunk@4093 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 23:00:05 +00:00
jevering
ccd797086b Major whacking of the debug robot code.
The Debug robot has now been moved into it's own class (xp_com object)
and is fairly well separated from the rest of the parser.
An argument to pass the ParserDebug object into the parsing process
has been added to the Parse member.  This should clean up Unix a bit
as well as provide the ability to multiple simultaneous robots.
This also cleaned up the global variable hackage.


git-svn-id: svn://10.0.0.236/trunk@4092 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 22:57:25 +00:00
dcone
b2fb00f735 fixing up images
git-svn-id: svn://10.0.0.236/trunk@4089 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 22:19:08 +00:00
spider
b6d52d26ea Fix bustage. Change tabbing to be compatible with mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@4087 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 22:15:31 +00:00
dcone
fb9a20b637 fixed a cast to PRInt8
git-svn-id: svn://10.0.0.236/trunk@4085 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 22:05:26 +00:00
dcone
6d09a53058 made some changes
git-svn-id: svn://10.0.0.236/trunk@4084 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 22:04:23 +00:00
racham
50c0b09a76 BUG 123498 : Connect to ISP icon back in place
git-svn-id: svn://10.0.0.236/trunk@4083 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 21:54:54 +00:00
racham
0300b5237a BUG 118078:minor text changes
git-svn-id: svn://10.0.0.236/trunk@4082 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 21:53:30 +00:00
kmcclusk
add7919a1e Initialize mDelay in constructor + Set delay in Init(aDelay)
git-svn-id: svn://10.0.0.236/trunk@4079 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 20:40:30 +00:00
karnaze
ae1802e8be fixed divide by zero, test9 has sub sub doc.
git-svn-id: svn://10.0.0.236/trunk@4073 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 18:33:34 +00:00
kmcclusk
2cda5cddc8 Commented out code to auto-repeat on timers.
git-svn-id: svn://10.0.0.236/trunk@4072 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 18:18:43 +00:00
kmcclusk
c0473eefb7 Made Motif/timer implementation always repeat
git-svn-id: svn://10.0.0.236/trunk@4070 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 18:12:02 +00:00
kmcclusk
834b97c84c Added a real timer implementation for Motif
git-svn-id: svn://10.0.0.236/trunk@4069 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 18:06:56 +00:00
terry
507ecde94d Implement CheckHidden(), so that we can have some semblance of security.
git-svn-id: svn://10.0.0.236/trunk@4068 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 16:47:00 +00:00
terry
00bbd8e8dd Document some config files.
git-svn-id: svn://10.0.0.236/trunk@4067 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 16:45:03 +00:00
kipp
680ab812cb new
git-svn-id: svn://10.0.0.236/trunk@4066 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 16:25:41 +00:00
ftang
de0cc7d081 fix 147582 5.0SF1 IN
git-svn-id: svn://10.0.0.236/trunk@4064 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 16:21:24 +00:00
rods
9c1c280aeb Fixed up scrolling a little
git-svn-id: svn://10.0.0.236/trunk@4063 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 15:59:51 +00:00
terry
215cb74e52 Removed mention of "crontab".
git-svn-id: svn://10.0.0.236/trunk@4062 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 15:10:34 +00:00
dcone
5f03c74dcc Added the computmetrics call, fixed some small bugs
git-svn-id: svn://10.0.0.236/trunk@4061 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 14:17:17 +00:00
rods
61ceac5110 changed AToms to Atoms in include
git-svn-id: svn://10.0.0.236/trunk@4060 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 13:58:19 +00:00
gagan
b9d6ee983f NOT in BUILD! Progress on new cache architecture-
Flat file design, Background Thread, C stubs, Flat file test, etc.


git-svn-id: svn://10.0.0.236/trunk@4059 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 07:52:34 +00:00
troy
e4e28bc903 Fixed a problem with thick left border edges being the wrong thickness
git-svn-id: svn://10.0.0.236/trunk@4057 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 05:43:32 +00:00
blythe
4e53dbf190 Fix bug 148458, crash on multiple startups
git-svn-id: svn://10.0.0.236/trunk@4051 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 01:47:30 +00:00
kmcclusk
1b02a519c8 Optimized compression of resize events
git-svn-id: svn://10.0.0.236/trunk@4050 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 01:45:44 +00:00
spider
25831f6082 Really fix Unix builds - should be a pointer
git-svn-id: svn://10.0.0.236/trunk@4049 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 01:30:06 +00:00
scullin
7cb1ce6e45 Fix rickg's linux build bustage.
git-svn-id: svn://10.0.0.236/trunk@4047 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 01:04:46 +00:00
kmcclusk
8e76676ca2 Added generation of NS_PAINT event after a NS_SIZE event.
git-svn-id: svn://10.0.0.236/trunk@4046 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 00:58:10 +00:00
kmcclusk
d3d61c4c2a Changed new of mImageBits to PRUint8 instead of unsinged char. doesn't like this under IRIX.
git-svn-id: svn://10.0.0.236/trunk@4044 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 00:54:07 +00:00
montulli
acfa75410a merge tip with montulli branch and create montulli1
git-svn-id: svn://10.0.0.236/trunk@4042 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 00:54:05 +00:00
karnaze
4f49b39027 added tst9, improvements to <iframe>
git-svn-id: svn://10.0.0.236/trunk@4041 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 00:47:18 +00:00
kmcclusk
9aca26fbdf Changes to support the compression of resize events on multiple windows
git-svn-id: svn://10.0.0.236/trunk@4036 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 00:28:06 +00:00
spider
628ea38d70 Implement GetRenderingContext
git-svn-id: svn://10.0.0.236/trunk@4033 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 00:16:52 +00:00
norris
4ccbcd8856 (Not part of Communicator build.)
More functionality for debug print functions.


git-svn-id: svn://10.0.0.236/trunk@4032 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 00:13:08 +00:00
norris
6c4178b690 (Not part of Communicator build.)
This comment is for checkin of version 1.8: mistakenly gave wrong comment
for that version.
Fix 123724 hippo: problems declaring var in an eval statement
The problem was that Variable() in jsparse.c used the scope from calling
js_FindVariableScope to determine whether or not to convert the operator
to GETVAR, but LookupArgOrVar did not. This caused a mismatched set and
get in the code generated from the eval script due to the presence of the
var in the function frame.


git-svn-id: svn://10.0.0.236/trunk@4031 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 00:11:51 +00:00
norris
ccc7a613b2 (Not part of Communicator build.)
More functionality for debug print functions.


git-svn-id: svn://10.0.0.236/trunk@4030 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 00:04:38 +00:00
kipp
86b808a102 Disabled saving the source file cuz it crashes on windows
git-svn-id: svn://10.0.0.236/trunk@4029 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-18 00:02:36 +00:00
kmcclusk
9c6911dc42 More changes for resize under Linux
git-svn-id: svn://10.0.0.236/trunk@4028 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 23:56:23 +00:00
kmcclusk
19fbe7d367 Added some code to try fixing resizing problems in Linux viewer.
git-svn-id: svn://10.0.0.236/trunk@4026 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 23:43:45 +00:00
rickg
c430c0421c huge refactoring effort; transient style support; tables fixes, and more
git-svn-id: svn://10.0.0.236/trunk@4025 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 23:13:28 +00:00
dcone
8094f759f8 Commented out ComputeMetrics
git-svn-id: svn://10.0.0.236/trunk@4024 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 23:01:28 +00:00
dcone
177e5f790f added code for image, fixed a bug
git-svn-id: svn://10.0.0.236/trunk@4023 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 22:55:42 +00:00
spider
73cc3b7998 fontmetrics now work. fixed random crap in rendering context.
git-svn-id: svn://10.0.0.236/trunk@4020 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 22:23:36 +00:00
troy
9a5c27ee64 Reduced the number of polygon calls
git-svn-id: svn://10.0.0.236/trunk@4019 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 22:14:20 +00:00
slamm
b6bdddd24a Fix for crash after opening/closing NavCenter. Thanks to Juergen Keil <jk@tools.de> for the fix. Fixes bugs #148369(P0 & SF1 in) & mozilla #423.
git-svn-id: svn://10.0.0.236/trunk@4016 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 21:35:22 +00:00
montulli
3e379c3d21 merge branch to tip. This file is not yet in the build
git-svn-id: svn://10.0.0.236/trunk@4014 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 21:29:32 +00:00
montulli
428510e815 merge branch to tip. This directory is not in the build yet
git-svn-id: svn://10.0.0.236/trunk@4013 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 21:27:01 +00:00
waterson
e050825d32 Bug 127280. Approved by don. Make sure reference count is properly initialized in NP_LoadPluginByType().
git-svn-id: svn://10.0.0.236/trunk@4010 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 21:15:23 +00:00
waterson
6e6aecec3d Bug 127182. Approved by don. Added libprgrss.a to libs linked with OJI.
git-svn-id: svn://10.0.0.236/trunk@4008 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 21:12:27 +00:00
dcone
574096a239 rename commit
git-svn-id: svn://10.0.0.236/trunk@4006 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 20:43:32 +00:00
dcone
7533b10fa9 add compute metrics
git-svn-id: svn://10.0.0.236/trunk@4005 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 20:37:58 +00:00
dcone
55afdc7f17 Take out mMask
git-svn-id: svn://10.0.0.236/trunk@4003 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 20:36:24 +00:00
dcone
80719f623d Add some member variables
git-svn-id: svn://10.0.0.236/trunk@4002 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 20:35:21 +00:00
dcone
c565924ef7 alpha fix
git-svn-id: svn://10.0.0.236/trunk@4001 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 20:31:21 +00:00
terry
be6d491414 Whoops; the version of dolog.pl we had was ancient and wrong.
git-svn-id: svn://10.0.0.236/trunk@3997 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 20:09:55 +00:00
dcone
99525b6a9d First nsimage work
git-svn-id: svn://10.0.0.236/trunk@3996 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 20:03:40 +00:00
troy
1f2fd602e4 Changed to remember the text color rather than set/restore it each time we
render text


git-svn-id: svn://10.0.0.236/trunk@3994 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 19:53:57 +00:00
buster
937b504950 minor updates and fixes
git-svn-id: svn://10.0.0.236/trunk@3993 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 19:51:51 +00:00
brendan
6a22adee5c - Fix function in with statement to form a closure with the right scope chain
on activation (120172, mlm).
- Use #ifdef CHECK_RETURN_EXPR to hide CheckFinalReturn as well as its calls.
- 80th column tyranny, typedef symmetry, other cosmetics.


git-svn-id: svn://10.0.0.236/trunk@3992 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 19:37:53 +00:00
mccabe
021b3ef3b3 (Not part of the mozilla build)
Added a guard against casting infinity->int, towards porting to alpha linux.


git-svn-id: svn://10.0.0.236/trunk@3991 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 19:36:29 +00:00
rods
3677bf1dca removed debug printf
git-svn-id: svn://10.0.0.236/trunk@3984 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 17:20:08 +00:00
rods
4bfa23089b Fixed keysym problem for mneumonics
git-svn-id: svn://10.0.0.236/trunk@3983 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 17:12:25 +00:00
buster
dc23f3a90e Separated table content from table layout. This paves the way for XML/CSS-2 tables.
Lots and lots of optimizations.


git-svn-id: svn://10.0.0.236/trunk@3982 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 16:38:24 +00:00
law
25cc2cea0b Fixed bug #129272. Reviewed by hyatt. Re-architected docking/undocking process
git-svn-id: svn://10.0.0.236/trunk@3980 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 16:32:34 +00:00
rods
39e2eec3b1 Fixed build problem, removed scrollbar errors
git-svn-id: svn://10.0.0.236/trunk@3979 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 16:27:05 +00:00
norris
cab40bd8c8 (Not part of Communicator build.)
Fix warning messages for lack of function prototype.


git-svn-id: svn://10.0.0.236/trunk@3978 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 16:23:29 +00:00
rods
f625f48977 Fixed the page up page down for the thumb on the scrollbar
git-svn-id: svn://10.0.0.236/trunk@3977 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 16:07:28 +00:00
rods
01e0113a3e Fixed up scrolling a bit by discarding multiple expose events
git-svn-id: svn://10.0.0.236/trunk@3976 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 15:52:55 +00:00
troy
89e4c2e7c3 Addded some helper functions to determine whether a content object is
a table cell


git-svn-id: svn://10.0.0.236/trunk@3975 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 15:21:02 +00:00
rods
3785352769 rename AGGRRGATE to AGGREGATE
made all the aggregate inner classes friend of the enclosing class


git-svn-id: svn://10.0.0.236/trunk@3973 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 14:54:52 +00:00
troy
ccb6081f95 Changed cast of content objects to nsTableContent* to query interface
of nsITableContent


git-svn-id: svn://10.0.0.236/trunk@3966 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 05:28:36 +00:00
cmanske
fa6a96a166 Fixed SF1 bug 123401. Crash hiding composition toolbar. Fix supplied and reviewed by hyatt
git-svn-id: svn://10.0.0.236/trunk@3961 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-17 02:10:02 +00:00
rods
c67336287e trying to fix scrollbar and exposure
git-svn-id: svn://10.0.0.236/trunk@3957 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 23:51:44 +00:00
jwz
7a0229065d *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@3955 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 23:41:58 +00:00
jwz
477cbc8ed4 expanded disclaimer
git-svn-id: svn://10.0.0.236/trunk@3953 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 23:32:48 +00:00
jwz
e8ec7ccbff added disclaimer
git-svn-id: svn://10.0.0.236/trunk@3952 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 23:32:15 +00:00
norris
1ad43c2b65 (Not part of Communicator build)
Add ability for scripts to access their arguments.


git-svn-id: svn://10.0.0.236/trunk@3950 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 23:10:57 +00:00
hyatt
b3d49f6d20 Fixes for bug #122733 and #123245. Both reviewed by blythe.
git-svn-id: svn://10.0.0.236/trunk@3949 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 23:10:17 +00:00
karnaze
e882b3963e fixed makefile to recognize html/document/public
git-svn-id: svn://10.0.0.236/trunk@3948 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 22:57:51 +00:00
atotic
028bc701d1 More build fixes
git-svn-id: svn://10.0.0.236/trunk@3947 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 22:56:31 +00:00
atotic
7b738b9c62 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3946 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 22:55:47 +00:00
atotic
7d7895397a Wrong name, should be libimg.mcp
git-svn-id: svn://10.0.0.236/trunk@3945 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 22:41:03 +00:00
atotic
d576e4b4e1 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3942 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 22:36:24 +00:00
vidur
fecd170def Changed name to wstring
git-svn-id: svn://10.0.0.236/trunk@3939 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 22:00:47 +00:00
troy
3be45036db Changed DrawString() to use ExtTextOut(), and moved SetBkMode() call to
SetupDC()


git-svn-id: svn://10.0.0.236/trunk@3937 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 21:57:46 +00:00
karnaze
7804754bc8 added
git-svn-id: svn://10.0.0.236/trunk@3936 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 21:55:52 +00:00
atotic
01bdb8898c Last enum should not be followed by a ','. This generates warnings on the Mac
git-svn-id: svn://10.0.0.236/trunk@3935 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 21:45:48 +00:00
atotic
db3b194f04 static void nsHTMLTagContent::ParseValueOrPercentOrProportional(const nsString& aString,
is not legal C++ inside a class declaration.


git-svn-id: svn://10.0.0.236/trunk@3934 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 21:45:10 +00:00
atotic
e4627435f4 Mac needed a definition of PR_GetEnv
git-svn-id: svn://10.0.0.236/trunk@3933 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 21:44:38 +00:00
atotic
170ae1638a Made all required Raptor libraries that I know about build. Next step, first raptor project
git-svn-id: svn://10.0.0.236/trunk@3932 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 21:44:03 +00:00
terry
0d01ac7bc3 Bonsai and Tinderbox have been freed.
git-svn-id: svn://10.0.0.236/trunk@3931 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 21:43:24 +00:00
atotic
295576c927 More exports are needed
git-svn-id: svn://10.0.0.236/trunk@3929 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 21:42:32 +00:00
atotic
70db1ebf42 Made it compile in the dist world
git-svn-id: svn://10.0.0.236/trunk@3928 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 21:41:59 +00:00
atotic
cce0b7b03b Made the projects compile in the dist world
git-svn-id: svn://10.0.0.236/trunk@3927 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 21:41:31 +00:00
atotic
076c95f122 More changes, have many pull and build options now
git-svn-id: svn://10.0.0.236/trunk@3926 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 21:40:51 +00:00
atotic
af6ec95cfa First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3925 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 21:39:13 +00:00
karnaze
f37ddeefc2 more <iframe> support
git-svn-id: svn://10.0.0.236/trunk@3923 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 21:32:54 +00:00
jwz
40dcf39805 emit a mostly-correct Last-Modified header on the generated pages.
git-svn-id: svn://10.0.0.236/trunk@3913 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 20:23:42 +00:00
jwz
77ec0869a9 Recognise .jpeg, .pjpg, and .pjpeg as JPEG extensions.
Put a label next to embedded images.

When the extension of a file is unrecognised, look at the first
line of the file to guess whether it is text or binary; if it
looks binary, emit a link, instead of dumping out the whole file.


git-svn-id: svn://10.0.0.236/trunk@3911 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 19:53:43 +00:00
ftang
d45e047883 Fix bug 123533
git-svn-id: svn://10.0.0.236/trunk@3909 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 19:44:06 +00:00
jwz
b4e5f72dc3 use "checkout -P" to prune empty unused directories
(like cmd/xfe/icons/anim-sgi/)


git-svn-id: svn://10.0.0.236/trunk@3905 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 19:10:03 +00:00
scullin
8922832581 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@3904 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 18:51:22 +00:00
norris
596a0147f0 (Not part of Communicator build.)
Fix 129824 monkey: evaling a function with many arguments fails


git-svn-id: svn://10.0.0.236/trunk@3903 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 18:36:57 +00:00
rods
0566816b88 initial
git-svn-id: svn://10.0.0.236/trunk@3902 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 18:25:35 +00:00
rods
64cc86a661 added nsListBox
git-svn-id: svn://10.0.0.236/trunk@3901 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 18:23:51 +00:00
rods
94ffc48fa5 fixed some resizing problems
git-svn-id: svn://10.0.0.236/trunk@3900 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 18:23:25 +00:00
valeski
f22cec83ae 123702 - we weren't handling http 100 "continue" status codes properly. rev'd by gagan, approved by don
git-svn-id: svn://10.0.0.236/trunk@3898 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 17:52:42 +00:00
michaelp
578d20afe5 fixed client versus non-client get bounds problems.
git-svn-id: svn://10.0.0.236/trunk@3895 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 17:16:59 +00:00
michaelp
3e60e0bb89 added method to nsIView to get offset from nearest window.
added method to nsIView to get nearest scroll offset.
killed AdjustChildWidgets in nsIView.
lots of painting fixes.
added support for scrolling subviews.
added beginning of back-to-front compositing pass.
views, views with widgets and views with specific clips will now have their
outlines rendered in different colors. to turn this off see the top of nsView.cpp.


git-svn-id: svn://10.0.0.236/trunk@3893 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 17:05:42 +00:00
racham
6881937057 BUG114867 : Modified text associated with layers
git-svn-id: svn://10.0.0.236/trunk@3892 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 17:03:16 +00:00
michaelp
84b3c23319 the view manager is now used when manipulating views.
git-svn-id: svn://10.0.0.236/trunk@3891 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 16:51:01 +00:00
michaelp
90a0523f94 PopState() now returns PR_TRUE if there is an empty clip region after the pop.
git-svn-id: svn://10.0.0.236/trunk@3890 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 16:49:29 +00:00
cyeh
6937a54504 removing duplicate entry for nsprpub
git-svn-id: svn://10.0.0.236/trunk@3885 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 14:18:08 +00:00
dcone
dea1b480e6 intermeditate updates to blend and test program. It now works in 24 bit
git-svn-id: svn://10.0.0.236/trunk@3884 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 13:09:46 +00:00
jwz
380d355469 lose the useless search boxes; they're clutter.
git-svn-id: svn://10.0.0.236/trunk@3883 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 09:13:15 +00:00
jwz
0a7ce4cd79 use the $baseurl symbolic name instead of /webtools/lxr/
git-svn-id: svn://10.0.0.236/trunk@3882 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 09:12:47 +00:00
jwz
b91205199d maintain the illusion of directoryhood; refer to "source/" not "source".
git-svn-id: svn://10.0.0.236/trunk@3881 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 09:12:13 +00:00
jwz
dc20ae98f4 Well basically, I hate those layers popups that-aren't-quite-menus.
They've got to go.  The information that was on them is only one
click away anyhow.


git-svn-id: svn://10.0.0.236/trunk@3880 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 09:03:40 +00:00
jwz
96528ae3cd allow the $banner file names to wrap, by emitting a space after each slash.
git-svn-id: svn://10.0.0.236/trunk@3879 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 08:42:22 +00:00
jwz
d7afec3b45 dawn says she didn't write the intro blurb that I assumed she had.
took out the attribution.


git-svn-id: svn://10.0.0.236/trunk@3864 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 04:19:05 +00:00
jwz
950468895a go hog-wild: let's check out the whole "mozilla" directory, instead of just
what's in the "MozillaSource" module.


git-svn-id: svn://10.0.0.236/trunk@3861 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 03:17:27 +00:00
nisheeth
6ce86321db Fix for bug#124552. No code review needed coz fix is smaller than 5 lines.
Now text layout looks at both the state structure and the current text block
for propagating anchor information when a new text layout element is created.


git-svn-id: svn://10.0.0.236/trunk@3860 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 03:05:10 +00:00
spider
7ccbf52e90 Fix some Unichar HTML Rendering
git-svn-id: svn://10.0.0.236/trunk@3858 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 02:21:46 +00:00
jwz
78d33cb85f template-source-tail was identical to template-tail; nuked it.
git-svn-id: svn://10.0.0.236/trunk@3857 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 02:15:51 +00:00
jwz
a7b53c51c0 made the "changes" links show only the HEAD revisions.
added a "full change log" link.


git-svn-id: svn://10.0.0.236/trunk@3856 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 02:15:26 +00:00
jwz
aa1782248f made the "changes" links show only the HEAD revisions.
git-svn-id: svn://10.0.0.236/trunk@3855 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 02:15:13 +00:00
cmanske
8c585749a9 Fixed Composer SF1 bugs 92797 and 138116. Reviewed by mjudge.
git-svn-id: svn://10.0.0.236/trunk@3853 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 01:34:48 +00:00
jwz
709de5de5d yuck. you can't use ".." in otherwise-fully-qualified URLs, so I had
to add another template variable, $dotdoturl, that is just like $baseurl
but points to one directory higher.  Sucks!


git-svn-id: svn://10.0.0.236/trunk@3852 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 01:18:34 +00:00
jevering
dacd85f8fd Hooked up the <BLINK> tag in the parser.
git-svn-id: svn://10.0.0.236/trunk@3851 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 01:15:56 +00:00
jwz
1e81e5631f patches from dawn to sync with latest official lxr
git-svn-id: svn://10.0.0.236/trunk@3849 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 00:57:48 +00:00
jevering
dd51e4bead Fixed many a parser memory leaks.
Attribute tokens where being leaked.  Fixed by making CToken destructor virtual.
The DTDs were not being properly deleted.  Added a member to nsITokenizerDelegate to Destroy()
Fixed a few spots here and there where tokens were getting allocated, but not deleted when a
kError is passed back invalid.


git-svn-id: svn://10.0.0.236/trunk@3848 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 00:57:45 +00:00
spider
b6b71a9c97 Fixes to get viewer to render on Unix
git-svn-id: svn://10.0.0.236/trunk@3847 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 00:57:33 +00:00
jwz
796d715059 added a number of new template files:
instead of just "htmlhead" and "htmltail" there are now:

    "sourcehead" and "sourcetail"
    "sourcedirhead" and "sourcedirtail"
    "findhead" and "findtail"
    "identhead" and "identtail"
    "searchhead" and "searchtail"

so that each CGI can have its own custom headers and footers.
If (for example) identhead isn't configured in lxr.conf, then
htmlhead will be used instead.

"sourcedir*" is used in preference to "source*" when the output
of the "source" script is a CGI.  If sourcedir* aren't configured,
then it falls back to "source*" (and from there to "html*")


git-svn-id: svn://10.0.0.236/trunk@3846 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 00:51:27 +00:00
atotic
0ce193c365 Removed class ifstream declaration.
git-svn-id: svn://10.0.0.236/trunk@3845 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 00:49:39 +00:00
rods
0d12280f37 removed some debug statement
git-svn-id: svn://10.0.0.236/trunk@3844 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 00:28:34 +00:00
rods
1c130a4750 remove GetBasURL call
git-svn-id: svn://10.0.0.236/trunk@3843 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 00:26:50 +00:00
rods
ffeb36dd70 change callback for open in menu
git-svn-id: svn://10.0.0.236/trunk@3842 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 00:26:09 +00:00
kmcclusk
83aa1c5e5e Added Motif viewer to the build
git-svn-id: svn://10.0.0.236/trunk@3841 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 00:23:35 +00:00
rods
79f0a2edf4 fixed UNIX resource protocol
git-svn-id: svn://10.0.0.236/trunk@3840 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 00:04:43 +00:00
jevering
f2d9d749bb Added prstrm.cpp to cpp file list.
git-svn-id: svn://10.0.0.236/trunk@3839 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 00:02:03 +00:00
kmcclusk
622362fb0b Added resource protocol support under unix.
git-svn-id: svn://10.0.0.236/trunk@3838 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 23:42:16 +00:00
kmcclusk
16f5cb18a1 Added makefile directive to copy ua.css to $(DIST)/bin/res
git-svn-id: svn://10.0.0.236/trunk@3837 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 23:07:41 +00:00
kmcclusk
f03579ec58 Removed reference to method no longer in the class
git-svn-id: svn://10.0.0.236/trunk@3834 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 22:42:25 +00:00
rods
7f48e999ac removed NoNotify
git-svn-id: svn://10.0.0.236/trunk@3833 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 22:35:31 +00:00
jwz
cb985ad9da If a file is less than 1k, print its size in bytes.
git-svn-id: svn://10.0.0.236/trunk@3829 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 22:18:06 +00:00
atotic
1501fd1cc3 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3828 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 22:13:46 +00:00
rods
a37fb0b9e5 removed radiogroup functionality
git-svn-id: svn://10.0.0.236/trunk@3826 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 22:05:24 +00:00
rods
d49a0191ac removed RadioGroup methods
git-svn-id: svn://10.0.0.236/trunk@3825 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 22:02:13 +00:00
atotic
a6cf1d8e3c Make it build in the brave new world
git-svn-id: svn://10.0.0.236/trunk@3824 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 21:54:52 +00:00
jwz
2117acdd16 Print the date flush-right; leave about one space between columns.
git-svn-id: svn://10.0.0.236/trunk@3823 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 21:52:14 +00:00
jwz
964207a394 Print the date like ls does: "Mmm dd hh:mm" if it is newer than six months,
else "Mmm dd yyyy" if it is older.

Use the internal-gopher-* images instead of the GIFs in /icons/.

Print a "-" for the size of directories.


git-svn-id: svn://10.0.0.236/trunk@3822 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 21:51:41 +00:00
cmanske
041e9f52ee Finished fix for SF1 bug 123355 - force JavaScript on for Composer Plugins. Reviewed by mjudge.
git-svn-id: svn://10.0.0.236/trunk@3820 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 21:44:23 +00:00
atotic
978ccf5e5e First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3814 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 21:07:17 +00:00
vidur
f2f38f2d03 First pass at makefile for generation of xpcom headers and JavaScript stub classes
git-svn-id: svn://10.0.0.236/trunk@3812 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 20:57:23 +00:00
kipp
e0a754f66e Revised keyword tables
git-svn-id: svn://10.0.0.236/trunk@3811 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 20:40:27 +00:00
kipp
1983702a10 Added in steve's new keywords
git-svn-id: svn://10.0.0.236/trunk@3810 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 20:40:07 +00:00
vidur
a79a8d680c Added error handling to InitClass
git-svn-id: svn://10.0.0.236/trunk@3809 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 20:35:45 +00:00
atotic
70ae505b5f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3808 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 20:27:14 +00:00
kipp
6d71a51561 Added opacity
git-svn-id: svn://10.0.0.236/trunk@3807 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 20:25:28 +00:00
rods
d491c2be81 set internal full path/file correctly, and uses it's own event loop with a kludge from nsAppShell
git-svn-id: svn://10.0.0.236/trunk@3806 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 20:25:24 +00:00
rods
f608aae41e no longer derived nsWindow, it is truely a delegated helper
git-svn-id: svn://10.0.0.236/trunk@3805 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 20:24:17 +00:00
rods
b8801d1043 changed QueryInterface to QueryObject, it now derived from nsWindow and hasa nsTextHelper
git-svn-id: svn://10.0.0.236/trunk@3804 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 20:23:40 +00:00
rods
431ca46b09 added kludge for nsFileWidget
git-svn-id: svn://10.0.0.236/trunk@3803 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 20:22:43 +00:00
kipp
de128ce874 Makefile tweaked to not build nsHTMLTags.cpp
git-svn-id: svn://10.0.0.236/trunk@3802 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 20:21:08 +00:00
atotic
a4f652e939 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3800 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 20:15:59 +00:00
troy
1f60015e7e Changed to set the polygon fill mode in CommonInit() instead of when drawing
polygons


git-svn-id: svn://10.0.0.236/trunk@3793 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 18:50:08 +00:00
jwz
9e854f3e3f I'm a chimp; I didn't test the last change, and left out the blank line after
the headers.


git-svn-id: svn://10.0.0.236/trunk@3792 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 17:15:35 +00:00
rods
03bc217f2a more fixes for irix
git-svn-id: svn://10.0.0.236/trunk@3791 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 17:08:33 +00:00
kmcclusk
a23a3d4402 Added support for XPCOM Aggregation in the Motif Widget library
git-svn-id: svn://10.0.0.236/trunk@3789 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 16:50:53 +00:00
rods
b45f98980c fixing irix build
git-svn-id: svn://10.0.0.236/trunk@3788 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 16:34:18 +00:00
rods
16afc2f022 added additional FileWidget support
git-svn-id: svn://10.0.0.236/trunk@3787 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 16:29:00 +00:00
rods
4f6c3c4a5e added sow/hise and resize
git-svn-id: svn://10.0.0.236/trunk@3786 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 16:28:42 +00:00
rods
e302fbc7ae fixed up resize events
git-svn-id: svn://10.0.0.236/trunk@3785 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 15:36:28 +00:00
rods
6fedb69d2e added File Widget
git-svn-id: svn://10.0.0.236/trunk@3784 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 15:36:09 +00:00
rods
53be4673a6 added nsFIleWidget.cpp
git-svn-id: svn://10.0.0.236/trunk@3783 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 15:35:56 +00:00
rods
8fe0b0d706 initial working version
git-svn-id: svn://10.0.0.236/trunk@3782 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 15:35:35 +00:00
jwz
c63806cecc don't send last-modified headers with a static date...
git-svn-id: svn://10.0.0.236/trunk@3781 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-15 05:08:14 +00:00
troy
0b65f7fd78 Changed some GetStyleContext/GetStyleData calls to use nsIFrame::GetStyleData
instead. This saves the AddRef/Release overhead


git-svn-id: svn://10.0.0.236/trunk@3780 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-14 05:23:59 +00:00
troy
445135f411 Changed some GetStyleContext/GetStyleData pairs to use nsIFrame::GetStyleData
instead


git-svn-id: svn://10.0.0.236/trunk@3779 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-14 05:14:17 +00:00
troy
045ec7477e Changed some pairs of GetStyleContext/GetStyleData calls to a single call
to nsIFrame::GetStyleData


git-svn-id: svn://10.0.0.236/trunk@3778 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-14 05:00:38 +00:00
troy
02ba158334 Changed a GetStyleContext/GetStyleData pair to use the nsIFrame::GetStyleData
member function instead. This saves a pair of AddRef/Release calls


git-svn-id: svn://10.0.0.236/trunk@3777 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-14 04:40:52 +00:00
troy
aef1ccc739 Changed PaintChildren() to only paint those children that intersect
the dirty rect


git-svn-id: svn://10.0.0.236/trunk@3776 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-14 00:45:21 +00:00
mcafee
4deae010b7 Get SparcLinux to link properly. This doesn't affect any other builds.
git-svn-id: svn://10.0.0.236/trunk@3775 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-13 22:40:18 +00:00
jwz
82650fafb0 Wow, how lame. The only way I could get the table columns to line up was
to increase the field size from 6 to 8!  That's robust...  It seems that
</FORM> inserts a paragraph break even when it comes just before </TD>,
so the "use this field" text must be inside the </FORM> in order to be
snugly against the text field.  But, if "Text Search" isn't in the same
<TR> as the text field, they won't line up properly vertically.  So
I can't figure out how to combine all of the <FORM>s into one table to
make the columns all line up without introducing lots of vertical space.


git-svn-id: svn://10.0.0.236/trunk@3774 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-13 18:47:35 +00:00
jwz
8618f75641 I hadn't realized that "ident" did case-sensitive exact matches instead of
regexp searches.  Updated the instructions to reflect this.


git-svn-id: svn://10.0.0.236/trunk@3773 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-13 18:26:54 +00:00
jevering
c5c8aef9b7 Fixed a few memory leaks.
git-svn-id: svn://10.0.0.236/trunk@3752 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-13 02:20:04 +00:00
jwz
9133959599 "text" is more meaningful than "glimpse"
git-svn-id: svn://10.0.0.236/trunk@3751 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-13 01:38:31 +00:00
jwz
1733061310 thank the authors, too
git-svn-id: svn://10.0.0.236/trunk@3750 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-13 01:25:58 +00:00
jwz
670f3b0caf apparently glimpseindex wants to run "whereis", so I added /usr/ucb to $PATH
git-svn-id: svn://10.0.0.236/trunk@3749 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-13 01:15:11 +00:00
jwz
114ebcdc2d *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@3748 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-13 01:12:23 +00:00
jwz
ca06e848ee reformatted
git-svn-id: svn://10.0.0.236/trunk@3747 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-13 01:11:09 +00:00
mccabe
75a2fd1cff Undid the ECMA fix that disallowed '08' and '09' numeric literals. According to the ECMA lexical grammar, these literals should be scanned as two consecutive NUMBER tokens ('0' and '9') - which is always a syntax error under the grammar. Unfortunately, the javascript engine has supported these literals (with mathematical values 8 and 9) in the past, and they're likely to crop up in date code... so we probably need to remove this fix. This leaves us a superset of ECMA - by accepting these literals, we accept scripts that are not valid ECMA scripts.
git-svn-id: svn://10.0.0.236/trunk@3746 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-13 01:10:30 +00:00
jwz
3e5690ef7b *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@3745 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-13 00:45:02 +00:00
jwz
07a11059eb print date to log; know where cvs is
git-svn-id: svn://10.0.0.236/trunk@3744 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-13 00:43:15 +00:00
beard
b913753a69 Revised target names to be more consistent with new build system (.o no .shlb for static libraries).
git-svn-id: svn://10.0.0.236/trunk@3742 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 23:13:40 +00:00
sar
1fe1409d5d adding NormandyBeachMac module
git-svn-id: svn://10.0.0.236/trunk@3741 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 22:41:30 +00:00
nisheeth
3ec85aec75 Fix for bug#112027. Reviewed by Dan. The crash was occuring for the case
when the MULTICOL tag had no content.  Fixed lo_rl_FitMultiColumn()
to handle that case.


git-svn-id: svn://10.0.0.236/trunk@3740 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 22:35:50 +00:00
vidur
0dae2f4900 Added iid generation, dealing with the void keyword and fixed bugs in generation code
git-svn-id: svn://10.0.0.236/trunk@3739 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 22:34:39 +00:00
jwz
4c27757921 lose cvs1.mozilla.org
git-svn-id: svn://10.0.0.236/trunk@3738 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 22:27:22 +00:00
atotic
7d18a34d8f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3735 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 22:24:09 +00:00
norris
65e0df27c8 (Not part of Communicator build.)
Tweak last fix not to depend on size of char.


git-svn-id: svn://10.0.0.236/trunk@3734 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 22:20:06 +00:00
norris
f11fae67c4 (Not part of Communicator build.)
Fix bug 123802 hippo / js1.2 some regular expression tests fail


git-svn-id: svn://10.0.0.236/trunk@3733 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 22:17:13 +00:00
vidur
9b293711e9 Asynchronous loading of images
git-svn-id: svn://10.0.0.236/trunk@3732 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 22:08:39 +00:00
jwz
433811f789 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@3731 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 22:06:58 +00:00
jwz
275969156d update the lxr sources too; and log.
git-svn-id: svn://10.0.0.236/trunk@3730 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 22:03:28 +00:00
jwz
2b27db57e8 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@3729 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 21:58:38 +00:00
jwz
44adb1e8c7 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@3728 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 21:48:51 +00:00
jwz
c268281089 linked in dawn's search help doc
git-svn-id: svn://10.0.0.236/trunk@3727 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 21:42:37 +00:00
jwz
d7e8cd1022 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@3725 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 20:52:28 +00:00
jwz
472b9deca8 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@3724 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 20:25:05 +00:00
jwz
c9519735f0 we don't need this
git-svn-id: svn://10.0.0.236/trunk@3723 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 20:24:06 +00:00
jwz
020ba78100 tweaked tables
git-svn-id: svn://10.0.0.236/trunk@3722 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 20:20:24 +00:00
jwz
a293b251d9 tweaked tables
git-svn-id: svn://10.0.0.236/trunk@3721 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 20:08:12 +00:00
jwz
2ee58fc80f *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@3720 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 19:41:29 +00:00
jwz
6f66daeeb2 fixed #!
git-svn-id: svn://10.0.0.236/trunk@3717 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 18:55:52 +00:00
spider
8ea5562eda Documentation cleanup
git-svn-id: svn://10.0.0.236/trunk@3716 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 18:30:53 +00:00
norris
bf64e5a774 (Not part of Communicator build.)
Fix 111199 ECMA: don't enumerate parseInt.length


git-svn-id: svn://10.0.0.236/trunk@3714 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 17:22:04 +00:00
mjudge
056b81d373 bug 113680 fix for horizontal rule strangeness after tables. when reflowing tables, do not reflow beyond the last cell
git-svn-id: svn://10.0.0.236/trunk@3713 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 16:05:46 +00:00
nisheeth
c13dcad447 Fix for bug 123984. Approved by don. LO_SelectAll was crashing in
lo_FindDocumentEdge() because state->end_last_line was not being set
properly during layout of the document.  Fixed.


git-svn-id: svn://10.0.0.236/trunk@3712 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 06:09:51 +00:00
troy
e3a40ebb34 Changed ResizeReflowPass1() to default to the reflow reason that was
passed in and not resize


git-svn-id: svn://10.0.0.236/trunk@3711 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 04:28:07 +00:00
troy
e30c089c3e Fixed some places where the reflow reason wasn't getting correctly set for
the initial reflow


git-svn-id: svn://10.0.0.236/trunk@3710 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 04:11:41 +00:00
troy
92687a73dd Changed RootContentFrame to correctly set the reflow reason for the
initial reflow


git-svn-id: svn://10.0.0.236/trunk@3709 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 03:02:15 +00:00
jevering
2687956d1e Fixing my Unix bustage. use PR_MkDir instead of mkdir
git-svn-id: svn://10.0.0.236/trunk@3707 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 02:27:25 +00:00
jevering
529ef6d19a Removed _MAX_PATH to fix builds on Irix and Linux.
git-svn-id: svn://10.0.0.236/trunk@3706 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 02:14:18 +00:00
jevering
f33388d50f Fixed double ended queue to accept a callback in the constructor
to a function which frees the inserted objects.


git-svn-id: svn://10.0.0.236/trunk@3703 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 01:36:24 +00:00
jevering
5dacfac8a0 Fixed up the base dubugrobot function.. mostly cleaning up.
Properly setting the verification directory.


git-svn-id: svn://10.0.0.236/trunk@3702 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 01:35:36 +00:00
jevering
b44966774c More debug robot work. I added some statistic gathering information
as well as hooking up the context vector validation stuff.  The
debug robot now makes two files in the root verification directory
for mapping context vector to debug source dumps as well as occurance
tracking of good and bad context vectors.


git-svn-id: svn://10.0.0.236/trunk@3701 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 01:34:49 +00:00
spider
ce8a77d383 Fix for rendering problem where everything goes black AFTER the first paint on non-8 bit displays
git-svn-id: svn://10.0.0.236/trunk@3700 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 01:30:52 +00:00
cmanske
32186c46a1 Fixed SF1 bug 65190, reviewed by mjudge. Removed duplicate define accidentally introduced by branch merge in edprops.h. Approved by brade, don
git-svn-id: svn://10.0.0.236/trunk@3699 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 01:22:45 +00:00
cmanske
342d8e16e5 Fixed SF1 bugs 65190, 105787, 123355. Reviewed by mjudge, approved by brade, don
git-svn-id: svn://10.0.0.236/trunk@3698 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 01:22:22 +00:00
cmanske
8c6890eb9b Part of fix for SF1 bug 123355, reviewed by fur. Approved by brade, don
git-svn-id: svn://10.0.0.236/trunk@3697 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 01:22:14 +00:00
nisheeth
eee6bb3c86 Fix for bug #108358. No code review coz its a one liner. Fixes the infinite
loop by letting us break out on a condition that wasn't being checked
earlier in lo_LayoutTextBlock() in laytext.c.  Thanks a lot to Jeff
Caldwell (look@shell.lazerlink.net) for the patch.


git-svn-id: svn://10.0.0.236/trunk@3696 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 01:16:59 +00:00
spider
8149b432e3 Change viewer's HandleEvent to HandleEventApp since on Unix it conflicts
with HandleEvent defined in nsView.cpp


git-svn-id: svn://10.0.0.236/trunk@3695 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 00:55:24 +00:00
mccabe
0cb471d35b (Not part of the gromit/mozilla build.)
Added NPL notice.


git-svn-id: svn://10.0.0.236/trunk@3694 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 00:54:15 +00:00
beard
0ca64acf15 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3693 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 00:13:32 +00:00
norris
6622fa3251 (Not part of Communicator build.)
Fix 123552 Array length updating is incorrect


git-svn-id: svn://10.0.0.236/trunk@3692 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 00:10:52 +00:00
norris
61a2bf2e56 (Not build as part of Communicator)
Fix 123788 test crashes spidermonkey: simple null pointer check


git-svn-id: svn://10.0.0.236/trunk@3691 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 00:09:08 +00:00
jwz
5a974a2708 initial revision of lxr (note that this code is under the GPL.)
git-svn-id: svn://10.0.0.236/trunk@3689 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 23:56:23 +00:00
spider
53a8ad98c1 Defining dbopen on Unix too. Reviewed by rpotts.
git-svn-id: svn://10.0.0.236/trunk@3687 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 23:46:52 +00:00
nisheeth
f59e1428bf Fix for bug 124273. Reviewed by toshok. Commented out call to
LO_PopStyleSheetTagByIndex() in lo_RelayoutCell() in laytable.c.
This should fix lots of crashes on rendering pages with stylesheets.


git-svn-id: svn://10.0.0.236/trunk@3686 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 23:39:15 +00:00
valeski
8a4901c308 122606: ftp password request text change. approved by don
git-svn-id: svn://10.0.0.236/trunk@3685 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 23:36:55 +00:00
karnaze
4c6419d544 initial loading of <iframe> documents
git-svn-id: svn://10.0.0.236/trunk@3684 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 23:29:15 +00:00
blythe
5d1bd9c14c approved don/lloyd, new mozilla artwork, including the contest winning animation, submitted by martin.nilsson@bigfoot.com
git-svn-id: svn://10.0.0.236/trunk@3683 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 23:25:23 +00:00
blythe
da9ea6ff61 approved don/lloyd, support multiple periods in save file names, fix by brian@inforum.net
git-svn-id: svn://10.0.0.236/trunk@3682 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 23:23:38 +00:00
rods
12743b4872 kludge for now
git-svn-id: svn://10.0.0.236/trunk@3681 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 23:10:41 +00:00
kmcclusk
1dfa345cb5 Wasn't copying bg.jpg to the install directory.
git-svn-id: svn://10.0.0.236/trunk@3680 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 22:59:09 +00:00
pinkerton
c43991fa0a Fix for bug #126717 (crash dropping at end of personal toolbar). Rev sdagley, appr don.
git-svn-id: svn://10.0.0.236/trunk@3679 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 22:52:56 +00:00
troy
c99c4732b8 Changed how cell layout data is accessed
git-svn-id: svn://10.0.0.236/trunk@3678 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 22:51:54 +00:00
troy
c5d8a9d8f3 Added an additional constructor
git-svn-id: svn://10.0.0.236/trunk@3677 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 22:48:25 +00:00
rods
4cfb89e845 removed nsFileWidget
git-svn-id: svn://10.0.0.236/trunk@3673 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 21:59:45 +00:00
rods
f643695511 fixed build problem
git-svn-id: svn://10.0.0.236/trunk@3672 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 21:56:42 +00:00
rods
887310f664 added nsFileWidget
git-svn-id: svn://10.0.0.236/trunk@3671 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 21:35:26 +00:00
spider
c47938cca0 Support for TrueColor display, add nsNativeDeviceContext to Init method of nsIDeviceContext, fix FontMetrics crash if no RenderingContext is available.
git-svn-id: svn://10.0.0.236/trunk@3670 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 21:26:21 +00:00
kmcclusk
3b6a1d81ef Removed commented out defines
git-svn-id: svn://10.0.0.236/trunk@3669 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 21:04:14 +00:00
kmcclusk
eed046b3da Added code to support getting the URL's for samples using the current working
directory under unix.


git-svn-id: svn://10.0.0.236/trunk@3668 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 20:57:27 +00:00
waldemar
7d191cd32e Fixed compiler warning
git-svn-id: svn://10.0.0.236/trunk@3665 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 20:27:22 +00:00
rods
1396986c19 added GetBitInfo to fix the build
git-svn-id: svn://10.0.0.236/trunk@3664 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 19:43:26 +00:00
kmcclusk
aa61feb82f Added support for nsDispatchListener's under Motif.
git-svn-id: svn://10.0.0.236/trunk@3663 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 19:29:57 +00:00
troy
c1f731addb Eliminated FindCellLayoutData() and changed code to use GetCellLayoutData()
instead


git-svn-id: svn://10.0.0.236/trunk@3662 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 18:50:17 +00:00
buster
40b11809ed more separation between table content and frames
git-svn-id: svn://10.0.0.236/trunk@3660 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 17:50:51 +00:00
dcone
cbba62dbf3 updated blending code, and tests
git-svn-id: svn://10.0.0.236/trunk@3659 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 17:33:26 +00:00
kmcclusk
c317f26d66 Added back MotifMenu's
git-svn-id: svn://10.0.0.236/trunk@3658 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 16:50:37 +00:00
karnaze
da12569a7e initial support for <iframe>
git-svn-id: svn://10.0.0.236/trunk@3657 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 16:46:33 +00:00
buster
3609fb407a continuing work to separate content from frames
git-svn-id: svn://10.0.0.236/trunk@3656 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 15:46:37 +00:00
troy
49eac66b52 Added some XXX performance reminders
git-svn-id: svn://10.0.0.236/trunk@3652 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 04:57:56 +00:00
atotic
1ae22c0e72 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3651 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 03:58:24 +00:00
raman
25a223aba2 Fix for 123352. 5.0SF1-In P0 bug. Approved by Don. Reviewed by waterson. Default simulate_signature_on_system_classes to true until we get signed system classes working.
git-svn-id: svn://10.0.0.236/trunk@3648 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 02:25:51 +00:00
spider
c304ed40d7 Draw text from upper left rather than baseline
git-svn-id: svn://10.0.0.236/trunk@3647 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 02:15:12 +00:00
spider
6dfde18d7b Force the Drawing Area to have zero border width:
git-svn-id: svn://10.0.0.236/trunk@3645 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 01:54:07 +00:00
spider
ab50f26b6a Remove duplicate drawingsurface. fix memory leak
git-svn-id: svn://10.0.0.236/trunk@3644 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 01:22:26 +00:00
kmcclusk
2e3862383e Removed nsMotifMenus until menu's .h file is checked in. . Added code to stop crash in xpcompat.c
git-svn-id: svn://10.0.0.236/trunk@3643 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 00:54:25 +00:00
buster
d62220ccdf more cleanup and frame/content separation
git-svn-id: svn://10.0.0.236/trunk@3642 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 00:41:09 +00:00
spider
698e0cb1a0 Compute TWIPS during Init() of DeviceContext rather than waiting
until the RenderingContext is created.


git-svn-id: svn://10.0.0.236/trunk@3639 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 00:32:29 +00:00
buster
0d87d412e5 some tentative steps towards content/frame separation in tables
git-svn-id: svn://10.0.0.236/trunk@3637 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-11 00:13:18 +00:00
rods
92da2f6bf8 add stdlib.h to pick exit() on irix
git-svn-id: svn://10.0.0.236/trunk@3635 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 23:33:15 +00:00
gordon
ea82f7554a Fixing Mac bustage by adding typecast. Approved by sar.
git-svn-id: svn://10.0.0.236/trunk@3634 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 23:04:18 +00:00
law
774adf441e Fixed Bug #124155; minor change to enable telnet: URLs on some Win systems
git-svn-id: svn://10.0.0.236/trunk@3633 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 22:42:51 +00:00
rods
83ed7683b6 changed signature of OnResize
git-svn-id: svn://10.0.0.236/trunk@3632 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 22:42:34 +00:00
rods
6943b0f95b added motif menus to the viewer
git-svn-id: svn://10.0.0.236/trunk@3631 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 22:41:43 +00:00
waldemar
af8de6ee7b Fixed bugs 123565, 123874, 122877, 122882, 123560, and 77391, all having to do with various errors in reading integers and floating-point numbers and interpreting whitespace around them. Whitespace was being treated inconsistently in parseInt, parseFloat, and ToNumber; made all of these accept any Unicode whitespace in anticipation of the future ECMA v2.
git-svn-id: svn://10.0.0.236/trunk@3625 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 21:18:05 +00:00
waldemar
753acc4b7c Changed js_strtod and js_strtointeger APIs to fix bugs 123565, 123874, 122877, 122882, 123560, and 77391. Added comments.
git-svn-id: svn://10.0.0.236/trunk@3624 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 21:14:41 +00:00
waldemar
69a73252a5 Updated for changed js_strtod and js_strtointeger APIs needed to fix bugs 123565, 123874, 122877, 122882, 123560, and 77391.
git-svn-id: svn://10.0.0.236/trunk@3623 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 21:13:52 +00:00
waldemar
ff457f223c Added js_SkipWhiteSpace.
git-svn-id: svn://10.0.0.236/trunk@3622 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 21:11:00 +00:00
rods
15ebeaee23 initial
git-svn-id: svn://10.0.0.236/trunk@3618 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 20:42:04 +00:00
rods
312ff5aa54 added PRUint32 cast to unbreak the build
git-svn-id: svn://10.0.0.236/trunk@3614 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 20:34:38 +00:00
scullin
9d18a95bec Fix mac build.
git-svn-id: svn://10.0.0.236/trunk@3612 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 20:28:49 +00:00
toshok
c4be407277 fix relayout of preformatted text (and hopefully help out in the
relayout of normal text as well.)  Make sure we start at the element
immediately following the LO_TextBlock (if possible, otherwise start
at the startTextElement.)  Also, loop up to and including the
endElement.  Lastly, insert new soft line breaks after recycling the
old ones.


git-svn-id: svn://10.0.0.236/trunk@3610 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 19:12:01 +00:00
toshok
ca99e17719 Make line breaks at the start and end of a PRE section hard, so they persist across resizes (part of the fix for 123300.
git-svn-id: svn://10.0.0.236/trunk@3609 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 18:58:14 +00:00
scullin
8f043ecc46 Fix serious date parsing bug. Approved ltabb.
git-svn-id: svn://10.0.0.236/trunk@3608 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 18:57:41 +00:00
rods
631240da82 24 bit color fix
git-svn-id: svn://10.0.0.236/trunk@3604 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 18:18:35 +00:00
spider
6cb3b0c91d Attempt to do the right thing on 24 bit displays ... good luck
git-svn-id: svn://10.0.0.236/trunk@3603 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 17:29:11 +00:00
toshok
9e5f59d520 Add one liners about the PRE_*, QUOTE_* and SUBDOC_* #defines.
git-svn-id: svn://10.0.0.236/trunk@3602 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 16:54:35 +00:00
pinkerton
76a8fb7fce Fix bug #12413 in single signon (appr don, rev morse).
git-svn-id: svn://10.0.0.236/trunk@3601 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 15:20:06 +00:00
warren
ae16350c75 Added softupdt dependency for OJI
git-svn-id: svn://10.0.0.236/trunk@3595 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 07:06:09 +00:00
nisheeth
8f4e34f57b Fix for bug 123208. Fixes the problem of nested tables with 100% height
getting heights of 10000 pixels.  Thanks to Tim Rowley (tor@cs.brown.edu)
for providing a patch that was very close to the real fix.  You saved me
a lot of work!


git-svn-id: svn://10.0.0.236/trunk@3594 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 06:56:10 +00:00
troy
9e702bf0fa Changed block to do the initial reflow of a floater. Also fixed a problem
with floated tables crashing


git-svn-id: svn://10.0.0.236/trunk@3591 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 05:33:38 +00:00
raman
b1a0365b9b Fixed to make OJI to build with MOZ_SECURITY. Reviewed by warren. Approved by don. Bug# 124222. This change is under MOZ_OJI and it doesn't affect the regular builds. Deleted call to VR_initialize a non exiting function
git-svn-id: svn://10.0.0.236/trunk@3590 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 04:18:00 +00:00
raman
f9e56baefe Fixed to make OJI to build with MOZ_SECURITY. Reviewed by warren. Approved by don. Bug# 124222. This change is under MOZ_OJI and it doesn't affect the regular builds
git-svn-id: svn://10.0.0.236/trunk@3589 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 04:16:45 +00:00
danm
361c946ddd allow early password dialog access to the mouse. probably bug 93715, certainly bug 110098. a:don
git-svn-id: svn://10.0.0.236/trunk@3588 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 03:00:05 +00:00
spider
ef0e3280ef Removing no longer needed test files
git-svn-id: svn://10.0.0.236/trunk@3585 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 02:15:15 +00:00
spider
b82f4532a4 WIP: XLib Image stuff
git-svn-id: svn://10.0.0.236/trunk@3583 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 01:59:11 +00:00
spider
75c09cf88b More Region fixes
git-svn-id: svn://10.0.0.236/trunk@3579 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 00:44:43 +00:00
donm
7afd539d0f libprgrss needs to come after libsoftupdate for commercial build.
git-svn-id: svn://10.0.0.236/trunk@3578 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 00:34:04 +00:00
spider
fcb998a8dc Region fixes - need to create region before they can be used
git-svn-id: svn://10.0.0.236/trunk@3577 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-10 00:06:38 +00:00
spider
3d2ea48913 Update Unix Shell Factory
git-svn-id: svn://10.0.0.236/trunk@3576 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 23:51:23 +00:00
akkana
d6de5c66c7 124129: Editor prefs should be under EDITOR, not MOZ_MAIL_NEWS
git-svn-id: svn://10.0.0.236/trunk@3575 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 23:36:50 +00:00
fur
aea62596b0 Propagation of numerous bug fixes from 4.06 (which have been reviewed
and tested in that release):

#114564: Fix JS_Enumerate to return an empty id array instead of null
#115395: Fix JS garbage collection
#115200: Security dialog no longer blows assertion
#123211: Make sure output of sort array function is -1, 0, or 1.
#116195: Fix ImportProperty(), cope with an existing local variable
         of the same name as the imported property
         Unbusticate JS_invoke() so that closures work again
#115384,#115395: Handle bugs in toSource that strike when
         getProperty is non-idempotent.  Fix crash during JavaScript
         garbage collection after enumerating object properties.

#??????: mjudge - Win16 files to make ptrdiff_t be 32 bits on Win16


git-svn-id: svn://10.0.0.236/trunk@3573 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 23:04:48 +00:00
blythe
e12b980037 Printing page with a missing image icon no longer crashes
git-svn-id: svn://10.0.0.236/trunk@3571 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 22:43:09 +00:00
hardts
1c07ad6ec2 accidentally undeleted during the layout integration branch landing
git-svn-id: svn://10.0.0.236/trunk@3570 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 22:41:49 +00:00
akkana
e74a7de962 Make auto-save pref work: needed for testing 122182
git-svn-id: svn://10.0.0.236/trunk@3569 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 22:38:28 +00:00
akkana
4fb992785d 122182: fix periodic crashes from no-longer extant editor frames
git-svn-id: svn://10.0.0.236/trunk@3568 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 22:23:24 +00:00
hyatt
3effe29202 Fix for status bar not appearing in a navigator window when
Aurora is initially collapsed.  (An SF1 In bug.)


git-svn-id: svn://10.0.0.236/trunk@3566 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 21:46:19 +00:00
shaver
d0ef1a83a8 added JS_YieldRequest to API (me), and removed assertion in InitClass (mlm)
git-svn-id: svn://10.0.0.236/trunk@3565 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 21:39:58 +00:00
shaver
a4c7b3bca0 added JS_YieldRequest to API
git-svn-id: svn://10.0.0.236/trunk@3564 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 21:24:14 +00:00
rods
b9a0147cfc added text support
git-svn-id: svn://10.0.0.236/trunk@3562 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 21:12:35 +00:00
shaver
2bbfb94096 first arg to Script.prototype.exec is scopeobj, not second-with-ignored-first
git-svn-id: svn://10.0.0.236/trunk@3561 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 21:10:45 +00:00
spider
af7f55c68f Bad load fix
git-svn-id: svn://10.0.0.236/trunk@3560 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 21:07:43 +00:00
fur
c4f601320e Replacement for stddef.h in the JS interpreter which defines ptrdiff_t to be 32 bits rather than 16 bits on Win16 only
git-svn-id: svn://10.0.0.236/trunk@3559 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 21:05:54 +00:00
kmcclusk
c2b5ee5c2b Added mBounds field
git-svn-id: svn://10.0.0.236/trunk@3558 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 21:02:19 +00:00
kmcclusk
62a927fcf6 GetBounds now returns the rect given in the Create if the Widget has not
been realized yet.


git-svn-id: svn://10.0.0.236/trunk@3555 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 20:20:14 +00:00
kmcclusk
26c45c0fdf Copy samples to the correct location
git-svn-id: svn://10.0.0.236/trunk@3553 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 18:01:15 +00:00
kipp
c06c37bb90 Set maxwordwith whenever we are not wrapping
git-svn-id: svn://10.0.0.236/trunk@3552 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 17:48:54 +00:00
kipp
61fdecc0ce Set width properly when not wrapping
git-svn-id: svn://10.0.0.236/trunk@3551 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 17:48:02 +00:00
kipp
4c6c58495b Fixed a pending-break clear bug; use new ReflowInlineChild API
git-svn-id: svn://10.0.0.236/trunk@3550 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 17:47:49 +00:00
kipp
f8ecd0e7d8 Added nsIInlineFrame interface
git-svn-id: svn://10.0.0.236/trunk@3549 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 17:47:20 +00:00
kipp
bb06d20da4 Implement ReflowChild directly so that it uses nsIInlineFrame is available
git-svn-id: svn://10.0.0.236/trunk@3548 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 17:40:21 +00:00
kipp
6bd968fb36 new iids
git-svn-id: svn://10.0.0.236/trunk@3547 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 17:39:42 +00:00
kmcclusk
e63985490c Added a two more shareables to link against + added clobber and install directives
git-svn-id: svn://10.0.0.236/trunk@3546 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 17:38:47 +00:00
kipp
f44c451b15 Implement ReflowInlineChild to check for nsIInlineFrame and use it when available
git-svn-id: svn://10.0.0.236/trunk@3545 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 17:32:52 +00:00
kipp
c14564612f Updated reflow-inline-child to handle the new nsIInlineFrame api
git-svn-id: svn://10.0.0.236/trunk@3544 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 17:32:27 +00:00
kipp
153a8c0c0d Made BRFrame implement nsIInlineFrame
git-svn-id: svn://10.0.0.236/trunk@3543 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 17:31:59 +00:00
kipp
ddcb788e1c Added rules to make TD's, TH's behave more like navigator
git-svn-id: svn://10.0.0.236/trunk@3542 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 17:31:34 +00:00
shaver
ea99a264a9 first arg to Script.prototype.exec is scopeobj, not second-with-ignored-first
git-svn-id: svn://10.0.0.236/trunk@3541 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 17:28:41 +00:00
spider
0aab677def Add Exposure mask code back into event handlers, modify Makefile so
source actually builds (it wasn't on IRIX since the first .cpp had a'#'
sign in it commenting out the rest), and add a char * passwd so nsXtEventHandler
will compile.


git-svn-id: svn://10.0.0.236/trunk@3540 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 16:58:59 +00:00
norris
b7d3aba53f Fix 123552 Array length updating is incorrect
js> a = new Array()

js> a["3.00"] = "three"
three
js> a.length
4

Since "3.00" is not an array index as defined by ECMA, a.length should be 0.


git-svn-id: svn://10.0.0.236/trunk@3539 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 16:47:00 +00:00
troy
90ad65a58a Added nsIReflowCommand interface
git-svn-id: svn://10.0.0.236/trunk@3538 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 04:51:44 +00:00
buster
1f5bdbcecd backed out an inline for UNIX build
git-svn-id: svn://10.0.0.236/trunk@3536 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 03:53:35 +00:00
wtc
c46f521185 Bugzilla bug #351: Removed two extra '>' characters.
Thanks to Romain Vignes <rvignes@cal.fr> for the problem report and fix.


git-svn-id: svn://10.0.0.236/trunk@3530 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 01:14:56 +00:00
wtc
d6cf513c1d Port to Sparc Linux. Files changed: _linux.cfg, _linux.h.
git-svn-id: svn://10.0.0.236/trunk@3527 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 00:51:10 +00:00
kipp
04b0acd125 Added another tracing log message
git-svn-id: svn://10.0.0.236/trunk@3526 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 00:49:12 +00:00
kipp
d5a5ed5a43 Updated tracing messages; fixed bugs where things that shouldn't be pulled up were (blocks, BR's)
git-svn-id: svn://10.0.0.236/trunk@3525 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 00:48:56 +00:00
hardts
775a1569ce fixed ifdef error from landing layout integration branch
git-svn-id: svn://10.0.0.236/trunk@3523 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 00:28:57 +00:00
wtc
d002883d9c On HP-UX, we should just include <model.h> and use its definition
of the types int8, int16, and int32.  This way people can include
nspr header and model.h in any order and won't get "type defined
twice" errors.


git-svn-id: svn://10.0.0.236/trunk@3522 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 23:45:45 +00:00
wtc
dff8f5b6cf Change to improve GC benchmarks, from Raman Tenneti <raman@netscape.com>
of the Java group.


git-svn-id: svn://10.0.0.236/trunk@3521 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 23:44:47 +00:00
wtc
cea54447b7 Use -32 flag for compiler and linker explicitly on IRIX 6.x. This is
necessary on IRIX 6.4 where -n32 is the default.  Thanks to Tomi (a
CS student in Finland whose last name I forget) for the patch.


git-svn-id: svn://10.0.0.236/trunk@3520 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 23:43:33 +00:00
norris
b44d1646cf Fix bug 104191 "ECMA: multiple params w/ same name":
Decompiling "function f(a,b,a) { ... }" would only print two parameters.


git-svn-id: svn://10.0.0.236/trunk@3519 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 23:41:54 +00:00
brade
e5a5cb6bf0 ensure that a title tag is always written before publish; table dialog fixes
git-svn-id: svn://10.0.0.236/trunk@3518 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 23:27:01 +00:00
brade
f5d6dad7f8 #ifdef DEBUG around DebugStr; always set something for title string
git-svn-id: svn://10.0.0.236/trunk@3517 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 23:19:48 +00:00
brade
d0cdc076f0 bug #122011; random crashing bug in Macintosh Composer when user has edited page via browser; zero URLStruct's savedData as done for macfe printing and winfe Composer
git-svn-id: svn://10.0.0.236/trunk@3516 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 23:11:09 +00:00
rods
1e059435ae moved inlined SetCellAt to body
git-svn-id: svn://10.0.0.236/trunk@3515 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 22:07:15 +00:00
rods
58ac8519cc disabled nsTextHelper.cpp build
git-svn-id: svn://10.0.0.236/trunk@3514 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 21:46:55 +00:00
waterson
b421b3d0af Added plugin to list of directories so the nsIPlug.h gets exported. Needed for OJI to build.
git-svn-id: svn://10.0.0.236/trunk@3513 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 21:38:35 +00:00
waterson
aa1da2ec82 Added code to export nsIPlug.h to the public plugins directory. Needed for OJI to build.
git-svn-id: svn://10.0.0.236/trunk@3512 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 21:38:10 +00:00
rods
1bafcce9e2 added more functionality
git-svn-id: svn://10.0.0.236/trunk@3511 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 21:31:33 +00:00
blythe
6294ee0e8b partial fix for crash on printing, assertion on quit
git-svn-id: svn://10.0.0.236/trunk@3510 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 21:28:02 +00:00
pnunn
4368a03480 fix for #122211. reviewed by toshok. ok'd by don.
git-svn-id: svn://10.0.0.236/trunk@3509 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 21:14:42 +00:00
buster
d49c07ece7 less inlining, for UNIX and Linux builds
git-svn-id: svn://10.0.0.236/trunk@3508 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 20:53:43 +00:00
hardts
9d569118c1 stubs and other glue needed for the layout integration build
git-svn-id: svn://10.0.0.236/trunk@3505 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 20:23:48 +00:00
mcafee
713e30651e telnet ports should be an unsigned int, port 32786 was showing up as -1. a,r=ramiro
git-svn-id: svn://10.0.0.236/trunk@3504 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 20:07:51 +00:00
buster
c1f648a966 most HTML 4 attributes supported (though some are still ignored)
lots of methods made inline


git-svn-id: svn://10.0.0.236/trunk@3503 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 19:57:04 +00:00
spider
0980df24e4 Clean up Factory Creation
git-svn-id: svn://10.0.0.236/trunk@3502 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 19:44:54 +00:00
mccabe
afa5375ed6 ECMA fix to bug (93557). When excecuting the Function constructor,
treat all the 'arguments arguments' as if they were concatenated
together as a comma-separated list, and treat the list as if it were
the arguments list in a normal function declaration.  That is, allow
comments, arbitrary whitespace, etc.

Fixed by introducing a TokenStream instance in the Function contructor
code.


git-svn-id: svn://10.0.0.236/trunk@3500 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 19:04:17 +00:00
buster
cb72a8e498 complete HTML 3.2 attribute support
git-svn-id: svn://10.0.0.236/trunk@3491 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 17:19:26 +00:00
gordon
863a3366d3 Renamed debug target output file to match target name: LibMochaDebug.o.
git-svn-id: svn://10.0.0.236/trunk@3490 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 17:19:18 +00:00
shaver
cc464c7409 added XDR-based compile-and-run examples
git-svn-id: svn://10.0.0.236/trunk@3489 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 16:16:10 +00:00
buster
d19132565a more attributes: cell nowrap, caption align, some misc HTML 4 attributes too
git-svn-id: svn://10.0.0.236/trunk@3488 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 15:47:03 +00:00
gordon
44d2c79d3a Spelling counts. Changed name of CustomStaticLib.o target.
git-svn-id: svn://10.0.0.236/trunk@3486 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 15:18:56 +00:00
gordon
93f4577661 Moveed build of Custom Static Libraries later to resolve timing issue.
git-svn-id: svn://10.0.0.236/trunk@3485 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 14:35:30 +00:00
gordon
59fc4365de Changed the names of the static libraries to match what Client.mcp is looking for.
git-svn-id: svn://10.0.0.236/trunk@3484 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 13:03:26 +00:00
gordon
66a06d0d63 Added stub function for SSL_DataPending() so we can export it for other libraries.
git-svn-id: svn://10.0.0.236/trunk@3483 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 13:02:49 +00:00
gordon
89f0be6365 Changes for value-added builds.
git-svn-id: svn://10.0.0.236/trunk@3482 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 11:19:51 +00:00
gordon
147e430796 #ifndef XP_MAC'd out the inclusion of java_lang_Integer.c and code that used it. It seems kind of goofy including a C file that's already in the JavaRuntime project. The recent change also caused JRI headers and stubs to get generated for java_lang_Integer, and elsewhere we are using the JDK headers and stubs. Well sort this out this week.
git-svn-id: svn://10.0.0.236/trunk@3481 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 11:14:04 +00:00
gordon
2055df88c1 #ifndef XP_MAC'd out a call to FE_DiskSpaceAvailable() which doesn't exist on the Mac yet. Left an assert(false), to force us to fix it.
git-svn-id: svn://10.0.0.236/trunk@3480 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 11:08:30 +00:00
gordon
1562727036 Added these exports:
SSL_DataPending
 SHA1_Update
 SHA1_Begin
 SHA1_NewContext
 SHA1_DestroyContext
 SHA1_End
 SECNAV_signedAppletPrivileges
 NET_SetNewContext
 ET_StartSoftUpdate
 FE_GetNetHelpDir
...and regenerated the file using the AnnotateExports tool.


git-svn-id: svn://10.0.0.236/trunk@3479 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 11:06:33 +00:00
gordon
0270ff8171 Add typecast in principalsCanAccessTarget(), necessary to satisfy the Mac's more stringent compilers. The parameter should be double checked by someone who's had more sleep.
git-svn-id: svn://10.0.0.236/trunk@3478 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 11:05:01 +00:00
gordon
10ba94b06d Remove unnecessary include for XP_MAC.
git-svn-id: svn://10.0.0.236/trunk@3477 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 11:02:20 +00:00
gordon
f2dd9325ac Include needed header for XP_MAC.
git-svn-id: svn://10.0.0.236/trunk@3475 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 11:01:39 +00:00
morse
dfaee48e18 cookie management changes
git-svn-id: svn://10.0.0.236/trunk@3474 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 04:14:31 +00:00
joki
8edbb0a851 Removing no longer used file from Makefiles
git-svn-id: svn://10.0.0.236/trunk@3472 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 02:03:31 +00:00
joki
9e1e7ac7da Makefile fixes
git-svn-id: svn://10.0.0.236/trunk@3471 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 01:56:31 +00:00
joki
fd1a60be5a Fixing uuid and whitespace
git-svn-id: svn://10.0.0.236/trunk@3470 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 01:33:06 +00:00
joki
f33f428c69 Adding makefile changes to make raptor build new dom event dirs
git-svn-id: svn://10.0.0.236/trunk@3469 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 00:57:44 +00:00
joki
d6a1da45ce Adding new event handling mechanism into raptor.
git-svn-id: svn://10.0.0.236/trunk@3468 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 00:57:15 +00:00
kmcclusk
d2a0886326 Added NS_NATIVE_WIDGET support. Returns the HWND same as NS_NATIVE_WINDOW. This change
is required to support the cross-platform viewer


git-svn-id: svn://10.0.0.236/trunk@3466 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 22:30:46 +00:00
kmcclusk
12b914949d Changed to use NS_NATIVE_WIDGET instead of NS_NATIVE_WINDOW
git-svn-id: svn://10.0.0.236/trunk@3465 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 22:29:35 +00:00
morse
6dcb8ed201 Single Signon
git-svn-id: svn://10.0.0.236/trunk@3464 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 21:30:15 +00:00
morse
824dfaa4c7 fix tree bustage on mac
git-svn-id: svn://10.0.0.236/trunk@3463 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 17:24:46 +00:00
morse
9783d4159d change for cookie management
git-svn-id: svn://10.0.0.236/trunk@3462 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 16:07:47 +00:00
morse
88a024f80f change for single signon
git-svn-id: svn://10.0.0.236/trunk@3461 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 16:06:49 +00:00
morse
695f8f46a9 cookie management changes
git-svn-id: svn://10.0.0.236/trunk@3460 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 16:01:49 +00:00
morse
2a4fe52ab9 single signon changes
git-svn-id: svn://10.0.0.236/trunk@3459 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 15:56:07 +00:00
dveditz
3c5ebf82b0 merge cleanup
git-svn-id: svn://10.0.0.236/trunk@3458 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 12:11:28 +00:00
joki
8ab8f76b76 Comment change
git-svn-id: svn://10.0.0.236/trunk@3457 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 11:28:08 +00:00
dveditz
2a3a296216 shorten long line to avoid compiler limit
git-svn-id: svn://10.0.0.236/trunk@3456 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 11:19:42 +00:00
dveditz
31e9bc0f4b wrapping long lines
git-svn-id: svn://10.0.0.236/trunk@3455 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 11:07:34 +00:00
dveditz
63b64203d0 merging from SMARTUPDATE_BRANCH
git-svn-id: svn://10.0.0.236/trunk@3454 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 10:55:40 +00:00
dveditz
2d70ca8248 merging from SMARTUPDATE_BRANCH
git-svn-id: svn://10.0.0.236/trunk@3453 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 10:38:53 +00:00
dveditz
d0cee3ba7d merging from SMARTUPDATE_BRANCH
git-svn-id: svn://10.0.0.236/trunk@3452 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 10:30:56 +00:00
dveditz
f731488658 merging from SMARTUPDATE_BRANCH
git-svn-id: svn://10.0.0.236/trunk@3450 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 10:20:08 +00:00
dveditz
6af537410c merging from SMARTUPDATE_BRANCH
git-svn-id: svn://10.0.0.236/trunk@3449 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 09:57:07 +00:00
dveditz
009f73e442 merging from SMARTUPDATE_BRANCH
git-svn-id: svn://10.0.0.236/trunk@3448 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 09:47:23 +00:00
dveditz
03ee705d70 merging from SMARTUPDATE_BRANCH
git-svn-id: svn://10.0.0.236/trunk@3447 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 09:23:42 +00:00
dveditz
e975445d91 merging from SMARTUPDATE_BRANCH
git-svn-id: svn://10.0.0.236/trunk@3446 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 09:10:29 +00:00
dveditz
b8698a5c3c merging from SMARTUPDATE_BRANCH
git-svn-id: svn://10.0.0.236/trunk@3445 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 09:02:21 +00:00
dveditz
3ee83ac54b merging from SMARTUPDATE_BRANCH
git-svn-id: svn://10.0.0.236/trunk@3444 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 08:55:22 +00:00
joki
69bfcc4be4 Adding parts of dom event flow to layout.
git-svn-id: svn://10.0.0.236/trunk@3443 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 07:55:55 +00:00
joki
1e97d505b1 Adding parts of dom event flow into layout.
git-svn-id: svn://10.0.0.236/trunk@3442 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 07:54:32 +00:00
joki
9727916f62 Adding non-core event interfaces to repository
git-svn-id: svn://10.0.0.236/trunk@3441 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 07:42:19 +00:00
joki
503be487bf Adding core DOM event interfaces to repository
git-svn-id: svn://10.0.0.236/trunk@3440 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 07:41:39 +00:00
joki
8a9b2a54f8 Adding new test for editor mode
git-svn-id: svn://10.0.0.236/trunk@3439 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 07:39:03 +00:00
joki
c2005f486b Adding api to get DOM document interface through web widget.
git-svn-id: svn://10.0.0.236/trunk@3438 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-07 07:32:17 +00:00
kipp
85bcfaecd7 Made option code more robust
git-svn-id: svn://10.0.0.236/trunk@3433 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 20:25:11 +00:00
waterson
54bd6545a2 Moved -DAWT_XXX to JAVA_DEFINES, where it shouldve been in the first place.
git-svn-id: svn://10.0.0.236/trunk@3429 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 16:50:16 +00:00
waterson
332231576e Added code to simulate CODEBASE attribute on the APPLET tag for OJI.
git-svn-id: svn://10.0.0.236/trunk@3428 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 16:31:20 +00:00
waterson
7fe0d11eb4 Added C defines for AWT_11/AWT_102.
git-svn-id: svn://10.0.0.236/trunk@3427 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 16:29:58 +00:00
gordon
150acab213 Remove SoftUpdate from mozilla/dist population because it isn't built for mozilla and has a conflict with the Nav-Java stubs directory.
git-svn-id: svn://10.0.0.236/trunk@3426 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 11:22:30 +00:00
gordon
6ae6e8212a Export nsHashTable methods.
git-svn-id: svn://10.0.0.236/trunk@3425 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 11:19:14 +00:00
gordon
2d8a5b4b42 Fixing build breakage by adding mozilla/network/util/mkreg.c to the network.mcp project so NET_RegExpMatch and NET_RegExpValid can be found by the main project.
git-svn-id: svn://10.0.0.236/trunk@3424 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 09:21:59 +00:00
spider
663a45e9c8 Fix for not using TREX_WIDGET branch anymore
git-svn-id: svn://10.0.0.236/trunk@3421 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 05:53:23 +00:00
scullin
f092d3c340 Fake out mac build.
git-svn-id: svn://10.0.0.236/trunk@3420 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 03:30:11 +00:00
kipp
a7566784d7 Don't strip trailing whitespace otherwise underlines render wrong; set max element width properly when not wrapping
git-svn-id: svn://10.0.0.236/trunk@3418 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 01:54:20 +00:00
kipp
56377ec47d Fixed table cell's so that translate valign back to a string properly
git-svn-id: svn://10.0.0.236/trunk@3417 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 01:48:10 +00:00
spider
0e33530dd1 Implement SetClipRect
git-svn-id: svn://10.0.0.236/trunk@3416 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 01:41:42 +00:00
kmcclusk
936c8fc7eb Cast nsNativeWindow to Widget to fix IRIX build. NS_NATIVE_WINDOW returns the XtWindow like it used to.
git-svn-id: svn://10.0.0.236/trunk@3415 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 01:37:59 +00:00
scullin
77dd3699cf Shouldn't have landed.
git-svn-id: svn://10.0.0.236/trunk@3414 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 01:24:18 +00:00
kipp
08c372edfa Fixed options to have their text stripped of junk and whitespace compressed before creating the widget
git-svn-id: svn://10.0.0.236/trunk@3412 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 01:08:43 +00:00
kipp
27884478a3 Fixed GetContent/SetContent to be virtual making Option tags provide the proper text content for display
git-svn-id: svn://10.0.0.236/trunk@3411 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 01:06:52 +00:00
scullin
976cec59a1 Removed xp_reg.c
git-svn-id: svn://10.0.0.236/trunk@3410 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 00:59:13 +00:00
scullin
7b1cbccaf1 Move to network/util/mkreg.c
git-svn-id: svn://10.0.0.236/trunk@3409 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 00:58:32 +00:00
scullin
b8041e32e0 Ok, remove the deleted files from the makefile.
git-svn-id: svn://10.0.0.236/trunk@3408 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 00:57:59 +00:00
scullin
242058260c Put lib in correct spot. (I hope)
git-svn-id: svn://10.0.0.236/trunk@3407 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 00:54:45 +00:00
kmcclusk
966aabcbb6 Made window support child windows under Linux:lesstif
git-svn-id: svn://10.0.0.236/trunk@3406 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 00:53:24 +00:00
scullin
2d47f8c016 Attempt to fix mac build.
git-svn-id: svn://10.0.0.236/trunk@3405 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 00:42:33 +00:00
morse
795f917346 cookie management changes
git-svn-id: svn://10.0.0.236/trunk@3403 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 00:22:03 +00:00
morse
98f5241915 single signon changes
git-svn-id: svn://10.0.0.236/trunk@3402 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 00:21:25 +00:00
mervin
f8a9b9e48e Added NormandyBeachUnix and NormandyBeachWin to allow tinderbox to pull
libmsg and libaddr.


git-svn-id: svn://10.0.0.236/trunk@3401 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 00:19:46 +00:00
scullin
74828c6842 Added libnetutil.a
git-svn-id: svn://10.0.0.236/trunk@3400 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 00:15:15 +00:00
scullin
98971da88b Added netutil.lib
git-svn-id: svn://10.0.0.236/trunk@3399 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-06 00:13:10 +00:00
scullin
2389863783 Added network:util to manifest list
git-svn-id: svn://10.0.0.236/trunk@3397 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 23:49:03 +00:00
scullin
8a716c097e Moved xp_reg to network/utils/mkreg. It was only used in netlib, anyway.
git-svn-id: svn://10.0.0.236/trunk@3396 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 23:45:30 +00:00
scullin
cea2139f3d Removed xp_reg.h
git-svn-id: svn://10.0.0.236/trunk@3395 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 23:43:37 +00:00
scullin
105a87aebc Moved to network/utils/mkreg.h
git-svn-id: svn://10.0.0.236/trunk@3394 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 23:43:09 +00:00
scullin
6be1b59ced Use real implementation of xp_hash for now.
git-svn-id: svn://10.0.0.236/trunk@3392 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 23:23:24 +00:00
scullin
26dbcbf55a Add xp_hash to the modular netlib files.
git-svn-id: svn://10.0.0.236/trunk@3391 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 23:23:05 +00:00
kipp
030a9a7fd5 Fixed bug where &'s followed by whitespace were losing the whitespace
git-svn-id: svn://10.0.0.236/trunk@3390 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 23:20:21 +00:00
danm
70e884be71 added smart browsing prefs a:don
git-svn-id: svn://10.0.0.236/trunk@3387 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 23:01:21 +00:00
buster
c544e9ad78 clean up, and still better cell width attribute layout
git-svn-id: svn://10.0.0.236/trunk@3386 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 22:50:03 +00:00
spider
2f331893bb Fix nested comments in nsTextHelper.cpp. Also check for null widget
when querying Window Bounds


git-svn-id: svn://10.0.0.236/trunk@3383 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 22:08:07 +00:00
kipp
1bda2cfaf6 Revised SizeOf methods to add in nsString's, nsIAtom's and nsVoidArray's properly
git-svn-id: svn://10.0.0.236/trunk@3382 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 21:50:57 +00:00
scullin
421b6407cf Fix typo.
git-svn-id: svn://10.0.0.236/trunk@3381 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 21:47:00 +00:00
kipp
bc4023da9b Added SizeOf method
git-svn-id: svn://10.0.0.236/trunk@3380 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 21:38:36 +00:00
rods
2fa39f82f5 added nsTextHelper
git-svn-id: svn://10.0.0.236/trunk@3379 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 21:37:19 +00:00
spider
cf813e066f Fix Unix build bustage: Case sensitivity on new file added
git-svn-id: svn://10.0.0.236/trunk@3378 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 21:34:42 +00:00
spider
7415205d76 Link with Math library since .so needs it
git-svn-id: svn://10.0.0.236/trunk@3377 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 21:28:50 +00:00
rods
09438744fa added CheckButton support
git-svn-id: svn://10.0.0.236/trunk@3376 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 21:27:08 +00:00
rods
7d0c7b12e5 added CheckButton to factory
git-svn-id: svn://10.0.0.236/trunk@3375 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 21:26:44 +00:00
rods
5012049ec8 implements full Event support
git-svn-id: svn://10.0.0.236/trunk@3374 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 21:26:16 +00:00
rods
444b2db14b implemented Move
git-svn-id: svn://10.0.0.236/trunk@3373 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 21:25:46 +00:00
kipp
7f598f1ac3 Added SizeOf printout support
git-svn-id: svn://10.0.0.236/trunk@3372 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 21:07:20 +00:00
kipp
5d5168f17a Sprinkled SizeOf methods around
git-svn-id: svn://10.0.0.236/trunk@3371 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 21:06:24 +00:00
spider
230e5ca174 Buf fix: Remove extra colormap install. Also remove clip flags from
rendering context


git-svn-id: svn://10.0.0.236/trunk@3370 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 21:04:18 +00:00
spider
70c26b56ab Get viewer compiling on IRIX
git-svn-id: svn://10.0.0.236/trunk@3369 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 20:51:11 +00:00
kipp
e4f32b3895 Added nsSizeOfHandler.cpp to build
git-svn-id: svn://10.0.0.236/trunk@3368 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 20:46:48 +00:00
kipp
ae29e7fcd5 Added public to build dirs
git-svn-id: svn://10.0.0.236/trunk@3367 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 20:46:34 +00:00
kipp
eef3662dde new
git-svn-id: svn://10.0.0.236/trunk@3366 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 20:46:23 +00:00
raman
1b3aba72b3 Fix to make OJI to build.
git-svn-id: svn://10.0.0.236/trunk@3363 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 19:34:36 +00:00
raman
e9827af888 Moved strings from nsUserDialogHelper into this file. Cleanup for OJI. Oked by reliott.
git-svn-id: svn://10.0.0.236/trunk@3362 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 19:34:27 +00:00
raman
b2e264c1b7 include libcaps library for OJI also. Fix to make OJI to build.
git-svn-id: svn://10.0.0.236/trunk@3361 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 19:34:23 +00:00
scullin
9ad7e28ab6 Added network:mimetype to export list
git-svn-id: svn://10.0.0.236/trunk@3360 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 18:59:54 +00:00
spider
f2ed68df6b Complete double buffering implementation. Be sure to reset the offscreen
device upon destruction of the drawing surface


git-svn-id: svn://10.0.0.236/trunk@3359 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 18:56:42 +00:00
scullin
fd661b7ff0 Try that again.
git-svn-id: svn://10.0.0.236/trunk@3358 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 18:48:20 +00:00
scullin
c80aeae43d Moved mkformat.h
git-svn-id: svn://10.0.0.236/trunk@3357 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 18:47:30 +00:00
spider
1f02a0925c Add in double buffering support
git-svn-id: svn://10.0.0.236/trunk@3356 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 18:46:51 +00:00
kmcclusk
fc97b06293 Now passes native app shell data to the top-level window create.
git-svn-id: svn://10.0.0.236/trunk@3355 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 18:38:46 +00:00
scullin
af3f2216c4 Moved mkformat.h to network/mimetype
git-svn-id: svn://10.0.0.236/trunk@3354 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 18:36:14 +00:00
kmcclusk
e7d6541b54 Added a couple of shareable's to link against
git-svn-id: svn://10.0.0.236/trunk@3352 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 18:26:48 +00:00
scullin
eac569ca9b Moved to network/mimetype. Aleks claims this should just work on
the Mac. We'll see.


git-svn-id: svn://10.0.0.236/trunk@3351 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 18:22:28 +00:00
buster
4955cecaaa column widths with cells that span columns now work in most cases, for pixels and percents
not yet implemented for the "constrained" case


git-svn-id: svn://10.0.0.236/trunk@3349 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 18:11:20 +00:00
kipp
1451adbd34 Added spacer tag to the list of things that are containable
git-svn-id: svn://10.0.0.236/trunk@3348 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 17:56:31 +00:00
kipp
c91ba70277 Use serif instead of times roman directly
git-svn-id: svn://10.0.0.236/trunk@3347 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 17:53:46 +00:00
kipp
a8a4ae0952 Added no-wrap support
git-svn-id: svn://10.0.0.236/trunk@3346 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 17:53:28 +00:00
kipp
54516b02fe Added a reminder
git-svn-id: svn://10.0.0.236/trunk@3345 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 17:53:11 +00:00
kipp
bde16ad5ad Set family when PRE VARIABLE is used
git-svn-id: svn://10.0.0.236/trunk@3344 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 17:53:02 +00:00
fur
14c7110ef5 Added jsstddef.h
git-svn-id: svn://10.0.0.236/trunk@3343 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 17:52:18 +00:00
scullin
8befd533f6 Getting ready for mac.
git-svn-id: svn://10.0.0.236/trunk@3342 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 17:48:24 +00:00
kmcclusk
d429cfbdf4 Now links sharable's correctly for Linux
git-svn-id: svn://10.0.0.236/trunk@3341 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 17:14:01 +00:00
cmanske
c442051de0 Fixed SF1 list HTML bugs for Composer. Reviewed by mjudge.
git-svn-id: svn://10.0.0.236/trunk@3340 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 15:00:23 +00:00
cmanske
6ffc4dbb88 Fixed SF1 list HTML bugs for Composer. Reviewed by mjudge
git-svn-id: svn://10.0.0.236/trunk@3339 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 14:58:55 +00:00
pierre
db1cb1b70b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3323 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 06:14:09 +00:00
peterl
bc184de5ad sync up to new style data apis
git-svn-id: svn://10.0.0.236/trunk@3322 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 06:09:09 +00:00
peterl
472d214d92 added accessor to rules for save code
git-svn-id: svn://10.0.0.236/trunk@3321 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 06:07:08 +00:00
peterl
69d1612017 now track rules by insertion order as well as weighted order
added accessor to rules for save code


git-svn-id: svn://10.0.0.236/trunk@3320 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 06:06:50 +00:00
peterl
82a3e00141 changed GetData to GetStyleData and made its return const
added GetMutableStyleData and support for unique contexts


git-svn-id: svn://10.0.0.236/trunk@3319 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 06:01:55 +00:00
peterl
c65120081c added flag to get unique style context during resolve
git-svn-id: svn://10.0.0.236/trunk@3318 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 06:00:55 +00:00
peterl
ddb2f11c7f changed GetStyleData to return const pointers to style structs
new method GetMutableStyleData to get non-const pointer


git-svn-id: svn://10.0.0.236/trunk@3317 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 05:59:34 +00:00
peterl
7238f94887 added flag to force return of unique style context
git-svn-id: svn://10.0.0.236/trunk@3316 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 05:58:20 +00:00
buster
1187bf4578 cells with colspans and width attributes now work correctly
git-svn-id: svn://10.0.0.236/trunk@3303 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 02:50:46 +00:00
sar
0b0ae70fc9 nglglue.cpp should only be in MOZ_NGLAYOUT build
git-svn-id: svn://10.0.0.236/trunk@3302 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 02:36:40 +00:00
buster
a8657b2060 cell width calculations are working (not for colspan cells yet)
some bug fixes and optimizations
some of the more elaborate test cases are closer to Nav4-compatible


git-svn-id: svn://10.0.0.236/trunk@3301 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 02:36:25 +00:00
scullin
915ced6172 Back out dbm use on windows because of lame build order dependency.
git-svn-id: svn://10.0.0.236/trunk@3300 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 02:23:15 +00:00
spider
7dfcbbde39 Remove first Dispatch of Paint message. There should (I believe) be
only 1 paint message dispatched and the first one did not even have
a rendering context associated with it which would cause any app trying
to paint to crash.


git-svn-id: svn://10.0.0.236/trunk@3299 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 02:04:16 +00:00
scullin
6941a0c728 Removed libpwcac stubs.
git-svn-id: svn://10.0.0.236/trunk@3298 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 01:42:15 +00:00
spider
e01f3d38ca WIP ... GraphicsState maintenance
git-svn-id: svn://10.0.0.236/trunk@3297 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 01:39:53 +00:00
scullin
ef4ca0042d Used libdbm and libpwcac instead of stubs.
git-svn-id: svn://10.0.0.236/trunk@3296 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 01:39:31 +00:00
scullin
269c61ddcd Pull and build libdbm and libpwcac
git-svn-id: svn://10.0.0.236/trunk@3295 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 01:38:52 +00:00
scullin
47391107e3 Start using real dbm and pwcac libraries.
git-svn-id: svn://10.0.0.236/trunk@3293 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 01:24:59 +00:00
scullin
057cc9b4e8 Pull and build dbm and libpwcac
git-svn-id: svn://10.0.0.236/trunk@3292 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 01:23:05 +00:00
scullin
76bf7a6f10 Clean up for use in modular netlib, create library on windows.
git-svn-id: svn://10.0.0.236/trunk@3291 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 01:08:32 +00:00
hardts
591887a3b5 touching down layout integration branch
git-svn-id: svn://10.0.0.236/trunk@3290 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 01:03:18 +00:00
kipp
ebe32bd77d WIP checkin
git-svn-id: svn://10.0.0.236/trunk@3289 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 01:02:30 +00:00
kipp
7d546d7479 Fixed to return proper reflow status
git-svn-id: svn://10.0.0.236/trunk@3288 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 00:54:03 +00:00
spider
dedd1a5b72 Implement Matrix Transformation
git-svn-id: svn://10.0.0.236/trunk@3287 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 00:52:54 +00:00
scc
ae0343a5c3 Merge PrepareDist into DistMozilla; switch DistMozilla over to MANIFEST files (away from export.mac files); use mkpath directly.
git-svn-id: svn://10.0.0.236/trunk@3286 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 00:32:15 +00:00
donm
525d99b7af added Normandy Landing area.
git-svn-id: svn://10.0.0.236/trunk@3285 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 00:15:38 +00:00
kipp
f21bd6d2a5 Use PL_strcasecmp so that netlib can link again when it's modular
git-svn-id: svn://10.0.0.236/trunk@3284 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 00:08:17 +00:00
kmcclusk
3ec0dec124 Added WIDGET_DLL, GDF_DLL, and VIEWER_DLL defines for unix
git-svn-id: svn://10.0.0.236/trunk@3283 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 00:04:51 +00:00
kmcclusk
5d55e0cad9 Removed duplicate references to .so's
git-svn-id: svn://10.0.0.236/trunk@3282 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-05 00:03:51 +00:00
pinkerton
af542f456a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3281 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 23:45:13 +00:00
pinkerton
0e30b271ad FE code for internet keyword tooltip moved over from 4.06 (appr don).
git-svn-id: svn://10.0.0.236/trunk@3280 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 23:44:59 +00:00
pinkerton
f745465766 Added InternetKeywordTooltipPane.cp for internet keywords (appr don).
git-svn-id: svn://10.0.0.236/trunk@3279 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 23:44:26 +00:00
danm
1508d6fd5c internet keyword tooltip a:don
git-svn-id: svn://10.0.0.236/trunk@3278 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 23:38:53 +00:00
danm
e15f1040dc added internet keyword tooltip extraction a:don
git-svn-id: svn://10.0.0.236/trunk@3277 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 23:25:53 +00:00
spider
52109e0c47 Finish Implementation of the DeviceContext on Xlib .. twips units, gamma tables, etc..
git-svn-id: svn://10.0.0.236/trunk@3276 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 23:12:07 +00:00
kipp
b93f43db48 Fixed spacer to work again
git-svn-id: svn://10.0.0.236/trunk@3275 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 23:10:26 +00:00
kipp
06c374c6f3 Verify that mIsBlock is correct
git-svn-id: svn://10.0.0.236/trunk@3274 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 23:10:15 +00:00
kipp
e8ee07264a Pass through x,y events to an imagemap that is a map but doesn't use a named map
git-svn-id: svn://10.0.0.236/trunk@3273 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 23:09:52 +00:00
kipp
d4e22b1e8e Removed dead code
git-svn-id: svn://10.0.0.236/trunk@3272 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 23:08:59 +00:00
kipp
7c11316fb4 IMplement ReflowBlockChild
git-svn-id: svn://10.0.0.236/trunk@3271 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 23:08:49 +00:00
kipp
37de578581 Removed ReflowChild that handles space manager (troy can stop nagging me now :-)
git-svn-id: svn://10.0.0.236/trunk@3270 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 23:08:24 +00:00
scc
611382fedf First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3268 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 22:51:07 +00:00
kmcclusk
f6f9a3e3cd Added argc and argv to nsViewer:SetupViewer to pass to nsAppShell
git-svn-id: svn://10.0.0.236/trunk@3266 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 21:49:37 +00:00
rods
4c0f3f49d0 add GetNativeData pure
git-svn-id: svn://10.0.0.236/trunk@3265 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 21:37:14 +00:00
karnaze
0d4b1a5121 radio, checkbox padding done through MapAttributesInto
git-svn-id: svn://10.0.0.236/trunk@3264 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 21:34:41 +00:00
kipp
5669e4858d Create head part and insert it into the model
git-svn-id: svn://10.0.0.236/trunk@3263 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 21:33:44 +00:00
kipp
5beabd3a5c Only layout the body child in the root part
git-svn-id: svn://10.0.0.236/trunk@3262 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 21:33:23 +00:00
rods
e9f9266430 added nsnull to the end of all the XtVaSet methods
git-svn-id: svn://10.0.0.236/trunk@3261 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 21:33:08 +00:00
kipp
b155494bd2 Added a head part
git-svn-id: svn://10.0.0.236/trunk@3260 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 21:33:07 +00:00
kipp
2d5d55029d new
git-svn-id: svn://10.0.0.236/trunk@3259 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 21:32:50 +00:00
sfraser
405b5f37db Remove an include that was breaking windows and UNIX builds.
git-svn-id: svn://10.0.0.236/trunk@3258 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 21:32:45 +00:00
kipp
5ddead2b78 Work around body bug with placeholder code to avoid dup free's of placeholder's child frame
git-svn-id: svn://10.0.0.236/trunk@3257 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 21:04:50 +00:00
kipp
2658cd8f61 Pass through style rules
git-svn-id: svn://10.0.0.236/trunk@3256 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 21:04:22 +00:00
kipp
f2f2d99718 Made absolute frame a container too to work around the pseudo-frame problem
git-svn-id: svn://10.0.0.236/trunk@3255 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 21:04:07 +00:00
rods
200c7c0786 added GetNativeData method
git-svn-id: svn://10.0.0.236/trunk@3254 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 21:00:40 +00:00
rods
781e978bcf fixed param problem
git-svn-id: svn://10.0.0.236/trunk@3253 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 20:59:14 +00:00
pinkerton
0430752b98 Adding prefs pane from 4.x land for smart browsing (appr don).
git-svn-id: svn://10.0.0.236/trunk@3250 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 20:42:53 +00:00
kipp
5dcf2afa80 removed blather code
git-svn-id: svn://10.0.0.236/trunk@3249 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 20:41:14 +00:00
kipp
5803f64ce5 Made View list a little more helpful about widget size and location
git-svn-id: svn://10.0.0.236/trunk@3248 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 20:02:30 +00:00
kmcclusk
7b001eebd2 Build .o files in the correct place.
git-svn-id: svn://10.0.0.236/trunk@3247 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 19:57:38 +00:00
rods
ccde07aebc fixed Create method
git-svn-id: svn://10.0.0.236/trunk@3246 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 19:56:12 +00:00
rods
b7334ef74f add retucn for OnScroll
git-svn-id: svn://10.0.0.236/trunk@3245 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 19:55:42 +00:00
scullin
43fce049c1 Stub out NET_NewStream.
git-svn-id: svn://10.0.0.236/trunk@3244 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 19:54:11 +00:00
kmcclusk
53c473ebec Removed nsStubs.cpp - no longer needed.
git-svn-id: svn://10.0.0.236/trunk@3243 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 19:51:56 +00:00
kmcclusk
c786ddbad8 Added nsAbsoluteFrame to the make for Linux
git-svn-id: svn://10.0.0.236/trunk@3242 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 19:49:19 +00:00
rods
67d4406aa9 added params to create of AppShell
git-svn-id: svn://10.0.0.236/trunk@3241 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 19:45:22 +00:00
rods
5f90b47d32 added GetNative method
git-svn-id: svn://10.0.0.236/trunk@3239 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 18:59:53 +00:00
rods
616ee37f0d fixed event dispatcher
git-svn-id: svn://10.0.0.236/trunk@3237 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 18:53:22 +00:00
rods
c8cb8adbfc fixed event dispatcher code
git-svn-id: svn://10.0.0.236/trunk@3236 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 18:53:00 +00:00
spider
49cdcfdd1b Fix for converting from NS to X RGB Components
git-svn-id: svn://10.0.0.236/trunk@3235 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 18:41:47 +00:00
rods
85f0a988be turned on motif builds
git-svn-id: svn://10.0.0.236/trunk@3232 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 18:20:40 +00:00
rods
ffa4888e9a first working version window, button scrollbar
git-svn-id: svn://10.0.0.236/trunk@3231 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 18:19:50 +00:00
rods
d9a26a778c changed the Create method
git-svn-id: svn://10.0.0.236/trunk@3230 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 18:12:10 +00:00
kipp
ecc388064f Updated tracing; if the body has no children then collapse to nothingness
git-svn-id: svn://10.0.0.236/trunk@3229 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 18:03:14 +00:00
hardts
d0089912d1 removed -A so can be used more easily by client.mak to pull nglayout source
git-svn-id: svn://10.0.0.236/trunk@3228 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 18:00:36 +00:00
kipp
d8e8d2503d Eliminate css margins around block elements (so that ebina margins are used instead)
git-svn-id: svn://10.0.0.236/trunk@3227 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:52:22 +00:00
kipp
e836ab5f4c Made a subclass of nsContainerFrame to deal with PropogateContentOffsets because placeholders contain pseudo-frames
git-svn-id: svn://10.0.0.236/trunk@3226 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:52:02 +00:00
kipp
04e1032b03 Added code to do ebina style margins; perform horizontal alignment and relative positioning for blocks
git-svn-id: svn://10.0.0.236/trunk@3225 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:51:27 +00:00
kipp
95f8a82db4 Log view creation when it's done; create view when child and parent opacities differ
git-svn-id: svn://10.0.0.236/trunk@3224 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:50:53 +00:00
kipp
e265ed4281 Draw a different colored border when showing visual frame boundaries if the frame has a view; only draw if rectangle has area; create scroll frame when requested stylistically
git-svn-id: svn://10.0.0.236/trunk@3223 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:50:19 +00:00
kipp
0697c02104 Added mPrevMarginSynthetic flag
git-svn-id: svn://10.0.0.236/trunk@3222 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:49:29 +00:00
kipp
8da209ec0a Added a hack to only do incremental painting for the block whish is reflowing the html BODY; improved trace msgs; added code to collapse into nothingness empty blocks
git-svn-id: svn://10.0.0.236/trunk@3221 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:49:15 +00:00
kipp
2b8579f527 Add scroll frame to build
git-svn-id: svn://10.0.0.236/trunk@3220 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:48:08 +00:00
kipp
5276c045f8 new
git-svn-id: svn://10.0.0.236/trunk@3219 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:47:49 +00:00
pinkerton
b19294133c Fix some mac problems in single signon and cookie management. Also fix problems when no security is available (ie, free source).
git-svn-id: svn://10.0.0.236/trunk@3218 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:47:31 +00:00
kipp
601ec1d78c Draw a different colored border when showing visual frame boundaries if the frame has a view
git-svn-id: svn://10.0.0.236/trunk@3217 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:47:30 +00:00
kipp
c487af9554 Made usage of crt debug conditional on using the debug RTL
git-svn-id: svn://10.0.0.236/trunk@3216 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:46:41 +00:00
pinkerton
276ebcf945 Support for single sigon and cookie management features.
git-svn-id: svn://10.0.0.236/trunk@3215 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:46:27 +00:00
kmcclusk
215de8d5eb Added gmbaseunix.so to list of libraries to link against to resolve NS_NEW_Timer
git-svn-id: svn://10.0.0.236/trunk@3214 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:45:22 +00:00
kmcclusk
d331df24e8 Added unix directory to build nsTimer.cpp
git-svn-id: svn://10.0.0.236/trunk@3213 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:31:35 +00:00
karnaze
9f44e1e4a3 added modes for backward compatibility
git-svn-id: svn://10.0.0.236/trunk@3211 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 17:23:48 +00:00
scullin
8c158ec767 Add libmimetype.so
git-svn-id: svn://10.0.0.236/trunk@3210 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 15:23:32 +00:00
scullin
ac93017214 Remove cvview.c from the MODULAR_NETLIB build.
git-svn-id: svn://10.0.0.236/trunk@3209 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 14:51:26 +00:00
scullin
446d0a2707 Re-added LO_getNextTabableElement for UNIX.
git-svn-id: svn://10.0.0.236/trunk@3208 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 14:35:09 +00:00
pierre
d6eaf43870 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3205 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 10:03:05 +00:00
ramiro
0d359e06c5 Make the Navigation center mroe useable. Allow the user to resize it.
git-svn-id: svn://10.0.0.236/trunk@3198 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 09:04:36 +00:00
ramiro
7296cd99a5 Comment out a printf.
git-svn-id: svn://10.0.0.236/trunk@3197 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 08:51:10 +00:00
ramiro
de0194ed03 Allow XmNpaneChildType to be changed. So that panes can swap children
on the fly.


git-svn-id: svn://10.0.0.236/trunk@3196 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 08:50:26 +00:00
ramiro
6765d1100a Dont redefine _XfeSwap().
git-svn-id: svn://10.0.0.236/trunk@3195 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 08:49:52 +00:00
ramiro
ab892e76b8 Use _XfeGetValuesCastAndAssign().
git-svn-id: svn://10.0.0.236/trunk@3194 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 08:49:17 +00:00
ramiro
6bdd93c2fe Fix problems (like core dumps) with static strings. Use malloc instead.
git-svn-id: svn://10.0.0.236/trunk@3193 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 08:48:30 +00:00
ramiro
ed737ceac6 Add _XfeGetValuesCastAndAssign() and _XfeSwap().
git-svn-id: svn://10.0.0.236/trunk@3192 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 08:47:34 +00:00
sfraser
3629a74f65 Forgot to build the new custom static libs target.
git-svn-id: svn://10.0.0.236/trunk@3191 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 08:43:47 +00:00
spider
9589ad09d6 Implemented nsRegionUnix
git-svn-id: svn://10.0.0.236/trunk@3190 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 08:40:58 +00:00
spider
009a095c51 support for pull and build in one macro.
Use widget branch


git-svn-id: svn://10.0.0.236/trunk@3189 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 08:03:31 +00:00
spider
416a970b2a Linux fix
git-svn-id: svn://10.0.0.236/trunk@3188 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 07:54:50 +00:00
spider
c7429130db Misc Linux fixes
git-svn-id: svn://10.0.0.236/trunk@3187 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 07:54:39 +00:00
sfraser
2af886c859 Switch over to using Perl's manifest instead of MakeDist, and mess with the relative paths. Also write out progress messages.
git-svn-id: svn://10.0.0.236/trunk@3186 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 07:35:50 +00:00
sfraser
f5b33596a5 Added a needed prototype for the Mac build
git-svn-id: svn://10.0.0.236/trunk@3185 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 07:34:52 +00:00
sfraser
de9ad20b56 Add targets for custom static libraries
git-svn-id: svn://10.0.0.236/trunk@3184 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 07:31:45 +00:00
sfraser
10c9cf8571 Fixes to allow us to compile Progress with this obsolete class for now.
git-svn-id: svn://10.0.0.236/trunk@3183 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 07:31:29 +00:00
sfraser
516b71fe64 Added needed include if JAVA is on
git-svn-id: svn://10.0.0.236/trunk@3182 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 07:30:56 +00:00
sfraser
730de7924f Changed profile.h/cp to userprofile.h/cp, moved libmocha files into a separate static library, added custom shared and static libs for easy addition of internal Netscape code.
git-svn-id: svn://10.0.0.236/trunk@3181 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 07:30:35 +00:00
spider
2dd6efcdc4 Support for Archive Libs on Linux and shared data in executable
git-svn-id: svn://10.0.0.236/trunk@3180 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 07:20:48 +00:00
sfraser
1b6c939920 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3179 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 07:08:46 +00:00
sfraser
959418a240 Changed so that the output library is called Security.o (for compat with commercial build).
git-svn-id: svn://10.0.0.236/trunk@3176 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 06:58:58 +00:00
sfraser
9f8a0a1466 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3175 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 06:57:39 +00:00
sfraser
6885c0ed04 Give the NavigatorDebugExtras stub lib the correct fragment name
git-svn-id: svn://10.0.0.236/trunk@3174 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 06:51:46 +00:00
sfraser
a229fda7eb include xp_error
git-svn-id: svn://10.0.0.236/trunk@3173 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 06:51:17 +00:00
sfraser
f0ca7e10dc Add a new header to export
git-svn-id: svn://10.0.0.236/trunk@3172 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 06:50:25 +00:00
sfraser
d8b5714a7f Fix projects and prefix files for new build system
git-svn-id: svn://10.0.0.236/trunk@3171 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 06:49:45 +00:00
sfraser
632fc197e5 #if JAVA to #ifdef JAVA
git-svn-id: svn://10.0.0.236/trunk@3170 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 06:48:49 +00:00
sfraser
d00662f8ea Do #define FOO 1 not #define FOO
git-svn-id: svn://10.0.0.236/trunk@3169 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 06:48:24 +00:00
spider
ee5893e1f7 Linux fix
git-svn-id: svn://10.0.0.236/trunk@3168 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 06:45:05 +00:00
spider
7aa0c2f2da Fix for building on Linux
git-svn-id: svn://10.0.0.236/trunk@3167 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 06:31:05 +00:00
kipp
30b50d2d6f Fixed another GetDesiredSize case that troy missed
git-svn-id: svn://10.0.0.236/trunk@3165 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 05:49:45 +00:00
spider
caa377c8b5 Add unix to build process by default now
git-svn-id: svn://10.0.0.236/trunk@3164 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 05:16:18 +00:00
spider
8e8a4e5f07 Remove all references to Xt and use only Xlib.
On Linux, add Library Path to Xlib in Makefile


git-svn-id: svn://10.0.0.236/trunk@3163 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 05:15:35 +00:00
spider
77b6dca274 Add NS_NATIVE_DISPLAY support
git-svn-id: svn://10.0.0.236/trunk@3162 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 05:14:25 +00:00
spider
ce5d822171 Add NS_NATIVE_DISPLAY so gfx on UNIX can retrieve a Display
pointer from the Widget


git-svn-id: svn://10.0.0.236/trunk@3161 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 05:13:36 +00:00
rpotts
f9515f9806 Minor changes to nsIStreamListener interface... OnStartBinding(...) now passes out the stream content-type. User visible strings are now nsString arguments (for subsequent i18n)
git-svn-id: svn://10.0.0.236/trunk@3160 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 05:09:32 +00:00
kipp
7cd20442b9 Allow build to not use debug msvcrt
git-svn-id: svn://10.0.0.236/trunk@3159 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 05:03:50 +00:00
wtc
ced5bd5eca In debug build, define MOZ_NO_DEBUG_RTL to use the nondebug version
of the Microsoft VC run-time library.


git-svn-id: svn://10.0.0.236/trunk@3158 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 04:55:37 +00:00
michaelp
225ca0d6a6 made scrolling views more self sufficient.
git-svn-id: svn://10.0.0.236/trunk@3156 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 02:02:08 +00:00
pnunn
2d3b97de62 backing out changes for #1222111 and #112970.
These fixes caused bug#123040. Will reopen the above bugs.


git-svn-id: svn://10.0.0.236/trunk@3155 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 01:46:32 +00:00
hyatt
adbf640de7 Bug fixes to animated gifs in the tree view and in the dropdown menus.
git-svn-id: svn://10.0.0.236/trunk@3154 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 01:45:42 +00:00
jevering
3f6ceaf928 Dont process anything but html files from within the debug robot.
ProcessLink() ignores anything else using a gawd-awful nasty hack.


git-svn-id: svn://10.0.0.236/trunk@3153 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 01:19:25 +00:00
kmcclusk
4e917e24ee Added Stub file for missing externs when building the viewer
git-svn-id: svn://10.0.0.236/trunk@3151 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 00:50:34 +00:00
mccabe
84e1fd30b8 Added a few (JSOp) casts to appease Macintosh compiler workings.
Enums are types!


git-svn-id: svn://10.0.0.236/trunk@3150 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 00:22:55 +00:00
kmcclusk
01af3747ff Added nsFrameImageLoader to the unix make
git-svn-id: svn://10.0.0.236/trunk@3149 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 23:44:08 +00:00
vidur
e231c04da5 Auto-generation of JavaScript stubs
git-svn-id: svn://10.0.0.236/trunk@3148 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 23:39:45 +00:00
kmcclusk
4266592600 Added nsLinkHandler.cpp back into the build
git-svn-id: svn://10.0.0.236/trunk@3147 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 23:38:21 +00:00
vidur
75137db85b idl test file
git-svn-id: svn://10.0.0.236/trunk@3146 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 23:36:47 +00:00
vidur
4f73ab90e5 JavaScript global object interface
git-svn-id: svn://10.0.0.236/trunk@3144 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 23:33:05 +00:00
vidur
f52a9131c7 Auto-generation of JavaScript stubs
git-svn-id: svn://10.0.0.236/trunk@3143 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 23:32:26 +00:00
kmcclusk
97df3e7c17 Added unix nsTimer. Note nsTimer's methods need to be implemented.
git-svn-id: svn://10.0.0.236/trunk@3142 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 23:25:12 +00:00
kmcclusk
0b162eeaa4 Removed nsLinkHandler from the unix Makefile to fix IRIX build
git-svn-id: svn://10.0.0.236/trunk@3140 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 23:17:22 +00:00
hyatt
b7d899c986 Custom icons got broken when merging from the RDF_BRANCH to the tip. Fixing this and
a problem with animated Gifs in Aurora.


git-svn-id: svn://10.0.0.236/trunk@3139 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 23:12:49 +00:00
spider
9fef03acb6 Missed last nsIRegion checkin ... add substract back in...
git-svn-id: svn://10.0.0.236/trunk@3138 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 23:12:02 +00:00
spider
5e22a31518 Fix IRIX build bustage
git-svn-id: svn://10.0.0.236/trunk@3137 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 23:09:29 +00:00
sfraser
c523da7016 Changes to project and prefix files for Mac commercial build
git-svn-id: svn://10.0.0.236/trunk@3136 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 23:01:03 +00:00
sfraser
a8f32baee9 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3135 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 23:00:41 +00:00
sfraser
9112321535 Need to export CPluginView.ObeyCommand for AWT
git-svn-id: svn://10.0.0.236/trunk@3133 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 22:59:52 +00:00
sfraser
c7a0b7ebcf Add target for debug extra stubs
git-svn-id: svn://10.0.0.236/trunk@3132 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 22:59:02 +00:00
sfraser
2b620625ad Need to #include <Folders.h> on the mac build
git-svn-id: svn://10.0.0.236/trunk@3130 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 22:57:51 +00:00
kmcclusk
aeba943fa5 Fix for IRIX build
git-svn-id: svn://10.0.0.236/trunk@3129 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 22:56:29 +00:00
sfraser
ae0ac2c1a3 Remove the ldap2rdf.c file so that this puppy builds with MOZ_LDAP on
git-svn-id: svn://10.0.0.236/trunk@3127 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 22:50:06 +00:00
michaelp
ee11b8ede1 added support for handling transparent views to viewmanager. added
transparency query to nsIFrame.


git-svn-id: svn://10.0.0.236/trunk@3126 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 22:49:45 +00:00
sfraser
40d7a64adc Fix to work with the commercial build.
git-svn-id: svn://10.0.0.236/trunk@3125 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 22:46:47 +00:00
sfraser
e67c33c66f Fix the typedef enum
git-svn-id: svn://10.0.0.236/trunk@3124 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 22:45:30 +00:00
sfraser
9ccbad287c Changes to project and prefix files for Mac commercial build
git-svn-id: svn://10.0.0.236/trunk@3122 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 22:38:12 +00:00
sfraser
cbeee24ad2 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3121 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 22:38:01 +00:00
beard
64b4f9d327 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3120 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 22:32:10 +00:00
jgellman
310237fad9 don't forget the build rule
git-svn-id: svn://10.0.0.236/trunk@3119 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 22:31:39 +00:00
jgellman
2aed34e750 put jrt3240.dll in the right directory when OJI is not defined
git-svn-id: svn://10.0.0.236/trunk@3117 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 22:11:42 +00:00
kmcclusk
43eee44f50 Added nsraptorwebwidget.so as a library to link against
git-svn-id: svn://10.0.0.236/trunk@3116 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 22:04:07 +00:00
kmcclusk
48bf4919e1 Added nsLineLayout.cpp to linux makefile
git-svn-id: svn://10.0.0.236/trunk@3115 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 21:59:53 +00:00
slamm
0ffb44a1d0 Tie selections to the rdf backend and hookup the context menu
git-svn-id: svn://10.0.0.236/trunk@3114 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 21:50:55 +00:00
slamm
8bb3b005f2 Split the XFE_PopupMenu class into two classes. This way we can derive XFE_SimplePopupMenu that does not depend on the XFE command system.
git-svn-id: svn://10.0.0.236/trunk@3113 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 21:50:52 +00:00
slamm
48168be769 Add support for popup menus.
git-svn-id: svn://10.0.0.236/trunk@3112 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 21:50:48 +00:00
wtc
f7f84ca625 Backed out revision 3.7. First, XP_PC not only means Win NT and Win 95,
but also WIN16 and OS2.  I don't think WIN16 and OS2 have GetLastError().
Second, we always call DllErrorInternal() with the argument
_MD_ERRNO(), and _MD_ERRNO() is defined as GetLastError() on NT and
Win95.


git-svn-id: svn://10.0.0.236/trunk@3111 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 21:46:18 +00:00
slamm
9627f50c53 Fix visual problem on solaris. Thanks to Juergen Keil <jk@tools.de> for the patch.
git-svn-id: svn://10.0.0.236/trunk@3110 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 21:42:48 +00:00
hyatt
613f622674 Plugging a memory leak in FlushIconInfo.
git-svn-id: svn://10.0.0.236/trunk@3109 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 21:38:06 +00:00
michaelp
5365a33b57 added optimization so that as we render top->bottom, if the clip region ever
becomes empty, we stop rendering.


git-svn-id: svn://10.0.0.236/trunk@3108 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 21:30:51 +00:00
wtc
380fa328db Backed out revision 3.2. In C and C++, a pointer to any datatype
can be implicitly cast to void *.  So the explicit (void *) cast
in the argument for PR_Free() should not be necessary.


git-svn-id: svn://10.0.0.236/trunk@3105 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 21:23:24 +00:00
rods
e10588ace6 removed nsdefs.h include
git-svn-id: svn://10.0.0.236/trunk@3104 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 21:17:44 +00:00
rods
eae5124c31 removed nsObject from it
git-svn-id: svn://10.0.0.236/trunk@3103 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 21:16:10 +00:00
rods
3b6d52a3d8 uses sharded instead of static libs
git-svn-id: svn://10.0.0.236/trunk@3102 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 21:15:13 +00:00
kmcclusk
a82d7eadbf Now the Linux Makefile actually compiles nsWebWidget and nsLinkHandler. Before it did nothing.
git-svn-id: svn://10.0.0.236/trunk@3101 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 21:09:08 +00:00
kmcclusk
8f66119835 Moved XP_PC around nsLinkHandler constructor PL_initEvent and PL_PostEvent
git-svn-id: svn://10.0.0.236/trunk@3100 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 20:59:32 +00:00
kipp
f66e84a6e1 Fixed install bug on unix
git-svn-id: svn://10.0.0.236/trunk@3099 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 20:50:02 +00:00
rods
490f2c0dbc initial check in
git-svn-id: svn://10.0.0.236/trunk@3098 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 20:07:49 +00:00
rjc
8d2f4aa454 Add export for XP_ParseTimeString (from RDF_BRANCH)
git-svn-id: svn://10.0.0.236/trunk@3097 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 19:13:10 +00:00
spider
78612ca265 Change some colors and link with gfxunix
git-svn-id: svn://10.0.0.236/trunk@3095 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 19:02:29 +00:00
spider
05f37f4879 Remove old Subtrct method from nsRegion due to interface changes
Add support for 8 bit color on ro and rw devices
Add ConvertPixel() routine to convert from gfx to X


git-svn-id: svn://10.0.0.236/trunk@3094 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 19:01:41 +00:00
rjc
7497d654a5 Landing RDF_BRANCH.
git-svn-id: svn://10.0.0.236/trunk@3093 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:57:19 +00:00
kipp
08994aa817 Install broke-image.gif
git-svn-id: svn://10.0.0.236/trunk@3091 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:56:45 +00:00
kipp
957f7882a1 Avoid scaling image when rendering the broken-image image
git-svn-id: svn://10.0.0.236/trunk@3089 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:56:11 +00:00
kipp
10477b257e Added logging events
git-svn-id: svn://10.0.0.236/trunk@3088 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:55:23 +00:00
rjc
ab4f8a26bb Fix warnings on Mac (from RDF_BRANCH)
git-svn-id: svn://10.0.0.236/trunk@3086 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:50:29 +00:00
law
32c00e262e Fix for defect #122687: Bypass VC++ v5 optimizer bug
git-svn-id: svn://10.0.0.236/trunk@3085 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:33:25 +00:00
kipp
1b464bb3a3 new
git-svn-id: svn://10.0.0.236/trunk@3084 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:31:14 +00:00
kipp
1e008b80d6 Fixed so that document still gets set even when notify is false
git-svn-id: svn://10.0.0.236/trunk@3083 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:31:07 +00:00
kipp
161881f7ea Adjust count of data to append by offset when offset is non-zero
git-svn-id: svn://10.0.0.236/trunk@3082 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:29:43 +00:00
rjc
da0ffa18ca Fix warnings.
git-svn-id: svn://10.0.0.236/trunk@3081 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:29:23 +00:00
rjc
a92c502365 Fix crash bug regarding buffer size. (Reported by Juergen Keil - jk@tools.de)
git-svn-id: svn://10.0.0.236/trunk@3080 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:29:00 +00:00
rjc
28b1c7fbea More RDF_BRANCH fun.
git-svn-id: svn://10.0.0.236/trunk@3079 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:17:09 +00:00
michaelp
3118124379 fixed bug bug in new region code where region was not Init()ed.
git-svn-id: svn://10.0.0.236/trunk@3078 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:13:12 +00:00
kipp
eb13fa059a Fixed up usage of insert/append/remove/replace api return values in dom methods
git-svn-id: svn://10.0.0.236/trunk@3077 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:09:17 +00:00
rjc
42ec16d39b Add new file (find2rdf.c) into Mac project from RDF_BRANCH.
git-svn-id: svn://10.0.0.236/trunk@3076 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:03:44 +00:00
kipp
c57b1143c9 When root content frame doesn't have any children make sure the aDesiredSize out parameter is properly setup
git-svn-id: svn://10.0.0.236/trunk@3075 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 17:44:23 +00:00
kmcclusk
f66782a740 Linux:Makefile for viewer - Added more sharable libs for the LINUX build
git-svn-id: svn://10.0.0.236/trunk@3074 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 17:43:03 +00:00
rjc
101c731c0d Landing the RDF_Branch for the WinFE (Dave Hyatt really landing this).
git-svn-id: svn://10.0.0.236/trunk@3073 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 17:38:33 +00:00
rjc
7877916b0f Landing RDF_BRANCH.
git-svn-id: svn://10.0.0.236/trunk@3072 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 17:35:31 +00:00
rjc
babb77abcf Merging RDF_BRANCH onto tip.
git-svn-id: svn://10.0.0.236/trunk@3071 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 17:32:56 +00:00
cyeh
ea6c9261ad update change log for preparation of new tarball code drop
git-svn-id: svn://10.0.0.236/trunk@3070 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 17:22:20 +00:00
waterson
d33d1e2854 Added compiler defines for AWT_11 to keep AWT 1.0.2 building when
MOZ_JAVA is set in commercial build.


git-svn-id: svn://10.0.0.236/trunk@3069 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 17:08:27 +00:00
kipp
deaf80d08d Updated to COMized doc observer API
git-svn-id: svn://10.0.0.236/trunk@3067 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 16:01:51 +00:00
kipp
ef269b8949 Updated to new api
git-svn-id: svn://10.0.0.236/trunk@3066 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 16:01:25 +00:00
kipp
0d2a492c8f Whacked to implement revised COMized insert/delete/remove/append child methods from nsIContent
git-svn-id: svn://10.0.0.236/trunk@3065 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 16:01:02 +00:00
kipp
facc2bd67b Use revised GetDocument API from content
git-svn-id: svn://10.0.0.236/trunk@3064 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 16:00:40 +00:00
kipp
d2b66aa21a Print out percentage values properly
git-svn-id: svn://10.0.0.236/trunk@3063 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 16:00:15 +00:00
kipp
9b8851361f Disable notifications during construction of select container
git-svn-id: svn://10.0.0.236/trunk@3062 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:59:56 +00:00
kipp
5abd6d1e3b Disable notifications during construction of file container
git-svn-id: svn://10.0.0.236/trunk@3061 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:59:44 +00:00
kipp
e6ac50ef0f Use new GetDocument API
git-svn-id: svn://10.0.0.236/trunk@3060 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:59:24 +00:00
kipp
2a34a0afa1 Fixed IID reference and added a reminder comment
git-svn-id: svn://10.0.0.236/trunk@3059 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:59:09 +00:00
kipp
1ae8f2fbce Use revised Presentation shell API; control notifications directly; propogate end of document load to document so that observers can be notified
git-svn-id: svn://10.0.0.236/trunk@3058 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:58:52 +00:00
kipp
5ce48810fe Fixed logging messages to say Reflow not ResizeReflow
git-svn-id: svn://10.0.0.236/trunk@3057 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:57:39 +00:00
kipp
97e9354074 Print out view during listings
git-svn-id: svn://10.0.0.236/trunk@3056 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:57:24 +00:00
kipp
0c523b77e3 Wrap created frames in a view if necessary
git-svn-id: svn://10.0.0.236/trunk@3055 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:57:08 +00:00
kipp
3ead278eb6 Added GetLoadImageFailed method
git-svn-id: svn://10.0.0.236/trunk@3054 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:56:50 +00:00
kipp
3f96e00b1a Create view for the image always; update to use new API's; use nsHTMLFrame to create view
git-svn-id: svn://10.0.0.236/trunk@3053 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:56:40 +00:00
kipp
0dc9302aa8 Implement stubs for revised insert/delete/remove/append api's
git-svn-id: svn://10.0.0.236/trunk@3052 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:56:15 +00:00
kipp
b270330541 disable notifies during synthetic content insertion
git-svn-id: svn://10.0.0.236/trunk@3051 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:55:49 +00:00
kipp
17741db54e Implement revised COMized API
git-svn-id: svn://10.0.0.236/trunk@3050 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:54:57 +00:00
kipp
b63b1179d0 Print out view during listings; try to support broken image handling better
git-svn-id: svn://10.0.0.236/trunk@3049 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:52:01 +00:00
kipp
7935c3c6e9 Print out views during listings
git-svn-id: svn://10.0.0.236/trunk@3048 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:51:17 +00:00
kipp
fd73209bce Implement ListTag; print out view during listings
git-svn-id: svn://10.0.0.236/trunk@3047 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:50:58 +00:00
kipp
a5d21d7287 Added nsHTMLFrame to build
git-svn-id: svn://10.0.0.236/trunk@3046 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:49:09 +00:00
kipp
52710ca83c new
git-svn-id: svn://10.0.0.236/trunk@3045 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:49:00 +00:00
kipp
76d0d1ca7a declare and implement revised content api
git-svn-id: svn://10.0.0.236/trunk@3044 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:48:14 +00:00
kipp
7292ea6df8 Init fEntireContent
git-svn-id: svn://10.0.0.236/trunk@3043 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:47:48 +00:00
kipp
4db8f5a2b0 Declare factory here for now
git-svn-id: svn://10.0.0.236/trunk@3042 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:47:34 +00:00
kipp
284512c2d1 IMplement factory in this class; AddRef during QueryInterface like it should; init refcnt in ctor
git-svn-id: svn://10.0.0.236/trunk@3041 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:47:22 +00:00
kipp
6d4fd8c715 Implement COMized document observer API; added logging of doc observer methods
git-svn-id: svn://10.0.0.236/trunk@3040 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:46:54 +00:00
kipp
13f033e4fe Tell document that content changed not shell's
git-svn-id: svn://10.0.0.236/trunk@3039 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:46:04 +00:00
kipp
5d9fa5cc8c Display view during listings
git-svn-id: svn://10.0.0.236/trunk@3038 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:45:48 +00:00
kipp
14bf58f141 Decleare BeginLoad/EndLoad
git-svn-id: svn://10.0.0.236/trunk@3037 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:45:36 +00:00
kipp
7fe1da5fe0 Pass on Begin/End Load to observers; removed selection factory method
git-svn-id: svn://10.0.0.236/trunk@3036 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:45:25 +00:00
kipp
42cf02aaad Print out view during listings
git-svn-id: svn://10.0.0.236/trunk@3035 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:41:53 +00:00
kipp
720a2a0f67 Presentation shell is no longer a subclass of nsIDocumentObserver (the implementation still is however, it's just not publicized)
git-svn-id: svn://10.0.0.236/trunk@3034 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:41:39 +00:00
kipp
693b5fa149 COMized API; added Begin/End reflow and Begin/End Load methods
git-svn-id: svn://10.0.0.236/trunk@3033 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:40:56 +00:00
kipp
9751be15df Added begin/end load methods
git-svn-id: svn://10.0.0.236/trunk@3032 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:39:45 +00:00
kipp
6401e9ace6 COMized some of the API; added a notify flag to the child insert/replace/append/remove methods
git-svn-id: svn://10.0.0.236/trunk@3031 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:39:32 +00:00
kipp
7c943247ed Poke stream listener after finishing the parse
git-svn-id: svn://10.0.0.236/trunk@3030 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 15:38:57 +00:00
warren
4688e91a24 Fix for mozilla build w/o MOZ_JAVA
git-svn-id: svn://10.0.0.236/trunk@3026 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 07:45:44 +00:00
mcafee
ccdba975a1 SunOS 4.1.4 doesn't have Xfuncproto.h
git-svn-id: svn://10.0.0.236/trunk@3023 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 07:18:49 +00:00
warren
decc407471 Merged changes from OJI_19980528_TEMP_BRANCH
git-svn-id: svn://10.0.0.236/trunk@3022 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 06:55:24 +00:00
jgellman
011b0cb5c2 Merges from OJI_19980528_TEMP_BRANCH
git-svn-id: svn://10.0.0.236/trunk@3021 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 06:19:45 +00:00
mccabe
b0eb2c7a3d Reinstated backed-out changes.
git-svn-id: svn://10.0.0.236/trunk@3020 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 06:08:21 +00:00
warren
9702009d99 Didn't get mergedcp foo.h nsscd.h!
git-svn-id: svn://10.0.0.236/trunk@3012 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 05:27:15 +00:00
warren
82a703ac90 Merge didn't get checked in for oji changes? - fixing
git-svn-id: svn://10.0.0.236/trunk@3011 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 05:12:24 +00:00
jgellman
62698e3e5f back out change. inadvertently checked in self-modifying build code
git-svn-id: svn://10.0.0.236/trunk@3010 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 04:43:17 +00:00
mccabe
7880652747 Hopefully removed the offending jsstddef.h for good.
git-svn-id: svn://10.0.0.236/trunk@3006 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 03:55:10 +00:00
michaelp
6dabba1783 added support of irregular damage regions to viewmanager.
git-svn-id: svn://10.0.0.236/trunk@2999 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 03:12:52 +00:00
sar
964270c59d backing out mccabes checkin
git-svn-id: svn://10.0.0.236/trunk@2997 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 02:30:46 +00:00
troy
5eeca9f78f Initialized nsBlockReflowState::mStyleSizeFlags to 0
git-svn-id: svn://10.0.0.236/trunk@2996 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 02:27:39 +00:00
jgellman
5e3f2a67cf fix for MSCV 4.21 compiler -- explicit cast
git-svn-id: svn://10.0.0.236/trunk@2994 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 02:19:42 +00:00
jgellman
11e2c71ddd added modules/oji MozillaSourceCommon
git-svn-id: svn://10.0.0.236/trunk@2992 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 01:22:16 +00:00
warren
0df611e3d9 Added modules/oji
git-svn-id: svn://10.0.0.236/trunk@2990 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 00:59:04 +00:00
jgellman
fc5e2900ca add export.mac file for header files
git-svn-id: svn://10.0.0.236/trunk@2989 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 00:58:33 +00:00
timm
efd8b6210d added oneStepMode flag
git-svn-id: svn://10.0.0.236/trunk@2988 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 00:51:34 +00:00
timm
fb0ac74596 117395 cannot find phone book entry
git-svn-id: svn://10.0.0.236/trunk@2987 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 00:50:58 +00:00
kmcclusk
3f2357b685 Modified Linux:viewer makefile - Added a few more libraries to link against
git-svn-id: svn://10.0.0.236/trunk@2985 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 00:47:22 +00:00
tague
9066c7420c fix header error
git-svn-id: svn://10.0.0.236/trunk@2983 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 00:44:52 +00:00
buster
c660db67ef a variety of fixes and optimizations
together with a fix troy just checked in, this makes a lot of real-world tables look a whole lot better


git-svn-id: svn://10.0.0.236/trunk@2982 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 00:43:53 +00:00
jgellman
cb4014892b merge from OJI branch
git-svn-id: svn://10.0.0.236/trunk@2980 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 00:37:20 +00:00
mccabe
1ccdb802f9 Removed reference to jsstddef.h - which got propagated over from
recent changes to js/ref.  We need to fix prconv.sed or check in
src/jsstddef.h!


git-svn-id: svn://10.0.0.236/trunk@2975 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 00:23:57 +00:00
blythe
ad8817f5b7 Fix a bug where we would attempt to execute c:\autoexec.bat, which is a bad thing
git-svn-id: svn://10.0.0.236/trunk@2974 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 00:23:00 +00:00
scc
8d6d952a29 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2973 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 00:12:50 +00:00
troy
7bf65a52da Changed Paint() to use GetCoordValue() instead of GetIntValue()
git-svn-id: svn://10.0.0.236/trunk@2972 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 00:11:15 +00:00
troy
28e235cd46 Changed GetReflowMetrics() to initial maxElementSize to (0,0)
git-svn-id: svn://10.0.0.236/trunk@2968 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 23:57:03 +00:00
scc
d1e463682a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2965 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 23:54:58 +00:00
mccabe
d032f71431 Cleanup of parseInt checkin, including comment changes. The code is
now a little more explit about when it expects js strings to be
null-terminated.


git-svn-id: svn://10.0.0.236/trunk@2964 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 23:21:08 +00:00
blythe
20deb9ce7a When using a blank page as the homepage, sometimes the wait cursor hangs around. This fixes that.
git-svn-id: svn://10.0.0.236/trunk@2963 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 22:42:43 +00:00
cyeh
3755bc56e1 remove duplicate entries
git-svn-id: svn://10.0.0.236/trunk@2962 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 22:18:37 +00:00
cyeh
879cf382f1 add the entire libfont directory to MozillaSourceMacOnly
git-svn-id: svn://10.0.0.236/trunk@2961 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 22:16:37 +00:00
michaelp
8415266052 added additional protection against NULL parent views.
git-svn-id: svn://10.0.0.236/trunk@2960 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 22:06:29 +00:00
michaelp
495b7681f4 prevented infinite paint/damage loop.
git-svn-id: svn://10.0.0.236/trunk@2959 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 22:05:45 +00:00
michaelp
06c9f10a6f now calls viewmanager to effect view changes.
git-svn-id: svn://10.0.0.236/trunk@2958 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 22:04:54 +00:00
waldemar
c309352e95 Fixed bug 122884
git-svn-id: svn://10.0.0.236/trunk@2957 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 22:04:31 +00:00
michaelp
bf64f5f09c added ability to select regions into rendering context.
git-svn-id: svn://10.0.0.236/trunk@2956 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 22:04:09 +00:00
waldemar
c72135749d Updated comment after new-expression bug fix
git-svn-id: svn://10.0.0.236/trunk@2955 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 22:03:04 +00:00
pinkerton
4d8c3a4949 Backing out appearance manager changes because Apple won't be able to deliver an SDK that fits our needs and works with pre 8.5 systems. Code is still in the tree if it ever wants to be pulled out again later (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@2954 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 21:39:14 +00:00
blythe
d7608e4b39 Remove behavior of loading first item in previous window history, in order to correct a bug and allow better end user customization
git-svn-id: svn://10.0.0.236/trunk@2953 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 21:25:08 +00:00
blythe
5f74af3312 Due to recent changes to the splash screen, I now desire to see it on startup
git-svn-id: svn://10.0.0.236/trunk@2952 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 21:24:20 +00:00
kmcclusk
c4164898a7 In nsViewer::processArguments declared int i, outside of the block.
Placed XP_PC around PL_initialize and PL_event calls in nsViewer.cpp
In nsDocLoader::CancelAll Moved int i declaration out of the loop


git-svn-id: svn://10.0.0.236/trunk@2951 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 21:17:15 +00:00
pinkerton
72df74e2cc Backing out appearance manager changes and removal of CPPb's since they're out of date anyway.
git-svn-id: svn://10.0.0.236/trunk@2950 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 21:15:02 +00:00
troy
b706f86e4e Added null pointer check for mRootView in Composite()
git-svn-id: svn://10.0.0.236/trunk@2949 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 21:05:00 +00:00
kmcclusk
4cb77517c8 Added clobber and install directives to viewer Makefile
git-svn-id: svn://10.0.0.236/trunk@2948 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 21:02:22 +00:00
pinkerton
30ab6c79df Backing out appearance manager changes because Apple won't be able to deliver an SDK that fits our needs and works with pre 8.5 systems. Code is still in the tree if it ever wants to be pulled out again later (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@2947 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 21:00:07 +00:00
pinkerton
92710b3f3a Prepare for column saving in HT (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@2946 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 20:56:28 +00:00
pinkerton
4f1311a489 Make columns work correctly in nav center (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@2945 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 20:56:06 +00:00
kmcclusk
849b47cbfb Modified viewer Makefile to compile all viewer source files.
git-svn-id: svn://10.0.0.236/trunk@2943 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 20:34:52 +00:00
rpotts
f8991743c8 Turned off the load_background flag when loading URLs... This allows netlib to produce more status information which gets pushed out of nsIStreamListener::OnProgress(...)
git-svn-id: svn://10.0.0.236/trunk@2941 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 20:17:17 +00:00
spider
59e4679ec9 Implement Native Text Width routines for char and unicode
git-svn-id: svn://10.0.0.236/trunk@2940 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 19:57:35 +00:00
scullin
def158f53b Added NSPR logging. Set NSPR_LOG_MODULES=NSRepository:4 to get
bunches o' logging.


git-svn-id: svn://10.0.0.236/trunk@2938 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 19:54:52 +00:00
rods
2433841941 uses sharded instead of static libs
git-svn-id: svn://10.0.0.236/trunk@2937 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 19:45:39 +00:00
rods
cbd487ede0 disabled the build of the test app
git-svn-id: svn://10.0.0.236/trunk@2936 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 19:44:16 +00:00
spider
c3b729e06d Minor Rendering fixes. FontMetric hardcoded to get by. Implemented
FillPolygon/DrawPolygon.


git-svn-id: svn://10.0.0.236/trunk@2935 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 19:35:41 +00:00
anthonyd
b58cb6e4d6 added euro character to known entities array - awd
git-svn-id: svn://10.0.0.236/trunk@2933 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 18:53:18 +00:00
scullin
849e7a56a6 Added tests sub-directory.
git-svn-id: svn://10.0.0.236/trunk@2932 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 18:39:17 +00:00
scullin
c2a8909ca2 Moved nettest into network/module/tests
git-svn-id: svn://10.0.0.236/trunk@2931 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 18:38:20 +00:00
blythe
c447239b67 martin.nilsson@bigfoot.com updated the images slightly
git-svn-id: svn://10.0.0.236/trunk@2928 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 17:53:52 +00:00
valeski
8bad9285c7 fixing shorted mem allocation call.
git-svn-id: svn://10.0.0.236/trunk@2927 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 17:24:15 +00:00
kmcclusk
3dd92e3efc Removed nsDocLoader.cpp dependency on <windows.h>
Changed MAXPATHLEN to a constant 1024 for viewer
Moved XP_PC to include both event in OnLinkClickEvent::OnLinkClickEvent


git-svn-id: svn://10.0.0.236/trunk@2924 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 16:44:17 +00:00
kipp
ff2bdc8dd4 removed
git-svn-id: svn://10.0.0.236/trunk@2923 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 16:33:52 +00:00
troy
ae8b22d156 Turned on incremental painting
git-svn-id: svn://10.0.0.236/trunk@2919 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 05:29:44 +00:00
troy
1674499c38 Added member function Invalidate()
git-svn-id: svn://10.0.0.236/trunk@2918 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 05:28:11 +00:00
troy
1d7d0dce90 Turned off CS_HREDRAW and CS_VREDRAW
git-svn-id: svn://10.0.0.236/trunk@2917 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 05:27:08 +00:00
troy
0c4dc6781c Made damage rect passed to UpdateView() be a const
git-svn-id: svn://10.0.0.236/trunk@2916 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 05:26:42 +00:00
wtc
eaab02615c Moved the definition of _AIX_AtomicSet() to the outside of the
#ifndef AIX4_1 block.  Thanks to C. Fung <carsonf@torolab.ibm.com>
for reporting this problem.


git-svn-id: svn://10.0.0.236/trunk@2910 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 03:25:22 +00:00
scullin
ad7350902b Fix nglayout build.
git-svn-id: svn://10.0.0.236/trunk@2909 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 02:54:02 +00:00
briano
43c446b4fa Support for SINIX-Z and QNX.
git-svn-id: svn://10.0.0.236/trunk@2908 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 02:50:14 +00:00
troy
1d99d8539e Changed SetBounds() to not request a repaint when resizing the window
git-svn-id: svn://10.0.0.236/trunk@2907 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 02:46:31 +00:00
briano
7e9c5668a6 Added a test for snprintf().
git-svn-id: svn://10.0.0.236/trunk@2906 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 02:44:34 +00:00
troy
d81dd07553 Changed WM_WINDOWPOSCHANGED handling to ignore z-order (and activation)
changes


git-svn-id: svn://10.0.0.236/trunk@2905 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 02:33:29 +00:00
spider
84e03c0f3a IRIX fixes
git-svn-id: svn://10.0.0.236/trunk@2904 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 02:30:39 +00:00
troy
07b5d7d386 Fixed a problem that was causing a crash
git-svn-id: svn://10.0.0.236/trunk@2903 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 02:11:26 +00:00
waldemar
24465967b0 Fixed bugs 76103 and 122787: parsing of new-expressions
git-svn-id: svn://10.0.0.236/trunk@2902 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 01:54:31 +00:00
spider
b7b9eb3a5f Add support for LD_LIBS for shared objects
git-svn-id: svn://10.0.0.236/trunk@2901 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 01:48:14 +00:00
scullin
a7238af662 Add libmimetype.a
git-svn-id: svn://10.0.0.236/trunk@2900 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 01:44:27 +00:00
kipp
83a80513ca Make bullets transparent to whitespace compression
git-svn-id: svn://10.0.0.236/trunk@2899 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 01:43:02 +00:00
scullin
36e92aab3d Fix netlib pull
git-svn-id: svn://10.0.0.236/trunk@2898 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 01:40:17 +00:00
scullin
0cee2799b7 Landing modular netlib on UNIX.
git-svn-id: svn://10.0.0.236/trunk@2897 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 01:34:57 +00:00
scullin
a124c2757e Moved from /webshell/tests
git-svn-id: svn://10.0.0.236/trunk@2894 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 01:27:17 +00:00
spider
8d3748a920 Unix support
git-svn-id: svn://10.0.0.236/trunk@2892 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 01:22:56 +00:00
spider
bfd7d03e24 Use DSO instead of archive libs. Using archives will cause problems
since XPCOM was not intended to be used that way.


git-svn-id: svn://10.0.0.236/trunk@2890 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 01:21:29 +00:00
spider
24f5983667 Change to using .so's in Makefile. Temporarily hardcode some
TextMetrics stuff


git-svn-id: svn://10.0.0.236/trunk@2889 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 01:16:48 +00:00
spider
2db297135e Change link of shared libs to take OS_LIBS after application libs.
Also, change default loader on IRIX from ld to CC, since DSO's with
C++ code need to use the C++ loader.  Using ld causes memory
trashing.


git-svn-id: svn://10.0.0.236/trunk@2888 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 01:15:45 +00:00
scullin
d34a12faf5 Landing modular netlib
git-svn-id: svn://10.0.0.236/trunk@2884 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 01:08:47 +00:00
warren
fb3891dfc9 Factored nsplugin.h into nsIPlug.h and nsILCPlg.h. nsplugin.h will get obsoleted.
git-svn-id: svn://10.0.0.236/trunk@2880 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 00:32:49 +00:00
scullin
0c084c2df2 Landing modular netlib on UNIX
git-svn-id: svn://10.0.0.236/trunk@2879 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 00:23:17 +00:00
toshok
e9b46ed3c1 Fix build on FreeBSD. don't hardcode '.so', some platforms don't use it.
git-svn-id: svn://10.0.0.236/trunk@2878 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 00:18:45 +00:00
sfraser
7568367029 Remove obsoleted files
git-svn-id: svn://10.0.0.236/trunk@2877 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 00:17:23 +00:00
mcafee
ffc68e0235 XP_FindNameContextInList() can return null if looking for a target of type _new, adding a check for this case (122092) r=toshok, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@2876 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 00:16:29 +00:00
rpotts
1de9286637 fixed typo in progress notification...
git-svn-id: svn://10.0.0.236/trunk@2875 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 00:03:49 +00:00
ramiro
1bde9e9008 Add resources for toolbar toggle behavior.
git-svn-id: svn://10.0.0.236/trunk@2874 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 23:44:42 +00:00
kipp
bc9886e177 Set first child during reflow unmapped; leave white space compression flag alone for zero sized frames
git-svn-id: svn://10.0.0.236/trunk@2873 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 23:39:40 +00:00
kipp
60001a81c2 Map DIR attribute into style
git-svn-id: svn://10.0.0.236/trunk@2872 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 23:38:55 +00:00
kipp
226afcde60 Fixed block frame Clear method to work properly
git-svn-id: svn://10.0.0.236/trunk@2871 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 23:38:40 +00:00
kipp
8551f6afad Added SetFirstChild; made line layout a friend of block frame
git-svn-id: svn://10.0.0.236/trunk@2870 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 23:37:55 +00:00
pinkerton
776ef73489 remove cvactive.h to fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@2866 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 23:33:36 +00:00
troy
c43afb8da0 Changed nsLeafFrane's GetdesiredSize() to not pass in the max size
since it's now part of nsReflowState


git-svn-id: svn://10.0.0.236/trunk@2865 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 23:31:30 +00:00
scullin
f2738cccfa Long live NSPR.
git-svn-id: svn://10.0.0.236/trunk@2864 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 23:18:57 +00:00
spider
23935446f9 The beginnings of some font stuff
git-svn-id: svn://10.0.0.236/trunk@2862 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 22:41:01 +00:00
gagan
435a1bad4e Added check to increase the number of cache elements only if its a new entry. Thanks
TenThumbs <tenthumbs@cybernex.net>


git-svn-id: svn://10.0.0.236/trunk@2861 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 22:35:23 +00:00
pinkerton
32ef3fc858 Added SetMaxValue() method.
git-svn-id: svn://10.0.0.236/trunk@2860 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 22:29:57 +00:00
kmcclusk
e0a786cd7b Added Makefile for LINUX viewer build
git-svn-id: svn://10.0.0.236/trunk@2859 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 22:28:38 +00:00
raman
36e3ae7e52 Added the clone method. Approved by warren
git-svn-id: svn://10.0.0.236/trunk@2858 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 22:11:06 +00:00
raman
1bb74be857 Stub functions for Signed JS and Applets end user UI
git-svn-id: svn://10.0.0.236/trunk@2857 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 22:11:01 +00:00
raman
461bff960f Code to display the Signed JS and Applets UI on Mozilla thread by posting an event. Coded by morse. Approved by norris.
git-svn-id: svn://10.0.0.236/trunk@2856 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 22:10:54 +00:00
raman
78b2dece6d Added handling of buttons for Signed JS and Applets UI. Coded by morse. Approved by nisheeth
git-svn-id: svn://10.0.0.236/trunk@2855 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 22:10:21 +00:00
raman
8b089c3edf Updated the Signed JS and Applets UI strings. Coded by morse. Reviewed by raman.
git-svn-id: svn://10.0.0.236/trunk@2854 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 22:10:17 +00:00
raman
3051da8664 Added linking of libcaps library as part of MOZ_JAVA build.
git-svn-id: svn://10.0.0.236/trunk@2853 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 22:10:13 +00:00
michaelp
a0d49e1458 webwidget now specifies a framerate of 25 fps rather than relying on a good
default value in the viewmanager. added synchronous updates if we timeout
before timer fires.


git-svn-id: svn://10.0.0.236/trunk@2852 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 22:02:02 +00:00
donm
b60fce5759 removing reference to FE_Trace not used anymore.
git-svn-id: svn://10.0.0.236/trunk@2851 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 21:40:42 +00:00
rods
9cfbcebe9a oops backed out changes from Linux
git-svn-id: svn://10.0.0.236/trunk@2850 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 21:29:23 +00:00
buster
7dd2b9314d made tables quiet again
git-svn-id: svn://10.0.0.236/trunk@2849 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 21:07:56 +00:00
rods
f37f445be2 initial
git-svn-id: svn://10.0.0.236/trunk@2848 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 20:56:12 +00:00
kipp
4e9e60ae79 null terminate empty auto string properly
git-svn-id: svn://10.0.0.236/trunk@2847 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 20:55:46 +00:00
kipp
b26e400397 Removed some debug printfs
git-svn-id: svn://10.0.0.236/trunk@2846 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 20:55:28 +00:00
kipp
5ff66ccb56 Support nsILinkHandler::OnOverLink
git-svn-id: svn://10.0.0.236/trunk@2845 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 20:55:10 +00:00
kipp
ee728a1bbd Made the DocObsever a link handler
git-svn-id: svn://10.0.0.236/trunk@2844 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 20:54:07 +00:00
kipp
8454ef1a05 Removed post data from OnOverLink method
git-svn-id: svn://10.0.0.236/trunk@2843 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 20:53:34 +00:00
kipp
369a35ae14 Quiet please
git-svn-id: svn://10.0.0.236/trunk@2842 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 20:53:01 +00:00
troy
1a852af754 Added additional parameter to nsIWidget Resize() member functions
git-svn-id: svn://10.0.0.236/trunk@2841 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 20:26:50 +00:00
buster
e2175a52f2 much better fixed and percentage width layout
git-svn-id: svn://10.0.0.236/trunk@2839 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 20:21:05 +00:00
spider
fc776998fb Change order of libs for link
git-svn-id: svn://10.0.0.236/trunk@2838 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 20:20:23 +00:00
kipp
ecf1901eb3 Added OnOverLink hook for tracking mouse-over's over links
git-svn-id: svn://10.0.0.236/trunk@2836 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 19:59:13 +00:00
kipp
db59603e61 Revised LoadURL to take an nsIStreamListener
git-svn-id: svn://10.0.0.236/trunk@2835 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 19:58:55 +00:00
kipp
0f722d9990 Stub out OnOverLink method
git-svn-id: svn://10.0.0.236/trunk@2834 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 19:57:10 +00:00
troy
3613e8b151 Work in progress for floaters to handle percentage based
width/height


git-svn-id: svn://10.0.0.236/trunk@2833 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 19:56:58 +00:00
kipp
433400adb1 Revised LoadURL API to take an nsIStreamListener and pass it to the document while loading
git-svn-id: svn://10.0.0.236/trunk@2832 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 19:56:53 +00:00
kipp
90f696b51b Revised DocLoader to be an nsIStreamListener and then use it to LoadURL's so that it obsevers the nsIStreamListener notifications
git-svn-id: svn://10.0.0.236/trunk@2831 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 19:55:55 +00:00
kipp
86bcb9fa92 Pass in null for stream listener to LoadURL
git-svn-id: svn://10.0.0.236/trunk@2830 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 19:55:19 +00:00
kipp
4e88c06a1e updated
git-svn-id: svn://10.0.0.236/trunk@2829 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 19:53:38 +00:00
kipp
78b05a04e5 Updated LoadURL API to take an nsIStreamListener
git-svn-id: svn://10.0.0.236/trunk@2828 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 19:53:27 +00:00
kipp
962f3e4dfd Updated LoadURL API to take an nsIStreamListener; pass on listener to parser
git-svn-id: svn://10.0.0.236/trunk@2827 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 19:53:19 +00:00
troy
441d523dd3 Added some support for percentage based width/height. Currently only works
for the initial reflow


git-svn-id: svn://10.0.0.236/trunk@2826 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 19:52:53 +00:00
kipp
4c50963f60 Revised LoadURL to take an nsIStreamListener; removed old document load hooks
git-svn-id: svn://10.0.0.236/trunk@2825 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 19:52:39 +00:00
kipp
61a25c7c1d Changed Parse to take an nsIStreamListener to pass notifications too; changed parser to pass them on
git-svn-id: svn://10.0.0.236/trunk@2823 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 19:51:52 +00:00
kipp
c11f861455 Use new loadurl api
git-svn-id: svn://10.0.0.236/trunk@2822 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 19:51:19 +00:00
scullin
b541a1647b Moved to network/cnvts
git-svn-id: svn://10.0.0.236/trunk@2821 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 18:43:07 +00:00
kipp
6b3bf9b342 Fixed interface decl to be consistent with everything else
git-svn-id: svn://10.0.0.236/trunk@2820 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 18:37:21 +00:00
scullin
948a664e1c Added mimetype library, removed old netlib code.
git-svn-id: svn://10.0.0.236/trunk@2819 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 18:33:51 +00:00
scullin
3d2f4b9b3a Start building mime type routines as separate library.
git-svn-id: svn://10.0.0.236/trunk@2818 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 18:29:28 +00:00
scullin
1d45e2f5c4 Moved from main
git-svn-id: svn://10.0.0.236/trunk@2817 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 18:19:25 +00:00
spider
50845aa3d3 Linux build fix
git-svn-id: svn://10.0.0.236/trunk@2816 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 17:55:47 +00:00
spider
49496c13e1 IRIX build fix
git-svn-id: svn://10.0.0.236/trunk@2815 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 17:51:50 +00:00
cmanske
b456437586 Removed hard-coded strings for image conversion
git-svn-id: svn://10.0.0.236/trunk@2814 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 17:34:24 +00:00
kmcclusk
f0ed4e7b76 Reorganized the viewer app to separate the platform specific code from the
cross-platform code. Converted as much of the WIN32 specific code to cross-platform
code as possible.


git-svn-id: svn://10.0.0.236/trunk@2813 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 17:14:40 +00:00
kmcclusk
76c18f5955 GetBounds returns the client area not the window area
Resize new returns the client area not the window area
Removed the commented out RelayEvent method in nsWindow.cpp
Add a nsDispatchListener for nsIAppShell.


git-svn-id: svn://10.0.0.236/trunk@2812 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 17:04:16 +00:00
karnaze
480e732ab3 simplified test8tab.html
git-svn-id: svn://10.0.0.236/trunk@2811 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 16:52:56 +00:00
fur
3f80334382 JavaScript project file for MSVC5
git-svn-id: svn://10.0.0.236/trunk@2810 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 16:39:11 +00:00
blythe
1d528ed486 New splash screens. Conversion by martin.nilsson@bigfoot.com
git-svn-id: svn://10.0.0.236/trunk@2809 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 16:35:52 +00:00
fur
73bfeaea67 Temporary check-in of project files to build LiveConnect-enabled shell
git-svn-id: svn://10.0.0.236/trunk@2808 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 16:26:13 +00:00
cmanske
7dc862fe1b Added outdent list level when Enter key is pressed and current item is empty
git-svn-id: svn://10.0.0.236/trunk@2807 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 16:21:19 +00:00
ramiro
d1a6dc43c4 Cleanup menu pane creation code. Use ONE function instead of cut-and-pasting
the code all over.


git-svn-id: svn://10.0.0.236/trunk@2806 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 11:43:43 +00:00
ramiro
21035923e3 Add XfeMenuCreatePulldownPane() and XfeMenuCreateCascadeItem().
git-svn-id: svn://10.0.0.236/trunk@2805 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 11:42:30 +00:00
ramiro
005eb7c7eb Fix for major xfe horkage caused by last checkin. Change the 'TRUE' to
'true'.  The unix prefs probably munged the 'TRUE' to something funny in
code, which later caused all sorts of unpredictable errors in xp_file and
reading preferences in general.  Lots of fun.


git-svn-id: svn://10.0.0.236/trunk@2804 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 09:04:58 +00:00
ramiro
a55e4d428a Cleanup the XfeBm library. Remove circular dependancy on XfeBm from
XfeWidgets.


git-svn-id: svn://10.0.0.236/trunk@2803 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 07:49:21 +00:00
spence
b6cf7f3640 fixed some shack layout problems
git-svn-id: svn://10.0.0.236/trunk@2802 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 07:28:55 +00:00
spider
6fa5ada475 Add Flags to support exported symbols in ELF binaries. Also add Xp and Xext link
git-svn-id: svn://10.0.0.236/trunk@2799 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 04:05:49 +00:00
spider
2e5098d961 Change LD_OPTS to dupport DSO on Linux
git-svn-id: svn://10.0.0.236/trunk@2798 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 04:04:53 +00:00
spider
df8c8ad5da Add raptorgfx to link list
git-svn-id: svn://10.0.0.236/trunk@2797 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 03:41:42 +00:00
spider
39d2734866 Update for new interfaces (stubs)
git-svn-id: svn://10.0.0.236/trunk@2794 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 03:23:40 +00:00
spider
a354fad2b4 Add nsRegionUnix.cpp to .so. dlopen() on Linux 2.0 would fail since it can't
resolve this class.


git-svn-id: svn://10.0.0.236/trunk@2793 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 03:19:41 +00:00
fur
76813139a0 Merge several bug fixes from client 4.1 branch
git-svn-id: svn://10.0.0.236/trunk@2791 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 00:31:59 +00:00
cboatwri
879f687471 added build instructions to module
git-svn-id: svn://10.0.0.236/trunk@2787 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 00:20:45 +00:00
jgellman
808d3dea0e one blank line
git-svn-id: svn://10.0.0.236/trunk@2782 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-31 19:50:00 +00:00
jgellman
3ebd27d487 adding placeholder files for file's that'll be added on the branch before moving them to the tip
git-svn-id: svn://10.0.0.236/trunk@2781 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-31 19:32:40 +00:00
jgellman
c7de739535 merge from OJI_19980430_BRANCH
git-svn-id: svn://10.0.0.236/trunk@2780 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-31 19:21:42 +00:00
cboatwri
8266ee5c60 Removed trailing space from line 314
git-svn-id: svn://10.0.0.236/trunk@2774 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-31 07:35:57 +00:00
troy
9725cced48 Added a comment to GetStyleDimension indicating that computed percentage
values are being handled incorrectly


git-svn-id: svn://10.0.0.236/trunk@2773 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-31 04:45:21 +00:00
troy
a53a8a9faf Fixed an assert
git-svn-id: svn://10.0.0.236/trunk@2772 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 23:56:28 +00:00
cmanske
36db5c6c2b Composer bug fixes and features (table editing, font size, color picker, etc)
git-svn-id: svn://10.0.0.236/trunk@2770 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 23:05:39 +00:00
cmanske
04be3a6cb5 Composer bug fixes and continued table and color picker features
git-svn-id: svn://10.0.0.236/trunk@2766 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 23:04:10 +00:00
cmanske
d2329bf15c Composer bug fixes and continued table and color picker features
git-svn-id: svn://10.0.0.236/trunk@2765 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 23:04:03 +00:00
cmanske
750c9123aa Composer bug fixes and more feature work
git-svn-id: svn://10.0.0.236/trunk@2764 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 22:51:37 +00:00
morse
3bf3240a70 lock the signon list when it is in use
git-svn-id: svn://10.0.0.236/trunk@2763 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 22:37:35 +00:00
cmanske
8979acbd8f New Composer preferences added for background color and fill new cell with space mode
git-svn-id: svn://10.0.0.236/trunk@2762 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 22:26:41 +00:00
morse
6171514e62 bug 122126
git-svn-id: svn://10.0.0.236/trunk@2761 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 22:16:41 +00:00
kipp
359bf0f99c Revised API so that correct percentage width/height could be computed
git-svn-id: svn://10.0.0.236/trunk@2760 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 21:22:17 +00:00
kipp
69de10fd12 Updated a few table API's so that percentage width could be properly computed
git-svn-id: svn://10.0.0.236/trunk@2759 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 21:21:51 +00:00
kipp
630af1711c Updated to new GetDesiredSize api's (so that percentage width's could be properly calculated)
git-svn-id: svn://10.0.0.236/trunk@2758 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 21:21:11 +00:00
kipp
0b5419d5e6 fixed value to string for percentages to include the '%'
git-svn-id: svn://10.0.0.236/trunk@2757 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 21:20:07 +00:00
kipp
a6d9e41ff0 Removed dead code
git-svn-id: svn://10.0.0.236/trunk@2756 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 21:19:36 +00:00
kipp
e158e3f059 Updated to new GetDesiredSize API; reworkd width handling
git-svn-id: svn://10.0.0.236/trunk@2755 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 21:19:11 +00:00
kipp
be4ed98aae Use new cssLayout api
git-svn-id: svn://10.0.0.236/trunk@2753 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 21:18:32 +00:00
kipp
6afff43de1 Use new mPendingBreak state
git-svn-id: svn://10.0.0.236/trunk@2748 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 17:46:11 +00:00
kipp
5f78a9d123 Support BR tags in inline frames
git-svn-id: svn://10.0.0.236/trunk@2747 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 17:45:46 +00:00
kipp
312f0bab39 Partial support for BR clear behavior
git-svn-id: svn://10.0.0.236/trunk@2746 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 17:45:15 +00:00
kipp
5e7dbfe635 Cleaned up; use new slot in nsLineLayout state to support clear semantics
git-svn-id: svn://10.0.0.236/trunk@2745 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 17:44:50 +00:00
cyeh
1180d9e2ba added mozilla/cmd/winfe/mkfiles32 to DirectorySDKSourceBuild.
git-svn-id: svn://10.0.0.236/trunk@2744 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 17:02:43 +00:00
ftang
31e69b66ea add new font info
git-svn-id: svn://10.0.0.236/trunk@2743 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 08:37:40 +00:00
ftang
81ab34143d add HTML 4.0 entity
git-svn-id: svn://10.0.0.236/trunk@2742 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 08:15:07 +00:00
ftang
82eb72f5fa add new name and alias
git-svn-id: svn://10.0.0.236/trunk@2741 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 08:02:50 +00:00
ftang
5a65252863 add several csid as the base for future open source implementation
git-svn-id: svn://10.0.0.236/trunk@2740 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 08:01:55 +00:00
briano
eebcbe882b Added the first of S.J. Moller's (sjm@nwc.dk) proposed changes for Solaris 2.6.
git-svn-id: svn://10.0.0.236/trunk@2734 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 04:28:03 +00:00
scc
b988eb163e First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2730 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 03:18:48 +00:00
rickg
f7bb7a3928 added support for NOBR and fixed MAP and AREA behavior
git-svn-id: svn://10.0.0.236/trunk@2729 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 03:14:55 +00:00
scc
4b835c8f8b BuildMozilla() no longer changes to the correct directory, so I have to.
git-svn-id: svn://10.0.0.236/trunk@2727 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 03:13:20 +00:00
scc
9c41007355 Added InstallFromManifest(), the critical routine to doing the dist file copying.
git-svn-id: svn://10.0.0.236/trunk@2726 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 03:13:10 +00:00
scc
a36e933292 Added DistMozilla() function. Now build the MakeDist project condisitonall based on $main::use_DistMozilla. No longer chdir to the right place. You have to do it yourself before calling BuildMozilla() or DistMozilla().
git-svn-id: svn://10.0.0.236/trunk@2725 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 03:12:25 +00:00
spider
c64aa4a750 Remove lib prefix on windows
git-svn-id: svn://10.0.0.236/trunk@2711 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 02:12:28 +00:00
kipp
47927e90c0 NS_IMETHOD'd some of the API's
git-svn-id: svn://10.0.0.236/trunk@2710 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 01:36:47 +00:00
kipp
08bde0f034 NS_IMETHOD'd some of the API's; rewrote insert/delete/append/replace dom methods so they actually work
git-svn-id: svn://10.0.0.236/trunk@2709 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 01:36:00 +00:00
kipp
ddc066eda5 Add attributes to result in ToHTML
git-svn-id: svn://10.0.0.236/trunk@2708 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 01:34:56 +00:00
kipp
56f4b2db53 Added QuoteForHTML method
git-svn-id: svn://10.0.0.236/trunk@2707 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 01:34:03 +00:00
kipp
bb23579666 process DIR attribute and lang attribute
git-svn-id: svn://10.0.0.236/trunk@2706 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 01:32:50 +00:00
kipp
590c1b085b updated
git-svn-id: svn://10.0.0.236/trunk@2705 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 01:32:10 +00:00
kipp
fb55a13041 enter/exit reflow lock automatically in content changed (temporary maybe)
git-svn-id: svn://10.0.0.236/trunk@2704 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 01:31:04 +00:00
kipp
1dbd4255ee new
git-svn-id: svn://10.0.0.236/trunk@2692 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 00:44:38 +00:00
pinkerton
09ceda3afd Added support for chrome close callback.
git-svn-id: svn://10.0.0.236/trunk@2681 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 00:23:43 +00:00
pinkerton
49abc8c7f2 make chromeless dialog use new progress bar.
git-svn-id: svn://10.0.0.236/trunk@2680 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-30 00:23:27 +00:00
morse
a388b7cff4 Removing a string at Rick Elliott's request
git-svn-id: svn://10.0.0.236/trunk@2670 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 23:36:10 +00:00
morse
7f65c296b6 fix buid bustage
git-svn-id: svn://10.0.0.236/trunk@2669 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 23:32:51 +00:00
scullin
6999d6872a Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@2668 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 23:28:49 +00:00
rpotts
6322e54de4 Moved defines for cookie management from WIN32 into config.mak along with all of the other defines...
git-svn-id: svn://10.0.0.236/trunk@2667 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 23:26:58 +00:00
troy
a17b565c12 Placeholder now wraps container content in a body pseudo frame
git-svn-id: svn://10.0.0.236/trunk@2666 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 23:12:26 +00:00
cboatwri
7de1b959cd Added additional tcp-ip stuff for mac project
git-svn-id: svn://10.0.0.236/trunk@2662 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 23:08:33 +00:00
troy
17e3730981 Changed ReflowChild() to handle the 'OccupiedMultiple' case
git-svn-id: svn://10.0.0.236/trunk@2660 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 23:06:08 +00:00
troy
7f2889ff7b Changed ComputeAvailSpaceRect() to handle the 'OccupiedMultiple' case
git-svn-id: svn://10.0.0.236/trunk@2659 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 23:05:12 +00:00
scullin
ec7be8a3b3 Change XP_IS_ macros to NET_IS_ macros.
git-svn-id: svn://10.0.0.236/trunk@2658 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 23:04:49 +00:00
scullin
090874feb6 Work on landing UNIX modular netlib
git-svn-id: svn://10.0.0.236/trunk@2657 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 22:54:31 +00:00
scc
d8d8f14abf Greatly expanded documentation. Second argument of MakeAlias isn't optional. CloseErrorLog() now does the right thing if we were still stopping for errors.
git-svn-id: svn://10.0.0.236/trunk@2656 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 22:53:12 +00:00
rpotts
c782f2cd0c Fix to get raptor building again... These changes should/will be moved to config.mak
git-svn-id: svn://10.0.0.236/trunk@2655 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 22:45:52 +00:00
karnaze
b7849c378e event improvements
git-svn-id: svn://10.0.0.236/trunk@2654 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 22:44:13 +00:00
cboatwri
a309bce80e Added build instructions
git-svn-id: svn://10.0.0.236/trunk@2653 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 22:40:40 +00:00
scullin
ff8dc5a86f Added environment variable warnings.
git-svn-id: svn://10.0.0.236/trunk@2652 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 22:37:52 +00:00
michaelp
5967a4b32f fixed over-releasing of views in DeleteFrame().
git-svn-id: svn://10.0.0.236/trunk@2651 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 22:36:21 +00:00
cboatwri
8c6a4d8d0f Added makefile for unix
git-svn-id: svn://10.0.0.236/trunk@2650 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 22:33:50 +00:00
cyeh
ff0b698015 adding LDAP SDK to modules file
git-svn-id: svn://10.0.0.236/trunk@2649 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 22:30:22 +00:00
buster
a4a065bae0 some proportional column balancing now works
the <TABLE> COLS attribute is supported via proportional column balancing.


git-svn-id: svn://10.0.0.236/trunk@2648 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 22:08:19 +00:00
scullin
0b1ff18c35 Changed XP_TO_ macros to NET_TO_ macros. Lame, but it doesn't
really warrent a grander solution.


git-svn-id: svn://10.0.0.236/trunk@2647 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 22:06:10 +00:00
pnunn
519a06e169 fix for #112970. timer problem with animated gif with frame larger than header screen size.
This fix should allow a graceful handling of error. pnunn


git-svn-id: svn://10.0.0.236/trunk@2646 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 21:44:08 +00:00
ramiro
da7952d3f3 ToolTip abstraction step one: Move XmLGrid hacks to the XmL library.
git-svn-id: svn://10.0.0.236/trunk@2645 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 21:03:26 +00:00
troy
003a885b86 Changed nsReflowState structs to be linked together
git-svn-id: svn://10.0.0.236/trunk@2643 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 20:36:05 +00:00
pinkerton
9ab9f40a6c Back/forward button popups actually do the right thing now.
git-svn-id: svn://10.0.0.236/trunk@2642 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 20:23:14 +00:00
pnunn
f787b8da08 fix for bug#122211. Corrupted animated gif caused crash.
git-svn-id: svn://10.0.0.236/trunk@2640 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 19:29:36 +00:00
morse
5a4fd3404f turn single signon and cookie management back on
git-svn-id: svn://10.0.0.236/trunk@2638 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 19:18:01 +00:00
morse
dd2d9fd68e add htmldlgs.h to list of include files
git-svn-id: svn://10.0.0.236/trunk@2637 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 19:15:45 +00:00
morse
b4b33b01a3 remove absolute path on include file
git-svn-id: svn://10.0.0.236/trunk@2635 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 19:15:05 +00:00
mcafee
c976b5efb8 Fix nested /* warning on Solaris.
git-svn-id: svn://10.0.0.236/trunk@2631 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 18:45:31 +00:00
slamm
830719efa4 Hook up cell editing.
git-svn-id: svn://10.0.0.236/trunk@2630 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 18:27:21 +00:00
slamm
ebefb3e328 Make editing work with cell of type XmICON_CELL and Tree cells. Make edit start when user clicks twice on a cell. Rename a few functions.
git-svn-id: svn://10.0.0.236/trunk@2629 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 18:26:49 +00:00
kipp
7d5d32c9d9 Consolidated list handling state variables
git-svn-id: svn://10.0.0.236/trunk@2628 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 18:25:14 +00:00
morse
453d1560ac temporarily fix tree bustage by turning off cookie management and single signon
git-svn-id: svn://10.0.0.236/trunk@2627 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 17:01:31 +00:00
pinkerton
95835afeef Gets rid of assert because status bar is now in line with browser. Removed extra border chrome around html area.
git-svn-id: svn://10.0.0.236/trunk@2626 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 16:42:20 +00:00
pinkerton
dd4a9ae4dc More appearance changes so that it draws correctly in other themes.
git-svn-id: svn://10.0.0.236/trunk@2625 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 16:41:16 +00:00
morse
815738ea01 bug 122126, reviewed by blythe
git-svn-id: svn://10.0.0.236/trunk@2622 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 15:01:48 +00:00
morse
438b0cd964 bug 122126, reviewed by briano
git-svn-id: svn://10.0.0.236/trunk@2621 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 15:00:25 +00:00
morse
e5e56d4665 bug 122126
git-svn-id: svn://10.0.0.236/trunk@2620 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 14:55:28 +00:00
morse
495a8d9833 bug 122126, reviewed by relliott
git-svn-id: svn://10.0.0.236/trunk@2619 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 14:52:57 +00:00
mcafee
95fdec563b DisplayBuiltin() and FreeBuiltinElement() undefined for Solaris, adding stubs.
git-svn-id: svn://10.0.0.236/trunk@2615 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 05:20:06 +00:00
kipp
0299dcf2cc Disabled assertions for now (sigh); removed DoResizeReflow and collapsed it into Reflow
git-svn-id: svn://10.0.0.236/trunk@2613 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:34:19 +00:00
kipp
7645d0b01d Disabled assertions for now (sigh)
git-svn-id: svn://10.0.0.236/trunk@2612 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:34:02 +00:00
kipp
b61c3eed08 Removed some unused list layout cruft
git-svn-id: svn://10.0.0.236/trunk@2611 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:33:50 +00:00
kipp
2107e79f42 nuked
git-svn-id: svn://10.0.0.236/trunk@2610 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:18:17 +00:00
kipp
7751154a8b pass url into image loader
git-svn-id: svn://10.0.0.236/trunk@2609 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:16:46 +00:00
kipp
51e7d9f5fe Use outside bullets again
git-svn-id: svn://10.0.0.236/trunk@2608 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:16:29 +00:00
kipp
256fceb2eb Get initial reflow state set right during child reflow; support list bullets directly
git-svn-id: svn://10.0.0.236/trunk@2607 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:15:46 +00:00
kipp
b9e5bd7ba9 Pass on initial reflow to ProcessInitialReflow
git-svn-id: svn://10.0.0.236/trunk@2606 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:15:00 +00:00
kipp
ab9930aa04 Added bullet creator
git-svn-id: svn://10.0.0.236/trunk@2605 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:14:41 +00:00
kipp
047d393c62 Revised image loader API slightly
git-svn-id: svn://10.0.0.236/trunk@2604 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:14:30 +00:00
kipp
c414a816ef Revised image loader API slightly and used it to setup url spec via src attr
git-svn-id: svn://10.0.0.236/trunk@2603 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:14:17 +00:00
kipp
c590ea97c8 stub out IsSynthetic API
git-svn-id: svn://10.0.0.236/trunk@2602 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:13:50 +00:00
kipp
63e30f0836 Added initial reflow hook; setup list bullets using it
git-svn-id: svn://10.0.0.236/trunk@2601 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:13:25 +00:00
kipp
5c844c6ff3 Added initial reflow hook
git-svn-id: svn://10.0.0.236/trunk@2600 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:13:13 +00:00
kipp
4161660a5b Treat list-item like block when creating frames
git-svn-id: svn://10.0.0.236/trunk@2599 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:12:59 +00:00
kipp
e7abe8a2fb Assert that reflow reason is correct
git-svn-id: svn://10.0.0.236/trunk@2598 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:11:50 +00:00
kipp
559a3545f9 Added list state for line layout
git-svn-id: svn://10.0.0.236/trunk@2597 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:11:38 +00:00
kipp
8b462655bd Set list state in block reflow state for line layout; assert that reflow reason is correct; pass initial reflow into ProcessInitialReflow hook
git-svn-id: svn://10.0.0.236/trunk@2596 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:11:27 +00:00
kipp
d091d8c074 Removed nsListItemFrame and added nsHTMLBullet
git-svn-id: svn://10.0.0.236/trunk@2595 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:10:51 +00:00
kipp
06ff982939 IMplement new content method
git-svn-id: svn://10.0.0.236/trunk@2594 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:10:27 +00:00
kipp
b8275ba4ad Clear both frame-in-reflow and frame-first-reflow bits on finished didreflow
git-svn-id: svn://10.0.0.236/trunk@2593 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:10:12 +00:00
kipp
fa1ff937d8 Added a new content method to see if a piece of content is synthetic or not
git-svn-id: svn://10.0.0.236/trunk@2592 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:09:38 +00:00
kipp
8d6ad2250a Added another state bit
git-svn-id: svn://10.0.0.236/trunk@2591 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:09:18 +00:00
kipp
0badd6029b new
git-svn-id: svn://10.0.0.236/trunk@2590 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 02:01:43 +00:00
toshok
decebf4ea9 Use LO_GetDocumentMargins, not fe_GetMargin, since the latter always returns 8/8 instead of what the document specifies. For example, resizing www.mozilla.org puts an 8x8 margin on the document, when the HTML specifies 0x0
git-svn-id: svn://10.0.0.236/trunk@2588 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 23:49:37 +00:00
akkana
03e38ae032 Fix XtWarnings at startup
git-svn-id: svn://10.0.0.236/trunk@2586 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 23:09:27 +00:00
timm
e01ba4e043 tweak for preselected radio button fix
git-svn-id: svn://10.0.0.236/trunk@2585 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 23:06:14 +00:00
timm
d3593083fb remove 2stpwrap.htm
git-svn-id: svn://10.0.0.236/trunk@2583 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 22:38:53 +00:00
timm
66236a4c4d tweak progress bar
git-svn-id: svn://10.0.0.236/trunk@2582 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 22:38:00 +00:00
sfraser
e2ed047744 Added vr_stubs.c (which contains an implementation of strdup which overrides our strdup in NSStdLib, which is dangerous).
git-svn-id: svn://10.0.0.236/trunk@2579 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 22:24:38 +00:00
sfraser
5d8522be4e Changed to use .exp file for exports, so that stuff gets exported.
git-svn-id: svn://10.0.0.236/trunk@2576 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 22:23:41 +00:00
sfraser
b69b700d4a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2575 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 22:23:16 +00:00
troy
a09b0a2a9a Changed it so we don't position or size the view while in the middle
of reflowing. Now that's done in DidReflow()


git-svn-id: svn://10.0.0.236/trunk@2574 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 21:55:13 +00:00
buster
fb47d7c6ec added an optional # to viewer.exe command line switch -p. If a number is provided, it is used as the last sample to load when running in purify. This is useful for running just a the first sample
in purify, or a small number of samples, for example.


git-svn-id: svn://10.0.0.236/trunk@2571 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 21:39:40 +00:00
buster
d3a587c5ca set the groundwork for handling COLS attribute, and attributes on COLGROUP and COL tags. WIP.
set the groundwork for handling percentage-width tables.  Troy is adding a hook for me to get the correct width info from the parent.  WIP.


git-svn-id: svn://10.0.0.236/trunk@2570 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 21:39:22 +00:00
sfraser
5fde1a3b17 Fix the include files so that Types.r is found
git-svn-id: svn://10.0.0.236/trunk@2569 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 21:29:32 +00:00
rickg
a53de4875b fixed 2 bugs that prevented home.netscape.com from loading. WIP.
git-svn-id: svn://10.0.0.236/trunk@2565 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 21:14:27 +00:00
sfraser
a01dc1681b Fix {IncludeFiles}
git-svn-id: svn://10.0.0.236/trunk@2564 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 21:04:01 +00:00
sfraser
022c2e2b9b Export nsError.h
git-svn-id: svn://10.0.0.236/trunk@2562 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 20:50:24 +00:00
sfraser
3f35772326 Really fix the library name this time.
git-svn-id: svn://10.0.0.236/trunk@2561 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 20:49:02 +00:00
sfraser
43af9ee582 Fix the output directory, and the lib name for the debug shlb target
git-svn-id: svn://10.0.0.236/trunk@2559 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 20:29:47 +00:00
troy
54994fbcc6 Added some more WillReflow() calls
git-svn-id: svn://10.0.0.236/trunk@2558 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 20:12:02 +00:00
sfraser
43eda5dfda Don't define MOZILLA_CLIENT again (on the Mac), fer cryin' out loud
git-svn-id: svn://10.0.0.236/trunk@2557 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 20:10:18 +00:00
sfraser
fde346e8cc Fix a problem with the debug library name.
git-svn-id: svn://10.0.0.236/trunk@2556 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 20:03:23 +00:00
cyeh
72afdaae50 * remove all those annoying ^M's in the file.
* changed documentation to reflect new build system.
  NewAlias MPW tool now required.
  MacPerl application now required.
  StreamEdit MPW tool now required.
  Headers are exported to new dist area.
  Perl is now the scripting engine.


git-svn-id: svn://10.0.0.236/trunk@2555 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 20:01:37 +00:00
kipp
3f52aba142 Use mOpacity as a float in the nsStyleColor struct
git-svn-id: svn://10.0.0.236/trunk@2554 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:55:42 +00:00
kipp
afcc812131 Set value to 1.0F as a float
git-svn-id: svn://10.0.0.236/trunk@2553 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:55:15 +00:00
kipp
760038f9f4 Simplified mOpacity to a float
git-svn-id: svn://10.0.0.236/trunk@2552 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:54:50 +00:00
kipp
b6437fc343 Added STYLE= support (partially)
git-svn-id: svn://10.0.0.236/trunk@2551 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:44:36 +00:00
sfraser
bd05843056 Correct comment
git-svn-id: svn://10.0.0.236/trunk@2550 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:40:34 +00:00
sfraser
63e6adbdb0 Fix a warning about an uninitialized variable
git-svn-id: svn://10.0.0.236/trunk@2549 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:39:58 +00:00
sfraser
905fc56f75 Fix #error pragmas
git-svn-id: svn://10.0.0.236/trunk@2548 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:39:28 +00:00
sfraser
df88812a48 Fix a warning about an uninitialized variable when JAVA is not defined.
git-svn-id: svn://10.0.0.236/trunk@2547 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:39:05 +00:00
sfraser
5f093de03e Switch tinderbox to the new list of projects
git-svn-id: svn://10.0.0.236/trunk@2545 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:37:21 +00:00
sfraser
b41cc2365d Activate export.mac in mozilla:config:mac which should now be in the module
git-svn-id: svn://10.0.0.236/trunk@2544 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:37:02 +00:00
sfraser
ae22f11289 Turn on more compiler warnings
git-svn-id: svn://10.0.0.236/trunk@2542 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:36:37 +00:00
sfraser
3f19ee2dc6 Changes for the new build system, and unify prefix files.
git-svn-id: svn://10.0.0.236/trunk@2541 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:36:09 +00:00
cyeh
da75a2635e remove duplicate entry of mozilla/modules/schdulr in MozillaSourceCommon
git-svn-id: svn://10.0.0.236/trunk@2540 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:33:55 +00:00
pnunn
31ed1f7d62 fix #84300. print images to printer rez not screen rez.
git-svn-id: svn://10.0.0.236/trunk@2539 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:32:00 +00:00
sfraser
4b3df200c6 Changes for the new build system, and unify prefix files.
git-svn-id: svn://10.0.0.236/trunk@2538 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:27:24 +00:00
sfraser
9045ffc345 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2537 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:24:32 +00:00
sfraser
e51185d273 Changes for new build system, and unified prefix files.
git-svn-id: svn://10.0.0.236/trunk@2536 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:22:54 +00:00
sfraser
b4abce86b4 Changes for new build system and unified prefix files.
git-svn-id: svn://10.0.0.236/trunk@2535 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:19:09 +00:00
sfraser
644516c52a Updating for new build system and prefix files.
git-svn-id: svn://10.0.0.236/trunk@2534 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:16:03 +00:00
pnunn
156cabb819 fix for #84300. print images at printer rez not screen rez
git-svn-id: svn://10.0.0.236/trunk@2533 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:07:40 +00:00
sfraser
710a5ed2a5 Changes for the new build system; unify prefix files.
git-svn-id: svn://10.0.0.236/trunk@2532 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:04:58 +00:00
troy
363a605781 Changed VerifyTree() to check that NS_FRAME_IN_REFLOW isn't set
git-svn-id: svn://10.0.0.236/trunk@2531 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 19:00:31 +00:00
sfraser
0f5ae2a51d Changed for new build system
git-svn-id: svn://10.0.0.236/trunk@2530 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:58:33 +00:00
pnunn
fc6eb86d7c fix #84300. print images at printer rez not screen rez.
git-svn-id: svn://10.0.0.236/trunk@2529 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:58:11 +00:00
sfraser
d4a52ff18f Changed for new build system, and comments on how this thing works.
git-svn-id: svn://10.0.0.236/trunk@2528 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:58:09 +00:00
sfraser
6f382af498 Changed for new build system, and to inlcude long comment about how this whole thing works.
git-svn-id: svn://10.0.0.236/trunk@2527 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:57:55 +00:00
sfraser
a1f9da0d57 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2526 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:57:26 +00:00
pnunn
c9e85bd720 fix #84300. print image at printer rez not screen rez.
git-svn-id: svn://10.0.0.236/trunk@2525 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:57:05 +00:00
sfraser
6e50378dd1 Changed for new build system, and to put output of stubs project in dist:client_stubs
git-svn-id: svn://10.0.0.236/trunk@2524 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:53:57 +00:00
pnunn
0dddecb63a fix for #84300. print images at printer resolution not screen resolution.
git-svn-id: svn://10.0.0.236/trunk@2523 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:53:31 +00:00
sfraser
0fc30e6b1c Changed prefix file for new build system
git-svn-id: svn://10.0.0.236/trunk@2522 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:53:07 +00:00
sfraser
6c5edb8104 Replace a MIN with a locally defined Min()
git-svn-id: svn://10.0.0.236/trunk@2521 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:48:57 +00:00
kipp
482d1c4451 Port to new parser API
git-svn-id: svn://10.0.0.236/trunk@2520 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:40:23 +00:00
kipp
ea98683ca1 Revised argument handling and added code to test the ParseDeclarations css parser capability
git-svn-id: svn://10.0.0.236/trunk@2519 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:40:07 +00:00
kipp
1bf0cfd0b6 Revised API to be com-ish and added ParseDeclarations; implement ParseDeclartions using basic declaration handling routines
git-svn-id: svn://10.0.0.236/trunk@2518 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:39:42 +00:00
kipp
15197431ac Revised API to be com-ish and added ParseDeclarations
git-svn-id: svn://10.0.0.236/trunk@2517 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:39:08 +00:00
kipp
e5a638c35c Init refcnt properly
git-svn-id: svn://10.0.0.236/trunk@2516 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:38:32 +00:00
cyeh
845c6e85ce add mozilla/config/mac to MozillaSourceMacOnly as part of new build system.
git-svn-id: svn://10.0.0.236/trunk@2515 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:38:02 +00:00
troy
ea3a30a606 Added WillReflow() calls around reflowing of child frame
git-svn-id: svn://10.0.0.236/trunk@2514 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:37:56 +00:00
kostello
066a9ee625 Fix crasher loading mozilla.org page
git-svn-id: svn://10.0.0.236/trunk@2513 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:31:44 +00:00
selmer
0d0c63b1f0 Back out the IP stuff again
git-svn-id: svn://10.0.0.236/trunk@2512 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:20:00 +00:00
slamm
81cfe6418a change getURL() to take one less argument.
git-svn-id: svn://10.0.0.236/trunk@2511 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 18:14:00 +00:00
slamm
28ed9d31bd Make a distinction between stand-alone and embedded views. Stand-alone views show all the columns. Views embedded in the browser only show one column.
git-svn-id: svn://10.0.0.236/trunk@2510 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 17:41:47 +00:00
slamm
f49100e498 Change the nav center context from MWContextHistory to MWContextPane.
git-svn-id: svn://10.0.0.236/trunk@2509 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 17:41:44 +00:00
slamm
26d1e2f7fe Change getURL() to take only the urlStruct and not skip_get_url. It wasn't being used and it was confusing.src/BrowserDrop.cpp
git-svn-id: svn://10.0.0.236/trunk@2508 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 17:41:40 +00:00
slamm
4523b7631a Add a test case for the show/hide column behavior.
git-svn-id: svn://10.0.0.236/trunk@2507 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 17:41:34 +00:00
slamm
f1f6f0e1ab Add show/hide column buttons. Overload XmNvisibleColumns to set the actual number of visible columns when XmRESIZE_IF_POSIBLE is set. Previously, XmNvisibleColumns was used to request a width equal to an average column width times the number given. That behavior is still available when the horizontal size policy is XmCONSTANT.
git-svn-id: svn://10.0.0.236/trunk@2506 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 17:41:31 +00:00
morse
e29e2bc604 bug 122126, reviewed by mjudge
git-svn-id: svn://10.0.0.236/trunk@2504 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 17:41:09 +00:00
morse
c55ad343d6 bug 122126, reviewed by mjudge
git-svn-id: svn://10.0.0.236/trunk@2503 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 17:13:10 +00:00
kipp
1143ad5087 Default alignment of HR's is center
git-svn-id: svn://10.0.0.236/trunk@2501 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 17:10:17 +00:00
morse
774dc66bfd bug 122126, reviewed by valeski
git-svn-id: svn://10.0.0.236/trunk@2500 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 17:07:23 +00:00
kipp
3bcb8b4996 Fixed infinite loop in GetStyleSize code
git-svn-id: svn://10.0.0.236/trunk@2499 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 17:06:43 +00:00
kipp
03f29947f5 Eliminated bogus style from HR rule
git-svn-id: svn://10.0.0.236/trunk@2498 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 17:06:15 +00:00
kipp
a822df4a63 Support sizing properly; support width/height css (and attribute) style; elminate manual attribute storage
git-svn-id: svn://10.0.0.236/trunk@2497 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 17:05:39 +00:00
karnaze
36d98ad2fb fix bug in get submission
git-svn-id: svn://10.0.0.236/trunk@2495 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 16:00:15 +00:00
morse
d5565089fc bug 122126, reviewed by blythe
git-svn-id: svn://10.0.0.236/trunk@2494 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 15:35:21 +00:00
nisheeth
8baba2f927 Fix for bug 113155. We were losing the form_data->value of hidden text fields when executing "history.go(0)". Now we keep the value around between session history traversals. Thanks to ludovic for the fix.
----------------------------------------------------------------------


git-svn-id: svn://10.0.0.236/trunk@2492 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 14:24:16 +00:00
rickg
4d75e96e6d fixed class name crasher
git-svn-id: svn://10.0.0.236/trunk@2491 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 07:38:28 +00:00
ramiro
db5ab6bd3d Add macros to build unused widgets.
git-svn-id: svn://10.0.0.236/trunk@2490 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 07:26:08 +00:00
rickg
d26713dc46 modest improvements to push, and various bug fixes
git-svn-id: svn://10.0.0.236/trunk@2489 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 07:12:08 +00:00
sfraser
2d3e959eb3 Fix some project and lib names
git-svn-id: svn://10.0.0.236/trunk@2488 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 06:18:36 +00:00
sfraser
4027034ebc Fix the variable substitution, again
git-svn-id: svn://10.0.0.236/trunk@2486 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 05:52:42 +00:00
troy
c582c6488b Make sure we set the (x,y) before reflowing the frame
git-svn-id: svn://10.0.0.236/trunk@2485 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 05:41:59 +00:00
sfraser
397aea4430 Fix the variable substitution
git-svn-id: svn://10.0.0.236/trunk@2484 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 05:32:47 +00:00
sfraser
15edde0fe9 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@2483 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 05:16:58 +00:00
sfraser
0891fd8e06 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2482 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 05:16:43 +00:00
sfraser
3894b2d566 Temporarily commenting out export.mac file in mozilla:config:mac, since this directory needs to be added to the MozillaSourceMac module.
git-svn-id: svn://10.0.0.236/trunk@2481 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 05:03:46 +00:00
rpotts
b5c0efe548 removed the B1M define... Use MODULAR_NETLIB instead...
git-svn-id: svn://10.0.0.236/trunk@2480 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 04:56:44 +00:00
rpotts
05a096f37c Removed B1M define and used MODULAR_NETLIB instead...
git-svn-id: svn://10.0.0.236/trunk@2479 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 04:55:51 +00:00
troy
27d5b5bdbe Changed Paint() to not check if the frame is a pseudo frame
git-svn-id: svn://10.0.0.236/trunk@2478 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 04:38:28 +00:00
cboatwri
5d7f7dc59d Added Directory (ldap) SDK source files for public release
git-svn-id: svn://10.0.0.236/trunk@2477 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 04:29:26 +00:00
cboatwri
bcc6f383bb Added Directory (ldap) SDK source files for public release
git-svn-id: svn://10.0.0.236/trunk@2476 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 04:23:42 +00:00
sfraser
bbe33e24af Fix a bug in the quoting of file names which caused problems with files with a hyphen in the name.
git-svn-id: svn://10.0.0.236/trunk@2475 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 04:07:53 +00:00
sfraser
07d9f8cb3d First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2472 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 03:19:00 +00:00
scullin
f3a658f096 Checked in from the wrong $@%$#%$ tree.
git-svn-id: svn://10.0.0.236/trunk@2471 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 03:15:39 +00:00
mcafee
99dc022e95 Initial fullcircle module checkin
git-svn-id: svn://10.0.0.236/trunk@2470 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 03:00:49 +00:00
troy
4423b06d16 Added 'ns' prefix to class name
git-svn-id: svn://10.0.0.236/trunk@2468 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 02:37:37 +00:00
kipp
243bbe4f16 Added style support for the new css opacity property
git-svn-id: svn://10.0.0.236/trunk@2467 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 02:02:43 +00:00
kipp
0af82d79bd Revised HorizontallyPlaceChildren API to support a default alignment based on the layout direction
git-svn-id: svn://10.0.0.236/trunk@2466 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 02:02:22 +00:00
kipp
0f84787aa8 Use revised HorziontallyPlaceChildren api
git-svn-id: svn://10.0.0.236/trunk@2465 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 02:01:50 +00:00
kipp
a1e84139ce Use default text alignment; setup opacity properly
git-svn-id: svn://10.0.0.236/trunk@2464 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 02:01:19 +00:00
kipp
855722caee Added text_align_default for better direction handling
git-svn-id: svn://10.0.0.236/trunk@2463 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 02:00:59 +00:00
kipp
1842fc5cd8 Added mOpacity to nsStyleColor
git-svn-id: svn://10.0.0.236/trunk@2462 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:59:38 +00:00
kipp
f0567815a9 new
git-svn-id: svn://10.0.0.236/trunk@2461 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:58:58 +00:00
morse
3a25f69d6e check-in for garrett
git-svn-id: svn://10.0.0.236/trunk@2460 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:49:21 +00:00
scullin
3097cad210 Fix mac build bustage.
git-svn-id: svn://10.0.0.236/trunk@2459 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:31:47 +00:00
sfraser
28d26264cc First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2457 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:24:19 +00:00
scullin
e7cc5af4d2 Fix Mac build.
git-svn-id: svn://10.0.0.236/trunk@2454 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:18:42 +00:00
kipp
834cd63031 Added a new property
git-svn-id: svn://10.0.0.236/trunk@2453 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:11:30 +00:00
cyeh
28a5660932 sigh. one more time. add mozilla/modules/libnls as part of the mail/news
integration effort.


git-svn-id: svn://10.0.0.236/trunk@2452 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:08:55 +00:00
cyeh
abb3b256a3 added mozilla/modules/calendar to MozillaCommon as part of the mail/news
integration effort


git-svn-id: svn://10.0.0.236/trunk@2451 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:00:19 +00:00
jevering
354c2123f5 Unwhack Rick's change.
git-svn-id: svn://10.0.0.236/trunk@2450 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:57:25 +00:00
scullin
a03e49ff46 Fully land MODULAR_NETLIB branch on windows.
git-svn-id: svn://10.0.0.236/trunk@2449 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:52:44 +00:00
ftang
3c7d0866f3 add euro sign. approved by dp
git-svn-id: svn://10.0.0.236/trunk@2448 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:49:35 +00:00
karnaze
c71fc09344 fixed memory leak from prev checkin
git-svn-id: svn://10.0.0.236/trunk@2447 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:42:26 +00:00
spider
ea64ef1e2e Fixes to support latest GFX changes
git-svn-id: svn://10.0.0.236/trunk@2443 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:23:10 +00:00
spider
5937630273 Fix NSPR circly dependency thing
git-svn-id: svn://10.0.0.236/trunk@2442 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:22:34 +00:00
jevering
672bf8b1cb Added parser message dispatch loop for debug robot to pump netlib
and complete individual parsing.


git-svn-id: svn://10.0.0.236/trunk@2441 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:22:11 +00:00
spider
7faae8033a Get TREX running on UNIX again
git-svn-id: svn://10.0.0.236/trunk@2440 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:21:57 +00:00
jevering
21f4b2f1e9 Changing the debug robot to be able to cope with the parser push model.
Updated the robot sink apis.
Fixed the global url holder in the destructor of the parser.
Changed the robot observer to set a flag when completed parsing of a
url so that it doesn't create lottsa little parsers.


git-svn-id: svn://10.0.0.236/trunk@2439 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:21:34 +00:00
scullin
4157160681 Remove SOCKET_ERRNO and xp_sock.h from network
git-svn-id: svn://10.0.0.236/trunk@2438 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:19:49 +00:00
scc
a5eee274d7 Exploit new routine BuildProjectClean($;$). Fixed $dist_dir use to be consistent with standard use of variables for directories (i.e., include the trailing colon). Unified some small $DEBUG logic.
git-svn-id: svn://10.0.0.236/trunk@2437 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:19:43 +00:00
scullin
b713c5c1a8 Remove SOCKET_ERRNO from mozilla/network.
git-svn-id: svn://10.0.0.236/trunk@2436 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:18:29 +00:00
scullin
bbfde797e0 Eliminate SOCKET_ERRNO and xp_sock.h
git-svn-id: svn://10.0.0.236/trunk@2435 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:17:37 +00:00
scc
8b1d7177ce Added additional parameter to BuildProject: a boolean which, when true, forces a full build via `remove object code'
git-svn-id: svn://10.0.0.236/trunk@2434 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:16:44 +00:00
scc
4e38154099 Added BuildProjectClean($;$), like BuildProject, but forces a `remove object code'. Factored the two routines into a private build_project($$$)
git-svn-id: svn://10.0.0.236/trunk@2433 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:15:54 +00:00
karnaze
4fda063ac0 gui events store nsISupports; improved forms event handling
git-svn-id: svn://10.0.0.236/trunk@2432 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:58:07 +00:00
sfraser
0d27b0a629 Changed exports
git-svn-id: svn://10.0.0.236/trunk@2430 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:57:48 +00:00
sfraser
de6e715c62 Changed the target name to "Stubs" so that remove binaries happens each time, to guarentee that dist happens.
git-svn-id: svn://10.0.0.236/trunk@2429 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:54:02 +00:00
sfraser
9234dfdcee Changed the target name of the MakeDist project to "Stubs" so that binaries are removed on every build.
git-svn-id: svn://10.0.0.236/trunk@2428 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:53:31 +00:00
eyork
e3c9d24c1c Adding files for calendar mime handler. This is not yet hooked into mozilla.
git-svn-id: svn://10.0.0.236/trunk@2427 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:44:03 +00:00
kipp
9c836bc876 Parse (and ignore) important declarations
git-svn-id: svn://10.0.0.236/trunk@2426 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:38:16 +00:00
kipp
39db2c7f41 new
git-svn-id: svn://10.0.0.236/trunk@2425 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:37:21 +00:00
pinkerton
5fead38dcc obsolete just a few more LGA* files.
git-svn-id: svn://10.0.0.236/trunk@2423 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:23:23 +00:00
wtc
e1c7878a44 Removed unused variables. Thanks to Wei Tsang Ooi
<weitsang@cs.cornell.edu> for the patch.


git-svn-id: svn://10.0.0.236/trunk@2422 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:21:10 +00:00
wtc
4d04c2a5ce Use the stabs debug format on Solaris x86, because the default dwarf
format does not work.  This patch is provided by Soren Juul Moller
<sjm@nwc.dk>.


git-svn-id: svn://10.0.0.236/trunk@2420 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:15:32 +00:00
wtc
491e021a91 Merged gcc support from the HP-UX Mozilla Patching Kit version 3.00
(http://hpux.csc.liv.ac.uk/hppd/mozilla/), maintained by
Richard K Lloyd <hpux@csc.liv.ac.uk>.


git-svn-id: svn://10.0.0.236/trunk@2419 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:13:47 +00:00
rpotts
c1108773df Changed NET_WritePostData(...) to only send a CRLF between headers and data if both are present... On in the modular netlib, headers can be placed in the URL_s->post_data... This cahnge is ifdef B1M
git-svn-id: svn://10.0.0.236/trunk@2418 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:07:13 +00:00
rpotts
16efd4b73b Added B1M define if the MODULAR_NETLIB environment variable is defined...
git-svn-id: svn://10.0.0.236/trunk@2417 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:05:18 +00:00
rpotts
7fe06ecb1d Added support for XP_FindCOntextOfType(....) This is needed to turn off the poll_netlib_all_the_time flag after a POST has occurred
git-svn-id: svn://10.0.0.236/trunk@2416 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:04:11 +00:00
rpotts
75cb8edc90 Null terminate the post databuffer...
git-svn-id: svn://10.0.0.236/trunk@2415 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:03:05 +00:00
cyeh
40ed381c57 turn on moz_medium (turn off moz_lite)
git-svn-id: svn://10.0.0.236/trunk@2414 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:57:32 +00:00
sfraser
89cd69560c Fix warnings
git-svn-id: svn://10.0.0.236/trunk@2413 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:55:38 +00:00
sfraser
9649279ca2 Remove an obsolete prefix file
git-svn-id: svn://10.0.0.236/trunk@2412 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:53:47 +00:00
sfraser
c30964cead Changed to use NewAlias instead of dupicate for making headers in dist
git-svn-id: svn://10.0.0.236/trunk@2411 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:53:17 +00:00
sfraser
4849021fab Fix warnings
git-svn-id: svn://10.0.0.236/trunk@2410 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:47:28 +00:00
sfraser
c10c97cb1b Added a need comma, and added lines to build Client resource targets. Also changed name of final project from Navigator to Client.
git-svn-id: svn://10.0.0.236/trunk@2409 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:47:14 +00:00
scc
ed6abb94e6 missing project files now counts as an error w.r.t. StopForErrors(). Cleaned up MakeAlias a little.
git-svn-id: svn://10.0.0.236/trunk@2408 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:40:36 +00:00
kipp
6aeed36e66 Set x,y coordinate of frame before reflowing it
git-svn-id: svn://10.0.0.236/trunk@2407 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:24:57 +00:00
scullin
0375c753f7 Landing MODULAR_NETLIB_BRANCH on windows.
git-svn-id: svn://10.0.0.236/trunk@2406 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:13:00 +00:00
scullin
6a0c8ea696 Fix bool type mismatch.
git-svn-id: svn://10.0.0.236/trunk@2403 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:18:25 +00:00
cyeh
b4cb3f29b7 updated LEGAL file to reflect non-infringement of WANG patent, and option
to appeal.


git-svn-id: svn://10.0.0.236/trunk@2402 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:17:37 +00:00
sfraser
35dee2f6a2 Fixed MakeAlias to give better errors, and to work.
git-svn-id: svn://10.0.0.236/trunk@2401 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:14:11 +00:00
sfraser
3627d9d93f Added code to remove binaries from stubs targets before building them.
git-svn-id: svn://10.0.0.236/trunk@2400 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:13:29 +00:00
sfraser
56f8574831 Added copyright, put in MOZ_LITE definition.
git-svn-id: svn://10.0.0.236/trunk@2399 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:12:59 +00:00
sfraser
2554c38ada Updated to point to the new projects, and use the MakeAlias routine.
git-svn-id: svn://10.0.0.236/trunk@2398 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:10:54 +00:00
kipp
90a0e806d2 Use new line layout struct; pass in word break info to line layout
git-svn-id: svn://10.0.0.236/trunk@2397 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:07:30 +00:00
kipp
c7f7ce710d Moved certain line layout state into a state struct that can be saved/restored for word breaking
git-svn-id: svn://10.0.0.236/trunk@2396 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:07:10 +00:00
kipp
61dcf31ce0 Moved certain line layout state into a state struct that can be saved/restored for word breaking; updated code to use it; fixed up split line logic to use state to compute push count; added in word breaking logic; eliminated old word break code
git-svn-id: svn://10.0.0.236/trunk@2395 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:06:55 +00:00
kipp
f10d10eb50 Added DidFit/CanFit predicates; removed cruft
git-svn-id: svn://10.0.0.236/trunk@2394 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:06:03 +00:00
kipp
ba58cf168c Removed cruft; fixed to use canfit/didfit predicates that check on word-breaking state; fixed long standing bug with last-content-complete in pullup code
git-svn-id: svn://10.0.0.236/trunk@2393 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:05:47 +00:00
kipp
73e6662d13 Updated to use lineLayout struct changes
git-svn-id: svn://10.0.0.236/trunk@2392 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:05:13 +00:00
kipp
ac90a0457e nop
git-svn-id: svn://10.0.0.236/trunk@2391 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:04:53 +00:00
kipp
fef14caafd Only perform horizontal alignment when there is room to do it
git-svn-id: svn://10.0.0.236/trunk@2390 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:04:33 +00:00
karnaze
7e760f96e7 removed printf
git-svn-id: svn://10.0.0.236/trunk@2389 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:04:23 +00:00
cyeh
09e6e142e3 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2386 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 20:38:39 +00:00
sfraser
08b5bba656 Updated comment
git-svn-id: svn://10.0.0.236/trunk@2385 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 20:35:52 +00:00
akkana
6ea3a86934 Re-enable -composer and -edit flags (they were disabled under MOZ_MAIL_NEWS).
Also clean up a couple of warnings.


git-svn-id: svn://10.0.0.236/trunk@2384 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 20:26:01 +00:00
scc
925bc36315 removed erroneous commas from export lists
git-svn-id: svn://10.0.0.236/trunk@2383 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 20:19:31 +00:00
waldemar
3f6f86757c Fixed bug 114508: delete can now delete fields of objects put into scope by with statements
git-svn-id: svn://10.0.0.236/trunk@2381 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 20:10:13 +00:00
morse
599a68f6e5 removed ifdefs, mac busted fixed
git-svn-id: svn://10.0.0.236/trunk@2379 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 20:06:00 +00:00
hardts
d224ba7688 change raptor to nglayout
git-svn-id: svn://10.0.0.236/trunk@2378 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 20:00:40 +00:00
karnaze
b2212278c9 fix irix build
git-svn-id: svn://10.0.0.236/trunk@2377 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 19:57:03 +00:00
pinkerton
55e683689b Port to new AM classes of security button.
git-svn-id: svn://10.0.0.236/trunk@2376 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 19:55:09 +00:00
pinkerton
0795bce6bf add NET_DeleteCookie for RDF.
git-svn-id: svn://10.0.0.236/trunk@2375 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 19:54:01 +00:00
scc
cc9c1e39ae Added MakeAlias, an error checking synonym for symlink. Moved some routines to @EXPORT from @EXPORT_OK, to make for more concise clients.
git-svn-id: svn://10.0.0.236/trunk@2374 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 19:52:28 +00:00
morse
daacb3e5e2 bug 122126, reviewd by valeski
git-svn-id: svn://10.0.0.236/trunk@2373 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 19:46:30 +00:00
morse
e033f40035 bug 122126, reviewed by valeski
git-svn-id: svn://10.0.0.236/trunk@2369 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 19:34:31 +00:00
morse
3ac0fa7e60 bug 122126, approved by valeski
git-svn-id: svn://10.0.0.236/trunk@2367 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 19:32:19 +00:00
scullin
f63d10a871 Strip out XP functions from last bug fix.
git-svn-id: svn://10.0.0.236/trunk@2364 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 18:50:54 +00:00
karnaze
ca8a2b30ce post submission, file content submission
git-svn-id: svn://10.0.0.236/trunk@2355 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 17:51:41 +00:00
pinkerton
ac438678e6 Removal of LGA* stuff in prefs.
git-svn-id: svn://10.0.0.236/trunk@2354 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 17:29:01 +00:00
pinkerton
2e899db9e9 removal of LGA* stuff
git-svn-id: svn://10.0.0.236/trunk@2353 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 17:27:50 +00:00
michaelp
9c7b6d8d1b added region to factory.
git-svn-id: svn://10.0.0.236/trunk@2352 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 17:11:37 +00:00
morse
4de633d5a8 attempt to fix mac bustage
git-svn-id: svn://10.0.0.236/trunk@2350 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 15:08:35 +00:00
shaver
aca06adb66 tracking ref fixes: XDR and jsnum
git-svn-id: svn://10.0.0.236/trunk@2349 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 14:24:39 +00:00
shaver
69c0f00221 allow NULL Scripts for JS_NewScriptObject
git-svn-id: svn://10.0.0.236/trunk@2348 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 14:18:51 +00:00
morse
1c50215a24 bug 122126, reviewed by guha
git-svn-id: svn://10.0.0.236/trunk@2347 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 08:15:49 +00:00
morse
3cbd932a72 bug 122126, reviewed by valeski
git-svn-id: svn://10.0.0.236/trunk@2345 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 08:06:33 +00:00
hshaw
82e7979a06 Fix for Rhapsody build, thanks toshok@netscape.com, also remove some improper wording
git-svn-id: svn://10.0.0.236/trunk@2342 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 07:33:12 +00:00
morse
6dd0737902 bug 122126, reviewed by atotic
git-svn-id: svn://10.0.0.236/trunk@2340 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 07:31:15 +00:00
morse
48c842a852 bug 122126, reviewed by aoki
git-svn-id: svn://10.0.0.236/trunk@2339 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 07:24:36 +00:00
scc
8215a118ba added symlink lines, most still need to be completed with final product names; dist directory probably needs to be set correctly
git-svn-id: svn://10.0.0.236/trunk@2338 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 05:46:21 +00:00
mccabe
1403ada266 Conditionalized a (jsint) cast to ask JSDOUBLE_IS_NaN first -
hopefully avoiding a SIGPFE on Alpha Linux.  (And others?)


git-svn-id: svn://10.0.0.236/trunk@2335 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 04:53:37 +00:00
timm
9144c3b087 fix threading problem with thermo bar
git-svn-id: svn://10.0.0.236/trunk@2334 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 03:36:23 +00:00
timm
f70fcc46ce Sols changes
git-svn-id: svn://10.0.0.236/trunk@2333 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 03:35:09 +00:00
timm
4d6fd3d15c remove debugging stubs
git-svn-id: svn://10.0.0.236/trunk@2332 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 03:34:57 +00:00
timm
2328897d3e add getSelectedISPName
git-svn-id: svn://10.0.0.236/trunk@2331 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 03:34:14 +00:00
timm
c2b35bd975 remove debugging stub
git-svn-id: svn://10.0.0.236/trunk@2330 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 03:33:37 +00:00
timm
fea8bc8078 117255 fix for null exception
git-svn-id: svn://10.0.0.236/trunk@2329 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 03:32:53 +00:00
timm
bea1cec239 Sols changes, fix for 97647
git-svn-id: svn://10.0.0.236/trunk@2328 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 03:31:09 +00:00
spider
582fd7877f Allow mkdepend to be built on windoze
git-svn-id: svn://10.0.0.236/trunk@2327 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 02:27:09 +00:00
spider
2afd1eef7d windows dep. stuff
git-svn-id: svn://10.0.0.236/trunk@2326 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 02:14:26 +00:00
michaelp
d4e2a5a20c added support for front-to-back view rendering.
git-svn-id: svn://10.0.0.236/trunk@2325 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 02:13:28 +00:00
tague
55e417dfe9 added libnls headers to public build
git-svn-id: svn://10.0.0.236/trunk@2324 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 02:02:27 +00:00
scullin
35ec9fcc3e Enable html coloring stream converter in modular netlib.
git-svn-id: svn://10.0.0.236/trunk@2322 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 01:28:29 +00:00
scullin
5fdece0330 Change magic emacs line to reflect correct tab size.
git-svn-id: svn://10.0.0.236/trunk@2321 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 01:27:50 +00:00
scullin
0dbf249dce Don't build mkstream.c with modular netlib
git-svn-id: svn://10.0.0.236/trunk@2320 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 01:26:05 +00:00
scullin
d960e37ced Enable more protocols
git-svn-id: svn://10.0.0.236/trunk@2319 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 01:24:22 +00:00
scullin
31fb3c746d Rebuild when sub-libraries change.
git-svn-id: svn://10.0.0.236/trunk@2318 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 01:24:05 +00:00
spider
06abfe228b Adding makedep to gconfig
git-svn-id: svn://10.0.0.236/trunk@2316 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 00:59:31 +00:00
sfraser
7f9b0a7fe2 Added some more headers to export
git-svn-id: svn://10.0.0.236/trunk@2315 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 00:53:55 +00:00
sfraser
4d0cc4402f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2314 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 00:53:25 +00:00
sfraser
8703114e8b Addd some more export files
git-svn-id: svn://10.0.0.236/trunk@2313 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 00:53:11 +00:00
sfraser
5f209ad760 Updated the list of export.mac files
git-svn-id: svn://10.0.0.236/trunk@2311 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 00:50:22 +00:00
sfraser
df4052e541 Fixing bugs in the scripts that copy headers into dist. Now allow trailing #comments, and handle whitespace after file names.
git-svn-id: svn://10.0.0.236/trunk@2310 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 00:50:08 +00:00
buster
db2f93e156 fixed case-sensitive include
git-svn-id: svn://10.0.0.236/trunk@2307 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:28:48 +00:00
peterl
e232225565 added visibility style attribute
git-svn-id: svn://10.0.0.236/trunk@2306 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:17:29 +00:00
peterl
86b7ae08b5 moved attributes around
git-svn-id: svn://10.0.0.236/trunk@2305 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:16:55 +00:00
peterl
779a602187 added visibility style attribute
moved attributes from position to display struct


git-svn-id: svn://10.0.0.236/trunk@2304 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:15:47 +00:00
peterl
ef76e4aa4a use context graph for finding contexts
git-svn-id: svn://10.0.0.236/trunk@2303 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:14:56 +00:00
peterl
9050d134bb cleaned up visibility
git-svn-id: svn://10.0.0.236/trunk@2302 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:14:29 +00:00
peterl
f264deae62 reworked up reset code
added child list


git-svn-id: svn://10.0.0.236/trunk@2301 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:14:09 +00:00
peterl
2a8bcff4d7 cleanup
git-svn-id: svn://10.0.0.236/trunk@2300 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:13:26 +00:00
peterl
16a18a6b6d moved overflow from position to display struct
git-svn-id: svn://10.0.0.236/trunk@2299 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:13:15 +00:00
peterl
e280fe1c34 documented reset vs inherited attributes
shuffled some attributes around


git-svn-id: svn://10.0.0.236/trunk@2298 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:12:14 +00:00
waldemar
6f622be91c Fixed bug 117404: typeof should return "function" on scripts and regular expressions.
git-svn-id: svn://10.0.0.236/trunk@2295 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 22:11:00 +00:00
buster
314c1c9eb4 table width computation using style system (more than it used to, at least)
git-svn-id: svn://10.0.0.236/trunk@2294 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 22:03:16 +00:00
waldemar
66bf5ae377 Fixed syntax errors
git-svn-id: svn://10.0.0.236/trunk@2291 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 21:25:41 +00:00
kostello
b9b928f869 Updated Table Border code to render HTML3.2 compatible borders (no longer using the cool,
CSS borders).
Fixed Table but submitted by Isaac David Guedalia <daniel_sh@gezernet.co.il>.


git-svn-id: svn://10.0.0.236/trunk@2288 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 20:57:24 +00:00
kostello
557fb3323f Moved Get3DColors from HRPart to CSSRendering.
Modified Border Drawing Code to use Get3DColors for backwards compatibility purposes.


git-svn-id: svn://10.0.0.236/trunk@2287 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 20:52:59 +00:00
kostello
3b45b56e92 Moved Get3DColors from HRPart to CSSRendering.
git-svn-id: svn://10.0.0.236/trunk@2286 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 20:52:12 +00:00
scc
17b0861b94 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2283 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 19:48:03 +00:00
scc
0b0f644879 Added code to handle the `stop for errors, but not logging' case; moved copyright to (newly added) POD section
git-svn-id: svn://10.0.0.236/trunk@2282 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 19:46:36 +00:00
scc
9bc43c2d77 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@2281 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 19:36:10 +00:00
scc
ceebd16267 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2280 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 19:34:23 +00:00
ftang
bdcc75c122 fix the x-x-big5(and also gb2312, ksc5601) problem MS FrontPage introduced
for UNIX and Mac. The Window fixed eariler.


git-svn-id: svn://10.0.0.236/trunk@2278 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 19:18:47 +00:00
radha
002970c8f4 Re-fix for earlier fix for bug # 104761. Re-fix provided by timm. See bug report
for further details.


git-svn-id: svn://10.0.0.236/trunk@2277 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 19:05:32 +00:00
ftang
6e7465ed87 Fix NO-ending-SI problem for EUC-KR to ISO-2022-KR conversion
Thanks Jungshik Shin <jshin@pantheon.yale.edu> from the net and Erik van der Poel


git-svn-id: svn://10.0.0.236/trunk@2276 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 18:52:50 +00:00
radha
0bf82aa7dc New resources for the "Show/Hide Navigation Center" menu option
git-svn-id: svn://10.0.0.236/trunk@2275 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 18:52:01 +00:00
radha
33443f536a Add new command xfeToggleNavCenter to show/hide Aurora pane
git-svn-id: svn://10.0.0.236/trunk@2274 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 18:51:12 +00:00
radha
493b237768 Add BrowserView to the source files list.
git-svn-id: svn://10.0.0.236/trunk@2273 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 18:50:25 +00:00
radha
fabf4d340b Use BrowserView instead of HTML View. BrowserView holds a HTML view and a
NavCenter. Create a new menu option "Show/Hide NavCenter".


git-svn-id: svn://10.0.0.236/trunk@2272 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 18:49:53 +00:00
radha
5cf9772f51 Initial Checkin. This is the new view for all browser frames. It holds a HTML
View and a Nav Center View. Navcenter is currently turned off by default. It
can be  turned on with the "Show Navigation Center"  menu option.


git-svn-id: svn://10.0.0.236/trunk@2271 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 18:48:14 +00:00
pinkerton
3f7244a881 Status bar now uses appearance to draw progress bar separate from status text. Related Netscape classes that do the same thing obsoleted.
git-svn-id: svn://10.0.0.236/trunk@2267 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 16:32:05 +00:00
pinkerton
e5d0c4da33 default button again works in profile picker dialog.
git-svn-id: svn://10.0.0.236/trunk@2266 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 16:30:42 +00:00
ltabb
bbbb26567e this is a test for judd, no code effect
git-svn-id: svn://10.0.0.236/trunk@2265 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 14:51:51 +00:00
shaver
ca7d9cbe28 actually define the function properties of a script when decoding
git-svn-id: svn://10.0.0.236/trunk@2262 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 13:25:26 +00:00
shaver
6b2c0b6ca0 preserve sprop->id across XDR
git-svn-id: svn://10.0.0.236/trunk@2261 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 12:18:18 +00:00
ramiro
a67670f676 Change the logic of the || operators. This fixes a problem where the
bookmark window was asserting for no reason.
Thanks to Andrew Veliath <andrewtv@usa.net>


git-svn-id: svn://10.0.0.236/trunk@2260 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 12:15:44 +00:00
ramiro
fc422af5d8 In mozilla.c it says that XFE_InitDNS_Early is called before NSPR, etc.; but
the LOG macro calls PR_smprintf which fires up NSPR.    Use fprintf instead
of LOG() for this case.
Thanks to tenthumbs@cybernex.net.


git-svn-id: svn://10.0.0.236/trunk@2259 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 11:08:10 +00:00
ramiro
110ffa00cd Mozilla crashed after visiting a page with plugin. This is caused
by an access to a NULL pointer (plugin->handle).
Thanks to weitsang@yahoo.com
Fixes bugzilla #409.


git-svn-id: svn://10.0.0.236/trunk@2258 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 10:58:59 +00:00
troy
d2d4e15ea4 Merged ResizeReflow() and IncrementalReflow() into one Reflow() member function
git-svn-id: svn://10.0.0.236/trunk@2253 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-25 17:31:49 +00:00
guha
75cecf8781 Mac ifdef bustage fixage
git-svn-id: svn://10.0.0.236/trunk@2249 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-24 01:13:55 +00:00
guha
36a7576bb9 Add test.c : This file is not in the client build but is meant as
a sample file for those who want to use the XML module in standalone
mode.

Added a bunch of ifdefs for getting the standalone mode.


git-svn-id: svn://10.0.0.236/trunk@2248 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-24 00:27:54 +00:00
spider
a329725d0b Support for resource files on win32 - other platforms currently
ignore the RESFILE and RCFILE variables


git-svn-id: svn://10.0.0.236/trunk@2246 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 18:34:48 +00:00
spider
7fcbc136f4 Support for Julian and nls prior to FreeSource move to /m/pub
git-svn-id: svn://10.0.0.236/trunk@2245 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 18:34:15 +00:00
scullin
19b636f12a Only build module with nglayout.
git-svn-id: svn://10.0.0.236/trunk@2241 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 03:54:56 +00:00
briano
924dbfe9d2 Fixing the SCO OpenServer builds. Need to define _SVID3 in this special case so including statvfs.h will give us what we need. Anyone want to volunteer a more elegant solution? Approved by ramiro@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@2240 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 03:46:19 +00:00
scullin
22acc06189 Landing modular netlib on Window.
git-svn-id: svn://10.0.0.236/trunk@2236 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 01:38:10 +00:00
scullin
14adc6359a Added modular netlib to nglayout/Raptor
git-svn-id: svn://10.0.0.236/trunk@2235 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 01:36:28 +00:00
scullin
6e902be1c6 Updated for modular netlib
git-svn-id: svn://10.0.0.236/trunk@2234 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 01:35:51 +00:00
scullin
9916a96f39 Fix nglayout build.
git-svn-id: svn://10.0.0.236/trunk@2232 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 01:28:11 +00:00
sfraser
4d3a73a6a0 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2231 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 01:14:17 +00:00
scullin
97ebcd1ae6 Fix printing of nsString.
git-svn-id: svn://10.0.0.236/trunk@2228 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 00:28:02 +00:00
rjc
596d7a6b33 Fix FTP on Mac. (Approval by module owner: gagan)
git-svn-id: svn://10.0.0.236/trunk@2227 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 00:09:18 +00:00
scullin
10222065f1 Landed raptor modular netlib stuff
git-svn-id: svn://10.0.0.236/trunk@2225 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 23:38:40 +00:00
hardts
cfef75c533 XPCOM has now landed on the tip
git-svn-id: svn://10.0.0.236/trunk@2224 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 22:41:37 +00:00
hardts
053114cc3c was 0 length file after landing branch, copy in the branch version
git-svn-id: svn://10.0.0.236/trunk@2223 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 22:34:32 +00:00
hardts
35e38c9902 TestID.cpp didn't get branch changes for some reason, adding them now.
git-svn-id: svn://10.0.0.236/trunk@2221 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 22:30:53 +00:00
cyeh
cd4e15a1f7 add file vr_stubs.c to libreg as part of the XPCOM_BRANCH landing
git-svn-id: svn://10.0.0.236/trunk@2219 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 22:01:45 +00:00
hardts
217d4a9900 landing XPCOM_BRANCH
git-svn-id: svn://10.0.0.236/trunk@2218 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 21:56:30 +00:00
hardts
d583c3a3b9 land XPCOM_BRANCH
git-svn-id: svn://10.0.0.236/trunk@2217 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 21:55:49 +00:00
cyeh
4222ef6c58 assist with XPCOM_BRANCH landing. add files nsDebug.cpp and nsSupportsArray.cpp to projects
git-svn-id: svn://10.0.0.236/trunk@2215 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 21:52:45 +00:00
pinkerton
6fc714fb0e More appearance manager changes. Support for toolbar buttons being AM savvy. (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@2213 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 20:25:42 +00:00
pinkerton
29536f7fbb First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2212 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 20:23:25 +00:00
kipp
2f9b3b6470 Including missing nsCoord
git-svn-id: svn://10.0.0.236/trunk@2211 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 20:11:42 +00:00
kipp
3ff4de3bf3 Added -md argument handling
git-svn-id: svn://10.0.0.236/trunk@2210 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 20:11:14 +00:00
rickg
8da56df062 fixed bug in form -- form flag was never being set to true
git-svn-id: svn://10.0.0.236/trunk@2204 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 19:31:38 +00:00
cyeh
b41a29c6af A utility batch file for setting all the necessary environment variables
that needed to build Mozilla for Win32.  Contributed by Lucas Gonze
(lucas@gonze.com) and Rick Ekle (rekle@iconect.net).  You'll need to edit
this file to point it at the location of your development environment and your
local copy of the source tree.


git-svn-id: svn://10.0.0.236/trunk@2203 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 19:30:23 +00:00
rickg
57d6142350 fixed a minor build problem with blender
git-svn-id: svn://10.0.0.236/trunk@2202 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 19:16:08 +00:00
guha
bb4e0c0672 Fix crashing bug caused by very long string being passed to FE_Trace
git-svn-id: svn://10.0.0.236/trunk@2201 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:51:38 +00:00
kipp
5906363e28 Let .cpp compilations KEEP the .cfg file too
git-svn-id: svn://10.0.0.236/trunk@2200 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:43:34 +00:00
kipp
04d414f623 Fixed windows cvpack problem
git-svn-id: svn://10.0.0.236/trunk@2199 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:41:08 +00:00
kipp
c6d6b4ec78 Removed a pile of includes
git-svn-id: svn://10.0.0.236/trunk@2198 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:39:28 +00:00
kipp
a38d94f629 Move padding out of UL/OL and into LI's that are in UL/OL's
git-svn-id: svn://10.0.0.236/trunk@2197 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:39:11 +00:00
kipp
3409cd9d61 Use new GetVisibleArea API
git-svn-id: svn://10.0.0.236/trunk@2196 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:38:33 +00:00
kipp
bd1b101779 Support LI's with padding instead of UL padding
git-svn-id: svn://10.0.0.236/trunk@2195 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:38:11 +00:00
gagan
abcef8c094 Unix builds. Not in the main build yet.
git-svn-id: svn://10.0.0.236/trunk@2194 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:38:10 +00:00
kipp
72ef1d9055 Removed some dead code; added code to DidReflow children at a good spot
git-svn-id: svn://10.0.0.236/trunk@2193 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:37:49 +00:00
kipp
48eb9c0084 Removed some includes
git-svn-id: svn://10.0.0.236/trunk@2192 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:37:25 +00:00
kipp
08c1e11e08 Removed an include
git-svn-id: svn://10.0.0.236/trunk@2191 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:37:15 +00:00
kipp
32b44a6565 Declare nsStylePosition
git-svn-id: svn://10.0.0.236/trunk@2190 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:37:04 +00:00
kipp
8e76027a72 Removed includes; updated GetVisibleArea API
git-svn-id: svn://10.0.0.236/trunk@2189 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:36:40 +00:00
kipp
d81b9d196e updated GetVisibleArea API
git-svn-id: svn://10.0.0.236/trunk@2188 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:36:27 +00:00
gagan
b64eb63d71 strlen to PL_strlen. Not in the build yet.
git-svn-id: svn://10.0.0.236/trunk@2187 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:34:22 +00:00
kipp
60a0ef89f7 Removed includes
git-svn-id: svn://10.0.0.236/trunk@2186 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:28:40 +00:00
kipp
acaaec9578 Only verify last is complete when enabled
git-svn-id: svn://10.0.0.236/trunk@2185 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:28:29 +00:00
kipp
e62719b058 Removed unneeded include
git-svn-id: svn://10.0.0.236/trunk@2184 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:28:02 +00:00
kipp
3cf90601b8 Repaired GetVisibleArea API
git-svn-id: svn://10.0.0.236/trunk@2183 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:27:48 +00:00
kipp
6a7bc663f3 new
git-svn-id: svn://10.0.0.236/trunk@2182 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:27:25 +00:00
jevering
7c150df597 Fixed about: URL's from crashing the viewer.
git-svn-id: svn://10.0.0.236/trunk@2181 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:10:08 +00:00
buster
483b518e3e added -r # for specifying a repeat count for batch mode
git-svn-id: svn://10.0.0.236/trunk@2179 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 17:34:58 +00:00
slamm
7a91059224 Fix crash on bringing up second NavCenter.
git-svn-id: svn://10.0.0.236/trunk@2176 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 17:15:03 +00:00
dcone
20016a960c Added the nsBlender classes to the project
git-svn-id: svn://10.0.0.236/trunk@2174 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 14:15:57 +00:00
hshaw
7b81da6fb3 Fix for SCO build. bitypes.h defines int32_t and was missing from stub files. Not a problem in real sun-java. Thanks briano@netscape.com
git-svn-id: svn://10.0.0.236/trunk@2173 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 09:31:16 +00:00
ramiro
0c2f6f30df Fix a dyslexic typo. Geez, how long was this here for ?
git-svn-id: svn://10.0.0.236/trunk@2172 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 06:52:57 +00:00
ramiro
350ecf8d15 Add initial support for layable children resource.
git-svn-id: svn://10.0.0.236/trunk@2171 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 06:50:41 +00:00
atotic
14133bdcd6 Commiting this from windows caused my special characters to disappear
git-svn-id: svn://10.0.0.236/trunk@2170 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 06:35:58 +00:00
atotic
8110e44179 Experimental Mac makefile
git-svn-id: svn://10.0.0.236/trunk@2169 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 05:57:00 +00:00
troy
14c16833da Changed reference to reflow command to a pointer to a reflow command
git-svn-id: svn://10.0.0.236/trunk@2168 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 04:56:27 +00:00
troy
ac413c29fa Changed splittable enum to be bit flags
git-svn-id: svn://10.0.0.236/trunk@2167 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 04:54:11 +00:00
pinkerton
ade769a9c5 commented out the annoying assert when max round was exceeded.
git-svn-id: svn://10.0.0.236/trunk@2166 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 04:22:04 +00:00
pinkerton
afe582b7b5 Landing of a bunch of appearance manager stuff. (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@2165 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 04:19:24 +00:00
troy
c7abe18deb Changed the nsBandTrapezoid::State enum values to conform to the coding
standard


git-svn-id: svn://10.0.0.236/trunk@2164 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 04:03:14 +00:00
troy
449871aa10 Added new Reflow() member function that will eventually supersede the two
existing reflow functions: ResizeReflow() and IncrementalReflow()


git-svn-id: svn://10.0.0.236/trunk@2162 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 03:52:51 +00:00
troy
06b63f6642 Some work in progress for incremental floaters
git-svn-id: svn://10.0.0.236/trunk@2161 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 02:38:41 +00:00
spider
bb47dc2302 Adding the beginnings of Colormap Installation
git-svn-id: svn://10.0.0.236/trunk@2160 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 01:58:31 +00:00
wtc
81cc85bf08 OSF1 V3.2 does not have <machines/builtins.h>, which declares the
atomic routines.  Thanks to Andrew Cassin <acassin@cs.mu.oz.au> for
this patch.


git-svn-id: svn://10.0.0.236/trunk@2157 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 00:59:33 +00:00
troy
6b6d4c22d4 Fixed some busted code of a bogus type cast
git-svn-id: svn://10.0.0.236/trunk@2154 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 00:45:34 +00:00
buster
9d29532002 made nsTableCaptionFrame a subclass of nsBodyFrame
git-svn-id: svn://10.0.0.236/trunk@2151 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 00:05:22 +00:00
shaver
6b008173d1 added missing lib
git-svn-id: svn://10.0.0.236/trunk@2150 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 23:53:00 +00:00
kostello
997174b4d5 * Added Support for cell spacing
* NOTE: due to changes in the style system -- things won't look correct right away.


git-svn-id: svn://10.0.0.236/trunk@2149 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 23:43:18 +00:00
buster
93d6e09272 added a "-f" debug option to read a file for URLs to load
added a "-d" debug option to set the delay between URL loads


git-svn-id: svn://10.0.0.236/trunk@2147 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 23:41:53 +00:00
mccabe
d90f218a88 Fix to (83996), global parseInt function fails for numbers > 2^31.
It now passes all of the tests in 15.1.2.2-1 (except that parseInt
still has the .length property, which is a different bug) - so I'll
close the bug.

Still possibly at issue is whether we conform to ECMA language about
decimal numbers that are too large to fit in a double.  I treat
decimal digits after the 20th as zero, but there could be some
floating-point rounding wackiness going on.  In particular - are we
doing the right thing for numbers that are powers of 2, but larger
than 2^54, that are representable in a double?


git-svn-id: svn://10.0.0.236/trunk@2143 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 23:15:24 +00:00
matt
559c72d11b ifdef include on prosdep. If should not be dependent. Was breaking js/src builds
git-svn-id: svn://10.0.0.236/trunk@2141 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 22:41:18 +00:00
rickg
7afaf5e301 temp. comment out call
git-svn-id: svn://10.0.0.236/trunk@2138 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 22:19:40 +00:00
montulli
73bf44f694 initial add of netsream.h , not yet in build
git-svn-id: svn://10.0.0.236/trunk@2134 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 22:03:55 +00:00
gagan
f8b1fc15d8 An excursion timing class.
git-svn-id: svn://10.0.0.236/trunk@2132 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 21:56:58 +00:00
rickg
f2f5d28308 incremental parsing; xml support; token handler dispatching; performance
git-svn-id: svn://10.0.0.236/trunk@2126 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 20:38:32 +00:00
rickg
3fac38b3d8 moved to new incremental API
git-svn-id: svn://10.0.0.236/trunk@2125 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 20:37:41 +00:00
rickg
7caed77d22 minor perf improvement to deque
git-svn-id: svn://10.0.0.236/trunk@2124 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 20:37:17 +00:00
guha
f3f598e3ce Add prototype, temporary bug fix added.
git-svn-id: svn://10.0.0.236/trunk@2122 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 19:23:44 +00:00
guha
9d3512090b Export NET_InitRDFCookieResources
git-svn-id: svn://10.0.0.236/trunk@2121 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 19:17:21 +00:00
guha
612bc28681 Add export (for Mac), fix XP_strcmp NOT_NULL bug.
git-svn-id: svn://10.0.0.236/trunk@2120 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 19:16:43 +00:00
guha
a66d4a6595 Cookie changes.
git-svn-id: svn://10.0.0.236/trunk@2119 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 19:08:38 +00:00
selmer
05259add9a Change over to http: w/IP for reggie connections
git-svn-id: svn://10.0.0.236/trunk@2115 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 18:18:55 +00:00
gagan
fd6863b577 Added nsCachePref for cache preferences. This will have the interface
for libpref or nsPref stuff. Added database support for dbm. General
progress. This is not in the main build as yet.


git-svn-id: svn://10.0.0.236/trunk@2113 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 18:04:34 +00:00
gagan
019a155771 Added nsCachePref for cache preferences. This will have the interface
for libpref or nsPref stuff. General progress. This is not in the main
build as yet.


git-svn-id: svn://10.0.0.236/trunk@2112 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 18:03:50 +00:00
guha
ab5cd02bee Fix Linux optimized build problem reported by
Hani Suleiman <hani@fate.demon.co.uk>

>Building an optimised build under Linux fails unless the FE_Trace() on
>line 143 is wrapped with #ifdef DEBUG


git-svn-id: svn://10.0.0.236/trunk@2110 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 17:34:57 +00:00
kipp
b7133a9963 disabled reflow-mapped-child for now
git-svn-id: svn://10.0.0.236/trunk@2109 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 16:29:20 +00:00
kipp
f80729a530 Not quite functional handling of line state during GetReflowMetrics
git-svn-id: svn://10.0.0.236/trunk@2108 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 16:12:31 +00:00
kipp
ba6ecd8a02 better handle reflow avoidance; factored align children slightly different so that more code is shared between ResizeReflow and IncrementalReflow; fixed more cases where reflow is required
git-svn-id: svn://10.0.0.236/trunk@2107 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 16:12:10 +00:00
kipp
af4fc73183 Added a few more fields to better handle reflow avoidance; factored align children slightly different so that more code is shared between ResizeReflow and IncrementalReflow
git-svn-id: svn://10.0.0.236/trunk@2106 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 16:11:29 +00:00
kipp
7e6b6eb56f Removed temporary content appended hack (it no longer works)
git-svn-id: svn://10.0.0.236/trunk@2105 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 16:10:35 +00:00
spider
d6f1c041a2 Some additional Rendering Implementations (Line/Rect/Arc)
Support for offscreen Pixmap's


git-svn-id: svn://10.0.0.236/trunk@2103 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 08:24:44 +00:00
toshok
fbb307b987 fix the bug where form reset with textarea's would segfault. just cut-n-pasted one line from the text input element's reset method.
git-svn-id: svn://10.0.0.236/trunk@2102 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 07:18:51 +00:00
briano
a329fa209e Added -D_PR_LOCAL_THREADS_ONLY so files outside nsprpub that include _scoos.h will compile.
git-svn-id: svn://10.0.0.236/trunk@2100 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 04:06:00 +00:00
scc
64bca9f3dc Report the project that actually stopped the build.
git-svn-id: svn://10.0.0.236/trunk@2094 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 02:41:11 +00:00
peterl
63031f554c new file
git-svn-id: svn://10.0.0.236/trunk@2091 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 02:34:45 +00:00
peterl
25861753fc Changed GetStyleData to use an enum instead of an nsID
git-svn-id: svn://10.0.0.236/trunk@2090 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 02:34:13 +00:00
rickg
835d063055 filled in the popback function
git-svn-id: svn://10.0.0.236/trunk@2089 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 02:27:34 +00:00
slamm
d65d3e6e3d Fix Mozilla bug #385. Global history file would not get recreated if it was deleted. Thanks to Ronan Waide <waider@cognotec.com> for reporting the problem and developing a patch.
git-svn-id: svn://10.0.0.236/trunk@2087 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 01:39:25 +00:00
rjc
e812d8fbf5 Bug fix: Make sure parent isn't NULL.
git-svn-id: svn://10.0.0.236/trunk@2084 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 01:06:51 +00:00
rjc
7953137eac GetSlotValue() now returns memory which caller must free (if its a string). Remove references to DEBUG_RDF_GetSlotValue_Memory_Needs_Freedom define.
git-svn-id: svn://10.0.0.236/trunk@2082 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 00:57:25 +00:00
spider
970e83bba8 Fixes for making nsAppTest use gfx basics
git-svn-id: svn://10.0.0.236/trunk@2079 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 00:37:02 +00:00
slamm
17f978fb8f Use the winning animation from the Mozilla Logo Contest. Congratulations go to Urs Streidl <urs@gigaperls.org>.
git-svn-id: svn://10.0.0.236/trunk@2072 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:33:44 +00:00
spider
ea4ca5d1b9 Add motif to DIRS, commented out for now
git-svn-id: svn://10.0.0.236/trunk@2071 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:20:32 +00:00
spider
0866ff0202 Adding NS_NATIVE_WIDGET to get the native widget associated with an nsIWidget.
Windows has a concept of a native window whilst unix has a native widget and
a native window.


git-svn-id: svn://10.0.0.236/trunk@2070 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:19:38 +00:00
kipp
a9dcc1b0ed Fixed bug in nsString::Cut code where the sizeof(chartype) was multipled a bit aggresively; I also tuned the routine somewhat as well
git-svn-id: svn://10.0.0.236/trunk@2069 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:18:25 +00:00
spider
e80bba2116 Motif Mods
git-svn-id: svn://10.0.0.236/trunk@2068 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:18:09 +00:00
spider
eed0288148 Xlib mods
git-svn-id: svn://10.0.0.236/trunk@2067 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:17:49 +00:00
scc
1794e6b4c9 Added StopForErrors() and DontStopForErrors(). The former is the default, though logging must be on to allow errors to be noticed.
git-svn-id: svn://10.0.0.236/trunk@2066 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:09:53 +00:00
jevering
e5cf6a5951 Broke release build. Fixed.
git-svn-id: svn://10.0.0.236/trunk@2065 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:08:12 +00:00
montulli
1ed5ce76dd initial add of cstream library, not yet in build
git-svn-id: svn://10.0.0.236/trunk@2063 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 22:36:31 +00:00
kmcclusk
c294a50d5f Removed windows directory from widget/tests
git-svn-id: svn://10.0.0.236/trunk@2061 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 22:07:17 +00:00
kmcclusk
df29b2b178 Created an AppShell to abstract the event loop. Re-organized widget tests
into scribble and widget subdirectories and separated cross-platform code from
platform specific code


git-svn-id: svn://10.0.0.236/trunk@2060 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 22:02:14 +00:00
kipp
e4dbeae2e8 Disable reflow optimizations for now
git-svn-id: svn://10.0.0.236/trunk@2057 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:51:51 +00:00
spider
3edc3aaa94 Add NS_UNIX if __unix is defined
git-svn-id: svn://10.0.0.236/trunk@2056 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:40:46 +00:00
troy
18c747aa19 Cleaned up performance
git-svn-id: svn://10.0.0.236/trunk@2055 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:40:00 +00:00
spider
46b5aeb9b8 update nsAppTest for unix to work
git-svn-id: svn://10.0.0.236/trunk@2054 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:29:18 +00:00
peterl
5a89c809b7 made it build on irix
git-svn-id: svn://10.0.0.236/trunk@2053 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:28:36 +00:00
dcone
76471f424e put in the inverse color table routine and did 8 bit alpha
git-svn-id: svn://10.0.0.236/trunk@2052 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:12:38 +00:00
spider
48f1bf43c5 Support for so's made of archives
git-svn-id: svn://10.0.0.236/trunk@2050 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:02:04 +00:00
spider
a92e35fbe7 Misc Unix stuff
git-svn-id: svn://10.0.0.236/trunk@2049 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:01:38 +00:00
peterl
5881217641 added load timing
git-svn-id: svn://10.0.0.236/trunk@2048 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 20:34:54 +00:00
peterl
5673af6984 added rule hash table to speed up style resolution
git-svn-id: svn://10.0.0.236/trunk@2047 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 20:34:17 +00:00
peterl
c31cedc223 collapse double empty contexts
git-svn-id: svn://10.0.0.236/trunk@2046 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 20:33:30 +00:00
peterl
c7440bcf59 added rule count accessor
git-svn-id: svn://10.0.0.236/trunk@2045 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 20:32:57 +00:00
peterl
9d9d3404d3 added enumerate methods
git-svn-id: svn://10.0.0.236/trunk@2044 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 20:31:58 +00:00
robinf
702d26cb8e fixinb header bug in AS help
git-svn-id: svn://10.0.0.236/trunk@2042 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 19:17:14 +00:00
robinf
656ec38f0e fixinb header bug
git-svn-id: svn://10.0.0.236/trunk@2041 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 19:10:12 +00:00
robinf
959244b105 fixinb bug in comment line
git-svn-id: svn://10.0.0.236/trunk@2038 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 19:02:32 +00:00
spider
83c4fc037c Some unix stuff
git-svn-id: svn://10.0.0.236/trunk@2035 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 17:59:52 +00:00
thom
c5eba1ff11 added project file for mac build
git-svn-id: svn://10.0.0.236/trunk@2033 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 17:30:15 +00:00
kipp
d7224c5e89 Added command line args for purify/quantify runs
git-svn-id: svn://10.0.0.236/trunk@2030 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:28:40 +00:00
kipp
87b65c0bca Added rule for MULTICOL
git-svn-id: svn://10.0.0.236/trunk@2029 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:28:19 +00:00
kipp
7517c6c495 Add in will/did reflow calls; add in tracing calls too
git-svn-id: svn://10.0.0.236/trunk@2028 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:28:05 +00:00
kipp
b1a4dc5a81 Use new tracing macros; add in ReflowMappedChild to avoid reflowing children
git-svn-id: svn://10.0.0.236/trunk@2027 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:27:46 +00:00
kipp
fcd752ba90 Use new tracing macros and verify-tree-enable
git-svn-id: svn://10.0.0.236/trunk@2026 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:27:22 +00:00
kipp
d7c6851d21 Added in mDeltaWidth to block reflow state
git-svn-id: svn://10.0.0.236/trunk@2025 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:26:46 +00:00
kipp
e91d496797 Fixed GetReflowMetrics to return something; use new tracing methods and verify-tree-enable; compute delta width for line layout logic
git-svn-id: svn://10.0.0.236/trunk@2024 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:26:34 +00:00
kipp
3f35550560 GetReflowMetrics now updates the reflow state
git-svn-id: svn://10.0.0.236/trunk@2023 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:25:40 +00:00
kipp
88d895e375 Added a minor optimization to avoid memcpy calls that aren't needed
git-svn-id: svn://10.0.0.236/trunk@2022 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:25:16 +00:00
kipp
7d6827867d Use new frame tracing macros
git-svn-id: svn://10.0.0.236/trunk@2021 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:24:54 +00:00
kipp
f074763ff0 Declare tracing macros that use nspr logging and tracing methods that support the macros
git-svn-id: svn://10.0.0.236/trunk@2020 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:24:36 +00:00
kipp
1811ed96e7 Implement new debugging hooks that use nspr logging; also implement tracing methods in nsFrame; use tracing in will/did-reflow hooks
git-svn-id: svn://10.0.0.236/trunk@2019 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:24:13 +00:00
kipp
289b959938 Added some trace messages; fixed bug in PaintChildren that was always painting all children instead of allowing the intersection with the dirty rect to avoid paints
git-svn-id: svn://10.0.0.236/trunk@2018 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:23:37 +00:00
kipp
be2e63322f Added more debugging hooks that use nspr logging
git-svn-id: svn://10.0.0.236/trunk@2017 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:22:15 +00:00
kipp
a84aba4939 Added empty constructor; removed instance count sillyness
git-svn-id: svn://10.0.0.236/trunk@2016 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:21:48 +00:00
scc
7b810c81dd First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2015 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 08:12:13 +00:00
rjc
6a0f22ab75 Add support for "Refresh" command across data sources. Also, fix a couple more bugs in HT regarding node count (deletion didn't always update the count correctly.)
git-svn-id: svn://10.0.0.236/trunk@2013 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 06:35:51 +00:00
troy
a558a8350d Added more self-test code
git-svn-id: svn://10.0.0.236/trunk@2012 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 05:29:56 +00:00
troy
b702a4ba14 Implemented RemoveRegion()
git-svn-id: svn://10.0.0.236/trunk@2010 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 05:14:14 +00:00
pinkerton
1dd9e2519e provide a valid context to HT_Launch (appr/rev sdagley).
git-svn-id: svn://10.0.0.236/trunk@2009 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 04:29:48 +00:00
brade
579c9382d7 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@2008 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 04:06:08 +00:00
rjc
bce056df6f Fix bug with tracking # of grandchildren nodes. (Discovered by pinkerton)
git-svn-id: svn://10.0.0.236/trunk@2007 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 03:43:43 +00:00
mccabe
f491c91092 Removed the escape and unescape functions, as they are now part of the
core engine.  (They've become part of the ECMA spec.)  Fix to (97681).


git-svn-id: svn://10.0.0.236/trunk@2006 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 03:25:41 +00:00
mccabe
f6b9e3b9f1 Removed the escape and unescape functions, as they are now part of the core engine. (They've become part of the ECMA spec.) Fix to (97681).
git-svn-id: svn://10.0.0.236/trunk@2005 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 03:23:07 +00:00
valeski
0d79805d7e fixing a purify UMR as reported by Kipp
git-svn-id: svn://10.0.0.236/trunk@2003 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 02:33:17 +00:00
blythe
ff93a49ca6 The preference DLLs contain COM objects. Their registry keys are set to
have relative paths.  This normally works fine, unless the current working
directory is other than that of the default program directory where the
pref DLLs are normally located.  This could happen by executing the
program from a different directory, or by saving a file to a directory
other than the default program directory.  In order to fix this, we need
to push to the program directory just prior to loading a preference
COM object, and then pop back.


git-svn-id: svn://10.0.0.236/trunk@2002 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 02:15:42 +00:00
rjc
21479d1671 Make Appletalk URLs (at:, afp:) more closely match URL format definition in CyberDog.
git-svn-id: svn://10.0.0.236/trunk@1999 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 01:13:24 +00:00
karnaze
d730d6f71d temp hack to test post submission
git-svn-id: svn://10.0.0.236/trunk@1990 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 00:10:42 +00:00
thom
38a3d3a5fc fixed compile errors for mac
git-svn-id: svn://10.0.0.236/trunk@1984 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 23:11:28 +00:00
troy
e456af6993 Changes for removing regions
git-svn-id: svn://10.0.0.236/trunk@1983 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 22:55:40 +00:00
michaelp
a1d8688193 removed rects from region apis. fleshed out windows region implementation.
git-svn-id: svn://10.0.0.236/trunk@1980 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 22:08:46 +00:00
guha
698734b1fa fix mac horkage
git-svn-id: svn://10.0.0.236/trunk@1979 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 22:07:35 +00:00
guha
c9b6a45791 more small fixes
git-svn-id: svn://10.0.0.236/trunk@1974 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 21:01:38 +00:00
rods
c491d51bea initial checkin
git-svn-id: svn://10.0.0.236/trunk@1973 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 20:39:31 +00:00
rods
bf9d48d947 removed xwin directory
git-svn-id: svn://10.0.0.236/trunk@1972 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 20:34:45 +00:00
sar
7493f80280 backing out the whitespace change and implementing a better fix for the line length problem - courtesy of Dan Veditz
git-svn-id: svn://10.0.0.236/trunk@1970 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 20:20:15 +00:00
sar
62142af8ac were up against a 4k POSIX inspired limit on command lines. I've removed white space to bring the command line under the limit. This is a temporary workaround and this needs to be repaired properly.
git-svn-id: svn://10.0.0.236/trunk@1967 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 19:59:38 +00:00
pinkerton
160a8e61dd add comment that this class is obsolete (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@1966 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 19:31:51 +00:00
pinkerton
8d35afb70d Beginnings of appearance manager support. Add AM classes to powerplant and make toolbars use either AM (through CAMSavvyBevelView) or old way if AM not present (for now, this may change). (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@1965 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 19:25:59 +00:00
pinkerton
ce8e90e141 use new HT_Launch api (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@1964 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 19:21:38 +00:00
pinkerton
6c9089dc62 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@1963 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 19:16:51 +00:00
jevering
1a4bf77fe2 Debug Robot work.
git-svn-id: svn://10.0.0.236/trunk@1962 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 19:06:59 +00:00
thom
0679c3495c added worksheet for checking out nglayout from archive
git-svn-id: svn://10.0.0.236/trunk@1961 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 18:41:40 +00:00
thom
10c14c948c files to help build the project
git-svn-id: svn://10.0.0.236/trunk@1960 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 18:37:15 +00:00
cyeh
c35d1d0ae5 update documentation to reflect mozilla as root of the source directory
git-svn-id: svn://10.0.0.236/trunk@1959 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 18:11:30 +00:00
karnaze
45388bf6ed better layout, sizing of select
git-svn-id: svn://10.0.0.236/trunk@1957 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 17:51:21 +00:00
pnunn
15db7e35fe Remove temporary fix to Makefile for alpha linux optimization build of jidctred.c in jpeg module.
-pnunn


git-svn-id: svn://10.0.0.236/trunk@1956 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 17:50:14 +00:00
cyeh
d385affc17 update documentation to reflect mozilla as root of the source diretory
git-svn-id: svn://10.0.0.236/trunk@1955 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 17:34:43 +00:00
brade
835770d74d remove file jdictred.c to fix Alpha Linux build [for pnunn]
git-svn-id: svn://10.0.0.236/trunk@1954 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 17:10:36 +00:00
pnunn
4a557ed622 jidctred.c isn't used and causes build errors on alpha linux. Removed.
git-svn-id: svn://10.0.0.236/trunk@1953 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 17:05:36 +00:00
pnunn
5d9a7159aa jidctred.c is not needed and causes build problems (optimization) on alpha linux.
git-svn-id: svn://10.0.0.236/trunk@1952 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 17:00:46 +00:00
pnunn
a9bcb781ad Take out scaling, for makefile fix for linux optimization build problems on jidctred.c.
git-svn-id: svn://10.0.0.236/trunk@1951 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 16:59:07 +00:00
vidur
138a395379 New files for XPCOM interface generation
git-svn-id: svn://10.0.0.236/trunk@1946 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 15:59:53 +00:00
troy
e7e5cf121d Work in progress on removing a region
git-svn-id: svn://10.0.0.236/trunk@1945 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 15:30:10 +00:00
cmanske
aeec6647c1 Trying to help out the build bustage
git-svn-id: svn://10.0.0.236/trunk@1936 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 06:31:08 +00:00
vidur
dd3b2d1dca Added Core IDL files
git-svn-id: svn://10.0.0.236/trunk@1928 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 05:25:17 +00:00
vidur
606efca8f6 Added XPCOM interface generation
git-svn-id: svn://10.0.0.236/trunk@1926 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 05:21:21 +00:00
davidm
fb3a49b0a8 Reverting out changes which should have landed on the branch
git-svn-id: svn://10.0.0.236/trunk@1923 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 04:06:40 +00:00
montulli
0170278262 fix commercial build
git-svn-id: svn://10.0.0.236/trunk@1913 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 03:37:48 +00:00
montulli
74188eedbb fix commercial build
git-svn-id: svn://10.0.0.236/trunk@1902 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 03:28:35 +00:00
montulli
0f73aed6b6 fix commercial build
git-svn-id: svn://10.0.0.236/trunk@1899 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 03:22:20 +00:00
troy
628ced511a Signed
git-svn-id: svn://10.0.0.236/trunk@1894 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 03:02:39 +00:00
troy
00dc35659a Initial check-in
git-svn-id: svn://10.0.0.236/trunk@1893 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 03:01:30 +00:00
troy
ed866399b2 Revamped space manager internals
git-svn-id: svn://10.0.0.236/trunk@1892 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 03:00:56 +00:00
rickg
0e475bb67c small improvement to deque-iterator interface
git-svn-id: svn://10.0.0.236/trunk@1889 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 01:51:24 +00:00
montulli
f86a872ab2 add pr includes for build
git-svn-id: svn://10.0.0.236/trunk@1887 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 01:46:14 +00:00
davidm
6245cefeb7 Updated from Nova branch to Normandy branch
git-svn-id: svn://10.0.0.236/trunk@1880 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 01:05:08 +00:00
scullin
3ef5c773eb Moving over from xp library to NSPR
git-svn-id: svn://10.0.0.236/trunk@1878 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 00:57:15 +00:00
scullin
f62d3cc534 Moving over from xp library to NSPR. Moved cvactive.h from include to
network/cnvts


git-svn-id: svn://10.0.0.236/trunk@1875 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 00:54:09 +00:00
scullin
debabe5641 Moved cvactive.h from include to network/cnvts
git-svn-id: svn://10.0.0.236/trunk@1872 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 00:38:16 +00:00
peterl
24cf967380 added pseudo-class rule matching
git-svn-id: svn://10.0.0.236/trunk@1870 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 00:09:29 +00:00
peterl
acfcdc2a6b added link state api
git-svn-id: svn://10.0.0.236/trunk@1869 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 00:08:57 +00:00
peterl
8e416a2afc added pseudo-class atoms
git-svn-id: svn://10.0.0.236/trunk@1868 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 00:08:16 +00:00
scullin
d714884f88 Moved cvactive.h from include to network/cnvts
git-svn-id: svn://10.0.0.236/trunk@1866 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 00:07:47 +00:00
kmcclusk
3383117044 Changed listbox to be a nonintegral height under Win32
git-svn-id: svn://10.0.0.236/trunk@1865 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 23:52:20 +00:00
scullin
a630772729 Moved cvactive.h from include to network/cnvts
git-svn-id: svn://10.0.0.236/trunk@1863 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 23:51:09 +00:00
thom
f0392ea33c mac build
git-svn-id: svn://10.0.0.236/trunk@1861 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 22:50:19 +00:00
thom
ddff04c33f Mac checkin
git-svn-id: svn://10.0.0.236/trunk@1860 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 22:47:24 +00:00
thom
dc472ffeb0 Commented out forward class declaration that was choking code warrior
git-svn-id: svn://10.0.0.236/trunk@1859 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 22:45:00 +00:00
thom
6800ec6d38 Mac checkin
git-svn-id: svn://10.0.0.236/trunk@1858 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 22:42:13 +00:00
michaelp
b8b80b4ecc added stub nsRegionWin.cpp
git-svn-id: svn://10.0.0.236/trunk@1857 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 22:24:20 +00:00
atotic
e98e711acf Added new access paths for planned will's netlib modularization checkin
git-svn-id: svn://10.0.0.236/trunk@1856 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 22:10:09 +00:00
toshok
57a8a16052 apparently digital unix's c compiler has a problem with the work 'readonly' (it appears to be a reserved word, as far as that compiler goes). So, I'm changing all occurences of the readonly form element attribute to read_only. Thanks to berkley@cs.wustl.edu (Berkley Shands) for the report and suggested fix.
git-svn-id: svn://10.0.0.236/trunk@1855 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:58:00 +00:00
michaelp
1fd6c53148 killed nsRegion.h. added nsIRegion.h. added SetClipRegion() to rendering context.
modified APIs that had been referring to nsRegion to use nsIRegion.


git-svn-id: svn://10.0.0.236/trunk@1852 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:46:20 +00:00
peterl
73c129482a more style debugging code
git-svn-id: svn://10.0.0.236/trunk@1850 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:12:19 +00:00
peterl
94da62428a added pseudo frame support
git-svn-id: svn://10.0.0.236/trunk@1849 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:11:08 +00:00
peterl
738c42eb75 cleaned up list output
git-svn-id: svn://10.0.0.236/trunk@1848 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:10:44 +00:00
peterl
296429509e pseudo frame support
git-svn-id: svn://10.0.0.236/trunk@1847 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:10:19 +00:00
peterl
f09aae3304 correct case of selectors
skip empty selectors
better pseudo-class support


git-svn-id: svn://10.0.0.236/trunk@1846 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:09:43 +00:00
peterl
9b35736a68 added pseudo element support
git-svn-id: svn://10.0.0.236/trunk@1845 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:07:54 +00:00
peterl
891a4eb5d1 fixed memory leak
fixed uninitialized memory read


git-svn-id: svn://10.0.0.236/trunk@1844 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:07:24 +00:00
peterl
021e20ff2c added pseudo style support
git-svn-id: svn://10.0.0.236/trunk@1843 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:06:33 +00:00
peterl
bae746d31c added pseudo style support
added debug list of context graph


git-svn-id: svn://10.0.0.236/trunk@1842 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:05:52 +00:00
peterl
98569af3d2 added debugging code
git-svn-id: svn://10.0.0.236/trunk@1841 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:04:26 +00:00
peterl
28f4537549 fixed memory leak
git-svn-id: svn://10.0.0.236/trunk@1840 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:03:55 +00:00
peterl
796739f0d7 added pseudo frame style support
git-svn-id: svn://10.0.0.236/trunk@1839 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:03:10 +00:00
peterl
80dd125ad5 added list method
git-svn-id: svn://10.0.0.236/trunk@1838 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:02:49 +00:00
nisheeth
7b46e0d71b val was not being initialized properly lo_LayoutBlockSpacer(). Fixed. Thanks
to Kathy Brade (brade@netscape.com) for catching this.


git-svn-id: svn://10.0.0.236/trunk@1835 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 20:44:34 +00:00
brade
796eba9e99 remove #ifdef XP_MAC and unify memory calls/API; reviewed sdagley; approved toshok
git-svn-id: svn://10.0.0.236/trunk@1834 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 20:42:39 +00:00
toshok
8e35d123f9 this change may look like a lot, but it's really only one line. the rest is formatting. at any rate, this fixes the problem where the underlines were drawn at places other than the proper place for links.
git-svn-id: svn://10.0.0.236/trunk@1833 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 20:42:30 +00:00
thom
e6c4ec060c *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@1828 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 19:47:30 +00:00
toshok
6a48818ffb Fix bugzilla entries 134 (javascript crashing setting text in textarea) and 346 (missing & in call to fe_convertToXmString) thanks to waider@waider.ie (Ronan Waide) for the fixes.
git-svn-id: svn://10.0.0.236/trunk@1824 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 18:28:55 +00:00
karnaze
7c7404988e fixed nsInputFile::SizeTo
git-svn-id: svn://10.0.0.236/trunk@1822 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 18:07:01 +00:00
kmcclusk
5106d81117 Added nsTooltipEvent to indicate the index of the tooltip rectangle that is being shown.
Now correctly initializes TOOLINFO structures before using them.


git-svn-id: svn://10.0.0.236/trunk@1819 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 17:55:34 +00:00
kipp
36585827fd Print out state when non-zero
git-svn-id: svn://10.0.0.236/trunk@1816 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 16:53:09 +00:00
kipp
3be7942344 Call WillReflow before reflowing children
git-svn-id: svn://10.0.0.236/trunk@1815 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 16:52:57 +00:00
kipp
8397a26e24 dump out state and next-in-flow/prev-in-flow conditionally
git-svn-id: svn://10.0.0.236/trunk@1814 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 16:52:41 +00:00
kipp
be2171d84f Implement DidReflow to pass it down to children when exiting reflow; dump out state and next-in-flow/prev-in-flow conditionally
git-svn-id: svn://10.0.0.236/trunk@1813 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 16:51:37 +00:00
kipp
09c14b650b Implement DidReflow to pass it down to children when exiting reflow
git-svn-id: svn://10.0.0.236/trunk@1812 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 16:51:17 +00:00
karnaze
c6f7ca1c13 initial support for <input type=file>, combo box use of widget init data for sizing
git-svn-id: svn://10.0.0.236/trunk@1811 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 16:39:42 +00:00
guha
c9368a0466 fix bug in xml glue reported by Henning Behme
of iX Magazine, Germany


git-svn-id: svn://10.0.0.236/trunk@1807 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-17 18:22:29 +00:00
brendan
844e2114c4 Modernize README
git-svn-id: svn://10.0.0.236/trunk@1796 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-16 00:55:35 +00:00
thom
de892d2fc0 mac project for layout
git-svn-id: svn://10.0.0.236/trunk@1784 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 22:24:27 +00:00
thom
884257d7fb mac project for htmlparser
git-svn-id: svn://10.0.0.236/trunk@1783 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 22:23:34 +00:00
thom
749a2f608a *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@1782 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 22:22:34 +00:00
thom
d94aa1f263 gfx is a graphics envionment for nglayout
git-svn-id: svn://10.0.0.236/trunk@1781 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 22:11:03 +00:00
briano
1319f7d9f3 Forgot to make sure the optimization tweak only happens when BUILD_OPT is set. Duh.
git-svn-id: svn://10.0.0.236/trunk@1763 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 19:02:42 +00:00
spence
9433ad818b ifdef bustage
git-svn-id: svn://10.0.0.236/trunk@1760 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 18:54:35 +00:00
briano
82febb3994 Minor tweak for Alpha Linux. On my machine (DECStation 200, 64MB, RH5,
2.0.30), using -O2 (the default) causes the optimizer to dump core,
leaving gcc hanging.  Using -O instead, for just jidctred.c, works fine.
This is hopefully a temporary hack.  Anyone have any long-term solutions?
Approved by pnunn@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@1759 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 18:50:35 +00:00
dario
ae00c83c64 final checkin from Judah
git-svn-id: svn://10.0.0.236/trunk@1758 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 18:49:17 +00:00
jevering
03e1d6d1b3 Dont crash (at least in debug mode) when a stream cannot be opened.
git-svn-id: svn://10.0.0.236/trunk@1756 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 18:16:39 +00:00
rods
b8e2e3379e initial
git-svn-id: svn://10.0.0.236/trunk@1753 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 17:43:42 +00:00
briano
abadd4350e 'Fixed' the warning about the supposed trigraph. a=djw
git-svn-id: svn://10.0.0.236/trunk@1751 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 17:16:49 +00:00
atotic
ccf76ff3ee Removed NSstring.* because of conflicts with raptor, renamed to macstrdlibxetras
git-svn-id: svn://10.0.0.236/trunk@1750 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 16:59:14 +00:00
atotic
1b116c75fd Renamed nsstring.[c|h] to macstdlibextras.[c|h] because of the naming conflict with Raptor (which uses ns prefix exclusively).
git-svn-id: svn://10.0.0.236/trunk@1749 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 16:54:09 +00:00
atotic
6e725d53b2 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@1748 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 16:52:14 +00:00
ramiro
1978d2055d Add support for dropping to toolbox tabs.
git-svn-id: svn://10.0.0.236/trunk@1741 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 14:32:43 +00:00
ramiro
9bc24c9ded Add XfeTabDrawRaised().
git-svn-id: svn://10.0.0.236/trunk@1740 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 14:14:17 +00:00
ramiro
c19d523901 Add XfeToolBarGetFirstItem().
git-svn-id: svn://10.0.0.236/trunk@1739 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 13:30:24 +00:00
ramiro
b7a22d4046 Use a define instead of a hard coded '-1' constant.
git-svn-id: svn://10.0.0.236/trunk@1738 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 11:37:38 +00:00
ramiro
a548db7541 Remove dead code.
git-svn-id: svn://10.0.0.236/trunk@1737 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 11:32:28 +00:00
ramiro
d793c376eb Add icon to indicator if needed.
git-svn-id: svn://10.0.0.236/trunk@1736 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 11:23:24 +00:00
ramiro
9612894836 Add a check for a NULL str before passing it to strcmp().
Otherwise, Linux and possibly other platforms with strict strcmp()
implementations will crash when the plugin list is NULL.  Thanks to
pollmann@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@1735 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 11:21:09 +00:00
ramiro
6c9a7381bc Take out row column assertion. Any manager can be a parent of this widget.
Thanks to Dirk Laessig <d.laessig@tu-bs.de>


git-svn-id: svn://10.0.0.236/trunk@1733 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 10:01:57 +00:00
ramiro
4b689e87cd Dont move dead widgets.
Thanks to Dirk Laessig <d.laessig@tu-bs.de>


git-svn-id: svn://10.0.0.236/trunk@1732 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 10:01:54 +00:00
rpotts
fff42d31c8 Added status arguments to OnStopBinding(...)
git-svn-id: svn://10.0.0.236/trunk@1731 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 09:46:51 +00:00
rpotts
a8ce21f5fc Fixed IRIX build bustage... Added status arguments to OnStopBinding(...)
git-svn-id: svn://10.0.0.236/trunk@1730 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 09:46:42 +00:00
rpotts
943c179e9a Fixed OnStopBinding(...) to take status arguments...
git-svn-id: svn://10.0.0.236/trunk@1729 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 09:42:07 +00:00
rpotts
b0007ddd7f Added exports for nsIBaseStream.h and nsIOutputStream.h
git-svn-id: svn://10.0.0.236/trunk@1728 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 09:41:21 +00:00
rpotts
51c1ae6c3f Changed to use the nsIBaseStream as a base class...
git-svn-id: svn://10.0.0.236/trunk@1727 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 09:40:43 +00:00
rpotts
5341d8930c Interface for Output Streams...
git-svn-id: svn://10.0.0.236/trunk@1726 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 09:40:02 +00:00
rpotts
68365a9056 New interface that all stream interfaces can derive from...
git-svn-id: svn://10.0.0.236/trunk@1725 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 09:39:37 +00:00
rpotts
32c056bbbd fix for the IRIX build...
git-svn-id: svn://10.0.0.236/trunk@1713 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 08:51:48 +00:00
spence
aa327e5e21 correctly set position for shack elements
git-svn-id: svn://10.0.0.236/trunk@1705 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 01:15:01 +00:00
spence
8d91fa7351 improve shack widget mgmt
git-svn-id: svn://10.0.0.236/trunk@1702 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 00:13:57 +00:00
spence
bf8dba93ab xfe shack changes
git-svn-id: svn://10.0.0.236/trunk@1696 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 23:43:26 +00:00
selmer
5864826a77 Fixed up comments in QuitNavigator re: 112622
git-svn-id: svn://10.0.0.236/trunk@1695 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 23:40:45 +00:00
selmer
349958722e Bug #112622 - change our quit to not broadcast, it was tripping up a java window
git-svn-id: svn://10.0.0.236/trunk@1693 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 23:37:57 +00:00
spider
3a7a283400 Fixes for toplevel shared support
git-svn-id: svn://10.0.0.236/trunk@1687 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 22:53:21 +00:00
spider
6ba088ac61 Allow shared objects to be built of archives on Unix
git-svn-id: svn://10.0.0.236/trunk@1685 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 22:38:21 +00:00
rickg
4e262a1fe0 WIP for push based tokenization
git-svn-id: svn://10.0.0.236/trunk@1683 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 22:19:08 +00:00
rickg
affe63fab7 minor performance tweak for deque
git-svn-id: svn://10.0.0.236/trunk@1682 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 22:18:44 +00:00
jevering
eab4da2c10 Adding visual mode.
git-svn-id: svn://10.0.0.236/trunk@1680 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 22:16:51 +00:00
jevering
e46e399e41 Beginning to add visual mode.
git-svn-id: svn://10.0.0.236/trunk@1679 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 22:16:36 +00:00
dcone
2817e8b60f More composition code, much faster now
git-svn-id: svn://10.0.0.236/trunk@1676 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 21:49:58 +00:00
jevering
18844ec299 Fixed robot walking somewhat.. needs more cleaning.
git-svn-id: svn://10.0.0.236/trunk@1675 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 21:47:33 +00:00
kmcclusk
0e678cc344 Added widget specific init structs
git-svn-id: svn://10.0.0.236/trunk@1671 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 21:34:08 +00:00
spider
64afacb3f9 Allow shared libraries to be created from multiple archives
git-svn-id: svn://10.0.0.236/trunk@1670 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 21:28:02 +00:00
spider
bc5ea70e80 Allow shared libraries to be created based on several archive libraries
git-svn-id: svn://10.0.0.236/trunk@1668 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 21:27:16 +00:00
slamm
08792f1237 Make page proxy hot spot fit the icon.
git-svn-id: svn://10.0.0.236/trunk@1663 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 20:32:03 +00:00
jevering
99360cdcf8 Hooked up debugging robot to viewer shell
git-svn-id: svn://10.0.0.236/trunk@1629 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 18:25:17 +00:00
wtc
3e14d3e49b Merged NSPRPUB_19980508_BRANCH to the main trunk. The 19980508
branch is a temporary branch for us to copy the latest changes
from our internal development tree to the public mozilla tree.


git-svn-id: svn://10.0.0.236/trunk@1624 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 18:09:56 +00:00
jevering
2ac90f63b7 Moved to .\test
git-svn-id: svn://10.0.0.236/trunk@1619 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 17:42:08 +00:00
wtc
0e5fd8fabf In Rhapsody 5.1 (DR2), the C++ compiler is named c++.
git-svn-id: svn://10.0.0.236/trunk@1608 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 17:01:14 +00:00
ramiro
1ceea7a990 TASKBAR define should be MOZ_TASKBAR.
git-svn-id: svn://10.0.0.236/trunk@1602 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 09:18:26 +00:00
kipp
da654e994c nuked
git-svn-id: svn://10.0.0.236/trunk@1600 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 02:46:28 +00:00
spider
71a19f5b61 Fixes for Unix widget so loading
git-svn-id: svn://10.0.0.236/trunk@1597 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 01:48:54 +00:00
spider
8fc73d2700 Fixes to remove ARCHIVE_ONLY and use MKSHLIB
git-svn-id: svn://10.0.0.236/trunk@1596 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 01:44:50 +00:00
jevering
b0cd070d09 used to be the RobotMain but now is the function DebugRobot to be
added to the viewer.


git-svn-id: svn://10.0.0.236/trunk@1592 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 01:08:06 +00:00
jevering
4e7c880297 Pulled the DebugRobot out into separate DLL
Moved the test code in the robot/test directory.


git-svn-id: svn://10.0.0.236/trunk@1591 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 01:05:56 +00:00
spider
936f05f547 Removing Init where passing nsIShellInstance
git-svn-id: svn://10.0.0.236/trunk@1589 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 01:02:14 +00:00
kipp
368de8a159 Fixed up code that wasn't using the nsReflowStatus constants defined in nsIFrame.h
git-svn-id: svn://10.0.0.236/trunk@1588 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:49:46 +00:00
kipp
4ba0b9750b Removed some useless code
git-svn-id: svn://10.0.0.236/trunk@1587 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:49:11 +00:00
kipp
2a9df998b9 Implement new frame methods and store the current state
git-svn-id: svn://10.0.0.236/trunk@1586 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:47:32 +00:00
kipp
5076956d30 Flipped state value of NS_FRAME_COMPLETE with NS_FRAME_NOT_COMPLETE; added new methods WillReflow and DidReflow as well as GetFrameState and SetFrameState
git-svn-id: svn://10.0.0.236/trunk@1585 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:47:05 +00:00
spider
5dd62eb2be Unix fixes
git-svn-id: svn://10.0.0.236/trunk@1584 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:39:59 +00:00
spider
c5149eee02 Fixes to get UNIX working
git-svn-id: svn://10.0.0.236/trunk@1583 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:38:37 +00:00
michaelp
5096e309be added gamma correction of images.
git-svn-id: svn://10.0.0.236/trunk@1582 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:27:38 +00:00
rjc
a640989090 HT_Launch() changes.
git-svn-id: svn://10.0.0.236/trunk@1578 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:01:43 +00:00
robinf
89fbfc375e replacing corrupted images
git-svn-id: svn://10.0.0.236/trunk@1577 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:00:17 +00:00
robinf
6285fa084e fixing text so that it tells user how to start AS right away frfom this screen.
git-svn-id: svn://10.0.0.236/trunk@1576 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 23:59:16 +00:00
peterl
b07a7ad406 added HTML CSS style sheet (for STYLE= attributes)
git-svn-id: svn://10.0.0.236/trunk@1575 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 23:43:44 +00:00
peterl
cee84ada85 added style atom
git-svn-id: svn://10.0.0.236/trunk@1574 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 23:42:40 +00:00
peterl
54b5bf170e added HTML CSS style sheet
git-svn-id: svn://10.0.0.236/trunk@1573 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 23:42:18 +00:00
peterl
27702b7e88 renamed getSupportsValue to getISupportsValue
git-svn-id: svn://10.0.0.236/trunk@1572 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 23:42:01 +00:00
mccabe
b8c778ab5e ECMA fix to (117144).
Array.prototype.sort(comparefn) was casting the result of the compare
to an int, which lost when the compare function returned (ecma-valid)
strange double values.  These now get clamped to -1, 0, 1.


git-svn-id: svn://10.0.0.236/trunk@1570 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 23:29:52 +00:00
peterl
9194035028 attribute fix for kostello
git-svn-id: svn://10.0.0.236/trunk@1568 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:41:15 +00:00
peterl
d6449ed8e9 fixed bug in parse declaration block, we now discard empty declarations
tweaked position


git-svn-id: svn://10.0.0.236/trunk@1567 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:40:54 +00:00
peterl
ae5af73b56 fixed position
git-svn-id: svn://10.0.0.236/trunk@1566 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:40:17 +00:00
peterl
4b50ddb390 remove spacing cache invalidate
git-svn-id: svn://10.0.0.236/trunk@1565 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:39:41 +00:00
peterl
6ed543f432 connected spacing calculations to frame
git-svn-id: svn://10.0.0.236/trunk@1564 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:38:54 +00:00
peterl
8a4b477f37 fixed style position values
git-svn-id: svn://10.0.0.236/trunk@1563 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:38:37 +00:00
peterl
47b492ce9f added style size calculation methods
made get style data const


git-svn-id: svn://10.0.0.236/trunk@1562 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:38:09 +00:00
peterl
cdcb865f7e removed cache invalidation methods
git-svn-id: svn://10.0.0.236/trunk@1561 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:35:30 +00:00
spence
264a526b7a fix ifdef bustage
git-svn-id: svn://10.0.0.236/trunk@1559 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:35:20 +00:00
mccabe
a603cb7869 Warning fix - added an (int16) cast to quiet a Windows warning.
git-svn-id: svn://10.0.0.236/trunk@1555 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:13:30 +00:00
donm
aeaccc2e80 fixed unix build bustage. LO_BUILTIN requires #define SHACK and lo_ele.h
git-svn-id: svn://10.0.0.236/trunk@1554 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 21:59:20 +00:00
jevering
76d0c4b9da Fixed compilation error by adding appropriate new nsIHTMLContentSink
members to the RobotSink class.


git-svn-id: svn://10.0.0.236/trunk@1551 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 21:45:24 +00:00
gagan
0c234e4c55 progress...
git-svn-id: svn://10.0.0.236/trunk@1550 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 21:38:42 +00:00
pinkerton
5e9b3cc7e3 Removed mention of central personal toolbar manager since each toolbar now talks to HT. (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@1548 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 21:25:39 +00:00
pinkerton
500e90b4e5 removed CPersonalToolbarTable.cp which is no longer needed (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@1547 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 21:25:12 +00:00
pinkerton
00123bba4f rewrite of personal toolbar not to use centralized manager class and talk directly to HT like the selector pane (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@1546 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 21:24:48 +00:00
pinkerton
a17a03f9d8 Fix crash during "view source" where we were double-deleting the urlStruct. (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@1545 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 21:22:56 +00:00
djw
e836bb2f3b Added -gtszapsymbol and -gtsnozapsymbol for manually overriding the
implicit rules. See gtscc -help.


git-svn-id: svn://10.0.0.236/trunk@1538 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 20:49:10 +00:00
sar
340141d12c add util to the include path
git-svn-id: svn://10.0.0.236/trunk@1535 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 20:33:32 +00:00
sar
52755a9a58 adding network to the include paths
git-svn-id: svn://10.0.0.236/trunk@1534 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 20:29:38 +00:00
sar
233a15e916 add softupdt to list of includes
git-svn-id: svn://10.0.0.236/trunk@1530 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 19:39:53 +00:00
peterl
3bf3d61497 fixed pow problem
git-svn-id: svn://10.0.0.236/trunk@1527 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 19:01:55 +00:00
michaelp
a4c9a27432 fixed compiler overload warning on tinderbox.
git-svn-id: svn://10.0.0.236/trunk@1525 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 18:54:18 +00:00
valeski
10660f6423 added cookie filter pref name to the default list
git-svn-id: svn://10.0.0.236/trunk@1524 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 18:40:30 +00:00
sar
00b03cbd6c add mktrace.h to the export lists. It's required by softupdt
git-svn-id: svn://10.0.0.236/trunk@1523 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 18:39:52 +00:00
michaelp
7225f63069 added gamma correction methods to the device context. the windows rendering context now
gamma corrects colors. fixed tablecellframe to call the right nsStyleCoord constructor.


git-svn-id: svn://10.0.0.236/trunk@1521 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 18:15:06 +00:00
jevering
15426a4ead Fixed build problems.
git-svn-id: svn://10.0.0.236/trunk@1519 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 17:55:04 +00:00
sar
58e8c8d316 adding jtools to the include path
git-svn-id: svn://10.0.0.236/trunk@1518 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 17:53:28 +00:00
karnaze
bf8234dd48 more select/option support
git-svn-id: svn://10.0.0.236/trunk@1517 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 17:43:35 +00:00
sar
be8a870be8 add jtools to the include paths
git-svn-id: svn://10.0.0.236/trunk@1516 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 17:33:42 +00:00
troy
7e662b38e2 Changes to space manager implementation.
git-svn-id: svn://10.0.0.236/trunk@1514 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 16:22:44 +00:00
dcone
420248debb speed up of alpha, some small fixes, inter checkin
git-svn-id: svn://10.0.0.236/trunk@1513 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 14:28:16 +00:00
mcafee
a4465638db Using relative paths for compilers & libtool
git-svn-id: svn://10.0.0.236/trunk@1512 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 07:59:54 +00:00
mcafee
3487e45d9d DR2 moved the compilers
git-svn-id: svn://10.0.0.236/trunk@1511 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 06:40:49 +00:00
sar
dcdbb6ae26 add mkutils.h since it wasn't being exported, and it's needed. Also make a formatting change for EXPORTS for readability
git-svn-id: svn://10.0.0.236/trunk@1510 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 05:48:50 +00:00
mcafee
13838a678d Adding support for NEXTSTEP. Fixing broken/missing getcwd() command, falls back to getwd(). a=briano
git-svn-id: svn://10.0.0.236/trunk@1509 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 04:02:37 +00:00
mcafee
25f8e0035c getcwd() doesn't malloc properly, falling back to getwd().
git-svn-id: svn://10.0.0.236/trunk@1508 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 04:00:15 +00:00
mcafee
6eda67228d Attempt to piggy-back build off of the RHAPSODY ifdef. switching to libtool. a=briano
git-svn-id: svn://10.0.0.236/trunk@1507 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 03:58:14 +00:00
michaelp
1f91c084c2 killed temp printf()s.
git-svn-id: svn://10.0.0.236/trunk@1506 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 03:40:01 +00:00
michaelp
808a040fee made form elements scroll smoothly. added apis to widgets to support this.
git-svn-id: svn://10.0.0.236/trunk@1505 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 03:39:08 +00:00
spider
dad0f00a2a Fixes for Private Modules Headers. Allow 'this' modules private headers
to be included on source PATH


git-svn-id: svn://10.0.0.236/trunk@1504 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:44:47 +00:00
kipp
e7b5397b7e Fixed coord to be setup properly
git-svn-id: svn://10.0.0.236/trunk@1503 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:33:34 +00:00
kipp
c10b69d3ba Fixed ptr compilation bug
git-svn-id: svn://10.0.0.236/trunk@1502 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:13:09 +00:00
kipp
40fbd986a8 Removed unused variable
git-svn-id: svn://10.0.0.236/trunk@1501 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:12:54 +00:00
kipp
dc0ac433ad Removed unused variable; fixed assingment into error return status
git-svn-id: svn://10.0.0.236/trunk@1500 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:12:40 +00:00
kipp
a6a43e031e Cast lineReflowStatus before comparing for negative values!; eliminated unused variables
git-svn-id: svn://10.0.0.236/trunk@1499 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:11:51 +00:00
kipp
7f9fab77fd Eliminate anonymous struct (and useless bitfields) to fix irix compilation problem
git-svn-id: svn://10.0.0.236/trunk@1498 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:10:35 +00:00
kipp
e695e3478d Export nsIFrameImageLoader too
git-svn-id: svn://10.0.0.236/trunk@1497 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:10:06 +00:00
kipp
77740b1433 Fixed vertical alignment bug: lines that contained bottom aligned objects would add in too much height
git-svn-id: svn://10.0.0.236/trunk@1496 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:53:37 +00:00
kipp
4a26cb720b Removed dead code
git-svn-id: svn://10.0.0.236/trunk@1495 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:52:45 +00:00
kipp
5335baf069 Use code in nsHTMLImageLoader to share code and fix image bugs in image buttons; removed some tabs in the source; get image border handled right
git-svn-id: svn://10.0.0.236/trunk@1494 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:52:33 +00:00
kipp
c8feee6b6b Removed special code for mWidth/mHeight handling
git-svn-id: svn://10.0.0.236/trunk@1493 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:51:46 +00:00
kipp
8098bd43a8 Removed mWidth and mHeight; use base class handling of that now
git-svn-id: svn://10.0.0.236/trunk@1492 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:51:30 +00:00
kipp
df00cff097 Removed IMG rule
git-svn-id: svn://10.0.0.236/trunk@1491 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:51:09 +00:00
kipp
8b2fdfef7c Make image borders work when html attribute is defined
git-svn-id: svn://10.0.0.236/trunk@1490 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:50:54 +00:00
kipp
62a3217422 Use nsHTMLImageLoader to share code
git-svn-id: svn://10.0.0.236/trunk@1489 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:50:28 +00:00
kipp
6e90ba8b92 Moved margin code into line layout
git-svn-id: svn://10.0.0.236/trunk@1488 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:49:40 +00:00
kipp
49beda22be Removed left/right margin calc as caller is doing it
git-svn-id: svn://10.0.0.236/trunk@1487 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:48:37 +00:00
kipp
501a8c4114 new
git-svn-id: svn://10.0.0.236/trunk@1486 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:48:11 +00:00
kipp
9f0294cdd7 Added methods to invalidate the caches
git-svn-id: svn://10.0.0.236/trunk@1485 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:47:50 +00:00
scullin
b2f44a3b36 Release mode fix.
git-svn-id: svn://10.0.0.236/trunk@1484 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:32:59 +00:00
spence
eec4cff8d3 shack layout element
git-svn-id: svn://10.0.0.236/trunk@1483 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:22:14 +00:00
spider
095c6349c5 fixes for archive rules
git-svn-id: svn://10.0.0.236/trunk@1482 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:15:00 +00:00
spence
6cd3efd65e handle relayout of shack elements
git-svn-id: svn://10.0.0.236/trunk@1481 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:04:58 +00:00
troy
43a82bdef4 Space manager API change
git-svn-id: svn://10.0.0.236/trunk@1480 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:02:47 +00:00
troy
eb154aa999 Changed API
git-svn-id: svn://10.0.0.236/trunk@1479 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:02:14 +00:00
troy
5d0ec492ca Added new member functions
git-svn-id: svn://10.0.0.236/trunk@1478 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:02:02 +00:00
peterl
1fe962d622 sync to nsStyleSpacing api changes
git-svn-id: svn://10.0.0.236/trunk@1477 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:58:14 +00:00
peterl
ecfff23b8f added proper support for border padding & margin
better support for clip


git-svn-id: svn://10.0.0.236/trunk@1476 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:57:52 +00:00
donm
1bcbbcd707 Export mkutils.h and cache header files.
git-svn-id: svn://10.0.0.236/trunk@1475 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:57:27 +00:00
peterl
59ffeb9079 added clip inherit support
added line-height number support


git-svn-id: svn://10.0.0.236/trunk@1474 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:56:18 +00:00
peterl
f9ecfae273 sync to new spacing apis
git-svn-id: svn://10.0.0.236/trunk@1471 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:28:01 +00:00
peterl
e6ff058617 fixed clip rect handling (auto side support)
git-svn-id: svn://10.0.0.236/trunk@1470 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:26:59 +00:00
peterl
00c2c6f37f added table enums
added clip flags


git-svn-id: svn://10.0.0.236/trunk@1469 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:25:31 +00:00
peterl
93da6a385a added factor unit
added nsStyleSides


git-svn-id: svn://10.0.0.236/trunk@1468 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:24:12 +00:00
peterl
01cc78cc80 merged nsStyleBorder & nsStyleSpacing
changed spacing data to use nsStyleSides
removed virtual methods
added nsStyleTable


git-svn-id: svn://10.0.0.236/trunk@1467 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:23:13 +00:00
peterl
e5373a0d6f Merged nsStyleBorder & nsStyleSpacing
changed spacing values o use nsStyleSides
removed virtual methods


git-svn-id: svn://10.0.0.236/trunk@1466 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:21:03 +00:00
peterl
b7d34bef34 added factor unit type
added nsStyleSides


git-svn-id: svn://10.0.0.236/trunk@1465 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:18:42 +00:00
spence
758cb4eb72 shack elements are tabable
git-svn-id: svn://10.0.0.236/trunk@1464 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 21:57:20 +00:00
spence
0e49124d3b pick up src param for shack elements
git-svn-id: svn://10.0.0.236/trunk@1460 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 21:19:19 +00:00
spence
c5a52db205 doc info relfects shack elements
git-svn-id: svn://10.0.0.236/trunk@1459 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 21:18:46 +00:00
dario
14344a215e idl compiler
git-svn-id: svn://10.0.0.236/trunk@1458 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 20:30:45 +00:00
robinf
9a69c9479f replacing corrupted file; adding plaecholder image for netcenter xscreen
git-svn-id: svn://10.0.0.236/trunk@1457 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 19:38:47 +00:00
gagan
c4789590cd Fixes the Linux build problems. Thanks Ramiro.
git-svn-id: svn://10.0.0.236/trunk@1456 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 19:21:59 +00:00
spence
056043dc1b changes for shack layout element
git-svn-id: svn://10.0.0.236/trunk@1455 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 19:16:46 +00:00
spence
f7128b6ef7 changes for shack layout element
git-svn-id: svn://10.0.0.236/trunk@1454 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 19:10:35 +00:00
spence
b4790ac48d changes for shack layout element
git-svn-id: svn://10.0.0.236/trunk@1453 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 19:03:13 +00:00
spence
0c7af8c730 changes for shack layout element
git-svn-id: svn://10.0.0.236/trunk@1452 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:55:51 +00:00
spence
ef8e866fbf changes for shack layout element
git-svn-id: svn://10.0.0.236/trunk@1451 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:42:16 +00:00
spence
0b01b981e2 changes for shack layout element
git-svn-id: svn://10.0.0.236/trunk@1450 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:33:45 +00:00
karnaze
db91979176 textarea sizing improvement; use nsCSSLayout::GetStyleSize; fix combo box SizeTo
git-svn-id: svn://10.0.0.236/trunk@1449 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:28:58 +00:00
spence
5a9fb075fa changes for shack layout element
git-svn-id: svn://10.0.0.236/trunk@1448 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:25:24 +00:00
spence
718cd7523e new shack layout element
git-svn-id: svn://10.0.0.236/trunk@1447 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:22:49 +00:00
cyeh
654f82a5f5 add mozilla/lib/libnet back to MozillaSourceCommon for NORMANDY_BRANCH
git-svn-id: svn://10.0.0.236/trunk@1446 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:03:37 +00:00
cyeh
d86f4cda50 removing old netlib implementation from tip. these files have been moved
to mozilla/network.  refer to those files.


git-svn-id: svn://10.0.0.236/trunk@1445 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:03:30 +00:00
brade
9991020037 don't allow image tags to be created without an image source
git-svn-id: svn://10.0.0.236/trunk@1444 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 17:12:02 +00:00
troy
009e2343c6 Removed some temporary code that isn't needed now that content changed
reflow commands aren't generated for the body


git-svn-id: svn://10.0.0.236/trunk@1443 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 04:46:27 +00:00
troy
a1cde81868 Changed enum to conform with coding standards
git-svn-id: svn://10.0.0.236/trunk@1442 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 04:38:23 +00:00
troy
5a839584c7 Change to nsIFrame API
git-svn-id: svn://10.0.0.236/trunk@1441 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 04:17:56 +00:00
montulli
3d17637b71 add <signal.h>
git-svn-id: svn://10.0.0.236/trunk@1440 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 02:28:20 +00:00
selmer
68b64888ae fix bug#116315: don't pass null char into JRI_NewPlatformString
git-svn-id: svn://10.0.0.236/trunk@1439 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 02:03:33 +00:00
kipp
f810b7168d Release image loader during delete frame to break so that images shutdown properly
git-svn-id: svn://10.0.0.236/trunk@1438 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:32:30 +00:00
kipp
7653fb2f79 Added container methods for the singly contained frame
git-svn-id: svn://10.0.0.236/trunk@1437 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:31:22 +00:00
kipp
aeca5d3fb6 Init band data so that zero is returned on failure
git-svn-id: svn://10.0.0.236/trunk@1436 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:30:57 +00:00
kipp
cf3c34edc3 Re-installed the temporary content appended hack
git-svn-id: svn://10.0.0.236/trunk@1435 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:30:40 +00:00
kipp
9da44d2113 Pass on stop image load to the image loader too so that circular references can be broken and memory can get released properly
git-svn-id: svn://10.0.0.236/trunk@1434 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:30:15 +00:00
kipp
d32ff2fb28 Removed unused variables and methods
git-svn-id: svn://10.0.0.236/trunk@1433 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:29:43 +00:00
kipp
41b2b93fa7 Implement stop and abort; stop properly breaks circular link to image request
git-svn-id: svn://10.0.0.236/trunk@1432 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:29:29 +00:00
kipp
6bb8246384 Declare stop and abort methods
git-svn-id: svn://10.0.0.236/trunk@1431 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:28:51 +00:00
kipp
f94faae66b Added stop and abort methods
git-svn-id: svn://10.0.0.236/trunk@1430 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:28:31 +00:00
rickg
e8f3b719cd made comments more complete
git-svn-id: svn://10.0.0.236/trunk@1429 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:11:50 +00:00
rickg
c9a40cc270 updated comments
git-svn-id: svn://10.0.0.236/trunk@1428 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 00:59:32 +00:00
montulli
d18d2837c3 add <signal.h>
git-svn-id: svn://10.0.0.236/trunk@1427 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 00:42:47 +00:00
kipp
f1960f5125 Make url's absolute per the css spec
git-svn-id: svn://10.0.0.236/trunk@1426 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 23:28:47 +00:00
kipp
34091b102f Skip over whitespace properly after url string (it's optional whitespace not mandatory whitespace)
git-svn-id: svn://10.0.0.236/trunk@1425 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 23:28:22 +00:00
rickg
d279bd9b90 fixed numeric entities
git-svn-id: svn://10.0.0.236/trunk@1424 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 23:28:01 +00:00
rickg
08ea7302b4 added IsDigit to string
git-svn-id: svn://10.0.0.236/trunk@1423 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 23:27:35 +00:00
atotic
597bf87774 File case weirdness
git-svn-id: svn://10.0.0.236/trunk@1420 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 23:04:36 +00:00
kipp
ee0932b472 Declare nsIView just in case somebody else doesn't
git-svn-id: svn://10.0.0.236/trunk@1419 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:58:44 +00:00
kipp
29014e986a Use new image loading API's
git-svn-id: svn://10.0.0.236/trunk@1418 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:58:20 +00:00
kipp
aeb7f4e124 Revised image loading API's
git-svn-id: svn://10.0.0.236/trunk@1417 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:57:05 +00:00
kipp
d28087541a Removed image loading code (factored out into nsFrameImageLoader); revised API for image loading
git-svn-id: svn://10.0.0.236/trunk@1416 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:56:58 +00:00
kipp
89aaae1f2d Added nsFrameImageLoader
git-svn-id: svn://10.0.0.236/trunk@1415 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:56:23 +00:00
kipp
07232aab59 Export nsIFrameImageLoader.h
git-svn-id: svn://10.0.0.236/trunk@1414 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:55:54 +00:00
kipp
164321faf9 new
git-svn-id: svn://10.0.0.236/trunk@1413 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:52:40 +00:00
montulli
b1069775d3 add exports to layout and libstyle
git-svn-id: svn://10.0.0.236/trunk@1408 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:11:39 +00:00
montulli
cac7dcf982 add network
git-svn-id: svn://10.0.0.236/trunk@1407 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:09:40 +00:00
montulli
527d9f61ef use mozilla/network now instead of lib/libnet
git-svn-id: svn://10.0.0.236/trunk@1406 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:09:10 +00:00
montulli
9fa204a081 use network dir instead of libnet
git-svn-id: svn://10.0.0.236/trunk@1404 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:07:07 +00:00
montulli
57612be151 add mkgeturl.h
git-svn-id: svn://10.0.0.236/trunk@1403 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:04:57 +00:00
montulli
02058ba996 remove libnet
git-svn-id: svn://10.0.0.236/trunk@1402 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:04:01 +00:00
montulli
d83f821242 add network directory
git-svn-id: svn://10.0.0.236/trunk@1401 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:03:25 +00:00
montulli
4285557751 changes for the new mozilla/network directory.
git-svn-id: svn://10.0.0.236/trunk@1399 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:02:46 +00:00
atotic
fb1313cc77 Netlib modularity changes. montulli's your point man
git-svn-id: svn://10.0.0.236/trunk@1398 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:02:43 +00:00
cyeh
8c0ccec706 new netlib in it's new home and modular too.
git-svn-id: svn://10.0.0.236/trunk@1397 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:01:18 +00:00
selmer
791cab04d8 removed extraneous JAVA_DESTPATH definition
git-svn-id: svn://10.0.0.236/trunk@1396 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 21:59:36 +00:00
montulli
b8f16d0f85 add #mkgeturl.h
git-svn-id: svn://10.0.0.236/trunk@1395 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 21:41:26 +00:00
troy
9a3b2e21ef Changed table code to pay attention to the ALIGN attribute
git-svn-id: svn://10.0.0.236/trunk@1394 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 21:31:12 +00:00
troy
70f7b2d8cd Fixed build bustage
git-svn-id: svn://10.0.0.236/trunk@1393 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 21:03:50 +00:00
rpotts
be5c685363 Added support for receiving OnProgress(...) notifications...
git-svn-id: svn://10.0.0.236/trunk@1392 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 20:30:35 +00:00
spence
c603cea888 new layout element for shack objects
git-svn-id: svn://10.0.0.236/trunk@1389 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 19:54:46 +00:00
spider
e97259e58a Final UNIX fixes
git-svn-id: svn://10.0.0.236/trunk@1388 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 19:45:12 +00:00
spider
c8ee4c7bf3 windows fixes
git-svn-id: svn://10.0.0.236/trunk@1387 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 19:34:25 +00:00
spider
f49bd7b89a More UNIX Lib fixes
git-svn-id: svn://10.0.0.236/trunk@1386 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 19:33:23 +00:00
spider
f172c6f0f1 Platform Independe EXTRA_LIBS fixes
git-svn-id: svn://10.0.0.236/trunk@1385 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 19:06:15 +00:00
troy
66c14fdbb1 Wrapped VerifyLines() inside of a NS_DEBUG #define
git-svn-id: svn://10.0.0.236/trunk@1384 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 18:54:15 +00:00
troy
b83e1077b0 More incremental reflow work.
git-svn-id: svn://10.0.0.236/trunk@1383 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 18:38:10 +00:00
spider
750378f65c Add gconfig to build_trex
git-svn-id: svn://10.0.0.236/trunk@1382 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 16:50:16 +00:00
ftang
a989b3e678 Add Armenian XFE support. thanks for Hovik Melikyan from hovik@undp.am
git-svn-id: svn://10.0.0.236/trunk@1381 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 16:49:30 +00:00
spider
8e877f008d Refer to nglayout now
git-svn-id: svn://10.0.0.236/trunk@1380 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 16:32:14 +00:00
spider
7918f08d9d Actually refer to nglayout properly now
git-svn-id: svn://10.0.0.236/trunk@1379 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 16:27:28 +00:00
spider
17aee6decd Refer to nglayout.mk now
git-svn-id: svn://10.0.0.236/trunk@1378 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 16:24:06 +00:00
jwz
dd5ae078e5 red letter edition
git-svn-id: svn://10.0.0.236/trunk@1377 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-10 18:54:17 +00:00
mccabe
afa28896ca (Not part of the mozilla build process.)
Added support in the javascript shell for the #! unix script hack; if
the first line read by the shell (from a file, not interactive) starts
with #, the line is treated as a comment.

This should make
#!/usr/bin/js work...


git-svn-id: svn://10.0.0.236/trunk@1376 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 05:54:12 +00:00
troy
1b3c6fc947 Work in progress on block incremental reflow
git-svn-id: svn://10.0.0.236/trunk@1375 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:52:29 +00:00
kipp
5cb5cb49e5 Use new LoadImage API
git-svn-id: svn://10.0.0.236/trunk@1374 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:23:54 +00:00
kipp
7331ec5631 Removed uneeded code; added a reminder comment
git-svn-id: svn://10.0.0.236/trunk@1373 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:23:41 +00:00
kipp
ea27670082 Cheesy implementation of the reflow lock and content appended
git-svn-id: svn://10.0.0.236/trunk@1372 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:22:41 +00:00
kipp
7dc9190770 Updated to new API
git-svn-id: svn://10.0.0.236/trunk@1371 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:22:14 +00:00
kipp
cdf6691a9d Reworked load image support and provided content changed calls to the shell when image sizes arrive
git-svn-id: svn://10.0.0.236/trunk@1370 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:22:01 +00:00
kipp
522bd8f35e Added enter/exit reflow lock methods
git-svn-id: svn://10.0.0.236/trunk@1369 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:21:34 +00:00
kipp
266494fc93 Revised LoadImage API to use NS_IMETHOD and provide alot more information about the load
git-svn-id: svn://10.0.0.236/trunk@1368 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:21:19 +00:00
kipp
19ce06fe2f Wrap document loads with reflow lock calls
git-svn-id: svn://10.0.0.236/trunk@1367 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:20:54 +00:00
kipp
cf55be8188 Remove useless header file
git-svn-id: svn://10.0.0.236/trunk@1366 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:20:37 +00:00
kipp
23bcab2333 Removed unused class decl
git-svn-id: svn://10.0.0.236/trunk@1365 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:20:24 +00:00
racham
4489bdc493 Path for compare.js changed
git-svn-id: svn://10.0.0.236/trunk@1364 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 02:16:33 +00:00
rickg
cb2d8b8eb8 MUCH better support for auto-closing tags.
git-svn-id: svn://10.0.0.236/trunk@1363 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 00:42:33 +00:00
scullin
e794b4507e Fix NSPR related breakage.
git-svn-id: svn://10.0.0.236/trunk@1360 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 23:56:08 +00:00
montulli
17459e838c update include path
git-svn-id: svn://10.0.0.236/trunk@1358 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 23:40:53 +00:00
karnaze
8400595193 select/option
git-svn-id: svn://10.0.0.236/trunk@1355 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 23:08:43 +00:00
wtc
8a008e57b5 Added new test files.
git-svn-id: svn://10.0.0.236/trunk@1352 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 23:07:27 +00:00
rickg
683ffd3d1f changed OPTION tag from leaf to container node
git-svn-id: svn://10.0.0.236/trunk@1350 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 22:36:15 +00:00
atotic
fe9c67a957 More build changes, added some missing files
git-svn-id: svn://10.0.0.236/trunk@1349 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 21:42:48 +00:00
atotic
573139f59c #ifdef NET_mail/news functionality with MOZ_MAIL_NEWS.
git-svn-id: svn://10.0.0.236/trunk@1348 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 21:42:26 +00:00
scullin
42f328fc71 Fix depth, and add client directory
git-svn-id: svn://10.0.0.236/trunk@1347 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 21:27:46 +00:00
hyatt
be768f6a5b Making the Aurora tree respond to the divider properties.
git-svn-id: svn://10.0.0.236/trunk@1346 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 21:23:47 +00:00
kipp
9003aba3c1 Fixed irix bustage
git-svn-id: svn://10.0.0.236/trunk@1345 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 21:12:12 +00:00
atotic
ecc83b402a More build changes (renaming the targets)
git-svn-id: svn://10.0.0.236/trunk@1344 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 21:03:19 +00:00
timm
e93ed99ecf fix path routines to append path delimiter
git-svn-id: svn://10.0.0.236/trunk@1343 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 20:20:19 +00:00
timm
8cdfb14c42 fix getFolder to return windows style path
git-svn-id: svn://10.0.0.236/trunk@1342 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 20:19:43 +00:00
kipp
31d88fddf9 nuked
git-svn-id: svn://10.0.0.236/trunk@1341 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 20:19:18 +00:00
kipp
30a587c651 updated
git-svn-id: svn://10.0.0.236/trunk@1340 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 20:18:36 +00:00
kipp
384524a3d9 new
git-svn-id: svn://10.0.0.236/trunk@1339 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 20:18:35 +00:00
karnaze
ab454da4fd more support for textarea, select/option in content sink
git-svn-id: svn://10.0.0.236/trunk@1338 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 20:18:06 +00:00
kipp
053274d5b7 Removed more raptor references
git-svn-id: svn://10.0.0.236/trunk@1337 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 20:10:36 +00:00
kipp
171bc76637 new
git-svn-id: svn://10.0.0.236/trunk@1336 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:58:01 +00:00
kipp
c56ba929aa Fixed pseudo-frame body behavior
git-svn-id: svn://10.0.0.236/trunk@1335 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:43:25 +00:00
timm
b7351b8392 dial string should be in status text, not progress text
git-svn-id: svn://10.0.0.236/trunk@1334 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:28:49 +00:00
timm
a45c483ad7 remove copy of compare.js, since we dont want it in the jar
git-svn-id: svn://10.0.0.236/trunk@1333 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:28:04 +00:00
timm
2156c7d5d7 remove IDs and ARCHIVE tags
git-svn-id: svn://10.0.0.236/trunk@1332 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:27:40 +00:00
timm
4e130f7162 remove IPs and put reggie.netscape.com back
git-svn-id: svn://10.0.0.236/trunk@1331 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:26:43 +00:00
timm
3f3c31c971 erase compare.js as part of make if it exists in this dir
git-svn-id: svn://10.0.0.236/trunk@1330 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:26:11 +00:00
timm
9aa0247b63 added debugging for set1StepMode
git-svn-id: svn://10.0.0.236/trunk@1329 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:25:47 +00:00
timm
b5ac9e9ddf added debugging info for MetadataMode and LocalMode
git-svn-id: svn://10.0.0.236/trunk@1328 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:24:49 +00:00
radha
a58f0b6a8a Checkin for fix 104761. If the target window has a context associated with it, use it.
Fix was originally provided by toshok.


git-svn-id: svn://10.0.0.236/trunk@1327 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:24:28 +00:00
timm
ccb1fc9ade add ASW_DEVMODE
git-svn-id: svn://10.0.0.236/trunk@1326 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:24:15 +00:00
ftang
cb7fffc2df Add Armenain support. Approvaed by WinFE owner, Thanks Hovik Melikyan <hovik@undp.am>
from the net


git-svn-id: svn://10.0.0.236/trunk@1323 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:23:48 +00:00
wtc
cbcb32a7d6 Use cc -bundle to build loadable modules on Rhapsody. Thanks to
Matt Watson <mwatson@apple.com> for the patch.


git-svn-id: svn://10.0.0.236/trunk@1322 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:52:44 +00:00
cmanske
0d6028508b Fixed another memory bug in Composer
git-svn-id: svn://10.0.0.236/trunk@1321 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:51:58 +00:00
wtc
dad061f564 The type of the third argument for accept, recvfrom, getsockname, and
getpeername is 'int', not 'size_t'.


git-svn-id: svn://10.0.0.236/trunk@1320 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:50:15 +00:00
wtc
6b251dc0ae Fixed comment.
git-svn-id: svn://10.0.0.236/trunk@1319 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:48:46 +00:00
wtc
06c4a3d9ee Merged patches from Matt Watson <mwatson@apple.com> to make loadable
modules work on Rhapsody.  Still have a few kinks to iron out.


git-svn-id: svn://10.0.0.236/trunk@1318 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:43:58 +00:00
wtc
682e147ebf Matt Watson <mwatson@apple.com> pointed out that it is not safe to
redefine FD_SETSIZE on Rhapsody.


git-svn-id: svn://10.0.0.236/trunk@1317 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:41:51 +00:00
wtc
7e8f7154f4 Added a few function declarations and header inclusions to get rid of
compiler warnings.


git-svn-id: svn://10.0.0.236/trunk@1316 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:37:38 +00:00
wtc
6c9253e597 Merged Rhapsody patches contributed by Matt Watson <mwatson@apple.com>.
git-svn-id: svn://10.0.0.236/trunk@1315 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:35:19 +00:00
rods
9b04324111 added major selection method and data members
git-svn-id: svn://10.0.0.236/trunk@1314 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:33:42 +00:00
wtc
91ebeaa99b Merged patches contributed by Matt Watson <mwatson@apple.com>.
git-svn-id: svn://10.0.0.236/trunk@1313 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:32:30 +00:00
michaelp
5f4ea5859a when switching documents, the scrollbars are reset.
git-svn-id: svn://10.0.0.236/trunk@1312 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 17:50:43 +00:00
atotic
dddb703cfd Added an include of shist.h
git-svn-id: svn://10.0.0.236/trunk@1311 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 17:27:49 +00:00
kipp
9748b6eb2b Factored out sizing into ComputeDesiredSize and fixed the size to reflect the size of the content
git-svn-id: svn://10.0.0.236/trunk@1310 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 17:23:06 +00:00
atotic
612c02f3da First Checked In.
git-svn-id: svn://10.0.0.236/trunk@1309 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 17:13:01 +00:00
troy
2e789484b5 Changed container related functions to return NS_ERROR_NOT_IMPLEMENTED
instead of NS_OK


git-svn-id: svn://10.0.0.236/trunk@1308 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 17:02:35 +00:00
troy
a447ffcc90 Moved ContentChanged() logic to nsFrame since it was completely generic and
serves as reasonable default behavior for all frames


git-svn-id: svn://10.0.0.236/trunk@1304 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 16:34:27 +00:00
troy
f8e3f6b0a7 Changed ContentChanged() to generate a reflow command
git-svn-id: svn://10.0.0.236/trunk@1303 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 16:33:07 +00:00
pinkerton
d173dd8ecd free memory allocated (silently!) by GetURLFromFileSpec(). (appr brade).
git-svn-id: svn://10.0.0.236/trunk@1302 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 15:35:42 +00:00
pinkerton
dd2b3e15e2 added "rdf" to access paths so composer can understand drops from HT (appr brade).
git-svn-id: svn://10.0.0.236/trunk@1301 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 15:34:44 +00:00
pinkerton
d9cc5aa3b0 New drag and drop architecture using CURLDragMixin subclasses. Fixed bug where dropping text clipping would drop at old insertion point, not at mouse location. (appr brade).
git-svn-id: svn://10.0.0.236/trunk@1300 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 15:34:07 +00:00
rods
80849d47b2 added Selection methods to nsICodment, nsDocument, nsiSplittableFRame
git-svn-id: svn://10.0.0.236/trunk@1299 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 15:07:41 +00:00
rods
495bdfe1d4 added Edit menu
git-svn-id: svn://10.0.0.236/trunk@1298 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 15:06:41 +00:00
dcone
5b5fdcadb6 put back in optimize
git-svn-id: svn://10.0.0.236/trunk@1297 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 15:05:27 +00:00
rods
8124074533 added mouseEvent struct
git-svn-id: svn://10.0.0.236/trunk@1296 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 14:54:09 +00:00
dcone
332f4c19f3 Some more alpha blending, fixed some bugs and the test app now works
git-svn-id: svn://10.0.0.236/trunk@1295 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 14:24:53 +00:00
mcafee
013d1299c8 Enable dynamic library creation. a,r=briano
git-svn-id: svn://10.0.0.236/trunk@1294 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 08:01:10 +00:00
sdagley
07644fd855 Merging current fix for #86787 and #96213 from 4.x tree. When creating a new window check chrome to see if it should be created zoomable rather than changing it afterwards. Works around WDEF change in MacOS 8 that breaks old hack that would toggle zoom widget after creating window.
git-svn-id: svn://10.0.0.236/trunk@1293 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 06:08:55 +00:00
rjc
b1c2f2652a Small fix... use '\0' instead of NULL.
git-svn-id: svn://10.0.0.236/trunk@1292 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 06:01:30 +00:00
rjc
aacb6b7891 Move all hardcoded RDF strings into allxpstr.
git-svn-id: svn://10.0.0.236/trunk@1291 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 05:48:44 +00:00
rjc
7483ba47fe Move all hardcoded strings into allxpstr. Bug fix from tenthumbs@cybernex.net in isNodeEditable(). HT Properties dialog changes (pretty, now). Better color support.
git-svn-id: svn://10.0.0.236/trunk@1290 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 05:48:14 +00:00
troy
833c505aff Hooked up ContentChanged() to notify the frame
git-svn-id: svn://10.0.0.236/trunk@1289 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 04:59:35 +00:00
troy
80084f86ae Added ContentChanged() member function
git-svn-id: svn://10.0.0.236/trunk@1288 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 04:56:47 +00:00
troy
4c7726d9f7 Added ContentChanged() member function
git-svn-id: svn://10.0.0.236/trunk@1287 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 04:45:37 +00:00
sdagley
e5ef4cb8fc Merging sfraser fix for #115706 from 4.x branch.
git-svn-id: svn://10.0.0.236/trunk@1286 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 03:34:05 +00:00
michaelp
6b1b7b071b added horizontal scrollbar.
git-svn-id: svn://10.0.0.236/trunk@1278 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 01:25:25 +00:00
timm
f2f6958b0e Add in "ARCHIVE=asw.jar" for compare.js
git-svn-id: svn://10.0.0.236/trunk@1277 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 01:17:40 +00:00
cmanske
b6085352b8 Fixed memory crash bug in new Composer table code
git-svn-id: svn://10.0.0.236/trunk@1276 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 01:12:10 +00:00
michaelp
67a0e11240 we now have horizontal scrolling.
git-svn-id: svn://10.0.0.236/trunk@1275 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 01:11:57 +00:00
timm
6a5d8b07ea Not for Preston
git-svn-id: svn://10.0.0.236/trunk@1271 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 00:33:10 +00:00
timm
b763535f3a Registration Server IAS file
git-svn-id: svn://10.0.0.236/trunk@1270 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 00:31:35 +00:00
kipp
e8970aba73 Support width/height ala css
git-svn-id: svn://10.0.0.236/trunk@1269 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 00:16:41 +00:00
kipp
dd47ae8835 Added MapImagePropertiesInto
git-svn-id: svn://10.0.0.236/trunk@1268 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 00:16:30 +00:00
1590 changed files with 171 additions and 581601 deletions

View File

@@ -1,287 +0,0 @@
#!perl
package BuildList;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(BuildMozilla DistMozilla);
=head1 NAME
BuildList - build the [ordered] set of projects needed to construct Mozilla
=head1 SYNOPSIS
...
=head1 COPYRIGHT
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.
=cut
use Moz;
use File::Path;
sub BuildMozilla()
{
if ( $main::DEBUG )
{
$D = "Debug";
$dist_dir = ":mozilla:dist:client_debug:";
}
else
{
$D = "";
$dist_dir = ":mozilla:dist:client:";
}
#
# Build the appropriate target of each project
#
BuildProjectClean(":mozilla:lib:mac:NSStdLib:NSStdLib.mcp", "Stubs");
BuildProjectClean(":mozilla:lib:mac:NSRuntime:NSRuntime.mcp", "Stubs");
BuildProjectClean(":mozilla:lib:mac:MacMemoryAllocator:MemAllocator.mcp", "Stubs");
BuildProjectClean(":mozilla:cmd:macfe:projects:client:NavigatorStubs.mcp", "Stubs");
BuildProject(":mozilla:lib:mac:NSRuntime:NSRuntime.mcp", "NSRuntime$D.shlb");
MakeAlias(":mozilla:lib:mac:NSRuntime:NSRuntime$D.shlb", "$dist_dir");
BuildProject(":mozilla:cmd:macfe:restext:StringLib.mcp", "Strings$D.shlb");
MakeAlias(":mozilla:cmd:macfe:restext:Strings$D.shlb", "$dist_dir");
BuildProject(":mozilla:lib:mac:MoreFiles:build:MoreFilesPPC.mcp", "MoreFiles$D.shlb");
MakeAlias(":mozilla:lib:mac:MoreFiles:build:MoreFiles$D.shlb", "$dist_dir");
BuildProject(":mozilla:nsprpub:macbuild:NSPR20PPC.mcp", "NSPR20$D.shlb");
MakeAlias(":mozilla:nsprpub:macbuild:NSPR20$D.shlb", "$dist_dir");
BuildProject(":mozilla:dbm:macbuild:DBMPPC.mcp", "DBM$D.shlb");
MakeAlias(":mozilla:dbm:macbuild:DBM$D.shlb", "$dist_dir");
BuildProject(":mozilla:lib:mac:MacMemoryAllocator:MemAllocator.mcp", "MemAllocator$D.shlb");
MakeAlias(":mozilla:lib:mac:MacMemoryAllocator:MemAllocator$D.shlb", "$dist_dir");
BuildProject(":mozilla:lib:mac:NSStdLib:NSStdLib.mcp", "NSStdLib$D.shlb");
MakeAlias(":mozilla:lib:mac:NSStdLib:NSStdLib$D.shlb", "$dist_dir");
BuildProject(":mozilla:xpcom:macbuild:xpcomPPC.mcp", "xpcom$D.shlb");
MakeAlias(":mozilla:xpcom:macbuild:xpcom$D.shlb", "$dist_dir");
BuildProject(":mozilla:lib:mac:PowerPlant:PowerPlant.mcp", "PowerPlant$D.shlb");
MakeAlias(":mozilla:lib:mac:PowerPlant:PowerPlant$D.shlb", "$dist_dir");
BuildProject(":mozilla:modules:zlib:macbuild:zlib.mcp", "zlib$D.shlb");
MakeAlias(":mozilla:modules:zlib:macbuild:zlib$D.shlb", "$dist_dir");
BuildProject(":mozilla:jpeg:macbuild:JPEG.mcp", "JPEG$D.shlb");
MakeAlias(":mozilla:jpeg:macbuild:JPEG$D.shlb", "$dist_dir");
BuildProject(":mozilla:sun-java:stubs:macbuild:JavaStubs.mcp", "JavaRuntime$D.shlb");
MakeAlias(":mozilla:sun-java:stubs:macbuild:JavaRuntime$D.shlb", "$dist_dir");
BuildProject(":mozilla:js:jsj:macbuild:JSJ_PPC.mcp", "JSJ$D.o");
BuildProject(":mozilla:js:macbuild:JavaScriptPPC.mcp", "JavaScript$D.shlb");
MakeAlias(":mozilla:js:macbuild:JavaScript$D.shlb", "$dist_dir");
BuildProject(":mozilla:nav-java:stubs:macbuild:NavJavaStubs.mcp", "NavJava$D.shlb");
MakeAlias(":mozilla:nav-java:stubs:macbuild:NavJava$D.shlb", "$dist_dir");
BuildProject(":mozilla:modules:rdf:macbuild:RDF.mcp", "RDF$D.shlb");
MakeAlias(":mozilla:modules:rdf:macbuild:RDF$D.shlb", "$dist_dir");
BuildProject(":mozilla:modules:xml:macbuild:XML.mcp", "XML$D.shlb");
MakeAlias(":mozilla:modules:xml:macbuild:XML$D.shlb", "$dist_dir");
BuildProject(":mozilla:modules:schedulr:macbuild:Schedulr.mcp", "Scheduler$D.shlb");
MakeAlias(":mozilla:modules:schedulr:macbuild:Scheduler$D.shlb", "$dist_dir");
BuildProject(":mozilla:build:mac:CustomLib:CustomLib.mcp", "CustomLib$D.shlb");
MakeAlias(":mozilla:build:mac:CustomLib:CustomLib$D.shlb", "$dist_dir");
BuildProject(":mozilla:build:mac:CustomLib:CustomLib.mcp", "CustomStaticLibs$D.o");
BuildProject(":mozilla:modules:security:freenav:macbuild:NoSecurity.mcp", "Security.o");
BuildProject(":mozilla:modules:libfont:macbuild:FontBroker.mcp", "FontBroker$D.o");
BuildProject(":mozilla:lib:libmocha:macbuild:LibMocha.mcp", "LibMocha$D.o");
BuildProject(":mozilla:network:macbuild:network.mcp", "Network$D.o");
if ( $main::MOZ_LITE == 0 )
{
BuildProject(":mozilla:cmd:macfe:Composer:build:Composer.mcp", "Composer$D.o");
# Build the appropriate resources target
BuildProject(":mozilla:cmd:macfe:projects:client:Client.mcp", "Moz_Resources");
}
else
{
# Build a project with dummy targets to make stub libraries
BuildProject("cmd:macfe:projects:dummies:MakeDummies.mcp", "Composer$D.o");
# Build the appropriate resources target
BuildProject(":mozilla:cmd:macfe:projects:client:Client.mcp", "Nav_Resources");
}
BuildProject(":mozilla:cmd:macfe:projects:client:Client.mcp", "Client$D");
}
sub DistMozilla()
{
mkpath([ ":mozilla:dist:", ":mozilla:dist:client:", ":mozilla:dist:client_debug:", ":mozilla:dist:client_stubs:" ]);
#INCLUDE
InstallFromManifest(":mozilla:config:mac:MANIFEST", ":mozilla:dist:config:");
InstallFromManifest(":mozilla:include:MANIFEST", ":mozilla:dist:include:");
InstallFromManifest(":mozilla:cmd:macfe:pch:MANIFEST", ":mozilla:dist:include:");
#MAC_COMMON
InstallFromManifest(":mozilla:build:mac:MANIFEST", ":mozilla:dist:mac:common:");
InstallFromManifest(":mozilla:lib:mac:NSStdLib:include:MANIFEST", ":mozilla:dist:mac:common:");
InstallFromManifest(":mozilla:lib:mac:MacMemoryAllocator:include:MANIFEST", ":mozilla:dist:mac:common:");
InstallFromManifest(":mozilla:lib:mac:Misc:MANIFEST", ":mozilla:dist:mac:common:");
InstallFromManifest(":mozilla:lib:mac:MoreFiles:MANIFEST", ":mozilla:dist:mac:common:morefiles:");
InstallFromManifest(":mozilla:cmd:macfe:MANIFEST", ":mozilla:dist:mac:macfe:");
#NSPR
InstallFromManifest(":mozilla:nsprpub:pr:include:MANIFEST", ":mozilla:dist:nspr:");
InstallFromManifest(":mozilla:nsprpub:pr:src:md:mac:MANIFEST", ":mozilla:dist:nspr:mac:");
InstallFromManifest(":mozilla:nsprpub:lib:ds:MANIFEST", ":mozilla:dist:nspr:");
InstallFromManifest(":mozilla:nsprpub:lib:libc:include:MANIFEST", ":mozilla:dist:nspr:");
InstallFromManifest(":mozilla:nsprpub:lib:msgc:include:MANIFEST", ":mozilla:dist:nspr:");
#DBM
InstallFromManifest(":mozilla:dbm:include:MANIFEST", ":mozilla:dist:dbm:");
#LIBIMAGE
InstallFromManifest(":mozilla:modules:libimg:png:MANIFEST", ":mozilla:dist:libimg:");
InstallFromManifest(":mozilla:modules:libimg:src:MANIFEST", ":mozilla:dist:libimg:");
InstallFromManifest(":mozilla:modules:libimg:public:MANIFEST", ":mozilla:dist:libimg:");
#SECURITY_freenav
InstallFromManifest(":mozilla:modules:security:freenav:MANIFEST", ":mozilla:dist:security:");
#XPCOM
InstallFromManifest(":mozilla:xpcom:src:MANIFEST", ":mozilla:dist:xpcom:");
#ZLIB
InstallFromManifest(":mozilla:modules:zlib:src:MANIFEST", ":mozilla:dist:zlib:");
#JPEG
InstallFromManifest(":mozilla:jpeg:MANIFEST", ":mozilla:dist:jpeg:");
#JSJ
InstallFromManifest(":mozilla:js:jsj:MANIFEST", ":mozilla:dist:jsj:");
#JSDEBUG
InstallFromManifest(":mozilla:js:jsd:MANIFEST", ":mozilla:dist:jsdebug:");
#JS
InstallFromManifest(":mozilla:js:src:MANIFEST", ":mozilla:dist:js:");
#RDF
InstallFromManifest(":mozilla:modules:rdf:include:MANIFEST", ":mozilla:dist:rdf:");
#XML
InstallFromManifest(":mozilla:modules:xml:glue:MANIFEST", ":mozilla:dist:xml:");
InstallFromManifest(":mozilla:modules:xml:expat:xmlparse:MANIFEST", ":mozilla:dist:xml:");
#LIBFONT
InstallFromManifest(":mozilla:modules:libfont:MANIFEST", ":mozilla:dist:libfont:");
InstallFromManifest(":mozilla:modules:libfont:src:MANIFEST", ":mozilla:dist:libfont:");
#LDAP
if ( $main::MOZ_LDAP )
{
InstallFromManifest(":mozilla:directory:c-sdk:ldap:include:MANIFEST", ":mozilla:dist:ldap:");
}
#SCHEDULER
InstallFromManifest(":mozilla:modules:schedulr:public:MANIFEST", ":mozilla:dist:schedulr:");
#NETWORK
InstallFromManifest(":mozilla:network:cache:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:client:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:cnvts:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:cstream:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:main:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:about:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:certld:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:dataurl:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:file:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:ftp:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:gopher:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:http:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:js:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:mailbox:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:marimba:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:nntp:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:pop3:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:remote:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:smtp:MANIFEST", ":mozilla:dist:network:");
#HTML_DIALOGS
InstallFromManifest(":mozilla:lib:htmldlgs:MANIFEST", ":mozilla:dist:htmldlgs:");
#LAYOUT
InstallFromManifest(":mozilla:lib:layout:MANIFEST", ":mozilla:dist:layout:");
#LAYERS
InstallFromManifest(":mozilla:lib:liblayer:include:MANIFEST", ":mozilla:dist:layers:");
#PARSE
InstallFromManifest(":mozilla:lib:libparse:MANIFEST", ":mozilla:dist:libparse:");
#STYLE
InstallFromManifest(":mozilla:lib:libstyle:MANIFEST", ":mozilla:dist:libstyle:");
#PLUGIN
InstallFromManifest(":mozilla:lib:plugin:MANIFEST", ":mozilla:dist:plugin:");
#LIBHOOK
InstallFromManifest(":mozilla:modules:libhook:public:MANIFEST", ":mozilla:dist:libhook:");
#LIBPREF
InstallFromManifest(":mozilla:modules:libpref:public:MANIFEST", ":mozilla:dist:libpref:");
#LIBREG
InstallFromManifest(":mozilla:modules:libreg:include:MANIFEST", ":mozilla:dist:libreg:");
#LIBUTIL
InstallFromManifest(":mozilla:modules:libutil:public:MANIFEST", ":mozilla:dist:libutil:");
#PROGRESS
InstallFromManifest(":mozilla:modules:progress:public:MANIFEST", ":mozilla:dist:progress:");
#SOFTUPDATE
InstallFromManifest(":mozilla:modules:softupdt:include:MANIFEST", ":mozilla:dist:softupdate:");
#EDTPLUG
InstallFromManifest(":mozilla:modules:edtplug:include:MANIFEST", ":mozilla:dist:edtplug:");
#NAV_JAVA
InstallFromManifest(":mozilla:nav-java:stubs:include:MANIFEST", ":mozilla:dist:nav-java:");
InstallFromManifest(":mozilla:nav-java:stubs:macjri:MANIFEST", ":mozilla:dist:nav-java:");
#SUN_JAVA
InstallFromManifest(":mozilla:sun-java:stubs:include:MANIFEST", ":mozilla:dist:sun-java:");
InstallFromManifest(":mozilla:sun-java:stubs:macjri:MANIFEST", ":mozilla:dist:sun-java:");
}
1;

View File

@@ -1,35 +0,0 @@
#!perl
#
# 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.
#
use Moz;
use BuildList;
$DEBUG = 0;
$MOZ_LITE = 0; # build moz medium. This will come from a config file at some stage.
Moz::OpenErrorLog(":::Mozilla.BuildLog");
Moz::StopForErrors();
chdir("::::");
# Make and popuplate the dist directory
DistMozilla();
# Now build the projects
BuildMozilla();

View File

@@ -1,35 +0,0 @@
#!perl
#
# 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.
#
use Moz;
use BuildList;
$DEBUG = 1;
$MOZ_LITE = 0; # build moz medium. This will come from a config file at some stage.
Moz::OpenErrorLog(":::Mozilla.BuildLog");
Moz::StopForErrors();
chdir("::::");
# Make and popuplate the dist directory
DistMozilla();
# Now build the projects
BuildMozilla();

Binary file not shown.

View File

@@ -1,78 +0,0 @@
#
# 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.
#
if {#} != 1
echo "CopyExports requires 1 parameters:"
echo "Parameter 1: path relative to {SourceRootDir} of the file which contains"
echo " the list of files to be copied, one per line. This path"
echo " may not begin with a colon"
echo
Exit 1
end if
Set SourceList "{SourceRootDir}{1}"
Set ScriptsDir "{SourceRootDir}mozilla:build:mac:"
#set sourceList "{SourceRootDir}mozilla:{1}"
if {verbose}
echo "Source list is in file ¶"{SourceList}¶""
echo "Scripts directory is ¶"{ScriptsDir}¶""
end if
# for each line in the source file, remove it if it starts with #, otherwise quote it
for curLine in `streamedit "{sourceList}" -e '/¥#Å/ Delete; /¥/ Replace /(Å)¨1/ "¶""¨1"¶""'`
echo "{curLine}"
# ignore empty lines
if `evaluate "{{curLine}}" != ""`
echo "{curLine}"
# strip out trailing comments
if `evaluate "{curLine}" =~ /(Å)¨1[ ¶t]+(#Å)¨2/`
set sourceLine "{¨1}"
# echo "Discarding comment {¨2}"
else
set sourceLine "{curLine}"
end if
if `evaluate "{sourceLine}" =~ /([Â ¶t]+)¨1[ ¶t]+[:]*(Å)¨2/`
if {verbose}
echo "Cur line is {sourceLine}"
end if
set exportFile "{¨1}"
set theTarget "{¨2}"
if {verbose}
echo "Export file name is {exportFile}"
echo "Target directory is {theTarget}"
end if
"{ScriptsDir}CopyList.script" "{exportFile}" "{theTarget}"
end if
end if
end for

View File

@@ -1,81 +0,0 @@
#
# 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 is the controlling script for a set of scripts that copy public
# header files in one or more source trees into a single, "dist" directory.
#
# It relies on the two accompanying scripts, ÒCopyList.scriptÓ and
# ÒCopyExports.scriptÓ, which must be in the same directory.
#
# To execute this script, select everything from "# Get the..." to
# " the end" and hit the Enter key.
#
# Known bugs:
# Header files are always copied if the export.mac file contains
# non-local paths.
# Spurious output is produced even when verbose is off.
#
# Uncomment this to get some progress information
# set -e verbose 1
# Get the root of everything
set magicfilepath "{systempfolder}filepath" # Temporary items folder, "filepath"
if !`Exists "{{magicFilePath}}"`
Echo "No file path file seems to have been created in the temporary items folder."
Echo "Was this script executed from the perl script? That's the way it was designed."
Exit 1
end if
set myDirectory "`catenate "{{magicFilePath}}"`"
delete -i "{{magicFilePath}}"
Set SourceList "{myDirectory}{1}"
(Evaluate "{myDirectory}" =~ /(Å:)¨1[Â:]+:[Â:]+:[Â:]+/) #·· dev:null
Set -e mozillaDir "{¨1}"
if !`Exists "{{mozillaDir}}"`
Echo "A file path was passed, but it doesn't seem to be the mozilla directory."
Exit 1
end if
echo "Mozilla directory found at {mozillaDir}"
#Calculate the root directory by stripping off the leaf name.
(Evaluate "{mozillaDir}" =~ /(Å:)¨1([Â:]+)¨2/) #·· dev:null
Set -e SourceRootDir "{¨1}"
Set -e DestRootDir "{mozillaDir}dist:"
# Ensure the build and stubs folders exist
if !`exists -d "{mozillaDir}dist"`
newfolder "{mozillaDir}dist"
end if
if !`exists -d "{mozillaDir}dist:client"`
newfolder "{mozillaDir}dist:client"
end if
if !`exists -d "{mozillaDir}dist:client_debug"`
newfolder "{mozillaDir}dist:client_debug"
end if
if !`exists -d "{mozillaDir}dist:client_stubs"`
newfolder "{mozillaDir}dist:client_stubs"
end if
"{SourceRootDir}mozilla:build:mac:CopyExports.script" "mozilla:build:mac:MacExportListPublic"
# the end

View File

@@ -1,97 +0,0 @@
#
# 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.
#
if {#} != 2
echo "CopyList requires 2 parameters:"
echo "Parameter 1: path relative to {SourceRootDir} of the file which contains"
echo " the list of files to be copied, one per line. This path"
echo " may not begin with a colon"
echo
echo "Parameter 2: path relative to {DestRootDir} of the directory where all the"
echo " files are to be copied. No initial colons!"
echo
Exit 1
end if
set debugEcho "" # This setting will actually duplicate the files
#set debugEcho "echo" # This setting will merely print the "duplicate" commands.
set sourceList "{SourceRootDir}{1}"
set targetDir "{DestRootDir}{2}"
# targetDir may not end in a colon for this script to work.
if `Evaluate "{targetDir}" =~ /(Å)¨1:/`
#echo "Removed a colon"
set targetDir "{¨1}"
end if
#Ensure the target hierarchy exists
# Volume name
(Evaluate "{TargetDir}" =~ /([Â:]+)¨1:Å/) ·· dev:null
Set PartialPath "{¨1}"
Loop
(Evaluate "{TargetDir}" =~ /("{PartialPath}":[Â:]+)¨1([:]*)¨2Å/) ·· dev:null
Set PartialPath "{¨1}"
Set Exit 0
(NewFolder "{PartialPath}") ·· dev:null
Set Exit 1
break if "{¨2}" == ""
End Loop
#Calculate the source directory by stripping off the leaf name.
(Evaluate "{SourceList}" =~ /(Å:)¨1([Â:]+)¨2/) #·· dev:null
Set SourceDir "{¨1}"
if {verbose}
echo "Source list is in file ¶"{sourceList}¶""
echo "Source directory is ¶"{SourceDir}¶""
echo "Target directory is ¶"{targetDir}¶""
end if
# Strip all comment lines, pipe the stripped lines into the "for" loop.
# We quote each whole line here so that we deal with a line at a time in the
# for loop. Don't ya just love MPW quoting rulesÉ
for f in `streamedit "{sourceList}" -e '/¥#Å/ Delete; /¥/ Replace /(Å)¨1/ "¶""¨1"¶""'`
if `evaluate "{{f}}" != ""`
# strip out trailing comments (in fact, anything following whitespace)
if `evaluate "{f}" =~ /([Â ¶t]+)¨1[ ¶t]+([#]*Å)¨2/`
set sourceFile "{¨1}"
# echo "Discarding comment {¨2}"
else
set sourceFile "{f}"
end if
# sourceFile can be a relative path, so need to get the file name for date comparisons
if `evaluate "{sourceFile}" =~ /Å:([Â:]+)¨1/`
set filename "{¨1}"
else
set filename "{sourceFile}"
end if
# now copy the file if newer
if "`Newer "{sourceDir}{sourceFile}" "{targetDir}:{filename}"`" #|| !`Exists "{targetDir}:{filename}"`
if {verbose} ; echo "{sourceDir}{sourceFile} is newer than {targetDir}:{filename}" ; end if
#{debugEcho} duplicate -y "{sourceDir}{sourceFile}" "{targetDir}"
{debugEcho} newalias "{sourceDir}{sourceFile}" "{targetDir}:{filename}"
end if
end if
end for

View File

@@ -1,88 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file overrides all option settings in the IDE. It is an attempt to allow all builds
to have the same options.
Note: We can't use ConditionalMacros.h in this file because it will conflict with
the PowerPlant precompiled headers.
*/
/* warning pragmas */
#pragma warn_hidevirtual on
#pragma check_header_flags on
/* Language features that must be the same across libraries... */
#pragma enumsalwaysint on
#pragma unsigned_char off
#pragma exceptions on
#pragma bool on
/* Save as much space as possible with strings... */
#pragma pool_strings on
#pragma dont_reuse_strings off
#pragma options align=native
#pragma sym on /* Takes no memory. OK in non-debug. */
#ifdef powerc /* ...generating PowerPC */
#pragma toc_data on
#pragma fp_contract on
#pragma readonly_strings on
#ifdef DEBUG
#pragma traceback on
#pragma global_optimizer off
#pragma scheduling off
#pragma peephole off
#pragma optimize_for_size off
#else
#pragma traceback off
#pragma global_optimizer on
#pragma optimization_level 4
#pragma scheduling 604
#pragma peephole on
#pragma optimize_for_size on
#endif
#else /* ...generating 68k */
#pragma code68020 on
#pragma code68881 off
/* Far everything... */
#pragma far_code
#pragma far_data on
#pragma far_strings on
#pragma far_vtables on
#pragma fourbyteints on /* 4-byte ints */
#pragma IEEEdoubles on /* 8-byte doubles (as required by Java and NSPR) */
#ifdef DEBUG
#pragma macsbug on
#pragma oldstyle_symbols off
#else
#pragma macsbug off
#endif
#endif

View File

@@ -1,156 +0,0 @@
#
# 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 is a list of paths to export.mac files, and destination
# directories for the copied headers. Destinations are relative
# to "mozilla:dist".
###################
# PUBLIC TREE
###################
# LDAP
mozilla:directory:c-sdk:ldap:include:MANIFEST :ldap
#INCLUDE
mozilla:config:mac:export.mac :config
mozilla:include:export.mac :include
mozilla:cmd:macfe:pch:export.mac :include
#MAC_COMMON
mozilla:build:mac:export.mac :mac:common
mozilla:lib:mac:NSStdLib:include:export.mac :mac:common
mozilla:lib:mac:MacMemoryAllocator:include:export.mac :mac:common
mozilla:lib:mac:Misc:export.mac :mac:common
mozilla:lib:mac:MoreFiles:export.mac :mac:common:morefiles
mozilla:cmd:macfe:export.mac :mac:macfe
#NSPR
mozilla:nsprpub:pr:include:export.mac :nspr
mozilla:nsprpub:pr:src:md:mac:export.mac :nspr:mac
mozilla:nsprpub:lib:ds:export.mac :nspr
mozilla:nsprpub:lib:libc:include:export.mac :nspr
mozilla:nsprpub:lib:msgc:include:export.mac :nspr
#DBM
mozilla:dbm:include:export.mac :dbm
#LIBIMAGE
mozilla:modules:libimg:png:export.mac :libimg
mozilla:modules:libimg:src:export.mac :libimg
mozilla:modules:libimg:public:export.mac :libimg
#SECURITY_freenav
mozilla:modules:security:freenav:export.mac :security
#XPCOM
mozilla:xpcom:src:export.mac :xpcom
#ZLIB
mozilla:modules:zlib:src:export.mac :zlib
#JPEG
mozilla:jpeg:export.mac :jpeg
#JSJ
mozilla:js:jsj:export.mac :jsj
#JSDEBUG
mozilla:js:jsd:export.mac :jsdebug
#JS
mozilla:js:src:export.mac :js
#RDF
mozilla:modules:rdf:include:export.mac :rdf
#XML
mozilla:modules:xml:glue:export.mac :xml
mozilla:modules:xml:expat:xmlparse:export.mac :xml
#LIBFONT
mozilla:modules:libfont:public:export.mac :libfont
mozilla:modules:libfont:src:export.mac :libfont
#SCHEDULER
mozilla:modules:schedulr:public:export.mac :schedulr
#NETWORK
#This stuff is all in libnet on the branch.
#mozilla:network:cache:export.mac :network
#mozilla:network:client:export.mac :network
#mozilla:network:cnvts:export.mac :network
#mozilla:network:cstream:export.mac :network
#mozilla:network:main:export.mac :network
#ozilla:network:protocol:about:export.mac :network
#mozilla:network:protocol:certld:export.mac :network
#mozilla:network:protocol:dataurl:export.mac :network
#mozilla:network:protocol:file:export.mac :network
#mozilla:network:protocol:ftp:export.mac :network
#mozilla:network:protocol:gopher:export.mac :network
#mozilla:network:protocol:http:export.mac :network
#mozilla:network:protocol:js:export.mac :network
#mozilla:network:protocol:mailbox:export.mac :network
#mozilla:network:protocol:marimba:export.mac :network
#mozilla:network:protocol:nntp:export.mac :network
#mozilla:network:protocol:pop3:export.mac :network
#mozilla:network:protocol:remote:export.mac :network
#mozilla:network:protocol:smtp:export.mac :network
#NORMANDY_BRANCH only
mozilla:lib:libnet:export.mac :libnet
#HTML_DIALOGS
mozilla:lib:htmldlgs:export.mac :htmldlgs
#LAYOUT
mozilla:lib:layout:export.mac :layout
#LAYERS
mozilla:lib:liblayer:include:export.mac :layers
#PARSE
mozilla:lib:libparse:export.mac :libparse
#STYLE
mozilla:lib:libstyle:export.mac :libstyle
#LIBHOOK
mozilla:modules:libhook:public:export.mac :libhook
#LIBPREF
mozilla:modules:libpref:public:export.mac :libpref
#LIBREG
mozilla:modules:libreg:include:export.mac :libreg
#LIBUTIL
mozilla:modules:libutil:public:export.mac :libutil
#PROGRESS
mozilla:modules:progress:public:export.mac :progress
#SOFTUPDATE
mozilla:modules:softupdt:include:export.mac :softupdate
#NAV_JAVA
mozilla:nav-java:stubs:macjri:export.mac :nav-java:macjri
mozilla:nav-java:stubs:include:export.mac :nav-java
#SUN_JAVA
mozilla:sun-java:stubs:include:export.mac :sun-java:include
mozilla:sun-java:stubs:macjri:export.mac :sun-java:macjri

Binary file not shown.

View File

@@ -1,368 +0,0 @@
=head1 NAME
B<Moz> - routines for automating CodeWarrior builds, and some extra-curricular activities related to building Mozilla
=head1 SYNOPSIS
use Moz;
OpenErrorLog(":::BuildLog");
StopForErrors();
$Moz::QUIET = 1;
InstallFromManifest(":projects:MANIFEST", $dist_dir);
BuildProjectClean(":projects:SomeProject.mcp", "SomeTarget");
MakeAlias(":projects:SomeProject.shlb", $dist_dir);
DontStopForErrors();
BuildProject(":projects:SomeOtherProject.mcp", "SomeTarget");
=head1 DESCRIPTION
B<Moz> comprises the routines needed to slap CodeWarrior around, force it to build a sequence of projects, report the results, and a few other things.
=cut
package Moz;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(BuildProject BuildProjectClean OpenErrorLog MakeAlias StopForErrors DontStopForErrors InstallFromManifest);
@EXPORT_OK = qw(CloseErrorLog UseCodeWarriorLib QUIET);
use Cwd;
use File::Path;
use ExtUtils::Manifest 'maniread';
sub current_directory()
{
my $current_directory = cwd();
chop($current_directory) if ( $current_directory =~ m/:$/ );
return $current_directory;
}
sub full_path_to($)
{
my ($path) = @_;
if ( $path =~ m/^[^:]+$/ )
{
$path = ":" . $path;
}
if ( $path =~ m/^:/ )
{
$path = current_directory() . $path;
}
return $path;
}
=head2 Setup
Pretty much, everything is taken care of for you.
However, B<Moz> does use a little compiled AppleScript library (the file CodeWarriorLib) for some of its communcication with CodeWarrior.
If this library isn't in the same directory as "Moz.pm", then you need to tell B<Moz> where to find it.
Call C<UseCodeWarriorLib($path_to_CodeWarriorLib)>.
This routine is not exported by default, nor are you likely to need it.
=cut
sub UseCodeWarriorLib($)
{
($CodeWarriorLib) = @_;
$CodeWarriorLib = full_path_to($CodeWarriorLib);
}
sub activate_CodeWarrior()
{
MacPerl::DoAppleScript(<<END_OF_APPLESCRIPT);
tell (load script file "$CodeWarriorLib") to ActivateCodeWarrior()
END_OF_APPLESCRIPT
}
BEGIN
{
UseCodeWarriorLib(":CodeWarriorLib");
activate_CodeWarrior();
}
$logging = 0;
$recent_errors_file = "";
$stop_on_1st_error = 1;
$QUIET = 0;
=head2 Logging all the errors and warnings - C<OpenErrorLog($log_file)>, C<CloseErrorLog()>
The warnings and errors generated in the course of building projects can be logged to a file.
Tinderbox uses this facility to show why a remote build failed.
Logging is off by default.
Start logging at any point in your build process with C<OpenErrorLog($log_file)>.
Stop with C<CloseErrorLog()>.
You never need to close the log explicitly, unless you want to just log a couple of projects in the middle of a big list.
C<CloseErrorLog()> is not exported by default.
=cut
sub CloseErrorLog()
{
if ( $logging )
{
close(ERROR_LOG);
$logging = 0;
StopForErrors() if $stop_on_1st_error;
}
}
sub OpenErrorLog($)
{
my ($log_file) = @_;
CloseErrorLog();
if ( $log_file )
{
$log_file = full_path_to($log_file);
open(ERROR_LOG, ">$log_file");
$log_file =~ m/.+:(.+)/;
$recent_errors_file = full_path_to("$1.part");
$logging = 1;
}
}
=head2 Stopping before it's too late - C<StopForErrors()>, C<DontStopForErrors()>
When building a long list of projects, you decide whether to continue building subsequent projects when one fails.
By default, your build script will C<die> after the first project that generates an error while building.
Change this behavior with C<DontStopForErrors()>.
Re-enable it with C<StopForErrors()>.
=cut
sub StopForErrors()
{
$stop_on_1st_error = 1;
# Can't stop for errors unless we notice them.
# Can't notice them unless we are logging.
# If the user didn't explicitly request logging, log to a temporary file.
if ( ! $recent_errors_file )
{
OpenErrorLog("${TMPDIR}BuildResults");
}
}
sub DontStopForErrors()
{
$stop_on_1st_error = 0;
}
sub log_message($)
{
if ( $logging )
{
my ($message) = @_;
print ERROR_LOG $message;
}
}
sub log_message_with_time($)
{
if ( $logging )
{
my ($message) = @_;
my $time_stamp = localtime();
log_message("$message ($time_stamp)\n");
}
}
sub log_recent_errors($)
{
my ($project_name) = @_;
my $found_errors = 0;
if ( $logging )
{
open(RECENT_ERRORS, "<$recent_errors_file");
while( <RECENT_ERRORS> )
{
if ( /^Error/ || /^CouldnÕt find project file/ )
{
$found_errors = 1;
}
print ERROR_LOG $_;
}
close(RECENT_ERRORS);
unlink("$recent_errors_file");
}
if ( $stop_on_1st_error && $found_errors )
{
print ERROR_LOG "### Build failed.\n";
die "### Errors encountered building \"$project_name\".\n";
}
}
sub build_project($$$)
{
my ($project_path, $target_name, $clean_build) = @_;
$project_path = full_path_to($project_path);
$project_path =~ m/.+:(.+)/;
my $project_name = $1;
log_message_with_time("### Building \"$project_path\"");
# Check that the given project exists
if (! -e $project_path)
{
print ERROR_LOG "### Build failed.\n";
die "### Can't find project file \"$project_path\".\n";
}
print "Building \"$project_path\"\n";
$had_errors =
MacPerl::DoAppleScript(<<END_OF_APPLESCRIPT);
tell (load script file "$CodeWarriorLib") to BuildProject("$project_path", "$project_name", "$target_name", "$recent_errors_file", $clean_build)
END_OF_APPLESCRIPT
# Append any errors to the globally accumulated log file
if ( $had_errors )
{
log_recent_errors($project_path);
}
}
=head2 Getting CodeWarrior to build projects - C<BuildProject($project, $opt_target)>, C<BuildProjectClean($project, $opt_target)>
C<BuildProject()> and C<BuildProjectClean()> are identical, except that the latter first removes object code.
In both, CodeWarrior opens the project if it wasn't already open; builds the given (or else current) target; and finally closes
the project, if it wasn't already open.
=cut
sub BuildProject($;$)
{
my ($project_path, $target_name) = @_;
build_project($project_path, $target_name, "false");
}
sub BuildProjectClean($;$)
{
my ($project_path, $target_name) = @_;
build_project($project_path, $target_name, "true");
}
=head2 Miscellaneous
C<MakeAlias($old_file, $new_file)> functions like C<symlink()>, except with better argument defaulting and more explicit error messages.
=cut
sub MakeAlias($$)
{
my ($old_file, $new_file) = @_;
# if the directory to hold $new_file doesn't exist, create it
if ( ($new_file =~ m/(.+:)/) && !-d $1 )
{
mkpath($1);
}
# if a leaf name wasn't specified for $new_file, use the leaf from $old_file
if ( ($new_file =~ m/:$/) && ($old_file =~ m/.+:(.+)/) )
{
$new_file .= $1;
}
my $message = "Can't create a Finder alias (at \"$new_file\")\n for \"$old_file\";";
# die "$message symlink doesn't work on directories.\n" if -d $old_file;
die "$message because \"$old_file\" doesn't exist.\n" unless -e $old_file;
unlink $new_file;
# print "symlink(\"$old_file\", \"$new_file\");\n";
symlink($old_file, $new_file) || die "$message symlink returned an unexpected error.\n";
}
=pod
C<InstallFromManifest()>
=cut
sub InstallFromManifest($;$)
{
my ($manifest_file, $dest_dir) = @_;
$dest_dir ||= ":";
$manifest_file =~ m/(.+):/;
my $source_dir = $1;
chop($dest_dir) if $dest_dir =~ m/:$/;
print "Doing manifest on \"$manifest_file\"\n" unless $QUIET;
my $read = maniread(full_path_to($manifest_file));
foreach $file (keys %$read)
{
next unless $file;
$subdir = ":";
if ( $file =~ /:.+:/ )
{
$subdir = $&;
}
$file = ":$file" unless $file =~ m/^:/;
MakeAlias("$source_dir$file", "$dest_dir$subdir");
}
}
1;
=head1 AUTHORS
Scott Collins <scc@netscape.com>, Simon Fraser <sfraser@netscape.com>
=head1 SEE ALSO
BuildMozillaDebug.pl (et al), BuildList.pm, CodeWarriorLib (an AppleScript library)
=head1 COPYRIGHT
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.
=cut

View File

@@ -1,38 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#define OLDROUTINELOCATIONS 0
#define XP_MAC 1
#ifndef NSPR20
#define NSPR20 1
#endif
#define _NSPR 1
#define _NO_FAST_STRING_INLINES_ 1
#define HAVE_BOOLEAN 1
#define NETSCAPE 1
#define OTUNIXERRORS 1 /* We want OpenTransport error codes */
/*
This compiles in heap dumping utilities and other good stuff
for developers -- maybe we only want it in for a special SDK
nspr/java runtime(?):
*/
#define DEVELOPER_DEBUG 1
#define MAX(_a,_b) ((_a) < (_b) ? (_b) : (_a))
#define MIN(_a,_b) ((_a) < (_b) ? (_a) : (_b))

Binary file not shown.

View File

@@ -1,5 +0,0 @@
#
# This is a list of local files which get copied to the mozilla:dist directory
#
IDE_Options.h

View File

@@ -1,26 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
The only job of this file is for make dependencies:
include files here that you want to cause MakeDist
to happen again when they change.
*/
#include "MacExportListPublic"

View File

@@ -1,76 +0,0 @@
#
# 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 is the controlling script for a set of scripts that copy public
# header files in one or more source trees into a single, "dist" directory.
#
# It relies on the two accompanying scripts, ÒCopyList.scriptÓ and
# ÒCopyExports.scriptÓ, which must be in the same directory.
#
#
# Known bugs:
# Header files are always copied if the export.mac file contains
# non-local paths.
# Spurious output is produced even when verbose is off.
#
set echo 0
Evaluate % = ("{{SourceFile}}" =~ /(Å:)¨0Å/)
Directory "{{¨0}}"
set mozillaDir "{¨0}"
if `evaluate "{mozillaDir}" =~ /(Å:)¨1[Â:]+:[Â:]+:/`
set -e mozillaDir "{¨1}"
else
echo "Failed to find mozilla directory. Exitting"
exit 1;
end if
# Sanity check for mozilla
if !`exists -d "{mozillaDir}"`
echo "Failed to find mozilla directory. Exitting"
exit 1;
end if
# Calculate the root directory by stripping off the leaf name.
(Evaluate "{mozillaDir}" =~ /(Å:)¨1([Â:]+)¨2:/)
Set -e SourceRootDir "{¨1}"
Set -e DestRootDir "{mozillaDir}dist:"
# Ensure the build and stubs folders exist
if !`exists -d "{mozillaDir}dist"`
newfolder "{mozillaDir}dist"
end if
if !`exists -d "{mozillaDir}dist:client"`
newfolder "{mozillaDir}dist:client"
end if
if !`exists -d "{mozillaDir}dist:client_debug"`
newfolder "{mozillaDir}dist:client_debug"
end if
if !`exists -d "{mozillaDir}dist:client_stubs"`
newfolder "{mozillaDir}dist:client_stubs"
end if
# Now do the grunt work of copying headers. This can take some time
"{SourceRootDir}mozilla:build:mac:CopyExports.script" "mozilla:build:mac:MacExportListPublic"

View File

@@ -1,788 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// ===========================================================================
// CColorPopup.cp
// ===========================================================================
#include "CColorPopup.h"
#include "UGraphicGizmos.h"
#include "UGraphicsUtilities.h"
#include "CTargetedUpdateMenuRegistry.h"
#include "CEditView.h" // constant for menu string resource
#include "edt.h" // EDT calls
#include "prefapi.h"
#include "StSetBroadcasting.h"
#include "CBrowserContext.h" // MWContext
// prototypes
pascal void
colorPopupMDEFProc( short message, MenuHandle theMenu,
Rect *menuRect, Point hitPt, short *whichItem );
// functionality
static
void
colorPopupGetBox( Rect *menuRect, Rect *itemBox, short numItems, short theItem )
{
Rect box;
SetRect( itemBox, 0, 0, 0, 0 );
if ( theItem <= numItems )
{
if ( theItem == CColorPopup::CURRENT_COLOR_ITEM )
{
box.bottom = menuRect->bottom - CColorPopup::COLOR_FRAME_BORDER;
box.top = box.bottom - CColorPopup::COLOR_BOX_HEIGHT;
box.left = menuRect->left + CColorPopup::COLOR_FRAME_BORDER;
box.right = box.left + CColorPopup::COLOR_BOX_HEIGHT;
}
else if ( theItem == CColorPopup::DEFAULT_COLOR_ITEM )
{
box.bottom = menuRect->bottom - CColorPopup::COLOR_FRAME_BORDER
- CColorPopup::COLOR_BOX_HEIGHT;
box.top = box.bottom - CColorPopup::COLOR_BOX_HEIGHT;
box.left = menuRect->left + CColorPopup::COLOR_FRAME_BORDER;
box.right = box.left + CColorPopup::COLOR_BOX_HEIGHT;
}
else if ( theItem == CColorPopup::LAST_COLOR_PICKED_ITEM )
{
box.top = menuRect->top + CColorPopup::COLOR_FRAME_BORDER;
box.bottom = box.top + CColorPopup::COLOR_BOX_HEIGHT;
box.left = menuRect->left + CColorPopup::COLOR_FRAME_BORDER;
box.right = box.left + CColorPopup::COLOR_BOX_HEIGHT;
}
else
{
box.top = menuRect->top /* + CColorPopup::COLOR_FRAME_BORDER */ + CColorPopup::COLOR_HEX_DISPLAY_SIZE;
box.left = menuRect->left + CColorPopup::COLOR_FRAME_BORDER;
box.bottom = box.top + CColorPopup::COLOR_BOX_HEIGHT;
box.right = box.left + CColorPopup::COLOR_BOX_WIDTH;
while ( --theItem > 1 ) // 1 is # menuItems preceding color chip matrix
{
OffsetRect( &box, CColorPopup::COLOR_BOX_WIDTH, 0 );
if ( box.left >= menuRect->right - CColorPopup::COLOR_FRAME_BORDER )
{
box.left = menuRect->left + CColorPopup::COLOR_FRAME_BORDER;
box.right = box.left + CColorPopup::COLOR_BOX_WIDTH;
OffsetRect( &box, 0, CColorPopup::COLOR_BOX_HEIGHT );
}
}
}
*itemBox = box;
}
}
static
Boolean
colorPopupParseColor( Str255 menuStr, RGBColor *theColor )
{
Boolean foundColorFlag = false;
unsigned short part;
short loop;
theColor->red = theColor->green = theColor->blue = 0;
for ( loop = 1; loop <= (unsigned)menuStr[ 0 ] - 6; ++loop )
{
if ( menuStr[0] > 1
&& ( menuStr[ loop ] == CColorPopup::COLOR_CHIP_CHAR
|| menuStr[ loop ] == CColorPopup::LAST_COLOR_PICKED_CHAR
|| menuStr[ loop ] == CColorPopup::DEFAULT_COLOR_CHAR
|| menuStr[ loop ] == CColorPopup::CURRENT_COLOR_CHAR ) )
{
// Converting from ASCII to Hex
// This is BAD code...
part = menuStr[ loop + 1 ] - '0';
if ( part > 9 )
part = menuStr[ loop + 1 ] - 'A' + 10;
theColor->red = part << 4;
part = menuStr[ loop + 2 ] - '0';
if ( part > 9 )
part = menuStr[ loop + 2 ] - 'A' + 10;
theColor->red |= part;
theColor->red = theColor->red << 8;
part = menuStr[ loop + 3 ] - '0';
if ( part > 9 )
part = menuStr[ loop + 3 ] - 'A' + 10;
theColor->green = part << 4;
part = menuStr[ loop + 4 ] - '0';
if ( part > 9 )
part = menuStr[ loop + 4 ] - 'A' + 10;
theColor->green |= part;
theColor->green = theColor->green << 8;
part = menuStr[ loop + 5 ] - '0';
if ( part > 9 )
part = menuStr[ loop + 5 ] - 'A' + 10;
theColor->blue = part << 4;
part = menuStr[ loop + 6 ] - '0';
if ( part > 9 )
part = menuStr[ loop + 6 ] - 'A' + 10;
theColor->blue |= part;
theColor->blue = theColor->blue << 8;
foundColorFlag = true;
break;
}
}
return foundColorFlag;
}
static
void
colorPopupDrawBox( MenuHandle theMenu, Rect *menuRect, short numItems )
{
Boolean wildcardFlag;
CIconHandle cicnHandle;
RGBColor theColor;
const RGBColor black = {0,0,0}, white = {0xFFFF,0xFFFF,0xFFFF};
Rect box;
Str255 menuStr;
short theItem;
for ( theItem = 1; theItem <= numItems; ++theItem )
{
menuStr[ 0 ] = 0;
GetMenuItemText( theMenu, theItem, menuStr );
wildcardFlag = ((menuStr[0] == 0x01 && menuStr[1] == CColorPopup::COLOR_PICKER_CHAR)) ? true : false;
colorPopupGetBox( menuRect, &box, numItems, theItem );
// text (if any)
int stringNum;
switch ( menuStr[1] )
{
default: stringNum = 0; break;
case CColorPopup::LAST_COLOR_PICKED_CHAR: stringNum = 20; break;
case CColorPopup::DEFAULT_COLOR_CHAR: stringNum = 21; break;
case CColorPopup::CURRENT_COLOR_CHAR: stringNum = 22; break;
}
if ( stringNum )
{
Point baseLinePoint;
baseLinePoint.v = box.top + CColorPopup::COLOR_BOX_HEIGHT - 4;
baseLinePoint.h = box.right + CColorPopup::COLOR_FRAME_BORDER;
Str255 menuItemStr;
menuItemStr[ 0 ] = 0;
::GetIndString( menuItemStr, CEditView::STRPOUND_EDITOR_MENUS, stringNum );
::RGBBackColor( &white );
::RGBForeColor( &black );
::MoveTo( baseLinePoint.h, baseLinePoint.v );
::DrawString( menuItemStr );
}
// draw color chip
if ( (true == wildcardFlag ) || (colorPopupParseColor( menuStr, &theColor ) == true))
{
::InsetRect( &box, 1, 1 );
::RGBForeColor( &black );
::MoveTo( box.left, box.bottom - 1 );
::LineTo( box.left, box.top );
::LineTo( box.right - 1, box.top );
#ifdef THREE_D_EFFECT_ON_COLOR_POPUP
::RGBForeColor( &white );
#endif
::LineTo( box.right - 1, box.bottom - 1 );
::LineTo( box.left, box.bottom - 1 );
if ( true == wildcardFlag )
{
RGBForeColor( &black );
if ( (cicnHandle = GetCIcon(11685)) != NULL )
{
// don't scale, plot into same size rect
Rect r = (**cicnHandle).iconPMap.bounds;
box.bottom = box.top + r.bottom - r.top;
box.right = box.left + r.right - r.left;
::PlotCIcon( &box, cicnHandle );
::DisposeCIcon( cicnHandle );
}
}
else
{
InsetRect( &box, 1, 1 );
RGBForeColor( &theColor );
PaintRect( &box );
::RGBForeColor( &black );
box.left += ( box.right-box.left ) / 2;
box.right = box.left;
box.top += ( box.bottom - box.top ) / 2;
box.bottom = box.top;
InsetRect( &box, -4, -4 );
}
}
}
}
static
void
colorPopupChooseColor( Rect *menuRect, Point hitPt,
short *whichItem, short numItems, RGBColor *backColor )
{
RGBColor aColor;
Rect box, oldBox;
short newItem = 0, loop;
colorPopupGetBox( menuRect, &oldBox, numItems, *whichItem );
if ( PtInRect( hitPt, menuRect ) )
{
for ( loop = 1; loop <= numItems; loop++ )
{
colorPopupGetBox( menuRect, &box, numItems, loop );
if ( PtInRect( hitPt, &box ) )
{
newItem = loop;
break;
}
}
if ( *whichItem != newItem )
{
// deselect old menu item, select new menu item
if ( *whichItem > 0 )
{
RGBForeColor( backColor );
FrameRect( &oldBox );
}
if ( newItem > 0 )
{
aColor.red = aColor.blue = aColor.green = 0;
RGBForeColor( &aColor );
FrameRect( &box );
}
#if COLOR_DISPLAY_TEXT
box = *menuRect;
box.top = box.bottom - COLOR_HEX_DISPLAY_SIZE;
EraseRect( &box );
if ( newItem > 0 )
{
menuStr[ 0 ] = 0;
GetMenuItemText( theMenu, newItem, menuStr );
if ( colorPopupParseColor( menuStr, &aColor ) == true )
{
if ( menuStr[ 0 ] )
{
// XXX should save/restore current font info, and set a particular (system?) font
MoveTo( box.left + ((box.right-box.left) / 2) - ( ::StringWidth(menuStr) / 2),
box.bottom - 4);
DrawString( menuStr );
}
}
}
#endif
*whichItem = newItem;
}
}
else if ( *whichItem > 0 )
{
// deselect old menu item
RGBForeColor( backColor );
FrameRect( &oldBox );
#if COLOR_DISPLAY_TEXT
box = *menuRect;
box.top = box.bottom - COLOR_HEX_DISPLAY_SIZE;
EraseRect( &box );
#endif
*whichItem = 0; // clear old item
}
}
pascal void
colorPopupMDEFProc(short message, MenuHandle theMenu,
Rect *menuRect, Point hitPt, short *whichItem)
{
if ( theMenu == NULL )
return;
PenState pnState;
RGBColor foreColor, backColor;
#if 0
Boolean growRowsFlag = false;
#endif
short numItems, numCols, numRows;
numItems = ::CountMItems( theMenu );
::GetPenState( &pnState );
::GetForeColor( &foreColor );
::PenNormal();
switch( message )
{
case mDrawMsg:
colorPopupDrawBox( theMenu, menuRect, numItems );
break;
case mChooseMsg:
::GetBackColor( &backColor );
colorPopupChooseColor( menuRect, hitPt, whichItem, numItems, &backColor );
::RGBBackColor( &backColor );
break;
case mSizeMsg:
// determine # of rows/cols needed
#if 0
if ( numItems > 0 )
{
numRows = numCols = 1;
while( numItems > (numRows * numCols) )
{
if ( growRowsFlag )
++numRows;
else
++numCols;
growRowsFlag = (!growRowsFlag);
}
}
#endif
#if 1
// hard code these for now
numRows = 10;
numCols = 10;
#endif
// why are the width and height backwards? If they are switched, the menu is wrong shape
(**theMenu).menuHeight = (numRows * CColorPopup::COLOR_BOX_HEIGHT) + (2 * CColorPopup::COLOR_FRAME_BORDER);
(**theMenu).menuWidth = (numCols * CColorPopup::COLOR_BOX_WIDTH) + CColorPopup::COLOR_FRAME_BORDER;
#if COLOR_DISPLAY_TEXT
(**theMenu).menuWidth += CColorPopup::COLOR_HEX_DISPLAY_SIZE;
#endif
break;
case mPopUpMsg:
::SetRect( menuRect, hitPt.v, hitPt.h,
hitPt.v + (**theMenu).menuWidth, hitPt.h + (**theMenu).menuHeight );
break;
/*
case mDrawItemMsg:
break;
case mCalcItemMsg:
break;
*/
}
::RGBForeColor( &foreColor );
SetPenState( &pnState );
}
// This class overrides CPatternButtonPopup to provide a popup menu which
// changes the descriptor based on the menu selection
// assumes left-justified text in DrawButtonTitle()
// ---------------------------------------------------------------------------
// ¥ CColorPopup
// ---------------------------------------------------------------------------
// Stream-based ctor
CColorPopup::CColorPopup(LStream* inStream)
: CPatternButtonPopupText(inStream)
{
}
void CColorPopup::FinishCreateSelf()
{
LView *superview = NULL, *view = GetSuperView();
while ( view )
{
view = view->GetSuperView();
if ( view )
superview = view;
}
mEditView = (CEditView *)superview->FindPaneByID( CEditView::pane_ID );
mDoSetLastPickedPreference = false;
// need to Finish FinishCreateSelf to get menus set for retrieval
super::FinishCreateSelf();
// set the control by adjusting the menu and then getting the current color
// unfortunately, when this is called, the editView doesn't have an mwcontext
// so we can't query to find out what the current color is to set it properly
}
void
CColorPopup::InitializeCurrentColor()
{
MenuHandle menuh;
menuh = GetMenu()->GetMacMenuH();
MWContext *mwcontext;
if ( mEditView )
mwcontext = mEditView->GetNSContext()
? mEditView->GetNSContext()->operator MWContext*()
: NULL;
else
mwcontext = NULL;
char colorstr[9];
LO_Color color;
Boolean isColorFound = false;
// first try to get the color out of the character data
EDT_CharacterData* chardata;
chardata = EDT_GetCharacterData( mwcontext );
if ( chardata && chardata->pColor )
{
isColorFound = true;
color = *chardata->pColor;
XP_SPRINTF( &colorstr[2], "%02X%02X%02X", color.red, color.green, color.blue);
}
if ( chardata )
EDT_FreeCharacterData( chardata );
// if we still haven't found it, let's try the page data
if ( !isColorFound )
{
EDT_PageData *pagedata = EDT_GetPageData( mwcontext );
if ( pagedata && pagedata->pColorText )
{
isColorFound = true;
color = *pagedata->pColorText;
XP_SPRINTF( &colorstr[2], "%02X%02X%02X", color.red, color.green, color.blue);
}
if ( pagedata )
EDT_FreePageData( pagedata );
}
// if we still haven't found the color, get the browser preference
if ( !isColorFound )
{
// editor.text_color
int iSize = 9;
int result = PREF_GetCharPref( "browser.foreground_color", &colorstr[1], &iSize );
if ( result != PREF_NOERROR )
colorstr[1] = 0; // zero string if error is encountered
}
colorstr[1] = CURRENT_COLOR_CHAR; // put in leading character
colorstr[0] = strlen( &colorstr[1] );
::SetMenuItemText( menuh, CURRENT_COLOR_ITEM, (unsigned char *)&colorstr );
// set descriptor of control
if ( GetValue() == CURRENT_COLOR_ITEM )
{
SetDescriptor( (const unsigned char *)colorstr );
Refresh(); // inval the control's visible pane area
}
}
// ---------------------------------------------------------------------------
// ¥ AdjustMenuContents
// ---------------------------------------------------------------------------
// Set last color picked (first item).
void
CColorPopup::AdjustMenuContents()
{
MenuHandle menuh;
menuh = GetMenu()->GetMacMenuH();
// initialize last color picked
char colorstr[9];
int iSize = 9;
int result;
// note hack to avoid converting c-string to p-string
result = PREF_GetCharPref( "editor.last_color_used", &colorstr[1], &iSize );
if ( result == PREF_NOERROR )
{
colorstr[1] = LAST_COLOR_PICKED_CHAR; // replace '#' with '<'
colorstr[0] = strlen( &colorstr[1] );
::SetMenuItemText( menuh, LAST_COLOR_PICKED_ITEM, (unsigned char *)&colorstr );
}
// initialize the default color
result = PREF_GetCharPref( "browser.foreground_color", &colorstr[1], &iSize );
if ( result == PREF_NOERROR )
{
colorstr[1] = DEFAULT_COLOR_CHAR; // replace '#' with '<'
colorstr[0] = strlen( &colorstr[1] );
::SetMenuItemText( menuh, DEFAULT_COLOR_ITEM, (unsigned char *)&colorstr );
}
// initialize the current color
InitializeCurrentColor();
}
void CColorPopup::HandlePopupMenuSelect( Point inPopupLoc, Int16 inCurrentItem,
Int16& outMenuID, Int16& outMenuItem )
{
super::HandlePopupMenuSelect( inPopupLoc, inCurrentItem, outMenuID, outMenuItem );
// check if we need to set the preference here...
mDoSetLastPickedPreference = ( outMenuID && outMenuItem != DEFAULT_COLOR_ITEM );
}
void CColorPopup::SetValue(Int32 inValue)
{
if ( inValue == 0 )
inValue = CURRENT_COLOR_ITEM;
Boolean shouldBroadcast;
// Handle color picker item special
if ( inValue == COLOR_PICKER_ITEM )
{
mValue = inValue; // Store new value to broadcast it
BroadcastValueMessage(); // Inform Listeners of value change
inValue = CURRENT_COLOR_ITEM; // Reset value to current color
shouldBroadcast = false; // Already broadcast above; don't do again
}
else
shouldBroadcast = IsBroadcasting();
// broadcast only if it's not a color picker item (handled above)
StSetBroadcasting setBroadcasting( this, shouldBroadcast );
super::SetValue( inValue );
}
// ---------------------------------------------------------------------------
// ¥ HandleNewValue
// ---------------------------------------------------------------------------
// Hook for handling value changes. Called by SetValue.
// Note that the setting of the new value is done by CPatternButtonPopup::SetValue.
// Therefore, GetValue() will still return the old value here, so the old value is
// still available in this method.
Boolean
CColorPopup::HandleNewValue(Int32 inNewValue)
{
Str255 str;
MenuHandle menuh;
menuh = GetMenu()->GetMacMenuH();
::GetMenuItemText ( menuh, inNewValue, str );
if ( str[1] != COLOR_PICKER_CHAR )
SetDescriptor( str );
if ( mDoSetLastPickedPreference
&& str[1] != LAST_COLOR_PICKED_CHAR && str[1] != COLOR_PICKER_CHAR )
{
mDoSetLastPickedPreference = false;
// skip over any text which might preceed color
int index;
for ( index = 1; index <= str[0]
&& str[index] != LAST_COLOR_PICKED_CHAR
&& str[index] != COLOR_CHIP_CHAR
&& str[index] != COLOR_PICKER_CHAR
&& str[index] != DEFAULT_COLOR_CHAR
&& str[index] != CURRENT_COLOR_CHAR; ++index )
;
if ( index + 7 < str[0] )
str[index + 7] = 0; // null terminate after symbol + 6chars of color
str[ index ] = COLOR_CHIP_CHAR; // prefs assume #-format color
p2cstr( str );
int result;
result = PREF_SetCharPref( "editor.last_color_used", (char *)&str[index-1] );
// skip past initial symbol; index-1 since now c-string
}
return false;
}
const Int16 cPopupArrowHeight = 5; // height of the arrow
const Int16 cPopupArrowWidth = 9; // widest width of the arrow
void
CColorPopup::DrawButtonContent(void)
{
CPatternButtonPopupText::DrawButtonContent();
DrawPopupArrow();
}
void
CColorPopup::DrawButtonTitle(void)
{
}
void
CColorPopup::DrawButtonGraphic(void)
{
ResIDT theSaveID = GetGraphicID();
ResIDT theNewID = theSaveID;
RGBColor foreColor, theColor;
const RGBColor black={0,0,0};
Int32 theValue = GetValue();
if (theValue > 0)
{
if ( theValue == COLOR_PICKER_ITEM )
theValue = CURRENT_COLOR_ITEM;
if (GetMenuItemRGBColor((short)theValue, &theColor) == true)
{
CButton::CalcGraphicFrame();
InsetRect(&mCachedGraphicFrame, (mCachedGraphicFrame.right-mCachedGraphicFrame.left-12)/2,
(mCachedGraphicFrame.bottom-mCachedGraphicFrame.top-12)/2);
::GetForeColor(&foreColor);
::RGBForeColor(&black);
::FrameRect(&mCachedGraphicFrame);
::RGBForeColor(&foreColor);
::InsetRect(&mCachedGraphicFrame,1,1);
::RGBForeColor(&theColor);
::PaintRect(&mCachedGraphicFrame);
}
else
theValue = CURRENT_COLOR_ITEM; // not sure this is the right thing;
// it'd be nice if GetMenuItemRGBColor always returned true
}
}
void
CColorPopup::DrawPopupArrow(void)
{
Rect theFrame;
CalcLocalFrameRect(theFrame);
Int16 width = theFrame.right - theFrame.left;
Int16 height = theFrame.bottom - theFrame.top;
theFrame.top += ((height - cPopupArrowHeight) / 2);
theFrame.left = theFrame.right - cPopupArrowWidth - 7;
theFrame.right = theFrame.left + cPopupArrowWidth - 1;
theFrame.bottom = theFrame.top + cPopupArrowHeight - 1;
// check if we have moved past the right edge of the button
// if so, adjust it back to the right edge of the button
if ( theFrame.right > mCachedButtonFrame.right - 4 )
{
theFrame.right = mCachedButtonFrame.right - 4;
theFrame.left = theFrame.right - cPopupArrowWidth - 1;
}
UGraphicGizmos::DrawPopupArrow(
theFrame,
IsEnabled(),
IsActive(),
IsTrackInside());
}
#pragma mark -
// always call ProcessCommandStatus for popup menus which can change values
void
CColorPopup::HandleEnablingPolicy()
{
LCommander* theTarget = LCommander::GetTarget();
MessageT buttonCommand = GetValueMessage();
Boolean enabled = false;
Boolean usesMark = false;
Str255 outName;
Char16 outMark;
if (!CTargetedUpdateMenuRegistry::UseRegistryToUpdateMenus() ||
CTargetedUpdateMenuRegistry::CommandInRegistry(buttonCommand))
{
if (!IsActive() || !IsVisible())
return;
if (!theTarget)
return;
CPatternButtonPopup::HandleEnablingPolicy();
if (buttonCommand)
theTarget->ProcessCommandStatus(buttonCommand, enabled, usesMark, outMark, outName);
}
CPatternButtonPopup::Enable();
}
Boolean
CColorPopup::GetMenuItemRGBColor(short menuItem, RGBColor *theColor)
{
Str255 str;
MenuHandle menuh;
Boolean colorFoundFlag;
menuh = GetMenu()->GetMacMenuH();
::GetMenuItemText( menuh, menuItem, str );
colorFoundFlag = colorPopupParseColor( str, theColor );
return colorFoundFlag;
}
short
CColorPopup::GetMenuItemFromRGBColor(RGBColor *theColor)
{
MenuHandle menuh;
RGBColor tempColor;
Str255 str;
short loop,numItems,retVal=CURRENT_COLOR_ITEM; // return current color if not found
if ((menuh = GetMenu()->GetMacMenuH()) != NULL)
{
numItems = ::CountMItems(menuh);
for (loop=1; loop<= numItems; loop++)
{
::GetMenuItemText( menuh, loop, str);
if (colorPopupParseColor(str, &tempColor) == true)
{
if ((tempColor.red == theColor->red) && (tempColor.blue == theColor->blue) && (tempColor.green == theColor->green))
{
retVal = loop;
break;
}
}
}
}
return retVal;
}

View File

@@ -1,74 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "CPatternButtonPopupText.h"
class CEditView;
class CColorPopup : public CPatternButtonPopupText
{
public:
enum { class_ID = 'Cpop' };
enum { COLOR_DISPLAY_TEXT = 0, // need to fix "*" bug before turning on (among other things)
COLOR_FRAME_BORDER = 2,
COLOR_BOX_WIDTH = 14,
COLOR_BOX_HEIGHT = 14,
COLOR_HEX_DISPLAY_SIZE = 16
};
enum {
LAST_COLOR_PICKED_CHAR = '<',
LAST_COLOR_PICKED_ITEM = 1,
COLOR_CHIP_CHAR = '#',
COLOR_PICKER_CHAR = '*',
COLOR_PICKER_ITEM = 62,
DEFAULT_COLOR_CHAR = '@',
DEFAULT_COLOR_ITEM = 72,
CURRENT_COLOR_CHAR = '.',
CURRENT_COLOR_ITEM = 73
};
typedef CPatternButtonPopupText super;
static void* CreateCColorPopupStream( LStream *inStream ) {return( new CColorPopup (inStream ));};
CColorPopup( LStream *inStream ); // ¥ Constructor
virtual void FinishCreateSelf();
// ¥ drawing
void DrawButtonContent(void);
void DrawButtonTitle(void);
void DrawPopupArrow(void);
void DrawButtonGraphic(void);
// ¥ hooks
virtual void SetValue( Int32 inValue );
virtual void AdjustMenuContents();
virtual void HandlePopupMenuSelect( Point inPopupLoc, Int16 inCurrentItem,
Int16& outMenuID, Int16& outMenuItem );
virtual Boolean HandleNewValue(Int32 inNewValue);
virtual Boolean GetMenuItemRGBColor(short menuItem, RGBColor *theColor);
virtual short GetMenuItemFromRGBColor(RGBColor *theColor);
void InitializeCurrentColor();
protected:
virtual void HandleEnablingPolicy();
CEditView *mEditView;
Boolean mDoSetLastPickedPreference;
};

View File

@@ -1,71 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// ===========================================================================
// CComposerDragTask.cp
// ===========================================================================
#include "CComposerDragTask.h"
// ---------------------------------------------------------------------------
// ¥ CComposerDragTask
// ---------------------------------------------------------------------------
CComposerDragTask::CComposerDragTask(
const EventRecord& inEventRecord,
const Rect& inGlobalFrame,
CHTMLView& inHTMLView)
: mGlobalFrame(inGlobalFrame),
mHTMLView(inHTMLView),
super(inEventRecord)
{
}
// ---------------------------------------------------------------------------
// ¥ ~CComposerDragTask
// ---------------------------------------------------------------------------
CComposerDragTask::~CComposerDragTask()
{
}
// ---------------------------------------------------------------------------
// ¥ AddFlavors
// ---------------------------------------------------------------------------
void
CComposerDragTask::AddFlavors( DragReference /* inDragRef */ )
{
OSErr theErr;
theErr = ::AddDragItemFlavor( mDragRef, (ItemReference)this, emComposerNativeDrag,
nil, 0, flavorNotSaved | flavorSenderTranslated );
ThrowIfOSErr_(theErr);
}
void
CComposerDragTask::MakeDragRegion( DragReference /* inDragRef */, RgnHandle /* inDragRegion */ )
{
AddRectDragItem((ItemReference)&mHTMLView, mGlobalFrame);
}

View File

@@ -1,56 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// ===========================================================================
// CComposerDragTask.h
// ===========================================================================
#ifndef CComposerDragTask_H
#define CComposerDragTask_H
#pragma once
// Includes
#include <LDragTask.h>
class CHTMLView;
#define emComposerNativeDrag 'CNDr' // others defined in "resgui.h"
// Class declaration
class CComposerDragTask : public LDragTask
{
public:
typedef LDragTask super;
CComposerDragTask( const EventRecord& inEventRecord,
const Rect& inGlobalFrame, CHTMLView& inHTMLView );
virtual ~CComposerDragTask();
protected:
virtual void AddFlavors( DragReference inDragRef );
virtual void MakeDragRegion( DragReference inDragRef, RgnHandle inDragRegion );
Rect mGlobalFrame;
CHTMLView& mHTMLView;
};
#endif

View File

@@ -1,320 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "CEditDictionary.h"
#include "CLargeEditField.h" // msg_EditField2
#include "LGAPushButton.h"
#include "resgui.h" // msg_Help
#include "macutil.h" // ShowHelp
#include "CSpellChecker.h" // ISpellChecker
// need to include "ntypes.h" before "xp_help.h" because
// "xp_help.h" doesn't include definition of MWContext though it should
#include "ntypes.h"
#include "xp_help.h" // HELP_SPELL_CHECK
// If user has changed the word field, figure out the length and enable/disable appropriately
void CEditDictionary::ListenToMessage ( MessageT inMessage,
void* ioParam ) {
Assert_(mWordNameField);
Assert_(mAddButton);
// This happens when user types
if (inMessage == msg_EditField2) {
if ((**(mWordNameField->GetMacTEH())).teLength) {
mAddButton->Enable();
} else {
mAddButton->Disable();
}
// User clicked in words table
} else if (inMessage == WordsTableID) {
Boolean atleastoneselected = false;
// Must have at least one cell selected for remove to be valid
STableCell selchecker(0,0);
if (mWordsView->GetNextSelectedCell(selchecker)) {
atleastoneselected = true;
mRemoveButton->Enable();
} else {
mRemoveButton->Disable();
}
// Replace is enabled if there is a valid word in New Word Edit Field
// And exactly one word is selected
if ((**(mWordNameField->GetMacTEH())).teLength && atleastoneselected &&
!mWordsView->GetNextSelectedCell(selchecker) ) {
mReplaceButton->Enable();
} else {
mReplaceButton->Disable();
}
// User left words table
} else if (inMessage == msg_LeaveDictionaryTable) {
mRemoveButton->Disable();
mReplaceButton->Disable();
// If user clicks on Remove Button
} else if (inMessage == RemoveButtonID) {
RemoveSelectedWords();
// If user clicks on Replace Button
} else if (inMessage == ReplaceButtonID) {
ReplaceSelectedWord();
// If user clicks on OK Button
} else if (inMessage == msg_OK) {
MakeDictionaryChangesPermanent();
AttemptClose();
// If user clicks on Cancel Button
} else if (inMessage == msg_Cancel) {
AttemptClose();
// User clicks on Help Button
} else if (inMessage == msg_Help) {
ShowHelp(HELP_SPELL_CHECK);
// This is the case when something important happens (selection, deselection, etc.)
// to the New Word edit field. Check status of word
} else if (inMessage == WordID) {
if ((**(mWordNameField->GetMacTEH())).teLength) {
mAddButton->Enable();
} else {
mAddButton->Disable();
}
// Add word to dictionary
} else if (inMessage == AddButtonID) {
AddNewWord();
} else {
LGADialogBox::ListenToMessage(inMessage, ioParam);
}
}
//-------------------------------------------------------------------------------------
// CEditDictionary::MakeDictionaryChangesPermanent
// Take words in view and set in dictionary
//-------------------------------------------------------------------------------------
void CEditDictionary::MakeDictionaryChangesPermanent() {
STableCell currCellLoc(1,1);
Str255 currCellData;
int maxsize = 255;
mISpellChecker->ResetPersonalDictionary();
for (currCellLoc.row = 1; currCellLoc.row <= mNumWords; currCellLoc.row++) {
maxsize = 255;
mWordsView->GetCellData(currCellLoc, currCellData, maxsize);
mISpellChecker->AddWordToPersonalDictionary(p2cstr(currCellData));
}
}
//-------------------------------------------------------------------------------------
// CEditDictionary::RemoveSelectedWord
// Remove words that are currently selected
//-------------------------------------------------------------------------------------
void CEditDictionary::RemoveSelectedWords() {
STableCell currCellLoc(0,0);
int rowstodelete = 0;
while (mWordsView->GetNextSelectedCell(currCellLoc)) {
rowstodelete++;
}
currCellLoc = mWordsView->GetFirstSelectedCell();
mWordsView->RemoveRows(rowstodelete, currCellLoc.row, true);
mNumWords-=rowstodelete;
}
//-------------------------------------------------------------------------------------
// CEditDictionary::ReplaceSelectedWord
// Remove currently selected word with word in New Word box
//-------------------------------------------------------------------------------------
void CEditDictionary::ReplaceSelectedWord() {
STableCell currCellLoc;
Str255 theWord;
mWordNameField->GetDescriptor(theWord);
currCellLoc = mWordsView->GetFirstSelectedCell();
if (mWordsView->IsValidCell(currCellLoc)) {
mWordsView->SetCellData(currCellLoc, theWord, theWord[0] + 1);
mWordsView->RefreshCell(currCellLoc);
}
}
//-------------------------------------------------------------------------------------
// CEditDictionary::AddNewWord
// Add the word in "New Word" edit field to personal dictionary
//-------------------------------------------------------------------------------------
void CEditDictionary::AddNewWord() {
Str255 theWord;
Str255 currWord;
Assert_(mWordNameField);
Assert_(mISpellChecker);
STableCell cell(1,1);
Uint32 maxbytes;
mWordNameField->GetDescriptor(theWord);
/*
Check to make sure word is not already in the list. If it is, then highlight that word
and return so we don't insert.
*/
for (cell.row = 1; cell.row <= mNumWords; cell.row++) {
maxbytes = 255;
mWordsView->GetCellData(cell, currWord, maxbytes);
if (currWord[0] == theWord[0] &&
!strncmp(reinterpret_cast<const char *>(&(currWord[1])), reinterpret_cast<const char *>(&(theWord[1])), theWord[0]) ) { // If word already exists exit
mWordsView->UnselectAllCells();
mWordsView->SelectCell(cell);
return;
}
}
mWordsView->InsertRows(1, mNumWords, theWord, theWord[0] + 1, Refresh_Yes);
mNumWords++;
cell.row = mNumWords;
mWordsView->UnselectAllCells();
mWordsView->SelectCell(cell);
}
//-------------------------------------------------------------------------------------
// CEditDictionary::FinishCreateSelf
// Setup object references
//-------------------------------------------------------------------------------------
void CEditDictionary::FinishCreateSelf () {
mAddButton = dynamic_cast<LGAPushButton *>(FindPaneByID(AddButtonID));
mReplaceButton = dynamic_cast<LGAPushButton *>(FindPaneByID(ReplaceButtonID));
mRemoveButton = dynamic_cast<LGAPushButton *>(FindPaneByID(RemoveButtonID));
mHelpButton = dynamic_cast<LGAPushButton *>(FindPaneByID(HelpButtonID));
mWordNameField = dynamic_cast<CLargeEditFieldBroadcast *>(FindPaneByID(WordID));
mWordsView = dynamic_cast<CTextTable *>(FindPaneByID( WordsTableID ));
ThrowIfNil_(mAddButton);
ThrowIfNil_(mReplaceButton);
ThrowIfNil_(mRemoveButton);
ThrowIfNil_(mHelpButton);
ThrowIfNil_(mWordNameField);
ThrowIfNil_(mWordsView);
LGADialogBox::FinishCreateSelf();
PenState penState;
::GetPenState( &penState );
mWordsView->AddAttachment( new LColorEraseAttachment( &penState, NULL, NULL, true ) );
mAddButton->Disable(); // Add button should be originally disabled
mReplaceButton->Disable();
mRemoveButton->Disable();
mAddButton->AddListener( this );
mReplaceButton->AddListener( this );
mRemoveButton->AddListener( this );
mWordNameField->AddListener( this );
mWordsView->AddListener( this );
mHelpButton->AddListener( this );
}
// Constructor
CEditDictionary::CEditDictionary(LStream *inStream) : mNumWords(0),
mWordNameField(NULL), mISpellChecker(NULL), mAddButton(NULL), mWordsView(NULL),
mHelpButton(NULL), LGADialogBox (inStream) {
}
//-------------------------------------------------------------------------------------
// CEditDictionary::SetISPellChecker
// Sets personal dictionary and inserts into GUI
//-------------------------------------------------------------------------------------
void CEditDictionary::SetISpellChecker(ISpellChecker *i) {
STableCell cell(0, 1);
int unusedNumber;
char word_buffer[max_word_length];
int curr_word_length;
mISpellChecker = i;
cell.row = 0;
if ((mISpellChecker->GetFirstPersonalDictionaryWord(word_buffer, max_word_length) >= 0) && mWordsView) {
mWordsView->FocusDraw();
do {
mNumWords++;
cell.row++;
curr_word_length = strlen(word_buffer);
CStr255 pascalstring( word_buffer );
mWordsView->InsertRows(1, cell.row-1, NULL ,0, Refresh_Yes);
mWordsView->SetCellData(cell, pascalstring, curr_word_length + 1);
// Insert the words into dialog box here!
} while (mISpellChecker->GetNextPersonalDictionaryWord(word_buffer, max_word_length) >= 0);
}
mWordsView->GetTableSize(mNumWords, unusedNumber);
}
//-------------------------------------------------------------------------------------
// CEditDictionary::GetISPellChecker
// Get the Personal Dictionary
//-------------------------------------------------------------------------------------
ISpellChecker *CEditDictionary::GetISpellChecker() {
return mISpellChecker;
}
//-------------------------------------------------------------------------------------
// CEditDictionaryTable::BeTarget()
// Broadcast messages when we become target so we can setup buttons
//-------------------------------------------------------------------------------------
void CEditDictionaryTable::BeTarget() {
CTextTable::BeTarget();
BroadcastMessage(CEditDictionary::WordsTableID, NULL);
}
//-------------------------------------------------------------------------------------
// CEditDictionaryTable::DontBeTarget()
// Broadcast messages when we lose target so we can setup buttons
//-------------------------------------------------------------------------------------
void CEditDictionaryTable::DontBeTarget() {
CTextTable::DontBeTarget();
BroadcastMessage(CEditDictionary::msg_LeaveDictionaryTable, NULL);
}
//-------------------------------------------------------------------------------------
// HiliteSelection
// Setup back/front colors. Otherwise we sometimes get the de-highlighting
// wrong when switching selection
//-------------------------------------------------------------------------------------
void CEditDictionaryTable::HiliteSelection( Boolean inActively, Boolean inHilite )
{
if (inActively) {
StColorPenState::Normalize();
}
LTableView::HiliteSelection( inActively, inHilite );
}

View File

@@ -1,76 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#pragma once
#include "CTextTable.h"
#include <LGADialogBox.h>
class LGAPushButton;
class CLargeEditFieldBroadcast;
class ISpellChecker;
class CEditDictionary : public LGADialogBox {
public:
virtual void ListenToMessage ( MessageT inMessage,
void* ioParam );
virtual void FinishCreateSelf();
CEditDictionary(LStream *inStream);
void SetISpellChecker(ISpellChecker *i);
ISpellChecker *GetISpellChecker();
enum { class_ID = 'CEdD', res_ID = 5298 };
enum { AddButtonID = 201 , WordID = 200, WordsTableID = 202, ReplaceButtonID = 203,
RemoveButtonID = 204, HelpButtonID = 205, msg_LeaveDictionaryTable = 208 };
enum { max_word_length = 50 }; // Max length of a word
protected:
void MakeDictionaryChangesPermanent();
virtual void AddNewWord();
virtual void RemoveSelectedWords();
virtual void ReplaceSelectedWord();
CLargeEditFieldBroadcast *mWordNameField; // The field where user edits word
LGAPushButton *mAddButton; // Add new word button
LGAPushButton *mReplaceButton;
LGAPushButton *mRemoveButton;
LGAPushButton *mHelpButton;
CTextTable *mWordsView; // The Personal Dictionary view
int mNumWords;
ISpellChecker *mISpellChecker;
};
class CEditDictionaryTable : public CTextTable {
public:
enum {class_ID = 'CEDT' };
virtual void BeTarget();
virtual void DontBeTarget();
CEditDictionaryTable(LStream *inStream) : CTextTable(inStream) { }
void HiliteSelection( Boolean inActively, Boolean inHilite );
};

File diff suppressed because it is too large Load Diff

View File

@@ -1,271 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#pragma once
#include <TextServices.h>
#include "CHTMLView.h"
// dangling prototype
Boolean GetCaretPosition(MWContext *context, LO_Element * element, int32 caretPos,
int32* caretX, int32* caretYLow, int32* caretYHigh );
class LGAPopup;
class CPatternButtonPopup;
class CColorPopup;
class CComposeSession;
class CFontMenuPopup;
class HTMLInlineTSMProxy;
class HoldUpdatesProxy;
class CEditView: public CHTMLView
{
#if !defined(__MWERKS__) || (__MWERKS__ >= 0x2000)
typedef CHTMLView inherited;
#endif
public:
enum { pane_ID = 'html', class_ID = 'Edtp', dashMark = '-' };
enum {
STRPOUND_EDITOR_MENUS = 5101,
EDITOR_MENU_SHOW_PARA_SYMBOLS = 1,
EDITOR_MENU_HIDE_PARA_SYMBOLS = 2,
EDITOR_MENU_UNDO = 3,
EDITOR_MENU_REDO = 4,
EDITOR_MENU_SHOW_COMP_TOOLBAR = 5,
EDITOR_MENU_HIDE_COMP_TOOLBAR = 6,
EDITOR_MENU_SHOW_FORMAT_TOOLBAR = 7,
EDITOR_MENU_HIDE_FORMAT_TOOLBAR = 8,
EDITOR_MENU_SHOW_TABLE_BORDERS = 9,
EDITOR_MENU_HIDE_TABLE_BORDERS = 10,
EDITOR_MENU_CHARACTER_ATTRIBS = 11,
EDITOR_MENU_IMAGE_ATTRIBUTES = 12,
EDITOR_MENU_LINK_ATTRIBUTES = 13,
EDITOR_MENU_LINE_ATTRIBUTES = 14,
EDITOR_MENU_TABLE_ATTRIBUTES = 15,
EDITOR_MENU_UNKNOWN_ATTRIBUTES = 16,
EDITOR_MENU_TARGET_ATTRIBUTES = 17
};
enum {
eMouseHysteresis = 6,
eSelectionBorder = 3
};
// ¥¥ Constructors
CEditView(LStream * inStream);
~CEditView();
virtual void FinishCreateSelf(void);
// ¥¥ Command handling
virtual Boolean ObeyCommand( CommandT inCommand, void *ioParam );
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
virtual void FindCommandStatus( CommandT inCommand,
Boolean& outEnabled, Boolean& outUsesMark,
Char16& outMark,Str255 outName );
Boolean FindCommandStatusForContextMenu( CommandT inCommand,
Boolean &outEnabled, Boolean &outUsesMark,
Char16 &outMark, Str255 outName );
Boolean IsPastable(Char16 theChar);
int FindQueuedKeys( char *keys_in_q );
virtual Boolean HandleKeyPress( const EventRecord& inKeyEvent );
virtual void AdaptToSuperFrameSize( Int32 inSurrWidthDelta,
Int32 inSurrHeightDelta, Boolean inRefresh );
virtual void BeTarget();
virtual void DontBeTarget();
void HandleCut();
void HandleCopy();
void HandlePaste();
TSMDocumentID midocID;
virtual void CreateFindWindow();
virtual void SetContext( CBrowserContext* inNewContext );
virtual URL_Struct *GetURLForPrinting( Boolean& outSuppressURLCaption, MWContext *printingContext );
void TakeOffDuty();
virtual void PutOnDuty(LCommander*);
Bool PtInSelectedRegion(SPoint32 cpPoint );
virtual void DrawSelf( void );
virtual void ActivateSelf();
virtual void DeactivateSelf();
Bool SaveDocument();
Bool SaveDocumentAs();
Bool VerifySaveUpToDate();
// ¥¥ cursor calls and caret functionality
virtual void AdjustCursorSelf( Point inPortPt, const EventRecord& inMacEvent );
virtual void SpendTime( const EventRecord& inMacEvent );
void DrawCaret( Boolean doErase );
void EraseCaret();
void HideCaret( Boolean mhide ) { EraseCaret(); mHideCaret = mhide; }
void PlaceCaret(int32 caretX, int32 caretYLow, int32 caretYHigh);
void RemoveCaret();
void DisplayGenericCaret( MWContext *context, LO_Element * pLoAny,
ED_CaretObjectPosition caretPos );
// ¥¥ Drag and Drop
virtual Boolean ItemIsAcceptable (DragReference dragRef, ItemReference itemRef);
virtual void ReceiveDragItem( DragReference inDragRef, DragAttributes inDragAttr,
ItemReference inItemRef, Rect& inItemBounds );
virtual void DoDragSendData( FlavorType inFlavor, ItemReference inItemRef,
DragReference inDragRef );
virtual void ClickSelf (const SMouseDownEvent& where );
virtual Boolean ClickTrackSelection( const SMouseDownEvent& inMouseDown,
CHTMLClickRecord& inClickRecord );
virtual Boolean SetDefaultCSID( Int16 inPreferredCSID );
CBrowserContext *GetNSContext() { return mContext; };
void SetHoldUpdates(HoldUpdatesProxy* inHoldUpdates) {mHoldUpdates = inHoldUpdates;};
Boolean mEditorDoneLoading;
Boolean IsDoneLoading() const { return mEditorDoneLoading; }
// ¥¥ FE_* calls
void DocumentChanged( int32 iStartY, int32 iHeight );
void GetDocAndWindowPosition( SPoint32 &frameLocation, SPoint32 &imageLocation, SDimension16 &frameSize );
// ¥¥ formatting query calls
void UseCharFormattingCache() { CanUseCharFormatting(); mUseCharFormattingCache = true; }
void DontUseCharFormattingCache() { mUseCharFormattingCache = false; }
class StUseCharFormattingCache
{
public:
StUseCharFormattingCache( CEditView& p ) : view(p) { view.UseCharFormattingCache(); }
~StUseCharFormattingCache() { view.DontUseCharFormattingCache(); }
private:
CEditView &view;
};
LGAPopup * mParagraphToolbarPopup;
LGAPopup * mSizeToolbarPopup;
CFontMenuPopup * mFontToolbarPopup;
CPatternButtonPopup * mAlignToolbarPopup;
CColorPopup * mColorPopup;
protected:
virtual Boolean IsGrowCachingEnabled() const { return !mEditorDoneLoading; }
virtual void LayoutNewDocument( URL_Struct *inURL, Int32 *inWidth,
Int32 *inHeight, Int32 *inMarginWidth, Int32 *inMarginHeight );
// ¥¥ FE_* calls
virtual void SetDocPosition( int inLocation, Int32 inX, Int32 inY,
Boolean inScrollEvenIfVisible = false);
virtual void DisplayLineFeed( int inLocation, LO_LinefeedStruct *inLinefeedStruct, XP_Bool inNeedBG );
virtual void DisplayHR( int inLocation, LO_HorizRuleStruct *inRuleStruct );
virtual void DisplaySubtext( int inLocation, LO_TextStruct *inText,
Int32 inStartPos, Int32 inEndPos, XP_Bool inNeedBG );
virtual void EraseBackground( int inLocation, Int32 inX, Int32 inY,
Uint32 inWidth, Uint32 inHeight, LO_Color *inColor );
virtual void GetDefaultBackgroundColor(LO_Color* outColor) const;
virtual void DisplayTable( int inLocation, LO_TableStruct *inTableStruct );
virtual void DisplayCell( int inLocation, LO_CellStruct *inCellStruct );
virtual void InvalidateEntireTableOrCell( LO_Element* inElement );
virtual void DisplayAddRowOrColBorder( XP_Rect* inRect, XP_Bool inDoErase );
virtual void UpdateEnableStates();
virtual void DisplayFeedback( int inLocation, LO_Element *inElement );
virtual void DisplaySelectionFeedback( uint16 ele_attrmask, const Rect &inRect );
virtual void InsideDropArea( DragReference inDragRef );
virtual void EnterDropArea( DragReference inDragRef, Boolean inDragHasLeftSender );
DragReference mDragRef;
enum {
ED_SELECTION_BORDER = 3
};
enum { MAX_Q_SIZE = 12 }; // Used for checking out key strokes waiting in FindQueuedKeys
void InsertDefaultLine();
void DoReload( void );
void ToFromList( intn listType, ED_ListType elementType );
void NoteEditorRepagination( void );
Boolean CanUseCharFormatting();
Boolean IsMouseInSelection( SPoint32 pt, CL_Layer *curLayer, Rect& selectRect );
Boolean mDoContinueSelection;
HTMLInlineTSMProxy* mProxy;
HoldUpdatesProxy* mHoldUpdates;
// more caret blinking and related stuff
Boolean mCaretDrawn, mCaretActive;
Boolean mHideCaret;
Boolean mDisplayParagraphMarks;
Point mOldPoint; // Last place cursor was adjusted. No initializing
long mOldLastElementOver; // id of the last element the cursor was over
unsigned long mLastBlink;
int32 mCaretX;
int32 mCaretYLow;
int32 mCaretYHigh;
Boolean mUseCharFormattingCache;
Boolean mIsCharFormatting;
// these are only to be used during drag of data in composer
char *mDragData; // warning this really isn't a "char" but void* data!!!
int32 mDragDataLength;
}; // class CEditView
//======================================
class CMailEditView : public CEditView
//======================================
{
public:
enum { pane_ID = 'html', class_ID = 'MEdp' };
// ¥¥ Constructors
CMailEditView(LStream * inStream);
virtual void InstallBackgroundColor();
virtual void GetDefaultBackgroundColor(LO_Color* outColor) const;
virtual void InitMailCompose();
void SetComposeSession( CComposeSession *c ) { mComposeSession = c; };
void SetInitialText( const char *textp );
void InsertMessageCompositionText( const char* text,
XP_Bool leaveCursorBeginning, XP_Bool isHTML );
void DisplayDefaultTextBody();
private:
Int32 mStartQuoteOffset;
Int32 mEndQuoteOffset;
Boolean mHasAutoQuoted;
Boolean mHasInsertSignature;
Boolean mCursorSet;
char *mInitialText; // Draft text
CComposeSession *mComposeSession;
}; // class CMailEditView

View File

@@ -1,626 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "CEditorWindow.h"
#include "CBrowserContext.h"
#include "resgui.h"
#include "CFormattingToolBar.h"
#include "CFontMenuAttachment.h"
#include "CToolbarPopup.h"
#include "CPatternButtonPopupText.h"
#include "COpenRecentlyEditedPopup.h"
#include "CColorPopup.h"
#include "CEditDictionary.h"
#include "CTextTable.h"
#include "CTableKeySingleSelector.h"
// macfe
#include "mversion.h" // ID_STRINGS
#include "URobustCreateWindow.h"
#include "uprefd.h"
#include "uerrmgr.h"
#include "uapp.h"
#include "meditdlg.h" // CTabbedDialog
#include "meditor.h" // HandleModalDialog
#include "CEditView.h"
#include "ufilemgr.h"
// Netscape
#include "net.h" // NET_cinfo_find_type
#include "proto.h" // XP_IsContextBusy
#include "edt.h"
#include "shist.h"
#include "prefapi.h" // PREF_GetBoolPref
#ifdef PROFILE
#pragma profile on
#endif
// pane id constants - for ShowOneDragBar
const PaneIDT Paragraph_Bar_PaneID = 'DBar';
const PaneIDT Character_Bar_PaneID = 'NBar';
const char* Pref_ShowParagraphBar = "editor.show_paragraph_toolbar";
const char* Pref_ShowCharacterBar = "editor.show_character_toolbar";
enum { eParagraphBar,
eCharacterBar };
CEditorWindow::CEditorWindow( LStream* inStream )
:CBrowserWindow(inStream)
{
SetWindowType( WindowType_Editor );
}
static // PRIVATE
CMediatedWindow* GetFrontWindowByType( OSType windowType )
{
CMediatedWindow* theWindow = NULL;
CWindowIterator iter(windowType);
iter.Next(theWindow);
return theWindow;
}
// given an mwcontext (non-busy, with a history), select the matching editor window
// or open an editor window based on that mwcontext
// if all else fails (and memory is not low), create an empty editor window
void CEditorWindow::MakeEditWindowFromBrowser( MWContext* mwcontext )
{
if ( Memory_MemoryIsLow() )
return;
History_entry* entry = NULL;
if ( mwcontext && !XP_IsContextBusy( mwcontext ) )
entry = SHIST_GetCurrent(&mwcontext->hist);
if ( entry && entry->address)
{
// If there is already an editor window open for this url
// just switch to it and keep this browser window open.
CMediatedWindow * win;
CWindowIterator iter(WindowType_Editor);
while (iter.Next(win))
{
CNSContext* curContext = ((CBrowserWindow *)win)->GetWindowContext();
MWContext* context;
context = curContext ? curContext->operator MWContext*() : NULL;
if (context && EDT_IS_EDITOR(context))
{
History_entry* newEntry = SHIST_GetCurrent(&context->hist);
if (newEntry && newEntry->address && !strcmp(newEntry->address, entry->address))
{
win->Show();
win->Select();
return;
}
}
}
if (CEditorWindow::MakeEditWindow(mwcontext, NULL) == NULL) // new window based on history of this window
return; // don't close this one on error.
}
else
{
CEditorWindow::MakeEditWindow(NULL, NULL); // make a completely new window
}
}
// EDT_PreOpenCallbackFn
static void createEditorWindowCallback( XP_Bool userCanceled, char* pURL, void* hook )
{
if ( !userCanceled )
{
EditorCreationStruct *edtCreatePtr = (EditorCreationStruct *)hook;
if ( hook )
{
if ( edtCreatePtr->existingURLstruct && edtCreatePtr->existingURLstruct->address )
{
XP_FREE( edtCreatePtr->existingURLstruct->address );
edtCreatePtr->existingURLstruct->address = XP_STRDUP( pURL );
}
}
// substitute new URL
CEditorWindow::CreateEditorWindowStage2( edtCreatePtr );
}
}
CEditorWindow* CEditorWindow::MakeEditWindow( MWContext* old_context, URL_Struct* url )
{
Boolean urlCameInNULL = (url == NULL);
// if we don't have an URL, try to get it from the old_context's window history
if (url == NULL && old_context != NULL)
{
CBrowserContext *browserContext = (CBrowserContext *)old_context->fe.newContext;
History_entry* entry = browserContext->GetCurrentHistoryEntry(); // Take the last instead of the first history entry.
if ( entry )
{
url = SHIST_CreateURLStructFromHistoryEntry( old_context, entry );
if ( url )
url->force_reload = NET_NORMAL_RELOAD;
}
else if ( CPrefs::GetBoolean( CPrefs::LoadHomePage ) )
{
CStr255 home = CPrefs::GetString( CPrefs::HomePage );
if ( home.Length() > 0 )
url = NET_CreateURLStruct( home, NET_NORMAL_RELOAD );
}
}
// we want to open a new blank edit window
// or we are still having troubles... fall back to our old tried and true blank page
if (url == NULL)
url = NET_CreateURLStruct ("about:editfilenew", NET_NORMAL_RELOAD );
// FIX THIS!!! the above line should use "XP_GetString(XP_EDIT_NEW_DOC_NAME)"
// time of reckoning. We really, really need an URL and address at this point...
// I don't know what an url without an address is anyway...
if (url == NULL || url->address == NULL)
return NULL;
// now make sure that the url is a valid type to edit.
NET_cinfo *cinfo = NET_cinfo_find_type (url->address);
if (cinfo == NULL || cinfo->type == NULL ||
(strcasecomp (cinfo->type, TEXT_HTML)
&& strcasecomp (cinfo->type, UNKNOWN_CONTENT_TYPE)
&& strcasecomp (cinfo->type, TEXT_PLAIN)))
{
ErrorManager::PlainAlert( NOT_HTML );
return NULL;
}
EditorCreationStruct *edtCreatePtr = (EditorCreationStruct *)XP_ALLOC( sizeof( EditorCreationStruct ) );
if ( edtCreatePtr )
{
edtCreatePtr->context = old_context;
edtCreatePtr->existingURLstruct = url;
edtCreatePtr->isEmptyPage = old_context == NULL && urlCameInNULL;
}
if ( urlCameInNULL && old_context == NULL )
{
return CreateEditorWindowStage2( edtCreatePtr );
}
else
{
EDT_PreOpen( old_context, url->address, createEditorWindowCallback, edtCreatePtr );
return NULL;
}
}
CEditorWindow *CEditorWindow::CreateEditorWindowStage2( EditorCreationStruct *edtCreatePtr )
{
// now we can create an editor window since we don't already have one for this url.
/* instead of just calling LWindow::CreateWindow(), we do it ourselves by hand here
* so that we can set the window bounds before we call FinishCreate().
*/
if ( edtCreatePtr == NULL )
return NULL;
CEditorWindow* newWindow = NULL;
SetDefaultCommander(CFrontApp::GetApplication());
try {
OSErr error;
URobustCreateWindow::ReadObjects( 'PPob', CEditorWindow::res_ID, &newWindow, &error );
Assert_(newWindow);
FailOSErr_(error);
if (newWindow == NULL)
{
XP_FREE( edtCreatePtr );
return NULL;
}
newWindow->FinishCreate();
if (newWindow->HasAttribute(windAttr_ShowNew))
newWindow->Show();
UReanimator::LinkListenerToControls( newWindow, newWindow, CEditorWindow::res_ID );
}
catch(...)
{
if ( newWindow )
delete newWindow;
XP_FREE( edtCreatePtr );
return NULL;
}
Boolean hasURLstruct = edtCreatePtr->existingURLstruct && edtCreatePtr->existingURLstruct->address;
CBrowserContext *nscontext = new CBrowserContext();
newWindow->SetWindowContext( nscontext );
CURLDispatcher::DispatchURL( edtCreatePtr->existingURLstruct, nscontext, false, false, CEditorWindow::res_ID );
if ( edtCreatePtr->context )
{
nscontext->InitHistoryFromContext( (CBrowserContext *)edtCreatePtr->context->fe.newContext );
}
else
{
// the url will eventually be freed when the load is complete.
}
// set window title here (esp. for "open")
if ( !edtCreatePtr->isEmptyPage
&& edtCreatePtr->existingURLstruct && edtCreatePtr->existingURLstruct->address )
{
char *pSlash = strrchr( edtCreatePtr->existingURLstruct->address, '/' );
if ( pSlash )
pSlash += 1; // move past '/'
newWindow->NoteDocTitleChanged( pSlash );
}
XP_FREE( edtCreatePtr );
return newWindow;
}
void CEditorWindow::SetWindowContext(CBrowserContext* inContext)
{
if ( inContext )
{
MWContext *context;
context = inContext->operator MWContext*();
if ( context )
{
context->is_editor = true;
NET_CheckForTimeBomb( context );
}
}
CBrowserWindow::SetWindowContext( inContext );
}
void CEditorWindow::NoteDocTitleChanged( const char* inNewTitle )
{
// there is one bogus set-title from layout that we want to skip...
// We are hard coding "editfilenew" here because it is already hardcoded
// a million other places...
if ( inNewTitle && XP_STRCMP( inNewTitle, "editfilenew" ) == 0 )
return;
CNSContext *theContext = GetWindowContext();
char *baseName = LO_GetBaseURL( theContext->operator MWContext*() ); // don't free this...
// strip out username and password so user doesn't see them in window title
char *location = NULL;
if ( baseName )
NET_ParseUploadURL( baseName, &location, NULL, NULL );
CStr255 csBaseURL(location);
// if this page has a local "file:" url, then just show the file name (skip the url and directory crap.)
if ( location && NET_IsLocalFileURL(location) )
{
char *localName = NULL;
XP_ConvertUrlToLocalFile( location, &localName );
if (localName)
{
#if 0
char *pSlash = strrchr(localName, '/');
if (pSlash)
{ // is there is a slash, move everything AFTER the last slash to the front
pSlash++;
XP_STRCPY(localName, pSlash);
}
#endif
csBaseURL = localName;
XP_FREE(localName);
}
}
CStr255 netscapeTitle;
CStr255 subTitle;
::GetIndString( netscapeTitle, ID_STRINGS, APPNAME_STRING_INDEX );
::GetIndString( subTitle, WINDOW_TITLES_RESID, 3 );
netscapeTitle += " ";
netscapeTitle += subTitle;
netscapeTitle += " - [";
// set up page title manually; rather than rely on XP string passed in
EDT_PageData * pageData = EDT_GetPageData( theContext->operator MWContext*() );
if ( pageData && pageData->pTitle && pageData->pTitle[0] )
{
netscapeTitle += pageData->pTitle;
if (csBaseURL.Length())
netscapeTitle += " : ";
}
if ( pageData )
EDT_FreePageData( pageData );
// add file path to end
if (csBaseURL.Length())
{
netscapeTitle += csBaseURL;
}
netscapeTitle += "]";
SetDescriptor( netscapeTitle );
if ( location )
XP_FREE( location );
}
void CEditorWindow::RegisterViewTypes()
{
// Registers all its view types
RegisterClass_( CEditorWindow);
RegisterClass_( CEditView);
RegisterClass_( MultipleSelectionSingleColumn); // newer, better class?
RegisterClass_( CTarget);
RegisterClass_( CLineProp);
RegisterClass_( CFormattingToolBar);
RegisterClass_( CToolbarPopup); // newer, better class?
RegisterClass_( CIconToolbarPopup); // newer, better class?
RegisterClass_( CColorPopup);
RegisterClass_( CFontMenuPopup );
RegisterClass_( CChameleonCaption); // newer, better class?
RegisterClass_( CChameleonView); // newer, better class?
CTabbedDialog::RegisterViewTypes();
RegisterClass_( CTextTable); // newer, better class?
RegisterClass_( CTableKeySingleSelector); // newer, better class?
RegisterClass_( CPatternButtonPopupText); // newer, better class?
RegisterClass_( LOffscreenView);
RegisterClass_( COpenRecentlyEditedPopup );
RegisterClass_( CEditDictionary);
RegisterClass_( CEditDictionaryTable);
}
void CEditorWindow::FinishCreateSelf()
{
CBrowserWindow::FinishCreateSelf();
// Show/hide toolbars based on preference settings
XP_Bool value;
PREF_GetBoolPref(Pref_ShowParagraphBar, &value);
mToolbarShown[eParagraphBar] = value;
ShowOneDragBar(Paragraph_Bar_PaneID, value);
PREF_GetBoolPref(Pref_ShowCharacterBar, &value);
mToolbarShown[eCharacterBar] = value;
ShowOneDragBar(Character_Bar_PaneID, value);
}
void CEditorWindow::ListenToMessage( MessageT inMessage, void* ioParam )
{
switch (inMessage)
{
case msg_NSCDocTitleChanged:
NoteDocTitleChanged((const char*)ioParam);
break;
default:
{
if ( inMessage == 'Para' )
{
switch (*(long*)ioParam)
{
case 1: inMessage = cmd_Format_Paragraph_Normal; break;
case 2: inMessage = cmd_Format_Paragraph_Head1; break;
case 3: inMessage = cmd_Format_Paragraph_Head2; break;
case 4: inMessage = cmd_Format_Paragraph_Head3; break;
case 5: inMessage = cmd_Format_Paragraph_Head4; break;
case 6: inMessage = cmd_Format_Paragraph_Head5; break;
case 7: inMessage = cmd_Format_Paragraph_Head6; break;
case 8: inMessage = cmd_Format_Paragraph_Address; break;
case 9: inMessage = cmd_Format_Paragraph_Formatted; break;
case 10: inMessage = cmd_Format_Paragraph_List_Item; break;
case 11: inMessage = cmd_Format_Paragraph_Desc_Title; break;
case 12: inMessage = cmd_Format_Paragraph_Desc_Text; break;
}
}
else if ( inMessage == 'Size' )
{
switch (*(long*)ioParam)
{
case 1: inMessage = cmd_Format_Font_Size_N2; break;
case 2: inMessage = cmd_Format_Font_Size_N1; break;
case 3: inMessage = cmd_Format_Font_Size_0; break;
case 4: inMessage = cmd_Format_Font_Size_P1; break;
case 5: inMessage = cmd_Format_Font_Size_P2; break;
case 6: inMessage = cmd_Format_Font_Size_P3; break;
case 7: inMessage = cmd_Format_Font_Size_P4; break;
}
}
else if ( inMessage == 'Algn' )
{
switch (*(long*)ioParam)
{
case 1: inMessage = cmd_JustifyLeft; break;
case 2: inMessage = cmd_JustifyCenter; break;
case 3: inMessage = cmd_JustifyRight; break;
}
}
// GetHTMLView() guaranteed not to fail
GetHTMLView()->ObeyCommand( inMessage, ioParam );
break;
}
}
}
// EDT_PreCloseCallbackFn
static void closeEditorWindowCallback( void* hook )
{
CEditorWindow *editorWindow = (CEditorWindow *)hook;
if ( editorWindow )
editorWindow->SetPluginDoneClosing();
}
Boolean CEditorWindow::ObeyCommand( CommandT inCommand, void *ioParam )
{
switch ( inCommand )
{
case cmd_NewWindowEditor:
CEditorWindow::MakeEditWindow( NULL, NULL );
break;
case cmd_ViewSource:
// Delegate this to the view.
if ( ((CEditView *)GetHTMLView())->IsDoneLoading() )
GetHTMLView()->ObeyCommand(inCommand, ioParam);
break;
case cmd_Toggle_Paragraph_Toolbar:
ToggleDragBar(Paragraph_Bar_PaneID, eParagraphBar, Pref_ShowParagraphBar);
break;
case cmd_Toggle_Character_Toolbar:
ToggleDragBar(Character_Bar_PaneID, eCharacterBar, Pref_ShowCharacterBar);
break;
case cmd_Close:
case cmd_Quit: // we'll just intercept these and then send them on to the default case
MWContext *mwcontext = GetWindowContext()->operator MWContext*();
History_entry* newEntry = SHIST_GetCurrent(&mwcontext->hist);
CStr255 fileName;
if ( newEntry && newEntry->address )
fileName = newEntry->address;
if ( ((CEditView *)GetHTMLView())->IsDoneLoading() && EDT_DirtyFlag( *GetWindowContext() ) )
{
Select(); // This helps during a quit or "close all"
MessageT itemHit = HandleModalDialog( EDITDLG_SAVE_BEFORE_QUIT, fileName, NULL );
if (itemHit == cancel)
return true;
if (itemHit == ok)
{ // save
if ( !((CEditView *)GetHTMLView())->SaveDocument() )
return true;
}
EDT_SetDirtyFlag( mwcontext, false ); // we have to do this or else when we quit, we will be asked twice to save
}
// need to let this work asynchronously; make our own internal loop
if ( ((CEditView *)GetHTMLView())->IsDoneLoading() && newEntry && newEntry->address )
{
mPluginDoneClosing = false;
EDT_PreClose( mwcontext, newEntry->address, closeEditorWindowCallback, this );
do
{
CFrontApp::GetApplication()->ProcessNextEvent();
} while ( !mPluginDoneClosing );
}
// fall through
default:
{
return CBrowserWindow::ObeyCommand (inCommand, ioParam);
}
}
return TRUE;
}
void CEditorWindow::FindCommandStatus( CommandT inCommand,
Boolean& outEnabled, Boolean& outUsesMark, Char16& outMark,
Str255 outName )
{
short index;
outUsesMark = FALSE;
outEnabled = false;
switch ( inCommand )
{
case cmd_ViewSource:
// Delegate this to the view.
if ( ((CEditView *)GetHTMLView())->IsDoneLoading() )
GetHTMLView()->FindCommandStatus(inCommand, outEnabled, outUsesMark, outMark, outName);
break;
case cmd_Toggle_Character_Toolbar:
outEnabled = ((CEditView *)GetHTMLView())->IsDoneLoading();
index = mToolbarShown[eCharacterBar] ? CEditView::EDITOR_MENU_HIDE_COMP_TOOLBAR
: CEditView::EDITOR_MENU_SHOW_COMP_TOOLBAR;
::GetIndString( outName, CEditView::STRPOUND_EDITOR_MENUS, index );
break;
case cmd_Toggle_Paragraph_Toolbar:
outEnabled = ((CEditView *)GetHTMLView())->IsDoneLoading();
index = mToolbarShown[eParagraphBar] ? CEditView::EDITOR_MENU_HIDE_FORMAT_TOOLBAR
: CEditView::EDITOR_MENU_SHOW_FORMAT_TOOLBAR;
::GetIndString( outName, CEditView::STRPOUND_EDITOR_MENUS, index );
break;
default:
CBrowserWindow::FindCommandStatus(inCommand, outEnabled, outUsesMark, outMark, outName );
}
}
// Called when we are trying to quit the application
Boolean CEditorWindow::AttemptQuitSelf( long inSaveOption )
{
MWContext *mwcontext = GetWindowContext()->operator MWContext*();
if ( EDT_DirtyFlag( mwcontext ) )
{
History_entry* newEntry = SHIST_GetCurrent(&mwcontext->hist);
CStr255 fileName;
if ( newEntry && newEntry->address )
fileName = newEntry->address;
if ( kAEAsk == inSaveOption )
{
MessageT itemHit = HandleModalDialog( EDITDLG_SAVE_BEFORE_QUIT, fileName, NULL );
if ( cancel == itemHit )
return false;
}
// save
if ( !((CEditView *)GetHTMLView())->SaveDocument() )
return false;
}
return true;
}
#ifdef PROFILE
#pragma profile off
#endif

View File

@@ -1,67 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#pragma once
#include "CBrowserWindow.h"
struct EditorCreationStruct {
MWContext *context; // may be NULL
URL_Struct *existingURLstruct;
Boolean isEmptyPage;
};
/******************************************************************************
* CEditorWindow is really just a CBrowserWindow with some changes for an editor window.
******************************************************************************/
class CEditorWindow: public CBrowserWindow
{
public:
enum {class_ID = 'edtw', res_ID = 10000};
// ¥¥ Constructors
static void RegisterViewTypes(); // Registers all its view types
static CEditorWindow *MakeEditWindow( MWContext* old_context, URL_Struct* url );
static CEditorWindow *CreateEditorWindowStage2( EditorCreationStruct *edtCreatePtr);
static void MakeEditWindowFromBrowser( MWContext* mwcontext );
CEditorWindow(LStream * inStream);
virtual void FinishCreateSelf();
virtual void SetWindowContext(CBrowserContext* inContext);
// ¥¥ Command handling
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
virtual Boolean ObeyCommand( CommandT inCommand, void *ioParam );
virtual void FindCommandStatus( CommandT inCommand,
Boolean& outEnabled, Boolean& outUsesMark,
Char16& outMark,Str255 outName );
virtual void NoteDocTitleChanged( const char* title );
virtual Boolean AttemptQuitSelf( long inSaveOption );
static CEditorWindow* FindAndShow(Boolean inMakeNew = false);
virtual void SetPluginDoneClosing() { mPluginDoneClosing = true; }
protected:
virtual ResIDT GetStatusResID(void) const { return CEditorWindow::res_ID; }
Boolean mPluginDoneClosing;
};

View File

@@ -1,299 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "CFontMenuAttachment.h"
#include "CEditView.h"
#include "CBrowserContext.h" // operator MWContext*()
#include "resgui.h" // cmd_FormatViewerFont, cmd_FormatFixedFont, FONT_MENU_BASE
#include "macutil.h" // CMediatedWindow
#include "edt.h"
LMenu *CFontMenuAttachment::sMenu = NULL;
//===========================================================
// CFontMenuAttachment
//===========================================================
CFontMenuAttachment::CFontMenuAttachment()
{
UpdateMenu();
}
MWContext *CFontMenuAttachment::GetTopWindowContext()
{
// Ok, ok. I know this is skanky,
// but there is no common way to get the context from a window: it depends on the window type.
// So, we look around for a CEditView somewhere in the top window.
// A CEditView we understand (and get an MWContext from).
CMediatedWindow* topWin = NULL; // find the top window to use the plugin in
CWindowIterator iter(WindowType_Any);
iter.Next(topWin);
if (topWin == NULL
|| ! (topWin->GetWindowType() == WindowType_Editor || topWin->GetWindowType() == WindowType_Compose) )
return NULL;
CEditView *editView = (CEditView *)(topWin->FindPaneByID(CEditView::pane_ID));
if (editView == NULL || editView->GetNSContext() == NULL)
return NULL;
return editView->GetNSContext()->operator MWContext*();
}
// Processes:
//
void CFontMenuAttachment::ExecuteSelf( MessageT inMessage, void* ioParam )
{
mExecuteHost = FALSE;
switch ( inMessage )
{
case msg_CommandStatus:
{
SCommandStatus* status = (SCommandStatus*)ioParam;
EDT_CharacterData* better;
if ( status->command == cmd_FormatViewerFont || status->command == cmd_FormatFixedFont
|| ( status->command >= FONT_MENU_BASE && status->command <= FONT_MENU_BASE_LAST ) )
{
*(status->enabled) = true;
*(status->usesMark) = false;
better = NULL;
MWContext *cntxt = GetTopWindowContext();
if ( cntxt )
better = EDT_GetCharacterData( cntxt );
if ( better == NULL )
{
*(status->enabled) = false;
return;
}
}
switch ( status->command )
{
case cmd_FormatViewerFont:
*(status->usesMark) = ( ! ( better->values & TF_FIXED ) && !( better->values & TF_FONT_FACE ) );
*(status->mark) = *(status->usesMark) ? checkMark : 0;
*(status->usesMark) = true;
EDT_FreeCharacterData(better);
mExecuteHost = false;
return;
break;
case cmd_FormatFixedFont:
*(status->usesMark) = ( better->values & TF_FIXED ) != 0;
*(status->mark) = *(status->usesMark) ? checkMark : 0;
*(status->usesMark) = true;
EDT_FreeCharacterData(better);
mExecuteHost = false;
return;
break;
default:
if ( status->command >= FONT_MENU_BASE && status->command <= FONT_MENU_BASE_LAST )
{
// get font menu item
Str255 fontItemString;
fontItemString[0] = 0;
MenuHandle menuh = GetMenu()->GetMacMenuH();
::GetMenuItemText ( menuh, status->command - FONT_MENU_BASE + PERM_FONT_ITEMS + 1, fontItemString );
p2cstr( fontItemString );
// in mixed situation the mask bit will be cleared
*(status->usesMark) = ( better->values & TF_FONT_FACE && better->pFontFace && XP_STRLEN((char *)fontItemString) > 0
&& XP_STRSTR( better->pFontFace, (char *)fontItemString ) != NULL );
*(status->mark) = *(status->usesMark) ? checkMark : 0;
*(status->usesMark) = true;
EDT_FreeCharacterData(better);
mExecuteHost = false;
return;
}
}
}
break;
case cmd_FormatViewerFont:
MWContext *cntxt2 = GetTopWindowContext();
if ( cntxt2 )
EDT_SetFontFace( cntxt2, NULL, 0, NULL );
break;
case cmd_FormatFixedFont:
MWContext *cntxt3 = GetTopWindowContext();
if ( cntxt3 )
EDT_SetFontFace( cntxt3, NULL, 1, NULL );
break;
default:
{
if ( inMessage >= FONT_MENU_BASE && inMessage <= FONT_MENU_BASE_LAST )
{
MWContext *cntxt2 = GetTopWindowContext();
if ( cntxt2 )
{
// get font menu item
Str255 newFontItemString;
newFontItemString[0] = 0;
MenuHandle menuh = GetMenu()->GetMacMenuH();
::GetMenuItemText ( menuh, inMessage - FONT_MENU_BASE + PERM_FONT_ITEMS + 1, newFontItemString );
p2cstr( newFontItemString );
EDT_SetFontFace( cntxt2, NULL, -1, (char *)newFontItemString );
mExecuteHost = false;
return;
}
}
}
break;
}
mExecuteHost = TRUE; // Let application handle it
}
LMenu *CFontMenuAttachment::GetMenu()
{
if (!sMenu)
sMenu = new LMenu(cFontMenuID);
return sMenu;
}
// build the font menu from the system
void CFontMenuAttachment::UpdateMenu()
{
if (!GetMenu() || !LMenuBar::GetCurrentMenuBar())
return;
int i;
// ¥ delete all the menu items after the separator line
MenuHandle menu = sMenu->GetMacMenuH();
if ( menu )
{
for ( i = ::CountMItems( menu ); i > PERM_FONT_ITEMS; i-- )
sMenu->RemoveItem( i );
}
Try_
{
ThrowIfNil_( menu );
// Add fonts to menu
::InsertResMenu( menu, 'FONT', PERM_FONT_ITEMS );
int commandNum = FONT_MENU_BASE;
int newHowMany = ::CountMItems( menu );
for (i = PERM_FONT_ITEMS + 1; i <= newHowMany; i++ )
sMenu->SetCommand( i, commandNum++ );
}
Catch_( inErr )
{
}
EndCatch_
}
void CFontMenuAttachment::RemoveMenus()
{
if (sMenu)
{
LMenuBar *currentMenuBar = LMenuBar::GetCurrentMenuBar();
if (currentMenuBar)
currentMenuBar->RemoveMenu(sMenu);
}
}
void CFontMenuAttachment::InstallMenus()
{
if (sMenu)
{
LMenuBar *currentMenuBar = LMenuBar::GetCurrentMenuBar();
if (currentMenuBar)
{
StValueChanger<EDebugAction> okayToFail(gDebugThrow, debugAction_Nothing);
currentMenuBar->InstallMenu(sMenu, hierMenu);
ResIDT resID;
MenuHandle menuh;
Int16 whichItem;
currentMenuBar->FindMenuItem( cmd_ID_toSearchFor, resID, menuh, whichItem );
if ( menuh )
{
// make it hierarchical
::SetItemCmd( menuh, whichItem, hMenuCmd );
::SetItemMark( menuh, whichItem, menu_ID );
}
}
}
}
#pragma mark -
CFontMenuPopup::CFontMenuPopup( LStream *inStream ) : CPatternButtonPopupText( inStream )
{
}
CFontMenuPopup::~CFontMenuPopup()
{
}
void CFontMenuPopup::FinishCreateSelf( void )
{
CPatternButtonPopupText::FinishCreateSelf();
int i;
// ¥ delete all the menu items after the separator line
LMenu *ppmenu = GetMenu();
MenuHandle menuh = ppmenu ? ppmenu->GetMacMenuH() : NULL;
if ( menuh )
{
for ( i = ::CountMItems( menuh ); i > CFontMenuAttachment::PERM_FONT_ITEMS; i-- )
ppmenu->RemoveItem( i );
}
Try_
{
ThrowIfNil_( menuh );
// Add fonts to menu
::InsertResMenu( menuh, 'FONT', CFontMenuAttachment::PERM_FONT_ITEMS );
int commandNum = FONT_MENU_BASE;
int newHowMany = ::CountMItems( menuh );
for (i = CFontMenuAttachment::PERM_FONT_ITEMS + 1; i <= newHowMany; i++ )
ppmenu->SetCommand( i, commandNum++ );
SetMaxValue( newHowMany );
}
Catch_( inErr )
{
}
EndCatch_
}

View File

@@ -1,73 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#pragma once
#ifndef CFONTMENUATTACHMENT_H_
#define CFONTMENUATTACHMENT_H_
#include <LAttachment.h>
#include "CPatternButtonPopupText.h"
#include "ntypes.h" // MWContext
class LMenu;
/***********************************************************************************
* CFontMenuAttachment
* Processes Font menu commands -- should be attached to application
* Currently, this menu is only used in the Editor and mail compose window
***********************************************************************************/
class CFontMenuAttachment: public LAttachment
{
public:
enum { menu_ID = 13, PERM_FONT_ITEMS = 3, cmd_ID_toSearchFor = 'FONT' };
// ¥¥ constructors
CFontMenuAttachment();
// ¥¥Êevents
virtual void ExecuteSelf( MessageT inMessage, void* ioParam );
static LMenu* GetMenu();
static void UpdateMenu();
static void RemoveMenus();
static void InstallMenus();
protected:
static MWContext* GetTopWindowContext();
static LMenu* sMenu;
};
class CFontMenuPopup : public CPatternButtonPopupText
{
public:
enum { class_ID = 'Fpop' };
static void* CreateCFontMenuPopupStream( LStream *inStream ) {return( new CFontMenuPopup (inStream ));};
CFontMenuPopup( LStream *inStream ); // ¥ Constructor
~CFontMenuPopup(); // ¥ Destructor
// ¥ drawing
void FinishCreateSelf(void);
};
#endif

View File

@@ -1,124 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "CFormattingToolBar.h"
#include "CEditView.h"
#include "resgui.h"
#include "edt.h"
CFormattingToolBar::CFormattingToolBar(LStream * inStream)
: CPatternBevelView(inStream)
{
}
CFormattingToolBar::~CFormattingToolBar()
{
mEditView = NULL;
}
void CFormattingToolBar::FinishCreateSelf()
{
if ( GetSuperView() )
{
// get SuperView (we start with "this" so we're guaranteed non-0)
LView *superView = (LView *)this;
while (superView->GetSuperView() != NULL)
superView = superView->GetSuperView();
mEditView = dynamic_cast<CEditView*>(superView->FindPaneByID( CEditView::pane_ID ));
}
else
mEditView = dynamic_cast<CEditView*>(FindPaneByID( CEditView::pane_ID ));
// if we have a mailcompose window show insert object popup menu
// check for presence of insert menu within CFormattingToolBar
LPane *pane = FindPaneByID('InsO');
if ( pane )
{
CMailEditView *mailview = dynamic_cast<CMailEditView*>( mEditView );
if ( mailview )
pane->Show();
else
pane->Hide();
}
UReanimator::LinkListenerToControls(this, this, 11616);
}
void CFormattingToolBar::ListenToMessage( MessageT inMessage, void* ioParam )
{
PaneIDT paneID = CEditView::pane_ID;
if ( mEditView == NULL )
return;
if ( inMessage == 'Para' )
{
switch (*(long*)ioParam)
{
case 1: inMessage = cmd_Format_Paragraph_Normal; break;
case 2: inMessage = cmd_Format_Paragraph_Head1; break;
case 3: inMessage = cmd_Format_Paragraph_Head2; break;
case 4: inMessage = cmd_Format_Paragraph_Head3; break;
case 5: inMessage = cmd_Format_Paragraph_Head4; break;
case 6: inMessage = cmd_Format_Paragraph_Head5; break;
case 7: inMessage = cmd_Format_Paragraph_Head6; break;
case 8: inMessage = cmd_Format_Paragraph_Address; break;
case 9: inMessage = cmd_Format_Paragraph_Formatted; break;
case 10: inMessage = cmd_Format_Paragraph_List_Item; break;
case 11: inMessage = cmd_Format_Paragraph_Desc_Title; break;
case 12: inMessage = cmd_Format_Paragraph_Desc_Text; break;
}
}
else if ( inMessage == 'Size' )
{
switch (*(long*)ioParam)
{
case 1: inMessage = cmd_Format_Font_Size_N2; break;
case 2: inMessage = cmd_Format_Font_Size_N1; break;
case 3: inMessage = cmd_Format_Font_Size_0; break;
case 4: inMessage = cmd_Format_Font_Size_P1; break;
case 5: inMessage = cmd_Format_Font_Size_P2; break;
case 6: inMessage = cmd_Format_Font_Size_P3; break;
case 7: inMessage = cmd_Format_Font_Size_P4; break;
}
}
else if ( inMessage == 'Algn' )
{
switch (*(long*)ioParam)
{
case 1: inMessage = cmd_JustifyLeft; break;
case 2: inMessage = cmd_JustifyCenter; break;
case 3: inMessage = cmd_JustifyRight; break;
}
}
else if ( inMessage == 'InsO' )
{
switch (*(long*)ioParam)
{
case 1: inMessage = cmd_Insert_Link; break;
case 2: inMessage = cmd_Insert_Target; break;
case 3: inMessage = cmd_Insert_Image; break;
case 4: inMessage = cmd_Insert_Line; break;
case 5: inMessage = cmd_Insert_Table; break;
}
}
mEditView->ObeyCommand( inMessage, ioParam );
}

View File

@@ -1,42 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#pragma once
#include "CPatternBevelView.h"
#include <LListener.h>
class CEditView;
// used in Editor window and Mail Compose windows
class CFormattingToolBar : public CPatternBevelView, public LListener
{
public:
enum {class_ID = 'FoTB'};
CFormattingToolBar(LStream * inStream);
~CFormattingToolBar();
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
virtual void FinishCreateSelf();
protected:
CEditView* mEditView;
};

View File

@@ -1,184 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// ===========================================================================
// COpenRecentlyEditedPopup.cp
// ===========================================================================
#include "COpenRecentlyEditedPopup.h"
#include "CWindowMediator.h"
#include "CBrowserContext.h"
#include "CEditorWindow.h"
#include "UMenuUtils.h"
#include "PascalString.h"
#include "net.h" // NET_CreateURLStruct
#include "structs.h" // TagType which is needed in edt.h
#include "edt.h"
// ---------------------------------------------------------------------------
// ¥ CreateNavigationButtonPopupStream [static]
// ---------------------------------------------------------------------------
COpenRecentlyEditedPopup*
COpenRecentlyEditedPopup::CreateOpenRecentlyEditedPopupStream( LStream* inStream )
{
return new COpenRecentlyEditedPopup(inStream);
}
// ---------------------------------------------------------------------------
// ¥ COpenRecentlyEditedPopup
// ---------------------------------------------------------------------------
COpenRecentlyEditedPopup::COpenRecentlyEditedPopup( LStream* inStream )
: mBrowserContext(nil),
super(inStream)
{
}
// ---------------------------------------------------------------------------
// ¥ ~COpenRecentlyEditedPopup
// ---------------------------------------------------------------------------
COpenRecentlyEditedPopup::~COpenRecentlyEditedPopup()
{
}
#pragma mark -
// ---------------------------------------------------------------------------
// ¥ AdjustMenuContents
// ---------------------------------------------------------------------------
void
COpenRecentlyEditedPopup::AdjustMenuContents()
{
if (!GetMenu() || !GetMenu()->GetMacMenuH())
return;
if (!AssertPreconditions())
return;
// Purge the menu
UMenuUtils::PurgeMenuItems(GetMenu()->GetMacMenuH(), PERM_OPEN_ITEMS);
// Fill the menu
int i;
char *urlp = NULL, *titlep = NULL;
for ( i = 0; i < MAX_EDIT_HISTORY_LOCATIONS
&& EDT_GetEditHistory( ((MWContext *)(*mBrowserContext)), i, &urlp, &titlep ); i++ )
{
// strange logic: if we have no URL (then how do we go there???) then use title if it exists
if ( urlp == NULL )
urlp = titlep;
if ( urlp )
{
NET_UnEscape( urlp );
InsertItemIntoMenu( urlp, PERM_OPEN_ITEMS + i );
}
else
break;
}
// delete menu break line if we don't have any history items
if ( i == 0 )
{
::DeleteMenuItem( GetMenu()->GetMacMenuH(), PERM_OPEN_ITEMS );
}
// Set the min/max values of the control since we populated the menu
SetPopupMinMaxValues();
}
// ---------------------------------------------------------------------------
// ¥ InsertItemIntoMenu
// ---------------------------------------------------------------------------
void
COpenRecentlyEditedPopup::InsertItemIntoMenu( char *urlp, Int16 inAfterItem )
{
Assert_(GetMenu() && GetMenu()->GetMacMenuH());
Assert_(mBrowserContext);
CStr255 thePString( urlp );
// Insert a "blank" item first...
::InsertMenuItem( GetMenu()->GetMacMenuH(), "\p ", inAfterItem + 1 );
// Then change it. We do this so that no interpretation of metacharacters will occur.
::SetMenuItemText( GetMenu()->GetMacMenuH(), inAfterItem + 1, thePString );
}
#pragma mark -
// ---------------------------------------------------------------------------
// ¥ HandleNewValue
// ---------------------------------------------------------------------------
Boolean
COpenRecentlyEditedPopup::HandleNewValue( Int32 inNewValue )
{
if ( inNewValue >= 1 && inNewValue < PERM_OPEN_ITEMS )
{
// someone else will handle this
return false;
}
if ( AssertPreconditions() && inNewValue )
{
MWContext *cntxt = ((MWContext *)(*mBrowserContext));
if ( cntxt )
{
char *aURLtoOpen = NULL;
// EDT_GetEditHistory is 0-based so deduct 1 from 2nd parameter
if ( EDT_GetEditHistory( cntxt, inNewValue - PERM_OPEN_ITEMS - 1, &aURLtoOpen, NULL) )
{
URL_Struct* theURL = NET_CreateURLStruct( aURLtoOpen, NET_NORMAL_RELOAD );
if ( theURL )
CEditorWindow::MakeEditWindow( NULL, theURL );
}
}
}
return true;
}
// ---------------------------------------------------------------------------
// ¥ AssertPreconditions
// ---------------------------------------------------------------------------
// Assert preconditions and fill in interesting member data
Boolean
COpenRecentlyEditedPopup::AssertPreconditions()
{
CMediatedWindow* topWindow = CWindowMediator::GetWindowMediator()->FetchTopWindow( WindowType_Any, regularLayerType );
if (!topWindow || topWindow->GetWindowType() != WindowType_Editor)
return false;
CEditorWindow* composerWindow = dynamic_cast<CEditorWindow*>(topWindow);
if ( !composerWindow )
return false;
if ( !(mBrowserContext = (CBrowserContext*)composerWindow->GetWindowContext()) )
return false;
return true;
}

View File

@@ -1,63 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// ===========================================================================
// COpenRecentlyEditedPopup.h
// ===========================================================================
#ifndef COpenRecentlyEditedPopup_H
#define COpenRecentlyEditedPopup_H
#pragma once
// Includes
#include "CPatternButtonPopup.h"
// Forward declarations
class CBrowserContext;
// Class declaration
class COpenRecentlyEditedPopup : public CPatternButtonPopup
{
public:
enum { class_ID = 'PbRc', PERM_OPEN_ITEMS = 3 };
typedef CPatternButtonPopup super;
static COpenRecentlyEditedPopup* CreateOpenRecentlyEditedPopupStream(LStream* inStream);
COpenRecentlyEditedPopup(LStream* inStream);
virtual ~COpenRecentlyEditedPopup();
protected:
virtual void AdjustMenuContents();
virtual void InsertItemIntoMenu( char *urlp,
Int16 inAfterItem );
virtual Boolean HandleNewValue(Int32 inNewValue);
Boolean AssertPreconditions();
CBrowserContext* mBrowserContext;
};
#endif

View File

@@ -1,210 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
//===========================================================
// CRecentEditMenuAttachment.cp
//===========================================================
#include "CRecentEditMenuAttachment.h"
#include "CEditView.h"
#include "CBrowserContext.h" // operator MWContext*()
#include "resgui.h"
#include "macutil.h" // CMediatedWindow
#include "UMenuUtils.h"
#include "edt.h"
#include "CEditorWindow.h"
LMenu *CRecentEditMenuAttachment::sMenu = NULL;
CRecentEditMenuAttachment::CRecentEditMenuAttachment()
{
UpdateMenu();
}
MWContext *CRecentEditMenuAttachment::GetTopWindowContext()
{
// Ok, ok. I know this is skanky,
// but there is no common way to get the context from a window: it depends on the window type.
// So, we look around for a CEditView somewhere in the top window.
// A CEditView we understand (and get an MWContext from).
CMediatedWindow* topWin = NULL; // find the top window to use the plugin in
CWindowIterator iter(WindowType_Any);
iter.Next(topWin);
if (topWin == NULL
|| ! (topWin->GetWindowType() == WindowType_Editor || topWin->GetWindowType() == WindowType_Compose) )
return NULL;
CEditView *editView = (CEditView *)(topWin->FindPaneByID(CEditView::pane_ID));
if (editView == NULL || editView->GetNSContext() == NULL)
return NULL;
return editView->GetNSContext()->operator MWContext*();
}
// Processes
void CRecentEditMenuAttachment::ExecuteSelf( MessageT inMessage, void* ioParam )
{
switch ( inMessage )
{
case msg_CommandStatus:
{
SCommandStatus* status = (SCommandStatus*)ioParam;
if ( status->command >= RECENT_EDIT_MENU_BASE && status->command <= RECENT_EDIT_MENU_BASE_LAST )
{
*(status->enabled) = true;
mExecuteHost = false;
return;
}
}
break;
default:
{
if ( inMessage >= RECENT_EDIT_MENU_BASE && inMessage <= RECENT_EDIT_MENU_BASE_LAST )
{
MWContext *cntxt2 = GetTopWindowContext();
if ( cntxt2 )
{
char *aURLtoOpen = NULL;
if ( EDT_GetEditHistory( cntxt2, inMessage - RECENT_EDIT_MENU_BASE - 1, &aURLtoOpen, NULL) )
{
URL_Struct* theURL = NET_CreateURLStruct( aURLtoOpen, NET_NORMAL_RELOAD );
if ( theURL )
CEditorWindow::MakeEditWindow( NULL, theURL );
mExecuteHost = false;
return;
}
}
}
}
break;
}
mExecuteHost = true; // Let application handle it
}
LMenu *CRecentEditMenuAttachment::GetMenu()
{
if (!sMenu)
sMenu = new LMenu( menu_ID );
return sMenu;
}
// build the font menu from the system
void CRecentEditMenuAttachment::UpdateMenu()
{
if (!GetMenu() || !LMenuBar::GetCurrentMenuBar())
return;
int i;
// ¥ delete all the menu items after the separator line
MenuHandle menu = sMenu->GetMacMenuH();
if ( menu )
{
for ( i = ::CountMItems( menu ); i > 0; i-- )
sMenu->RemoveItem( i );
}
Try_
{
ThrowIfNil_( menu );
// Add recently edited URLs to menu
int i;
char *urlp = NULL, *titlep = NULL;
for ( i = 0; i < MAX_EDIT_HISTORY_LOCATIONS
&& EDT_GetEditHistory( GetTopWindowContext(), i, &urlp, &titlep ); i++ )
{
NET_UnEscape( urlp );
// convert string to pascal-string for menu
CStr255 menuStr(urlp);
if ( menuStr.IsEmpty() )
menuStr = titlep;
if ( !menuStr.IsEmpty() )
{
// Insert a "blank" item first...
::InsertMenuItem( GetMenu()->GetMacMenuH(), "\p ", i );
// Then change it. We do this so that no interpretation of metacharacters will occur.
::SetMenuItemText( GetMenu()->GetMacMenuH(), i + 1, menuStr );
// SetCommand for menu item
sMenu->SetCommand( i, RECENT_EDIT_MENU_BASE + i );
sMenu->SetUsed( true );
}
else
break;
}
}
Catch_( inErr )
{
}
EndCatch_
}
void CRecentEditMenuAttachment::RemoveMenus()
{
if (sMenu)
{
LMenuBar *currentMenuBar = LMenuBar::GetCurrentMenuBar();
if (currentMenuBar)
currentMenuBar->RemoveMenu(sMenu);
}
}
void CRecentEditMenuAttachment::InstallMenus()
{
if (sMenu)
{
LMenuBar *currentMenuBar = LMenuBar::GetCurrentMenuBar();
if (currentMenuBar)
{
StValueChanger<EDebugAction> okayToFail(gDebugThrow, debugAction_Nothing);
currentMenuBar->InstallMenu(sMenu, hierMenu);
ResIDT resID;
MenuHandle menuh;
Int16 whichItem;
currentMenuBar->FindMenuItem( cmd_ID_toSearchFor, resID, menuh, whichItem );
if ( menuh )
{
// make it hierarchical
::SetItemCmd( menuh, whichItem, hMenuCmd );
::SetItemMark( menuh, whichItem, menu_ID );
}
}
}
}

View File

@@ -1,55 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#pragma once
#ifndef CRECENTEDITMENUATTACHMENT_H_
#define CRECENTEDITMENUATTACHMENT_H_
#include <LAttachment.h>
#include <LMenu.h>
#include "ntypes.h"
/***********************************************************************************
* CRecentEditMenuAttachment
* Processes Recent-Edited files menu commands -- should be attached to application
* Currently, this menu is only used in the Editor window
***********************************************************************************/
class CRecentEditMenuAttachment: public LAttachment
{
public:
enum { menu_ID = 24, cmd_ID_toSearchFor = 'Rece' };
// ¥¥ constructors
CRecentEditMenuAttachment();
// ¥¥Êevents
virtual void ExecuteSelf( MessageT inMessage, void* ioParam );
static LMenu* GetMenu();
static void UpdateMenu();
static void RemoveMenus();
static void InstallMenus();
protected:
static MWContext* GetTopWindowContext();
static LMenu* sMenu;
};
#endif

File diff suppressed because it is too large Load Diff

View File

@@ -1,83 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#pragma once
#include "spellchk.h"
#include "ntypes.h" // MWContext
class CEditView;
class LEditField;
class CTextTable;
class CSimpleTextView;
// public definitions
void do_spellcheck( MWContext *mwcontext, CEditView *editView, CSimpleTextView *textView );
#define cmd_CheckSpelling 'ChSp'
// internal
const int SpellCheckerResource = 5109;
const int ChangeStringIndex = 1;
const int DoneStringIndex = 2;
const int NSDictionaryNameIndex = 3;
const int UserDictionaryNameIndex = 4;
// UI management class
class CMacSpellChecker
{
public:
enum { class_ID = 'Spel', res_ID = 5299 };
enum { pane_NewWord = 'NewW', pane_SuggestionList = 'AltW',
msg_Change = 'Chng', msg_Change_All = 'CAll',
msg_Ignore = 'Ignr', msg_Ignore_All = 'IAll',
msg_Add_Button = 'AddB', msg_Check = 'Chck',
msg_Stop = 'Stop', msg_NewLanguage = 'Lang',
msg_SelectionChanged = 'SelC', msg_EditDictionary = 'EdDc' };
CMacSpellChecker( MWContext *context,
CEditView *editView, CSimpleTextView *textView );
char *GetTextBuffer();
void GetSelection( int32 &selStart, int32 &selEnd );
void ReplaceHilitedText( char *newText, Boolean doAll );
void IgnoreHilitedText( Boolean doAll );
void SetNextMisspelledWord( char *textP, LEditField *typoField, CTextTable *t, LCommander *c );
Boolean GetNextMisspelledWord( Boolean doFirstWord );
void ClearReplacementWord( LEditField *newWord, CTextTable *table );
void GetAlternativesForWord( LEditField *newWord, CTextTable *table, LCommander *c );
Boolean StartProcessing( Boolean startOver );
void ShowDialog( char *textP );
MWContext *GetMWContext() { return mMWContext; };
ISpellChecker *GetISpellChecker() { return mISpellChecker; };
void SetISpellChecker( ISpellChecker *i ) { mISpellChecker = i; };
Boolean isHTMLeditor() { return mEditView != NULL; };
private:
ISpellChecker *mISpellChecker;
MWContext *mMWContext; // only if mEditView; ignored if mTextView
Str255 mOrigMisspelledWord;
// we should have one and only one of these-->evidence that this class is mis-designed
CEditView *mEditView;
CSimpleTextView *mTextView;
};

View File

@@ -1,338 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "CToolsAttachment.h"
#include "CEditView.h"
#include "CBrowserContext.h" // operator MWContext*()
#include "resgui.h" // TOOLS_MENU_BASE_LAST
#include "macutil.h" // CMediatedWindow
#include "UMenuUtils.h"
#include "edt.h"
//#include "CSpellChecker.h"
#include <LArray.h>
#define PERM_TOOLS_ITEMS 2
#define PERM_TOOLS_END_ITEMS 1
const CommandT cmd_ToolsHierItem = TOOLS_MENU_BASE_LAST;
LMenu *CToolsAttachment::sMenu = NULL;
Boolean CToolsAttachment::sInvalidMenu = true;
LArray CToolsAttachment::sMenusList;
//===========================================================
// CToolsAttachment
//===========================================================
CToolsAttachment::CToolsAttachment()
{
}
MWContext *CToolsAttachment::GetTopWindowContext()
{
// Ok, ok. I know this is skanky,
// but there is no common way to get the context from a window: it depends on the window type.
// So, we look around for a CEditView somewhere in the top window.
// A CEditView we understand (and get an MWContext from).
CMediatedWindow* topWin = NULL; // find the top window to use the plugin in
CWindowIterator iter(WindowType_Any);
// do {
iter.Next(topWin);
// } while (topWin && topWin->GetWindowType() != WindowType_Editor && topWin->GetWindowType() != WindowType_Compose);
if (topWin == NULL)
return NULL;
if ( topWin->GetWindowType() != WindowType_Editor && topWin->GetWindowType() != WindowType_Compose )
return NULL;
CEditView *editView = (CEditView *)(topWin->FindPaneByID(CEditView::pane_ID));
if (editView == NULL || editView->GetNSContext() == NULL)
return NULL;
return editView->GetNSContext()->operator MWContext*();
}
// Processes:
void CToolsAttachment::ExecuteSelf( MessageT inMessage, void* ioParam )
{
mExecuteHost = FALSE;
switch ( inMessage )
{
// case cmd_CheckSpelling: // spell checker
// return;
case cmd_EditorPluginStop:
MWContext *cntxt = GetTopWindowContext();
if (cntxt)
EDT_StopPlugin(cntxt);
return;
case msg_CommandStatus:
{
SCommandStatus* status = (SCommandStatus*)ioParam;
switch ( status->command )
{
case cmd_EditorPluginStop:
MWContext *cntxt = GetTopWindowContext();
*(status->enabled) = cntxt && EDT_IsPluginActive(cntxt);
*(status->usesMark) = FALSE;
return;
default:
if ( status->command >= TOOLS_MENU_BASE && status->command <= TOOLS_MENU_BASE_LAST )
{
*(status->enabled) = TRUE;
*(status->usesMark) = FALSE;
return;
}
break;
}
}
break;
default:
{
if ( inMessage >= TOOLS_MENU_BASE && inMessage <= TOOLS_MENU_BASE_LAST )
{
int32 index = inMessage - TOOLS_MENU_BASE;
for (int32 CategoryIndex = 0; CategoryIndex < EDT_NumberOfPluginCategories(); CategoryIndex++)
for (int32 PluginIndex = 0; PluginIndex < EDT_NumberOfPlugins(CategoryIndex); PluginIndex++)
if (index-- == 0)
{ // count down until we find which one...
MWContext *cntxt = GetTopWindowContext();
if (cntxt)
EDT_PerformPlugin(cntxt, CategoryIndex, PluginIndex, 0, 0); // what is the result for?
return;
}
}
}
break;
}
mExecuteHost = TRUE; // Let application handle it
}
LMenu *CToolsAttachment::GetMenu()
{
if (!sMenu)
sMenu = new LMenu(cToolsMenuID);
return sMenu;
}
void CToolsAttachment::UpdateMenu()
{
if (!sInvalidMenu || !GetMenu() || !LMenuBar::GetCurrentMenuBar())
return;
int i;
// ¥ delete all the dynamically created menus
// ¥Êdelete all the hierarchical menus we have added from the menubar
for ( i = 1; i <= sMenusList.GetCount(); i++ )
{
LMenu* m;
sMenusList.FetchItemAt( i, &m );
if ( m )
LMenuBar::GetCurrentMenuBar()->RemoveMenu( m );
delete m;
}
// ¥ delete all the menu items after the line in Tools menu
MenuHandle menu = sMenu->GetMacMenuH();
if ( menu )
{
int howMany = ::CountMItems( menu );
for ( i = howMany - PERM_TOOLS_END_ITEMS; i > PERM_TOOLS_ITEMS; i-- )
sMenu->RemoveItem( i );
}
sMenusList.RemoveItemsAt( sMenusList.GetCount(), 1 );
int whichItem = PERM_TOOLS_ITEMS;
int commandNum = TOOLS_MENU_BASE;
int nextMenuID = cEditorPluginsFirstHierMenuID;
Try_
{
ThrowIfNil_( sMenu );
MenuHandle mHand = sMenu->GetMacMenuH();
ThrowIfNil_( mHand );
for (int32 CategoryIndex = 0; CategoryIndex < EDT_NumberOfPluginCategories(); CategoryIndex++) {
CStr255 headerName( EDT_GetPluginCategoryName( CategoryIndex ) );
CreateMenuString( headerName ); // make sure it isn't too long
whichItem = UMenuUtils::InsertMenuItem(mHand, headerName, whichItem); // returns actual insert loc
sMenu->SetCommand(whichItem, cmd_ToolsHierItem);
// ¥ Are there actually any menu items to put on this Hierarchical menu?
if (EDT_NumberOfPlugins(CategoryIndex)) {
// ¥ do we have any hierarchical menus left?
if (nextMenuID <= cEditorPluginsLastHierMenuID) {
LMenu* subMenu = (LMenuBar::GetCurrentMenuBar())->FetchMenu( nextMenuID );
if ( !subMenu )
{
StringHandle menuStringH = GetString( NEW_RESID );
Assert_(menuStringH);
if (menuStringH)
{
StHandleLocker locker((Handle)menuStringH);
subMenu = new LMenu( nextMenuID,
(unsigned char *)*menuStringH );
LMenuBar::GetCurrentMenuBar()->InstallMenu( subMenu, hierMenu );
}
}
else
SysBeep( 1 );
nextMenuID++;
if ( subMenu )
{
sMenusList.InsertItemsAt( 1, sMenusList.GetCount(), &subMenu );
// ¥Êmake item hierarchical
::SetItemCmd( mHand, whichItem, hMenuCmd );
::SetItemMark( mHand, whichItem, subMenu->GetMenuID() );
FillMenu(
CategoryIndex,
subMenu,
commandNum,
0 );
}
} else {
// ¥ There are no hierarchical menus left,
// so we will just add these onto the bottom of the main tools menu.
// We have already put the (disabled) category name in the main tools menu
FillMenu(
CategoryIndex,
sMenu,
commandNum,
whichItem );
whichItem += EDT_NumberOfPlugins(CategoryIndex);
}
}
}
// this is a hack. The menu item "Stop Active Plug-in" gets pushed around and loses its command. So, reset it.
sMenu->SetCommand(++whichItem, cmd_EditorPluginStop);
}
Catch_( inErr )
{
}
EndCatch_
sInvalidMenu = true;
}
void CToolsAttachment::FillMenu(
int32 CategoryIndex,
LMenu* newMenu,
int& commandNum, // next menu to create
int whichItem ) // id of the first item to insert
{
Try_
{
ThrowIfNil_( newMenu );
MenuHandle mHand = newMenu->GetMacMenuH();
ThrowIfNil_( mHand );
for (int32 PluginIndex = 0; PluginIndex < EDT_NumberOfPlugins(CategoryIndex); PluginIndex++) {
// ¥ should really convert this to sMenu chars
CStr255 pluginName( EDT_GetPluginName( CategoryIndex, PluginIndex) );
CreateMenuString( pluginName );
whichItem = UMenuUtils::InsertMenuItem(mHand, pluginName, whichItem); // returns actual insert loc
newMenu->SetCommand(whichItem, commandNum++);
}
}
Catch_( inErr )
{
}
EndCatch_
}
void CToolsAttachment::RemoveMenus()
{
if (sMenu)
{
LMenuBar *currentMenuBar = LMenuBar::GetCurrentMenuBar();
if (currentMenuBar)
{
currentMenuBar->RemoveMenu(sMenu);
for (ArrayIndexT index = 1; index <= sMenusList.GetCount(); ++index)
{
LMenu *menu;
sMenusList.FetchItemAt(index, &menu);
if (menu)
currentMenuBar->RemoveMenu(menu);
}
}
}
}
void CToolsAttachment::InstallMenus()
{
if (sMenu)
{
LMenuBar *currentMenuBar = LMenuBar::GetCurrentMenuBar();
if (currentMenuBar)
{
for (ArrayIndexT index = sMenusList.GetCount(); index > 0; --index)
{
LMenu *menu;
sMenusList.FetchItemAt(index, &menu);
if (menu)
{
StValueChanger<EDebugAction> okayToFail(gDebugThrow, debugAction_Nothing);
currentMenuBar->InstallMenu(menu, hierMenu);
}
}
StValueChanger<EDebugAction> okayToFail(gDebugThrow, debugAction_Nothing);
currentMenuBar->InstallMenu(sMenu, InstallMenu_AtEnd);
}
}
}

View File

@@ -1,64 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#pragma once
#ifndef CTOOLSATTACHMENT_H_
#define CTOOLSATTACHMENT_H_
#include <LAttachment.h>
#include "ntypes.h"
class LMenu;
class LArray;
/***********************************************************************************
* CToolsAttachment
* Processes Tools menu commands -- should be attached to application
* Currently, this menu is only used in the Editor window
***********************************************************************************/
class CToolsAttachment: public LAttachment
{
public:
// ¥¥ constructors
CToolsAttachment();
// ¥¥Êevents
virtual void ExecuteSelf( MessageT inMessage, void* ioParam );
static LMenu* GetMenu();
static void InvalidateMenu() { sInvalidMenu = true; }
static void UpdateMenu();
static void RemoveMenus();
static void InstallMenus();
protected:
static void FillMenu(
int32 CategoryIndex,
LMenu* newMenu,
int& commandNum,
int whichItem );
static MWContext* GetTopWindowContext();
static LMenu* sMenu;
static Boolean sInvalidMenu;
static LArray sMenusList;
};
#endif

View File

@@ -1,49 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// Composer_DebugPrefix.h
//
// NOTE:
// You typically won't need to change anything in this file.
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
#include "MacPrefix_debug.h"
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥ When we split out the procompiled headers seperately, we will not
// be including them here. We will instead define things like
// PowerPlant_PCH and include them at the top of the applicable source
// modules
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
#ifdef __powerc
#ifdef __cplusplus
#include "Composer_HeadersPPC++"
#else
#include "Composer_HeadersPPC"
#endif
#else
#ifdef __cplusplus
#include "Composer_Headers68K++"
#else
#include "Composer_Headers68K"
#endif
#endif

View File

@@ -1,46 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// Composer_Headers.pch
//
// NOTE:
//
// You will typically not need to edit this file. If you want to add
// a file to the C/C++ precompiled header, do it in Comm_Headers.c
// or Borwser_Headers.cp respectively.
//
// If you're doing a non-debug build, use the non-debug project which
// will has pch files that generate non-debug dumps.
//
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
#include "MacPrefix.h"
#ifdef powerc
#pragma precompile_target "Composer_HeadersPPC"
#else
#pragma precompile_target "Composer_Headers68K"
#endif
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥ Include the list of headers.
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
#include "Comm_Headers.c"

View File

@@ -1,52 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
//
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// Composer_Headers.pch++
//
// NOTE:
//
// You will typically not need to edit this file. If you want to add
// a file to the C/C++ precompiled header, do it in Comm_Headers.c
// or Borwser_Headers.cp respectively.
//
// If you're doing a non-debug build, use the non-debug project which
// will has pch files that generate non-debug dumps.
//
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
#include "MacPrefix.h"
#ifdef powerc
#pragma precompile_target "Composer_HeadersPPC++"
#else
#pragma precompile_target "Composer_Headers68K++"
#endif
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥ Include the headers.
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
extern "C" {
#include "Comm_Headers.c"
}
#include "Comm_Headers.cp"

View File

@@ -1,49 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// Composer_DebugPrefix.h
//
// NOTE:
// You typically won't need to change anything in this file.
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
#include "MacPrefix.h"
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥ When we split out the procompiled headers seperately, we will not
// be including them here. We will instead define things like
// PowerPlant_PCH and include them at the top of the applicable source
// modules
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
#ifdef __powerc
#ifdef __cplusplus
#include "Composer_HeadersPPC++"
#else
#include "Composer_HeadersPPC"
#endif
#else
#ifdef __cplusplus
#include "Composer_Headers68K++"
#else
#include "Composer_Headers68K"
#endif
#endif

File diff suppressed because it is too large Load Diff

View File

@@ -1,841 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#pragma once
#include "CTabSwitcher.h"
#include "ntypes.h" // MWContext
#include "lo_ele.h" // LO_Color
#include "intl_csi.h" // INTL_GetCSIWinCSID
#ifdef COOL_IMAGE_RADIO_BUTTONS
# include "CBevelButton.h"
#endif
class OneRowLListBox;
class CColorButton;
class CTabControl;
class CLargeEditField;
class LGAEditField;
class LGAPopup;
class CChameleonView: public LView
{
public:
enum { class_ID = 'cviw' };
CChameleonView(LStream * inStream) : LView(inStream) {};
virtual void SetColor(RGBColor textColor);
virtual void DrawSelf();
protected:
RGBColor fTextColor;
};
class CChameleonCaption: public LCaption
{
public:
enum {class_ID = 'ccpt' };
CChameleonCaption(LStream * inStream) : LCaption(inStream) {};
virtual void SetColor(RGBColor textColor, RGBColor backColor);
protected:
RGBColor fTextColor;
RGBColor fBackColor;
virtual void DrawSelf();
};
// This class simply creates a dialog and extracts the context from the SuperCommand so
// that we can set the values of the controls in the dialog based on the context which created it.
class CEditDialog: public LDialogBox
{
public:
CEditDialog( LStream* inStream ): LDialogBox( inStream ), mUndoInited(false) { pExtra = NULL; }
~CEditDialog() { XP_FREEIF(pExtra); }
static Boolean Start(ResIDT inWindowID, MWContext * context = NULL, short initTabValue = 0, Boolean insert = FALSE);
Boolean AllowSubRemoval( LCommander *inSub );
void FindCommandStatus( CommandT inCommand, Boolean &outEnabled,
Boolean&, Char16&, Str255);
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
virtual void InitializeDialogControls() = NULL;
void SetContext(MWContext* context) {fContext = context;}
MWContext* GetContext() { return fContext;}
void SetInitTabValue(short initValue) {fInitTabValue = initValue;}
short GetInitTabValue() { return fInitTabValue;}
void SetInWindowID(ResIDT inWindowID) {fInWindowID = inWindowID;}
ResIDT GetInWindowID() { return fInWindowID;}
void SetInsertFlag(Boolean insert) {fInsert = insert;}
Boolean GetInsertFlag() { return fInsert;}
int16 GetWinCSID() { return INTL_GetCSIWinCSID(LO_GetDocumentCharacterSetInfo(fContext)); }
static void ChooseImageFile(CLargeEditField* editField);
protected:
virtual Boolean CommitChanges(Boolean allPanes) = NULL;
virtual void Help() = NULL;
MWContext* fContext;
short fInitTabValue;
Boolean fInsert;
ResIDT fInWindowID;
char* pExtra;
Boolean mUndoInited;
};
class CEditTabSwitcher: public CTabSwitcher
{
public:
enum { class_ID = 'EtSw' };
CEditTabSwitcher(LStream* inStream);
virtual ~CEditTabSwitcher();
virtual void DoPostLoad(LView* inLoadedPage, Boolean inFromCache);
void SetData(MWContext* context, Boolean insert);
void Help();
protected:
MWContext* fContext;
Boolean fInsert;
char* fLinkName; // need to share between link and image pages
};
class CTableInsertDialog: public CEditDialog
{
public:
enum { class_ID = 'ETBT' };
CTableInsertDialog( LStream* inStream );
virtual ~CTableInsertDialog();
virtual Boolean CommitChanges(Boolean allPanes);
void AdjustEnable();
virtual void FinishCreateSelf();
virtual void InitializeDialogControls();
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
protected:
virtual void Help();
LGAEditField* fNumRowsEditText;
LGAEditField* fNumColsEditText;
LControl* fBorderCheckBox;
LGAEditField* fBorderWidthEditText;
LGAEditField* fCellSpacingEditText;
LGAEditField* fCellPaddingEditText;
LControl* fCustomWidth;
LGAEditField* fWidthEditText;
LControl* fWidthPopup;
LControl* fCustomHeight;
LGAEditField* fHeightEditText;
LControl* fHeightPopup;
LControl* fCustomColor;
CColorButton* fColorCustomColor;
LControl* fCaptionAboveBelow;
LGAPopup* mTableAlignment;
LControl* mFastLayout;
LControl* mUseImage;
CLargeEditField* mImageFileName;
LControl* mLeaveImage;
};
class CFormatMsgColorAndImageDlog: public CEditDialog
{
public:
enum { class_ID = 'Ec+i' };
CFormatMsgColorAndImageDlog( LStream* inStream ) : CEditDialog( inStream ) {;}
virtual ~CFormatMsgColorAndImageDlog() {;}
virtual Boolean CommitChanges(Boolean allPanes);
virtual void InitializeDialogControls();
protected:
virtual void Help();
};
class CTarget: public CEditDialog
{
public:
enum { class_ID = 'ETRG' };
CTarget( LStream* inStream );
virtual ~CTarget();
void CleanUpTargetString(char *target);
Boolean AlreadyExistsInDocument(char *anchor);
virtual Boolean CommitChanges(Boolean allPanes);
virtual void InitializeDialogControls();
protected:
virtual void Help() {;} // Sorry, no help.
char* fOriginalTarget;
CLargeEditField* fTargetName;
};
class CLineProp: public CEditDialog
{
public:
enum { class_ID = 'EDL0' };
CLineProp( LStream* inStream );
virtual ~CLineProp( );
virtual Boolean CommitChanges(Boolean allPanes);
virtual void FinishCreateSelf();
virtual void InitializeDialogControls();
// virtual void ListenToMessage( MessageT inMessage, void* ioParam );
protected:
virtual void Help();
LControl* fLeftAlign;
LControl* fCenterAlign;
LControl* fRightAlign;
LGAEditField* fHeightEditText;
LGAEditField* fWidthEditText;
LControl* fPixelPercent;
LControl* fShading;
};
class CUnknownTag: public CEditDialog
{
public:
enum { class_ID = 'EDUT' };
CUnknownTag( LStream* inStream );
virtual ~CUnknownTag();
virtual Boolean CommitChanges(Boolean allPanes);
virtual void InitializeDialogControls();
virtual void FinishCreateSelf();
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
protected:
virtual void Help();
CLargeEditField* fTargetName;
};
class MultipleSelectionSingleColumn: public LListBox
{
public:
enum { class_ID = 'MSSC' };
MultipleSelectionSingleColumn( LStream* inStream );
virtual int16 NumItems();
virtual void DeselectAll();
virtual void SelectAll();
virtual void AddItem( char* data, Boolean isSelected );
virtual StringPtr GetItem(Str255 outDescriptor, int32 rowNum) const; // rowNum is zero based
virtual void RemoveAllItems();
virtual Boolean IsSelected(int32 rowNum); // rowNum is zero based
};
class CPublishHistory
{
public:
// Do we have any history at all?
static Boolean IsTherePublishHistory();
// Get a particular entry
static char* GetPublishHistoryCharPtr(short whichone);
// Set a particular entry
static void SetPublishHistoryCharPtr(char* entry, short whichone);
// Put an entry at the top of the list (and remove any duplicate)
static void AddPublishHistoryEntry(char *entry);
};
class CPublish: public CEditDialog
{
public:
enum { class_ID = 'EPLS' };
CPublish( LStream* inStream );
virtual ~CPublish();
virtual Boolean CommitChanges(Boolean allPanes);
virtual void FinishCreateSelf();
virtual void InitializeDialogControls();
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
protected:
virtual void Help();
char * DocName();
LCaption* fLocalLocation;
LControl* fImageFiles;
LControl* fFolderFiles;
LControl* fDefaultLocation;
MultipleSelectionSingleColumn* fFileList;
LGAEditField* fPublishLocation;
LGAEditField* fUserID;
LGAEditField* fPassword;
LControl* fSavePassword;
LGAPopup* mHistoryList;
};
// This is a dialog box which contains a Tab control.
// This code was written using Cmd-C & Cmd-V from the CPrefWindow class.
// We don't need everything in CPrefWindow though, and I'm too lazy to make
// a nice base class for both at the moment.
class CTabbedDialog : public CEditDialog
{
public:
enum {class_ID = 'EDTB'};
CTabbedDialog( LStream* inStream );
virtual ~CTabbedDialog();
static void RegisterViewTypes();
void FinishCreateSelf();
virtual void InitializeDialogControls();
virtual void SavePlace( LStream* ) { }
virtual void RestorePlace( LStream* ) { }
// virtual void ListenToMessage( MessageT inMessage, void* ioParam );
protected:
virtual void Help();
virtual Boolean CommitChanges(Boolean allPanes);
CTabControl* mTabControl;
CEditTabSwitcher* mTabSwitcher;
};
/*****************************************************************************
* class CEditorPrefContain. (used to be CPrefContain)
* Container for a related group of controls (1 pane of preference window)
* and know how to:
* - get proper variables from data, and assign the values to controls
* - get values from controls back into data.
*****************************************************************************/
class CEditorPrefContain : public LView, public LListener, public LTabGroup
{
public:
CEditorPrefContain( LStream* inStream ) : LView( inStream ) {};
virtual ~CEditorPrefContain() { };
// ¥ link to little controls, and reset their values
virtual void FinishCreateSelf() { LView::FinishCreateSelf(); UReanimator::LinkListenerToControls(this, this, GetPaneID()); ControlsFromPref();}
// ¥Êlistens to 'default' message
void ListenToMessage( MessageT, void* ) {};
// ¥ initialize from preferences
virtual void ControlsFromPref() = 0;
virtual void PrefsFromControls() = 0;
virtual void DrawSelf();
};
class CEditContain: public CEditorPrefContain, public LBroadcaster
{
public:
CEditContain(LStream* inStream): CEditorPrefContain( inStream ){ pExtra = NULL; }
~CEditContain(){ XP_FREEIF(pExtra); }
void SetContext(MWContext* context) {fContext = context;}
MWContext* GetContext() { return fContext;}
void SetInsertFlag(Boolean insert) {fInsert = insert;}
Boolean GetInsertFlag() { return fInsert;}
void SetLinkToLinkName(char** LinkNameLink) {fLinkName = LinkNameLink;}
void SetExtraHTMLString(char *s) { pExtra = s; };
virtual void Help() = NULL;
int16 GetWinCSID() { return INTL_GetCSIWinCSID(LO_GetDocumentCharacterSetInfo(fContext)); }
virtual Boolean AllFieldsOK() = NULL;
protected:
MWContext* fContext;
Boolean fInsert;
char** fLinkName;
char* pExtra;
};
class CEDCharacterContain: public CEditContain
{
public:
enum {class_ID = '1edl'};
CEDCharacterContain( LStream* inStream ) : CEditContain( inStream ){};
virtual void FinishCreateSelf();
virtual void PrefsFromControls();
virtual void ControlsFromPref();
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
virtual void Help();
virtual Boolean AllFieldsOK() { return TRUE;}
protected:
Boolean fColorChanged;
Boolean fSizeChanged;
LControl* fTextSizePopup;
LControl* mFontMenu;
Boolean mFontChanged;
LControl* fColorDefaultRadio;
LControl* fColorCustomRadio;
CColorButton* fColorCustomColor;
LControl* fTextBoldCheck;
LControl* fTextItalicCheck;
LControl* fTextSuperscriptCheck;
LControl* fTextSubscriptCheck;
LControl* fTextNoBreaksCheck;
LControl* fTextUnderlineCheck;
LControl* fTextStrikethroughCheck;
LControl* fTextBlinkingCheck;
LControl* fClearTextStylesButton;
LControl* fClearAllStylesButton;
};
class CEDParagraphContain: public CEditContain
{
public:
enum {class_ID = '2edl'};
CEDParagraphContain( LStream* inStream ) : CEditContain( inStream ){};
virtual void FinishCreateSelf();
virtual void PrefsFromControls();
virtual void ControlsFromPref();
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
virtual void Help();
virtual Boolean AllFieldsOK();
protected:
void AdjustPopupsVisibility();
LControl* fParagraphStylePopup;
LControl* fContainerStylePopup;
LControl* fListStylePopup;
LControl* fNumberPopup;
LControl* fBulletPopup;
LControl* fStartNumberCaption;
LGAEditField* fStartNumberEditText;
LControl* fLeftAlignRadio;
LControl* fCenterAlignRadio;
LControl* fRightAlignRadio;
};
#ifdef COOL_IMAGE_RADIO_BUTTONS
class CImageAlignButton: public CBevelButton
{
public:
enum { class_ID = 'BvRB' };
CImageAlignButton( LStream* inStream ) : CBevelButton( inStream ){};
virtual void SetValue(
Int32 inValue);
private:
virtual void HotSpotAction(
Int16 inHotSpot,
Boolean inCurrInside,
Boolean inPrevInside);
virtual void HotSpotResult(Int16 inHotSpot);
};
#endif
class CEDLinkContain: public CEditContain
{
public:
enum {class_ID = '3edl'};
CEDLinkContain( LStream* inStream ) : CEditContain( inStream ){};
virtual ~CEDLinkContain();
virtual void FinishCreateSelf();
virtual void PrefsFromControls();
virtual void ControlsFromPref();
virtual void Show();
virtual void Hide();
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
virtual void Help();
virtual Boolean AllFieldsOK() { return TRUE;}
protected:
void SelectedFileUpdate();
void CurrentFileTargs();
CLargeEditField* fLinkedTextEdit;
LControl* fChooseFileLinkButton;
LControl* fRemoveLinkButton;
CLargeEditField* fLinkPageTextEdit;
LControl* fCurrentDocumentRadio;
LControl* fSelectedFileRadio;
OneRowLListBox* fTargetList;
char* fTargs;
};
class CEDImageContain: public CEditContain
{
public:
enum {class_ID = '4edl'};
CEDImageContain( LStream* inStream );
virtual ~CEDImageContain();
virtual void FinishCreateSelf();
virtual void PrefsFromControls();
virtual void ControlsFromPref();
EDT_ImageData * ImageDataFromControls();
virtual void Show();
virtual void Hide();
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
virtual void Help();
virtual Boolean AllFieldsOK();
protected:
void AdjustEnable();
char * fSrcStr;
char * fLowSrcStr;
CLargeEditField* fImageFileName; // was CEditBroadcaster
CLargeEditField* fImageAltFileName;
CLargeEditField* fImageAltTextEdit;
LGAEditField* fHeightTextEdit;
LGAEditField* fWidthTextEdit;
LControl* fImageLockedCheckBox;
int32 fOriginalWidth; /* Width and Height we got on initial loading */
int32 fOriginalHeight;
LGAEditField* fLeftRightBorderTextEdit;
LGAEditField* fTopBottomBorderTextEdit;
LGAEditField* fSolidBorderTextEdit;
LControl* fCopyImageCheck;
LControl* fBackgroundImageCheck;
LControl* fRemoveImageMapButton;
LControl* fEditImageButton;
Boolean fLooseImageMap;
Boolean mBorderUnspecified;
LControl* mImageAlignmentPopup;
};
class CEDDocPropGeneralContain: public CEditContain
{
public:
enum {class_ID = '5edl'};
CEDDocPropGeneralContain( LStream* inStream ) : CEditContain( inStream ){};
virtual void FinishCreateSelf();
virtual void PrefsFromControls();
virtual void ControlsFromPref();
void AddMeta(char *Name, CLargeEditField* value);
// virtual void ListenToMessage( MessageT inMessage, void* ioParam );
virtual void Help();
virtual Boolean AllFieldsOK() { return TRUE;}
protected:
CLargeEditField* fLocation;
CLargeEditField* fTitle;
CLargeEditField* fAuthor;
CLargeEditField* fDescription;
CLargeEditField* fKeywords;
CLargeEditField* fClassification;
};
// This should be moved to XP code in the future
typedef struct _EDT_ColorSchemeData {
char * pSchemeName;
LO_Color ColorText;
LO_Color ColorLink;
LO_Color ColorActiveLink;
LO_Color ColorFollowedLink;
LO_Color ColorBackground;
char * pBackgroundImage;
} EDT_ColorSchemeData;
class AppearanceContain: public CEditContain
{
AppearanceContain( LStream* inStream ) : CEditContain( inStream ){};
virtual void FinishCreateSelf();
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
void ChooseImageFile();
protected:
void UpdateTheWholeDamnDialogBox();
LControl* fCustomColor;
LControl* fBrowserColor;
LControl* fColorScheme;
CChameleonView* fExampleView;
CColorButton* fNormalText;
CColorButton* fLinkedText;
CColorButton* fActiveLinkedText;
CColorButton* fFollowedLinkedText;
CChameleonCaption* fExampleNormalText;
CChameleonCaption* fExampleLinkedTex;
CChameleonCaption* fExampleActiveLinkedText;
CChameleonCaption* fExampleFollowedLinkedText;
CColorButton* fSolidColor;
LControl* fImageFile;
CLargeEditField* fImageFileName;
XP_List* fSchemeData;
};
class CEDDocPropAppearanceContain: public AppearanceContain
{
public:
enum {class_ID = '6edl'};
CEDDocPropAppearanceContain( LStream* inStream ) : AppearanceContain( inStream ){};
virtual ~CEDDocPropAppearanceContain();
virtual void PrefsFromControls();
virtual void ControlsFromPref();
virtual Boolean AllFieldsOK() { return TRUE;}
virtual void Help();
};
class CEDDocAppearanceNoTab: public CEDDocPropAppearanceContain
{
public:
enum {class_ID = '6edL'};
CEDDocAppearanceNoTab( LStream* inStream ) : CEDDocPropAppearanceContain( inStream ){};
virtual ~CEDDocAppearanceNoTab() {;}
virtual void DrawSelf();
};
class CEDDocPropAdvancedContain: public CEditContain
{
public:
enum {class_ID = '7edl'};
CEDDocPropAdvancedContain( LStream* inStream ) : CEditContain( inStream ){};
virtual ~CEDDocPropAdvancedContain();
virtual void FinishCreateSelf();
void PutStringsInBuffer();
Boolean BufferUnique();
virtual void PrefsFromControls();
virtual void ControlsFromPref();
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
virtual void Help();
virtual Boolean AllFieldsOK() { return TRUE;}
protected:
int16 fbufferlen;
char* fbuffer;
OneRowLListBox* fSystemVariables;
OneRowLListBox* fUserVariables;
CLargeEditField* fName;
CLargeEditField* fValue;
};
class CEDTableContain: public CEditContain
{
public:
enum {class_ID = '8edl'};
CEDTableContain( LStream* inStream ) : CEditContain( inStream ) { pExtra = NULL; }
~CEDTableContain() { XP_FREEIF(pExtra); }
virtual void FinishCreateSelf();
virtual void Help();
void AdjustEnable();
virtual void PrefsFromControls();
virtual void ControlsFromPref();
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
virtual Boolean AllFieldsOK();
protected:
LControl* fBorderCheckBox;
LGAEditField* fBorderWidthEditText;
LGAEditField* fCellSpacingEditText;
LGAEditField* fCellPaddingEditText;
LControl* fCustomWidth;
LGAEditField* fWidthEditText;
LControl* fWidthPopup;
LControl* fCustomHeight;
LGAEditField* fHeightEditText;
LControl* fHeightPopup;
LControl* fCustomColor;
CColorButton* fColorCustomColor;
LControl* fIncludeCaption;
LControl* fCaptionAboveBelow;
LGAPopup* mTableAlignment;
LControl* mFastLayout;
LControl* mUseImage;
CLargeEditField* mImageFileName;
LControl* mLeaveImage;
char* pExtra;
};
class CEDTableCellContain: public CEditContain
{
public:
enum {class_ID = 'aedl'};
CEDTableCellContain( LStream* inStream ) : CEditContain( inStream ) { pExtra = NULL; }
~CEDTableCellContain() { XP_FREEIF(pExtra); }
virtual void FinishCreateSelf();
virtual void Help();
void AdjustEnable();
virtual void PrefsFromControls();
virtual void ControlsFromPref();
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
virtual Boolean AllFieldsOK();
protected:
LGAEditField* fRowSpanEditText;
LGAEditField* fColSpanEditText;
LGAPopup* fHorizontalAlignment;
LGAPopup* fVerticalAlignment;
LControl* fHeaderStyle;
LControl* fWrapText;
LControl* fCustomWidth;
LGAEditField* fWidthEditText;
LControl* fWidthPopup;
LControl* fCustomHeight;
LGAEditField* fHeightEditText;
LControl* fHeightPopup;
LControl* fCustomColor;
CColorButton* fColorCustomColor;
LControl* mNextButton;
LControl* mPreviousButton;
LControl* mUseImage;
CLargeEditField* mImageFileName;
LControl* mLeaveImage;
char* pExtra;
};

View File

@@ -1,342 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "meditor.h" // HandleModalDialog
#include "StBlockingDialogHandler.h"
#include "CEditView.h"
#include "macgui.h" // UGraphics::MakeLOColor
#include "CPaneEnabler.h"
#include "resgui.h" // EDITDLG_AUTOSAVE
#include "edt.h"
#include "fe_proto.h"
#include "prefapi.h" // PREF_GetBoolPref, PREF_GetIntPref
#include "shist.h" // SHIST_GetCurrent
#include "uapp.h" // CFrontApp
#include "CColorPopup.h"
extern "C" {
#include "xpgetstr.h"
#define WANT_ENUM_STRING_IDS
#include "allxpstr.h"
#undef WANT_ENUM_STRING_IDS
}
#include "CNSContext.h" // ExtractHyperView
// takes pascal-strings
MessageT HandleModalDialog( int id, const unsigned char *prompt1, const unsigned char* prompt2)
{
StPrepareForDialog prepare;
StBlockingDialogHandler handler( id, NULL );
LDialogBox* dialog = (LDialogBox *)handler.GetDialog();
if ( prompt1 )
{
LCaption *caption = (LCaption *)dialog->FindPaneByID( '^1 ' );
if ( caption )
caption->SetDescriptor( prompt1 );
}
if ( prompt2 )
{
LCaption *caption = (LCaption *)dialog->FindPaneByID( '^2 ' );
if ( caption )
caption->SetDescriptor( prompt2 );
}
MessageT message;
do {
message = handler.DoDialog();
}
while ( message == 0 );
return message;
}
/* Set default colors, background from user Preferences via the Page Data structure
*/
void FE_SetNewDocumentProperties(MWContext * pContext)
{
if ( pContext && pContext->is_editor && pContext->bIsComposeWindow )
return;
EDT_PageData *pageData = EDT_NewPageData();
if (pageData == NULL) return;
if (CPrefs::GetBoolean(CPrefs::EditorUseCustomColors )) {
LO_Color EditorText = UGraphics::MakeLOColor(CPrefs::GetColor(CPrefs::EditorText));
LO_Color EditorLink = UGraphics::MakeLOColor(CPrefs::GetColor(CPrefs::EditorLink));
LO_Color EditorActiveLink = UGraphics::MakeLOColor(CPrefs::GetColor(CPrefs::EditorActiveLink));
LO_Color EditorFollowedLink = UGraphics::MakeLOColor(CPrefs::GetColor(CPrefs::EditorFollowedLink));
LO_Color EditorBackground = UGraphics::MakeLOColor(CPrefs::GetColor(CPrefs::EditorBackground));
pageData->pColorText = &EditorText;
pageData->pColorLink= &EditorLink;
pageData->pColorActiveLink = &EditorActiveLink;
pageData->pColorFollowedLink = &EditorFollowedLink;
pageData->pColorBackground = &EditorBackground;
} else {
pageData->pColorText = NULL; // I assume this is how we get the browser defaults...
pageData->pColorLink= NULL;
pageData->pColorActiveLink = NULL;
pageData->pColorFollowedLink = NULL;
pageData->pColorBackground = NULL;
}
Bool hasBackgroundImage;
if ( ( PREF_GetBoolPref( "editor.use_background_image", &hasBackgroundImage ) == PREF_NOERROR )
&& hasBackgroundImage )
{
pageData->pBackgroundImage = CPrefs::GetCharPtr(CPrefs::EditorBackgroundImage);
if (pageData->pBackgroundImage && XP_STRLEN(pageData->pBackgroundImage) == 0) // if there is really nothing there, skip it.
pageData->pBackgroundImage = NULL;
}
else
pageData->pBackgroundImage = NULL;
if ( pContext && pContext->title )
pageData->pTitle = XP_STRDUP(pContext->title);
EDT_SetPageData(pContext, pageData);
pageData->pColorText = NULL; // don't free out lacal data!!!
pageData->pColorLink= NULL;
pageData->pColorActiveLink = NULL;
pageData->pColorFollowedLink = NULL;
pageData->pColorBackground = NULL;
pageData->pBackgroundImage = NULL;
EDT_FreePageData(pageData);
// Set Author name:
// CStr255 EditorAuthor(CPrefs::GetString(CPrefs::EditorAuthor));
// FE_UsersFullName();
EDT_MetaData *metaData = EDT_NewMetaData();
if (metaData == NULL) return;
metaData->bHttpEquiv = FALSE;
metaData->pName = XP_STRDUP("Author");
metaData->pContent = XP_STRDUP(CPrefs::GetString(CPrefs::EditorAuthor));
EDT_SetMetaData(pContext, metaData);
EDT_FreeMetaData(metaData);
}
/*
* Brings up a modal image load dialog and returns. Calls
* EDT_ImageLoadCancel() if the cancel button is pressed
*/
void FE_ImageLoadDialog( MWContext * /* pContext */ )
{
}
/*
* called by the editor engine after the image has been loaded
*/
void FE_ImageLoadDialogDestroy( MWContext * /* pContext */ )
{
}
void FE_EditorDocumentLoaded( MWContext *pContext )
{
if (pContext == NULL || !EDT_IS_EDITOR(pContext))
return;
CEditView *editView = (CEditView *)ExtractHyperView(pContext);
int32 iSave;
if ( pContext->bIsComposeWindow )
{
iSave = 0; // auto-save
CMailEditView *mailEditView = dynamic_cast<CMailEditView *>(editView);
if ( mailEditView )
mailEditView->InitMailCompose();
}
else
{
XP_Bool doAutoSave;
PREF_GetBoolPref( "editor.auto_save", &doAutoSave );
if ( doAutoSave )
PREF_GetIntPref( "editor.auto_save_delay", &iSave );
else
iSave = 0;
}
EDT_SetAutoSavePeriod(pContext, iSave );
// remember when the file was (last) modified
// initializes date/time stamp for external editor warning
EDT_IsFileModified(pContext);
// We had disabled everything, now we have to enable it again. This happens automatically on activate, but we might not get an activate
// if we don't have a dialog poping up (like if the user just creates a new document, there is no dialog...)
// set this after calling InitMailCompose
if ( editView )
{
editView->mEditorDoneLoading = true;
// set color popup control to show correct default color (now that we have an mwcontext)
editView->mColorPopup->InitializeCurrentColor();
}
InitCursor();
(CFrontApp::GetApplication())->UpdateMenus();
}
Bool FE_CheckAndAutoSaveDocument(MWContext *pContext)
{
if (pContext == NULL || !EDT_IS_EDITOR(pContext) || ExtractHyperView(pContext) == NULL )
return FALSE;
if ( pContext->bIsComposeWindow )
return FALSE;
CEditView *editView = (CEditView *)ExtractHyperView(pContext);
if ( FrontWindow() != editView->GetMacPort() )
return true;
if (!EDT_DirtyFlag(pContext) && !EDT_IS_NEW_DOCUMENT(pContext))
return TRUE;
History_entry* newEntry = SHIST_GetCurrent(&pContext->hist);
CStr255 fileName;
if ( newEntry && newEntry->address )
fileName = newEntry->address;
MessageT itemHit = HandleModalDialog(EDITDLG_AUTOSAVE, fileName, NULL );
if (itemHit != ok)
return FALSE;
return ((CEditView *)ExtractHyperView(pContext))->SaveDocument();
}
void FE_FinishedSave( MWContext * /* pMWContext */, int /* status */, char * /* pDestURL */, int /* iFileNumber */ )
{
}
// in xp_file.h
// Create a backup filename for renaming current file before saving data
// Input should be be URL file type "file:///..."
// Caller must free the string with XP_FREE
/*
* I don't know what the logic here should be, so I mostly copied this from the Windows code in:
* src/ns/cmd/winfe/fegui.cpp#XP_BackupFileName()
* (I didn't copy all the Windows code which deals with 8.3 filenames.)
*/
char * XP_BackupFileName( const char * szURL )
{
// Must have "file:" URL type and at least 1 character after "///"
if ( szURL == NULL || !NET_IsLocalFileURL((char*)szURL) || XP_STRLEN(szURL) <= 8 )
return NULL;
// Add extra space for '\0' and '.BAK', but subtract space for "file:///"
char *szFileName = (char *)XP_ALLOC((XP_STRLEN(szURL)+1+4-7)*sizeof(char));
if ( szFileName == NULL )
return NULL;
// Get filename but ignore "file:///"
// {
// char* filename = WH_FileName(szURL+7, xpURL);
// if (!filename) return NULL;
// XP_STRCPY(szFileName,filename);
// XP_FREE(filename);
// }
XP_STRCPY(szFileName, szURL+7);
// Add extension to the filename
XP_STRCAT( szFileName, ".BAK" );
return szFileName;
}
// If pszLocalName is not NULL, we return the full pathname
// in local platform syntax, even if file is not found.
// Caller must free this string.
// Returns TRUE if file already exists
//
/*
* I don't know what the logic here should be, so I mostly copied this from the Windows code in:
* src/ns/cmd/winfe/fegui.cpp#XP_ConvertUrlToLocalFile()
* (I didn't copy all the Windows code which deals with 8.3 filenames.)
*/
// The results of this call are passed directly to functions like XP_Stat and XP_FileOpen.
// brade--use xpURL format
Bool XP_ConvertUrlToLocalFile(const char * szURL, char **pszLocalName) // return TRUE if the file exists!! or return FALSE;
{
// Default assumes no file found - no local filename
Boolean bFileFound = FALSE;
if ( pszLocalName )
*pszLocalName = NULL;
// if "file:///Untitled" fail to convert
if ( szURL && XP_STRCMP( szURL, XP_GetString(XP_EDIT_NEW_DOC_NAME) ) == 0 )
return bFileFound;
// Must have "file:" URL type and at least 1 character after "///"
if ( szURL == NULL || !NET_IsLocalFileURL((char*)szURL) || XP_STRLEN(szURL) <= 8 )
return FALSE;
// Extract file path from URL: e.g. "/c|/foo/file.html"
char *szFileName = NET_ParseURL( szURL, GET_PATH_PART);
if (szFileName == NULL)
return FALSE;
// NET_UnEscape(szFileName); This will be done in WH_FileName, so don't unescape twice.
// Test if file exists
XP_StatStruct statinfo;
if ( -1 != XP_Stat(szFileName, &statinfo, xpURL) // if the file exists
&& statinfo.st_mode & S_IFREG ) // and its a normal file
bFileFound = TRUE; // We found it!
if ( pszLocalName )
{
// Pass string to caller
*pszLocalName = WH_FileName(szFileName, xpURL);
if (szFileName)
XP_FREE( szFileName );
}
else
XP_FREE(szFileName);
return bFileFound;
}

View File

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

File diff suppressed because it is too large Load Diff

View File

@@ -1,141 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#pragma once
#include "np.h"
#include "npapi.h"
#include <Printing.h>
#include <Icons.h>
#include <LView.h>
#include <LPeriodical.h>
#include <LCommander.h>
#include <LDragAndDrop.h>
#include <TArray.h>
class StPluginFocus;
//
// Return the "plug-in descriptor" that we pass to XP code
// (this is really just a pointer to a CPluginHandler).
//
class CStr255;
extern void* GetPluginDesc(const CStr255& pluginName);
/*********************************************************************************
* CPluginView
* Embeds the plugin, and passes on the events to it
*********************************************************************************/
class CPluginView : public LView, // Drawing, etc
public LPeriodical, // Idling
public LCommander, // Key events
public LDragAndDrop // Dragging
{
public:
friend class StPluginFocus;
enum { class_ID = 'plug' };
// ¥¥ constructors
CPluginView(LStream *inStream);
virtual ~CPluginView();
void EmbedCreate(MWContext* context, LO_EmbedStruct* embed_struct);
void EmbedFree(MWContext* context, LO_EmbedStruct* embed_struct);
void EmbedSize(LO_EmbedStruct* embed_struct, SDimension16 hyperSize);
void EmbedDisplay(LO_EmbedStruct* embed_struct, Boolean isPrinting);
// ¥¥ access
NPWindow* GetNPWindow() { return &fNPWindow; }
NPEmbeddedApp* GetNPEmbeddedApp() { return fApp; }
// ¥¥ event processing
static CPluginView* sPluginTarget;
static void BroadcastPluginEvent(const EventRecord& event);
static Boolean PluginWindowEvent(const EventRecord& event);
virtual void ClickSelf(const SMouseDownEvent& inMouseDown);
virtual void EventMouseUp(const EventRecord &inMacEvent);
virtual Boolean ObeyCommand(CommandT inCommand, void *ioParam);
virtual Boolean HandleKeyPress(const EventRecord& inKeyEvent);
virtual void DrawSelf();
virtual void SpendTime(const EventRecord& inMacEvent);
virtual void ActivateSelf();
virtual void DeactivateSelf();
virtual void BeTarget();
virtual void DontBeTarget();
virtual void AdjustCursorSelf(Point inPortPt, const EventRecord& inMacEvent);
Boolean PassEvent(EventRecord& inEvent);
virtual Boolean HandleEmbedEvent(CL_Event *event);
// ¥¥ positioning
virtual void AdaptToNewSurroundings();
virtual void AdaptToSuperFrameSize(Int32 inSurrWidthDelta, Int32 inSurrHeightDelta, Boolean inRefresh);
virtual void MoveBy(Int32 inHorizDelta, Int32 inVertDelta, Boolean inRefresh);
Boolean IsPositioned() const { return fPositioned; }
// ¥¥Êdragging
virtual Boolean DragIsAcceptable(DragReference inDragRef);
virtual void HiliteDropArea(DragReference inDragRef);
virtual void UnhiliteDropArea(DragReference inDragRef);
// ¥¥ printing
Boolean PrintFullScreen(Boolean printOne, THPrint printRecHandle);
void PrintEmbedded();
// ¥¥ broken plugin
void SetBrokenPlugin();
void DrawBroken(Boolean hilite);
void SetPositioned(Boolean positioned = true) { fPositioned = positioned; }
// ¥¥ window control
void RegisterWindow(void* window);
void UnregisterWindow(void* window);
Boolean PassWindowEvent(EventRecord& inEvent, WindowPtr window);
SInt16 AllocateMenuID(Boolean isSubmenu);
Boolean IsPluginCommand(CommandT inCommand);
static CPluginView* FindPlugin(WindowPtr window);
private:
void ResetDrawRect();
NPEmbeddedApp* fApp;
NPWindow fNPWindow;
NP_Port fNPPort;
CPluginView* fOriginalView;
CIconHandle fBrokenIcon;
short fHorizontalOffset;
short fVerticalOffset;
Boolean fBrokenPlugin;
Boolean fPositioned;
Boolean fHidden;
Boolean fWindowed;
LO_EmbedStruct* fEmbedStruct;
Boolean fIsPrinting;
LArray* fWindowList;
TArray<SInt16>* fMenuList;
static LArray* sPluginList;
};

View File

@@ -1,539 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// mregistr.cp
// Registry for AppleEvent notifiers
// Pretty clumsy right now, but separating this functionality out of uapp seems
// to be the right thing.
// It is just a collection of routines
// MacNetscape
#include "mregistr.h"
#include "macutil.h"
#include "CAppleEventHandler.h"
#include "resae.h"
#include "resgui.h"
#include "ufilemgr.h"
#include "uprefd.h"
#include "CNSContext.h"
#ifndef MOZ_MAIL_NEWS
#include "InternetConfig.h"
#endif
// xp
#include "client.h"
static LArray sURLEchoHandlers(sizeof(ProcessSerialNumber));
static LArray sProtocolHandlers;
/************************************************************************************
* class CProtocolHelper
* Holds the information about protocol helpers, and knows how to launch them
************************************************************************************/
class CProtocolHelper {
public:
char * fProtocolInfo; // String that specifies the protocol
OSType fApplSig; // Application to launch. Do not use these unless in saving/restoring
// ¥¥ constructors
CProtocolHelper(char * protocolInfo, OSType applSig);
virtual ~CProtocolHelper();
// ¥¥ access
Boolean AttemptLaunch(URL_Struct *url, MWContext *context);
Boolean EqualTo(char * protocolInfo, OSType applSig);
Boolean operator==(CProtocolHelper * p);
static void AddNewHelper(CProtocolHelper * helper);
};
CProtocolHelper::CProtocolHelper(char * protocolInfo, OSType applSig)
{
fProtocolInfo = protocolInfo;
fApplSig = applSig;
}
CProtocolHelper::~CProtocolHelper()
{
if (fProtocolInfo)
XP_FREE(fProtocolInfo);
}
Boolean CProtocolHelper::operator==(CProtocolHelper * p)
{
if (fProtocolInfo && p->fProtocolInfo)
return (strcmp(fProtocolInfo, p->fProtocolInfo) == 0);
return false;
}
// This is used for the helper removal
// It returns true if we do not have the protocol info
Boolean CProtocolHelper::EqualTo(char * protocolInfo, OSType applSig)
{
if (applSig != fApplSig)
return false;
if (protocolInfo && fProtocolInfo)
if (strcmp(protocolInfo, fProtocolInfo) == 0)
return true;
else
return false;
else
return true;
return false;
}
// Finds the running helper application
// Tries to send a OpenURL event to the registered protocol handler
// If this does not work, sends the standard GetURL event
Boolean CProtocolHelper::AttemptLaunch(URL_Struct *url, MWContext */*context*/)
{
if (!url->address)
return false;
if (strncasecomp(url->address, fProtocolInfo, strlen(fProtocolInfo)) != 0)
return false;
ProcessSerialNumber psn;
FSSpec dummy;
OSErr err = FindProcessBySignature(fApplSig,'APPL',psn,&dummy);
if (err != noErr)
{
FSSpec appSpec;
err = CFileMgr::FindApplication(fApplSig, appSpec);
if (err != noErr)
return false;
LaunchParamBlockRec launchParams;
launchParams.launchBlockID = extendedBlock;
launchParams.launchEPBLength = extendedBlockLen;
launchParams.launchFileFlags = 0;
launchParams.launchControlFlags = launchContinue + launchNoFileFlags;
launchParams.launchAppSpec = &appSpec;
launchParams.launchAppParameters = NULL;
err = LaunchApplication(&launchParams);
if (err != noErr)
return false;
err = FindProcessBySignature(fApplSig,'APPL',psn,&dummy);
if (err != noErr)
return false;
}
Try_ // Try the old Spyglass AE suite way first
{
AppleEvent event;
err = AEUtilities::CreateAppleEvent(AE_spy_send_suite, AE_spy_openURL, event, psn);
ThrowIfOSErr_(err);
// put in the URL
StAEDescriptor urlDesc(typeChar, url->address, url->address ? strlen(url->address) : 0);
err = ::AEPutParamDesc(&event,keyDirectObject,&urlDesc.mDesc);
ThrowIfOSErr_(err);
// Send it
AppleEvent reply;
Try_
{
err = ::AESend(&event, &reply, kAEWaitReply,kAENormalPriority,60,nil, nil);
AEDisposeDesc(&event);
err = AEUtilities::EventHasErrorReply(reply);
ThrowIfOSErr_(err);
AEDisposeDesc(&reply);
}
Catch_(inErr)
{
AEDisposeDesc(&reply);
// Bug #86055
// A -1 means the handler didn't want the event, not that it didn't handle it.
// In this case we should just return that the helper can't handle the protocol
// and Communicator/Navigator should handle it rather than also sending a GURL
// event to the helper app. This works around a problem under MacOS 8 where
// sending a GURL event to an app that didn't handle it could result in an infinite
// loop when the OS decided to re-direct the GURL back to us and we promptly sent
// it back to the handler that didn't handle it.
if (err == -1)
return false;
else
Throw_(inErr);
}
EndCatch_
}
Catch_(inErr) // old Spyglass AE suite way failed, try the standard event
{
AppleEvent reply;
Try_
{
AppleEvent event;
err = AEUtilities::CreateAppleEvent(AE_url_suite, AE_url_getURL, event, psn);
// put in the URL
StAEDescriptor urlDesc(typeChar, url->address, url->address ? strlen(url->address) : 0);
err = ::AEPutParamDesc(&event,keyDirectObject,&urlDesc.mDesc);
ThrowIfOSErr_(err);
err = ::AESend(&event, &reply, kAEWaitReply,kAENormalPriority,60,nil, nil);
AEDisposeDesc(&event);
ThrowIfOSErr_(AEUtilities::EventHasErrorReply(reply));
AEDisposeDesc(&reply);
}
Catch_(inErr)
{
AEDisposeDesc(&reply);
return false;
}
EndCatch_
}
EndCatch_
return true;
}
void CProtocolHelper::AddNewHelper(CProtocolHelper* helper)
{
if (helper == NULL)
return;
LArrayIterator iter(sProtocolHandlers);
CProtocolHelper * otherHelper;
while (iter.Next(&otherHelper)) // Delete duplicate registration for this protocol
if (*helper == otherHelper)
{
delete otherHelper;
sProtocolHandlers.Remove(&otherHelper);
}
sProtocolHandlers.InsertItemsAt(1,1, &helper);
NET_AddExternalURLType(helper->fProtocolInfo);
CPrefs::SetModified();
}
// Called from preferences, saves all the protocol handlers
void CNotifierRegistry::ReadProtocolHandlers()
{
// Add the bolo handler
CProtocolHelper *helper = new CProtocolHelper(strdup("bolo"), 'BOLO');
CProtocolHelper::AddNewHelper(helper);
CPrefs::UsePreferencesResFile();
Handle stringListHandle = ::Get1Resource('STR#', PROT_HANDLER_PREFS_RESID);
if (stringListHandle && *stringListHandle)
{
if (::GetHandleSize(stringListHandle) < sizeof(short))
{
::RemoveResource(stringListHandle);
::DisposeHandle(stringListHandle);
return;
}
}
CStringListRsrc stringRsrc(PROT_HANDLER_PREFS_RESID);
Int16 howMany = stringRsrc.CountStrings();
if (howMany == 0)
return;
// Each protocol handler is represented by 2 strings
// 1 - the application sig
// 2 - the protocol string
for (int i=1; i < howMany; i=i+2) // Increment by 2.
{
CStr255 applSigStr, protocol;
stringRsrc.GetString(i, applSigStr);
if (ResError()) return;
stringRsrc.GetString(i+1, protocol);
if (ResError()) return;
OSType appSig;
LString::PStrToFourCharCode(applSigStr, appSig);
CProtocolHelper * newHelper = new CProtocolHelper(XP_STRDUP((char*)protocol), appSig);
CProtocolHelper::AddNewHelper(newHelper);
}
}
// Called from preferences, writes all the protocol handlers
void CNotifierRegistry::WriteProtocolHandlers()
{
Int32 howMany = sProtocolHandlers.GetCount();
if (howMany <= 1)
return;
Handle stringListHandle = ::Get1Resource('STR#', PROT_HANDLER_PREFS_RESID);
if (!stringListHandle) {
stringListHandle = ::NewHandle(0);
::AddResource(stringListHandle, 'STR#',
PROT_HANDLER_PREFS_RESID, CStr255::sEmptyString);
}
if (stringListHandle && *stringListHandle)
{
SInt8 flags = ::HGetState(stringListHandle);
::HNoPurge(stringListHandle);
CStringListRsrc stringRsrc(PROT_HANDLER_PREFS_RESID);
stringRsrc.ClearAll();
for (int i=1; i<=howMany - 1; i++)
{
CProtocolHelper * helper = NULL;
if (sProtocolHandlers.FetchItemAt(i, &helper))
{
CStr255 protocol(helper->fProtocolInfo);
Str255 sig;
LString::FourCharCodeToPStr(helper->fApplSig, sig);
stringRsrc.AppendString(sig);
stringRsrc.AppendString(protocol);
}
}
::WriteResource(stringListHandle);
::HSetState(stringListHandle, flags);
}
}
void CNotifierRegistry::HandleAppleEvent(const AppleEvent &inAppleEvent, AppleEvent &outAEReply,
AEDesc &outResult, long inAENumber)
{
switch(inAENumber) {
case AE_RegisterURLEcho:
HandleRegisterURLEcho(inAppleEvent, outAEReply, outResult, inAENumber);
break;
case AE_UnregisterURLEcho:
HandleUnregisterURLEcho(inAppleEvent, outAEReply, outResult, inAENumber);
break;
case AE_RegisterProtocol:
HandleRegisterProtocol(inAppleEvent, outAEReply, outResult, inAENumber);
break;
case AE_UnregisterProtocol:
HandleUnregisterProtocol(inAppleEvent, outAEReply, outResult, inAENumber);
break;
default:
ThrowOSErr_(errAEEventNotHandled);
}
}
// Always save the PSN
void CNotifierRegistry::HandleRegisterURLEcho(const AppleEvent &inAppleEvent, AppleEvent &outAEReply,
AEDesc &/*outResult*/, long /*inAENumber*/)
{
OSType appSignature;
ProcessSerialNumber psn;
Size realSize;
OSType realType;
OSErr err = ::AEGetParamPtr(&inAppleEvent, keyDirectObject, typeApplSignature, &realType,
&appSignature, sizeof(appSignature), &realSize);
if (err == noErr) // No parameters, extract the signature from the Apple Event
psn = GetPSNBySig(appSignature);
else
psn = MoreExtractFromAEDesc::ExtractAESender(inAppleEvent);
// Each application can register only once
LArrayIterator iter(sURLEchoHandlers);
ProcessSerialNumber newPSN;
while (iter.Next(&newPSN)) // If we are already registered, returns
if ((newPSN.highLongOfPSN == psn.highLongOfPSN) && (newPSN.lowLongOfPSN == psn.lowLongOfPSN))
ThrowOSErr_(errAECoercionFail);
sURLEchoHandlers.InsertItemsAt(1,1, &psn);
{
Boolean success = true;
StAEDescriptor replyDesc(success);
err = ::AEPutParamDesc(&outAEReply, keyAEResult, &replyDesc.mDesc);
}
}
void CNotifierRegistry::HandleUnregisterURLEcho(const AppleEvent &inAppleEvent,
AppleEvent &/*outAEReply*/, AEDesc &/*outResult*/, long /*inAENumber*/)
{
OSType appSignature;
ProcessSerialNumber psn;
Size realSize;
OSType realType;
OSErr err = ::AEGetParamPtr(&inAppleEvent, keyDirectObject, typeApplSignature, &realType,
&appSignature, sizeof(appSignature), &realSize);
if (err == noErr) // No parameters, extract the signature from the Apple Event
psn = GetPSNBySig(appSignature);
else
psn = MoreExtractFromAEDesc::ExtractAESender(inAppleEvent);
LArrayIterator iter(::sURLEchoHandlers);
ProcessSerialNumber newPSN;
while (iter.Next(&newPSN))
if ((newPSN.highLongOfPSN == psn.highLongOfPSN) && (newPSN.lowLongOfPSN == psn.lowLongOfPSN))
sURLEchoHandlers.Remove(&newPSN);
}
// Echoing of the URLs. For each registered application, send them the URLEcho AE
void FE_URLEcho(URL_Struct *url, int /*iStatus*/, MWContext *context)
{
ProcessSerialNumber psn;
OSErr err;
LArrayIterator iter(sURLEchoHandlers);
while (iter.Next(&psn))
Try_
{
// Create the event, fill in all the arguments, and send it
AEAddressDesc target; // Target the event
err = AECreateDesc(typeProcessSerialNumber, &psn,sizeof(psn), &target);
ThrowIfOSErr_(err);
AppleEvent echoEvent;
err = ::AECreateAppleEvent(AE_spy_send_suite, AE_spy_URLecho,
&target,
kAutoGenerateReturnID,
kAnyTransactionID,
&echoEvent);
ThrowIfOSErr_(err);
AEDisposeDesc(&target);
// Add the URL
if (url->address)
{
err = ::AEPutParamPtr(&echoEvent, keyDirectObject, typeChar, url->address, strlen(url->address));
ThrowIfOSErr_(err);
}
// Add the MIME type
if (url->content_type)
{
err = ::AEPutParamPtr(&echoEvent, AE_spy_URLecho_mime, typeChar, url->content_type, strlen(url->content_type));
ThrowIfOSErr_(err);
}
// Add the refererer
if (url->referer)
{
err = ::AEPutParamPtr(&echoEvent, AE_spy_URLecho_referer, typeChar, url->referer, strlen(url->referer));
ThrowIfOSErr_(err);
}
// Add the window ID
CNSContext* nsContext = ExtractNSContext(context);
ThrowIfNil_(context);
Int32 windowID = nsContext->GetContextUniqueID();
err = ::AEPutParamPtr(&echoEvent, AE_spy_URLecho_win, typeLongInteger, &windowID, sizeof(windowID));
ThrowIfOSErr_(err);
AppleEvent reply;
err = ::AESend(&echoEvent, &reply, kAENoReply,kAENormalPriority,0,nil, nil);
AEDisposeDesc(&echoEvent);
ThrowIfOSErr_(err);
}
Catch_(inErr){}
EndCatch_
}
// Registering the protocol
// The protocol is registered by application signature
void CNotifierRegistry::HandleRegisterProtocol(const AppleEvent &inAppleEvent,
AppleEvent &/*outAEReply*/, AEDesc &/*outResult*/, long /*inAENumber*/)
{
Size realSize;
DescType realType;
OSType appSignature;
char * protocol = nil;
CProtocolHelper * volatile helper;
Try_
{
OSErr err = ::AEGetParamPtr(&inAppleEvent, keyDirectObject, typeApplSignature, &realType,
&appSignature, sizeof(appSignature), &realSize);
if (err != noErr) // Signature was not passed appropriately typed, try as type
{
OSErr err = ::AEGetParamPtr(&inAppleEvent, keyDirectObject, typeType, &realType,
&appSignature, sizeof(appSignature), &realSize);
if (err != noErr) // No signature passed, extract it from the Apple Event
{
ProcessSerialNumber psn = MoreExtractFromAEDesc::ExtractAESender(inAppleEvent);
ProcessInfoRec pir;
FSSpec dummy;
pir.processAppSpec = &dummy;
err = ::GetProcessInformation(&psn, &pir);
ThrowIfOSErr_(err);
appSignature = pir.processSignature;
}
}
// Extract the protocol
MoreExtractFromAEDesc::GetCString(inAppleEvent, AE_spy_register_protocol_pro, protocol);
// Have app signature, and protocol, add them to the list
helper = new CProtocolHelper(protocol, appSignature);
CProtocolHelper::AddNewHelper(helper);
}
Catch_(inErr){}
EndCatch_
}
void CNotifierRegistry::HandleUnregisterProtocol(const AppleEvent &inAppleEvent,
AppleEvent &/*outAEReply*/, AEDesc &/*outResult*/, long /*inAENumber*/)
{
Size realSize;
DescType realType;
OSType appSignature;
char * protocol = nil;
Try_
{
OSErr err = ::AEGetParamPtr(&inAppleEvent, keyDirectObject, typeApplSignature, &realType,
&appSignature, sizeof(appSignature), &realSize);
if (err != noErr)
err = ::AEGetParamPtr(&inAppleEvent, keyDirectObject, typeType, &realType,
&appSignature, sizeof(appSignature), &realSize);
if (err != noErr) // No signature passed, extract it from the Apple Event
{
ProcessSerialNumber psn = MoreExtractFromAEDesc::ExtractAESender(inAppleEvent);
ProcessInfoRec pir;
FSSpec dummy;
pir.processAppSpec = &dummy;
err = ::GetProcessInformation(&psn, &pir);
ThrowIfOSErr_(err);
appSignature = pir.processSignature;
}
// Extract the protocol. Not necessary. If we only have the sig, remove all the registered protocols
Try_
{
MoreExtractFromAEDesc::GetCString(inAppleEvent, AE_spy_register_protocol_pro, protocol);
}
Catch_(inErr){}
EndCatch_
// Delete it from the list
LArrayIterator iter(sProtocolHandlers);
CProtocolHelper * helper;
while (iter.Next(&helper)) // Delete duplicate registration for this protocol
if (helper->EqualTo(protocol, appSignature))
{
delete helper;
sProtocolHandlers.Remove(&helper);
}
if (protocol)
NET_DelExternalURLType(protocol);
}
Catch_(inErr){}
EndCatch_
}
XP_Bool FE_UseExternalProtocolModule(MWContext *context,
FO_Present_Types /*iFormatOut*/, URL_Struct *url,
Net_GetUrlExitFunc */*pExitFunc*/)
{
#ifndef MOZ_MAIL_NEWS
if (url->address && CInternetConfigInterface::CurrentlyUsingIC()) {
ICError err = CInternetConfigInterface::SendInternetConfigURL(url->address);
if (err == noErr)
return true;
}
#endif
LArrayIterator iter(sProtocolHandlers);
CProtocolHelper * helper;
while (iter.Next(&helper))
if (helper->AttemptLaunch(url, context))
return true;
return false;
}

View File

@@ -1,57 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// mregistr.h
// Registry for AppleEvent notifiers
// Pretty clumsy right now, but separating this functionality out of uapp seems
// to be the right thing.
// It is just a collection of routines
#pragma once
#include <LArray.h>
class CNotifierRegistry {
public:
// ¥¥ÊAppleEvent handling
static void HandleAppleEvent(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
static void ReadProtocolHandlers(); // Saving to prefs interface
static void WriteProtocolHandlers();
private:
static void HandleRegisterProtocol(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
static void HandleUnregisterProtocol(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
// ¥¥ url echo
static void HandleRegisterURLEcho(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
static void HandleUnregisterURLEcho(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
};

View File

@@ -1,489 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// ulaunch.cp
// Launching of external applications through AppleEvents
// Created by atotic, June 14th, 1994
// Based on Apple's LaunchWithDoc example snippet
#include <Folders.h>
#include <AERegistry.h>
#include <Errors.h>
#include "BufferStream.h"
#include "PascalString.h"
#include "macutil.h"
#include "uprefd.h"
#include "ufilemgr.h"
#include "uerrmgr.h"
#include "reserr.h"
#include "ulaunch.h"
// ¥¥ PROTOTYPES
OSErr FindAppOnVolume(OSType sig, short vRefNum, FSSpec& thefile);
// Sends an ODOC event to creator in fndrInfo,
// with file in fileSpec
OSErr SendODOCEvent(OSType appSig,
LFileBufferStream * inFile);
// Launches the application with the given doc
void LaunchWithDoc(FInfo& fndrInfo,
FSSpec& appSpec,
LFileBufferStream * inFile,
const FSSpec inFileSpec);
// Displays a launching error alert.
int LaunchError(ResIDT alertID, OSType creator, const Str63& fileName, OSErr err);
// Creates Finder's OpenSelection event
OSErr BuildOpenSelectionEvent(FSSpec & fileSpec, AppleEvent& theEvent);
// Sends OpenSelection to Finder
OSErr SendOpenSelectionToFinder(FSSpec & fileSpec);
// ¥¥ Implementation
// Builds an ODOC event
OSErr BuildODOCEvent(OSType applSig,
FSSpec fileSpec,
AppleEvent& theEvent) {
// Builds all the arguments for the event
AEDesc myAddress;
AEDesc docDesc;
AEDescList theList;
AliasHandle withThis;
OSErr err;
// Anatomy of the event:
// Event class: kCoreEventClass
// Event ID: kAEOpenDocuments
// Event has target description (in the form of typeApplSignature)
// keyDirectObject is a list of aliases
err = AECreateDesc(typeApplSignature,
(Ptr)&applSig, sizeof(applSig),
&myAddress);
if (err) return err;
err = AECreateAppleEvent(kCoreEventClass, kAEOpenDocuments,
&myAddress,
kAutoGenerateReturnID, kAnyTransactionID,
&theEvent);
if (err) return err;
// create a list for the alaises. In this case, I only have one, but
// you still need a list
err = AECreateList(NULL, 0, FALSE, &theList);
if (err) return err;
/* create an alias out of the file spec */
/* I'm not real sure why I did this, since there is a system coercion handler for */
/* alias to FSSpec, but I'm paranoid */
err = NewAlias(NULL, &fileSpec, &withThis);
if (err) return err;
HLock((Handle)withThis);
/* now create an alias descriptor */
err = AECreateDesc(typeAlias, (Ptr) * withThis, GetHandleSize((Handle)withThis), &docDesc);
if (err) return err;
HUnlock((Handle)withThis);
/* put it in the list */
err = AEPutDesc(&theList, 0, &docDesc);
if (err) return err;
err = AEPutParamDesc(&theEvent, keyDirectObject, &theList);
err = AEDisposeDesc(&myAddress);
err = AEDisposeDesc(&docDesc);
err = AEDisposeDesc(&theList);
return err;
}
// Sends an ODOC event to appliation
OSErr SendODOCEvent(OSType appSig,
LFileBufferStream * inFile)
{
OSErr err;
Try_ {
AppleEvent openEvent;
FSSpec inFileSpec;
inFile->GetSpecifier(inFileSpec);
err = BuildODOCEvent(appSig,
inFileSpec,
openEvent);
ThrowIfOSErr_(err);
AppleEvent result;
err = AESend(&openEvent, &result,
kAENoReply + kAECanSwitchLayer,
kAENormalPriority, kAEDefaultTimeout,
NULL,NULL);
AEDisposeDesc(&openEvent);
// err could be memFullErr, app is out of memory
ThrowIfOSErr_(err);
}
Catch_(inErr) {
return inErr;
} EndCatch_
return err;
}
#define kDelete 2
#define kSave 1
#define kTryAgain 3
// Displays launch error dialogs with appropriate arguments.
// Alerts used are:
// ALRT_ODOCFailed
// ALRT_AppNotFound
// ALRT_AppMemFull
// ALRT_MiscLaunchError
// Returns: kDelete, kSave, or kTryAgain
int LaunchError(ResIDT alertID, OSType creator, const Str63& fileName, OSErr err)
{
CMimeMapper * map = CPrefs::sMimeTypes.FindCreator(creator);
ErrorManager::PrepareToInteract();
CStr255 errorString;
ErrorManager::OSNumToStr(err, errorString);
ParamText(map->GetAppName(), fileName, errorString, "\p");
UDesktop::Deactivate();
int retVal = ::CautionAlert(alertID, NULL);
UDesktop::Activate();
return retVal;
}
// Launches an application with a given doc
OSErr StartDocInApp(FSSpec theDocument, FSSpec theApplication)
{
FInfo fndrInfo;
OSErr err;
HGetFInfo( theApplication.vRefNum,
theApplication.parID,
theApplication.name,
&fndrInfo);
FSSpec applSpecTemp;
ProcessSerialNumber processSN;
err = FindProcessBySignature(fndrInfo.fdCreator, 'APPL', processSN, &applSpecTemp);
if (err == noErr) // App is running. Send 'odoc'
{
Try_ {
AppleEvent theEvent;
err = BuildODOCEvent(fndrInfo.fdCreator, theDocument, theEvent);
ThrowIfOSErr_(err);
AppleEvent result;
err = AESend(&theEvent, &result,
kAENoReply + kAEAlwaysInteract + kAECanSwitchLayer,
kAENormalPriority, kAEDefaultTimeout,
NULL,NULL);
AEDisposeDesc(&theEvent);
// err could be memFullErr, app is out of memory
ThrowIfOSErr_(err);
if (IsFrontApplication())
SetFrontProcess(&processSN);
}
Catch_(inErr) {
return inErr;
} EndCatch_
return noErr;
}
Try_ {
LaunchParamBlockRec launchThis;
AEDesc launchDesc;
AppleEvent theEvent;
ThrowIfOSErr_(BuildODOCEvent(fndrInfo.fdCreator, theDocument, theEvent));
ThrowIfOSErr_(AECoerceDesc(&theEvent, typeAppParameters, &launchDesc));
launchThis.launchAppSpec = (FSSpecPtr)&theApplication;
launchThis.launchAppParameters = (AppParametersPtr)*(launchDesc.dataHandle);
launchThis.launchBlockID = extendedBlock;
launchThis.launchEPBLength = extendedBlockLen;
launchThis.launchFileFlags = NULL;
launchThis.launchControlFlags = launchContinue + launchNoFileFlags + launchUseMinimum;
if (!IsFrontApplication())
launchThis.launchControlFlags += launchDontSwitch;
err = LaunchApplication(&launchThis);
ThrowIfOSErr_(err);
}
Catch_(inErr)
{
} EndCatch_
return err;
}
// Launches the application with the given doc
void LaunchWithDoc(FInfo& fndrInfo,
FSSpec& appSpec,
LFileBufferStream * inFile,
const FSSpec inFileSpec)
{
OSErr err = CFileMgr::FindApplication(fndrInfo.fdCreator, appSpec);
if (err) // Application not found error
{
int whatToDo = ::LaunchError(ALRT_AppNotFound, fndrInfo.fdCreator,
inFileSpec.name, err);
if (whatToDo == kSave)
CFileMgr::sFileManager.CancelRegister(inFile); // Save the file
else // kDelete
CFileMgr::sFileManager.CancelAndDelete(inFile); // Delete the file
return;
}
Try_ {
LaunchParamBlockRec launchThis;
AEDesc launchDesc;
AppleEvent theEvent;
ThrowIfOSErr_(BuildODOCEvent(fndrInfo.fdCreator, inFileSpec, theEvent));
ThrowIfOSErr_(AECoerceDesc(&theEvent, typeAppParameters, &launchDesc));
launchThis.launchAppSpec = (FSSpecPtr)&appSpec;
launchThis.launchAppParameters = (AppParametersPtr)*(launchDesc.dataHandle);
/* launch the thing */
launchThis.launchBlockID = extendedBlock;
launchThis.launchEPBLength = extendedBlockLen;
launchThis.launchFileFlags = NULL;
launchThis.launchControlFlags = launchContinue + launchNoFileFlags + launchUseMinimum;
if (!IsFrontApplication())
launchThis.launchControlFlags += launchDontSwitch;
do // Launch until we succeed, or user gives up.
{
err = LaunchApplication(&launchThis);
if ((err == memFullErr) || (err == memFragErr))
// Launch failed because of low memory
{
int whatToDo = ::LaunchError(ALRT_AppMemFull, fndrInfo.fdCreator,
inFileSpec.name, err);
switch (whatToDo) {
case kSave:
CFileMgr::sFileManager.CancelRegister(inFile); // Save the file
err = noErr;
break;
case kDelete:
CFileMgr::sFileManager.CancelAndDelete(inFile); // Save the file
err = noErr;
break;
case kTryAgain: // Loop again
break;
}
}
else // Unknown launch error
ThrowIfOSErr_(err);
} while (err != noErr);
}
Catch_(inErr)
{
int whatToDo = ::LaunchError(ALRT_AppMiscError, fndrInfo.fdCreator,
inFileSpec.name, inErr);
if (whatToDo == kSave)
CFileMgr::sFileManager.CancelRegister(inFile); // Save the file
else // kDelete
CFileMgr::sFileManager.CancelAndDelete(inFile); // Delete the file
} EndCatch_
}
OSErr
CreateFinderAppleEvent( AEEventID eventID,
SInt16 returnID,
SInt32 transactionID,
AppleEvent & theEvent)
{
OSErr err;
FSSpec finder;
ProcessSerialNumber psn;
AEDesc finderAddress;
Boolean validAddress = false;
try
{
err = FindProcessBySignature('MACS', 'FNDR', psn, &finder);
ThrowIfOSErr_(err);
err = ::AECreateDesc(typeProcessSerialNumber, (Ptr)&psn, sizeof(psn), &finderAddress);
ThrowIfOSErr_(err);
validAddress = true;
err = ::AECreateAppleEvent( kAEFinderEvents,
eventID,
(const AEAddressDesc *) &finderAddress,
returnID,
transactionID,
&theEvent );
}
catch(long tErr)
{
if (validAddress)
::AEDisposeDesc(&finderAddress);
}
return err;
}
// Builds an OpenSelection event for Finder
OSErr BuildOpenSelectionEvent(FSSpec & fileSpec, AppleEvent& theEvent) {
FSSpec dirSpec, procSpec;
FSSpecPtr theFileToOpen = nil;
CStr63 processName;
AEDesc aeDirDesc, listElem;
AEDesc fileList;
ConstStr255Param * dummy = NULL;
// Create the event
OSErr err;
Try_ {
ProcessInfoRec pir;
pir.processInfoLength = sizeof(ProcessInfoRec);
pir.processName = (StringPtr)&processName;
pir.processAppSpec = &procSpec;
// Find a Finder, and create its description as an address for an apple event
err = CreateFinderAppleEvent(kAEOpenSelection, kAutoGenerateReturnID, kAnyTransactionID, theEvent);
ThrowIfOSErr_(err);
// Create a description of the file, and the enclosing folder
// keyDirectObject is directory description
//
err = CFileMgr::FolderSpecFromFolderID(fileSpec.vRefNum, fileSpec.parID, dirSpec);
ThrowIfOSErr_(err);
err = AECreateList(nil, 0, false, &fileList);
ThrowIfOSErr_(err);
AliasHandle DirAlias, FileAlias;
NewAlias(nil, &dirSpec, &DirAlias);
HLock((Handle)DirAlias);
err = AECreateDesc(typeAlias, (Ptr)*DirAlias, GetHandleSize((Handle)DirAlias), &aeDirDesc);
ThrowIfOSErr_(err);
HUnlock((Handle)DirAlias);
DisposeHandle((Handle)DirAlias);
err = AEPutParamDesc(&theEvent, keyDirectObject, &aeDirDesc);
ThrowIfOSErr_(err);
AEDisposeDesc(&aeDirDesc);
NewAlias(nil, &fileSpec, &FileAlias);
HLock((Handle)FileAlias);
err = AECreateDesc(typeAlias, (Ptr)*FileAlias, GetHandleSize((Handle)FileAlias), &listElem);
ThrowIfOSErr_(err);
HUnlock((Handle)FileAlias);
err = AEPutDesc(&fileList, 0, &listElem);
ThrowIfOSErr_(err);
DisposeHandle((Handle)FileAlias);
err = AEPutParamDesc( &theEvent, keySelection, &fileList);
ThrowIfOSErr_(err);
}
Catch_(inErr)
{
return inErr;
} EndCatch_
return noErr;
}
// Sends 'open selection event to Finder
OSErr SendOpenSelectionToFinder(FSSpec & fileSpec)
{
AppleEvent event;
AppleEvent result;
OSErr err = BuildOpenSelectionEvent(fileSpec, event);
if (err)
return err;
err = AESend(&event, &result,
kAENoReply + kAEAlwaysInteract + kAECanSwitchLayer,
kAENormalPriority, kAEDefaultTimeout,
NULL,NULL);
AEDisposeDesc(&event);
return err;
}
// A somewhat tricky way of opening a foreign document
// Algorithm:
// - if a process is not running, launch it with the document
// - if a process is running and AE aware, send it an AppleEvent
// - if a process is running and is not AE aware, send openSelection to the Finder.
void LaunchFile(LFileBufferStream * inFile)
{
FSSpec applSpec;
FInfo fndrInfo;
// Get file info
FSSpec inFileSpec;
inFile->GetSpecifier(inFileSpec);
HGetFInfo(inFileSpec.vRefNum,
inFileSpec.parID,
inFileSpec.name,
&fndrInfo);
// Find if the application is already running
ProcessSerialNumber processSN;
ProcessInfoRec infoRecToFill;
Str63 processName;
infoRecToFill.processInfoLength = sizeof(ProcessInfoRec);
infoRecToFill.processName = (StringPtr)&processName;
infoRecToFill.processAppSpec = &applSpec;
OSErr err = FindProcessBySignature(fndrInfo.fdCreator, 'APPL', processSN, &applSpec);
if (err == noErr) // App is running. Send 'odoc'
{
err = SendODOCEvent(fndrInfo.fdCreator, inFile);
if (err == noErr)
{
if (IsFrontApplication())
SetFrontProcess(&processSN);
}
else
{
// Application did not accept apple event for some reason (err = connectionInvalid)
// Send 'odoc' to Finder. Finder can figure out how to fake menu events when
// it tries to open the file
err = SendOpenSelectionToFinder(inFileSpec);
if (err == noErr)
{ // If finder launched the application successfully, find it and bring it to front
err = FindProcessBySignature(fndrInfo.fdCreator, 'APPL', processSN, &applSpec);
if (err == noErr && IsFrontApplication())
SetFrontProcess(&processSN);
}
else // Finder launch also failed. Notify the user
{
//Notify the user, try to handle the error
int whatToDo = LaunchError(ALRT_ODOCFailed,
fndrInfo.fdCreator,
inFileSpec.name, err);
if (whatToDo == 1)
CFileMgr::sFileManager.CancelRegister(inFile); // Save the file
else
CFileMgr::sFileManager.CancelAndDelete(inFile); // Delete the file
}
}
}
else // App is not running. Launch it with this file
LaunchWithDoc(fndrInfo, applSpec, inFile, inFileSpec);
}

View File

@@ -1,45 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// ===========================================================================
// ulaunch.h
// External application launching routines
// ===========================================================================
#pragma once
class LFileBufferStream;
// Opens the file in its creator application
void LaunchFile(LFileBufferStream * inFile);
// Launches an application with a given doc
OSErr StartDocInApp(FSSpec theDocument, FSSpec theApplication);
// Builds an ODOC event for appliation specified by applSig,
// with file in fileSpec
OSErr BuildODOCEvent(OSType applSig,
FSSpec fileSpec,
AppleEvent& theEvent);
OSErr
CreateFinderAppleEvent( AEEventID eventID,
SInt16 returnID,
SInt32 transactionID,
AppleEvent & theEvent);

View File

@@ -1,108 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "BookmarksFile.h"
#include "resgui.h"
#include "fe_proto.h"
#include <LStream.h>
#include <algorithm>
//
// ReadBookmarksFile
//
// Given a file containing a single URL (probably dropped on the Finder), open it and
// read the URL so we can load it.
//
OSErr
ReadBookmarksFile ( vector<char> & oURL, FSSpec & inSpec )
{
FInfo info;
OSErr err = ::FSpGetFInfo (&inSpec, &info);
if (err != noErr)
return err;
if (info.fdType != emBookmarkFile)
return fnfErr;
try {
LFileStream stream(inSpec);
stream.OpenDataFork(fsRdPerm);
Int32 howMuch;
// Read in the URL, which is in the form URL\rTITLE
howMuch = stream.ReadData(oURL.begin(), oURL.size());
char* where = find(oURL.begin(), oURL.end(), '\r');
ThrowIfNil_(where);
*where = 0;
}
catch ( Uint32 inErr )
{
return inErr;
}
return noErr;
}
//
// WriteBookmarksFile
//
// Given an URL (probably dropped on the Finder), create a file and store the URL
//
OSErr WriteBookmarksFile(char * url, FSSpec & spec)
{
if (!url)
return noErr;
LFileStream stream(spec);
try
{
stream.CreateNewDataFile(emSignature, emBookmarkFile, 0);
}
catch (OSErr inErr)
{
if (inErr != dupFNErr)
return inErr;
}
catch (...)
{
return memFullErr;
}
try
{
// Set up the file
stream.OpenDataFork(fsRdWrPerm);
stream.SetMarker(0, streamFrom_Start);
char lineEnding = CR;
// Write the URL
stream.WriteData((void*)url, XP_STRLEN(url) );
stream.WriteData(&lineEnding, 1);
}
catch (OSErr err)
{
return err;
}
catch (...)
{
return memFullErr;
}
return noErr;
}

View File

@@ -1,27 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#pragma once
#include <Files.h>
#include <vector.h>
OSErr ReadBookmarksFile( vector<char> & oURL, FSSpec & spec);
//OSErr WriteBookmarksFile(BM_Entry * entry, FSSpec & spec);
OSErr WriteBookmarksFile(char * url, FSSpec & spec);

View File

@@ -1,331 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// BrowserClasses.cp
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
#include "BrowserClasses.h"
// ¥¥¥ PowerPlant Classes
#include <URegistrar.h>
#include <LActiveScroller.h>
#include <LButton.h>
#include <LCaption.h>
#include <LDialogBox.h>
#include <LEditField.h>
#include <LGroupBox.h>
#include <LIconPane.h>
#include <LListBox.h>
#include <LPicture.h>
#include <LPlaceHolder.h>
#include <LPrintout.h>
#include <LScroller.h>
#include <LStdControl.h>
#include <LTable.h>
#include <LTextEdit.h>
#include <LWindow.h>
#include <LRadioGroup.h>
#include <LTabGroup.h>
#include <LTextColumn.h>
#include "CTextColumn.h" // Netscape's own LTextColumn
#include <LSubOverlapView.h>
// ¥¥¥ PowerPlant Grayscale Classes
#include <UGALibRegistry.h>
// ¥¥¥ General Purpose UI Classes
#include "CBevelButton.h"
#include "CPatternButton.h"
#include "CGrayBevelView.h"
#include "CPatternBevelView.h"
#include "CPatternButtonPopup.h"
#include "CGuidePopupMenu.h"
#include "CNavigationButtonPopup.h"
#include "CCloseAllAttachment.h"
#include "CColorEraseAttachment.h"
#include "CGABorderPane.h"
#include "CPatternPane.h"
#include "CIncludeView.h"
#include "CPlaceHolderView.h"
#include "COffscreenCaption.h"
#include "CClusterView.h"
#include "CTabSwitcher.h"
#include "CPatternTabControl.h"
#include "CProgressBar.h"
// #include "CProgressCaption.h"
#include "CTaskBarView.h"
#include "LTableHeader.h"
#include "LTableViewHeader.h"
#include "CSimpleDividedView.h"
#include "CKeyScrollAttachment.h"
#include "CToolTipAttachment.h"
#include "CDynamicTooltips.h"
#include "CPaneEnabler.h"
#include "CStringListToolTipPane.h"
#include "CSaveProgress.h"
#include "CPatternProgressBar.h"
#include "CScrollerWithArrows.h"
#ifdef MOZ_MAIL_NEWS
#include "CBiffButtonAttachment.h"
#include "CSingleLineEditField.h"
#endif
// ¥¥¥ Browser Specific UI Classes
#include "CDragBar.h"
#include "CDragBarContainer.h"
#include "CDragBarDockControl.h"
#include "CPatternedGrippyPane.h"
#include "CDividerGrippyPane.h"
#include "CSwatchBrokerView.h"
#include "CToolbarDragBar.h"
#include "CToolbarPatternBevelView.h"
#include "CProxyPane.h"
#include "CProxyCaption.h"
#include "PopupBox.h"
#include "CPersonalToolbarTable.h"
#include "CNavCenterWindow.h"
#include "CNavCenterSelectorPane.h"
#include "CNavCenterContextMenuAtt.h"
#include "CNavCenterTitle.h"
#include "CInlineEditField.h"
#include "CConfigActiveScroller.h"
#include "CTSMEditField.h"
// #include "VEditField.h"
// #include "CSimpleTextView.h"
#include "CDownloadProgressWindow.h"
#include "CURLEditField.h"
#include "CAutoCompleteURLEditField.h"
#include "CURLCaption.h"
#include "CHyperScroller.h"
#include "CButtonEnablerReloadStop.h"
#include "CBrowserWindow.h"
#include "CHTMLView.h"
#include "CBrowserView.h"
#include "CSpinningN.h"
#include "CBrowserSecurityButton.h"
#include "CMiniSecurityButton.h"
#include "mprint.h"
#include "macgui.h"
#include "findw.h"
// #include "prefw.h"
#include "BookmarksDialogs.h"
#include "mplugin.h"
#include "divview.h"
// #include "mattach.h"
#include "UFormElementFactory.h"
#include "CMenuTable.h"
#include "CPrefsMediator.h"
#include "CAssortedMediators.h"
#if defined (JAVA)
#include "mjava.h"
#endif
#include "CEditorWindow.h"
// #include "mhistory.h"
#include "CContextMenuAttachment.h"
#include "CHyperTreeFlexTable.h"
#include "CRDFCoordinator.h"
#include "CHyperTreeHeader.h"
//-----------------------------------
void RegisterAllBrowserClasses(void)
//-----------------------------------
{
// AutoRegister classes
RegisterClass_(CProxyPane);
RegisterClass_(CProxyCaption);
RegisterClass_(CCloseAllAttachment);
RegisterClass_(CColorEraseAttachment);
RegisterClass_(CGABorderPane);
RegisterClass_(CPatternPane);
RegisterClass_(LSubOverlapView);
// ¥¥¥ PowerPlant Classes
RegisterClass_(LButton);
RegisterClass_(LCaption);
RegisterClass_(LDialogBox);
RegisterClass_(LEditField);
RegisterClass_(LListBox);
RegisterClass_(LPane);
RegisterClass_(LPicture);
RegisterClass_(LPlaceHolder);
RegisterClass_(LPrintout);
RegisterClass_(LScroller);
RegisterClass_(LStdControl);
RegisterClass_(LStdButton);
RegisterClass_(LStdCheckBox);
RegisterClass_(LStdRadioButton);
RegisterClass_(LStdPopupMenu);
RegisterClass_(LTextEdit);
RegisterClass_(LView);
RegisterClass_(LWindow);
RegisterClass_(LRadioGroup);
RegisterClass_(LTabGroup);
RegisterClass_(LActiveScroller);
//LRegistrar::RegisterClass('prto', (ClassCreatorFunc);LPrintout::CreateOldPrintoutStream);
#ifdef PP_NewClasses
#include <LCicnButton.h>
#include <LOffscreenView.h>
#include <LTextButton.h>
RegisterClass_(LCicnButton);
RegisterClass_(LOffscreenView);
RegisterClass_(LTextButton);
#endif
RegisterClass_(LTable);
RegisterClass_(LIconPane);
RegisterClass_(LGroupBox);
RegisterClass_(LTextColumn);
RegisterClass_(CTextColumn); // Netscape's own LTextColumn
RegisterClass_(CGAPopupMenu);
// ¥¥¥ PowerPlant Grayscale Classes
RegisterGALibraryClasses();
// ¥¥¥ General Purpose UI Classes
RegisterClass_(CBevelButton);
RegisterClass_(CDeluxeBevelButton);
RegisterClass_(CPatternButton);
RegisterClass_(CPatternButtonPopup);
RegisterClass_(CGrayBevelView);
RegisterClass_(CPatternBevelView);
RegisterClass_(CIncludeView);
RegisterClass_(CPlaceHolderView);
RegisterClass_(COffscreenCaption);
RegisterClass_(CClusterView);
RegisterClass_(CPatternTabControl);
RegisterClass_(CTabSwitcher);
RegisterClass_(CProgressBar);
RegisterClass_(CKeyScrollAttachment);
RegisterClass_(CToolTipAttachment);
RegisterClass_(CDynamicTooltipPane);
RegisterClass_(CSharedToolTipAttachment);
RegisterClass_(CMenuTable);
RegisterClass_(CPaneEnabler);
RegisterClass_(CSlaveEnabler);
RegisterClass_(CScrollerWithArrows);
RegisterClass_(CScrollArrowControl);
#ifdef MOZ_MAIL_NEWS
RegisterClass_(CSingleLineEditField);
RegisterClass_(CSelectFolderMenu);
//#else
// RegisterClass_(CBiffButtonAttachment);
#endif // MOZ_MAIL_NEWS
RegisterClass_(CSimpleDividedView);
//RegisterClass_(CProgressCaption);
RegisterClass_(CTaskBarView);
RegisterClass_(CToolTipPane);
RegisterClass_(CStringListToolTipPane);
RegisterClass_(LTableHeader);
RegisterClass_(LTableViewHeader);
RegisterClass_(CPatternProgressBar);
RegisterClass_(CPatternProgressCaption);
RegisterClass_(CTextEdit);
RegisterClass_(CEditBroadcaster);
RegisterClass_(CGuidePopupMenu);
RegisterClass_(CNavigationButtonPopup);
// *** Browser Specific UI Classes
RegisterClass_(CDragBar);
RegisterClass_(CDragBarContainer);
RegisterClass_(CDragBarDockControl);
RegisterClass_(CBrokeredView);
RegisterClass_(CSwatchBrokerView);
RegisterClass_(CToolbarDragBar);
RegisterClass_(CToolbarPatternBevelView);
RegisterClass_(CPersonalToolbarTable);
RegisterClass_(CConfigActiveScroller);
RegisterClass_(CTSMEditField);
// REGISTERV(EditField);
RegisterClass_(CDownloadProgressWindow);
RegisterClass_(CBrowserWindow);
RegisterClass_(CHTMLView);
RegisterClass_(CURLEditField);
RegisterClass_(CAutoCompleteURLEditField);
RegisterClass_(CURLCaption);
RegisterClass_(CSaveProgress);
RegisterClass_(CHyperScroller);
RegisterClass_(CButtonEnablerReloadStop);
RegisterClass_(CBrowserView);
RegisterClass_(CPatternedGrippyPane);
RegisterClass_(CDividerGrippyPane);
RegisterClass_(CSpinningN);
RegisterClass_(CBrowserSecurityButton);
RegisterClass_(CMiniSecurityButton);
RegisterClass_(CHyperTreeFlexTable);
RegisterClass_(CNavCenterSelectorPane);
RegisterClass_(CRDFCoordinator);
RegisterClass_(CHyperTreeHeader);
RegisterClass_(CInlineEditField);
RegisterClass_(CNavCenterWindow);
RegisterClass_(CBookmarksFindDialog);
RegisterClass_(CPluginView);
RegisterClass_(LDividedView);
RegisterClass_(CNavCenterContextMenuAttachment);
RegisterClass_(CNavCenterSelectorContextMenuAttachment);
RegisterClass_(CNavCenterTitle);
#ifdef EDITOR
CEditorWindow::RegisterViewTypes();
#endif // EDITOR
CFindWindow::RegisterViewTypes();
UFormElementFactory::RegisterFormTypes();
UHTMLPrinting::RegisterHTMLPrintClasses();
CPrefsMediator::RegisterViewClasses();
CPrefsDialog::RegisterViewClasses();
UAssortedPrefMediators::RegisterViewClasses();
RegisterClass_(CContextMenuAttachment);
#ifdef JAVA
RegisterClass_(CJavaView);
#endif
} // RegisterAllBrowserClasses

View File

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

View File

@@ -1,144 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "BufferStream.h"
#include "client.h"
#ifdef PROFILE
#pragma profile on
#endif
#define STREAM_BUFFER_SIZE 32000
LFileBufferStream::LFileBufferStream( FSSpec& inFileSpec ): LFileStream( inFileSpec )
{
fBuffer = NULL;
fBufferSize = 0;
fLastWritten = 0;
fUseBuffer = FALSE;
fURL = NULL;
fWriteFailed = FALSE;
}
LFileBufferStream::~LFileBufferStream()
{
Try_
{
FlushBuffer( FALSE );
}
Catch_(inErr)
{
}
EndCatch_
if ( fURL )
XP_FREE( fURL );
}
OSErr LFileBufferStream::FlushBuffer( Boolean allocateNew )
{
OSErr err = noErr;
if ( !fUseBuffer )
return err;
if ( fBuffer && ( fLastWritten > 0 ) )
{
HLock( fBuffer );
Try_
{
err = LFileStream::PutBytes( *fBuffer, fLastWritten );
ThrowIfOSErr_(err);
HUnlock( fBuffer );
}
Catch_(inErr)
{
HUnlock( fBuffer );
DisposeHandle(fBuffer);
fBuffer = NULL;
fWriteFailed = TRUE;
}
EndCatch_
fLastWritten = 0;
}
if (fWriteFailed)
return err;
if ( allocateNew && ( !fBuffer ) )
{
fBuffer = ::NewHandle( STREAM_BUFFER_SIZE );
fBufferSize = STREAM_BUFFER_SIZE;
fLastWritten = 0;
}
if ( !allocateNew && fBuffer )
{
DisposeHandle( fBuffer );
fBuffer = NULL;
}
return err;
}
Int32 LFileBufferStream::ReadData( void* outBuffer, Int32 inByteCount )
{
return LFileStream::ReadData( outBuffer, inByteCount );
}
void LFileBufferStream::DoUseBuffer()
{
fUseBuffer = TRUE;
}
void LFileBufferStream::CloseDataFork()
{
FlushBuffer( FALSE );
LFileStream::CloseDataFork();
}
Int32 LFileBufferStream::WriteData( const void* inFromBuffer, Int32 inByteCount )
{
OSErr err = noErr;
if ( fUseBuffer && ( fLastWritten + inByteCount ) > fBufferSize )
err = FlushBuffer( TRUE );
ThrowIfOSErr_(err);
if ( ( fBuffer ) && // If we have space, fill up the buffer
( ( fLastWritten + inByteCount ) <= fBufferSize ) )
{
::BlockMoveData( inFromBuffer, &( (*fBuffer)[fLastWritten] ), inByteCount );
fLastWritten += inByteCount;
return inByteCount;
}
// Otherwise, just do a normal write
else
{
err = LFileStream::PutBytes( inFromBuffer, inByteCount );
ThrowIfOSErr_(err);
}
return inByteCount;
}
#ifdef PROFILE
#pragma profile off
#endif

View File

@@ -1,54 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef __BUFFERSTREAM__
#define __BUFFERSTREAM__
#include <LFileStream.h>
#include <stddef.h>
// Does plain buffered read/writes
// Buffering strategy:
// reading: read all you can fit in the buffer
// give it to the client in small chunks
// writing: write all you can fit in the buffer
// on overflow, flush everything, then write the rest
// for now, we only buffer writing
class LFileBufferStream: public LFileStream
{
public:
LFileBufferStream( FSSpec& inFileSpec );
virtual ~LFileBufferStream();
virtual Int32 WriteData( const void *inFromBuffer, Int32 inByteCount );
virtual Int32 ReadData( void* outToBuffer, Int32 inByteCount );
virtual void CloseDataFork();
void DoUseBuffer();
void SetURL( char* url ) { fURL = url; }
char* GetURL() { return fURL; }
protected:
OSErr FlushBuffer( Boolean allocateNew );
Boolean fUseBuffer;
Handle fBuffer;
UInt32 fBufferSize;
UInt32 fLastWritten;
Boolean fWriteFailed;
char * fURL;
};
#endif // __BUFFERSTREAM__

File diff suppressed because it is too large Load Diff

View File

@@ -1,371 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CAppleEventHandler.h
#include "PascalString.h"
#include "xp_mem.h"
enum KioskEnum {KioskOff = 0, KioskOn = 1};
class CAppleEventHandler
{
public:
static CAppleEventHandler* sAppleEventHandler; // One and only instance of AEvents
// --- Standard Constructors and Destructors
CAppleEventHandler();
virtual ~CAppleEventHandler();
// virtual void Initialize();
// --- Top Level Apple Event Handling
virtual void HandleAppleEvent(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
virtual void GetAEProperty(DescType inProperty,
const AEDesc &inRequestedType,
AEDesc &outPropertyDesc) const;
virtual void SetAEProperty(DescType inProperty,
const AEDesc &inRequestedType,
AEDesc &outPropertyDesc);
// --- AEOM support
void GetSubModelByUniqueID(DescType inModelID,
const AEDesc &inKeyData,
AEDesc &outToken) const;
static KioskEnum GetKioskMode(){return sAppleEventHandler->fKioskMode;}
protected:
private:
KioskEnum fKioskMode;
void HandleOpenURLEvent(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
// spy Apple Event suite
// file/URL opening + misc
void HandleGetURLEvent(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
void HandleGetWDEvent(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
void HandleShowFile(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
void HandleParseAnchor(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
// Progress
void HandleCancelProgress(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
// Spy window events
void HandleSpyActivate(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
void HandleSpyListWindows(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
void HandleSpyGetWindowInfo(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
void HandleWindowRegistration(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
// Netscape suite
void HandleOpenBookmarksEvent(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
void HandleReadHelpFileEvent(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
void HandleGoEvent( const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
void HandleOpenAddressBookEvent(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
void HandleOpenComponentEvent(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
void HandleCommandEvent(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
void HandleGetActiveProfileEvent(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
void HandleGetProfileImportDataEvent(const AppleEvent &inAppleEvent,
AppleEvent &outAEReply,
AEDesc &outResult,
long inAENumber);
};
/*-------------------------------------------------------------*/
// class EudoraSuite
// Tools used to communicate with Eudora
// The only real use these have is if we are operating in
// Browser-only mode and the user wishes to use Eudora to
// handle mail functions.
//
/*-------------------------------------------------------------*/
// --------------------------------------------------------------
/* Some Constants used by the Eudora Suite */
// --------------------------------------------------------------
#define attachDouble 0
#define attachSingle 1
#define attachBinHex 2
#define attachUUencode 3
#define EU_Norm_Priority 0
#define EU_High_Priority 60
#define EU_Highest_Priority 1
#define EU_Low_Priority 160
#define EU_Lowest_Priority 200
class EudoraSuite
{
public:
// --------------------------------------------------------------
/* This makes a Null AppleEvent descriptor.
*/
// --------------------------------------------------------------
static void MakeNullDesc (AEDesc *theDesc);
// --------------------------------------------------------------
/* This makes a string AppleEvent descriptor.
*/
// --------------------------------------------------------------
static OSErr MakeStringDesc (Str255 theStr,AEDesc *theDesc);
// --------------------------------------------------------------
/* This stuffs the required parameters into the AppleEvent.
*/
// --------------------------------------------------------------
static OSErr CreateObjSpecifier (AEKeyword theClass,AEDesc theContainer,
AEKeyword theForm,AEDesc theData, Boolean disposeInputs,AEDesc *theSpec);
// --------------------------------------------------------------
/* This creates an AEDesc for the current message.
(The current message index = 1)
In: Pointer to AEDesc to return
Out: AEDesc constructed. */
// --------------------------------------------------------------
static OSErr MakeCurrentMsgSpec (AEDesc *theSpec);
// --------------------------------------------------------------
/* Send a given Apple Event. Special case for Eudora, should
be rewritten, but it works for the moment.
In: AppleEvent
Out: Event sent */
// --------------------------------------------------------------
static OSErr SendEvent (AppleEvent *theEvent);
// --------------------------------------------------------------
/* Create an Apple Event to be sent to Eudora
In: Event Class
Event ID
Ptr to Apple Event
Out: Event constructed and returned. */
// --------------------------------------------------------------
static OSErr MakeEvent (AEEventClass eventClass,AEEventID eventID,AppleEvent *theEvent);
// --------------------------------------------------------------
/* This sets the data in a specified field. It operates on the frontmost message
in Eudora. It is the equivalent of sending the following AppleScript:
set field "fieldname" of message 0 to "data"
Examples for setting up a complete mail message:
EudoraSuite::SendSetData("\pto",toRecipientPtr);
EudoraSuite::SendSetData("\pcc",ccRecipientPtr);
EudoraSuite::SendSetData("\pbcc",bccRecipientPtr);
EudoraSuite::SendSetData("\psubject",subjectPtr);
EudoraSuite::SendSetData("\p",bodyPtr);
In: Field to set the data in (Subject, Address, Content, etc)
Pointer to text data.
Size of pointer (allows us to work with XP_Ptrs.
Out: Apple Event sent to Eudora, setting a given field. */
// --------------------------------------------------------------
static OSErr SendSetData(Str31 theFieldName, Ptr thePtr, long thePtrSize);
// --------------------------------------------------------------
/* Everything you need to tell Eudora to construct a new message
and send it.
In: Pointer to the list of e mail addresses to send TO
Pointer to the list of e mail addresses to send CC
Pointer to the list of e mail addresses to send BCC
Pointer to the Subject text
Priority level of message.
XP_HUGE_CHAR_PTR to the contents of the mail
Pointer to an FSSpec (or null if none) for an enclosure.
Out: Apple Events sent to Eudora telling it to construct the
message and send it. */
// --------------------------------------------------------------
static OSErr SendMessage(
Ptr toRecipientPtr,
Ptr ccRecipientPtr,
Ptr bccRecipientPtr,
Ptr subjectPtr,
XP_HUGE_CHAR_PTR bodyPtr,
long thePriority,
FSSpec *theEnclosurePtr);
static OSErr Set_Eudora_Priority(long thePriority);
};
/*-------------------------------------------------------------*/
// class MoreExtractFromAEDesc
// Apple event helpers -- extension of UExtractFromAEDesc.h
// All the miscellaneous AppleEvent helper routines.
/*-------------------------------------------------------------*/
class MoreExtractFromAEDesc
{
public:
// --------------------------------------------------------------
/* Given an AppleEvent, locate a string given a keyword and
return the string
In: Event to search
AEKeyword assocaated with the string
C string ptr
Out: Pointer to a newly created C string returned */
// --------------------------------------------------------------
static void GetCString(const AppleEvent &inAppleEvent, AEKeyword keyword,
char * & s, Boolean inThrowIfError = true);
// --------------------------------------------------------------
/* Given an AEDesc of type typeChar, return it's string.
In: AEDesc containing a string
C string ptr
Out: Pointer to a newly created C string returned */
// --------------------------------------------------------------
static void TheCString(const AEDesc &inDesc, char * & outPtr);
// --------------------------------------------------------------
/* Add an error string and error code to an AppleEvent.
Typically used when constructing the return event when an
error occured
In: Apple Event to append to
Error string
Error code
Out: keyErrorNum and keyErrorSting AEDescs are added to the Event. */
// --------------------------------------------------------------
static void MakeErrorReturn(AppleEvent &event, const CStr255& errorString,
OSErr errorCode);
// --------------------------------------------------------------
/* Display an error dialog if the given AppleEvent contains
a keyErrorNumber. a keyErrorString is optional and will be
displayed if present
In: Apple Event
Out: Error dialog displayed if error data present. */
// --------------------------------------------------------------
static Boolean DisplayErrorReply(AppleEvent &reply);
// --------------------------------------------------------------
/* Return the process serial number of the sending process.
In: Apple Event send by some app.
Out: ProcessSerialNumber of the sending app. */
// --------------------------------------------------------------
static ProcessSerialNumber ExtractAESender(const AppleEvent &inAppleEvent);
static void DispatchURLDirectly(const AppleEvent &inAppleEvent);
}; // class MoreExtractFromAEDesc
/*-------------------------------------------------------------*/
// class AEUtilities
// Some more simple Apple Event utility routines.
/*-------------------------------------------------------------*/
class AEUtilities
{
public:
// --------------------------------------------------------------
/* CreateAppleEvent
Create a new Apple Event from scratch.
In: Apple Event suite
Apple Event ID
Ptr to return Apple Event
ProcessSerialNumber of the target app to send event to.
Out:A new Apple Event is created. More data may be added to
the event simply by calling AEPutParamDesc or AEPutParamPtr */
// --------------------------------------------------------------
static OSErr CreateAppleEvent(OSType suite, OSType id,
AppleEvent &event, ProcessSerialNumber targetPSN);
// --------------------------------------------------------------
/* Check to see if there is an error in the given AEvent.
We simply return an OSError equiv to the error value
in the event. If none exists (or an error took place
during access) we return 0.
In: Apple Event to test
Out:Error value returned */
// --------------------------------------------------------------
static OSErr EventHasErrorReply(AppleEvent & reply);
};

View File

@@ -1,389 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// Handle creating and maintaining the top-level bookmarks menu. It pulls the info
// out of the RDF container the user designates as their "quickfile menu" and listens
// to the messages from RDF to update it.
#include "CBookmarksAttachment.h"
#include "htrdf.h"
#include "CNetscapeWindow.h"
#include "net.h"
#include "resgui.h"
#include "uapp.h"
#include "macutil.h"
#include "UMenuUtils.h"
#include <Icons.h>
#include <Sound.h>
#define PERM_BOOKMARK_ITEMS 4
const CommandT cmd_BookmarkHierItem = BOOKMARKS_MENU_BASE_LAST;
LMenu *CBookmarksAttachment::sMenu = NULL;
Boolean CBookmarksAttachment::sInvalidMenu = true;
LArray CBookmarksAttachment::sMenusList; // this will use the default constructor
HT_View CBookmarksAttachment::sQuickfileView = NULL;
//===========================================================
// CBookmarksAttachment
//===========================================================
CBookmarksAttachment::CBookmarksAttachment()
{
InitQuickfileView();
}
//
// InitQuickfileView
//
// Called at startup to get a new view from the HT backend that represents the
// bookmarks menu. This can be called multiple times without problems.
//
void
CBookmarksAttachment :: InitQuickfileView ( )
{
if ( ! sQuickfileView ) {
HT_Notification notifyStruct = CreateNotificationStruct();
HT_Pane quickfilePane = HT_NewQuickFilePane(notifyStruct);
sQuickfileView = HT_GetSelectedView(quickfilePane);
}
} // InitQuickfileView
void
CBookmarksAttachment :: HandleNotification( HT_Notification /* notifyStruct*/,
HT_Resource node, HT_Event event)
{
switch (event) {
case HT_EVENT_NODE_ADDED:
case HT_EVENT_VIEW_REFRESH:
// only update menu if the quickfile view changes
if ( HT_GetView(node) == sQuickfileView ) {
sInvalidMenu = true;
UpdateMenu();
}
break;
case HT_EVENT_NODE_VPROP_CHANGED:
// optimization: only update when the name column changes
break;
case HT_EVENT_NODE_DELETED_DATA:
case HT_EVENT_NODE_DELETED_NODATA:
// free FE data, but don't update the menu yet (HT not in good state)
break;
} // case of which event
} // HandleNotification
// Processes:
//
void CBookmarksAttachment::ExecuteSelf( MessageT inMessage, void* ioParam )
{
mExecuteHost = FALSE;
switch ( inMessage )
{
CNetscapeWindow *bookmarkableWindow = nil;
case msg_CommandStatus:
{
SCommandStatus* status = (SCommandStatus*)ioParam;
switch ( status->command )
{
default:
if (CFrontApp::GetApplication()->HasBookmarksMenu())
{
if ( status->command >= BOOKMARKS_MENU_BASE && status->command <= BOOKMARKS_MENU_BASE_LAST )
{
*(status->enabled) = TRUE;
*(status->usesMark) = FALSE;
return;
}
}
break;
}
}
break;
default:
{
if (CFrontApp::GetApplication()->HasBookmarksMenu())
{
if ( inMessage >= BOOKMARKS_MENU_BASE && inMessage <= BOOKMARKS_MENU_BASE_LAST )
{
Uint32 index = inMessage - BOOKMARKS_MENU_BASE;
char* url = HT_GetNodeURL( HT_GetNthItem(sQuickfileView, index) );
CFrontApp::DoGetURL ( url );
return;
}
}
}
break;
}
mExecuteHost = TRUE; // Let application handle it
}
void CBookmarksAttachment::AddToBookmarks( const char* url, const CStr255& title )
{
HT_Resource topNode = HT_TopNode ( sQuickfileView );
HT_AddBookmark ( const_cast<char*>(url), title );
}
LMenu *CBookmarksAttachment::GetMenu()
{
if (!sMenu)
{
sMenu = new LMenu(cBookmarksMenuID);
if (sMenu)
{
MenuHandle macMenu = sMenu->GetMacMenuH();
if (macMenu)
UMenuUtils::ConvertToIconMenu(macMenu, 15312);
}
}
return sMenu;
}
void CBookmarksAttachment::UpdateMenu()
{
if (CFrontApp::GetApplication()->HasBookmarksMenu())
{
if (!sInvalidMenu || !GetMenu() || !LMenuBar::GetCurrentMenuBar() )
return;
int i;
// ¥ delete all the dynamically created menus
// ¥Êdelete all the hierarchical menus we have added from the menubar
for ( i = 1; i <= sMenusList.GetCount(); i++ )
{
LMenu* m;
sMenusList.FetchItemAt( i, &m );
if ( m )
LMenuBar::GetCurrentMenuBar()->RemoveMenu( m );
delete m;
}
// ¥ delete all the menu items after the line in Bookmark menu
MenuHandle menu = sMenu->GetMacMenuH();
if ( menu )
{
int howMany = ::CountMItems( menu );
for ( i = howMany; i > PERM_BOOKMARK_ITEMS; i-- )
sMenu->RemoveItem( i );
}
sMenusList.RemoveItemsAt( sMenusList.GetCount(), 1 );
// ¥ walk through the list, and let the submenus be inserted recursively
int nextMenuID = cBookmarksFirstHierMenuID;
FillMenuFromList( HT_TopNode(sQuickfileView), sMenu, nextMenuID, PERM_BOOKMARK_ITEMS );
sInvalidMenu = false;
}
}
// ¥Êrecursively create submenus, given a list ptr
// returns NULL if the menu cannot be created
// it creates submenus recursively
void CBookmarksAttachment::FillMenuFromList(
HT_Resource top,
LMenu* newMenu,
int& nextMenuID, // next menu to create
int whichItem ) // id of the first item to insert
{
if (CFrontApp::GetApplication()->HasBookmarksMenu())
{
Try_
{
ThrowIfNil_( newMenu );
MenuHandle mHand = newMenu->GetMacMenuH();
ThrowIfNil_( mHand );
// ¥Êremove all the extra items if they exist
long removeThese = ::CountMItems( mHand ) - whichItem;
for ( long i = 1; i < removeThese; i++ )
newMenu->RemoveItem( whichItem );
MenuHandle theMacMenu = newMenu->GetMacMenuH();
// Open up the container and get an iterator on its contents (we have to open it before
// we can see anything inside it). If the cursor is null, it is probably because the container
// is locked so just put up a leaf item (disabled, of course) and bail.
HT_SetOpenState ( top, PR_TRUE );
HT_Cursor cursor = HT_NewCursor( top );
if ( !cursor ) {
whichItem = UMenuUtils::InsertMenuItem(theMacMenu, "\pLocked", whichItem);
newMenu->SetCommand(whichItem, 0);
return;
}
HT_Resource currNode = HT_GetNextItem(cursor);
while ( currNode )
{
if ( HT_IsSeparator(currNode) )
newMenu->InsertCommand( "\p-", cmd_Nothing, whichItem++ );
else if ( ! HT_IsContainer(currNode) )
{
// ¥ should really convert this to menu chars
CStr255 urlName( HT_GetNodeName(currNode) );
CreateMenuString( urlName );
whichItem = UMenuUtils::InsertMenuItem(theMacMenu, urlName, whichItem); // returns actual insert loc
newMenu->SetCommand(whichItem, BOOKMARKS_MENU_BASE + HT_GetNodeIndex(sQuickfileView, currNode) );
}
else
{
CStr255 headerName( HT_GetNodeName(currNode) );
CreateMenuString( headerName );
whichItem = UMenuUtils::InsertMenuItem(theMacMenu, headerName, whichItem); // returns actual insert loc
newMenu->SetCommand(whichItem, cmd_BookmarkHierItem);
// ¥Êdo we have space to create more?
if ( nextMenuID <= cBookmarksLastHierMenuID)
{
LMenu* subMenu = (LMenuBar::GetCurrentMenuBar())->FetchMenu( nextMenuID );
if ( !subMenu )
{
StringHandle menuStringH = GetString( NEW_RESID );
Assert_(menuStringH);
if (menuStringH)
{
StHandleLocker locker((Handle)menuStringH);
subMenu = new LMenu( nextMenuID,
(unsigned char *)*menuStringH );
LMenuBar::GetCurrentMenuBar()->InstallMenu( subMenu, hierMenu );
}
}
else
SysBeep( 1 );
nextMenuID++;
// Skip the "Apple" menu or we're in deep donuts.
if (nextMenuID == MENU_Apple)
nextMenuID++;
if ( subMenu )
{
sMenusList.InsertItemsAt( 1, LArray::index_Last, &subMenu );
// ¥Êmake item hierarchical
::SetItemCmd( mHand, whichItem, hMenuCmd );
::SetItemMark( mHand, whichItem, subMenu->GetMenuID() );
if ( currNode )
FillMenuFromList( currNode, subMenu, nextMenuID, 0 );
}
}
}
currNode = HT_GetNextItem ( cursor );
} // while
}
Catch_( inErr )
{
}
EndCatch_
}
}
void CBookmarksAttachment::RemoveMenus()
{
if (CFrontApp::GetApplication()->HasBookmarksMenu())
{
if (sMenu)
{
LMenuBar *currentMenuBar = LMenuBar::GetCurrentMenuBar();
if (currentMenuBar)
{
currentMenuBar->RemoveMenu(sMenu);
for (ArrayIndexT index = 1; index <= sMenusList.GetCount(); ++index)
{
LMenu *menu;
sMenusList.FetchItemAt(index, &menu);
if (menu)
currentMenuBar->RemoveMenu(menu);
}
}
}
}
}
void CBookmarksAttachment::InstallMenus()
{
if (CFrontApp::GetApplication()->HasBookmarksMenu())
{
if (GetMenu())
{
LMenuBar *currentMenuBar = LMenuBar::GetCurrentMenuBar();
if (currentMenuBar)
{
for (ArrayIndexT index = sMenusList.GetCount(); index > 0; --index)
{
LMenu *menu;
sMenusList.FetchItemAt(index, &menu);
if (menu)
{
StValueChanger<EDebugAction> okayToFail(gDebugThrow, debugAction_Nothing);
currentMenuBar->InstallMenu(menu, hierMenu);
}
}
StValueChanger<EDebugAction> okayToFail(gDebugThrow, debugAction_Nothing);
currentMenuBar->InstallMenu(sMenu, InstallMenu_AtEnd);
LMenu *directoryMenu = currentMenuBar->FetchMenu(cDirectoryMenuID);
if (directoryMenu)
{
CFrontApp::BuildConfigurableMenu( directoryMenu->GetMacMenuH(), "menu.places.item" );
for (short index2 = CountMItems(directoryMenu->GetMacMenuH()); index2 > 0; --index2)
directoryMenu->SetCommand(index2, DIR_MENU_BASE + index2 - 1);
}
}
}
}
}

View File

@@ -1,71 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// Handle creating and maintaining the top-level bookmarks menu. It pulls the info
// out of the RDF container the user designates as their "quickfile menu" and listens
// to the messages from RDF to update it.
#pragma once
#ifndef CBOOKMARKSATTACHMENT_H_
#define CBOOKMARKSATTACHMENT_H_
#include "CRDFNotificationHandler.h"
#include "PascalString.h"
#include <LAttachment.h>
#include <LMenu.h>
#include <LArray.h>
/***********************************************************************************
* CBookmarksAttachment
* Processes bookmark menu commands -- should be attached to application
***********************************************************************************/
class CBookmarksAttachment: public LAttachment, public CRDFNotificationHandler
{
public:
// ¥¥ constructors
CBookmarksAttachment();
// ¥¥Êevents
virtual void ExecuteSelf( MessageT inMessage, void* ioParam );
// static void AddToBookmarks( BM_Entry* newBookmark );
static void AddToBookmarks( const char* url, const CStr255& title );
static LMenu* GetMenu();
static void InvalidateMenu() { sInvalidMenu = true; }
static void UpdateMenu();
static void RemoveMenus();
static void InstallMenus();
void InitQuickfileView ( ) ;
protected:
static void FillMenuFromList( HT_Resource top, LMenu* newMenu, int& nextMenuID, int whichItem );
virtual void HandleNotification( HT_Notification notifyStruct, HT_Resource node, HT_Event event);
static LMenu* sMenu;
static Boolean sInvalidMenu;
static LArray sMenusList;
static HT_View sQuickfileView; // called quickfile because of HT API
};
#endif

File diff suppressed because it is too large Load Diff

View File

@@ -1,485 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CBrowserContext.h
#pragma once
#include <LBroadcaster.h>
#include <LSharable.h>
#include "CNSContext.h"
#include "structs.h"
#include "ctxtfunc.h"
#include "cstring.h"
class CHTMLView;
class CSharableCompositor;
const MessageT msg_SecurityState = 'SECS'; // ESecurityState
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
//
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
class CBrowserContext : public CNSContext
{
friend class CNSContextCallbacks;
friend class CPlainTextConversionContext;
public:
// history navigation
// these are special indices for LoadHistoryEntry
enum {
index_Reload = -2,
index_GoBack = -1,
index_GoForward = 0
};
CBrowserContext();
CBrowserContext(MWContextType inType);
CBrowserContext(const CBrowserContext& inOriginal);
virtual ~CBrowserContext();
virtual void NoMoreUsers(void);
operator MWContext*();
operator MWContext&();
virtual void SetCurrentView(CHTMLView* inView);
virtual CBrowserContext* GetTopContext();
virtual Boolean HasColorSpace(void) const;
virtual Boolean HasGridParent(void) const;
virtual Boolean HasFullPagePlugin(void) const;
virtual void SetLoadImagesOverride(Boolean inOverride);
virtual Boolean IsLoadImagesOverride(void) const;
virtual void SetDelayImages(Boolean inDelay);
virtual Boolean IsImageLoadingDelayed(void) const;
virtual Boolean IsRestrictedTarget(void) const;
virtual void SetRestrictedTarget(Boolean inIsRestricted);
virtual Boolean IsRootDocInfoContext();
virtual Boolean IsViewSourceContext();
virtual Boolean IsSpecialBrowserContext();
virtual Boolean SupportsPageServices();
// FIX ME!!! ACCESSOR for unique ID
// LAYERS / COMPOSITOR
virtual Boolean HasCompositor(void) const;
virtual CL_Compositor* GetCompositor(void) const;
virtual void SetCompositor(
CSharableCompositor* inCompositor);
virtual PRBool HandleLayerEvent(
CL_Layer* inLayer,
CL_Event* inEvent);
virtual PRBool HandleEmbedEvent(
LO_EmbedStruct* inEmbed,
CL_Event* inEvent);
// HISTORY
virtual void RememberHistoryPosition(
Int32 inX,
Int32 inY);
virtual void InitHistoryFromContext( CBrowserContext *parentContext);
// Image Observer
virtual Boolean IsContextLooping();
Boolean IsMochaLoadingImages() { return mMochaImagesLoading; }
void SetImagesLoading(Boolean inValue);
void SetImagesLooping(Boolean inValue);
void SetImagesDelayed(Boolean inValue);
void SetMochaImagesLoading(Boolean inValue);
void SetMochaImagesLooping(Boolean inValue);
void SetMochaImagesDelayed(Boolean inValue);
protected:
// we don't need to expose these
virtual History_entry* GetNextHistoryEntry(void);
virtual History_entry* GetPreviousHistoryEntry(void);
virtual Boolean IsContextLoopingRecurse();
public:
virtual Boolean CanGoForward(void);
virtual Boolean CanGoBack(void);
virtual Boolean HasGridChildren(void);
virtual Boolean IsGridChild(void);
virtual Boolean IsGridCell();
virtual void GoForwardOneHost();
virtual void GoBackOneHost();
virtual void GoForward(void);
virtual void GoBack(void);
virtual void LoadHistoryEntry( // one-based
Int32 inIndex,
Boolean inSuperReload = false);
virtual Boolean GoForwardInGrid(void);
virtual Boolean GoBackInGrid(void);
/*
// URL MANIPULATION
virtual cstring GetCurrentURL(void);
virtual void SwitchLoadURL(
URL_Struct* inURL,
FO_Present_Types inOutputFormat);
virtual void ImmediateLoadURL(
URL_Struct* inURL,
FO_Present_Types inOutputFormat);
*/
// REPAGINTAION
virtual void Repaginate(NET_ReloadMethod repage = NET_RESIZE_RELOAD);
virtual Boolean IsRepaginating(void) const;
virtual Boolean IsRepagintaitonPending(void) const;
// FRAME MANAGEMENT
virtual MWContext* CreateGridContext(
void* inHistList,
void* inHistEntry,
Int32 inX,
Int32 inY,
Int32 inWidth,
Int32 inHeight,
char* inURLString,
char* inWindowTarget,
Int8 inScrollMode,
NET_ReloadMethod inForceReload,
Bool inNoEdge);
virtual void* DisposeGridContext(
XP_Bool inSaveHistory);
virtual void DisposeGridChild(
CBrowserContext* inChildContext);
virtual void RestructureGridContext(
Int32 inX,
Int32 inY,
Int32 inWidth,
Int32 inHeight);
virtual void GetFullGridSize(
Int32& outWidth,
Int32& outHeight);
virtual void ReloadGridFromHistory(
void* inHistEntry,
NET_ReloadMethod inReload);
virtual Int32 CountGridChildren(void) const;
// save dialog for editor--Paul will fix some time
virtual CSaveProgress* GetSaveDialog() { return fSaveDialog; };
virtual void SetSaveDialog( CSaveProgress* theDialog ) { fSaveDialog = theDialog; };
// override for JavaScript foolishness
virtual void Alert(
const char* inAlertText);
virtual XP_Bool Confirm(
const char* inMessage);
protected:
CSaveProgress* fSaveDialog;
void ConstructJSDialogTitle(LStr255& outTitle);
// CALLBACK IMPLEMENTATION
// FIX ME!!! this needs to become an apple event
// virtual MWContext* CreateNewDocWindow(
// URL_Struct* inURL);
virtual void LayoutNewDocument(
URL_Struct* inURL,
Int32* inWidth,
Int32* inHeight,
Int32* inMarginWidth,
Int32* inMarginHeight);
virtual void SetDocTitle(
char* inTitle);
virtual void FinishedLayout(void);
virtual int GetTextInfo(
LO_TextStruct* inText,
LO_TextInfo* inTextInfo);
virtual int MeasureText(
LO_TextStruct* inText,
short* outCharLocs);
virtual void GetEmbedSize(
LO_EmbedStruct* inEmbedStruct,
NET_ReloadMethod inReloadMethod);
virtual void GetJavaAppSize(
LO_JavaAppStruct* inJavaAppStruct,
NET_ReloadMethod inReloadMethod);
virtual void GetFormElementInfo(
LO_FormElementStruct* inElement);
virtual void GetFormElementValue(
LO_FormElementStruct* inElement,
XP_Bool inHide);
virtual void ResetFormElement(
LO_FormElementStruct* inElement);
virtual void SetFormElementToggle(
LO_FormElementStruct* inElement,
XP_Bool inToggle);
virtual void FreeEmbedElement(
LO_EmbedStruct* inEmbedStruct);
virtual void CreateEmbedWindow(
NPEmbeddedApp* inEmbeddedApp);
virtual void SaveEmbedWindow(
NPEmbeddedApp* inEmbeddedApp);
virtual void RestoreEmbedWindow(
NPEmbeddedApp* inEmbeddedApp);
virtual void DestroyEmbedWindow(
NPEmbeddedApp* inEmbeddedApp);
virtual void FreeJavaAppElement(
LJAppletData* inAppletData);
virtual void HideJavaAppElement(
LJAppletData* inAppletData);
virtual void FreeEdgeElement(
LO_EdgeStruct* inEdgeStruct);
virtual void FormTextIsSubmit(
LO_FormElementStruct* inElement);
virtual void DisplaySubtext(
int inLocation,
LO_TextStruct* inText,
Int32 inStartPos,
Int32 inEndPos,
XP_Bool inNeedBG);
virtual void DisplayText(
int inLocation,
LO_TextStruct* inText,
XP_Bool inNeedBG);
virtual void DisplayEmbed(
int inLocation,
LO_EmbedStruct* inEmbedStruct);
virtual void DisplayJavaApp(
int inLocation,
LO_JavaAppStruct* inJavaAppStruct);
virtual void DisplayEdge (
int inLocation,
LO_EdgeStruct* inEdgeStruct);
virtual void DisplayTable(
int inLocation,
LO_TableStruct* inTableStruct);
virtual void DisplayCell(
int inLocation,
LO_CellStruct* inCellStruct);
virtual void InvalidateEntireTableOrCell(
LO_Element* inElement);
virtual void DisplayAddRowOrColBorder(
XP_Rect* inRect,
XP_Bool inDoErase);
virtual void DisplaySubDoc(
int inLocation,
LO_SubDocStruct* inSubdocStruct);
virtual void DisplayLineFeed(
int inLocation,
LO_LinefeedStruct* inLinefeedStruct,
XP_Bool inNeedBG);
virtual void DisplayHR(
int inLocation,
LO_HorizRuleStruct* inRuleStruct);
virtual void DisplayBullet(
int inLocation,
LO_BullettStruct* inBullettStruct);
virtual void DisplayFormElement(
int inLocation,
LO_FormElementStruct* inFormElement);
virtual void DisplayBorder(
int inLocation,
int inX,
int inY,
int inWidth,
int inHeight,
int inBW,
LO_Color* inColor,
LO_LineStyle inStyle);
virtual void UpdateEnableStates();
virtual void DisplayFeedback(
int inLocation,
LO_Element_struct *inElement);
virtual void ClearView(
int inWhich);
virtual void SetDocDimension(
int inLocation,
Int32 inWidth,
Int32 inLength);
virtual void SetDocPosition(
int inLocation,
Int32 inX,
Int32 inY);
virtual void GetDocPosition(
int inLocation,
Int32* outX,
Int32* outY);
virtual void SetBackgroundColor(
Uint8 inRed,
Uint8 inGreen,
Uint8 inBlue);
virtual void AllConnectionsComplete(void);
virtual void EraseBackground(
int inLocation,
Int32 inX,
Int32 inY,
Uint32 inWidth,
Uint32 inHieght,
LO_Color* inColor);
virtual void SetDrawable(
CL_Drawable* inDrawable);
virtual void GetTextFrame(
LO_TextStruct* inTextStruct,
Int32 inStartPos,
Int32 inEndPos,
XP_Rect* outFrame);
virtual void GetDefaultBackgroundColor(
LO_Color* outColor) const;
virtual void DrawJavaApp(
int inLocation,
LO_JavaAppStruct* inJavaAppStruct);
virtual void HandleClippingView(
struct LJAppletData *appletD,
int x,
int y,
int width,
int height);
virtual char* Prompt(
const char* inMessage,
const char* inDefaultText);
#if 0
Int32 GetTransactionID() { return fProgressID; }
Int32 GetContextUniqueID() { return fWindowID; }
// Window ID. Used to identify the context
static Int32 sWindowID; // Unique ID, incremented for each context
Int32 fWindowID; // ID of this window
private:
#endif
Boolean mIsRepaginating;
Boolean mIsRepaginationPending;
Boolean mLoadImagesOverride;
Boolean mDelayImages;
CSharableCompositor* mCompositor;
IL_GroupContext* mImageGroupContext;
Boolean mImagesLoading;
Boolean mImagesLooping;
Boolean mImagesDelayed;
Boolean mMochaImagesLoading;
Boolean mMochaImagesLooping;
Boolean mMochaImagesDelayed;
Boolean mInNoMoreUsers;
}; // class CBrowserContext
inline CBrowserContext::operator MWContext*()
{ return &mContext; };
inline CBrowserContext::operator MWContext&()
{ return mContext; };
inline CBrowserContext* ExtractBrowserContext(MWContext* inContext)
{ return dynamic_cast<CBrowserContext*>(inContext->fe.newContext); }
class CSharableCompositor : public LSharable
{
public:
CSharableCompositor(CL_Compositor* c = nil) : mCompositor(c) {}
void SetCompositor(CL_Compositor* c) { mCompositor = c; }
virtual ~CSharableCompositor();
operator CL_Compositor*() { return mCompositor; }
CL_Compositor* mCompositor;
}; // class CSharableCompositor

View File

@@ -1,153 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CBrowserDragTask.cp
#include "CBrowserDragTask.h"
#include "resgui.h"
// ---------------------------------------------------------------------------
// ¥ CBrowserDragTask
// ---------------------------------------------------------------------------
CBrowserDragTask::CBrowserDragTask(
const EventRecord& inEventRecord)
: super(inEventRecord)
{
}
// ---------------------------------------------------------------------------
// ¥ ~CBrowserDragTask
// ---------------------------------------------------------------------------
CBrowserDragTask::~CBrowserDragTask()
{
}
//
// AddFlavorBookmark
//
// This flavor is currently used to shuttle around url/title information, and is
// used by external applications (like DragThing) to get info about bookmarks/etc.
// The data format is plain text in the form of URL<cr>Title.
//
// This flavor may or may not contain data. The proxy icon, for example, would want to
// include the data so that if it is dropped in the NavCenter, the NC could
// determine if the drop was allowable based on the URL.
//
void
CBrowserDragTask::AddFlavorBookmark(ItemReference inItemRef, const char* inData)
{
OSErr theErr = ::AddDragItemFlavor(
mDragRef,
inItemRef,
emBookmarkDrag,
inData,
inData ? strlen(inData) + 1 : 0,
flavorSenderTranslated );
ThrowIfOSErr_(theErr);
}
//
// AddFlavorBookmarkFile
//
// This flavor is used for creating a bookmark file in the Finder instead of a clipping when
// icons are dragged to the desktop.
//
// The data will be fulfilled in a DoSendData proc.
//
void
CBrowserDragTask::AddFlavorBookmarkFile(ItemReference inItemRef)
{
// Promise a file of type emBookmarkFile
PromiseHFSFlavor promise;
promise.fileType = emBookmarkFile;
promise.fileCreator = emSignature;
promise.fdFlags = 0;
promise.promisedFlavor = emBookmarkFileDrag;
// Promise to create a file for the emBookmark flavor, where the actual
// FSSpec is promised in the emBookmark flavor below
OSErr theErr = ::AddDragItemFlavor(
mDragRef,
inItemRef,
flavorTypePromiseHFS,
&promise,
sizeof(PromiseHFSFlavor),
0);
ThrowIfOSErr_(theErr);
theErr = ::AddDragItemFlavor(
mDragRef,
inItemRef,
emBookmarkFileDrag,
nil,
0,
flavorNotSaved | flavorSenderTranslated);
ThrowIfOSErr_(theErr);
}
//
// AddFlavorURL
//
// This flavor is used to communicate the current URL with other applications, such
// as text editors, etc. It is basically the 'TEXT' flavor.
//
// No data is sent with this flavor, relying on a DoDragSendData() to get it out later.
// This prevents us from running into an odd problem where the CTheadView class wants to
// interpret the data as something that it isn't. This won't happen when no data is sent.
//
void
CBrowserDragTask::AddFlavorURL(ItemReference inItemRef)
{
// TEXT flavor (drag an URL within Netscape). Set flavorSenderTranslated
// so that the Finder *won't* try to put this in a clipping file.
// We'd rather save the file itself.
OSErr theErr = ::AddDragItemFlavor(
mDragRef,
inItemRef,
'TEXT',
nil,
0,
flavorSenderTranslated);
ThrowIfOSErr_(theErr);
}
// ---------------------------------------------------------------------------
// ¥ AddFlavors
// ---------------------------------------------------------------------------
void
CBrowserDragTask::AddFlavors( DragReference inDragRef )
{
// NOTE: I'm passing |this| as the item ref because that's the way it was in the past
// and i don't want to break anything.
AddFlavorBookmark(static_cast<ItemReference>(this));
AddFlavorBookmarkFile(static_cast<ItemReference>(this));
AddFlavorURL(static_cast<ItemReference>(this));
}

View File

@@ -1,49 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CBrowserDragTask.h
#ifndef CBrowserDragTask_H
#define CBrowserDragTask_H
#pragma once
// Includes
#include <LDragTask.h>
// Class declaration
class CBrowserDragTask : public LDragTask
{
public:
typedef LDragTask super;
CBrowserDragTask( const EventRecord& inEventRecord );
virtual ~CBrowserDragTask();
protected:
void AddFlavorBookmark(ItemReference inItemRef, const char* inData = nil);
void AddFlavorBookmarkFile(ItemReference inItemRef);
void AddFlavorURL(ItemReference inItemRef);
virtual void AddFlavors(DragReference inDragRef);
};
#endif

View File

@@ -1,351 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "CExpandoDivider.h"
#include "prtypes.h"
#include "macutil.h"
#include "CDragBarDockControl.h"
#define kTwistieID 'Twst'
#define kCaptionID 'TwCp'
const Int16 kTwistiePixelDifference = 3; // difference in height (collapsed minus expanded).
//======================================
// CExpandoListener
//======================================
//-----------------------------------
void CExpandoListener::ListenToMessage(MessageT inMessage, void *ioParam)
//-----------------------------------
{
switch (inMessage)
{
case msg_TwistieMessage:
{
Int32 value = *(Int32*)ioParam;
SetExpandState((ExpandStateT)value);
break;
}
}
} // CExpandoListener::ListenToMessage
//======================================
// CExpandable
//======================================
//-----------------------------------
CExpandable::CExpandable(CExpansionData* closedState, CExpansionData* openState)
//-----------------------------------
: mExpandState(closed_state)
{
mStates[0] = closedState;
mStates[1] = openState;
}
//-----------------------------------
void CExpandable::StoreCurrentDimensions()
//-----------------------------------
{
StoreDimensions(*(mStates[GetExpandState()]));
}
//-----------------------------------
void CExpandable::RecallCurrentDimensions()
//-----------------------------------
{
RecallDimensions(*(mStates[GetExpandState()]));
}
//-----------------------------------
void CExpandable::RecallOtherDimensions()
//-----------------------------------
{
RecallDimensions(*mStates[1 - GetExpandState()]);
}
//-----------------------------------
void CExpandable::ReadStatus(LStream* inStream)
//-----------------------------------
{
if (!inStream) return;
*inStream >> mExpandState;
mStates[0]->ReadStatus(inStream);
mStates[1]->ReadStatus(inStream);
// Don't do anything with them here.
} // CExpandable::ReadStatus
//-----------------------------------
void CExpandable::WriteStatus(LStream* inStream)
//-----------------------------------
{
StoreCurrentDimensions();
if (!inStream) return;
*inStream << mExpandState;
mStates[0]->WriteStatus(inStream);
mStates[1]->WriteStatus(inStream);
} // CExpandable::ReadStatus
const Int16 kDefaultTopFrameHeight = 110;
// FIXME. A preference? This value shows 5 full message lines in geneva 9.
//-----------------------------------
inline CDividerData::CDividerData()
//-----------------------------------
: mDividerPosition(kDefaultTopFrameHeight)
{
} // CDividerData::CDividerData
//-----------------------------------
void CDividerData::ReadStatus(LStream* inStream)
//-----------------------------------
{
if (!inStream) return;
*inStream >> mDividerPosition;
} // CDividerData::ReadStatus
//-----------------------------------
void CDividerData::WriteStatus(LStream* inStream)
//-----------------------------------
{
if (!inStream) return;
*inStream << mDividerPosition;
} // CDividerData::WriteStatus
//======================================
// CExpandoDivider
//======================================
//-----------------------------------
CExpandoDivider::CExpandoDivider(LStream* inStream)
//-----------------------------------
: Inherited( inStream )
, CExpandable(&mClosedData, &mOpenData)
{
} // CExpandoDivider::CExpandoDivider
//-----------------------------------
CExpandoDivider::~CExpandoDivider()
//-----------------------------------
{
}
//-----------------------------------
void CExpandoDivider::FinishCreateSelf()
//-----------------------------------
{
Inherited::FinishCreateSelf();
mTwistie = FindPaneByID(kTwistieID);
mCaption = FindPaneByID(kCaptionID);
// CExpandable::InitializeStates();
StoreCurrentDimensions(); // get the closed state from PPOb
// Base class calls SyncFrameBinding which sets the "open" behavior. Undo this, then.
SetStickToBottom(true);
// Record the height of the status bar, so that we can preserve it on expansion.
LWindow* window = LWindow::FetchWindowObject(GetMacPort());
Rect windowRect;
window->CalcPortFrameRect(windowRect); // relative is fine
Rect expandoRect;
this->CalcPortFrameRect(expandoRect);
mDistanceFromWindowBottom = windowRect.bottom - expandoRect.bottom;
Assert_(mDistanceFromWindowBottom >= 0);
mDividerDistanceFromWindowBottom
= windowRect.bottom - (expandoRect.top + GetDividerPosition());
} // CExpandoDivider::FinishCreateSelf
//-----------------------------------
void CExpandoDivider::StoreDimensions(CExpansionData& outState)
//-----------------------------------
{
((CDividerData&)outState).mDividerPosition = GetDividerPosition();
} // CExpandoDivider::StoreDimensions
//-----------------------------------
void CExpandoDivider::RecallDimensions(const CExpansionData& inState)
//-----------------------------------
{
SInt32 dividerPosition = GetDividerPosition();
Int16 dividerDelta = ((CDividerData&)inState).mDividerPosition - dividerPosition;
this->ChangeDividerPosition(dividerDelta);
} // CExpandoDivider::RecallDimensions
//-----------------------------------
void CExpandoDivider::SetStickToBottom(LPane* inPane, Boolean inStick)
//-----------------------------------
{
SBooleanRect bindings;
inPane->GetFrameBinding(bindings);
bindings.bottom = inStick;
inPane->SetFrameBinding(bindings);
} // CExpandoDivider::SetStickToBottom
//-----------------------------------
void CExpandoDivider::SetStickToBottom(Boolean inStick)
//-----------------------------------
{
SetStickToBottom(mTwistie, inStick);
SetStickToBottom(mCaption, inStick);
SetStickToBottom(fFirstView, inStick);
SetStickToBottom(fSecondView, true);
} // CExpandoDivider::SetStickToBottom
//-----------------------------------
void CExpandoDivider::ClickSelf(const SMouseDownEvent& inMouseDown)
//-----------------------------------
{
if (GetExpandState() == open_state) Inherited::ClickSelf(inMouseDown);
}
//-----------------------------------
void CExpandoDivider::AdjustCursorSelf(Point inPortPt, const EventRecord& inMacEvent)
//-----------------------------------
{
if (GetExpandState() == open_state) Inherited::AdjustCursorSelf(inPortPt, inMacEvent);
}
//-----------------------------------
void CExpandoDivider::ChangeTwistiePosition(Int16 delta)
// Move the twistie and caption
//-----------------------------------
{
mTwistie->MoveBy(0, delta, FALSE);
mCaption->MoveBy(0, delta, FALSE);
} // CExpandoDivider::ChangeTwistiePosition
//-----------------------------------
void CExpandoDivider::ChangeDividerPosition(Int16 delta)
//-----------------------------------
{
if (mExpandState == open_state && delta > 0)
{
// If the user drags the divider to the bottom, it should close the twistie.
Int32 dividerPos = this->GetDividerPosition();
Int32 newPos = dividerPos + delta;
Rect secondFrame;
GetSubpaneRect(this, fSecondView, secondFrame);
if (newPos > secondFrame.bottom - 50)
{
mTwistie->SetValue(closed_state);
return;
}
}
Inherited::ChangeDividerPosition(delta);
ChangeTwistiePosition(delta);
} // CExpandoDivider::ChangeDividerPosition
//-----------------------------------
void CExpandoDivider::ResizeFrameBy(
Int16 inWidthDelta,
Int16 inHeightDelta,
Boolean inRefresh)
//-----------------------------------
{
Inherited::ResizeFrameBy(inWidthDelta, inHeightDelta, inRefresh);
// Unless we do this, there's no way to enforce the rule that the second pane's TOP
// sticks to the bottom when in the collapsed state.
if (mExpandState == closed_state && fFirstView && fSecondView)
{
SPoint32 loc1, loc2;
SDimension16 siz1, siz2;
fFirstView->GetFrameLocation(loc1);
fFirstView->GetFrameSize(siz1);
fSecondView->GetFrameLocation(loc2);
fSecondView->GetFrameSize(siz2);
Int32 secondViewOffset = siz1.height + loc1.v + mDivSize - loc2.v;
if (secondViewOffset)
{
fSecondView->MoveBy(0, secondViewOffset, false);
fSecondView->ResizeFrameBy(0, -secondViewOffset, false);
}
}
} // CExpandoDivider::ResizeFrameBy
//-----------------------------------
void CExpandoDivider::SetExpandState(ExpandStateT inExpanded)
//-----------------------------------
{
#if 0
// We now assume that the my view's bottom is flush with the bottom of the
// second subview.
SPoint32 locMe, loc2;
SDimension16 sizMe, siz2;
GetFrameSize(sizMe);
GetFrameLocation(locMe);
fSecondView->GetFrameLocation(loc2);
fSecondView->GetFrameSize(siz2);
Assert_(loc2.v + siz2.height == locMe.v + sizMe.height);
#endif // DEBUG
LWindow* win = LWindow::FetchWindowObject(GetMacPort());
Rect winRect;
win->CalcPortFrameRect(winRect); // relative is fine
const Int16 statusBarHeight = this->GetCorrectDistanceFromBottom();
const Int16 dividerDistanceFromBottom
= this->GetCorrectDividerDistanceFromBottom();
Rect expandoRect;
this->CalcPortFrameRect(expandoRect);
if (mExpandState != inExpanded)
StoreCurrentDimensions();
mExpandState = inExpanded;
if (inExpanded)
{
// When expanded, topview, twistie and caption do not stick to the bottom.
mCaption->Hide();
SetStickToBottom(false);
SyncFrameBindings();
// The expanded twistie is not as high as the collapsed one, and the following
// adjustment allows us to have a narrower divider bar.
ChangeTwistiePosition(- kTwistiePixelDifference);
// Now expand. The divider will pull the frame up.
RecallCurrentDimensions();
fSecondView->Show();
}
else
{
ChangeTwistiePosition(+ kTwistiePixelDifference);
fSecondView->Hide();
mCaption->Show();
RecallCurrentDimensions();
}
// The following is a kludge to fix cases where the bottom of Message view
// can disappear under the bottom of the window, or where the divider containing
// the twistie icon can be a one-inch thick grey area just over the bottom of the window.
short vertError = (winRect.bottom - statusBarHeight) - expandoRect.bottom;
if (vertError != 0)
{
this->ResizeFrameBy(0, vertError, false);
}
if (!inExpanded)
{
vertError = (winRect.bottom - (expandoRect.top + dividerDistanceFromBottom))
- this->GetDividerPosition();
if (vertError != 0)
this->ChangeDividerPosition(vertError);
// When collapsed, topview, twistie and caption stick to the bottom.
SetStickToBottom(true); //¥¥¥ this line is not part of the kludge
}
} // CExpandoDivider::SetExpandedState

View File

@@ -1,136 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#pragma once
#include "divview.h"
//-----------------------------------
class CExpansionData
// persistent data about both states of a CExpandable.
//-----------------------------------
{
public:
virtual void ReadStatus(LStream* inStream) = 0;
virtual void WriteStatus(LStream* inStream) = 0;
}; // class CExpansionData
enum { closed_state = false, open_state = true };
typedef Boolean ExpandStateT;
//======================================
class CExpandable
//======================================
{
public:
virtual void ReadStatus(LStream* inStream);
virtual void WriteStatus(LStream* inStream);
ExpandStateT GetExpandState() const { return mExpandState; }
void NoteExpandState(ExpandStateT inExpanded) { mExpandState = inExpanded; }
protected:
virtual void SetExpandState(ExpandStateT inExpanded) = 0;
private:
virtual void StoreDimensions(CExpansionData& outState) = 0;
virtual void RecallDimensions(const CExpansionData& inState) = 0;
protected:
CExpandable(CExpansionData* closedState, CExpansionData* openState);
// clients that mix this class in should have two members that are
// CExpansionData, and pass the references in here.
protected:
void StoreCurrentDimensions();
void RecallCurrentDimensions();
void RecallOtherDimensions();
protected:
ExpandStateT mExpandState;
CExpansionData* mStates[2];
}; // class CExpandable
//======================================
class CExpandoListener : public LListener, public CExpandable
//======================================
{
public:
enum { msg_TwistieMessage = 'Twst' }; // Broadcast by twistie control
CExpandoListener(
CExpansionData* closedState, CExpansionData* openState)
: CExpandable(closedState, openState) {}
virtual void ListenToMessage(MessageT inMessage, void *ioParam);
// Listen to the twistie
}; // class CExpandoListener
//======================================
class CDividerData : public CExpansionData
//======================================
{
public:
CDividerData();
// default is set for the open state, because the closed state is in the PPOb.
// Overrides
virtual void ReadStatus(LStream* inStream);
virtual void WriteStatus(LStream* inStream);
// Data
SInt32 mDividerPosition;
}; // class CDividerData
//======================================
class CExpandoDivider : public LDividedView, public CExpandable
// This class acts like a divider between two panes, one above the other.
// In addition to the LDividedView behavior, it also has an "expando" twistie, that
// hides/shows the bottom pane.
//======================================
{
private:
typedef LDividedView Inherited;
public:
enum { class_ID = 'Expo' };
CExpandoDivider(LStream* inStream);
virtual ~CExpandoDivider();
// PowerPlant overrides
protected:
virtual void FinishCreateSelf();
virtual void ClickSelf(const SMouseDownEvent& inMouseDown);
virtual void AdjustCursorSelf(Point inPortPt, const EventRecord& inMacEvent);
public:
virtual void ResizeFrameBy(
Int16 inWidthDelta,
Int16 inHeightDelta,
Boolean inRefresh);
// CExpandable overrides
public:
virtual void SetExpandState(ExpandStateT inExpanded);
virtual void StoreDimensions(CExpansionData& outState);
virtual void RecallDimensions(const CExpansionData& inState);
// Special interfaces
public:
Int16 GetCorrectDistanceFromBottom() const { return mDistanceFromWindowBottom; }
Int16 GetCorrectDividerDistanceFromBottom() const
{ return mDividerDistanceFromWindowBottom; }
// Down to business:
protected:
virtual void ChangeDividerPosition(Int16 delta); // also changes the twistie+caption
virtual void ChangeTwistiePosition(Int16 delta); // only changes the twistie+caption
void SetStickToBottom(LPane* inPane, Boolean inStick);
void SetStickToBottom(Boolean inStick);
// Data:
protected:
Int16 mDistanceFromWindowBottom;
Int16 mDividerDistanceFromWindowBottom;
LPane *mTwistie, *mCaption;
CDividerData mClosedData, mOpenData;
}; // class CExpandoDivider

View File

@@ -1,336 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* macmocha.cp
* MacFE mocha hacks
*
*/
#include "CMochaHacks.h"
#include "lo_ele.h"
#include "fe_proto.h" // for FE_DestroyWindow
#include "proto.h" // 1997-03-02 mjc
#include "layers.h"
#include "macutil.h"
LO_Element* CMochaHacks::sMouseOverElement = NULL; // layout element the cursor is over
MWContext* CMochaHacks::sMouseOverElementContext = NULL; // context associated with sMouseOverElement
LO_AnchorData* CMochaHacks::sMouseOverMapArea = NULL; // AREA tag the cursor is over
// <where> is document-relative
void
CMochaHacks::SendOutOfElementEvent(MWContext * winContext, CL_Layer* layer, SPoint32 where) // add layer param 1997-03-02 mjc
{
Assert_(winContext);
try
{
if ( sMouseOverElement )
{
// ET_SendEvent now takes a JSEvent struct instead of an int type
JSEvent* event = XP_NEW_ZAP(JSEvent);
if (event)
{
// 97-06-21 pkc -- If we have an sMouseOverElementContext then use it
// instead of winContext
MWContext* theContext = sMouseOverElementContext ? sMouseOverElementContext : winContext;
event->type = EVENT_MOUSEOUT;
event->x = where.h;
event->y = where.v;
event->docx = event->x + CL_GetLayerXOrigin(layer);
event->docy = event->y + CL_GetLayerYOrigin(layer);
int32 x_offset, y_offset;
FE_GetWindowOffset(theContext, &x_offset, &y_offset);
event->screenx = event->docx + x_offset;
event->screeny = event->docy + y_offset;
event->layer_id = LO_GetIdFromLayer(theContext, layer);
ET_SendEvent( theContext, sMouseOverElement, event, NULL, NULL );
sMouseOverElement = NULL;
sMouseOverElementContext = NULL;
}
}
}
catch(...)
{
}
}
void
CMochaHacks::SendOutOfMapAreaEvent(MWContext * winContext, CL_Layer* layer, SPoint32 where) // add layer param 1997-03-02 mjc
{
Assert_(winContext);
try
{
if ( sMouseOverMapArea )
{
CMochaEventCallback * cb = new CMochaEventCallback; // Need it because of LO_AnchorData
cb->SendEvent( winContext, sMouseOverMapArea, EVENT_MOUSEOUT, layer, where );
sMouseOverMapArea = NULL;
}
}
catch(...)
{
}
}
//
// CMochaEventCallback
//
void
CMochaHacks::ResetMochaMouse()
{
sMouseOverElement = NULL;
sMouseOverMapArea = NULL;
}
// Returns mocha modifier bitset given mac modifiers.
uint32
CMochaHacks::MochaModifiers(const UInt16 inModifiers)
{
return ((inModifiers & shiftKey) ? EVENT_SHIFT_MASK : 0) |
((inModifiers & controlKey) ? EVENT_CONTROL_MASK : 0) |
((inModifiers & optionKey) ? EVENT_ALT_MASK : 0) |
((inModifiers & cmdKey) ? EVENT_META_MASK : 0);
}
// Returns mocha modifiers by reading the keyboard.
uint32
CMochaHacks::MochaModifiersFromKeyboard(void)
{
union
{
KeyMap asMap;
Byte asBytes[16];
};
::GetKeys(asMap);
return ((asBytes[kShiftKey >> 3] & (1 << (kShiftKey & 0x07))) ? EVENT_SHIFT_MASK : 0) |
((asBytes[kCtlKey >> 3] & (1 << (kCtlKey & 0x07))) ? EVENT_CONTROL_MASK : 0) |
((asBytes[kOptionKey >> 3] & (1 << (kOptionKey & 0x07))) ? EVENT_ALT_MASK : 0) |
((asBytes[kCommandKey >> 3] & (1 << (kCommandKey & 0x07))) ? EVENT_META_MASK : 0);
}
// Returns true if the window is a dependent of another.
// Parameters:
// inContext: the context for this window.
Boolean
CMochaHacks::IsDependent(MWContext* inContext)
{
return (inContext->js_parent != nil);
}
// Add a window as a dependent of another.
// Called in FE_MakeNewWindow.
// Parameters:
// inParent: the parent context.
// inChild: the context for this window which will be made a dependent of the parent.
void
CMochaHacks::AddDependent(MWContext* inParent, MWContext* inChild)
{
// inParent could be a grid context, but dependencies are between windows so find root context.
MWContext* theParentRoot = XP_GetNonGridContext(inParent);
if (theParentRoot != nil && inChild != nil)
{
if (theParentRoot->js_dependent_list == NULL)
theParentRoot->js_dependent_list = XP_ListNew();
if (theParentRoot->js_dependent_list != NULL)
{
XP_ListAddObject(theParentRoot->js_dependent_list, inChild);
inChild->js_parent = theParentRoot;
}
}
}
// Remove dependents of the window.
// Called in destructor for window.
// Parameters:
// inContext: the context for this window.
void
CMochaHacks::RemoveDependents(MWContext* inContext)
{
// FE_DestroyWindow makes this recursive; keep track of how many levels deep we are.
static int recursionLevel = 0;
++recursionLevel;
if (inContext->js_dependent_list)
{
MWContext *depContext;
// destroy windows which are dependent on this window
for (int i = 1; i <= XP_ListCount(inContext->js_dependent_list); i++)
{
depContext = (MWContext *)XP_ListGetObjectNum(inContext->js_dependent_list, i);
FE_DestroyWindow(depContext);
}
XP_ListDestroy(inContext->js_dependent_list);
inContext->js_dependent_list = NULL;
}
--recursionLevel;
// remove self from parent's dependent list but only if we're the window
// at the top of the chain (don't alter lists we're iterating over).
if (recursionLevel == 0 && inContext->js_parent != nil)
{
if (XP_ListCount(inContext->js_parent->js_dependent_list) == 1)
{
// if the last element in the list, destroy the list.
XP_ListDestroy(inContext->js_parent->js_dependent_list);
inContext->js_parent->js_dependent_list = NULL;
}
else XP_ListRemoveObject(inContext->js_parent->js_dependent_list, inContext);
}
}
// Send move event to mocha every time a window or pane is moved.
void
CMochaHacks::SendMoveEvent(MWContext* inContext, int32 inX, int32 inY)
{
JSEvent *event;
event = XP_NEW_ZAP(JSEvent);
if (event)
{
event->type = EVENT_MOVE;
event->x = inX;
event->y = inY;
}
ET_SendEvent(inContext, 0, event, 0, 0);
}
// Send the event specified, with no callback.
void
CMochaHacks::SendEvent(MWContext* inContext, int32 inType, LO_Element* inElement)
{
JSEvent *event;
event = XP_NEW_ZAP(JSEvent);
if (event)
{
event->type = inType;
ET_SendEvent(inContext, inElement, event, 0, 0);
}
}
//
// CMochaEventCallback
//
#ifdef DEBUG
static int sCallbackCount = 0;
#endif
CMochaEventCallback::CMochaEventCallback()
{
#ifdef DEBUG
sCallbackCount++;
#endif
fDummyElement = NULL;
}
CMochaEventCallback::~CMochaEventCallback()
{
#ifdef DEBUG
sCallbackCount--;
#endif
if (fDummyElement != NULL)
XP_FREE( fDummyElement );
}
//
// Plain SendEvent
//
void
CMochaEventCallback::SendEvent(MWContext * context, LO_Element * element, int32 type, CL_Layer* layer, SPoint32 where)
{
// ET_SendEvent now takes a JSEvent struct instead of an int type
JSEvent* event = XP_NEW_ZAP(JSEvent);
if (event)
{
event->type = type;
event->x = where.h;
event->y = where.v;
event->docx = event->x + CL_GetLayerXOrigin(layer);
event->docy = event->y + CL_GetLayerYOrigin(layer);
int32 x_offset, y_offset;
FE_GetWindowOffset(context, &x_offset, &y_offset);
event->screenx = event->docx + x_offset;
event->screeny = event->docy + y_offset;
event->layer_id = LO_GetIdFromLayer(context, layer);
ET_SendEvent( context, element, event, MochaCallback, this);
// PR_Yield(); To speed up processing?
}
}
//
// LO_AnchorData SendEvent
//
void
CMochaEventCallback::SendEvent(MWContext * context, LO_AnchorData * data, int32 type, CL_Layer* layer, SPoint32 where)
{
// Create fake layout element
fDummyElement = XP_NEW_ZAP(LO_Element);
if (fDummyElement)
{
fDummyElement->type = LO_TEXT;
fDummyElement->lo_text.anchor_href = data;
fDummyElement->lo_text.text = data->anchor;
// ET_SendEvent now takes a JSEvent struct instead of an int type
JSEvent* event = XP_NEW_ZAP(JSEvent);
if (event)
{
event->type = type;
event->x = where.h;
event->y = where.v;
event->docx = event->x + CL_GetLayerXOrigin(layer);
event->docy = event->y + CL_GetLayerYOrigin(layer);
int32 x_offset, y_offset;
FE_GetWindowOffset(context, &x_offset, &y_offset);
event->screenx = event->docx + x_offset;
event->screeny = event->docy + y_offset;
event->layer_id = LO_GetIdFromLayer(context, layer);
ET_SendEvent( context, fDummyElement, event, MochaCallback, this);
}
}
}
//
// EventComplete, does nothing
//
void
CMochaEventCallback::Complete(MWContext * /*context*/, LO_Element * /*element*/,
int32 /*type*/, ETEventStatus /*status*/)
{
// EVENT_OK means we should handle the event/
// EVENT_CANCEL, EVENT_PANIC, means mocha has cancelled the click
}
//
// MochaCallback, called by mocha after event is processed
//
void CMochaEventCallback::MochaCallback(MWContext * context, LO_Element * element,
int32 type, void * inCallback, ETEventStatus status)
{
CMochaEventCallback * callback = (CMochaEventCallback *) inCallback;
callback->Complete( context, element, type, status );
delete callback;
}

View File

@@ -1,125 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* macmocha.h
* MacFE mocha hacks
*
*/
#include "structs.h" // mjc
#include "libevent.h"
/*
* static class that encapsulates most of the Macha hacks
*/
class CMochaHacks
{
private:
static LO_Element* sMouseOverElement; // layout element the cursor is over
static MWContext* sMouseOverElementContext; // context associated with sMouseOverElement
static LO_AnchorData* sMouseOverMapArea; // AREA tag the cursor is over
public:
static void ClearSelectionForContext( MWContext* context )
{
if (context == sMouseOverElementContext)
{
sMouseOverElement = NULL;
sMouseOverElementContext = NULL;
sMouseOverMapArea = NULL;
}
}
static void SendOutOfElementEvent(MWContext * winContext, CL_Layer* layer, SPoint32 where); // add layer param 1997-03-02 mjc
static void SendOutOfMapAreaEvent(MWContext * winContext, CL_Layer* layer, SPoint32 where); // add layer param 1997-03-02 mjc
static void ResetMochaMouse();
static Boolean IsMouseOverElement(LO_Element* inElement)
{ return inElement == sMouseOverElement; }
static Boolean IsMouseOverMapArea(LO_AnchorData* inAnchorData)
{ return inAnchorData == sMouseOverMapArea; }
static void SetMouseOverElement(LO_Element* inElement, MWContext* inElementContext = NULL)
{
sMouseOverElement = inElement;
sMouseOverElementContext = inElementContext;
}
static void RemoveReferenceToMouseOverElementContext(MWContext *context)
{
if (sMouseOverElementContext == context)
sMouseOverElementContext = NULL;
}
static void SetMouseOverMapArea(LO_AnchorData* inAnchorData)
{ sMouseOverMapArea = inAnchorData; }
static LO_Element* GetMouseOverElement()
{ return sMouseOverElement; }
static LO_AnchorData* GetMouseOverMapArea()
{ return sMouseOverMapArea; }
static uint32 MochaModifiers(const UInt16 inModifiers);
static uint32 MochaModifiersFromKeyboard(void);
// manage windows declared as dependent in javascript
static Boolean IsDependent(MWContext* inContext);
static void AddDependent(MWContext* inParent, MWContext* inChild);
static void RemoveDependents(MWContext* inContext);
// Whenever a window or frame moves or resizes send an event to javascript
static void SendMoveEvent(MWContext* inContext, int32 inX, int32 inY);
static void SendEvent(MWContext* inContext, int32 inType, LO_Element* inElement = nil);
// Send navigation events - currently not cancellable
static void SendBackEvent(MWContext* inContext)
{ SendEvent(inContext, EVENT_BACK); }
static void SendForwardEvent(MWContext* inContext)
{ SendEvent(inContext, EVENT_FORWARD); }
};
/*
* CMochaEventCallback
* class that encapsulates sending of mocha events
* Subclasses should override EventComplete
*/
class CMochaEventCallback {
public:
// Constructors
CMochaEventCallback();
virtual ~CMochaEventCallback();
// Mocha interface
void SendEvent(MWContext * context, LO_Element * element, int32 type, CL_Layer* layer, SPoint32 where);
void SendEvent(MWContext * context, LO_AnchorData * data, int32 type, CL_Layer* layer, SPoint32 where);
// MochaCallback calls EventComplete. You'll be deleted after this call
virtual void Complete(MWContext * context, LO_Element * element,
int32 type, ETEventStatus status);
static void MochaCallback(MWContext * context, LO_Element * element,
int32 type, void * inCallback, ETEventStatus status);
private:
// Old Mocha calls used to accept either LO_Element, or LO_AnchorData
// New ones only accept LO_Element, so sometimes we need to create/dispose
// dummy layout elements. This is encapsulated in this class
LO_Element * fDummyElement;
};

File diff suppressed because it is too large Load Diff

View File

@@ -1,526 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CNSContext.h
#pragma once
#include <LBroadcaster.h>
#include <LSharable.h>
#include "structs.h"
#include "cstring.h"
class CHTMLView;
class CNSContext;
inline CNSContext* ExtractNSContext(MWContext* inContext)
{ return inContext->fe.newContext; }
inline const CNSContext* ExtractConstNSContext(const MWContext* inContext)
{ return inContext->fe.newContext; }
inline CHTMLView* ExtractHyperView(const MWContext* inContext)
{ return inContext->fe.newView; }
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// This enumeration contains all of the possible broadcast messages that
// a CNSContext can give.
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
enum {
// These messages notify thge clients about the layout state.
msg_NSCDocTitleChanged = 'DTCG', // cstring* theNewTitle
msg_NSCLayoutNewDocument = 'LOND', // URL_Struct* theURL
msg_NSCFinishedLayout = 'FNLO', // < none >
// These messages notify thge clients about the repagination state.
msg_NSCPEmptyRepagination = 'NLPG', // < none >
msg_NSCPAboutToRepaginate = 'ABPG', // < none >
msg_NSCPEditorRepaginate = 'EDPG', // < none >
// These messages are key to the whole process of loading a URL.
// The start loading and all connections complete notifications are
// guaranteed to be symmetrical.
msg_NSCStartLoadURL = 'SLUB', // URL_Struct* theURL
msg_NSCConfirmLoadNewURL = 'CLNU', // Boolean*
msg_NSCAllConnectionsComplete = 'ACCP', // < none >
// A message to all context clients that this grid context is about to die.
// Clients should clean up and remove their shared references to the context
// upon receiving this message.
msg_NSCGridContextPreDispose = 'GCPD', // Boolean* isSavingHistory
// A message to all context clients that a child grid context has been
// created or disposed. Clients will want to know if a grid is created
// so that they can add themselves as a listener or add a shared reference
// to the new context.
msg_NSCGridContextCreated = 'GCCR', // CNSContext* new grid
msg_NSCGridContextDisposed = 'GCDP', // < none >
// Progress notifications, like the url loading notifications are
// guaranteed to be symmetric. There will always be one begin,
// n updates, and one end notification.
msg_NSCProgressBegin = 'PGST', // CContextProgress*
msg_NSCProgressUpdate = 'PGUP', // CContextProgress*
msg_NSCProgressEnd = 'PGED', // CContextProgress*
// These are progress messages that are not guaranteed to be sent
// between bind and end progress notifications.
// msg_NSCProgressMessageChanged = 'PGMC', // cstring* theNewMessage
msg_NSCProgressMessageChanged = 'PGMC', // const char* theNewMessage
msg_NSCProgressPercentChanged = 'PGPC' // Int32* theNewPercent
};
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// The progress of a particular url loading operation is encapsulated in the
// following object. Accessors are provided in the context to support this.
// This object is only instantiated during the actual load itself, begining
// with msg_NSCStartLoadURL notification and ending with the
// msg_NSCAllConnectionsComplete notification. At all other (inactive) times
// the accessors for this object will return NULL. See the accessor comments
// for further information.
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
class CContextProgress : public LSharable
{
public:
CContextProgress();
Int32 mTotal; // Total bytes tracked
Int32 mRead; // How many have been read
Int32 mUnknownCount; // How many connections of the unknown length do we have
Int32 mPercent; // Percent complete
Int32 mInitCount;
Uint32 mStartTime;
cstring mAction;
cstring mMessage;
cstring mComment;
};
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
//
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
class CNSContext : public LBroadcaster, public LSharable
{
friend class CNSContextCallbacks;
friend class CPlainTextConversionContext;
public:
CNSContext(MWContextType inType);
CNSContext(const CNSContext& inOriginal);
virtual ~CNSContext();
virtual void NoMoreUsers();
operator MWContext*();
operator const MWContext*() const;
operator MWContext&();
operator const MWContext&() const;
virtual CContextProgress* GetContextProgress();
protected:
virtual void SetContextProgress(CContextProgress* inProgress);
public:
void EnsureContextProgress();
virtual cstring GetDescriptor() const;
virtual void SetDescriptor(const char* inDescriptor);
virtual Boolean IsCloneRequired() const;
virtual void SetRequiresClone(Boolean inClone);
virtual CContextProgress* GetCurrentProgressStats();
virtual void UpdateCurrentProgressStats();
virtual void WaitWhileBusy();
// FIX ME!!! ACCESSOR for unique ID
// CHARACTER SET ACCESSORS
void InitDefaultCSID();
virtual void SetDefaultCSID(Int16 inDefaultCSID);
virtual Int16 GetDefaultCSID() const;
virtual void SetDocCSID(Int16 inDocCSID);
virtual Int16 GetDocCSID() const;
virtual void SetWinCSID(Int16 inWinCSID);
virtual Int16 GetWinCSID() const;
virtual Int16 GetWCSIDFromDocCSID(
Int16 inDocCSID);
class IndexOutOfRangeException { };
virtual History_entry* GetCurrentHistoryEntry();
virtual Int32 GetHistoryListCount();
virtual cstring* GetHistoryEntryTitleByIndex(Int32 inIndex); // one-based index
virtual Int32 GetIndexOfCurrentHistoryEntry();
virtual void GetHistoryURLByIndex(cstring& outURL, Int32 inIndex); // one-based index
// URL MANIPULATION
// 97-10-29 pchen -- Fix bug #90892, prefer origin_url in history entry to address
virtual cstring GetURLForReferral();
virtual cstring GetCurrentURL();
virtual void SwitchLoadURL(
URL_Struct* inURL,
FO_Present_Types inOutputFormat);
virtual void ImmediateLoadURL(
URL_Struct* inURL,
FO_Present_Types inOutputFormat);
// Need to make Alert public because we need to be able to call it from FE_Alert
virtual void Alert(
const char* inAlertText);
// STATUS
virtual const char* GetDefaultStatus() const;
virtual void ClearDefaultStatus();
virtual void SetStatus(const char* inStatus);
// STUFF
virtual void CompleteLoad(URL_Struct* inURL, int inStatus);
virtual void ClearMWContextViewPtr();
virtual void CopyListenersToContext(CNSContext* aSubContext); // used when spawning grid contexts
protected:
// CALLBACK IMPLEMENTATION
virtual MWContext* CreateNewDocWindow(
URL_Struct* inURL);
virtual void LayoutNewDocument(
URL_Struct* inURL,
Int32* inWidth,
Int32* inHeight,
Int32* inMarginWidth,
Int32* inMarginHeight);
virtual void SetDocTitle(
char* inTitle);
virtual void FinishedLayout();
virtual char* TranslateISOText(
int inCharset,
char* inISOText);
virtual int GetTextInfo(
LO_TextStruct* inText,
LO_TextInfo* inTextInfo);
virtual int MeasureText(
LO_TextStruct* inText,
short* outCharLocs);
virtual void GetEmbedSize(
LO_EmbedStruct* inEmbedStruct,
NET_ReloadMethod inReloadMethod);
virtual void GetJavaAppSize(
LO_JavaAppStruct* inJavaAppStruct,
NET_ReloadMethod inReloadMethod);
virtual void GetFormElementInfo(
LO_FormElementStruct* inElement);
virtual void GetFormElementValue(
LO_FormElementStruct* inElement,
XP_Bool inHide);
virtual void ResetFormElement(
LO_FormElementStruct* inElement);
virtual void SetFormElementToggle(
LO_FormElementStruct* inElement,
XP_Bool inToggle);
virtual void FreeEmbedElement(
LO_EmbedStruct* inEmbedStruct);
virtual void CreateEmbedWindow(
NPEmbeddedApp* inEmbeddedApp);
virtual void SaveEmbedWindow(
NPEmbeddedApp* inEmbeddedApp);
virtual void RestoreEmbedWindow(
NPEmbeddedApp* inEmbeddedApp);
virtual void DestroyEmbedWindow(
NPEmbeddedApp* inEmbeddedApp);
virtual void FreeJavaAppElement(
LJAppletData* inAppletData);
virtual void HideJavaAppElement(
LJAppletData* inAppletData);
virtual void FreeEdgeElement(
LO_EdgeStruct* inEdgeStruct);
virtual void FormTextIsSubmit(
LO_FormElementStruct* inElement);
virtual void DisplaySubtext(
int inLocation,
LO_TextStruct* inText,
Int32 inStartPos,
Int32 inEndPos,
XP_Bool inNeedBG);
virtual void DisplayText(
int inLocation,
LO_TextStruct* inText,
XP_Bool inNeedBG);
virtual void DisplayEmbed(
int inLocation,
LO_EmbedStruct* inEmbedStruct);
virtual void DisplayJavaApp(
int inLocation,
LO_JavaAppStruct* inJavaAppStruct);
virtual void DisplayEdge (
int inLocation,
LO_EdgeStruct* inEdgeStruct);
virtual void DisplayTable(
int inLocation,
LO_TableStruct* inTableStruct);
virtual void DisplayCell(
int inLocation,
LO_CellStruct* inCellStruct);
virtual void InvalidateEntireTableOrCell(
LO_Element* inElement);
virtual void DisplayAddRowOrColBorder(
XP_Rect* inRect,
XP_Bool inDoErase);
virtual void DisplaySubDoc(
int inLocation,
LO_SubDocStruct* inSubdocStruct);
virtual void DisplayLineFeed(
int inLocation,
LO_LinefeedStruct* inLinefeedStruct,
XP_Bool inNeedBG);
virtual void DisplayHR(
int inLocation,
LO_HorizRuleStruct* inRuleStruct);
virtual void DisplayBullet(
int inLocation,
LO_BullettStruct* inBullettStruct);
virtual void DisplayFormElement(
int inLocation,
LO_FormElementStruct* inFormElement);
virtual void DisplayBorder(
int inLocation,
int inX,
int inY,
int inWidth,
int inHeight,
int inBW,
LO_Color* inColor,
LO_LineStyle inStyle);
virtual void UpdateEnableStates();
virtual void DisplayFeedback(
int inLocation,
LO_Element* inElement);
virtual void ClearView(
int inWhich);
virtual void SetDocDimension(
int inLocation,
Int32 inWidth,
Int32 inLength);
virtual void SetDocPosition(
int inLocation,
Int32 inX,
Int32 inY);
virtual void GetDocPosition(
int inLocation,
Int32* outX,
Int32* outY);
virtual void BeginPreSection();
virtual void EndPreSection();
virtual void SetProgressBarPercent(
Int32 inPercent);
virtual void SetBackgroundColor(
Uint8 inRed,
Uint8 inGreen,
Uint8 inBlue);
public:
virtual void Progress(
const char* inMessageText);
protected:
virtual void SetCallNetlibAllTheTime();
virtual void ClearCallNetlibAllTheTime();
virtual void GraphProgressInit(
URL_Struct* inURL,
Int32 inContentLength);
virtual void GraphProgressDestroy(
URL_Struct* inURL,
Int32 inContentLength,
Int32 inTotalRead);
virtual void GraphProgress(
URL_Struct* inURL,
Int32 inBytesReceived,
Int32 inBytesSinceLast,
Int32 inContentLength);
virtual XP_Bool UseFancyFTP();
virtual XP_Bool UseFancyNewsgroupListing();
virtual int FileSortMethod();
virtual XP_Bool ShowAllNewsArticles();
virtual XP_Bool Confirm(
const char* inMessage);
virtual char* Prompt(
const char* inMessage,
const char* inDefaultText);
virtual char* PromptWithCaption(
const char* inCaption,
const char* inMessage,
const char* inDefaultText);
virtual XP_Bool PromptUsernameAndPassword(
const char* inMessage,
char** outUserName,
char** outPassword);
virtual char* PromptPassword(
const char* inMessage);
virtual void EnableClicking();
virtual void AllConnectionsComplete();
virtual void EraseBackground(
int inLocation,
Int32 inX,
Int32 inY,
Uint32 inWidth,
Uint32 inHieght,
LO_Color* inColor);
virtual void SetDrawable(
CL_Drawable* inDrawable);
virtual void GetTextFrame(
LO_TextStruct* inTextStruct,
Int32 inStartPos,
Int32 inEndPos,
XP_Rect* outFrame);
virtual void GetDefaultBackgroundColor(
LO_Color* outColor) const;
virtual void DrawJavaApp(
int inLocation,
LO_JavaAppStruct* inJavaAppStruct);
virtual void HandleClippingView(
struct LJAppletData *appletD,
int x,
int y,
int width,
int height);
public:
static UInt32 sNSCWindowID; // Unique ID, incremented for each context
UInt32 fNSCWindowID; // ID of this window
Int32 fNSCProgressID; //
Int32 GetTransactionID() { return fNSCProgressID; }
Int32 GetContextUniqueID() { return fNSCWindowID; }
CommandT GetCurrentCommand() const { return mCurrentCommand; }
void SetCurrentCommand(CommandT inCommand) { mCurrentCommand = inCommand; }
// Window ID. Used to identify the context
// There are listeners that listen to several contexts (eg, in mail windows).
// This works by reference counting, and such listeners assume calls to
// SwitchLoadURL and AllConnectionsComplete are balanced. Each context must
// therefore ensure that they are, even if it is done artificially.
Int32 mLoadRefCount;
protected:
MWContext mContext;
Int16 mDefaultCSID;
Boolean mRequiresClone;
CContextProgress* mProgress;
CommandT mCurrentCommand; // command being executed
};
inline CNSContext::operator MWContext*()
{ return &mContext; };
inline CNSContext::operator const MWContext*() const
{ return &mContext; };
inline CNSContext::operator MWContext&()
{ return mContext; };
inline CNSContext::operator const MWContext&() const
{ return mContext; };

View File

@@ -1,745 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CNSContextCallbacks.cp
#include "CNSContextCallbacks.h"
#include "CNSContext.h"
CNSContextCallbacks* CNSContextCallbacks::sContextCallbacks = NULL; // singleton class
CNSContextCallbacks::CNSContextCallbacks()
{
#define MAKE_FE_FUNCS_PREFIX(f) CNSContextCallbacks::##f
#define MAKE_FE_FUNCS_ASSIGN mCallbacks.
#include "mk_cx_fn.h"
Assert_(sContextCallbacks == NULL);
sContextCallbacks = this;
}
CNSContextCallbacks::~CNSContextCallbacks()
{
sContextCallbacks = NULL;
}
MWContext* CNSContextCallbacks::CreateNewDocWindow(
MWContext* inContext,
URL_Struct* inURL)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
return theNSContext->CreateNewDocWindow(inURL);
}
void CNSContextCallbacks::LayoutNewDocument(
MWContext* inContext,
URL_Struct* inURL,
int32* inWidth,
int32* inHeight,
int32* inMarginWidth,
int32* inMarginHeight)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->LayoutNewDocument(inURL, inWidth, inHeight, inMarginWidth, inMarginHeight);
}
void CNSContextCallbacks::SetDocTitle(
MWContext* inContext,
char* inTitle)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->SetDocTitle(inTitle);
}
void CNSContextCallbacks::FinishedLayout(MWContext* inContext)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->FinishedLayout();
}
char* CNSContextCallbacks::TranslateISOText(
MWContext* inContext,
int inCharset,
char* inISOText)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
return theNSContext->TranslateISOText(inCharset, inISOText);
}
int CNSContextCallbacks::GetTextInfo(
MWContext* inContext,
LO_TextStruct* inText,
LO_TextInfo* inTextInfo)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
return theNSContext->GetTextInfo(inText, inTextInfo);
}
int CNSContextCallbacks::MeasureText(
MWContext* inContext,
LO_TextStruct* inText,
short* outCharLocs)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
return theNSContext->MeasureText(inText, outCharLocs);
}
void CNSContextCallbacks::GetEmbedSize(
MWContext* inContext,
LO_EmbedStruct* inEmbedStruct,
NET_ReloadMethod inReloadMethod)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->GetEmbedSize(inEmbedStruct, inReloadMethod);
}
void CNSContextCallbacks::GetJavaAppSize(
MWContext* inContext,
LO_JavaAppStruct* inJavaAppStruct,
NET_ReloadMethod inReloadMethod)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->GetJavaAppSize(inJavaAppStruct, inReloadMethod);
}
void CNSContextCallbacks::GetFormElementInfo(
MWContext* inContext,
LO_FormElementStruct* inElement)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->GetFormElementInfo(inElement);
}
void CNSContextCallbacks::GetFormElementValue(
MWContext* inContext,
LO_FormElementStruct* inElement,
XP_Bool inHide)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->GetFormElementValue(inElement, inHide);
}
void CNSContextCallbacks::ResetFormElement(
MWContext* inContext,
LO_FormElementStruct* inElement)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->ResetFormElement(inElement);
}
void CNSContextCallbacks::SetFormElementToggle(
MWContext* inContext,
LO_FormElementStruct* inElement,
XP_Bool inToggle)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->SetFormElementToggle(inElement, inToggle);
}
void CNSContextCallbacks::FreeEmbedElement(
MWContext* inContext,
LO_EmbedStruct* inEmbedStruct)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->FreeEmbedElement(inEmbedStruct);
}
void CNSContextCallbacks::CreateEmbedWindow(
MWContext* inContext,
NPEmbeddedApp* inEmbeddedApp)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->CreateEmbedWindow(inEmbeddedApp);
}
void CNSContextCallbacks::SaveEmbedWindow(
MWContext* inContext,
NPEmbeddedApp* inEmbeddedApp)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->SaveEmbedWindow(inEmbeddedApp);
}
void CNSContextCallbacks::RestoreEmbedWindow(
MWContext* inContext,
NPEmbeddedApp* inEmbeddedApp)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->RestoreEmbedWindow(inEmbeddedApp);
}
void CNSContextCallbacks::DestroyEmbedWindow(
MWContext* inContext,
NPEmbeddedApp* inEmbeddedApp)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DestroyEmbedWindow(inEmbeddedApp);
}
void CNSContextCallbacks::FreeJavaAppElement(
MWContext* inContext,
LJAppletData* inAppletData)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->FreeJavaAppElement(inAppletData);
}
void CNSContextCallbacks::HideJavaAppElement(
MWContext* inContext,
LJAppletData* inAppletData)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->HideJavaAppElement(inAppletData);
}
void CNSContextCallbacks::FreeEdgeElement(
MWContext* inContext,
LO_EdgeStruct* inEdgeStruct)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->FreeEdgeElement(inEdgeStruct);
}
void CNSContextCallbacks::FormTextIsSubmit(
MWContext* inContext,
LO_FormElementStruct* inElement)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->FormTextIsSubmit(inElement);
}
void CNSContextCallbacks::DisplaySubtext(
MWContext* inContext,
int inLocation,
LO_TextStruct* inText,
Int32 inStartPos,
Int32 inEndPos,
XP_Bool inNeedBG)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DisplaySubtext(inLocation, inText, inStartPos, inEndPos, inNeedBG);
}
void CNSContextCallbacks::DisplayText(
MWContext* inContext,
int inLocation,
LO_TextStruct* inText,
XP_Bool inNeedBG)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DisplayText(inLocation, inText, inNeedBG);
}
void CNSContextCallbacks::DisplayEmbed(
MWContext* inContext,
int inLocation,
LO_EmbedStruct* inEmbedStruct)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DisplayEmbed(inLocation, inEmbedStruct);
}
void CNSContextCallbacks::DisplayJavaApp(
MWContext* inContext,
int inLocation,
LO_JavaAppStruct* inJavaAppStruct)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DisplayJavaApp(inLocation, inJavaAppStruct);
}
void CNSContextCallbacks::DisplayEdge(
MWContext* inContext,
int inLocation,
LO_EdgeStruct* inEdgeStruct)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DisplayEdge(inLocation, inEdgeStruct);
}
void CNSContextCallbacks::DisplayTable(
MWContext* inContext,
int inLocation,
LO_TableStruct* inTableStruct)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DisplayTable(inLocation, inTableStruct);
}
void CNSContextCallbacks::DisplayCell(
MWContext* inContext,
int inLocation,
LO_CellStruct* inCellStruct)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DisplayCell(inLocation, inCellStruct);
}
void CNSContextCallbacks::InvalidateEntireTableOrCell(
MWContext* inContext,
LO_Element* inElement)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
if (inElement)
theNSContext->InvalidateEntireTableOrCell(inElement);
}
void CNSContextCallbacks::DisplayAddRowOrColBorder(
MWContext* inContext,
XP_Rect* inRect,
XP_Bool inDoErase)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DisplayAddRowOrColBorder(inRect, inDoErase);
}
void CNSContextCallbacks::DisplaySubDoc(
MWContext* inContext,
int inLocation,
LO_SubDocStruct* inSubdocStruct)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DisplaySubDoc(inLocation, inSubdocStruct);
}
void CNSContextCallbacks::DisplayLineFeed(
MWContext* inContext,
int inLocation,
LO_LinefeedStruct* inLinefeedStruct,
XP_Bool inNeedBG)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DisplayLineFeed(inLocation, inLinefeedStruct, inNeedBG);
}
void CNSContextCallbacks::DisplayHR(
MWContext* inContext,
int inLocation,
LO_HorizRuleStruct* inRuleStruct)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DisplayHR(inLocation, inRuleStruct);
}
void CNSContextCallbacks::DisplayBullet(
MWContext* inContext,
int inLocation,
LO_BullettStruct* inBullettStruct)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DisplayBullet(inLocation, inBullettStruct);
}
void CNSContextCallbacks::DisplayFormElement(
MWContext* inContext,
int inLocation,
LO_FormElementStruct* inFormElement)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DisplayFormElement(inLocation, inFormElement);
}
void CNSContextCallbacks::DisplayBorder(
MWContext* inContext,
int inLocation,
int inX,
int inY,
int inWidth,
int inHeight,
int inBW,
LO_Color* inColor,
LO_LineStyle inStyle)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DisplayBorder(inLocation, inX, inY, inWidth, inHeight, inBW, inColor, inStyle);
}
void CNSContextCallbacks::UpdateEnableStates( MWContext* inContext )
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->UpdateEnableStates();
}
void CNSContextCallbacks::DisplayFeedback(
MWContext* inContext,
int inLocation,
LO_Element* inElement)
{
// bail out if non-editor context
// this function is to be used only for the editor
if ( !inContext->is_editor )
return;
// called even if the element is not selected
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DisplayFeedback(inLocation, inElement);
}
void CNSContextCallbacks::ClearView(
MWContext* inContext,
int inWhich)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->ClearView(inWhich);
}
void CNSContextCallbacks::SetDocDimension(
MWContext* inContext,
int inLocation,
Int32 inWidth,
Int32 inLength)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->SetDocDimension(inLocation, inWidth, inLength);
}
void CNSContextCallbacks::SetDocPosition(
MWContext* inContext,
int inLocation,
Int32 inX,
Int32 inY)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->SetDocPosition(inLocation, inX, inY);
}
void CNSContextCallbacks::GetDocPosition(
MWContext* inContext,
int inLocation,
Int32* outX,
Int32* outY)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->GetDocPosition(inLocation, outX, outY);
}
void CNSContextCallbacks::BeginPreSection(
MWContext* inContext)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->BeginPreSection();
}
void CNSContextCallbacks::EndPreSection(
MWContext* inContext)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->EndPreSection();
}
void CNSContextCallbacks::SetProgressBarPercent(
MWContext* inContext,
Int32 inPercent)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->SetProgressBarPercent(inPercent);
}
void CNSContextCallbacks::SetBackgroundColor(
MWContext* inContext,
Uint8 inRed,
Uint8 inGreen,
Uint8 inBlue)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->SetBackgroundColor(inRed, inGreen, inBlue);
}
void CNSContextCallbacks::Progress(
MWContext* inContext,
const char* inMessageText)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->Progress(inMessageText);
}
void CNSContextCallbacks::Alert(
MWContext* inContext,
const char* inAlertText)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->Alert(inAlertText);
}
void CNSContextCallbacks::SetCallNetlibAllTheTime(
MWContext* inContext)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->SetCallNetlibAllTheTime();
}
void CNSContextCallbacks::ClearCallNetlibAllTheTime(
MWContext* inContext)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->ClearCallNetlibAllTheTime();
}
void CNSContextCallbacks::GraphProgressInit(
MWContext* inContext,
URL_Struct* inURL,
Int32 inContentLength)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->GraphProgressInit(inURL, inContentLength);
}
void CNSContextCallbacks::GraphProgressDestroy(
MWContext* inContext,
URL_Struct* inURL,
Int32 inContentLength,
Int32 inTotalRead)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->GraphProgressDestroy(inURL, inContentLength, inTotalRead);
}
void CNSContextCallbacks::GraphProgress(
MWContext* inContext,
URL_Struct* inURL,
Int32 inBytesReceived,
Int32 inBytesSinceLast,
Int32 inContentLength)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->GraphProgress(inURL, inBytesReceived, inBytesSinceLast, inContentLength);
}
XP_Bool CNSContextCallbacks::UseFancyFTP(
MWContext* inContext)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
return theNSContext->UseFancyFTP();
}
XP_Bool CNSContextCallbacks::UseFancyNewsgroupListing(
MWContext* inContext)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
return theNSContext->UseFancyNewsgroupListing();
}
int CNSContextCallbacks::FileSortMethod(
MWContext* inContext)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
return theNSContext->FileSortMethod();
}
XP_Bool CNSContextCallbacks::ShowAllNewsArticles(
MWContext* inContext)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
return theNSContext->ShowAllNewsArticles();
}
XP_Bool CNSContextCallbacks::Confirm(
MWContext* inContext,
const char* inMessage)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
return theNSContext->Confirm(inMessage);
}
char* CNSContextCallbacks::Prompt(
MWContext* inContext,
const char* inMessage,
const char* inDefaultText)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
return theNSContext->Prompt(inMessage, inDefaultText);
}
char* CNSContextCallbacks::PromptWithCaption(
MWContext* inContext,
const char* inCaption,
const char* inMessage,
const char* inDefaultText)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
return theNSContext->PromptWithCaption(inCaption, inMessage, inDefaultText);
}
XP_Bool CNSContextCallbacks::PromptUsernameAndPassword(
MWContext* inContext,
const char* inMessage,
char** outUserName,
char** outPassword)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
return theNSContext->PromptUsernameAndPassword(inMessage, outUserName, outPassword);
}
char* CNSContextCallbacks::PromptPassword(
MWContext* inContext,
const char* inMessage)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
return theNSContext->PromptPassword(inMessage);
}
void CNSContextCallbacks::EnableClicking(
MWContext* inContext)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->EnableClicking();
}
void CNSContextCallbacks::AllConnectionsComplete(
MWContext* inContext)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
if (theNSContext)
theNSContext->AllConnectionsComplete();
}
void CNSContextCallbacks::EraseBackground(
MWContext* inContext,
int inLocation,
Int32 inX,
Int32 inY,
Uint32 inWidth,
Uint32 inHeight,
LO_Color* inColor)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->EraseBackground(inLocation, inX, inY, inWidth, inHeight, inColor);
}
void CNSContextCallbacks::SetDrawable(
MWContext* inContext,
CL_Drawable* inDrawable)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->SetDrawable(inDrawable);
}
void CNSContextCallbacks::GetTextFrame(
MWContext* inContext,
LO_TextStruct* inTextStruct,
Int32 inStartPos,
Int32 inEndPos,
XP_Rect* outFrame)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->GetTextFrame(inTextStruct, inStartPos, inEndPos, outFrame);
}
void CNSContextCallbacks::GetDefaultBackgroundColor(
MWContext* inContext,
LO_Color* outColor)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->GetDefaultBackgroundColor(outColor);
}
void CNSContextCallbacks::DrawJavaApp(
MWContext* inContext,
int inLocation,
LO_JavaAppStruct* inJavaAppStruct)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->DrawJavaApp(inLocation, inJavaAppStruct);
}
void CNSContextCallbacks::HandleClippingView(
MWContext* inContext,
struct LJAppletData *appletD,
int x,
int y,
int width,
int height)
{
CNSContext* theNSContext = ExtractNSContext(inContext);
Assert_(theNSContext != NULL);
theNSContext->HandleClippingView(appletD, x, y, width, height);
}

View File

@@ -1,393 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CNSContextCallbacks.h
#pragma once
#include "ntypes.h"
#include "structs.h"
#include "ctxtfunc.h"
class CNSContext;
class CNSContextCallbacks
{
public:
static CNSContextCallbacks* GetContextCallbacks(void); // singleton class accessor
CNSContextCallbacks();
virtual ~CNSContextCallbacks();
ContextFuncs& GetInternalCallbacks(void);
protected:
static MWContext* CreateNewDocWindow(
MWContext* inContext,
URL_Struct* inURL);
static void LayoutNewDocument(
MWContext* inContext,
URL_Struct* inURL,
Int32* inWidth,
Int32* inHeight,
Int32* inMarginWidth,
Int32* inMarginHeight);
static void SetDocTitle(
MWContext* inContext,
char* inTitle);
static void FinishedLayout(
MWContext* inContext);
static char* TranslateISOText(
MWContext* inContext,
int inCharset,
char* inISOText);
static int GetTextInfo(
MWContext* inContext,
LO_TextStruct* inText,
LO_TextInfo* inTextInfo);
static int MeasureText(
MWContext* inContext,
LO_TextStruct* inText,
short* outCharLocs);
static void GetEmbedSize(
MWContext* inContext,
LO_EmbedStruct* inEmbedStruct,
NET_ReloadMethod inReloadMethod);
static void GetJavaAppSize(
MWContext* inContext,
LO_JavaAppStruct* inJavaAppStruct,
NET_ReloadMethod inReloadMethod);
static void GetFormElementInfo(
MWContext* inContext,
LO_FormElementStruct* inElement);
static void GetFormElementValue(
MWContext* inContext,
LO_FormElementStruct* inElement,
XP_Bool inHide);
static void ResetFormElement(
MWContext* inContext,
LO_FormElementStruct* inElement);
static void SetFormElementToggle(
MWContext* inContext,
LO_FormElementStruct* inElement,
XP_Bool inToggle);
static void FreeEmbedElement(
MWContext* inContext,
LO_EmbedStruct* inEmbedStruct);
static void CreateEmbedWindow(
MWContext* inContext,
NPEmbeddedApp* inEmbeddedApp);
static void SaveEmbedWindow(
MWContext* inContext,
NPEmbeddedApp* inEmbeddedApp);
static void RestoreEmbedWindow(
MWContext* inContext,
NPEmbeddedApp* inEmbeddedApp);
static void DestroyEmbedWindow(
MWContext* inContext,
NPEmbeddedApp* inEmbeddedApp);
static void FreeJavaAppElement(
MWContext* inContext,
LJAppletData* inAppletData);
static void HideJavaAppElement(
MWContext* inContext,
LJAppletData* inAppletData);
static void FreeEdgeElement(
MWContext* inContext,
LO_EdgeStruct* inEdgeStruct);
static void FormTextIsSubmit(
MWContext* inContext,
LO_FormElementStruct* inElement);
static void DisplaySubtext(
MWContext* inContext,
int inLocation,
LO_TextStruct* inText,
Int32 inStartPos,
Int32 inEndPos,
XP_Bool inNeedBG);
static void DisplayText(
MWContext* inContext,
int inLocation,
LO_TextStruct* inText,
XP_Bool inNeedBG);
static void DisplayEmbed(
MWContext* inContext,
int inLocation,
LO_EmbedStruct* inEmbedStruct);
static void DisplayJavaApp(
MWContext* inContext,
int inLocation,
LO_JavaAppStruct* inJavaAppStruct);
static void DisplayEdge (
MWContext* inContext,
int inLocation,
LO_EdgeStruct* inEdgeStruct);
static void DisplayTable(
MWContext* inContext,
int inLocation,
LO_TableStruct* inTableStruct);
static void DisplayCell(
MWContext* inContext,
int inLocation,
LO_CellStruct* inCellStruct);
static void InvalidateEntireTableOrCell(
MWContext* inContext,
LO_Element* inElement);
static void DisplayAddRowOrColBorder(
MWContext* inContext,
XP_Rect* inRect,
XP_Bool inErase);
static void DisplaySubDoc(
MWContext* inContext,
int inLocation,
LO_SubDocStruct* inSubdocStruct);
static void DisplayLineFeed(
MWContext* inContext,
int inLocation,
LO_LinefeedStruct* inLinefeedStruct,
XP_Bool inNeedBG);
static void DisplayHR(
MWContext* inContext,
int inLocation,
LO_HorizRuleStruct* inRuleStruct);
static void DisplayBullet(
MWContext* inContext,
int inLocation,
LO_BullettStruct* inBullettStruct);
static void DisplayFormElement(
MWContext* inContext,
int inLocation,
LO_FormElementStruct* inFormElement);
static void DisplayBorder(
MWContext* inContext,
int inLocation,
int inX,
int inY,
int inWidth,
int inHeight,
int inBW,
LO_Color* inColor,
LO_LineStyle inStyle);
static void UpdateEnableStates(
MWContext* inContext);
static void DisplayFeedback(
MWContext* inContext,
int inLocation,
LO_Element* inElement);
static void ClearView(
MWContext* inContext,
int inWhich);
static void SetDocDimension(
MWContext* inContext,
int inLocation,
Int32 inWidth,
Int32 inLength);
static void SetDocPosition(
MWContext* inContext,
int inLocation,
Int32 inX,
Int32 inY);
static void GetDocPosition(
MWContext* inContext,
int inLocation,
Int32* outX,
Int32* outY);
static void BeginPreSection(
MWContext* inContext);
static void EndPreSection(
MWContext* inContext);
static void SetProgressBarPercent(
MWContext* inContext,
Int32 inPercent);
static void SetBackgroundColor(
MWContext* inContext,
Uint8 inRed,
Uint8 inGreen,
Uint8 inBlue);
static void Progress(
MWContext* inContext,
const char* inMessageText);
static void Alert(
MWContext* inContext,
const char* inAlertText);
static void SetCallNetlibAllTheTime(
MWContext* inContext);
static void ClearCallNetlibAllTheTime(
MWContext* inContext);
static void GraphProgressInit(
MWContext* inContext,
URL_Struct* inURL,
Int32 inContentLength);
static void GraphProgressDestroy(
MWContext* inContext,
URL_Struct* inURL,
Int32 inContentLength,
Int32 inTotalRead);
static void GraphProgress(
MWContext* inContext,
URL_Struct* inURL,
Int32 inBytesReceived,
Int32 inBytesSinceLast,
Int32 inContentLength);
static XP_Bool UseFancyFTP(
MWContext* inContext);
static XP_Bool UseFancyNewsgroupListing(
MWContext* inContext);
static int FileSortMethod(
MWContext* inContext);
static XP_Bool ShowAllNewsArticles(
MWContext* inContext);
static XP_Bool Confirm(
MWContext* inContext,
const char* inMessage);
static char* PromptWithCaption(
MWContext* inContext,
const char* inCaption,
const char* inMessage,
const char* inDefaultText);
static char* Prompt(
MWContext* inContext,
const char* inMessage,
const char* inDefaultText);
static XP_Bool PromptUsernameAndPassword(
MWContext* inContext,
const char* inMessage,
char** outUserName,
char** outPassword);
static char* PromptPassword(
MWContext* inContext,
const char* inMessage);
static void EnableClicking(
MWContext* inContext);
static void AllConnectionsComplete(
MWContext* inContext);
static void EraseBackground(
MWContext* inContext,
int inLocation,
Int32 inX,
Int32 inY,
Uint32 inWidth,
Uint32 inHeight,
LO_Color* inColor);
static void SetDrawable(
MWContext* inContext,
CL_Drawable* inDrawable);
static void GetTextFrame(
MWContext* inContext,
LO_TextStruct* inTextStruct,
Int32 inStartPos,
Int32 inEndPos,
XP_Rect* outFrame);
static void GetDefaultBackgroundColor(
MWContext* inContext,
LO_Color* outColor);
static void DrawJavaApp(
MWContext* inContext,
int inLocation,
LO_JavaAppStruct* inJavaAppStruct);
static void HandleClippingView(
MWContext* inContext,
struct LJAppletData *appletD,
int x,
int y,
int width,
int height);
ContextFuncs mCallbacks;
static CNSContextCallbacks* sContextCallbacks; // singleton class
};
inline _ContextFuncs& CNSContextCallbacks::GetInternalCallbacks(void)
{ return mCallbacks; }
inline CNSContextCallbacks* CNSContextCallbacks::GetContextCallbacks(void)
{ return sContextCallbacks; }

View File

@@ -1,252 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CPlainTextConversionContext.cp
// This might seem like a lot of work to go around the code in ns/lib/xlate/text.c,
// but doing this allows us not to have to put if (inContext == NULL) inside
// CNSContextCallbacks.cp; and by calling the TXFE_* functions from the overridden
// methods, we pickup any modifcations made for free.
//#include <yvals.h>
#include "CPlainTextConversionContext.h"
#include "xlate.h"
//_EXTERN_C
__extern_c
// prototypes for text.c functions
extern void TXFE_DisplayTable(MWContext *cx, int iLoc, LO_TableStruct *table);
extern void TXFE_DisplayLineFeed(MWContext *cx, int iLocation, LO_LinefeedStruct *line_feed, XP_Bool notused);
extern void TXFE_DisplayHR(MWContext *cx, int iLocation , LO_HorizRuleStruct *HR);
extern char *TXFE_TranslateISOText(MWContext *cx, int charset, char *ISO_Text);
extern void TXFE_DisplayBullet(MWContext *cx, int iLocation, LO_BullettStruct *bullet);
extern void TXFE_FinishedLayout(MWContext *cx);
extern void TXFE_AllConnectionsComplete(MWContext *cx);
extern void TXFE_DisplaySubtext(MWContext *cx, int iLocation, LO_TextStruct *text,
int32 start_pos, int32 end_pos, XP_Bool notused);
extern void TXFE_DisplayText(MWContext *cx, int iLocation, LO_TextStruct *text, XP_Bool needbg);
extern void TXFE_DisplaySubDoc(MWContext *cx, int iLocation, LO_SubDocStruct *subdoc_struct);
extern int TXFE_GetTextInfo(MWContext *cx, LO_TextStruct *text, LO_TextInfo *text_info);
extern void TXFE_LayoutNewDocument(MWContext *cx, URL_Struct *url, int32 *w, int32 *h, int32* mw, int32* mh);
// These are here because the backend files are .c files, which are only
// run through the C compiler. Thus we need to create and destroy the
// CPlainTextConversionContext from a .cp file
MWContext* CreatePlainTextConversionContext(MWContext* inUIContext);
void DisposePlainTextConversionContext(MWContext* inContext);
__end_extern_c
#pragma mark --- CALLBACKS ---
MWContext* CreatePlainTextConversionContext(MWContext* inUIContext)
{
try {
CPlainTextConversionContext* theContext = new CPlainTextConversionContext(inUIContext);
// Very slimey, but somebody needs to have an interest in the context
theContext->AddUser(theContext);
return theContext->operator MWContext*();
} catch (...) {
return NULL;
}
}
void DisposePlainTextConversionContext(MWContext* inContext)
{
CPlainTextConversionContext* theContext =
dynamic_cast<CPlainTextConversionContext*>(ExtractNSContext(inContext));
Assert_(theContext != NULL);
// One of these days, this call might break
theContext->RemoveUser(theContext);
}
CPlainTextConversionContext::CPlainTextConversionContext(MWContext* inUIContext) :
CNSContext(MWContextText)
{
mUIContext = ExtractNSContext(inUIContext);
Assert_(mUIContext != NULL);
}
#pragma mark --- OVERRIDES ---
void CPlainTextConversionContext::LayoutNewDocument(
URL_Struct* inURL,
Int32* inWidth,
Int32* inHeight,
Int32* inMarginWidth,
Int32* inMarginHeight)
{
TXFE_LayoutNewDocument(*this, inURL, inWidth, inHeight, inMarginWidth, inMarginHeight);
}
void CPlainTextConversionContext::DisplaySubtext(
int inLocation,
LO_TextStruct* inText,
Int32 inStartPos,
Int32 inEndPos,
XP_Bool inNeedBG)
{
TXFE_DisplaySubtext(*this, inLocation, inText, inStartPos, inEndPos, inNeedBG);
}
void CPlainTextConversionContext::DisplayText(
int inLocation,
LO_TextStruct* inText,
XP_Bool inNeedBG)
{
TXFE_DisplayText(*this, inLocation, inText, inNeedBG);
}
void CPlainTextConversionContext::DisplaySubDoc(
int inLocation,
LO_SubDocStruct* inSubdocStruct)
{
TXFE_DisplaySubDoc(*this, inLocation, inSubdocStruct);
}
void CPlainTextConversionContext::DisplayTable(
int inLocation,
LO_TableStruct* inTableStruct)
{
TXFE_DisplayTable(*this, inLocation, inTableStruct);
}
void CPlainTextConversionContext::DisplayLineFeed(
int inLocation,
LO_LinefeedStruct* inLinefeedStruct,
XP_Bool inNeedBG)
{
TXFE_DisplayLineFeed(*this, inLocation, inLinefeedStruct, inNeedBG);
}
void CPlainTextConversionContext::DisplayHR(
int inLocation,
LO_HorizRuleStruct* inRuleStruct)
{
TXFE_DisplayHR(*this, inLocation, inRuleStruct);
}
char* CPlainTextConversionContext::TranslateISOText(
int inCharset,
char* inISOText)
{
return TXFE_TranslateISOText(*this, inCharset, inISOText);
}
void CPlainTextConversionContext::DisplayBullet(
int inLocation,
LO_BullettStruct* inBulletStruct)
{
TXFE_DisplayBullet(*this, inLocation, inBulletStruct);
}
void CPlainTextConversionContext::FinishedLayout(void)
{
TXFE_FinishedLayout(*this);
}
int CPlainTextConversionContext::GetTextInfo(
LO_TextStruct* inText,
LO_TextInfo* inTextInfo)
{
return TXFE_GetTextInfo(*this, inText, inTextInfo);
}
int CPlainTextConversionContext::MeasureText(
LO_TextStruct* /*inText*/,
short* /*outCharLocs*/)
{
return 0;
}
void CPlainTextConversionContext::AllConnectionsComplete(void)
{
if (mProgress)
{
mProgress->RemoveUser(this);
mProgress = NULL;
}
TXFE_AllConnectionsComplete(*this);
mUIContext->AllConnectionsComplete();
CNSContext::AllConnectionsComplete();
}
void CPlainTextConversionContext::GraphProgressInit(
URL_Struct* inURL,
Int32 inContentLength)
{
try {
Assert_(mUIContext != NULL);
if (mUIContext && mUIContext->GetContextProgress())
mProgress = mUIContext->GetContextProgress();
else
{
mProgress = new CContextProgress;
mUIContext->SetContextProgress(mProgress);
}
mProgress->AddUser(this);
} catch (...) {
mProgress = NULL;
}
mUIContext->GraphProgressInit(inURL, inContentLength);
}
void CPlainTextConversionContext::Progress(const char* inMessageText )
{
Assert_(mUIContext != NULL);
mUIContext->Progress(inMessageText);
}
void CPlainTextConversionContext::GraphProgressDestroy(
URL_Struct* inURL,
Int32 inContentLength,
Int32 inTotalRead)
{
Assert_(mUIContext != NULL);
mUIContext->GraphProgressDestroy(inURL, inContentLength, inTotalRead);
}
void CPlainTextConversionContext::GraphProgress(
URL_Struct* inURL,
Int32 inBytesReceived,
Int32 inBytesSinceLast,
Int32 inContentLength)
{
Assert_(mUIContext != NULL);
mUIContext->GraphProgress(inURL, inBytesReceived, inBytesSinceLast, inContentLength);
}
#pragma mark --- STUBS ---
// FIX ME? Do we really wan't to override these methods?
void CPlainTextConversionContext::Alert(const char* /* inAlertText */) {}
XP_Bool CPlainTextConversionContext::Confirm(const char* /* inMessage */) { return false; }
char* CPlainTextConversionContext::Prompt(
const char* /* inMessage */,
const char* /* inDefaultText */) { return NULL; }
XP_Bool CPlainTextConversionContext::PromptUsernameAndPassword(
const char* /* inMessage */,
char** /* outUserName */,
char** /* outPassword */) { return false; }
char* CPlainTextConversionContext::PromptPassword(const char* /* inMessage */) { return NULL; }

View File

@@ -1,133 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CPlainTextConversionContext.h
// This is a subclass of CNSContext to handle plain text translation.
// This replaces code in ns/lib/xlate/text.c where a new text MWContext is
// created.
#pragma once
#include "CNSContext.h"
class CPlainTextConversionContext : public CNSContext
{
public:
CPlainTextConversionContext(MWContext* inUIContext);
virtual ~CPlainTextConversionContext() { }
protected:
// Overrides of base CNSContext methods
virtual void LayoutNewDocument(
URL_Struct* inURL,
Int32* inWidth,
Int32* inHeight,
Int32* inMarginWidth,
Int32* inMarginHeight);
virtual void DisplaySubtext(
int inLocation,
LO_TextStruct* inText,
Int32 inStartPos,
Int32 inEndPos,
XP_Bool inNeedBG);
virtual void DisplayText(
int inLocation,
LO_TextStruct* inText,
XP_Bool inNeedBG);
virtual void DisplaySubDoc(
int inLocation,
LO_SubDocStruct* inSubdocStruct);
virtual void DisplayTable(
int inLocation,
LO_TableStruct* inTableStruct);
virtual void DisplayLineFeed(
int inLocation,
LO_LinefeedStruct* inLinefeedStruct,
XP_Bool inNeedBG);
virtual void DisplayHR(
int inLocation,
LO_HorizRuleStruct* inRuleStruct);
virtual char* TranslateISOText(
int inCharset,
char* inISOText);
virtual int GetTextInfo(
LO_TextStruct* inText,
LO_TextInfo* inTextInfo);
virtual int MeasureText(
LO_TextStruct* inText,
short* outCharLocs);
virtual void DisplayBullet(
int inLocation,
LO_BulletStruct* inBulletStruct);
virtual void FinishedLayout(void);
virtual void AllConnectionsComplete(void);
virtual void Progress(
const char* inMessageText);
virtual void GraphProgressInit(
URL_Struct* inURL,
Int32 inContentLength);
virtual void GraphProgressDestroy(
URL_Struct* inURL,
Int32 inContentLength,
Int32 inTotalRead);
virtual void GraphProgress(
URL_Struct* inURL,
Int32 inBytesReceived,
Int32 inBytesSinceLast,
Int32 inContentLength);
// Methods to stub out.
virtual void Alert(
const char* inAlertText);
virtual XP_Bool Confirm(
const char* inMessage);
virtual char* Prompt(
const char* inMessage,
const char* inDefaultText);
virtual XP_Bool PromptUsernameAndPassword(
const char* inMessage,
char** outUserName,
char** outPassword);
virtual char* PromptPassword(
const char* inMessage);
CNSContext* mUIContext;
};

View File

@@ -1,205 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CProxyDragTask.cp
#include "CProxyDragTask.h"
#include <LDragAndDrop.h>
#include <UException.h>
#include <UTextTraits.h>
#include <UGAColorRamp.h>
#include <LView.h>
#include "CProxyPane.h"
#include "StCaptureView.h"
#include "CGWorld.h"
#include "StRegionHandle.h"
#include "CEnvironment.h"
// ---------------------------------------------------------------------------
// ¥ CProxyDragTask
// ---------------------------------------------------------------------------
CProxyDragTask::CProxyDragTask(
LView& inProxyView,
CProxyPane& inProxyPane,
LCaption& inPageProxyCaption,
const EventRecord& inEventRecord,
CExtraFlavorAdder* inExtraFlavorAdder)
: mProxyView(inProxyView),
mProxyPane(inProxyPane),
mPageProxyCaption(inPageProxyCaption),
mExtraFlavorAdder(inExtraFlavorAdder),
Inherited(inEventRecord)
{
}
// ---------------------------------------------------------------------------
// ¥ ~CProxyDragTask
// ---------------------------------------------------------------------------
CProxyDragTask::~CProxyDragTask()
{
delete mExtraFlavorAdder;
}
// ---------------------------------------------------------------------------
// ¥ DoDrag
// ---------------------------------------------------------------------------
OSErr
CProxyDragTask::DoDrag()
{
MakeDragRegion(mDragRef, mDragRegion);
AddFlavors(mDragRef);
if (UEnvironment::HasFeature(env_HasDragMgrImageSupport))
{
try
{
DoTranslucentDrag();
}
catch (...)
{
DoNormalDrag();
}
}
else
{
DoNormalDrag();
}
return noErr;
}
// ---------------------------------------------------------------------------
// ¥ DoNormalDrag
// ---------------------------------------------------------------------------
void
CProxyDragTask::DoNormalDrag()
{
::TrackDrag(mDragRef, &mEventRecord, mDragRegion);
}
// ---------------------------------------------------------------------------
// ¥ DoTranslucentDrag
// ---------------------------------------------------------------------------
void
CProxyDragTask::DoTranslucentDrag()
{
Rect theFrame;
StColorPortState theColorPortState(mProxyView.GetMacPort());
// Normalize the color state (to make CopyBits happy)
StColorState::Normalize();
// Build a GWorld containing the page proxy icon and title
mProxyView.FocusDraw();
mProxyView.CalcLocalFrameRect(theFrame);
CGWorld theGWorld(theFrame, 0, useTempMem);
StCaptureView theCaptureView(mProxyView);
mPageProxyCaption.Show();
try
{
theCaptureView.Capture(theGWorld);
mProxyView.FocusDraw();
Point theOffsetPoint = topLeft(theFrame);
::LocalToGlobal(&theOffsetPoint);
// Set the drag image
StRegionHandle theTrackMask;
mProxyPane.CalcLocalFrameRect(theFrame);
ThrowIfOSErr_(::IconSuiteToRgn(theTrackMask, &theFrame, kAlignAbsoluteCenter, mProxyPane.GetIconSuiteH()));
mPageProxyCaption.CalcLocalFrameRect(theFrame); // Use frame which bounds the actual text, not the frame bounds
theTrackMask += theFrame;
PixMapHandle theMap = ::GetGWorldPixMap(theGWorld.GetMacGWorld());
OSErr theErr = ::SetDragImage(mDragRef, theMap, theTrackMask, theOffsetPoint, kDragDarkerTranslucency);
ThrowIfOSErr_(theErr);
// Track the drag
::TrackDrag(mDragRef, &mEventRecord, mDragRegion);
}
catch (...)
{
}
mPageProxyCaption.Hide();
}
// ---------------------------------------------------------------------------
// ¥ AddFlavorURL
// ---------------------------------------------------------------------------
void
CProxyDragTask::AddFlavors(DragReference inDragRef)
{
Inherited::AddFlavors(inDragRef);
if (mExtraFlavorAdder)
mExtraFlavorAdder->AddExtraFlavorData(inDragRef, static_cast<ItemReference>(this));
}
// ---------------------------------------------------------------------------
// ¥ MakeDragRegion
// ---------------------------------------------------------------------------
void
CProxyDragTask::MakeDragRegion(
DragReference /*inDragRef*/,
RgnHandle /*inDragRegion*/)
{
Rect theFrame;
// Add the page proxy icon region
StRegionHandle theTrackMask;
mProxyPane.CalcLocalFrameRect(theFrame);
ThrowIfOSErr_(::IconSuiteToRgn(theTrackMask, &theFrame, kAlignAbsoluteCenter, mProxyPane.GetIconSuiteH()));
theFrame = (**(RgnHandle)theTrackMask).rgnBBox;
::LocalToGlobal(&topLeft(theFrame));
::LocalToGlobal(&botRight(theFrame));
AddRectDragItem(static_cast<ItemReference>(&mProxyPane), theFrame);
// Add the page proxy caption region
mPageProxyCaption.CalcLocalFrameRect(theFrame);
::LocalToGlobal(&topLeft(theFrame));
::LocalToGlobal(&botRight(theFrame));
AddRectDragItem(static_cast<ItemReference>(&mPageProxyCaption), theFrame);
}

View File

@@ -1,77 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CProxyDragTask.h
#ifndef CProxyDragTask_H
#define CProxyDragTask_H
#pragma once
// Includes
#include "CBrowserDragTask.h"
#include "CProxyPane.h"
// Forward declarations
class LView;
class CProxyPane;
class LCaption;
// Class declaration
class CExtraFlavorAdder // to be called by AddFlavor. Allows a window to add extra flavors.
{
public:
virtual void AddExtraFlavorData(DragReference inDragRef, ItemReference inItemRef) = 0;
};
class CProxyDragTask : public CBrowserDragTask
{
public:
typedef CBrowserDragTask Inherited;
CProxyDragTask(
LView& inProxyView,
CProxyPane& inProxyPane,
LCaption& inPageProxyCaption,
const EventRecord& inEventRecord,
CExtraFlavorAdder* inFlavorAdder = nil);
virtual ~CProxyDragTask();
virtual OSErr DoDrag();
virtual void AddFlavors(DragReference inDragRef);
protected:
virtual void DoNormalDrag();
virtual void DoTranslucentDrag();
virtual void MakeDragRegion(
DragReference inDragRef,
RgnHandle inDragRegion);
LView& mProxyView;
CProxyPane& mProxyPane;
LCaption& mPageProxyCaption;
CExtraFlavorAdder* mExtraFlavorAdder;
};
#endif

View File

@@ -1,125 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "CSaveProgress.h"
#include "fe_proto.h"
#include "CBrowserContext.h"
#include "resgui.h" // needed for EDITDLG_SAVE_PROGRESS
#include "uapp.h"
#include "edt.h"
#include "PascalString.h" // CStr255
#include "proto.h" // XP_InterruptContext
#include "macutil.h" // TrySetCursor
#pragma mark CSaveProgress
void CSaveProgress::FinishCreateSelf()
{
fFilenameText = (LCaption*)this->FindPaneByID( 'flnm' );
LDialogBox::FinishCreateSelf();
}
void CSaveProgress::SetFilename(char *pFileName)
{
if ( fFilenameText && pFileName )
fFilenameText->SetDescriptor( CStr255(pFileName) );
}
void CSaveProgress::ListenToMessage( MessageT inMessage, void* ioParam )
{
switch ( inMessage )
{
case msg_Cancel:
if ( fContext )
{
TrySetCursor( watchCursor );
#ifdef EDITOR
if ( EDT_IS_EDITOR( fContext ) )
EDT_SaveCancel( fContext );
else
#endif // EDITOR
XP_InterruptContext( fContext );
SetCursor( &qd.arrow );
}
break;
default:
LDialogBox::ListenToMessage( inMessage, ioParam );
break;
}
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
//
#pragma mark --- FTP Upload Dialog ---
//
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// FIX ME -- find way to use new CDownloadProgressWindow
// Most likely, we'll duplicate the code from downloading
void FE_SaveDialogCreate( MWContext *pContext, int /*iFileCount*/, ED_SaveDialogType /*saveType*/ )
{
try {
CSaveProgress * newWindow = (CSaveProgress*)LWindow::CreateWindow(
EDITDLG_SAVE_PROGRESS, CFrontApp::GetApplication());
if ( newWindow == NULL )
return;
UReanimator::LinkListenerToControls( newWindow, newWindow, EDITDLG_SAVE_PROGRESS );
newWindow->SetContext( pContext );
ExtractBrowserContext(pContext)->SetSaveDialog( newWindow );
newWindow->Show();
}
catch (...)
{
ExtractBrowserContext(pContext)->SetSaveDialog( NULL );
}
}
#ifdef EDITOR
void FE_SaveDialogSetFilename( MWContext *pContext, char *pFilename )
{
char *better = FE_URLToLocalName( pFilename );
if ( better )
{
if ( pContext && ExtractBrowserContext(pContext) && ExtractBrowserContext(pContext)->GetSaveDialog() )
ExtractBrowserContext(pContext)->GetSaveDialog()->SetFilename( better );
XP_FREE( better );
}
}
#endif // EDITOR
void FE_SaveDialogDestroy( MWContext *pContext, int /*status*/, char */*pFilename*/ )
{
if ( pContext && ExtractBrowserContext(pContext) && ExtractBrowserContext(pContext)->GetSaveDialog() )
{
ExtractBrowserContext(pContext)->GetSaveDialog()->ListenToMessage( cmd_Close, NULL );
ExtractBrowserContext(pContext)->SetSaveDialog( NULL );
}
}

View File

@@ -1,40 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#pragma once
#include "CNSContext.h"
class CSaveProgress: public LDialogBox
{
public:
enum { class_ID = 'EDL4' };
CSaveProgress( LStream* inStream ): LDialogBox( inStream ){};
virtual void FinishCreateSelf();
void SetFilename( char *pFilename );
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
void SetContext( MWContext* context ) {fContext = context;}
protected:
LCaption* fFilenameText;
MWContext* fContext;
};

View File

@@ -1,50 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CSecureAttachment.cp
#pragma once
#include "CSecureAttachment.h"
#include "xp_core.h"
#include "secnav.h"
#include "secrng.h"
CSecureAttachment::CSecureAttachment()
: LAttachment(msg_Event)
{
mTickCounter = 0;
}
void CSecureAttachment::ExecuteSelf(
MessageT /* inMessage */,
void *ioParam)
{
if (mTickCounter < 500)
{
EventRecord* theEvent = (EventRecord*)ioParam;
RNG_RandomUpdate(theEvent, sizeof(EventRecord));
long ticks = ::TickCount();
RNG_RandomUpdate(&ticks, sizeof(long));
mTickCounter++;
}
else
delete this;
}

View File

@@ -1,42 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CSecureAttachment.h
// Initializes the random seed of the security library. Add this
// attachment to application startup.
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
#pragma once
#include <LAttachment.h>
class CSecureAttachment : public LAttachment
{
public:
CSecureAttachment();
protected:
virtual void ExecuteSelf(
MessageT inMessage,
void *ioParam);
Uint32 mTickCounter;
};

View File

@@ -1,282 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "CTSMEditField.h"
Boolean CTSMEditField::sInitialized = false;
Boolean CTSMEditField::sHasTSM = false;
TSMTEPreUpdateUPP CTSMEditField::sPreUpdateUPP = NewTSMTEPreUpdateProc( CTSMEditField::PreUpdate );
TSMTEPostUpdateUPP CTSMEditField::sPostUpdateUPP = NewTSMTEPostUpdateProc( CTSMEditField::PostUpdate );
// Default constructor
CTSMEditField::CTSMEditField ()
{
} // CTSMEditField::CTSMEditField
CTSMEditField::CTSMEditField( LStream* inStream )
: LEditField( inStream )
{
if ( !sInitialized )
Initialize();
OSErr result = noErr;
OSType theServiceTypes = kTSMTEInterfaceType;
mTSMDocID = 0;
mTSMTEHandle = NULL;
Try_
{
if ( sHasTSM )
{
result = ::NewTSMDocument( 1, &theServiceTypes, &mTSMDocID, static_cast<long>(&mTSMTEHandle) );
ThrowIfOSErr_( result );
if ( !mTSMTEHandle && mTSMDocID )
{
::DeleteTSMDocument( mTSMDocID );
mTSMDocID = 0;
Throw_( paramErr );
}
(*mTSMTEHandle)->textH = mTextEditH;
(*mTSMTEHandle)->preUpdateProc = sPreUpdateUPP;
(*mTSMTEHandle)->postUpdateProc = sPostUpdateUPP;
(*mTSMTEHandle)->updateFlag = kTSMTEAutoScroll;
(*mTSMTEHandle)->refCon = (Int32)this;
}
}
Catch_( inErr )
{
// Failure just means that this edit field won't support TSMTE
}
EndCatch_;
}
//
// Parameterized constructor
CTSMEditField::CTSMEditField ( const SPaneInfo& inPaneInfo,
Str255 inString,
ResIDT inTextTraitsID,
Int16 inMaxChars,
Uint8 inAttributes,
TEKeyFilterFunc inKeyFilter,
LCommander* inSuper)
: LEditField ( inPaneInfo,
inString,
inTextTraitsID,
inMaxChars,
inAttributes,
inKeyFilter,
inSuper )
{
} // CTSMEditField::CTSMEditField
CTSMEditField::~CTSMEditField()
{
OSErr result = noErr;
try
{
if ( mTSMDocID != 0 )
{
::FixTSMDocument( mTSMDocID );
::DeactivateTSMDocument( mTSMDocID ); // for a bug in TSM. See TE27
result = ::DeleteTSMDocument( mTSMDocID );
Assert_( result == noErr );
mTSMDocID = 0;
}
}
catch ( ... )
{
}
}
pascal void
CTSMEditField::PreUpdate( TEHandle inTEHandle, Int32 inRefCon )
{
CTSMEditField *theOwnerEditField = NULL;
if ( inRefCon != NULL )
{
theOwnerEditField = reinterpret_cast<CTSMEditField *>( inRefCon );
theOwnerEditField->FocusDraw();
}
}
pascal void
CTSMEditField::PostUpdate(
TEHandle inTEHandle,
Int32 fixLen,
Int32 inputAreaStart,
Int32 inputAreaEnd,
Int32 pinStart,
Int32 pinEnd,
Int32 inRefCon )
{
CTSMEditField *theOwnerEditField = NULL;
if ( inRefCon != NULL && fixLen > 0 )
{
theOwnerEditField = reinterpret_cast<CTSMEditField *>( inRefCon );
// Undo of TSM input is currently not supported.
//
if (theOwnerEditField->mTypingAction != NULL)
theOwnerEditField->mTypingAction->Reset();
}
}
void CTSMEditField::BeTarget( void )
{
OSErr result = noErr;
short oldScript = ::GetScriptManagerVariable(smKeyScript);
#ifdef Debug_Signal
OSErr err;
// check to see if a bug in TSM will be encountered
ProcessSerialNumber psn,
csn;
err = GetCurrentProcess(&psn);
err = GetFrontProcess(&csn);
Assert_((psn.highLongOfPSN == csn.highLongOfPSN) && (psn.lowLongOfPSN == csn.lowLongOfPSN));
#endif
FocusDraw();
LEditField::BeTarget();
if ( mTSMDocID != NULL )
{
result = ::ActivateTSMDocument( mTSMDocID );
Assert_( result == noErr );
}
if (oldScript != ::GetScriptManagerVariable(smKeyScript))
::KeyScript(oldScript);
}
void
CTSMEditField::DontBeTarget( void )
{
OSErr result = noErr;
FocusDraw();
if ( mTSMDocID != NULL )
{
::FixTSMDocument( mTSMDocID );
result = ::DeactivateTSMDocument( mTSMDocID );
Assert_( result == noErr );
}
LEditField::DontBeTarget();
}
void
CTSMEditField::Initialize()
{
OSErr result = noErr;
SInt32 gestaltResponse = 0;
Assert_( sInitialized == false );
if ( sInitialized == false )
{
sInitialized = true;
result = ::Gestalt( gestaltTSMgrVersion, &gestaltResponse );
if ( (result == noErr) && (gestaltResponse >= 1) )
{
result = ::Gestalt( gestaltTSMTEAttr, &gestaltResponse );
if ( (result == noErr) && ((gestaltResponse >> gestaltTSMTEPresent) & 1) )
{
sHasTSM = true;
}
}
}
}

View File

@@ -1,79 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#pragma once
#include <TextEdit.h>
#include <TextServices.h>
#include <TSMTE.h>
#include <LEditField.h>
class CTSMEditField : public LEditField
{
public:
enum
{
class_ID = 'Tedt'
};
CTSMEditField(); // ¥ Default Constructor
CTSMEditField( LStream *inStream); // ¥ Stream Constructor
CTSMEditField ( const SPaneInfo& inPaneInfo,
Str255 inString,
ResIDT inTextTraitsID,
Int16 inMaxChars,
Uint8 inAttributes,
TEKeyFilterFunc inKeyFilter,
LCommander* inSuper);
// ¥ Parameterized Constructor
virtual ~CTSMEditField();
static pascal void PreUpdate( TEHandle inTEHandle,
Int32 inRefCon);
static pascal void PostUpdate(
TEHandle inTEHandle,
Int32 fixLen,
Int32 inputAreaStart,
Int32 inputAreaEnd,
Int32 pinStart,
Int32 pinEnd,
Int32 inRefCon );
Int16 GetMaxChars() const { return mMaxChars; } // Make it public.
protected:
virtual void BeTarget(void);
virtual void DontBeTarget(void);
virtual void Initialize();
TSMDocumentID mTSMDocID;
TSMTERecHandle mTSMTEHandle;
static Boolean sInitialized;
static Boolean sHasTSM;
static TSMTEPreUpdateUPP sPreUpdateUPP;
static TSMTEPostUpdateUPP sPostUpdateUPP;
};

View File

@@ -1,92 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CTargetedUpdateMenuRegistry.cp
//
// CTargetedUpdateMenuRegistry is used in conjunction with LEventDispatchers
// which are CTargetedUpdateMenuRegistry-aware to enable a more targeted
// update of menus.
//
// One common example of this is menu items whose text should change when
// certain modifiers are held down (Close -> Close All when optionKey is
// held down, for example).
//
// Usage notes for callers of UpdateMenus:
//
// (1) Call SetCommands with a list of commands which should be updated.
// (2) Call UpdateMenus.
//
// Usage notes for implementors of UpdateMenus:
//
// (1) When looping through commands in menus, determine if the registry
// is active by calling UseRegistryToUpdateMenus.
// (2) If the registry is active, then check to see if the command is
// in the registry by calling CommandInRegistry before processing
// command status for the command.
//
// Note: For the targeted update to be useful, there should generally be
// a very small number of targeted commands. In fact, command lookup will
// slow down if there are too many commands.
#include "CTargetedUpdateMenuRegistry.h"
// === Static Members ===
Boolean CTargetedUpdateMenuRegistry::sUseRegistryToUpdateMenus = false;
list<CommandT> CTargetedUpdateMenuRegistry::sCommands;
// ---------------------------------------------------------------------------
// ¥ SetCommands
// ---------------------------------------------------------------------------
void
CTargetedUpdateMenuRegistry::SetCommands(
const list<CommandT>& inCommands)
{
sCommands = inCommands;
}
// ---------------------------------------------------------------------------
// ¥ UpdateMenus
// ---------------------------------------------------------------------------
void
CTargetedUpdateMenuRegistry::UpdateMenus()
{
if (LEventDispatcher::GetCurrentEventDispatcher())
{
StValueChanger<Boolean> setUseRegistryToUpdateMenus(sUseRegistryToUpdateMenus, true);
LEventDispatcher::GetCurrentEventDispatcher()->UpdateMenus();
}
}
// ---------------------------------------------------------------------------
// ¥ CommandInRegistry
// ---------------------------------------------------------------------------
Boolean
CTargetedUpdateMenuRegistry::CommandInRegistry(CommandT inCommand)
{
list<CommandT>::const_iterator theCommand = find(
sCommands.begin(),
sCommands.end(),
inCommand);
return (theCommand != sCommands.end());
}

View File

@@ -1,91 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CTargetedUpdateMenuRegistry.h
//
// CTargetedUpdateMenuRegistry is used in conjunction with LEventDispatchers
// which are CTargetedUpdateMenuRegistry-aware to enable a more targeted
// update of menus.
//
// One common example of this is menu items whose text should change when
// certain modifiers are held down (Close -> Close All when optionKey is
// held down, for example).
//
// Usage notes for callers of UpdateMenus:
//
// (1) Call SetCommands with a list of commands which should be updated.
// (2) Call UpdateMenus.
//
// Usage notes for implementors of UpdateMenus:
//
// (1) When looping through commands in menus, determine if the registry
// is active by calling UseRegistryToUpdateMenus.
// (2) If the registry is active, then check to see if the command is
// in the registry by calling CommandInRegistry before processing
// command status for the command.
//
// Note: For the targeted update to be useful, there should generally be
// a very small number of targeted commands. In fact, command lookup will
// slow down if there are too many commands.
#ifndef CTargetedUpdateMenuRegistry_H
#define CTargetedUpdateMenuRegistry_H
#pragma once
// Includes
#include <list>
#include <algorithm>
#include <LCommander.h>
#include <LEventDispatcher.h>
// Class declaration
class CTargetedUpdateMenuRegistry
{
public:
// Interface for callers of UpdateMenus
static void SetCommands(const list<CommandT>& inCommands);
static void UpdateMenus();
// Interface for implementors of UpdateMenus
static Boolean CommandInRegistry(CommandT inCommand);
static Boolean UseRegistryToUpdateMenus();
private:
static Boolean sUseRegistryToUpdateMenus;
static list<CommandT> sCommands;
};
// Inline methods
inline
Boolean
CTargetedUpdateMenuRegistry::UseRegistryToUpdateMenus()
{
return sUseRegistryToUpdateMenus;
}
#endif

View File

@@ -1,867 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CURLDispatcher.cp
#include "CURLDispatcher.h"
#include "CNSContext.h"
#include "CBrowserWindow.h"
#include "CDownloadProgressWindow.h"
#include "CWindowMediator.h"
#include "CBrowserContext.h"
#include "CBrowserWindow.h"
#ifdef MOZ_MAIL_NEWS
#include "CMailNewsWindow.h"
#include "CThreadWindow.h"
#include "CMessageWindow.h"
#endif
#include "URobustCreateWindow.h"
#include "uapp.h"
#include "CHTMLClickRecord.h"
#include "CAutoPtr.h"
#include "CAutoPtrXP.h"
#include "cstring.h"
#include "xp.h"
#include "macutil.h"
#include "umimemap.h"
#include "ufilemgr.h"
#include "uprefd.h"
#include "xlate.h"
#include "msv2dsk.h"
#include "msgcom.h"
#include "uerrmgr.h" // Need for GetCString
#include "resgui.h"
CBrowserWindow* CURLDispatcher::sLastBrowserWindowCreated = NULL;
CAutoPtr<CURLDispatcher> CURLDispatcher::sDispatcher;
CAutoPtr<CBrowserContext> CURLDispatcher::sDispatchContext;
// URL dispatch proc table
// URL types listed in net.h are indices into this table.
// **** NOTE: URL types in net.h start at 1 ****
const Uint32 cNumURLTypes = 39;
static DispatchProcPtr dispatchProcs[] =
{
CURLDispatcher::DispatchToBrowserWindow // Unknown URL type 0
, CURLDispatcher::DispatchToBrowserWindow // FILE_TYPE_URL 1
, CURLDispatcher::DispatchToBrowserWindow // FTP_TYPE_URL 2
, CURLDispatcher::DispatchToBrowserWindow // GOPHER_TYPE_URL 3
, CURLDispatcher::DispatchToBrowserWindow // HTTP_TYPE_URL 4
, CURLDispatcher::DispatchToLibNet // MAILTO_TYPE_URL 5
//, CURLDispatcher::DispatchToMailNewsWindow // NEWS_TYPE_URL 6
, CURLDispatcher::DispatchMailboxURL // NEWS_TYPE_URL 6 (use mailbox code)
, NULL // RLOGIN_TYPE_URL 7
, CURLDispatcher::DispatchToBrowserWindow // TELNET_TYPE_URL 8
, CURLDispatcher::DispatchToBrowserWindow // TN3270_TYPE_URL 9
, NULL // WAIS_TYPE_URL 10
, CURLDispatcher::DispatchToBrowserWindow // ABOUT_TYPE_URL 11
, NULL // FILE_CACHE_TYPE_URL 12
, NULL // MEMORY_CACHE_TYPE_URL 13
, CURLDispatcher::DispatchToBrowserWindow // SECURE_HTTP_TYPE_URL 14
, NULL // INTERNAL_IMAGE_TYPE_URL 15
, NULL // URN_TYPE_URL 16
, NULL // POP3_TYPE_URL 17
, CURLDispatcher::DispatchMailboxURL // MAILBOX_TYPE_URL 18
, NULL // INTERNAL_NEWS_TYPE_URL 19
, CURLDispatcher::DispatchToBrowserWindow // SECURITY_TYPE_URL 20
, CURLDispatcher::DispatchToBrowserWindow // MOCHA_TYPE_URL 21
, CURLDispatcher::DispatchToBrowserWindow // VIEW_SOURCE_TYPE_URL 22
, NULL // HTML_DIALOG_HANDLER_TYPE_URL 23
, NULL // HTML_PANEL_HANDLER_TYPE_URL 24
, NULL // INTERNAL_SECLIB_TYPE_URL 25
, NULL // MSG_SEARCH_TYPE_URL 26
, CURLDispatcher::DispatchMailboxURL // IMAP_TYPE_URL 27
, CURLDispatcher::DispatchToLibNet // LDAP_TYPE_URL 28
, NULL // SECURE_LDAP_TYPE_URL 29
, CURLDispatcher::DispatchToBrowserWindow // WYSIWYG_TYPE_URL 30
, CURLDispatcher::DispatchToLibNet // ADDRESS_BOOK_TYPE_URL 31
, NULL // CLASSID_TYPE_URL 32
, NULL // JAVA_TYPE_URL 33
, NULL // DATA_TYPE_URL 34
, CURLDispatcher::DispatchToLibNet // NETHELP_TYPE_URL 35
, NULL // NFS_TYPE_URL 36
, CURLDispatcher::DispatchToBrowserWindow // MARIMBA_TYPE_URL 37
, NULL // INTERNAL_CERTLDAP_TYPE_URL 38
};
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
CURLDispatcher* CURLDispatcher::GetURLDispatcher() // singleton class
{
if (!sDispatcher.get())
{
sDispatcher.reset(new CURLDispatcher);
}
return sDispatcher.get();
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
CURLDispatcher::CURLDispatcher()
: mDelayedURLs(sizeof(CURLDispatchInfo*))
{
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
CURLDispatcher::~CURLDispatcher()
{
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::DispatchToStorage(
URL_Struct* inURL,
const FSSpec& inDestSpec,
FO_Present_Types inOutputFormat,
Boolean inDelay)
{
Assert_((inOutputFormat == FO_SAVE_AS) || (inOutputFormat == FO_SAVE_AS_TEXT));
if (!inDelay)
{
CURLDispatchInfo* dispatchInfo =
new CURLDispatchInfo(inURL, nil, inOutputFormat, inDelay, false, true);
dispatchInfo->SetFileSpec(inDestSpec);
if (inOutputFormat == FO_SAVE_AS)
{
DispatchToDisk(dispatchInfo);
}
else
DispatchToDiskAsText(dispatchInfo);
}
else
{
CURLDispatchInfo* theDelay =
new CURLDispatchInfo(inURL, nil, inOutputFormat, true, false, true);
theDelay->SetFileSpec(inDestSpec);
GetURLDispatcher()->PostPendingDispatch(theDelay);
}
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::DispatchToStorage(CURLDispatchInfo* inDispatchInfo)
{
Assert_((inDispatchInfo->GetOutputFormat() == FO_SAVE_AS) || (inDispatchInfo->GetOutputFormat() == FO_SAVE_AS_TEXT));
if (!inDispatchInfo->GetDelay())
{
if (inDispatchInfo->GetOutputFormat() == FO_SAVE_AS)
DispatchToDisk(inDispatchInfo);
else
DispatchToDiskAsText(inDispatchInfo);
}
else
{
GetURLDispatcher()->PostPendingDispatch(inDispatchInfo);
}
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::SpendTime(const EventRecord& /*inMacEvent*/)
{
if (mDelayedURLs.GetCount() > 0)
ProcessPendingDispatch();
else
StopIdling();
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::ListenToMessage(
MessageT inMessage,
void* ioParam)
{
if ((inMessage == msg_BroadcasterDied) && (mDelayedURLs.GetCount() > 0))
UpdatePendingDispatch((CNSContext*)ioParam);
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::DispatchToDisk(CURLDispatchInfo* inDispatchInfo)
{
CBrowserContext* theContext = NULL;
CDownloadProgressWindow* theProgressWindow = NULL;
FSSpec& destSpec = inDispatchInfo->GetFileSpec();
URL_Struct* inURL = inDispatchInfo->GetURLStruct();
CAutoPtr<CURLDispatchInfo> info(inDispatchInfo);
Assert_(inURL != NULL);
try
{
theContext = new CBrowserContext(MWContextSaveToDisk);
StSharer theShareLock(theContext);
theProgressWindow = dynamic_cast<CDownloadProgressWindow*>(URobustCreateWindow::CreateWindow(WIND_DownloadProgress, LCommander::GetTopCommander()));
ThrowIfNULL_(theProgressWindow);
theProgressWindow->Show();
inURL->fe_data = StructCopy(&destSpec, sizeof(FSSpec));
theProgressWindow->SetWindowContext(theContext);
// the window will be shown on the first progress call.
theContext->ImmediateLoadURL(inDispatchInfo->ReleaseURLStruct(), FO_SAVE_AS);
}
catch (...)
{
delete theProgressWindow;
throw;
}
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
extern "C" void SaveAsCompletionProc( PrintSetup* p );
void CURLDispatcher::DispatchToDiskAsText(CURLDispatchInfo* inDispatchInfo)
{
CNSContext* theContext = NULL;
CDownloadProgressWindow* theProgressWindow = NULL;
FSSpec& destSpec = inDispatchInfo->GetFileSpec();
URL_Struct* inURL = inDispatchInfo->GetURLStruct();
Assert_(inURL != NULL);
try
{
theContext = new CNSContext(MWContextSaveToDisk);
StSharer theShareLock(theContext);
theProgressWindow = dynamic_cast<CDownloadProgressWindow*>(URobustCreateWindow::CreateWindow(WIND_DownloadProgress, LCommander::GetTopCommander()));
ThrowIfNULL_(theProgressWindow);
theProgressWindow->SetWindowContext(theContext);
CMimeMapper *theMapper = CPrefs::sMimeTypes.FindMimeType(CMimeList::HTMLViewer);
OSType creator = emSignature, docType='TEXT';
if (theMapper != NULL && CMimeMapper::Launch == theMapper->GetLoadAction())
{
creator = theMapper->GetAppSig();
docType = theMapper->GetDocType();
}
OSErr theErr = ::FSpCreate(&destSpec, creator, docType, 0);
if ((theErr != noErr) && (theErr != dupFNErr))
ThrowIfOSErr_(theErr);
CFileMgr::FileSetComment(destSpec, NET_URLStruct_Address(inURL));
char* thePath = CFileMgr::EncodedPathNameFromFSSpec(destSpec, TRUE);
ThrowIfNULL_(thePath);
thePath = NET_UnEscape(thePath);
XP_File theFile = XP_FileOpen(thePath, xpURL, XP_FILE_WRITE);
XP_FREE(thePath);
ThrowIfNULL_(theFile);
PrintSetup print;
XL_InitializeTextSetup(&print);
print.width = 76;
print.out = theFile;
print.completion = (XL_CompletionRoutine) SaveAsCompletionProc;
print.carg = (void*)(theContext);
print.filename = nil;
print.url = inURL;
inURL->fe_data = theContext;
MWContext* textContext = (MWContext*) XL_TranslateText(*theContext, inURL, &print);
}
catch(...)
{
}
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::PostPendingDispatch(CURLDispatchInfo* inDispatchInfo)
{
mDelayedURLs.InsertItemsAt(1, LArray::index_Last, &inDispatchInfo, sizeof(CURLDispatchInfo*));
StartIdling();
if (inDispatchInfo->GetTargetContext() != NULL)
inDispatchInfo->GetTargetContext()->AddListener(this);
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::UpdatePendingDispatch(
CNSContext* inForContext)
{
Assert_(inForContext != NULL);
CURLDispatchInfo* theInfo;
LArrayIterator theIter(mDelayedURLs, LArrayIterator::from_Start);
while (theIter.Next(&theInfo))
{
if (theInfo->GetTargetContext() == inForContext)
mDelayedURLs.RemoveItemsAt(1, theIter.GetCurrentIndex());
}
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::ProcessPendingDispatch(void)
{
if (CFrontApp::GetApplication()->HasProperlyStartedUp())
{
CURLDispatchInfo* theInfo;
mDelayedURLs.FetchItemAt(LArray::index_First, &theInfo);
// 97-06-10 pkc -- Hack to workaround trying to dispatch URL's on image
// anchors while mocha is loading image
CBrowserContext* browserContext =
dynamic_cast<CBrowserContext*>(theInfo->GetTargetContext());
if (theInfo->GetIsWaitingForMochaImageLoad() &&
theInfo->GetTargetContext())
{
if (browserContext && browserContext->IsMochaLoadingImages())
{
// The context is loading images for mocha, don't
// perform dispatch
return;
}
}
mDelayedURLs.RemoveItemsAt(1, LArray::index_First);
if (theInfo->GetTargetContext() != NULL)
theInfo->GetTargetContext()->RemoveListener(this);
theInfo->ClearDelay();
if (theInfo->GetIsSaving())
DispatchToStorage(theInfo);
else
{
// See if this delayed URL was for an ftp drag &drop
if (theInfo->GetURLStruct()->files_to_post)
{
// See if the user really meant to upload
if (browserContext && !browserContext->Confirm((const char*)GetCString(MAC_UPLOAD_TO_FTP))) /* l10n */
{
// Delete the info if not
delete theInfo;
}
else
{
// Ship it!
DispatchURL(theInfo);
}
}
else
{
// Plain ordinary delayed URL
DispatchURL(theInfo);
}
}
}
}
// 97-05-13 pkc
// New URL dispatch mechanism.
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::DispatchURL(
const char* inURL,
CNSContext* inTargetContext,
Boolean inDelay,
Boolean inForceCreate,
ResIDT inWindowResID,
Boolean inInitiallyVisible,
FO_Present_Types inOutputFormat,
NET_ReloadMethod inReloadMethod)
{
CURLDispatchInfo* dispatchInfo =
new CURLDispatchInfo(
inURL,
inTargetContext,
inOutputFormat,
inReloadMethod,
inDelay,
inForceCreate,
false,
inWindowResID,
inInitiallyVisible
);
DispatchURL(dispatchInfo);
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::DispatchURL(
URL_Struct* inURLStruct,
CNSContext* inTargetContext,
Boolean inDelay,
Boolean inForceCreate,
ResIDT inWindowResID,
Boolean inInitiallyVisible,
FO_Present_Types inOutputFormat,
Boolean inWaitingForMochaImageLoad)
{
CURLDispatchInfo* dispatchInfo =
new CURLDispatchInfo(
inURLStruct,
inTargetContext,
inOutputFormat,
inDelay,
inForceCreate,
false,
inWindowResID,
inInitiallyVisible,
inWaitingForMochaImageLoad
);
DispatchURL(dispatchInfo);
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::DispatchURL(CURLDispatchInfo* inDispatchInfo)
{
XP_ASSERT(inDispatchInfo != NULL);
// FIX ME??? Does this go here?
sLastBrowserWindowCreated = NULL;
// paranoia
if (inDispatchInfo)
{
if (inDispatchInfo->GetDelay())
{
GetURLDispatcher()->PostPendingDispatch(inDispatchInfo);
}
// Check to make sure URL type index is within dispatch table bounds
else if (inDispatchInfo->GetURLType() < cNumURLTypes)
{
// Get dispatch proc from table
DispatchProcPtr dispatchProc = dispatchProcs[inDispatchInfo->GetURLType()];
if (dispatchProc)
{
(*dispatchProc)(inDispatchInfo);
}
}
}
}
#pragma mark -- Dispatch Procs --
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::DispatchToLibNet(CURLDispatchInfo* inDispatchInfo)
{
CAutoPtr<CURLDispatchInfo> info(inDispatchInfo);
// If someone passed in a context, use it.
if (inDispatchInfo->GetTargetContext())
{
inDispatchInfo->GetTargetContext()->ImmediateLoadURL(inDispatchInfo->ReleaseURLStruct(), inDispatchInfo->GetOutputFormat());
}
else
{
try
{
if (!sDispatchContext.get())
{
sDispatchContext.reset(new CBrowserContext());
}
sDispatchContext->ImmediateLoadURL(inDispatchInfo->ReleaseURLStruct(), inDispatchInfo->GetOutputFormat());
}
catch (...)
{
}
}
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::DispatchToBrowserWindow(CURLDispatchInfo* inDispatchInfo)
{
CAutoPtr<CURLDispatchInfo> info(inDispatchInfo);
if (!inDispatchInfo->GetDelay())
{
if (inDispatchInfo->GetForceCreate())
{
// Must create a new window
DispatchToNewBrowserWindow(info.release());
}
else if (inDispatchInfo->GetTargetContext())
{
// Use target context if passed in
// 97-09-18 pchen -- use target if it's not "_self"
// I found "_current" in npglue.c; do we need to filter that also?
if (inDispatchInfo->GetURLStruct()->window_target &&
XP_STRCASECMP(inDispatchInfo->GetURLStruct()->window_target, "_self"))
{
/* The thinking here is that if the URL specifies a preferred window target,
it's not safe to use the given context. There is a known case where
this is so; it involves a link in a subframe which links to an image
and contains a "target" tag. In this case, we use the only context
always known to be safe: the one belonging to the window itself.
This is precisely correct if the tag is "target = _top". I feel
queasy guaranteeing that it's correct for other values of target
as well, but pchen thinks it will always work. So: */
CBrowserContext *topContext;
topContext = ExtractBrowserContext(*inDispatchInfo->GetTargetContext());
inDispatchInfo->SetTargetContext(topContext->GetTopContext());
}
(inDispatchInfo->GetTargetContext())->SwitchLoadURL(inDispatchInfo->ReleaseURLStruct(), inDispatchInfo->GetOutputFormat());
}
else
{
// Find topmost "regular" browser window and dispatch into that window
CWindowMediator* theMediator = CWindowMediator::GetWindowMediator();
CBrowserWindow* theTopWindow =
dynamic_cast<CBrowserWindow*>(theMediator->FetchTopWindow(WindowType_Browser, regularLayerType, false));
if (theTopWindow)
{
theTopWindow->Select();
CNSContext* theCurrentContext = theTopWindow->GetWindowContext();
theCurrentContext->SwitchLoadURL(inDispatchInfo->ReleaseURLStruct(), inDispatchInfo->GetOutputFormat());
}
else
{
// No "regular" browser window available, so create one
DispatchToNewBrowserWindow(info.release());
}
}
}
else
{
GetURLDispatcher()->PostPendingDispatch(info.release());
}
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::DispatchMailboxURL(CURLDispatchInfo* inDispatchInfo)
{
#ifdef MOZ_MAIL_NEWS
const char* urlAddress = inDispatchInfo->GetURL();
// Test to see if this is an attachment URL
if (XP_STRSTR(urlAddress, "?part=") || XP_STRSTR(urlAddress, "&part="))
{
// This is a mail attachment, dispatch to browser window
CURLDispatcher::DispatchToBrowserWindow(inDispatchInfo);
}
else if (inDispatchInfo->GetForceCreate())
{
CMessageWindow::OpenFromURL (urlAddress);
/* note: we can't handle an internal link (as in the clause just below), so
we don't bother trying. Just load the message and let the user ask again
once that's completed, if it's really important to go to an internal link. */
}
else if (XP_STRCHR(urlAddress, '#'))
{
// 97-06-08 pkc -- handle internal links here
if (inDispatchInfo->GetTargetContext())
inDispatchInfo->GetTargetContext()->SwitchLoadURL(
inDispatchInfo->ReleaseURLStruct(),
inDispatchInfo->GetOutputFormat());
}
else
{
// Otherwise, call DispatchToMailNewsWindow
DispatchToMailNewsWindow(inDispatchInfo);
}
#endif // MOZ_MAIL_NEWS
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::DispatchToMailNewsWindow(CURLDispatchInfo* inDispatchInfo)
{
#ifdef MOZ_MAIL_NEWS
CAutoPtr<CURLDispatchInfo> info(inDispatchInfo);
CAutoPtrXP<char> url(XP_STRDUP(inDispatchInfo->GetURL()));
const char* urlAddress = url.get();
// Otherwise, call CMessageWindow::OpenFromURL
switch (MSG_PaneTypeForURL(urlAddress))
{
case MSG_MAILINGLISTPANE:
// ? Open a list window to allow editing of this list?
// Ask someone. Phil? Michelle?
break;
case MSG_ADDRPANE:
// Can't happen, MSG_PaneTypeForURL doesn't return this type,
// but a future release should, and MSG_NewWindowRequired should
// then return true.
break;
case MSG_FOLDERPANE:
CMailNewsFolderWindow::FindAndShow(true);
break;
case MSG_THREADPANE:
CThreadWindow::OpenFromURL(urlAddress);
break;
case MSG_MESSAGEPANE:
CMessageWindow::OpenFromURL((char*)urlAddress);
break;
case MSG_SUBSCRIBEPANE:
// Can't happen, MSG_PaneTypeForURL doesn't return this type,
// but a future release should, and MSG_NewWindowRequired should
// then return true.
// CSubscribePane::FindAndShow();
break;
case MSG_ANYPANE: // this gets returned for most URLs
case MSG_COMPOSITIONPANE:
// presumably, this is from a mailto:, and we handle this already, below.
case MSG_SEARCHPANE:
// Already handled below.
default:
break;
}
#endif // MOZ_MAIL_NEWS
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
void CURLDispatcher::DispatchToNewBrowserWindow(CURLDispatchInfo* inDispatchInfo)
{
CAutoPtr<CURLDispatchInfo> info(inDispatchInfo);
CBrowserWindow* theBrowserWindow = NULL;
CNSContext* theContext = NULL;
URL_Struct* theURLStruct = inDispatchInfo->GetURLStruct();
XP_ASSERT(inDispatchInfo != NULL);
if (inDispatchInfo)
{
theBrowserWindow = CreateNewBrowserWindow(inDispatchInfo->GetWindowResID(), false);
if (theBrowserWindow)
{
theContext = theBrowserWindow->GetWindowContext();
if (theURLStruct != nil)
{
if (theURLStruct->window_target && theURLStruct->window_target[0] != '_')
{
// ¥ do not assign special names
theContext->SetDescriptor(theURLStruct->window_target);
}
if (theURLStruct->window_target)
theURLStruct->window_target[0] = 0;
theContext->ImmediateLoadURL(inDispatchInfo->ReleaseURLStruct(), inDispatchInfo->GetOutputFormat());
}
if (inDispatchInfo->GetInitiallyVisible()) theBrowserWindow->Show();
}
}
}
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
CBrowserWindow* CURLDispatcher::CreateNewBrowserWindow(
ResIDT inWindowResID,
Boolean inInitiallyVisible)
{
CBrowserWindow* theBrowserWindow = NULL;
CBrowserContext* theContext = NULL;
try
{
theContext = new CBrowserContext();
StSharer theShareLock(theContext);
theBrowserWindow =
dynamic_cast<CBrowserWindow*>(URobustCreateWindow::CreateWindow(inWindowResID, LCommander::GetTopCommander()));
ThrowIfNULL_(theBrowserWindow);
theBrowserWindow->SetWindowContext(theContext);
sLastBrowserWindowCreated = theBrowserWindow;
if (inInitiallyVisible)
theBrowserWindow->Show();
}
catch (...)
{
delete theBrowserWindow;
throw;
}
return theBrowserWindow;
}
#pragma mark -
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
CURLDispatchInfo::CURLDispatchInfo()
: mURLType(HTTP_TYPE_URL),
mURLStruct(NULL),
mTargetContext(NULL),
mOutputFormat(NET_DONT_RELOAD),
mDelayDispatch(false),
mIsSaving(false),
mForceCreate(false),
mInitiallyVisible(true),
mIsWaitingForMochaImageLoad(false),
mWindowResID(1010)
{
}
CURLDispatchInfo::CURLDispatchInfo(
const char* inURL,
CNSContext* inTargetContext,
FO_Present_Types inOutputFormat,
NET_ReloadMethod inReloadMethod,
Boolean inDelay,
Boolean inForceCreate,
Boolean inIsSaving,
ResIDT inWindowResID,
Boolean inInitiallyVisible)
: mTargetContext(NULL),
mOutputFormat(inOutputFormat),
mDelayDispatch(inDelay),
mForceCreate(inForceCreate),
mIsSaving(inIsSaving),
mInitiallyVisible(inInitiallyVisible),
mIsWaitingForMochaImageLoad(false),
mWindowResID(inWindowResID)
{
mURLStruct = NET_CreateURLStruct(inURL, inReloadMethod);
if (inTargetContext)
{
cstring theReferer = inTargetContext->GetCurrentURL();
if (theReferer.length() > 0)
mURLStruct->referer = XP_STRDUP(theReferer);
mTargetContext = inTargetContext;
}
mURLType = NET_URL_Type(inURL);
}
CURLDispatchInfo::CURLDispatchInfo(
URL_Struct* inURLStruct,
CNSContext* inTargetContext,
FO_Present_Types inOutputFormat,
Boolean inDelay,
Boolean inForceCreate,
Boolean inIsSaving,
ResIDT inWindowResID,
Boolean inInitiallyVisible,
Boolean inWaitingForMochaImageLoad)
: mURLStruct(inURLStruct),
mTargetContext(inTargetContext),
mOutputFormat(inOutputFormat),
mDelayDispatch(inDelay),
mForceCreate(inForceCreate),
mIsSaving(inIsSaving),
mInitiallyVisible(inInitiallyVisible),
mIsWaitingForMochaImageLoad(inWaitingForMochaImageLoad),
mWindowResID(inWindowResID)
{
if (inTargetContext && mURLStruct->referer == NULL)
{
cstring theReferer = inTargetContext->GetCurrentURL();
if (theReferer.length() > 0)
mURLStruct->referer = XP_STRDUP(theReferer);
mTargetContext = inTargetContext;
}
if (inURLStruct)
mURLType = NET_URL_Type(NET_URLStruct_Address(inURLStruct));
else
mURLType = 0;
}
CURLDispatchInfo::~CURLDispatchInfo()
{
if (mURLStruct)
{
NET_FreeURLStruct(mURLStruct);
}
}
URL_Struct* CURLDispatchInfo::ReleaseURLStruct()
{
URL_Struct* url = mURLStruct;
mURLStruct = NULL;
return url;
}
char* CURLDispatchInfo::GetURL()
{
if (mURLStruct)
return NET_URLStruct_Address(mURLStruct);
else
return NULL;
}
void CURLDispatchInfo::SetFileSpec(const FSSpec& inFileSpec)
{
mFileSpec = inFileSpec;
}

View File

@@ -1,210 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// CURLDispatcher.h
#ifndef CURLDispatcher_H
#define CURLDispatcher_H
#pragma once
#include <LPeriodical.h>
#include <LListener.h>
#include "structs.h"
#include "CAutoPtr.h"
#include "ntypes.h"
#include "net.h" // for FO_CACHE_AND_PRESENT
class CNSContext;
class CBrowserContext;
class CBrowserWindow;
class CURLDispatchInfo;
// Dispatch function prototype
const ResIDT BrowserWindow_ResID = 1010;
typedef void (*DispatchProcPtr)(CURLDispatchInfo* inDispatchInfo);
class CURLDispatcher :
public LPeriodical,
public LListener
{
public:
static void DispatchToStorage(
URL_Struct* inURL,
const FSSpec& inDestSpec,
FO_Present_Types inOutputFormat = FO_SAVE_AS,
Boolean inDelay = false);
static void DispatchToStorage(CURLDispatchInfo* inDispatchInfo);
virtual void SpendTime(const EventRecord& inMacEvent);
virtual void ListenToMessage(
MessageT inMessage,
void* ioParam);
static Uint32 CountDelayedURLs() { return GetURLDispatcher()->GetCountDelayedURLs(); }
// 97-05-13 pkc -- New URL dispatch mechanism
static void DispatchURL(
const char* inURL,
CNSContext* inTargetContext,
Boolean inDelay = false,
Boolean inForceCreate = false,
ResIDT inWindowResID = BrowserWindow_ResID,
Boolean inInitiallyVisible = true,
FO_Present_Types inOutputFormat = FO_CACHE_AND_PRESENT,
NET_ReloadMethod inReloadMethod = NET_DONT_RELOAD);
static void DispatchURL(
URL_Struct* inURLStruct,
CNSContext* inTargetContext,
Boolean inDelay = false,
Boolean inForceCreate = false,
ResIDT inWindowResID = BrowserWindow_ResID,
Boolean inInitiallyVisible = true,
FO_Present_Types inOutputFormat = FO_CACHE_AND_PRESENT,
Boolean inWaitingForMochaImageLoad = false);
static void DispatchURL(CURLDispatchInfo* inDispatchInfo);
// Dispatch procs
static void DispatchToLibNet(CURLDispatchInfo* inDispatchInfo);
static void DispatchToBrowserWindow(CURLDispatchInfo* inDispatchInfo);
static void DispatchMailboxURL(CURLDispatchInfo* inDispatchInfo);
static void DispatchToMailNewsWindow(CURLDispatchInfo* inDispatchInfo);
// Utility functions
static void DispatchToNewBrowserWindow(CURLDispatchInfo* inDispatchInfo);
static CBrowserWindow* CreateNewBrowserWindow(
ResIDT inWindowResID = BrowserWindow_ResID,
Boolean inInitiallyVisible = true);
// Return the browser window created by the last call to DispatchToView. Note that
// if the dispatch was delayed, this will be null until the pending dispatch is processed.
static CBrowserWindow* GetLastBrowserWindowCreated() { return sLastBrowserWindowCreated; }
protected:
static CURLDispatcher* GetURLDispatcher(); // singleton class
static void DispatchToDisk(CURLDispatchInfo* inDispatchInfo);
static void DispatchToDiskAsText(CURLDispatchInfo* inDispatchInfo);
Uint32 GetCountDelayedURLs() const { return mDelayedURLs.GetCount(); }
virtual void PostPendingDispatch(CURLDispatchInfo* inDispatchInfo);
virtual void UpdatePendingDispatch(
CNSContext* inForContext);
virtual void ProcessPendingDispatch(void);
LArray mDelayedURLs;
// reset to NULL on entry in DispatchToView(), set in DispatchToNewBrowserWindow()
static CBrowserWindow* sLastBrowserWindowCreated;
static CAutoPtr<CURLDispatcher> sDispatcher;
static CAutoPtr<CBrowserContext> sDispatchContext;
private:
friend class CAutoPtr<CURLDispatcher>;
friend class CAutoPtr<CBrowserContext>;
CURLDispatcher();
virtual ~CURLDispatcher();
};
// Info needed to dispatch a URL
class CURLDispatchInfo
{
public:
CURLDispatchInfo();
CURLDispatchInfo(
const char* inURL,
CNSContext* inTargetContext,
FO_Present_Types inOutputFormat,
NET_ReloadMethod inReloadMethod = NET_DONT_RELOAD,
Boolean inDelay = false /* BLECH! */,
Boolean inForceCreate = false,
Boolean inIsSaving = false,
ResIDT inWindowResID = BrowserWindow_ResID,
Boolean inInitiallyVisible = true);
CURLDispatchInfo(
URL_Struct* inURLStruct,
CNSContext* inTargetContext,
FO_Present_Types inOutputFormat,
Boolean inDelay = false /* BLECH! */,
Boolean inForceCreate = false,
Boolean inIsSaving = false,
ResIDT inWindowResID = BrowserWindow_ResID,
Boolean inInitiallyVisible = true,
Boolean inWaitingForMochaImageLoad = false);
virtual ~CURLDispatchInfo();
Int32 GetURLType() { return mURLType; }
char* GetURL();
URL_Struct* GetURLStruct() { return mURLStruct; }
CNSContext* GetTargetContext() { return mTargetContext; }
FO_Present_Types GetOutputFormat() { return mOutputFormat; }
Boolean GetDelay() { return mDelayDispatch; }
Boolean GetIsSaving() { return mIsSaving; }
Boolean GetInitiallyVisible() { return mInitiallyVisible; }
FSSpec& GetFileSpec() { return mFileSpec; }
ResIDT GetWindowResID() { return mWindowResID; }
Boolean GetForceCreate() { return mForceCreate; }
Boolean GetIsWaitingForMochaImageLoad()
{ return mIsWaitingForMochaImageLoad; }
URL_Struct* ReleaseURLStruct();
void ClearDelay() { mDelayDispatch = false; }
void SetFileSpec(const FSSpec& inFileSpec);
void SetTargetContext(CNSContext* inTargetContext)
{ mTargetContext = inTargetContext; }
protected:
Int32 mURLType;
URL_Struct* mURLStruct;
CNSContext* mTargetContext;
FO_Present_Types mOutputFormat;
Boolean mDelayDispatch;
Boolean mForceCreate;
Boolean mIsSaving;
Boolean mInitiallyVisible;
Boolean mIsWaitingForMochaImageLoad;
FSSpec mFileSpec;
ResIDT mWindowResID;
};
#endif

View File

@@ -1,184 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file contains Navigator only code which supports "Send Page..." and
"mailto:" URLs using an external mail client registered with InternetConfig.
*/
#ifndef MOZ_MAIL_NEWS
#include "msgcom.h" // MSG_MailDocument()
#include "xlate.h" // PrintSetup
#include "shist.h" // SHIST_GetCurrent()
#include "xpgetstr.h" // XP_GetString()
#include "CURLDispatcher.h" // CURLDispatcher::DispatchURL()
#include "CNSContext.h" // ExtractNSContext()
#include "net.h" // NET_Escape()
extern int MK_MSG_MSG_COMPOSITION;
#define MAX_MAIL_SIZE 300000
extern "C" void FE_DoneMailTo(PrintSetup * print) ;
extern "C" void FE_DoneMailTo(PrintSetup * print)
{
const char * prefix = "mailto:?body=";
const char * blankLines = "\r\n\r\n";
XP_ASSERT(print);
if (!print)
return;
XP_ASSERT(print->url);
if (!print->url)
return;
fclose(print->out); // don't need this for writing anymore.
MWContext * context = (MWContext *) (print->carg);
if (!context) // we'll require this later
return;
char * buffer = (char *) malloc(MAX_MAIL_SIZE);
if (buffer) {
strcpy(buffer, print->url->address);
strcat(buffer, blankLines);
int buflen = strlen(buffer);
// now tack as much of the page onto the body as we have space for...
FILE * fp = fopen(print->filename, "r");
if (fp) {
int len = fread(buffer + buflen, 1, MAX_MAIL_SIZE - buflen - (5 /* slop? */), fp);
buffer[buflen + len] = '\0';
fclose(fp);
char *temp = NET_Escape (buffer, URL_XALPHAS);
XP_FREE(buffer);
buffer = temp;
} else {
XP_FREE(buffer);
buffer = NULL;
}
}
// get rid of the file and free the memory
remove(print->filename);
char *buffer2 = NULL;
if (buffer) {
buffer2 = (char *) malloc(strlen(prefix) + strlen(buffer) + 1);
if (buffer2) {
strcpy(buffer2, prefix); // start creating a "mailto:" URL
strcat(buffer2, buffer); // the message
}
}
if (buffer2 == NULL) { // no buffer, or we don't have enough memory to use it, try to just send the URL...
if (buffer)
XP_FREE(buffer); // if we're here, we can't use the buffer anyway...
buffer = NET_Escape (print->url->address, URL_XALPHAS);
if (buffer == NULL)
return; // not enough memory to do ANYTHING useful!
buffer2 = (char *) malloc(strlen(prefix) + strlen(buffer) + 1);
if (buffer2 == NULL) {
XP_FREE(buffer);
return; // not enough memory to do ANYTHING useful!
}
strcpy(buffer2, prefix); // start creating a "mailto:" URL
strcat(buffer2, buffer); // the message
}
XP_FREE(buffer);
// XP_FREE(print->filename);
// print->filename = NULL;
CURLDispatcher::DispatchURL(buffer2, ExtractNSContext(context));
XP_FREE(buffer2);
}
#ifndef MOZ_MAIL_COMPOSE
extern MSG_Pane* MSG_MailDocument(MWContext *context)
{
if(!context)
return NULL;
History_entry * hist_ent = SHIST_GetCurrent(&(context->hist));
// make sure there was a document loaded
if(!hist_ent)
return NULL;
//Set hist_ent to NULL if context->title is "Message Composition"
//This is a nasty way of determining if we're in here in response
//to "Mail Doc" or "New Mail Message".
//Also, if there's To: field info present(pBar->m_pszTo) then
//we know that it's a Mailto: and set hist_ent to NULL
//Without this differentiation the code always sends the contents
//of the previously mailed document even when someone chooses
//"New Mail Message" or "Mailto:"
if(!strcmp(XP_GetString(MK_MSG_MSG_COMPOSITION), context->title))
return NULL;
URL_Struct * URL_s = SHIST_CreateURLStructFromHistoryEntry(context, hist_ent);
if (!URL_s)
return NULL;
// Zero out the saved data
memset(&URL_s->savedData, 0, sizeof(URL_s->savedData));
PrintSetup print;
XL_InitializeTextSetup(&print);
print.width = 68;
print.prefix = "";
print.eol = "\r\n";
char * name = WH_TempName(xpTemporary, NULL);
if(!name) {
// Leak URL_s here
return(FALSE);
}
print.out = fopen(name, "w");
print.completion = (XL_CompletionRoutine) FE_DoneMailTo;
print.carg = context;
print.filename = name;
print.url = URL_s;
// leave pCompose window alive until completion routine
XL_TranslateText(context, URL_s, &print);
return NULL;
}
#endif // ! MOZ_MAIL_COMPOSE
#endif // !MOZ_MAIL_NEWS

View File

@@ -1,670 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// InternetConfig.cp
//
// Created by Tim Craycroft, 2/9/96
//
#include "InternetConfig.h"
#include <ICAPI.h>
#include <ICKeys.h>
#include <LListener.h>
#include <LPeriodical.h>
#include "xp_core.h"
#include "xp_str.h"
#include "uprefd.h"
#include "prefapi.h" // ns/modules/libpref
#include "ufilemgr.h"
#include "resgui.h"
//
// InternetConfig class.
//
// Checks the IC seed on resume events
//
class CInternetConfig
{
public:
static void Connect();
static void Disconnect();
static ICError GetInternetConfigString(ConstStr255Param icKey,
Str255 s,
long *port = nil);
static ICError GetInternetConfigFileMapping( OSType fileType,
OSType creator,
ConstStr255Param fileName,
ICMapEntry *ent);
static ICError MapFileName( ConstStr255Param filename, ICMapEntry *ent );
static ICError GetFileSpec( ConstStr255Param icKey , FSSpec & ioSpec );
static ICError LaunchInternetConfigApplication(ConstStr255Param key);
#ifndef MOZ_MAIL_NEWS
static ICError SendInternetConfigURL(char *address);
#endif
static int UseICPrefCallback(const char *prefString, void *);
static void ResumeEvent();
static Boolean CurrentlyUsingIC();
static Boolean HaveICInstance();
private:
CInternetConfig();
~CInternetConfig();
void SynchIf(); // iff the seed has changed
void SynchFromIC();
ICError SynchStringFromIC( ConstStr255Param icKey,
CPrefs::PrefEnum netscapePref,
Boolean stripPort = false,
const char *xpPortPrefName = nil,
int32 defaultPort = 0);
ICError SynchSplitStringFromIC( ConstStr255Param icKey,
char divider,
CPrefs::PrefEnum firstString,
CPrefs::PrefEnum secondString,
Boolean stripPort = false);
ICError SyncFileSpec ( ConstStr255Param icKey, CPrefs::PrefEnum netscapePref );
ICError GetICString( ConstStr255Param icKey,
Str255 s,
int32 *port = nil);
ICError GetFSSpec( ConstStr255Param icKey , FSSpec & ioSpec );
ICError GetICFileMapping( OSType fileType,
OSType creator,
ConstStr255Param fileName,
ICMapEntry *ent);
ICError MapICFileName( ConstStr255Param filename, ICMapEntry *ent );
ICError LaunchICApplication(ConstStr255Param key);
#ifndef MOZ_MAIL_NEWS
ICError SendICURL(char *address);
#endif
ICInstance fInstance;
SInt32 fSeed;
static CInternetConfig* sInternetConfigConnection;
};
void
CInternetConfigInterface::ResumeEvent()
{
CInternetConfig::ResumeEvent();
}
//
// ConnectToInternetConfig
//
// Only public entrypoint to this InternetConfig module.
//
// gets the folder from CPrefs::GetFilePrototype(prefSpec(, MainFolder)
//
void
CInternetConfigInterface::ConnectToInternetConfig()
{
// I assume that this is only called once, at startup.
const char *useICPrefName = "browser.mac.use_internet_config";
PREF_RegisterCallback(useICPrefName, CInternetConfig::UseICPrefCallback, nil);
try
{
if (CInternetConfig::CurrentlyUsingIC())
{
CInternetConfig::Connect();
}
}
catch(ICError err)
{
// do something ? a dialog perhaps ?
// only if there is a real problem, not if
// IC just isn't installed.
}
}
void
CInternetConfigInterface::DisconnectFromInternetConfig()
{
CInternetConfig::Disconnect();
}
Boolean
CInternetConfigInterface::CurrentlyUsingIC(void)
{
Boolean returnValue = TRUE;
returnValue = returnValue && CInternetConfig::CurrentlyUsingIC();
returnValue = returnValue && CInternetConfig::HaveICInstance();
return returnValue;
}
void
CInternetConfigInterface::GetInternetConfigString( ConstStr255Param icKey,
Str255 s,
long *port)
{
if (CInternetConfig::GetInternetConfigString(icKey, s, port))
{
s[0] = 0;
}
}
ICError
CInternetConfigInterface::GetInternetConfigFileMapping( OSType fileType,
OSType creator,
ConstStr255Param fileName,
ICMapEntry *ent)
{
return CInternetConfig::GetInternetConfigFileMapping(fileType, creator,
fileName, ent);
}
ICError CInternetConfigInterface::MapFileName( ConstStr255Param filename, ICMapEntry *ent )
{
return CInternetConfig::MapFileName( filename , ent );
}
#ifndef MOZ_MAIL_NEWS
ICError
CInternetConfigInterface::SendInternetConfigURL(char *address)
{
return CInternetConfig::SendInternetConfigURL(address);
}
#endif
ICError
CInternetConfigInterface::LaunchInternetConfigApplication(ConstStr255Param key)
{
return CInternetConfig::LaunchInternetConfigApplication(key);
}
ICError CInternetConfigInterface::GetFileSpec( ConstStr255Param icKey , FSSpec & ioSpec )
{
return CInternetConfig::GetFileSpec( icKey, ioSpec);
}
CInternetConfig*
CInternetConfig::sInternetConfigConnection = nil;
Boolean
CInternetConfig::CurrentlyUsingIC()
{
XP_Bool result;
const char *useICPrefName = "browser.mac.use_internet_config";
if (PREF_NOERROR != PREF_GetBoolPref(useICPrefName, &result))
{
result = false;
}
return (Boolean)result;
}
//
// CInternetConfig::Connect
//
// Call once to hook up with IC.
//
void
CInternetConfig::Connect()
{
if (!sInternetConfigConnection)
{
sInternetConfigConnection = new CInternetConfig();
}
}
//
// Bail
//
void
CInternetConfig::Disconnect()
{
if (sInternetConfigConnection != nil)
{
delete sInternetConfigConnection;
sInternetConfigConnection = nil;
}
}
Boolean
CInternetConfig::HaveICInstance(void)
{
Boolean returnValue = FALSE;
Connect();
if (sInternetConfigConnection != nil)
{
returnValue = (sInternetConfigConnection->fInstance != NULL);
}
return returnValue;
}
//
// CInternetConfig::CInternetConfig
//
CInternetConfig::CInternetConfig():
fInstance(NULL)
{
ICError err;
// Detect IC, if present
StValueChanger<EDebugAction> okayToFail(gDebugThrow, debugAction_Nothing);
err = ::ICStart(&fInstance, emSignature);
//ThrowIfOSErr_(err);
if (!err)
{
try
{
ICDirSpec prefDir[1];
ICDirSpecArrayPtr prefDirArray;
UInt32 dirCount = 0;
// what a wonderful api...
//
// Give IC the directory that contains the pref file we're using
// so it can look there for an IC config file.
prefDirArray = (ICDirSpecArrayPtr) &prefDir;
FSSpec prefSpec = CPrefs::GetFilePrototype(CPrefs::MainFolder);
prefDir[0].vRefNum = prefSpec.vRefNum;
prefDir[0].dirID = prefSpec.parID;
dirCount = 1;
err = ::ICFindConfigFile(fInstance, dirCount, prefDirArray);
ThrowIfOSErr_(err);
// Remember initial seed
err = ::ICGetSeed(fInstance, &fSeed);
ThrowIfOSErr_(err);
// Read prefs from IC
if (CurrentlyUsingIC())
{
SynchFromIC();
}
}
catch(ICError err)
{
// Close IC connection and pass the error along
::ICStop(fInstance);
fInstance = NULL;
// throw(err);
// we probably out to delete "this" as well
}
}
}
int
CInternetConfig::UseICPrefCallback(const char *, void *)
{
if (CInternetConfig::CurrentlyUsingIC())
{
Connect();
sInternetConfigConnection->SynchFromIC();
}
return 0; // You don't even want to know my opinion of this!
}
//
// CInternetConfig::~CInternetConfig
//
CInternetConfig::~CInternetConfig()
{
if (fInstance != NULL)
{
::ICStop(fInstance); // close IC connection
}
}
//
// CInternetConfig::SynchFromIC
//
// Reads IC settings and converts them to Netscape prefs
//
void
CInternetConfig::SynchFromIC()
{
ICError err;
err = ::ICBegin(fInstance, icReadOnlyPerm);
ThrowIfOSErr_(err);
// Again, this is lame.
//
// We should have a table of some sort
//
SynchStringFromIC(kICRealName, CPrefs::UserName);
SynchStringFromIC(kICEmail, CPrefs::UserEmail);
SynchStringFromIC(kICEmail, CPrefs::ReplyTo); // IC has no reply-to
SynchSplitStringFromIC(kICMailAccount, '@', CPrefs::PopID, CPrefs::PopHost, true);
SynchStringFromIC(kICSMTPHost, CPrefs::SMTPHost, true);
SynchStringFromIC(kICWWWHomePage, CPrefs::HomePage);
SynchStringFromIC(kICOrganization, CPrefs::Organization);
SynchStringFromIC(kICNNTPHost, CPrefs::NewsHost, true, "news.server_port", 119);
SyncFileSpec( kICDownloadFolder, CPrefs::DownloadFolder );
::ICEnd(fInstance);
}
void
CInternetConfig::SynchIf()
{
SInt32 seed;
if (::ICGetSeed(fInstance, &seed))
{
return;
}
if (seed != fSeed)
{
try
{
SynchFromIC();
}
catch(ICError err)
{
}
fSeed = seed;
}
}
//
// CInternetConfig::ResumeEvent
//
//
void
CInternetConfig::ResumeEvent()
{
if (CurrentlyUsingIC())
{
Connect();
sInternetConfigConnection->SynchIf();
}
}
//
// CInternetConfig::SynchStringFromIC
//
// Set a netscape string from an IC string
ICError
CInternetConfig::SynchStringFromIC( ConstStr255Param icKey,
CPrefs::PrefEnum netscapePref,
Boolean stripPort,
const char *xpPortPrefName,
int32 defaultPort)
{
char s[256];
ICError err;
int32 *portPtr = stripPort ? &defaultPort : nil;
err = GetICString(icKey, (unsigned char*) s, portPtr);
if (err == 0)
{
p2cstr((StringPtr)s);
CPrefs::SetString(s, netscapePref);
if (xpPortPrefName)
{
PREF_SetIntPref(xpPortPrefName, defaultPort);
}
}
return err;
}
//
// CInternetConfig::SynchSplitStringFromIC
//
// Takes a single IC string and splits it into two Netscape strings.
// Useful for machine@host.domain.com, or proxy.address:port type stuff
//
// If the divider can't be found, the entire string is put into the
// first netscape string and the second netscape string is set to '\0'
//
ICError
CInternetConfig::SynchSplitStringFromIC( ConstStr255Param icKey,
char divider,
CPrefs::PrefEnum firstString,
CPrefs::PrefEnum secondString,
Boolean stripPort)
{
char buffer[256];
char *s;
char *split;
ICError err;
s = buffer;
err = GetICString(icKey, (unsigned char *) s);
if (err != 0) return err;
p2cstr((StringPtr)s);
split = strchr(s, divider);
if (split != NULL)
{
*split = '\0';
if (stripPort)
{
char *colon = strchr(split+1, ':');
if (colon)
{
*colon = '\0';
}
}
CPrefs::SetString(split+1, secondString);
}
else
{
CPrefs::SetString('\0', secondString);
}
CPrefs::SetString(s, firstString);
return 0;
}
//
// CInternetConfig::GetICString
//
// Gets an IC string pref
//
ICError
CInternetConfig::GetInternetConfigString( ConstStr255Param icKey,
Str255 s,
long *port)
{
Connect();
return sInternetConfigConnection->GetICString(icKey, s, port);
}
//
// CInternetConfig::GetICString
//
// Gets an IC string pref
//
ICError
CInternetConfig::GetICString( ConstStr255Param icKey,
Str255 s,
int32 *port)
{
ICAttr attr;
long size = 256;
ICError result;
result = ::ICGetPref(fInstance, icKey, &attr, (Ptr)s, &size);
if (!result)
{
if (port)
{
char cString[256];
BlockMoveData(&s[1], cString, s[0]);
cString[s[0]] = '\0';
char *colon = strchr(cString, ':');
if (colon)
{
*colon = '\0';
s[0] = colon - cString;
++colon;
// IC supposedly supports notations like:
// news.netscape.com:nntp
// The protocol services don't seem to work in IC (or I'm to stupid
// to make them work), so we just check for this one value ("nntp")
// because that is the only protocol for which we support port numbers.
if (!XP_STRCASECMP("nntp", colon))
{
*port = 119;
}
else
{
// Add more protocols here if/when we suppor them.
long portFromICString;
int numargs = sscanf(colon, "%ld", &portFromICString);
if (1 == numargs)
{
if (portFromICString >= 0) // negative port numbers are not valid
{
*port = portFromICString;
}
}
// else we just use the default port
}
}
}
}
return result;
}
#ifndef MOZ_MAIL_NEWS
ICError
CInternetConfig::SendInternetConfigURL(char *address)
{
Connect();
return sInternetConfigConnection->SendICURL(address);
}
ICError
CInternetConfig::SendICURL(char *address)
{
if (address == NULL)
return icNoURLErr;
long selStart = 0;
long selEnd = strlen(address);
if( CInternetConfig::HaveICInstance() )
return ::ICLaunchURL(fInstance, "\p", address, selEnd, &selStart, &selEnd);
else
return icPrefNotFoundErr;
}
#endif
ICError
CInternetConfig::GetInternetConfigFileMapping( OSType fileType,
OSType creator,
ConstStr255Param filename,
ICMapEntry *ent)
{
Connect();
return sInternetConfigConnection->GetICFileMapping(fileType, creator, filename, ent);
}
ICError
CInternetConfig::GetICFileMapping( OSType fileType,
OSType creator,
ConstStr255Param filename,
ICMapEntry *ent)
{
if( CInternetConfig::HaveICInstance() )
return ::ICMapTypeCreator(fInstance, fileType, creator, filename, ent);
else
return icPrefNotFoundErr;
}
ICError
CInternetConfig::LaunchInternetConfigApplication(ConstStr255Param key)
{
Connect();
return sInternetConfigConnection->LaunchICApplication(key);
}
ICError
CInternetConfig::LaunchICApplication(ConstStr255Param key)
{
if (CInternetConfig::HaveICInstance())
return ::ICEditPreferences(fInstance, key);
else
return icPrefNotFoundErr;
}
ICError
CInternetConfig::MapFileName( ConstStr255Param filename, ICMapEntry *ent)
{
Connect();
return sInternetConfigConnection->MapICFileName(filename, ent);
}
ICError CInternetConfig::MapICFileName( ConstStr255Param filename, ICMapEntry *ent )
{
if( CInternetConfig::HaveICInstance() )
return ::ICMapFilename(fInstance, filename, ent);
else
return icPrefNotFoundErr;
}
ICError CInternetConfig::GetFileSpec( ConstStr255Param icKey , FSSpec & ioSpec )
{
Connect();
return sInternetConfigConnection->GetFSSpec(icKey, ioSpec);
}
ICError CInternetConfig::GetFSSpec( ConstStr255Param icKey , FSSpec & ioSpec )
{
ICFileSpec* spec;
ICAttr attr;
char buffer[512];
long size = 512;
ICError result;
result = ::ICGetPref(fInstance, icKey, &attr, buffer, &size);
if (!result)
{
spec = (ICFileSpec *) buffer;
CFileMgr::CopyFSSpec( spec->fss, ioSpec );
}
return result;
}
ICError CInternetConfig::SyncFileSpec ( ConstStr255Param icKey, CPrefs::PrefEnum netscapePref )
{
FSSpec icSpec;
ICError result = GetFSSpec( icKey, icSpec );
if( !result )
{
CPrefs::SetFolderSpec( icSpec , netscapePref );
}
return result;
}

View File

@@ -1,89 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
//
// InternetConfig.h
//
// MacFE interface to its support for Apple Internet Config
//
// Created by Tim Craycroft, 2/11/96
//
//
#pragma once
#include "ICAPI.h"
// Always call.
//
// This will determine if InternetConfig is present
// and do the right thing.
//
// Everything else is taken care of behind the scenes.
//
// Note:
//------
// It reads "Everything else is taken care of behind the scenes" and that's right:
// the API below is ok. That's the "everything else" which is sub optimal.
// If you need to add a method in CInternetConfigInterface, I recommend you to
// have a look at how LaunchInternetConfigApplication() and GetInternetConfigString()
// are implemented. For a single method here, you need two methods "behind the scenes".
class CInternetConfigInterface
{
public:
static Boolean CurrentlyUsingIC(void);
// returns true iff IC is installed and we're listening to it
static ICError LaunchInternetConfigApplication(ConstStr255Param key);
// Lauches the app and opens one of the config panels (if specified).
// The list of keys is in <ICKeys.h>.
static void ConnectToInternetConfig();
// gets the folder from CPrefs::GetFilePrototype(prefSpec(, MainFolder)
static void DisconnectFromInternetConfig();
// yeah, like this gets called
static void GetInternetConfigString(ConstStr255Param icKey,
Str255 s,
long *port= nil);
// If an error is encountered, s is set to "\p".
// If port is not nil, then the following assumptions are made:
// * The string is a server name that may be have a ":portnumber"
// appended to it.
// * The initial value of *port is the default port number.
// If port is not nil, then the returned string will have the ":number"
// stripped and the *port value will be the port specified by the
// user.
static ICError GetInternetConfigFileMapping( OSType fileType,
OSType creator,
ConstStr255Param filename,
ICMapEntry *ent);
static ICError MapFileName( ConstStr255Param filename, ICMapEntry *ent );
static ICError GetFileSpec( ConstStr255Param icKey , FSSpec & ioSpec );
#ifndef MOZ_MAIL_NEWS
static ICError SendInternetConfigURL(char *address);
#endif
static void ResumeEvent();
// somebody call me when I need to check the IC seed value
};

View File

@@ -1,257 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "LTSMSupport.h"
static Boolean mHasTextServices = false;
static Boolean mHasTSMTE = false;
static ScriptCode mSysScript = smRoman;
static Boolean mTSMTEisVersion1 = false;
static TSMTEPreUpdateUPP mTSMTEPreUpdateUPP = NULL;
static TSMTEPostUpdateUPP mTSMTEPostUpdateUPP = NULL;
static Boolean TrapAvailable(short theTrap);
static pascal void DefaultTSMTEPreUpdateProc(TEHandle textH, long refCon);
// ---------------------------------------------------------------------------
// Copy from InlineInputSample.c
// this TSMTEPreUpdateProc only works around a bug in TSMTE 1.0, which has
// been fixed in 1.1. For other possible uses, see technote TE 27.
// ---------------------------------------------------------------------------
static pascal void DefaultTSMTEPreUpdateProc(TEHandle textH, long refCon)
{
#pragma unused(refCon)
if (mTSMTEisVersion1) // Modified here for performance
{
ScriptCode keyboardScript;
short mode;
TextStyle theStyle;
keyboardScript = ::GetScriptManagerVariable(smKeyScript);
mode = doFont;
if (!(::TEContinuousStyle(&mode, &theStyle, textH) &&
::FontToScript(theStyle.tsFont) == keyboardScript))
{
theStyle.tsFont = ::GetScriptVariable(keyboardScript, smScriptAppFond);
::TESetStyle(doFont, &theStyle, false, textH);
};
};
}
// ---------------------------------------------------------------------------
// ¥ Initialization
// ---------------------------------------------------------------------------
// Default constructor
void LTSMSupport::Initialize()
{
mSysScript = ::GetScriptManagerVariable(smSysScript);
CheckForTextServices();
BeginTextServices();
TSMTENewUPP();
}
// ---------------------------------------------------------------------------
// ¥ CheckForTextServices
// Call by constructor
// From TE27 Page 4/14
// ---------------------------------------------------------------------------
void LTSMSupport::CheckForTextServices(void)
{
long gestaltResponse;
if (::TrapAvailable(_Gestalt))
{
if ((::Gestalt(gestaltTSMgrVersion, &gestaltResponse) == noErr) &&
(gestaltResponse >= 1))
{
mTSMTEisVersion1 = (gestaltResponse == gestaltTSMTE1);
mHasTextServices = true;
if (::Gestalt(gestaltTSMTEAttr, &gestaltResponse) == noErr)
mHasTSMTE = ((gestaltResponse >> gestaltTSMTEPresent) & 1);
};
};
}
// ---------------------------------------------------------------------------
// ¥ TSMTENewUPP
// Modified from InlineInputSample.c
// ---------------------------------------------------------------------------
void LTSMSupport::TSMTENewUPP()
{
if(mHasTSMTE) {
if(mTSMTEPreUpdateUPP == NULL )
mTSMTEPreUpdateUPP = NewTSMTEPreUpdateProc(DefaultTSMTEPreUpdateProc);
}
}
// ---------------------------------------------------------------------------
// ¥ BeginTextServices
// Call by constructor
// From TE27 Page 4/14
// ---------------------------------------------------------------------------
void LTSMSupport::BeginTextServices()
{
if (!(mHasTSMTE && ::InitTSMAwareApplication() == noErr))
{
// if this happens, just move on without text services
mHasTextServices = false;
mHasTSMTE = false;
};
}
// ---------------------------------------------------------------------------
// ¥ DoQuit
// Called by DoQuit()
// From TE27 Page 4/14
// ---------------------------------------------------------------------------
void LTSMSupport::DoQuit(Int32 /* inSaveOption */)
{
if (mHasTextServices)
(void) ::CloseTSMAwareApplication();
}
// ---------------------------------------------------------------------------
// ¥ IntlTSMEvent
// From TE27 Page 11/14
// ---------------------------------------------------------------------------
Boolean
LTSMSupport::TSMEvent(const EventRecord &inMacEvent)
{
if(mHasTextServices)
{
// make sure we have a port and it's not the Window Manager port
// if (qd.thePort != nil && ::FrontWindow() != nil)
// {
// oldFont = qd.thePort->txFont;
// keyboardScript = ::GetScriptManagerVariable(smKeyScript);
// if (::FontToScript(oldFont) != keyboardScript)
// ::TextFont(GetScriptVariable(keyboardScript, smScriptAppFond));
// };
return ::TSMEvent((EventRecord *)&inMacEvent);
}
else
{
return false;
}
}
// ---------------------------------------------------------------------------
// ¥ IntlTSMEvent
// From TE27 Page 11/14
// ---------------------------------------------------------------------------
Boolean LTSMSupport::SetTSMCursor(Point mousePos)
{
if(mHasTextServices)
return ::SetTSMCursor(mousePos);
else
return false;
}
// ---------------------------------------------------------------------------
//
// ---------------------------------------------------------------------------
Boolean LTSMSupport::HasTextServices()
{
return mHasTextServices;
}
// ---------------------------------------------------------------------------
//
// ---------------------------------------------------------------------------
Boolean LTSMSupport::HasTSMTE()
{
return mHasTSMTE;
}
// ---------------------------------------------------------------------------
//
// ---------------------------------------------------------------------------
TSMTEPreUpdateUPP LTSMSupport::GetDefaultTSMTEPreUpdateUPP()
{
return mTSMTEPreUpdateUPP;
}
// ---------------------------------------------------------------------------
//
// ---------------------------------------------------------------------------
TSMTEPostUpdateUPP LTSMSupport::GetDefaultTSMTEPostUpdateUPP()
{
return mTSMTEPostUpdateUPP;
}
// ---------------------------------------------------------------------------
//
// ---------------------------------------------------------------------------
void LTSMSupport::StartFontScriptLimit()
{
//short theFontScript = ::FontScript();
//StartFontScriptLimit(theFontScript);
}
// ---------------------------------------------------------------------------
//
// ---------------------------------------------------------------------------
void LTSMSupport::StartFontScriptLimit( ScriptCode /* scriptcode */)
{
// We want to disable all the script except: Roman and the Font script
// 1. we have set the system script to the font script
// 2. disable all the script except Roman and System script by calling
// KeyScript(smDisablKybds);
// 3. Should we also switch input method to the font script ?
// 4. restore the system script.
//if(mSysScript != scriptcode)
//{
// ::SetScriptManagerVariable(smSysScript, scriptcode);
//}
//if(scriptcode != ::GetScriptManagerVariable(smKeyScript))
//{
// ::KeyScript(scriptcode);
//}
// ::KeyScript(smKeyDisableKybds);
// ::SetScriptManagerVariable(smSysScript, mSysScript);
}
// ---------------------------------------------------------------------------
//
// ---------------------------------------------------------------------------
void LTSMSupport::EndFontScriptLimit()
{
// Re-enable all the script
//::KeyScript(smKeyEnableKybds);
//::SetScriptManagerVariable(smSysScript, mSysScript);
}
// ---------------------------------------------------------------------------
// check to see if a given trap is implemented. We follow IM VI-3-8.
// ---------------------------------------------------------------------------
static
Boolean TrapAvailable(short theTrap)
{
TrapType theTrapType;
short numToolboxTraps;
if ((theTrap & 0x0800) > 0)
theTrapType = ToolTrap;
else
theTrapType = OSTrap;
if (theTrapType == ToolTrap)
{
theTrap = theTrap & 0x07ff;
if (NGetTrapAddress(_InitGraf, ToolTrap) == NGetTrapAddress(0xaa6e, ToolTrap))
numToolboxTraps = 0x0200;
else
numToolboxTraps = 0x0400;
if (theTrap >= numToolboxTraps)
theTrap = _Unimplemented;
};
return (NGetTrapAddress(theTrap, theTrapType) != NGetTrapAddress(_Unimplemented, ToolTrap));
}

View File

@@ -1,68 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include <TextServices.h>
#ifndef __LTSMSUPPORT__
#define __LTSMSUPPORT__
#include <TSMTE.h>
// ftang:
// LTSMSupport handle the following TSM stuff:
// InitTSMAwareApplication() - in Initalize() => BeginTextServices()
// CloseTSMAwareApplication() - in DoQuit() => EndTextServices()
// TSMEvent() - in TSMEvent()
// SetTSMCursor() - in SetTSMCursor()
//
// LTSMSupport handle the following TSM stuff:
// NewTSMDocument()
// DeleteTSMDocument()
// ActiveTSMDocument()
// DeactivateTSMDocument()
// FixTSMDocument()
//
// The following TSM stuff will not be handle:
// TSMMenuSelect() : We only deal with input method. Therefore, ignore it
// See IM-Text 7-22
class LTSMSupport {
public:
static void Initialize();
static void DoQuit(Int32 inSaveOption);
static Boolean TSMEvent(const EventRecord &inMacEvent);
static Boolean SetTSMCursor(Point mousePos);
static Boolean HasTextServices();
static Boolean HasTSMTE();
static TSMTEPreUpdateUPP GetDefaultTSMTEPreUpdateUPP();
static TSMTEPostUpdateUPP GetDefaultTSMTEPostUpdateUPP();
static void StartFontScriptLimit();
static void StartFontScriptLimit( ScriptCode scriptcode );
static void EndFontScriptLimit();
protected:
static void CheckForTextServices(void);
static void BeginTextServices(void);
static void TSMTENewUPP();
};
#endif

View File

@@ -1,685 +0,0 @@
//----------------------------------------------------------------------------------------
// PascalString.cp
// Copyright © 1985-1993 by Apple Computer, Inc. All rights reserved.
//----------------------------------------------------------------------------------------
#include "PascalString.h"
// #include "xpassert.h"
#ifndef __STDIO__
#include <stdio.h>
#endif
#ifndef __STRING__
#include <string.h>
#endif
#pragma segment Main
//========================================================================================
// CLASS CString
//========================================================================================
//----------------------------------------------------------------------------------------
// CString::InsertHelper(CString):
//----------------------------------------------------------------------------------------
void CString::InsertHelper(const CString& insStr,
short pos,
short maxLength)
{
if (pos > Length() + 1)
{
#if qDebugMsg
fprintf(stderr, "###CString::InsertHelper: Insert position greater than length of CString.\n");
#endif
if (Length() < maxLength)
pos = Length() + 1;
}
#if qDebugMsg
if (Length() + insStr.Length() > maxLength)
fprintf(stderr, "### CString::InsertHelper: CString truncated during insert call.\n");
#endif
short usableLengthOfInsertString;
short endPosOfInsertString;
short usableLengthOfShiftedString;
if (pos + insStr.Length() > maxLength)
usableLengthOfInsertString = maxLength - pos + 1;
else
usableLengthOfInsertString = insStr.Length();
endPosOfInsertString = pos + usableLengthOfInsertString - 1;
if ((endPosOfInsertString + 1) + (Length() - pos + 1) > maxLength)
usableLengthOfShiftedString = maxLength - endPosOfInsertString;
else
usableLengthOfShiftedString = Length() - pos + 1;
memmove(&fStr[endPosOfInsertString + 1], &fStr[pos], usableLengthOfShiftedString);
memmove(&fStr[pos], &insStr.fStr[1], usableLengthOfInsertString);
Length() = usableLengthOfShiftedString + endPosOfInsertString;
} // CString::InsertHelper(CString)
//----------------------------------------------------------------------------------------
// CString::InsertHelper(char*):
//----------------------------------------------------------------------------------------
void CString::InsertHelper(const char* insStr,
short pos,
short maxLength)
{
this->InsertHelper(CStr255(insStr), pos, maxLength);
} // CString::InsertHelper(char*)
//----------------------------------------------------------------------------------------
// CString::operator char*:
//----------------------------------------------------------------------------------------
CString::operator char*() const
{
static short currentCString = 0;
static char cStrings[kTempCStrings][kStr255Len+1];
currentCString = (currentCString + 1) % kTempCStrings;
strncpy(cStrings[currentCString], (char *) &fStr[1], Length());
cStrings[currentCString][Length()] = '\0';
return cStrings[currentCString];
} // CString::operator char*
//----------------------------------------------------------------------------------------
// CString::operator long:
//----------------------------------------------------------------------------------------
CString::operator long() const
{
// The following statement looks like it should work. Right?
//
// return *((long *) &fStr[1]);
//
// Wrong, the C compiler generates a MOVE.L starting on a odd byte boundary for the
// preceding statement. This is illegal on the 68000. But its _NOT_ a bug, because
// according to the ANSI C reference manual, "A pointer to one type may be converted
// to a pointer to another type. The resulting pointer may cause an addressing
// exception if the subject pointer does not refer to an object suitably aligned in
// storage".
long returnLong;
memcpy(&returnLong, &fStr[1], sizeof(long));
return returnLong;
} // CString::operator long
//----------------------------------------------------------------------------------------
// CString::Pos(char*):
//----------------------------------------------------------------------------------------
unsigned char CString::Pos(const char* subStr, unsigned char startPos)
{
char cStr[kStr255Len + 1];
char* ptr;
memcpy(cStr, &fStr[1], (size_t)Length());
cStr[Length()] = 0;
ptr = strstr(&cStr[startPos - 1], subStr);
return ptr != NULL ? (ptr - cStr) + 1 : 0;
} // CString::Pos(char*)
//----------------------------------------------------------------------------------------
// CString::Pos(CString):
//----------------------------------------------------------------------------------------
unsigned char CString::Pos(const CString& subStr, unsigned char startPos)
{
char cStr[kStr255Len + 1];
memcpy(cStr, &subStr.fStr[1], (size_t)(subStr.Length()));
cStr[subStr.Length()] = 0;
return this->Pos(cStr, startPos);
} // CString::Pos(CString)
//----------------------------------------------------------------------------------------
// CString::operator const unsigned char*
//----------------------------------------------------------------------------------------
CString::operator const unsigned char*() const
{
return (const unsigned char *) this;
} // CString::operator const unsigned char*
//----------------------------------------------------------------------------------------
// CString::Delete
//----------------------------------------------------------------------------------------
void CString::Delete(short pos, short length)
{
if ((pos > 0) && (length > 0) && (pos <= Length())) // should also check that pos <= kMaxLength
{
if (pos + length > Length())
fStr[0] = pos - 1;
else
{
::memcpy(&fStr[pos], &fStr[pos + length], Length() - (pos + length) + kLengthByte);
fStr[0] -= length;
}
}
} // CString::Delete
//========================================================================================
// CLASS CStr255
//========================================================================================
const CStr255 CStr255::sEmptyString("\p");
//----------------------------------------------------------------------------------------
// CStr255::CStr255(char*):
//----------------------------------------------------------------------------------------
CStr255::CStr255(const char* str)
{
// Truncate the C CString to 255 bytes if necessary.
size_t len = str == NULL ? 0 : strlen(str);
Length() = len > kStr255Len ? kStr255Len : len;
if (Length() > kStr255Len)
Length() = kStr255Len;
memcpy(&fStr[1], str, (size_t)Length());
} // CStr255::CStr255(char*)
//----------------------------------------------------------------------------------------
// CStr255::CStr255(long): Useful for converting OSType's into CStr255's.
//----------------------------------------------------------------------------------------
CStr255::CStr255(const long id)
{
Length() = 4;
memcpy(&fStr[1], &id, (size_t)Length());
} // CStr255::CStr255(long)
//----------------------------------------------------------------------------------------
// CStr255::Copy:
//----------------------------------------------------------------------------------------
CStr255 CStr255::Copy(short pos, short length)
{
CStr255 newString;
length = length > Length() - pos + kLengthByte ? Length() - pos + kLengthByte : length;
if (length > 0)
{
memcpy(&newString.fStr[1], &fStr[pos], (size_t)length);
newString.Length() = length;
}
else
newString = "";
return newString;
} // CStr255::Copy
//----------------------------------------------------------------------------------------
// CStr255::operator+:
//----------------------------------------------------------------------------------------
CStr255 operator+(const CString& s1,
const char* s2)
{
CStr255 newStr;
short s2Len = s2 == NULL ? 0 : (short)(strlen((const char *) s2));
if (s1.Length() + s2Len > kStr255Len)
newStr.Length() = kStr255Len;
else
newStr.Length() = s1.Length() + s2Len;
memcpy(&newStr.fStr[1], &s1.fStr[1], (size_t)(s1.Length()));
memcpy(&newStr.fStr[s1.Length() + kLengthByte], s2, newStr.Length() - s1.Length());
return newStr;
} // CStr255::operator+
//----------------------------------------------------------------------------------------
// CStr255::operator+(char*,CString):
//----------------------------------------------------------------------------------------
CStr255 operator+(const char* s1,
const CString& s2)
{
CStr255 newStr;
short s1Len = s1 == NULL ? 0 : (short)(strlen(s1));
if (s1Len + s2.Length() > kStr255Len)
newStr.Length() = kStr255Len;
else
newStr.Length() = s1Len + s2.Length();
memcpy(&newStr.fStr[1], s1, (size_t)s1Len);
memcpy(&newStr.fStr[s1Len + kLengthByte], s2.fStr + 1, newStr.Length() - s1Len);
return newStr;
} // CStr255::operator+(char*,CString)
//----------------------------------------------------------------------------------------
// CStr255::operator+(CString,CString):
//----------------------------------------------------------------------------------------
CStr255 operator+(const CString& s1,
const CString& s2)
{
CStr255 newStr;
if (s1.Length() + s2.Length() > kStr255Len)
newStr.Length() = kStr255Len;
else
newStr.Length() = s1.Length() + s2.Length();
memcpy(&newStr.fStr[1], &s1.fStr[1], (size_t)(s1.Length()));
memcpy(&newStr.fStr[s1.Length() + kLengthByte], s2.fStr + 1, newStr.Length() - s1.Length());
return newStr;
} // CStr255::operator+(CString,CString)
//----------------------------------------------------------------------------------------
// CStr255::operator +=(CString): Concatenate a string
//----------------------------------------------------------------------------------------
CStr255& CStr255::operator += (const CString& str)
{
InsertHelper (str, Length() + 1, kStr255Len);
return *this;
} // CStr255::operator +=(CString)
//----------------------------------------------------------------------------------------
// CStr255::operator +=(char*): Concatenate a string
//----------------------------------------------------------------------------------------
CStr255& CStr255::operator += (const char* str)
{
InsertHelper (str, Length() + 1, kStr255Len);
return *this;
} // CStr255::operator +=(char*)
//----------------------------------------------------------------------------------------
// CStr255::operator +=(char): Concatenate a single character
//----------------------------------------------------------------------------------------
CStr255& CStr255::operator += (const char ch)
{
if (++Length() <= kStr255Len)
fStr[Length()] = ch;
else
{
--Length();
#if qDebugMsg
fprintf(stderr, "###CStr255::operator+=: Concatenation produces CStr255 overflow.\n");
#endif
}
return *this;
} // CStr255::operator +=(char)
//----------------------------------------------------------------------------------------
// CStr255::operator =:
//----------------------------------------------------------------------------------------
CStr255& CStr255::operator = (const char* str)
{
if (str)
{
// Truncate the C CString to 255 bytes if necessary.
register size_t itsSize = strlen(str);
if (itsSize > kStr255Len)
Length() = kStr255Len;
else
Length() = (unsigned char)(itsSize);
memcpy(&fStr[1], str, (size_t)Length());
}
else
Length() = 0;
return *this;
} // CStr255::operator =
//========================================================================================
// CLASS CStr63
//========================================================================================
//----------------------------------------------------------------------------------------
// CStr63::CStr63(char*):
//----------------------------------------------------------------------------------------
CStr63::CStr63(const char* str)
{
// Truncate the C CString to 63 bytes if necessary.
Length() = str == NULL ? 0 : (unsigned char)(strlen(str));
if (Length() > kStr63Len)
Length() = kStr63Len;
memcpy(&fStr[1], str, (size_t)Length());
} // CStr63::CStr63(char*)
//----------------------------------------------------------------------------------------
// CStr63::CStr63(long):
//----------------------------------------------------------------------------------------
CStr63::CStr63(const long id)
{
Length() = 4;
memcpy(&fStr[1], &id, (size_t)Length());
} // CStr63::CStr63(long)
//----------------------------------------------------------------------------------------
// CStr63::Copy:
//----------------------------------------------------------------------------------------
CStr63 CStr63::Copy(short pos, short length)
{
CStr63 newString;
length = length > Length() - pos + kLengthByte ? Length() - pos + kLengthByte : length;
if (length > 0)
{
memcpy(&newString.fStr[1], &fStr[pos], (size_t)length);
newString.Length() = length;
}
else
newString = "";
return newString;
} // CStr63::Copy
//----------------------------------------------------------------------------------------
// CStr63::operator +=(CString): Concatenate a string
//----------------------------------------------------------------------------------------
CStr63& CStr63::operator += (const CString& str)
{
InsertHelper (str, Length() + 1, kStr63Len);
return *this;
} // CStr63::operator +=(CString)
//----------------------------------------------------------------------------------------
// CStr63::operator +=(char*): Concatenate a string
//----------------------------------------------------------------------------------------
CStr63& CStr63::operator += (const char* str)
{
InsertHelper (str, Length() + 1, kStr63Len);
return *this;
} // CStr63::operator +=(char*)
//----------------------------------------------------------------------------------------
// CStr63::operator +=(char): Concatenate a single character
//----------------------------------------------------------------------------------------
CStr63& CStr63::operator += (const char ch)
{
if (++Length() <= kStr63Len)
fStr[Length()] = ch;
else
{
--Length();
#if qDebugMsg
fprintf(stderr, "###CStr63::operator+=: Concatenation produces CStr63 overflow.\n");
#endif
}
return *this;
} // CStr63::operator +=(char)
//========================================================================================
// CLASS CStr32
//========================================================================================
//----------------------------------------------------------------------------------------
// CStr32::CStr32(char*):
//----------------------------------------------------------------------------------------
CStr32::CStr32(const char* str)
{
// Truncate the C CString to 32 bytes if necessary.
Length() = str == NULL ? 0 : (unsigned char)(strlen(str));
if (Length() > kStr32Len)
Length() = kStr32Len;
memcpy(&fStr[1], str, (size_t)Length());
} // CStr32::CStr32(char*)
//----------------------------------------------------------------------------------------
// CStr32::CStr32(long):
//----------------------------------------------------------------------------------------
CStr32::CStr32(const long id)
{
Length() = 4;
memcpy(&fStr[1], &id, (size_t)Length());
} // CStr32::CStr32(long)
//----------------------------------------------------------------------------------------
// CStr32::Copy:
//----------------------------------------------------------------------------------------
CStr32 CStr32::Copy(short pos, short length)
{
CStr32 newString;
length = length > Length() - pos + kLengthByte ? Length() - pos + kLengthByte : length;
if (length > 0)
{
memcpy(&newString.fStr[1], &fStr[pos], (size_t)length);
newString.Length() = length;
}
else
newString = "";
return newString;
} // CStr32::Copy
//----------------------------------------------------------------------------------------
// CStr32::operator +=(CString): Concatenate a string
//----------------------------------------------------------------------------------------
CStr32& CStr32::operator += (const CString& str)
{
InsertHelper (str, Length() + 1, kStr32Len);
return *this;
} // CStr32::operator +=(CString)
//----------------------------------------------------------------------------------------
// CStr32::operator +=(char*): Concatenate a string
//----------------------------------------------------------------------------------------
CStr32& CStr32::operator += (const char* str)
{
InsertHelper (str, Length() + 1, kStr32Len);
return *this;
} // CStr32::operator +=(char*)
//----------------------------------------------------------------------------------------
// CStr32::operator +=(char): Concatenate a single character
//----------------------------------------------------------------------------------------
CStr32& CStr32::operator += (const char ch)
{
if (++Length() <= kStr32Len)
fStr[Length()] = ch;
else
{
--Length();
#if qDebugMsg
fprintf(stderr,"###CStr32::operator+=: Concatenation produces CStr32 overflow.\n");
#endif
}
return *this;
} // CStr32::operator +=(char)
//========================================================================================
// CLASS CStr31
//========================================================================================
//----------------------------------------------------------------------------------------
// CStr31::CStr31(char*):
//----------------------------------------------------------------------------------------
CStr31::CStr31(const char* str)
{
// Truncate the C CString to 31 bytes if necessary.
Length() = str == NULL ? 0 : (unsigned char)(strlen(str));
if (Length() > kStr31Len)
Length() = kStr31Len;
memcpy(&fStr[1], str, (size_t)Length());
} // CStr31::CStr31(char*)
//----------------------------------------------------------------------------------------
// CStr31::CStr31(long):
//----------------------------------------------------------------------------------------
CStr31::CStr31(const long id)
{
Length() = 4;
memcpy(&fStr[1], &id, (size_t)Length());
} // CStr31::CStr31(long)
//----------------------------------------------------------------------------------------
// CStr31::CStr31(char*):
//----------------------------------------------------------------------------------------
void
CStr31::operator =(const CString& str)
{
Length() = str.Length();
if (Length() > kStr31Len)
Length() = kStr31Len;
memcpy(&fStr[1], &str.fStr[1], (size_t)Length());
}
void
CStr31::operator =(const unsigned char* str)
{
Length() = str == NULL ? 0 : str[0];
if (Length() > kStr31Len)
Length() = kStr31Len;
memcpy(&fStr[1], str + 1, (size_t)Length());
}
void
CStr31::operator =(const char* str)
{
Length() = str == NULL ? 0 : (unsigned char)(strlen(str));
if (Length() > kStr31Len)
Length() = kStr31Len;
memcpy(&fStr[1], str, (size_t)Length());
}
//----------------------------------------------------------------------------------------
// CStr31::Copy:
//----------------------------------------------------------------------------------------
CStr31 CStr31::Copy(short pos, short length)
{
CStr31 newString;
length = length > Length() - pos + kLengthByte ? Length() - pos + kLengthByte : length;
if (length > 0)
{
memcpy(&newString.fStr[1], &fStr[pos], (size_t)length);
newString.Length() = length;
}
else
newString = "";
return newString;
} // CStr31::Copy
//----------------------------------------------------------------------------------------
// CStr31::operator +=(CString): Concatenate a string
//----------------------------------------------------------------------------------------
CStr31& CStr31::operator += (const CString& str)
{
InsertHelper (str, Length() + 1, kStr31Len);
return *this;
} // CStr31::operator +=(CString)
//----------------------------------------------------------------------------------------
// CStr31::operator +=(char*): Concatenate a string
//----------------------------------------------------------------------------------------
CStr31& CStr31::operator += (const char* str)
{
InsertHelper (str, Length() + 1, kStr31Len);
return *this;
} // CStr31::operator +=(char*)
//----------------------------------------------------------------------------------------
// CStr31::operator +=(char): Concatenate a single character
//----------------------------------------------------------------------------------------
CStr31& CStr31::operator += (const char ch)
{
if (++Length() <= kStr31Len)
fStr[Length()] = ch;
else
{
--Length();
#if qDebugMsg
fprintf(stderr,"###CStr31::operator+=: Concatenation produces CStr31 overflow.\n");
#endif
}
return *this;
} // CStr31::operator +=(char)

View File

@@ -1,753 +0,0 @@
//----------------------------------------------------------------------------------------
// PascalString.h
// Copyright © 1985-1994 by Apple Computer, Inc. All rights reserved.
//----------------------------------------------------------------------------------------
// ¥ Updated by Jeroen Schalk - DTS
// ¥ Use MABlockMove, not memcpy(), memmove(), strncpy().
// ¥ Changed default constructors to initialize to empty string.
// ¥ Changed number of temporary strings from 4 to 8
// ¥ Make operator[] and unsigned char*() inline
// ¥ Fix bugs in constructors out of const unsigned char* str
// ¥ Optimized constructors to only move required data
// ¥ General cleanup of code for readability
#pragma once
#ifndef __PASCALSTRING__
#define __PASCALSTRING__
#ifndef __MEMORY__
#include <Memory.h>
#endif
#ifndef __TYPES__
#include <Types.h>
#endif
#ifndef __TEXTUTILS__
#include <TextUtils.h>
#endif
#ifndef __OSUTILS__
#include <OSUtils.h>
#endif
#ifndef __STRING__
#include <string.h>
#endif
// Forward declaration for all the CString classes.
struct CString;
struct CStr255;
struct CStr63;
struct CStr32;
struct CStr31;
typedef const CStr255& ConstCStr255Param;
typedef const CStr63& ConstCStr63Param;
typedef const CStr32& ConstCStr32Param;
typedef const CStr31& ConstCStr31Param;
#ifdef Length
#undef Length
#endif
// Some constants defining the length of each of the CString types.
const short kLengthByte = 1;
const short kBaseLen = 2;
const short kStr255Len = 255;
const short kStr63Len = 63;
const short kStr32Len = 32;
const short kStr31Len = 31;
// Number of temporary strings
const short kTempCStrings = 8;
//----------------------------------------------------------------------------------------
// MABlockMove: BlockMoveData() is fastest on PowerPC, memcpy() on 68K
//----------------------------------------------------------------------------------------
#if powerc
#define MABlockMove(srcPtr, destPtr, byteCount) \
::BlockMoveData(Ptr(srcPtr), Ptr(destPtr), Size(byteCount))
#else
#define MABlockMove(srcPtr, destPtr, byteCount) \
::memcpy(destPtr, srcPtr, size_t(byteCount))
#endif
//----------------------------------------------------------------------------------------
// MABlockMoveOverlap: BlockMoveData() is fastest on PowerPC, memmove() on 68K
//----------------------------------------------------------------------------------------
#if powerc
#define MABlockMoveOverlap(srcPtr, destPtr, byteCount) \
::BlockMoveData(Ptr(srcPtr), Ptr(destPtr), Size(byteCount))
#else
#define MABlockMoveOverlap(srcPtr, destPtr, byteCount) \
::memmove(destPtr, srcPtr, size_t(byteCount))
#endif
//----------------------------------------------------------------------------------------
// CString: Superclass of all Pascal string compatible string classes.
//----------------------------------------------------------------------------------------
typedef struct CString *CStringPtr, **CStringHandle;
struct CString
{
public:
unsigned char fStr[kBaseLen];
protected:
CString() {}
// This is here (and protected) to stop people trying to instantiate CString.
// To do so is very bad, because it's suicide to make one of these! There are
// only 2 bytes of data!
void InsertHelper(const CString& insStr, short pos, short maxLength);
void InsertHelper(const char* insStr, short pos, short maxLength);
public:
// Basic length method, inherited by all derived classes. Define one that returns a
// reference. Can be used as an lvalue and only can be applied to non-const Strings.
inline unsigned char& Length()
{
return fStr[0];
} // for non-const CString
inline unsigned char Length() const
{
return fStr[0];
} // for const CString
inline Boolean IsEmpty()
{
return fStr[0] <= 0;
} // for non-const CString
inline Boolean IsEmpty() const
{
return fStr[0] <= 0;
} // for const CString
// Character selector operator.
inline unsigned char& operator[](short pos)
{
return fStr[pos];
} // for non-const CString
inline unsigned char operator[](short pos) const
{
return fStr[pos];
} // for const CString
//------------------------------------------------------------------------------------
// CAUTION: There is a subtle difference between the (char*) and (unsigned char*)
// conversion operators. The first converts a pascal-style string to a c-style
// string. The second simply converts between two types (CString and Str55) both of
// which are pascal-style strings.
// Create a NULL terminated c-style string from a pascal-style CString. Used in
// debugging to fprintf a CString.
operator char*() const;
// Used to create a toolbox type Str255 from our CString. This is simply a type
// coercion! Both CString and Str255 are expected to be pascal-style strings.
inline operator unsigned char*()
{
return (unsigned char *) this;
} // for non-const CString
operator const unsigned char*() const; // for const CString
//------------------------------------------------------------------------------------
// Return an ID represented as a CString to the actual ID (a long).
operator long() const;
// Relational operators that are inherited by all the derived CString types. Three of
// each so that literal C Strings can be conveniently used for one of the operators as
// well as two of the derive classes as operators. These are declared here but defined
// below all the CString classes because they use constructors for CStr255 and its class
// definition has not been encountered yet.
friend inline Boolean operator==(const CString& s1,
const char* s2);
friend inline Boolean operator==(const char* s1,
const CString& s2);
friend inline Boolean operator==(const CString& s1,
const CString& s2);
friend inline Boolean operator!=(const CString& s1,
const char* s2);
friend inline Boolean operator!=(const char* s1,
const CString& s2);
friend inline Boolean operator!=(const CString& s1,
const CString& s2);
friend inline Boolean operator>(const CString& s1,
const char* s2);
friend inline Boolean operator>(const char* s1,
const CString& s2);
friend inline Boolean operator>(const CString& s1,
const CString& s2);
friend inline Boolean operator<(const CString& s1,
const char* s2);
friend inline Boolean operator<(const char* s1,
const CString& s2);
friend inline Boolean operator<(const CString& s1,
const CString& s2);
friend inline Boolean operator>=(const CString& s1,
const char* s2);
friend inline Boolean operator>=(const char* s1,
const CString& s2);
friend inline Boolean operator>=(const CString& s1,
const CString& s2);
friend inline Boolean operator<=(const CString& s1,
const char* s2);
friend inline Boolean operator<=(const char* s1,
const CString& s2);
friend inline Boolean operator<=(const CString& s1,
const CString& s2);
// Concatenation operator that are inherited by all the derived CString types. Three
// of each so that literal C Strings can be conveniently used for one of the operators
// as well as using any two classes derived from CString.
friend CStr255 operator+(const CString& s1,
const char* s2);
friend CStr255 operator+(const char* s1,
const CString& s2);
friend CStr255 operator+(const CString& s1,
const CString& s2);
// Methods that mimic the Pascal builtin CString functions for Pos, Insert and Delete.
// Note that insert and copy is implemented in the derived classes.
unsigned char Pos(const char* subStr, unsigned char startPos = 1);
unsigned char Pos(const CString& subStr, unsigned char startPos = 1);
void Delete(short pos, short length);
protected:
inline long Min(const long a, const long b) const
{
return a < b ? a : b;
}
};
//----------------------------------------------------------------------------------------
// CStr255:
//----------------------------------------------------------------------------------------
struct CStr255 : CString
{
friend struct CStr63;
friend struct CStr31;
private:
unsigned char fData[kStr255Len - 1];
public:
static const CStr255 sEmptyString;
CStr255();
CStr255(const CStr255& str);
CStr255(const CStr63& str);
CStr255(const CStr32& str);
CStr255(const CStr31& str);
CStr255(const unsigned char* str);
CStr255(const char* str);
CStr255(const long id);
// Insert and Copy roughly equivalent to the Pascal Insert and Copy functions.
void Insert(const CString& str, short pos);
void Insert(const char* str, short pos);
CStr255 Copy(short pos, short length);
// Concatenation operator
CStr255& operator +=(const CString& str);
CStr255& operator +=(const char* str);
CStr255& operator +=(const char ch);
// Assignment operator
CStr255& operator =(const CStr255& str);
CStr255& operator =(const CStr63& str);
CStr255& operator =(const CStr32& str);
CStr255& operator =(const CStr31& str);
CStr255& operator =(const unsigned char* str);
CStr255& operator =(const char aChar);
CStr255& operator =(const char* str);
};
//----------------------------------------------------------------------------------------
// CStr63:
//----------------------------------------------------------------------------------------
struct CStr63 : CString
{
friend struct CStr255;
friend struct CStr31;
private:
unsigned char fData[kStr63Len - 1];
public:
CStr63();
CStr63(const CStr255& str);
CStr63(const CStr63& str);
CStr63(const CStr32& str);
CStr63(const CStr31& str);
CStr63(const unsigned char* str);
CStr63(const char* str);
CStr63(const long id);
// Insert and Copy roughly equivalent to the Pascal Insert and Copy functions.
void Insert(const CString& str, short pos);
void Insert(const char* str, short pos);
CStr63 Copy(short pos, short length);
// Concatenation operator
CStr63& operator +=(const CString& str);
CStr63& operator +=(const char* str);
CStr63& operator +=(const char ch);
};
//----------------------------------------------------------------------------------------
// CStr32:
//----------------------------------------------------------------------------------------
struct CStr32 : CString
{
friend struct CStr255;
friend struct CStr63;
private:
unsigned char fData[kStr32Len - 1];
public:
CStr32();
inline CStr32(unsigned char length)
{
fStr[0] = length;
}
CStr32(const CStr255& str);
CStr32(const CStr63& str);
CStr32(const CStr32& str);
CStr32(const CStr31& str);
CStr32(const unsigned char* str);
CStr32(const char* str);
CStr32(const long id);
// Insert and Copy roughly equivalent to the Pascal Insert and Copy functions.
void Insert(const CString& str, short pos);
void Insert(const char* str, short pos);
CStr32 Copy(short pos, short length);
// Concatenation operator
CStr32& operator +=(const CString& str);
CStr32& operator +=(const char* str);
CStr32& operator +=(const char ch);
};
//----------------------------------------------------------------------------------------
// CStr31:
//----------------------------------------------------------------------------------------
struct CStr31 : CString
{
friend struct CStr255;
friend struct CStr63;
friend struct CStr32;
private:
unsigned char fData[kStr31Len - 1];
public:
CStr31();
inline CStr31(unsigned char length)
{
fStr[0] = length;
}
CStr31(const CStr255& str);
CStr31(const CStr63& str);
CStr31(const CStr32& str);
CStr31(const CStr31& str);
CStr31(const unsigned char* str);
CStr31(const char* str);
CStr31(const long id);
void operator =(const CString& str);
void operator =(const unsigned char* str);
void operator =(const char* str);
// Insert and Copy roughly equivalent to the Pascal Insert and Copy functions.
void Insert(const CString& str, short pos);
void Insert(const char* str, short pos);
CStr31 Copy(short pos, short length);
// Concatenation operator
CStr31& operator +=(const CString& str);
CStr31& operator +=(const char* str);
CStr31& operator +=(const char ch);
};
//----------------------------------------------------------------------------------------
// CStr255 inline function definitions
//----------------------------------------------------------------------------------------
inline CStr255::CStr255()
{
fStr[0] = 0;
}
inline CStr255::CStr255(const CStr255& str)
{
MABlockMove(str.fStr, fStr, str.Length() + kLengthByte);
}
inline CStr255::CStr255(const CStr63& str)
{
MABlockMove(str.fStr, fStr, str.Length() + kLengthByte);
}
inline CStr255::CStr255(const CStr32& str)
{
MABlockMove(str.fStr, fStr, str.Length() + kLengthByte);
}
inline CStr255::CStr255(const CStr31& str)
{
MABlockMove(str.fStr, fStr, str.Length() + kLengthByte);
}
inline CStr255::CStr255(const unsigned char* str)
{
MABlockMove(str, fStr, str[0] + kLengthByte);
}
inline CStr255& CStr255::operator = (const CStr255& str)
{
MABlockMove(str.fStr, fStr, str.Length() + kLengthByte);
return *this;
}
inline CStr255& CStr255::operator = (const CStr63& str)
{
MABlockMove(str.fStr, fStr, str.Length() + kLengthByte);
return *this;
}
inline CStr255& CStr255::operator = (const CStr32& str)
{
MABlockMove(str.fStr, fStr, str.Length() + kLengthByte);
return *this;
}
inline CStr255& CStr255::operator = (const CStr31& str)
{
MABlockMove(str.fStr, fStr, str.Length() + kLengthByte);
return *this;
}
inline CStr255& CStr255::operator = (const unsigned char* str)
{
MABlockMove(str, fStr, str[0] + kLengthByte);
return *this;
}
inline CStr255& CStr255::operator = (const char aChar)
{
Length() = (aChar) ? 1 : 0;
fStr[1] = aChar;
return *this;
}
inline void CStr255::Insert(const CString& str, short pos)
{
this->InsertHelper(str, pos, kStr255Len);
}
inline void CStr255::Insert(const char* str, short pos)
{
this->InsertHelper(str, pos, kStr255Len);
}
//----------------------------------------------------------------------------------------
// CStr63 inline function definitions
//----------------------------------------------------------------------------------------
inline CStr63::CStr63()
{
fStr[0] = 0;
}
inline CStr63::CStr63(const CStr255& str)
{
// Truncate the CStr255 to 63 bytes if necessary.
Length() = str.Length() > kStr63Len ? kStr63Len : str.Length();
MABlockMove(&str.fStr[1], &fStr[1], Length());
}
inline CStr63::CStr63(const CStr63& str)
{
MABlockMove(str.fStr, fStr, str.Length() + kLengthByte);
}
inline CStr63::CStr63(const CStr32& str)
{
MABlockMove(str.fStr, fStr, str.Length() + kLengthByte);
}
inline CStr63::CStr63(const CStr31& str)
{
MABlockMove(str.fStr, fStr, str.Length() + kLengthByte);
}
inline CStr63::CStr63(const unsigned char* str)
{
MABlockMove(str, fStr, Min(str[0] + kLengthByte, sizeof(CStr63)));
}
inline void CStr63::Insert(const CString& str, short pos)
{
this->InsertHelper(str, pos, kStr63Len);
}
inline void CStr63::Insert(const char* str, short pos)
{
this->InsertHelper(str, pos, kStr63Len);
}
//----------------------------------------------------------------------------------------
// CStr32 inline function definitions
//----------------------------------------------------------------------------------------
inline CStr32::CStr32()
{
fStr[0] = 0;
}
inline CStr32::CStr32(const CStr255& str)
{
// Truncate the CStr255 to 32 bytes if necessary.
Length() = str.Length() > kStr32Len ? kStr32Len : str.Length();
MABlockMove(&str.fStr[1], &fStr[1], Length());
}
inline CStr32::CStr32(const CStr63& str)
{
// Truncate the CStr63 to 32 bytes if necessary.
Length() = str.Length() > kStr32Len ? kStr32Len : str.Length();
MABlockMove(&str.fStr[1], &fStr[1], Length());
}
inline CStr32::CStr32(const CStr32& str)
{
MABlockMove(str.fStr, fStr, str.Length() + kLengthByte);
}
inline CStr32::CStr32(const CStr31& str)
{
MABlockMove(str.fStr, fStr, str.Length() + kLengthByte);
}
inline CStr32::CStr32(const unsigned char* str)
{
MABlockMove(str, fStr, Min(str[0] + kLengthByte, sizeof(CStr32)));
}
inline void CStr32::Insert(const CString& str, short pos)
{
this->InsertHelper(str, pos, kStr32Len);
}
inline void CStr32::Insert(const char* str, short pos)
{
this->InsertHelper(str, pos, kStr32Len);
}
//----------------------------------------------------------------------------------------
// CStr31 inline function definitions
//----------------------------------------------------------------------------------------
inline CStr31::CStr31()
{
fStr[0] = 0;
}
inline CStr31::CStr31(const CStr255& str)
{
// Truncate the CStr255 to 31 bytes if necessary.
Length() = str.Length() > kStr31Len ? kStr31Len : str.Length();
MABlockMove(&str.fStr[1], &fStr[1], Length());
}
inline CStr31::CStr31(const CStr63& str)
{
// Truncate the CStr63 to 31 bytes if necessary.
Length() = str.Length() > kStr31Len ? kStr31Len : str.Length();
MABlockMove(&str.fStr[1], &fStr[1], Length());
}
inline CStr31::CStr31(const CStr32& str)
{
// Truncate the CStr32 to 31 bytes if necessary.
Length() = str.Length() > kStr31Len ? kStr31Len : str.Length();
MABlockMove(&str.fStr[1], &fStr[1], Length());
}
inline CStr31::CStr31(const CStr31& str)
{
MABlockMove(str.fStr, fStr, str.Length() + kLengthByte);
}
inline CStr31::CStr31(const unsigned char* str)
{
MABlockMove(str, fStr, Min(str[0] + kLengthByte, sizeof(CStr31)));
}
inline void CStr31::Insert(const CString& str, short pos)
{
this->InsertHelper(str, pos, kStr31Len);
}
inline void CStr31::Insert(const char* str, short pos)
{
this->InsertHelper(str, pos, kStr31Len);
}
//----------------------------------------------------------------------------------------
// Inline friend function definitions for relational string operators.
//----------------------------------------------------------------------------------------
inline Boolean operator==(const CString& s1, const char* s2)
{
return ::RelString((ConstStr255Param)&s1, CStr255(s2), false, true) == 0;
}
inline Boolean operator==(const char* s1, const CString& s2)
{
return ::RelString(CStr255(s1), (ConstStr255Param)&s2, false, true) == 0;
}
inline Boolean operator==(const CString& s1, const CString& s2)
{
return ::RelString((ConstStr255Param)&s1, (ConstStr255Param)&s2, false, true) == 0;
}
inline Boolean operator!=(const CString& s1, const char* s2)
{
return ::RelString((ConstStr255Param)&s1, CStr255(s2), false, true) != 0;
}
inline Boolean operator!=(const char* s1, const CString& s2)
{
return ::RelString(CStr255(s1), (ConstStr255Param)&s2, false, true) != 0;
}
inline Boolean operator!=(const CString& s1, const CString& s2)
{
return ::RelString((ConstStr255Param)&s1, (ConstStr255Param)&s2, false, true) != 0;
}
inline Boolean operator>(const CString& s1, const char* s2)
{
return ::RelString((ConstStr255Param)&s1, CStr255(s2), false, true) > 0;
}
inline Boolean operator>(const char* s1, const CString& s2)
{
return ::RelString(CStr255(s1), (ConstStr255Param)&s2, false, true) > 0;
}
inline Boolean operator>(const CString& s1, const CString& s2)
{
return ::RelString((ConstStr255Param)&s1, (ConstStr255Param)&s2, false, true) > 0;
}
inline Boolean operator<(const CString& s1, const char* s2)
{
return ::RelString((ConstStr255Param)&s1, CStr255(s2), false, true) < 0;
}
inline Boolean operator<(const char* s1, const CString& s2)
{
return ::RelString(CStr255(s1), (ConstStr255Param)&s2, false, true) < 0;
}
inline Boolean operator<(const CString& s1, const CString& s2)
{
return ::RelString((ConstStr255Param)&s1, (ConstStr255Param)&s2, false, true) < 0;
}
inline Boolean operator>=(const CString& s1, const char* s2)
{
return ::RelString((ConstStr255Param)&s1, CStr255(s2), false, true) >= 0;
}
inline Boolean operator>=(const char* s1, const CString& s2)
{
return ::RelString(CStr255(s1), (ConstStr255Param)&s2, false, true) >= 0;
}
inline Boolean operator>=(const CString& s1, const CString& s2)
{
return ::RelString((ConstStr255Param)&s1, (ConstStr255Param)&s2, false, true) >= 0;
}
inline Boolean operator<=(const CString& s1, const char* s2)
{
return ::RelString((ConstStr255Param)&s1, CStr255(s2), false, true) <= 0;
}
inline Boolean operator<=(const char* s1, const CString& s2)
{
return ::RelString(CStr255(s1), (ConstStr255Param)&s2, false, true) <= 0;
}
inline Boolean operator<=(const CString& s1, const CString& s2)
{
return ::RelString((ConstStr255Param)&s1, (ConstStr255Param)&s2, false, true) <= 0;
}
#endif

View File

@@ -1,559 +0,0 @@
/*-----------------------------------------------------------------------------
StdPopup
Written 1994 Netscape Communications Corporation
Portions derived from MacApp,
Copyright © 1984-1994 Apple Computer, Inc. All rights reserved.
-----------------------------------------------------------------------------*/
// primary header
#include "PopupBox.h"
// local libraries
// cross-platform libraries
#include "xpassert.h"
#include "xp_trace.h"
// PowerPlant
#include <UDrawingState.h>
#include <URegistrar.h>
#include <LStdControl.h>
// Macintosh headers
#include <Icons.h>
#include <Memory.h>
#include <Menus.h>
#include <OSUtils.h>
#include <Traps.h>
// ANSI headers
#include <stdio.h>
#include <UGAColorRamp.h>
#include <UGraphicsUtilities.h>
#include "UFontSwitcher.h"
#include "UUTF8TextHandler.h"
#include "UPropFontSwitcher.h"
#include "UCustomizePopUp.h"
#include "LCustomizeMenu.h"
//-----------------------------------------------------------------------------
// random stuff
//-----------------------------------------------------------------------------
#define SETMODRECT(DEST,SOURCE,TOP,LEFT,BOTTOM,RIGHT) \
SetRect (&(DEST), (SOURCE).LEFT, (SOURCE).TOP, (SOURCE).RIGHT, (SOURCE).BOTTOM)
#ifndef GetMenuProc
#define GetMenuProc(menu) (*((Handle *) ((*((Ptr *) (menu))) + 0x06)))
#endif
//-----------------------------------------------------------------------------
// Discrete List Box
//-----------------------------------------------------------------------------
const Int16 fontNumber_Unknown = -1;
StdPopup::StdPopup (CGAPopupMenu * target)
: LAttachment ()
{
ThrowIfNil_(fTarget = target);
fTarget->SetNeedCustomDrawFlag(NeedCustomPopup());
mExecuteHost = false;
fMenu = nil;
fDirty = true;
}
StdPopup::~StdPopup ()
{
if (fMenu)
DisposeMenu (fMenu);
}
//
// definition
//
short
StdPopup::GetCount ()
{
return 0;
}
CStr255
StdPopup::GetText (short item)
{
char buffer [20];
sprintf (buffer, "%hi", item);
return buffer;
}
//
// interface
//
const int tlo = 18; // offset of text from left side of widget
const int tls = 23; // offset from right side of widget to left side of triangle icon
Point
StdPopup::CalcTargetFrame (short & baseline)
{
SyncMenu (fTarget->GetMacMenuH());
Point size;
size.v = /* text */ 16 + /* border */ 3;
size.h = CalcMaxWidth (fTarget->GetMacMenuH()) + tls;
StColorPenState saveColorPenState;
StTextState saveTextState;
saveColorPenState.Normalize();
saveTextState.Normalize();
FontInfo fontInfo;
GetFontInfo (&fontInfo);
baseline = 1 + fontInfo.ascent;
size.v = fontInfo.ascent+fontInfo.descent+fontInfo.leading+ 2;
return size;
}
void
StdPopup::DirtyMenu ()
{
fDirty = true;
}
//
// internal
//
short
StdPopup::CalcMaxWidth (MenuHandle aquiredMenu)
{
if (1 || fDirty)
{
Rect menuRect;
Point hitPt = {0,0};
short whichItem;
MenuDefUPP * menuProc = (MenuDefUPP*) (*aquiredMenu)->menuProc;
SInt8 theState = HGetState((*aquiredMenu)->menuProc);
HLock((*aquiredMenu)->menuProc);
CallMenuDefProc (*menuProc, mSizeMsg, aquiredMenu, &menuRect, hitPt, &whichItem);
HSetState((*aquiredMenu)->menuProc, theState);
}
return (*aquiredMenu)->menuWidth;
}
void StdPopup::DrawTruncTextBox (CStr255 text, const Rect& box)
{
/*
Truncates the text before drawing.
Does not word wrap.
*/
FontInfo fontInfo;
GetFontInfo (&fontInfo);
MoveTo (box.left, box.bottom - fontInfo.descent -1);
TruncString (box.right - box.left, text, truncEnd);
DrawString (text);
}
void StdPopup::DrawWidget (MenuHandle aquiredMenu, const Rect & widgetFrame)
{
StColorPenState saveColorPenState;
StTextState saveTextState;
saveColorPenState.Normalize();
saveTextState.Normalize();
if (GetTextTraits() != fontNumber_Unknown)
UTextTraits::SetPortTextTraits(GetTextTraits());
Rect r;
SETMODRECT(r,widgetFrame,top+1,left+1,bottom-2,right-2);
EraseRect (&r);
MoveTo (widgetFrame.left + 3, widgetFrame.bottom - 1);
LineTo (widgetFrame.right -1, widgetFrame.bottom - 1);
MoveTo (widgetFrame.right -1, widgetFrame.top + 3);
LineTo (widgetFrame.right -1, widgetFrame.bottom - 1);
SETMODRECT(r,widgetFrame,top,left,bottom-1,right-1);
FrameRect (&r);
SETMODRECT(r,widgetFrame,top-1,right-tls,top-1+16,right-tls+16);
::PlotIconID (&r, atNone, ttNone, 'cz');
short whichItem = fTarget->GetValue();
CStr255 itemText;
if (whichItem)
GetMenuItemText (aquiredMenu, whichItem, itemText);
SETMODRECT(r,widgetFrame,top+1,left+tlo,bottom-1,right-tls);
DrawTruncTextBox (itemText, r);
}
void
StdPopup::ExecuteSelf (MessageT message, void *param)
{
fTarget->SetNeedCustomDrawFlag(NeedCustomPopup());
switch (message) {
case msg_DrawOrPrint: {
// 97-06-07 pkc -- put back SyncMenu otherwise Javascript reflection back
// into popup menu list is broken
SyncMenu (fTarget->GetMacMenuH());
mExecuteHost = true;
break;
}
case msg_Click: {
SMouseDownEvent* event = (SMouseDownEvent*) param;
ThrowIfNil_(event);
{
// Determine which HotSpot was clicked
Int16 theHotSpot = fTarget->FindHotSpot(event->whereLocal);
if (theHotSpot > 0)
{
fTarget->FocusDraw();
// Track mouse while it is down
if (fTarget->TrackHotSpot(theHotSpot, event->whereLocal, event->macEvent.modifiers))
{
// Mouse released inside HotSpot
fTarget->HotSpotResult(theHotSpot);
}
}
mExecuteHost = false;
}
break;
}
}
}
void
StdPopup::SyncMenu (MenuHandle aquiredMenu)
{
if (!fDirty)
return;
int current = CountMItems (aquiredMenu);
int want = GetCount();
int add = want - current;
if (0 < add) {
for (int i = 1; i <= add; i++)
AppendMenu (aquiredMenu, "\pTest");
}
else if (add < 0) {
for (int i = 1; i <= -add; i++)
DeleteMenuItem (aquiredMenu, want + 1);
}
for (int item = 1; item <= want; item++)
{
CStr255 itemText;
itemText = GetText( item );
if ( itemText[ 1 ] == '-' )
itemText = " " + itemText;
SetMenuItemText (aquiredMenu, item, itemText );
}
if (fTarget->GetMaxValue() != want)
fTarget->SetMaxValue (want);
(*aquiredMenu)->menuWidth += tls;
fDirty = false;
}
Boolean StdPopup::NeedCustomPopup() const
{
return false;
}
ResIDT StdPopup::GetTextTraits() const
{
return fTarget->GetTextTraits();
}
/*-----------------------------------------------------------------------------
LCustomizeFontMenu
-----------------------------------------------------------------------------*/
class LCustomizeFontMenu : public LCustomizeMenu {
public:
LCustomizeFontMenu(short fontNum);
virtual void Draw (MenuHandle menu, MenuDefUPP* root, Rect *rect, Point hitPt, short *item);
virtual void Size (MenuHandle menu, MenuDefUPP* root, Rect *rect, Point hitPt, short *item);
virtual void Choose(MenuHandle menu, MenuDefUPP* root, Rect *rect, Point hitPt, short *item);
protected:
virtual void DrawItemText( Rect& itemrect, Str255 itemtext );
virtual void SetupFont() { ::TextFont(fFontNum); };
private:
short fFontNum;
};
#pragma mark == LCustomizeFontMenu ==
LCustomizeFontMenu::LCustomizeFontMenu(short fontNum)
: LCustomizeMenu()
{
fFontNum = fontNum;
}
void LCustomizeFontMenu::Draw(MenuHandle menu, MenuDefUPP* root, Rect *rect, Point hitPt, short *item)
{
SetupFont();
LCustomizeMenu::Draw(menu, root, rect, hitPt, item);
}
void LCustomizeFontMenu::Size(MenuHandle menu, MenuDefUPP* root, Rect *rect, Point hitPt, short *item)
{
SetupFont();
LCustomizeMenu::Size(menu, root, rect, hitPt, item);
}
void LCustomizeFontMenu::Choose(MenuHandle menu, MenuDefUPP* root, Rect *rect, Point hitPt, short *item)
{
SetupFont();
LCustomizeMenu::Choose(menu, root, rect, hitPt, item);
}
void LCustomizeFontMenu::DrawItemText( Rect& itemrect, Str255 itemtext )
{
SetupFont();
LCustomizeMenu::DrawItemText(itemrect,itemtext);
}
/*-----------------------------------------------------------------------------
LMultiFontTextMenu
-----------------------------------------------------------------------------*/
class LMultiFontTextMenu : public LCustomizeMenu {
public:
LMultiFontTextMenu(UMultiFontTextHandler* texthandler, UFontSwitcher* fs);
protected:
virtual void DrawItemText( Rect& itemrect, Str255 itemtext )
{ fTextHandler->DrawString(fFontSwitcher, itemtext); }
virtual short MeasureItemText(Str255 itemtext )
{ return fTextHandler->StringWidth(fFontSwitcher, itemtext); };
private:
UMultiFontTextHandler* fTextHandler;
UFontSwitcher* fFontSwitcher;
};
LMultiFontTextMenu::LMultiFontTextMenu(UMultiFontTextHandler* texthandler, UFontSwitcher* fs)
: LCustomizeMenu()
{
fTextHandler = texthandler;
fFontSwitcher = fs;
}
#pragma mark -
// ===========================================================================
// ¥ CGAPopupMenu CGAPopupMenu ¥
// ===========================================================================
// ---------------------------------------------------------------------------
// ¥ CGAPopupMenu(LStream*)
// ---------------------------------------------------------------------------
// Construct from data in a Stream
CGAPopupMenu::CGAPopupMenu(
LStream *inStream)
: mNeedCustomDraw(false),
super(inStream)
{
}
CGAPopupMenu::~CGAPopupMenu()
{
}
//-------------------------------------------------------------------------------------
// CGAPopupMenu::DrawPopupTitle
//-------------------------------------------------------------------------------------
void
CGAPopupMenu::DrawPopupTitle ()
{
if(! mNeedCustomDraw)
{ // hacky way, depend on mIsUTF8 to decide wheather we use the super class implementation
super::DrawPopupTitle();
return;
}
StColorPenState theColorPenState;
StTextState theTextState;
// ¥ Get some loal variables setup including the rect for the title
ResIDT textTID = GetTextTraitsID ();
Rect titleRect;
Str255 title;
GetCurrentItemTitle ( title );
// ¥ Figure out what the justification is from the text trait and
// get the port setup with the text traits
UTextTraits::SetPortTextTraits ( textTID );
// ¥ Setup the title justification which is always left justified
Int16 titleJust = teFlushLeft;
// ¥ Calculate the title rect
CalcTitleRect ( titleRect );
// ¥ Setup the text color which by default is black
RGBColor textColor;
::GetForeColor ( &textColor );
// ¥ Get the current item's title
Str255 currentItemTitle;
GetCurrentItemTitle ( currentItemTitle );
// ¥ Loop over any devices we might be spanning and handle the drawing
// appropriately for each devices screen depth
StDeviceLoop theLoop ( titleRect );
Int16 depth;
while ( theLoop.NextDepth ( depth ))
{
if ( depth < 4 ) // ¥ BLACK & WHITE
{
// ¥ If the control is dimmed then we use the grayishTextOr
// transfer mode to draw the text
if ( !IsEnabled ())
{
::RGBForeColor ( &UGAColorRamp::GetBlackColor () );
::TextMode ( grayishTextOr );
}
else if ( IsEnabled () && IsHilited () )
{
// ¥ When we are hilited we simply draw the title in white
::RGBForeColor ( &UGAColorRamp::GetWhiteColor () );
}
// ¥ Now get the actual title drawn with all the appropriate settings
UMultiFontTextHandler *th = UUTF8TextHandler::Instance();
UFontSwitcher *fs = UPropFontSwitcher::Instance();
FontInfo info;
th->GetFontInfo(fs, &info);
::MoveTo(titleRect.left,
(titleRect.top + titleRect.bottom + info.ascent - info.descent ) / 2);
th->DrawString(fs, currentItemTitle);
}
else // ¥ COLOR
{
// ¥ If control is selected we always draw the text in the title
// hilite color, if requested
if ( IsHilited ())
::RGBForeColor ( &UGAColorRamp::GetWhiteColor() );
// ¥ If the box is dimmed then we have to do our own version of the
// grayishTextOr as it does not appear to work correctly across
// multiple devices
if ( !IsEnabled () || !IsActive ())
{
textColor = UGraphicsUtilities::Lighten ( &textColor );
::TextMode ( srcOr );
::RGBForeColor ( &textColor );
}
// ¥ Now get the actual title drawn with all the appropriate settings
UMultiFontTextHandler *th = UUTF8TextHandler::Instance();
UFontSwitcher *fs = UPropFontSwitcher::Instance();
FontInfo info;
th->GetFontInfo(fs, &info);
::MoveTo(titleRect.left,
(titleRect.top + titleRect.bottom + info.ascent - info.descent) / 2);
th->DrawString(fs, currentItemTitle);
}
}
} // CGAPopupMenu::DrawPopupTitle
//-------------------------------------------------------------------------------------
//
// This method is used to calculate the title rect for the currently selected item in
// the popup, this title is drawn inside the popup
const Int16 gsPopup_RightInset = 24; // Used to position the title rect
const Int16 gsPopup_TitleInset = 8; // Apple specification
void
CGAPopupMenu::CalcTitleRect ( Rect &outRect )
{
if(! mNeedCustomDraw)
{ // hacky way, depend on mIsUTF8 to decide wheather we use the super class implementation
super::CalcTitleRect(outRect);
return;
}
StTextState theTextState;
StColorPenState thePenState;
Int16 bevelWidth = 2;
// ¥ Get some loal variables setup including the rect for the title
ResIDT textTID = GetTextTraitsID ();
// ¥ Get the port setup with the text traits
UTextTraits::SetPortTextTraits ( textTID );
// ¥ Figure out the height of the text for the selected font
FontInfo fInfo;
UFontSwitcher *fs = UPropFontSwitcher::Instance();
UMultiFontTextHandler *th = UUTF8TextHandler::Instance();
th->GetFontInfo(fs, &fInfo);
Int16 textHeight = fInfo.ascent + fInfo.descent;
Int16 textBaseline = fInfo.ascent;
// ¥ Get the local inset frame rectangle
CalcLocalPopupFrameRect ( outRect );
::InsetRect ( &outRect, 0, bevelWidth );
outRect.right -= gsPopup_RightInset;
outRect.left += gsPopup_TitleInset;
// ¥ Adjust the title rect to match the height of the font
outRect.top += (( UGraphicsUtilities::RectHeight ( outRect ) - textBaseline) / 2) - 2;
outRect.bottom = outRect.top + textHeight;
} // CGAPopupMenu::CalcTitleRect
//=====================================================================================
// ¥¥ POPUP MENU HANDLING
//-------------------------------------------------------------------------------------
// CGAPopupMenu::HandlePopupMenuSelect
//-------------------------------------------------------------------------------------
void
CGAPopupMenu::HandlePopupMenuSelect ( Point inPopupLoc,
Int16 inCurrentItem,
Int16 &outMenuID,
Int16 &outMenuItem )
{
MenuHandle menuH = GetMacMenuH ();
ThrowIfNil_ ( menuH );
if ( menuH )
{
// BUG#69583: Make sure we *do* use the system font so that the current
// item will be checked properly as in Akbar. So we don't do the LMSetSysFont
// stuff that LGAPopup does.
// ¥ Handle the actual insertion into the hierarchical menubar
::InsertMenu ( menuH, hierMenu );
FocusDraw ();
// ¥ Before we display the menu we need to make sure that we have the
// current item marked in the menu. NOTE: we do NOT use the current
// item that has been passed in here as that always has a value of one
// in the case of a pulldown menu
SetupCurrentMenuItem ( menuH, GetValue () );
// ¥ Then we call PopupMenuSelect and wait for it to return
Int32 result;
// hacky way, depend on mIsUTF8 to decide which implementation to use
if (!mNeedCustomDraw)
{
result = ::PopUpMenuSelect(menuH, inPopupLoc.v, inPopupLoc.h, inCurrentItem );
}
else
{
LMultiFontTextMenu utf8menu(UUTF8TextHandler::Instance(), UPropFontSwitcher::Instance());
result = UCustomizePopUp::PopUpMenuSelect(menuH, &utf8menu, inPopupLoc.v, inPopupLoc.h, inCurrentItem);
}
// ¥ Then we extract the values from the returned result
// these are then passed back out to the caller
outMenuID = HiWord ( result );
outMenuItem = LoWord ( result );
// ¥ Finally get the menu removed
::DeleteMenu ( GetPopupMenuResID ());
}
} // CGAPopupMenu::HandlePopupMenuSelect

View File

@@ -1,125 +0,0 @@
/*-----------------------------------------------------------------------------
StdPopup
Written 1994 Netscape Communications Corporation
Portions derived from MacApp,
Copyright © 1984-1994 Apple Computer, Inc. All rights reserved.
-----------------------------------------------------------------------------*/
#pragma once
#ifndef _DISCRETE_LIST_BOX_
#define _DISCRETE_LIST_BOX_
/*-----------------------------------------------------------------------------
StdPopup
We need non-text menu items, so we will use a custom menu definition
procedure.
We need to have a dynamic number of menus, so we will use PopupMenuSelect.
static Handle sMenuProc
In order to use a custom procedure, we need to dispatch from a handle.
This handle is constant and therefore can be global.
static StdPopup * sMenuObject
We can't figure out which object called PopupMenuSelect, so we will set
this global right before calling it. We will never get a menu callback
except from within PopupMenuSelect.
Handle fDefaultMenuProc
This is the normal definition procedure for the menu. We'll use it to
handle most operations; only overriding drawing.
MenuHandle fMenu
We only need a menu widget when we're calling PopupMenuSelect; we could
actually just have 1 of them and reuse it amongst any number of objects, or
give each item its own widget.
// short item = 0;
// DoMenuProc (mSizeMsg, m, gZeroRect, gZeroPt, item);
-----------------------------------------------------------------------------*/
#include <Menus.h>
#include <LAttachment.h>
#include <LGAPopup.h>
#include "PascalString.h"
class LP_Glypher;
#define dlbPopupMenuID 'cz'
class CGAPopupMenu;
// StdPopup
class StdPopup: public LAttachment {
public:
StdPopup (CGAPopupMenu* target);
~StdPopup ();
// definition
virtual short GetCount ()=0;
virtual CStr255 GetText (short item)=0;
// interface
Point CalcTargetFrame (short & baseline);
void DirtyMenu ();
ResIDT GetTextTraits() const;
ResIDT SetTextTraits(ResIDT inTextTraits);
protected:
MenuHandle GetMacMenuH();
virtual Boolean NeedCustomPopup() const;
virtual void SyncMenu (MenuHandle aquiredMenu);
virtual short CalcMaxWidth (MenuHandle aquiredMenu);
void DrawWidget (MenuHandle aquiredMenu, const Rect & widgetFrame);
virtual void ExecuteSelf (MessageT message, void *param);
// do ScriptCode Menu Trick on IM:MacTbxEss Page3-46
// Give subclass a chance to do it.
virtual void SetMenuItemText(MenuHandle aquiredMenu, int item, CStr255& itemText)
{ ::SetMenuItemText(aquiredMenu, item, itemText); } ;
// Let us have a chance to override PopUpMenuSelect
virtual long PopUpMenuSelect(MenuHandle aquiredMenu, short top, short left, short popUpItem)
{ return ::PopUpMenuSelect( aquiredMenu, top, left, popUpItem); };
virtual void DrawTruncTextBox (CStr255 text, const Rect& box);
friend class TempUseMenu;
CGAPopupMenu* fTarget;
MenuHandle fMenu; // this is used if we're doing the UTF8 stuff
private:
Boolean fDirty;
};
class CGAPopupMenu : public LGAPopup {
friend class StdPopup;
public:
enum { class_ID = 'Gatt' };
typedef LGAPopup super;
CGAPopupMenu(LStream* inStream);
virtual ~CGAPopupMenu();
void SetTextTraits(ResIDT inTextTraitsID) { mTextTraitsID = inTextTraitsID; }
ResIDT GetTextTraits() const { return mTextTraitsID; }
void SetNeedCustomDrawFlag(Boolean needCustomDraw) { mNeedCustomDraw = needCustomDraw; }
// For UTF8
//----<< ¥ DRAWING ¥ >>------------------------------------------------------------
virtual void DrawPopupTitle ();
virtual void CalcTitleRect ( Rect &outRect ); // ¥ OVERRIDE
protected:
//----<< ¥ POPUP MENU HANDLING ¥ >>------------------------------------------------
virtual void HandlePopupMenuSelect ( Point inPopupLoc,
Int16 inCurrentItem,
Int16 &outMenuID,
Int16 &outMenuItem );
private:
Boolean mNeedCustomDraw;
};
#endif /* _DISCRETE_LIST_BOX_ */

File diff suppressed because it is too large Load Diff

View File

@@ -1,34 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// RandomFrontEndCrap.h
#pragma once
extern char reconnectHack[];
extern char mailNewsReconnect[];
Boolean IsInternalImage(const char* url);
Boolean IsMailToLink(const char* url);
Boolean IsMailNewsReconnect(const char* url);
Boolean IsInternalTypeLink(const char* url);
Boolean IsDocInfoWindow(const char* inName);
Boolean IsViewSourceWindow(const char* inName);
Boolean IsSpecialBrowserWindow(const char* inName);

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