Compare commits

..

2118 Commits

Author SHA1 Message Date
beard%netscape.com
d30ae9fd55 commented out code that sets prototype of JavaAdapter instance, which broke calls to Java methods, toString(), etc.
git-svn-id: svn://10.0.0.236/branches/ClassGen_BRANCH@48180 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 07:55:31 +00:00
norris%netscape.com
14b0e9035d Avoid throwing exception for NervousText.
git-svn-id: svn://10.0.0.236/branches/ClassGen_BRANCH@48005 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:18:27 +00:00
beard%netscape.com
0e53f7d205 copy all of the arguments, instead of 1..(args.length-1)
git-svn-id: svn://10.0.0.236/branches/ClassGen_BRANCH@47891 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 01:06:22 +00:00
norris%netscape.com
b6c0881d76 Changes for the NervousText applet example.
git-svn-id: svn://10.0.0.236/branches/ClassGen_BRANCH@46577 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 17:57:58 +00:00
(no author)
7144ca2ee4 This commit was manufactured by cvs2svn to create branch 'ClassGen_BRANCH'.
git-svn-id: svn://10.0.0.236/branches/ClassGen_BRANCH@44416 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 01:05:43 +00:00
rogerl%netscape.com
fc6899029a Fixes for ecma 2 regexp - adding context to init
git-svn-id: svn://10.0.0.236/trunk@44415 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 01:05:42 +00:00
hshaw%netscape.com
fe554f0351 purge temporary ifdef NET_SOCKET_PROVIDER_BUILD
git-svn-id: svn://10.0.0.236/trunk@44414 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 01:04:09 +00:00
rogerl%netscape.com
a613d89edf Fixes for ecma 2 regexp - adding context to init.
git-svn-id: svn://10.0.0.236/trunk@44413 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 01:03:06 +00:00
rogerl%netscape.com
a9012d852d New errors for ecma 2 regexp.
git-svn-id: svn://10.0.0.236/trunk@44412 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 01:01:19 +00:00
rogerl%netscape.com
62abb35e5e Fixes for ecma 2 - add context to regexp init.
git-svn-id: svn://10.0.0.236/trunk@44411 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 01:00:09 +00:00
rogerl%netscape.com
32c00a9325 Fixed \<digits> interpretation for ecma 2 compliance.
git-svn-id: svn://10.0.0.236/trunk@44410 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 00:59:21 +00:00
rogerl%netscape.com
ea511e5725 Fixed test case - was assuming a length limit on octal sequence rather than
a value limit. (this is version 120 specific in any case)


git-svn-id: svn://10.0.0.236/trunk@44409 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 00:56:05 +00:00
briano%netscape.com
840ef70707 Automated update
git-svn-id: svn://10.0.0.236/trunk@44408 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 00:48:32 +00:00
briano%netscape.com
88aba39f41 Fix for HP-UX bustage when building with gcc.
git-svn-id: svn://10.0.0.236/trunk@44407 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 00:47:46 +00:00
dougt%netscape.com
3986620a66 fixing build bustage.
git-svn-id: svn://10.0.0.236/trunk@44406 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 00:19:00 +00:00
akhil.arora%sun.com
9a95e53b25 Timothy Tully implemented equals and hashCode methods for Node.
git-svn-id: svn://10.0.0.236/trunk@44405 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 23:54:26 +00:00
mscott%netscape.com
3c54da1f9b I think the clobber windows build may break because I took out the wrong header file from this makefile (the file was still in
my dist directory when I built which is why it worked). In anticipation of eventual breakage, I'm fixing it now.
a=gramps.


git-svn-id: svn://10.0.0.236/trunk@44404 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 23:48:09 +00:00
slamm%netscape.com
18acc92a69 Use JavaScript to do refresh for both static and cgi versions.
git-svn-id: svn://10.0.0.236/trunk@44403 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 23:37:31 +00:00
radha%netscape.com
f45ac86139 Really put in that id for the go menu
git-svn-id: svn://10.0.0.236/trunk@44402 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 23:27:27 +00:00
nisheeth%netscape.com
e63340baee Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@44401 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 23:09:52 +00:00
radha%netscape.com
110bf7ff24 Add a id to 'Go' menu
git-svn-id: svn://10.0.0.236/trunk@44400 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 23:01:30 +00:00
pnunn%netscape.com
5f29b03cf2 Removing an assert. pnunn.
git-svn-id: svn://10.0.0.236/trunk@44399 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 23:01:16 +00:00
slamm%netscape.com
aa00a96efa Use chrome urls for history.css and history.js
git-svn-id: svn://10.0.0.236/trunk@44398 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:52:37 +00:00
morse%netscape.com
d04ec37c07 minor formatting fix
git-svn-id: svn://10.0.0.236/trunk@44397 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:51:05 +00:00
tao%netscape.com
95eac88715 Export strres-test.xul; add clobber rules to .win
git-svn-id: svn://10.0.0.236/trunk@44396 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:47:02 +00:00
morse%netscape.com
d82a6b8d43 Give notification about wallet's ability to capture data
git-svn-id: svn://10.0.0.236/trunk@44395 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:46:31 +00:00
sspitzer%netscape.com
c3ae319f1c changes to get a news server to work with a userName. fixes bug #12407.
git-svn-id: svn://10.0.0.236/trunk@44394 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:39:40 +00:00
slamm%netscape.com
08aee7169a Recopy menus from navigator.xul to fix dtd errors.
git-svn-id: svn://10.0.0.236/trunk@44393 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:39:11 +00:00
leif%netscape.com
a15b2ca2ac *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@44392 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:31:51 +00:00
dougt%netscape.com
d9427f7af6 Fix for bug 10435. Everything except CopyFrom() and MoveFrom()
git-svn-id: svn://10.0.0.236/trunk@44391 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:30:59 +00:00
leif%netscape.com
f195fcc27e Merged v1.3.x to trunk, for v1.4 release
git-svn-id: svn://10.0.0.236/trunk@44387 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:30:55 +00:00
pnunn%netscape.com
4a71e978e3 Modifications for Necko and general cleanup of api. pnunn.
git-svn-id: svn://10.0.0.236/trunk@44386 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:30:42 +00:00
nisheeth%netscape.com
96d6fad95b Adding the methods for creating entity, documenttype, named node maps, notations. Contributed by Johnny Stenback (jst@citec.fi).
git-svn-id: svn://10.0.0.236/trunk@44385 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:26:57 +00:00
nisheeth%netscape.com
2e6802aa83 added files: mozilla/layout/xml/content/src/nsXMLEntity.cpp, mozilla/layout/xml/content/src/nsXMLNotation.cpp, mozilla/layout/xml/content/src/nsXMLDocumentType.cpp, mozilla/layout/xml/content/src/nsXMLNamedNodeMap.cpp
git-svn-id: svn://10.0.0.236/trunk@44384 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:23:25 +00:00
nisheeth%netscape.com
112ab82227 Adding files that implement the entity, notation, documenttype and namednodemap interfaces. Contributed by Johnny Stenback (jst@citec.fi).
git-svn-id: svn://10.0.0.236/trunk@44383 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:22:36 +00:00
mscott%netscape.com
a5b1d7a102 Bug #7811 -- nsISmtpUrl is not an idl file.
git-svn-id: svn://10.0.0.236/trunk@44382 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:18:30 +00:00
pnunn%netscape.com
8de7eecffa Modifications for Necko and general cleanup of api. pnunn.
git-svn-id: svn://10.0.0.236/trunk@44381 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:18:27 +00:00
mscott%netscape.com
febcd8306b Bug #7811 --. nsISmtpUrl is now an idl file.
git-svn-id: svn://10.0.0.236/trunk@44380 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:16:47 +00:00
mscott%netscape.com
553fe6af7f Bug #7811. turn nsISmtpUrl into an IDL file
git-svn-id: svn://10.0.0.236/trunk@44379 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:16:29 +00:00
mscott%netscape.com
bb83fe7445 Bug #7811 --> turn nsISmtpUrl.h into a fully scriptable IDL file. This involved changing several apis in the interface.
git-svn-id: svn://10.0.0.236/trunk@44378 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:15:52 +00:00
nisheeth%netscape.com
2c74c4732d Checking in patch from Johnny Stenback (jst@citec.fi) that exposes notation and entity creation DOM interfaces.
git-svn-id: svn://10.0.0.236/trunk@44377 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:15:45 +00:00
harishd%netscape.com
1b68d91169 Fix for bug#s 3737, 12062, 9059.
git-svn-id: svn://10.0.0.236/trunk@44376 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:14:13 +00:00
waterson%netscape.com
06eafa1f9d Okay, checking back in my fix for the filespec and iterator.
git-svn-id: svn://10.0.0.236/trunk@44375 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:08:55 +00:00
waterson%netscape.com
9fea830d47 Add 'directory' component to the build on Mac.
git-svn-id: svn://10.0.0.236/trunk@44374 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:06:41 +00:00
waterson%netscape.com
e3b2033cd1 Update shared libs for opt build.
git-svn-id: svn://10.0.0.236/trunk@44373 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:05:14 +00:00
valeski%netscape.com
8a0e23c643 added stream converter test dir and accompanying files (win build only for now). fixed an out of order param in teh service implementation as well
git-svn-id: svn://10.0.0.236/trunk@44372 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:04:05 +00:00
pollmann%netscape.com
553c2ed0ef Warning cleanups.
git-svn-id: svn://10.0.0.236/trunk@44371 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:03:34 +00:00
pollmann%netscape.com
b351bc6391 Split out AddOption/RemoveOption(), plus warning cleanups.
git-svn-id: svn://10.0.0.236/trunk@44370 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:02:42 +00:00
pollmann%netscape.com
4a4383a122 Split out AddOption/RemoveOption(), plus bug 11676 type cleanups.
git-svn-id: svn://10.0.0.236/trunk@44369 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:01:25 +00:00
ssu%netscape.com
1175a0e357 fixing bug #10187 and #10188
git-svn-id: svn://10.0.0.236/trunk@44368 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:56:14 +00:00
pollmann%netscape.com
7c57974948 Rewrite of AddOption/RemoveOption(), adding nsISelectControlFrame interface.
git-svn-id: svn://10.0.0.236/trunk@44367 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:55:56 +00:00
saari%netscape.com
bfcb315cb0 Fix for bug 12145 and enabling check marks on mac menus. Both mac only changes.
git-svn-id: svn://10.0.0.236/trunk@44366 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:55:02 +00:00
valeski%netscape.com
a62eeae9e5 Added start request event firing, and we now maintain the initial response code from a multi-line response
git-svn-id: svn://10.0.0.236/trunk@44365 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:53:27 +00:00
mjudge%netscape.com
72808fb95e changes to allow selection in "dead" space between frames. still need work on "outside" and not in the window at all, but this is a very good chunk of the issue and it will solve many many bugs on my place. good for dogfood as well :)
git-svn-id: svn://10.0.0.236/trunk@44364 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:51:47 +00:00
dougt%netscape.com
58f84fa5ea more changes as suggested by warren@netscape.com
git-svn-id: svn://10.0.0.236/trunk@44363 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:51:32 +00:00
putterman%netscape.com
8c722b4a08 fix up twisty rules.
git-svn-id: svn://10.0.0.236/trunk@44362 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:51:21 +00:00
putterman%netscape.com
3327fede55 Add timing for parsing mailbox.
git-svn-id: svn://10.0.0.236/trunk@44361 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:50:44 +00:00
putterman%netscape.com
5b67404b48 Add images for columns and flagged messages.
git-svn-id: svn://10.0.0.236/trunk@44360 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:50:23 +00:00
nhotta%netscape.com
2bf9c274da Bug fix #11789, changed a dll name.
git-svn-id: svn://10.0.0.236/trunk@44359 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:50:01 +00:00
putterman%netscape.com
8828b186eb Work on MarkFlagged and new columns.
git-svn-id: svn://10.0.0.236/trunk@44358 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:49:19 +00:00
putterman%netscape.com
f6fa9ccc38 added new columns.
git-svn-id: svn://10.0.0.236/trunk@44357 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:48:55 +00:00
putterman%netscape.com
adaf89d5b7 Work on MarkFlagged.
git-svn-id: svn://10.0.0.236/trunk@44356 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:48:44 +00:00
nhotta%netscape.com
9f41bfc64d Adding a new detector.
git-svn-id: svn://10.0.0.236/trunk@44355 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:48:36 +00:00
putterman%netscape.com
e16e12de4e ToggleFlaggedMessage implemented.
git-svn-id: svn://10.0.0.236/trunk@44354 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:48:24 +00:00
troy%netscape.com
d5b529edc0 Added case selectors for NS_STYLE_BORDER_STYLE_HIDDEN. Treated just like
NS_STYLE_BORDER_STYLE_NONE


git-svn-id: svn://10.0.0.236/trunk@44353 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:47:55 +00:00
warren%netscape.com
fec1c8e29c Added new nsIPipe/nsPipe2 stuff inside #ifdef NSPIPE2.
git-svn-id: svn://10.0.0.236/trunk@44352 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:47:23 +00:00
putterman%netscape.com
1a770d51fb work on MarkFlagged.
git-svn-id: svn://10.0.0.236/trunk@44351 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:47:22 +00:00
mscott%netscape.com
cd0fa2200e Not part of the buidl yet. an idl file to replace nsISmtpUrl.h
git-svn-id: svn://10.0.0.236/trunk@44350 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:47:17 +00:00
tague%netscape.com
bc4326cccd Added support for WM_INPUTLANGCHANGEREQUEST and WM_INPUTLANGCHANGE. Fixes bug #12317.
git-svn-id: svn://10.0.0.236/trunk@44349 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:46:43 +00:00
briano%netscape.com
d87897479e Automated update
git-svn-id: svn://10.0.0.236/trunk@44348 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:46:21 +00:00
putterman%netscape.com
ca61f2a938 Don't prompt for password on Biff.
git-svn-id: svn://10.0.0.236/trunk@44347 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:46:13 +00:00
valeski%netscape.com
fa6574def4 added pr logging to ftp
git-svn-id: svn://10.0.0.236/trunk@44346 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:46:09 +00:00
nhotta%netscape.com
86195ee6ba New file (not part of the build).
git-svn-id: svn://10.0.0.236/trunk@44345 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:46:04 +00:00
slamm%netscape.com
4906ea5776 Add for dtd files.
git-svn-id: svn://10.0.0.236/trunk@44344 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:45:36 +00:00
slamm%netscape.com
3fd17b44fc Check for Makefile.in before Makefile.
git-svn-id: svn://10.0.0.236/trunk@44343 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:45:30 +00:00
mscott%netscape.com
6aab9c0e8c more nsCString optimization work.
git-svn-id: svn://10.0.0.236/trunk@44342 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:45:27 +00:00
slamm%netscape.com
3935e6e01e Removed items from DIRS that do not exist.
git-svn-id: svn://10.0.0.236/trunk@44341 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:45:26 +00:00
putterman%netscape.com
8ca9acc986 Added MarkFlagged interface.
git-svn-id: svn://10.0.0.236/trunk@44340 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:45:21 +00:00
valeski%netscape.com
59ced7d42f fixed mem leak
git-svn-id: svn://10.0.0.236/trunk@44339 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:45:20 +00:00
slamm%netscape.com
e62a0d660c Add --enable-incremental-makefiles. Has gmake generate the Makefiles just before it uses them. Eliminates a need for allmakefiles.sh.
git-svn-id: svn://10.0.0.236/trunk@44338 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:45:06 +00:00
mscott%netscape.com
6728ed9184 some more nsCString optimizations.
git-svn-id: svn://10.0.0.236/trunk@44337 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:44:49 +00:00
despotdaemon%netscape.com
98f3d34701 Pseudo-automatic update of changes made by mwyner@ogre.com.
git-svn-id: svn://10.0.0.236/trunk@44336 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:31:16 +00:00
hshaw%netscape.com
61d9805509 fix build bustage, argument type mismatch
git-svn-id: svn://10.0.0.236/trunk@44335 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 20:34:23 +00:00
despotdaemon%netscape.com
17f30c71d9 Pseudo-automatic update of changes made by pepper@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@44334 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 20:32:32 +00:00
dougt%netscape.com
24ff470d00 renaming nsIDirectoryIterator.idl to nsIDirectoryEnumerator.idl
git-svn-id: svn://10.0.0.236/trunk@44333 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 20:22:21 +00:00
waterson%netscape.com
e320e03b0d Backed out per don's request.
git-svn-id: svn://10.0.0.236/trunk@44332 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 20:07:12 +00:00
radha%netscape.com
db5da15dd8 Add a id to Go menu
git-svn-id: svn://10.0.0.236/trunk@44331 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 20:06:54 +00:00
radha%netscape.com
077078284f Add an id to the Go menu for adding session history
git-svn-id: svn://10.0.0.236/trunk@44330 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 20:06:36 +00:00
waterson%netscape.com
f0be95271d Can't keep a ref to iterator's filespec, and then advance the iterator; need to make a copy.
git-svn-id: svn://10.0.0.236/trunk@44329 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 19:58:07 +00:00
pnunn%netscape.com
b9d0d7d29d Modifications needed for Necko and general clean up of imglib api. pnunn.
git-svn-id: svn://10.0.0.236/trunk@44328 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 19:53:32 +00:00
pnunn%netscape.com
18af2e89fe Modifications for Necko and clean up of api. pnunn.
git-svn-id: svn://10.0.0.236/trunk@44327 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 19:47:46 +00:00
pnunn%netscape.com
76b2ad2303 Modifications needed for Necko and clean up of api. pnunn.
git-svn-id: svn://10.0.0.236/trunk@44326 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 19:46:39 +00:00
pnunn%netscape.com
740f80a41b Modifications needed for Necko and cleaning up api to imglib. pnunn.
git-svn-id: svn://10.0.0.236/trunk@44325 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 19:44:45 +00:00
slamm%netscape.com
f137a2e60c Unix builds are working fine, but Mac and windows are flaking. Revert just in case.
git-svn-id: svn://10.0.0.236/trunk@44324 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 19:37:51 +00:00
troy%netscape.com
d4fd1d71b2 Reworked ReparentFrameView() to make it more efficient
git-svn-id: svn://10.0.0.236/trunk@44323 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 19:26:03 +00:00
danm%netscape.com
ca52f77be0 removing (faulty) GLOWCODE directives
git-svn-id: svn://10.0.0.236/trunk@44322 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 19:18:20 +00:00
varada%netscape.com
91116874fc horizontal scroll bar removed from help
git-svn-id: svn://10.0.0.236/trunk@44321 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 19:15:57 +00:00
varada%netscape.com
08e131fd2f CCK Help files - altered to deal with Unix line endings
git-svn-id: svn://10.0.0.236/trunk@44320 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 19:15:35 +00:00
hshaw%netscape.com
7b86e200b0 purging temporary NET_SOCKET_PROVIDER_BUILD ifdef, dougt checked in mac build support
git-svn-id: svn://10.0.0.236/trunk@44319 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 19:04:58 +00:00
karnaze%netscape.com
420c185451 new regression tests
git-svn-id: svn://10.0.0.236/trunk@44318 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:56:19 +00:00
chuang%netscape.com
67368a7280 Add public header file
git-svn-id: svn://10.0.0.236/trunk@44317 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:54:47 +00:00
jdunn%netscape.com
90448a720b removing 'typedef' since there is no 'name' associated with it and HP don't like it
git-svn-id: svn://10.0.0.236/trunk@44316 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:54:36 +00:00
chuang%netscape.com
aca6553591 Add public header
git-svn-id: svn://10.0.0.236/trunk@44315 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:50:23 +00:00
jdunn%netscape.com
2f077b96e2 HP does not allow the last enum to have a 'comma' after it.
git-svn-id: svn://10.0.0.236/trunk@44314 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:49:43 +00:00
mscott%netscape.com
eaeb6bff71 Fix pedantic build breakage for unix.
git-svn-id: svn://10.0.0.236/trunk@44313 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:38:21 +00:00
harishd%netscape.com
912f0bc457 Commenting out a pre-condition in EndLoad() method.
Approved by waterson.


git-svn-id: svn://10.0.0.236/trunk@44312 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:37:05 +00:00
slamm%netscape.com
dc3756789e Append date to checkout log (don't overwrite it).
git-svn-id: svn://10.0.0.236/trunk@44311 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:36:37 +00:00
harishd%netscape.com
90e9a69f1f Fix for bug# 10609 and partial fix for 10593.
git-svn-id: svn://10.0.0.236/trunk@44310 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:35:05 +00:00
pavlov%netscape.com
30ec336bcb isHidden was returning backwards results
git-svn-id: svn://10.0.0.236/trunk@44309 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:32:06 +00:00
akkana%netscape.com
131d318ad4 Revise the doc encoder and content sink APIs yet again to make it easier
to add new flags (pass a flag in the constructor, rather than specific
booleans.  This in order to fix:
11249: Add flag to write only the body in html output.


git-svn-id: svn://10.0.0.236/trunk@44308 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:30:19 +00:00
slamm%netscape.com
eaf61180bb Fix typo
git-svn-id: svn://10.0.0.236/trunk@44307 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:24:05 +00:00
troy%netscape.com
0ca4f8fd5a Changed GetLinkState() to remember that it failed to load the global
history service and that way it won't repeatedly try and fail. That was
causing performance problems for viewer


git-svn-id: svn://10.0.0.236/trunk@44306 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:20:30 +00:00
slamm%netscape.com
9ac86e45d2 Add warnings, but delay execution with 'at' command.
git-svn-id: svn://10.0.0.236/trunk@44299 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 17:20:55 +00:00
ramiro%netscape.com
eb0a262cf1 Fix for the sunos build.
git-svn-id: svn://10.0.0.236/trunk@44298 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 15:26:31 +00:00
terry%mozilla.org
3cda6c72ec Patch suggested by dbaron@fas.harvard.edu -- kick the javascript on
loading, in case the default query has some relevant fields set.


git-svn-id: svn://10.0.0.236/trunk@44297 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 15:24:50 +00:00
briano%netscape.com
86a056eb36 Automated update
git-svn-id: svn://10.0.0.236/trunk@44296 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 15:00:47 +00:00
ramiro%netscape.com
9ce5728cdb Set the timer libs in one place.
git-svn-id: svn://10.0.0.236/trunk@44295 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 14:58:43 +00:00
ramiro%netscape.com
33921a846d Set the timer lib flags in one place.
git-svn-id: svn://10.0.0.236/trunk@44294 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 14:54:59 +00:00
dcone%netscape.com
6ab12637d1 Fixed some warnings, and some roundoff for the curves
git-svn-id: svn://10.0.0.236/trunk@44293 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 14:51:16 +00:00
ramiro%netscape.com
37891187d9 Set the timer lib flags in one place.
git-svn-id: svn://10.0.0.236/trunk@44292 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 14:46:43 +00:00
ramiro%netscape.com
24eb80b721 Add a config makefile that can be set by the toplevel config.
git-svn-id: svn://10.0.0.236/trunk@44291 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 14:43:44 +00:00
dveditz%netscape.com
497c1545fb add XPIDL dependencies on the tools to fix depend-build problems
git-svn-id: svn://10.0.0.236/trunk@44290 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 14:42:37 +00:00
ramiro%netscape.com
2c86158056 Why do these makefile keep getting ressurected ?
git-svn-id: svn://10.0.0.236/trunk@44289 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 14:35:50 +00:00
ramiro%netscape.com
cef461ce96 Fix for bug 11964. Leaking timers. This time ita a real fix. Refcnt was
one too much cause of an extra QueryInterface() call.


git-svn-id: svn://10.0.0.236/trunk@44288 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 14:09:48 +00:00
buster%netscape.com
bc5e5ff015 better use of the editor wrapping APIs
better initial placement of the caret in text controls


git-svn-id: svn://10.0.0.236/trunk@44287 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 13:52:45 +00:00
buster%netscape.com
d2cf706ddc added a special case to the output text rules for an empty document
(one that contains the bogus node)


git-svn-id: svn://10.0.0.236/trunk@44286 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 13:48:08 +00:00
ramiro%netscape.com
f18465ef7b Yank debugging code.
git-svn-id: svn://10.0.0.236/trunk@44285 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 12:37:40 +00:00
ramiro%netscape.com
6f6e53efa5 Add real link time dependencies for $(PROGRAM).
git-svn-id: svn://10.0.0.236/trunk@44284 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 12:37:15 +00:00
karnaze%netscape.com
112f671dfe replaced debug flags with class. removed compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@44283 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 12:01:31 +00:00
hyatt%netscape.com
f12db0b33c Fix for editor typing bustage (part 2).
git-svn-id: svn://10.0.0.236/trunk@44282 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 10:20:35 +00:00
mccabe%netscape.com
86cd5841a3 Add ## between _to and function name in generated NS_FORWARD_NSIFOO macro
git-svn-id: svn://10.0.0.236/trunk@44281 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 10:00:52 +00:00
hyatt%netscape.com
6c03cded4b Keyboard navigation is online.
git-svn-id: svn://10.0.0.236/trunk@44280 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 09:57:11 +00:00
warren%netscape.com
0aaed36a23 Fixed to work like all the other MakeAbsolute implementations.
git-svn-id: svn://10.0.0.236/trunk@44279 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 09:45:06 +00:00
hyatt%netscape.com
34ef63e304 Fix for typing bustage in editor.
git-svn-id: svn://10.0.0.236/trunk@44278 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 09:37:28 +00:00
shaver%netscape.com
cc25b49eab initial RDF NS_DECL_* spam
git-svn-id: svn://10.0.0.236/trunk@44277 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 09:11:48 +00:00
jfrancis%netscape.com
99de773e68 refactoring text insertion code; indent/outdent now work with lists and list items.
git-svn-id: svn://10.0.0.236/trunk@44276 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 08:56:51 +00:00
jfrancis%netscape.com
0d61526430 fix for bug #12337: not counting non-editable nodes when searching for whitespace.
git-svn-id: svn://10.0.0.236/trunk@44275 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 08:55:28 +00:00
hyatt%netscape.com
7a528da36c More fun with keyboard navigation.
git-svn-id: svn://10.0.0.236/trunk@44274 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 08:51:55 +00:00
warren%netscape.com
b6f8885a30 Replaced nsPipe2.h with nsIPipe.idl
git-svn-id: svn://10.0.0.236/trunk@44273 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 08:46:32 +00:00
warren%netscape.com
466d3cb0e7 Added nsIPipe.idl, replacing nsPipe2.h. Fixed up some nsPipe2.cpp problems. Fixed bug in nsSegmentedBuffer segment growth. Extended TestPipes test case to cover much much more.
git-svn-id: svn://10.0.0.236/trunk@44272 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 08:45:17 +00:00
hyatt%netscape.com
b1f650e6ba Beginnings of keyboard navigation in the tree widget. No, it doesn't work
yet.


git-svn-id: svn://10.0.0.236/trunk@44271 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 08:14:21 +00:00
alecf%netscape.com
019404feb8 fix GetUsername to return the right value
git-svn-id: svn://10.0.0.236/trunk@44270 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 08:12:23 +00:00
alecf%netscape.com
3925fe073a add a helper routine to get the Username out of the news URI (will eventually go away)
git-svn-id: svn://10.0.0.236/trunk@44269 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 08:10:59 +00:00
ftang%netscape.com
ccbbfc8b6e fix 12378
git-svn-id: svn://10.0.0.236/trunk@44268 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 07:38:00 +00:00
ftang%netscape.com
85eaada20b add two new constant
git-svn-id: svn://10.0.0.236/trunk@44267 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 07:17:46 +00:00
alecf%netscape.com
34e407f104 fix some uninitialized variables
git-svn-id: svn://10.0.0.236/trunk@44266 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 07:03:00 +00:00
hshaw%netscape.com
e8ed2050d5 NS_DECL_NSIFOO changes
git-svn-id: svn://10.0.0.236/trunk@44265 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 06:50:41 +00:00
nisheeth%netscape.com
0551dd45cf Fixed a warning on Linux.
git-svn-id: svn://10.0.0.236/trunk@44264 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 06:47:11 +00:00
waterson%netscape.com
74c3a36f86 Add some commentary.
git-svn-id: svn://10.0.0.236/trunk@44263 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 06:45:06 +00:00
waterson%netscape.com
d91bbeabb7 Oops. Left off the 'file-type' specifier in the '200' line.
git-svn-id: svn://10.0.0.236/trunk@44262 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 06:41:35 +00:00
ftang%netscape.com
53d911b775 fix word breaker
git-svn-id: svn://10.0.0.236/trunk@44261 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 06:35:32 +00:00
waterson%netscape.com
d6704b409d Whoops. This was supposed to be upper-case.
git-svn-id: svn://10.0.0.236/trunk@44260 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 05:59:41 +00:00
waterson%netscape.com
eaa2d32d45 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@44259 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 05:57:22 +00:00
tbogard%aol.net
100df168a8 Moved interfaces to their new home xpcom/appshell.
git-svn-id: svn://10.0.0.236/trunk@44258 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 05:48:38 +00:00
tbogard%aol.net
e1ce0eba22 Moving Event loop interfaces to it's new home from xpcom/apps. Implementation will start here. Also renamed msg to be event to be less windows-ish.
git-svn-id: svn://10.0.0.236/trunk@44257 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 05:47:30 +00:00
waterson%netscape.com
d71ddacfcf Add chrome registry entries for 'directory' component.
git-svn-id: svn://10.0.0.236/trunk@44256 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 05:23:38 +00:00
waterson%netscape.com
8bd2a39628 Add 'directory' component to Unix build.
git-svn-id: svn://10.0.0.236/trunk@44255 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 05:22:19 +00:00
rjc%netscape.com
77cc96e5c3 Search UI cleanup.
git-svn-id: svn://10.0.0.236/trunk@44254 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 05:16:56 +00:00
waterson%netscape.com
aa37dde0db Add 'directory' component to the win32 build.
git-svn-id: svn://10.0.0.236/trunk@44253 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 05:16:34 +00:00
rjc%netscape.com
f4b71cda7d Add icons.css into build.
git-svn-id: svn://10.0.0.236/trunk@44252 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 05:16:22 +00:00
briano%netscape.com
17ee344d4c Automated update
git-svn-id: svn://10.0.0.236/trunk@44251 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 05:16:01 +00:00
cls%seawood.org
e2c6c42a57 Removed checks for stddef.h & stdlib.h as they aren't needed for mozilla proper and they break HP & AIX in the jpeg module.
git-svn-id: svn://10.0.0.236/trunk@44250 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 05:09:42 +00:00
waterson%netscape.com
82da269fe3 Fix in-memory datasource aggregation.
git-svn-id: svn://10.0.0.236/trunk@44249 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:59:58 +00:00
warren%netscape.com
ca6d411ae7 added files: mozilla/xpcom/io/nsIPipe.idl
git-svn-id: svn://10.0.0.236/trunk@44248 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:59:26 +00:00
warren%netscape.com
7a7fd24d13 Added -- supercedes nsIBuffer.h
git-svn-id: svn://10.0.0.236/trunk@44247 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:54:56 +00:00
hshaw%netscape.com
3dbb29b05b enable socket provider code
git-svn-id: svn://10.0.0.236/trunk@44246 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:54:34 +00:00
hshaw%netscape.com
a765f900ab now that we are sure the socket Makefile got regenerated on linux and solaris, we can reference the output
git-svn-id: svn://10.0.0.236/trunk@44245 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:54:03 +00:00
troy%netscape.com
d6778b807e Fixed the case of the stylesheet PI
git-svn-id: svn://10.0.0.236/trunk@44244 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:44:38 +00:00
bienvenu%netscape.com
326e1f270b remove doing_filters
git-svn-id: svn://10.0.0.236/trunk@44243 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:41:52 +00:00
bienvenu%netscape.com
872b031abd remove DOING_FILTERS, cleanup shutdown of mail session and writing out folder cache
git-svn-id: svn://10.0.0.236/trunk@44242 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:41:05 +00:00
hshaw%netscape.com
6ff3bfddab let's make sure configure gets run
git-svn-id: svn://10.0.0.236/trunk@44241 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:26:51 +00:00
waterson%netscape.com
6b2785d24c Add nsDirectoryIndexStream to the build.
git-svn-id: svn://10.0.0.236/trunk@44240 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:24:35 +00:00
bienvenu%netscape.com
d10044de46 clear progress when it meteors stop
git-svn-id: svn://10.0.0.236/trunk@44239 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:24:19 +00:00
waterson%netscape.com
f6dac19333 Add nsDirectoryIndexStream.cpp to the build.
git-svn-id: svn://10.0.0.236/trunk@44238 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:23:55 +00:00
bienvenu%netscape.com
8d5e69ed13 get rid of DOING_FILTERS #define
git-svn-id: svn://10.0.0.236/trunk@44237 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:23:31 +00:00
karnaze%netscape.com
633cb9cc8f bugs 9123, 10002 - percentage height tables exclude margin/border/padding of HTML and BODY
git-svn-id: svn://10.0.0.236/trunk@44236 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:17:05 +00:00
waterson%netscape.com
007e6c3720 Fix refcounting bug that was causing crash; get rid of aggregation cruft; use nsEscape instead of home-rolled stuff.
git-svn-id: svn://10.0.0.236/trunk@44235 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:16:33 +00:00
hshaw%netscape.com
39ca206cdb remove temporary ifdef
git-svn-id: svn://10.0.0.236/trunk@44234 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:16:15 +00:00
hshaw%netscape.com
f21f5a74fe fix Makefile generation for netwerk subdirectories
git-svn-id: svn://10.0.0.236/trunk@44233 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:13:41 +00:00
karnaze%netscape.com
f4fe1a7a0c new regression tests
git-svn-id: svn://10.0.0.236/trunk@44232 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:10:20 +00:00
dougt%netscape.com
85d906f782 a real iid.
git-svn-id: svn://10.0.0.236/trunk@44231 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 03:59:07 +00:00
dougt%netscape.com
48a17c572c Adding export of netwerk/socket/base idl files
git-svn-id: svn://10.0.0.236/trunk@44230 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 03:44:30 +00:00
dougt%netscape.com
182a455996 adding socket/base
git-svn-id: svn://10.0.0.236/trunk@44229 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 03:43:37 +00:00
dougt%netscape.com
fb22e54b59 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@44228 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 03:42:59 +00:00
ramiro%netscape.com
8f92dfa6d8 DIE DAMMIT
git-svn-id: svn://10.0.0.236/trunk@44227 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 03:34:13 +00:00
alecf%netscape.com
08c4cb2a02 fix solaris bustage
git-svn-id: svn://10.0.0.236/trunk@44226 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 03:06:07 +00:00
sfraser%netscape.com
da7c019867 Remove nsBuildID. h from MANIFEST as a fix for build bustage
git-svn-id: svn://10.0.0.236/trunk@44225 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 02:46:36 +00:00
mscott%netscape.com
8eb502a62d Fix the build breakage due to some wallet changes in an effort to help get the tree green again.
git-svn-id: svn://10.0.0.236/trunk@44224 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 02:34:57 +00:00
ramiro%netscape.com
049a76ebdc backout back buffer cleanup for now.
git-svn-id: svn://10.0.0.236/trunk@44223 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 01:48:15 +00:00
waterson%netscape.com
939345c018 Initial revision. Not yet in the build.
git-svn-id: svn://10.0.0.236/trunk@44222 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 01:32:19 +00:00
alecf%netscape.com
59bf46431f oops, removing an extra method (fixes breakage)
git-svn-id: svn://10.0.0.236/trunk@44221 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 01:19:25 +00:00
srinivas%netscape.com
1bba6792e5 The notifyCount value should be updated only for successful read and write
operations. Checkin for Colin Blake <colin@theblakes.com>.


git-svn-id: svn://10.0.0.236/trunk@44220 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 01:16:59 +00:00
dougt%netscape.com
3d0bb2d6e1 Adding a comment to remind ourselves that at one time these were const.
git-svn-id: svn://10.0.0.236/trunk@44219 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 01:14:44 +00:00
cyeh%netscape.com
43e517b6ea fix perl badness on macintosh, also change nsBuildID.h to be updated only for opt builds
git-svn-id: svn://10.0.0.236/trunk@44217 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 01:10:10 +00:00
sfraser%netscape.com
eaa4041229 Added nsTreeOuterFrame.cpp for hyatt
git-svn-id: svn://10.0.0.236/trunk@44216 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 01:06:43 +00:00
hyatt%netscape.com
23e56e09df Adding two files. Tree might go red, since i forgot to add these.
git-svn-id: svn://10.0.0.236/trunk@44215 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 01:04:33 +00:00
sfraser%netscape.com
2e512831ca Make chooseDirectory return a file URL string, like chooseFile does.
git-svn-id: svn://10.0.0.236/trunk@44214 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 01:01:38 +00:00
cyeh%netscape.com
65f5be1c86 export new header nsBuildID.h
git-svn-id: svn://10.0.0.236/trunk@44213 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 01:00:35 +00:00
sfraser%netscape.com
fb1cee7a7e Make sure we initialize members of the base widget
git-svn-id: svn://10.0.0.236/trunk@44212 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 01:00:01 +00:00
mscott%netscape.com
e6562edf8a nsString updates --> nsString(eOneByte) --> nsCString
git-svn-id: svn://10.0.0.236/trunk@44211 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:59:56 +00:00
sfraser%netscape.com
abe9dd4f5d Make sure that mAttributeList is initialized to null.
git-svn-id: svn://10.0.0.236/trunk@44210 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:59:30 +00:00
cyeh%netscape.com
14d028d5f6 removing bogus build number, setting 0000000000 to remove ambiguity
git-svn-id: svn://10.0.0.236/trunk@44209 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:59:22 +00:00
cyeh%netscape.com
b1da84ff3f changing nsBuildID.h so that it does the right thing w/regards to rebuilds
git-svn-id: svn://10.0.0.236/trunk@44208 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:56:04 +00:00
mscott%netscape.com
d69c01df78 nsString(eOneByte) --> nsCString nsString(eTwoByte) --> nsString, nsString2 --> nsString changes
git-svn-id: svn://10.0.0.236/trunk@44207 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:52:36 +00:00
waterson%netscape.com
0fa0bf6dd7 Treat CBufDescriptors as 'const' so that they may be inlined.
git-svn-id: svn://10.0.0.236/trunk@44206 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:52:32 +00:00
mscott%netscape.com
fbe4dbe416 cleanup some of the interfaces to make the service scriptable
git-svn-id: svn://10.0.0.236/trunk@44204 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:51:56 +00:00
tbogard%aol.net
2957e9ac6e Fixed NS_ENSURE macros to use PR_BEGIN_MACRO and PR_END_MACRO. Also removed indentation before #.
git-svn-id: svn://10.0.0.236/trunk@44203 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:48:43 +00:00
morse%netscape.com
945caddfc9 remove wallet's auto-capturing
git-svn-id: svn://10.0.0.236/trunk@44202 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:48:16 +00:00
dougt%netscape.com
fe70c4bdd6 First cut of an IDL for a replace of the nsDirectoryIterator class.
git-svn-id: svn://10.0.0.236/trunk@44201 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:47:41 +00:00
dougt%netscape.com
f96c91fe01 Adding Append() and ResolveSymlink()
git-svn-id: svn://10.0.0.236/trunk@44200 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:47:02 +00:00
hyatt%netscape.com
fb9c8df111 Making a tree outer frame that is constructed instead of a table outer frame
(for trees only of course).


git-svn-id: svn://10.0.0.236/trunk@44199 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:44:21 +00:00
hyatt%netscape.com
48d980b7c9 Patching a focus problem on web shell windows when no content area is contained in
a XUL file.


git-svn-id: svn://10.0.0.236/trunk@44198 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:43:31 +00:00
pavlov%netscape.com
8c379d48cd initial work on doing filtering
git-svn-id: svn://10.0.0.236/trunk@44197 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:43:27 +00:00
pavlov%netscape.com
bfe3280055 fix clipboard brokeness on unix
git-svn-id: svn://10.0.0.236/trunk@44196 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:43:12 +00:00
hyatt%netscape.com
d3d2d0ed27 Fixing the focusable content method so that only trees (and not tree cells)
are focusable.


git-svn-id: svn://10.0.0.236/trunk@44195 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:43:03 +00:00
hyatt%netscape.com
3758e82e94 Making focus changes on mouse downs crawl up a parent chain to find the nearest
enclosing focusable content.  Allows composite widgets to still receive the focus.


git-svn-id: svn://10.0.0.236/trunk@44194 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:42:38 +00:00
hyatt%netscape.com
3af8b5569f Patching an error in the key event handling.
git-svn-id: svn://10.0.0.236/trunk@44192 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:42:02 +00:00
hyatt%netscape.com
5f948fde31 Tweaks to trees.
git-svn-id: svn://10.0.0.236/trunk@44191 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:41:21 +00:00
briano%netscape.com
1f0d91d2a6 Cleaned it up and made it descend into unix_services for all Unix platforms.
git-svn-id: svn://10.0.0.236/trunk@44190 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:38:01 +00:00
briano%netscape.com
c49c0a9db9 Cleanup.
git-svn-id: svn://10.0.0.236/trunk@44189 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:37:05 +00:00
briano%netscape.com
e0fb855b82 Other files use nsIUnixToolkitService.h, so this now gets built on all Unix platforms.
git-svn-id: svn://10.0.0.236/trunk@44188 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:36:32 +00:00
dougt%netscape.com
906b7e41d3 modifing to match changes in nsNetModule api.
git-svn-id: svn://10.0.0.236/trunk@44187 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:36:06 +00:00
sdagley%netscape.com
c362f004e1 We now propogate the return value received from NewChannelFromURI rather than just returning NS_OK from nsChromeProtocolHandler::NewChannel. This fixes the crash when opening bookmarks on Mac with a missing bookmarks.dtd file (and probably other similiar ones). We still try to open a null content window in this case but Nisheeth has a bug logged (# unknown) to fix that.
git-svn-id: svn://10.0.0.236/trunk@44185 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:35:10 +00:00
dougt%netscape.com
84a203e284 Making nsNetModuleMgr use proxy.
Clean up nsNetModuleMgr API.
Change http to use new API.


git-svn-id: svn://10.0.0.236/trunk@44184 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:34:51 +00:00
briano%netscape.com
e66ff78234 Slight rewrite to allow other platforms to build the toolkit_service stuff without problems.
git-svn-id: svn://10.0.0.236/trunk@44183 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:34:47 +00:00
danm%netscape.com
f5c677c2b2 Make editor windows unparented. 'fixes' (or conceals) bug 12094.
git-svn-id: svn://10.0.0.236/trunk@44182 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:33:39 +00:00
jdunn%netscape.com
d659b31764 HP requires a newline at the end of the file
git-svn-id: svn://10.0.0.236/trunk@44181 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:33:18 +00:00
jdunn%netscape.com
e7ef97d53a HP requires a newline at the end
git-svn-id: svn://10.0.0.236/trunk@44180 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:32:35 +00:00
jdunn%netscape.com
54cfedfb1a HP/IBM native compilers can't have defines, redefined (these are now in
the compiler command as  -D's)


git-svn-id: svn://10.0.0.236/trunk@44179 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:31:38 +00:00
alecf%netscape.com
0a1b65a323 fix a minor leak and convert nsIMsgIncomingServer to a nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@44178 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:31:33 +00:00
dougt%netscape.com
9d9481b9d6 Bug Fixes to xpcom/proxy. Thanks jband for debuging this with me!
git-svn-id: svn://10.0.0.236/trunk@44177 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:30:55 +00:00
alecf%netscape.com
07e890d521 fix leak from redundant SetKey calls
git-svn-id: svn://10.0.0.236/trunk@44176 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:29:55 +00:00
mscott%netscape.com
7b59f1b2d9 Add a do_QueryInterface to a call in AsyncRead. This fixes an assertion I keep getting whenever I bring up the browser.
git-svn-id: svn://10.0.0.236/trunk@44175 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:29:24 +00:00
alecf%netscape.com
7cb250ce22 fix most popular leak in messenger!
git-svn-id: svn://10.0.0.236/trunk@44174 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:28:55 +00:00
hangas%netscape.com
313a4ebc26 Fixed two more problems with address book.
git-svn-id: svn://10.0.0.236/trunk@44173 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:28:03 +00:00
slamm%netscape.com
c1d968b195 Load config before setting up environment.
git-svn-id: svn://10.0.0.236/trunk@44172 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:23:31 +00:00
leaf%mozilla.org
6069cc033f Backing out change.
git-svn-id: svn://10.0.0.236/trunk@44171 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:23:00 +00:00
leaf%mozilla.org
5b00e4adac Backing out changes that are causing massive leaks till the changes
can be fixed.


git-svn-id: svn://10.0.0.236/trunk@44170 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:22:31 +00:00
briano%netscape.com
4631b49fd1 Added viewer to the 'exclude list'.
git-svn-id: svn://10.0.0.236/trunk@44169 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 23:46:37 +00:00
cyeh%netscape.com
c4e2ac506e moving nsBuildID.h to new home. not a part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@44166 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 22:58:17 +00:00
hangas%netscape.com
6528282ac0 Fixed address book crashes and failures due to <tree> changes this weekend. a=leaf
git-svn-id: svn://10.0.0.236/trunk@44163 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 21:35:22 +00:00
rods%netscape.com
2f2abdfe8f Fixes crash on start up of mail news
git-svn-id: svn://10.0.0.236/trunk@44162 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 20:59:08 +00:00
despotdaemon%netscape.com
d2fe63fbc4 Pseudo-automatic update of changes made by fergus@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@44161 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 20:25:38 +00:00
akhil.arora%sun.com
419d2df4df 1. Keep up with interface change in nsIDocumentLoaderObserver.
2. Fix lots of bugs.
3. Implement Entities and Notations.


git-svn-id: svn://10.0.0.236/trunk@44160 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 19:27:48 +00:00
terry%mozilla.org
79155b8a2f Removed incorrect munging of the directory name.
git-svn-id: svn://10.0.0.236/trunk@44159 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 18:01:43 +00:00
hshaw%netscape.com
5905a5e9cd backout reference to socket provider library until I can figure out why it isn't being built
git-svn-id: svn://10.0.0.236/trunk@44158 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 15:29:58 +00:00
hshaw%netscape.com
85323f60a3 backout change until I can figure out why socket subdirectory isn't building
git-svn-id: svn://10.0.0.236/trunk@44157 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 15:28:43 +00:00
hshaw%netscape.com
264c693e42 enable build for socket provider - thanks Andreas Otte
git-svn-id: svn://10.0.0.236/trunk@44156 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 15:01:12 +00:00
brade%netscape.com
8d5d057227 diffs from pete@postpagan.com (cleanup and alignment css for image dialog)
git-svn-id: svn://10.0.0.236/trunk@44155 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 15:00:59 +00:00
brade%netscape.com
155487089b diffs from pete@postpagan.com (cleanup and alignment fixes)
git-svn-id: svn://10.0.0.236/trunk@44154 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 14:59:46 +00:00
brade%netscape.com
45c2e9306c diffs from pete@postpagan.com (cleanup and alignment fixes); also fix for enable/disable of dialog based on imageType rather than the existence of a character in the source file
git-svn-id: svn://10.0.0.236/trunk@44153 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 14:58:54 +00:00
brade%netscape.com
854e19c99d changes from pete@postpagan.com
git-svn-id: svn://10.0.0.236/trunk@44152 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 14:56:57 +00:00
hshaw%netscape.com
5c6c09d197 initial checkin
git-svn-id: svn://10.0.0.236/trunk@44151 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 14:40:24 +00:00
hshaw%netscape.com
8cd90e8152 build with socket provider - thanks Andreas Otte
git-svn-id: svn://10.0.0.236/trunk@44150 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 14:38:31 +00:00
hshaw%netscape.com
e20f58951b link with socket provider base library
git-svn-id: svn://10.0.0.236/trunk@44149 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 14:37:37 +00:00
hshaw%netscape.com
5173e7af39 list makefiles for socket provider
git-svn-id: svn://10.0.0.236/trunk@44148 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 14:35:44 +00:00
hshaw%netscape.com
b34c418e48 initial checkin - thanks Andreas Otte
git-svn-id: svn://10.0.0.236/trunk@44147 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 14:34:41 +00:00
putterman%netscape.com
a9bb547b83 Twisties go next to folder name instead of having their own column.
git-svn-id: svn://10.0.0.236/trunk@44146 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 14:23:30 +00:00
hshaw%netscape.com
113f86c907 conditionally build socket provider until Mac build works - thanks Andreas Otte
git-svn-id: svn://10.0.0.236/trunk@44145 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 14:20:23 +00:00
rods%netscape.com
10872d8951 Adde code to return the nsListControlFrame frame when adding frames to the combobox. This fixes Bug #11693
git-svn-id: svn://10.0.0.236/trunk@44144 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 14:05:39 +00:00
rods%netscape.com
30e2ad4948 Added GetDropDown method to return the nsListControlframe
git-svn-id: svn://10.0.0.236/trunk@44143 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 14:05:37 +00:00
Dale.Stansberry%Nexwarecorp.com
3bf22e140e - Fixed a DrawingSurface destructor problem
- Added fail-safe in CheckFont...


git-svn-id: svn://10.0.0.236/trunk@44142 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 13:53:43 +00:00
blizzard%redhat.com
4078f0da04 take out some extra XSync() calls and _Xdebug symbol. should make it a bit faster. also, if an X event is passed in and we don't know anything about the window then don't crash.
git-svn-id: svn://10.0.0.236/trunk@44141 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 12:50:53 +00:00
Jerry.Kirk%Nexwarecorp.com
323391d5a6 remove unused tab widget and tooltip widget as they have never been used
git-svn-id: svn://10.0.0.236/trunk@44140 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 12:15:57 +00:00
scc%netscape.com
56d5ad0b43 got rid of |NS_IMPL_ISUPPORTS|, where possible, in favor of |NS_IMPL_ISUPPORTS0| or ...1 according to the specific use; got rid of |NS_DEFINE_IID| where possible, or where it should have been |NS_DEFINE_CID|; fixed bad implementations of |QueryInterface|, where possible. Built, tested apprunner, reviewed the changes with hyatt (since he was around to look) before checking in
git-svn-id: svn://10.0.0.236/trunk@44139 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 10:14:16 +00:00
scc%netscape.com
8850ce2142 fixed tabs
git-svn-id: svn://10.0.0.236/trunk@44138 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 10:07:16 +00:00
rjc%netscape.com
6a33a37708 Add a default menubar and a few default menuitems.
git-svn-id: svn://10.0.0.236/trunk@44137 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 09:18:08 +00:00
rjc%netscape.com
ddcd734083 Still more search UI tweakage.
git-svn-id: svn://10.0.0.236/trunk@44136 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 09:02:56 +00:00
rjc%netscape.com
298ea54b6e A few more small search UI tweaks.
git-svn-id: svn://10.0.0.236/trunk@44135 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 08:50:41 +00:00
gagan%netscape.com
e7aff9dbb2 We dont need this macro here now. Its available in nsCRT for all to use.
git-svn-id: svn://10.0.0.236/trunk@44134 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 08:30:55 +00:00
gagan%netscape.com
b83f3c5666 Added the helper macro CRTFREEIF. Works for both char* and PRUnichar*. Saves
typing code... and adds obfuscation too! Wow. Alright RJC stop reading this
and get back to work.


git-svn-id: svn://10.0.0.236/trunk@44133 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 08:27:42 +00:00
rjc%netscape.com
0082c3f2bf Even more search UI tweaks.
git-svn-id: svn://10.0.0.236/trunk@44132 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 08:27:05 +00:00
briano%netscape.com
58d618397c Automated update
git-svn-id: svn://10.0.0.236/trunk@44131 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 08:15:20 +00:00
rjc%netscape.com
91b7fb9e7d More search UI tweaking so that any given search engine's HTML is displayable. Just JS changes.
git-svn-id: svn://10.0.0.236/trunk@44130 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 08:12:36 +00:00
rjc%netscape.com
ff6e66a823 Save HTML page results for any given engine.
git-svn-id: svn://10.0.0.236/trunk@44129 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 08:11:42 +00:00
cls%seawood.org
de51af2153 Fixed setting of MOZ_MONOLITHIC_TOOLKIT.
Added new option: --enable-random-options .
This option will randomly invoke a select number of other build options.  The purpose of this option is to encourage the testing of some of our non-common build options by making it easy.  In theory, every option should work (given a constraint or two) or should be removed.  Currently, the additional options selected will override the ones passed on the command line.


git-svn-id: svn://10.0.0.236/trunk@44128 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 08:08:57 +00:00
jband%netscape.com
ab520c184c Switched to newer style NS_IMPL_* macros. Fixed some warnings.
git-svn-id: svn://10.0.0.236/trunk@44127 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 08:01:33 +00:00
jband%netscape.com
d8db397370 changed a comment
git-svn-id: svn://10.0.0.236/trunk@44126 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 07:58:19 +00:00
hyatt%netscape.com
d9c84e2373 Implemented element-level capturing in the XUL DOM.
git-svn-id: svn://10.0.0.236/trunk@44125 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 07:26:57 +00:00
jband%netscape.com
d38b37eed5 changed all those pesky instances of 'NULL' to 'nsnull'
git-svn-id: svn://10.0.0.236/trunk@44124 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 07:16:50 +00:00
rjc%netscape.com
31185f0e01 Tweak search UI. Just XUL/JS/CSS changes.
git-svn-id: svn://10.0.0.236/trunk@44123 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 07:06:19 +00:00
buster%netscape.com
d73d1687de preliminary support for text area wrap
install text control's event listeners ahead of the editor's own default listeners.


git-svn-id: svn://10.0.0.236/trunk@44122 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 06:46:08 +00:00
buster%netscape.com
d25319c9c2 Split out installing the editor's own event handler as a separate step.
The owner of the editor can now initialize the editor,
set up its own listeners if it wants to, then the editor will set up it's own
backstop listeners as part of PostCreate().
The backstop key listener now ignores ENTER for single line text controls.
Ugly to have to do it here, it would be better if the owner could just swallow the key event.


git-svn-id: svn://10.0.0.236/trunk@44121 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 06:42:04 +00:00
waterson%netscape.com
637ade40c5 Fix VC5.0 bustage.
git-svn-id: svn://10.0.0.236/trunk@44120 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 05:33:20 +00:00
hyatt%netscape.com
5affef5cf7 Tweaking capturing. Still doesn't work for elements though.
git-svn-id: svn://10.0.0.236/trunk@44119 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 05:32:55 +00:00
hyatt%netscape.com
9e91bd5950 Teaching the RDF element about the concept of being focusable.
git-svn-id: svn://10.0.0.236/trunk@44118 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 05:20:14 +00:00
putterman%netscape.com
c6f3366ca3 Change resultspane to use onselect.
git-svn-id: svn://10.0.0.236/trunk@44117 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 05:16:48 +00:00
karnaze%netscape.com
679313adbb new regression test
git-svn-id: svn://10.0.0.236/trunk@44116 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 05:02:38 +00:00
karnaze%netscape.com
6af013e1ae bug 11026 - rounding error on balancing when max element size is too large.
git-svn-id: svn://10.0.0.236/trunk@44115 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 04:41:30 +00:00
waterson%netscape.com
0e7192a469 Add xpfe/components/directory/Makefile.
git-svn-id: svn://10.0.0.236/trunk@44114 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 04:20:45 +00:00
waterson%netscape.com
a48e5e6a58 Make it work.
git-svn-id: svn://10.0.0.236/trunk@44113 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 04:20:28 +00:00
waterson%netscape.com
f9dacb03b1 Clean up Unix compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@44112 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 04:19:48 +00:00
ramiro%netscape.com
6355d15e51 Fix for gcc 2.7.
git-svn-id: svn://10.0.0.236/trunk@44111 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 03:54:04 +00:00
waterson%netscape.com
0c5c5d2171 Initial revision. Not yet part of the build.
git-svn-id: svn://10.0.0.236/trunk@44110 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 03:48:53 +00:00
putterman%netscape.com
c089c54ddc Changes to use onselect in threadpane. Make Next Message and Next Unread Message work
as well.


git-svn-id: svn://10.0.0.236/trunk@44109 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 02:58:28 +00:00
hshaw%netscape.com
4ec3fed3e2 fix depend file generation
git-svn-id: svn://10.0.0.236/trunk@44108 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 02:14:16 +00:00
hyatt%netscape.com
757a174cb7 Fix for bug 9839.
git-svn-id: svn://10.0.0.236/trunk@44107 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 02:09:01 +00:00
mccabe%netscape.com
11fd6c8b36 Remove unused explicit NS_DECL_IFOO declarations from %{C++ blocks in the header files; these are replaced by xpidl-generated NS_DECL_NSIFOO macros.
git-svn-id: svn://10.0.0.236/trunk@44106 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 01:41:52 +00:00
mccabe%netscape.com
630184ab54 Move remaining implementations in xpfe to using NS_DECL_NSIFOO.
git-svn-id: svn://10.0.0.236/trunk@44105 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 01:28:33 +00:00
troy%netscape.com
76ad73a855 Removed nsString object that was defined but never used
git-svn-id: svn://10.0.0.236/trunk@44104 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 01:15:57 +00:00
hyatt%netscape.com
975c5951bb Fix for several bugs (12299, 12289, 12295).
git-svn-id: svn://10.0.0.236/trunk@44103 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 01:13:29 +00:00
mccabe%netscape.com
21c708fc47 Move uses xpfe/components interfaces to using NS_DECL_NSIFOO macro. Several interfaces in xpfe/components declared their own NS_DECL_IFOO macros; I moved those to generated NS_DECL_NSIFOO and will remove the definitions in a subsequent checkin to prevent any risk of mid-checkin skew.
git-svn-id: svn://10.0.0.236/trunk@44102 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 01:07:33 +00:00
blizzard%redhat.com
e4eaafe27b add example of how to handle a size allocation change
git-svn-id: svn://10.0.0.236/trunk@44101 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 00:52:31 +00:00
troy%netscape.com
d0af2de549 Changed diagnostic code to DEBUG_troy instead of NS_DEBUG so it doesn't
slow down all debug builds. Show be done with NSPR loggin instead...


git-svn-id: svn://10.0.0.236/trunk@44100 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 00:37:10 +00:00
blizzard%redhat.com
8c0161b9b9 fix build for xlib embedding
git-svn-id: svn://10.0.0.236/trunk@44099 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 00:30:42 +00:00
jband%netscape.com
b854f5b075 - Move reflected result codes into Components.results - populated dynamically.
- Throw nsIXPCException objects rather than strings into JS.
- Better and more information in exceptions - including names of result codes and call stack.
- Added nsIJSErrorReport as attachment to exceptions for JS errors.
- Exceptions thrown in JS now get properly translated into result codes.
- Exceptions thrown JS->native->JS get propagated.
- Added per thread nsIXPConnect::[G,S]etPendingException.
- Added XPCConvert::JSValToXPCException - still needs better handling JS exception objects.
- Added XPCConvert::JSErrorToXPCException.
- No longer eat JS errrors in wrapped JS code called from native code.
- Declare xpconnect result codes in nsIXPConnect.h.
- Changed format of xpc.msg to give error names and descriptions.
- Fixed extraneous semicolons on XPC_IMPLEMENT_* macro usage.
- Using NS_IMPL_ISUPPORTS2 for nsIXPCScriptable declarations.
- Improve refcounting in xpccomponents.
- Turned some common code into macros.
- Converting some interfaces to use mccabe's NS_IMPL_* macros.
- Cleanup lots of trailing whitespace.
- Fixed idl comments.


git-svn-id: svn://10.0.0.236/trunk@44098 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 23:56:42 +00:00
karnaze%netscape.com
2ccead2f78 removed assertions in new incremental layout methods
git-svn-id: svn://10.0.0.236/trunk@44097 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 23:56:39 +00:00
mccabe%netscape.com
afea99f4a0 Replace declarations of interface methods in implementation classes with xpidl-generated NS_DECL_NSIFOO.
Remainder of the netwerk portion of the NS_DECL_NSIFOO spam.


git-svn-id: svn://10.0.0.236/trunk@44096 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 23:52:07 +00:00
morse%netscape.com
e452b974a6 fix potential dereferencing problems
git-svn-id: svn://10.0.0.236/trunk@44095 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 23:45:35 +00:00
mscott%netscape.com
65a57de1f9 Remove unnecessary windows.h include which was used to get InterlockedIncrement for threadsafe interfaces. I fixed the
implementation of threadsafe addref and release for windows to notrequire it so people no longer need to include windows.h whenever
you are using a threadsafe interface.


git-svn-id: svn://10.0.0.236/trunk@44094 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 23:03:27 +00:00
mscott%netscape.com
be56ad3dbc Add more status lines.
git-svn-id: svn://10.0.0.236/trunk@44093 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 23:02:45 +00:00
mscott%netscape.com
40e3253f6f return NS_ERROR_NOT_IMPLEMENTED for some of the channel interface implementations
git-svn-id: svn://10.0.0.236/trunk@44092 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 22:58:40 +00:00
mscott%netscape.com
2a153eea93 Remove unnecessary windows.h include which was used to get InterlockedIncrement for threadsafe interfaces. I fixed the
implementation of threadsafe addref and release for windows to notrequire it so people no longer need to include windows.h whenever
you are using a threadsafe interface.


git-svn-id: svn://10.0.0.236/trunk@44091 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 22:57:50 +00:00
mscott%netscape.com
6ced3011c0 Remove unnecessary windows.h include which was used to get InterlockedIncrement for threadsafe interfaces.
I fixed the implementation of threadsafe addref and release for windows to not require it so people no longer
need to include windows.h whenever you are using a threadsafe interface.

return NS_ERROR_NOT_IMPLEMENTED for some of the channel interface implementations

Use NS_GET_IID.


git-svn-id: svn://10.0.0.236/trunk@44090 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 22:55:47 +00:00
mscott%netscape.com
9e5d4ed0b4 Remove unnecessary windows.h include which was used to get InterlockedIncrement for threadsafe interfaces.
I fixed the implementation of threadsafe addref and release for windows to not require it so people no longer
need to include windows.h whenever you are using a threadsafe interface.


git-svn-id: svn://10.0.0.236/trunk@44089 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 22:54:05 +00:00
bienvenu%netscape.com
072a7317d9 back out scc's change, and my attempted fix
git-svn-id: svn://10.0.0.236/trunk@44088 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 22:06:53 +00:00
bienvenu%netscape.com
714dd624cc attempt to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@44087 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 21:44:45 +00:00
scc%netscape.com
7c0b0cb314 Added |GetIID|
git-svn-id: svn://10.0.0.236/trunk@44086 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 20:54:08 +00:00
briano%netscape.com
141bab2d03 Automated update
git-svn-id: svn://10.0.0.236/trunk@44085 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 20:30:21 +00:00
cls%seawood.org
16be64f516 Removed checks for unused headers, libs and functions.
Added --enable-x11-shm option for gfx-gtk shm support.


git-svn-id: svn://10.0.0.236/trunk@44084 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 20:25:26 +00:00
hshaw%netscape.com
a355f1d16a initial checkin
git-svn-id: svn://10.0.0.236/trunk@44083 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 20:22:43 +00:00
bienvenu%netscape.com
ca8a6ce0dd remove NS_COMFALSE
git-svn-id: svn://10.0.0.236/trunk@44082 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 18:10:21 +00:00
hshaw%netscape.com
d17a037746 get macro definition from config.mak
git-svn-id: svn://10.0.0.236/trunk@44081 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 17:51:49 +00:00
hshaw%netscape.com
6e88d986ed conditionally compile socket provider support for windows, temporary until linux/mac build scripts checked in
git-svn-id: svn://10.0.0.236/trunk@44080 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 17:44:08 +00:00
hshaw%netscape.com
8a3e05c2f7 allow inheritance
git-svn-id: svn://10.0.0.236/trunk@44079 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 17:28:36 +00:00
hshaw%netscape.com
2e211c77be allow selection of socket type using socket providers
git-svn-id: svn://10.0.0.236/trunk@44078 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 17:26:09 +00:00
ramiro%netscape.com
e138624bb2 workaround build issue
git-svn-id: svn://10.0.0.236/trunk@44077 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 16:08:36 +00:00
ramiro%netscape.com
61c4358fb9 Comment out un impl class.
git-svn-id: svn://10.0.0.236/trunk@44076 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 16:07:43 +00:00
ramiro%netscape.com
ccface84c8 Remove hack.
git-svn-id: svn://10.0.0.236/trunk@44075 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 16:07:19 +00:00
rhp%netscape.com
4441f168f3 Image cleanup
git-svn-id: svn://10.0.0.236/trunk@44074 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 15:54:20 +00:00
rhp%netscape.com
52ca8fbfd5 Code cleanup changes
git-svn-id: svn://10.0.0.236/trunk@44073 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 15:48:46 +00:00
rhp%netscape.com
9de5efabff Cleaning up old cruft
git-svn-id: svn://10.0.0.236/trunk@44072 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 15:42:08 +00:00
ramiro%netscape.com
186d70e22d Add embedding samples.
git-svn-id: svn://10.0.0.236/trunk@44071 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 15:36:56 +00:00
ramiro%netscape.com
b9831269c2 Add embedding examples.
git-svn-id: svn://10.0.0.236/trunk@44070 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 15:31:44 +00:00
ramiro%netscape.com
0651c1f340 Add embedding samples.
git-svn-id: svn://10.0.0.236/trunk@44069 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 15:31:13 +00:00
hshaw%netscape.com
fbf2131a98 add socket provider support under NET_SOCKET_PROVIDER_BUILD ifdef (temporary until linux/mac build scripts checked in
git-svn-id: svn://10.0.0.236/trunk@44068 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 15:20:43 +00:00
ramiro%netscape.com
5b7aa132ae Add -fno-rtti and -fno-exceptions flags.
git-svn-id: svn://10.0.0.236/trunk@44067 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 15:02:50 +00:00
ramiro%netscape.com
cf3fc440e4 Removed handling of NS_COPYBITS_TO_BACK_BUFFER in CopyOffScreenBits().
Remove usage of secondary offscreeen buffer.


git-svn-id: svn://10.0.0.236/trunk@44066 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 14:48:12 +00:00
hshaw%netscape.com
b3c38fa6b3 compile socket subdir if NET_SOCKET_PROVIDER_BUILD set (will be removed when linux/mac build scripts checked in)
git-svn-id: svn://10.0.0.236/trunk@44065 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 14:42:05 +00:00
hshaw%netscape.com
816c8bebbb Initial checkin of socket provider 'base' files
git-svn-id: svn://10.0.0.236/trunk@44064 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 14:40:41 +00:00
ramiro%netscape.com
91b1f6bc36 Finish support for building more than one toolkit at once.
git-svn-id: svn://10.0.0.236/trunk@44063 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 14:06:52 +00:00
ramiro%netscape.com
820cf300b1 Dont link in neckoutil.
git-svn-id: svn://10.0.0.236/trunk@44062 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 13:55:40 +00:00
ramiro%netscape.com
ef4abc49f8 Fix for the rendering problem on unix after the NS_COPYBITS_TO_BACK_BUFFER
cleanup.


git-svn-id: svn://10.0.0.236/trunk@44061 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 13:54:41 +00:00
sgehani%netscape.com
6f44b751bd First Checked In.
git-svn-id: svn://10.0.0.236/trunk@44060 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 13:40:21 +00:00
mccabe%netscape.com
0ee0c94bc4 NS_DECL_NSIFOO spam for nsIRequest, nsIChannel, nsIStreamListener, nsIStreamObserver, all from netwerk/
convert manual interface method declarations in implementation class to NS_DECL_NSIFOO macro.


git-svn-id: svn://10.0.0.236/trunk@44059 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 13:26:18 +00:00
rjc%netscape.com
d002026877 Set a BASE TARGET and a default FONT POINT-SIZE.
git-svn-id: svn://10.0.0.236/trunk@44058 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 12:45:27 +00:00
rjc%netscape.com
764488bbba Start engine loading animation earlier (when URI connection is initially opened) to give a longer, more accurate progress indication.
git-svn-id: svn://10.0.0.236/trunk@44057 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 12:17:41 +00:00
mccabe%netscape.com
f54a574f03 Replace manual method declarations in implementations of xpcom/ interfaces with NS_DECL_NSIFOO.
git-svn-id: svn://10.0.0.236/trunk@44056 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 11:25:50 +00:00
mccabe%netscape.com
23cc1b553a Don't generate 'void' as a parameter in call portion of NS_FORWARD_NSIFOO macro. Whoops.
git-svn-id: svn://10.0.0.236/trunk@44055 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 11:18:21 +00:00
ramiro%netscape.com
2181f0c81e Cleanup the jsdom and jsurl linking mess.
git-svn-id: svn://10.0.0.236/trunk@44054 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 11:05:45 +00:00
rjc%netscape.com
923aefe094 BeOS specific changes for importing NetPositive bookmark attributes.
Thanks to duncan@be.com for help with linkage problem.


git-svn-id: svn://10.0.0.236/trunk@44053 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 10:51:12 +00:00
hyatt%netscape.com
1f5079c7ff Patching a function used only by the tree code.
git-svn-id: svn://10.0.0.236/trunk@44052 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 09:50:22 +00:00
mccabe%netscape.com
4a3290544c Remove definition of NS_DECL_IOBSERVER and SERVICE and replace uses with xpidl-generated NS_DECL_NSIOBSERVER macro.
git-svn-id: svn://10.0.0.236/trunk@44051 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 09:18:49 +00:00
hyatt%netscape.com
9d66eb00c5 The XUL file for bookmarks was badly messed up.
git-svn-id: svn://10.0.0.236/trunk@44050 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 08:35:48 +00:00
hyatt%netscape.com
64149474fc Mmmm-hmmm.
git-svn-id: svn://10.0.0.236/trunk@44049 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 08:11:27 +00:00
hyatt%netscape.com
8c3baf7ed9 Changing "onchange" to "onselect".
git-svn-id: svn://10.0.0.236/trunk@44048 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 08:05:46 +00:00
hyatt%netscape.com
d45d17b01d Making sure the onselect handler gets fired.
git-svn-id: svn://10.0.0.236/trunk@44047 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 08:01:13 +00:00
hyatt%netscape.com
56d558fd28 Fix for bug 11299.
git-svn-id: svn://10.0.0.236/trunk@44046 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 07:44:00 +00:00
hyatt%netscape.com
5f33bac8c2 Fix for bug 9693.
git-svn-id: svn://10.0.0.236/trunk@44045 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 07:31:35 +00:00
hyatt%netscape.com
421adfb119 Removing the rule that set the scrollbar's thumb to be green. Whoever
checked that in is a tool.


git-svn-id: svn://10.0.0.236/trunk@44044 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 06:57:25 +00:00
hyatt%netscape.com
2be6ca5232 More selection work.
git-svn-id: svn://10.0.0.236/trunk@44043 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 06:53:01 +00:00
hyatt%netscape.com
36be73ff6d Style tweak.
git-svn-id: svn://10.0.0.236/trunk@44042 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 06:42:03 +00:00
hyatt%netscape.com
464d6bcc48 Checking in the modified tree widget. It now uses the new selection APIs on the
tree DOM element.


git-svn-id: svn://10.0.0.236/trunk@44041 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 06:32:27 +00:00
hyatt%netscape.com
7f61e535f5 Checking in the selection implementation (with more functions added).
git-svn-id: svn://10.0.0.236/trunk@44040 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 06:31:00 +00:00
hyatt%netscape.com
7e5c7ae1ee Implemented all of the tree widget selection APIs but ranged selection (which will
be fun and nasty).


git-svn-id: svn://10.0.0.236/trunk@44039 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 06:17:16 +00:00
hyatt%netscape.com
5d798d974b Defining the selection API for the tree widget. Stubbed all of the functions.
Now I just have to implement them all.


git-svn-id: svn://10.0.0.236/trunk@44038 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 06:01:52 +00:00
beard%netscape.com
1f0c8f2066 Added DispatchWindowEvent, added keyboard focus, and default keyboard input behavior.
git-svn-id: svn://10.0.0.236/trunk@44037 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 05:43:39 +00:00
karnaze%netscape.com
02a1b27572 changed initial value in ColumnsAreValidFor.
git-svn-id: svn://10.0.0.236/trunk@44036 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 02:36:00 +00:00
sgehani%netscape.com
bbff1d29c4 Turn on xpistub for the Mac.
git-svn-id: svn://10.0.0.236/trunk@44035 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 01:20:34 +00:00
sgehani%netscape.com
d21f2a252b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@44034 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 01:19:22 +00:00
sgehani%netscape.com
4ab04109d7 Make Mac happy.
git-svn-id: svn://10.0.0.236/trunk@44033 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 01:18:35 +00:00
mccabe%netscape.com
38eef6b4e2 Make a new XPIDL_WARNING macro to generalize the check against using IDL_tree_warning when compiled against libIDL 0.6.5.
git-svn-id: svn://10.0.0.236/trunk@44032 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 01:10:14 +00:00
alecf%netscape.com
7934bfa1f6 updating DOM Viewer
- start creating DOM elements using the PROGID system for creating elements


git-svn-id: svn://10.0.0.236/trunk@44031 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 00:33:51 +00:00
beard%netscape.com
8696a67955 Workaround for non-optimal port management, cleaned up some TARGET_CARBON #ifdefs, which could leak regions, or at share port-owned clip regions with the global pool.
git-svn-id: svn://10.0.0.236/trunk@44030 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 23:41:34 +00:00
scc%netscape.com
3d123a8048 fixed ambiguous static cast in the NS_IMPL_QUERYINTERFACE2 case
git-svn-id: svn://10.0.0.236/trunk@44029 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 22:33:15 +00:00
beard%netscape.com
4cc79b63aa removed static library targets (view.o, viewDebug.o)
git-svn-id: svn://10.0.0.236/trunk@44028 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 22:13:21 +00:00
jband%netscape.com
619c3e3df4 fix bustage due to ambiguity in use of static_cast
git-svn-id: svn://10.0.0.236/trunk@44027 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 22:03:39 +00:00
troy%netscape.com
88368a0250 Minor cleanup
git-svn-id: svn://10.0.0.236/trunk@44026 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 21:24:42 +00:00
troy%netscape.com
c20a3fb657 Removed some code that was accidentally added back in the previous revisions
git-svn-id: svn://10.0.0.236/trunk@44025 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 21:17:23 +00:00
hyatt%netscape.com
d057c8157d Tweaking comments.
git-svn-id: svn://10.0.0.236/trunk@44024 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:42:17 +00:00
scc%netscape.com
256b8039a8 Bad merge left two copies of ...QUERYINTERFACE2. Sorry.
git-svn-id: svn://10.0.0.236/trunk@44023 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:39:59 +00:00
hyatt%netscape.com
84d55a4d6f Stubbing out the selection implementation. Need to fill in the empty if
statements next.


git-svn-id: svn://10.0.0.236/trunk@44022 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:39:29 +00:00
bienvenu%netscape.com
90c9cd32e6 turn on history ab
git-svn-id: svn://10.0.0.236/trunk@44021 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:32:23 +00:00
hyatt%netscape.com
88a7f792a5 Adding more to the tree's idl.
git-svn-id: svn://10.0.0.236/trunk@44020 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:23:56 +00:00
scc%netscape.com
70e5060219 Added NS_IMPL_QUERY_INTERFACE[01]; fixed NS_IMPL_QUERY_INTERFACE2; added NS_IMPL_ISUPPORTS[01]; can't fix NS_IMPL_QUERY_INTERFACE without changing a ton of files, so I'm checking in this partial fix first. Then people can help me switch us away from NS_IMPL_ISUPPORTS and NS_IMPL_QUERY_INTERFACE. Both are now deprecated.
git-svn-id: svn://10.0.0.236/trunk@44019 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:22:35 +00:00
mccabe%netscape.com
0d087a7447 Spam caps subtree to replace declarations of IDL-defined interface methods in implementation classes with xpidl-generated NS_DECL_NSIFOO macro.
git-svn-id: svn://10.0.0.236/trunk@44018 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:22:27 +00:00
troy%netscape.com
b583c2d31c Optimized incremental reflow and split some code out into member functions
so there's less dusplication of code


git-svn-id: svn://10.0.0.236/trunk@44017 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:16:32 +00:00
scc%netscape.com
3d825c25a3 added license, fixed tabs
git-svn-id: svn://10.0.0.236/trunk@44016 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:07:27 +00:00
scc%netscape.com
ef87d21e39 added comments, fixed tabs
git-svn-id: svn://10.0.0.236/trunk@44015 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:06:52 +00:00
briano%netscape.com
75220036ff Fixed all my stupid mistakes.
git-svn-id: svn://10.0.0.236/trunk@44014 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:06:08 +00:00
rjc%netscape.com
9ed3a752c7 Use window.open
git-svn-id: svn://10.0.0.236/trunk@44013 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 19:58:19 +00:00
hyatt%netscape.com
c1446ec959 Checking in changes that teach the tree element how to have its own
array of selected items and cells.


git-svn-id: svn://10.0.0.236/trunk@44012 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 19:53:39 +00:00
hyatt%netscape.com
b9e23076b6 Fixing broadcasters. The hookup wasn't happening correctly.
git-svn-id: svn://10.0.0.236/trunk@44011 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 19:30:53 +00:00
cls%seawood.org
6a6d33de7d gcc 2.95 ANSI C++ compliance fix
git-svn-id: svn://10.0.0.236/trunk@44010 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 19:29:01 +00:00
briano%netscape.com
b2a5738db7 Automated update
git-svn-id: svn://10.0.0.236/trunk@44009 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 18:15:22 +00:00
cls%seawood.org
d4ac930832 Added support to configure.in for running configure in subprojects. This included adding tmp variables to preserve the initial args set for configure so that they can be passed pristinely to the subprojects.
Modified to run configure of webshell/embed/gtk from the main configure rather than during the export phase.


git-svn-id: svn://10.0.0.236/trunk@44008 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 18:02:45 +00:00
ramiro%netscape.com
042d8323e7 Dont link in neckoutil.
git-svn-id: svn://10.0.0.236/trunk@44007 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 17:13:43 +00:00
ramiro%netscape.com
ac6e99d930 Link in neckoutil.
git-svn-id: svn://10.0.0.236/trunk@44006 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 17:03:07 +00:00
ramiro%netscape.com
506b2c9400 Anal spacing.
git-svn-id: svn://10.0.0.236/trunk@44005 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 16:51:26 +00:00
ramiro%netscape.com
1a006147c3 Yank -lmozreg.
git-svn-id: svn://10.0.0.236/trunk@44004 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 16:50:18 +00:00
ramiro%netscape.com
866296205e Yank -lmozdbm , not needed.
git-svn-id: svn://10.0.0.236/trunk@44003 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 16:40:49 +00:00
ramiro%netscape.com
1784612f6b cleanup linking of libmozreg.
git-svn-id: svn://10.0.0.236/trunk@44002 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 15:41:53 +00:00
ramiro%netscape.com
60619e474f Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@44001 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 12:14:23 +00:00
ramiro%netscape.com
093e8574db No longer needed.
git-svn-id: svn://10.0.0.236/trunk@44000 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 12:13:17 +00:00
ramiro%netscape.com
7af846fabe Fix runtime undefined symbols.
git-svn-id: svn://10.0.0.236/trunk@43999 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 11:49:22 +00:00
hyatt%netscape.com
a41a8d5699 Fixing the build bustage in the prefs migrator. Just call me Mr. Porkjockey.
git-svn-id: svn://10.0.0.236/trunk@43998 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 10:40:42 +00:00
hyatt%netscape.com
247f0228bf Making sure oncommand fires only on a keypress.
git-svn-id: svn://10.0.0.236/trunk@43997 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 10:36:42 +00:00
ramiro%netscape.com
49e4506437 Fix pavlov's bustage.
git-svn-id: svn://10.0.0.236/trunk@43996 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 10:29:34 +00:00
hyatt%netscape.com
2b733ae6bf The bustage is mine. Fixing it now.
git-svn-id: svn://10.0.0.236/trunk@43995 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 10:05:02 +00:00
rjc%netscape.com
fb8b60ac1e Add HTML banners if available.
git-svn-id: svn://10.0.0.236/trunk@43994 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 09:26:10 +00:00
rjc%netscape.com
b0d901706f Add default.htm into build.
git-svn-id: svn://10.0.0.236/trunk@43993 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 09:25:20 +00:00
rjc%netscape.com
ea0fc81842 Add default.htm
git-svn-id: svn://10.0.0.236/trunk@43992 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 09:23:45 +00:00
rjc%netscape.com
efafc2bede Save HTML banners in graph.
git-svn-id: svn://10.0.0.236/trunk@43991 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 09:23:13 +00:00
hyatt%netscape.com
208f517c5b Fixing up the broadcaster stuff.
git-svn-id: svn://10.0.0.236/trunk@43990 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 09:13:14 +00:00
hyatt%netscape.com
66140e3c1a A complete rewrite of the broadcaster/observer system. Much improved.
git-svn-id: svn://10.0.0.236/trunk@43989 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 09:08:12 +00:00
mccabe%netscape.com
91543218bc First cut at removing manual declaration of interface methods in implementation classes and replacing with xpidl-generated NS_DECL_NSIFOO macro.
Hopefully this'll help turn the copy-n-paste tide towards using this macro.


git-svn-id: svn://10.0.0.236/trunk@43988 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 08:54:47 +00:00
pavlov%netscape.com
d658e6c881 change #define that I was using for debugging
git-svn-id: svn://10.0.0.236/trunk@43985 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 08:43:07 +00:00
pavlov%netscape.com
caa1f84ed3 remove unused tab widget and tooltip widget as they have never been used
git-svn-id: svn://10.0.0.236/trunk@43984 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 08:41:46 +00:00
pavlov%netscape.com
bdbf923a9d fix brokeness from my previous checkin
git-svn-id: svn://10.0.0.236/trunk@43983 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 08:40:30 +00:00
rjc%netscape.com
afd5a33fec Search UI tweaks. Use ender widget to display HTML, until the problem with document.write()'ing html to an iframe is figured out.
git-svn-id: svn://10.0.0.236/trunk@43982 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 08:16:17 +00:00
ramiro%netscape.com
d55091ca21 Remove an old global variable hack i added in a moment of weakness.
git-svn-id: svn://10.0.0.236/trunk@43981 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 08:14:14 +00:00
hyatt%netscape.com
471d22c2b1 Teaching key bindings how to execute oncommand on a keydown.
git-svn-id: svn://10.0.0.236/trunk@43980 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 07:57:14 +00:00
hyatt%netscape.com
80c93ccae6 Teaching titled buttons how to execute the oncommand handler when clicked (or when
space/enter is hit on them).


git-svn-id: svn://10.0.0.236/trunk@43979 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 07:56:49 +00:00
dougt%netscape.com
a2743e2a69 first cut of a new file class.
git-svn-id: svn://10.0.0.236/trunk@43978 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 07:38:26 +00:00
dougt%netscape.com
1f566e739c removing nsIAtom from export list.
git-svn-id: svn://10.0.0.236/trunk@43977 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 07:22:00 +00:00
dougt%netscape.com
45af6f22fb removing nsIAtom.h. It is now a generated header.
git-svn-id: svn://10.0.0.236/trunk@43976 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 07:14:10 +00:00
dougt%netscape.com
6c0494af59 xpild-ing nsIAtom. Now nsIAtom is xpcom compliant.
git-svn-id: svn://10.0.0.236/trunk@43975 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 07:07:00 +00:00
mccabe%netscape.com
7d3754b0ed Generate NS_FORWARD_NSIFOO(_to) macro to facilitate declaring forwarding implementations for a given interface.
Fix bug where both GetFoo and SetFoo prototypes were generated into the NS_DECL_NSIFOO macro for readonly attributes.  Thanks go to jband for catching this.


git-svn-id: svn://10.0.0.236/trunk@43974 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 07:04:33 +00:00
dougt%netscape.com
5856b1d9e0 adding nsIAtom to build project
git-svn-id: svn://10.0.0.236/trunk@43973 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 07:00:51 +00:00
dougt%netscape.com
a2e1fc4d49 First cut of an IDL for nsIAtom. This preserves most of the origanal C++
interface quirks.


git-svn-id: svn://10.0.0.236/trunk@43972 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 06:38:59 +00:00
karnaze%netscape.com
1ae768f9a1 bug 11944 - correct placement of row group using table border/padding. bug 625 - reinitialized col sizes before 2nd pass 1 reflow.
git-svn-id: svn://10.0.0.236/trunk@43971 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 06:38:07 +00:00
karnaze%netscape.com
65b3b02f0c new regression tests
git-svn-id: svn://10.0.0.236/trunk@43970 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 06:32:27 +00:00
tague%netscape.com
dd88f21732 Fix blamed build warning.
git-svn-id: svn://10.0.0.236/trunk@43969 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 05:49:24 +00:00
despotdaemon%netscape.com
abf3a30620 Pseudo-automatic update of changes made by louis.martin@eng.sun.com.
git-svn-id: svn://10.0.0.236/trunk@43968 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 04:30:05 +00:00
briano%netscape.com
f31270b20a General cleanup.
git-svn-id: svn://10.0.0.236/trunk@43967 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 03:06:46 +00:00
briano%netscape.com
7e402f3590 Got rid of some unneeded rules.
git-svn-id: svn://10.0.0.236/trunk@43966 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 02:59:58 +00:00
pollmann%netscape.com
1aaebcf448 Bug 3285: Update impl files to return correct type
git-svn-id: svn://10.0.0.236/trunk@43965 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 02:57:29 +00:00
pollmann%netscape.com
30614f19d0 Bug 3285: Update impl files to add item method to proprietary interface.
git-svn-id: svn://10.0.0.236/trunk@43964 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 02:56:43 +00:00
briano%netscape.com
e8d7784339 Eliminate the use of the obsolete OBJDIR macro.
git-svn-id: svn://10.0.0.236/trunk@43963 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 02:56:29 +00:00
pollmann%netscape.com
1af9c1592a Bug 3285: Update header files to add item method to proprietary interface.
git-svn-id: svn://10.0.0.236/trunk@43962 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 02:56:03 +00:00
pollmann%netscape.com
b450b6a07b Bug 3285: Update idl files to add item method to proprietary interface.
git-svn-id: svn://10.0.0.236/trunk@43961 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 02:55:06 +00:00
tague%netscape.com
a5b2ee51fc Turned on nsIEntityConverter for windows build.
git-svn-id: svn://10.0.0.236/trunk@43960 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 02:51:39 +00:00
tague%netscape.com
e796f704bf updated for nsIEntityconverter
git-svn-id: svn://10.0.0.236/trunk@43959 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 02:51:15 +00:00
tague%netscape.com
985d52bf3e Turned on nsIEntityConverter for Unix build
git-svn-id: svn://10.0.0.236/trunk@43958 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 02:50:58 +00:00
tague%netscape.com
73547b8b7e Turn on nsIEntityConverter in Mac build.
git-svn-id: svn://10.0.0.236/trunk@43957 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 02:41:56 +00:00
tague%netscape.com
3e7f33e1b5 Added nsIEntityConverter to Mac build.
git-svn-id: svn://10.0.0.236/trunk@43956 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 02:06:02 +00:00
rjc%netscape.com
bd3c519530 More search UI cleanup.
git-svn-id: svn://10.0.0.236/trunk@43953 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:56:56 +00:00
varada%netscape.com
490fa13a55 adding test nci files
git-svn-id: svn://10.0.0.236/trunk@43951 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:47:51 +00:00
varada%netscape.com
2bbd24c2dc adding xul files for dialup
git-svn-id: svn://10.0.0.236/trunk@43950 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:47:05 +00:00
varada%netscape.com
71cd558cd0 modified makefile
git-svn-id: svn://10.0.0.236/trunk@43949 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:45:55 +00:00
varada%netscape.com
38a45d98a7 new functions in idl file
git-svn-id: svn://10.0.0.236/trunk@43948 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:45:33 +00:00
varada%netscape.com
ddb67180a8 added new functions
git-svn-id: svn://10.0.0.236/trunk@43947 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:44:41 +00:00
varada%netscape.com
cba93df99b changed the module name from xpaccount32.dll to xpacct32.dll
git-svn-id: svn://10.0.0.236/trunk@43946 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:44:04 +00:00
varada%netscape.com
4f8e6079c6 added new functions to get phone list and dialup lists
git-svn-id: svn://10.0.0.236/trunk@43945 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:43:25 +00:00
varada%netscape.com
e3fc5e515e added comments and some values to the connectoid
git-svn-id: svn://10.0.0.236/trunk@43944 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:42:56 +00:00
varada%netscape.com
5e51a2ddfb Added new functions in nsAccount.cpp
git-svn-id: svn://10.0.0.236/trunk@43943 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:41:18 +00:00
tague%netscape.com
dcafe983e3 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@43942 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:41:17 +00:00
beard%netscape.com
c3550dd744 added mozilla/widget/src/support to access paths, to find new location for nsWidgetSupport.cpp.
git-svn-id: svn://10.0.0.236/trunk@43941 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:31:01 +00:00
rjc%netscape.com
7b1f31427c More small Search tweaks.
git-svn-id: svn://10.0.0.236/trunk@43940 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:29:53 +00:00
sgehani%netscape.com
3936929442 Fix for bug 10696.
git-svn-id: svn://10.0.0.236/trunk@43939 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:20:52 +00:00
slamm%netscape.com
a2ced058b5 Init before parsing args. really check it in.
git-svn-id: svn://10.0.0.236/trunk@43938 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:11:39 +00:00
rjc%netscape.com
9294e1374f Check this damn file in.
git-svn-id: svn://10.0.0.236/trunk@43937 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:09:30 +00:00
slamm%netscape.com
e191a5973e Simplify the args just build depend by default.
git-svn-id: svn://10.0.0.236/trunk@43936 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:06:07 +00:00
danm%netscape.com
8a7debbc33 adding more chrome to window cycler windows
git-svn-id: svn://10.0.0.236/trunk@43935 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:06:01 +00:00
danm%netscape.com
3961a6faa7 restoring chromeclass to urlbar removed in rev 1.28
git-svn-id: svn://10.0.0.236/trunk@43934 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:04:05 +00:00
alecf%netscape.com
e44877c7c6 remove the "depth" attribute now that we have isServer
git-svn-id: svn://10.0.0.236/trunk@43933 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:03:00 +00:00
jdunn%netscape.com
c244679991 HP requires a newline at end of file
git-svn-id: svn://10.0.0.236/trunk@43932 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:01:46 +00:00
alecf%netscape.com
7e28099c20 stop using mDepth, use IsServer instead
git-svn-id: svn://10.0.0.236/trunk@43931 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:01:10 +00:00
alecf%netscape.com
a2202172d2 use isServer attribute
git-svn-id: svn://10.0.0.236/trunk@43930 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:59:15 +00:00
hangas%netscape.com
42acb1b0f0 Trigger first, last, and display name entry off of onkeypress= instead of onkeyup=
git-svn-id: svn://10.0.0.236/trunk@43929 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:58:26 +00:00
rjc%netscape.com
92e9235a48 Tweak search UI.
git-svn-id: svn://10.0.0.236/trunk@43928 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:56:27 +00:00
rjc%netscape.com
ddff6056d8 Add internetresults.js into build.
git-svn-id: svn://10.0.0.236/trunk@43927 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:54:54 +00:00
rjc%netscape.com
07aaee56d9 Save HTML chunks in graph.
git-svn-id: svn://10.0.0.236/trunk@43926 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:53:52 +00:00
slamm%netscape.com
a969b96f84 Load defaults before handling command-line options.
git-svn-id: svn://10.0.0.236/trunk@43925 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:49:25 +00:00
jdunn%netscape.com
f7162a023c HP's compiler won't allow deletes of void *... so a base type is needed.
I talked this over with Bienvenu and since the code will be switched
eventually to nsCString, the change is ok.


git-svn-id: svn://10.0.0.236/trunk@43924 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:48:02 +00:00
jdunn%netscape.com
1b70534cef HP's native compiler won't allow delete's of void *... so since this
was allocated as an array of chars, i will cast the void * to char * and that works


git-svn-id: svn://10.0.0.236/trunk@43923 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:43:08 +00:00
tague%netscape.com
7566341f1a Added to windows build.
git-svn-id: svn://10.0.0.236/trunk@43922 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:42:38 +00:00
tague%netscape.com
6fc263c910 Added makefile.win for windows build.
git-svn-id: svn://10.0.0.236/trunk@43921 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:42:03 +00:00
hangas%netscape.com
0b39165801 Changed Select Addresses dialog to be modal.
git-svn-id: svn://10.0.0.236/trunk@43920 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:24:26 +00:00
bienvenu%netscape.com
bc06713ec9 register ab history
git-svn-id: svn://10.0.0.236/trunk@43919 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:22:26 +00:00
gagan%netscape.com
297c9869a0 Code style consistency cleanup.
git-svn-id: svn://10.0.0.236/trunk@43918 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:22:18 +00:00
pollmann%netscape.com
77b365a874 Bug 3256: Scroll frame into view when form element receives focus.
git-svn-id: svn://10.0.0.236/trunk@43917 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:19:34 +00:00
german%netscape.com
4010068441 updating this windows caption, since it's now just opening web location. also moving window title to dtd for localization
git-svn-id: svn://10.0.0.236/trunk@43916 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:19:18 +00:00
hangas%netscape.com
e3a60cb253 Fixed bug 10349 address book card dialogs not modal. Also made small syntax changes for rdf.
git-svn-id: svn://10.0.0.236/trunk@43915 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:16:01 +00:00
danm%netscape.com
6fa7452e8f move localizable string entities into separate DTD
git-svn-id: svn://10.0.0.236/trunk@43914 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:15:58 +00:00
pollmann%netscape.com
8a60159afc Bug 3256: Add ScrollIntoView() method to form control frame interface.
git-svn-id: svn://10.0.0.236/trunk@43913 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:10:13 +00:00
pollmann%netscape.com
60e2a67f05 Bug 3256: Add ScrollIntoView() method to form frame objects.
git-svn-id: svn://10.0.0.236/trunk@43912 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 00:09:24 +00:00
tague%netscape.com
509fb31739 Added nsEntityConverter components.
git-svn-id: svn://10.0.0.236/trunk@43911 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:57:51 +00:00
tague%netscape.com
3344ed9e47 Added nsIEntityConverter component.
git-svn-id: svn://10.0.0.236/trunk@43910 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:57:21 +00:00
tague%netscape.com
dc574b4129 Added nsIEntityConverter.idl component.
git-svn-id: svn://10.0.0.236/trunk@43909 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:56:37 +00:00
tague%netscape.com
c0fafec30b Fixed bug #12052 - design changes to the implemenation of the editor charset menu. The charset information is now pushed down to the nsIDocument rather than being stored in the nsEditor component.
git-svn-id: svn://10.0.0.236/trunk@43908 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:52:36 +00:00
slamm%netscape.com
c9e7db36fb Split configuration into a separate file (run --example-config to start out).
git-svn-id: svn://10.0.0.236/trunk@43907 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:52:18 +00:00
sgehani%netscape.com
7d86862530 Fix for Mac specific bug: 11166. Install.Gestalt() now works.
git-svn-id: svn://10.0.0.236/trunk@43906 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:49:20 +00:00
tague%netscape.com
06fe2e3fd7 Added GetLocaleComponentForUserAgent to nsILocaleService. Fixes my part of bug #10465.
git-svn-id: svn://10.0.0.236/trunk@43905 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:47:27 +00:00
jdunn%netscape.com
128a27ec75 AIX does not allow calling the baseclass via the typedef. I talked this
over with Kevin McClusky and he agreed to allow the change.


git-svn-id: svn://10.0.0.236/trunk@43903 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:37:15 +00:00
bienvenu%netscape.com
c86886b6f6 add ab history to build
git-svn-id: svn://10.0.0.236/trunk@43902 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:34:55 +00:00
karnaze%netscape.com
363cd0680d new regression test. fixed some others
git-svn-id: svn://10.0.0.236/trunk@43901 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:29:56 +00:00
bienvenu%netscape.com
671fb898fd add history ab
git-svn-id: svn://10.0.0.236/trunk@43900 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:28:48 +00:00
karnaze%netscape.com
ecc88ac54d bug 11944 - row group is properly offset using table border. cleaned up new incremental reflow methods.
git-svn-id: svn://10.0.0.236/trunk@43899 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:27:54 +00:00
troy%netscape.com
7ff87b81d8 Optimized CalculateRowHeights() to skip step 2 if there are no cells that
have row spans


git-svn-id: svn://10.0.0.236/trunk@43898 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:27:39 +00:00
despotdaemon%netscape.com
afa95699df Pseudo-automatic update of changes made by kevin@perldap.org.
git-svn-id: svn://10.0.0.236/trunk@43897 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:22:29 +00:00
german%netscape.com
a7c2be7d80 seperating out open file, which is now a separetae menu cmd
git-svn-id: svn://10.0.0.236/trunk@43896 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:21:30 +00:00
german%netscape.com
788fea4638 splitting open file and open web page menus
git-svn-id: svn://10.0.0.236/trunk@43895 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:20:18 +00:00
beard%netscape.com
caa14a9ce8 fixed zoom mouse tracking, now calls TrackBox properly.
git-svn-id: svn://10.0.0.236/trunk@43894 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:20:04 +00:00
beard%netscape.com
e3eb020057 Moved StRegionFromPool to header file, using more consistently, fixed some child widget clipping bugs, changed scrolling to just repaint when complex clipping in use.
git-svn-id: svn://10.0.0.236/trunk@43893 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:19:06 +00:00
beard%netscape.com
1164a558ed Using StRegionFromPool, fixed some widget clipping bugs (invisible siblings).
git-svn-id: svn://10.0.0.236/trunk@43892 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:17:45 +00:00
german%netscape.com
0d34fd018d preparing for split of open menu into open file and open web page
git-svn-id: svn://10.0.0.236/trunk@43891 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:17:12 +00:00
beard%netscape.com
4c332d7ce1 Added helper class StRegionFromPool to make it useable from multiple source files.
git-svn-id: svn://10.0.0.236/trunk@43890 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:16:53 +00:00
pollmann%netscape.com
02711c3435 Bug 3285: Implement Item() method on Form Element content object.
git-svn-id: svn://10.0.0.236/trunk@43889 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:15:40 +00:00
german%netscape.com
b3b2f14e83 cosmetic/usability improvements to unknown content dialog
git-svn-id: svn://10.0.0.236/trunk@43888 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:13:51 +00:00
jband%netscape.com
9111656ab3 added files: mozilla/js/src/xpconnect/src/xpcexception.cpp
git-svn-id: svn://10.0.0.236/trunk@43887 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:11:45 +00:00
jband%netscape.com
2a25b65fb4 Rework nsIDs are reflected into JS. Expose HasInstance to nsIXPCScriptable. Initial work on making structured exceptions for JS. Switch nsIXPCScriptable implementations to use multiple inheritence rather that returning separate objects - stop breaking some xpcom rules. Fix NS_IMPL_QUERY_INTERFACE_SCRIPTABLE. Get rid of caching of nsIAllocator service. Add system to conditionally auto update the ThreadJSContextStack as we get called from JS. Expose Components.Exception and Components.ID ctors to JS. Convert more NULLs to nsnulls. Trim and or fix broken nsID tests.
git-svn-id: svn://10.0.0.236/trunk@43886 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:11:30 +00:00
pollmann%netscape.com
b89b8727fb Fixing GTK widget tabbing for text inputs.
git-svn-id: svn://10.0.0.236/trunk@43885 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:10:54 +00:00
dp%netscape.com
b359dd631b PlatformFind() changed to return nsDll * instead of FactoryEntry. This
is an internal api change.


git-svn-id: svn://10.0.0.236/trunk@43884 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:06:47 +00:00
danm%netscape.com
0c51836fd5 adding 'status' chromeclass to the other half of the status bar
git-svn-id: svn://10.0.0.236/trunk@43883 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:00:43 +00:00
mscott%netscape.com
0354de99f5 Fix for Bug #12151 on behalf of sspitzer.
git-svn-id: svn://10.0.0.236/trunk@43882 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:59:16 +00:00
hyatt%netscape.com
12a3e06587 Renaming onaction to oncommand.
git-svn-id: svn://10.0.0.236/trunk@43881 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:58:32 +00:00
hyatt%netscape.com
dd5bde5e90 Renaming onaction to oncommand. Also adding getIID to nsIFocusableContent, since
I'll need to be using that later on.


git-svn-id: svn://10.0.0.236/trunk@43880 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:56:15 +00:00
pavlov%netscape.com
612301c7ce clipboard fixes
git-svn-id: svn://10.0.0.236/trunk@43879 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:54:45 +00:00
kmcclusk%netscape.com
6fd517e94a Correctly set the current state for the radio button in SetProperty. Previously the radio buttons state was not properly set
when JavaScript was used to set it.


git-svn-id: svn://10.0.0.236/trunk@43878 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:52:35 +00:00
kmcclusk%netscape.com
1d9d68cf85 Changed if an action is not specified and we are in a 4.x browser than cause the URL to be reloaded.
This is compatible with Netscape 4.x browsers + I.E. If an action is not specified and inside an XML or XUL document than do nothing.


git-svn-id: svn://10.0.0.236/trunk@43877 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:51:45 +00:00
kmcclusk%netscape.com
810552b4ea Removed secondary drawing surface used when CopyOffScreenBits passing the NS_COPYBITS_TO_BACK_BUFFER flag
NS_COPYBITS_TO_BACK_BUFFER  is obsolete.


git-svn-id: svn://10.0.0.236/trunk@43876 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:50:24 +00:00
putterman%netscape.com
d08c51f22a Only use base GetPrettyName instead of LocalMail.
git-svn-id: svn://10.0.0.236/trunk@43875 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:49:04 +00:00
kmcclusk%netscape.com
e1083a6ab6 nsViewManager :: Refresh
Created explicit pointers to offscreen and onscreen rendering contexts.
Stop passing NS_COPYBITS_TO_BACK_BUFFER flag.


git-svn-id: svn://10.0.0.236/trunk@43874 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:48:56 +00:00
putterman%netscape.com
8dfbc8b006 Use nsISupports.
git-svn-id: svn://10.0.0.236/trunk@43873 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:47:55 +00:00
jdunn%netscape.com
8131193612 AIX requires that the class definition be defined fully in the header (or
at least before the header is fully processed).  So with Chris Waterson's
permission I moved the definition from the CPP to the header.


git-svn-id: svn://10.0.0.236/trunk@43872 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:47:36 +00:00
putterman%netscape.com
709a4fdd11 Create datasources in js and rewrite views.
git-svn-id: svn://10.0.0.236/trunk@43871 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:47:12 +00:00
putterman%netscape.com
c72e6b5913 Add SetWebShell.
git-svn-id: svn://10.0.0.236/trunk@43870 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:46:10 +00:00
putterman%netscape.com
47941e842d Add nsIMsgWindowData
git-svn-id: svn://10.0.0.236/trunk@43869 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:45:47 +00:00
jdunn%netscape.com
bf6da483f2 Need to specify base class type as public for Native compilers
git-svn-id: svn://10.0.0.236/trunk@43868 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:45:43 +00:00
alecf%netscape.com
1a85fa2940 add new server icons and put them in the folder pane using the new IsServer property
git-svn-id: svn://10.0.0.236/trunk@43867 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:45:36 +00:00
jband%netscape.com
3de4361f9f adding a comment referencing a bug number for why this was done the way it was
git-svn-id: svn://10.0.0.236/trunk@43866 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:45:30 +00:00
putterman%netscape.com
b1db028afa added nsIMsgWindowData
git-svn-id: svn://10.0.0.236/trunk@43865 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:45:16 +00:00
putterman%netscape.com
5b4f250dce Folder names only called when depth 0. Temp until IsServer implemented.
git-svn-id: svn://10.0.0.236/trunk@43864 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:44:44 +00:00
putterman%netscape.com
67d017aba2 Remove view code.
git-svn-id: svn://10.0.0.236/trunk@43863 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:44:13 +00:00
mscott%netscape.com
6970aa5d9b Bug #12198 --> crash when clicking mailto links in the message pane. Also, Use NS_GET_IID
git-svn-id: svn://10.0.0.236/trunk@43862 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:44:01 +00:00
putterman%netscape.com
c133d25f7d turn threading off by default.
git-svn-id: svn://10.0.0.236/trunk@43861 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:43:58 +00:00
putterman%netscape.com
0661c06155 export nsMsgStatusFeedback.h
git-svn-id: svn://10.0.0.236/trunk@43860 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:43:45 +00:00
jdunn%netscape.com
10737be1c5 HP requires a newline at the end of the file
git-svn-id: svn://10.0.0.236/trunk@43859 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:43:24 +00:00
putterman%netscape.com
391509e04b Add nsMsgStatusFeedback to factory.
git-svn-id: svn://10.0.0.236/trunk@43858 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:43:17 +00:00
mscott%netscape.com
1e6279a9cd fix some bogus QI stuff where we always returned nsISupports instead of what the user asked
git-svn-id: svn://10.0.0.236/trunk@43857 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:43:01 +00:00
putterman%netscape.com
7482346427 Add SetWebShell
git-svn-id: svn://10.0.0.236/trunk@43856 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:42:52 +00:00
jdunn%netscape.com
ac764b5f55 HP requires a newline
git-svn-id: svn://10.0.0.236/trunk@43855 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:42:36 +00:00
alecf%netscape.com
3be2c352fd reflect IsServer into RDF
git-svn-id: svn://10.0.0.236/trunk@43854 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:42:35 +00:00
putterman%netscape.com
89f5822667 Remove view code
git-svn-id: svn://10.0.0.236/trunk@43853 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:42:29 +00:00
mscott%netscape.com
81cc682a20 Fix for Bug #12236 --> set iframe type to content-primary.
git-svn-id: svn://10.0.0.236/trunk@43852 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:42:09 +00:00
alecf%netscape.com
7e0c40a1eb oops, we were calling the wrong superclass
git-svn-id: svn://10.0.0.236/trunk@43851 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:42:05 +00:00
putterman%netscape.com
7c29385efa Add nsIMsgWindowData.idl
git-svn-id: svn://10.0.0.236/trunk@43850 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:42:03 +00:00
alecf%netscape.com
ebc9d39804 add new isServer attribute
git-svn-id: svn://10.0.0.236/trunk@43849 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:41:38 +00:00
mscott%netscape.com
8bb8cac4eb build nsIAbCollector.idl
git-svn-id: svn://10.0.0.236/trunk@43848 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:40:56 +00:00
putterman%netscape.com
d305365158 add nsIMsgWindowData.idl
git-svn-id: svn://10.0.0.236/trunk@43847 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:40:54 +00:00
mscott%netscape.com
cc0ac6984a checkin for bienvenu...build nsAddressCollector
git-svn-id: svn://10.0.0.236/trunk@43846 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:40:35 +00:00
putterman%netscape.com
03e632ddfd Add new file for window context.
git-svn-id: svn://10.0.0.236/trunk@43845 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:40:19 +00:00
akkana%netscape.com
1a9e06b69b Handle plaintext wrapping in style, rather than a pre tag in the body. Also fix a couple of warnings.
git-svn-id: svn://10.0.0.236/trunk@43844 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:39:48 +00:00
mscott%netscape.com
dbb964bdc6 Export manifest file for mailnews\addrbook\public\MANIFEST_Idl
git-svn-id: svn://10.0.0.236/trunk@43843 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:38:55 +00:00
akkana%netscape.com
69068d99a5 Handle backslash character
git-svn-id: svn://10.0.0.236/trunk@43842 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:38:08 +00:00
despotdaemon%netscape.com
45be180cb3 Pseudo-automatic update of changes made by mstoltz@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@43841 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 20:49:23 +00:00
despotdaemon%netscape.com
1a7aa323e4 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@43840 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 20:35:25 +00:00
cyeh%netscape.com
7f19292c2a flag caps as being a component
git-svn-id: svn://10.0.0.236/trunk@43839 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 20:32:25 +00:00
despotdaemon%netscape.com
5151631efd Pseudo-automatic update of changes made by kbaker@eb.com.
git-svn-id: svn://10.0.0.236/trunk@43838 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 20:31:20 +00:00
bienvenu%netscape.com
9016d38421 add idl file for ab history, not part of build yet
git-svn-id: svn://10.0.0.236/trunk@43837 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 19:08:19 +00:00
kmcclusk%netscape.com
9bbf99854b Backing out to PartialGfx instead of full Gfx mode.
git-svn-id: svn://10.0.0.236/trunk@43836 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 18:57:32 +00:00
mscott%netscape.com
0ddff4771a Back out alecf's changes to fix local mail folder expansion. This is for QA Blocker Bug #12207. a=cyeh
git-svn-id: svn://10.0.0.236/trunk@43834 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 17:58:31 +00:00
mark.lin%eng.sun.com
a35a4eac60 Updated Makefile.unix.
git-svn-id: svn://10.0.0.236/trunk@43833 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 17:34:22 +00:00
slamm%netscape.com
291364def8 Pull by date as default.
git-svn-id: svn://10.0.0.236/trunk@43832 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 17:06:55 +00:00
slamm%netscape.com
3f51d43136 Report the starttime correctly. Not ten minutes into the past.
git-svn-id: svn://10.0.0.236/trunk@43831 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 17:00:38 +00:00
slamm%netscape.com
d9add663ec Add MOZ_MAKE_FLAGS for -j4
git-svn-id: svn://10.0.0.236/trunk@43829 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 15:20:30 +00:00
slamm%netscape.com
6edee465ec Add MOZ_MAKE_FLAGS for -j4
git-svn-id: svn://10.0.0.236/trunk@43828 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 15:02:00 +00:00
slamm%netscape.com
42510bd646 Rewrite. Add '-d <dir>' param for updating a Makefile in a subdir. Fix objdir case of no Makefile present in directory.
git-svn-id: svn://10.0.0.236/trunk@43824 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 14:47:53 +00:00
rhp%netscape.com
9cd22ebceb Attachments were broken with new display, so this fixes it...VERY safe fix
git-svn-id: svn://10.0.0.236/trunk@43823 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 14:47:41 +00:00
rods%netscape.com
9fab4d944a Removing extra nsGfxRadioControlFrame.obj, this was part of yesterday's bad checkin
git-svn-id: svn://10.0.0.236/trunk@43822 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 14:41:17 +00:00
ramiro%netscape.com
70b51ce6ef Make the proxy rules more robust.
git-svn-id: svn://10.0.0.236/trunk@43821 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 14:21:42 +00:00
Dale.Stansberry%Nexwarecorp.com
2d5abbcd74 - Fixed a DrawingSurface destruction problem
git-svn-id: svn://10.0.0.236/trunk@43820 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 14:17:08 +00:00
Dale.Stansberry%Nexwarecorp.com
1bf5bc7030 - Major changes to reduce excess paints/widget damage
git-svn-id: svn://10.0.0.236/trunk@43819 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 14:15:16 +00:00
rhp%netscape.com
70e466d96a Just doing some housecleaning ... NO BUILD IMPLICATIONS
git-svn-id: svn://10.0.0.236/trunk@43818 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 13:35:42 +00:00
brade%netscape.com
14f64deece remove mac compiler warning
git-svn-id: svn://10.0.0.236/trunk@43817 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 13:32:23 +00:00
brade%netscape.com
0c14bf5c0c remove mac compiler warnings
git-svn-id: svn://10.0.0.236/trunk@43816 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 13:30:39 +00:00
brade%netscape.com
65b459575d remove macintosh compiler warnings
git-svn-id: svn://10.0.0.236/trunk@43815 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 13:27:48 +00:00
blizzard%redhat.com
6b821b8c0d do proper endian detection for rgb code. this should fix sparc.
git-svn-id: svn://10.0.0.236/trunk@43814 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 13:18:55 +00:00
brade%netscape.com
f10a2dbac1 keyhandling for keybindings moved to keypress (was keydown)
git-svn-id: svn://10.0.0.236/trunk@43813 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 13:14:03 +00:00
brade%netscape.com
a433b82cd4 fix align typo; comment out auto-save and external editors for now; add beginnings of page color prefs; remove old comment from bottom (html version)
git-svn-id: svn://10.0.0.236/trunk@43812 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 13:12:18 +00:00
brade%netscape.com
d5419d8917 removed unneeded strings; add in strings for color preferences
git-svn-id: svn://10.0.0.236/trunk@43811 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 13:07:04 +00:00
brade%netscape.com
264250f697 fixed apparent pref typo for calendar startup; fixed Calendar label (was Composer)
git-svn-id: svn://10.0.0.236/trunk@43810 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 13:05:32 +00:00
arielb%netscape.com
ace8f91d48 maybe fixed
git-svn-id: svn://10.0.0.236/trunk@43809 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 12:38:32 +00:00
briano%netscape.com
114a516954 Automated update
git-svn-id: svn://10.0.0.236/trunk@43808 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 12:30:32 +00:00
ramiro%netscape.com
7d1747b604 Simplify the GtkMozilla configutation and turn it on by default for linux.
git-svn-id: svn://10.0.0.236/trunk@43807 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 12:29:39 +00:00
ramiro%netscape.com
3b22378ce2 Make it work with the gtkmozilla makefiles.
git-svn-id: svn://10.0.0.236/trunk@43806 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 12:15:06 +00:00
arielb%netscape.com
e2de3f1c3d this should be it, sorry, again
git-svn-id: svn://10.0.0.236/trunk@43805 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 11:44:52 +00:00
ramiro%netscape.com
1d533d52b3 Ressurect post necko. Streams broken for now.
git-svn-id: svn://10.0.0.236/trunk@43804 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 11:16:19 +00:00
morse%netscape.com
2df9a0a300 remove xplib dependency
git-svn-id: svn://10.0.0.236/trunk@43803 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 11:02:25 +00:00
arielb%netscape.com
9b273907c6 this should be it, sorry
git-svn-id: svn://10.0.0.236/trunk@43802 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 10:59:55 +00:00
arielb%netscape.com
12b3a3a79c this may do it, reset the project paths, if anyone has any other ideas why this is breaking, please let me know
git-svn-id: svn://10.0.0.236/trunk@43801 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 10:39:12 +00:00
arielb%netscape.com
c447be6d2c i may have screwed up adding the files through camelot, this should be more thorough
git-svn-id: svn://10.0.0.236/trunk@43800 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 09:57:40 +00:00
arielb%netscape.com
d0569113c8 added files: mozilla/caps/src/nsJSPrincipals.cpp, mozilla/caps/src/nsScriptSecurityManager.cpp
git-svn-id: svn://10.0.0.236/trunk@43799 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 09:53:15 +00:00
arielb%netscape.com
ad40dbfcd5 includes updates to codbase matching security checks currently turned off
but in place.  redefined the script security manager in caps and it is
now generating codebase principals.


git-svn-id: svn://10.0.0.236/trunk@43798 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 09:51:02 +00:00
arielb%netscape.com
de6ec53a99 added JavaScript shlbs to target paths
git-svn-id: svn://10.0.0.236/trunk@43797 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 09:44:41 +00:00
mccabe%netscape.com
76a43625ec Fix problem with generating \ \n for getters and setters, and move generated NS_DECL_NSIFOO to below the interface.
Thanks to jband for catching this problem.


git-svn-id: svn://10.0.0.236/trunk@43796 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 09:08:40 +00:00
cathleen%netscape.com
e0e36ad9db fix bug 10297 - remove extracted diff file
git-svn-id: svn://10.0.0.236/trunk@43795 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 07:38:31 +00:00
alecf%netscape.com
1a0bc60790 fix reloading of accounts by precaching each folder's path
(this prevents GetPath from calling nsLocalURI2Path, which reloads the accountmanager)


git-svn-id: svn://10.0.0.236/trunk@43794 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 07:23:20 +00:00
alecf%netscape.com
0306d04803 minor cleanup to make the account manager look better
git-svn-id: svn://10.0.0.236/trunk@43793 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 07:20:03 +00:00
briano%netscape.com
8feb97eb3b Automated update
git-svn-id: svn://10.0.0.236/trunk@43792 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 07:00:28 +00:00
cls%seawood.org
c40becaa41 Removed all references to obsolete OBJDIR variable.
Removed various sections of config.mk & rules.mk that were only used by OBJDIR or by a non-autoconf build.


git-svn-id: svn://10.0.0.236/trunk@43791 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 06:52:59 +00:00
rhp%netscape.com
5d6e7e6e85 Just cleaning up empty directories
git-svn-id: svn://10.0.0.236/trunk@43789 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 06:07:18 +00:00
radha%netscape.com
9cb469c999 New methods to set and get title for an index
git-svn-id: svn://10.0.0.236/trunk@43787 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 05:25:55 +00:00
radha%netscape.com
4be6b5ddf9 Implement popup menus for forward and back buttons. New code to show
history items in go menu


git-svn-id: svn://10.0.0.236/trunk@43786 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 05:12:52 +00:00
radha%netscape.com
e557a06fed New methods set/Gettitleforindex.
git-svn-id: svn://10.0.0.236/trunk@43785 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 05:09:42 +00:00
alecf%netscape.com
1d71fbf941 add new SMTP server API
(incomplete implementation, not hooked up yet)


git-svn-id: svn://10.0.0.236/trunk@43784 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 04:49:04 +00:00
alecf%netscape.com
7f4bfd56ab fix char*/PRUnichar* problem
git-svn-id: svn://10.0.0.236/trunk@43783 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 04:47:56 +00:00
cathleen%netscape.com
8b3581401d fix bug 9589
git-svn-id: svn://10.0.0.236/trunk@43782 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 04:34:15 +00:00
alecf%netscape.com
bf67818afb add smtp server to mac/unix/windows build
git-svn-id: svn://10.0.0.236/trunk@43781 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 04:20:23 +00:00
alecf%netscape.com
4345632dee added files: mozilla/mailnews/compose/public/nsISmtpServer.idl
git-svn-id: svn://10.0.0.236/trunk@43780 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 04:17:18 +00:00
alecf%netscape.com
927c337ff4 first pass at SMTP server IDL
git-svn-id: svn://10.0.0.236/trunk@43779 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 04:13:16 +00:00
alecf%netscape.com
a1e6a2cf8f start skeleton MANIFEST_IDL for compose for mac
git-svn-id: svn://10.0.0.236/trunk@43778 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 04:11:11 +00:00
mang%subcarrier.org
73504dc5c9 stock is now an alias for stocks, because I can't type
git-svn-id: svn://10.0.0.236/trunk@43777 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 03:58:00 +00:00
alecf%netscape.com
80afe9e037 fix shadow warning (extra variable)
git-svn-id: svn://10.0.0.236/trunk@43776 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 03:57:37 +00:00
karnaze%netscape.com
025bd21a33 added null checking
git-svn-id: svn://10.0.0.236/trunk@43775 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 03:30:40 +00:00
blizzard%redhat.com
b473523a9c fix xlib timer bug. this is not part of the build.
git-svn-id: svn://10.0.0.236/trunk@43774 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 03:26:54 +00:00
alecf%netscape.com
43fc5965e9 move CIDs and ProgIDs into nsMsgLocalCID.h
git-svn-id: svn://10.0.0.236/trunk@43773 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 03:20:54 +00:00
troy%netscape.com
dcbe877663 Changed GetTag() to return NULL for the tag name
git-svn-id: svn://10.0.0.236/trunk@43772 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 03:17:11 +00:00
mscott%netscape.com
ce6b694d9c Bug #10844 hook up progress bar for parsing mailbox folders
git-svn-id: svn://10.0.0.236/trunk@43771 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 03:16:12 +00:00
jband%netscape.com
00afc449ea adding nsISupportsVoid to the nsISupportsPrimitives family. Fixing some suboptimal use of *retval
git-svn-id: svn://10.0.0.236/trunk@43770 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 03:14:46 +00:00
mscott%netscape.com
80d9915007 Set the msg status feedback object on all mailbox urls. for now, get them from the mail session. Eventually we'll
get this in from the data source.


git-svn-id: svn://10.0.0.236/trunk@43769 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 03:14:40 +00:00
briano%netscape.com
d3863669c3 Cleaned it up and eliminated the reference to the obsolete OBJDIR macro.
git-svn-id: svn://10.0.0.236/trunk@43768 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 03:14:37 +00:00
briano%netscape.com
d357b1151d Added xpinstall/packager.
git-svn-id: svn://10.0.0.236/trunk@43767 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 02:59:26 +00:00
briano%netscape.com
42a9904634 Builds the Unix binary package for release builds.
git-svn-id: svn://10.0.0.236/trunk@43766 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 02:56:38 +00:00
briano%netscape.com
fafb062341 Minor cleanup.
git-svn-id: svn://10.0.0.236/trunk@43765 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 02:54:32 +00:00
mscott%netscape.com
efdd0b210f Export string bundle.
git-svn-id: svn://10.0.0.236/trunk@43764 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 02:46:41 +00:00
mscott%netscape.com
1443fd8162 build string bundle class for local.
git-svn-id: svn://10.0.0.236/trunk@43763 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 02:46:03 +00:00
mscott%netscape.com
4c89179e87 Generate makefiles for local\locale directory.
git-svn-id: svn://10.0.0.236/trunk@43762 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 02:43:46 +00:00
mscott%netscape.com
fdf64a2b3d Export manifest file for mailnews\local\resources\locale\en-US
git-svn-id: svn://10.0.0.236/trunk@43761 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 02:42:35 +00:00
alecf%netscape.com
100f23457f updates to account manager
now create a <deck> for each server, and put an <iframe> in each one


git-svn-id: svn://10.0.0.236/trunk@43760 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 02:38:02 +00:00
mscott%netscape.com
968c11709f build local string bundle.
git-svn-id: svn://10.0.0.236/trunk@43759 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 02:36:25 +00:00
mscott%netscape.com
299aa375fb Build the new locale directory.
git-svn-id: svn://10.0.0.236/trunk@43758 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 02:35:10 +00:00
cls%seawood.org
39f85ce2e6 Must create the intermediate sudir first. Thanks to Tim Rowley <tor@cs.brown.edu> for pointing this out
git-svn-id: svn://10.0.0.236/trunk@43757 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 02:33:21 +00:00
alecf%netscape.com
78174649d9 add "File Here" menu item
git-svn-id: svn://10.0.0.236/trunk@43756 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 02:32:47 +00:00
mscott%netscape.com
be544a97e1 Bug #11686 --> remove comparisons of an unsigned int to something < 0 because that condition could never happen.
git-svn-id: svn://10.0.0.236/trunk@43755 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 02:25:59 +00:00
alecf%netscape.com
1cf2442c80 make use of prefs more robust
git-svn-id: svn://10.0.0.236/trunk@43754 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 02:24:55 +00:00
morse%netscape.com
c44a54c288 remove build warnings
git-svn-id: svn://10.0.0.236/trunk@43753 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 02:16:05 +00:00
cyeh%netscape.com
3301bb9be6 whoops. broke parallel builds. will fix real soon now. also want
to fix generation rules so that you aren't forced to rebuild large sections
of XPCOM when dp starts using it.


git-svn-id: svn://10.0.0.236/trunk@43752 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 01:58:58 +00:00
mcafee%netscape.com
d2d8ea9812 Adding :mozilla:layout:xul:base:public:Manifest for hyatt.
git-svn-id: svn://10.0.0.236/trunk@43751 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 01:14:02 +00:00
bienvenu%netscape.com
e4b41b0eb0 fix linux build bustage
git-svn-id: svn://10.0.0.236/trunk@43750 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 00:36:07 +00:00
ramiro%netscape.com
e9abf6ff7e Added public dir to the build to unbreak it.
git-svn-id: svn://10.0.0.236/trunk@43749 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 00:11:29 +00:00
evaughan%netscape.com
c120b49c87 Fixed link error
git-svn-id: svn://10.0.0.236/trunk@43748 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 00:04:59 +00:00
evaughan%netscape.com
e418bae616 Fixed compile bug.
git-svn-id: svn://10.0.0.236/trunk@43747 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 23:33:38 +00:00
ramiro%netscape.com
78fe07536b Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@43744 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 23:05:52 +00:00
tao%netscape.com
3a5f02ba5f Move strres.js to xpfe/global/resources/content
git-svn-id: svn://10.0.0.236/trunk@43743 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 23:02:36 +00:00
tao%netscape.com
e64c62cdb9 Move strres.js from intl/strres/tests over.
git-svn-id: svn://10.0.0.236/trunk@43742 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 23:01:34 +00:00
evaughan%netscape.com
aaf979c0a0 Fix for build error
git-svn-id: svn://10.0.0.236/trunk@43740 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:44:06 +00:00
pnunn%netscape.com
2d40cbb5d8 Cleaned up returns across api. pnunn.
git-svn-id: svn://10.0.0.236/trunk@43739 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:42:35 +00:00
tao%netscape.com
ec0e472bc9 Get escaped unicode text from property file.
git-svn-id: svn://10.0.0.236/trunk@43738 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:38:49 +00:00
kmcclusk%netscape.com
24c5682859 bug #5944, Changed default widget rendering mode from PartialGfx to Gfx
git-svn-id: svn://10.0.0.236/trunk@43737 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:38:44 +00:00
tao%netscape.com
bd832f7355 Set properties files encoding to escape unicode.
git-svn-id: svn://10.0.0.236/trunk@43736 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:37:35 +00:00
kmcclusk%netscape.com
775f2a2153 added comment that NS_COPYBITS_TO_BACK_BUFFER flag passed to nsRenderingContext::CopyOffscreenBits is obsolete and going away
git-svn-id: svn://10.0.0.236/trunk@43735 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:34:22 +00:00
kmcclusk%netscape.com
80d11de1ed bug #5403 Added code to properly release NetService and IOServices
git-svn-id: svn://10.0.0.236/trunk@43734 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:33:09 +00:00
pnunn%netscape.com
983b649071 Cleaning up returns across api's. pnunn.
git-svn-id: svn://10.0.0.236/trunk@43733 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:31:12 +00:00
saari%netscape.com
2516452095 Adding files for evaughan's xp scrollbars
git-svn-id: svn://10.0.0.236/trunk@43732 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:28:27 +00:00
rhp%netscape.com
9bc52e2757 Change for status interface
git-svn-id: svn://10.0.0.236/trunk@43731 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:28:13 +00:00
bienvenu%netscape.com
2dbbbfedb8 add support for doing compress commit when space is wasted, make listallkeys sort
git-svn-id: svn://10.0.0.236/trunk@43730 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:25:16 +00:00
bienvenu%netscape.com
cd1c780c38 add some db commits since we're not closing db's correctly
git-svn-id: svn://10.0.0.236/trunk@43729 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:23:54 +00:00
pnunn%netscape.com
64149c693b Put in check for error return. pnunn.
git-svn-id: svn://10.0.0.236/trunk@43728 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:23:48 +00:00
vidur%netscape.com
8fdb6facfd Fixed document.cookies after Necko landing.
git-svn-id: svn://10.0.0.236/trunk@43727 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:23:20 +00:00
troy%netscape.com
a088d8cb4d Added invalidate of the cell map as well, since we don't know what has changed
git-svn-id: svn://10.0.0.236/trunk@43726 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:22:52 +00:00
pnunn%netscape.com
411f2f27f0 Cleaning up returns across api's. pnunn.
git-svn-id: svn://10.0.0.236/trunk@43725 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:22:46 +00:00
vidur%netscape.com
f22931fa55 Null check for replaceChild() parameter
git-svn-id: svn://10.0.0.236/trunk@43724 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:22:45 +00:00
hangas%netscape.com
00254a60c3 Added dynamic addressing widget to mail compose window. It still needs work, mainly waiting on XP bugs. Hook?=sspitzer
git-svn-id: svn://10.0.0.236/trunk@43723 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:22:44 +00:00
vidur%netscape.com
89bc046b3c Spaces now stripped from map name for client-side maps. Client-side and server-side imagemaps can now co-exist
git-svn-id: svn://10.0.0.236/trunk@43722 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:22:02 +00:00
akkana%netscape.com
a26cb0367a Ifdef DEBUG, then when doing nsRange::ToString, also dump node contents
to stdout via List() so we can see what's in the range besides text.


git-svn-id: svn://10.0.0.236/trunk@43721 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:20:57 +00:00
hangas%netscape.com
5cba973cd6 Improved DumpDOM to show all attributes of every tag. This will not affect the build.
git-svn-id: svn://10.0.0.236/trunk@43720 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:19:59 +00:00
pnunn%netscape.com
75dd354778 Cleaning up returns across api's. pnunn
git-svn-id: svn://10.0.0.236/trunk@43719 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:19:06 +00:00
pnunn%netscape.com
13b058b1de Cleaning up returns across api. pnunn@netscape.com
git-svn-id: svn://10.0.0.236/trunk@43718 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:17:21 +00:00
evaughan%netscape.com
fd72782f13 xpscrollbars
git-svn-id: svn://10.0.0.236/trunk@43717 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:16:23 +00:00
rods%netscape.com
fb8cb55b71 Adding AppendFrames so it won't crash when adding items.
git-svn-id: svn://10.0.0.236/trunk@43716 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:15:04 +00:00
akkana%netscape.com
4c0a11e3ff Partial work toward 11390, using style instead of embedded pre tag
to control wrapping; this adds a style tag that should work, but
doesn't seem to (see bug 4696), so I've left the old pre tag in place.
Also change text to more accurately reflect the situation, and fix the
80 char reference so that it's really 80 chars (was 78 ;-).


git-svn-id: svn://10.0.0.236/trunk@43715 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:14:54 +00:00
sspitzer%netscape.com
5a13c16a3f the other half of my checkin.
git-svn-id: svn://10.0.0.236/trunk@43714 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:13:56 +00:00
cyeh%netscape.com
9b5ae3e86b fix for 11608, implement XPCOM build id
git-svn-id: svn://10.0.0.236/trunk@43713 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:13:02 +00:00
rhp%netscape.com
3024e2e715 Removing stale directory
git-svn-id: svn://10.0.0.236/trunk@43712 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:12:10 +00:00
akkana%netscape.com
3e1143ba96 11684: remove redundant wrapcol variable from editor
(and fix type in obsolete text editor);
Partial work toward 11390, use style rather than embedded PRE for wrapping
  (unfinished, currently ifdefed out).


git-svn-id: svn://10.0.0.236/trunk@43711 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:11:58 +00:00
hyatt%netscape.com
1b3d134a9d Disabling the old popup code. The new popup code will be coming online
soon.


git-svn-id: svn://10.0.0.236/trunk@43710 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:11:12 +00:00
ducarroz%netscape.com
172cde15a9 Create an autocomplete text widget if needed
git-svn-id: svn://10.0.0.236/trunk@43709 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:11:03 +00:00
ducarroz%netscape.com
88bb45922a Add Get/Set Autocomplete methods
git-svn-id: svn://10.0.0.236/trunk@43708 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:10:56 +00:00
ducarroz%netscape.com
7d66ec6711 add nsGfxAutoTextControlFrame.cpp (auto completion widget)
git-svn-id: svn://10.0.0.236/trunk@43707 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:10:54 +00:00
ducarroz%netscape.com
e865dd4c3a Add constructor definition for autocomplete widget
git-svn-id: svn://10.0.0.236/trunk@43706 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:10:53 +00:00
ducarroz%netscape.com
e901c6e277 Add attribute "autocomplete"
git-svn-id: svn://10.0.0.236/trunk@43705 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:10:52 +00:00
ducarroz%netscape.com
a1eb3e7bb7 add some autocomplete atoms
git-svn-id: svn://10.0.0.236/trunk@43704 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:10:45 +00:00
hyatt%netscape.com
cae9ab2048 Checking in a tweak to menu bar listener, and adding some popup set code.
git-svn-id: svn://10.0.0.236/trunk@43703 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:10:24 +00:00
hyatt%netscape.com
4366098c06 Adding new public directory to xul/base for interfaces, etc.
git-svn-id: svn://10.0.0.236/trunk@43702 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:10:02 +00:00
rhp%netscape.com
764bc28b0e mime fix
git-svn-id: svn://10.0.0.236/trunk@43701 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:09:40 +00:00
slamm%netscape.com
d59506d132 Fix hr sizing (put in div tag). Try to flex the tree.
git-svn-id: svn://10.0.0.236/trunk@43700 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:04:24 +00:00
slamm%netscape.com
61573ae8d9 Open history items in new chromed window. Bug #11986.
git-svn-id: svn://10.0.0.236/trunk@43699 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:02:40 +00:00
sspitzer%netscape.com
43eefd24ff clean up the code a bit.
git-svn-id: svn://10.0.0.236/trunk@43698 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:01:57 +00:00
slamm%netscape.com
d7df6ff412 For debug-only, find default bookmarks file in its new home.
git-svn-id: svn://10.0.0.236/trunk@43697 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:01:40 +00:00
slamm%netscape.com
4b417def74 Use chrome url for dtd's.
git-svn-id: svn://10.0.0.236/trunk@43696 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:00:48 +00:00
slamm%netscape.com
cb516897e6 Work around for bug #9921. Windows of size zero are ignore on Linux right now.
git-svn-id: svn://10.0.0.236/trunk@43695 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 21:59:37 +00:00
jdunn%netscape.com
256b1d1827 Fix problem for HP Native compiler which does not allow 'deletes' on void *.
Judson ok'd the fix


git-svn-id: svn://10.0.0.236/trunk@43694 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 21:42:13 +00:00
mgleeson1%netscape.com
8b5046b266 #
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL.  You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation.  Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation.  All Rights
# Reserved.
#

DEPTH		= ../../../..
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

LIBRARY_NAME	= xpconnect
MODULE		= xpconnect

CPPSRCS		= \
		nsXPConnect.cpp \
		xpcarbitrary.cpp \
		xpccomponents.cpp \
		xpccontext.cpp \
		xpcconvert.cpp \
		xpcjsid.cpp \
		xpclog.cpp \
		xpcmaps.cpp \
		xpcmodule.cpp \
		xpcstack.cpp \
		xpcthreadcontext.cpp \
		xpcthrower.cpp \
		xpcwrappedjs.cpp \
		xpcwrappedjsclass.cpp \
		xpcwrappednative.cpp \
		xpcwrappednativeclass.cpp \
		xpcwrappednativejsops.cpp \
		$(NULL)

include $(topsrcdir)/config/config.mk

# XXX hackage!
# only copy the .so to components dir on platforms where xptcall is supported

# Unixish x86
ifneq (,$(filter SunOS Linux FreeBSD NetBSD BSD_OS,$(OS_ARCH)))
ifeq (86,$(findstring 86,$(OS_TEST)))
IS_COMPONENT	= 1
endif
endif

# Neutrino Cross-Compiled for x86
ifneq (,$(filter NTO,$(OS_TARGET)))
ifeq (86,$(findstring 86,$(OS_TEST)))
IS_COMPONENT	= 1
endif
endif

# Solaris/sparc
ifeq ($(OS_ARCH),SunOS)
ifneq (86,$(findstring 86,$(OS_TEST)))
IS_COMPONENT	= 1
endif
endif

# Linux/sparc
ifeq ($(OS_ARCH),Linux)
ifeq ($(OS_TEST),sparc)
IS_COMPONENT    = 1
endif
endif

# NetBSD/m68k
ifeq ($(OS_ARCH),NetBSD)
ifneq (,$(filter amiga atari hp300 mac68k mvme68k next68k sun3 sun3x x68k,$(OS_TEST)))
IS_COMPONENT	= 1
endif
endif

# BeOS/Intel
ifeq ($(OS_ARCH),BeOS)
ifeq ($(OS_TEST),BePC)
IS_COMPONENT	= 1
endif
endif

# HPUX
ifeq ($(OS_ARCH),HP-UX)
ifneq ($(CC),gcc)
IS_COMPONENT	= 1
endif
endif

# AIX
ifeq ($(OS_ARCH),AIX)
IS_COMPONENT	= 1
endif

# IRIX
ifeq ($(OS_ARCH),IRIX)
ifneq ($(basename $(OS_RELEASE)),5)
IS_COMPONENT	= 1
endif
endif

# OpenVMS (Alpha only at this point)
ifeq ($(OS_ARCH),OpenVMS)
ifeq ($(CPU_ARCH),Alpha)
IS_COMPONENT	= 1
endif
endif

# Linux or NetBSD ARM
ifneq (,$(filter Linux NetBSD,$(OS_ARCH)))
ifeq (arm,$(findstring arm,$(OS_TEST)))
IS_COMPONENT	= 1
endif
ifeq (sa110,$(findstring sa110,$(OS_TEST)))
IS_COMPONENT	= 1
endif
endif

include $(topsrcdir)/config/rules.mk

# this is automatically discovered under BeOS
ifneq ($(OS_ARCH),BeOS)
LIBS		+= \
		-lmozjs \
		-lxpcom \
		-lmozreg \
		$(NSPR_LIBS) \
		$(NULL)
endif

DEFINES		+= -DJSFILE -DJS_THREADSAFE


git-svn-id: svn://10.0.0.236/trunk@43693 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 21:30:47 +00:00
jdunn%netscape.com
ffeb5dd19d Fix build error on AIX, which won't allow 'redefining' of functions (i.e memcopy)
I talked this over with Nisheeth and the only reason this was put in was to
fix compiler warnings.


git-svn-id: svn://10.0.0.236/trunk@43692 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 21:24:06 +00:00
mgleeson1%netscape.com
794f5cd2f3 change for hpux porting
git-svn-id: svn://10.0.0.236/trunk@43691 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 21:17:31 +00:00
cltbld%netscape.com
828d3b714f fix for 11608, implement nsBuildID.h for XPCOM/component registry queries
git-svn-id: svn://10.0.0.236/trunk@43690 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 21:12:27 +00:00
ftang%netscape.com
e3a9327dae rework the states. this is a tool change. Won't break build. The tool is not run in the build process
git-svn-id: svn://10.0.0.236/trunk@43689 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 21:12:05 +00:00
ftang%netscape.com
83904bb4a7 fix euc-jp detection bugs by remove 0x85,0x86,0xeb,0xec from the legal char list. change size of array which won't break build
git-svn-id: svn://10.0.0.236/trunk@43688 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 21:11:07 +00:00
shaver%netscape.com
1cdc557f6b don't use IDL_tree_warning on 0.6.5, it crashes sometimes.
r=alecf, a=mcafeee


git-svn-id: svn://10.0.0.236/trunk@43687 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 21:09:08 +00:00
ftang%netscape.com
7150d852a7 fix euc-jp detection bugs by remove 0x85,0x86,0xeb,0xec from the legal char list. number change which won't break build
git-svn-id: svn://10.0.0.236/trunk@43686 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 21:04:02 +00:00
ftang%netscape.com
7a73724036 fix charset detection by treating 0x85,0x86,0xeb,0xec illegal in sjis. This is a tool change. Won't break build. The tool is not run in the build process
git-svn-id: svn://10.0.0.236/trunk@43685 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 21:02:45 +00:00
locka%iol.ie
193c2a1569 Preliminary editor test support
git-svn-id: svn://10.0.0.236/trunk@43684 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 21:02:22 +00:00
locka%iol.ie
ca6073313f Changes to DHTML model
git-svn-id: svn://10.0.0.236/trunk@43683 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 21:00:44 +00:00
briano%netscape.com
4959eb05db Automated update
git-svn-id: svn://10.0.0.236/trunk@43682 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 21:00:36 +00:00
locka%iol.ie
9b5b533c53 Added some more files
git-svn-id: svn://10.0.0.236/trunk@43681 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:59:11 +00:00
locka%iol.ie
a27c23531e Moved command target stuff in base class
git-svn-id: svn://10.0.0.236/trunk@43680 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:58:31 +00:00
ramiro%netscape.com
be15832550 Fix for qt include dir. Thanks to Brian Ryner <bryner@uiuc.edu> for the
patch.


git-svn-id: svn://10.0.0.236/trunk@43679 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:57:13 +00:00
locka%iol.ie
85f451a5cc Fixed more interface changes
git-svn-id: svn://10.0.0.236/trunk@43678 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:56:00 +00:00
locka%iol.ie
305b3d355a Added editor headers
git-svn-id: svn://10.0.0.236/trunk@43677 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:55:03 +00:00
locka%iol.ie
b894ad84b7 Added editor class ids
git-svn-id: svn://10.0.0.236/trunk@43676 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:54:16 +00:00
locka%iol.ie
fcba6f180f Added IOleCommandTarget to site
git-svn-id: svn://10.0.0.236/trunk@43675 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:53:56 +00:00
locka%iol.ie
6d9817d8d8 Preliminary work for edit mode
git-svn-id: svn://10.0.0.236/trunk@43674 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:52:48 +00:00
ramiro%netscape.com
39d1dd3948 Fix bugs 6023, 8565 10077 and possibly 12091. All of these are gtk keyboard
scrolling problems or related.


git-svn-id: svn://10.0.0.236/trunk@43673 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:50:09 +00:00
cyeh%netscape.com
16f1f0b56a second part: make win32 generate nsIBuildID.h dynamically
git-svn-id: svn://10.0.0.236/trunk@43672 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:45:59 +00:00
karnaze%netscape.com
90a3fa6104 fix mac bustage
git-svn-id: svn://10.0.0.236/trunk@43670 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:36:52 +00:00
vidur%netscape.com
29bf6d365c Changed method signature of EvaluateScript to return nsresult. Added nsJSThreadContextStack pushing and popping around script evaluation.
git-svn-id: svn://10.0.0.236/trunk@43669 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:36:31 +00:00
mgleeson1%netscape.com
d70dfd8146 HP-UX additions
git-svn-id: svn://10.0.0.236/trunk@43668 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:36:06 +00:00
saari%netscape.com
f024af58de Commiting to M9 branch, a temp disabling of keybinding on win32 and linux. Bug 11983. Approved by jevering
git-svn-id: svn://10.0.0.236/trunk@43667 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:35:56 +00:00
cyeh%netscape.com
a850eb6cd8 perl script to generate build number define for xpcom and to fix bug 11608
git-svn-id: svn://10.0.0.236/trunk@43666 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:30:52 +00:00
chuang%netscape.com
9c9b686f5e Add sorting on address book columns
git-svn-id: svn://10.0.0.236/trunk@43663 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:12:19 +00:00
morse%netscape.com
388adb3861 remove warning messages
git-svn-id: svn://10.0.0.236/trunk@43662 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:10:04 +00:00
chuang%netscape.com
63e4c81dda replace pref html to xul
git-svn-id: svn://10.0.0.236/trunk@43661 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:07:18 +00:00
troy%netscape.com
abc7ca3cdf Changed to handle "ReflowDirty" reflow command
git-svn-id: svn://10.0.0.236/trunk@43660 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:05:27 +00:00
rjc%netscape.com
6c16256d59 Tweak Search UI.
git-svn-id: svn://10.0.0.236/trunk@43659 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:00:43 +00:00
briano%netscape.com
bdca50cb7e Automated update
git-svn-id: svn://10.0.0.236/trunk@43658 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:00:26 +00:00
rjc%netscape.com
86a4549c15 Search UI tweaks.
git-svn-id: svn://10.0.0.236/trunk@43657 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:58:26 +00:00
slamm%netscape.com
935acd339c Only write output file if it has changed (fix for no mozconfig case)
git-svn-id: svn://10.0.0.236/trunk@43656 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:58:05 +00:00
rjc%netscape.com
1be1c21ec4 Search datasource tweaks.
git-svn-id: svn://10.0.0.236/trunk@43655 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:57:48 +00:00
rjc%netscape.com
b8e0883710 Get Search stuff into Unix builds.
git-svn-id: svn://10.0.0.236/trunk@43654 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:57:10 +00:00
bienvenu%netscape.com
94865f8f91 add directory param to getcardforemailaddress more work on ab history
git-svn-id: svn://10.0.0.236/trunk@43652 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:56:33 +00:00
slamm%netscape.com
67d862ed7c Re-enable creating directories incrementally. Thanks to Colin Blakes <colin@theblakes.com> for pointing out that OpenVMS needs this. Also, only update Makefiles if their Makefile.in's have changed.
git-svn-id: svn://10.0.0.236/trunk@43651 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:56:26 +00:00
bienvenu%netscape.com
164441d9c0 add directory param to getcardforemailaddress
git-svn-id: svn://10.0.0.236/trunk@43650 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:55:39 +00:00
karnaze%netscape.com
ed362de5b2 moved TableIncrementalReflow from html/tests to html/tests/table/interactive
git-svn-id: svn://10.0.0.236/trunk@43649 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:55:16 +00:00
nhotta%netscape.com
5661e7a356 Fixed compile errors (not part of the build).
git-svn-id: svn://10.0.0.236/trunk@43648 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:55:05 +00:00
ftang%netscape.com
18b8568eaa fix bug 12141
git-svn-id: svn://10.0.0.236/trunk@43647 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:54:52 +00:00
ducarroz%netscape.com
6dc9107ae2 Fix some typo error
git-svn-id: svn://10.0.0.236/trunk@43646 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:54:38 +00:00
slamm%netscape.com
859d746dd6 Make NSPR message look less like an error.
git-svn-id: svn://10.0.0.236/trunk@43645 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:54:16 +00:00
nhotta%netscape.com
45bce72d1a New files (not part of the build).
git-svn-id: svn://10.0.0.236/trunk@43644 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:54:11 +00:00
bienvenu%netscape.com
fd11f7cb08 land new folder and rename for jefft
git-svn-id: svn://10.0.0.236/trunk@43643 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:52:51 +00:00
pavlov%netscape.com
9a86b84210 make viewer happy with my last changes
git-svn-id: svn://10.0.0.236/trunk@43642 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:52:50 +00:00
karnaze%netscape.com
5e4439a661 Added new incremental reflow methods.
CellData keeps track of row versus col spans.
nsColFrame keeps track of what cell contributed to constrained width.
nsCellMap::GetCellFrameAt replace with GetCellInfoAt
simplified nsTableCellFrame::RecalcLayoutData and removed FindLargestMargin, CalculateMargins, CalculateMargins
simplified nsTableFrame::RecalcLayoutData and removed AppendLayoutData
Added gsDebugReflow capability, remove all existing debug printf


git-svn-id: svn://10.0.0.236/trunk@43641 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:52:37 +00:00
pavlov%netscape.com
6b2ee67f8a make resizing not suck!!!!!!!, fix clipboard bug were you couldn't copy/paste two times in a row, remove excess widget baggage
git-svn-id: svn://10.0.0.236/trunk@43640 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:51:33 +00:00
pinkerton%netscape.com
4e13df5872 rewrite to use the new drag gesture event rather than tracking mouse downs/moves.
git-svn-id: svn://10.0.0.236/trunk@43639 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:49:51 +00:00
pinkerton%netscape.com
52c5e3cf3f remove InvokeDragSessionSingle
git-svn-id: svn://10.0.0.236/trunk@43638 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:49:20 +00:00
pinkerton%netscape.com
63f0093f07 add drag gesture event.
git-svn-id: svn://10.0.0.236/trunk@43637 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:48:58 +00:00
pinkerton%netscape.com
6003923042 add drag_gesture event.
git-svn-id: svn://10.0.0.236/trunk@43636 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:48:45 +00:00
pinkerton%netscape.com
d7fdcb2e00 add DragGesture to drag listener.
git-svn-id: svn://10.0.0.236/trunk@43635 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:48:33 +00:00
pinkerton%netscape.com
aac003c882 remove InvokeDragSessionSingle.
git-svn-id: svn://10.0.0.236/trunk@43634 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:48:18 +00:00
sspitzer%netscape.com
7f5a745c3c fix for #12133. get new message was crashing, because it was bringing up the password prompt dialog. nsDialogParamBlock should derive from nsIDialogParamBlock, not nsISupports. Bad things happen. thanks to mscott for the fix.
git-svn-id: svn://10.0.0.236/trunk@43633 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 18:27:18 +00:00
dp%netscape.com
65613971f8 Trying to fix solaris bustage.
git-svn-id: svn://10.0.0.236/trunk@43632 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 16:57:32 +00:00
buster%netscape.com
6b0affad91 just turned off the noisy debugging
git-svn-id: svn://10.0.0.236/trunk@43631 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 15:15:41 +00:00
ramiro%netscape.com
95e4929455 Took out linking of widdget and gfx. Its not needed and it currently
breaks on some platforms, like Neutrino.


git-svn-id: svn://10.0.0.236/trunk@43630 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:57:39 +00:00
ramiro%netscape.com
bd15196ee6 Took out linking of widdget, gfx and parser. Its not needed and it currently
breaks on some platforms, like Neutrino.


git-svn-id: svn://10.0.0.236/trunk@43629 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:57:36 +00:00
dp%netscape.com
4d0065bdcc - Adding a IID paramter to nsIModule::GetClassObject()
git-svn-id: svn://10.0.0.236/trunk@43628 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:55:52 +00:00
dp%netscape.com
4ec4fd68a3 - Adding nsComponentMangager::GetClassObject()
- Adding a nsIID parameter to the nsIModule:GetClassObject()


git-svn-id: svn://10.0.0.236/trunk@43627 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:54:12 +00:00
rods%netscape.com
41642b89ef Added all the focus rules in one place so we can make then right, then we can distribute then through out the file to were each element is defined
git-svn-id: svn://10.0.0.236/trunk@43626 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:48:42 +00:00
danm%netscape.com
a1b6a456ea adding chrome test case to debug menu
git-svn-id: svn://10.0.0.236/trunk@43625 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:48:28 +00:00
briano%netscape.com
228936c9f3 Automated update
git-svn-id: svn://10.0.0.236/trunk@43624 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:45:54 +00:00
danm%netscape.com
ba1721aabc fix refcounting of parent window during window creation. fixes bug 12077.
git-svn-id: svn://10.0.0.236/trunk@43623 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:44:31 +00:00
brade%netscape.com
2969cadc0b add license
git-svn-id: svn://10.0.0.236/trunk@43622 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:38:45 +00:00
brade%netscape.com
3e189f6f69 new images (transparent) from pete@postpagan.com
git-svn-id: svn://10.0.0.236/trunk@43621 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:37:43 +00:00
rods%netscape.com
591fdc2050 Added a check to see if an outline should drawn, if so, then the damagaed rect needs to be inflated so it gets drawn "outside" the frames area
git-svn-id: svn://10.0.0.236/trunk@43620 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:36:47 +00:00
rods%netscape.com
828bda63fb added PaintOutline to paint CSS outlines to paint method
git-svn-id: svn://10.0.0.236/trunk@43619 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:35:48 +00:00
brade%netscape.com
4a929fc494 back out license due to bug in parser
git-svn-id: svn://10.0.0.236/trunk@43618 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:35:23 +00:00
ramiro%netscape.com
96dc82c934 Flip --disable-static to --enable-static. So by default, no extra static
libs are built.


git-svn-id: svn://10.0.0.236/trunk@43617 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:34:03 +00:00
brade%netscape.com
105ccaba11 add license and opening comment (assume that is what was intended)
git-svn-id: svn://10.0.0.236/trunk@43616 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:33:39 +00:00
rods%netscape.com
5cc177c04a Added NS_NewAttributeContent method
git-svn-id: svn://10.0.0.236/trunk@43615 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:32:19 +00:00
rods%netscape.com
a12dd94498 For generated content that gets its value from an attribute, it now creates a new object nsIAttributeContent which goes and gets the current value when needed.
git-svn-id: svn://10.0.0.236/trunk@43614 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:29:55 +00:00
brade%netscape.com
17973a6bca add license
git-svn-id: svn://10.0.0.236/trunk@43613 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:28:44 +00:00
brade%netscape.com
3f3390d0d5 diffs from pete@postpagan.com; add license
git-svn-id: svn://10.0.0.236/trunk@43612 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:28:35 +00:00
rods%netscape.com
b5eb053eec Added method GetSelectedIndex
git-svn-id: svn://10.0.0.236/trunk@43611 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:26:38 +00:00
brade%netscape.com
3172f85c18 reformatting by pete@postpagan.com, pixel/percent handling by Brian King
git-svn-id: svn://10.0.0.236/trunk@43610 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:25:32 +00:00
brade%netscape.com
767a84562a diffs from pete@postpagan.com and Brian King (height and width percent controls)
git-svn-id: svn://10.0.0.236/trunk@43609 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:24:09 +00:00
ramiro%netscape.com
c8ff88f212 Dont link in raptorhtml, raptorweb, raptorwidget, or raptorhmlpars. These are components
which shouldnt be linked in.


git-svn-id: svn://10.0.0.236/trunk@43608 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:23:32 +00:00
dcone%netscape.com
34f93d925a Added a file nsAttributeContent.cpp to project
git-svn-id: svn://10.0.0.236/trunk@43607 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:22:56 +00:00
rods%netscape.com
0c6a0ed6dc Added a new method PaintOutline, and added a new parameter to PaintBorder to tell whether to get the style and color information from the border info or the outline info
git-svn-id: svn://10.0.0.236/trunk@43606 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:22:47 +00:00
brade%netscape.com
5d83f978e0 diffs from pete@postpagan.com and Brian King
git-svn-id: svn://10.0.0.236/trunk@43605 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:22:29 +00:00
rods%netscape.com
4f4439628e added nsAttributeContent.cpp
git-svn-id: svn://10.0.0.236/trunk@43604 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:17:28 +00:00
dcone%netscape.com
b88735289a Took out some code that was not needed...
git-svn-id: svn://10.0.0.236/trunk@43603 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:17:13 +00:00
rods%netscape.com
49eb823f54 Removed some old code, fixed some ref counting, added nsIAttributeContent interface
git-svn-id: svn://10.0.0.236/trunk@43602 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:13:46 +00:00
rods%netscape.com
b3cd7d09f5 Now uses the button for the display area and uses the new selected index methods from the ListControlFrame
git-svn-id: svn://10.0.0.236/trunk@43601 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:11:59 +00:00
rods%netscape.com
64ca5fd641 Renamed some methods and changed the selected item to be able to pass the currently selected index instead of just being able to get the currently selected item
git-svn-id: svn://10.0.0.236/trunk@43600 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:11:28 +00:00
german%netscape.com
be6aea458c cosmetic sidebar changes, yield better look and better font inheriting from window
git-svn-id: svn://10.0.0.236/trunk@43599 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:08:56 +00:00
ramiro%netscape.com
dc44837325 Fix dumb mistake that was breaking BEOS.
git-svn-id: svn://10.0.0.236/trunk@43598 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:07:29 +00:00
rods%netscape.com
2bb86ad135 Now takes into account suggested size in the size calculation
git-svn-id: svn://10.0.0.236/trunk@43597 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:07:05 +00:00
rods%netscape.com
92543253ec Now, check to see if it is disabled or whether the control it cantains is disabled and then does the right thinik with the events
git-svn-id: svn://10.0.0.236/trunk@43596 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:05:36 +00:00
rods%netscape.com
affac488d7 It now loks at the "disabled" property when initialized and looks for an attribute changed notification to disable itself
git-svn-id: svn://10.0.0.236/trunk@43595 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:03:53 +00:00
rods%netscape.com
9ab642bbe5 It now takes into account the suggested size in the calculation
git-svn-id: svn://10.0.0.236/trunk@43594 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:02:20 +00:00
rods%netscape.com
8aa3f445f1 The button was being sized wrong, so the computed border padding needed to be removed beforehand and then is added back in later by layout
git-svn-id: svn://10.0.0.236/trunk@43593 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:00:09 +00:00
buster%netscape.com
4b7d68686a added the ability to set content in a readonly or disabled control via DOM.
fixed some error checking


git-svn-id: svn://10.0.0.236/trunk@43592 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:43:33 +00:00
buster%netscape.com
9d94630564 fixed some documentation
git-svn-id: svn://10.0.0.236/trunk@43591 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:33:49 +00:00
buster%netscape.com
d1193affa0 Fixed a ton of errors where we were not handling error results correctly.
Added some comments of the form "// XXX: ERROR_HANDLING <explanation>"
wherever I saw a potential error but wasn't 100% sure of the intention of the code.
Fixed a few bugs along the way.


git-svn-id: svn://10.0.0.236/trunk@43590 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:30:48 +00:00
kin%netscape.com
a6b30f6bce Re-enabling Editor API Logging on Mac.
git-svn-id: svn://10.0.0.236/trunk@43589 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:27:57 +00:00
brade%netscape.com
4d940dc518 modal dialogs
git-svn-id: svn://10.0.0.236/trunk@43588 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:27:29 +00:00
kin%netscape.com
549b2c9000 added files: mozilla/editor/base/nsEditorTxnLog.cpp, mozilla/editor/base/nsHTMLEditorLog.cpp
git-svn-id: svn://10.0.0.236/trunk@43587 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:25:14 +00:00
kin%netscape.com
bf9c485fd3 Added ScrollRectIntoView() method and other utility methods
to fix several bugs related to scrolling the selection into view.


git-svn-id: svn://10.0.0.236/trunk@43586 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:20:11 +00:00
kin%netscape.com
11de802b21 Modifications to re-enable Editor API Logging which was broken after the last editor source reorg.
editor/base/Makefile.in
  editor/base/makefile.win
    - Modified makefiles build files that were
      renamed, and use new define to build the
      API Logging code.

  editor/base/nsEditor.cpp
  editor/base/nsEditor.h
  editor/base/nsHTMLEditor.cpp
    - Removed all ENABLE_JS_EDITOR_LOG ifdef'd code.
    - Removed all references to nsVector.h.

  editor/base/nsEditorFactory.cpp
    - Added ENABLE_EDITOR_API_LOG ifdef'd code
      that will create an instance of nsHTMLEditorLog
      instead of nsHTMLEditor.

  editor/base/nsEditorTxnLog.cpp
    - Initial checkin of file. File was originally named nsJSTxnLog.cpp.

  editor/base/nsEditorTxnLog.h
    - Initial checkin of file. File was originally named nsJSTxnLog.h.

  editor/base/nsHTMLEditorLog.cpp
    - Initial checkin of file. File was originally named nsJSEditorLog.cpp.
    - nsHTMLEditorLog.cpp now derives from nsHTMLEditor, and only
      overrides methods that modify the content tree and are publicly
      available via XPIDL.

  editor/base/nsHTMLEditorLog.h
    - Initial checkin of file. File was originally named nsJSEditorLog.h.
    - nsHTMLEditorLog.cpp now derives from nsHTMLEditor, and only
      overrides methods that modify the content tree and are publicly
      available via XPIDL.


git-svn-id: svn://10.0.0.236/trunk@43585 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:19:10 +00:00
brade%netscape.com
4c2e814ec1 add license
git-svn-id: svn://10.0.0.236/trunk@43584 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:17:22 +00:00
mccabe%netscape.com
9604bce82d Changes to the xpidl compiler to support generating an 'NS_DECL_NSIFOO' macro when generating the nsIFoo interface, which provides a shorthand to declare all of the methods of that interface.
Also included are various architectural changes to support this, (which required descending the interface and method subtree of the IDL parse tree an extra time) including abstracting out the write_method_signature and write_attr_accessor methods so that they can be called both when generating the interface and when generating the macro.

Purged passing the single TreeState parameter from several leaf functions, and broke it out into parameters foo_tree and output file.  This saved a lot of tree->state twiddling when calling tree-descent functions.

This checkin will cause depend builds to rebuild most of the tree, so be patient...


git-svn-id: svn://10.0.0.236/trunk@43583 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:02:08 +00:00
sgehani%netscape.com
df4b050bbc Turn on building of static zlib and static libjar.
git-svn-id: svn://10.0.0.236/trunk@43582 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 11:08:19 +00:00
sgehani%netscape.com
9c526022a1 Adjusted static lib targets in anticipation of adding them to the build.
git-svn-id: svn://10.0.0.236/trunk@43581 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 10:52:58 +00:00
jband%netscape.com
a14de7a2e8 Fixing xptinfo bug with getting information about the type of an interface pointer parameter of a method when the method is inherited from another interface in another typelib file. The api needs to also pass along the method index in order to convey enough information to always give the right answer. Got that? :) Fixing users of this modified api also.
git-svn-id: svn://10.0.0.236/trunk@43580 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 10:12:30 +00:00
sgehani%netscape.com
a3f2d065cd Fix for Mac specific bug: 10421.
git-svn-id: svn://10.0.0.236/trunk@43579 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 09:48:53 +00:00
mscott%netscape.com
db1cdff9b1 Fix build breakage for alecf. Be sure to build a header file for nsIUrlListenerManager.idl
git-svn-id: svn://10.0.0.236/trunk@43575 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 07:59:40 +00:00
alecf%netscape.com
c205a99eb9 add servertype attribute so that folders show up correctly
git-svn-id: svn://10.0.0.236/trunk@43574 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 07:31:48 +00:00
sspitzer%netscape.com
26cbe114dc fix #8515, #11815. I was failing to send QUIT to the nntp server. this would leave all nntp connections open. eventually the nntp server would stop respond to us. (probably a denial-of-service prevention mechanism). the second side effect is the throbber would spin and spin. now, both are fixed. eventually, I'll need to implement a nntp connection pool...but that's not necessary yet.
git-svn-id: svn://10.0.0.236/trunk@43573 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 07:08:19 +00:00
mscott%netscape.com
52a854167d Add local string bundle. Note: I haven't checked in the makefile changes to build these yet.
git-svn-id: svn://10.0.0.236/trunk@43572 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:57:49 +00:00
tbogard%aol.net
3c6757d1a8 Fixed Mac..
git-svn-id: svn://10.0.0.236/trunk@43571 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:29:05 +00:00
sspitzer%netscape.com
674e1d96bd remove my old, temporary code to generate a prefs.js file with some default mail-news prefs. we don't need this anymore. fixes #12064
git-svn-id: svn://10.0.0.236/trunk@43570 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:28:39 +00:00
sspitzer%netscape.com
1b949e4c3c fix warning
git-svn-id: svn://10.0.0.236/trunk@43569 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:27:24 +00:00
mscott%netscape.com
fc32ed7f48 cvs ignore file.
git-svn-id: svn://10.0.0.236/trunk@43568 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:24:11 +00:00
mscott%netscape.com
053b57a9cd export the local properties file.
git-svn-id: svn://10.0.0.236/trunk@43567 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:23:21 +00:00
mscott%netscape.com
5bf83255a5 Properties file for local mail strings.
git-svn-id: svn://10.0.0.236/trunk@43566 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:22:40 +00:00
mscott%netscape.com
8954acaa43 Adding to the repository. Makefiles for the locale\en-US directory for local mail.
git-svn-id: svn://10.0.0.236/trunk@43565 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:21:59 +00:00
mscott%netscape.com
f8172da02e Adding to CVS.
git-svn-id: svn://10.0.0.236/trunk@43564 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:21:24 +00:00
mscott%netscape.com
49ad8424bd Bug #11980 --> fix a crash after entering a bogus password for pop.
git-svn-id: svn://10.0.0.236/trunk@43563 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:20:19 +00:00
rhp%netscape.com
93d08595b0 Turning on new message header display using XUL
git-svn-id: svn://10.0.0.236/trunk@43562 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:18:22 +00:00
alecf%netscape.com
608e21640e oops, didn't mean to remove this file
git-svn-id: svn://10.0.0.236/trunk@43561 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:09:50 +00:00
alecf%netscape.com
004e096177 add nsIUrlListenerManager.idl to the mac build and remove the old header once and for all
git-svn-id: svn://10.0.0.236/trunk@43560 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:07:33 +00:00
ftang%netscape.com
bed550f28d implement word jump for non Ascii
git-svn-id: svn://10.0.0.236/trunk@43559 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:06:57 +00:00
ducarroz%netscape.com
95bf1356a9 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@43558 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 05:49:48 +00:00
tbogard%aol.net
0e15bab13a XPCOM Cleanup: Fixed error checking on AggregatedQueryInterface agruments.
git-svn-id: svn://10.0.0.236/trunk@43557 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 05:48:10 +00:00
tbogard%aol.net
a74ab35457 XPCOM Cleanup: Fixed Aggregation macros in nsAgg.h to do aggregation correctly. Fixed usages and implementation of aggregation using these macros through out the tree.
git-svn-id: svn://10.0.0.236/trunk@43556 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 05:36:30 +00:00
tbogard%aol.net
591757e319 XPCOM Cleanup: Added macros to make checking arguments and state upon entering interface boundaries easier.
git-svn-id: svn://10.0.0.236/trunk@43555 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 05:32:15 +00:00
mcafee%netscape.com
ccddb55d5e Compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@43554 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 05:21:34 +00:00
mcafee%netscape.com
ca6f475694 Compiler warning.
git-svn-id: svn://10.0.0.236/trunk@43553 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 05:15:59 +00:00
waterson%netscape.com
116be48690 Bug 11819. Create delegate object to implement drag listener events; frames CANNOT be refcounted like normal XPCOM objects.
git-svn-id: svn://10.0.0.236/trunk@43552 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 05:12:07 +00:00
morse%netscape.com
0a363787eb remove most compilation warnings
git-svn-id: svn://10.0.0.236/trunk@43551 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 05:04:36 +00:00
rhp%netscape.com
4867f5d7d9 Adding new sample code
NOT PART OF THE BUILD


git-svn-id: svn://10.0.0.236/trunk@43550 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 04:20:55 +00:00
rhp%netscape.com
dabd15e5e7 Adding sample component
THESE ARE NOT PART OF THE BUILD


git-svn-id: svn://10.0.0.236/trunk@43549 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 04:15:42 +00:00
troy%netscape.com
8a85938908 Changed to table incremental reflow
git-svn-id: svn://10.0.0.236/trunk@43548 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 03:51:25 +00:00
davidm%netscape.com
0cdf1a13e7 File Removed.
git-svn-id: svn://10.0.0.236/trunk@43547 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 03:32:51 +00:00
davidm%netscape.com
b06fa4a343 remove custom button names
git-svn-id: svn://10.0.0.236/trunk@43545 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 03:26:37 +00:00
davidm%netscape.com
60412b375c remove double spacing
git-svn-id: svn://10.0.0.236/trunk@43544 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 03:26:18 +00:00
davidm%netscape.com
e888125556 comment out debugging info
git-svn-id: svn://10.0.0.236/trunk@43543 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 03:26:08 +00:00
rhp%netscape.com
b314c00712 Changes for resource copying
git-svn-id: svn://10.0.0.236/trunk@43542 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 03:23:24 +00:00
rhp%netscape.com
950e6c0155 Changes for new header display
git-svn-id: svn://10.0.0.236/trunk@43541 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 03:23:15 +00:00
leaf%mozilla.org
97bcf14c9a Finishing backout of dougt
git-svn-id: svn://10.0.0.236/trunk@43539 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 02:58:12 +00:00
cltbld%netscape.com
6012537595 backing out dougt
git-svn-id: svn://10.0.0.236/trunk@43538 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 02:36:05 +00:00
leaf%mozilla.org
dca6083dde backing out dougt
git-svn-id: svn://10.0.0.236/trunk@43537 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 02:35:39 +00:00
leaf%mozilla.org
67b41a6864 Backing out dougt
git-svn-id: svn://10.0.0.236/trunk@43536 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 02:34:33 +00:00
terry%mozilla.org
40f8e7a939 Patch by Chris Baldwin <chris.baldwin@siara.com> -- allow optional
entry of the user's realname.  Note that nothing actually makes use of
this info at present.


git-svn-id: svn://10.0.0.236/trunk@43529 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 00:06:01 +00:00
mang%subcarrier.org
27b70365db Doc only. Merged README.html into xpconnect-sample.html.
git-svn-id: svn://10.0.0.236/trunk@43527 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 23:25:41 +00:00
mark.lin%eng.sun.com
723d3837c4 Don't need this anymore. It should get updated dynamically.
git-svn-id: svn://10.0.0.236/trunk@43526 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 23:24:20 +00:00
mark.lin%eng.sun.com
c125b1e22d This should make sure nsSetupRegistry.cpp gets updated.
git-svn-id: svn://10.0.0.236/trunk@43525 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 23:22:27 +00:00
syd%netscape.com
8957e27a35 Added test case for alert() Javascript. This is to provide a test case for apparent bug in
window.close() (I'll be filing the bug shortly). A=cyeh.


git-svn-id: svn://10.0.0.236/trunk@43517 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 20:09:49 +00:00
frankm%eng.sun.com
fabff9de30 Updated README with extra caveats; TODO marks stable compilation as "done".
git-svn-id: svn://10.0.0.236/trunk@43514 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 17:58:55 +00:00
despotdaemon%netscape.com
53b77c5001 Pseudo-automatic update of changes made by buster@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@43513 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 17:15:37 +00:00
despotdaemon%netscape.com
3502744c87 Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@43512 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 17:00:49 +00:00
despotdaemon%netscape.com
383326e215 Pseudo-automatic update of changes made by buster@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@43511 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 16:31:15 +00:00
despotdaemon%netscape.com
d26bd326bf Pseudo-automatic update of changes made by dmose@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@43510 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 16:28:54 +00:00
rods%netscape.com
2275e460f5 getting unicode data from clipboard
git-svn-id: svn://10.0.0.236/trunk@43508 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 15:10:18 +00:00
rods%netscape.com
87ee09fd1a HTML is placed on clipboard as Unicode and no longer stips remaining zeroes
git-svn-id: svn://10.0.0.236/trunk@43507 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 14:58:05 +00:00
rods%netscape.com
1a571a832e fixed minor casting warning
git-svn-id: svn://10.0.0.236/trunk@43506 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 14:57:06 +00:00
rods%netscape.com
88f9544400 added Unicode support and multiply the length now by 2 because and changed it to put Unicode on the clipboard for HTML
git-svn-id: svn://10.0.0.236/trunk@43505 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 14:56:39 +00:00
rods%netscape.com
33968cdf1a make minor changes to fix warnings
git-svn-id: svn://10.0.0.236/trunk@43504 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 14:54:01 +00:00
rods%netscape.com
0d8871f9e8 added nsAttributeContent.cpp
git-svn-id: svn://10.0.0.236/trunk@43503 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 14:52:32 +00:00
rods%netscape.com
77778b02ec initial add
git-svn-id: svn://10.0.0.236/trunk@43502 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 14:51:56 +00:00
german%netscape.com
8dbf87e176 correcting wrong label for cancel button
git-svn-id: svn://10.0.0.236/trunk@43501 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 14:47:59 +00:00
rods%netscape.com
44cae0ff0a removed warnings: rearranged initializers and removed unused variable "onChild"
git-svn-id: svn://10.0.0.236/trunk@43500 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 14:41:53 +00:00
rods%netscape.com
81fba2a25d Cleanup warnings
git-svn-id: svn://10.0.0.236/trunk@43499 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 14:40:21 +00:00
ftang%netscape.com
83f4f923d0 add u Escaped
git-svn-id: svn://10.0.0.236/trunk@43498 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 13:46:02 +00:00
ftang%netscape.com
6f52c87a5f add U Escaped to Dll
git-svn-id: svn://10.0.0.236/trunk@43497 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 13:42:21 +00:00
ftang%netscape.com
68592c7f44 aadd u Escaped
git-svn-id: svn://10.0.0.236/trunk@43496 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 13:39:54 +00:00
ftang%netscape.com
9036126384 add UEscape
git-svn-id: svn://10.0.0.236/trunk@43495 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 13:35:20 +00:00
ftang%netscape.com
381320c465 add UEscape to makefile
git-svn-id: svn://10.0.0.236/trunk@43494 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 13:32:17 +00:00
ftang%netscape.com
23b4408dc2 add CIDs
git-svn-id: svn://10.0.0.236/trunk@43493 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 13:31:38 +00:00
ftang%netscape.com
0adca80ecc add u escaped encoder/decoder
git-svn-id: svn://10.0.0.236/trunk@43492 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 13:30:09 +00:00
dougt%netscape.com
fca701ce95 removing Security specific stuff.
git-svn-id: svn://10.0.0.236/trunk@43491 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 09:42:58 +00:00
dougt%netscape.com
8b121b25d9 updating for the new net notification service.
changed Qi


git-svn-id: svn://10.0.0.236/trunk@43490 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 09:35:04 +00:00
dougt%netscape.com
816c2914d7 Updating to use new NetMod Notification.
git-svn-id: svn://10.0.0.236/trunk@43489 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 09:33:27 +00:00
dougt%netscape.com
0d0f9ec313 Adding thread proxy support to Net Module Notification.
General cleanup


git-svn-id: svn://10.0.0.236/trunk@43488 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 09:32:26 +00:00
dougt%netscape.com
9d342b98ae Removing ProxyType so that I can do masking
Added new proxy type so that we bypass the Current Thread check.


git-svn-id: svn://10.0.0.236/trunk@43487 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 09:21:47 +00:00
hshaw%netscape.com
c212533d6f fix bug where RegisterService() was matched with ReleaseService() instead of UnregisterService()
git-svn-id: svn://10.0.0.236/trunk@43486 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 08:49:57 +00:00
waterson%netscape.com
5c18e4cc6c Bug 11016. Clean up GetSourceDocumentURL() return paths s.t. sourceURL is null and/or error code is set if do_QueryInterface() fails.
git-svn-id: svn://10.0.0.236/trunk@43485 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 08:48:33 +00:00
jfrancis%netscape.com
41485faa2c some reorg of block transformation code; implemented make-{header,preformatted,address,normal}; tweaked make list to honor <br> in some circumstances; rewrote "return in list item" to pop you out of list if item is empty; rewrote "return in header" to work with non-trivial headers.
git-svn-id: svn://10.0.0.236/trunk@43484 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 08:13:06 +00:00
rhp%netscape.com
f1f8f96519 Fixing VC5 Build bustage
git-svn-id: svn://10.0.0.236/trunk@43483 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 07:45:30 +00:00
ftang%netscape.com
7749728820 fix mapping getter problem
git-svn-id: svn://10.0.0.236/trunk@43482 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 07:34:00 +00:00
rhp%netscape.com
14f5ba2df3 Fix for Mac bustage
git-svn-id: svn://10.0.0.236/trunk@43479 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 06:48:35 +00:00
waterson%netscape.com
2e846eab7f Add nsXULTreeElement.cpp.
git-svn-id: svn://10.0.0.236/trunk@43478 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 06:19:40 +00:00
sgehani%netscape.com
b20bcb2046 Fix for UNIX specific bug: 10180.
git-svn-id: svn://10.0.0.236/trunk@43477 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 05:51:58 +00:00
morse%netscape.com
8219d0c6ad remove xp_list dependency
git-svn-id: svn://10.0.0.236/trunk@43476 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 05:49:20 +00:00
waterson%netscape.com
562ad080d6 Resurrect delegation of XULTreeElement interface to an aggregate object.
git-svn-id: svn://10.0.0.236/trunk@43475 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 05:45:40 +00:00
morse%netscape.com
1b41cfb90e fix bugs when adding and deleting
git-svn-id: svn://10.0.0.236/trunk@43474 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 05:44:45 +00:00
waterson%netscape.com
a1331cfac5 Add nsJSXULTreeElement and nsXULTreeElement to the build.
git-svn-id: svn://10.0.0.236/trunk@43473 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 05:40:37 +00:00
bienvenu%netscape.com
eb92278150 add RemoveSubFolder for Jefft
git-svn-id: svn://10.0.0.236/trunk@43472 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 05:35:54 +00:00
bienvenu%netscape.com
4f2f26e2e0 add nsIAbAddressCollecter.idl to windows and unix makefiles
git-svn-id: svn://10.0.0.236/trunk@43471 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 05:33:09 +00:00
rhp%netscape.com
99539a08e8 Fix for file paths on Mac
git-svn-id: svn://10.0.0.236/trunk@43470 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 05:15:41 +00:00
waterson%netscape.com
2df14546e2 Add TestStackCrawl, which is currently broken :-(.
git-svn-id: svn://10.0.0.236/trunk@43469 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 04:53:51 +00:00
davidm%netscape.com
c3409bea63 Check in code to proxy calls over to nsICommonDialogs
git-svn-id: svn://10.0.0.236/trunk@43468 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 04:41:17 +00:00
bienvenu%netscape.com
e9633224ca more work on ab history, not part of build
git-svn-id: svn://10.0.0.236/trunk@43467 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 04:29:01 +00:00
waterson%netscape.com
996ac54aef Add nsXULTreeElement and nsJSXULTreeElement to the build.
git-svn-id: svn://10.0.0.236/trunk@43466 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 04:28:11 +00:00
waterson%netscape.com
df5dcf88ad Regenerated with updated idlc compiler.
git-svn-id: svn://10.0.0.236/trunk@43465 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 04:26:12 +00:00
waterson%netscape.com
f7ad61bb0c Add verbage.
git-svn-id: svn://10.0.0.236/trunk@43464 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 04:25:24 +00:00
bienvenu%netscape.com
945a966288 add CID for adress collecter
git-svn-id: svn://10.0.0.236/trunk@43463 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 04:08:45 +00:00
bienvenu%netscape.com
eda3aa536d add method to get card given e-mail address
git-svn-id: svn://10.0.0.236/trunk@43462 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 04:07:55 +00:00
bienvenu%netscape.com
290a132e15 fix i18n sorting of sender
git-svn-id: svn://10.0.0.236/trunk@43461 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 04:05:57 +00:00
waterson%netscape.com
53fb20e6e2 Re-added to support tree selection. Not yet in the build.
git-svn-id: svn://10.0.0.236/trunk@43459 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 03:21:26 +00:00
dougt%netscape.com
c0cec0bc9c removing security specific commands.
Adding protocol icon support to xul.


git-svn-id: svn://10.0.0.236/trunk@43458 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 03:17:20 +00:00
mcafee%netscape.com
9fd5d55a83 Fixing linux bustage.
git-svn-id: svn://10.0.0.236/trunk@43457 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:46:50 +00:00
alecf%netscape.com
f3c807b32e make identity more robust to the prefs service going up and down
git-svn-id: svn://10.0.0.236/trunk@43456 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:40:08 +00:00
alecf%netscape.com
58795c2fb0 make account more robust for prefs service
git-svn-id: svn://10.0.0.236/trunk@43455 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:38:20 +00:00
alecf%netscape.com
db8dee2d69 reflect the ServerType into RDF
git-svn-id: svn://10.0.0.236/trunk@43454 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:37:16 +00:00
alecf%netscape.com
5f5799b461 add 4.x style folder icons for folder pane
git-svn-id: svn://10.0.0.236/trunk@43453 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:35:33 +00:00
sspitzer%netscape.com
7cbe5cebb7 fix #8364. this gets rid of a really annoying assert on the Mac when using IMAP.
git-svn-id: svn://10.0.0.236/trunk@43452 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:27:17 +00:00
dveditz%netscape.com
69d0c248e5 Turn off symlinking until we figure out why Autoreg doesn't figure out when
components get updated (bug 11988). Could simply be that NT support for
linking is piss-poor and forgets to update the directory info. Drat!


git-svn-id: svn://10.0.0.236/trunk@43451 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:24:07 +00:00
davidm%netscape.com
39bcd04e0b remove NetSupportDialogs.dtd and .xul
git-svn-id: svn://10.0.0.236/trunk@43450 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:21:45 +00:00
dp%netscape.com
6682a1986f XPCOM Brownbag 1
git-svn-id: svn://10.0.0.236/trunk@43449 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:17:28 +00:00
dougt%netscape.com
9ce9c8b2b7 Adding fix for 6181. It is currently ifdef'ed out. Looking for a mac person to
verify.


git-svn-id: svn://10.0.0.236/trunk@43448 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:17:21 +00:00
srinivas%netscape.com
148b371427 Inlcude the assembly language implementation of the stack operations only when
_PR_HAVE_ATOMIC_CAS is defined. Bugzilla #11576.


git-svn-id: svn://10.0.0.236/trunk@43447 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:17:13 +00:00
waterson%netscape.com
f809da45c8 Re-add nsIDOMXULTreeElement.h to the build, pending selection API work.
git-svn-id: svn://10.0.0.236/trunk@43446 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:15:29 +00:00
davidm%netscape.com
4a4473fae1 Add new routine for setting numer of strings
Fix bug in password dialog


git-svn-id: svn://10.0.0.236/trunk@43445 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:15:06 +00:00
davidm%netscape.com
4f462f9a4f update files. Add in positioning code
git-svn-id: svn://10.0.0.236/trunk@43444 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:14:22 +00:00
waterson%netscape.com
75691cc4e6 Re-add XULTreeElement for selection tracking API.
git-svn-id: svn://10.0.0.236/trunk@43443 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:12:53 +00:00
jband%netscape.com
4f057bd673 reserving NS_ERROR_MODULE_XPCONNECT
git-svn-id: svn://10.0.0.236/trunk@43442 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:08:26 +00:00
bienvenu%netscape.com
0f68ba0bdf more progress and status and alert handling + password prompts
git-svn-id: svn://10.0.0.236/trunk@43441 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:03:43 +00:00
rhp%netscape.com
abe1076647 Changes for new envelope display
git-svn-id: svn://10.0.0.236/trunk@43440 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 01:40:27 +00:00
rhp%netscape.com
2634be0e12 New resources for mail envelope
git-svn-id: svn://10.0.0.236/trunk@43439 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 01:39:25 +00:00
rhp%netscape.com
a5ac5580e4 Fix for I18N reload issue
git-svn-id: svn://10.0.0.236/trunk@43438 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 01:39:20 +00:00
rhp%netscape.com
c322b11bb6 Changes for Envelope display and fixing MHTML sending capabilities
git-svn-id: svn://10.0.0.236/trunk@43437 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 01:39:17 +00:00
rhp%netscape.com
7110ba9f76 new envelope functionality
git-svn-id: svn://10.0.0.236/trunk@43435 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 01:31:50 +00:00
rhp%netscape.com
524627c8af New envelope functionality
git-svn-id: svn://10.0.0.236/trunk@43434 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 01:30:55 +00:00
rhp%netscape.com
21fbc1e254 new files
git-svn-id: svn://10.0.0.236/trunk@43433 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 01:30:12 +00:00
saari%netscape.com
7a6d0fe5f1 Fix for bug 11949
git-svn-id: svn://10.0.0.236/trunk@43432 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 01:20:52 +00:00
ramiro%netscape.com
2144a5f188 Fix for -lpref linking problems. Dont link with libpref, its not needed.
git-svn-id: svn://10.0.0.236/trunk@43431 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 00:27:50 +00:00
leaf%mozilla.org
9f37b5bbef fixing the -lsecfree problem: temporary hack until ramiro checks in
fixes for the -lpref situation


git-svn-id: svn://10.0.0.236/trunk@43429 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 00:06:09 +00:00
leaf%mozilla.org
7fe15b87ec Adding secfree to link line for apprunner. build hack to be fixed when ramiro figures out how to link without LD_LIBRARY_PATH
git-svn-id: svn://10.0.0.236/trunk@43420 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 19:01:03 +00:00
ramiro%netscape.com
5d721ddff5 Fix for crash on startup.
git-svn-id: svn://10.0.0.236/trunk@43419 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 18:59:44 +00:00
ramiro%netscape.com
a104b767bf Fix windows bustage. My fault, i missed an EXPORTS. Sorry.
git-svn-id: svn://10.0.0.236/trunk@43418 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 17:56:55 +00:00
ramiro%netscape.com
46d79ff62d CLeanup the nsWidgetSupport.cpp mess on windows. Moved it to its own place. Its only
needed by test apps.


git-svn-id: svn://10.0.0.236/trunk@43417 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 16:31:52 +00:00
ramiro%netscape.com
2f3a69136e Link with neckoutil_s as windows does.
git-svn-id: svn://10.0.0.236/trunk@43416 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 16:26:25 +00:00
ramiro%netscape.com
f95f15088e Make it look prettier.
git-svn-id: svn://10.0.0.236/trunk@43415 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 16:24:46 +00:00
ramiro%netscape.com
d252f12551 Cleanup the nsWidgetSupport.cpp mess on unix. Windows next.
git-svn-id: svn://10.0.0.236/trunk@43414 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 16:09:40 +00:00
ramiro%netscape.com
4cc02629c5 Link in secfree dynamically only where needed.
git-svn-id: svn://10.0.0.236/trunk@43413 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 15:46:57 +00:00
ramiro%netscape.com
ad821d1be4 Dont link in the webshell into the app.
git-svn-id: svn://10.0.0.236/trunk@43412 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 14:42:25 +00:00
ramiro%netscape.com
e52eec57c2 Add Makefile dependencies for $(LIBRARY) and $(SHARED_LIBRARY) so that
libs will get rebuilt if the makefile changes.  Should make depend builds
more reliable.


git-svn-id: svn://10.0.0.236/trunk@43411 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 14:04:54 +00:00
briano%netscape.com
fd87bafb1b Automated update
git-svn-id: svn://10.0.0.236/trunk@43410 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 14:00:20 +00:00
ramiro%netscape.com
0a1d5aa72d Remove dumb sleep 3 thing that always freaks me out.
git-svn-id: svn://10.0.0.236/trunk@43409 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 13:57:06 +00:00
ramiro%netscape.com
233f49736d Dont link in the parser into the app. Link it in dynamically where needed.
This makes the link depenencies on unix be more like windows.  Makes it
easier to track dependency problems and simplifies makefiles.


git-svn-id: svn://10.0.0.236/trunk@43408 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 13:54:48 +00:00
ramiro%netscape.com
d643b42df6 Move nsIXlibWindowService.h to its own place.
git-svn-id: svn://10.0.0.236/trunk@43407 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 13:26:13 +00:00
ramiro%netscape.com
f1a77b7eac Add Makefile dependencies for PROGRAM and SIMPLE_PROGRAMS, so that program
targets will be rebuilt if the makefile changes.  This should make depend
builds more reliable, especially for tests.


git-svn-id: svn://10.0.0.236/trunk@43406 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 13:08:51 +00:00
ramiro%netscape.com
4517f5371f Link expat and xmltok into the htmlparser statically. Not into the app.
git-svn-id: svn://10.0.0.236/trunk@43405 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 12:46:23 +00:00
ramiro%netscape.com
54d13a33c2 Build expat before htmlparser.
git-svn-id: svn://10.0.0.236/trunk@43404 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 11:51:14 +00:00
briano%netscape.com
247b74ad01 Automated update
git-svn-id: svn://10.0.0.236/trunk@43403 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 09:45:50 +00:00
ramiro%netscape.com
acca485ab8 Remove the TOOLKIT_EXORCISM hack. Make non-monolithic toolkit linking the
default for Linux and Solaris.  Need testing on other platforms (HELP!)
That means that toolkit libraries are not linked into the app - for truly
XP apps such as the apprunner.  The gecko viewer still needs to link in
the toolkit, cause it has toolkit code in its main().
Replace the hack with something more useful.  There is a
--enable-monolithic-toolkit flag for platforms with dumb linkers and runtime
loaders.

Also landed the remainder of Shawn Packwood's qt port.


git-svn-id: svn://10.0.0.236/trunk@43402 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 09:33:48 +00:00
ramiro%netscape.com
340a385924 Ignore moc generated files.
git-svn-id: svn://10.0.0.236/trunk@43400 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 09:14:44 +00:00
ramiro%netscape.com
8f7bee05dd Protect against a null mWebShell.
git-svn-id: svn://10.0.0.236/trunk@43398 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 07:09:44 +00:00
ramiro%netscape.com
2338d00971 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@43397 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 07:07:01 +00:00
ramiro%netscape.com
9848591dec Comment out broken code. Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@43396 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 06:59:45 +00:00
ramiro%netscape.com
641b305f2e Update for api change. Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@43395 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 06:57:31 +00:00
ramiro%netscape.com
b3dd0d6604 Fix the qt timers.
git-svn-id: svn://10.0.0.236/trunk@43394 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 06:56:13 +00:00
leaf%mozilla.org
982c4c206f checking in build_number fix, only affects official builds
git-svn-id: svn://10.0.0.236/trunk@43389 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 02:03:26 +00:00
dp%netscape.com
941e69bc5b gLogModule defined only inside of NS_DEBUG. Protecting access.
git-svn-id: svn://10.0.0.236/trunk@43387 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 01:28:58 +00:00
ramiro%netscape.com
64c4198ede Fix for bug 11964. Timers were leaking again. Approved by jevering.
git-svn-id: svn://10.0.0.236/trunk@43386 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 01:05:09 +00:00
radha%netscape.com
ecbf682515 Fix for 10051. reviewed by claudius. approved by cyeh.
git-svn-id: svn://10.0.0.236/trunk@43384 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 00:32:10 +00:00
radha%netscape.com
de3576ba3e Fix for bug 11877. Kin and ftang reviewed the code. dp approved it. Put back the old
history code in webshell since it breaks viewer.


git-svn-id: svn://10.0.0.236/trunk@43383 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 00:29:09 +00:00
terry%mozilla.org
fa4b36a766 Added OpenVMS to the list of operating systems.
git-svn-id: svn://10.0.0.236/trunk@43379 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-16 23:54:50 +00:00
mark.lin%eng.sun.com
3d0bea0571 Fixed the bug where the page the user specifies from the command line wouldn't open.
git-svn-id: svn://10.0.0.236/trunk@43377 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-16 23:26:40 +00:00
mark.lin%eng.sun.com
03147adead Added stuff to LD_LIBRARY_PATH
git-svn-id: svn://10.0.0.236/trunk@43376 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-16 23:23:06 +00:00
briano%netscape.com
a8a0ef2fc2 Automated update
git-svn-id: svn://10.0.0.236/trunk@43375 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-16 23:00:26 +00:00
briano%netscape.com
c2f854e9e4 Fixed a typo in the last of the possible MKSHLIB_FORCE_ALL choices.
git-svn-id: svn://10.0.0.236/trunk@43374 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-16 22:59:17 +00:00
danm%netscape.com
0d2f1b579b disable browser appcore's load of default page for new windows created by NewWebShell. fixes bug 11404. a:cyeh@netscape.com
git-svn-id: svn://10.0.0.236/trunk@43373 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-16 22:23:19 +00:00
norris%netscape.com
4ae1fbacd2 Add a comment.
git-svn-id: svn://10.0.0.236/trunk@43369 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-16 18:54:47 +00:00
radha%netscape.com
13bd8da2e3 Fix for 11577. No need to go thro' session history to obtain the current
document's url. Verified in windows and linux. Code review =vidur
approved=scc


git-svn-id: svn://10.0.0.236/trunk@43354 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-15 00:20:58 +00:00
dp%netscape.com
14d3f28f8e Calling shutdown listeners on XPCOM Shutdown. Fix bug #11790
git-svn-id: svn://10.0.0.236/trunk@43353 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 21:32:29 +00:00
beard%netscape.com
4b7e673354 added call to JMDrawFrameInPort in printApplet(), to test latest MRJ API.
git-svn-id: svn://10.0.0.236/trunk@43351 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 19:40:57 +00:00
beard%netscape.com
713fa5aadf 1.0d10
git-svn-id: svn://10.0.0.236/trunk@43350 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 19:40:00 +00:00
morse%netscape.com
ed8bf5d335 fix bugs 11716 and 11766
git-svn-id: svn://10.0.0.236/trunk@43349 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 16:56:52 +00:00
rjc%netscape.com
13f3f41df1 Fix bug # 11832: Approval: chofmann. Review: waterson.
git-svn-id: svn://10.0.0.236/trunk@43348 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 11:11:45 +00:00
rhp%netscape.com
a56546a228 Fix for Bug: #10813 - Approval: jevering
git-svn-id: svn://10.0.0.236/trunk@43347 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 06:36:48 +00:00
briano%netscape.com
4d84dcc6fe Fix for bug 11852. No effect on non-release builds.
git-svn-id: svn://10.0.0.236/trunk@43346 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 03:36:38 +00:00
briano%netscape.com
aa4f172bc6 Automated update
git-svn-id: svn://10.0.0.236/trunk@43345 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 03:15:21 +00:00
briano%netscape.com
ab6576547e SunOS-specific change to enable my last change to xpidl_idl.c.
git-svn-id: svn://10.0.0.236/trunk@43344 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 03:12:37 +00:00
briano%netscape.com
65bd94fb99 Now it will handle the obscure case where sprintf returns a string instead of an int. Reviewed by mccabe and jband. Approved by chofmann.
git-svn-id: svn://10.0.0.236/trunk@43343 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 03:11:10 +00:00
beard%netscape.com
cc26d1baa0 js now propagates ThreadDeath exceptions
git-svn-id: svn://10.0.0.236/trunk@43340 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 02:32:20 +00:00
dp%netscape.com
6a933740e7 added files: mozilla/modules/libimg/gifcom/nsGIFModule.cpp, removed files: mozilla/modules/libimg/gifcom/nsGIFCallback.cpp
git-svn-id: svn://10.0.0.236/trunk@43336 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 02:01:43 +00:00
beard%netscape.com
cfa4a2dbe7 added mozilla/js/rhino/org/mozilla/javascript/tools/shell/SharedGlobal.java
git-svn-id: svn://10.0.0.236/trunk@43335 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 02:01:00 +00:00
dp%netscape.com
08e46a57e4 Adding nsGIFModule.cpp; Removing nsGIFCallback.cpp
git-svn-id: svn://10.0.0.236/trunk@43334 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 01:45:36 +00:00
davidm%netscape.com
81836bbabf remove virtual destructor to fix crash on windows.
4279 Error with JS: window.confirm() method not defined 
4279   [FEATURE] JavaScript Alert dialogs 
a= choffman


git-svn-id: svn://10.0.0.236/trunk@43333 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 01:35:17 +00:00
dp%netscape.com
5f154897a1 Removing nsGIFCallback.cpp
git-svn-id: svn://10.0.0.236/trunk@43332 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 01:26:49 +00:00
jj%netscape.com
98d6f6704a #11852: now updates build number in navigator.dtd instead of navigator.xul.
git-svn-id: svn://10.0.0.236/trunk@43331 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 00:23:27 +00:00
briano%netscape.com
c37a1e6ece Automated update
git-svn-id: svn://10.0.0.236/trunk@43330 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 00:16:12 +00:00
briano%netscape.com
3cdda4e9c2 HP-specific fix. Defining NSCAP_DISABLE_DEBUG_PTR_TYPES to hopefully get it to build successfully.
git-svn-id: svn://10.0.0.236/trunk@43329 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 00:15:23 +00:00
saari%netscape.com
fe312719b6 Fix for Mac menu crasher. Same fix as hyatt did for XPMenus. Permission ala chofmann
git-svn-id: svn://10.0.0.236/trunk@43328 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:52:49 +00:00
valeski%netscape.com
01b481b10d chofmann approved. fix for 11461, refresh for some meta refresh urls was happening irregularly.
git-svn-id: svn://10.0.0.236/trunk@43327 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:50:29 +00:00
hyatt%netscape.com
8b7e2f5874 Fix for bugs 11858 and 10774.
git-svn-id: svn://10.0.0.236/trunk@43326 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:49:53 +00:00
briano%netscape.com
192de6a2cd Added Colin's (colin@theblakes.com) latest changes.
git-svn-id: svn://10.0.0.236/trunk@43325 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:38:50 +00:00
frankm%eng.sun.com
420a3aafbf Added java/Makefile.in, java/xpcom/TODO; minor correctoiosn to java/xpcom/README.
Fix libxpjava.so JNI and linking problems.


git-svn-id: svn://10.0.0.236/trunk@43324 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:36:09 +00:00
briano%netscape.com
03c0e51424 Fixed the indented #include line that was breaking OpenVMS. Thanks to Colin Blake (colin@theblakes.com) for the fix. Approved by chofmann@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@43323 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:32:44 +00:00
sfraser%netscape.com
9ad6f45b0f Part of fix for 11790, crash on quit. Need delete[] on an array. r dp, a chofmann
git-svn-id: svn://10.0.0.236/trunk@43322 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:27:54 +00:00
sfraser%netscape.com
f16cb65e32 Part of fix for 11790, crash on quit. Initialize data members, and remove unnecessary virtual from destructor. r dp, a chofmann
git-svn-id: svn://10.0.0.236/trunk@43321 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:27:31 +00:00
sfraser%netscape.com
06d4c42e7e Part of fix for 11790, crash on quit. Don't try to delete static data. r dp, a chofmann
git-svn-id: svn://10.0.0.236/trunk@43320 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:26:47 +00:00
mark.lin%eng.sun.com
8089a10b47 Oops, forgot to add this file.
git-svn-id: svn://10.0.0.236/trunk@43319 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:21:19 +00:00
edburns%acm.org
a94106069b THIS FILE IS NOT IN THE BUILD!
Corrected typo.


git-svn-id: svn://10.0.0.236/trunk@43318 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:10:43 +00:00
edburns%acm.org
993e189f56 THIS FILE IS NOT IN THE BUILD!
Added Scott Holmes's changes, replacing hard coded WIN32_D.OBJ with
$(DIST).


git-svn-id: svn://10.0.0.236/trunk@43317 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:09:21 +00:00
mark.lin%eng.sun.com
d1ada5f5b1 Rearchitected the way Mozilla events are delivered in the Unix Motif port.
Events are now handled by a Java Thread.


git-svn-id: svn://10.0.0.236/trunk@43316 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:02:40 +00:00
mark.lin%eng.sun.com
fc3246623a Rearchitected the way the Mozilla event thread is run. I'm using
a Java Thread now instead to control Mozilla/GTK events.


git-svn-id: svn://10.0.0.236/trunk@43315 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:01:49 +00:00
scc%netscape.com
c108d9dde2 renamed to QueryReferent, do_QueryReferent, etc.
git-svn-id: svn://10.0.0.236/trunk@43314 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:00:58 +00:00
tague%netscape.com
1bdbfaf844 Fix bug #11687 - [Dogfood] Enable ender to save documents in encodings other than ISO-8859-1. Approved by chofmann@netscape.com, reviewed by buster@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@43310 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 22:26:50 +00:00
gordon%netscape.com
a116a12a03 This is just a NECKO test app. Updating to work on Mac.
git-svn-id: svn://10.0.0.236/trunk@43309 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 22:18:34 +00:00
bienvenu%netscape.com
2d3b49cb9a part of fix for 11651 fix memory leak of status msg a=chofmann
git-svn-id: svn://10.0.0.236/trunk@43306 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 21:43:08 +00:00
bienvenu%netscape.com
381c583751 part of fix for 11651 print out status msgs with args a=chofmann
git-svn-id: svn://10.0.0.236/trunk@43305 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 21:41:57 +00:00
bienvenu%netscape.com
84afbe0517 part of fix for 11651 turn off cylon mode in progress when have non zero percentage a=chofmann
git-svn-id: svn://10.0.0.236/trunk@43304 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 21:39:40 +00:00
pinkerton%netscape.com
f4ecdaa51d correctly check result codes of OS calls and null terminate the exported mappings for placing on the clipboard. Fixes bug #11569 (appr chofmann).
git-svn-id: svn://10.0.0.236/trunk@43301 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 21:05:49 +00:00
davidm%netscape.com
a9437e3020 4279 Error with JS: window.confirm() method not defined
4279   [FEATURE] JavaScript Alert dialogs 
a= choffman


git-svn-id: svn://10.0.0.236/trunk@43300 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 21:04:48 +00:00
ramiro%netscape.com
b58d6e0ddb Fix for bug 2595. Thats the evil bug that causes widgets to be "messed up"
whenever a reflow happens.  The offset were being computed from the wrong
origin.  See comments in nsWidget::Move() if you want to be confused.


git-svn-id: svn://10.0.0.236/trunk@43299 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 20:56:40 +00:00
norris%netscape.com
251a24c31b Fix more importerTopLevel problems.
git-svn-id: svn://10.0.0.236/trunk@43298 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 20:44:46 +00:00
pavlov%netscape.com
db455303dc ifdef out some printfs to make akkana happy a=chofmann
git-svn-id: svn://10.0.0.236/trunk@43297 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 20:39:34 +00:00
morse%netscape.com
b0f1986087 fix bug 10406, approved chofmann
git-svn-id: svn://10.0.0.236/trunk@43296 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 20:22:35 +00:00
dp%netscape.com
2f61f25ba2 Adding nsGIFModule as a result of xpcom review of gif.
git-svn-id: svn://10.0.0.236/trunk@43295 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 20:21:16 +00:00
dp%netscape.com
4d630e99fa - using ComponentManager instead of service manager in nsIModule
- Adding UnregisterComponentSpec()
All the above are required for xpcom review.


git-svn-id: svn://10.0.0.236/trunk@43292 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 19:30:13 +00:00
dp%netscape.com
ef4782e088 Dll unloading support. These are not used yet.
git-svn-id: svn://10.0.0.236/trunk@43291 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 19:27:58 +00:00
slamm%netscape.com
a62eda2122 Use correct chrome url for history window (bug #11834). a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@43290 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 19:25:37 +00:00
mark.lin%eng.sun.com
8d66acb131 Merged in Kirk's changes.
git-svn-id: svn://10.0.0.236/trunk@43289 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 17:53:43 +00:00
norris%netscape.com
ad51604c84 Fix problem:
The fix sort of works. But there are some new problems. I enclosed two JavaScript files, button.js and image.js.

If I load button.js first and then image.js, I got the following:

js> load("button.js");
js> load("image.js");
Ambiguous import: [JavaClass javax.swing.ImageIcon] and [JavaClass javax.swing.ImageIcon]
js> load("image.js");
Ambiguous import: [JavaClass java.net.URL] and [JavaClass java.net.URL]
js> load("image.js");
Ambiguous import: [JavaClass java.lang.System] and [JavaClass java.lang.System]
js> load("image.js");
loadImage for 0
Ambiguous import: [JavaClass java.awt.Toolkit] and [JavaClass java.awt.Toolkit]
js> load("image.js");
loadImage for 0
js>

If I load imag.js first and then button.js, I got the following:

js> load("image.js");
loadImage for 0
js: [JavaPackage java.lang.URL] is not a function.
[JavaPackage java.lang.URL] is not a function.
js> load("image.js");
js: [JavaPackage java.lang.ImageIcon] is not a function.
[JavaPackage java.lang.ImageIcon] is not a function.
js> load("image.js");
js: [JavaPackage java.lang.ImageIcon] is not a function.
[JavaPackage java.lang.ImageIcon] is not a function.
js> load("image.js");
js: [JavaPackage java.lang.ImageIcon] is not a function.
[JavaPackage java.lang.ImageIcon] is not a function.
js> load("button.js");
js: [JavaPackage java.lang.JButton] is not a function.
[JavaPackage java.lang.JButton] is not a function.
js> load("button.js");
js: [JavaPackage java.lang.JButton] is not a function.
[JavaPackage java.lang.JButton] is not a function.
js> load("image.js");
js: [JavaPackage java.lang.ImageIcon] is not a function.
[JavaPackage java.lang.ImageIcon] is not a function.
js>

It looks like something wrong in the image.js file but this should not interfere with button.js. It looks like some arbitary package objects are created, like java.lang.URL. This happened in NativeJavaPackage.get method. If a class of java.lang.URL is not found, a package object is then created. So next time the interpreter encounters URL, it somehow uses the object java.lang.URL instead of the correct class object java.net.URL.. This is one problem. The interference between button.js and jmage.js is another problem.

Howard
  ----- Original Message -----
  From: Norris Boyd
  To: \ Howard\\ Xuhua Lin
  Sent: Thursday, August 12, 1999 12:58 PM
  Subject: Re: ImporterTopLevel problem


  Sorry I've been slow. I finished up the fix this morning and have posted it on the ftp site and checked into cvs.
  Let me know if it works for you.

  --Norris

  \"Howard\" Xuhua Lin wrote:

    Hi, Norris, what's the status of the ImporterTopeLevel problem (i.e if you use importPackage twice, you will get an "Ambiguous import" exception)? Are you still working on it? Howard


git-svn-id: svn://10.0.0.236/trunk@43287 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 17:25:14 +00:00
terry%mozilla.org
7fdeb6c5e6 Wasn't using the 'emailsuffix' param.
git-svn-id: svn://10.0.0.236/trunk@43286 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 17:10:01 +00:00
slamm%netscape.com
461146e454 Add navigation links. Make no script case more obvious to user.
git-svn-id: svn://10.0.0.236/trunk@43285 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 15:57:50 +00:00
slamm%netscape.com
750c4a39ef Text tweaks.
git-svn-id: svn://10.0.0.236/trunk@43284 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 15:27:56 +00:00
dp%netscape.com
35b8c690cb Adding GetIID() accessors
git-svn-id: svn://10.0.0.236/trunk@43283 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 08:35:58 +00:00
dveditz%netscape.com
e978e25f70 bug 9602: we now have a modal confirmation dialog before downloading and
installing software. Big thanks to danm and davidm for implementing
the modal dialog support required. Approved chofmann


git-svn-id: svn://10.0.0.236/trunk@43282 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 07:27:04 +00:00
toshok%hungry.com
f966d0d966 we need the nspr private directory, even if building from the mozilla source tree, on unix.
git-svn-id: svn://10.0.0.236/trunk@43281 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 06:05:16 +00:00
gagan%netscape.com
52aa69ea46 backslashes in ..\.. cases fixed. Thanks bratell@lysator.liu.se
git-svn-id: svn://10.0.0.236/trunk@43279 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 05:20:45 +00:00
warren%netscape.com
7f9c4b0c7c Reduced max page count.
git-svn-id: svn://10.0.0.236/trunk@43278 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 03:31:56 +00:00
davidm%netscape.com
54104fe196 add : so that the mac will run
approved by don


git-svn-id: svn://10.0.0.236/trunk@43277 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 03:20:27 +00:00
neeti%netscape.com
9b31535312 fix for bug# 11796. r morse, a chofmann
git-svn-id: svn://10.0.0.236/trunk@43276 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 01:42:43 +00:00
briano%netscape.com
ab76f82d8b Automated update
git-svn-id: svn://10.0.0.236/trunk@43275 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 01:00:29 +00:00
slamm%netscape.com
2b93edc64c Take out -Wbad-function-cast and -Wconversion for gcc. These gave more noise than helpful warnings. We can add them back in later if we run out of warnings to fix. a=don
git-svn-id: svn://10.0.0.236/trunk@43273 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 00:52:27 +00:00
bienvenu%netscape.com
bc38c717bf more work on ab history, not part of build
git-svn-id: svn://10.0.0.236/trunk@43272 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 00:52:04 +00:00
warren%netscape.com
7a040bf33f Fix for bug 10797: Messenger hang. 2 problems: mac shouldn't be using page manager -- doesn't do vm, and trying to flush when the buffer is empty ends up spinning.
git-svn-id: svn://10.0.0.236/trunk@43271 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 00:46:16 +00:00
warren%netscape.com
894be4eb22 Fix for bug 7682: StringBundle can't load URLs from imap thread.
git-svn-id: svn://10.0.0.236/trunk@43270 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 00:43:48 +00:00
terry%mozilla.org
aa2e2fb298 Add in babelfish code (stolen from infobot).
git-svn-id: svn://10.0.0.236/trunk@43269 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 00:21:01 +00:00
pavlov%netscape.com
fc1225789e fix for bug 9446. only seen in viewer, doesn't effect apprunner a=gramps
git-svn-id: svn://10.0.0.236/trunk@43268 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 23:54:23 +00:00
robinf%netscape.com
ab60bdc1ef updating text on this screen
git-svn-id: svn://10.0.0.236/trunk@43267 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 23:48:42 +00:00
matt%netscape.com
ca6cc59280 Adding for bug fix 11706
git-svn-id: svn://10.0.0.236/trunk@43266 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 22:46:26 +00:00
matt%netscape.com
662a2519a6 updating to add locale/en-US
git-svn-id: svn://10.0.0.236/trunk@43265 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 22:44:25 +00:00
matt%netscape.com
ce4f9482ce Adding makefile locale/en-US
git-svn-id: svn://10.0.0.236/trunk@43264 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 22:41:25 +00:00
matt%netscape.com
bdba3509bd Adding makefiles
git-svn-id: svn://10.0.0.236/trunk@43263 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 22:37:18 +00:00
matt%netscape.com
971b413e59 adding makefiles
git-svn-id: svn://10.0.0.236/trunk@43262 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 22:34:23 +00:00
matt%netscape.com
ff8e0a6051 Adding dtd support to files. Appoved by hoffmann bugs 10343 7309 10252
git-svn-id: svn://10.0.0.236/trunk@43261 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 22:31:10 +00:00
danm%netscape.com
caf895916f Landing modal dialogs from JS. More like a feature than stabilization. Apologies. approved: chofmann,don
git-svn-id: svn://10.0.0.236/trunk@43260 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 22:08:17 +00:00
jefft%netscape.com
ab909dcc23 fix bug 6216 -- SMPT send removes CRLF lines; a=cyeh, r=rhp; tested on Windows & Mac
git-svn-id: svn://10.0.0.236/trunk@43259 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 22:07:51 +00:00
kmcclusk%netscape.com
be14e9d88a Fix for bug #11717. Check in Ok'ed by cyeh@netscape.com
Don't do the super class'es IsSuccessful because it always returns PR_FALSE
because the (this) pointer is not equal to the submitter.


git-svn-id: svn://10.0.0.236/trunk@43258 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 22:06:09 +00:00
pavlov%netscape.com
e5a5e29811 fix for bug 11564. a=gramps
git-svn-id: svn://10.0.0.236/trunk@43257 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 21:48:43 +00:00
dbragg%netscape.com
6fd3ca9e03 Added pref-migrator project (Approved by chofmann) to fix bug #11220
git-svn-id: svn://10.0.0.236/trunk@43256 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 21:31:08 +00:00
mark.lin%eng.sun.com
d2a2d9fea5 Should not be setting className to null if we get an exception.
git-svn-id: svn://10.0.0.236/trunk@43255 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 21:29:15 +00:00
hyatt%netscape.com
a0f5caf3e8 A minor addendum to the bug fix I checked in a few minutes ago.
git-svn-id: svn://10.0.0.236/trunk@43254 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 21:20:04 +00:00
slamm%netscape.com
f673b6646b Remove double inclusion of rules.mk and autoconf.mk. Gave a bunch of warnings. a=don.
git-svn-id: svn://10.0.0.236/trunk@43253 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 20:53:25 +00:00
pinkerton%netscape.com
cd7ba6e57c temp tweak to turn off toolbar d&d for M9 because it's too sensitive. bug 11397. appr don.
git-svn-id: svn://10.0.0.236/trunk@43252 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 20:52:47 +00:00
hyatt%netscape.com
060d781c2c Fix for bug #11418 and #11506 (which are actually the
same bug).  Approved by chofmann.


git-svn-id: svn://10.0.0.236/trunk@43251 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 20:45:47 +00:00
racham%netscape.com
c39b4bba6b Adding printfs for bug isolation purposes. Part of bug 11638, 11716 fixes. Rev by gayatri. Approved by Chris Yeh.
git-svn-id: svn://10.0.0.236/trunk@43249 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 20:25:09 +00:00
racham%netscape.com
8b82f76f34 Fixing crashers 11638, 11716. Rev by gayatri. Approved by Chris Yeh.
git-svn-id: svn://10.0.0.236/trunk@43248 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 20:22:52 +00:00
hangas%netscape.com
4a950c6c54 Added the toolbar and resizeable features back into the windows. a=cyeh
git-svn-id: svn://10.0.0.236/trunk@43247 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 19:58:06 +00:00
mark.lin%eng.sun.com
57f7107637 Added warning about gtk-config in Unix makefile
git-svn-id: svn://10.0.0.236/trunk@43246 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 19:37:23 +00:00
mark.lin%eng.sun.com
2cead547fa Added more things to make it run on solaris.
git-svn-id: svn://10.0.0.236/trunk@43245 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 19:19:18 +00:00
mark.lin%eng.sun.com
1462f37d17 Updated these files.
git-svn-id: svn://10.0.0.236/trunk@43244 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 19:08:39 +00:00
mark.lin%eng.sun.com
b75ff67e35 Solaris runem file
git-svn-id: svn://10.0.0.236/trunk@43243 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 18:56:45 +00:00
mark.lin%eng.sun.com
ebcb84c199 Added solaris makefile.
git-svn-id: svn://10.0.0.236/trunk@43242 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 18:56:09 +00:00
hyatt%netscape.com
a6b67d8126 Not a compiled checkin. Tweaking a style rule in xul.css to make the progress
meter blend in with the chrome (rather than being that ugly grey color).
Harmless and safe.


git-svn-id: svn://10.0.0.236/trunk@43241 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 18:37:21 +00:00
radha%netscape.com
dea81bceeb Fix bustage on unix
git-svn-id: svn://10.0.0.236/trunk@43240 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 17:58:28 +00:00
radha%netscape.com
70ddf8fe4c Fix for bug 11657. Pass load type as LOAD_NORMAL when a page is reloaded.
For everything else, pass LOAD_HISTORY as reload type.
review=nisheeth, approved=chofmann


git-svn-id: svn://10.0.0.236/trunk@43239 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 17:25:55 +00:00
radha%netscape.com
8e55f7df43 Fix for bug 8151. check whether url is a valid value before deciding that
something is already in the load and return. Code review=nisheeth
approved=chofmann


git-svn-id: svn://10.0.0.236/trunk@43238 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 17:24:11 +00:00
norris%netscape.com
d27eab8f42 Fix the following problem:
Subject:
        ImporterTopLevel problem
   Date:
        Fri, 6 Aug 1999 15:42:50 -0400
   From:
        "\"Howard\" Xuhua Lin" <howard@softcom.com>
     To:
        "Norris Boyd" <norris@netscape.com>
    CC:
        "Andrew Wason" <aw@softcom.com>




Hi, The following script will cause an EvaluatorException: Ambiguous import: [JavaPackage java.awt.JButton] and [JavaPackage
java.awt.Packages.javax.swing.JButton] in the js shell:

js>importPackage(java.awt);
js>importPackage(Packages.javax.swing);
js>new JButton();.

The current JS shell will not print this exception message, even though the comment says "// Already printed message, so just fall
through". I add System.err.println(ee.getMessage()); for this exception.

The problem is that in NativeJavaPackage.get(String, Scriptable) method, if a ClassNotFoundException is caught, a
NativeJavaPackage object is created and passed back to ImporterTopLevel.get Method. So in ImporterTopLevel.get method, object v
is always not NOT_FOUND and the ambiguous exception will be thrown. Object v is supposed to be a Class object but it actually is
a Package object.

The fix can be either (1) in NativeJavaPackage.get(String, Scriptable) method, if a ClassNotFoundException is caught, return a
NOT_FOUND object (you may still create a Package object) or (2) in ImporterTopLevel.get method, make sure the returned object
from NativeJavaPackage.get method is of NativeJavaClass type.

Howard


git-svn-id: svn://10.0.0.236/trunk@43237 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 16:59:29 +00:00
bienvenu%netscape.com
d4ca7a7287 address collecter, not part of build
git-svn-id: svn://10.0.0.236/trunk@43236 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 14:37:26 +00:00
gagan%netscape.com
577a76139d Added the Param field for a URL. Fixes the bugs being seen by semicolons in URL.
git-svn-id: svn://10.0.0.236/trunk@43235 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 10:01:33 +00:00
gagan%netscape.com
2f3c10a4aa Fixed bunch of M9 bugs for Necko.
git-svn-id: svn://10.0.0.236/trunk@43234 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 09:59:24 +00:00
waterson%netscape.com
8f51e073d4 Bug 11667. Fix unsigned/signed mismatch.
git-svn-id: svn://10.0.0.236/trunk@43233 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 08:49:44 +00:00
waterson%netscape.com
4442df0ce8 Bug 11484. Be defensive if a null pointer is passed as the doc title in SetPageTitle().
git-svn-id: svn://10.0.0.236/trunk@43232 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 08:46:35 +00:00
waterson%netscape.com
c1401ff707 Bug 11539. Display 'title' as NC:Description instead of NC:Source.
git-svn-id: svn://10.0.0.236/trunk@43231 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 08:44:02 +00:00
waterson%netscape.com
6d8fbf677c Bug 11539. Only display description field until column pushers & resizing work.
git-svn-id: svn://10.0.0.236/trunk@43230 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 08:43:27 +00:00
rjc%netscape.com
e546ded763 Fix bug # 11626: get context menus in the bookmarks window working again. Approval: chofmann. Review: Hyatt
git-svn-id: svn://10.0.0.236/trunk@43229 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 08:30:02 +00:00
briano%netscape.com
3b29234100 Automated update
git-svn-id: svn://10.0.0.236/trunk@43228 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 08:10:50 +00:00
briano%netscape.com
13b35ef14b Finally found a 'fix' for the OSF/1 ld's problem with multiply defined
symbols when building a .so.  It creates the .so successfully, but returns
a non-zero exit status, so the build fails.  This change ignores the return
status.  This is OSF/1 (DU) specific.


git-svn-id: svn://10.0.0.236/trunk@43227 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 08:09:37 +00:00
sfraser%netscape.com
cc2c62ce13 One final try to get the header output paths right.
git-svn-id: svn://10.0.0.236/trunk@43226 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 06:07:12 +00:00
beard%netscape.com
050a7fed60 fixed access paths to point to the one, true, dist..
git-svn-id: svn://10.0.0.236/trunk@43225 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 04:29:35 +00:00
beard%netscape.com
0a3c89bb6b hoo boy, fixing breakage, adding new build rules, rah!
git-svn-id: svn://10.0.0.236/trunk@43224 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 03:57:56 +00:00
beard%netscape.com
2dfc6121d4 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@43223 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 03:57:06 +00:00
beard%netscape.com
1b3816cdd0 to fix build breakage, removed nsIJVMManager.h
git-svn-id: svn://10.0.0.236/trunk@43222 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 03:33:16 +00:00
talisman%anamorphic.com
5216c11e4e Updates for JavaMail 1.1.x.
git-svn-id: svn://10.0.0.236/trunk@43221 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 03:28:00 +00:00
bienvenu%netscape.com
d51c20c700 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@43220 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 03:10:30 +00:00
shawnp%earthling.net
aaa1552107 Additional files needed to get viewer working with qt port. Only basic
functionality is present - enough to get it working.


git-svn-id: svn://10.0.0.236/trunk@43219 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 02:56:33 +00:00
talisman%anamorphic.com
2ac44b23c4 Fixed display bustage.
git-svn-id: svn://10.0.0.236/trunk@43218 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 02:43:29 +00:00
shawnp%earthling.net
eeb33fbc83 Initial version of qt timer files. Did just enough work to get it to work.
git-svn-id: svn://10.0.0.236/trunk@43217 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 02:33:43 +00:00
shawnp%earthling.net
736f86d880 Initial version of qt widget files. I've put quite a lot of work into most
of the classes, but there are still some major gaping holes in
functionality.


git-svn-id: svn://10.0.0.236/trunk@43216 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 02:30:02 +00:00
briano%netscape.com
e52cfdfeb1 Unix native compilers don't like it when files don't end with a newline.
git-svn-id: svn://10.0.0.236/trunk@43215 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 01:58:19 +00:00
edburns%acm.org
e65bc07e20 This fix is for http://bugzilla.mozilla.org/show_bug.cgi?id=5429.
This fix enables the Tasks->Java Console menu item to show the Java
Console provided by the JRE plugin if it is installed.

It also exposes nsIJVMManager as a full XPIDL citizen, with the progid
component://netscape/oji/jvm-mgr.  see modules/oji/public/nsIJVMManager.idl
for the methods that can be called.

Thanks to Trevor, John Bandauer, Brendan Eich and Robert Yang.


git-svn-id: svn://10.0.0.236/trunk@43214 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 01:56:18 +00:00
briano%netscape.com
1cf8df04f0 Fixed the missing newline bug that was upsetting HP.
git-svn-id: svn://10.0.0.236/trunk@43213 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 01:53:17 +00:00
shawnp%earthling.net
86283ca951 Initial version of Qt gfx files. Still pretty raw in most places.
git-svn-id: svn://10.0.0.236/trunk@43212 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 01:52:44 +00:00
shawnp%earthling.net
5213f77b0e Initial checkin of Qt gfx files. Still pretty raw in a lot of places.
git-svn-id: svn://10.0.0.236/trunk@43211 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 01:51:25 +00:00
waterson%netscape.com
8e77aec007 Bug 11575. Null check after pulling URI out of a resource. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@43210 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 01:16:13 +00:00
valeski%netscape.com
4637a84b9b added pipe2 stuff back in after patrick got the pipe2 stuff linking in w/ mac
git-svn-id: svn://10.0.0.236/trunk@43209 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 01:01:55 +00:00
rhp%netscape.com
19a0ccc118 Fix for attachment display - approved by: chofmann@netscape.com
git-svn-id: svn://10.0.0.236/trunk@43208 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 00:50:59 +00:00
beard%netscape.com
dc584d1040 added nsPipe2.cpp, nsSegmentedBuffer.cpp.
git-svn-id: svn://10.0.0.236/trunk@43207 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 00:12:37 +00:00
beard%netscape.com
70c5601c48 added NS_NewPipe* exports for nsPipe.cpp & nsPipe2.cpp
git-svn-id: svn://10.0.0.236/trunk@43206 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 00:11:54 +00:00
slamm%netscape.com
dd06be4deb Fix chrome urls as last part of fix for bug #10341. a=chofmann. Does not affect the build.
git-svn-id: svn://10.0.0.236/trunk@43205 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 00:10:32 +00:00
valeski%netscape.com
6325130175 removed nsPipe2 api usage
git-svn-id: svn://10.0.0.236/trunk@43204 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 23:58:35 +00:00
danm%netscape.com
c35f4b3264 fix WeakReference exporting for Windows. a:chofmann r:scc.
git-svn-id: svn://10.0.0.236/trunk@43203 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 23:48:08 +00:00
cyeh%netscape.com
26ed44f0cd adding manifest-win file in preparation for installers. not used or built
anywhere. reviewed cyeh, approved cyeh.


git-svn-id: svn://10.0.0.236/trunk@43202 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 23:34:26 +00:00
nisheeth%netscape.com
40dfc2db3f Fix for bug 11483. Scripts were not getting loaded on XML pages.
git-svn-id: svn://10.0.0.236/trunk@43201 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 23:24:59 +00:00
slamm%netscape.com
484553972b Add some gifs back that were not moved during the great DTD reshuffle. now #11679 was #10341.
git-svn-id: svn://10.0.0.236/trunk@43200 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 22:51:44 +00:00
slamm%netscape.com
83caa48fda Move bookmarks resources into their own directory (bug #10341) and use chrome urls to reference them. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@43199 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 22:27:57 +00:00
valeski%netscape.com
41e9183dfb added files: mozilla/netwerk/protocol/ftp/public/nsIFTPContext.idl
git-svn-id: svn://10.0.0.236/trunk@43198 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 22:27:12 +00:00
valeski%netscape.com
73be36541d adding next rev of ftp protocol
git-svn-id: svn://10.0.0.236/trunk@43197 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 22:26:32 +00:00
briano%netscape.com
58474cd33f Fixed the typos in 2 filenames. Hint: Upper and lower case matter on Unix....
git-svn-id: svn://10.0.0.236/trunk@43196 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 22:06:10 +00:00
slamm%netscape.com
55bb7abd58 Move bookmarks resources into their own directory (bug #10341). a=chofmann
git-svn-id: svn://10.0.0.236/trunk@43195 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 22:02:49 +00:00
slamm%netscape.com
f0733ff6df Replace 'resource:' urls with 'chrome:' urls (bug #10341). a=chofmann
git-svn-id: svn://10.0.0.236/trunk@43194 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 22:02:28 +00:00
slamm%netscape.com
7e3db19126 Use chrome url for sitemap.gif (bug #11640). a=choffman
git-svn-id: svn://10.0.0.236/trunk@43193 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 22:01:10 +00:00
briano%netscape.com
844532a22e Removed the references to the 6 files that no longer exist.
git-svn-id: svn://10.0.0.236/trunk@43192 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 21:59:48 +00:00
rpotts%netscape.com
64afa4ef7b Bug #11410. Changed NS_ASSERTION to checkc the *correct* variable. Someday I'll grow a brain and become really dangerous...
git-svn-id: svn://10.0.0.236/trunk@43191 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 21:15:49 +00:00
scc%netscape.com
82a1333075 export all symbols; added prefslib
git-svn-id: svn://10.0.0.236/trunk@43190 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 20:59:12 +00:00
morse%netscape.com
a5ad87f6f8 fix bug 11647
git-svn-id: svn://10.0.0.236/trunk@43189 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 20:31:27 +00:00
akkana%netscape.com
f2fcaf686b Fix editor stopper 11616. a=leaf@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@43188 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 19:20:34 +00:00
rogerl%netscape.com
813e07ff5f Converting value type for setter method to match declared type.
git-svn-id: svn://10.0.0.236/trunk@43187 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 18:33:48 +00:00
rogerl%netscape.com
d8b79d08e2 Factored out convertArg so that it can be called from ScriptableObject
for setter methods.


git-svn-id: svn://10.0.0.236/trunk@43186 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 18:31:34 +00:00
mark.lin%eng.sun.com
fe65d6a572 updated run script
git-svn-id: svn://10.0.0.236/trunk@43185 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 17:55:18 +00:00
miodrag%netscape.com
226fb3fc7c Synch up with the main dev tree, sdk version = 4.02
git-svn-id: svn://10.0.0.236/trunk@43184 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 17:20:23 +00:00
cyeh%netscape.com
b2c98135c6 add rhat to stocks to track
git-svn-id: svn://10.0.0.236/trunk@43183 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 17:10:00 +00:00
warren%netscape.com
b1b034de2c Fixed problem for large files (or small buffers). Added logging.
git-svn-id: svn://10.0.0.236/trunk@43181 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 08:17:35 +00:00
warren%netscape.com
e2ab5c6f7e Removed useless nsIServiceManager.h
git-svn-id: svn://10.0.0.236/trunk@43180 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 08:13:52 +00:00
warren%netscape.com
34a55c9d19 Added more logging code.
git-svn-id: svn://10.0.0.236/trunk@43179 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 08:13:07 +00:00
matt%netscape.com
daf1ea3752 fix for bug 9607. Appoved by jev
git-svn-id: svn://10.0.0.236/trunk@43178 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 07:24:37 +00:00
scc%netscape.com
83eb4e3a4d added the new cookie project
git-svn-id: svn://10.0.0.236/trunk@43177 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 07:07:32 +00:00
dveditz%netscape.com
44049d369c fix bug 9603
git-svn-id: svn://10.0.0.236/trunk@43176 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 06:58:55 +00:00
matt%netscape.com
d344070030 Adding dtd files for navigator
git-svn-id: svn://10.0.0.236/trunk@43175 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 06:41:52 +00:00
rjc%netscape.com
ba265c0e53 Fix bug # 10352: date sorting.
git-svn-id: svn://10.0.0.236/trunk@43174 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 06:24:56 +00:00
danm%netscape.com
35017bab4b synch declaration of NS_GetWeakReference with its implementation
git-svn-id: svn://10.0.0.236/trunk@43173 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 06:14:05 +00:00
cls%seawood.org
1030255a57 More gcc 2.95 fixes
git-svn-id: svn://10.0.0.236/trunk@43172 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 05:59:26 +00:00
nisheeth%netscape.com
046dfd83a1 Fix for bug 8251. We needed to resolve relative URLs when we loaded external DTDs. This had been fixed earlier but the fix needed to get replicated for the Necko code path.
git-svn-id: svn://10.0.0.236/trunk@43171 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 05:53:37 +00:00
ssu%netscape.com
48e46392fc install wizard now unpacks to correct target dir
git-svn-id: svn://10.0.0.236/trunk@43170 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 05:38:40 +00:00
racham%netscape.com
cdbd88a827 Automatic migration for a single unmigrated profile
git-svn-id: svn://10.0.0.236/trunk@43169 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 05:21:59 +00:00
scc%netscape.com
bdfc460dc6 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@43168 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 05:19:50 +00:00
rhp%netscape.com
339bc0a66d Fix to support XUL and old HTML output.
git-svn-id: svn://10.0.0.236/trunk@43167 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 05:04:00 +00:00
ramiro%netscape.com
653ac096df Add NS_NATIVE_PLUGIN_PORT case to GetNativeData() so that plugins will work.
git-svn-id: svn://10.0.0.236/trunk@43166 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 05:01:36 +00:00
jefft%netscape.com
4c6552b642 enable Rename Folder & New Folder
git-svn-id: svn://10.0.0.236/trunk@43165 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:58:09 +00:00
jefft%netscape.com
75b9bed695 enabled RenameFolder()
git-svn-id: svn://10.0.0.236/trunk@43164 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:54:48 +00:00
jefft%netscape.com
222f63ef21 enabled RenameFolder() for Imap
git-svn-id: svn://10.0.0.236/trunk@43163 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:53:36 +00:00
jefft%netscape.com
c21238c9a1 added new folder name dialog for NewFolder() & RenameFolder()
git-svn-id: svn://10.0.0.236/trunk@43162 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:52:24 +00:00
jefft%netscape.com
962aa709de added newFolderNameDialog.xul & newFolderNameDialog.js
git-svn-id: svn://10.0.0.236/trunk@43161 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:51:34 +00:00
jefft%netscape.com
12391683e3 added newFolderNameDialog.dtd
git-svn-id: svn://10.0.0.236/trunk@43160 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:49:49 +00:00
pinkerton%netscape.com
340a7d48ab fix, and update for new tri-state checkbox built off of html:input.
git-svn-id: svn://10.0.0.236/trunk@43159 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:46:56 +00:00
pinkerton%netscape.com
d334cb1ecb cleaning up and simplifying checkbox. Adding tri-state checkbox behavior keyed off of the presence of an attribute.
git-svn-id: svn://10.0.0.236/trunk@43158 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:45:49 +00:00
racham%netscape.com
4b8e44cf15 Adding XP_MAC for mac migration
git-svn-id: svn://10.0.0.236/trunk@43157 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:44:53 +00:00
rogerl%netscape.com
787b4d4b45 Undo captures from failed OPT child
git-svn-id: svn://10.0.0.236/trunk@43156 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:34:52 +00:00
rogerl%netscape.com
567d4e7159 Tentative fix for allowing call to 'exec' on RegExp objects.
git-svn-id: svn://10.0.0.236/trunk@43155 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:34:05 +00:00
rogerl%netscape.com
572469bdd1 Fix 'zero' & 'one' to use byte instead of Double
git-svn-id: svn://10.0.0.236/trunk@43154 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:33:08 +00:00
rogerl%netscape.com
f140a7f1f2 Fixed lastIndex test - value is ignored for non-global regexp.
git-svn-id: svn://10.0.0.236/trunk@43153 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:31:19 +00:00
gagan%netscape.com
cfa9061d2b Temporarily fixing the assert which I think is ok, but would let rpotts confirm it.
git-svn-id: svn://10.0.0.236/trunk@43152 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:28:32 +00:00
ssu%netscape.com
efda98832e add lockout
git-svn-id: svn://10.0.0.236/trunk@43151 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:18:38 +00:00
ssu%netscape.com
b7c590c5ed free returned string [dveditz]
git-svn-id: svn://10.0.0.236/trunk@43150 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:16:44 +00:00
rjc%netscape.com
63c2ccfb9b Fix icon alignment.
git-svn-id: svn://10.0.0.236/trunk@43149 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:10:44 +00:00
shaver%netscape.com
d0e1e2e010 defend against NULL GlobalServiceManager
git-svn-id: svn://10.0.0.236/trunk@43148 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:08:44 +00:00
rjc%netscape.com
200e24d17d Hook up search persistence.
git-svn-id: svn://10.0.0.236/trunk@43147 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:06:23 +00:00
dveditz%netscape.com
75c12ae80b allow install wizard to override program directory
git-svn-id: svn://10.0.0.236/trunk@43146 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:53:03 +00:00
pollmann%netscape.com
a2fbe96dbc Bug 10939: Make image input element transparent
git-svn-id: svn://10.0.0.236/trunk@43145 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:49:31 +00:00
davidm%netscape.com
ad7304e632 11128 Title bar of windows not displaying correctly - change name of attribute
git-svn-id: svn://10.0.0.236/trunk@43144 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:47:00 +00:00
sspitzer%netscape.com
7b1ac0b47a ignore generated Makefile
git-svn-id: svn://10.0.0.236/trunk@43143 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:46:52 +00:00
sspitzer%netscape.com
decf43f020 change API to avoid using NS_COMFALSE. As jband puts it: NS_COMFALSE generally sucks. NS_COMFALSE is going away. fixes bug #11579
git-svn-id: svn://10.0.0.236/trunk@43142 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:44:32 +00:00
sspitzer%netscape.com
64d776bc29 fix warning.
git-svn-id: svn://10.0.0.236/trunk@43141 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:39:17 +00:00
rhp%netscape.com
34329cd7da One final fix for charset auto detection
git-svn-id: svn://10.0.0.236/trunk@43140 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:38:15 +00:00
alecf%netscape.com
063a085491 move entities to external DTDs
git-svn-id: svn://10.0.0.236/trunk@43139 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:37:06 +00:00
pollmann%netscape.com
08d99078d0 Bug 10939: Make image input element transparent
git-svn-id: svn://10.0.0.236/trunk@43138 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:30:25 +00:00
rhp%netscape.com
fee299ef36 Fix for auto detecting charset on HTML docs when sending
git-svn-id: svn://10.0.0.236/trunk@43137 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:28:22 +00:00
alecf%netscape.com
2bbda1ed08 oops, fix chrome URLs to external DTDs
git-svn-id: svn://10.0.0.236/trunk@43136 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:24:05 +00:00
alecf%netscape.com
f7add2a1bf new en-US DTDs
git-svn-id: svn://10.0.0.236/trunk@43135 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:19:16 +00:00
alecf%netscape.com
7dff1b5521 move all strings to external DTDs
git-svn-id: svn://10.0.0.236/trunk@43134 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:17:04 +00:00
rjc%netscape.com
d79e4e6aef Fix bug # 11512: remove unnecessary Unregister() calls.
git-svn-id: svn://10.0.0.236/trunk@43133 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:15:23 +00:00
davidm%netscape.com
5bf7574604 Remove #ifndef NECKO around the alert and replace nsINetSupport with nsIPrompt
git-svn-id: svn://10.0.0.236/trunk@43132 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:05:25 +00:00
rhp%netscape.com
9af13c9bf5 Fixes for new XUL header display
git-svn-id: svn://10.0.0.236/trunk@43131 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:04:29 +00:00
davidm%netscape.com
d55aea411d add nsCommonDialogs and nsDialogParamBlock factories and registration
git-svn-id: svn://10.0.0.236/trunk@43130 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:03:47 +00:00
davidm%netscape.com
16e983ac49 add nsCommonDialogs.cpp and nsDialogParamBlock.cpp
git-svn-id: svn://10.0.0.236/trunk@43129 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 03:02:38 +00:00
ssu%netscape.com
11413530ca putting back AutoReg by directory feature for wizard
git-svn-id: svn://10.0.0.236/trunk@43128 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 02:50:52 +00:00
alecf%netscape.com
cc8f6f7003 localize these files, #10254
git-svn-id: svn://10.0.0.236/trunk@43127 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 02:50:39 +00:00
alecf%netscape.com
2c64c86b81 fix for #10253 - localizing this file
git-svn-id: svn://10.0.0.236/trunk@43126 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 02:45:51 +00:00
alecf%netscape.com
9c84c7bf07 fix account manager to load pages when people click on the appropriate category
git-svn-id: svn://10.0.0.236/trunk@43125 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 02:40:43 +00:00
alecf%netscape.com
4ddff45601 switch to using == to compare resources rather than PL_strcmp on resource strings
git-svn-id: svn://10.0.0.236/trunk@43124 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 02:36:07 +00:00
frankm%eng.sun.com
c083e5d440 Initial, semiworking checkin of Java Bridge work.
git-svn-id: svn://10.0.0.236/trunk@43123 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 02:21:05 +00:00
alecf%netscape.com
bd534e4bf9 now that GetPrettyName works, use that for folders
(this is redundant code, also exists in the folder datasource)


git-svn-id: svn://10.0.0.236/trunk@43122 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 02:14:17 +00:00
blizzard%redhat.com
81067eecc7 expose event compression from aljones@lbl.gov. some refcnt fixes. a=mcafee
git-svn-id: svn://10.0.0.236/trunk@43121 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 02:07:47 +00:00
leaf%mozilla.org
e855f21a5f adding Makefile.in
git-svn-id: svn://10.0.0.236/trunk@43120 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 01:51:27 +00:00
leaf%mozilla.org
3f67ad3623 removing makefile.in, to add Makefile.in
git-svn-id: svn://10.0.0.236/trunk@43119 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 01:50:59 +00:00
dp%netscape.com
573f3f8442 Caching persistentDescriptor and nativePath; Released when dll goes
away.


git-svn-id: svn://10.0.0.236/trunk@43118 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 01:46:43 +00:00
akkana%netscape.com
2647b03d3a 11572: default do-header to FALSE, which fixes a bunch of copy/paste bugs
git-svn-id: svn://10.0.0.236/trunk@43117 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 01:42:31 +00:00
leaf%mozilla.org
13ea35e234 fixing binary files. won't affect the build in any way. a=mcafee
git-svn-id: svn://10.0.0.236/trunk@43116 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 01:16:17 +00:00
gagan%netscape.com
8490ff44f8 Checkin for rjc. Changed backslashes to forward.
git-svn-id: svn://10.0.0.236/trunk@43115 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 01:11:35 +00:00
gagan%netscape.com
c35da0b26e Checkin for rjc. Changed backslashes to front.
git-svn-id: svn://10.0.0.236/trunk@43114 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 01:11:08 +00:00
dveditz%netscape.com
a1a783ca4b fixing misplaced #endif
git-svn-id: svn://10.0.0.236/trunk@43113 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 01:01:33 +00:00
jefft%netscape.com
abd7a503e4 fixed linux build bustage
git-svn-id: svn://10.0.0.236/trunk@43112 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 01:00:57 +00:00
sspitzer%netscape.com
9e5184ecf8 adding line for new MANIFEST file.
git-svn-id: svn://10.0.0.236/trunk@43111 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:46:26 +00:00
alecf%netscape.com
6bc269d9e5 fix sizing - looks a little better this way
git-svn-id: svn://10.0.0.236/trunk@43110 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:43:23 +00:00
despotdaemon%netscape.com
7c9e99e150 Pseudo-automatic update of changes made by ppandit@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@43109 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:36:24 +00:00
sspitzer%netscape.com
9fef0090db add nsMimeXULEmitter.cpp to the projet for rhp.
git-svn-id: svn://10.0.0.236/trunk@43108 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:35:16 +00:00
dougt%netscape.com
6aeadd6888 Adding new .idl file to mac project
git-svn-id: svn://10.0.0.236/trunk@43107 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:33:34 +00:00
dbragg%netscape.com
91d257240b xul version of pref-smartupdate.html
git-svn-id: svn://10.0.0.236/trunk@43106 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:32:22 +00:00
dveditz%netscape.com
2a042c9254 adding wizard hooks
git-svn-id: svn://10.0.0.236/trunk@43105 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:31:15 +00:00
rhp%netscape.com
1589ca5a32 New XUL header display
git-svn-id: svn://10.0.0.236/trunk@43104 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:29:59 +00:00
jefft%netscape.com
103986c3d4 enabled imap Delete Folder move to Trash and background work for Rename Folder & Subscription
git-svn-id: svn://10.0.0.236/trunk@43103 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:17:15 +00:00
mscott%netscape.com
559df79087 This file has been gathering dust! it's been an idl file for a while...remove it from the repository.
git-svn-id: svn://10.0.0.236/trunk@43102 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:16:31 +00:00
mscott%netscape.com
bee7aaf2c0 These files are all idl files and have been lying around gathering dust. removing them.
git-svn-id: svn://10.0.0.236/trunk@43101 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:15:26 +00:00
jefft%netscape.com
790ffce6fe enabled Delte Folder for Imap
git-svn-id: svn://10.0.0.236/trunk@43100 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:13:52 +00:00
mark.lin%eng.sun.com
08523e672e Found a bug in the runem.unix script.
git-svn-id: svn://10.0.0.236/trunk@43099 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:12:59 +00:00
despotdaemon%netscape.com
e4b80bf3f8 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@43098 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:08:10 +00:00
saari%netscape.com
d398bba5f7 Mac only change
Make Mac menu command symbol (clover leaf) show up in menus.


git-svn-id: svn://10.0.0.236/trunk@43097 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:00:55 +00:00
davidm%netscape.com
4149c4ccb7 add nsCommonDialog.idl and nsDialogParamBloc.idl
git-svn-id: svn://10.0.0.236/trunk@43096 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 00:00:17 +00:00
mark.lin%eng.sun.com
ede36b3782 Updated event loop stuff so that it's easier to read.
Also made it compilable with latest mozilla source.
Haven't tested yet on windows though.


git-svn-id: svn://10.0.0.236/trunk@43095 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:54:38 +00:00
troy%netscape.com
b9fb698148 Changed Paint() to leave the clip rect relative to the view's origin (and
not translate by the view's x and y-offset), because the view manager has already
translated into the view's local coodinate space before calling Paint()


git-svn-id: svn://10.0.0.236/trunk@43094 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:52:36 +00:00
sgehani%netscape.com
b3e4e209dc Added static lib targets (in prep for landing the Mac Install Wizard).
git-svn-id: svn://10.0.0.236/trunk@43093 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:45:46 +00:00
dp%netscape.com
ebe951b545 Fixing memory leak.
git-svn-id: svn://10.0.0.236/trunk@43092 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:45:12 +00:00
sgehani%netscape.com
fceed57423 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@43091 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:44:53 +00:00
davidm%netscape.com
a7e68e08c4 changed url of dialog
git-svn-id: svn://10.0.0.236/trunk@43090 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:37:29 +00:00
davidm%netscape.com
9ca43c9589 Add nsCommonDialogs.cpp and nsDialogParamBlock.cpp
git-svn-id: svn://10.0.0.236/trunk@43089 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:36:57 +00:00
rogerl%netscape.com
bd3a0a9823 Fixed limit parameter interpretation to match ecma_2 spec.
git-svn-id: svn://10.0.0.236/trunk@43088 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:36:23 +00:00
davidm%netscape.com
233d2d9506 add nsICommonDialogs.idl and nsIDialogParamBlock.idl
git-svn-id: svn://10.0.0.236/trunk@43087 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:35:44 +00:00
davidm%netscape.com
39e4301f1d add nsICommonDialog and nsIDialogParamBlock
git-svn-id: svn://10.0.0.236/trunk@43086 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:34:25 +00:00
davidm%netscape.com
f95f2666e0 add nsCommonDialog.cpp and nsDialogParamBlock.cpp
git-svn-id: svn://10.0.0.236/trunk@43085 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:33:22 +00:00
davidm%netscape.com
8184f693f2 add commonDialog.dtd
git-svn-id: svn://10.0.0.236/trunk@43084 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:31:38 +00:00
davidm%netscape.com
f39b7b1e0a Add commonDialog.js and commonDialog.xul
git-svn-id: svn://10.0.0.236/trunk@43083 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:30:52 +00:00
davidm%netscape.com
1232bc77f1 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@43082 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:29:43 +00:00
matt%netscape.com
dfc8a2f8c5 Adding fix for 10275
git-svn-id: svn://10.0.0.236/trunk@43081 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:27:26 +00:00
scc%netscape.com
60afa46225 fix for bug #10993, can't destroy an unitialized arena
git-svn-id: svn://10.0.0.236/trunk@43080 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:24:21 +00:00
mscott%netscape.com
c58b1a7e61 We weren't creating the socket transport from the correct thread. We were
doing it from LoadUrl which is in the ui thread. Necko makes assumptions
about what event queue to use for pumping notification messages based on
the current thread when you create the socket. So I moved this code
into ProcessCurrentUrl which lives in the imap connectoin thread.
Also fixed a big problem where we would wait on a monitor but waiting
was preventing messages from getting pumped which prevented ODA from
being called. So the monitor could never get notified. The fix is to
timeout of the PR_Wait and pump message events. We can then check a
flag to see if messages are being pumped.


git-svn-id: svn://10.0.0.236/trunk@43079 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:18:37 +00:00
slamm%netscape.com
2125e5aafb Add a newline to the end of the file.
git-svn-id: svn://10.0.0.236/trunk@43078 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:17:10 +00:00
sfraser%netscape.com
ec466a1602 Fix the list buttons to show state.
git-svn-id: svn://10.0.0.236/trunk@43077 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:16:43 +00:00
slamm%netscape.com
cf23d37bc7 Add newline to end of file.
git-svn-id: svn://10.0.0.236/trunk@43076 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:14:21 +00:00
sfraser%netscape.com
05fe8ce004 Add an <OL>
git-svn-id: svn://10.0.0.236/trunk@43075 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:14:12 +00:00
sfraser%netscape.com
74faa9898d Fix the image URLs to use the appropriate chrome URLs.
git-svn-id: svn://10.0.0.236/trunk@43074 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:13:52 +00:00
dp%netscape.com
b747479905 Fixing unix build bustage.
git-svn-id: svn://10.0.0.236/trunk@43073 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:13:46 +00:00
brade%netscape.com
5c6bcb5673 diffs from pete@postpagan.com
git-svn-id: svn://10.0.0.236/trunk@43072 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:09:22 +00:00
mscott%netscape.com
99fbfe8f9f Fix for Bug #11470 --> when prompting the user for a password (when getting new mail for pop), let's gracefully abort
the operation if the user hits cancel.


git-svn-id: svn://10.0.0.236/trunk@43071 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:08:50 +00:00
sgehani%netscape.com
1ef190b608 Adding Mac support to STANDALONE libjar.
git-svn-id: svn://10.0.0.236/trunk@43070 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:06:44 +00:00
dp%netscape.com
37a1b7bf3f Logging error from canunload
git-svn-id: svn://10.0.0.236/trunk@43069 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:06:33 +00:00
sgehani%netscape.com
c161a44056 Fixing Mac bustage in STANDALONE libjar.
git-svn-id: svn://10.0.0.236/trunk@43068 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:05:09 +00:00
dp%netscape.com
3ad16dac03 Performance improvement in enumerating registry.
git-svn-id: svn://10.0.0.236/trunk@43067 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:03:58 +00:00
dougt%netscape.com
2cfd1b381f Fix for bug 9007 submitted by david.gardiner@unisa.edu.au.
git-svn-id: svn://10.0.0.236/trunk@43066 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:00:53 +00:00
briano%netscape.com
670e15e68c Automated update
git-svn-id: svn://10.0.0.236/trunk@43065 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:00:27 +00:00
cls%seawood.org
f24b1eb070 Long overdue to bump up the version number of the libpng in the src tree
git-svn-id: svn://10.0.0.236/trunk@43064 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:58:59 +00:00
rhp%netscape.com
4ff667a440 New files for attachment display - NOT PART OF THE BUILD!!!
git-svn-id: svn://10.0.0.236/trunk@43063 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:58:30 +00:00
brade%netscape.com
055a5c4888 diffs from pete@postpagan.com
git-svn-id: svn://10.0.0.236/trunk@43062 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:57:55 +00:00
dougt%netscape.com
3c0782b811 Fix for bug 10838.
git-svn-id: svn://10.0.0.236/trunk@43061 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:53:02 +00:00
sspitzer%netscape.com
a709370c23 nsString(eOneByte) -> nsCString work
git-svn-id: svn://10.0.0.236/trunk@43060 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:45:44 +00:00
brade%netscape.com
ddccf32ffe add some menu keybindings
git-svn-id: svn://10.0.0.236/trunk@43059 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:45:33 +00:00
sspitzer%netscape.com
68baa8a256 nsString(eOneByte) -> nsCString work. Get the prompts / alert code building again.
git-svn-id: svn://10.0.0.236/trunk@43058 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:45:31 +00:00
chuang%netscape.com
3a597681c6 Add null pointer checking
git-svn-id: svn://10.0.0.236/trunk@43057 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:45:10 +00:00
davidm%netscape.com
40d7a2e96b remove long obsolete dialog code
git-svn-id: svn://10.0.0.236/trunk@43056 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:45:06 +00:00
brade%netscape.com
67d6bbb5ea from pete@postpagan.com
git-svn-id: svn://10.0.0.236/trunk@43055 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:44:39 +00:00
davidm%netscape.com
1c702a637b remove dialog code. return error code from history to fix bug 11489
git-svn-id: svn://10.0.0.236/trunk@43054 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:43:24 +00:00
dbragg%netscape.com
8cfe54ef45 Removed the based.shlb file
git-svn-id: svn://10.0.0.236/trunk@43053 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:43:15 +00:00
dp%netscape.com
46081f327c XPCOM Review of imglib.
git-svn-id: svn://10.0.0.236/trunk@43052 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:41:26 +00:00
jband%netscape.com
2d6e8de0f6 adding missing member initilizer to ctor
git-svn-id: svn://10.0.0.236/trunk@43051 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:36:50 +00:00
saari%netscape.com
d2a1334262 Changing XP_PC logic to XP_MAC on akk's recommendation.
git-svn-id: svn://10.0.0.236/trunk@43050 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:33:53 +00:00
hangas%netscape.com
8dacabbf70 Removed two .h files that were copied the old way rather than built in the idl project.
git-svn-id: svn://10.0.0.236/trunk@43049 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:32:14 +00:00
kmcclusk%netscape.com
6bfae6cbb4 Added PR_MAX calls to Layout method to prevent negative values from being passed to
nsIWidget::Resize.


git-svn-id: svn://10.0.0.236/trunk@43048 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:31:59 +00:00
hangas%netscape.com
cc4735c0f7 Added two more idl files.
git-svn-id: svn://10.0.0.236/trunk@43047 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:31:38 +00:00
kmcclusk%netscape.com
7efa978483 Added code to prevent negative values from being passed to nsIWidget::Resize.
git-svn-id: svn://10.0.0.236/trunk@43046 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:20:53 +00:00
hangas%netscape.com
2538cdc924 Make editcard and newcard dialogs not resizeable.
git-svn-id: svn://10.0.0.236/trunk@43045 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:18:45 +00:00
kmcclusk%netscape.com
af74dc8ac1 Changed default label for submit buttons to Submit Query from (submit)
Changed default label for reset buttons to Reset from (reset)


git-svn-id: svn://10.0.0.236/trunk@43044 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:17:08 +00:00
davidm%netscape.com
d0aa5cf556 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@43043 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:14:38 +00:00
dbragg%netscape.com
6475302e22 Removed the basedebug.shlb file
git-svn-id: svn://10.0.0.236/trunk@43042 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:05:59 +00:00
jfrancis%netscape.com
c5e0ffdf88 let VC 5 live!
git-svn-id: svn://10.0.0.236/trunk@43041 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:02:27 +00:00
davidm%netscape.com
11dd974cfc fix typo
git-svn-id: svn://10.0.0.236/trunk@43040 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:01:36 +00:00
dcone%netscape.com
a733fffc03 fixed image printing -- with a non-printer hdc
git-svn-id: svn://10.0.0.236/trunk@43039 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:58:06 +00:00
nhotta%netscape.com
835b4ed5ab Changed to notify conditionally.
git-svn-id: svn://10.0.0.236/trunk@43038 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:55:50 +00:00
dbragg%netscape.com
5993de783b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@43037 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:55:20 +00:00
davidmc%netscape.com
4d27d0ac4e First Checked In.
git-svn-id: svn://10.0.0.236/trunk@43036 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:52:13 +00:00
putterman%netscape.com
be20f2845a Set depth correctly for folders.
git-svn-id: svn://10.0.0.236/trunk@43033 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:44:58 +00:00
jfrancis%netscape.com
22b6d64142 more block operation improvements to "make list"
git-svn-id: svn://10.0.0.236/trunk@43032 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:44:10 +00:00
briano%netscape.com
9e882f91c0 Fix for bug 9902. Now the build number in xpfe/browser/resources/content/viewSource.xul will get updated properly as well.
git-svn-id: svn://10.0.0.236/trunk@43031 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:43:37 +00:00
rhp%netscape.com
28022eab8e Changes for new header display - NOT PART OF THE BUILD!
git-svn-id: svn://10.0.0.236/trunk@43030 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:41:55 +00:00
rhp%netscape.com
43383044b1 Simple fix for naming on factory for quoting
git-svn-id: svn://10.0.0.236/trunk@43029 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:40:25 +00:00
danm%netscape.com
ecc547c3ad open new windows from anchor links with proper chrome. fixes bug 9792.
git-svn-id: svn://10.0.0.236/trunk@43028 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:36:38 +00:00
brade%netscape.com
4fa3366433 use keycode/charcode for particular key events
git-svn-id: svn://10.0.0.236/trunk@43027 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:34:48 +00:00
jj%netscape.com
bb427f4301 #5342: added a few strings to the Tinderbox Mac error parser
git-svn-id: svn://10.0.0.236/trunk@43026 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:31:52 +00:00
mcafee%netscape.com
513b5954b8 newline at end of file
git-svn-id: svn://10.0.0.236/trunk@43025 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:29:49 +00:00
rods%netscape.com
aaa5727268 added an extra check to make sure we have a valid child frame. childFrame could be null when native widgets are turned on
git-svn-id: svn://10.0.0.236/trunk@43024 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:28:06 +00:00
hangas%netscape.com
c0efb8589c Added icon to addressing widget, change selection behavior.
git-svn-id: svn://10.0.0.236/trunk@43023 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:24:35 +00:00
morse%netscape.com
0ccfd60f98 fix bug 11548
git-svn-id: svn://10.0.0.236/trunk@43022 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:24:32 +00:00
akkana%netscape.com
781c8bbf3e 11552: don't hardcode the character set for saving
git-svn-id: svn://10.0.0.236/trunk@43021 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:22:32 +00:00
slamm%netscape.com
4f206234cd Avoid tall lines (too many newlines)
git-svn-id: svn://10.0.0.236/trunk@43020 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:19:27 +00:00
blizzard%redhat.com
ec844f2a56 fixes for scrolling and layout bounds calculation lameness. a=mcafee, doesn't affect build.
git-svn-id: svn://10.0.0.236/trunk@43019 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:14:27 +00:00
frankm%eng.sun.com
54b8bc3226 Add nsID constant to IDL-generated Java interface
git-svn-id: svn://10.0.0.236/trunk@43018 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:10:06 +00:00
slamm%netscape.com
684f48c90b -mAvoid breaking the line in the middle of an entity.
git-svn-id: svn://10.0.0.236/trunk@43017 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:07:06 +00:00
brade%netscape.com
d66209adb3 partial synch up with editorappshell.xul; fix entities (a=mcafee)
git-svn-id: svn://10.0.0.236/trunk@43016 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 20:55:14 +00:00
dougt%netscape.com
fed24ab5bc Removing unneeded css file.
Adding SUNotify RDF documentation


git-svn-id: svn://10.0.0.236/trunk@43015 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 20:36:00 +00:00
warren%netscape.com
0d36a9523c Removed crtdbg.h
git-svn-id: svn://10.0.0.236/trunk@43014 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 20:30:45 +00:00
mark.lin%eng.sun.com
d45337809a Damn! Forgot to add these files..
git-svn-id: svn://10.0.0.236/trunk@43013 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 20:15:10 +00:00
mcafee%netscape.com
e062496972 Fixing linux bustage, I can't find crtdbg.h in the tree.
git-svn-id: svn://10.0.0.236/trunk@43012 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 20:11:25 +00:00
hangas%netscape.com
3c548f9c00 Fixing build bustage.
git-svn-id: svn://10.0.0.236/trunk@43011 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:58:18 +00:00
mscott%netscape.com
725995c867 Very strange...it looks like we were exporting an obsolete pop3url header file on the mac which was over-writing the generated
XPIDL version.


git-svn-id: svn://10.0.0.236/trunk@43010 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:55:12 +00:00
warren%netscape.com
13be55fe4c Added GetGlobalAllocator.
git-svn-id: svn://10.0.0.236/trunk@43009 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:54:17 +00:00
rods%netscape.com
cfc2d035f8 Added "disabled" rules for form controls
git-svn-id: svn://10.0.0.236/trunk@43008 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:35:13 +00:00
warren%netscape.com
3b022fd625 More extensive tests for pipes. Now we test for read returning when there's data but the buffer isn't yet full. Also testing new pipe implementation.
git-svn-id: svn://10.0.0.236/trunk@43007 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:27:05 +00:00
rods%netscape.com
cb7533e8f4 Added check to see if it was disabled so it would ignore events
git-svn-id: svn://10.0.0.236/trunk@43006 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:26:10 +00:00
warren%netscape.com
128967d3de Added new pipe implementation.
git-svn-id: svn://10.0.0.236/trunk@43005 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:25:27 +00:00
rods%netscape.com
9cea7df2aa Add GetFrameForPoint to return the combobox when it is disabled. Added disabled code.
git-svn-id: svn://10.0.0.236/trunk@43004 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:25:22 +00:00
rogerl%netscape.com
10faff314a Fixed test results to match new spec.
git-svn-id: svn://10.0.0.236/trunk@43003 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:25:00 +00:00
rods%netscape.com
ab28d9a6f9 Fixed Reset to work properly, removed InitializeFromContent method, changed where the list was adding itself to FormControlFrame
git-svn-id: svn://10.0.0.236/trunk@43002 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:22:51 +00:00
warren%netscape.com
1500b9cd8d Added nsSegmentedBuffer.cpp and nsPipe2.cpp to build.
git-svn-id: svn://10.0.0.236/trunk@43001 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:21:17 +00:00
blizzard%redhat.com
4b6372107e xlib fixes. menus work now.
git-svn-id: svn://10.0.0.236/trunk@43000 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:19:33 +00:00
warren%netscape.com
63a73eb8df Added new pipe implementation -- simpler and faster.
git-svn-id: svn://10.0.0.236/trunk@42999 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:18:39 +00:00
kmcclusk%netscape.com
9e4c341c69 Rewrote nsButtonControlFrame. It is now based on nsHTMLButtonControlFrame.
Added style rules to set submit, reset, and browse buttons default labels.


git-svn-id: svn://10.0.0.236/trunk@42998 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:13:57 +00:00
warren%netscape.com
72aec95888 Made Read return as soon as it's got something, rather than waiting until the buffer is full.
git-svn-id: svn://10.0.0.236/trunk@42997 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:13:48 +00:00
morse%netscape.com
f872165e0b fix bug 11465
git-svn-id: svn://10.0.0.236/trunk@42996 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:02:11 +00:00
chuang%netscape.com
a2c504e8b8 Fix bug 11511 and more "remove address book" backend
git-svn-id: svn://10.0.0.236/trunk@42995 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:57:01 +00:00
mark.lin%eng.sun.com
c0f33ddb12 oops, forgot to checkin these files.
git-svn-id: svn://10.0.0.236/trunk@42994 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:56:53 +00:00
mark.lin%eng.sun.com
3c92b0d354 Oopps, forgot to checkin these files...
git-svn-id: svn://10.0.0.236/trunk@42993 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:55:01 +00:00
dveditz%netscape.com
d57caf0d27 minor bugfixing
git-svn-id: svn://10.0.0.236/trunk@42992 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:47:24 +00:00
rogerl%netscape.com
f37e17b7f0 Re-wrote the string_split algorithm to match new spec.
git-svn-id: svn://10.0.0.236/trunk@42991 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:36:46 +00:00
valeski%netscape.com
92d85be4d5 added user agent language setter routine
git-svn-id: svn://10.0.0.236/trunk@42990 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:33:27 +00:00
mscott%netscape.com
66acfed5be Until I can fix a threading problem...be sure to open the socket from the ui thread so events get pumped on the ui thread.
git-svn-id: svn://10.0.0.236/trunk@42989 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:32:34 +00:00
karnaze%netscape.com
c44714f4cc new regression tests
git-svn-id: svn://10.0.0.236/trunk@42988 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:30:04 +00:00
dougt%netscape.com
1edf22a05f Commenting why I am using direct error codes rather than the module base with
and offset.


git-svn-id: svn://10.0.0.236/trunk@42987 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:19:57 +00:00
mscott%netscape.com
63ebf0ee3a synch up apis.
git-svn-id: svn://10.0.0.236/trunk@42986 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:18:56 +00:00
mscott%netscape.com
855b95ed5e Changes to reflect the fact that GetServer is a method on nsIMsgMailNewsUrl now.
git-svn-id: svn://10.0.0.236/trunk@42985 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:18:41 +00:00
sgehani%netscape.com
50ceb38a40 Exporting xpinstall resources to dist. Fixes bug 11126.
git-svn-id: svn://10.0.0.236/trunk@42984 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:18:31 +00:00
mscott%netscape.com
caf96898f3 remove GetServer implementation...it's now done in the base url class
git-svn-id: svn://10.0.0.236/trunk@42983 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:18:16 +00:00
mscott%netscape.com
1f21409c33 add get server support.
git-svn-id: svn://10.0.0.236/trunk@42982 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:17:25 +00:00
mscott%netscape.com
875300e0fd Override get and set password methods from base class.
git-svn-id: svn://10.0.0.236/trunk@42981 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:16:44 +00:00
mscott%netscape.com
0af8f2bf58 set user name on pop urls. remove code to read in password as we don't do that anymore.
Fix for Bug # .


git-svn-id: svn://10.0.0.236/trunk@42980 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:16:13 +00:00
karnaze%netscape.com
3a80c327b2 For crash in bug 10296 - Removed assertion that nsTableFrame::GetColumnFrame must find a non null frame.
Added check for null when calling it in a situation where it can return null.


git-svn-id: svn://10.0.0.236/trunk@42979 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:15:46 +00:00
morse%netscape.com
4b3694febd fix bug 11507
git-svn-id: svn://10.0.0.236/trunk@42978 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:15:22 +00:00
mscott%netscape.com
95b6fccce2 add set user name support.
git-svn-id: svn://10.0.0.236/trunk@42977 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:15:18 +00:00
mscott%netscape.com
adc36c4764 Add SetUsername support.
git-svn-id: svn://10.0.0.236/trunk@42976 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:14:27 +00:00
mscott%netscape.com
e79f5b04d4 nsString(eOneByte) --> nsCString nsString(eTwoByte) --> nsString, nsString2 --> nsString changes
some interface clean up work before adding GetServer to url interface.


git-svn-id: svn://10.0.0.236/trunk@42975 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:14:08 +00:00
morse%netscape.com
affc714034 fix up deletion code for cookie viewer
git-svn-id: svn://10.0.0.236/trunk@42974 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:13:55 +00:00
harishd%netscape.com
91a52e70b6 Changing the order in which borders are painted for compatibility.
Used to be TOP,LEFT,BOTTOM,RIGHT, and now it's
BOTTOM,LEFT,TOP,RIGHT.  Fix for bug#11022


git-svn-id: svn://10.0.0.236/trunk@42973 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:13:50 +00:00
mscott%netscape.com
bfb25baf66 password and user name related clean up work.
git-svn-id: svn://10.0.0.236/trunk@42972 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:13:33 +00:00
mscott%netscape.com
48f8baa6f7 nsString(eOneByte) --> nsCString nsString(eTwoByte) --> nsString, nsString2 --> nsString changes
git-svn-id: svn://10.0.0.236/trunk@42971 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:13:03 +00:00
mscott%netscape.com
fb61403b74 Add SetUserName support which is going to be needed in order to figure out the server for a url.
git-svn-id: svn://10.0.0.236/trunk@42970 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:12:37 +00:00
dougt%netscape.com
642c83ce84 removing unused files.
git-svn-id: svn://10.0.0.236/trunk@42969 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:12:05 +00:00
mscott%netscape.com
9ac5daf0ca add SetuserName support
git-svn-id: svn://10.0.0.236/trunk@42968 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:10:45 +00:00
hangas%netscape.com
ab48fbb7cb Added mozilla:mailnews:imap:resources:locale:en-US:MANIFEST to build.
git-svn-id: svn://10.0.0.236/trunk@42967 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:06:49 +00:00
sspitzer%netscape.com
1229af8dd7 here's an idea: return the error.
git-svn-id: svn://10.0.0.236/trunk@42966 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:06:02 +00:00
hangas%netscape.com
da89af5b7c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@42965 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:05:04 +00:00
ramiro%netscape.com
755fa1cc0d Build bustage - add stubs.
git-svn-id: svn://10.0.0.236/trunk@42964 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 14:54:54 +00:00
troy%netscape.com
0dfa8ffb99 Fixed a place I had missed when converting over to the new reflow command
handling


git-svn-id: svn://10.0.0.236/trunk@42963 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 14:28:27 +00:00
brade%netscape.com
e2c3e81747 point to EditorAppShell.dtd (removing entities)
git-svn-id: svn://10.0.0.236/trunk@42962 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 14:18:16 +00:00
brade%netscape.com
dddedfe630 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@42961 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 14:17:47 +00:00
mccabe%netscape.com
1999447bdb Changes to the xpidl compiler -
Error if an interface is declared [scriptable], but contains methods that can't be scripted because they refer to native-declared types, unless the method is declared [noscript].

This change is intended to make it easier to determine when an interface is not scriptable, and to make it easier to see what changes need to be made to make it scriptable.

As many of the .idl files in the tree defined [scriptable] interfaces that contained non-scriptable methods, I've sprinkled [noscript] throughout.  As the interfaces weren't scriptable anyway, this shouldn't change their visibility to javascript.


git-svn-id: svn://10.0.0.236/trunk@42960 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 12:18:01 +00:00
racham%netscape.com
69905e4d12 fixing the bustage
git-svn-id: svn://10.0.0.236/trunk@42959 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 09:11:47 +00:00
racham%netscape.com
b3b9ab842c fixing the bustage
git-svn-id: svn://10.0.0.236/trunk@42958 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 08:59:00 +00:00
morse%netscape.com
59172a4524 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@42957 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 08:26:20 +00:00
racham%netscape.com
4e331ae987 Checking filespec existence
git-svn-id: svn://10.0.0.236/trunk@42956 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 08:25:57 +00:00
pavlov%netscape.com
da0fde423a fix compileation issues on stupid sun compilers
git-svn-id: svn://10.0.0.236/trunk@42955 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 08:08:05 +00:00
racham%netscape.com
a2bf942489 Added options to delete operation, bug 6684
git-svn-id: svn://10.0.0.236/trunk@42954 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 08:03:21 +00:00
racham%netscape.com
67540ebc63 Fixed bugs 6684, 10171 and added profile cloning feature
git-svn-id: svn://10.0.0.236/trunk@42953 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 08:00:19 +00:00
morse%netscape.com
f1175bd41e download mapping tables when browser starts up
git-svn-id: svn://10.0.0.236/trunk@42952 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 07:54:33 +00:00
pavlov%netscape.com
5c7fdd62fa first go at nsIWidget::CaptureMouse()
git-svn-id: svn://10.0.0.236/trunk@42951 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 07:38:26 +00:00
brendan%mozilla.org
ecd4357afa Regenerate to eliminate degenerate unsigned comparisons and dead code.
git-svn-id: svn://10.0.0.236/trunk@42950 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 07:30:12 +00:00
mscott%netscape.com
1e49312a3f nsString(eOneByte) --> nsCString nsString(eTwoByte) --> nsString, nsString2 --> nsString changes
git-svn-id: svn://10.0.0.236/trunk@42949 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 07:24:11 +00:00
ftang%netscape.com
d4536e263f tune performance by elimate unnecessary reference to nsIWordBreaker in nsTexTransformer. Add NS_PRECONDITION code into nsTextTransformer to make code better
git-svn-id: svn://10.0.0.236/trunk@42948 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 07:23:56 +00:00
mscott%netscape.com
d91b29eccc Add GetUserName support which is a private method on nsMsgMailNewsUrl and is not part of an interface.
git-svn-id: svn://10.0.0.236/trunk@42947 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 07:22:03 +00:00
alecf%netscape.com
45d0fdb117 make this compile on unix
(this build on unix only!)


git-svn-id: svn://10.0.0.236/trunk@42946 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 07:02:10 +00:00
morse%netscape.com
ac226ecc6c fix mac bustage
git-svn-id: svn://10.0.0.236/trunk@42945 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 07:02:01 +00:00
brendan%mozilla.org
5e48294f99 - Avoid generating "if (argc >= 0)" dead code and incurring warnings on some
platforms.  Those warnings were degrading slamm's tinderbox warning page's
  S/N ratio.
- Use const char arrays initialized by string constants, rather than const
  pointers to unnamed arrays created by string constants.
- Chop out some extra leading newlines that sometimes tripled up when emitted
  after a double trailing newline.


git-svn-id: svn://10.0.0.236/trunk@42944 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 06:59:03 +00:00
shaver%netscape.com
617d646666 stop tripping myself up
git-svn-id: svn://10.0.0.236/trunk@42943 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 06:47:38 +00:00
jband%netscape.com
d1add0c0a4 updating status page
git-svn-id: svn://10.0.0.236/trunk@42942 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 06:30:34 +00:00
morse%netscape.com
70f04d65e5 load up mapping tables when browser starts up
git-svn-id: svn://10.0.0.236/trunk@42941 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 06:27:17 +00:00
saari%netscape.com
5279b03499 Fixing bug 4960, mac menu items reflect enabled/disabled state
git-svn-id: svn://10.0.0.236/trunk@42940 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 06:25:34 +00:00
jband%netscape.com
ff333a38ba updating tests
git-svn-id: svn://10.0.0.236/trunk@42939 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 06:12:06 +00:00
rjc%netscape.com
2ce1c54d3c Now we can save find queries in bookmarks.
git-svn-id: svn://10.0.0.236/trunk@42938 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 06:07:53 +00:00
saari%netscape.com
ea9ad2b170 Fix for bug 9706, menu shortcut characters should be capitalized
git-svn-id: svn://10.0.0.236/trunk@42937 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 05:49:40 +00:00
dougt%netscape.com
8b171d7cb1 updating flash software notification gif.
git-svn-id: svn://10.0.0.236/trunk@42936 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 05:42:19 +00:00
dougt%netscape.com
050fca8b73 removing css file from build.
git-svn-id: svn://10.0.0.236/trunk@42935 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 05:40:32 +00:00
jband%netscape.com
d66c5abd2f was forgetting to check a result
git-svn-id: svn://10.0.0.236/trunk@42934 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 05:35:09 +00:00
pavlov%netscape.com
65aacbc42d fix for popups being too big
git-svn-id: svn://10.0.0.236/trunk@42933 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 05:31:06 +00:00
toshok%hungry.com
ac965d16c1 we need keyCompare functions to these hashtables.
git-svn-id: svn://10.0.0.236/trunk@42932 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 05:25:14 +00:00
jband%netscape.com
45d9d14fba check member for null before using it in dtor
git-svn-id: svn://10.0.0.236/trunk@42931 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 05:23:03 +00:00
rjc%netscape.com
7ba01b232f Small XUL fix.
git-svn-id: svn://10.0.0.236/trunk@42930 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 05:21:04 +00:00
sspitzer%netscape.com
7b8f930184 ignore generated Makefile
git-svn-id: svn://10.0.0.236/trunk@42929 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 05:16:39 +00:00
sspitzer%netscape.com
d6e4bda4db ignore generate Makefile
git-svn-id: svn://10.0.0.236/trunk@42928 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 05:11:59 +00:00
jband%netscape.com
169852dc30 fix for bug 11510
git-svn-id: svn://10.0.0.236/trunk@42927 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 05:11:47 +00:00
saari%netscape.com
02078a9b8b Fixing bug 7319
git-svn-id: svn://10.0.0.236/trunk@42926 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 05:09:30 +00:00
jband%netscape.com
fd1055c772 adding missing NS_INIT_REFCNT() to ctor
git-svn-id: svn://10.0.0.236/trunk@42925 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 05:08:18 +00:00
bienvenu%netscape.com
7736a89bbc fix build bustage
git-svn-id: svn://10.0.0.236/trunk@42924 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 04:51:32 +00:00
bienvenu%netscape.com
f7aaeda29c remove hello kitty (sob), twiddle a couple status messages
git-svn-id: svn://10.0.0.236/trunk@42923 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 04:45:58 +00:00
alecf%netscape.com
cdf5a4417a clean up folder and server naming:
- prettyName is now a unicode string and lives in nsIFolder
- servers now have the automatic pretty name of "userid on servername" and can be overridden
- name consolidation is complete


git-svn-id: svn://10.0.0.236/trunk@42922 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 04:39:22 +00:00
rhp%netscape.com
f4407402ca New images for message display UI
git-svn-id: svn://10.0.0.236/trunk@42921 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 04:25:49 +00:00
bienvenu%netscape.com
f2cb9e8e5e fix build bustage by replacing libreg32 with mozreg
git-svn-id: svn://10.0.0.236/trunk@42920 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 04:13:27 +00:00
alecf%netscape.com
32369b8405 fix unused variable
git-svn-id: svn://10.0.0.236/trunk@42919 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 04:04:58 +00:00
alecf%netscape.com
a3b83c8bb1 fixing uninitialized variables
git-svn-id: svn://10.0.0.236/trunk@42918 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 04:04:28 +00:00
rpotts%netscape.com
95b3e25116 Release the pointers that were passed into AsyncRead(...) when the operation is compelete. This breaks some circular references that prevented WebShells from being deleted...
git-svn-id: svn://10.0.0.236/trunk@42917 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 04:02:10 +00:00
alecf%netscape.com
0dcf2e2fb1 fix uninitialize variable
git-svn-id: svn://10.0.0.236/trunk@42916 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 04:00:38 +00:00
briano%netscape.com
c638e9ea76 Automated update
git-svn-id: svn://10.0.0.236/trunk@42915 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 04:00:24 +00:00
briano%netscape.com
749b456304 Verify that archive extraction flags really are supported on Solaris before overriding MKSHLIB_FORCE_ALL.
git-svn-id: svn://10.0.0.236/trunk@42914 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:59:25 +00:00
mark.lin%eng.sun.com
88a5b0d3fe Added port to Linux.
git-svn-id: svn://10.0.0.236/trunk@42913 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:59:07 +00:00
dougt%netscape.com
d88a3afe83 feable attempt to get the notfication.gif to display.
git-svn-id: svn://10.0.0.236/trunk@42912 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:53:58 +00:00
troy%netscape.com
c5f5ea93ed Converted outer table frame code over to new reflow command handling
git-svn-id: svn://10.0.0.236/trunk@42911 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:52:15 +00:00
racham%netscape.com
92597c38e7 Migrate and start apprunner on clicking Start button for unmigrated profile, bug 10172
git-svn-id: svn://10.0.0.236/trunk@42910 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:42:38 +00:00
dougt%netscape.com
c1c4e1c5ce Changes to xpinstall notification services per my conversation with michaell.
git-svn-id: svn://10.0.0.236/trunk@42909 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:31:21 +00:00
bienvenu%netscape.com
496d892468 add subscribe and unsubscribe methods
git-svn-id: svn://10.0.0.236/trunk@42908 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:29:22 +00:00
dougt%netscape.com
152811cd26 Adding back the software notification flash.
git-svn-id: svn://10.0.0.236/trunk@42907 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:29:08 +00:00
bienvenu%netscape.com
1c7cfbb36e more work on meteors when loading imap folders
git-svn-id: svn://10.0.0.236/trunk@42906 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:28:30 +00:00
racham%netscape.com
a83264b65b Fixing the case of missing profile directory on the disk, bug 7456
git-svn-id: svn://10.0.0.236/trunk@42905 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:27:48 +00:00
rhp%netscape.com
b6fd70188f fixing a non-intentional change
git-svn-id: svn://10.0.0.236/trunk@42904 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:15:23 +00:00
tao%netscape.com
5bf878c4bf Add en-US test case.
git-svn-id: svn://10.0.0.236/trunk@42903 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:11:08 +00:00
rjc%netscape.com
41ecfe01a4 Add Google icon.
git-svn-id: svn://10.0.0.236/trunk@42902 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:10:41 +00:00
rjc%netscape.com
1a82f32b50 Add google icon.
git-svn-id: svn://10.0.0.236/trunk@42901 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:09:31 +00:00
tao%netscape.com
c6aaaa3418 Add file/http test.
git-svn-id: svn://10.0.0.236/trunk@42900 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:06:12 +00:00
buster%netscape.com
d74b7462e5 added KeyPress event propogation. This makes the editor image dialog work much better.
as part of this, I moved when I install event propogation listeners in the gfx text control frame.  nobody will notice
the difference, except keyPress notifications will work correctly.


git-svn-id: svn://10.0.0.236/trunk@42899 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:58:07 +00:00
rjc%netscape.com
37f4419862 Get icons from the proper location.
git-svn-id: svn://10.0.0.236/trunk@42898 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:57:15 +00:00
matt%netscape.com
364c4afe2c Adding directory for pref/locale/en-US
git-svn-id: svn://10.0.0.236/trunk@42897 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:51:17 +00:00
rhp%netscape.com
6b2ee9a235 Possible fix for missing spaces
git-svn-id: svn://10.0.0.236/trunk@42896 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:50:29 +00:00
matt%netscape.com
9a5019e87d adding allmakefiles.sh
git-svn-id: svn://10.0.0.236/trunk@42895 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:49:43 +00:00
matt%netscape.com
89f5fe5381 Adding prefs in boxes
git-svn-id: svn://10.0.0.236/trunk@42894 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:48:56 +00:00
matt%netscape.com
ac3b6fd20b Adding makefiles
git-svn-id: svn://10.0.0.236/trunk@42893 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:47:42 +00:00
matt%netscape.com
ffac5a5fda Adding makefile for en-US directory
git-svn-id: svn://10.0.0.236/trunk@42892 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:46:41 +00:00
matt%netscape.com
74c9762c9f Adding dtd files for prefs
git-svn-id: svn://10.0.0.236/trunk@42891 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:45:59 +00:00
karnaze%netscape.com
e529e4461a added constructor to nsTableColGroupFrame, fixed a few places where
nsColGroupFrame assummed its children were nsColGroupFrames.


git-svn-id: svn://10.0.0.236/trunk@42890 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:45:18 +00:00
karnaze%netscape.com
0bbf61356b commented out print statements when passing a row,col outside of cell map,
since the test case in bug 9024 can cause this condition.


git-svn-id: svn://10.0.0.236/trunk@42889 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:43:45 +00:00
rjc%netscape.com
82019b1e0a Add aol.com
git-svn-id: svn://10.0.0.236/trunk@42888 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:43:37 +00:00
rjc%netscape.com
116d08fa3c Add in aol.com
git-svn-id: svn://10.0.0.236/trunk@42887 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:41:02 +00:00
karnaze%netscape.com
25ee69fdf0 more test cases
git-svn-id: svn://10.0.0.236/trunk@42886 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:39:55 +00:00
rjc%netscape.com
20d0a60f5e Get HTTP POST working for Necko.
git-svn-id: svn://10.0.0.236/trunk@42885 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:39:21 +00:00
sspitzer%netscape.com
7480420f17 fix #10591. get news posting to work again.
git-svn-id: svn://10.0.0.236/trunk@42884 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:21:25 +00:00
tao%netscape.com
a3f903d0b3 add debug dump
git-svn-id: svn://10.0.0.236/trunk@42883 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:06:54 +00:00
hangas%netscape.com
65a1a871e8 Changed background color of tree to inherit background color rather than the white picked up from xul.css
git-svn-id: svn://10.0.0.236/trunk@42882 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 01:56:51 +00:00
hangas%netscape.com
fc834d4d21 Added treeallowevents to allow click through on addressing widget.
git-svn-id: svn://10.0.0.236/trunk@42881 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 01:36:20 +00:00
despotdaemon%netscape.com
f1a79ae2f8 Pseudo-automatic update of changes made by shawnp@earthling.net.
git-svn-id: svn://10.0.0.236/trunk@42880 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 01:20:31 +00:00
karnaze%netscape.com
f4b5bd9d74 removed some unneeded comments
git-svn-id: svn://10.0.0.236/trunk@42879 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 01:14:24 +00:00
karnaze%netscape.com
999b813db8 new test case
git-svn-id: svn://10.0.0.236/trunk@42878 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 01:02:36 +00:00
alecf%netscape.com
99a92f69e0 news doesn't need it's own nsNewsURI2Name anymore
git-svn-id: svn://10.0.0.236/trunk@42877 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 01:01:00 +00:00
Jerry.Kirk%Nexwarecorp.com
471ad72c27 Adding SetDOMNode and GetDOMNOde to Photon UI
git-svn-id: svn://10.0.0.236/trunk@42876 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:57:57 +00:00
sfraser%netscape.com
5275ec0bd4 Zero out the return value from QI in case of failure.
git-svn-id: svn://10.0.0.236/trunk@42875 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:56:40 +00:00
hangas%netscape.com
782d6aeac7 Removed dump() statement.
git-svn-id: svn://10.0.0.236/trunk@42874 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:56:22 +00:00
alecf%netscape.com
a199d14574 IMAP doesn't need nsImapURI2Name anymore
git-svn-id: svn://10.0.0.236/trunk@42873 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:52:59 +00:00
alecf%netscape.com
c613949a3b we don't need nsLocalURI2Name anymore, because this is done in base
git-svn-id: svn://10.0.0.236/trunk@42872 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:51:45 +00:00
karnaze%netscape.com
35434b326b bug 3517.
Always get border-collapse from nsTableFrame::GetBorderCollapseStyle.
Added several null checks for border edges.
Added check in nsTableFrame::DidComputeHorizontal to replace null edges with trival ones.


git-svn-id: svn://10.0.0.236/trunk@42871 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:49:10 +00:00
alecf%netscape.com
014c261dc6 news doesn't need to link against JS
git-svn-id: svn://10.0.0.236/trunk@42870 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:48:47 +00:00
alecf%netscape.com
1788b99e26 news doesn't need its own implementation of GetName
git-svn-id: svn://10.0.0.236/trunk@42869 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:48:09 +00:00
alecf%netscape.com
11b5c4441c IMAP doesn't need it's own implementation of GetName
git-svn-id: svn://10.0.0.236/trunk@42868 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:47:44 +00:00
alecf%netscape.com
59dab4e639 get rid of local mail's implementation of GetName
git-svn-id: svn://10.0.0.236/trunk@42867 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:47:07 +00:00
hangas%netscape.com
742ae90ad0 Fixed tree to not have extraneous treeitem node with ref=. This was causing the template builder to give me an extra treechildren and treeitem node.
git-svn-id: svn://10.0.0.236/trunk@42866 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:45:30 +00:00
karnaze%netscape.com
2263d6e5d4 removed caption saying border-collapse was disabled
git-svn-id: svn://10.0.0.236/trunk@42865 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:44:35 +00:00
alecf%netscape.com
2f8c699428 use == to compare actual nodes instead of PL_strcmp (more work still yet to be done here)
git-svn-id: svn://10.0.0.236/trunk@42864 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:44:29 +00:00
despotdaemon%netscape.com
9c6738e83c Pseudo-automatic update of changes made by don@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@42863 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:19:54 +00:00
despotdaemon%netscape.com
eb22142ac3 Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@42862 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:13:54 +00:00
despotdaemon%netscape.com
9244147e90 Pseudo-automatic update of changes made by dmose@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@42861 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:06:59 +00:00
alecf%netscape.com
64f96fb0e6 fix naming of folder by caching in mName
git-svn-id: svn://10.0.0.236/trunk@42860 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:03:46 +00:00
troy%netscape.com
94974d029b Initial check-in
git-svn-id: svn://10.0.0.236/trunk@42859 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:01:54 +00:00
hangas%netscape.com
c1af642b61 Moved addressing widget from messengercompose to its own overlay
git-svn-id: svn://10.0.0.236/trunk@42858 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:59:54 +00:00
hangas%netscape.com
1a4970ed7c added addressing widget to build
git-svn-id: svn://10.0.0.236/trunk@42857 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:59:06 +00:00
hangas%netscape.com
519efdc8bb First Checked In.
git-svn-id: svn://10.0.0.236/trunk@42856 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:58:19 +00:00
ftang%netscape.com
b61caa1327 fix CID is too long bustage at Mac
git-svn-id: svn://10.0.0.236/trunk@42855 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:57:18 +00:00
tao%netscape.com
bcf7bc69fb Change calling sequence to match the change in JS function
git-svn-id: svn://10.0.0.236/trunk@42854 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:56:18 +00:00
tao%netscape.com
c3bfdb54b4 function prototype change
git-svn-id: svn://10.0.0.236/trunk@42853 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:55:35 +00:00
nisheeth%netscape.com
4b2a5caee9 Fixed some warnings in xmlparse.c. Thanks a lot to kherron@sgum.mci.com for noticing these warnings, filing a bug, and attaching an attempted fix to the bug report.
git-svn-id: svn://10.0.0.236/trunk@42852 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:52:45 +00:00
av%netscape.com
e448cd23a9 Setting some default size to objects with unknown size, bug #8740
git-svn-id: svn://10.0.0.236/trunk@42851 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:41:55 +00:00
jfrancis%netscape.com
6933a8242b begginning of block operations honoring breaks...
git-svn-id: svn://10.0.0.236/trunk@42850 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:39:48 +00:00
ftang%netscape.com
6d18c09e89 temp add 3 obsoleted charset
git-svn-id: svn://10.0.0.236/trunk@42849 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:37:55 +00:00
ftang%netscape.com
0674871fa8 add 3 tempory obsoleted charset
git-svn-id: svn://10.0.0.236/trunk@42848 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:35:06 +00:00
ftang%netscape.com
d0f603fe9b use the new/fast implementation of to unicode converter. Keep the old to unicode converter under x-obsoleted name
git-svn-id: svn://10.0.0.236/trunk@42847 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:32:17 +00:00
alecf%netscape.com
6e4a7b7921 fix uninitialize variable
git-svn-id: svn://10.0.0.236/trunk@42846 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:28:27 +00:00
saari%netscape.com
01f99b1ce7 Fix for bug 10515, an error in keybinding logic
git-svn-id: svn://10.0.0.236/trunk@42845 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:28:18 +00:00
jefft%netscape.com
4df59d61b0 added DeleteFolder()
git-svn-id: svn://10.0.0.236/trunk@42844 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:21:25 +00:00
jefft%netscape.com
0952cb9299 added InTrash() & DeleteSubFolders()
git-svn-id: svn://10.0.0.236/trunk@42843 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:20:24 +00:00
jefft%netscape.com
fb3c006b4b added DeleteFolder()
git-svn-id: svn://10.0.0.236/trunk@42842 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:15:06 +00:00
alecf%netscape.com
abbed68c12 removed files: mozilla/mailnews/compose/src/nsMsgCompPrefs.cpp
git-svn-id: svn://10.0.0.236/trunk@42841 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:04:09 +00:00
alecf%netscape.com
853e6e91dc remove nsMsgCompPrefs from the build
git-svn-id: svn://10.0.0.236/trunk@42840 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:01:48 +00:00
alecf%netscape.com
b6a2d43ab9 remove nsMsgCompPrefs from build
git-svn-id: svn://10.0.0.236/trunk@42839 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:01:10 +00:00
ssu%netscape.com
67cc09c208 added ifdef win32 to win32 standalone specific code
git-svn-id: svn://10.0.0.236/trunk@42838 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:01:03 +00:00
nisheeth%netscape.com
94f172124b Checking in a patch that lets us build on a redhat 6.0 box with glibc-2.1.2-3 installed. Thanks a lot to Brian Ryner (bryner@students.uiuc.edu) for the patch.
git-svn-id: svn://10.0.0.236/trunk@42837 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 22:51:53 +00:00
jfrancis%netscape.com
9b541be769 fixing bug 9366
git-svn-id: svn://10.0.0.236/trunk@42836 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 22:51:40 +00:00
alecf%netscape.com
9aeb15ca34 reorder member variables to match constructor
git-svn-id: svn://10.0.0.236/trunk@42835 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 22:47:53 +00:00
toshok%hungry.com
a174d9efe4 if we're doing OJI, we need both -ljsj and -loji
git-svn-id: svn://10.0.0.236/trunk@42834 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 22:44:06 +00:00
sfraser%netscape.com
6ab4830e8e Remove errant semicolons
git-svn-id: svn://10.0.0.236/trunk@42833 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 22:43:18 +00:00
gayatrib%netscape.com
a118ff435e replacing location.this with the complete url as that call is failing
git-svn-id: svn://10.0.0.236/trunk@42832 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 22:37:40 +00:00
rjc%netscape.com
19838a4017 Small fix for bug #11449.
git-svn-id: svn://10.0.0.236/trunk@42831 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 22:33:02 +00:00
rjc%netscape.com
2c127ed5b3 Small XUL changes.
git-svn-id: svn://10.0.0.236/trunk@42830 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 22:30:30 +00:00
danm%netscape.com
a018239885 re-enable app quit from menu
git-svn-id: svn://10.0.0.236/trunk@42829 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 22:28:30 +00:00
danm%netscape.com
65732fcd41 allow close from JS to close non-JS windows. bug 9703.
git-svn-id: svn://10.0.0.236/trunk@42828 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 22:28:09 +00:00
sspitzer%netscape.com
452aef7da6 use try and catch. history.SetPageTitle() is failing. this exception is now. I think its related to bug #11489
git-svn-id: svn://10.0.0.236/trunk@42827 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 22:19:08 +00:00
morse%netscape.com
7ccdbf3148 backing out changes -- gives crashes at runtime
git-svn-id: svn://10.0.0.236/trunk@42826 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 22:14:34 +00:00
karnaze%netscape.com
4d95977daa table caption reflects border-collapse disabled
git-svn-id: svn://10.0.0.236/trunk@42825 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 22:01:07 +00:00
jfrancis%netscape.com
a71bf0e000 default impl for InsertHeader(); plus adapted to new definition of SplitNodeDeep()
git-svn-id: svn://10.0.0.236/trunk@42824 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:51:19 +00:00
rjc%netscape.com
11adaa1ba1 Add some icons.
git-svn-id: svn://10.0.0.236/trunk@42823 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:51:17 +00:00
jfrancis%netscape.com
2ff0c6ce00 added InsertHeader()
git-svn-id: svn://10.0.0.236/trunk@42822 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:50:28 +00:00
jfrancis%netscape.com
54dd82668d smarts for creating empty lists in the right places;
prelim work for WillMakeHeader();
prelim work for indenting lists;
helper routine IsEmptyBlock();


git-svn-id: svn://10.0.0.236/trunk@42821 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:50:02 +00:00
jfrancis%netscape.com
317900525c added helper function IsEmptyBlock()
git-svn-id: svn://10.0.0.236/trunk@42820 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:49:25 +00:00
briano%netscape.com
62c3ca726e Automated update
git-svn-id: svn://10.0.0.236/trunk@42819 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:46:26 +00:00
jfrancis%netscape.com
f77002f5ae SplitNodeDeep() now emits an out param that tells you what the effective split offset was. This routine no longer splits text nodes unless it has to; ie, if the original offset was at the beginning or end of the text node, no split occurs in it.
git-svn-id: svn://10.0.0.236/trunk@42818 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:45:52 +00:00
briano%netscape.com
5ba2f44b5f Fixed the QTDIR test, and defined NSCAP_DISABLE_DEBUG_PTR_TYPES for Solaris WS builds (as per bug 11309).
git-svn-id: svn://10.0.0.236/trunk@42817 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:45:47 +00:00
jfrancis%netscape.com
f14b1b883c adding InsertHeader()
git-svn-id: svn://10.0.0.236/trunk@42816 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:43:53 +00:00
jfrancis%netscape.com
56ea64f92b fix for 10584
git-svn-id: svn://10.0.0.236/trunk@42815 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:42:51 +00:00
tao%netscape.com
a47d5da97a Add locale switching test case.
git-svn-id: svn://10.0.0.236/trunk@42814 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:38:54 +00:00
tao%netscape.com
17aa0f965c Add locale switching test.
git-svn-id: svn://10.0.0.236/trunk@42813 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:36:25 +00:00
morse%netscape.com
030a3f798c remove xp dependencies
git-svn-id: svn://10.0.0.236/trunk@42812 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:29:41 +00:00
harishd%netscape.com
0ed2af9017 Moved kLegalOpen from BODY to SCRIPT.
CanContain() now checks for kLegalOpen.


git-svn-id: svn://10.0.0.236/trunk@42811 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:28:24 +00:00
harishd%netscape.com
afe45386a9 Added code to handle "stray" block closer ( bug# 11365 ).
Did some cleanup..


git-svn-id: svn://10.0.0.236/trunk@42810 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:26:55 +00:00
pnunn%netscape.com
df5df91852 Added test for error. pnunn.
git-svn-id: svn://10.0.0.236/trunk@42809 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:25:39 +00:00
bienvenu%netscape.com
73034aad7b add imap resources to build
git-svn-id: svn://10.0.0.236/trunk@42808 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:20:07 +00:00
bienvenu%netscape.com
8146451a67 add imap msgs to build
git-svn-id: svn://10.0.0.236/trunk@42807 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:19:47 +00:00
rjc%netscape.com
2d6af15ffa Proper chrome (with close box). Thanks to danm.
git-svn-id: svn://10.0.0.236/trunk@42806 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:12:35 +00:00
racham%netscape.com
8446247afe renaming prefs file to prefs.js from prefs50.js, bug 5910
git-svn-id: svn://10.0.0.236/trunk@42805 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:08:54 +00:00
bienvenu%netscape.com
955f649372 get progress meter working
git-svn-id: svn://10.0.0.236/trunk@42804 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:08:47 +00:00
rogerl%netscape.com
db941463f3 Backing away from SUNW 5.0 version - the 4.2 workshop is the same as GCC
output and Matthias has a way to get the 5.0 workshop to produce 4.2 (and
hence GCC) compatible vtables. I'm leaving the structure intact for now in
case we need to use it for flag setting or whatever.


git-svn-id: svn://10.0.0.236/trunk@42803 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:07:57 +00:00
bienvenu%netscape.com
20bb937c8e fix gcc warning
git-svn-id: svn://10.0.0.236/trunk@42802 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:07:33 +00:00
ftang%netscape.com
962d8e196c remove typo break; statement
git-svn-id: svn://10.0.0.236/trunk@42801 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:06:55 +00:00
danm%netscape.com
435ed11712 proper chrome on search dialog
git-svn-id: svn://10.0.0.236/trunk@42800 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:05:27 +00:00
nhotta%netscape.com
d7085fd889 Scriptable date format change for unix.
git-svn-id: svn://10.0.0.236/trunk@42799 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 20:57:55 +00:00
rhp%netscape.com
1df306c356 Adding new files to get ready for XUL header output
git-svn-id: svn://10.0.0.236/trunk@42798 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 20:54:03 +00:00
sspitzer%netscape.com
67963ab6ec remove some #if 0 code. why? because its crap.
git-svn-id: svn://10.0.0.236/trunk@42797 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 20:53:14 +00:00
bienvenu%netscape.com
35899e428d clean up resource export for imap, not part of build yet
git-svn-id: svn://10.0.0.236/trunk@42796 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 20:21:59 +00:00
buster%netscape.com
4a03d700c6 enabled onSelect notifications
git-svn-id: svn://10.0.0.236/trunk@42795 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 20:10:59 +00:00
rjc%netscape.com
d48a312be4 Small XUL/JS/DTD changes. Now open search dialog when user wants to search through bookmarks.
git-svn-id: svn://10.0.0.236/trunk@42794 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 20:10:03 +00:00
saari%netscape.com
042d370bfb Fix for build break, one too many *s
git-svn-id: svn://10.0.0.236/trunk@42793 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 20:06:11 +00:00
ftang%netscape.com
97be983551 add new ISO2022JP to Unicode converter
git-svn-id: svn://10.0.0.236/trunk@42792 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 20:03:57 +00:00
rods%netscape.com
7a25e14e0a Fixed GetFrameForPoint so it passes back the corrct frame for event for form controls (Bug #11467)
git-svn-id: svn://10.0.0.236/trunk@42791 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:59:48 +00:00
srinivas%netscape.com
d530163371 The "-mno-486" compiler option is no longer relevant and not supported
in new gcc compilers (v2.95). Bug #11455. Checkin for jdaly@ixl.com.


git-svn-id: svn://10.0.0.236/trunk@42790 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:53:59 +00:00
tague%netscape.com
c929feb58d Fixed bug #11477 - nsLocale not correctly getting application locale.
git-svn-id: svn://10.0.0.236/trunk@42789 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:53:02 +00:00
bienvenu%netscape.com
c4a7debd58 sort by sender correctly, fix ptr/ref idl stuff in nsIMsgDatabase
git-svn-id: svn://10.0.0.236/trunk@42788 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:52:46 +00:00
putterman%netscape.com
b1446fb1cb Only refresh after EmptyTrash if the trash is the currently selected folder.
git-svn-id: svn://10.0.0.236/trunk@42787 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:51:07 +00:00
toshok%hungry.com
bcc58d657c if we're building nspr from the mozilla tree, add the correct private NSPR include dir.
git-svn-id: svn://10.0.0.236/trunk@42786 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:47:21 +00:00
buster%netscape.com
89f5e5cec1 trivial fix to make sure we're storing an nsIHTMLEditor result in an
nsCOMPtr<nsIHTMLEditor> variable.


git-svn-id: svn://10.0.0.236/trunk@42785 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:37:18 +00:00
sfraser%netscape.com
d603ba8f80 Optimization: don't invalidate and update the scroll bar if the value has not changed.
git-svn-id: svn://10.0.0.236/trunk@42784 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:34:34 +00:00
vidur%netscape.com
294ecfb965 Changed attribute getter glue to use NS_SUCCESS macro instead of comparing to NS_OK
git-svn-id: svn://10.0.0.236/trunk@42783 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:19:49 +00:00
sfraser%netscape.com
6a65d2857f Optimization so that moving a collapsed selection does not cause the frame to redraw.
git-svn-id: svn://10.0.0.236/trunk@42782 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:15:04 +00:00
saari%netscape.com
bcff9ee1b5 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@42781 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:15:01 +00:00
vidur%netscape.com
212b213c9c changed name of NS_CreateContext to NS_CreateScriptContext
git-svn-id: svn://10.0.0.236/trunk@42780 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:14:49 +00:00
sfraser%netscape.com
838b14eeb3 Make the caret use InvetRect for drawing.
git-svn-id: svn://10.0.0.236/trunk@42779 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:14:43 +00:00
saari%netscape.com
b8230c0e68 Adding Mac dynamic menus support. This touches a little XP code, notably, adding GetDOMNode and SetDOMNode to nsIMenuItem.
git-svn-id: svn://10.0.0.236/trunk@42778 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:14:38 +00:00
vidur%netscape.com
fe08914eae Implemented document.lastModified
git-svn-id: svn://10.0.0.236/trunk@42777 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:10:24 +00:00
chuang%netscape.com
2e65afe54f fix Bug 11399 and add remove address book backend
git-svn-id: svn://10.0.0.236/trunk@42776 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:09:32 +00:00
buster%netscape.com
645dd7a8ea moved handling of flags from rules constructor to rules init, so
rules code can call SetFlags with mEditor initialized and do real
processing if it wants to.


git-svn-id: svn://10.0.0.236/trunk@42775 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 18:39:49 +00:00
brade%netscape.com
086062f4b0 more strings
git-svn-id: svn://10.0.0.236/trunk@42774 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 18:38:31 +00:00
brade%netscape.com
7257a00b4d localize buttons
git-svn-id: svn://10.0.0.236/trunk@42773 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 18:38:06 +00:00
neeti%netscape.com
9663d2ff60 Add api Cookie_RemoveAllCookies
git-svn-id: svn://10.0.0.236/trunk@42772 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 18:36:55 +00:00
terry%mozilla.org
c5fd932d67 Removed BEOS.
git-svn-id: svn://10.0.0.236/trunk@42771 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 18:30:24 +00:00
brade%netscape.com
6b71682503 localization (point to EditorHLineProperties.dtd)
git-svn-id: svn://10.0.0.236/trunk@42770 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 18:23:55 +00:00
sfraser%netscape.com
eabb55e416 Fix the nsTextEditRules init so that setting the flags works.
git-svn-id: svn://10.0.0.236/trunk@42769 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 18:22:13 +00:00
brade%netscape.com
a22bb233b5 add locale directory
git-svn-id: svn://10.0.0.236/trunk@42768 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 18:15:35 +00:00
chuang%netscape.com
dce00a6dff make clobber remove the right file
git-svn-id: svn://10.0.0.236/trunk@42767 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 18:08:35 +00:00
nhotta%netscape.com
1bf6d45bae Use region code for latin scripts.
git-svn-id: svn://10.0.0.236/trunk@42766 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 18:05:32 +00:00
buster%netscape.com
54308be938 backed out my last change, it didn't fix the problem I thought it would.
git-svn-id: svn://10.0.0.236/trunk@42765 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 18:01:08 +00:00
nhotta%netscape.com
5ad32d6509 Scriptable date format.
git-svn-id: svn://10.0.0.236/trunk@42764 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 17:59:39 +00:00
ramiro%netscape.com
71e6a5b30c More qt support from Shawn Packwood.
git-svn-id: svn://10.0.0.236/trunk@42763 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 17:53:04 +00:00
buster%netscape.com
736e084433 call SetFlags from Init, so plaintext logic gets executed.
git-svn-id: svn://10.0.0.236/trunk@42762 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 17:44:14 +00:00
buster%netscape.com
38375a8918 brought init code up to date with recent editor API changes.
git-svn-id: svn://10.0.0.236/trunk@42761 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 17:41:55 +00:00
despotdaemon%netscape.com
5ae0471f3d Pseudo-automatic update of changes made by shawnp@earthling.net.
git-svn-id: svn://10.0.0.236/trunk@42759 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 16:23:44 +00:00
ftang%netscape.com
8e11b6d73d add nsJapaneseToUnicode.cpp
git-svn-id: svn://10.0.0.236/trunk@42758 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 15:03:33 +00:00
briano%netscape.com
3216fee187 Automated update
git-svn-id: svn://10.0.0.236/trunk@42757 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 15:00:54 +00:00
ftang%netscape.com
0fc52dc9cf add nsJapaneseToUnicode
git-svn-id: svn://10.0.0.236/trunk@42756 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 15:00:22 +00:00
ftang%netscape.com
2942e7860c fix bug 10674. Typo in progid
git-svn-id: svn://10.0.0.236/trunk@42755 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 14:56:47 +00:00
ramiro%netscape.com
5ddd322de1 Added Qt support to the unix build system. Thanks to Shawn Packwood
<shawnp@colba.net> for the patches.


git-svn-id: svn://10.0.0.236/trunk@42754 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 14:55:56 +00:00
ftang%netscape.com
8dbfb1804a fix typo in argument handling
git-svn-id: svn://10.0.0.236/trunk@42753 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 14:54:13 +00:00
dcone%netscape.com
1b08eeea46 took out the assert for mWindow as null, and put in support that
allows the webshell to run with a null mWindow-- needed for printing frames


git-svn-id: svn://10.0.0.236/trunk@42752 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 14:30:32 +00:00
sspitzer%netscape.com
173d77f8b2 use try and catch in the message compose javascript.
git-svn-id: svn://10.0.0.236/trunk@42751 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 14:23:44 +00:00
neeti%netscape.com
0e9884b869 fix cookie_RemoveAllCookies and cookie_RemoveAllPermissions
git-svn-id: svn://10.0.0.236/trunk@42750 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 14:10:45 +00:00
brade%netscape.com
cf49ff1464 editor/ui/composer/locale
git-svn-id: svn://10.0.0.236/trunk@42749 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 13:35:39 +00:00
brade%netscape.com
419cba9510 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@42748 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 13:35:01 +00:00
brade%netscape.com
002342f007 move entities to external dtd
git-svn-id: svn://10.0.0.236/trunk@42747 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 13:33:03 +00:00
mccabe%netscape.com
2ae3da34ec Change a mispatched | to a !. Thanks to Anton Blanchard <anton@progsoc.uts.edu.au>.
git-svn-id: svn://10.0.0.236/trunk@42746 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 12:37:24 +00:00
mccabe%netscape.com
b72d38369e Fix to 11451.
Stop coredump on bad argument name in [iid_is(bogus)]; add != NULL safety check to loop.


git-svn-id: svn://10.0.0.236/trunk@42745 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 09:34:22 +00:00
rpotts%netscape.com
69541d340d Implement the nsIRequest interface for nsHTTPChannel. This allows channels that are cancelled from a LoadGroup to *actually* get removed...
git-svn-id: svn://10.0.0.236/trunk@42744 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 07:07:08 +00:00
rpotts%netscape.com
b3ba46578f Implement nsIRequest::Cancel() for the SocketTransport.
git-svn-id: svn://10.0.0.236/trunk@42743 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 07:05:15 +00:00
dp%netscape.com
27741c5206 dummy
git-svn-id: svn://10.0.0.236/trunk@42740 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 05:40:51 +00:00
jband%netscape.com
5630b79f6c adding enumeration of CLSIDs and ProgIDs using code from Robert Ginda <rginda@ix.netcom.com>
git-svn-id: svn://10.0.0.236/trunk@42738 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 05:02:25 +00:00
tague%netscape.com
5cb167a835 Fixed bug #3903 (Need region code for Macintosh GetPlatformLocale) and bug #11189 (Locale service was returning wrong locale for scriptability)
git-svn-id: svn://10.0.0.236/trunk@42735 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 03:59:32 +00:00
tague%netscape.com
ef7a140a36 Added support for mapping the reply of a textevent (i18n input support) back into platform coordinate space
git-svn-id: svn://10.0.0.236/trunk@42734 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 03:56:03 +00:00
dp%netscape.com
3bb2d60d70 Backing out previous checkin per peterl advice. This caused bookmarks
and mailnews windows to show up blank.


git-svn-id: svn://10.0.0.236/trunk@42733 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 03:54:10 +00:00
sfraser%netscape.com
42a46ddf85 Turn off the JS logging for now, for real this time (duplicate DEFINES line removed)
git-svn-id: svn://10.0.0.236/trunk@42732 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 02:28:51 +00:00
sfraser%netscape.com
18a0f649f0 Fix bustage
git-svn-id: svn://10.0.0.236/trunk@42731 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 02:03:57 +00:00
bienvenu%netscape.com
db823f8718 fix build bustage on win32
git-svn-id: svn://10.0.0.236/trunk@42730 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 01:57:28 +00:00
sfraser%netscape.com
cc2019b810 Synch up with editor API changes
git-svn-id: svn://10.0.0.236/trunk@42728 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 01:43:24 +00:00
sfraser%netscape.com
22f74dda79 Synch up with editor API changes.
git-svn-id: svn://10.0.0.236/trunk@42727 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 01:43:00 +00:00
sfraser%netscape.com
82a8cc91dc Turn off the JS logging for now.
git-svn-id: svn://10.0.0.236/trunk@42726 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 01:42:08 +00:00
sfraser%netscape.com
4dd92661ce Landing editor API changes. Removed nsITextEditor and nsTextEditor, split interfaces into more, non-overlapping interfaces, and other general cleanup.
git-svn-id: svn://10.0.0.236/trunk@42725 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 01:37:50 +00:00
sfraser%netscape.com
71e4b293c3 Turn off JS logging for now.
git-svn-id: svn://10.0.0.236/trunk@42724 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 01:37:36 +00:00
sfraser%netscape.com
f220b28ee3 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@42723 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 01:34:04 +00:00
bienvenu%netscape.com
48baf2e137 change location of imap string bundle
git-svn-id: svn://10.0.0.236/trunk@42722 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 01:21:52 +00:00
bienvenu%netscape.com
f424c281e2 fix status messages, hook up percents
git-svn-id: svn://10.0.0.236/trunk@42721 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 01:21:00 +00:00
radha%netscape.com
3b1c6a8c36 New methods for back and forward button popups
git-svn-id: svn://10.0.0.236/trunk@42720 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 00:54:20 +00:00
radha%netscape.com
b7692fb934 New methods for back an dforward button popups
git-svn-id: svn://10.0.0.236/trunk@42719 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 00:53:39 +00:00
radha%netscape.com
59c7be14cf New methods for back, forward button popups and Go menu
git-svn-id: svn://10.0.0.236/trunk@42718 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 00:52:04 +00:00
bienvenu%netscape.com
8beb98bc95 make files for imap msgs, not part of build yet
git-svn-id: svn://10.0.0.236/trunk@42717 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 00:41:15 +00:00
dp%netscape.com
f184d95c28 Fixing build error on unix.
git-svn-id: svn://10.0.0.236/trunk@42716 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 00:26:02 +00:00
dp%netscape.com
09bdbdc0d1 Create the module object and caching it in the Dll abstraction.
git-svn-id: svn://10.0.0.236/trunk@42715 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 00:19:08 +00:00
radha%netscape.com
85b937b449 Use nsISessionHistory for all history needs. This change obsoletes
mHistory and mHistoryIndex. Shall physically remove these members
at a later date.


git-svn-id: svn://10.0.0.236/trunk@42714 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 00:03:12 +00:00
arielb%netscape.com
f96a17b9c8 adding functionality to security
git-svn-id: svn://10.0.0.236/trunk@42712 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 22:29:02 +00:00
dp%netscape.com
377e592ead Changing name from nsIComponent.idl to nsIModule.idl
git-svn-id: svn://10.0.0.236/trunk@42711 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 22:27:28 +00:00
dp%netscape.com
f8a78b1f91 Fixing addition of nsIModule.idl
git-svn-id: svn://10.0.0.236/trunk@42710 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 22:16:53 +00:00
dp%netscape.com
5b941c2de5 Adding nsIModule.idl
git-svn-id: svn://10.0.0.236/trunk@42709 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 21:58:53 +00:00
dp%netscape.com
2ecbf9c0b3 added files: mozilla/xpcom/components/nsIModule.idl
git-svn-id: svn://10.0.0.236/trunk@42708 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 21:57:09 +00:00
dp%netscape.com
9b1adf286c Adding new interface for Module access. This will replace entry points like
NSRegisterSelf() etc.. in the Module dlls.


git-svn-id: svn://10.0.0.236/trunk@42707 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 21:54:43 +00:00
arielb%netscape.com
89a92838d2 removing public directory for good. fixed up nsPrivilegeManager.cpp
git-svn-id: svn://10.0.0.236/trunk@42706 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 21:04:16 +00:00
morse%netscape.com
d3e14ebcd0 fix crash in cookie viewer
git-svn-id: svn://10.0.0.236/trunk@42705 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 20:33:27 +00:00
bienvenu%netscape.com
167bd9fffe add broadcaster for progress
git-svn-id: svn://10.0.0.236/trunk@42704 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 19:42:30 +00:00
bienvenu%netscape.com
24650a731a add discovering mailbox message
git-svn-id: svn://10.0.0.236/trunk@42703 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 19:40:55 +00:00
jband%netscape.com
7168222b32 adding missing 'return' - thanks to TenThumbs <tenthumbs@cybernex.net> for pointing this out. Also removing extra addrefs in ctor since the generic factory constructor macro used to create these things does this addref for us
git-svn-id: svn://10.0.0.236/trunk@42702 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 19:34:31 +00:00
morse%netscape.com
797486f5d6 avoid an uninitialized memory access
git-svn-id: svn://10.0.0.236/trunk@42701 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 19:16:09 +00:00
morse%netscape.com
1d74ff0d25 fix a crash in cookie viewer
git-svn-id: svn://10.0.0.236/trunk@42700 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 18:10:19 +00:00
morse%netscape.com
b4a37f2b6f fix crash on quickfill/safefill when not connected to internet
git-svn-id: svn://10.0.0.236/trunk@42699 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 17:34:25 +00:00
endico%mozilla.org
5f77d1d7b1 oops, its BEOS, not BE
git-svn-id: svn://10.0.0.236/trunk@42698 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 15:55:50 +00:00
endico%mozilla.org
d81e062265 use BE, not ^BE
git-svn-id: svn://10.0.0.236/trunk@42697 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 15:45:26 +00:00
endico%mozilla.org
c226234153 add BE to list of stocks we track. add RHAT next weds
git-svn-id: svn://10.0.0.236/trunk@42696 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 15:27:54 +00:00
jband%netscape.com
4627d111ec adding missing initializer for member
git-svn-id: svn://10.0.0.236/trunk@42695 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 03:37:03 +00:00
danm%netscape.com
d7d843d99f adding "default" window border type
git-svn-id: svn://10.0.0.236/trunk@42694 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 03:08:24 +00:00
brendan%mozilla.org
7c7947dd9f - Tighten up code in gc_root_marker that now allows for roots to contain jsvals
(tagged machine words, some of which when untagged are 8-byte-aligned GC heap
  pointers).
- Fix bad effects of rogue global-replace of JS_FREE by free.


git-svn-id: svn://10.0.0.236/trunk@42693 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 02:32:00 +00:00
radha%netscape.com
3c68e438c8 Fix for bug 11307. comparison between char * and XPIDLCString causing Compilation
problem in few unix platforms.


git-svn-id: svn://10.0.0.236/trunk@42692 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 02:15:53 +00:00
tague%netscape.com
d819a054a7 Fixed bug #10566 - embeding directory has problems when MSSDK is installed and no ACTIVEX controll is built.
git-svn-id: svn://10.0.0.236/trunk@42691 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 02:11:13 +00:00
jband%netscape.com
adfa9e8794 was neglecting to initialize a member
git-svn-id: svn://10.0.0.236/trunk@42690 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 02:06:31 +00:00
peterl%netscape.com
346eec8473 cleaned up viewport pseudo elements
git-svn-id: svn://10.0.0.236/trunk@42689 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 01:23:22 +00:00
peterl%netscape.com
aebbdb8e19 removed hack forcing app into standard mode (now controlled by documents)
git-svn-id: svn://10.0.0.236/trunk@42688 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 01:20:28 +00:00
peterl%netscape.com
0f4290ca67 moved scrolled content pseudo atom to layout atoms
git-svn-id: svn://10.0.0.236/trunk@42687 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 01:19:36 +00:00
peterl%netscape.com
86c079f6a5 made relative font sizes round off to next point size
git-svn-id: svn://10.0.0.236/trunk@42686 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 01:19:09 +00:00
peterl%netscape.com
59670cf93c added != operator
git-svn-id: svn://10.0.0.236/trunk@42685 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 01:18:40 +00:00
peterl%netscape.com
a56c4b7348 added :root pseudo class
git-svn-id: svn://10.0.0.236/trunk@42684 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 01:17:58 +00:00
peterl%netscape.com
73fb0ee366 made change hint smarter
git-svn-id: svn://10.0.0.236/trunk@42683 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 01:17:29 +00:00
peterl%netscape.com
ae317e1e57 cleaned up style contexts of viewport and friends
git-svn-id: svn://10.0.0.236/trunk@42682 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 01:16:50 +00:00
peterl%netscape.com
405ed08aff moved dummy option pseudo to layout atoms
added root pseudo


git-svn-id: svn://10.0.0.236/trunk@42681 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 01:16:07 +00:00
peterl%netscape.com
20d229264a moved scrolled content pseudo to layout atoms
git-svn-id: svn://10.0.0.236/trunk@42680 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 01:15:30 +00:00
peterl%netscape.com
5ee6e7b306 added note
git-svn-id: svn://10.0.0.236/trunk@42679 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 01:14:50 +00:00
peterl%netscape.com
8e281ce1df fix initial value of border collapse
git-svn-id: svn://10.0.0.236/trunk@42678 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 01:14:36 +00:00
peterl%netscape.com
ac9e8c5d0f added more pseudo elements
git-svn-id: svn://10.0.0.236/trunk@42677 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 01:05:05 +00:00
joki%netscape.com
25eb777ec4 Adding new onselect event. Also slight modification to ender text widget focus behavior
git-svn-id: svn://10.0.0.236/trunk@42676 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 23:18:35 +00:00
morse%netscape.com
5d669d6a05 avoid crash on cookie viewer when permission list is empty
git-svn-id: svn://10.0.0.236/trunk@42675 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 23:09:06 +00:00
hoa.nguyen%intel.com
65d3eda7a4 Added nsJSHTMLEmbedElement.cpp.
git-svn-id: svn://10.0.0.236/trunk@42674 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 22:37:17 +00:00
hoa.nguyen%intel.com
0a4304ee6b Add nsJSHTMLEmbedElement.cpp.
git-svn-id: svn://10.0.0.236/trunk@42673 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 22:35:55 +00:00
ramiro%netscape.com
aa12b773dd Ignore generated Makefiles.
git-svn-id: svn://10.0.0.236/trunk@42672 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 22:34:02 +00:00
hoa.nguyen%intel.com
212162f2a2 Added nsIDOMHTMLEmbedElement.h to exports.
git-svn-id: svn://10.0.0.236/trunk@42671 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 21:54:55 +00:00
hoa.nguyen%intel.com
27ca1fcd2e DOM interface for embed tag.
git-svn-id: svn://10.0.0.236/trunk@42670 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 21:53:28 +00:00
arielb%netscape.com
251a1383ad removed files: mozilla/caps/src/nsZip.c, mozilla/caps/src/nsZig.cpp, mozilla/caps/src/nsLoadZig.c
git-svn-id: svn://10.0.0.236/trunk@42669 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 21:42:47 +00:00
arielb%netscape.com
f5d498bbba removed zip support from caps module. from now on all that stuff will
be used by libjar.  should also remove a lot of memory leaks reported on
nsZip


git-svn-id: svn://10.0.0.236/trunk@42668 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 21:40:33 +00:00
beard%netscape.com
e5ec185009 removed unnecessary tests of unsigned indices against >= 0 (a tautology, unsigned values are always >= 0).
git-svn-id: svn://10.0.0.236/trunk@42667 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 20:49:45 +00:00
beard%netscape.com
3e9a8b9a14 fixes a crasher triggered by test case of bug #5194.
git-svn-id: svn://10.0.0.236/trunk@42666 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 20:43:47 +00:00
danm%netscape.com
5f0223974b correct location of hiddenWindow.xul
git-svn-id: svn://10.0.0.236/trunk@42665 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 20:33:01 +00:00
danm%netscape.com
33aad11d9b update where to find associated JS file
git-svn-id: svn://10.0.0.236/trunk@42664 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 20:32:10 +00:00
alecf%netscape.com
e272301b3c fix a bunch of warnings about shadowed variables
git-svn-id: svn://10.0.0.236/trunk@42663 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 20:24:10 +00:00
alecf%netscape.com
ec7111b0bd fix constructor warning
git-svn-id: svn://10.0.0.236/trunk@42662 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 20:06:38 +00:00
arielb%netscape.com
788241b16c Fix to bug 11330 and some changes to reduce warnings in linux builds
git-svn-id: svn://10.0.0.236/trunk@42661 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 19:59:31 +00:00
alecf%netscape.com
b853c49c5d remove shadow warnings
git-svn-id: svn://10.0.0.236/trunk@42660 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 19:34:06 +00:00
rhp%netscape.com
59f4207b6e Adding display of Date for normal header output
git-svn-id: svn://10.0.0.236/trunk@42659 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 19:24:23 +00:00
bienvenu%netscape.com
4f91b0f8fc remove nsString2
git-svn-id: svn://10.0.0.236/trunk@42658 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 16:28:43 +00:00
bienvenu%netscape.com
e44b95ea26 get rid of nsString2
git-svn-id: svn://10.0.0.236/trunk@42657 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 15:47:55 +00:00
troy%netscape.com
421d2fb7eb Made sure that column cache is invalidated if necessary when appending rows
frames and cell frames


git-svn-id: svn://10.0.0.236/trunk@42656 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 15:12:50 +00:00
morse%netscape.com
48fd2aa6ad remove signon viewer because of general spring cleaning of singsign.cpp
git-svn-id: svn://10.0.0.236/trunk@42655 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 14:14:31 +00:00
morse%netscape.com
0ebd9d19ad general spring cleaning
git-svn-id: svn://10.0.0.236/trunk@42654 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 14:12:31 +00:00
rjc%netscape.com
ad31dc3d62 Open search window as resizable.
git-svn-id: svn://10.0.0.236/trunk@42653 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 11:29:03 +00:00
rjc%netscape.com
5dd3607160 Use GetFileSpec() correctly.
git-svn-id: svn://10.0.0.236/trunk@42652 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 11:23:54 +00:00
mccabe%netscape.com
7e79107377 Fix lxr-visible file description comments.
git-svn-id: svn://10.0.0.236/trunk@42651 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 09:45:12 +00:00
mccabe%netscape.com
1302f9251b Fixes for 'warning: unsigned value < 0 is always 0' warnings.
git-svn-id: svn://10.0.0.236/trunk@42650 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 09:32:45 +00:00
mccabe%netscape.com
9f348fe7d2 Fix spelling; 'identfier' -> 'identifier'
git-svn-id: svn://10.0.0.236/trunk@42649 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 09:28:37 +00:00
nisheeth%netscape.com
a03e6e3036 Fix for bug 8607. DOCTYPE decls are now propagated from the XML tokenizer to the XML content sink.
git-svn-id: svn://10.0.0.236/trunk@42648 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 06:26:01 +00:00
nisheeth%netscape.com
2b662e73d1 Updating expat to latest release from James Clark.
git-svn-id: svn://10.0.0.236/trunk@42647 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 06:24:08 +00:00
cls%seawood.org
6a502d3b0e Various fixes to let the tree compile with gcc 2.95:
String constants are now (const char *)s and must be explicitly cast to (char *).
operator new is expected to be empty or throw an expection instead of returning null. (ifdef'd for gcc 2.95+)
Stricter checks on register clobbering in embedded asm. (at least I think that's what it is)
Expects the main function to return int, not something similiar to it like PRInt32.

Still requires a tweak to remove -mno-486 from NSPR's *.mk files.


git-svn-id: svn://10.0.0.236/trunk@42646 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 06:01:31 +00:00
buster%netscape.com
76b2185c50 style now gets propogated from text control frame to embedded webshell more correctly
git-svn-id: svn://10.0.0.236/trunk@42645 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 05:42:13 +00:00
buster%netscape.com
9cb3786eb7 fixed a memory leak, and a null pointer dereference, having to do with collapsing borders
git-svn-id: svn://10.0.0.236/trunk@42644 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 05:40:09 +00:00
buster%netscape.com
fee0b64d1f fixed BodyFixupRule::MapStyleInto to respect background color properly
code-reviewed by Peter Linss


git-svn-id: svn://10.0.0.236/trunk@42643 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 05:38:28 +00:00
buster%netscape.com
aa79275b99 added disabled style to text areas
git-svn-id: svn://10.0.0.236/trunk@42642 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 05:37:06 +00:00
buster%netscape.com
a2574a2239 fixed handling of text controls with a max length set
git-svn-id: svn://10.0.0.236/trunk@42641 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 05:29:41 +00:00
buster%netscape.com
b2f791ecad fixed disabled and readonly handling
added redraw hack to blur (in addition to focus, already done)


git-svn-id: svn://10.0.0.236/trunk@42640 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 05:28:57 +00:00
buster%netscape.com
e292a3dd2d just a comment, part of a memory leak bug fix to remind users to free a struct
git-svn-id: svn://10.0.0.236/trunk@42639 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 05:09:09 +00:00
dveditz%netscape.com
1270a90070 fixing bustage
git-svn-id: svn://10.0.0.236/trunk@42638 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 05:03:08 +00:00
bienvenu%netscape.com
6405d2f6f1 one more try, export the lib during the libs phase
git-svn-id: svn://10.0.0.236/trunk@42637 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 04:56:01 +00:00
bienvenu%netscape.com
e63e8d2ae2 attempt to fix registry bustage
git-svn-id: svn://10.0.0.236/trunk@42636 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 04:22:45 +00:00
bienvenu%netscape.com
4fddfff5d7 more solaris bustage
git-svn-id: svn://10.0.0.236/trunk@42635 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 04:03:46 +00:00
bienvenu%netscape.com
30bb3133f1 more bulletproofing for those who assume nsMsgDBFolder was including nsIMessage
git-svn-id: svn://10.0.0.236/trunk@42634 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 03:53:12 +00:00
bienvenu%netscape.com
e9068553d3 fix next solaris bustage
git-svn-id: svn://10.0.0.236/trunk@42633 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 03:43:06 +00:00
dveditz%netscape.com
efb8ea5568 xpinstall bugfixes
git-svn-id: svn://10.0.0.236/trunk@42632 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 03:35:16 +00:00
dveditz%netscape.com
dd1101f277 fix 8.3 module name problem
git-svn-id: svn://10.0.0.236/trunk@42631 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 03:32:08 +00:00
dveditz%netscape.com
f20584a422 fix 8.3 name problem, update to new libreg name
git-svn-id: svn://10.0.0.236/trunk@42630 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 03:30:52 +00:00
bienvenu%netscape.com
165fbb20e2 one more try - fix build bustage
git-svn-id: svn://10.0.0.236/trunk@42629 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 03:17:47 +00:00
dveditz%netscape.com
8cd22325c2 change libreg name to match Unix
git-svn-id: svn://10.0.0.236/trunk@42628 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 03:16:42 +00:00
dveditz%netscape.com
eb1c26285d change library name to match Unix
git-svn-id: svn://10.0.0.236/trunk@42627 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 03:16:02 +00:00
dveditz%netscape.com
05b6bf4c8c update comment to reflect code
git-svn-id: svn://10.0.0.236/trunk@42626 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 03:12:40 +00:00
dveditz%netscape.com
ead61cffe0 removing obsolete references to libreg
git-svn-id: svn://10.0.0.236/trunk@42625 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 03:09:40 +00:00
briano%netscape.com
560cfafde5 Fixed the missing EOF newline problem.
git-svn-id: svn://10.0.0.236/trunk@42624 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 03:01:30 +00:00
bienvenu%netscape.com
86c54b13de fix build bustage
git-svn-id: svn://10.0.0.236/trunk@42623 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 02:57:43 +00:00
danm%netscape.com
01582c69aa corrected chrome behaviour in window.open. removed warnings in nsWebShellWindow.
git-svn-id: svn://10.0.0.236/trunk@42622 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 02:51:03 +00:00
alecf%netscape.com
c06c155ecd move the root of the folder pane to the tree, rather than the tree children
git-svn-id: svn://10.0.0.236/trunk@42621 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 02:32:08 +00:00
bienvenu%netscape.com
99f6ae88c2 get rid of nsString2
git-svn-id: svn://10.0.0.236/trunk@42620 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 02:32:02 +00:00
bienvenu%netscape.com
34728dd0c2 get rid of nsString2, more hooking up of status
git-svn-id: svn://10.0.0.236/trunk@42619 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 02:30:11 +00:00
endico%mozilla.org
00a59f15dc only claim that these are the 20 most doomed if we've left people off the list
git-svn-id: svn://10.0.0.236/trunk@42618 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 02:25:38 +00:00
sspitzer%netscape.com
d13e711412 fix the port bustages. use ZLIB_LIBS and not -lz. r=briano.
git-svn-id: svn://10.0.0.236/trunk@42617 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 02:15:37 +00:00
alecf%netscape.com
3b6954fdb4 remove "Accounts" treecell
git-svn-id: svn://10.0.0.236/trunk@42616 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 02:14:40 +00:00
sspitzer%netscape.com
fd73386e86 since #7417 is fixed, we can set the default mailnews start page to something realistic, like the 4.5 start page. this fixes bug #7087
git-svn-id: svn://10.0.0.236/trunk@42615 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 02:00:19 +00:00
endico%mozilla.org
d62a888c47 limit Most Recently Doomed to the 20 most doomed. the full report takes forever
git-svn-id: svn://10.0.0.236/trunk@42614 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 01:49:03 +00:00
arielb%netscape.com
969f4b8a82 removing reference to lcaps in makefile.in
git-svn-id: svn://10.0.0.236/trunk@42613 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 01:46:01 +00:00
arielb%netscape.com
d2afd1086a fix bustage on worms
git-svn-id: svn://10.0.0.236/trunk@42612 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 01:43:36 +00:00
rjc%netscape.com
a9c672d153 Compute a good title for saved search bookmarks.
git-svn-id: svn://10.0.0.236/trunk@42611 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 01:40:26 +00:00
rjc%netscape.com
d0b2e050ae Add snap.com
git-svn-id: svn://10.0.0.236/trunk@42610 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 01:17:59 +00:00
hangas%netscape.com
474021de28 This file did not make it in correctly on first try.
git-svn-id: svn://10.0.0.236/trunk@42609 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 01:13:50 +00:00
rjc%netscape.com
fdadf05940 Add goto.com
git-svn-id: svn://10.0.0.236/trunk@42608 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 01:07:20 +00:00
hangas%netscape.com
474593c52d Popup on top of New Card dialog now allows the address book to be selected. Edit card title is working now.
git-svn-id: svn://10.0.0.236/trunk@42607 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 01:04:32 +00:00
rjc%netscape.com
521e572ff4 Add Google.
git-svn-id: svn://10.0.0.236/trunk@42606 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:51:01 +00:00
rjc%netscape.com
80357180c8 Add google.
git-svn-id: svn://10.0.0.236/trunk@42605 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:50:47 +00:00
rjc%netscape.com
4edae089ec Fix some more search parsing bugs.
git-svn-id: svn://10.0.0.236/trunk@42604 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:46:11 +00:00
alecf%netscape.com
da69d4295f don't crash when mDatabase is null
git-svn-id: svn://10.0.0.236/trunk@42603 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:45:04 +00:00
danm%netscape.com
dadc2163b0 removed extra appshell->Exit. was unnecessary, and caused gtk some grief
git-svn-id: svn://10.0.0.236/trunk@42602 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:43:19 +00:00
mscott%netscape.com
8bee9bb1c7 Turn on prompt for password dialog when you try to get new mail. We no longer read it out of the prefs.
git-svn-id: svn://10.0.0.236/trunk@42601 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:42:16 +00:00
endico%mozilla.org
f2309b58e7 Add a new report "most recently doomed".
git-svn-id: svn://10.0.0.236/trunk@42600 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:38:09 +00:00
troy%netscape.com
908cf77ed6 Fix for bug #11393
git-svn-id: svn://10.0.0.236/trunk@42599 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:31:02 +00:00
ducarroz%netscape.com
aab064666b Fix breakage with plain text message composition due to wrong url loaded in Ender
git-svn-id: svn://10.0.0.236/trunk@42598 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:30:01 +00:00
ducarroz%netscape.com
7235904766 Remove &nbsp; in order to make japanese mail works because of entity bug
git-svn-id: svn://10.0.0.236/trunk@42597 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:28:28 +00:00
slamm%netscape.com
b37f3b24e2 Use the correct style for the panel bar.
git-svn-id: svn://10.0.0.236/trunk@42596 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:26:27 +00:00
slamm%netscape.com
77e2ff9809 Avoid adding a panel multiple times. Clean-up selection after removing a panel. Comment out dump()'s.
git-svn-id: svn://10.0.0.236/trunk@42595 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:25:56 +00:00
putterman%netscape.com
a6b02f4197 UpdateSummaryTotals when adding messages.
git-svn-id: svn://10.0.0.236/trunk@42594 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:24:25 +00:00
putterman%netscape.com
6279e2dd34 Work on opening to correct folder.
git-svn-id: svn://10.0.0.236/trunk@42593 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:22:44 +00:00
putterman%netscape.com
382eec1b20 Start using dtd's
git-svn-id: svn://10.0.0.236/trunk@42592 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:22:01 +00:00
putterman%netscape.com
0325933b24 Add locale to build.
git-svn-id: svn://10.0.0.236/trunk@42591 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:21:29 +00:00
putterman%netscape.com
684f4e09c4 Added base/locale directories.
git-svn-id: svn://10.0.0.236/trunk@42590 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:20:56 +00:00
putterman%netscape.com
308d8252b7 Added locale:en-US MANIFEST
git-svn-id: svn://10.0.0.236/trunk@42589 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:20:10 +00:00
ssu%netscape.com
98b030b108 fixed bugs #6622 and #6624
git-svn-id: svn://10.0.0.236/trunk@42588 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:19:13 +00:00
rjc%netscape.com
569447793d Fix search parsing bug.
git-svn-id: svn://10.0.0.236/trunk@42587 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:14:09 +00:00
sspitzer%netscape.com
239f6089d8 fix for run time bustage. r=briano
git-svn-id: svn://10.0.0.236/trunk@42586 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:10:14 +00:00
putterman%netscape.com
b503501642 Added pref for mailnews sidebar starting out open.
git-svn-id: svn://10.0.0.236/trunk@42585 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 23:43:04 +00:00
rjc%netscape.com
b722ce86e3 Add datasets directory into build.
git-svn-id: svn://10.0.0.236/trunk@42583 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 23:17:22 +00:00
chuang%netscape.com
7d6daef06c remove pref html files
git-svn-id: svn://10.0.0.236/trunk@42582 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 23:16:13 +00:00
chuang%netscape.com
54a553d1a4 replace Entity with dtd file
git-svn-id: svn://10.0.0.236/trunk@42578 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 23:09:43 +00:00
rjc%netscape.com
7e9a4319e4 On Mac, check a file's type (skip the creator, so that 3rd party shared libraries can be noticed) to see if its a shared library.
git-svn-id: svn://10.0.0.236/trunk@42577 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 23:06:07 +00:00
karnaze%netscape.com
a56ba9e76b new regression tests
git-svn-id: svn://10.0.0.236/trunk@42576 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 23:05:21 +00:00
dbragg%netscape.com
e42f1da7c2 Removed Mac simple return value and removed the renaming of prefs.js to prefs50.js. Now only the Mac has the Netscape Preferences file renamed to prefs.js
git-svn-id: svn://10.0.0.236/trunk@42575 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 23:01:34 +00:00
arielb%netscape.com
e7f72f60e5 added files: mozilla/caps/src/nsSecurityManagerFactory.cpp
git-svn-id: svn://10.0.0.236/trunk@42571 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 22:56:57 +00:00
slamm%netscape.com
7688b918ee Add a corner to the panel titles.
git-svn-id: svn://10.0.0.236/trunk@42569 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 22:55:03 +00:00
rjc%netscape.com
71603def2f Look in {DIST}/res/rdf/datasets for search datasets.
git-svn-id: svn://10.0.0.236/trunk@42566 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 22:54:28 +00:00
norris%netscape.com
c312ad6e18 didn't go through on windows, this is arielb's checkin
git-svn-id: svn://10.0.0.236/trunk@42565 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 22:50:11 +00:00
cltbld%netscape.com
089fb9ada1 make the CHROME rules play nice with obj-dir. fixes #11260
git-svn-id: svn://10.0.0.236/trunk@42564 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 22:45:47 +00:00
arielb%netscape.com
a12b820894 added a new and improved factory to caps module. fixed some bugs and
cleared some warnings.  also move some methods of privilege manager to
principal manager.


git-svn-id: svn://10.0.0.236/trunk@42563 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 22:44:35 +00:00
sspitzer%netscape.com
b001818fab make the CHROME rules play nice with obj-dir. fixes #11260
git-svn-id: svn://10.0.0.236/trunk@42562 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 22:41:51 +00:00
slamm%netscape.com
d822d9521c Add 'Customize Panel' dialog for customizing individual panels (bug #9768).
git-svn-id: svn://10.0.0.236/trunk@42561 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 22:37:47 +00:00
slamm%netscape.com
5076445dcf Use a local to hold onto customize window. Will need this to customize multiple sidebars.
git-svn-id: svn://10.0.0.236/trunk@42560 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 22:36:53 +00:00
hyatt%netscape.com
916334e8f2 Removing the translation popup, since it is no longer used.
git-svn-id: svn://10.0.0.236/trunk@42559 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 22:24:19 +00:00
pinkerton%netscape.com
3d0b196040 Fix for bug 8292. MacGFX now understands underline in CSS.
git-svn-id: svn://10.0.0.236/trunk@42558 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 22:16:33 +00:00
nisheeth%netscape.com
a3a4d6c57b Fix for bug 7401. We now print out error messages for failed url loads.
git-svn-id: svn://10.0.0.236/trunk@42557 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 21:54:25 +00:00
rods%netscape.com
22ceb9955b Fixed build breakage, passing in wrong variable, and it was uninitialized.
git-svn-id: svn://10.0.0.236/trunk@42553 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 21:45:14 +00:00
bienvenu%netscape.com
df2f27f1be fix build bustage for rods
git-svn-id: svn://10.0.0.236/trunk@42552 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 21:43:33 +00:00
rpotts%netscape.com
c8626b2f3f Removed an *extra* release of the PostData stream... This was causing random crashes...
git-svn-id: svn://10.0.0.236/trunk@42551 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 21:38:09 +00:00
putterman%netscape.com
4b5c213807 Add files and directories for dtd's. Not currently part of the build.
git-svn-id: svn://10.0.0.236/trunk@42548 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 21:31:29 +00:00
rods%netscape.com
f619e80294 Added RemoveDummyFrameFromSelect method for removing the dummy frame when the select is empty, finished adding the code to completely handle the creating and removing of the dummy frame.
git-svn-id: svn://10.0.0.236/trunk@42543 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 21:14:45 +00:00
brade%netscape.com
258e227b56 add window title back in
git-svn-id: svn://10.0.0.236/trunk@42542 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 21:14:18 +00:00
mscott%netscape.com
10399efa62 this file is now an idl file...it's obosoltete now.
git-svn-id: svn://10.0.0.236/trunk@42541 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 21:14:14 +00:00
brade%netscape.com
c2b7bc3548 move to external dtd
git-svn-id: svn://10.0.0.236/trunk@42540 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 21:13:45 +00:00
pinkerton%netscape.com
2a736f773e tweak placement of tooltip so linux doesn't crash.
git-svn-id: svn://10.0.0.236/trunk@42538 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 21:06:40 +00:00
jefft%netscape.com
e5d025c3f7 remove summary file prior trash all messages
git-svn-id: svn://10.0.0.236/trunk@42537 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 21:03:59 +00:00
rjc%netscape.com
4933fd0c19 Start adding search datasets.
git-svn-id: svn://10.0.0.236/trunk@42536 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 21:00:35 +00:00
rjc%netscape.com
5aa37c7197 Look in {DIST}/res/rdf/datasets for search datasets.
git-svn-id: svn://10.0.0.236/trunk@42535 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:59:17 +00:00
hangas%netscape.com
6443881b7e Added Candice' pref dtd files to the Mac build.
git-svn-id: svn://10.0.0.236/trunk@42534 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:55:11 +00:00
akkana%netscape.com
ccf4e538ba Don't convert charset on nsStrings, as suggested in comments in bug 6672
git-svn-id: svn://10.0.0.236/trunk@42532 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:50:37 +00:00
rjc%netscape.com
37f8661b4a Use a document load event listener to decide when to update bookmark's last visit date.
git-svn-id: svn://10.0.0.236/trunk@42531 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:49:16 +00:00
alecf%netscape.com
c987842556 remove rules that are now in xul.css
git-svn-id: svn://10.0.0.236/trunk@42530 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:46:52 +00:00
alecf%netscape.com
38035b573e add global style sheet so that we don't need as many rules in accounttree.css
git-svn-id: svn://10.0.0.236/trunk@42529 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:46:30 +00:00
alecf%netscape.com
10665d31f8 remove extraneous comment (this isn't true anymore)
git-svn-id: svn://10.0.0.236/trunk@42528 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:43:43 +00:00
alecf%netscape.com
9820b9d361 add some assertions to save us problems later
git-svn-id: svn://10.0.0.236/trunk@42527 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:43:11 +00:00
alecf%netscape.com
0e054bad6d - make AddAccount() refresh and save the account list, so that new accounts are saved
- register as a shutdown listener for the prefs service, so that we can be notified when the prefs service goes down. Also add an accessor method so that the prefs service is (re)requested on demand


git-svn-id: svn://10.0.0.236/trunk@42526 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:42:40 +00:00
waterson%netscape.com
9b01d8ba20 Fix build warning.
git-svn-id: svn://10.0.0.236/trunk@42525 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:34:55 +00:00
brade%netscape.com
0253cd5371 add EditorTableProperties.dtd
git-svn-id: svn://10.0.0.236/trunk@42524 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:34:14 +00:00
brade%netscape.com
002311d875 remove xml version
git-svn-id: svn://10.0.0.236/trunk@42523 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:31:59 +00:00
ducarroz%netscape.com
42289d6e53 Remove temporary the key binding, fix for bug 11184
git-svn-id: svn://10.0.0.236/trunk@42522 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:29:18 +00:00
chuang%netscape.com
b953ce505c add locale/en-US to build
git-svn-id: svn://10.0.0.236/trunk@42521 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:28:20 +00:00
chuang%netscape.com
e0bc45f018 add mailnews prefs locale/en_us to build
git-svn-id: svn://10.0.0.236/trunk@42520 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:26:27 +00:00
waterson%netscape.com
e8df7c9755 Bug 8836. Make RDF service a shared global variable. For some reason, this fixes the bizarre assertions when closing a file. Voodoo. Magic. Whatever.
git-svn-id: svn://10.0.0.236/trunk@42519 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:24:29 +00:00
tao%netscape.com
76cdc0d7f2 Temporary set charset to utf-8 until the coverter for escape-unicode is
ready.


git-svn-id: svn://10.0.0.236/trunk@42518 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:24:02 +00:00
brade%netscape.com
e593683c40 remove xml version; synch up with xul file
git-svn-id: svn://10.0.0.236/trunk@42515 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:11:09 +00:00
tao%netscape.com
6dd9451c0f Add editor/ui/dialogs/locale/en-US to UNIX build.
git-svn-id: svn://10.0.0.236/trunk@42514 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:09:34 +00:00
brade%netscape.com
bc83d61540 move to external dtd
git-svn-id: svn://10.0.0.236/trunk@42513 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:08:27 +00:00
brade%netscape.com
7b1cfa20e2 remove xml version
git-svn-id: svn://10.0.0.236/trunk@42512 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:07:58 +00:00
bienvenu%netscape.com
546c53c653 attempt to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@42511 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:01:04 +00:00
brade%netscape.com
1bbb7c10a3 move to external dtd
git-svn-id: svn://10.0.0.236/trunk@42509 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 19:58:55 +00:00
brade%netscape.com
a95b1cbade First Checked In.
git-svn-id: svn://10.0.0.236/trunk@42508 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 19:58:22 +00:00
brade%netscape.com
2a180d38ca move to external dtd
git-svn-id: svn://10.0.0.236/trunk@42506 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 19:50:26 +00:00
brade%netscape.com
2ba867fa8e remove xml version
git-svn-id: svn://10.0.0.236/trunk@42505 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 19:50:10 +00:00
brade%netscape.com
43a64b5860 move to external dtd
git-svn-id: svn://10.0.0.236/trunk@42504 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 19:22:25 +00:00
hyatt%netscape.com
f8c7506959 Popup set frames can be created.
git-svn-id: svn://10.0.0.236/trunk@42503 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 19:20:56 +00:00
akhil.arora%sun.com
212e5ff662 added a list of things to do
git-svn-id: svn://10.0.0.236/trunk@42502 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 19:18:58 +00:00
hyatt%netscape.com
a9a00de612 Adding the popup set atom to the XUL atom list.
git-svn-id: svn://10.0.0.236/trunk@42501 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 19:18:42 +00:00
brade%netscape.com
fbf1c49f51 remove xml version
git-svn-id: svn://10.0.0.236/trunk@42500 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 19:17:08 +00:00
matt%netscape.com
f708e11cbd Adding fixing bug 6825
git-svn-id: svn://10.0.0.236/trunk@42499 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 19:16:26 +00:00
hyatt%netscape.com
0d29334fba added files: mozilla/layout/xul/base/src/nsPopupSetFrame.cpp
git-svn-id: svn://10.0.0.236/trunk@42498 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 19:13:48 +00:00
hyatt%netscape.com
4be0522555 Working on converting XUL popups to use the XP menu code.
git-svn-id: svn://10.0.0.236/trunk@42497 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 19:12:23 +00:00
matt%netscape.com
5fb965d030 Fixing bugs 6854 6850 6830 and 6824
git-svn-id: svn://10.0.0.236/trunk@42496 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 19:07:31 +00:00
pinkerton%netscape.com
6cdf8f9440 major major cleanup of toolbar drag and drop. fixes some bugs, some memory leaks, and problems with dragging to select text in the url bar.
git-svn-id: svn://10.0.0.236/trunk@42495 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:54:48 +00:00
chuang%netscape.com
b2571b24ed fix text change, this file is not in build yet
git-svn-id: svn://10.0.0.236/trunk@42494 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:49:36 +00:00
brade%netscape.com
5506c31f3b hook up to correct dtd file
git-svn-id: svn://10.0.0.236/trunk@42493 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:39:19 +00:00
brade%netscape.com
ef7c226822 remove old file
git-svn-id: svn://10.0.0.236/trunk@42492 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:38:46 +00:00
brade%netscape.com
322942c3d0 File Removed.
git-svn-id: svn://10.0.0.236/trunk@42491 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:37:47 +00:00
brade%netscape.com
2a8478acc5 remove xml version number
git-svn-id: svn://10.0.0.236/trunk@42490 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:37:34 +00:00
brade%netscape.com
dd3a58b377 remove xml version number; synch up strings with xul file
git-svn-id: svn://10.0.0.236/trunk@42489 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:37:14 +00:00
waterson%netscape.com
418a773727 Fix --pedantic bustage.
git-svn-id: svn://10.0.0.236/trunk@42488 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:36:50 +00:00
brade%netscape.com
233220ce37 entities now in dtd file
git-svn-id: svn://10.0.0.236/trunk@42487 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:36:24 +00:00
waterson%netscape.com
b4714c5052 Fix compiler warning.
git-svn-id: svn://10.0.0.236/trunk@42486 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:28:15 +00:00
jefft%netscape.com
9976ce586c enable imap empty trash folder
git-svn-id: svn://10.0.0.236/trunk@42485 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:25:43 +00:00
jefft%netscape.com
4a3e4f7a52 added base folder EmptyTrash() method
git-svn-id: svn://10.0.0.236/trunk@42484 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:24:39 +00:00
jefft%netscape.com
b7965701af added NC_RDF_EMPTYTRASH command; EmptyTrash() method
git-svn-id: svn://10.0.0.236/trunk@42483 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:23:50 +00:00
jefft%netscape.com
0e36cb41e2 filled in MsgEmptyTrash() function
git-svn-id: svn://10.0.0.236/trunk@42482 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:22:05 +00:00
brade%netscape.com
31c1ca58a5 synching up with changes in EdLinkProps.xul
git-svn-id: svn://10.0.0.236/trunk@42481 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:22:00 +00:00
jefft%netscape.com
df575a24a3 added EmptyTrash()
git-svn-id: svn://10.0.0.236/trunk@42480 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:21:13 +00:00
hyatt%netscape.com
619116af70 Adding code for popup set frames (which hold the absolutely positioned menu popups
that represent tooltips, popup menus, and context menus).  This code is not being
compiled yet, so it's a safe checkin.


git-svn-id: svn://10.0.0.236/trunk@42479 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:16:27 +00:00
sspitzer%netscape.com
4c66529227 put the dot back in front of Print, since it doesn't work yet.
git-svn-id: svn://10.0.0.236/trunk@42478 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:16:09 +00:00
slamm%netscape.com
a457d4ba97 Move entities into DTD for related links panel (bug #10341)
git-svn-id: svn://10.0.0.236/trunk@42477 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:07:58 +00:00
waterson%netscape.com
f5a7698506 Bug 8159. Fix circularity between content model builder and composite datas source (via 'observer' which now refcounts). Destruction of a XULDocumentImpl now forces builder to do out-of-band release on composite datasource.
git-svn-id: svn://10.0.0.236/trunk@42476 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:59:05 +00:00
neeti%netscape.com
8ad4cb2294 removed xplib dependency from the cookie module
git-svn-id: svn://10.0.0.236/trunk@42475 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:51:54 +00:00
bienvenu%netscape.com
81697ab3dc add explicit includes to prepare for idl cleanup
git-svn-id: svn://10.0.0.236/trunk@42474 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:45:38 +00:00
slamm%netscape.com
3dfffc4d93 Move entities into dtd for history (bug #10341)
git-svn-id: svn://10.0.0.236/trunk@42473 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:43:47 +00:00
chuang%netscape.com
05cf3ba5df Use correct DEPTH
git-svn-id: svn://10.0.0.236/trunk@42472 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:39:47 +00:00
dcone%netscape.com
94b4b5b33b Cleared out the memory after it was allocated
git-svn-id: svn://10.0.0.236/trunk@42471 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:39:32 +00:00
chuang%netscape.com
4ab4e8fba3 remove extra characters
git-svn-id: svn://10.0.0.236/trunk@42470 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:37:05 +00:00
rhp%netscape.com
394878716a Change to return result from Drafts to JS
git-svn-id: svn://10.0.0.236/trunk@42469 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:36:23 +00:00
slamm%netscape.com
b89f205616 Move entities into dtd files for history (bug #10341).
git-svn-id: svn://10.0.0.236/trunk@42468 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:35:46 +00:00
slamm%netscape.com
67bf7e8cc3 Move entities into dtd files (bug #10341).
git-svn-id: svn://10.0.0.236/trunk@42467 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:35:10 +00:00
slamm%netscape.com
d16a9943cf Move entities into dtd files (bug #10341).
git-svn-id: svn://10.0.0.236/trunk@42466 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:34:34 +00:00
chuang%netscape.com
81d113421b replace pref html file with xul file
git-svn-id: svn://10.0.0.236/trunk@42465 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:33:51 +00:00
troy%netscape.com
7224b10efc Fixed compiler warning
git-svn-id: svn://10.0.0.236/trunk@42464 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:21:57 +00:00
slamm%netscape.com
11cd5ec04a Add a whole bunch of titles for new panels.
git-svn-id: svn://10.0.0.236/trunk@42463 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:20:26 +00:00
slamm%netscape.com
873e1d5edb Slightly smaller font for title.
git-svn-id: svn://10.0.0.236/trunk@42462 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:19:37 +00:00
slamm%netscape.com
bf07aa35a5 Add a whole bunch of panels
git-svn-id: svn://10.0.0.236/trunk@42461 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:19:11 +00:00
slamm%netscape.com
028cc57bab Install bookmarks dtd in same place as windows and Unix.
git-svn-id: svn://10.0.0.236/trunk@42460 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:16:28 +00:00
terry%mozilla.org
248b9b20f7 Fixed bug in "show all diffs" feature.
git-svn-id: svn://10.0.0.236/trunk@42459 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:06:09 +00:00
terry%mozilla.org
7426f3396f Last patch didn't work -- perl doesn't like the "scaler" function.
git-svn-id: svn://10.0.0.236/trunk@42458 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 17:00:33 +00:00
brade%netscape.com
5c6667140a partial menu keybindings/accesskeys
git-svn-id: svn://10.0.0.236/trunk@42457 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 15:01:21 +00:00
rods%netscape.com
7653e4a489 Added select:-moz-dummy-option
git-svn-id: svn://10.0.0.236/trunk@42456 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 14:43:46 +00:00
rods%netscape.com
59bd3253ba ifdef'ed out the ambigous compiler error for Linux, this code isn't being used at the moment
git-svn-id: svn://10.0.0.236/trunk@42455 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 14:42:00 +00:00
german%netscape.com
cabf5dbb16 remove translate button (will be handled through View menu) and set align="horizontal" progress meter to get decent height value (see changes to xul.css)
git-svn-id: svn://10.0.0.236/trunk@42454 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 14:40:28 +00:00
troy%netscape.com
3bce3f4d0d Changed reflow command handling over to the new approach
git-svn-id: svn://10.0.0.236/trunk@42453 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 14:34:56 +00:00
troy%netscape.com
0a8e132ebc Cleanup
git-svn-id: svn://10.0.0.236/trunk@42452 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 14:34:32 +00:00
german%netscape.com
9da51e6add fix for bug 7418, better values for progress meter, use 'align=horizontal' for best results
git-svn-id: svn://10.0.0.236/trunk@42451 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 14:33:31 +00:00
rods%netscape.com
33ecbde954 Started to add code to better handle resizing when there are no elements.
git-svn-id: svn://10.0.0.236/trunk@42450 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 14:14:38 +00:00
rods%netscape.com
56159e3427 Made the Combobox a nsIDOMFocusListener, so it can set the focus on the "display"
content when focus goes to the button or the combobox itself


git-svn-id: svn://10.0.0.236/trunk@42449 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 14:13:20 +00:00
rods%netscape.com
54a91b5e85 Added code to create and remove the generated content and frame when the select has no options. This necessary for correct sizing of the select when empty.
git-svn-id: svn://10.0.0.236/trunk@42448 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 14:11:14 +00:00
rods%netscape.com
ca0b40cbe7 Added :-moz-dummy-option is used for empty select tags
git-svn-id: svn://10.0.0.236/trunk@42447 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 14:00:54 +00:00
dveditz%netscape.com
c88807c029 fix potential memory problems in makecopy, turn NT symlinking on
for performance, clobber speedups


git-svn-id: svn://10.0.0.236/trunk@42446 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 13:45:09 +00:00
jefft%netscape.com
66975cd409 enabled Compact This Folder command; implemented MoveFolder(), RenameLeaf() methods
git-svn-id: svn://10.0.0.236/trunk@42445 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 13:43:49 +00:00
jefft%netscape.com
b4517d227d implement message folder base Compact() method
git-svn-id: svn://10.0.0.236/trunk@42444 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 13:40:08 +00:00
jefft%netscape.com
5f055bfb2e Added NC_RDF_COMPACT, NC_RDF_RENAME commands; CompactFolder(), RenameFolder() methods
git-svn-id: svn://10.0.0.236/trunk@42443 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 13:39:03 +00:00
jefft%netscape.com
ae82c95be1 adding MsgRenameFolder(), MsgCompactFolder() function
git-svn-id: svn://10.0.0.236/trunk@42442 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 13:35:11 +00:00
jefft%netscape.com
6444d13b8c adding Rename Folder... Compact This Folder menu item
git-svn-id: svn://10.0.0.236/trunk@42441 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 13:34:29 +00:00
jefft%netscape.com
deaa6c21b2 adding Compact() method
git-svn-id: svn://10.0.0.236/trunk@42440 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 13:32:50 +00:00
jefft%netscape.com
df93ec4aa9 adding RenameFolder & CompactFolder method
git-svn-id: svn://10.0.0.236/trunk@42439 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 13:32:19 +00:00
rhp%netscape.com
41114e0a97 Changes for charset detection for URL attachments
git-svn-id: svn://10.0.0.236/trunk@42438 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 13:12:04 +00:00
jfrancis%netscape.com
4b7c2c1325 fixing unix bustage. compilers: viva la difference!
git-svn-id: svn://10.0.0.236/trunk@42437 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 12:14:39 +00:00
jfrancis%netscape.com
1231913111 fixing range dom gravity bug first exposed by bug #10231
git-svn-id: svn://10.0.0.236/trunk@42436 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 10:33:09 +00:00
mccabe%netscape.com
19ca172d42 Made use of ... varargs result in failure, as we don't currently seem
to support it.


git-svn-id: svn://10.0.0.236/trunk@42435 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 10:25:16 +00:00
jband%netscape.com
1e3a93ad77 add JS based test for nsISupportsPrimitives. Run using 'xpcshell xpctest_primitive.js'
git-svn-id: svn://10.0.0.236/trunk@42434 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 09:43:45 +00:00
jband%netscape.com
21f09bba00 changes to nsISupportsPrimitives stuff... Add classes for float and double. Remove class for PRUnichar 'cuz it is too problematic as a type. Fix some capitalization. Add toString methods for more transparent use from JS
git-svn-id: svn://10.0.0.236/trunk@42433 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 09:42:12 +00:00
ramiro%netscape.com
20329e9f3b Add debian packaging stuff. Thanks very much to Brent Fulgham and the
debian hackers for contributing these.


git-svn-id: svn://10.0.0.236/trunk@42432 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 09:35:28 +00:00
rickg%netscape.com
f80c94e310 fixed bug 6659
git-svn-id: svn://10.0.0.236/trunk@42431 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 09:20:42 +00:00
alecf%netscape.com
f177b8aa03 fix memory error found by rickg's tool
NOT PART OF THE BUILD


git-svn-id: svn://10.0.0.236/trunk@42430 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 09:17:15 +00:00
alecf%netscape.com
f2e056ac75 add new interface for DOM node container
NOT PART OF THE BUILD


git-svn-id: svn://10.0.0.236/trunk@42429 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 09:16:13 +00:00
alecf%netscape.com
8884c5f158 fix bit-rot in DOM viewer
- remove use of depricated EqualsResource
- fix memory error as found by rickg's tool
- convert to using raw pointers rather than nsCOMPtrs

NOT PART OF THE BUILD!


git-svn-id: svn://10.0.0.236/trunk@42428 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 09:15:44 +00:00
tague%netscape.com
b6b0293853 Fix build bustage
git-svn-id: svn://10.0.0.236/trunk@42427 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 08:31:38 +00:00
ramiro%netscape.com
070499ff84 Backout my last changes to fix the mac and window builds.
git-svn-id: svn://10.0.0.236/trunk@42426 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 08:21:41 +00:00
ssu%netscape.com
ce62f82656 fixed blockage of windows process messages when inflating files. This affects only the standalone windows build.
git-svn-id: svn://10.0.0.236/trunk@42425 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:58:15 +00:00
jband%netscape.com
a424b826f2 fix xpidl compiler failure when a block of 'raw' stuff straddles a buffer block boundary
git-svn-id: svn://10.0.0.236/trunk@42424 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:57:53 +00:00
rpotts%netscape.com
89e0a639ea bug #10790. The HTTPChannel is now given to the HTTPResponseListener during construction. Before, it was getting it via a dirty cast in the OnStartRequest notification. Unfortunately, OnStartRequest is only called if the connection is successful. This caused a crash in OnStopRequest if the HTTPChannel was not available :-(
git-svn-id: svn://10.0.0.236/trunk@42423 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:57:44 +00:00
morse%netscape.com
e780de2587 fix memory leak
git-svn-id: svn://10.0.0.236/trunk@42422 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:48:54 +00:00
sspitzer%netscape.com
f68d9f5d05 use nsCOMPtr. use NS_DEFINE_CID and NS_DEFINE_CID correctly
git-svn-id: svn://10.0.0.236/trunk@42421 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:44:37 +00:00
sspitzer%netscape.com
e3ef227d2f fix for #10832. copy the 4.5 identity for each new 5.0 account. n servers -> n copies of the 4.5 identity.
git-svn-id: svn://10.0.0.236/trunk@42420 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:44:01 +00:00
sspitzer%netscape.com
dbb7f4f303 use nsCOMPtr. hide printfs with #ifdef DEBUG
git-svn-id: svn://10.0.0.236/trunk@42419 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:42:49 +00:00
tague%netscape.com
b3fa7e39dd Added candidate window positioning for Win32 input methods
git-svn-id: svn://10.0.0.236/trunk@42418 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:42:35 +00:00
sspitzer%netscape.com
3db61ac2a0 use try and catch
git-svn-id: svn://10.0.0.236/trunk@42417 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:42:27 +00:00
sspitzer%netscape.com
3ea4f35abb changes for printing from addressbook
git-svn-id: svn://10.0.0.236/trunk@42416 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:42:20 +00:00
ramiro%netscape.com
5e908b8af2 Get the Inherited superclasses right. Suggested and reviewed by pierre.
git-svn-id: svn://10.0.0.236/trunk@42415 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:40:26 +00:00
sspitzer%netscape.com
65eb31c22f temporary fix for #11374.
git-svn-id: svn://10.0.0.236/trunk@42414 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:32:25 +00:00
ramiro%netscape.com
6537159c2b Fix gcc 2.7 bustage. It smells a lot like a bug in gcc. It was having
trouble dealing with the Inherited typedef in the class declaration.
I replaced |Inherited| with the real thing Inherited was aliasing and all is
ok.  Pierre code reviewed.


git-svn-id: svn://10.0.0.236/trunk@42413 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:14:43 +00:00
talisman%anamorphic.com
8619886f8c Added Makefile.in for the toplevel configure script to generate Makefile from.
git-svn-id: svn://10.0.0.236/trunk@42412 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 06:10:15 +00:00
talisman%anamorphic.com
a73cc4bf4a Added Makefile.in for the toplevel configure script to generate Makefile from.
git-svn-id: svn://10.0.0.236/trunk@42411 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 05:57:18 +00:00
pierre%netscape.com
73e5a69d49 Removed a duplicate entry. A similar error in Makefile.in broke the build on Unix; this one was ok on Win32.
git-svn-id: svn://10.0.0.236/trunk@42410 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 05:49:12 +00:00
ramiro%netscape.com
6c697ee915 Fix bustage on unix. Removed duplicate source entry.
git-svn-id: svn://10.0.0.236/trunk@42409 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 05:39:24 +00:00
talisman%anamorphic.com
a79c27f23a Added Makefile.in for toplevel configure script to generate Makefile from.
git-svn-id: svn://10.0.0.236/trunk@42408 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 05:32:19 +00:00
talisman%anamorphic.com
fe5db056a2 Updated README and README.build to reflect the addition of autoconf support.
Added Makefile.in configure configure.in to automate buid configuration.


git-svn-id: svn://10.0.0.236/trunk@42407 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 05:26:53 +00:00
pierre%netscape.com
031373d07a Re-enabled the live-resizing just to see if people like it better now because the rendering is much faster.
git-svn-id: svn://10.0.0.236/trunk@42406 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 05:22:31 +00:00
pierre%netscape.com
36f4cf1552 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@42405 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 05:13:07 +00:00
pierre%netscape.com
6a1d462764 breaking up gfx & native widgets
git-svn-id: svn://10.0.0.236/trunk@42404 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 05:11:39 +00:00
hangas%netscape.com
5a42080451 Adding "New Address Book" feature.
git-svn-id: svn://10.0.0.236/trunk@42403 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 04:20:35 +00:00
hangas%netscape.com
92763b3ace First Checked In.
git-svn-id: svn://10.0.0.236/trunk@42402 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 04:19:42 +00:00
tague%netscape.com
69ad5f62aa Fix build bustage
git-svn-id: svn://10.0.0.236/trunk@42401 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 03:54:54 +00:00
briano%netscape.com
4ba45c74a1 Automated update
git-svn-id: svn://10.0.0.236/trunk@42400 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 03:54:24 +00:00
alecf%netscape.com
83dbe1cc1c add twisty column, fix indentation, and make tree height 100% so that scroll bars appear
git-svn-id: svn://10.0.0.236/trunk@42399 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 03:54:01 +00:00
briano%netscape.com
8f568f6416 Took out my Solaris gcc 2.7.2.1 specific hack, because though it enables binaries to link, they don't run. So we're back where we started.
git-svn-id: svn://10.0.0.236/trunk@42398 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 03:54:00 +00:00
alecf%netscape.com
3e878bb3a1 add twisty toggle to account manager temporarily
git-svn-id: svn://10.0.0.236/trunk@42397 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 03:53:16 +00:00
tague%netscape.com
2048a38f01 Missed adding a generated file.
git-svn-id: svn://10.0.0.236/trunk@42396 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 03:45:59 +00:00
tague%netscape.com
c80a2fb3ba Found missing file from checkin
git-svn-id: svn://10.0.0.236/trunk@42395 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 03:14:57 +00:00
tague%netscape.com
3d05ffd145 Fix build bustage
git-svn-id: svn://10.0.0.236/trunk@42394 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 03:10:14 +00:00
tague%netscape.com
5266bf1954 Added replies from DOM text events
git-svn-id: svn://10.0.0.236/trunk@42393 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 02:40:45 +00:00
tague%netscape.com
8124df9f6f Added replies from DOM private text events
git-svn-id: svn://10.0.0.236/trunk@42392 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 02:39:48 +00:00
tague%netscape.com
5f2b704a17 Added support for replies from private DOM text events. See bug #4826
git-svn-id: svn://10.0.0.236/trunk@42391 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 02:32:13 +00:00
tague%netscape.com
4d3d806308 Added support for replies from DOM private text events.
git-svn-id: svn://10.0.0.236/trunk@42390 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 02:31:13 +00:00
evaughan%netscape.com
be9613f0eb Fixed fieldset padding bug.
git-svn-id: svn://10.0.0.236/trunk@42389 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 00:48:26 +00:00
despotdaemon%netscape.com
dd003e6060 Pseudo-automatic update of changes made by idk@eng.sun.com.
git-svn-id: svn://10.0.0.236/trunk@42388 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 00:39:17 +00:00
hyatt%netscape.com
24e51147a8 Fix for bug 10938.
git-svn-id: svn://10.0.0.236/trunk@42387 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 00:36:55 +00:00
slamm%netscape.com
0b9c74a504 Adjust preview's iframe height.
git-svn-id: svn://10.0.0.236/trunk@42386 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 00:29:44 +00:00
morse%netscape.com
992e91d2d9 cleaned up dialogs
git-svn-id: svn://10.0.0.236/trunk@42385 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 00:29:10 +00:00
akhil.arora%sun.com
10d25b3cb8 initial check-in of the java dom api (not part of regular build)
git-svn-id: svn://10.0.0.236/trunk@42384 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 00:28:53 +00:00
ramiro%netscape.com
94d1401eb5 Fix unix bustage.
git-svn-id: svn://10.0.0.236/trunk@42383 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 00:28:40 +00:00
rjc%netscape.com
ab62b6f331 Add "search" into Windows/Unix builds.
git-svn-id: svn://10.0.0.236/trunk@42382 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 00:27:19 +00:00
ducarroz%netscape.com
565a4e77de fix for bug 10382
git-svn-id: svn://10.0.0.236/trunk@42381 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 00:19:17 +00:00
ducarroz%netscape.com
e07577ac65 Fix for bug 10382
git-svn-id: svn://10.0.0.236/trunk@42380 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 00:16:24 +00:00
mcafee%netscape.com
31d326cb5a Removing TOOLBAR_DD ifdef magic, this is on by default now.
git-svn-id: svn://10.0.0.236/trunk@42379 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 00:01:10 +00:00
briano%netscape.com
ecc9a1f420 Automated update
git-svn-id: svn://10.0.0.236/trunk@42378 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 00:00:26 +00:00
danm%netscape.com
06c8af2df1 attempts to find webshells with a null name now always fail. makes window.open() with null name open new window. seems not to break anything. you know who to beat up if it does.
git-svn-id: svn://10.0.0.236/trunk@42377 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:59:00 +00:00
evaughan%netscape.com
3cd674a91c Fixed test to work with new boxes.
git-svn-id: svn://10.0.0.236/trunk@42376 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:44:56 +00:00
bienvenu%netscape.com
4be85f382d new paramater to selectFolder
git-svn-id: svn://10.0.0.236/trunk@42375 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:27:10 +00:00
rjc%netscape.com
b03bd1303c Add makefiles for Windows and Unix. (Not in the build yet on those platforms.)
git-svn-id: svn://10.0.0.236/trunk@42374 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:26:32 +00:00
evaughan%netscape.com
009c75c36a Fixed divide by 0 bug in boxes.
git-svn-id: svn://10.0.0.236/trunk@42373 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:25:20 +00:00
mscott%netscape.com
89cd4dd3dc Fix some warnings.
git-svn-id: svn://10.0.0.236/trunk@42372 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:16:20 +00:00
pavlov%netscape.com
0ceeec6d75 lets try this again
git-svn-id: svn://10.0.0.236/trunk@42371 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:13:07 +00:00
mscott%netscape.com
c506651daf Fix lots of unix warnings.
git-svn-id: svn://10.0.0.236/trunk@42370 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:12:59 +00:00
rjc%netscape.com
a09f5f8677 Enable Search items.
git-svn-id: svn://10.0.0.236/trunk@42369 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:09:42 +00:00
chuang%netscape.com
b4c73e5396 converted pref xul file, not in build yet
git-svn-id: svn://10.0.0.236/trunk@42368 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:08:59 +00:00
bienvenu%netscape.com
3813e1225a add statusFeedback to SelectFolder call, way to get running imap url from imap protocol
git-svn-id: svn://10.0.0.236/trunk@42367 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:08:35 +00:00
mscott%netscape.com
50e55ee114 fix warning...we were shadowing a variable called count.
git-svn-id: svn://10.0.0.236/trunk@42366 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:06:23 +00:00
rjc%netscape.com
7a9b0fe9ac Update XUL/JS.
git-svn-id: svn://10.0.0.236/trunk@42365 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:05:19 +00:00
chuang%netscape.com
1be0a5f832 locale stuff, not in build yet
git-svn-id: svn://10.0.0.236/trunk@42364 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:04:37 +00:00
chuang%netscape.com
32e0ea1290 dtd files, not in build yet
git-svn-id: svn://10.0.0.236/trunk@42363 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:03:38 +00:00
mscott%netscape.com
bebffe33b0 Fix warnings...link is a global variable and we were shadowing it.
git-svn-id: svn://10.0.0.236/trunk@42362 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:02:51 +00:00
chuang%netscape.com
7b464729a7 local stuff, not in build yet
git-svn-id: svn://10.0.0.236/trunk@42361 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 23:00:19 +00:00
av%netscape.com
8194125752 Removing old code
git-svn-id: svn://10.0.0.236/trunk@42360 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:55:05 +00:00
chuang%netscape.com
09b971f3d5 locale stuff, not in build yet
git-svn-id: svn://10.0.0.236/trunk@42359 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:54:27 +00:00
chuang%netscape.com
e7bab39e88 dtd files, not in build yet
git-svn-id: svn://10.0.0.236/trunk@42358 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:53:12 +00:00
terry%mozilla.org
34a0d8f96f Fix some Y2K issues! Now, don't freak out. The only real bug was
that lists of checkins would have started displaying the year as "100"
in the year 2000.  I have changed to display 4-digit years throughout.


git-svn-id: svn://10.0.0.236/trunk@42357 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:49:38 +00:00
despotdaemon%netscape.com
7591e40d18 Pseudo-automatic update of changes made by dmose@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@42356 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:45:31 +00:00
terry%mozilla.org
1a7c36570f Fix some Y2K issues! Now, don't freak out. The only real bug was
that lists of checkins would have started displaying the year as "100"
in the year 2000.  I have changed to display 4-digit years throughout.


git-svn-id: svn://10.0.0.236/trunk@42355 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:43:45 +00:00
sspitzer%netscape.com
31836803e3 use /tmp instead of /usr/tmp. /tmp should always be there, where /usr/tmp will not be. eventually, this will go away anyways.
git-svn-id: svn://10.0.0.236/trunk@42354 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:43:15 +00:00
ramiro%netscape.com
6aa8fdcce0 Dont link in zlib, its not needed.
git-svn-id: svn://10.0.0.236/trunk@42353 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:38:08 +00:00
mscott%netscape.com
71367f55ef Correctly handle ref counting for nsMsgStatusFeedback member variable.
git-svn-id: svn://10.0.0.236/trunk@42352 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:25:03 +00:00
ramiro%netscape.com
6c3de6044f Fix for orange loonix tree.
git-svn-id: svn://10.0.0.236/trunk@42351 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:24:08 +00:00
mscott%netscape.com
b4ee729e93 remove some pre-necko cruft.
git-svn-id: svn://10.0.0.236/trunk@42350 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:21:35 +00:00
brade%netscape.com
da4a10df64 partial menu keybindings
git-svn-id: svn://10.0.0.236/trunk@42349 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:19:58 +00:00
rhp%netscape.com
1e5ea56963 Changes for bodies in drafts and fix for 8bit address sending
git-svn-id: svn://10.0.0.236/trunk@42348 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:19:46 +00:00
brade%netscape.com
4ecd933c7b diffs from pete@postpagan.com
git-svn-id: svn://10.0.0.236/trunk@42347 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:19:25 +00:00
joki%netscape.com
a026535ad5 Adding new Location interface into QueryInterface method.
git-svn-id: svn://10.0.0.236/trunk@42346 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:18:28 +00:00
mscott%netscape.com
f3d8494053 Work around for necko problem. After reading a file, necko returns NS_BINDING_ABORTED which is defined as an error code.
It really should be defined as success. I'm redefining the return code to NS_OK if NS_BINDING_ABORTED is returned until
necko can fix this.


git-svn-id: svn://10.0.0.236/trunk@42345 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:17:52 +00:00
karnaze%netscape.com
1c17bab4a2 new regression tests
git-svn-id: svn://10.0.0.236/trunk@42344 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:15:23 +00:00
ducarroz%netscape.com
6c8e783c5e File Removed.
git-svn-id: svn://10.0.0.236/trunk@42343 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:13:53 +00:00
matt%netscape.com
9decd0cb37 Fixing bugs 6826
git-svn-id: svn://10.0.0.236/trunk@42342 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:10:12 +00:00
ssu%netscape.com
b072ccdfc4 fixed problem with PR_Seek() in standalone mode
git-svn-id: svn://10.0.0.236/trunk@42341 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 22:08:29 +00:00
matt%netscape.com
c97cd9e60f Adding treehead to prefs
git-svn-id: svn://10.0.0.236/trunk@42340 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 21:42:15 +00:00
matt%netscape.com
a784307bb8 Adding new box prefs.
fixing prefs bugs


git-svn-id: svn://10.0.0.236/trunk@42339 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 21:41:40 +00:00
mcafee%netscape.com
79268af9ce Trying to fix mac bustage.
git-svn-id: svn://10.0.0.236/trunk@42338 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 21:33:06 +00:00
endico%mozilla.org
8c2e4f0fca Oops. was counting closed bugs too.
git-svn-id: svn://10.0.0.236/trunk@42337 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 21:21:01 +00:00
endico%mozilla.org
a40586c4fe don't offer most doomed report if this bugzilla installation doesn't use milestones. remove semicolons from sql queries. the version of mysql running on lounge throws an error on semicoloned queries.
git-svn-id: svn://10.0.0.236/trunk@42336 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:48:51 +00:00
cmanske%netscape.com
babece75bf Fixed build bustage
git-svn-id: svn://10.0.0.236/trunk@42335 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:35:55 +00:00
neeti%netscape.com
6cd20c39c4 fixing GetResponseHeader to use "set-cookie" instead of "cookie"
git-svn-id: svn://10.0.0.236/trunk@42334 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:21:46 +00:00
kin%netscape.com
7b6feac7e7 Add return statement to operator=(). Fixes Win32 VC++ 5 build bustage.
git-svn-id: svn://10.0.0.236/trunk@42333 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:20:14 +00:00
troy%netscape.com
aba5f77708 Moved cantrenderreplacedelememt code over to the frame manager
git-svn-id: svn://10.0.0.236/trunk@42332 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:17:44 +00:00
waterson%netscape.com
7893c3e45d Bug 11323. Make sure to set doc title in global history once we know it.
git-svn-id: svn://10.0.0.236/trunk@42331 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:15:33 +00:00
chuang%netscape.com
59fa35ee06 fix bug 6845
git-svn-id: svn://10.0.0.236/trunk@42330 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:12:45 +00:00
rjc%netscape.com
bcecbafcf1 Don't leak proxy.
git-svn-id: svn://10.0.0.236/trunk@42329 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:10:08 +00:00
slamm%netscape.com
776734a293 Drop panel name from dialog title.
git-svn-id: svn://10.0.0.236/trunk@42328 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:09:54 +00:00
rjc%netscape.com
b37e70d1b1 Fix string parsing issues/
git-svn-id: svn://10.0.0.236/trunk@42327 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:05:59 +00:00
nhotta%netscape.com
d672501375 Changed to use progid for nsIScriptableDateFormat.
git-svn-id: svn://10.0.0.236/trunk@42326 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:05:32 +00:00
rjc%netscape.com
f283280717 Fix icon alignment.
git-svn-id: svn://10.0.0.236/trunk@42325 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:05:26 +00:00
cmanske%netscape.com
53fddb5ef6 Further table editing work
git-svn-id: svn://10.0.0.236/trunk@42324 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:04:58 +00:00
despotdaemon%netscape.com
f3c688558c Pseudo-automatic update of changes made by idk@eng.sun.com.
git-svn-id: svn://10.0.0.236/trunk@42323 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:02:23 +00:00
endico%mozilla.org
7a219fcf5d Add a current milestone variable and a most doomed report that's like the ones chofmann posts listing engineers with Mx bugs by number of bugs.
git-svn-id: svn://10.0.0.236/trunk@42322 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:02:20 +00:00
chuang%netscape.com
1e00124d85 remove html file
git-svn-id: svn://10.0.0.236/trunk@42321 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:00:37 +00:00
chuang%netscape.com
6ed5a26b37 remove pref html files
git-svn-id: svn://10.0.0.236/trunk@42320 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 19:59:12 +00:00
chuang%netscape.com
b8d6e8c410 remove pref html file
git-svn-id: svn://10.0.0.236/trunk@42319 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 19:56:43 +00:00
slamm%netscape.com
640c513e5c Add the panel preview dialog.
git-svn-id: svn://10.0.0.236/trunk@42318 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 19:52:51 +00:00
slamm%netscape.com
d064b6865c Remove the treehead (bug #10950).
git-svn-id: svn://10.0.0.236/trunk@42317 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 19:50:44 +00:00
slamm%netscape.com
4bc431b7cf Use the chrome URL instead of resource URL for properties.
git-svn-id: svn://10.0.0.236/trunk@42316 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 19:49:39 +00:00
slamm%netscape.com
09f8d0cb72 Fix the scrollbar. Remove the treehead (bug #10950).
git-svn-id: svn://10.0.0.236/trunk@42315 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 19:48:47 +00:00
akkana%netscape.com
64d86043c2 10684: Fix plaintext paste as quotation crash
git-svn-id: svn://10.0.0.236/trunk@42314 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 19:48:11 +00:00
sspitzer%netscape.com
78553a9388 work for printing mail.
git-svn-id: svn://10.0.0.236/trunk@42313 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 19:47:58 +00:00
slamm%netscape.com
021841a0d7 Tweak toolbar popups. Make the scrollbar work for them.
git-svn-id: svn://10.0.0.236/trunk@42312 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 19:47:21 +00:00
sspitzer%netscape.com
50ef97bffc fix warnings
git-svn-id: svn://10.0.0.236/trunk@42311 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 19:47:10 +00:00
despotdaemon%netscape.com
cb0a8545aa Pseudo-automatic update of changes made by paw@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@42310 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 19:42:04 +00:00
despotdaemon%netscape.com
3e9d522579 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@42309 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 19:36:10 +00:00
edwin%woudt.nl
22d34a44c4 Fixed bug #11332
Thanks harning@cbs.dk


git-svn-id: svn://10.0.0.236/trunk@42308 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 18:31:20 +00:00
despotdaemon%netscape.com
646e723257 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@42307 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 17:32:47 +00:00
norris%netscape.com
59fb3fb2dc Fix problem found by Andrew Wason <aw@softcom.com>:
Subject:
        reflection and illegal package access
   Date:
        Wed, 04 Aug 1999 21:56:20 -0400
   From:
        Andrew Wason <aw@softcom.com>
     To:
        norris@netscape.com (Norris Boyd)
    CC:
        Howard Lin <howard@softcom.com>




If you run Rhino under JDK1.2 with a security manager:

java -Djava.security.manager=java.lang.SecurityManager
org.mozilla.javascript.tools.shell.Main

Then reflection fails for objects that are in a restricted access package
(e.g. sun.*).  Rhino is reflecting based on the dynamic type of the object
instead of the declared static return type.

In this example, createImage is declared to return java.awt.Image, but it
returns sun.awt.image.OffScreenImage.  Attempting to reflect this class
results in a java.security.AccessControlException for
java.lang.RuntimePermission accessClassInPackage.sun.awt.image.

Here is the script.  You will need to type it in because you won't be able
to load it from a file due to the security manager.

var f = new java.awt.Frame();
f.setVisible(true);
var i = f.createImage(10,10);


git-svn-id: svn://10.0.0.236/trunk@42306 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 16:49:20 +00:00
terry%mozilla.org
7e0f972ad7 Oops; removed debugging output.
git-svn-id: svn://10.0.0.236/trunk@42305 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 16:43:00 +00:00
terry%mozilla.org
b843845cbe Stop updating warp's bonsai; it will no longer be used to track the
mozilla.org tree.


git-svn-id: svn://10.0.0.236/trunk@42304 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 16:19:25 +00:00
valeski%netscape.com
bae95069be fixing mac build bustage. brade verified the changes in her mac build. I switched from com ptrs to regular pointers as the com pointer abuse wasn't appreciated on the mac
git-svn-id: svn://10.0.0.236/trunk@42303 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 16:17:22 +00:00
rods%netscape.com
8fa65ec8b0 Fixes bug# 11300, when mouse capture is on the wrong window is being set into
the MouseTrialer timer object. This gets the window under the cursor during
a mouse capture.


git-svn-id: svn://10.0.0.236/trunk@42302 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 14:56:21 +00:00
sspitzer%netscape.com
6e3a1f33fd remove taunting of QA
git-svn-id: svn://10.0.0.236/trunk@42301 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 14:55:13 +00:00
brade%netscape.com
e576fab660 fixbuild/ typos for sford
git-svn-id: svn://10.0.0.236/trunk@42300 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 14:21:51 +00:00
ramiro%netscape.com
3037799609 Dont link -lxp, its not needed.
git-svn-id: svn://10.0.0.236/trunk@42299 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 13:46:52 +00:00
ramiro%netscape.com
bc6a920237 Make these components link in with -lxp, so that the "app" doesnt have too.
git-svn-id: svn://10.0.0.236/trunk@42298 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 13:38:57 +00:00
rhp%netscape.com
85cc2b11d8 added files: mozilla/netwerk/protocol/http/src/nsHTTPHeaderArray.cpp, mozilla/netwerk/protocol/http/src/nsHTTPAtoms.cpp
git-svn-id: svn://10.0.0.236/trunk@42297 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 13:23:45 +00:00
rhp%netscape.com
73908aeabe added files: mozilla/netwerk/protocol/http/public/nsIHTTPHeader.idl
git-svn-id: svn://10.0.0.236/trunk@42296 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 13:16:39 +00:00
ramiro%netscape.com
faef9fa20f Remove duplicate -lxpcom link flag.
git-svn-id: svn://10.0.0.236/trunk@42295 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 13:09:41 +00:00
ramiro%netscape.com
cba6a650f4 Dont link in libcaps. Its not needed.
git-svn-id: svn://10.0.0.236/trunk@42294 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 13:00:14 +00:00
dp%netscape.com
7a6bfd9959 Fixed typo.
git-svn-id: svn://10.0.0.236/trunk@42293 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 12:58:04 +00:00
ramiro%netscape.com
56461d514a Dont link in libcaps. Its not needed.
git-svn-id: svn://10.0.0.236/trunk@42292 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 12:52:23 +00:00
ramiro%netscape.com
0471327a87 Dont link with nsappshell, its not needed.
git-svn-id: svn://10.0.0.236/trunk@42291 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 12:41:27 +00:00
rpotts%netscape.com
38b1d8b296 Fix for build bustage on Linux...
git-svn-id: svn://10.0.0.236/trunk@42290 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 09:07:29 +00:00
rpotts%netscape.com
74a53dda7d Fixed up the calls to the nsIHTTPChannel to use the new header APIs...
git-svn-id: svn://10.0.0.236/trunk@42289 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 08:30:52 +00:00
rpotts%netscape.com
b3ffea8ae0 Added code to dump all headers in the OnHeadersAvailable() notification.
git-svn-id: svn://10.0.0.236/trunk@42288 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 08:29:36 +00:00
rpotts%netscape.com
5d94097aec bug #10739. Reworking header APIs... I've removed nsIHeader.h.
git-svn-id: svn://10.0.0.236/trunk@42287 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 08:28:49 +00:00
rpotts%netscape.com
650a7e2a5b bug #10739. Reworking header APIs... I've added 2 new CPP files - nsHTTPAtoms.cpp and nsHTTPHeaderArray.cpp.
git-svn-id: svn://10.0.0.236/trunk@42286 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 08:27:49 +00:00
rpotts%netscape.com
38fe3aea7b bug #10739. Reworking header APIs... I've added a new IDL file - nsIHTTPHeader.idl and remove 3 obsolete header files...
git-svn-id: svn://10.0.0.236/trunk@42285 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 08:26:57 +00:00
waterson%netscape.com
a27e5fe991 Let's try it again. Replacing history implementation with MDB.
git-svn-id: svn://10.0.0.236/trunk@42284 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 06:43:17 +00:00
mcafee%netscape.com
8789172d7b Fix warnings
git-svn-id: svn://10.0.0.236/trunk@42283 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 06:04:28 +00:00
waterson%netscape.com
0d55d3b688 Back out -- not sure what's wrong.
git-svn-id: svn://10.0.0.236/trunk@42282 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 05:33:31 +00:00
briano%netscape.com
6d9601cbac Automated update
git-svn-id: svn://10.0.0.236/trunk@42281 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 05:15:16 +00:00
waterson%netscape.com
fb7314f248 Add global history.
git-svn-id: svn://10.0.0.236/trunk@42280 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 05:14:45 +00:00
nisheeth%netscape.com
0f3b7af132 makefile.win got checked in accidentally. I'm not ready to export stopwatch.h yet, so, I'm backing my changes out.
git-svn-id: svn://10.0.0.236/trunk@42279 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 05:13:54 +00:00
waterson%netscape.com
5f6a626c5f Remove global history; move to webshell.
git-svn-id: svn://10.0.0.236/trunk@42278 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 05:13:34 +00:00
mscott%netscape.com
c02ff00cdb Cast nsCSTring as a const char * before passing as an argument.
git-svn-id: svn://10.0.0.236/trunk@42277 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 05:13:15 +00:00
ramiro%netscape.com
938f777dac Add support for building more than one toolkit at once. Currently #ifdefed
off as part of the toolkit link time exorcism.


git-svn-id: svn://10.0.0.236/trunk@42276 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 05:12:56 +00:00
waterson%netscape.com
1fb651b1fe Fix history window.
git-svn-id: svn://10.0.0.236/trunk@42275 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 05:11:42 +00:00
waterson%netscape.com
6f4710d2c2 Replace history implementation with MDB.
git-svn-id: svn://10.0.0.236/trunk@42274 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 05:10:38 +00:00
nisheeth%netscape.com
cbe3b45187 Checking in initial version of stopwatch class. Not being built yet.
git-svn-id: svn://10.0.0.236/trunk@42273 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 05:07:58 +00:00
mscott%netscape.com
f04be1542c cast nsCString as const char *.
git-svn-id: svn://10.0.0.236/trunk@42272 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 04:51:47 +00:00
mscott%netscape.com
8f8add67ac cast nsCString as a const char *.
git-svn-id: svn://10.0.0.236/trunk@42271 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 04:50:02 +00:00
valeski%netscape.com
3adddf942c moved to the higher level LoadURL() call to get more observer handling
git-svn-id: svn://10.0.0.236/trunk@42270 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 04:49:38 +00:00
mscott%netscape.com
ce69624078 fix typos.
git-svn-id: svn://10.0.0.236/trunk@42269 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 04:45:22 +00:00
mscott%netscape.com
5a2a56988e Cast nsCString as a const char before passing it as an argument.
git-svn-id: svn://10.0.0.236/trunk@42268 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 04:43:04 +00:00
waterson%netscape.com
edf5cdedd4 Bug 9799. Implement nsIRDFRemoteDataSource so that datastore can be flushed to disk.
git-svn-id: svn://10.0.0.236/trunk@42267 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 04:33:41 +00:00
chuang%netscape.com
aef6a2af9f remove Linux warning
git-svn-id: svn://10.0.0.236/trunk@42266 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 04:32:33 +00:00
gayatrib%netscape.com
1a9e79f7db changing location.replace to location.href, as a fix for bug 11261
git-svn-id: svn://10.0.0.236/trunk@42265 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 04:28:43 +00:00
mscott%netscape.com
d059ff23b1 fix warnings.
git-svn-id: svn://10.0.0.236/trunk@42264 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 04:28:37 +00:00
mscott%netscape.com
5af5a87dcd Changes for:
nsString(eOneByte) --> nsCString
nsString(eTwoByte) nsString
nsString2 --> nsString


git-svn-id: svn://10.0.0.236/trunk@42263 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 04:28:28 +00:00
chuang%netscape.com
0d1907bdae fix bug11198 Crash creating, deleting or editing a card in Abook, when Abook is opened the 2nd time in one messenger session
git-svn-id: svn://10.0.0.236/trunk@42262 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 04:27:57 +00:00
briano%netscape.com
3f51e0ae9f Automated update
git-svn-id: svn://10.0.0.236/trunk@42261 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 03:41:06 +00:00
briano%netscape.com
a4e662d758 Fix for the build bustage on Solaris 2.5.1 using gcc 2.7.2.1.
git-svn-id: svn://10.0.0.236/trunk@42260 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 03:39:52 +00:00
troy%netscape.com
15e12f10a8 Added NULL pointer check for frame manager in DeletingFrameSubtree()
git-svn-id: svn://10.0.0.236/trunk@42259 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 03:30:09 +00:00
troy%netscape.com
22079fd541 Added NULL pointer checks in GetPrimaryFrameFor() and GetPlaceholderFrameFor()
git-svn-id: svn://10.0.0.236/trunk@42258 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 03:23:39 +00:00
troy%netscape.com
db679bfa7c Changed frame construction code to use frame manager when modifying frame
model


git-svn-id: svn://10.0.0.236/trunk@42257 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 03:09:22 +00:00
briano%netscape.com
e41495fe85 Now it should compile properly on all platforms. Fixes the SunOS Motif build.
git-svn-id: svn://10.0.0.236/trunk@42256 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 03:04:06 +00:00
hyatt%netscape.com
35b0e4853e Fix for bug where window.title couldn't be set using onload handler.
git-svn-id: svn://10.0.0.236/trunk@42255 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 02:16:16 +00:00
briano%netscape.com
8c81d538de Automated update
git-svn-id: svn://10.0.0.236/trunk@42254 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 01:50:51 +00:00
danm%netscape.com
6e1ff1b967 fixed named frame targeting
git-svn-id: svn://10.0.0.236/trunk@42253 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 01:50:25 +00:00
briano%netscape.com
d8483d25d6 Fix for breakage on Linux/SPARC. Now AS will default to $(CC) (instead of
nothing at all) and can be overridden as needed on a per-platform basis.


git-svn-id: svn://10.0.0.236/trunk@42252 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 01:50:24 +00:00
rjc%netscape.com
50541f033c Magical munging for IE Favorites and NetPositive (BeOS).
git-svn-id: svn://10.0.0.236/trunk@42251 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 01:43:19 +00:00
hyatt%netscape.com
476de75693 Fix for bug 9923.
git-svn-id: svn://10.0.0.236/trunk@42250 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 01:43:14 +00:00
rjc%netscape.com
7775a71512 Magical munging for IE Favorites and NetPositive (BeOS).
git-svn-id: svn://10.0.0.236/trunk@42249 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 01:38:02 +00:00
valeski%netscape.com
31d96c9cf3 api change to nsIWebShell and nsIDocumentLoaderObserver. I've replaced all the old method delarations with the new versions. We now pass 'nsresult' types into the On*() methods instead of PRInt32. The PRInt32 arg type was causing data loss.
I also checked in a fix for bug 10848 (which prompted the api change), and 10549 (these changes were in nsWebShell.cpp).


git-svn-id: svn://10.0.0.236/trunk@42248 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 01:37:52 +00:00
briano%netscape.com
13240d8630 Fixed the broken initial comment block.
git-svn-id: svn://10.0.0.236/trunk@42247 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 01:36:18 +00:00
briano%netscape.com
27aa60352d Rearranged things a bit and reworked some of the ifdefs to (hopefully) make the whole thing a bit more efficient.
git-svn-id: svn://10.0.0.236/trunk@42246 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 01:32:48 +00:00
valeski%netscape.com
be8bf3fd76 api change to nsIWebShell and nsIDocumentLoaderObserver. I've replaced all the old method delarations with the new versions. We now pass 'nsresult' types into the On*() methods instead of PRInt32. The PRInt32 arg type was causing data loss.
I also checked in a fix for bug 10848 (which prompted the api change), and 10549 (these changes were in nsWebShell.cpp).


git-svn-id: svn://10.0.0.236/trunk@42245 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 01:28:30 +00:00
rjc%netscape.com
42a2c91e79 XUL/JS changes.
git-svn-id: svn://10.0.0.236/trunk@42244 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 01:14:53 +00:00
briano%netscape.com
6bde23c436 Deleted all the trailing ^M (carriage return) characters from every single line, to fix the non-gcc Unix builds (almost _all_ of the port builds broke because of this collection of Windoze droppings).
git-svn-id: svn://10.0.0.236/trunk@42239 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 00:15:42 +00:00
karnaze%netscape.com
dae2a67ef1 additonal test cases, changed file:// to file:/// in file lists
git-svn-id: svn://10.0.0.236/trunk@42238 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 00:08:33 +00:00
slamm%netscape.com
060ef8b885 Hack the dtd URIs for now. The directories will need to be restructured a bit to fix this correctly.
git-svn-id: svn://10.0.0.236/trunk@42237 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 00:08:09 +00:00
edburns%acm.org
0392278071 Kirk Baker <kbaker@eb.com> changed config/common.mk at line 84 to:
JAVAC_CLASSPATH =
$(JAVAC_ZIP)$(PATH_SEPARATOR)$(JAVA_DESTPATH)$(PATH_SEPARATOR)$(JAVA_SOURCEP
ATH)

I changed line 98 to:
JAVAH_FLAGS = -classpath $(JAVAC_ZIP)$(PATH_SEPARATOR)$(JAVA_DESTPATH)


git-svn-id: svn://10.0.0.236/trunk@42236 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 00:06:32 +00:00
mscott%netscape.com
8a17fbee94 yuck..we are referring to the implementation nsMsgCompFields here instead of through the interface.
that's not good..
use newSetAsciiHeader method


git-svn-id: svn://10.0.0.236/trunk@42235 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 23:59:25 +00:00
mscott%netscape.com
ff69ac1938 We were overloading SetHeader which was a method in an interface (nsIMsgCompFields) which we inherited from. This was hiding the
interface method and was generating a warning on some platforms.
Fix --> change second definition of SetHeader to be SetAsciiHeader nsMsgCompFields.cpp


git-svn-id: svn://10.0.0.236/trunk@42234 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 23:58:57 +00:00
robinf%netscape.com
07532775e0 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@42233 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 23:58:33 +00:00
robinf%netscape.com
47a33dc3e9 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@42232 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 23:47:39 +00:00
slamm%netscape.com
a4b8fb94c8 Recommit. Add entity files.
git-svn-id: svn://10.0.0.236/trunk@42231 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 23:45:32 +00:00
slamm%netscape.com
4eb69a2196 Not ready yet. back out.
git-svn-id: svn://10.0.0.236/trunk@42230 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 23:43:05 +00:00
slamm%netscape.com
d542adcada Move entities into dtd files.
git-svn-id: svn://10.0.0.236/trunk@42229 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 23:40:49 +00:00
rogerl%netscape.com
0c56f34afc Fixed tests for back-reference case
git-svn-id: svn://10.0.0.236/trunk@42228 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 23:40:13 +00:00
rogerl%netscape.com
a5ad66924f Fixed off by one error and expected output text.
git-svn-id: svn://10.0.0.236/trunk@42227 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 23:38:34 +00:00
danm%netscape.com
ce6ff3ce6a enable non-chrome window.open for platforms other than Windows
git-svn-id: svn://10.0.0.236/trunk@42226 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 23:26:21 +00:00
norris%netscape.com
b4bfaa137d Fix problem found by Andrew Wason <aw@softcom.com>:
Subject:
        null arguments
   Date:
        Wed, 04 Aug 1999 13:22:35 -0400
   From:
        Andrew Wason <aw@softcom.com>
     To:
        norris@netscape.com
    CC:
        Howard Lin <howard@softcom.com>




When I try to pass a null argument to an interface implemented in JS, I get:

js: Cannot convert null to an object.
js: uncaught JavaScript exception:
org.mozilla.javascript.EvaluatorException: Cannot convert null to an object.


var b = new Packages.javax.swing.border.Border() {
        getBorderInsets : function(c) {
                return new Insets(0,0,0,0);
        }
};
b.getBorderInsets(null);


Here is the stack trace where the exception is happening:

java.lang.reflect.InvocationTargetException:
org.mozilla.javascript.EvaluatorException: Cannot convert null to an object.
         at
org.mozilla.javascript.tools.ToolErrorReporter.runtimeError(ToolErrorReporte
r.java:106)
         at org.mozilla.javascript.Context.reportRuntimeError(Context.java:484)
         at org.mozilla.javascript.Context.reportRuntimeError(Context.java:500)
         at
org.mozilla.javascript.ScriptRuntime.toObject(ScriptRuntime.java:529)
         at org.mozilla.javascript.Context.toObject(Context.java:1107)
         at adapter0.getBorderInsets(<adapter>)
         at java.lang.reflect.Method.invoke(Native Method)
         at
org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java,
Compiled Code)
         at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1256)
         at org.mozilla.javascript.Interpreter.interpret(Interpreter.java,
Compiled Code)
         at
org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:49)
         at
org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:37)
         at org.mozilla.javascript.Context.evaluateReader(Context.java:691)
         at
org.mozilla.javascript.tools.shell.Main.processSource(Main.java, Compiled Code)
         at org.mozilla.javascript.tools.shell.Main.main(Main.java:146)


Context.toObject does not allow wrapping nulls.
JavaAdapter.generateOverride should generate bytecode to check if an
argument is null and if it is not call Context.toObject.

I'll take a look at fixing this after the other JavaAdapter patches get
checked in so we don't get out of sync.

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


git-svn-id: svn://10.0.0.236/trunk@42225 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 23:14:57 +00:00
slamm%netscape.com
e41f40421f Fix bug #9925: Down arrow behaves incorrectly.
git-svn-id: svn://10.0.0.236/trunk@42224 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 23:10:56 +00:00
robinf%netscape.com
430f5af73b *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@42223 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 23:05:21 +00:00
radha%netscape.com
48ad7d0565 Don't load a page thro' necko when going to a anchor with in the same page or going
back from an anchor to the top of the page. Modify
EqualBaseURL() so that it will do the right thing.


git-svn-id: svn://10.0.0.236/trunk@42222 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 22:46:49 +00:00
radha%netscape.com
7ce7726d0d Pass url load type LOAD_HISTORY when loading a url due to a back or forward button click
git-svn-id: svn://10.0.0.236/trunk@42221 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 22:44:59 +00:00
radha%netscape.com
892c5d155a Add a new loading type LOAD_HISTORY
git-svn-id: svn://10.0.0.236/trunk@42220 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 22:44:13 +00:00
rogerl%netscape.com
fe3d1f0753 The lastIndex property is defined to be an integer which we're allowed to
keep as 32 bits, so the tests for 33 bits were too demanding.


git-svn-id: svn://10.0.0.236/trunk@42219 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 22:27:31 +00:00
rogerl%netscape.com
831a14fdaf Missing '\' before \n. Trailing '|' in expected output was not correct.
git-svn-id: svn://10.0.0.236/trunk@42218 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 22:26:07 +00:00
rogerl%netscape.com
4c5f8c91da Was using 'g' flag instead of 'm' and wasn't really testing the multiline
functionality (assuming I interpreted the intent correctly).


git-svn-id: svn://10.0.0.236/trunk@42217 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 22:24:57 +00:00
hoa.nguyen%intel.com
cec613201f Build bustage.
git-svn-id: svn://10.0.0.236/trunk@42216 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 22:10:54 +00:00
valeski%netscape.com
aa34ec2e6c we're now returning load url error codes out
git-svn-id: svn://10.0.0.236/trunk@42215 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 21:45:06 +00:00
nhotta%netscape.com
0c146898d9 Added progid/cid to idl and interface change.
git-svn-id: svn://10.0.0.236/trunk@42214 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 21:36:36 +00:00
hyatt%netscape.com
de305c5946 Fixing three problems that prevented XP menus from working with RDF templates.
The Bookmarks menu and mail menus should work now.


git-svn-id: svn://10.0.0.236/trunk@42213 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 21:36:30 +00:00
hoa.nguyen%intel.com
4a873df2b1 Added nsJSHTMLEmbedElement.cpp.
git-svn-id: svn://10.0.0.236/trunk@42212 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 21:33:30 +00:00
hoa.nguyen%intel.com
15e856d08b DOM Element for JavaScript access of embed tags.
git-svn-id: svn://10.0.0.236/trunk@42211 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 21:31:34 +00:00
mscott%netscape.com
34ddde10a7 bulletproof some NS_RELEASE's with NS_IF_RELEASE.
git-svn-id: svn://10.0.0.236/trunk@42210 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 21:23:26 +00:00
hangas%netscape.com
2469e74ba7 Cleanup toolbar buttons. Hook?=slamm,spitzer
git-svn-id: svn://10.0.0.236/trunk@42209 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 21:21:52 +00:00
hangas%netscape.com
e2efbd1aed Moving tree styles around such that mailnews uses xul.css for tree style and xul.css has correct colors on tree headers. Hook?=slamm, sspitzer
git-svn-id: svn://10.0.0.236/trunk@42208 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 21:21:18 +00:00
valeski%netscape.com
2f4c5deb16 nsNetModRegEntry.cpp - fixed mem leak. nsStdURL.cpp - fixed port parsing bug
git-svn-id: svn://10.0.0.236/trunk@42207 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 21:20:48 +00:00
robinf%netscape.com
f74ef6c55a *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@42206 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 21:20:47 +00:00
valeski%netscape.com
f6bcc72c17 we now handle the URL attribute in a http-equiv refresh tag
git-svn-id: svn://10.0.0.236/trunk@42205 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 21:19:22 +00:00
valeski%netscape.com
efafa0f582 added new url munging code. we now take a swing at the urlbar string w/ the uri parsing code first, then fallback to munging if we have to
git-svn-id: svn://10.0.0.236/trunk@42204 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 21:18:24 +00:00
slamm%netscape.com
275ea36398 Remove OpenBookmarkURL() call from Bookmarks menu (it's already on the individual items).
git-svn-id: svn://10.0.0.236/trunk@42203 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 21:10:47 +00:00
despotdaemon%netscape.com
e8fc4e3776 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@42202 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 21:06:01 +00:00
robinf%netscape.com
c81766cf85 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@42201 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 21:04:23 +00:00
sspitzer%netscape.com
ccd1a527fa fix mac build bustage for mscott.
git-svn-id: svn://10.0.0.236/trunk@42200 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:57:40 +00:00
rogerl%netscape.com
cff5cc082e New version for linux/sparc. Changed source file names for Sun Workshop and
GCC builds.


git-svn-id: svn://10.0.0.236/trunk@42199 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:50:01 +00:00
rogerl%netscape.com
4189aeedca Added Linux/sparc rules. Added rules to distinguish Sun Workshop and GCC
builds.


git-svn-id: svn://10.0.0.236/trunk@42198 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:48:18 +00:00
rogerl%netscape.com
90cd3cd063 Added Linux/sparc component
git-svn-id: svn://10.0.0.236/trunk@42197 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:46:58 +00:00
buster%netscape.com
132773aaab added GetCaretEnabled
cleaned up caret APIs according to coding convention


git-svn-id: svn://10.0.0.236/trunk@42196 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:46:16 +00:00
robinf%netscape.com
894581293f *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@42195 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:45:14 +00:00
slamm%netscape.com
0ac883ce42 Remove default pref for open/close so that individual sidebars can set it the way they want.
git-svn-id: svn://10.0.0.236/trunk@42194 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:43:03 +00:00
sspitzer%netscape.com
143b928d01 fix warning
git-svn-id: svn://10.0.0.236/trunk@42193 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:40:57 +00:00
sspitzer%netscape.com
13b2b54ea4 fix warnings. add newline to the end of file for crappy unix compilers
git-svn-id: svn://10.0.0.236/trunk@42192 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:40:23 +00:00
slamm%netscape.com
f66f8b7f61 Bring customize dialog closer to spec. Workaround tree datasource bug #11258 (use resource URL for now).
git-svn-id: svn://10.0.0.236/trunk@42191 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:40:21 +00:00
slamm%netscape.com
7eb76bcbb3 Remove entry for unused and non-existant gif, online.gif.
git-svn-id: svn://10.0.0.236/trunk@42190 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:37:51 +00:00
slamm%netscape.com
85e062c2aa Use window.open instead of toolkit core to open bookmarks window. (workaround fix for bug #9972)
git-svn-id: svn://10.0.0.236/trunk@42189 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:36:42 +00:00
mscott%netscape.com
e415f10fdf Fix linux warning.
git-svn-id: svn://10.0.0.236/trunk@42188 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:35:58 +00:00
mscott%netscape.com
122791d665 fix linux warning.
git-svn-id: svn://10.0.0.236/trunk@42187 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:32:33 +00:00
mscott%netscape.com
612f61497b fix linux warning
git-svn-id: svn://10.0.0.236/trunk@42186 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:32:11 +00:00
matt%netscape.com
5f493679d1 taking out pref dump
git-svn-id: svn://10.0.0.236/trunk@42185 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:30:43 +00:00
mscott%netscape.com
610bd4ec18 Add nsIMsgMailNewsUrl.idl and remove nsIMsgMailNewsUrl.h
git-svn-id: svn://10.0.0.236/trunk@42184 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:29:45 +00:00
mscott%netscape.com
fd597eeb44 SetErrorMessage takes a const char *, stub out Set/GetErrorMessage
add accessors for nsIMsgStatusFeedback.


git-svn-id: svn://10.0.0.236/trunk@42183 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:29:22 +00:00
mscott%netscape.com
88e706ea91 remove nsIMsgMailNewsUrl.h and add nsIMsgMailNewsUrl.idl
git-svn-id: svn://10.0.0.236/trunk@42182 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:28:47 +00:00
bienvenu%netscape.com
25dc45c215 add imap msgs, not part of build yet
git-svn-id: svn://10.0.0.236/trunk@42181 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:21:13 +00:00
rhp%netscape.com
59a4a414a6 Changes for quoting cleanup in mail compose
git-svn-id: svn://10.0.0.236/trunk@42180 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:19:45 +00:00
mscott%netscape.com
93a33daf70 Not part of the build yet!! I converted nsIMsgMailNewsUrl.h into an idl file.
git-svn-id: svn://10.0.0.236/trunk@42179 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:17:40 +00:00
pinkerton%netscape.com
888c3db667 removing the TOOLBAR_DD #ifdef's.
git-svn-id: svn://10.0.0.236/trunk@42178 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:16:31 +00:00
pinkerton%netscape.com
d04524be36 using the region pool stuff so we're not constantly creating/destroying regions in the smooth scrolling code. Also use a stackbased helper to simplify error handling.
git-svn-id: svn://10.0.0.236/trunk@42177 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:15:44 +00:00
pinkerton%netscape.com
a0909cd46f exporting the region pool stuff so it can be accessed from Widget.
git-svn-id: svn://10.0.0.236/trunk@42176 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:14:54 +00:00
sspitzer%netscape.com
2d54ef6055 make the background on this image transparent, so it looks better when selected. thanks for Andrew Niese <icos@arez.com> for fixing the image.
git-svn-id: svn://10.0.0.236/trunk@42175 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:14:10 +00:00
sspitzer%netscape.com
4560e9a3dc get mark all read to work for news. fixes #11104. use the implementation in the base class.
git-svn-id: svn://10.0.0.236/trunk@42174 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:14:07 +00:00
brade%netscape.com
13c08dd199 File Removed.
git-svn-id: svn://10.0.0.236/trunk@42173 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:07:18 +00:00
brade%netscape.com
5565d062bf fix access paths to be more correct (dist first, etc.)
git-svn-id: svn://10.0.0.236/trunk@42172 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:06:32 +00:00
bienvenu%netscape.com
14a8ababec better fix for solaris build bustage so that anyone can include this header file
git-svn-id: svn://10.0.0.236/trunk@42171 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 20:01:01 +00:00
bienvenu%netscape.com
8a2dfaee59 fix for solaris problem
git-svn-id: svn://10.0.0.236/trunk@42170 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 19:53:56 +00:00
bienvenu%netscape.com
4ddf9e7f6b change other assignment of nsIDOMWindow in case that's the problem
git-svn-id: svn://10.0.0.236/trunk@42169 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 19:47:42 +00:00
tague%netscape.com
45b256509a Added rickg's tool for finding dereference errors
git-svn-id: svn://10.0.0.236/trunk@42168 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 19:44:15 +00:00
bienvenu%netscape.com
169f55e253 try to fix sun build bustage
git-svn-id: svn://10.0.0.236/trunk@42167 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 19:37:52 +00:00
norris%netscape.com
e0486b8b6a Fix bug 11077 "ScriptableObject.defineFunctionProperties() uses invalid signature check."
The check was actually okay, but the error message didn't state the error correctly.


git-svn-id: svn://10.0.0.236/trunk@42166 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 19:37:51 +00:00
karnaze%netscape.com
2b5328130a new regression tests
git-svn-id: svn://10.0.0.236/trunk@42165 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 19:34:46 +00:00
bienvenu%netscape.com
44ef20940b fix case of nsIDOMWindow include
git-svn-id: svn://10.0.0.236/trunk@42164 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:57:50 +00:00
chuang%netscape.com
1bcccbdf38 remove unused html file
git-svn-id: svn://10.0.0.236/trunk@42163 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:52:55 +00:00
mscott%netscape.com
a14d0d80f0 Fix linux warning.
git-svn-id: svn://10.0.0.236/trunk@42162 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:50:00 +00:00
bienvenu%netscape.com
6dafb02b3f more work on hooking up progress and status
git-svn-id: svn://10.0.0.236/trunk@42161 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:45:36 +00:00
briano%netscape.com
358138b9f0 Automated update
git-svn-id: svn://10.0.0.236/trunk@42160 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:45:15 +00:00
tao%netscape.com
b0f181c138 Use appLocale instead of the null pointer.
git-svn-id: svn://10.0.0.236/trunk@42159 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:41:43 +00:00
bienvenu%netscape.com
341a6076cd add nsIMsgStatusFeedback.idl
git-svn-id: svn://10.0.0.236/trunk@42158 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:40:13 +00:00
jefft%netscape.com
55c83a394a fixed bug 11025 -- crashes after IMAP copy operation; has to use proxy event to fix the problem
git-svn-id: svn://10.0.0.236/trunk@42157 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:39:53 +00:00
sspitzer%netscape.com
025e729086 changes for status messages. checked in for the almighty david b.
git-svn-id: svn://10.0.0.236/trunk@42156 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:38:36 +00:00
german%netscape.com
fa839f0a7d Small changes to improve look and feel of open file open dialog and enable intrinsic sizing. Hook? = cyeh granted. Tree also just turned green.
git-svn-id: svn://10.0.0.236/trunk@42155 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:38:13 +00:00
kin%netscape.com
6e0845f8a9 Modified EditorStart/Stop/RunLog() methods to call contentWindow.focus().
git-svn-id: svn://10.0.0.236/trunk@42154 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:38:11 +00:00
Jerry.Kirk%Nexwarecorp.com
e37b0cae2c Move the initialization of Pthread variables up so that each platform
can override them.


git-svn-id: svn://10.0.0.236/trunk@42153 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:37:03 +00:00
kin%netscape.com
c89294e709 Fixes for bug #10231 (crash making list after select all)
and bug #10815 (Crash deleting selected text and table)

mozilla/editor/base/nsHTMLEditRules.cpp
  - Added check, in WillDeleteSelection(),  to see if
    endpoints of the range are in the body before calling
    GetBlockNodeParent(). (Bug #10231)
  - Modified GetPromotedPoint() to check for NULL in the
    case where aWhere == kEnd and GetChildAt() returns NULL.
    (Bug #10815)

mozilla/layout/base/src/nsGenericElement.cpp
  - Modified RangeAdd() so that it doesn't add
    a range if it's already in the list.  (Bug #10231)

mozilla/layout/base/src/nsRangeList.cpp
  - Modified GetPrimaryFrameForFocusNode() to
    initialize aReturnFrame and to return a failure
    if ChildAt() returns NULL. (Bug #10231)


git-svn-id: svn://10.0.0.236/trunk@42152 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:36:19 +00:00
chuang%netscape.com
2e28d3e453 replace html files to xul files
git-svn-id: svn://10.0.0.236/trunk@42151 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:29:28 +00:00
chuang%netscape.com
8d12d8dd67 replace pref html files to xul files
git-svn-id: svn://10.0.0.236/trunk@42150 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:27:51 +00:00
vidur%netscape.com
790cc367cf Get rid of circular reference between sink and parser. Fix for bug 8975.
git-svn-id: svn://10.0.0.236/trunk@42149 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:25:23 +00:00
norris%netscape.com
e1c36e7f50 * Take advantage of the new semantics of Context.enter & exit to save codesize.
* Accept patch from Andrew Wason <aw@softcom.com>:

Subject:
        Re: partial interface problem
   Date:
        Wed, 04 Aug 1999 13:04:37 -0400
   From:
        Andrew Wason <aw@softcom.com>
     To:
        norris@netscape.com
    CC:
        Howard Lin <howard@softcom.com>




>I'm having a problem implementing a Java interface in JS where I don't
>implement all the methods, and one of the methods I don't define returns
>non-void.

I have a patch for this.  I generate bytecode in
JavaAdapter.generateReturnResult to check the return type on the stack from
JavaAdapter.callMethod.  If it is Undefined, return null.

I'm not positive this is the right way to fix this - maybe it should be
fixed closer to the source (e.g. prevent callMethod from returning
Undefined to begin with)

Andrew

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


git-svn-id: svn://10.0.0.236/trunk@42148 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 17:43:18 +00:00
endico%mozilla.org
8720babbbe add image/jpeg, image/png and image/gif mime types
git-svn-id: svn://10.0.0.236/trunk@42147 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 17:36:43 +00:00
norris%netscape.com
f33a289889 Accept patch (with modifications) from Andrew Wason <aw@softcom.com>:
Subject:
        default JavaAdapter patch
   Date:
        Tue, 20 Jul 1999 15:35:01 -0400
   From:
        Andrew Wason <aw@softcom.com>
     To:
        norris@netscape.com
    CC:
        mccabe@netscape.com, rogerl@netscape.com




Attached is a patch to the patch I sent a while ago for the JavaAdapter stuff.

If a SecurityManager is installed, attempting to access the
"org.mozilla.javascript.JavaAdapter" system property can throw a
SecurityException.  This should not prevent the default JavaAdapter
implementation from being used.

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


git-svn-id: svn://10.0.0.236/trunk@42146 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 16:56:18 +00:00
despotdaemon%netscape.com
878d0b5191 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@42145 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 16:28:55 +00:00
gagan%netscape.com
d0c9e9c18a Added an entry for HTTP's MANIFEST file.
git-svn-id: svn://10.0.0.236/trunk@42144 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 16:16:03 +00:00
gagan%netscape.com
b87841a01a Added a new MANIFEST file for nsHTTP stuff.
git-svn-id: svn://10.0.0.236/trunk@42143 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 16:12:30 +00:00
525 changed files with 65565 additions and 86309 deletions

View File

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

View File

@@ -1,130 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "ChangeAttributeTxn.h"
#include "nsIDOMElement.h"
#include "nsEditor.h"
ChangeAttributeTxn::ChangeAttributeTxn()
: EditTxn()
{
}
ChangeAttributeTxn::~ChangeAttributeTxn()
{
}
NS_IMETHODIMP ChangeAttributeTxn::Init(nsIEditor *aEditor,
nsIDOMElement *aElement,
const nsString& aAttribute,
const nsString& aValue,
PRBool aRemoveAttribute)
{
if (nsnull!=aEditor && nsnull!=aElement)
{
mEditor = aEditor;
mElement = do_QueryInterface(aElement);
mAttribute = aAttribute;
mValue = aValue;
mRemoveAttribute = aRemoveAttribute;
mAttributeWasSet=PR_FALSE;
mUndoValue="";
return NS_OK;
}
else
return NS_ERROR_NULL_POINTER;
}
NS_IMETHODIMP ChangeAttributeTxn::Do(void)
{
// need to get the current value of the attribute and save it, and set mAttributeWasSet
nsresult result = mEditor->GetAttributeValue(mElement, mAttribute, mUndoValue, mAttributeWasSet);
// XXX: hack until attribute-was-set code is implemented
if (PR_FALSE==mUndoValue.Equals(""))
mAttributeWasSet=PR_TRUE;
// XXX: end hack
// now set the attribute to the new value
if (PR_FALSE==mRemoveAttribute)
result = mElement->SetAttribute(mAttribute, mValue);
else
result = mElement->RemoveAttribute(mAttribute);
return result;
}
NS_IMETHODIMP ChangeAttributeTxn::Undo(void)
{
nsresult result=NS_OK;
if (PR_TRUE==mAttributeWasSet)
result = mElement->SetAttribute(mAttribute, mUndoValue);
else
result = mElement->RemoveAttribute(mAttribute);
return result;
}
NS_IMETHODIMP ChangeAttributeTxn::Redo(void)
{
nsresult result;
if (PR_FALSE==mRemoveAttribute)
result = mElement->SetAttribute(mAttribute, mValue);
else
result = mElement->RemoveAttribute(mAttribute);
return result;
}
NS_IMETHODIMP ChangeAttributeTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
if (nsnull!=aDidMerge)
*aDidMerge=PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP ChangeAttributeTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_OK;
}
NS_IMETHODIMP ChangeAttributeTxn::GetUndoString(nsString *aString)
{
if (nsnull!=aString)
{
if (PR_FALSE==mRemoveAttribute)
*aString="Change Attribute: ";
else
*aString="Remove Attribute: ";
*aString += mAttribute;
}
return NS_OK;
}
NS_IMETHODIMP ChangeAttributeTxn::GetRedoString(nsString *aString)
{
if (nsnull!=aString)
{
if (PR_FALSE==mRemoveAttribute)
*aString="Change Attribute: ";
else
*aString="Add Attribute: ";
*aString += mAttribute;
}
return NS_OK;
}

View File

@@ -1,102 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef ChangeAttributeTxn_h__
#define ChangeAttributeTxn_h__
#include "EditTxn.h"
#include "nsCOMPtr.h"
#include "nsIDOMElement.h"
#include "nsIEditor.h"
#define CHANGE_ATTRIBUTE_TXN_CID \
{/* 97818860-ac48-11d2-86d8-000064657374 */ \
0x97818860, 0xac48, 0x11d2, \
{0x86, 0xd8, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74} }
/**
* A transaction that changes an attribute of a content node.
* This transaction covers add, remove, and change attribute.
*/
class ChangeAttributeTxn : public EditTxn
{
public:
static const nsIID& GetCID() { static nsIID iid = CHANGE_ATTRIBUTE_TXN_CID; return iid; }
virtual ~ChangeAttributeTxn();
/** Initialize the transaction.
* @param aEditor the object providing core editing operations
* @param aNode the node whose attribute will be changed
* @param aAttribute the name of the attribute to change
* @param aValue the new value for aAttribute, if aRemoveAttribute is false
* @param aRemoveAttribute if PR_TRUE, remove aAttribute from aNode
*/
NS_IMETHOD Init(nsIEditor *aEditor,
nsIDOMElement *aNode,
const nsString& aAttribute,
const nsString& aValue,
PRBool aRemoveAttribute);
private:
ChangeAttributeTxn();
public:
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
NS_IMETHOD Redo(void);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
protected:
/** the editor that created this transaction */
nsIEditor* mEditor;
/** the element to operate upon */
nsCOMPtr<nsIDOMElement> mElement;
/** the attribute to change */
nsString mAttribute;
/** the value to set the attribute to (ignored if mRemoveAttribute==PR_TRUE) */
nsString mValue;
/** the value to set the attribute to for undo */
nsString mUndoValue;
/** PR_TRUE if the mAttribute was set on mElement at the time of execution */
PRBool mAttributeWasSet;
/** PR_TRUE if the operation is to remove mAttribute from mElement */
PRBool mRemoveAttribute;
friend class TransactionFactory;
};
#endif

View File

@@ -1,236 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "CreateElementTxn.h"
#include "nsEditor.h"
#include "nsIDOMDocument.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMSelection.h"
#include "nsIDOMText.h"
#include "nsIDOMElement.h"
#ifdef NS_DEBUG
static PRBool gNoisy = PR_FALSE;
#else
static const PRBool gNoisy = PR_FALSE;
#endif
CreateElementTxn::CreateElementTxn()
: EditTxn()
{
}
NS_IMETHODIMP CreateElementTxn::Init(nsIEditor *aEditor,
const nsString &aTag,
nsIDOMNode *aParent,
PRUint32 aOffsetInParent)
{
NS_ASSERTION(aEditor&&aParent, "null args");
if (aEditor && aParent)
{
mEditor = aEditor;
mTag = aTag;
mParent = do_QueryInterface(aParent);
mOffsetInParent = aOffsetInParent;
#ifdef NS_DEBUG
{
nsCOMPtr<nsIDOMNodeList> testChildNodes;
nsresult testResult = mParent->GetChildNodes(getter_AddRefs(testChildNodes));
NS_ASSERTION(testChildNodes, "bad parent type, can't have children.");
NS_ASSERTION(NS_SUCCEEDED(testResult), "bad result.");
}
#endif
return NS_OK;
}
else
return NS_ERROR_NULL_POINTER;
}
CreateElementTxn::~CreateElementTxn()
{
}
NS_IMETHODIMP CreateElementTxn::Do(void)
{
if (gNoisy) { printf("Do Create Element parent = %p, offset = %d\n",
mParent.get(), mOffsetInParent); }
NS_ASSERTION(mEditor, "bad state -- null editor");
nsresult result = NS_ERROR_NULL_POINTER;
if (mEditor)
{
// create a new node
nsCOMPtr<nsIDOMDocument>doc;
result = mEditor->GetDocument(getter_AddRefs(doc));
if ((NS_SUCCEEDED(result)) && (doc))
{
if (nsEditor::GetTextNodeTag() == mTag)
{
const nsString stringData;
nsCOMPtr<nsIDOMText>newTextNode;
result = doc->CreateTextNode(stringData, getter_AddRefs(newTextNode));
if (NS_SUCCEEDED(result) && newTextNode) {
mNewNode = do_QueryInterface(newTextNode);
}
}
else
{
nsCOMPtr<nsIDOMElement>newElement;
result = doc->CreateElement(mTag, getter_AddRefs(newElement));
if (NS_SUCCEEDED(result) && newElement) {
mNewNode = do_QueryInterface(newElement);
}
}
NS_ASSERTION(((NS_SUCCEEDED(result)) && (mNewNode)), "could not create element.");
if ((NS_SUCCEEDED(result)) && (mNewNode))
{
if (gNoisy) { printf(" newNode = %p\n", mNewNode.get()); }
// insert the new node
nsCOMPtr<nsIDOMNode> resultNode;
if (CreateElementTxn::eAppend==(PRInt32)mOffsetInParent)
{
result = mParent->AppendChild(mNewNode, getter_AddRefs(resultNode));
}
else
{
nsCOMPtr<nsIDOMNodeList> childNodes;
result = mParent->GetChildNodes(getter_AddRefs(childNodes));
if ((NS_SUCCEEDED(result)) && (childNodes))
{
PRUint32 count;
childNodes->GetLength(&count);
if (mOffsetInParent>count)
mOffsetInParent = count;
result = childNodes->Item(mOffsetInParent, getter_AddRefs(mRefNode));
if (NS_SUCCEEDED(result)) // note, it's ok for mRefNode to be null. that means append
{
result = mParent->InsertBefore(mNewNode, mRefNode, getter_AddRefs(resultNode));
if (NS_SUCCEEDED(result))
{
nsCOMPtr<nsIDOMSelection> selection;
nsresult selectionResult = mEditor->GetSelection(getter_AddRefs(selection));
if (NS_SUCCEEDED(selectionResult) && selection) {
PRInt32 offset=0;
nsEditor::GetChildOffset(mNewNode, mParent, offset);
selectionResult = selection->Collapse(mParent, offset+1);
NS_ASSERTION((NS_SUCCEEDED(selectionResult)), "selection could not be collapsed after insert.");
}
}
}
}
}
}
}
}
return result;
}
NS_IMETHODIMP CreateElementTxn::Undo(void)
{
if (gNoisy) { printf("Undo Create Element, mParent = %p, node = %p\n",
mParent.get(), mNewNode.get()); }
nsCOMPtr<nsIDOMNode> resultNode;
nsresult result = mParent->RemoveChild(mNewNode, getter_AddRefs(resultNode));
if (NS_SUCCEEDED(result))
{
nsCOMPtr<nsIDOMSelection> selection;
nsresult selectionResult = mEditor->GetSelection(getter_AddRefs(selection));
if (NS_SUCCEEDED(selectionResult) && selection) {
PRInt32 offset=0;
if (mRefNode) {
nsEditor::GetChildOffset(mRefNode, mParent, offset);
}
selectionResult = selection->Collapse(mParent, offset);
NS_ASSERTION((NS_SUCCEEDED(selectionResult)), "selection could not be collapsed after undo of insert.");
}
}
return result;
}
NS_IMETHODIMP CreateElementTxn::Redo(void)
{
if (gNoisy) { printf("Redo Create Element\n"); }
// first, reset mNewNode so it has no attributes or content
nsCOMPtr<nsIDOMCharacterData>nodeAsText;
nodeAsText = do_QueryInterface(mNewNode);
if (nodeAsText)
{
nsAutoString nullString;
nodeAsText->SetData(nullString);
}
// now, reinsert mNewNode
nsCOMPtr<nsIDOMNode> resultNode;
nsresult result = mParent->InsertBefore(mNewNode, mRefNode, getter_AddRefs(resultNode));
if (NS_SUCCEEDED(result))
{
nsCOMPtr<nsIDOMSelection> selection;
result = mEditor->GetSelection(getter_AddRefs(selection));
if (NS_SUCCEEDED(result) && selection) {
PRInt32 offset=0;
nsEditor::GetChildOffset(mNewNode, mParent, offset);
nsresult selectionResult = selection->Collapse(mParent, offset);
NS_ASSERTION((NS_SUCCEEDED(selectionResult)), "selection could not be collapsed after undo of insert.");
}
}
return result;
}
NS_IMETHODIMP CreateElementTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
if (nsnull!=aDidMerge)
*aDidMerge=PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP CreateElementTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_OK;
}
NS_IMETHODIMP CreateElementTxn::GetUndoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Remove Element: ";
*aString += mTag;
}
return NS_OK;
}
NS_IMETHODIMP CreateElementTxn::GetRedoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Create Element: ";
*aString += mTag;
}
return NS_OK;
}
NS_IMETHODIMP CreateElementTxn::GetNewNode(nsIDOMNode **aNewNode)
{
if (!aNewNode)
return NS_ERROR_NULL_POINTER;
if (!mNewNode)
return NS_ERROR_NOT_INITIALIZED;
*aNewNode = mNewNode;
NS_ADDREF(*aNewNode);
return NS_OK;
}

View File

@@ -1,102 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef CreateElementTxn_h__
#define CreateElementTxn_h__
#include "EditTxn.h"
#include "nsIEditor.h"
#include "nsIDOMNode.h"
#include "nsCOMPtr.h"
#define CREATE_ELEMENT_TXN_CID \
{/* 7a6393c0-ac48-11d2-86d8-000064657374 */ \
0x7a6393c0, 0xac48, 0x11d2, \
{0x86, 0xd8, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74} }
/**
* A transaction that creates a new node in the content tree.
*/
class CreateElementTxn : public EditTxn
{
public:
static const nsIID& GetCID() { static nsIID iid = CREATE_ELEMENT_TXN_CID; return iid; }
enum { eAppend=-1 };
/** Initialize the transaction.
* @param aEditor the provider of basic editing functionality
* @param aTag the tag (P, HR, TABLE, etc.) for the new element
* @param aParent the node into which the new element will be inserted
* @param aOffsetInParent the location in aParent to insert the new element
* if eAppend, the new element is appended as the last child
*/
NS_IMETHOD Init(nsIEditor *aEditor,
const nsString& aTag,
nsIDOMNode *aParent,
PRUint32 aOffsetInParent);
private:
CreateElementTxn();
public:
virtual ~CreateElementTxn();
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
NS_IMETHOD Redo(void);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
NS_IMETHOD GetNewNode(nsIDOMNode **aNewNode);
protected:
/** the document into which the new node will be inserted */
nsIEditor* mEditor;
/** the tag (mapping to object type) for the new element */
nsString mTag;
/** the node into which the new node will be inserted */
nsCOMPtr<nsIDOMNode> mParent;
/** the index in mParent for the new node */
PRUint32 mOffsetInParent;
/** the new node to insert */
nsCOMPtr<nsIDOMNode> mNewNode;
/** the node we will insert mNewNode before. We compute this ourselves. */
nsCOMPtr<nsIDOMNode> mRefNode;
friend class TransactionFactory;
};
#endif

View File

@@ -1,174 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "DeleteElementTxn.h"
#ifdef NS_DEBUG
#include "nsIDOMElement.h"
#endif
#ifdef NS_DEBUG
static PRBool gNoisy = PR_FALSE;
#else
static const PRBool gNoisy = PR_FALSE;
#endif
DeleteElementTxn::DeleteElementTxn()
: EditTxn()
{
}
NS_IMETHODIMP DeleteElementTxn::Init(nsIDOMNode *aElement)
{
if (nsnull!=aElement) {
mElement = do_QueryInterface(aElement);
}
else
return NS_ERROR_NULL_POINTER;
return NS_OK;
}
DeleteElementTxn::~DeleteElementTxn()
{
}
NS_IMETHODIMP DeleteElementTxn::Do(void)
{
if (gNoisy) { printf("%p Do Delete Element element = %p\n", this, mElement.get()); }
if (!mElement)
return NS_ERROR_NULL_POINTER;
nsresult result = mElement->GetParentNode(getter_AddRefs(mParent));
if (NS_FAILED(result)) {
return result;
}
if (!mParent) {
return NS_OK; // this is a no-op, there's no parent to delete mElement from
}
#ifdef NS_DEBUG
// begin debug output
nsCOMPtr<nsIDOMElement> element;
element = do_QueryInterface(mElement);
nsAutoString elementTag="text node";
if (element)
element->GetTagName(elementTag);
nsCOMPtr<nsIDOMElement> parentElement;
parentElement = do_QueryInterface(mParent);
nsAutoString parentElementTag="text node";
if (parentElement)
parentElement->GetTagName(parentElementTag);
char *c, *p;
c = elementTag.ToNewCString();
p = parentElementTag.ToNewCString();
if (c&&p)
{
if (gNoisy)
printf(" DeleteElementTxn: deleting child %s from parent %s\n", c, p);
delete [] c;
delete [] p;
}
// end debug output
#endif
// remember which child mElement was (by remembering which child was next)
result = mElement->GetNextSibling(getter_AddRefs(mRefNode)); // can return null mRefNode
nsCOMPtr<nsIDOMNode> resultNode;
result = mParent->RemoveChild(mElement, getter_AddRefs(resultNode));
return result;
}
NS_IMETHODIMP DeleteElementTxn::Undo(void)
{
if (gNoisy) { printf("%p Undo Delete Element element = %p, parent = %p\n", this, mElement.get(), mParent.get()); }
if (!mParent) { return NS_OK; } // this is a legal state, the txn is a no-op
if (!mElement) { return NS_ERROR_NULL_POINTER; }
#ifdef NS_DEBUG
// begin debug output
nsCOMPtr<nsIDOMElement> element;
element = do_QueryInterface(mElement);
nsAutoString elementTag="text node";
if (element)
element->GetTagName(elementTag);
nsCOMPtr<nsIDOMElement> parentElement;
parentElement = do_QueryInterface(mParent);
nsAutoString parentElementTag="text node";
if (parentElement)
parentElement->GetTagName(parentElementTag);
char *c, *p;
c = elementTag.ToNewCString();
p = parentElementTag.ToNewCString();
if (c&&p)
{
if (gNoisy)
printf(" DeleteElementTxn: inserting child %s back into parent %s\n", c, p);
delete [] c;
delete [] p;
}
// end debug output
#endif
nsCOMPtr<nsIDOMNode> resultNode;
nsresult result = mParent->InsertBefore(mElement, mRefNode, getter_AddRefs(resultNode));
return result;
}
NS_IMETHODIMP DeleteElementTxn::Redo(void)
{
if (gNoisy) { printf("%p Redo Delete Element element = %p, parent = %p\n", this, mElement.get(), mParent.get()); }
if (!mParent) { return NS_OK; } // this is a legal state, the txn is a no-op
if (!mElement) { return NS_ERROR_NULL_POINTER; }
nsCOMPtr<nsIDOMNode> resultNode;
nsresult result = mParent->RemoveChild(mElement, getter_AddRefs(resultNode));
return result;
}
NS_IMETHODIMP DeleteElementTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
if (nsnull!=aDidMerge)
*aDidMerge=PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP DeleteElementTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_OK;
}
NS_IMETHODIMP DeleteElementTxn::GetUndoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Insert Element: ";
}
return NS_OK;
}
NS_IMETHODIMP DeleteElementTxn::GetRedoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Remove Element: ";
}
return NS_OK;
}

View File

@@ -1,84 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef DeleteElementTxn_h__
#define DeleteElementTxn_h__
#include "EditTxn.h"
#include "nsIDOMNode.h"
#include "nsCOMPtr.h"
#define DELETE_ELEMENT_TXN_CID \
{/* 6fd77770-ac49-11d2-86d8-000064657374 */ \
0x6fd77770, 0xac49, 0x11d2, \
{0x86, 0xd8, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74} }
/**
* A transaction that deletes a single element
*/
class DeleteElementTxn : public EditTxn
{
public:
static const nsIID& GetCID() { static nsIID iid = DELETE_ELEMENT_TXN_CID; return iid; }
/** initialize the transaction.
* @param aElement the node to delete
*/
NS_IMETHOD Init(nsIDOMNode *aElement);
private:
DeleteElementTxn();
public:
virtual ~DeleteElementTxn();
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
NS_IMETHOD Redo(void);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
protected:
/** the element to delete */
nsCOMPtr<nsIDOMNode> mElement;
/** the node into which the new node will be inserted */
nsCOMPtr<nsIDOMNode> mParent;
/** the index in mParent for the new node */
PRUint32 mOffsetInParent;
/** the node we will insert mNewNode before. We compute this ourselves. */
nsCOMPtr<nsIDOMNode> mRefNode;
friend class TransactionFactory;
};
#endif

View File

@@ -1,363 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "DeleteRangeTxn.h"
#include "nsIDOMRange.h"
#include "nsIDOMCharacterData.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMSelection.h"
#include "DeleteTextTxn.h"
#include "DeleteElementTxn.h"
#include "TransactionFactory.h"
#include "nsIContentIterator.h"
#include "nsIContent.h"
#include "nsLayoutCID.h"
#ifdef NS_DEBUG
#include "nsIDOMElement.h"
#endif
#ifdef NS_DEBUG
static PRBool gNoisy = PR_FALSE;
#else
static const PRBool gNoisy = PR_FALSE;
#endif
// note that aEditor is not refcounted
DeleteRangeTxn::DeleteRangeTxn()
: EditAggregateTxn()
{
}
NS_IMETHODIMP DeleteRangeTxn::Init(nsIEditor *aEditor, nsIDOMRange *aRange)
{
if (aEditor && aRange)
{
mEditor = aEditor;
mRange = do_QueryInterface(aRange);
nsresult result = aRange->GetStartParent(getter_AddRefs(mStartParent));
NS_ASSERTION((NS_SUCCEEDED(result)), "GetStartParent failed.");
result = aRange->GetEndParent(getter_AddRefs(mEndParent));
NS_ASSERTION((NS_SUCCEEDED(result)), "GetEndParent failed.");
result = aRange->GetStartOffset(&mStartOffset);
NS_ASSERTION((NS_SUCCEEDED(result)), "GetStartOffset failed.");
result = aRange->GetEndOffset(&mEndOffset);
NS_ASSERTION((NS_SUCCEEDED(result)), "GetEndOffset failed.");
result = aRange->GetCommonParent(getter_AddRefs(mCommonParent));
NS_ASSERTION((NS_SUCCEEDED(result)), "GetCommonParent failed.");
#ifdef NS_DEBUG
{
PRUint32 count;
nsCOMPtr<nsIDOMCharacterData> textNode;
textNode = do_QueryInterface(mStartParent);
if (textNode)
textNode->GetLength(&count);
else
{
nsCOMPtr<nsIDOMNodeList> children;
result = mStartParent->GetChildNodes(getter_AddRefs(children));
NS_ASSERTION(((NS_SUCCEEDED(result)) && children), "bad start child list");
children->GetLength(&count);
}
NS_ASSERTION(mStartOffset<=(PRInt32)count, "bad start offset");
textNode = do_QueryInterface(mEndParent);
if (textNode)
textNode->GetLength(&count);
else
{
nsCOMPtr<nsIDOMNodeList> children;
result = mEndParent->GetChildNodes(getter_AddRefs(children));
NS_ASSERTION(((NS_SUCCEEDED(result)) && children), "bad end child list");
children->GetLength(&count);
}
NS_ASSERTION(mEndOffset<=(PRInt32)count, "bad end offset");
if (gNoisy)
{
printf ("DeleteRange: %d of %p to %d of %p\n",
mStartOffset, (void *)mStartParent, mEndOffset, (void *)mEndParent);
}
}
#endif
return result;
}
else
return NS_ERROR_NULL_POINTER;
}
DeleteRangeTxn::~DeleteRangeTxn()
{
}
NS_IMETHODIMP DeleteRangeTxn::Do(void)
{
if (gNoisy) { printf("Do Delete Range\n"); }
if (!mStartParent || !mEndParent || !mCommonParent)
return NS_ERROR_NULL_POINTER;
nsresult result;
// build the child transactions
if (mStartParent==mEndParent)
{ // the selection begins and ends in the same node
result = CreateTxnsToDeleteBetween(mStartParent, mStartOffset, mEndOffset);
}
else
{ // the selection ends in a different node from where it started
// delete the relevant content in the start node
result = CreateTxnsToDeleteContent(mStartParent, mStartOffset, nsIEditor::eDeleteNext);
if (NS_SUCCEEDED(result))
{
// delete the intervening nodes
result = CreateTxnsToDeleteNodesBetween();
if (NS_SUCCEEDED(result))
{
// delete the relevant content in the end node
result = CreateTxnsToDeleteContent(mEndParent, mEndOffset, nsIEditor::eDeletePrevious);
}
}
}
// if we've successfully built this aggregate transaction, then do it.
if (NS_SUCCEEDED(result)) {
result = EditAggregateTxn::Do();
}
if (NS_SUCCEEDED(result)) {
// set the resulting selection
nsCOMPtr<nsIDOMSelection> selection;
result = mEditor->GetSelection(getter_AddRefs(selection));
if (NS_SUCCEEDED(result)) {
result = selection->Collapse(mStartParent, mStartOffset);
}
}
return result;
}
NS_IMETHODIMP DeleteRangeTxn::Undo(void)
{
if (gNoisy) { printf("Undo Delete Range\n"); }
if (!mStartParent || !mEndParent || !mCommonParent)
return NS_ERROR_NULL_POINTER;
nsresult result = EditAggregateTxn::Undo();
if (NS_SUCCEEDED(result)) {
// set the resulting selection
nsCOMPtr<nsIDOMSelection> selection;
result = mEditor->GetSelection(getter_AddRefs(selection));
if (NS_SUCCEEDED(result)) {
selection->Collapse(mStartParent, mStartOffset);
selection->Extend(mEndParent, mEndOffset);
}
}
return result;
}
NS_IMETHODIMP DeleteRangeTxn::Redo(void)
{
if (gNoisy) { printf("Redo Delete Range\n"); }
if (!mStartParent || !mEndParent || !mCommonParent)
return NS_ERROR_NULL_POINTER;
nsresult result = EditAggregateTxn::Redo();
if (NS_SUCCEEDED(result)) {
// set the resulting selection
nsCOMPtr<nsIDOMSelection> selection;
result = mEditor->GetSelection(getter_AddRefs(selection));
if (NS_SUCCEEDED(result)) {
result = selection->Collapse(mStartParent, mStartOffset);
}
}
return result;
}
NS_IMETHODIMP DeleteRangeTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
if (nsnull!=aDidMerge)
*aDidMerge=PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP DeleteRangeTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_OK;
}
NS_IMETHODIMP DeleteRangeTxn::GetUndoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Insert Range: ";
}
return NS_OK;
}
NS_IMETHODIMP DeleteRangeTxn::GetRedoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Remove Range: ";
}
return NS_OK;
}
NS_IMETHODIMP DeleteRangeTxn::CreateTxnsToDeleteBetween(nsIDOMNode *aStartParent,
PRUint32 aStartOffset,
PRUint32 aEndOffset)
{
nsresult result;
// see what kind of node we have
nsCOMPtr<nsIDOMCharacterData> textNode;
textNode = do_QueryInterface(aStartParent);
if (textNode)
{ // if the node is a text node, then delete text content
DeleteTextTxn *txn;
result = TransactionFactory::GetNewTransaction(DeleteTextTxn::GetCID(), (EditTxn **)&txn);
if (nsnull!=txn)
{
PRInt32 numToDel;
if (aStartOffset==aEndOffset)
numToDel = 1;
else
numToDel = aEndOffset-aStartOffset;
txn->Init(mEditor, textNode, aStartOffset, numToDel);
AppendChild(txn);
}
}
else
{
PRUint32 childCount;
nsCOMPtr<nsIDOMNodeList> children;
result = aStartParent->GetChildNodes(getter_AddRefs(children));
if ((NS_SUCCEEDED(result)) && children)
{
children->GetLength(&childCount);
NS_ASSERTION(aEndOffset<=childCount, "bad aEndOffset");
PRUint32 i;
for (i=aStartOffset; i<=aEndOffset; i++)
{
nsCOMPtr<nsIDOMNode> child;
result = children->Item(i, getter_AddRefs(child));
if ((NS_SUCCEEDED(result)) && child)
{
DeleteElementTxn *txn;
result = TransactionFactory::GetNewTransaction(DeleteElementTxn::GetCID(), (EditTxn **)&txn);
if (nsnull!=txn)
{
txn->Init(child);
AppendChild(txn);
}
else
return NS_ERROR_NULL_POINTER;
}
}
}
}
return result;
}
NS_IMETHODIMP DeleteRangeTxn::CreateTxnsToDeleteContent(nsIDOMNode *aParent,
PRUint32 aOffset,
nsIEditor::ESelectionCollapseDirection aAction)
{
nsresult result;
// see what kind of node we have
nsCOMPtr<nsIDOMCharacterData> textNode;
textNode = do_QueryInterface(aParent);
if (textNode)
{ // if the node is a text node, then delete text content
PRUint32 start, numToDelete;
if (nsIEditor::eDeleteNext == aAction)
{
start=aOffset;
textNode->GetLength(&numToDelete);
numToDelete -= aOffset;
}
else
{
start=0;
numToDelete=aOffset;
}
if (numToDelete)
{
DeleteTextTxn *txn;
result = TransactionFactory::GetNewTransaction(DeleteTextTxn::GetCID(), (EditTxn **)&txn);
if (nsnull!=txn)
{
txn->Init(mEditor, textNode, start, numToDelete);
AppendChild(txn);
}
else
return NS_ERROR_NULL_POINTER;
}
}
return result;
}
static NS_DEFINE_IID(kSubtreeIteratorCID, NS_SUBTREEITERATOR_CID);
static NS_DEFINE_IID(kRangeCID, NS_RANGE_CID);
NS_IMETHODIMP DeleteRangeTxn::CreateTxnsToDeleteNodesBetween()
{
nsresult result;
nsCOMPtr<nsIContentIterator> iter;
result = nsComponentManager::CreateInstance(kSubtreeIteratorCID,
nsnull,
nsIContentIterator::GetIID(),
getter_AddRefs(iter));
if (!NS_SUCCEEDED(result))
return result;
result = iter->Init(mRange);
if (!NS_SUCCEEDED(result))
return result;
while (NS_COMFALSE == iter->IsDone())
{
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIContent> content;
result = iter->CurrentNode(getter_AddRefs(content));
node = do_QueryInterface(content);
if ((NS_SUCCEEDED(result)) && node)
{
DeleteElementTxn *txn;
result = TransactionFactory::GetNewTransaction(DeleteElementTxn::GetCID(), (EditTxn **)&txn);
if (nsnull!=txn)
{
txn->Init(node);
AppendChild(txn);
}
else
return NS_ERROR_NULL_POINTER;
}
iter->Next();
}
return result;
}

View File

@@ -1,113 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef DeleteRangeTxn_h__
#define DeleteRangeTxn_h__
#include "EditAggregateTxn.h"
#include "nsIDOMNode.h"
#include "nsIDOMRange.h"
#include "nsIEditor.h"
#include "nsCOMPtr.h"
class nsIDOMDocument;
#define DELETE_RANGE_TXN_CID \
{/* 5ec6b260-ac49-11d2-86d8-000064657374 */ \
0x5ec6b260, 0xac49, 0x11d2, \
{0x86, 0xd8, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74} }
class nsIDOMRange;
class nsIEditor;
/**
* A transaction that deletes an entire range in the content tree
*/
class DeleteRangeTxn : public EditAggregateTxn
{
public:
static const nsIID& GetCID() { static nsIID iid = DELETE_RANGE_TXN_CID; return iid; }
/** initialize the transaction.
* @param aEditor the object providing basic editing operations
* @param aRange the range to delete
*/
NS_IMETHOD Init(nsIEditor *aEditor, nsIDOMRange *aRange);
private:
DeleteRangeTxn();
public:
virtual ~DeleteRangeTxn();
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
NS_IMETHOD Redo(void);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
protected:
NS_IMETHOD CreateTxnsToDeleteBetween(nsIDOMNode *aStartParent,
PRUint32 aStartOffset,
PRUint32 aEndOffset);
NS_IMETHOD CreateTxnsToDeleteNodesBetween();
NS_IMETHOD CreateTxnsToDeleteContent(nsIDOMNode *aParent,
PRUint32 aOffset,
nsIEditor::ESelectionCollapseDirection aAction);
protected:
/** p1 in the range */
nsCOMPtr<nsIDOMRange> mRange; // is this really an owning ptr?
/** p1 in the range */
nsCOMPtr<nsIDOMNode> mStartParent;
/** p1 offset */
PRInt32 mStartOffset;
/** p2 in the range */
nsCOMPtr<nsIDOMNode> mEndParent;
/** the closest common parent of p1 and p2 */
nsCOMPtr<nsIDOMNode> mCommonParent;
/** p2 offset */
PRInt32 mEndOffset;
/** the editor for this transaction */
nsIEditor* mEditor;
friend class TransactionFactory;
};
#endif

View File

@@ -1,132 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "DeleteTextTxn.h"
#include "nsIDOMCharacterData.h"
#include "nsIDOMSelection.h"
#ifdef NS_DEBUG
static PRBool gNoisy = PR_FALSE;
#else
static const PRBool gNoisy = PR_FALSE;
#endif
DeleteTextTxn::DeleteTextTxn()
: EditTxn()
{
}
DeleteTextTxn::~DeleteTextTxn()
{
}
NS_IMETHODIMP DeleteTextTxn::Init(nsIEditor *aEditor,
nsIDOMCharacterData *aElement,
PRUint32 aOffset,
PRUint32 aNumCharsToDelete)
{
NS_ASSERTION(aEditor&&aElement, "bad arg");
mEditor = aEditor;
mElement = do_QueryInterface(aElement);
mOffset = aOffset;
mNumCharsToDelete = aNumCharsToDelete;
NS_ASSERTION(0!=aNumCharsToDelete, "bad arg, numCharsToDelete");
PRUint32 count;
aElement->GetLength(&count);
NS_ASSERTION(count>=aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
NS_ASSERTION(count>=aOffset+aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
mDeletedText = "";
return NS_OK;
}
NS_IMETHODIMP DeleteTextTxn::Do(void)
{
if (gNoisy) { printf("Do Delete Text\n"); }
nsresult result = NS_ERROR_NULL_POINTER;
if (mEditor && mElement)
{
// get the text that we're about to delete
result = mElement->SubstringData(mOffset, mNumCharsToDelete, mDeletedText);
NS_ASSERTION(NS_SUCCEEDED(result), "could not get text to delete.");
result = mElement->DeleteData(mOffset, mNumCharsToDelete);
if (NS_SUCCEEDED(result))
{
nsCOMPtr<nsIDOMSelection> selection;
nsresult selectionResult = mEditor->GetSelection(getter_AddRefs(selection));
if (NS_SUCCEEDED(selectionResult) && selection) {
selectionResult = selection->Collapse(mElement, mOffset);
NS_ASSERTION((NS_SUCCEEDED(selectionResult)), "selection could not be collapsed after undo of insert.");
}
}
}
return result;
}
//XXX: we may want to store the selection state and restore it properly
// was it an insertion point or an extended selection?
NS_IMETHODIMP DeleteTextTxn::Undo(void)
{
if (gNoisy) { printf("Undo Delete Text\n"); }
nsresult result = NS_ERROR_NULL_POINTER;
if (mEditor && mElement)
{
result = mElement->InsertData(mOffset, mDeletedText);
if (NS_SUCCEEDED(result))
{
nsCOMPtr<nsIDOMSelection> selection;
nsresult selectionResult = mEditor->GetSelection(getter_AddRefs(selection));
if (NS_SUCCEEDED(selectionResult) && selection) {
selectionResult = selection->Collapse(mElement, mOffset);
NS_ASSERTION((NS_SUCCEEDED(selectionResult)), "selection could not be collapsed after undo of insert.");
}
}
}
return result;
}
NS_IMETHODIMP DeleteTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
if (nsnull!=aDidMerge)
*aDidMerge=PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP DeleteTextTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_OK;
}
NS_IMETHODIMP DeleteTextTxn::GetUndoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Insert Text: ";
*aString += mDeletedText;
}
return NS_OK;
}
NS_IMETHODIMP DeleteTextTxn::GetRedoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Remove Text: ";
*aString += mDeletedText;
}
return NS_OK;
}

View File

@@ -1,91 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef DeleteTextTxn_h__
#define DeleteTextTxn_h__
#include "EditTxn.h"
#include "nsIEditor.h"
#include "nsIDOMCharacterData.h"
#include "nsCOMPtr.h"
#define DELETE_TEXT_TXN_CID \
{/* 4d3a2720-ac49-11d2-86d8-000064657374 */ \
0x4d3a2720, 0xac49, 0x11d2, \
{0x86, 0xd8, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74} }
/**
* A transaction that removes text from a content node.
*/
class DeleteTextTxn : public EditTxn
{
public:
static const nsIID& GetCID() { static nsIID iid = DELETE_TEXT_TXN_CID; return iid; }
/** initialize the transaction.
* @param aEditor the provider of basic editing operations
* @param aElement the content node to remove text from
* @param aOffset the location in aElement to begin the deletion
* @param aNumCharsToDelete the number of characters to delete. Not the number of bytes!
*/
NS_IMETHOD Init(nsIEditor *aEditor,
nsIDOMCharacterData *aElement,
PRUint32 aOffset,
PRUint32 aNumCharsToDelete);
private:
DeleteTextTxn();
public:
virtual ~DeleteTextTxn();
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
protected:
/** the provider of basic editing operations */
nsIEditor* mEditor;
/** the text element to operate upon */
nsCOMPtr<nsIDOMCharacterData> mElement;
/** the offset into mElement where the deletion is to take place */
PRUint32 mOffset;
/** the number of characters to delete */
PRUint32 mNumCharsToDelete;
/** the text that was deleted */
nsString mDeletedText;
friend class TransactionFactory;
};
#endif

View File

@@ -1,236 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL") you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "EditAggregateTxn.h"
#include "nsCOMPtr.h"
#include "nsIDOMNode.h"
#include "nsVoidArray.h"
EditAggregateTxn::EditAggregateTxn()
: EditTxn()
{
// base class does this: NS_INIT_REFCNT();
mChildren = new nsVoidArray();
}
EditAggregateTxn::~EditAggregateTxn()
{
if (nsnull!=mChildren)
{
PRInt32 i;
PRInt32 count = mChildren->Count();
for (i=0; i<count; i++)
{
EditTxn *txn = (EditTxn*)(mChildren->ElementAt(i));
NS_IF_RELEASE(txn);
}
delete mChildren;
}
}
NS_IMETHODIMP EditAggregateTxn::Do(void)
{
nsresult result=NS_OK; // it's legal (but not very useful) to have an empty child list
if (nsnull!=mChildren)
{
PRInt32 i;
PRInt32 count = mChildren->Count();
for (i=0; i<count; i++)
{
EditTxn *txn = (EditTxn*)(mChildren->ElementAt(i));
result = txn->Do();
if (NS_FAILED(result))
break;
}
}
return result;
}
NS_IMETHODIMP EditAggregateTxn::Undo(void)
{
nsresult result=NS_OK; // it's legal (but not very useful) to have an empty child list
if (nsnull!=mChildren)
{
PRInt32 i;
PRInt32 count = mChildren->Count();
// undo goes through children backwards
for (i=count-1; i>=0; i--)
{
EditTxn *txn = (EditTxn*)(mChildren->ElementAt(i));
result = txn->Undo();
if (NS_FAILED(result))
break;
}
}
return result;
}
NS_IMETHODIMP EditAggregateTxn::Redo(void)
{
nsresult result=NS_OK; // it's legal (but not very useful) to have an empty child list
if (nsnull!=mChildren)
{
PRInt32 i;
PRInt32 count = mChildren->Count();
for (i=0; i<count; i++)
{
EditTxn *txn = (EditTxn*)(mChildren->ElementAt(i));
result = txn->Redo();
if (NS_FAILED(result))
break;
}
}
return result;
}
NS_IMETHODIMP EditAggregateTxn::GetIsTransient(PRBool *aIsTransient)
{
if (nsnull!=aIsTransient)
*aIsTransient = PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP EditAggregateTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
nsresult result=NS_OK; // it's legal (but not very useful) to have an empty child list
if (nsnull!=aDidMerge)
*aDidMerge=PR_FALSE;
if (nsnull!=mChildren)
{
PRInt32 count = mChildren->Count();
NS_ASSERTION(count>0, "bad count");
if (0<count)
{
EditTxn *txn = (EditTxn*)(mChildren->ElementAt(count-1));
result = txn->Merge(aDidMerge, aTransaction);
}
}
return result;
}
NS_IMETHODIMP EditAggregateTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_OK;
}
NS_IMETHODIMP EditAggregateTxn::GetUndoString(nsString *aString)
{
if (nsnull!=aString)
*aString="";
return NS_OK;
}
NS_IMETHODIMP EditAggregateTxn::GetRedoString(nsString *aString)
{
if (nsnull!=aString)
*aString="";
return NS_OK;
}
NS_IMETHODIMP EditAggregateTxn::AppendChild(EditTxn *aTxn)
{
if ((nsnull!=mChildren) && (nsnull!=aTxn))
{
mChildren->AppendElement(aTxn);
return NS_OK;
}
return NS_ERROR_NULL_POINTER;
}
NS_IMETHODIMP EditAggregateTxn::GetCount(PRInt32 *aCount)
{
if (!aCount) {
return NS_ERROR_NULL_POINTER;
}
*aCount=0;
if (mChildren) {
*aCount = mChildren->Count();
}
return NS_OK;
}
NS_IMETHODIMP EditAggregateTxn::GetTxnAt(PRInt32 aIndex, EditTxn **aTxn)
{
if (!aTxn) {
return NS_ERROR_NULL_POINTER;
}
if (!mChildren) {
return NS_ERROR_UNEXPECTED;
}
const PRInt32 txnCount = mChildren->Count();
if (0>aIndex || txnCount<=aIndex) {
return NS_ERROR_UNEXPECTED;
}
*aTxn = (EditTxn *)(mChildren->ElementAt(aIndex));
if (!*aTxn)
return NS_ERROR_UNEXPECTED;
NS_ADDREF(*aTxn);
return NS_OK;
}
NS_IMETHODIMP EditAggregateTxn::SetName(nsIAtom *aName)
{
mName = do_QueryInterface(aName);
return NS_OK;
}
NS_IMETHODIMP EditAggregateTxn::GetName(nsIAtom **aName)
{
if (aName)
{
if (mName)
{
*aName = mName;
NS_ADDREF(*aName);
return NS_OK;
}
}
return NS_ERROR_NULL_POINTER;
}
NS_IMETHODIMP_(nsrefcnt) EditAggregateTxn::AddRef(void)
{
return EditTxn::AddRef();
}
//NS_IMPL_RELEASE_INHERITED(Class, Super)
NS_IMETHODIMP_(nsrefcnt) EditAggregateTxn::Release(void)
{
return EditTxn::Release();
}
//NS_IMPL_QUERY_INTERFACE_INHERITED(Class, Super, AdditionalInterface)
NS_IMETHODIMP EditAggregateTxn::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (!aInstancePtr) return NS_ERROR_NULL_POINTER;
if (aIID.Equals(EditAggregateTxn::GetCID())) {
*aInstancePtr = (nsISupports*)(EditAggregateTxn*)(this);
NS_ADDREF_THIS();
return NS_OK;
}
return EditTxn::QueryInterface(aIID, aInstancePtr);
}

View File

@@ -1,91 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef EditAggregateTxn_h__
#define EditAggregateTxn_h__
#include "EditTxn.h"
#include "nsIAtom.h"
#include "nsCOMPtr.h"
#define EDIT_AGGREGATE_TXN_CID \
{/* 345921a0-ac49-11d2-86d8-000064657374 */ \
0x345921a0, 0xac49, 0x11d2, \
{0x86, 0xd8, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74} }
class nsVoidArray;
/**
* base class for all document editing transactions that require aggregation.
* provides a list of child transactions.
*/
class EditAggregateTxn : public EditTxn
{
public:
NS_DECL_ISUPPORTS_INHERITED
static const nsIID& GetCID() { static nsIID cid = EDIT_AGGREGATE_TXN_CID; return cid; }
EditAggregateTxn();
virtual ~EditAggregateTxn();
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
NS_IMETHOD Redo(void);
NS_IMETHOD GetIsTransient(PRBool *aIsTransient);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
/** append a transaction to this aggregate */
NS_IMETHOD AppendChild(EditTxn *aTxn);
/** get the number of nested txns.
* This is the number of top-level txns, it does not do recursive decent.
*/
NS_IMETHOD GetCount(PRInt32 *aCount);
/** get the txn at index aIndex.
* returns NS_ERROR_UNEXPECTED if there is no txn at aIndex.
*/
NS_IMETHOD GetTxnAt(PRInt32 aIndex, EditTxn **aTxn);
/** set the name assigned to this txn */
NS_IMETHOD SetName(nsIAtom *aName);
/** get the name assigned to this txn */
NS_IMETHOD GetName(nsIAtom **aName);
protected:
//XXX: if this was an nsISupportsArray, it would handle refcounting for us
nsVoidArray * mChildren;
nsCOMPtr<nsIAtom> mName;
};
#endif

View File

@@ -1,404 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsIDOMDocument.h"
#include "nsEditor.h"
#include "nsIDOMText.h"
#include "nsIDOMElement.h"
#include "nsIDOMAttr.h"
#include "nsIDOMNode.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMRange.h"
#include "nsIDOMSelection.h"
#include "nsIAtom.h"
#include "nsIDOMHTMLTableElement.h"
#include "nsIDOMHTMLTableCellElement.h"
#include "nsITableCellLayout.h" // For efficient access to table cell
#include "nsITableLayout.h" // data owned by the table and cell frames
// transactions the editor knows how to build
//#include "TransactionFactory.h"
//#include "EditAggregateTxn.h"
//#include "nsIDOMHTMLCollection.h"
#include "nsHTMLEditor.h"
// Table Editing methods
NS_IMETHODIMP
nsHTMLEditor::InsertTable()
{
nsresult res=NS_ERROR_NOT_INITIALIZED;
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsHTMLEditor::InsertTableCell(PRInt32 aNumber, PRBool aAfter)
{
nsCOMPtr<nsIDOMSelection> selection;
nsCOMPtr<nsIDOMElement> table;
nsCOMPtr<nsIDOMElement> cell;
nsCOMPtr<nsIDOMNode> cellParent;
PRInt32 cellOffset, startRow, startCol;
nsresult res = GetCellContext(selection, table, cell, cellParent, cellOffset, startRow, startCol);
if (NS_SUCCEEDED(res))
{
PRInt32 i;
for (i = 0; i < aNumber; i++)
{
nsCOMPtr<nsIDOMElement> newCell;
res = CreateElementWithDefaults("td", getter_AddRefs(newCell));
if (NS_SUCCEEDED(res) && newCell)
{
if (aAfter) cellOffset++;
res = InsertNode(newCell, cellParent, cellOffset);
}
}
SetCaretAfterTableEdit(table, startRow, startCol, ePreviousColumn);
}
return res;
}
NS_IMETHODIMP
nsHTMLEditor::InsertTableColumn(PRInt32 aNumber, PRBool aAfter)
{
nsCOMPtr<nsIDOMSelection> selection;
nsCOMPtr<nsIDOMElement> table;
nsCOMPtr<nsIDOMElement> cell;
nsCOMPtr<nsIDOMNode> cellParent;
PRInt32 cellOffset, startRow, startCol;
nsresult res = GetCellContext(selection, table, cell, cellParent, cellOffset, startRow, startCol);
if (NS_SUCCEEDED(res))
{
PRInt32 rowCount, colCount, row, col;
if (NS_FAILED(GetTableSize(table, rowCount, colCount)))
return NS_ERROR_FAILURE;
for ( row = 0; row < rowCount; row++)
{
nsCOMPtr<nsIDOMElement> curCell;
PRInt32 startRow, startCol, rowSpan, colSpan;
PRBool isSelected;
res = GetCellDataAt(table, row, col, *getter_AddRefs(curCell),
startRow, startCol, rowSpan, colSpan, isSelected);
if (NS_SUCCEEDED(res) && curCell)
{
//FINISH ME!
}
}
}
return res;
}
NS_IMETHODIMP
nsHTMLEditor::InsertTableRow(PRInt32 aNumber, PRBool aAfter)
{
nsCOMPtr<nsIDOMSelection> selection;
nsCOMPtr<nsIDOMElement> table;
nsCOMPtr<nsIDOMElement> cell;
nsCOMPtr<nsIDOMNode> cellParent;
PRInt32 cellOffset, startRow, startCol;
nsresult res = GetCellContext(selection, table, cell, cellParent, cellOffset, startRow, startCol);
if (NS_SUCCEEDED(res))
{
selection->ClearSelection();
}
return res;
}
NS_IMETHODIMP
nsHTMLEditor::DeleteTable()
{
nsCOMPtr<nsIDOMSelection> selection;
nsCOMPtr<nsIDOMElement> table;
nsCOMPtr<nsIDOMElement> cell;
nsCOMPtr<nsIDOMNode> cellParent;
PRInt32 cellOffset, startRow, startCol;
nsresult res = GetCellContext(selection, table, cell, cellParent, cellOffset, startRow, startCol);
if (NS_SUCCEEDED(res))
{
// Save where we need to restore the selection
nsCOMPtr<nsIDOMNode> tableParent;
PRInt32 tableOffset;
if(NS_FAILED(table->GetParentNode(getter_AddRefs(tableParent))) || !tableParent)
return NS_ERROR_FAILURE;
res = DeleteNode(table);
// Restore the selection (caret)
nsCOMPtr<nsIDOMSelection>selection;
res = nsEditor::GetSelection(getter_AddRefs(selection));
if (NS_FAILED(res) || !selection)
return res;
selection->Collapse(tableParent, tableOffset);
}
return res;
}
NS_IMETHODIMP
nsHTMLEditor::DeleteTableCell(PRInt32 aNumber)
{
nsCOMPtr<nsIDOMSelection> selection;
nsCOMPtr<nsIDOMElement> table;
nsCOMPtr<nsIDOMElement> cell;
nsCOMPtr<nsIDOMNode> cellParent;
PRInt32 cellOffset, startRow, startCol;
nsresult res = GetCellContext(selection, table, cell, cellParent, cellOffset, startRow, startCol);
if (NS_SUCCEEDED(res))
{
selection->ClearSelection();
PRInt32 i;
for (i = 0; i < aNumber; i++)
{
//TODO: FINISH ME!
if (NS_FAILED(DeleteNode(cell)))
break;
}
SetCaretAfterTableEdit(table, startRow, startCol, ePreviousColumn);
}
return res;
}
NS_IMETHODIMP
nsHTMLEditor::DeleteTableColumn(PRInt32 aNumber)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsHTMLEditor::DeleteTableRow(PRInt32 aNumber)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsHTMLEditor::JoinTableCells(PRBool aCellToRight)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsHTMLEditor::NormalizeTable(nsIDOMElement *aTable)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsHTMLEditor::GetCellIndexes(nsIDOMElement *aCell, PRInt32 &aColIndex, PRInt32 &aRowIndex)
{
nsresult res=NS_ERROR_NOT_INITIALIZED;
aColIndex=0; // initialize out params
aRowIndex=0;
if (!aCell)
{
// Get the selected cell or the cell enclosing the selection anchor
nsCOMPtr<nsIDOMElement> cell;
res = GetElementOrParentByTagName("td", nsnull, getter_AddRefs(cell));
if (NS_SUCCEEDED(res) && cell)
aCell = cell;
else
return NS_ERROR_FAILURE;
}
res = NS_ERROR_FAILURE; // we return an error unless we get the index
nsISupports *layoutObject=nsnull; // frames are not ref counted, so don't use an nsCOMPtr
res = nsHTMLEditor::GetLayoutObject(aCell, &layoutObject);
if ((NS_SUCCEEDED(res)) && (nsnull!=layoutObject))
{ // get the table cell interface from the frame
nsITableCellLayout *cellLayoutObject=nsnull; // again, frames are not ref-counted
res = layoutObject->QueryInterface(nsITableCellLayout::GetIID(), (void**)(&cellLayoutObject));
if ((NS_SUCCEEDED(res)) && (nsnull!=cellLayoutObject))
{
res = cellLayoutObject->GetCellIndexes(aRowIndex, aColIndex);
}
}
return res;
}
NS_IMETHODIMP
nsHTMLEditor::GetTableLayoutObject(nsIDOMElement* aTable, nsITableLayout **tableLayoutObject)
{
*tableLayoutObject=nsnull;
if (!aTable)
return NS_ERROR_NOT_INITIALIZED;
// frames are not ref counted, so don't use an nsCOMPtr
nsISupports *layoutObject=nsnull;
nsresult res = nsHTMLEditor::GetLayoutObject(aTable, &layoutObject);
if ((NS_SUCCEEDED(res)) && (nsnull!=layoutObject))
{ // get the table interface from the frame
res = layoutObject->QueryInterface(nsITableLayout::GetIID(),
(void**)(tableLayoutObject));
}
return res;
}
/* Not scriptable: For convenience in C++ */
NS_IMETHODIMP
nsHTMLEditor::GetTableSize(nsIDOMElement *aTable, PRInt32& aRowCount, PRInt32& aColCount)
{
nsresult res=NS_ERROR_FAILURE;
aRowCount = 0;
aColCount = 0;
if (!aTable)
{
// Get the selected talbe or the table enclosing the selection anchor
nsCOMPtr<nsIDOMElement> table;
res = GetElementOrParentByTagName("table", nsnull, getter_AddRefs(table));
if (NS_SUCCEEDED(res) && table)
aTable = table;
else
return NS_ERROR_FAILURE;
}
// frames are not ref counted, so don't use an nsCOMPtr
nsITableLayout *tableLayoutObject;
res = GetTableLayoutObject(aTable, &tableLayoutObject);
if ((NS_SUCCEEDED(res)) && (nsnull!=tableLayoutObject))
{
res = tableLayoutObject->GetTableSize(aRowCount, aColCount);
}
return res;
}
NS_IMETHODIMP
nsHTMLEditor::GetCellDataAt(nsIDOMElement* aTable, PRInt32 aRowIndex, PRInt32 aColIndex, nsIDOMElement* &aCell,
PRInt32& aStartRowIndex, PRInt32& aStartColIndex,
PRInt32& aRowSpan, PRInt32& aColSpan, PRBool& aIsSelected)
{
nsresult res=NS_ERROR_FAILURE;
aCell = nsnull;
aStartRowIndex = 0;
aStartColIndex = 0;
aRowSpan = 0;
aColSpan = 0;
aIsSelected = PR_FALSE;
if (!aTable)
{
// Get the selected talbe or the table enclosing the selection anchor
nsCOMPtr<nsIDOMElement> table;
res = GetElementOrParentByTagName("table", nsnull, getter_AddRefs(table));
if (NS_SUCCEEDED(res) && table)
aTable = table;
else
return NS_ERROR_FAILURE;
}
// frames are not ref counted, so don't use an nsCOMPtr
nsITableLayout *tableLayoutObject;
res = GetTableLayoutObject(aTable, &tableLayoutObject);
if ((NS_SUCCEEDED(res)) && (nsnull!=tableLayoutObject))
{
// Note that this returns NS_TABLELAYOUT_CELL_NOT_FOUND when
// the index(es) are out of bounds
res = tableLayoutObject->GetCellDataAt(aRowIndex, aColIndex, aCell,
aStartRowIndex, aStartColIndex,
aRowSpan, aColSpan, aIsSelected);
}
return res;
}
// When all you want is the cell
NS_IMETHODIMP
nsHTMLEditor::GetCellAt(nsIDOMElement* aTable, PRInt32 aRowIndex, PRInt32 aColIndex, nsIDOMElement* &aCell)
{
PRInt32 aStartRowIndex, aStartColIndex, aRowSpan, aColSpan;
PRBool aIsSelected;
return GetCellDataAt(aTable, aRowIndex, aColIndex, aCell,
aStartRowIndex, aStartColIndex, aRowSpan, aColSpan, aIsSelected);
}
NS_IMETHODIMP
nsHTMLEditor::GetCellContext(nsCOMPtr<nsIDOMSelection> &aSelection,
nsCOMPtr<nsIDOMElement> &aTable, nsCOMPtr<nsIDOMElement> &aCell,
nsCOMPtr<nsIDOMNode> &aCellParent, PRInt32& aCellOffset,
PRInt32& aRow, PRInt32& aCol)
{
nsresult res = nsEditor::GetSelection(getter_AddRefs(aSelection));
if (NS_FAILED(res) || !aSelection)
return res;
// TODO: Should we look for the "first" cell instead?
// Messy! We would need to iterate through the selection to find the first enclosing cell
nsCOMPtr<nsIDOMNode> anchorNode;
if(NS_FAILED(aSelection->GetAnchorNode(getter_AddRefs(anchorNode))) || !anchorNode)
return NS_ERROR_FAILURE;
// Test if anchor is a cell node (should I bother to check header as well?
nsCOMPtr<nsIDOMHTMLTableCellElement> cellElement = do_QueryInterface(anchorNode);
if (cellElement)
{
aCell = do_QueryInterface(anchorNode);
} else {
// Get the anchor's first child, in case the selection is composed of cells
PRInt32 offset;
if (NS_FAILED(aSelection->GetAnchorOffset(&offset)))
return NS_ERROR_FAILURE;
nsCOMPtr<nsIDOMNode> anchorChild = GetChildAt(anchorNode, offset);
if(!anchorChild)
return NS_ERROR_FAILURE;
// Get the cell enclosing the selection anchor
if(NS_FAILED(GetElementOrParentByTagName("td", anchorChild, getter_AddRefs(aCell))) || !aCell)
return NS_ERROR_FAILURE;
}
if(NS_FAILED(GetElementOrParentByTagName("table", aCell, getter_AddRefs(aTable))) || !aTable)
return NS_ERROR_FAILURE;
if(NS_FAILED(aCell->GetParentNode(getter_AddRefs(aCellParent))) || !aCellParent)
return NS_ERROR_FAILURE;
// Get current cell location so we can put caret back there when done
res = GetCellIndexes(aCell, aRow, aCol);
if(NS_FAILED(res))
return res;
return GetChildOffset(aCell, aCellParent, aCellOffset);
}
NS_IMETHODIMP
nsHTMLEditor::SetCaretAfterTableEdit(nsIDOMElement* aTable, PRInt32 aCol, PRInt32 aRow, SetCaretSearchDirection aDirection)
{
nsresult res = NS_ERROR_NOT_INITIALIZED;
if (!aTable)
return res;
nsCOMPtr<nsIDOMSelection>selection;
res = nsEditor::GetSelection(getter_AddRefs(selection));
if (!NS_SUCCEEDED(res) || !selection)
{
#ifdef DEBUG_cmanske
printf("Selection not found after table manipulation!\n");
#endif
return NS_ERROR_FAILURE;
}
return res;
}

View File

@@ -1,107 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL") you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "EditTxn.h"
#include "nsCOMPtr.h"
#include "nsIDOMNode.h"
#include "nsIDOMNodeList.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kITransactionIID, NS_ITRANSACTION_IID);
NS_IMPL_ADDREF(EditTxn)
NS_IMPL_RELEASE(EditTxn)
// note that aEditor is not refcounted
EditTxn::EditTxn()
{
NS_INIT_REFCNT();
}
EditTxn::~EditTxn()
{
}
NS_IMETHODIMP EditTxn::Do(void)
{
return NS_OK;
}
NS_IMETHODIMP EditTxn::Undo(void)
{
return NS_OK;
}
NS_IMETHODIMP EditTxn::Redo(void)
{
return Do();
}
NS_IMETHODIMP EditTxn::GetIsTransient(PRBool *aIsTransient)
{
if (nsnull!=aIsTransient)
*aIsTransient = PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP EditTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
return NS_OK;
}
NS_IMETHODIMP EditTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_OK;
}
NS_IMETHODIMP EditTxn::GetUndoString(nsString *aString)
{
if (nsnull!=aString)
*aString="";
return NS_OK;
}
NS_IMETHODIMP EditTxn::GetRedoString(nsString *aString)
{
if (nsnull!=aString)
*aString="";
return NS_OK;
}
NS_IMETHODIMP
EditTxn::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (NULL == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(kISupportsIID)) {
*aInstancePtr = (void*)(nsISupports*)this;
NS_ADDREF_THIS();
return NS_OK;
}
if (aIID.Equals(kITransactionIID)) {
*aInstancePtr = (void*)(nsITransaction*)this;
NS_ADDREF_THIS();
return NS_OK;
}
*aInstancePtr = 0;
return NS_NOINTERFACE;
}

View File

@@ -1,66 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef EditTxn_h__
#define EditTxn_h__
#include "nsITransaction.h"
#include "nsCOMPtr.h"
#define EDIT_TXN_CID \
{/* c5ea31b0-ac48-11d2-86d8-000064657374 */ \
0xc5ea31b0, 0xac48, 0x11d2, \
{0x86, 0xd8, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74} }
/**
* base class for all document editing transactions.
* provides default concrete behavior for all nsITransaction methods.
* EditTxns optionally have a name. This name is for internal purposes only,
* it is never seen by the user or by any external entity.
*/
class EditTxn : public nsITransaction
{
public:
static const nsIID& GetCID() { static nsIID iid = EDIT_TXN_CID; return iid; }
NS_DECL_ISUPPORTS
EditTxn();
virtual ~EditTxn();
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
NS_IMETHOD Redo(void);
NS_IMETHOD GetIsTransient(PRBool *aIsTransient);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
};
#endif

View File

@@ -1,112 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "IMECommitTxn.h"
#include "nsEditor.h"
nsIAtom *IMECommitTxn::gIMECommitTxnName = nsnull;
nsresult IMECommitTxn::ClassInit()
{
if (nsnull==gIMECommitTxnName)
gIMECommitTxnName = NS_NewAtom("NS_IMECommitTxn");
return NS_OK;
}
IMECommitTxn::IMECommitTxn()
: EditTxn()
{
}
IMECommitTxn::~IMECommitTxn()
{
}
NS_IMETHODIMP IMECommitTxn::Init(void)
{
return NS_OK;
}
NS_IMETHODIMP IMECommitTxn::Do(void)
{
#ifdef DEBUG_tague
printf("Do IME Commit");
#endif
return NS_OK;
}
NS_IMETHODIMP IMECommitTxn::Undo(void)
{
#ifdef DEBUG_TAGUE
printf("Undo IME Commit");
#endif
return NS_OK;
}
NS_IMETHODIMP IMECommitTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
#ifdef DEBUG_TAGUE
printf("Merge IME Commit");
#endif
*aDidMerge=PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP IMECommitTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_OK;
}
NS_IMETHODIMP IMECommitTxn::GetUndoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Remove IMECommit: ";
}
return NS_OK;
}
NS_IMETHODIMP IMECommitTxn::GetRedoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Insert IMECommit: ";
}
return NS_OK;
}
/* ============= nsISupports implementation ====================== */
NS_IMETHODIMP
IMECommitTxn::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (nsnull == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(IMECommitTxn::GetCID())) {
*aInstancePtr = (void*)(IMECommitTxn*)this;
NS_ADDREF_THIS();
return NS_OK;
}
return (EditTxn::QueryInterface(aIID, aInstancePtr));
}

View File

@@ -1,82 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef IMECommitTxn_h__
#define IMECommitTxn_h__
#include "EditTxn.h"
#include "nsIDOMCharacterData.h"
#include "nsCOMPtr.h"
// {9C4994A1-281C-11d3-9EA3-0060089FE59B}
#define IME_COMMIT_TXN_CID \
{ 0x9c4994a1, 0x281c, 0x11d3, \
{ 0x9e, 0xa3, 0x0, 0x60, 0x8, 0x9f, 0xe5, 0x9b }}
/**
* A transaction representing an IME commit operation
*/
class IMECommitTxn : public EditTxn
{
public:
static const nsIID& GetCID() { static nsIID iid = IME_COMMIT_TXN_CID; return iid; }
virtual ~IMECommitTxn();
static nsIAtom *gIMECommitTxnName;
/** initialize the transaction
*/
NS_IMETHOD Init(void);
private:
IMECommitTxn();
public:
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
// nsISupports declarations
// override QueryInterface to handle IMECommitTxn request
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);
/** must be called before any IMECommitTxn is instantiated */
static nsresult ClassInit();
protected:
friend class TransactionFactory;
friend class nsDerivedSafe<IMECommitTxn>; // work around for a compiler bug
};
#endif

View File

@@ -1,310 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "IMETextTxn.h"
#include "IMECommitTxn.h"
#include "nsEditor.h"
#include "nsIDOMCharacterData.h"
#include "nsIDOMTextRange.h"
#include "nsIDOMTextRangeList.h"
#include "nsIDOMSelection.h"
#include "nsIPresShell.h"
#include "EditAggregateTxn.h"
static NS_DEFINE_IID(kIDOMSelectionIID, NS_IDOMSELECTION_IID);
nsIAtom *IMETextTxn::gIMETextTxnName = nsnull;
nsresult IMETextTxn::ClassInit()
{
if (nsnull==gIMETextTxnName)
gIMETextTxnName = NS_NewAtom("NS_IMETextTxn");
return NS_OK;
}
IMETextTxn::IMETextTxn()
: EditTxn()
{
}
IMETextTxn::~IMETextTxn()
{
mRangeList = do_QueryInterface(nsnull);
}
NS_IMETHODIMP IMETextTxn::Init(nsIDOMCharacterData *aElement,
PRUint32 aOffset,
PRUint32 aReplaceLength,
nsIDOMTextRangeList* aTextRangeList,
const nsString &aStringToInsert,
nsIPresShell *aPresShell)
{
mElement = do_QueryInterface(aElement);
mOffset = aOffset;
mReplaceLength = aReplaceLength;
mStringToInsert = aStringToInsert;
mPresShell = aPresShell;
mRangeList = do_QueryInterface(aTextRangeList);
mFixed = PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP IMETextTxn::Do(void)
{
#ifdef DEBUG_TAGUE
printf("Do IME Text element = %p\n", mElement.get());
#endif
// advance caret: This requires the presentation shell to get the selection.
nsCOMPtr<nsIDOMSelection> selection;
nsresult result = mPresShell->GetSelection(SELECTION_NORMAL, getter_AddRefs(selection));
NS_ASSERTION(selection,"Could not get selection in IMEtextTxn::Do\n");
if (NS_SUCCEEDED(result) && selection) {
if (mReplaceLength==0) {
result = mElement->InsertData(mOffset,mStringToInsert);
} else {
result = mElement->ReplaceData(mOffset,mReplaceLength,mStringToInsert);
}
if (NS_SUCCEEDED(result)) {
result = CollapseTextSelection();
}
}
return result;
}
NS_IMETHODIMP IMETextTxn::Undo(void)
{
#ifdef DEBUG_TAGUE
printf("Undo IME Text element = %p\n", mElement.get());
#endif
nsresult result;
PRUint32 length = mStringToInsert.Length();
result = mElement->DeleteData(mOffset, length);
if (NS_SUCCEEDED(result))
{ // set the selection to the insertion point where the string was removed
nsCOMPtr<nsIDOMSelection> selection;
result = mPresShell->GetSelection(SELECTION_NORMAL, getter_AddRefs(selection));
if (NS_SUCCEEDED(result) && selection) {
result = selection->Collapse(mElement, mOffset);
NS_ASSERTION((NS_SUCCEEDED(result)), "selection could not be collapsed after undo of IME insert.");
}
}
return result;
}
NS_IMETHODIMP IMETextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
nsresult result;
#ifdef DEBUG_TAGUE
printf("Merge IME Text element = %p\n", mElement.get());
#endif
//
// check to make sure we have valid return pointers
//
if ((nsnull==aDidMerge) && (nsnull==aTransaction))
{
return NS_OK;
}
//
// check to make sure we aren't fixed, if we are then nothing get's absorbed
//
if (mFixed) {
*aDidMerge = PR_FALSE;
return NS_OK;
}
//
// if aTransaction is another IMETextTxn then absorbe it
//
IMETextTxn* otherTxn = nsnull;
result = aTransaction->QueryInterface(IMETextTxn::GetCID(),(void**)&otherTxn);
if (otherTxn && result==NS_OK)
{
//
// we absorbe the next IME transaction by adopting it's insert string as our own
//
nsIDOMTextRangeList* newTextRangeList;
otherTxn->GetData(mStringToInsert,&newTextRangeList);
mRangeList = do_QueryInterface(newTextRangeList);
*aDidMerge = PR_TRUE;
#ifdef DEBUG_TAGUE
printf("IMETextTxn assimilated IMETextTxn:%p\n", aTransaction);
#endif
NS_RELEASE(otherTxn);
return NS_OK;
}
//
// second possible case is that we have a commit transaction
//
IMECommitTxn* commitTxn = nsnull;
result = aTransaction->QueryInterface(IMECommitTxn::GetCID(),(void**)&commitTxn);
if (commitTxn && result==NS_OK)
{
(void)CollapseTextSelectionOnCommit();
mFixed = PR_TRUE;
*aDidMerge = PR_TRUE; // absorbe the commit transaction
#ifdef DEBUG_TAGUE
printf("IMETextTxn assimilated IMECommitTxn%p\n", aTransaction);
#endif
NS_RELEASE(commitTxn);
return NS_OK;
}
*aDidMerge = PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP IMETextTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_OK;
}
NS_IMETHODIMP IMETextTxn::GetUndoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Remove Text: ";
*aString += mStringToInsert;
}
return NS_OK;
}
NS_IMETHODIMP IMETextTxn::GetRedoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Insert Text: ";
*aString += mStringToInsert;
}
return NS_OK;
}
/* ============= nsISupports implementation ====================== */
NS_IMETHODIMP
IMETextTxn::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (nsnull == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(IMETextTxn::GetCID())) {
*aInstancePtr = (void*)(IMETextTxn*)this;
NS_ADDREF_THIS();
return NS_OK;
}
return (EditTxn::QueryInterface(aIID, aInstancePtr));
}
/* ============ protected methods ================== */
NS_IMETHODIMP IMETextTxn::GetData(nsString& aResult,nsIDOMTextRangeList** aTextRangeList)
{
aResult = mStringToInsert;
*aTextRangeList = mRangeList;
return NS_OK;
}
NS_IMETHODIMP IMETextTxn::CollapseTextSelection(void)
{
nsresult result;
PRBool haveSelectedRange, haveCaretPosition;
PRUint16 textRangeListLength,selectionStart,selectionEnd,
textRangeType, caretPosition, i;
nsIDOMTextRange* textRange;
haveSelectedRange = PR_FALSE;
haveCaretPosition = PR_FALSE;
#ifdef DEBUG_tague
PRUint16 listlen,start,stop,type;
nsIDOMTextRange* rangePtr;
result = mRangeList->GetLength(&listlen);
printf("nsIDOMTextRangeList[%p]\n",mRangeList);
for (i=0;i<listlen;i++) {
(void)mRangeList->Item(i,&rangePtr);
rangePtr->GetRangeStart(&start);
rangePtr->GetRangeEnd(&stop);
rangePtr->GetRangeType(&type);
printf("range[%d] start=%d end=%d type=",i,start,stop,type);
if (type==nsIDOMTextRange::TEXTRANGE_RAWINPUT) printf("TEXTRANGE_RAWINPUT\n");
if (type==nsIDOMTextRange::TEXTRANGE_SELECTEDRAWTEXT) printf("TEXTRANGE_SELECTEDRAWTEXT\n");
if (type==nsIDOMTextRange::TEXTRANGE_CONVERTEDTEXT) printf("TEXTRANGE_CONVERTEDTEXT\n");
if (type==nsIDOMTextRange::TEXTRANGE_SELECTEDCONVERTEDTEXT) printf("TEXTRANGE_SELECTEDCONVERTEDTEXT\n");
}
#endif
//
// run through the text range list
//
result = mRangeList->GetLength(&textRangeListLength);
if (NS_SUCCEEDED(result))
{
for(i=0;i<textRangeListLength;i++) {
result = mRangeList->Item(i,&textRange);
if (NS_SUCCEEDED(result))
{
result = textRange->GetRangeType(&textRangeType);
if (textRangeType==nsIDOMTextRange::TEXTRANGE_SELECTEDCONVERTEDTEXT)
{
haveSelectedRange = PR_TRUE;
textRange->GetRangeStart(&selectionStart);
textRange->GetRangeEnd(&selectionEnd);
}
if (textRangeType==nsIDOMTextRange::TEXTRANGE_CARETPOSITION)
{
haveCaretPosition = PR_TRUE;
textRange->GetRangeStart(&caretPosition);
}
}
}
}
nsCOMPtr<nsIDOMSelection> selection;
result = mPresShell->GetSelection(SELECTION_NORMAL, getter_AddRefs(selection));
if (NS_SUCCEEDED(result) && selection){
if (haveSelectedRange) {
result = selection->Collapse(mElement,mOffset+selectionStart);
result = selection->Extend(mElement,mOffset+selectionEnd);
} else {
if (haveCaretPosition)
result = selection->Collapse(mElement,mOffset+caretPosition);
else
result = selection->Collapse(mElement,mOffset+mStringToInsert.Length());
}
}
return result;
}
NS_IMETHODIMP IMETextTxn::CollapseTextSelectionOnCommit(void)
{
nsCOMPtr<nsIDOMSelection> selection;
nsresult result = mPresShell->GetSelection(SELECTION_NORMAL, getter_AddRefs(selection));
if (NS_SUCCEEDED(result) && selection){
result = selection->Collapse(mElement,mOffset+mStringToInsert.Length());
}
return result;
}

View File

@@ -1,125 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef IMETextTxn_h__
#define IMETextTxn_h__
#include "EditTxn.h"
#include "nsIDOMCharacterData.h"
#include "nsIDOMTextRangeList.h"
#include "nsCOMPtr.h"
// {D4D25721-2813-11d3-9EA3-0060089FE59B}
#define IME_TEXT_TXN_CID \
{0xd4d25721, 0x2813, 0x11d3, \
{0x9e, 0xa3, 0x0, 0x60, 0x8, 0x9f, 0xe5, 0x9b }}
class nsIPresShell;
/**
* A transaction that inserts text into a content node.
*/
class IMETextTxn : public EditTxn
{
public:
static const nsIID& GetCID() { static nsIID iid = IME_TEXT_TXN_CID; return iid; }
virtual ~IMETextTxn();
/** used to name aggregate transactions that consist only of a single IMETextTxn,
* or a DeleteSelection followed by an IMETextTxn.
*/
static nsIAtom *gIMETextTxnName;
/** initialize the transaction
* @param aElement the text content node
* @param aOffset the location in aElement to do the insertion
* @param aReplaceLength the length of text to replace (0= no replacement)
* @param aString the new text to insert
* @param aPresShell used to get and set the selection
*/
NS_IMETHOD Init(nsIDOMCharacterData *aElement,
PRUint32 aOffset,
PRUint32 aReplaceLength,
nsIDOMTextRangeList* aTextRangeList,
const nsString& aString,
nsIPresShell* aPresShell);
private:
IMETextTxn();
public:
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
// nsISupports declarations
// override QueryInterface to handle IMETextTxn request
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);
/** return the string data associated with this transaction */
NS_IMETHOD GetData(nsString& aResult, nsIDOMTextRangeList** aTextRangeList);
/** must be called before any IMETextTxn is instantiated */
static nsresult ClassInit();
protected:
NS_IMETHOD CollapseTextSelection(void);
NS_IMETHOD CollapseTextSelectionOnCommit(void);
/** the text element to operate upon */
nsCOMPtr<nsIDOMCharacterData> mElement;
/** the offsets into mElement where the insertion should be placed*/
PRUint32 mOffset;
PRUint32 mReplaceLength;
/** the text to insert into mElement at mOffset */
nsString mStringToInsert;
/** the range list **/
nsCOMPtr<nsIDOMTextRangeList> mRangeList;
/** the presentation shell, which we'll need to get the selection */
nsIPresShell* mPresShell;
PRBool mFixed;
friend class TransactionFactory;
friend class nsDerivedSafe<IMETextTxn>; // work around for a compiler bug
};
#endif

View File

@@ -1,148 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "InsertElementTxn.h"
#include "nsIDOMSelection.h"
#include "nsIContent.h"
#ifdef NS_DEBUG
static PRBool gNoisy = PR_FALSE;
#else
static const PRBool gNoisy = PR_FALSE;
#endif
InsertElementTxn::InsertElementTxn()
: EditTxn()
{
}
NS_IMETHODIMP InsertElementTxn::Init(nsIDOMNode *aNode,
nsIDOMNode *aParent,
PRInt32 aOffset,
nsIEditor *aEditor)
{
NS_ASSERTION(aNode && aParent && aEditor, "bad arg");
if (!aNode || !aParent || !aEditor)
return NS_ERROR_NULL_POINTER;
mNode = do_QueryInterface(aNode);
mParent = do_QueryInterface(aParent);
mOffset = aOffset;
mEditor = aEditor;
if (!mNode || !mParent || !mEditor)
return NS_ERROR_INVALID_ARG;
return NS_OK;
}
InsertElementTxn::~InsertElementTxn()
{
}
NS_IMETHODIMP InsertElementTxn::Do(void)
{
if (gNoisy)
{
nsCOMPtr<nsIContent>nodeAsContent = do_QueryInterface(mNode);
nsCOMPtr<nsIContent>parentAsContent = do_QueryInterface(mParent);
printf("%p Do Insert Element of %p into parent %p at offset %d\n",
this, nodeAsContent.get(), parentAsContent.get(), mOffset);
}
if (!mNode || !mParent)
return NS_ERROR_NULL_POINTER;
nsresult result;
nsCOMPtr<nsIDOMNode>refNode;
//if (0!=mOffset)
{ // get a ref node
PRInt32 i=0;
result = mParent->GetFirstChild(getter_AddRefs(refNode));
if (NS_SUCCEEDED(result) && refNode)
{
for (; i<mOffset; i++)
{
nsCOMPtr<nsIDOMNode>nextSib;
result = refNode->GetNextSibling(getter_AddRefs(nextSib));
if (NS_FAILED(result)) {
break; // couldn't get a next sibling, so make aNode the first child
}
refNode = do_QueryInterface(nextSib);
if (!refNode) {
break; // couldn't get a next sibling, so make aNode the first child
}
}
}
}
nsCOMPtr<nsIDOMNode> resultNode;
result = mParent->InsertBefore(mNode, refNode, getter_AddRefs(resultNode));
if (NS_SUCCEEDED(result) && resultNode)
{
nsCOMPtr<nsIDOMSelection> selection;
result = mEditor->GetSelection(getter_AddRefs(selection));
if ((NS_SUCCEEDED(result)) && selection)
{ // place the selection just after the inserted element
selection->Collapse(mParent, mOffset+1);
//selection->Extend(mParent, mOffset+1);
}
}
return result;
}
NS_IMETHODIMP InsertElementTxn::Undo(void)
{
if (gNoisy) { printf("%p Undo Insert Element of %p into parent %p at offset %d\n",
this, mNode.get(), mParent.get(), mOffset); }
if (!mNode || !mParent)
return NS_ERROR_NULL_POINTER;
nsCOMPtr<nsIDOMNode> resultNode;
nsresult result = mParent->RemoveChild(mNode, getter_AddRefs(resultNode));
return result;
}
NS_IMETHODIMP InsertElementTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
if (nsnull!=aDidMerge)
*aDidMerge=PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP InsertElementTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_OK;
}
NS_IMETHODIMP InsertElementTxn::GetUndoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Remove Element: ";
}
return NS_OK;
}
NS_IMETHODIMP InsertElementTxn::GetRedoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Insert Element: ";
}
return NS_OK;
}

View File

@@ -1,88 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef InsertElementTxn_h__
#define InsertElementTxn_h__
#include "EditTxn.h"
#include "nsIEditor.h"
#include "nsIDOMNode.h"
#include "nsCOMPtr.h"
#define INSERT_ELEMENT_TXN_CID \
{/* b5762440-cbb0-11d2-86db-000064657374 */ \
0xb5762440, 0xcbb0, 0x11d2, \
{0x86, 0xdb, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74} }
/**
* A transaction that inserts a single element
*/
class InsertElementTxn : public EditTxn
{
public:
static const nsIID& GetCID() { static nsIID iid = INSERT_ELEMENT_TXN_CID; return iid; }
/** initialize the transaction.
* @param aNode the node to insert
* @param aParent the node to insert into
* @param aOffset the offset in aParent to insert aNode
*/
NS_IMETHOD Init(nsIDOMNode *aNode,
nsIDOMNode *aParent,
PRInt32 aOffset,
nsIEditor *aEditor);
private:
InsertElementTxn();
public:
virtual ~InsertElementTxn();
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
protected:
/** the element to insert */
nsCOMPtr<nsIDOMNode> mNode;
/** the node into which the new node will be inserted */
nsCOMPtr<nsIDOMNode> mParent;
/** the editor for this transaction */
nsIEditor* mEditor;
/** the index in mParent for the new node */
PRInt32 mOffset;
friend class TransactionFactory;
};
#endif

View File

@@ -1,235 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "InsertTextTxn.h"
#include "nsEditor.h"
#include "nsIDOMCharacterData.h"
#include "nsIDOMSelection.h"
#include "nsIPresShell.h"
#include "EditAggregateTxn.h"
static NS_DEFINE_IID(kIDOMSelectionIID, NS_IDOMSELECTION_IID);
#ifdef NS_DEBUG
static PRBool gNoisy = PR_FALSE;
#else
static const PRBool gNoisy = PR_FALSE;
#endif
nsIAtom *InsertTextTxn::gInsertTextTxnName;
nsresult InsertTextTxn::ClassInit()
{
if (nsnull==gInsertTextTxnName)
gInsertTextTxnName = NS_NewAtom("NS_InsertTextTxn");
return NS_OK;
}
InsertTextTxn::InsertTextTxn()
: EditTxn()
{
}
InsertTextTxn::~InsertTextTxn()
{
}
NS_IMETHODIMP InsertTextTxn::Init(nsIDOMCharacterData *aElement,
PRUint32 aOffset,
const nsString &aStringToInsert,
nsIPresShell *aPresShell)
{
#if 0 //def DEBUG_cmanske
nsString text;
aElement->GetData(text);
printf("InsertTextTxn: Offset to insert at = %d. Text of the node to insert into:\n", aOffset);
wprintf(text.GetUnicode());
printf("\n");
#endif
mElement = do_QueryInterface(aElement);
mOffset = aOffset;
mStringToInsert = aStringToInsert;
mPresShell = aPresShell;
return NS_OK;
}
NS_IMETHODIMP InsertTextTxn::Do(void)
{
if (gNoisy) { printf("Do Insert Text element = %p\n", mElement.get()); }
// advance caret: This requires the presentation shell to get the selection.
nsCOMPtr<nsIDOMSelection> selection;
nsresult result = mPresShell->GetSelection(SELECTION_NORMAL, getter_AddRefs(selection));
NS_ASSERTION(selection,"Could not get selection in InsertTextTxn::Do\n");
if (NS_SUCCEEDED(result) && selection) {
result = mElement->InsertData(mOffset, mStringToInsert);
if (NS_SUCCEEDED(result)) {
result = selection->Collapse(mElement, mOffset+mStringToInsert.Length());
NS_ASSERTION((NS_SUCCEEDED(result)), "selection could not be collapsed after insert.");
}
}
return result;
}
NS_IMETHODIMP InsertTextTxn::Undo(void)
{
if (gNoisy) { printf("Undo Insert Text element = %p\n", mElement.get()); }
nsresult result;
PRUint32 length = mStringToInsert.Length();
result = mElement->DeleteData(mOffset, length);
if (NS_SUCCEEDED(result))
{ // set the selection to the insertion point where the string was removed
nsCOMPtr<nsIDOMSelection> selection;
result = mPresShell->GetSelection(SELECTION_NORMAL, getter_AddRefs(selection));
if (NS_SUCCEEDED(result) && selection) {
result = selection->Collapse(mElement, mOffset);
NS_ASSERTION((NS_SUCCEEDED(result)), "selection could not be collapsed after undo of insert.");
}
}
return result;
}
NS_IMETHODIMP InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
// set out param default value
if (nsnull!=aDidMerge)
*aDidMerge=PR_FALSE;
nsresult result = NS_OK;
if ((nsnull!=aDidMerge) && (nsnull!=aTransaction))
{
// if aTransaction isa InsertTextTxn, and if the selection hasn't changed,
// then absorb it
InsertTextTxn *otherInsTxn = nsnull;
aTransaction->QueryInterface(InsertTextTxn::GetCID(), (void **)&otherInsTxn);
if (otherInsTxn)
{
if (PR_TRUE==IsSequentialInsert(otherInsTxn))
{
nsAutoString otherData;
otherInsTxn->GetData(otherData);
mStringToInsert += otherData;
*aDidMerge = PR_TRUE;
if (gNoisy) { printf("InsertTextTxn assimilated %p\n", aTransaction); }
}
NS_RELEASE(otherInsTxn);
}
else
{ // the next InsertTextTxn might be inside an aggregate that we have special knowledge of
EditAggregateTxn *otherTxn = nsnull;
aTransaction->QueryInterface(EditAggregateTxn::GetCID(), (void **)&otherTxn);
if (otherTxn)
{
nsCOMPtr<nsIAtom> txnName;
otherTxn->GetName(getter_AddRefs(txnName));
if (txnName && txnName.get()==gInsertTextTxnName)
{ // yep, it's one of ours. By definition, it must contain only
// another aggregate with a single child,
// or a single InsertTextTxn
nsCOMPtr<EditTxn> childTxn;
otherTxn->GetTxnAt(0, getter_AddRefs(childTxn));
if (childTxn)
{
nsCOMPtr<InsertTextTxn> otherInsertTxn;
otherInsertTxn = do_QueryInterface(childTxn);
if (otherInsertTxn)
{
if (PR_TRUE==IsSequentialInsert(otherInsertTxn))
{
nsAutoString otherData;
otherInsertTxn->GetData(otherData);
mStringToInsert += otherData;
*aDidMerge = PR_TRUE;
if (gNoisy) { printf("InsertTextTxn assimilated %p\n", aTransaction); }
}
}
}
}
NS_RELEASE(otherTxn);
}
}
}
return result;
}
NS_IMETHODIMP InsertTextTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_OK;
}
NS_IMETHODIMP InsertTextTxn::GetUndoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Remove Text: ";
*aString += mStringToInsert;
}
return NS_OK;
}
NS_IMETHODIMP InsertTextTxn::GetRedoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Insert Text: ";
*aString += mStringToInsert;
}
return NS_OK;
}
/* ============= nsISupports implementation ====================== */
NS_IMETHODIMP
InsertTextTxn::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (nsnull == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(InsertTextTxn::GetCID())) {
*aInstancePtr = (void*)(InsertTextTxn*)this;
NS_ADDREF_THIS();
return NS_OK;
}
return (EditTxn::QueryInterface(aIID, aInstancePtr));
}
/* ============ protected methods ================== */
NS_IMETHODIMP InsertTextTxn::GetData(nsString& aResult)
{
aResult = mStringToInsert;
return NS_OK;
}
PRBool InsertTextTxn::IsSequentialInsert(InsertTextTxn *aOtherTxn)
{
NS_ASSERTION(nsnull!=aOtherTxn, "null param");
PRBool result=PR_FALSE;
if (nsnull!=aOtherTxn)
{
if (aOtherTxn->mElement == mElement)
{
// here, we need to compare offsets.
PRInt32 length = mStringToInsert.Length();
if (aOtherTxn->mOffset==(mOffset+length))
{
result = PR_TRUE;
}
}
}
return result;
}

View File

@@ -1,112 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef InsertTextTxn_h__
#define InsertTextTxn_h__
#include "EditTxn.h"
#include "nsIDOMCharacterData.h"
#include "nsCOMPtr.h"
#define INSERT_TEXT_TXN_CID \
{/* 93276f00-ab2c-11d2-8f4b-006008159b0c*/ \
0x93276f00, 0xab2c, 0x11d2, \
{0x8f, 0xb4, 0x0, 0x60, 0x8, 0x15, 0x9b, 0xc} }
class nsIPresShell;
/**
* A transaction that inserts text into a content node.
*/
class InsertTextTxn : public EditTxn
{
public:
static const nsIID& GetCID() { static nsIID iid = INSERT_TEXT_TXN_CID; return iid; }
virtual ~InsertTextTxn();
/** used to name aggregate transactions that consist only of a single InsertTextTxn,
* or a DeleteSelection followed by an InsertTextTxn.
*/
static nsIAtom *gInsertTextTxnName;
/** initialize the transaction
* @param aElement the text content node
* @param aOffset the location in aElement to do the insertion
* @param aString the new text to insert
* @param aPresShell used to get and set the selection
*/
NS_IMETHOD Init(nsIDOMCharacterData *aElement,
PRUint32 aOffset,
const nsString& aString,
nsIPresShell* aPresShell);
private:
InsertTextTxn();
public:
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
// nsISupports declarations
// override QueryInterface to handle InsertTextTxn request
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);
/** return the string data associated with this transaction */
NS_IMETHOD GetData(nsString& aResult);
/** must be called before any InsertTextTxn is instantiated */
static nsresult ClassInit();
protected:
/** return PR_TRUE if aOtherTxn immediately follows this txn */
virtual PRBool IsSequentialInsert(InsertTextTxn *aOtherTxn);
/** the text element to operate upon */
nsCOMPtr<nsIDOMCharacterData> mElement;
/** the offset into mElement where the insertion is to take place */
PRUint32 mOffset;
/** the text to insert into mElement at mOffset */
nsString mStringToInsert;
/** the presentation shell, which we'll need to get the selection */
nsIPresShell* mPresShell;
friend class TransactionFactory;
friend class nsDerivedSafe<InsertTextTxn>; // work around for a compiler bug
};
#endif

View File

@@ -1,181 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "JoinElementTxn.h"
#include "nsEditor.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMCharacterData.h"
#include "nsIDOMSelection.h"
#ifdef NS_DEBUG
static PRBool gNoisy = PR_FALSE;
#else
static const PRBool gNoisy = PR_FALSE;
#endif
JoinElementTxn::JoinElementTxn()
: EditTxn()
{
}
NS_IMETHODIMP JoinElementTxn::Init(nsIEditor *aEditor,
nsIDOMNode *aLeftNode,
nsIDOMNode *aRightNode)
{
mEditor = aEditor;
mLeftNode = do_QueryInterface(aLeftNode);
mRightNode = do_QueryInterface(aRightNode);
mOffset=0;
return NS_OK;
}
JoinElementTxn::~JoinElementTxn()
{
}
// After Do() and Redo(), the left node is removed from the content tree and right node remains.
NS_IMETHODIMP JoinElementTxn::Do(void)
{
if (gNoisy) { printf("%p Do Join of %p and %p\n", this, mLeftNode.get(), mRightNode.get()); }
nsresult result;
if ((mLeftNode) && (mRightNode))
{ // get the parent node
nsCOMPtr<nsIDOMNode>leftParent;
result = mLeftNode->GetParentNode(getter_AddRefs(leftParent));
if ((NS_SUCCEEDED(result)) && (leftParent))
{ // verify that mLeftNode and mRightNode have the same parent
nsCOMPtr<nsIDOMNode>rightParent;
result = mRightNode->GetParentNode(getter_AddRefs(rightParent));
if ((NS_SUCCEEDED(result)) && (rightParent))
{
if (leftParent==rightParent)
{
mParent= do_QueryInterface(leftParent); // set this instance mParent.
// Other methods will see a non-null mParent and know all is well
nsCOMPtr<nsIDOMNodeList> childNodes;
result = mLeftNode->GetChildNodes(getter_AddRefs(childNodes));
if ((NS_SUCCEEDED(result)) && (childNodes)) {
childNodes->GetLength(&mOffset);
}
else
{
nsCOMPtr<nsIDOMCharacterData> leftNodeAsText;
leftNodeAsText = do_QueryInterface(mLeftNode);
if (leftNodeAsText) {
leftNodeAsText->GetLength(&mOffset);
}
}
result = nsEditor::JoinNodesImpl(mRightNode, mLeftNode, mParent, PR_FALSE);
if (NS_SUCCEEDED(result))
{
if (gNoisy) { printf(" left node = %p removed\n", mLeftNode.get()); }
nsCOMPtr<nsIDOMSelection>selection;
mEditor->GetSelection(getter_AddRefs(selection));
if (selection)
{
selection->Collapse(mRightNode, mOffset);
}
}
}
else
{
NS_ASSERTION(PR_FALSE, "2 nodes do not have same parent");
return NS_ERROR_INVALID_ARG;
}
}
}
}
return result;
}
//XXX: what if instead of split, we just deleted the unneeded children of mRight
// and re-inserted mLeft?
NS_IMETHODIMP JoinElementTxn::Undo(void)
{
if (gNoisy) { printf("%p Undo Join, right node = %p\n", this, mRightNode.get()); }
NS_ASSERTION(mRightNode && mLeftNode && mParent, "bad state");
if (!mRightNode || !mLeftNode || !mParent) {
return NS_ERROR_NOT_INITIALIZED;
}
nsresult result;
nsCOMPtr<nsIDOMNode>resultNode;
// first, massage the existing node so it is in its post-split state
nsCOMPtr<nsIDOMCharacterData>rightNodeAsText;
rightNodeAsText = do_QueryInterface(mRightNode);
if (rightNodeAsText)
{
result = rightNodeAsText->DeleteData(0, mOffset);
}
else
{
nsCOMPtr<nsIDOMNode>child;
nsCOMPtr<nsIDOMNode>nextSibling;
result = mRightNode->GetFirstChild(getter_AddRefs(child));
PRUint32 i;
for (i=0; i<mOffset; i++)
{
if (NS_FAILED(result)) {return result;}
if (!child) {return NS_ERROR_NULL_POINTER;}
child->GetNextSibling(getter_AddRefs(nextSibling));
result = mLeftNode->AppendChild(child, getter_AddRefs(resultNode));
child = do_QueryInterface(nextSibling);
}
}
// second, re-insert the left node into the tree
result = mParent->InsertBefore(mLeftNode, mRightNode, getter_AddRefs(resultNode));
return result;
}
NS_IMETHODIMP JoinElementTxn::GetIsTransient(PRBool *aIsTransient)
{
if (nsnull!=aIsTransient)
*aIsTransient = PR_FALSE;
return NS_OK;
}
nsresult JoinElementTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
if (nsnull!=aDidMerge)
*aDidMerge=PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP JoinElementTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_OK;
}
NS_IMETHODIMP JoinElementTxn::GetUndoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Join Element";
}
return NS_OK;
}
NS_IMETHODIMP JoinElementTxn::GetRedoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Split Element";
}
return NS_OK;
}

View File

@@ -1,98 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef JoinElementTxn_h__
#define JoinElementTxn_h__
#include "EditTxn.h"
#include "nsIDOMNode.h"
#include "nsCOMPtr.h"
#include "nsIEditor.h"
#define JOIN_ELEMENT_TXN_CID \
{/* 9bc5f9f0-ac48-11d2-86d8-000064657374 */ \
0x9bc5f9f0, 0xac48, 0x11d2, \
{0x86, 0xd8, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74} }
/**
* A transaction that joins two elements E1 (left node) and E2 (right node)
* into a single node E.
* The children of E are the children of E1 followed by the children of E2.
* After Do() and Redo(), E1 is removed from the content tree and E2 remains.
*/
class JoinElementTxn : public EditTxn
{
public:
static const nsIID& GetCID() { static nsIID iid = JOIN_ELEMENT_TXN_CID; return iid; }
/** initialize the transaction
* @param aEditor the provider of core editing operations
* @param aLeftNode the first of two nodes to join
* @param aRightNode the second of two nodes to join
*/
NS_IMETHOD Init(nsIEditor *aEditor,
nsIDOMNode *aLeftNode,
nsIDOMNode *aRightNode);
protected:
JoinElementTxn();
public:
virtual ~JoinElementTxn();
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
// NS_IMETHOD Redo(void);
NS_IMETHOD GetIsTransient(PRBool *aIsTransient);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
protected:
/** the elements to operate upon.
* After the merge, mRightNode remains and mLeftNode is removed from the content tree.
*/
nsCOMPtr<nsIDOMNode> mLeftNode;
nsCOMPtr<nsIDOMNode> mRightNode;
/** the offset into mNode where the children of mElement are split (for undo).<BR>
* mOffset is the index of the first child in the right node.
* -1 means the left node had no children.
*/
PRUint32 mOffset;
/** the parent node containing mLeftNode and mRightNode */
nsCOMPtr<nsIDOMNode> mParent;
nsIEditor* mEditor;
friend class TransactionFactory;
};
#endif

View File

@@ -1,78 +0,0 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
DEPTH=../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
LIBRARY_NAME = ender
IS_COMPONENT = 1
CPPSRCS = \
nsEditor.cpp \
nsEditorUtils.cpp \
nsEditorRegistration.cpp \
nsTextEditRules.cpp \
TextEditorTest.cpp \
nsHTMLEditRules.cpp \
nsEditorEventListeners.cpp \
nsEditProperty.cpp \
nsEditorFactory.cpp \
nsHTMLEditor.cpp \
ChangeAttributeTxn.cpp \
EditTxn.cpp \
EditAggregateTxn.cpp \
EditTable.cpp \
InsertTextTxn.cpp \
nsInsertHTMLTxn.cpp \
PlaceholderTxn.cpp \
DeleteTextTxn.cpp \
CreateElementTxn.cpp \
InsertElementTxn.cpp \
DeleteElementTxn.cpp \
DeleteRangeTxn.cpp \
SplitElementTxn.cpp \
JoinElementTxn.cpp \
nsStyleSheetTxns.cpp \
TransactionFactory.cpp \
TypeInState.cpp \
nsInternetCiter.cpp \
nsAOLCiter.cpp \
nsInterfaceState.cpp \
nsEditorShell.cpp \
nsEditorShellFactory.cpp \
IMETextTxn.cpp \
IMECommitTxn.cpp \
$(NULL)
ifdef ENABLE_JS_EDITOR_LOG
DEFINES += -DENABLE_JS_EDITOR_LOG
CPPSRCS += \
nsJSEditorLog.cpp \
nsJSTxnLog.cpp \
$(NULL)
endif
MODULE = editor
include $(topsrcdir)/config/config.mk
include $(topsrcdir)/config/rules.mk

View File

@@ -1,76 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "PlaceholderTxn.h"
#include "nsVoidArray.h"
#ifdef NS_DEBUG
static PRBool gNoisy = PR_TRUE;
#else
static const PRBool gNoisy = PR_FALSE;
#endif
PlaceholderTxn::PlaceholderTxn()
: EditAggregateTxn()
{
mAbsorb=PR_TRUE;
}
PlaceholderTxn::~PlaceholderTxn()
{
}
NS_IMETHODIMP PlaceholderTxn::Do(void)
{
if (gNoisy) { printf("PlaceholderTxn Do\n"); }
return NS_OK;
}
NS_IMETHODIMP PlaceholderTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
// set out param default value
if (nsnull!=aDidMerge)
*aDidMerge=PR_FALSE;
nsresult result = NS_OK;
if ((nsnull!=aDidMerge) && (nsnull!=aTransaction))
{
EditTxn *editTxn = (EditTxn*)aTransaction; //XXX: hack, not safe! need nsIEditTransaction!
if (PR_TRUE==mAbsorb)
{ // yep, it's one of ours. Assimilate it.
AppendChild(editTxn);
*aDidMerge = PR_TRUE;
if (gNoisy) { printf("Placeholder txn assimilated %p\n", aTransaction); }
}
else
{ // let our last child txn make the choice
PRInt32 count = mChildren->Count();
if (0<count)
{
EditTxn *lastTxn = (EditTxn*)(mChildren->ElementAt(count-1));
if (lastTxn)
{
lastTxn->Merge(aDidMerge, aTransaction);
}
}
}
}
return result;
}

View File

@@ -1,69 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef AggregatePlaceholderTxn_h__
#define AggregatePlaceholderTxn_h__
#include "EditAggregateTxn.h"
#define PLACEHOLDER_TXN_CID \
{/* {0CE9FB00-D9D1-11d2-86DE-000064657374} */ \
0x0CE9FB00, 0xD9D1, 0x11d2, \
{0x86, 0xde, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74} }
/**
* An aggregate transaction that knows how to absorb all subsequent
* transactions with the same name. This transaction does not "Do" anything.
* But it absorbs other transactions via merge, and can undo/redo the
* transactions it has absorbed.
*/
class PlaceholderTxn : public EditAggregateTxn
{
public:
static const nsIID& GetCID() { static nsIID iid = PLACEHOLDER_TXN_CID; return iid; }
private:
PlaceholderTxn();
public:
virtual ~PlaceholderTxn();
NS_IMETHOD Do(void);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD SetAbsorb(PRBool aAbsorb);
friend class TransactionFactory;
protected:
PRBool mAbsorb;
};
inline NS_IMETHODIMP PlaceholderTxn::SetAbsorb(PRBool aAbsorb)
{
mAbsorb = aAbsorb;
return NS_OK;
};
#endif

View File

@@ -1,226 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "SplitElementTxn.h"
#include "nsEditor.h"
#include "nsIDOMNode.h"
#include "nsIDOMSelection.h"
#include "nsIDOMCharacterData.h"
#ifdef NS_DEBUG
static PRBool gNoisy = PR_FALSE;
#else
static const PRBool gNoisy = PR_FALSE;
#endif
// note that aEditor is not refcounted
SplitElementTxn::SplitElementTxn()
: EditTxn()
{
}
NS_IMETHODIMP SplitElementTxn::Init(nsIEditor *aEditor,
nsIDOMNode *aNode,
PRInt32 aOffset)
{
mEditor = aEditor;
mExistingRightNode = do_QueryInterface(aNode);
mOffset = aOffset;
return NS_OK;
}
SplitElementTxn::~SplitElementTxn()
{
}
NS_IMETHODIMP SplitElementTxn::Do(void)
{
if (gNoisy) { printf("%p Do Split of node %p offset %d\n", this, mExistingRightNode.get(), mOffset); }
NS_ASSERTION(mExistingRightNode, "bad state");
if (!mExistingRightNode) {
return NS_ERROR_NOT_INITIALIZED;
}
// create a new node
nsresult result = mExistingRightNode->CloneNode(PR_FALSE, getter_AddRefs(mNewLeftNode));
NS_ASSERTION(((NS_SUCCEEDED(result)) && (mNewLeftNode)), "could not create element.");
if ((NS_SUCCEEDED(result)) && (mNewLeftNode))
{
if (gNoisy) { printf(" created left node = %p\n", mNewLeftNode.get()); }
// get the parent node
result = mExistingRightNode->GetParentNode(getter_AddRefs(mParent));
// insert the new node
if ((NS_SUCCEEDED(result)) && (mParent))
{
result = nsEditor::SplitNodeImpl(mExistingRightNode, mOffset, mNewLeftNode, mParent);
if (NS_SUCCEEDED(result) && mNewLeftNode)
{
nsCOMPtr<nsIDOMSelection>selection;
mEditor->GetSelection(getter_AddRefs(selection));
if (selection)
{
selection->Collapse(mNewLeftNode, mOffset);
}
}
else {
result = NS_ERROR_NOT_IMPLEMENTED;
}
}
}
return result;
}
NS_IMETHODIMP SplitElementTxn::Undo(void)
{
if (gNoisy) {
printf("%p Undo Split of existing node %p and new node %p offset %d\n",
this, mExistingRightNode.get(), mNewLeftNode.get(), mOffset);
}
NS_ASSERTION(mExistingRightNode && mNewLeftNode && mParent, "bad state");
if (!mExistingRightNode || !mNewLeftNode || !mParent) {
return NS_ERROR_NOT_INITIALIZED;
}
// this assumes Do inserted the new node in front of the prior existing node
nsresult result;
result = nsEditor::JoinNodesImpl(mExistingRightNode, mNewLeftNode, mParent, PR_FALSE);
if (gNoisy)
{
printf("** after join left child node %p into right node %p\n", mNewLeftNode.get(), mExistingRightNode.get());
if (gNoisy) {mEditor->DebugDumpContent(); } // DEBUG
}
if (NS_SUCCEEDED(result))
{
if (gNoisy) { printf(" left node = %p removed\n", mNewLeftNode.get()); }
nsCOMPtr<nsIDOMSelection>selection;
mEditor->GetSelection(getter_AddRefs(selection));
if (selection)
{
selection->Collapse(mExistingRightNode, mOffset);
}
}
else {
result = NS_ERROR_NOT_IMPLEMENTED;
}
return result;
}
/* redo cannot simply resplit the right node, because subsequent transactions
* on the redo stack may depend on the left node existing in its previous state.
*/
NS_IMETHODIMP SplitElementTxn::Redo(void)
{
NS_ASSERTION(mExistingRightNode && mNewLeftNode && mParent, "bad state");
if (!mExistingRightNode || !mNewLeftNode || !mParent) {
return NS_ERROR_NOT_INITIALIZED;
}
if (gNoisy) {
printf("%p Redo Split of existing node %p and new node %p offset %d\n",
this, mExistingRightNode.get(), mNewLeftNode.get(), mOffset);
if (gNoisy) {mEditor->DebugDumpContent(); } // DEBUG
}
nsresult result;
nsCOMPtr<nsIDOMNode>resultNode;
// first, massage the existing node so it is in its post-split state
nsCOMPtr<nsIDOMCharacterData>rightNodeAsText;
rightNodeAsText = do_QueryInterface(mExistingRightNode);
if (rightNodeAsText)
{
result = rightNodeAsText->DeleteData(0, mOffset);
if (gNoisy)
{
printf("** after delete of text in right text node %p offset %d\n", rightNodeAsText.get(), mOffset);
if (gNoisy) {mEditor->DebugDumpContent(); } // DEBUG
}
}
else
{
nsCOMPtr<nsIDOMNode>child;
nsCOMPtr<nsIDOMNode>nextSibling;
result = mExistingRightNode->GetFirstChild(getter_AddRefs(child));
PRInt32 i;
for (i=0; i<mOffset; i++)
{
if (NS_FAILED(result)) {return result;}
if (!child) {return NS_ERROR_NULL_POINTER;}
child->GetNextSibling(getter_AddRefs(nextSibling));
result = mExistingRightNode->RemoveChild(child, getter_AddRefs(resultNode));
if (NS_SUCCEEDED(result))
{
result = mNewLeftNode->AppendChild(child, getter_AddRefs(resultNode));
if (gNoisy)
{
printf("** move child node %p from right node %p to left node %p\n", child.get(), mExistingRightNode.get(), mNewLeftNode.get());
if (gNoisy) {mEditor->DebugDumpContent(); } // DEBUG
}
}
child = do_QueryInterface(nextSibling);
}
}
// second, re-insert the left node into the tree
result = mParent->InsertBefore(mNewLeftNode, mExistingRightNode, getter_AddRefs(resultNode));
if (gNoisy)
{
printf("** reinsert left child node %p before right node %p\n", mNewLeftNode.get(), mExistingRightNode.get());
if (gNoisy) {mEditor->DebugDumpContent(); } // DEBUG
}
return result;
}
NS_IMETHODIMP SplitElementTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
if (nsnull!=aDidMerge)
*aDidMerge=PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP SplitElementTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_OK;
}
NS_IMETHODIMP SplitElementTxn::GetUndoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Join Element";
}
return NS_OK;
}
NS_IMETHODIMP SplitElementTxn::GetRedoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Split Element";
}
return NS_OK;
}
NS_IMETHODIMP SplitElementTxn::GetNewNode(nsIDOMNode **aNewNode)
{
if (!aNewNode)
return NS_ERROR_NULL_POINTER;
if (!mNewLeftNode)
return NS_ERROR_NOT_INITIALIZED;
*aNewNode = mNewLeftNode;
NS_ADDREF(*aNewNode);
return NS_OK;
}

View File

@@ -1,96 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef SplitElementTxn_h__
#define SplitElementTxn_h__
#include "EditTxn.h"
#include "nsIDOMNode.h"
#include "nsCOMPtr.h"
#include "nsIEditor.h"
#define SPLIT_ELEMENT_TXN_CID \
{/* 690c6290-ac48-11d2-86d8-000064657374 */ \
0x690c6290, 0xac48, 0x11d2, \
{0x86, 0xd8, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74} }
/**
* A transaction that splits an element E into two identical nodes, E1 and E2
* with the children of E divided between E1 and E2.
*/
class SplitElementTxn : public EditTxn
{
public:
static const nsIID& GetCID() { static nsIID iid = SPLIT_ELEMENT_TXN_CID; return iid; }
/** initialize the transaction.
* @param aEditor the provider of core editing operations
* @param aNode the node to split
* @param aOffset the location within aNode to do the split.
* aOffset may refer to children of aNode, or content of aNode.
* The left node will have child|content 0..aOffset-1.
*/
NS_IMETHOD Init (nsIEditor *aEditor,
nsIDOMNode *aNode,
PRInt32 aOffset);
protected:
SplitElementTxn();
public:
virtual ~SplitElementTxn();
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
NS_IMETHOD Redo(void);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
NS_IMETHOD GetNewNode(nsIDOMNode **aNewNode);
protected:
/** the element to operate upon */
nsCOMPtr<nsIDOMNode> mExistingRightNode;
/** the offset into mElement where the children of mElement are split.<BR>
* mOffset is the index of the first child in the right node.
* -1 means the new node gets no children.
*/
PRInt32 mOffset;
/** the element we create when splitting mElement */
nsCOMPtr<nsIDOMNode> mNewLeftNode;
/** the parent shared by mExistingRightNode and mNewLeftNode */
nsCOMPtr<nsIDOMNode> mParent;
nsIEditor* mEditor;
friend class TransactionFactory;
};
#endif

View File

@@ -1,250 +0,0 @@
/* -*- Mode: C++ tab-width: 2 indent-tabs-mode: nil c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL") you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include <stdio.h>
#include "nsIEditor.h"
#include "TextEditorTest.h"
#include "nsIDOMSelection.h"
#include "nsIDOMCharacterData.h"
#include "nsIDOMDocument.h"
#include "nsIDOMNode.h"
#include "nsIDOMNodeList.h"
#include "nsIEditProperty.h"
#include "nsString.h"
#ifdef NS_DEBUG
#define TEST_RESULT(r) { if (NS_FAILED(r)) {printf("FAILURE result=%X\n", r); return r; } }
#define TEST_POINTER(p) { if (!p) {printf("FAILURE null pointer\n"); return NS_ERROR_NULL_POINTER; } }
TextEditorTest::TextEditorTest()
{
printf("constructed a TextEditorTest\n");
}
TextEditorTest::~TextEditorTest()
{
printf("destroyed a TextEditorTest\n");
}
void TextEditorTest::Run(nsIEditor *aEditor, PRInt32 *outNumTests, PRInt32 *outNumTestsFailed)
{
if (!aEditor) return;
mTextEditor = do_QueryInterface(aEditor);
mEditor = do_QueryInterface(aEditor);
RunUnitTest(outNumTests, outNumTestsFailed);
}
nsresult TextEditorTest::RunUnitTest(PRInt32 *outNumTests, PRInt32 *outNumTestsFailed)
{
nsresult result;
if (!outNumTests || !outNumTestsFailed)
return NS_ERROR_NULL_POINTER;
*outNumTests = 0;
*outNumTestsFailed = 0;
result = InitDoc();
TEST_RESULT(result);
// shouldn't we just bail on error here?
// insert some simple text
nsString docContent("1234567890abcdefghij1234567890");
result = mTextEditor->InsertText(docContent);
TEST_RESULT(result);
(*outNumTests)++;
(*outNumTestsFailed) += (NS_FAILED(result) != NS_OK);
// insert some more text
nsString docContent2("Moreover, I am cognizant of the interrelatedness of all communities and states. I cannot sit idly by in Atlanta and not be concerned about what happens in Birmingham. Injustice anywhere is a threat to justice everywhere");
result = mTextEditor->InsertText(docContent2);
TEST_RESULT(result);
(*outNumTests)++;
(*outNumTestsFailed) += (NS_FAILED(result) != NS_OK);
result = TestInsertBreak();
TEST_RESULT(result);
(*outNumTests)++;
(*outNumTestsFailed) += (NS_FAILED(result) != NS_OK);
result = TestTextProperties();
TEST_RESULT(result);
(*outNumTests)++;
(*outNumTestsFailed) += (NS_FAILED(result) != NS_OK);
// get us back to the original document
result = mEditor->Undo(12);
TEST_RESULT(result);
return result;
}
nsresult TextEditorTest::InitDoc()
{
nsresult result = mEditor->SelectAll();
TEST_RESULT(result);
result = mEditor->DeleteSelection(nsIEditor::eDeleteNext);
TEST_RESULT(result);
return result;
}
nsresult TextEditorTest::TestInsertBreak()
{
nsCOMPtr<nsIDOMSelection>selection;
nsresult result = mEditor->GetSelection(getter_AddRefs(selection));
TEST_RESULT(result);
TEST_POINTER(selection.get());
nsCOMPtr<nsIDOMNode>anchor;
result = selection->GetAnchorNode(getter_AddRefs(anchor));
TEST_RESULT(result);
TEST_POINTER(anchor.get());
selection->Collapse(anchor, 0);
// insert one break
printf("inserting a break\n");
result = mTextEditor->InsertBreak();
TEST_RESULT(result);
mEditor->DebugDumpContent();
// insert a second break adjacent to the first
printf("inserting a second break\n");
result = mTextEditor->InsertBreak();
TEST_RESULT(result);
mEditor->DebugDumpContent();
return result;
}
nsresult TextEditorTest::TestTextProperties()
{
nsCOMPtr<nsIDOMDocument>doc;
nsresult result = mEditor->GetDocument(getter_AddRefs(doc));
TEST_RESULT(result);
TEST_POINTER(doc.get());
nsCOMPtr<nsIDOMNodeList>nodeList;
nsAutoString textTag = "__moz_text";
result = doc->GetElementsByTagName(textTag, getter_AddRefs(nodeList));
TEST_RESULT(result);
TEST_POINTER(nodeList.get());
PRUint32 count;
nodeList->GetLength(&count);
NS_ASSERTION(0!=count, "there are no text nodes in the document!");
nsCOMPtr<nsIDOMNode>textNode;
result = nodeList->Item(count-1, getter_AddRefs(textNode));
TEST_RESULT(result);
TEST_POINTER(textNode.get());
// set the whole text node to bold
printf("set the whole first text node to bold\n");
nsCOMPtr<nsIDOMSelection>selection;
result = mEditor->GetSelection(getter_AddRefs(selection));
TEST_RESULT(result);
TEST_POINTER(selection.get());
nsCOMPtr<nsIDOMCharacterData>textData;
textData = do_QueryInterface(textNode);
PRUint32 length;
textData->GetLength(&length);
selection->Collapse(textNode, 0);
selection->Extend(textNode, length);
PRBool any = PR_FALSE;
PRBool all = PR_FALSE;
PRBool first=PR_FALSE;
result = mTextEditor->GetInlineProperty(nsIEditProperty::b, nsnull, nsnull, first, any, all);
TEST_RESULT(result);
NS_ASSERTION(PR_FALSE==first, "first should be false");
NS_ASSERTION(PR_FALSE==any, "any should be false");
NS_ASSERTION(PR_FALSE==all, "all should be false");
result = mTextEditor->SetInlineProperty(nsIEditProperty::b, nsnull, nsnull);
TEST_RESULT(result);
result = mTextEditor->GetInlineProperty(nsIEditProperty::b, nsnull, nsnull, first, any, all);
TEST_RESULT(result);
NS_ASSERTION(PR_TRUE==first, "first should be true");
NS_ASSERTION(PR_TRUE==any, "any should be true");
NS_ASSERTION(PR_TRUE==all, "all should be true");
mEditor->DebugDumpContent();
// remove the bold we just set
printf("set the whole first text node to not bold\n");
result = mTextEditor->RemoveInlineProperty(nsIEditProperty::b, nsnull);
TEST_RESULT(result);
result = mTextEditor->GetInlineProperty(nsIEditProperty::b, nsnull, nsnull, first, any, all);
TEST_RESULT(result);
NS_ASSERTION(PR_FALSE==first, "first should be false");
NS_ASSERTION(PR_FALSE==any, "any should be false");
NS_ASSERTION(PR_FALSE==all, "all should be false");
mEditor->DebugDumpContent();
// set all but the first and last character to bold
printf("set the first text node (1, length-1) to bold and italic, and (2, length-1) to underline.\n");
selection->Collapse(textNode, 1);
selection->Extend(textNode, length-1);
result = mTextEditor->SetInlineProperty(nsIEditProperty::b, nsnull, nsnull);
TEST_RESULT(result);
result = mTextEditor->GetInlineProperty(nsIEditProperty::b, nsnull, nsnull, first, any, all);
TEST_RESULT(result);
NS_ASSERTION(PR_TRUE==first, "first should be true");
NS_ASSERTION(PR_TRUE==any, "any should be true");
NS_ASSERTION(PR_TRUE==all, "all should be true");
mEditor->DebugDumpContent();
// make all that same text italic
result = mTextEditor->SetInlineProperty(nsIEditProperty::i, nsnull, nsnull);
TEST_RESULT(result);
result = mTextEditor->GetInlineProperty(nsIEditProperty::i, nsnull, nsnull, first, any, all);
TEST_RESULT(result);
NS_ASSERTION(PR_TRUE==first, "first should be true");
NS_ASSERTION(PR_TRUE==any, "any should be true");
NS_ASSERTION(PR_TRUE==all, "all should be true");
result = mTextEditor->GetInlineProperty(nsIEditProperty::b, nsnull, nsnull, first, any, all);
TEST_RESULT(result);
NS_ASSERTION(PR_TRUE==first, "first should be true");
NS_ASSERTION(PR_TRUE==any, "any should be true");
NS_ASSERTION(PR_TRUE==all, "all should be true");
mEditor->DebugDumpContent();
// make all the text underlined, except for the first 2 and last 2 characters
result = doc->GetElementsByTagName(textTag, getter_AddRefs(nodeList));
TEST_RESULT(result);
TEST_POINTER(nodeList.get());
nodeList->GetLength(&count);
NS_ASSERTION(0!=count, "there are no text nodes in the document!");
result = nodeList->Item(count-2, getter_AddRefs(textNode));
TEST_RESULT(result);
TEST_POINTER(textNode.get());
textData = do_QueryInterface(textNode);
textData->GetLength(&length);
NS_ASSERTION(length==249, "wrong text node");
selection->Collapse(textNode, 1);
selection->Extend(textNode, length-2);
result = mTextEditor->SetInlineProperty(nsIEditProperty::u, nsnull, nsnull);
TEST_RESULT(result);
result = mTextEditor->GetInlineProperty(nsIEditProperty::u, nsnull, nsnull, first, any, all);
TEST_RESULT(result);
NS_ASSERTION(PR_TRUE==first, "first should be true");
NS_ASSERTION(PR_TRUE==any, "any should be true");
NS_ASSERTION(PR_TRUE==all, "all should be true");
mEditor->DebugDumpContent();
return result;
}
#endif

View File

@@ -1,53 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://wwwt.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 __TextEditorTest_h__
#define __TextEditorTest_h__
#ifdef NS_DEBUG
#include "nsCOMPtr.h"
#include "nsIEditor.h"
#include "nsIHighLevelHTMLEditor.h"
class TextEditorTest
{
public:
void Run(nsIEditor *aEditor, PRInt32 *outNumTests, PRInt32 *outNumTestsFailed);
TextEditorTest();
~TextEditorTest();
protected:
/** create an empty document */
nsresult InitDoc();
nsresult RunUnitTest(PRInt32 *outNumTests, PRInt32 *outNumTestsFailed);
nsresult TestInsertBreak();
nsresult TestTextProperties();
nsCOMPtr<nsIHighLevelHTMLEditor> mTextEditor;
nsCOMPtr<nsIEditor> mEditor;
};
#endif /* NS_DEBUG */
#endif

View File

@@ -1,94 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "TransactionFactory.h"
// transactions this factory knows how to build
#include "EditAggregateTxn.h"
#include "PlaceholderTxn.h"
#include "InsertTextTxn.h"
#include "DeleteTextTxn.h"
#include "CreateElementTxn.h"
#include "InsertElementTxn.h"
#include "nsInsertHTMLTxn.h"
#include "DeleteElementTxn.h"
#include "DeleteRangeTxn.h"
#include "ChangeAttributeTxn.h"
#include "SplitElementTxn.h"
#include "JoinElementTxn.h"
#include "nsStyleSheetTxns.h"
#include "IMETextTxn.h"
#include "IMECommitTxn.h"
TransactionFactory::TransactionFactory()
{
}
TransactionFactory::~TransactionFactory()
{
}
nsresult
TransactionFactory::GetNewTransaction(REFNSIID aTxnType, EditTxn **aResult)
{
nsresult result = NS_OK;
*aResult = nsnull;
if (aTxnType.Equals(InsertTextTxn::GetCID()))
*aResult = new InsertTextTxn();
else if (aTxnType.Equals(DeleteTextTxn::GetCID()))
*aResult = new DeleteTextTxn();
else if (aTxnType.Equals(CreateElementTxn::GetCID()))
*aResult = new CreateElementTxn();
else if (aTxnType.Equals(InsertElementTxn::GetCID()))
*aResult = new InsertElementTxn();
else if (aTxnType.Equals(nsInsertHTMLTxn::GetCID()))
*aResult = new nsInsertHTMLTxn();
else if (aTxnType.Equals(DeleteElementTxn::GetCID()))
*aResult = new DeleteElementTxn();
else if (aTxnType.Equals(DeleteRangeTxn::GetCID()))
*aResult = new DeleteRangeTxn();
else if (aTxnType.Equals(ChangeAttributeTxn::GetCID()))
*aResult = new ChangeAttributeTxn();
else if (aTxnType.Equals(SplitElementTxn::GetCID()))
*aResult = new SplitElementTxn();
else if (aTxnType.Equals(JoinElementTxn::GetCID()))
*aResult = new JoinElementTxn();
else if (aTxnType.Equals(EditAggregateTxn::GetCID()))
*aResult = new EditAggregateTxn();
else if (aTxnType.Equals(IMETextTxn::GetCID()))
*aResult = new IMETextTxn();
else if (aTxnType.Equals(IMECommitTxn::GetCID()))
*aResult = new IMECommitTxn();
else if (aTxnType.Equals(AddStyleSheetTxn::GetCID()))
*aResult = new AddStyleSheetTxn();
else if (aTxnType.Equals(RemoveStyleSheetTxn::GetCID()))
*aResult = new RemoveStyleSheetTxn();
else if (aTxnType.Equals(PlaceholderTxn::GetCID()))
*aResult = new PlaceholderTxn();
else
result = NS_ERROR_NO_INTERFACE;
if (NS_SUCCEEDED(result) && nsnull==*aResult)
result = NS_ERROR_OUT_OF_MEMORY;
if (NS_SUCCEEDED(result))
NS_ADDREF(*aResult);
return result;
}

View File

@@ -1,45 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef TransactionFactory_h__
#define TransactionFactory_h__
#include "nsISupports.h"
class EditTxn;
/**
* This class instantiates and optionally recycles edit transactions
* A recycler would be a separate static object, since this class does not get instantiated
*/
class TransactionFactory
{
protected:
TransactionFactory();
virtual ~TransactionFactory();
public:
/** return a transaction object of aTxnType, refcounted
* @return NS_ERROR_NO_INTERFACE if aTxnType is unknown,
* NS_ERROR_OUT_OF_MEMORY if the allocations fails.
*/
static nsresult GetNewTransaction(REFNSIID aTxnType, EditTxn **aResult);
};
#endif

View File

@@ -1,54 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "TypeInState.h"
NS_IMPL_ADDREF(TypeInState)
NS_IMPL_RELEASE(TypeInState)
NS_IMETHODIMP
TypeInState::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (nsnull == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(nsCOMTypeInfo<nsISupports>::GetIID())) {
*aInstancePtr = (void*)(nsISupports*)this;
NS_ADDREF_THIS();
return NS_OK;
}
if (aIID.Equals(nsIDOMSelectionListener::GetIID())) {
*aInstancePtr = (void*)(nsIDOMSelectionListener*)this;
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
}
TypeInState::~TypeInState()
{
};
NS_IMETHODIMP TypeInState::NotifySelectionChanged()
{
Reset();
return NS_OK;
};

View File

@@ -1,232 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef TypeInState_h__
#define TypeInState_h__
#include "nsIDOMSelectionListener.h"
#include "nsIEditProperty.h"
class TypeInState : public nsIDOMSelectionListener
{
public:
NS_DECL_ISUPPORTS
TypeInState();
void Reset();
virtual ~TypeInState();
NS_IMETHOD NotifySelectionChanged();
void GetEnumForName(nsIAtom *aPropName, PRUint32 &aEnum);
void SetProp(PRUint32 aProp, PRBool aSet);
void SetPropValue(PRUint32 aProp, const nsString &aValue);
PRBool IsSet(PRUint32 aStyle);
PRBool IsAnySet();
void UnSet(PRUint32 aStyle);
void SetBold(PRBool aIsSet);
PRBool GetBold();
void SetItalic(PRBool aIsSet);
PRBool GetItalic();
void SetUnderline(PRBool aIsSet);
PRBool GetUnderline();
void SetFontFace(const nsString &aFace);
void GetFontFace(nsString &aFace);
void SetFontColor(const nsString &aColor);
void GetFontColor(nsString &aColor);
void SetFontSize(const nsString &aSize);
void GetFontSize(nsString &aSize);
protected:
PRBool mBold;
PRBool mItalic;
PRBool mUnderline;
nsString mFontFace;
nsString mFontColor;
nsString mFontSize;
PRUint32 mIsSet;
};
#define NS_TYPEINSTATE_UNKNOWN 0x00000000
#define NS_TYPEINSTATE_BOLD 0x00000001
#define NS_TYPEINSTATE_ITALIC 0x00000002
#define NS_TYPEINSTATE_UNDERLINE 0x00000004
#define NS_TYPEINSTATE_FONTFACE 0x00000008
#define NS_TYPEINSTATE_FONTCOLOR 0x00000010
#define NS_TYPEINSTATE_FONTSIZE 0x00000020
/* ----- inline method definitions ----- */
inline
void TypeInState::Reset()
{
mBold = PR_FALSE;
mItalic = PR_FALSE;
mUnderline = PR_FALSE;
mIsSet = 0;
};
inline
TypeInState::TypeInState()
{
NS_INIT_REFCNT();
Reset();
};
inline
void TypeInState::GetEnumForName(nsIAtom *aPropName, PRUint32 &aEnum)
{
aEnum = NS_TYPEINSTATE_UNKNOWN;
if (nsIEditProperty::b==aPropName) { aEnum = NS_TYPEINSTATE_BOLD; }
else if (nsIEditProperty::i==aPropName) { aEnum = NS_TYPEINSTATE_ITALIC; }
else if (nsIEditProperty::u==aPropName) { aEnum = NS_TYPEINSTATE_UNDERLINE; }
else if (nsIEditProperty::face==aPropName) { aEnum = NS_TYPEINSTATE_FONTFACE; }
else if (nsIEditProperty::color==aPropName) { aEnum = NS_TYPEINSTATE_FONTCOLOR; }
else if (nsIEditProperty::size==aPropName) { aEnum = NS_TYPEINSTATE_FONTSIZE; }
}
inline
PRBool TypeInState::IsSet(PRUint32 aStyle)
{
if ((PRBool)(mIsSet & aStyle))
return PR_TRUE;
else
return PR_FALSE;
};
inline
void TypeInState::UnSet(PRUint32 aStyle)
{
mIsSet &= ~aStyle;
};
inline
PRBool TypeInState::IsAnySet()
{
return (PRBool)(0!=mIsSet);
}
inline
void TypeInState::SetBold(PRBool aIsSet)
{
mBold = aIsSet;
mIsSet |= NS_TYPEINSTATE_BOLD;
};
inline
PRBool TypeInState::GetBold()
{ return mBold;};
inline
void TypeInState::SetItalic(PRBool aIsSet)
{
mItalic = aIsSet;
mIsSet |= NS_TYPEINSTATE_ITALIC;
};
inline
PRBool TypeInState::GetItalic()
{ return mItalic; };
inline
void TypeInState::SetUnderline(PRBool aIsSet)
{
mUnderline = aIsSet;
mIsSet |= NS_TYPEINSTATE_UNDERLINE;
};
inline
PRBool TypeInState::GetUnderline()
{ return mUnderline; };
inline
void TypeInState::SetFontFace(const nsString &aFace)
{
mFontFace = aFace;
mIsSet |= NS_TYPEINSTATE_FONTFACE;
};
inline
void TypeInState::GetFontFace(nsString &aFace)
{ aFace = mFontFace; };
inline
void TypeInState::SetFontColor(const nsString &aColor)
{
mFontColor = aColor;
mIsSet |= NS_TYPEINSTATE_FONTCOLOR;
};
inline
void TypeInState::GetFontColor(nsString &aColor)
{ aColor = mFontColor; };
inline
void TypeInState::SetFontSize(const nsString &aSize)
{
mFontSize = aSize;
mIsSet |= NS_TYPEINSTATE_FONTSIZE;
};
inline
void TypeInState::GetFontSize(nsString &aSize)
{ aSize = mFontSize; };
inline void TypeInState::SetProp(PRUint32 aProp, PRBool aSet)
{
switch (aProp)
{
case NS_TYPEINSTATE_BOLD:
SetBold(aSet);
break;
case NS_TYPEINSTATE_ITALIC:
SetItalic(aSet);
break;
case NS_TYPEINSTATE_UNDERLINE:
SetUnderline(aSet);
break;
}
}
inline void TypeInState::SetPropValue(PRUint32 aProp, const nsString &aValue)
{
switch (aProp)
{
case NS_TYPEINSTATE_FONTFACE:
SetFontFace(aValue);
break;
case NS_TYPEINSTATE_FONTCOLOR:
SetFontColor(aValue);
break;
case NS_TYPEINSTATE_FONTSIZE:
SetFontSize(aValue);
break;
}
}
#endif // TypeInState_h__

View File

@@ -1,150 +0,0 @@
#!nmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
DEPTH=..\..
IGNORE_MANIFEST=1
include <$(DEPTH)/config/config.mak>
LIBRARY_NAME=ender
CPPSRCS = \
nsInsertHTMLTxn.cpp \
nsEditor.cpp \
nsEditorUtils.cpp \
nsEditorRegistration.cpp \
nsTextEditRules.cpp \
nsHTMLEditRules.cpp \
TextEditorTest.cpp \
nsEditorEventListeners.cpp \
nsEditProperty.cpp \
nsEditorFactory.cpp \
EditTxn.cpp \
EditAggregateTxn.cpp \
ChangeAttributeTxn.cpp \
InsertTextTxn.cpp \
DeleteTextTxn.cpp \
PlaceholderTxn.cpp \
CreateElementTxn.cpp \
InsertElementTxn.cpp \
DeleteElementTxn.cpp \
DeleteRangeTxn.cpp \
SplitElementTxn.cpp \
JoinElementTxn.cpp \
nsStyleSheetTxns.cpp \
TransactionFactory.cpp \
TypeInState.cpp \
nsHTMLEditor.cpp \
EditTable.cpp \
nsInternetCiter.cpp \
nsAOLCiter.cpp \
nsInterfaceState.cpp \
nsEditorShell.cpp \
nsEditorShellFactory.cpp \
IMETextTxn.cpp \
IMECommitTxn.cpp \
$(NULL)
CPP_OBJS = \
.\$(OBJDIR)\nsInsertHTMLTxn.obj \
.\$(OBJDIR)\nsEditor.obj \
.\$(OBJDIR)\nsEditorUtils.obj \
.\$(OBJDIR)\nsEditorRegistration.obj \
.\$(OBJDIR)\nsTextEditRules.obj \
.\$(OBJDIR)\TextEditorTest.obj \
.\$(OBJDIR)\nsHTMLEditRules.obj \
.\$(OBJDIR)\nsEditorEventListeners.obj \
.\$(OBJDIR)\nsEditProperty.obj \
.\$(OBJDIR)\nsEditorFactory.obj \
.\$(OBJDIR)\EditTxn.obj \
.\$(OBJDIR)\EditAggregateTxn.obj \
.\$(OBJDIR)\ChangeAttributeTxn.obj \
.\$(OBJDIR)\InsertTextTxn.obj \
.\$(OBJDIR)\DeleteTextTxn.obj \
.\$(OBJDIR)\PlaceholderTxn.obj \
.\$(OBJDIR)\CreateElementTxn.obj \
.\$(OBJDIR)\InsertElementTxn.obj \
.\$(OBJDIR)\DeleteElementTxn.obj \
.\$(OBJDIR)\DeleteRangeTxn.obj \
.\$(OBJDIR)\SplitElementTxn.obj \
.\$(OBJDIR)\JoinElementTxn.obj \
.\$(OBJDIR)\nsStyleSheetTxns.obj \
.\$(OBJDIR)\TransactionFactory.obj \
.\$(OBJDIR)\TypeInState.obj \
.\$(OBJDIR)\nsHTMLEditor.obj \
.\$(OBJDIR)\EditTable.obj \
.\$(OBJDIR)\nsInternetCiter.obj \
.\$(OBJDIR)\nsAOLCiter.obj \
.\$(OBJDIR)\nsInterfaceState.obj \
.\$(OBJDIR)\nsEditorShell.obj \
.\$(OBJDIR)\nsEditorShellFactory.obj \
.\$(OBJDIR)\nsJSEditorLog.obj \
.\$(OBJDIR)\nsJSTxnLog.obj \
.\$(OBJDIR)\IMETextTxn.obj \
.\$(OBJDIR)\IMECommitTxn.obj \
$(NULL)
MODULE=editor
MAKE_OBJ_TYPE = DLL
DLLNAME = ender
DLL=.\$(OBJDIR)\$(DLLNAME).dll
!if defined(ENABLE_JS_EDITOR_LOG)
CPPSRCS += \
nsJSEditorLog.cpp \
nsJSTxnLog.cpp \
$(NULL)
CPP_OBJS += \
.\$(OBJDIR)\nsJSEditorLog.obj \
.\$(OBJDIR)\nsJSTxnLog.obj \
$(NULL)
DEFINES = -DENABLE_JS_EDITOR_LOG $(DEFINES)
!endif
LCFLAGS = \
$(LCFLAGS) \
$(DEFINES) \
$(NULL)
# These are the libraries we need to link with to create the dll
LLIBS= \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\raptorhtmlpars.lib \
$(DIST)\lib\raptorwidget_s.lib \
!ifdef NECKO
$(DIST)\lib\neckoutil_s.lib \
!else
$(DIST)\lib\netlib.lib \
!endif
$(LIBNSPR)
!if "$(MOZ_BITS)"=="32" && defined(MOZ_DEBUG) && defined(GLOWCODE)
LLIBS=$(LLIBS) $(GLOWDIR)\glowcode.lib
!endif
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\components
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).lib $(DIST)\lib
clobber::
rm -f $(DIST)\bin\components\$(DLLNAME).dll
rm -f $(DIST)\lib\$(DLLNAME).lib

View File

@@ -1,82 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsAOLCiter.h"
#include "nsString.h"
/** Mail citations using the AOL style >> This is a citation <<
*/
nsAOLCiter::nsAOLCiter()
{
}
nsAOLCiter::~nsAOLCiter()
{
}
NS_IMPL_ADDREF(nsAOLCiter)
NS_IMPL_RELEASE(nsAOLCiter)
NS_IMETHODIMP
nsAOLCiter::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (nsnull == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(nsCOMTypeInfo<nsISupports>::GetIID()))
{
*aInstancePtr = (void*)this;
NS_ADDREF_THIS();
return NS_OK;
}
if (aIID.Equals(nsICiter::GetIID())) {
*aInstancePtr = (void*)(nsICiter*)this;
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMETHODIMP
nsAOLCiter::GetCiteString(const nsString& aInString, nsString& aOutString)
{
aOutString = "\n\n>> ";
aOutString += aInString;
// See if the last char is a newline, and replace it if so
PRUnichar newline ('\n');
if (aOutString.Last() == newline)
{
aOutString.SetCharAt(' ',aOutString.Length());
aOutString += "<<\n";
}
else
{
aOutString += " <<\n";
}
return NS_OK;
}

View File

@@ -1,41 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsAOLCiter_h__
#define nsAOLCiter_h__
#include "nsICiter.h"
#include "nsString.h"
/** Mail citations using the AOL style >> This is a citation <<
*/
class nsAOLCiter : public nsICiter
{
public:
nsAOLCiter();
virtual ~nsAOLCiter();
//Interfaces for addref and release and queryinterface
//NOTE: Use NS_DECL_ISUPPORTS_INHERITED in any class inherited from nsEditor
NS_DECL_ISUPPORTS
NS_IMETHOD GetCiteString(const nsString& aInString, nsString& aOutString);
};
#endif //nsAOLCiter_h__

View File

@@ -1,131 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://wwwt.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 "nsEditFactory.h"
#include "nsIEditor.h"
#include "nsEditor.h"
#include "nsEditorCID.h"
#include "nsIComponentManager.h"
static NS_DEFINE_IID(kIEditFactoryIID, NS_IEDITORFACTORY_IID);
static NS_DEFINE_CID(kEditorCID, NS_EDITOR_CID);
nsresult
GetEditFactory(nsIFactory **aFactory, const nsCID & aClass)
{
// XXX Note static which never gets released, even on library unload.
// XXX Was an nsCOMPtr but that caused a crash on exit,
// XXX http://bugzilla.mozilla.org/show_bug.cgi?id=7938
PR_EnterMonitor(GetEditorMonitor());
nsEditFactory *factory = new nsEditFactory(aClass);
if (!factory)
return NS_ERROR_OUT_OF_MEMORY;
nsCOMPtr<nsIFactory> pNSIFactory = do_QueryInterface(factory);
if (!pNSIFactory)
return NS_ERROR_NO_INTERFACE;
nsresult result = pNSIFactory->QueryInterface(nsIFactory::GetIID(),
(void **)aFactory);
PR_ExitMonitor(GetEditorMonitor());
return result;
}
////////////////////////////////////////////////////////////////////////////
// from nsISupports
NS_METHOD
nsEditFactory::QueryInterface(const nsIID& aIID, void** aInstancePtr)
{
if (nsnull == aInstancePtr) {
NS_NOTREACHED("!nsEditor");
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(nsIFactory::GetIID()) ||
aIID.Equals(nsCOMTypeInfo<nsISupports>::GetIID())) {
*aInstancePtr = (void*) this;
AddRef();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMPL_ADDREF(nsEditFactory)
NS_IMPL_RELEASE(nsEditFactory)
////////////////////////////////////////////////////////////////////////////
// from nsIFactory:
NS_METHOD
nsEditFactory::CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
*aResult = nsnull;
nsISupports *obj = nsnull;
if (!aResult)
return NS_ERROR_NULL_POINTER;
if (aOuter && !aIID.Equals(nsCOMTypeInfo<nsISupports>::GetIID()))
return NS_NOINTERFACE; // XXX right error?
if (mCID.Equals(kEditorCID))
obj = (nsISupports *)(nsIEditor*)new nsEditor();
//more class ids to support. here
if (obj && NS_FAILED(obj->QueryInterface(aIID, (void**)aResult)) )
{
delete obj;
return NS_NOINTERFACE;
}
return NS_OK;
}
NS_METHOD
nsEditFactory::LockFactory(PRBool aLock)
{
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////
// from nsEditFactory:
nsEditFactory::nsEditFactory(const nsCID &aClass)
:mCID(aClass)
{
NS_INIT_REFCNT();
}
nsEditFactory::~nsEditFactory()
{
//nsComponentManager::UnregisterFactory(mCID, (nsIFactory *)this); //we are out of ref counts anyway
}

View File

@@ -1,67 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://wwwt.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 nsIEditFactory_h___
#define nsIEditFactory_h___
#include "nsISupports.h"
#include "nsIFactory.h"
/*
EditFactory that can make an editor
*/
/**
* This supplies the neccessary entrance to the edit module. it will return any
* instantiations that we need.
*/
class nsEditFactory;
nsresult GetEditFactory(nsIFactory **aFactory, const nsCID & aClass);
class nsEditFactory : public nsIFactory {
public:
////////////////////////////////////////////////////////////////////////////
// from nsISupports and AggregatedQueryInterface:
NS_DECL_ISUPPORTS
////////////////////////////////////////////////////////////////////////////
// from nsIFactory:
NS_IMETHOD
CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult);
NS_IMETHOD
LockFactory(PRBool aLock);
////////////////////////////////////////////////////////////////////////////
// from nsEditFactory:
virtual ~nsEditFactory(void);
private:
nsEditFactory(const nsCID &aClass); //will fill the aFactory with the result from queryinterface
/** getEditFactory
* creates an edit factory other CSID supported friend functions here.
*/
friend nsresult GetEditFactory(nsIFactory **, const nsCID & );
const nsCID &mCID;
};
#endif //nsIEditFactory_h___

View File

@@ -1,326 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsEditProperty.h"
#include "nsString.h"
// singleton instance
static nsEditProperty *gInstance;
NS_IMPL_ADDREF(nsEditProperty)
NS_IMPL_RELEASE(nsEditProperty)
// XXX: remove when html atoms are exported from layout
// inline tags
nsIAtom * nsIEditProperty::b;
nsIAtom * nsIEditProperty::big;
nsIAtom * nsIEditProperty::i;
nsIAtom * nsIEditProperty::small;
nsIAtom * nsIEditProperty::strike;
nsIAtom * nsIEditProperty::sub;
nsIAtom * nsIEditProperty::sup;
nsIAtom * nsIEditProperty::tt;
nsIAtom * nsIEditProperty::u;
nsIAtom * nsIEditProperty::em;
nsIAtom * nsIEditProperty::strong;
nsIAtom * nsIEditProperty::dfn;
nsIAtom * nsIEditProperty::code;
nsIAtom * nsIEditProperty::samp;
nsIAtom * nsIEditProperty::kbd;
nsIAtom * nsIEditProperty::var;
nsIAtom * nsIEditProperty::cite;
nsIAtom * nsIEditProperty::abbr;
nsIAtom * nsIEditProperty::acronym;
nsIAtom * nsIEditProperty::font;
nsIAtom * nsIEditProperty::a;
nsIAtom * nsIEditProperty::img;
nsIAtom * nsIEditProperty::object;
nsIAtom * nsIEditProperty::br;
nsIAtom * nsIEditProperty::script;
nsIAtom * nsIEditProperty::map;
nsIAtom * nsIEditProperty::q;
nsIAtom * nsIEditProperty::span;
nsIAtom * nsIEditProperty::bdo;
nsIAtom * nsIEditProperty::input;
nsIAtom * nsIEditProperty::select;
nsIAtom * nsIEditProperty::textarea;
nsIAtom * nsIEditProperty::label;
nsIAtom * nsIEditProperty::button;
nsIAtom * nsIEditProperty::p;
nsIAtom * nsIEditProperty::div;
nsIAtom * nsIEditProperty::blockquote;
nsIAtom * nsIEditProperty::h1;
nsIAtom * nsIEditProperty::h2;
nsIAtom * nsIEditProperty::h3;
nsIAtom * nsIEditProperty::h4;
nsIAtom * nsIEditProperty::h5;
nsIAtom * nsIEditProperty::h6;
nsIAtom * nsIEditProperty::ul;
nsIAtom * nsIEditProperty::ol;
nsIAtom * nsIEditProperty::dl;
nsIAtom * nsIEditProperty::pre;
nsIAtom * nsIEditProperty::noscript;
nsIAtom * nsIEditProperty::form;
nsIAtom * nsIEditProperty::hr;
nsIAtom * nsIEditProperty::table;
nsIAtom * nsIEditProperty::fieldset;
nsIAtom * nsIEditProperty::address;
nsIAtom * nsIEditProperty::body;
nsIAtom * nsIEditProperty::tr;
nsIAtom * nsIEditProperty::td;
nsIAtom * nsIEditProperty::th;
nsIAtom * nsIEditProperty::caption;
nsIAtom * nsIEditProperty::col;
nsIAtom * nsIEditProperty::colgroup;
nsIAtom * nsIEditProperty::thead;
nsIAtom * nsIEditProperty::tfoot;
nsIAtom * nsIEditProperty::li;
nsIAtom * nsIEditProperty::dt;
nsIAtom * nsIEditProperty::dd;
nsIAtom * nsIEditProperty::legend;
nsIAtom * nsIEditProperty::color;
nsIAtom * nsIEditProperty::face;
nsIAtom * nsIEditProperty::size;
// special
nsString * nsIEditProperty::allProperties;
/* From the HTML 4.0 DTD,
INLINE:
<!-- %inline; covers inline or "text-level" elements -->
<!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl;">
<!ENTITY % fontstyle "TT | I | B | BIG | SMALL">
<!ENTITY % phrase "EM | STRONG | DFN | CODE |
SAMP | KBD | VAR | CITE | ABBR | ACRONYM" >
<!ENTITY % special
"A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO">
<!ENTITY % formctrl "INPUT | SELECT | TEXTAREA | LABEL | BUTTON">
BLOCK:
<!ENTITY % block
"P | %heading (h1-h6); | %list (UL | OL); | %preformatted (PRE); | DL | DIV | NOSCRIPT |
BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">
But what about BODY, TR, TD, TH, CAPTION, COL, COLGROUP, THEAD, TFOOT, LI, DT, DD, LEGEND, etc.?
*/
nsEditProperty::nsEditProperty()
{
NS_INIT_REFCNT();
// inline tags
nsIEditProperty::b = NS_NewAtom("b");
nsIEditProperty::big = NS_NewAtom("big");
nsIEditProperty::i = NS_NewAtom("i");
nsIEditProperty::small = NS_NewAtom("small");
nsIEditProperty::strike = NS_NewAtom("strike");
nsIEditProperty::sub = NS_NewAtom("sub");
nsIEditProperty::sup = NS_NewAtom("sup");
nsIEditProperty::tt = NS_NewAtom("tt");
nsIEditProperty::u = NS_NewAtom("u");
nsIEditProperty::em = NS_NewAtom("em");
nsIEditProperty::strong = NS_NewAtom("strong");
nsIEditProperty::dfn = NS_NewAtom("dfn");
nsIEditProperty::code = NS_NewAtom("code");
nsIEditProperty::samp = NS_NewAtom("samp");
nsIEditProperty::kbd = NS_NewAtom("kbd");
nsIEditProperty::var = NS_NewAtom("var");
nsIEditProperty::cite = NS_NewAtom("cite");
nsIEditProperty::abbr = NS_NewAtom("abbr");
nsIEditProperty::acronym = NS_NewAtom("acronym");
nsIEditProperty::font = NS_NewAtom("font");
nsIEditProperty::a = NS_NewAtom("a");
nsIEditProperty::img = NS_NewAtom("img");
nsIEditProperty::object = NS_NewAtom("object");
nsIEditProperty::br = NS_NewAtom("br");
nsIEditProperty::script = NS_NewAtom("script");
nsIEditProperty::map = NS_NewAtom("map");
nsIEditProperty::q = NS_NewAtom("q");
nsIEditProperty::span = NS_NewAtom("span");
nsIEditProperty::bdo = NS_NewAtom("bdo");
nsIEditProperty::input = NS_NewAtom("input");
nsIEditProperty::select = NS_NewAtom("select");
nsIEditProperty::textarea = NS_NewAtom("textarea");
nsIEditProperty::label = NS_NewAtom("label");
nsIEditProperty::button = NS_NewAtom("button");
// block tags
nsIEditProperty::p = NS_NewAtom("p");
nsIEditProperty::div = NS_NewAtom("div");
nsIEditProperty::blockquote = NS_NewAtom("blockquote");
nsIEditProperty::h1 = NS_NewAtom("h1");
nsIEditProperty::h2 = NS_NewAtom("h2");
nsIEditProperty::h3 = NS_NewAtom("h3");
nsIEditProperty::h4 = NS_NewAtom("h4");
nsIEditProperty::h5 = NS_NewAtom("h5");
nsIEditProperty::h6 = NS_NewAtom("h6");
nsIEditProperty::ul = NS_NewAtom("ul");
nsIEditProperty::ol = NS_NewAtom("ol");
nsIEditProperty::dl = NS_NewAtom("dl");
nsIEditProperty::pre = NS_NewAtom("pre");
nsIEditProperty::noscript = NS_NewAtom("noscript");
nsIEditProperty::form = NS_NewAtom("form");
nsIEditProperty::hr = NS_NewAtom("hr");
nsIEditProperty::table = NS_NewAtom("table");
nsIEditProperty::fieldset = NS_NewAtom("fieldset");
nsIEditProperty::address = NS_NewAtom("address");
// Unclear from
// DTD, block?
nsIEditProperty::body = NS_NewAtom("body");
nsIEditProperty::tr = NS_NewAtom("tr");
nsIEditProperty::td = NS_NewAtom("td");
nsIEditProperty::th = NS_NewAtom("th");
nsIEditProperty::caption = NS_NewAtom("caption");
nsIEditProperty::col = NS_NewAtom("col");
nsIEditProperty::colgroup = NS_NewAtom("colgroup");
nsIEditProperty::thead = NS_NewAtom("thead");
nsIEditProperty::tfoot = NS_NewAtom("tfoot");
nsIEditProperty::li = NS_NewAtom("li");
nsIEditProperty::dt = NS_NewAtom("dt");
nsIEditProperty::dd = NS_NewAtom("dd");
nsIEditProperty::legend = NS_NewAtom("legend");
// inline
// properties
nsIEditProperty::color = NS_NewAtom("color");
nsIEditProperty::face = NS_NewAtom("face");
nsIEditProperty::size = NS_NewAtom("size");
// special
nsIEditProperty::allProperties = new nsString("moz_allproperties");
}
nsEditProperty::~nsEditProperty()
{
NS_IF_RELEASE(nsIEditProperty::b);
NS_IF_RELEASE(nsIEditProperty::big);
NS_IF_RELEASE(nsIEditProperty::i);
NS_IF_RELEASE(nsIEditProperty::small);
NS_IF_RELEASE(nsIEditProperty::strike);
NS_IF_RELEASE(nsIEditProperty::sub);
NS_IF_RELEASE(nsIEditProperty::sup);
NS_IF_RELEASE(nsIEditProperty::tt);
NS_IF_RELEASE(nsIEditProperty::u);
NS_IF_RELEASE(nsIEditProperty::em);
NS_IF_RELEASE(nsIEditProperty::strong);
NS_IF_RELEASE(nsIEditProperty::dfn);
NS_IF_RELEASE(nsIEditProperty::code);
NS_IF_RELEASE(nsIEditProperty::samp);
NS_IF_RELEASE(nsIEditProperty::kbd);
NS_IF_RELEASE(nsIEditProperty::var);
NS_IF_RELEASE(nsIEditProperty::cite);
NS_IF_RELEASE(nsIEditProperty::abbr);
NS_IF_RELEASE(nsIEditProperty::acronym);
NS_IF_RELEASE(nsIEditProperty::font);
NS_IF_RELEASE(nsIEditProperty::a);
NS_IF_RELEASE(nsIEditProperty::img);
NS_IF_RELEASE(nsIEditProperty::object);
NS_IF_RELEASE(nsIEditProperty::br);
NS_IF_RELEASE(nsIEditProperty::script);
NS_IF_RELEASE(nsIEditProperty::map);
NS_IF_RELEASE(nsIEditProperty::q);
NS_IF_RELEASE(nsIEditProperty::span);
NS_IF_RELEASE(nsIEditProperty::bdo);
NS_IF_RELEASE(nsIEditProperty::input);
NS_IF_RELEASE(nsIEditProperty::select);
NS_IF_RELEASE(nsIEditProperty::textarea);
NS_IF_RELEASE(nsIEditProperty::label);
NS_IF_RELEASE(nsIEditProperty::button);
NS_IF_RELEASE(nsIEditProperty::p);
NS_IF_RELEASE(nsIEditProperty::div);
NS_IF_RELEASE(nsIEditProperty::blockquote);
NS_IF_RELEASE(nsIEditProperty::h1);
NS_IF_RELEASE(nsIEditProperty::h2);
NS_IF_RELEASE(nsIEditProperty::h3);
NS_IF_RELEASE(nsIEditProperty::h4);
NS_IF_RELEASE(nsIEditProperty::h5);
NS_IF_RELEASE(nsIEditProperty::h6);
NS_IF_RELEASE(nsIEditProperty::ul);
NS_IF_RELEASE(nsIEditProperty::ol);
NS_IF_RELEASE(nsIEditProperty::dl);
NS_IF_RELEASE(nsIEditProperty::pre);
NS_IF_RELEASE(nsIEditProperty::noscript);
NS_IF_RELEASE(nsIEditProperty::form);
NS_IF_RELEASE(nsIEditProperty::hr);
NS_IF_RELEASE(nsIEditProperty::table);
NS_IF_RELEASE(nsIEditProperty::fieldset);
NS_IF_RELEASE(nsIEditProperty::address);
NS_IF_RELEASE(nsIEditProperty::body);
NS_IF_RELEASE(nsIEditProperty::tr);
NS_IF_RELEASE(nsIEditProperty::td);
NS_IF_RELEASE(nsIEditProperty::th);
NS_IF_RELEASE(nsIEditProperty::caption);
NS_IF_RELEASE(nsIEditProperty::col);
NS_IF_RELEASE(nsIEditProperty::colgroup);
NS_IF_RELEASE(nsIEditProperty::thead);
NS_IF_RELEASE(nsIEditProperty::tfoot);
NS_IF_RELEASE(nsIEditProperty::li);
NS_IF_RELEASE(nsIEditProperty::dt);
NS_IF_RELEASE(nsIEditProperty::dd);
NS_IF_RELEASE(nsIEditProperty::legend);
NS_IF_RELEASE(nsIEditProperty::color);
NS_IF_RELEASE(nsIEditProperty::face);
NS_IF_RELEASE(nsIEditProperty::size);
// special
if (nsIEditProperty::allProperties) {
delete (nsIEditProperty::allProperties);
nsIEditProperty::allProperties = nsnull;
}
gInstance = nsnull;
}
NS_IMETHODIMP
nsEditProperty::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (nsnull == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(nsCOMTypeInfo<nsISupports>::GetIID())) {
*aInstancePtr = (void*)(nsISupports*)this;
NS_ADDREF_THIS();
return NS_OK;
}
if (aIID.Equals(nsIEditProperty::GetIID())) {
*aInstancePtr = (void*)(nsIEditProperty*)this;
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
}
/* Factory for edit property object */
nsresult NS_NewEditProperty(nsIEditProperty **aResult)
{
if (aResult)
{
if (!gInstance)
{
gInstance = new nsEditProperty();
if (!gInstance) {
return NS_ERROR_OUT_OF_MEMORY;
}
}
*aResult = gInstance;
NS_ADDREF(*aResult);
return NS_OK;
}
return NS_ERROR_NULL_POINTER;
}

View File

@@ -1,45 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://wwwt.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 __nsEditProperty_h__
#define __nsEditProperty_h__
#include "nsIEditProperty.h"
#include "nsIAtom.h"
#include "nsCOMPtr.h"
#include "nsISupports.h"
/** simple class for describing a single property as it relates to a range of content.
* not ref counted.
*
*/
class nsEditProperty : public nsIEditProperty
{
public:
/*interfaces for addref and release and queryinterface*/
NS_DECL_ISUPPORTS
protected:
nsEditProperty ();
virtual ~nsEditProperty();
friend nsresult NS_NewEditProperty(nsIEditProperty **aResult);
};
#endif

View File

@@ -1,55 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsEditRules_h__
#define nsEditRules_h__
class nsHTMLEditor;
class nsIDOMSelection;
/***************************************************************************
* base for an object to encapsulate any additional info needed to be passed
* to rules system by the editor
*/
class nsRulesInfo
{
public:
nsRulesInfo(int aAction) : action(aAction) {}
virtual ~nsRulesInfo() {}
int action;
};
/***************************************************************************
* Interface of editing rules.
*
*/
class nsEditRules
{
public:
NS_IMETHOD Init(nsHTMLEditor *aEditor)=0;
NS_IMETHOD WillDoAction(nsIDOMSelection *aSelection, nsRulesInfo *aInfo, PRBool *aCancel)=0;
NS_IMETHOD DidDoAction(nsIDOMSelection *aSelection, nsRulesInfo *aInfo, nsresult aResult)=0;
NS_IMETHOD GetFlags(PRUint32 *aFlags)=0;
NS_IMETHOD SetFlags(PRUint32 aFlags)=0;
};
#endif //nsEditRules_h__

File diff suppressed because it is too large Load Diff

View File

@@ -1,633 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://wwwt.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 __editor_h__
#define __editor_h__
#include "nsCOMPtr.h"
#include "prmon.h"
#include "nsIEditor.h"
#include "nsIEditorIMESupport.h"
#include "nsIEditorLogging.h"
#include "nsIDOMDocument.h"
#include "nsIDOMSelection.h"
#include "nsIDOMCharacterData.h"
#include "nsIDOMEventListener.h"
#include "nsIDOMRange.h"
#include "nsIDOMTextRangeList.h"
#include "nsIStringBundle.h"
#include "nsITransactionManager.h"
#include "TransactionFactory.h"
#include "nsIComponentManager.h"
#include "nsISupportsArray.h"
#include "nsIEditProperty.h"
#include "nsIFileSpec.h"
#include "nsIDOMCharacterData.h"
#include "nsICSSStyleSheet.h"
#include "nsIDTD.h"
class nsIEditActionListener;
class nsIDocumentStateListener;
class nsIDOMCharacterData;
class nsIDOMRange;
class nsIPresShell;
class nsIViewManager;
class ChangeAttributeTxn;
class CreateElementTxn;
class InsertElementTxn;
class DeleteElementTxn;
class InsertTextTxn;
class DeleteTextTxn;
class SplitElementTxn;
class JoinElementTxn;
class EditAggregateTxn;
class nsVoidArray;
class nsISupportsArray;
class nsIPref;
class nsIStringBundleService;
class nsIStringBundle;
class nsILocale;
class IMETextTxn;
class AddStyleSheetTxn;
class RemoveStyleSheetTxn;
#ifdef ENABLE_JS_EDITOR_LOG
class nsJSEditorLog;
class nsJSTxnLog;
#endif // ENABLE_JS_EDITOR_LOG
//This is the monitor for the editor.
PRMonitor *GetEditorMonitor();
/** implementation of an editor object. it will be the controler/focal point
* for the main editor services. i.e. the GUIManager, publishing, transaction
* manager, event interfaces. the idea for the event interfaces is to have them
* delegate the actual commands to the editor independent of the XPFE implementation.
*/
class nsEditor : public nsIEditor,
public nsIEditorIMESupport,
public nsIEditorLogging
{
public:
enum IterDirection
{
kIterForward,
kIterBackward
};
static const char* kMOZEditorBogusNodeAttr;
static const char* kMOZEditorBogusNodeValue;
/** The default constructor. This should suffice. the setting of the interfaces is done
* after the construction of the editor class.
*/
nsEditor();
/** The default destructor. This should suffice. Should this be pure virtual
* for someone to derive from the nsEditor later? I dont believe so.
*/
virtual ~nsEditor();
//Interfaces for addref and release and queryinterface
//NOTE: Use NS_DECL_ISUPPORTS_INHERITED in any class inherited from nsEditor
NS_DECL_ISUPPORTS
/* ------------ nsIEditor methods -------------- */
NS_IMETHOD Init(nsIDOMDocument *aDoc, nsIPresShell *aPresShell, PRUint32 aFlags);
NS_IMETHOD PostCreate();
NS_IMETHOD GetFlags(PRUint32 *aFlags) = 0;
NS_IMETHOD SetFlags(PRUint32 aFlags) = 0;
NS_IMETHOD GetDocument(nsIDOMDocument **aDoc);
NS_IMETHOD GetPresShell(nsIPresShell **aPS);
NS_IMETHOD GetSelection(nsIDOMSelection **aSelection);
NS_IMETHOD EnableUndo(PRBool aEnable);
NS_IMETHOD Do(nsITransaction *aTxn);
NS_IMETHOD Undo(PRUint32 aCount);
NS_IMETHOD CanUndo(PRBool &aIsEnabled, PRBool &aCanUndo);
NS_IMETHOD Redo(PRUint32 aCount);
NS_IMETHOD CanRedo(PRBool &aIsEnabled, PRBool &aCanRedo);
NS_IMETHOD BeginTransaction();
NS_IMETHOD EndTransaction();
// file handling
NS_IMETHOD Save();
NS_IMETHOD SaveAs(PRBool aSavingCopy);
NS_IMETHOD GetDocumentModified(PRBool *outDocModified);
// these are pure virtual in this base class
NS_IMETHOD Cut() = 0;
NS_IMETHOD Copy() = 0;
NS_IMETHOD Paste() = 0;
NS_IMETHOD SelectAll();
NS_IMETHOD BeginningOfDocument();
NS_IMETHOD EndOfDocument();
/* Node and element manipulation */
NS_IMETHOD SetAttribute(nsIDOMElement * aElement,
const nsString& aAttribute,
const nsString& aValue);
NS_IMETHOD GetAttributeValue(nsIDOMElement * aElement,
const nsString& aAttribute,
nsString& aResultValue,
PRBool& aResultIsSet);
NS_IMETHOD RemoveAttribute(nsIDOMElement *aElement, const nsString& aAttribute);
NS_IMETHOD CreateNode(const nsString& aTag,
nsIDOMNode * aParent,
PRInt32 aPosition,
nsIDOMNode ** aNewNode);
NS_IMETHOD InsertNode(nsIDOMNode * aNode,
nsIDOMNode * aParent,
PRInt32 aPosition);
NS_IMETHOD SplitNode(nsIDOMNode * aExistingRightNode,
PRInt32 aOffset,
nsIDOMNode ** aNewLeftNode);
NS_IMETHOD JoinNodes(nsIDOMNode * aLeftNode,
nsIDOMNode * aRightNode,
nsIDOMNode * aParent);
NS_IMETHOD DeleteNode(nsIDOMNode * aChild);
/* output */
NS_IMETHOD OutputToString(nsString& aOutputString,
const nsString& aFormatType,
PRUint32 aFlags);
NS_IMETHOD OutputToStream(nsIOutputStream* aOutputStream,
const nsString& aFormatType,
const nsString* aCharsetOverride,
PRUint32 aFlags);
/* Listeners */
NS_IMETHOD AddEditActionListener(nsIEditActionListener *aListener);
NS_IMETHOD RemoveEditActionListener(nsIEditActionListener *aListener);
NS_IMETHOD AddDocumentStateListener(nsIDocumentStateListener *aListener);
NS_IMETHOD RemoveDocumentStateListener(nsIDocumentStateListener *aListener);
NS_IMETHOD DumpContentTree();
NS_IMETHOD DebugDumpContent() const;
NS_IMETHOD DebugUnitTests(PRInt32 *outNumTests, PRInt32 *outNumTestsFailed);
/* ------------ nsIEditorIMESupport methods -------------- */
NS_IMETHOD BeginComposition(void);
NS_IMETHOD SetCompositionString(const nsString& aCompositionString, nsIDOMTextRangeList* aTextRangeList);
NS_IMETHOD EndComposition(void);
/* ------------ nsIEditorLogging methods -------------- */
NS_IMETHOD StartLogging(nsIFileSpec *aLogFile);
NS_IMETHOD StopLogging();
public:
NS_IMETHOD InsertTextImpl(const nsString& aStringToInsert);
NS_IMETHOD DeleteSelectionImpl(ESelectionCollapseDirection aAction);
protected:
// why not use the one in nsHTMLDocument?
NS_IMETHOD GetBodyElement(nsIDOMElement **aElement);
//NOTE: Most callers are dealing with Nodes,
// but these objects must supports nsIDOMElement
NS_IMETHOD CopyAttributes(nsIDOMNode *aDestNode, nsIDOMNode *aSourceNode);
/*
NS_IMETHOD SetProperties(nsVoidArray *aPropList);
NS_IMETHOD GetProperties(nsVoidArray *aPropList);
*/
/** create a transaction for setting aAttribute to aValue on aElement
*/
NS_IMETHOD CreateTxnForSetAttribute(nsIDOMElement *aElement,
const nsString& aAttribute,
const nsString& aValue,
ChangeAttributeTxn ** aTxn);
/** create a transaction for removing aAttribute on aElement
*/
NS_IMETHOD CreateTxnForRemoveAttribute(nsIDOMElement *aElement,
const nsString& aAttribute,
ChangeAttributeTxn ** aTxn);
/** create a transaction for creating a new child node of aParent of type aTag.
*/
NS_IMETHOD CreateTxnForCreateElement(const nsString& aTag,
nsIDOMNode *aParent,
PRInt32 aPosition,
CreateElementTxn ** aTxn);
/** create a transaction for inserting aNode as a child of aParent.
*/
NS_IMETHOD CreateTxnForInsertElement(nsIDOMNode * aNode,
nsIDOMNode * aParent,
PRInt32 aOffset,
InsertElementTxn ** aTxn);
/** create a transaction for removing aElement from its parent.
*/
NS_IMETHOD CreateTxnForDeleteElement(nsIDOMNode * aElement,
DeleteElementTxn ** aTxn);
/** Create an aggregate transaction for deleting current selection
* Used by all methods that need to delete current selection,
* then insert something new to replace it
* @param nsString& aTxnName is the name of the aggregated transaction
* @param EditTxn **aAggTxn is the return location of the aggregate TXN,
* with the DeleteSelectionTxn as the first child ONLY
* if there was a selection to delete.
*/
NS_IMETHOD CreateAggregateTxnForDeleteSelection(nsIAtom *aTxnName, EditAggregateTxn **aAggTxn);
NS_IMETHOD CreateTxnForDeleteSelection(ESelectionCollapseDirection aAction,
EditAggregateTxn ** aTxn);
NS_IMETHOD CreateTxnForDeleteInsertionPoint(nsIDOMRange *aRange,
ESelectionCollapseDirection aAction,
EditAggregateTxn *aTxn);
/** create a transaction for inserting aStringToInsert into aTextNode
* if aTextNode is null, the string is inserted at the current selection.
*/
NS_IMETHOD CreateTxnForInsertText(const nsString & aStringToInsert,
nsIDOMCharacterData *aTextNode,
InsertTextTxn ** aTxn);
NS_IMETHOD CreateTxnForIMEText(const nsString & aStringToInsert,
nsIDOMTextRangeList* aTextRangeList,
IMETextTxn ** aTxn);
/** create a transaction for adding a style sheet
*/
NS_IMETHOD CreateTxnForAddStyleSheet(nsICSSStyleSheet* aSheet, AddStyleSheetTxn* *aTxn);
/** create a transaction for removing a style sheet
*/
NS_IMETHOD CreateTxnForRemoveStyleSheet(nsICSSStyleSheet* aSheet, RemoveStyleSheetTxn* *aTxn);
/** insert aStringToInsert as the first text in the document
*/
NS_IMETHOD DoInitialInsert(const nsString & aStringToInsert);
NS_IMETHOD DoInitialInputMethodInsert(const nsString& aStringToInsert,nsIDOMTextRangeList* aTextRangeList);
NS_IMETHOD DeleteText(nsIDOMCharacterData *aElement,
PRUint32 aOffset,
PRUint32 aLength);
NS_IMETHOD CreateTxnForDeleteText(nsIDOMCharacterData *aElement,
PRUint32 aOffset,
PRUint32 aLength,
DeleteTextTxn **aTxn);
NS_IMETHOD CreateTxnForSplitNode(nsIDOMNode *aNode,
PRUint32 aOffset,
SplitElementTxn **aTxn);
NS_IMETHOD CreateTxnForJoinNode(nsIDOMNode *aLeftNode,
nsIDOMNode *aRightNode,
JoinElementTxn **aTxn);
NS_IMETHOD SetInputMethodText(const nsString& aStringToInsert, nsIDOMTextRangeList* aTextRangeList);
// called each time we modify the document. Increments the mod
// count of the doc.
NS_IMETHOD IncDocModCount(PRInt32 inNumMods);
// return the mod count of the doc we are editing. Zero means unchanged.
NS_IMETHOD GetDocModCount(PRInt32 &outModCount);
// called ONLY when we need to override the doc's modification
// state. This should already be handled by nsIDiskDocument.
NS_IMETHOD ResetDocModCount();
// called after a transaction is done successfully
NS_IMETHOD DoAfterDoTransaction(nsITransaction *aTxn);
// called after a transaction is undone successfully
NS_IMETHOD DoAfterUndoTransaction();
// called after a transaction is redone successfully
NS_IMETHOD DoAfterRedoTransaction();
// called after the document has been saved
NS_IMETHOD DoAfterDocumentSave();
typedef enum {
eDocumentCreated,
eDocumentToBeDestroyed,
eDocumentStateChanged
} TDocumentListenerNotification;
// tell the doc state listeners that the doc state has changed
NS_IMETHOD NotifyDocumentListeners(TDocumentListenerNotification aNotificationType);
/** make the given selection span the entire document */
NS_IMETHOD SelectEntireDocument(nsIDOMSelection *aSelection);
protected:
// XXXX: Horrible hack! We are doing this because
// of an error in Gecko which is not rendering the
// document after a change via the DOM - gpk 2/13/99
void HACKForceRedraw(void);
// file handling utils
NS_IMETHOD SaveDocument(PRBool saveAs, PRBool saveCopy);
NS_IMETHOD ScrollIntoView(PRBool aScrollToBegin);
public:
static nsString& GetTextNodeTag();
/**
* SplitNode() creates a new node identical to an existing node, and split the contents between the two nodes
* @param aExistingRightNode the node to split. It will become the new node's next sibling.
* @param aOffset the offset of aExistingRightNode's content|children to do the split at
* @param aNewLeftNode [OUT] the new node resulting from the split, becomes aExistingRightNode's previous sibling.
* @param aParent the parent of aExistingRightNode
*/
static nsresult SplitNodeImpl(nsIDOMNode *aExistingRightNode,
PRInt32 aOffset,
nsIDOMNode *aNewLeftNode,
nsIDOMNode *aParent);
/**
* JoinNodes() takes 2 nodes and merge their content|children.
* @param aNodeToKeep The node that will remain after the join.
* @param aNodeToJoin The node that will be joined with aNodeToKeep.
* There is no requirement that the two nodes be of the same type.
* @param aParent The parent of aExistingRightNode
* @param aNodeToKeepIsFirst if PR_TRUE, the contents|children of aNodeToKeep come before the
* contents|children of aNodeToJoin, otherwise their positions are switched.
*/
static nsresult JoinNodesImpl(nsIDOMNode *aNodeToKeep,
nsIDOMNode *aNodeToJoin,
nsIDOMNode *aParent,
PRBool aNodeToKeepIsFirst);
/**
* Set aOffset to the offset of aChild in aParent.
* Returns an error if aChild is not an immediate child of aParent.
*/
static nsresult GetChildOffset(nsIDOMNode *aChild,
nsIDOMNode *aParent,
PRInt32 &aOffset);
/**
* Set aParent to the parent of aChild.
* Set aOffset to the offset of aChild in aParent.
*/
static nsresult GetNodeLocation(nsIDOMNode *aChild,
nsCOMPtr<nsIDOMNode> *aParent,
PRInt32 *aOffset);
/** set aIsInline to PR_TRUE if aNode is inline as defined by HTML DTD */
static nsresult IsNodeInline(nsIDOMNode *aNode, PRBool &aIsInline);
/** set aIsBlock to PR_TRUE if aNode is inline as defined by HTML DTD */
static nsresult IsNodeBlock(nsIDOMNode *aNode, PRBool &aIsBlock);
/** returns the closest block parent of aNode, not including aNode itself.
* can return null, for example if aNode is in a document fragment.
* @param aNode The node whose parent we seek.
* @param aBlockParent [OUT] The block parent, if any.
* @return a success value unless an unexpected error occurs.
*/
static nsresult GetBlockParent(nsIDOMNode *aNode,
nsIDOMElement **aBlockParent);
/** Determines the bounding nodes for the block section containing aNode.
* The calculation is based on some nodes intrinsically being block elements
* acording to HTML. Style sheets are not considered in this calculation.
* <BR> tags separate block content sections. So the HTML markup:
* <PRE>
* <P>text1<BR>text2<B>text3</B></P>
* </PRE>
* contains two block content sections. The first has the text node "text1"
* for both endpoints. The second has "text2" as the left endpoint and
* "text3" as the right endpoint.
* Notice that offsets aren't required, only leaf nodes. Offsets are implicit.
*
* @param aNode the block content returned includes aNode
* @param aLeftNode [OUT] the left endpoint of the block content containing aNode
* @param aRightNode [OUT] the right endpoint of the block content containing aNode
*
*/
static nsresult GetBlockSection(nsIDOMNode *aNode,
nsIDOMNode **aLeftNode,
nsIDOMNode **aRightNode);
/** Compute the set of block sections in a given range.
* A block section is the set of (leftNode, rightNode) pairs given
* by GetBlockSection. The set is computed by computing the
* block section for every leaf node in the range and throwing
* out duplicates.
*
* @param aRange The range to compute block sections for.
* @param aSections Allocated storage for the resulting set, stored as nsIDOMRanges.
*/
static nsresult GetBlockSectionsForRange(nsIDOMRange *aRange,
nsISupportsArray *aSections);
/** returns PR_TRUE in out-param aResult if all nodes between (aStartNode, aStartOffset)
* and (aEndNode, aEndOffset) are inline as defined by HTML DTD.
*/
static nsresult IntermediateNodesAreInline(nsIDOMRange *aRange,
nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
PRBool &aResult);
/** returns the number of things inside aNode in the out-param aCount.
* @param aNode is the node to get the length of.
* If aNode is text, returns number of characters.
* If not, returns number of children nodes.
* @param aCount [OUT] the result of the above calculation.
*/
static nsresult GetLengthOfDOMNode(nsIDOMNode *aNode, PRUint32 &aCount);
/** get the node immediately prior to aCurrentNode
* @param aCurrentNode the node from which we start the search
* @param aEditableNode if PR_TRUE, only return an editable node
* @param aResultNode [OUT] the node that occurs before aCurrentNode in the tree,
* skipping non-editable nodes if aEditableNode is PR_TRUE.
* If there is no prior node, aResultNode will be nsnull.
*/
nsresult GetPriorNode(nsIDOMNode *aCurrentNode,
PRBool aEditableNode,
nsIDOMNode **aResultNode);
/** get the node immediately after to aCurrentNode
* @param aCurrentNode the node from which we start the search
* @param aEditableNode if PR_TRUE, only return an editable node
* @param aResultNode [OUT] the node that occurs after aCurrentNode in the tree,
* skipping non-editable nodes if aEditableNode is PR_TRUE.
* If there is no prior node, aResultNode will be nsnull.
*/
nsresult GetNextNode(nsIDOMNode *aCurrentNode,
PRBool aEditableNode,
nsIDOMNode **aResultNode);
/** Get the rightmost child of aCurrentNode, and return it in aResultNode
* aResultNode is set to nsnull if aCurrentNode has no children.
*/
static nsresult GetRightmostChild(nsIDOMNode *aCurrentNode, nsIDOMNode **aResultNode);
/** Get the leftmost child of aCurrentNode, and return it in aResultNode
* aResultNode is set to nsnull if aCurrentNode has no children.
*/
static nsresult GetLeftmostChild(nsIDOMNode *aCurrentNode, nsIDOMNode **aResultNode);
/** GetFirstTextNode ADDREFFS and will get the next available text node from the passed
* in node parameter it can also return NS_ERROR_FAILURE if no text nodes are available
* now it simply returns the first node in the dom
* @param nsIDOMNode *aNode is the node to start looking from
* @param nsIDOMNode **aRetNode is the return location of the text dom node
*
* NOTE: this method will probably be removed.
*/
static nsresult GetFirstTextNode(nsIDOMNode *aNode, nsIDOMNode **aRetNode);
/** GetFirstNodeOfType ADDREFFS and will get the next available node from the passed
* in aStartNode parameter of type aTag.
* It can also return NS_ERROR_FAILURE if no such nodes are available
* @param aStartNode is the node to start looking from
* @param aTag is the type of node we are searching for
* @param aResult is the node we found, or nsnull if there is none
*/
static nsresult GetFirstNodeOfType(nsIDOMNode *aStartNode,
const nsString &aTag,
nsIDOMNode **aResult);
/** returns PR_TRUE if aNode is of the type implied by aTag */
static PRBool NodeIsType(nsIDOMNode *aNode, nsIAtom *aTag);
/** returns PR_TRUE if aParent can contain a child of type aTag */
PRBool CanContainTag(nsIDOMNode* aParent, const nsString &aTag);
/** returns PR_TRUE if aNode is an editable node */
PRBool IsEditable(nsIDOMNode *aNode);
/** counts number of editable child nodes */
nsresult CountEditableChildren(nsIDOMNode *aNode, PRUint32 &outCount);
/** Find the deep first and last children */
nsCOMPtr<nsIDOMNode> GetDeepFirstChild(nsCOMPtr<nsIDOMNode> aRoot);
nsCOMPtr<nsIDOMNode> GetDeepLastChild(nsCOMPtr<nsIDOMNode> aRoot);
/** from html rules code - migration in progress */
static nsresult GetTagString(nsIDOMNode *aNode, nsString& outString);
static nsCOMPtr<nsIAtom> GetTag(nsIDOMNode *aNode);
static PRBool NodesSameType(nsIDOMNode *aNode1, nsIDOMNode *aNode2);
static PRBool IsBlockNode(nsIDOMNode *aNode);
static PRBool IsInlineNode(nsIDOMNode *aNode);
static nsCOMPtr<nsIDOMNode> GetBlockNodeParent(nsIDOMNode *aNode);
static PRBool HasSameBlockNodeParent(nsIDOMNode *aNode1, nsIDOMNode *aNode2);
static PRBool IsTextOrElementNode(nsIDOMNode *aNode);
static PRBool IsTextNode(nsIDOMNode *aNode);
static PRInt32 GetIndexOf(nsIDOMNode *aParent, nsIDOMNode *aChild);
static nsCOMPtr<nsIDOMNode> GetChildAt(nsIDOMNode *aParent, PRInt32 aOffset);
static nsCOMPtr<nsIDOMNode> NextNodeInBlock(nsIDOMNode *aNode, IterDirection aDir);
static nsresult GetStartNodeAndOffset(nsIDOMSelection *aSelection, nsCOMPtr<nsIDOMNode> *outStartNode, PRInt32 *outStartOffset);
static nsresult GetEndNodeAndOffset(nsIDOMSelection *aSelection, nsCOMPtr<nsIDOMNode> *outEndNode, PRInt32 *outEndOffset);
nsresult IsPreformatted(nsIDOMNode *aNode, PRBool *aResult);
nsresult IsNextCharWhitespace(nsIDOMNode *aParentNode, PRInt32 aOffset, PRBool *aResult);
nsresult IsPrevCharWhitespace(nsIDOMNode *aParentNode, PRInt32 aOffset, PRBool *aResult);
nsresult SplitNodeDeep(nsIDOMNode *aNode, nsIDOMNode *aSplitPointParent, PRInt32 aSplitPointOffset);
nsresult JoinNodeDeep(nsIDOMNode *aLeftNode, nsIDOMNode *aRightNode, nsIDOMSelection *aSelection);
nsresult GetString(const nsString& name, nsString& value);
nsresult BeginUpdateViewBatch(void);
nsresult EndUpdateViewBatch(void);
protected:
PRUint32 mFlags; // behavior flags. See nsIHighLevelHTMLEditor.h for the flags we use.
nsIPresShell *mPresShell;
nsIViewManager *mViewManager;
PRUint32 mUpdateCount;
nsCOMPtr<nsITransactionManager> mTxnMgr;
nsCOMPtr<nsIEditProperty> mEditProperty;
nsCOMPtr<nsICSSStyleSheet> mLastStyleSheet; // is owning this dangerous?
//
// data necessary to build IME transactions
//
nsCOMPtr<nsIDOMCharacterData> mIMETextNode;
PRUint32 mIMETextOffset;
PRUint32 mIMEBufferLength;
nsVoidArray* mActionListeners;
nsCOMPtr<nsISupportsArray> mDocStateListeners;
nsCOMPtr<nsIStringBundle> mStringBundle;
PRInt8 mDocDirtyState; // -1 = not initialized
nsIDOMDocument * mDoc;
nsCOMPtr<nsIDTD> mDTD;
// Services are not nsCOMPtr friendly
nsIPref* mPrefs;
#ifdef ENABLE_JS_EDITOR_LOG
nsJSEditorLog *mJSEditorLog;
nsJSTxnLog *mJSTxnLog;
#endif // ENABLE_JS_EDITOR_LOG
static PRInt32 gInstanceCount;
friend PRBool NSCanUnload(nsISupports* serviceMgr);
};
#endif

File diff suppressed because it is too large Load Diff

View File

@@ -1,268 +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 editorInterfaces_h__
#define editorInterfaces_h__
#include "nsCOMPtr.h"
#include "nsIDOMEvent.h"
#include "nsIDOMKeyListener.h"
#include "nsIDOMMouseListener.h"
#include "nsIDOMTextListener.h"
#include "nsIDOMDragListener.h"
#include "nsIDOMCompositionListener.h"
#include "nsIDOMFocusListener.h"
#include "nsIEditor.h"
#include "nsIHighLevelHTMLEditor.h"
/** The nsTextEditorKeyListener public nsIDOMKeyListener
* This class will delegate events to its editor according to the translation
* it is responsible for. i.e. 'c' becomes a keydown, but 'ESC' becomes nothing.
*/
class nsTextEditorKeyListener : public nsIDOMKeyListener {
public:
/** the default constructor
*/
nsTextEditorKeyListener();
/** the default destructor. virtual due to the possibility of derivation.
*/
virtual ~nsTextEditorKeyListener();
/** SetEditor gives an address to the editor that will be accessed
* @param aEditor the editor this listener calls for editing operations
*/
void SetEditor(nsIEditor *aEditor){mEditor = aEditor;}
/*interfaces for addref and release and queryinterface*/
NS_DECL_ISUPPORTS
/*BEGIN interfaces in to the keylister base interface. must be supplied to handle pure virtual interfaces
see the nsIDOMKeyListener interface implementation for details
*/
virtual nsresult HandleEvent(nsIDOMEvent* aEvent);
virtual nsresult KeyDown(nsIDOMEvent* aKeyEvent);
virtual nsresult KeyUp(nsIDOMEvent* aKeyEvent);
virtual nsresult KeyPress(nsIDOMEvent* aKeyEvent);
/*END interfaces from nsIDOMKeyListener*/
protected:
virtual nsresult ProcessShortCutKeys(nsIDOMEvent* aKeyEvent, PRBool& aProcessed);
protected:
nsIEditor* mEditor; // weak reference
};
/** editor Implementation of the MouseListener interface
*/
class nsTextEditorTextListener : public nsIDOMTextListener
{
public:
/** default constructor
*/
nsTextEditorTextListener();
/** default destructor
*/
virtual ~nsTextEditorTextListener();
/** SetEditor gives an address to the editor that will be accessed
* @param aEditor the editor this listener calls for editing operations
*/
void SetEditor(nsIEditor *aEditor){mEditor = aEditor;}
/*interfaces for addref and release and queryinterface*/
NS_DECL_ISUPPORTS
/*BEGIN implementations of textevent handler interface*/
virtual nsresult HandleEvent(nsIDOMEvent* aEvent);
public:
virtual nsresult HandleText(nsIDOMEvent* aTextEvent);
/*END implementations of textevent handler interface*/
protected:
nsIEditor* mEditor; // weak reference
PRBool mCommitText;
PRBool mInTransaction;
};
class nsIEditorIMESupport;
class nsTextEditorCompositionListener : public nsIDOMCompositionListener
{
public:
/** default constructor
*/
nsTextEditorCompositionListener();
/** default destructor
*/
virtual ~nsTextEditorCompositionListener();
/** SetEditor gives an address to the editor that will be accessed
* @param aEditor the editor this listener calls for editing operations
*/
void SetEditor(nsIEditor *aEditor);
/*interfaces for addref and release and queryinterface*/
NS_DECL_ISUPPORTS
/*BEGIN implementations of textevent handler interface*/
virtual nsresult HandleEvent(nsIDOMEvent* aEvent);
public:
virtual nsresult HandleStartComposition(nsIDOMEvent* aCompositionEvent);
virtual nsresult HandleEndComposition(nsIDOMEvent* aCompositionEvent);
/*END implementations of textevent handler interface*/
protected:
nsIEditorIMESupport* mEditor; // weak reference
};
/** editor Implementation of the TextListener interface
*/
class nsTextEditorMouseListener : public nsIDOMMouseListener
{
public:
/** default constructor
*/
nsTextEditorMouseListener();
/** default destructor
*/
virtual ~nsTextEditorMouseListener();
/** SetEditor gives an address to the editor that will be accessed
* @param aEditor the editor this listener calls for editing operations
*/
void SetEditor(nsIEditor *aEditor){mEditor = aEditor;}
/*interfaces for addref and release and queryinterface*/
NS_DECL_ISUPPORTS
/*BEGIN implementations of mouseevent handler interface*/
virtual nsresult HandleEvent(nsIDOMEvent* aEvent);
public:
virtual nsresult MouseDown(nsIDOMEvent* aMouseEvent);
virtual nsresult MouseUp(nsIDOMEvent* aMouseEvent);
virtual nsresult MouseClick(nsIDOMEvent* aMouseEvent);
virtual nsresult MouseDblClick(nsIDOMEvent* aMouseEvent);
virtual nsresult MouseOver(nsIDOMEvent* aMouseEvent);
virtual nsresult MouseOut(nsIDOMEvent* aMouseEvent);
/*END implementations of mouseevent handler interface*/
protected:
nsIEditor* mEditor; // weak reference
};
/** editor Implementation of the MouseListener interface
*/
class nsTextEditorDragListener : public nsIDOMDragListener
{
public:
/** default constructor
*/
nsTextEditorDragListener();
/** default destructor
*/
virtual ~nsTextEditorDragListener();
/** SetEditor gives an address to the editor that will be accessed
* @param aEditor the editor this listener calls for editing operations
*/
void SetEditor(nsIEditor *aEditor){mEditor = aEditor;}
/*interfaces for addref and release and queryinterface*/
NS_DECL_ISUPPORTS
/*BEGIN implementations of dragevent handler interface*/
virtual nsresult HandleEvent(nsIDOMEvent* aEvent);
public:
virtual nsresult DragEnter(nsIDOMEvent* aDragEvent);
virtual nsresult DragOver(nsIDOMEvent* aDragEvent);
virtual nsresult DragExit(nsIDOMEvent* aDragEvent);
virtual nsresult DragDrop(nsIDOMEvent* aDragEvent);
/*END implementations of dragevent handler interface*/
protected:
nsIEditor* mEditor;
};
/** editor Implementation of the FocusListener interface
*/
class nsTextEditorFocusListener : public nsIDOMFocusListener
{
public:
/** default constructor
*/
nsTextEditorFocusListener();
/** default destructor
*/
virtual ~nsTextEditorFocusListener();
/** SetEditor gives an address to the editor that will be accessed
* @param aEditor the editor this listener calls for editing operations
*/
void SetEditor(nsIEditor *aEditor){mEditor = aEditor;}
/*interfaces for addref and release and queryinterface*/
NS_DECL_ISUPPORTS
/*BEGIN implementations of focus event handler interface*/
virtual nsresult HandleEvent(nsIDOMEvent* aEvent);
public:
virtual nsresult Focus(nsIDOMEvent* aEvent);
virtual nsresult Blur(nsIDOMEvent* aEvent);
/*END implementations of focus event handler interface*/
protected:
nsIEditor* mEditor; // weak reference
};
/** factory for the editor key listener
*/
extern nsresult NS_NewEditorKeyListener(nsIDOMEventListener ** aInstancePtrResult, nsIEditor *aEditor);
/** factory for the editor mouse listener
*/
extern nsresult NS_NewEditorMouseListener(nsIDOMEventListener ** aInstancePtrResult, nsIEditor *aEditor);
/** factory for the editor text listener
*/
extern nsresult NS_NewEditorTextListener(nsIDOMEventListener** aInstancePtrResult, nsIEditor *aEditor);
/** factory for the editor drag listener
*/
extern nsresult NS_NewEditorDragListener(nsIDOMEventListener ** aInstancePtrResult, nsIEditor *aEditor);
/** factory for the editor composition listener
*/
extern nsresult NS_NewEditorCompositionListener(nsIDOMEventListener** aInstancePtrResult, nsIEditor *aEditor);
/** factory for the editor composition listener
*/
extern nsresult NS_NewEditorFocusListener(nsIDOMEventListener** aInstancePtrResult, nsIEditor *aEditor);
#endif //editorInterfaces_h__

View File

@@ -1,150 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://wwwt.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsCOMPtr.h"
#include "nsEditorFactory.h"
#include "nsIEditor.h"
#include "nsIHighLevelHTMLEditor.h"
#include "nsEditorShell.h"
#include "nsEditorShellFactory.h"
#include "nsHTMLEditor.h"
#include "nsEditor.h"
#include "nsEditorCID.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
static NS_DEFINE_IID(kHTMLEditorCID, NS_HTMLEDITOR_CID);
nsresult
GetEditorFactory(nsIFactory **aFactory, const nsCID & aClass)
{
// XXX Note static which never gets released, even on library unload.
// XXX Was an nsCOMPtr but that caused a crash on exit,
// XXX http://bugzilla.mozilla.org/show_bug.cgi?id=7938
PR_EnterMonitor(GetEditorMonitor());
nsEditorFactory *factory = new nsEditorFactory(aClass);
if (!factory)
return NS_ERROR_OUT_OF_MEMORY;
nsCOMPtr<nsIFactory> pNSIFactory = do_QueryInterface(factory);
if (!pNSIFactory)
return NS_ERROR_NO_INTERFACE;
nsresult result = pNSIFactory->QueryInterface(nsIFactory::GetIID(),
(void **)aFactory);
PR_ExitMonitor(GetEditorMonitor());
return result;
}
nsEditorFactory::nsEditorFactory(const nsCID &aClass)
: mCID(aClass)
{
NS_INIT_REFCNT();
}
nsEditorFactory::~nsEditorFactory()
{
//nsComponentManager::UnregisterFactory(mCID, (nsIFactory *)this); //we are out of ref counts anyway
}
////////////////////////////////////////////////////////////////////////////
// from nsISupports
NS_METHOD
nsEditorFactory::QueryInterface(const nsIID& aIID, void** aInstancePtr)
{
if (nsnull == aInstancePtr) {
NS_NOTREACHED("!nsEditor");
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(nsIFactory::GetIID()) ||
aIID.Equals(nsCOMTypeInfo<nsISupports>::GetIID())) {
*aInstancePtr = (void*) this;
AddRef();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMPL_ADDREF(nsEditorFactory)
NS_IMPL_RELEASE(nsEditorFactory)
////////////////////////////////////////////////////////////////////////////
// from nsIFactory:
NS_METHOD
nsEditorFactory::CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
*aResult = nsnull;
nsISupports *obj = nsnull;
if (!aResult)
return NS_ERROR_NULL_POINTER;
if (aOuter && !aIID.Equals(nsCOMTypeInfo<nsISupports>::GetIID()))
return NS_NOINTERFACE; // XXX right error?
/* nsEditor is pure virtual
if (mCID.Equals(kEditorCID))
obj = (nsISupports *)(nsIEditor*)new nsEditor();
*/
if (mCID.Equals(kHTMLEditorCID))
{
//Need to cast to interface first to avoid "ambiguous conversion..." error
// because of multiple nsISupports in the class hierarchy
obj = (nsISupports *)(nsIHighLevelHTMLEditor*)new nsHTMLEditor();
}
if (obj && NS_FAILED(obj->QueryInterface(aIID, (void**)aResult)) )
{
delete obj;
return NS_NOINTERFACE;
}
return NS_OK;
}
NS_METHOD
nsEditorFactory::LockFactory(PRBool aLock)
{
return NS_OK;
}
//if more than one person asks for the monitor at the same time for the FIRST time, we are screwed
PRMonitor *GetEditorMonitor()
{
static PRMonitor *ns_editlock = nsnull;
if (nsnull == ns_editlock)
{
ns_editlock = (PRMonitor *)1; //how long will the next line take? lets cut down on the chance of reentrancy
ns_editlock = PR_NewMonitor();
}
else if ((PRMonitor *)1 == ns_editlock)
return GetEditorMonitor();
return ns_editlock;
}

View File

@@ -1,67 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://wwwt.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 nsIEditFactory_h___
#define nsIEditFactory_h___
#include "nsISupports.h"
#include "nsIFactory.h"
/*
EditFactory that can make an editor
*/
/**
* This supplies the neccessary entrance to the edit module. it will return any
* instantiations that we need.
*/
nsresult GetEditorFactory(nsIFactory **aFactory, const nsCID & aClass);
class nsEditorFactory : public nsIFactory
{
public:
////////////////////////////////////////////////////////////////////////////
// from nsISupports and AggregatedQueryInterface:
NS_DECL_ISUPPORTS
////////////////////////////////////////////////////////////////////////////
// from nsIFactory:
NS_IMETHOD
CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult);
NS_IMETHOD
LockFactory(PRBool aLock);
////////////////////////////////////////////////////////////////////////////
// from nsEditFactory:
virtual ~nsEditorFactory(void);
private:
nsEditorFactory(const nsCID &aClass); //will fill the aFactory with the result from queryinterface
/** getEditFactory
* creates an edit factory other CSID supported friend functions here.
*/
friend nsresult GetEditorFactory(nsIFactory **, const nsCID & );
const nsCID &mCID;
};
#endif //nsIEditFactory_h___

View File

@@ -1,154 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://wwwt.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsCOMPtr.h"
#include "nsIServiceManager.h"
#include "nsIComponentManager.h"
#include "nsEditorCID.h"
#include "nsEditorShell.h" // for the CID
#include "nsEditorShellFactory.h"
#include "nsEditor.h" // for gInstanceCount
#include "nsEditorFactory.h"
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
static NS_DEFINE_IID(kHTMLEditorCID, NS_HTMLEDITOR_CID);
static NS_DEFINE_IID(kEditorShellCID, NS_EDITORSHELL_CID);
/*
we must be good providers of factories etc. this is where to put ALL editor exports
*/
//BEGIN EXPORTS
extern "C" NS_EXPORT nsresult NSGetFactory(nsISupports * aServMgr,
const nsCID & aClass,
const char * aClassName,
const char * aProgID,
nsIFactory ** aFactory)
{
if (nsnull == aFactory) {
return NS_ERROR_NULL_POINTER;
}
*aFactory = nsnull;
nsresult rv;
nsCOMPtr<nsIServiceManager> servMgr(do_QueryInterface(aServMgr, &rv));
if (NS_FAILED(rv)) return rv;
nsIComponentManager* componentManager = nsnull;
rv = servMgr->GetService(kComponentManagerCID, nsIComponentManager::GetIID(),
(nsISupports**)&componentManager);
if (NS_FAILED(rv)) return rv;
rv = NS_NOINTERFACE;
if (aClass.Equals(kHTMLEditorCID)) {
rv = GetEditorFactory(aFactory, aClass);
if (NS_FAILED(rv)) goto done;
}
else if (aClass.Equals(kEditorShellCID)) {
rv = GetEditorShellFactory(aFactory, aClass, aClassName, aProgID);
if (NS_FAILED(rv)) goto done;
}
done:
(void)servMgr->ReleaseService(kComponentManagerCID, componentManager);
return rv;
}
extern "C" NS_EXPORT PRBool
NSCanUnload(nsISupports* aServMgr)
{
return nsEditor::gInstanceCount;
}
extern "C" NS_EXPORT nsresult
NSRegisterSelf(nsISupports* aServMgr, const char *path)
{
nsresult rv;
nsCOMPtr<nsIServiceManager> servMgr(do_QueryInterface(aServMgr, &rv));
if (NS_FAILED(rv)) return rv;
nsIComponentManager* compMgr;
rv = servMgr->GetService(kComponentManagerCID,
nsIComponentManager::GetIID(),
(nsISupports**)&compMgr);
if (NS_FAILED(rv)) return rv;
rv = compMgr->RegisterComponent(kHTMLEditorCID, NULL, NULL, path,
PR_TRUE, PR_TRUE);
if (NS_FAILED(rv)) goto done;
rv = compMgr->RegisterComponent(kEditorShellCID,
"Editor Shell Component",
"component://netscape/editor/editorshell",
path, PR_TRUE, PR_TRUE);
if (NS_FAILED(rv)) goto done;
rv = compMgr->RegisterComponent(kEditorShellCID,
"Editor Shell Spell Checker",
"component://netscape/editor/editorspellcheck",
path, PR_TRUE, PR_TRUE);
done:
(void)servMgr->ReleaseService(kComponentManagerCID, compMgr);
return rv;
}
extern "C" NS_EXPORT nsresult
NSUnregisterSelf(nsISupports* aServMgr, const char *path)
{
nsresult rv;
nsCOMPtr<nsIServiceManager> servMgr(do_QueryInterface(aServMgr, &rv));
if (NS_FAILED(rv)) return rv;
nsIComponentManager* compMgr;
rv = servMgr->GetService(kComponentManagerCID,
nsIComponentManager::GetIID(),
(nsISupports**)&compMgr);
if (NS_FAILED(rv)) return rv;
/*
rv = compMgr->UnregisterComponent(kEditorCID, path);
if (NS_FAILED(rv)) goto done;
rv = compMgr->UnregisterComponent(kTextEditorCID, path);
if (NS_FAILED(rv)) goto done;
*/
rv = compMgr->UnregisterComponent(kHTMLEditorCID, path);
if (NS_FAILED(rv)) goto done;
rv = compMgr->UnregisterComponent(kEditorShellCID, path);
done:
(void)servMgr->ReleaseService(kComponentManagerCID, compMgr);
return rv;
}
//END EXPORTS

File diff suppressed because it is too large Load Diff

View File

@@ -1,338 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsEditorShell_h___
#define nsEditorShell_h___
//#include "nsAppCores.h"
#include "nscore.h"
#include "nsCOMPtr.h"
#include "nsString.h"
#include "nsISupports.h"
#include "nsIEditorShell.h"
#include "nsIDocumentLoaderObserver.h"
#include "nsIDOMSelectionListener.h"
#ifdef NECKO
#include "nsIPrompt.h"
#else
#include "nsINetSupport.h"
#endif
#include "nsIStreamObserver.h"
#include "nsIDOMDocument.h"
#include "nsVoidArray.h"
#include "nsTextServicesCID.h"
#include "nsIEditorSpellCheck.h"
#include "nsISpellChecker.h"
#include "nsInterfaceState.h"
#include "nsIHighLevelHTMLEditor.h"
class nsIBrowserWindow;
class nsIWebShell;
class nsIScriptContext;
class nsIDOMWindow;
class nsIDOMElement;
class nsIDOMNode;
class nsIURI;
class nsIWebShellWindow;
class nsIPresShell;
class nsIOutputStream;
class nsISupportsArray;
#define NS_EDITORSHELL_CID \
{ /* {} */ \
0x9afff72b, 0xca9a, 0x11d2, \
{ 0x96, 0xc9, 0x0, 0x60, 0xb0, 0xfb, 0x99, 0x56 } \
}
////////////////////////////////////////////////////////////////////////////////
// nsEditorShell:
////////////////////////////////////////////////////////////////////////////////
class nsEditorShell : public nsIEditorShell,
public nsIEditorSpellCheck,
public nsIDocumentLoaderObserver
{
public:
nsEditorShell();
virtual ~nsEditorShell();
NS_DECL_ISUPPORTS
// NS_IMETHOD GetScriptObject(nsIScriptContext *aContext, void** aScriptObject);
NS_IMETHOD Init();
// NS_IMETHOD GetId(nsString& aId); // { return nsBaseAppCore::GetId(aId); }
// NS_IMETHOD SetDocumentCharset(const nsString& aCharset); // { return nsBaseAppCore::SetDocumentCharset(aCharset); }
/* nsIEditorShell interface */
NS_IMETHOD GetEditorDocument(nsIDOMDocument * *aEditorDocument);
NS_IMETHOD GetEditorSelection(nsIDOMSelection * *aEditorSelection);
NS_IMETHOD GetDocumentModified(PRBool *aDocumentModified);
NS_IMETHOD GetWrapColumn(PRInt32 *aWrapColumn);
NS_IMETHOD SetWrapColumn(PRInt32 aWrapColumn);
NS_IMETHOD SetEditorType(const PRUnichar *editorType);
NS_IMETHOD SetToolbarWindow(nsIDOMWindow *win);
NS_IMETHOD SetContentWindow(nsIDOMWindow *win);
NS_IMETHOD SetWebShellWindow(nsIDOMWindow *win);
NS_IMETHOD LoadUrl(const PRUnichar *url);
NS_IMETHOD RegisterDocumentStateListener(nsIDocumentStateListener *docListener);
NS_IMETHOD UnregisterDocumentStateListener(nsIDocumentStateListener *docListener);
/* void NewWindow (); */
NS_IMETHOD NewWindow();
NS_IMETHOD Open();
NS_IMETHOD Save();
NS_IMETHOD SaveAs();
NS_IMETHOD CloseWindow();
NS_IMETHOD Print();
NS_IMETHOD Exit();
NS_IMETHOD Undo();
NS_IMETHOD Redo();
NS_IMETHOD Cut();
NS_IMETHOD Copy();
NS_IMETHOD Paste();
NS_IMETHOD PasteAsQuotation();
NS_IMETHOD PasteAsCitedQuotation(const PRUnichar *cite);
NS_IMETHOD InsertAsQuotation(const PRUnichar *quotedText);
NS_IMETHOD InsertAsCitedQuotation(const PRUnichar *quotedText, const PRUnichar *cite);
NS_IMETHOD SelectAll();
NS_IMETHOD DeleteSelection(PRInt32 direction);
/* void Find (); */
NS_IMETHOD Find();
NS_IMETHOD FindNext();
/* void InsertText (in wstring textToInsert); */
NS_IMETHOD InsertText(const PRUnichar *textToInsert);
NS_IMETHOD InsertSource(const PRUnichar *sourceToInsert);
NS_IMETHOD InsertBreak();
NS_IMETHOD InsertList(const PRUnichar *listType);
/* void Indent (in string indent); */
NS_IMETHOD Indent(const PRUnichar *indent);
NS_IMETHOD Align(const PRUnichar *align);
/* nsIDOMElement GetSelectedElement (in wstring tagName); */
NS_IMETHOD GetSelectedElement(const PRUnichar *tagName, nsIDOMElement **_retval);
NS_IMETHOD GetElementOrParentByTagName(const PRUnichar *tagName, nsIDOMNode *aNode, nsIDOMElement **_retval);
NS_IMETHOD CreateElementWithDefaults(const PRUnichar *tagName, nsIDOMElement **_retval);
NS_IMETHOD InsertElement(nsIDOMElement *element, PRBool deleteSelection);
NS_IMETHOD SaveHLineSettings(nsIDOMElement* aElement);
NS_IMETHOD InsertLinkAroundSelection(nsIDOMElement *anchorElement);
NS_IMETHOD SelectElement(nsIDOMElement *element);
NS_IMETHOD SetSelectionAfterElement(nsIDOMElement *element);
/* Table insert and delete methods. Done relative to selected cell or
cell containing the selection anchor */
NS_IMETHOD InsertTableCell(PRInt32 aNumber, PRBool bAfter);
NS_IMETHOD InsertTableRow(PRInt32 aNumber, PRBool bAfter);
NS_IMETHOD InsertTableColumn(PRInt32 aNumber, PRBool bAfter);
NS_IMETHOD DeleteTable();
NS_IMETHOD DeleteTableCell(PRInt32 aNumber);
NS_IMETHOD DeleteTableRow(PRInt32 aNumber);
NS_IMETHOD DeleteTableColumn(PRInt32 aNumber);
NS_IMETHOD JoinTableCells();
/** Make table "rectangular" -- fill in all missing cellmap locations
* If aTable is null, it uses table enclosing the selection anchor
*/
NS_IMETHOD NormalizeTable(nsIDOMElement *aTable);
/* Get the row and col indexes in layout's cellmap */
NS_IMETHOD GetRowIndex(nsIDOMElement *aCell, PRInt32 *_retval);
NS_IMETHOD GetColumnIndex(nsIDOMElement *aCell, PRInt32 *_retval);
/** Get the number of rows in a table from the layout's cellmap */
NS_IMETHOD GetTableRowCount(nsIDOMElement *aTable, PRInt32 *_retval);
/** Get the number of columns in a table from the layout's cellmap */
NS_IMETHOD GetTableColumnCount(nsIDOMElement *aTable, PRInt32 *_retval);
/* Get a cell and associated data from the layout frame based on cell map coordinates (0 index) */
NS_IMETHOD GetCellAt(nsIDOMElement* aTable, PRInt32 aRowIndex, PRInt32 aColIndex, nsIDOMElement **_retval);
/* Note that the return param in the IDL must be the LAST out param here (_retval) */
NS_IMETHOD GetCellDataAt(nsIDOMElement* aTable, PRInt32 aRowIndex, PRInt32 aColIndex,
PRInt32 *aStartRowIndex, PRInt32 *aStartColIndex,
PRInt32 *aRowSpan, PRInt32 *aColSpan, PRBool *aIsSelected, nsIDOMElement **_retval);
/* Get list of embedded objects, e.g. for mail compose */
NS_IMETHOD GetEmbeddedObjects(nsISupportsArray **aObjectArray);
/* void SetParagraphFormat (in string value); */
NS_IMETHOD SetParagraphFormat(PRUnichar *value);
NS_IMETHOD GetParagraphFormat(PRUnichar * *aParagraphFormat);
/* void SetTextProperty (in string prop, in string attr, in string value); */
NS_IMETHOD SetTextProperty(const PRUnichar *prop, const PRUnichar *attr, const PRUnichar *value);
NS_IMETHOD GetTextProperty(const PRUnichar *prop, const PRUnichar *attr, const PRUnichar *value, PRBool *firstHas, PRBool *anyHas, PRBool *allHas);
NS_IMETHOD RemoveTextProperty(const PRUnichar *prop, const PRUnichar *attr);
/* void SetBodyAttribute (in string attr, in string value); */
NS_IMETHOD SetBodyAttribute(const PRUnichar *attr, const PRUnichar *value);
NS_IMETHOD SetBackgroundColor(const PRUnichar *color);
NS_IMETHOD ApplyStyleSheet(const PRUnichar *url);
/* Get the contents, for output or other uses */
NS_IMETHOD GetContentsAs(const PRUnichar *format, PRUint32 flags, PRUnichar **contentsAs);
/* Debugging: dump content tree to stdout */
NS_IMETHOD DumpContentTree();
/* string GetLocalFileURL (in nsIDOMWindow parent, in string filterType); */
NS_IMETHOD GetLocalFileURL(nsIDOMWindow *parent, const PRUnichar *filterType, PRUnichar **_retval);
/* void BeginBatchChanges (); */
NS_IMETHOD BeginBatchChanges();
NS_IMETHOD EndBatchChanges();
/* void RunUnitTests (); */
NS_IMETHOD RunUnitTests();
/* void BeginLogging (); */
NS_IMETHOD StartLogging(nsIFileSpec *logFile);
NS_IMETHOD StopLogging();
/* Spell check interface */
NS_IMETHOD StartSpellChecking(PRUnichar **_retval);
NS_IMETHOD GetNextMisspelledWord(PRUnichar **_retval);
NS_IMETHOD GetSuggestedWord(PRUnichar **_retval);
NS_IMETHOD CheckCurrentWord(const PRUnichar *suggestedWord, PRBool *_retval);
NS_IMETHOD ReplaceWord(const PRUnichar *misspelledWord, const PRUnichar *replaceWord, PRBool allOccurrences);
NS_IMETHOD IgnoreWordAllOccurrences(const PRUnichar *word);
NS_IMETHOD GetPersonalDictionary();
NS_IMETHOD GetPersonalDictionaryWord(PRUnichar **_retval);
NS_IMETHOD AddWordToDictionary(const PRUnichar *word);
NS_IMETHOD RemoveWordFromDictionary(const PRUnichar *word);
NS_IMETHOD CloseSpellChecking();
// nsIDocumentLoaderObserver
NS_IMETHOD OnStartDocumentLoad(nsIDocumentLoader* loader, nsIURI* aURL, const char* aCommand);
#ifndef NECKO
NS_IMETHOD OnEndDocumentLoad(nsIDocumentLoader* loader, nsIURI *aUrl, PRInt32 aStatus,
nsIDocumentLoaderObserver * aObserver);
#else
NS_IMETHOD OnEndDocumentLoad(nsIDocumentLoader* loader, nsIChannel* channel, PRInt32 aStatus,
nsIDocumentLoaderObserver * aObserver);
#endif // NECKO
#ifndef NECKO
NS_IMETHOD OnStartURLLoad(nsIDocumentLoader* loader, nsIURI* aURL, const char* aContentType,
nsIContentViewer* aViewer);
#else
NS_IMETHOD OnStartURLLoad(nsIDocumentLoader* loader, nsIChannel* channel,
nsIContentViewer* aViewer);
#endif // NECKO
#ifndef NECKO
NS_IMETHOD OnProgressURLLoad(nsIDocumentLoader* loader, nsIURI* aURL, PRUint32 aProgress,
PRUint32 aProgressMax);
#else
NS_IMETHOD OnProgressURLLoad(nsIDocumentLoader* loader, nsIChannel* channel, PRUint32 aProgress,
PRUint32 aProgressMax);
#endif // NECKO
#ifndef NECKO
NS_IMETHOD OnStatusURLLoad(nsIDocumentLoader* loader, nsIURI* aURL, nsString& aMsg);
#else
NS_IMETHOD OnStatusURLLoad(nsIDocumentLoader* loader, nsIChannel* channel, nsString& aMsg);
#endif // NECKO
#ifndef NECKO
NS_IMETHOD OnEndURLLoad(nsIDocumentLoader* loader, nsIURI* aURL, PRInt32 aStatus);
#else
NS_IMETHOD OnEndURLLoad(nsIDocumentLoader* loader, nsIChannel* channel, PRInt32 aStatus);
#endif // NECKO
#ifndef NECKO
NS_IMETHOD HandleUnknownContentType(nsIDocumentLoader* loader,
nsIURI *aURL,
const char *aContentType,
const char *aCommand );
#else
NS_IMETHOD HandleUnknownContentType(nsIDocumentLoader* loader,
nsIChannel* channel,
const char *aContentType,
const char *aCommand );
#endif // NECKO
protected:
nsIDOMWindow *mToolbarWindow; // weak reference
nsIDOMWindow *mContentWindow; // weak reference
nsIWebShellWindow *mWebShellWin; // weak reference
nsIWebShell *mWebShell; // weak reference
nsIWebShell *mContentAreaWebShell; // weak reference
typedef enum {
eUninitializedEditorType = 0,
ePlainTextEditorType = 1,
eHTMLTextEditorType = 2
} EEditorType;
nsIPresShell* GetPresShellFor(nsIWebShell* aWebShell);
NS_IMETHOD DoEditorMode(nsIWebShell *aWebShell);
NS_IMETHOD ExecuteScript(nsIScriptContext * aContext, const nsString& aScript);
NS_IMETHOD InstantiateEditor(nsIDOMDocument *aDoc, nsIPresShell *aPresShell);
NS_IMETHOD TransferDocumentStateListeners();
NS_IMETHOD RemoveOneProperty(const nsString& aProp, const nsString& aAttr);
void SetButtonImage(nsIDOMNode * aParentNode, PRInt32 aBtnNum, const nsString &aResName);
NS_IMETHOD CreateWindowWithURL(const char* urlStr);
NS_IMETHOD PrepareDocumentForEditing(nsIURI *aUrl);
NS_IMETHOD DoFind(PRBool aFindNext);
// this returns an AddReffed nsIScriptContext. You must relase it.
nsIScriptContext* GetScriptContext(nsIDOMWindow * aWin);
nsString mEnableScript;
nsString mDisableScript;
EEditorType mEditorType;
nsString mEditorTypeString; // string which describes which editor type will be instantiated (lowercased)
nsCOMPtr<nsIHighLevelHTMLEditor> mEditor; // this can be either an HTML or plain text (or other?) editor
nsCOMPtr<nsISupports> mSearchContext; // context used for search and replace. Owned by the appshell.
nsInterfaceState* mStateMaintainer; // we hold the owning ref to this.
PRInt32 mWrapColumn; // can't actually set this 'til the editor is created, so we may have to hold on to it for a while
nsCOMPtr<nsISpellChecker> mSpellChecker;
nsStringArray mSuggestedWordList;
PRInt32 mSuggestedWordIndex;
NS_IMETHOD DeleteSuggestedWordList();
nsStringArray mDictionaryList;
PRInt32 mDictionaryIndex;
// this is a holding pen for doc state listeners. They will be registered with
// the editor when that gets created.
nsCOMPtr<nsISupportsArray> mDocStateListeners; // contents are nsISupports
};
#endif // nsEditorShell_h___

View File

@@ -1,212 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is Mozilla Communicator client code.
*
* The Initial Developer of the Original Code is Netscape Communications
* Corporation. Portions created by Netscape are Copyright (C) 1998
* Netscape Communications Corporation. All Rights Reserved.
*/
#include "nsEditorShellFactory.h"
#include "nsEditorShell.h"
#include "nsEditor.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsXPComFactory.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID);
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
static NS_DEFINE_IID(kEditorShellCID, NS_EDITORSHELL_CID);
/////////////////////////////////////////////////////////////////////////
// nsEditorShellFactoryImpl
/////////////////////////////////////////////////////////////////////////
nsEditorShellFactoryImpl::nsEditorShellFactoryImpl(const nsCID &aClass,
const char* className,
const char* progID)
: mClassID(aClass), mClassName(className), mProgID(progID)
{
NS_INIT_REFCNT();
}
nsEditorShellFactoryImpl::~nsEditorShellFactoryImpl(void)
{
NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction");
}
NS_IMETHODIMP
nsEditorShellFactoryImpl::QueryInterface(REFNSIID aIID,void** aInstancePtr)
{
if (aInstancePtr == NULL)
{
return NS_ERROR_NULL_POINTER;
}
// Always NULL result, in case of failure
*aInstancePtr = NULL;
if ( aIID.Equals(kISupportsIID) )
{
*aInstancePtr = NS_STATIC_CAST(nsISupports*, this);
}
else if ( aIID.Equals(kIFactoryIID) )
{
*aInstancePtr = NS_STATIC_CAST(nsIFactory*, this);
}
if (*aInstancePtr == NULL)
{
return NS_ERROR_NO_INTERFACE;
}
AddRef();
return NS_OK;
}
NS_IMPL_ADDREF(nsEditorShellFactoryImpl)
NS_IMPL_RELEASE(nsEditorShellFactoryImpl)
NS_IMETHODIMP
nsEditorShellFactoryImpl::CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
if (!aResult)
return NS_ERROR_NULL_POINTER;
if (aOuter)
return NS_ERROR_NO_AGGREGATION;
*aResult = NULL;
nsresult rv;
nsISupports *inst = nsnull;
if (mClassID.Equals(kEditorShellCID)) {
if (NS_FAILED(rv = NS_NewEditorShell((nsIEditorShell**) &inst)))
return rv;
}
else {
return NS_ERROR_NO_INTERFACE;
}
if (NS_FAILED(rv = inst->QueryInterface(aIID, aResult))) {
// We didn't get the right interface.
NS_ERROR("didn't support the interface you wanted");
}
NS_IF_RELEASE(inst);
return rv;
}
NS_IMETHODIMP
nsEditorShellFactoryImpl::LockFactory(PRBool aLock)
{
// Not implemented in simplest case.
return NS_OK;
}
nsresult
GetEditorShellFactory(nsIFactory **aFactory, const nsCID &aClass, const char *aClassName, const char *aProgID)
{
PR_EnterMonitor(GetEditorMonitor());
nsEditorShellFactoryImpl* factory = new nsEditorShellFactoryImpl(aClass, aClassName, aProgID);
if (!factory)
return NS_ERROR_OUT_OF_MEMORY;
nsCOMPtr<nsIFactory> pNSIFactory (do_QueryInterface(factory));
if (!pNSIFactory)
return NS_ERROR_NO_INTERFACE;
nsresult result = pNSIFactory->QueryInterface(kIFactoryIID,
(void **)aFactory);
PR_ExitMonitor(GetEditorMonitor());
return result;
}
//#define EDITOR_SHELL_STANDALONE
#if EDITOR_SHELL_STANDALONE
// return the proper factory to the caller
extern "C" PR_IMPLEMENT(nsresult)
NSGetFactory(nsISupports* aServMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory)
{
if (! aFactory)
return NS_ERROR_NULL_POINTER;
nsEditorShellFactoryImpl* factory = new nsEditorShellFactoryImpl(aClass, aClassName, aProgID);
if (factory == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(factory);
*aFactory = factory;
return NS_OK;
}
extern "C" PR_IMPLEMENT(nsresult)
NSRegisterSelf(nsISupports* aServMgr , const char* aPath)
{
nsresult rv;
nsCOMPtr<nsIServiceManager> servMgr(do_QueryInterface(aServMgr, &rv));
if (NS_FAILED(rv)) return rv;
NS_WITH_SERVICE(nsIComponentManager, compMgr, kComponentManagerCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = compMgr->RegisterComponent(kEditorAppCoreCID,
"Editor Shell Component",
"component://netscape/editor/editorshell",
aPath, PR_TRUE, PR_TRUE);
if (NS_FAILED(rv)) return rv;
return NS_OK;
}
extern "C" PR_IMPLEMENT(nsresult)
NSUnregisterSelf(nsISupports* aServMgr, const char* aPath)
{
nsresult rv;
nsCOMPtr<nsIServiceManager> servMgr(do_QueryInterface(aServMgr, &rv));
if (NS_FAILED(rv)) return rv;
NS_WITH_SERVICE(nsIComponentManager, compMgr, kComponentManagerCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = compMgr->UnregisterComponent(kEditorAppCoreCID, aPath);
if (NS_FAILED(rv)) return rv;
return NS_OK;
}
#endif

View File

@@ -1,60 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsEditorAppCoreFactory_h___
#define nsEditorAppCoreFactory_h___
//#include "nscore.h"
//#include "nsString.h"
#include "nsIFactory.h"
#include "nsISupports.h"
////////////////////////////////////////////////////////////////////////////////
// nsEditorAppCoreFactory:
////////////////////////////////////////////////////////////////////////////////
class nsEditorShellFactoryImpl : public nsIFactory
{
public:
nsEditorShellFactoryImpl(const nsCID &aClass, const char* className, const char* progID);
// nsISupports methods
NS_DECL_ISUPPORTS
PRBool CanUnload(void);
NS_IMETHOD CreateInstance(nsISupports *aOuter,
const nsIID& aIID,
void **aResult);
NS_IMETHOD LockFactory(PRBool aLock);
protected:
virtual ~nsEditorShellFactoryImpl();
protected:
nsCID mClassID;
const char* mClassName;
const char* mProgID;
};
nsresult
GetEditorShellFactory(nsIFactory **aFactory, const nsCID &aClass, const char *aClassName, const char *aProgID);
#endif // nsEditorAppCoreFactory_h___

View File

@@ -1,52 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsEditorUtils.h"
/******************************************************************************
* nsAutoSelectionReset
*****************************************************************************/
nsAutoSelectionReset::nsAutoSelectionReset(nsIDOMSelection *aSel)
{
mInitialized = PR_FALSE;
mSel = do_QueryInterface(aSel);
if (mSel)
{
mSel->GetAnchorNode(getter_AddRefs(mStartNode));
mSel->GetAnchorOffset(&mStartOffset);
mSel->GetFocusNode(getter_AddRefs(mEndNode));
mSel->GetFocusOffset(&mEndOffset);
if (mStartNode && mEndNode)
mInitialized = PR_TRUE;
}
}
nsAutoSelectionReset::~nsAutoSelectionReset()
{
if (mSel && mInitialized)
{
// restore original selection
mSel->Collapse(mStartNode, mStartOffset);
mSel->Extend(mEndNode, mEndOffset);
}
}

View File

@@ -1,62 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsEditorUtils_h__
#define nsEditorUtils_h__
#include "nsCOMPtr.h"
#include "nsIDOMNode.h"
#include "nsIDOMSelection.h"
#include "nsIEditor.h"
class nsAutoEditBatch
{
private:
nsCOMPtr<nsIEditor> mEd;
public:
nsAutoEditBatch( nsIEditor *aEd) : mEd(do_QueryInterface(aEd))
{ if (mEd) mEd->BeginTransaction(); }
~nsAutoEditBatch() { if (mEd) mEd->EndTransaction(); }
};
class nsAutoSelectionReset
{
private:
/** ref-counted reference to the selection that we are supposed to restore */
nsCOMPtr<nsIDOMSelection> mSel;
/** PR_TRUE if this instance initialized itself correctly */
PRBool mInitialized;
nsCOMPtr<nsIDOMNode> mStartNode;
nsCOMPtr<nsIDOMNode> mEndNode;
PRInt32 mStartOffset;
PRInt32 mEndOffset;
public:
/** constructor responsible for remembering all state needed to restore aSel */
nsAutoSelectionReset(nsIDOMSelection *aSel);
/** destructor restores mSel to its former state */
~nsAutoSelectionReset();
};
#endif // nsEditorUtils_h__

View File

@@ -1,132 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://wwwt.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) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsHTMLEditFactory.h"
#include "nsIHTMLEditor.h"
#include "nsHTMLEditor.h"
#include "nsEditor.h"
#include "nsEditorCID.h"
#include "nsIComponentManager.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID);
static NS_DEFINE_IID(kIHTMLEditorIID, NS_IHTMLEDITOR_IID);
static NS_DEFINE_IID(kHTMLEditorCID, NS_HTMLEDITOR_CID);
static NS_DEFINE_IID(kIHTMLEditFactoryIID, NS_IHTMLEDITORFACTORY_IID);
nsresult
GetHTMLEditFactory(nsIFactory **aFactory, const nsCID & aClass)
{
PR_EnterMonitor(GetEditorMonitor());
nsHTMLEditFactory *factory = new nsHTMLEditFactory(aClass);
if (!factory)
return NS_ERROR_OUT_OF_MEMORY;
nsCOMPtr<nsIFactory> pNSIFactory = do_QueryInterface(factory);
if (!pNSIFactory)
return NS_ERROR_NO_INTERFACE;
nsresult result = pNSIFactory->QueryInterface(kIFactoryIID,
(void **)aFactory);
PR_ExitMonitor(GetEditorMonitor());
return result;
}
////////////////////////////////////////////////////////////////////////////
// from nsISupports
NS_IMETHODIMP
nsHTMLEditFactory::QueryInterface(const nsIID& aIID, void** aInstancePtr)
{
if (nsnull == aInstancePtr) {
NS_NOTREACHED("!nsEditor");
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(kIFactoryIID) ||
aIID.Equals(kISupportsIID)) {
*aInstancePtr = (void*) this;
AddRef();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMPL_ADDREF(nsHTMLEditFactory)
NS_IMPL_RELEASE(nsHTMLEditFactory)
////////////////////////////////////////////////////////////////////////////
// from nsIFactory:
NS_IMETHODIMP
nsHTMLEditFactory::CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
*aResult = nsnull;
nsISupports *obj = nsnull;
if (!aResult)
return NS_ERROR_NULL_POINTER;
if (aOuter && !aIID.Equals(kISupportsIID))
return NS_NOINTERFACE; // XXX right error?
if (mCID.Equals(kHTMLEditorCID))
{
//Need to cast to interface first to avoid "ambiguous conversion..." error
// because of multiple nsISupports in the class hierarchy
obj = (nsISupports *)(nsIHTMLEditor*)new nsHTMLEditor();
}
//more class ids to support. here
if (obj && NS_FAILED(obj->QueryInterface(aIID, (void**)aResult)) )
{
delete obj;
return NS_NOINTERFACE;
}
return NS_OK;
}
NS_IMETHODIMP
nsHTMLEditFactory::LockFactory(PRBool aLock)
{
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////
nsHTMLEditFactory::nsHTMLEditFactory(const nsCID &aClass)
:mCID(aClass)
{
NS_INIT_REFCNT();
}
nsHTMLEditFactory::~nsHTMLEditFactory()
{
//nsComponentManager::UnregisterFactory(mCID, (nsIFactory *)this); //we are out of ref counts anyway
}

View File

@@ -1,66 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://wwwt.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) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsHTMLEditFactory_h___
#define nsHTMLEditFactory_h___
#include "nsISupports.h"
#include "nsIFactory.h"
/*
Factory that can make a text editor
*/
/**
* This supplies the neccessary entrance to the edit module. it will return any
* instantiations that we need.
*/
class nsHTMLEditFactory;
extern nsresult GetHTMLEditFactory(nsIFactory **aFactory, const nsCID & aClass);
class nsHTMLEditFactory : public nsIFactory {
public:
////////////////////////////////////////////////////////////////////////////
// from nsISupports and AggregatedQueryInterface:
NS_DECL_ISUPPORTS
////////////////////////////////////////////////////////////////////////////
// from nsIFactory:
NS_IMETHOD
CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult);
NS_IMETHOD
LockFactory(PRBool aLock);
////////////////////////////////////////////////////////////////////////////
virtual ~nsHTMLEditFactory(void);
private:
nsHTMLEditFactory(const nsCID &aClass); //will fill the aFactory with the result from queryinterface
/** GetHTMLEditFactory
* creates an edit factory other CSID supported friend functions here.
*/
friend nsresult GetHTMLEditFactory(nsIFactory **, const nsCID & );
const nsCID &mCID;
};
#endif //nsIEditFactory_h___

File diff suppressed because it is too large Load Diff

View File

@@ -1,115 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsHTMLEditRules_h__
#define nsHTMLEditRules_h__
#include "nsTextEditRules.h"
#include "nsISupportsArray.h"
#include "nsCOMPtr.h"
class nsISupportsArray;
class nsVoidArray;
class nsHTMLEditRules : public nsTextEditRules
{
public:
nsHTMLEditRules(PRUint32 aFlags);
virtual ~nsHTMLEditRules();
// nsEditRules methods
NS_IMETHOD WillDoAction(nsIDOMSelection *aSelection, nsRulesInfo *aInfo, PRBool *aCancel);
NS_IMETHOD DidDoAction(nsIDOMSelection *aSelection, nsRulesInfo *aInfo, nsresult aResult);
protected:
enum IterDirection
{
kIterForward,
kIterBackward
};
enum RulesEndpoint
{
kStart,
kEnd
};
// nsHTMLEditRules implementation methods
nsresult WillInsertText(nsIDOMSelection *aSelection,
PRBool *aCancel,
PlaceholderTxn **aTxn,
const nsString *inString,
nsString *outString,
TypeInState typeInState,
PRInt32 aMaxLength);
nsresult WillInsertBreak(nsIDOMSelection *aSelection, PRBool *aCancel);
nsresult WillDeleteSelection(nsIDOMSelection *aSelection, nsIEditor::ESelectionCollapseDirection aAction, PRBool *aCancel);
nsresult WillMakeList(nsIDOMSelection *aSelection, PRBool aOrderd, PRBool *aCancel);
nsresult WillIndent(nsIDOMSelection *aSelection, PRBool *aCancel);
nsresult WillOutdent(nsIDOMSelection *aSelection, PRBool *aCancel);
nsresult WillAlign(nsIDOMSelection *aSelection, const nsString *alignType, PRBool *aCancel);
nsresult WillMakeHeader(nsIDOMSelection *aSelection, PRBool *aCancel);
nsresult WillMakeAddress(nsIDOMSelection *aSelection, PRBool *aCancel);
nsresult WillMakePRE(nsIDOMSelection *aSelection, PRBool *aCancel);
nsresult InsertTab(nsIDOMSelection *aSelection, PRBool *aCancel, PlaceholderTxn **aTxn, nsString *outString);
nsresult InsertSpace(nsIDOMSelection *aSelection, PRBool *aCancel, PlaceholderTxn **aTxn, nsString *outString);
nsresult ReturnInHeader(nsIDOMSelection *aSelection, nsIDOMNode *aHeader, nsIDOMNode *aTextNode, PRInt32 aOffset);
nsresult ReturnInParagraph(nsIDOMSelection *aSelection, nsIDOMNode *aHeader, nsIDOMNode *aTextNode, PRInt32 aOffset, PRBool *aCancel);
nsresult ReturnInListItem(nsIDOMSelection *aSelection, nsIDOMNode *aHeader, nsIDOMNode *aTextNode, PRInt32 aOffset);
// helper methods
static nsresult GetTabAsNBSPs(nsString *outString);
static nsresult GetTabAsNBSPsAndSpace(nsString *outString);
static PRBool IsHeader(nsIDOMNode *aNode);
static PRBool IsParagraph(nsIDOMNode *aNode);
static PRBool IsListItem(nsIDOMNode *aNode);
static PRBool IsUnorderedList(nsIDOMNode *aNode);
static PRBool IsOrderedList(nsIDOMNode *aNode);
static PRBool IsBreak(nsIDOMNode *aNode);
static PRBool IsBody(nsIDOMNode *aNode);
static PRBool IsBlockquote(nsIDOMNode *aNode);
static PRBool IsDiv(nsIDOMNode *aNode);
PRBool IsFirstNode(nsIDOMNode *aNode);
PRBool IsLastNode(nsIDOMNode *aNode);
nsresult GetPromotedPoint(RulesEndpoint aWhere, nsIDOMNode *aNode, PRInt32 aOffset,
PRInt32 actionID, nsCOMPtr<nsIDOMNode> *outNode, PRInt32 *outOffset);
nsresult GetPromotedRanges(nsIDOMSelection *inSelection,
nsCOMPtr<nsISupportsArray> *outArrayOfRanges,
PRInt32 inOperationType);
static nsresult GetNodesForOperation(nsISupportsArray *inArrayOfRanges,
nsCOMPtr<nsISupportsArray> *outArrayOfNodes,
PRInt32 inOperationType);
static nsresult MakeTransitionList(nsISupportsArray *inArrayOfNodes,
nsVoidArray *inTransitionArray);
nsresult ReplaceContainer(nsIDOMNode *inNode, nsCOMPtr<nsIDOMNode> *outNode, nsString &aNodeType);
nsresult RemoveContainer(nsIDOMNode *inNode);
nsresult InsertContainerAbove(nsIDOMNode *inNode, nsCOMPtr<nsIDOMNode> *outNode, nsString &aNodeType);
};
#endif //nsHTMLEditRules_h__

File diff suppressed because it is too large Load Diff

View File

@@ -1,434 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsHTMLEditor_h__
#define nsHTMLEditor_h__
#include "nsCOMPtr.h"
#include "nsIHighLevelHTMLEditor.h"
#include "nsITableEditor.h"
#include "nsIEditorMailSupport.h"
#include "nsIEditorStyleSheets.h"
#include "nsEditor.h"
#include "nsIDOMElement.h"
#include "nsIDOMEventListener.h"
#include "nsITableLayout.h"
#include "TypeInState.h"
#include "nsEditRules.h"
/**
* The HTML editor implementation.<br>
* Use to edit HTML document represented as a DOM tree.
*/
class nsHTMLEditor : public nsEditor,
public nsIHighLevelHTMLEditor,
public nsIEditorMailSupport,
public nsITableEditor,
public nsIEditorStyleSheets
{
typedef enum {eNoOp, eReplaceParent=1, eInsertParent=2} BlockTransformationType;
public:
// see nsIHTMLEditor for documentation
//Interfaces for addref and release and queryinterface
//NOTE macro used is for classes that inherit from
// another class. Only the base class should use NS_DECL_ISUPPORTS
NS_DECL_ISUPPORTS_INHERITED
nsHTMLEditor();
virtual ~nsHTMLEditor();
/* ------------ nsIHighLevelHTMLEditor methods -------------- */
NS_IMETHOD GetDocumentLength(PRInt32 *aCount);
NS_IMETHOD SetMaxTextLength(PRInt32 aMaxTextLength);
NS_IMETHOD GetMaxTextLength(PRInt32& aMaxTextLength);
NS_IMETHOD SetInlineProperty(nsIAtom *aProperty,
const nsString *aAttribute,
const nsString *aValue);
NS_IMETHOD GetInlineProperty(nsIAtom *aProperty,
const nsString *aAttribute,
const nsString *aValue,
PRBool &aFirst, PRBool &aAny, PRBool &aAll);
NS_IMETHOD RemoveInlineProperty(nsIAtom *aProperty, const nsString *aAttribute);
NS_IMETHOD InsertBreak();
NS_IMETHOD InsertText(const nsString& aStringToInsert);
NS_IMETHOD InsertHTML(const nsString &aInputString);
NS_IMETHOD InsertElement(nsIDOMElement* aElement, PRBool aDeleteSelection);
NS_IMETHOD DeleteSelection(ESelectionCollapseDirection aAction);
NS_IMETHOD DeleteSelectionAndCreateNode(const nsString& aTag, nsIDOMNode ** aNewNode);
NS_IMETHOD SelectElement(nsIDOMElement* aElement);
NS_IMETHOD SetCaretAfterElement(nsIDOMElement* aElement);
NS_IMETHOD GetParagraphFormat(nsString& aParagraphFormat);
NS_IMETHOD SetParagraphFormat(const nsString& aParagraphFormat);
NS_IMETHOD GetParagraphStyle(nsStringArray *aTagList);
NS_IMETHOD RemoveParagraphStyle();
NS_IMETHOD AddBlockParent(nsString& aParentTag);
NS_IMETHOD ReplaceBlockParent(nsString& aParentTag);
NS_IMETHOD RemoveParent(const nsString &aParentTag);
NS_IMETHOD InsertList(const nsString& aListType);
NS_IMETHOD Indent(const nsString& aIndent);
NS_IMETHOD Align(const nsString& aAlign);
NS_IMETHOD GetElementOrParentByTagName(const nsString& aTagName, nsIDOMNode *aNode, nsIDOMElement** aReturn);
NS_IMETHOD GetSelectedElement(const nsString& aTagName, nsIDOMElement** aReturn);
NS_IMETHOD CreateElementWithDefaults(const nsString& aTagName, nsIDOMElement** aReturn);
NS_IMETHOD SaveHLineSettings(nsIDOMElement* aElement);
NS_IMETHOD InsertLinkAroundSelection(nsIDOMElement* aAnchorElement);
/* ------------ nsIEditorStyleSheets methods -------------- */
NS_IMETHOD ApplyStyleSheet(const nsString& aURL);
NS_IMETHOD AddStyleSheet(nsICSSStyleSheet* aSheet);
NS_IMETHOD RemoveStyleSheet(nsICSSStyleSheet* aSheet);
/* ------------ nsIEditorMailSupport methods -------------- */
NS_IMETHOD GetBodyWrapWidth(PRInt32 *aWrapColumn);
NS_IMETHOD SetBodyWrapWidth(PRInt32 aWrapColumn);
NS_IMETHOD PasteAsQuotation();
NS_IMETHOD InsertAsQuotation(const nsString& aQuotedText);
NS_IMETHOD PasteAsCitedQuotation(const nsString& aCitation);
NS_IMETHOD InsertAsCitedQuotation(const nsString& aQuotedText, const nsString& aCitation);
NS_IMETHOD GetEmbeddedObjects(nsISupportsArray** aNodeList);
/* ------------ nsITableEditor methods -------------- */
NS_IMETHOD InsertTable();
NS_IMETHOD InsertTableCell(PRInt32 aNumber, PRBool aAfter);
NS_IMETHOD InsertTableColumn(PRInt32 aNumber, PRBool aAfter);
NS_IMETHOD InsertTableRow(PRInt32 aNumber, PRBool aAfter);
NS_IMETHOD DeleteTable();
NS_IMETHOD DeleteTableCell(PRInt32 aNumber);
NS_IMETHOD DeleteTableColumn(PRInt32 aNumber);
NS_IMETHOD DeleteTableRow(PRInt32 aNumber);
NS_IMETHOD JoinTableCells(PRBool aCellToRight);
NS_IMETHOD NormalizeTable(nsIDOMElement *aTable);
NS_IMETHOD GetCellIndexes(nsIDOMElement *aCell, PRInt32& aRowIndex, PRInt32& aColIndex);
NS_IMETHOD GetTableSize(nsIDOMElement *aTable, PRInt32& aRowCount, PRInt32& aColCount);
NS_IMETHOD GetCellAt(nsIDOMElement* aTable, PRInt32 aRowIndex, PRInt32 aColIndex, nsIDOMElement* &aCell);
NS_IMETHOD GetCellDataAt(nsIDOMElement* aTable, PRInt32 aRowIndex, PRInt32 aColIndex, nsIDOMElement* &aCell,
PRInt32& aStartRowIndex, PRInt32& aStartColIndex,
PRInt32& aRowSpan, PRInt32& aColSpan, PRBool& aIsSelected);
// Selection and navigation
/* obsolete
NS_IMETHOD MoveSelectionUp(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD MoveSelectionDown(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD MoveSelectionNext(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD MoveSelectionPrevious(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD SelectNext(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD SelectPrevious(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD ScrollUp(nsIAtom *aIncrement);
NS_IMETHOD ScrollDown(nsIAtom *aIncrement);
NS_IMETHOD ScrollIntoView(PRBool aScrollToBegin);
*/
/* miscellaneous */
// This sets background on the appropriate container element (table, cell,)
// or calls into nsTextEditor to set the page background
NS_IMETHOD SetBackgroundColor(const nsString& aColor);
NS_IMETHOD SetBodyAttribute(const nsString& aAttr, const nsString& aValue);
/* ------------ Overrides of nsEditor interface methods -------------- */
NS_IMETHOD Init(nsIDOMDocument *aDoc, nsIPresShell *aPresShell, PRUint32 aFlags);
NS_IMETHOD GetFlags(PRUint32 *aFlags);
NS_IMETHOD SetFlags(PRUint32 aFlags);
NS_IMETHOD Cut();
NS_IMETHOD Copy();
NS_IMETHOD Paste();
NS_IMETHOD OutputToString(nsString& aOutputString,
const nsString& aFormatType,
PRUint32 aFlags);
NS_IMETHOD OutputToStream(nsIOutputStream* aOutputStream,
const nsString& aFormatType,
const nsString* aCharsetOverride,
PRUint32 aFlags);
NS_IMETHOD DebugUnitTests(PRInt32 *outNumTests, PRInt32 *outNumTestsFailed);
protected:
virtual void InitRules();
NS_IMETHOD GetLayoutObject(nsIDOMNode *aNode, nsISupports **aLayoutObject);
NS_IMETHOD DeleteSelectionAndPrepareToCreateNode(nsCOMPtr<nsIDOMNode> &parentSelectedNode, PRInt32& offsetOfNewNode);
/* StyleSheet load callback */
static void ApplyStyleSheetToPresShellDocument(nsICSSStyleSheet* aSheet, void *aData);
/* remove the old style sheet, and apply the supplied one */
NS_IMETHOD ReplaceStyleSheet(nsICSSStyleSheet *aNewSheet);
// Return TRUE if aElement is a table-related elemet and caret was set
PRBool SetCaretInTableCell(nsIDOMElement* aElement);
PRBool IsElementInBody(nsIDOMElement* aElement);
// Table Editing (implemented in EditTable.cpp)
// Helper used to get nsITableLayout interface for methods implemented in nsTableFrame
NS_IMETHOD GetTableLayoutObject(nsIDOMElement* aTable, nsITableLayout **tableLayoutObject);
// Table utilities
// All of the above need to get the same basic context data
NS_IMETHOD GetCellContext(nsCOMPtr<nsIDOMSelection> &aSelection,
nsCOMPtr<nsIDOMElement> &aTable, nsCOMPtr<nsIDOMElement> &aCell,
nsCOMPtr<nsIDOMNode> &aCellParent, PRInt32& aCellOffset,
PRInt32& aRow, PRInt32& aCol);
// Setting caret to a logical place can get tricky,
// especially after deleting table stuff
typedef enum { ePreviousColumn, ePreviousRow } SetCaretSearchDirection;
NS_IMETHOD SetCaretAfterTableEdit(nsIDOMElement* aTable, PRInt32 aCol, PRInt32 aRow, SetCaretSearchDirection aDirection);
NS_IMETHOD ReParentContentOfNode(nsIDOMNode *aNode,
nsString &aParentTag,
BlockTransformationType aTranformation);
NS_IMETHOD ReParentBlockContent(nsIDOMNode *aNode,
nsString &aParentTag,
nsIDOMNode *aBlockParentNode,
nsString &aBlockParentTag,
BlockTransformationType aTranformation,
nsIDOMNode **aNewParentNode);
NS_IMETHOD ReParentContentOfRange(nsIDOMRange *aRange,
nsString &aParentTag,
BlockTransformationType aTranformation);
NS_IMETHOD RemoveParagraphStyleFromRange(nsIDOMRange *aRange);
NS_IMETHOD RemoveParagraphStyleFromBlockContent(nsIDOMRange *aRange);
NS_IMETHOD RemoveParentFromRange(const nsString &aParentTag, nsIDOMRange *aRange);
NS_IMETHOD RemoveParentFromBlockContent(const nsString &aParentTag, nsIDOMRange *aRange);
NS_IMETHOD IsRootTag(nsString &aTag, PRBool &aIsTag);
NS_IMETHOD IsSubordinateBlock(nsString &aTag, PRBool &aIsTag);
/** content-based query returns PR_TRUE if <aProperty aAttribute=aValue> effects aNode
* If <aProperty aAttribute=aValue> contains aNode,
* but <aProperty aAttribute=SomeOtherValue> also contains aNode and the second is
* more deeply nested than the first, then the first does not effect aNode.
*
* @param aNode The target of the query
* @param aProperty The property that we are querying for
* @param aAttribute The attribute of aProperty, example: color in <FONT color="blue">
* May be null.
* @param aValue The value of aAttribute, example: blue in <FONT color="blue">
* May be null. Ignored if aAttribute is null.
* @param aIsSet [OUT] PR_TRUE if <aProperty aAttribute=aValue> effects aNode.
* @param aStyleNode [OUT] set to the node representing <aProperty aAttribute=aValue>, if found.
* null if aIsSet is returned as PR_FALSE;
*/
virtual void IsTextPropertySetByContent(nsIDOMNode *aNode,
nsIAtom *aProperty,
const nsString *aAttribute,
const nsString *aValue,
PRBool &aIsSet,
nsIDOMNode **aStyleNode) const;
/** style-based query returns PR_TRUE if (aProperty, aAttribute) is set in aSC.
* WARNING: not well tested yet since we don't do style-based queries anywhere.
*/
virtual void IsTextStyleSet(nsIStyleContext *aSC,
nsIAtom *aProperty,
const nsString *aAttributes,
PRBool &aIsSet) const;
/** Moves the content between (aNode, aStartOffset) and (aNode, aEndOffset)
* into aNewParentNode, splitting aNode as necessary to maintain the relative
* position of all leaf content.
* @param aNode The node whose content we're repositioning.
* aNode can be either a text node or a container node.
* @param aNewParentNode The node that will be the repositioned contents' parent.
* The caller is responsible for allocating aNewParentNode
* @param aStartOffset The start offset of the content of aNode
* @param aEndOffset The end offset of the content of aNode.
*/
NS_IMETHOD MoveContentOfNodeIntoNewParent(nsIDOMNode *aNode,
nsIDOMNode *aNewParentNode,
PRInt32 aStartOffset,
PRInt32 aEndOffset);
/** Moves the content between (aStartNode, aStartOffset) and (aEndNode, aEndOffset)
* into aNewParentNode, splitting aStartNode and aEndNode as necessary to maintain
* the relative position of all leaf content.
* The content between the two endpoints MUST be "contiguous" in the sense that
* it is all in the same block. Another way of saying this is all content nodes
* between aStartNode and aEndNode must be inline.
* @see IntermediateNodesAreInline
*
* @param aStartNode The left node, can be either a text node or a container node.
* @param aStartOffset The start offset in the content of aStartNode
* @param aEndNode The right node, can be either a text node or a container node.
* @param aEndOffset The end offset in the content of aEndNode.
* @param aGrandParentNode The common ancestor of aStartNode and aEndNode.
* aGrandParentNode will be the parent of aNewParentNode.
* @param aNewParentNode The node that will be the repositioned contents' parent.
* The caller is responsible for allocating aNewParentNode
*/
NS_IMETHOD MoveContiguousContentIntoNewParent(nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
nsIDOMNode *aGrandParentNode,
nsIDOMNode *aNewParentNode);
NS_IMETHOD SetTextPropertiesForNode(nsIDOMNode *aNode,
nsIDOMNode *aParent,
PRInt32 aStartOffset,
PRInt32 aEndOffset,
nsIAtom *aPropName,
const nsString *aAttribute,
const nsString *aValue);
NS_IMETHOD SetTextPropertiesForNodesWithSameParent(nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
nsIDOMNode *aParent,
nsIAtom *aPropName,
const nsString *aAttribute,
const nsString *aValue);
NS_IMETHOD SetTextPropertiesForNodeWithDifferentParents(nsIDOMRange *aRange,
nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
nsIDOMNode *aParent,
nsIAtom *aPropName,
const nsString *aAttribute,
const nsString *aValue);
NS_IMETHOD RemoveTextPropertiesForNode(nsIDOMNode *aNode,
nsIDOMNode *aParent,
PRInt32 aStartOffset,
PRInt32 aEndOffset,
nsIAtom *aPropName,
const nsString *aAttribute);
NS_IMETHOD RemoveTextPropertiesForNodesWithSameParent(nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
nsIDOMNode *aParent,
nsIAtom *aPropName,
const nsString *aAttribute);
NS_IMETHOD RemoveTextPropertiesForNodeWithDifferentParents(nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
nsIDOMNode *aParent,
nsIAtom *aPropName,
const nsString *aAttribute);
NS_IMETHOD SetTypeInStateForProperty(TypeInState &aTypeInState,
nsIAtom *aPropName,
const nsString *aAttribute,
const nsString *aValue);
void GetTextSelectionOffsetsForRange(nsIDOMSelection *aSelection,
nsIDOMNode **aParent,
PRInt32 &aStartOffset,
PRInt32 &aEndOffset);
void ResetTextSelectionForRange(nsIDOMNode *aParent,
PRInt32 aStartOffset,
PRInt32 aEndOffset,
nsIDOMSelection *aSelection);
/** returns the absolute position of the end points of aSelection
* in the document as a text stream.
*/
nsresult GetTextSelectionOffsets(nsIDOMSelection *aSelection,
PRInt32 &aStartOffset,
PRInt32 &aEndOffset);
// Methods for handling plaintext quotations
NS_IMETHOD PasteAsPlaintextQuotation();
NS_IMETHOD InsertAsPlaintextQuotation(const nsString& aQuotedText);
// I hate seeing nsCOMPtr return types.
nsCOMPtr<nsIDOMElement> FindPreElement();
TypeInState *GetTypeInState();
/** simple utility to handle any error with event listener allocation or registration */
void HandleEventListenerError();
// Data members
protected:
TypeInState* mTypeInState;
nsEditRules* mRules;
nsCOMPtr<nsIDOMEventListener> mKeyListenerP;
nsCOMPtr<nsIDOMEventListener> mMouseListenerP;
nsCOMPtr<nsIDOMEventListener> mTextListenerP;
nsCOMPtr<nsIDOMEventListener> mCompositionListenerP;
nsCOMPtr<nsIDOMEventListener> mDragListenerP;
nsCOMPtr<nsIDOMEventListener> mFocusListenerP;
PRBool mIsComposing;
PRInt32 mMaxTextLength;
PRUint32 mWrapColumn;
// friends
friend class nsHTMLEditRules;
friend class nsTextEditRules;
};
#endif //nsHTMLEditor_h__

View File

@@ -1,132 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://wwwt.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 __nsIEditProperty_h__
#define __nsIEditProperty_h__
#include "nsISupports.h"
class nsIAtom;
class nsString;
#define NS_IEDITPROPERTY_IID \
{/* 9875cd40-ca81-11d2-8f4d-006008159b0c*/ \
0x9875cd40, 0xca81, 0x11d2, \
{0x8f, 0x4d, 0x0, 0x60, 0x8, 0x15, 0x9b, 0x0c} }
/** simple interface for describing a single property as it relates to a range of content.
*
*/
class nsIEditProperty : public nsISupports
{
public:
static const nsIID& GetIID() { static nsIID iid = NS_IEDITPROPERTY_IID; return iid; }
public:
/* we're still trying to decide how edit atoms will work. Until then, use these */
// XXX: fix ASAP!
// inline tags
static nsIAtom *b;
static nsIAtom *big;
static nsIAtom *i;
static nsIAtom *small;
static nsIAtom *strike;
static nsIAtom *sub;
static nsIAtom *sup;
static nsIAtom *tt;
static nsIAtom *u;
static nsIAtom *em;
static nsIAtom *strong;
static nsIAtom *dfn;
static nsIAtom *code;
static nsIAtom *samp;
static nsIAtom *kbd;
static nsIAtom *var;
static nsIAtom *cite;
static nsIAtom *abbr;
static nsIAtom *acronym;
static nsIAtom *font;
static nsIAtom *a;
static nsIAtom *img;
static nsIAtom *object;
static nsIAtom *br;
static nsIAtom *script;
static nsIAtom *map;
static nsIAtom *q;
static nsIAtom *span;
static nsIAtom *bdo;
static nsIAtom *input;
static nsIAtom *select;
static nsIAtom *textarea;
static nsIAtom *label;
static nsIAtom *button;
// Block tags
static nsIAtom *p;
static nsIAtom *div;
static nsIAtom *blockquote;
static nsIAtom *h1;
static nsIAtom *h2;
static nsIAtom *h3;
static nsIAtom *h4;
static nsIAtom *h5;
static nsIAtom *h6;
static nsIAtom *ul;
static nsIAtom *ol;
static nsIAtom *dl;
static nsIAtom *pre;
static nsIAtom *noscript;
static nsIAtom *form;
static nsIAtom *hr;
static nsIAtom *table;
static nsIAtom *fieldset;
static nsIAtom *address;
// Assumed to be block:
static nsIAtom *body;
static nsIAtom *tr;
static nsIAtom *td;
static nsIAtom *th;
static nsIAtom *caption;
static nsIAtom *col;
static nsIAtom *colgroup;
static nsIAtom *thead;
static nsIAtom *tfoot;
static nsIAtom *li;
static nsIAtom *dt;
static nsIAtom *dd;
static nsIAtom *legend;
/** properties **/
static nsIAtom *color;
static nsIAtom *face;
static nsIAtom *size;
/** special strings */
static nsString *allProperties; // this magic string represents the union of all inline style tags
// XXX: end temp code
};
extern nsresult NS_NewEditProperty(nsIEditProperty **aResult);
#endif

View File

@@ -1,76 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIEditorSupport_h__
#define nsIEditorSupport_h__
#include "nsISupports.h"
class nsIDOMNode;
/*
Private Editor interface for a class that can provide helper functions
*/
#define NS_IEDITORSUPPORT_IID \
{/* 89b999b0-c529-11d2-86da-000064657374*/ \
0x89b999b0, 0xc529, 0x11d2, \
{0x86, 0xda, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74} }
/**
*/
class nsIEditorSupport : public nsISupports {
public:
static const nsIID& GetIID() { static nsIID iid = NS_IEDITORSUPPORT_IID; return iid; }
/**
* SplitNode() creates a new node identical to an existing node, and split the contents between the two nodes
* @param aExistingRightNode the node to split. It will become the new node's next sibling.
* @param aOffset the offset of aExistingRightNode's content|children to do the split at
* @param aNewLeftNode [OUT] the new node resulting from the split, becomes aExistingRightNode's previous sibling.
* @param aParent the parent of aExistingRightNode
*/
NS_IMETHOD SplitNodeImpl(nsIDOMNode * aExistingRightNode,
PRInt32 aOffset,
nsIDOMNode * aNewLeftNode,
nsIDOMNode * aParent)=0;
/**
* JoinNodes() takes 2 nodes and merge their content|children.
* @param aNodeToKeep The node that will remain after the join.
* @param aNodeToJoin The node that will be joined with aNodeToKeep.
* There is no requirement that the two nodes be of the same type.
* @param aParent The parent of aExistingRightNode
* @param aNodeToKeepIsFirst if PR_TRUE, the contents|children of aNodeToKeep come before the
* contents|children of aNodeToJoin, otherwise their positions are switched.
*/
NS_IMETHOD JoinNodesImpl(nsIDOMNode *aNodeToKeep,
nsIDOMNode *aNodeToJoin,
nsIDOMNode *aParent,
PRBool aNodeToKeepIsFirst)=0;
static nsresult GetChildOffset(nsIDOMNode *aChild, nsIDOMNode *aParent, PRInt32 &aOffset);
};
#endif //nsIEditorSupport_h__

View File

@@ -1,124 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
// THIS FILE IS CURRENTLY THOUGHT TO BE OBSOLETE.
// KEEPING AROUND FOR A FEW DAYS JUST TO MAKE SURE;
// BUT IT'S NO LONGER PART OF THE BUILD.
#include "nsIDOMDocumentFragment.h"
#include "nsInsertHTMLTxn.h"
#include "nsIDOMSelection.h"
#include "nsIContent.h"
#include "nsIDOMNSRange.h"
nsInsertHTMLTxn::nsInsertHTMLTxn() : EditTxn(), mSrc("")
{
}
NS_IMETHODIMP nsInsertHTMLTxn::Init(const nsString& aSrc, nsIEditor* aEditor)
{
if (!aEditor)
return NS_ERROR_NULL_POINTER;
mSrc = aSrc;
mEditor = do_QueryInterface(aEditor);
return NS_OK;
}
nsInsertHTMLTxn::~nsInsertHTMLTxn()
{
//NS_RELEASE(mStr); // do nsStrings have to be released?
}
NS_IMETHODIMP nsInsertHTMLTxn::Do(void)
{
nsCOMPtr<nsIDOMSelection>selection;
nsresult res = mEditor->GetSelection(getter_AddRefs(selection));
if (NS_SUCCEEDED(res) && selection)
{
// Get the first range in the selection, and save it in mRange:
res = selection->GetRangeAt(0, getter_AddRefs(mRange));
if (NS_SUCCEEDED(res))
{
nsCOMPtr<nsIDOMNSRange> nsrange (do_QueryInterface(mRange));
if (nsrange)
{
#ifdef DEBUG_akkana
char* str = mSrc.ToNewCString();
printf("Calling nsInsertHTMLTxn::Do(%s)\n", str);
delete[] str;
#endif /* DEBUG_akkana */
nsCOMPtr<nsIDOMDocumentFragment> docfrag;
res = nsrange->CreateContextualFragment(mSrc, getter_AddRefs(docfrag));
// Now we have to insert that document fragment in an undoable way
printf("Sorry, Insert HTML not fully written yet\n");
return NS_ERROR_NOT_IMPLEMENTED;
}
}
#ifdef DEBUG_akkana
else printf("nsInsertHTMLTxn::Do: Couldn't get selection range!\n");
#endif
}
return res;
}
NS_IMETHODIMP nsInsertHTMLTxn::Undo(void)
{
#ifdef DEBUG_akkana
printf("%p Undo Insert HTML\n", this);
#endif /* DEBUG_akkana */
if (!mRange)
return NS_ERROR_NULL_POINTER;
return mRange->DeleteContents();
}
NS_IMETHODIMP nsInsertHTMLTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
if (nsnull != aDidMerge)
*aDidMerge=PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP nsInsertHTMLTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsInsertHTMLTxn::GetUndoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Remove HTML: ";
}
return NS_OK;
}
NS_IMETHODIMP nsInsertHTMLTxn::GetRedoString(nsString *aString)
{
if (nsnull!=aString)
{
*aString="Insert HTML: ";
}
return NS_OK;
}

View File

@@ -1,82 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsInsertHTMLTxn_h__
#define nsInsertHTMLTxn_h__
#include "EditTxn.h"
#include "nsIEditor.h"
#include "nsIDOMRange.h"
#include "nsCOMPtr.h"
#define NS_INSERT_HTML_TXN_CID \
{/* a6cf90fd-15b3-11d2-932e-00805f8add3 */ \
0xa6cf90fc, 0x15b3, 0x11d2, \
{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32} }
/**
* A transaction that inserts a string of html source
*/
class nsInsertHTMLTxn : public EditTxn
{
public:
static const nsIID& GetCID() { static nsIID iid = NS_INSERT_HTML_TXN_CID; return iid; }
/** initialize the transaction.
* @param aSrc the source for the HTML to insert
* @param aEditor the editor in which to do the work
*/
NS_IMETHOD Init(const nsString& aSrc,
nsIEditor *aEditor);
private:
nsInsertHTMLTxn();
public:
virtual ~nsInsertHTMLTxn();
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
protected:
/** the html to insert */
nsString mSrc;
/** the range representing the inserted fragment */
nsCOMPtr<nsIDOMRange> mRange;
/** the editor for this transaction */
nsCOMPtr<nsIEditor> mEditor;
friend class TransactionFactory;
};
#endif

View File

@@ -1,300 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsCOMPtr.h"
#include "nsVoidArray.h"
#include "nsIContentViewer.h"
#include "nsIDocumentViewer.h"
#include "nsIDocument.h"
#include "nsIDOMDocument.h"
#include "nsIDOMXULDocument.h"
#include "nsIDiskDocument.h"
#include "nsIDOMElement.h"
#include "nsIDOMSelection.h"
#include "nsIEditor.h"
#include "nsIHighLevelHTMLEditor.h"
#include "nsInterfaceState.h"
nsInterfaceState::nsInterfaceState()
: mEditor(nsnull)
, mWebShell(nsnull)
, mBoldState(eStateUninitialized)
, mItalicState(eStateUninitialized)
, mUnderlineState(eStateUninitialized)
, mDirtyState(eStateUninitialized)
{
NS_INIT_REFCNT();
}
nsInterfaceState::~nsInterfaceState()
{
}
NS_IMPL_ADDREF(nsInterfaceState);
NS_IMPL_RELEASE(nsInterfaceState);
NS_IMETHODIMP
nsInterfaceState::QueryInterface(const nsIID& aIID, void** aInstancePtr)
{
if (nsnull == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
*aInstancePtr = nsnull;
if (aIID.Equals(nsIDOMSelectionListener::GetIID()))
{
*aInstancePtr = (void*)(nsIDOMSelectionListener*)this;
AddRef();
return NS_OK;
}
if (aIID.Equals(nsIDocumentStateListener::GetIID()))
{
*aInstancePtr = (void*)(nsIDocumentStateListener*)this;
AddRef();
return NS_OK;
}
if (aIID.Equals(nsCOMTypeInfo<nsISupports>::GetIID()))
{
*aInstancePtr = (void*)(nsISupports *)(nsIDOMSelectionListener*)this;
AddRef();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMETHODIMP
nsInterfaceState::Init(nsIHighLevelHTMLEditor* aEditor, nsIWebShell *aChromeWebShell)
{
if (!aEditor)
return NS_ERROR_INVALID_ARG;
if (!aChromeWebShell)
return NS_ERROR_INVALID_ARG;
mEditor = aEditor; // no addreffing here
mWebShell = aChromeWebShell;
return NS_OK;
}
NS_IMETHODIMP
nsInterfaceState::NotifyDocumentCreated()
{
return NS_OK;
}
NS_IMETHODIMP
nsInterfaceState::NotifyDocumentWillBeDestroyed()
{
return NS_OK;
}
NS_IMETHODIMP
nsInterfaceState::NotifyDocumentStateChanged(PRBool aNowDirty)
{
// update document modified. We should have some other notifications for this too.
return UpdateDirtyState(aNowDirty);
}
NS_IMETHODIMP
nsInterfaceState::NotifySelectionChanged()
{
nsresult rv;
// we don't really care if any of these fail.
// update bold
rv = UpdateTextState("b", "Editor:Style:IsBold", "bold", mBoldState);
// update italic
rv = UpdateTextState("i", "Editor:Style:IsItalic", "italic", mItalicState);
// update underline
rv = UpdateTextState("u", "Editor:Style:IsUnderline", "underline", mUnderlineState);
// udpate the font face
rv = UpdateFontFace("Editor:Font:Face", "font", mFontString);
// update the paragraph format popup
rv = UpdateParagraphState("Editor:Paragraph:Format", "format", mParagraphFormat);
// update the list buttons
rv = UpdateListState("Editor:Paragraph:List", "ol");
return NS_OK;
}
nsresult
nsInterfaceState::UpdateParagraphState(const char* observerName, const char* attributeName, nsString& ioParaFormat)
{
nsStringArray tagList;
mEditor->GetParagraphStyle(&tagList);
PRInt32 numTags = tagList.Count();
if (numTags > 0)
{
nsAutoString thisTag;
tagList.StringAt(0, thisTag);
if (thisTag != mParagraphFormat)
{
nsresult rv = SetNodeAttribute(observerName, attributeName, thisTag);
if (NS_FAILED(rv)) return rv;
mParagraphFormat = thisTag;
}
}
return NS_OK;
}
nsresult
nsInterfaceState::UpdateListState(const char* observerName, const char* tagName)
{
nsresult rv = NS_ERROR_NO_INTERFACE;
nsCOMPtr<nsIDOMSelection> domSelection;
{
nsCOMPtr<nsIEditor> editor = do_QueryInterface(mEditor);
editor->GetSelection(getter_AddRefs(domSelection));
}
nsAutoString tagStr(tagName);
nsCOMPtr<nsIDOMNode> domNode;
if (domSelection)
domSelection->GetAnchorNode(getter_AddRefs(domNode));
nsCOMPtr<nsIDOMElement> parentElement;
rv = mEditor->GetElementOrParentByTagName(tagStr, domNode, getter_AddRefs(parentElement));
return rv;
}
nsresult
nsInterfaceState::UpdateFontFace(const char* observerName, const char* attributeName, nsString& ioFontString)
{
nsresult rv;
PRBool firstOfSelectionHasProp = PR_FALSE;
PRBool anyOfSelectionHasProp = PR_FALSE;
PRBool allOfSelectionHasProp = PR_FALSE;
nsCOMPtr<nsIAtom> styleAtom = getter_AddRefs(NS_NewAtom("font"));
nsAutoString faceStr("face");
rv = mEditor->GetInlineProperty(styleAtom, &faceStr, nsnull, firstOfSelectionHasProp, anyOfSelectionHasProp, allOfSelectionHasProp);
return rv;
}
nsresult
nsInterfaceState::UpdateTextState(const char* tagName, const char* observerName, const char* attributeName, PRInt8& ioState)
{
nsresult rv;
PRBool firstOfSelectionHasProp = PR_FALSE;
PRBool anyOfSelectionHasProp = PR_FALSE;
PRBool allOfSelectionHasProp = PR_FALSE;
nsCOMPtr<nsIAtom> styleAtom = getter_AddRefs(NS_NewAtom(tagName));
rv = mEditor->GetInlineProperty(styleAtom, nsnull, nsnull, firstOfSelectionHasProp, anyOfSelectionHasProp, allOfSelectionHasProp);
PRBool &behaviour = allOfSelectionHasProp; // change this to alter the behaviour
if (behaviour != ioState)
{
rv = SetNodeAttribute(observerName, attributeName, behaviour ? "true" : "false");
if (NS_FAILED(rv))
return rv;
ioState = behaviour;
}
return rv;
}
nsresult
nsInterfaceState::UpdateDirtyState(PRBool aNowDirty)
{
if (mDirtyState != aNowDirty)
{
nsresult rv = SetNodeAttribute("Editor:Document:Dirty", "dirty", aNowDirty ? "true" : "false");
if (NS_FAILED(rv)) return rv;
mDirtyState = aNowDirty;
}
return NS_OK;
}
nsresult
nsInterfaceState::SetNodeAttribute(const char* nodeID, const char* attributeName, const nsString& newValue)
{
nsresult rv = NS_OK;
if (!mWebShell)
return NS_ERROR_NOT_INITIALIZED;
nsCOMPtr<nsIContentViewer> cv;
rv = mWebShell->GetContentViewer(getter_AddRefs(cv));
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIDocumentViewer> docViewer = do_QueryInterface(cv, &rv);
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIDocument> chromeDoc;
rv = docViewer->GetDocument(*getter_AddRefs(chromeDoc));
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIDOMXULDocument> xulDoc = do_QueryInterface(chromeDoc, &rv);
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIDOMElement> elem;
rv = xulDoc->GetElementById( nodeID, getter_AddRefs(elem) );
if (NS_FAILED(rv) || !elem) return rv;
return elem->SetAttribute(attributeName, newValue);
}
nsresult NS_NewInterfaceState(nsIHighLevelHTMLEditor* aEditor, nsIWebShell* aWebShell, nsIDOMSelectionListener** aInstancePtrResult)
{
nsInterfaceState* newThang = new nsInterfaceState;
if (!newThang)
return NS_ERROR_OUT_OF_MEMORY;
*aInstancePtrResult = nsnull;
nsresult rv = newThang->Init(aEditor, aWebShell);
if (NS_FAILED(rv))
{
delete newThang;
return rv;
}
return newThang->QueryInterface(nsIDOMSelectionListener::GetIID(), (void **)aInstancePtrResult);
}

View File

@@ -1,90 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsInterfaceState_h__
#define nsInterfaceState_h__
#include "nsIDOMSelectionListener.h"
#include "nsIDocumentStateListener.h"
#include "nsIWebShell.h"
class nsIHighLevelHTMLEditor;
// class responsible for communicating changes in local state back to the UI.
// This is currently somewhat tied to a given XUL UI implementation
class nsInterfaceState : public nsIDOMSelectionListener,
public nsIDocumentStateListener
{
public:
nsInterfaceState();
virtual ~nsInterfaceState();
NS_DECL_ISUPPORTS
NS_IMETHOD Init(nsIHighLevelHTMLEditor* aEditor, nsIWebShell *aChromeWebShell);
// nsIDOMSelectionListener interface
NS_IMETHOD NotifySelectionChanged();
// nsIDocumentStateListener interface
NS_IMETHOD NotifyDocumentCreated();
NS_IMETHOD NotifyDocumentWillBeDestroyed();
NS_IMETHOD NotifyDocumentStateChanged(PRBool aNowDirty);
protected:
enum {
eStateUninitialized = -1,
eStateOff = PR_FALSE,
eStateOn = PR_TRUE
};
nsresult SetNodeAttribute(const char* nodeID, const char* attributeName, const nsString& newValue);
nsresult UpdateParagraphState(const char* observerName, const char* attributeName, nsString& ioParaFormat);
nsresult UpdateListState(const char* observerName, const char* tagName);
nsresult UpdateTextState(const char* tagName, const char* observerName, const char* attributeName, PRInt8& ioState);
nsresult UpdateFontFace(const char* observerName, const char* attributeName, nsString& ioFontString);
nsresult UpdateDirtyState(PRBool aNowDirty);
// this class should not hold references to the editor or editorShell. Doing
// so would result in cirular reference chains.
nsIHighLevelHTMLEditor* mEditor; // the HTML editor
nsIWebShell* mWebShell; // web shell for the chrome area
// current state
PRInt8 mBoldState;
PRInt8 mItalicState;
PRInt8 mUnderlineState;
PRInt8 mDirtyState;
nsString mParagraphFormat;
nsString mFontString;
nsString mListTag; // contains "" for none, "ol" or "ul"
};
extern "C" nsresult NS_NewInterfaceState(nsIHighLevelHTMLEditor* aEditor, nsIWebShell* aWebShell, nsIDOMSelectionListener** aInstancePtrResult);
#endif // nsInterfaceState_h__

View File

@@ -1,86 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsInternetCiter.h"
#include "nsString.h"
/** Mail citations using the Internet style >> This is a citation <<
*/
nsInternetCiter::nsInternetCiter()
{
}
nsInternetCiter::~nsInternetCiter()
{
}
NS_IMPL_ADDREF(nsInternetCiter)
NS_IMPL_RELEASE(nsInternetCiter)
NS_IMETHODIMP
nsInternetCiter::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (nsnull == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(nsCOMTypeInfo<nsISupports>::GetIID()))
{
*aInstancePtr = (void*)this;
NS_ADDREF_THIS();
return NS_OK;
}
if (aIID.Equals(nsICiter::GetIID())) {
*aInstancePtr = (void*)(nsICiter*)this;
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMETHODIMP
nsInternetCiter::GetCiteString(const nsString& aInString, nsString& aOutString)
{
PRUnichar newline ('\n');
PRInt32 i = 0;
PRInt32 length = aInString.Length();
aOutString = "\n\n";
PRUnichar uch = newline;
// Loop over the string:
while (i < length)
{
if (uch == newline)
aOutString += "> ";
uch = aInString[i++];
aOutString += uch;
}
if (uch != newline)
aOutString += newline;
return NS_OK;
}

View File

@@ -1,41 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsInternetCiter_h__
#define nsInternetCiter_h__
#include "nsICiter.h"
#include "nsString.h"
/** Mail citations using the AOL style >> This is a citation <<
*/
class nsInternetCiter : public nsICiter
{
public:
nsInternetCiter();
virtual ~nsInternetCiter();
//Interfaces for addref and release and queryinterface
//NOTE: Use NS_DECL_ISUPPORTS_INHERITED in any class inherited from nsEditor
NS_DECL_ISUPPORTS
NS_IMETHOD GetCiteString(const nsString& aInString, nsString& aOutString);
};
#endif //nsInternetCiter_h__

File diff suppressed because it is too large Load Diff

View File

@@ -1,189 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://wwwt.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 nsJSEditorLog_h__
#define nsJSEditorLog_h__
#include "nsIHTMLEditor.h"
#include "nsIFileSpec.h"
#include "nsCOMPtr.h"
/** implementation of a transaction listener object.
*
*/
class nsJSEditorLog : public nsIHTMLEditor
{
private:
nsCOMPtr<nsIFileSpec> mFileSpec;
nsIEditor *mEditor;
PRInt32 mLocked;
PRInt32 mDepth;
public:
/** The default constructor.
*/
nsJSEditorLog(nsIEditor *aEditor, nsIFileSpec *aLogFile);
/** The default destructor.
*/
virtual ~nsJSEditorLog();
/* Macro for AddRef(), Release(), and QueryInterface() */
NS_DECL_ISUPPORTS
/* nsIHTMLEditor method implementations. */
NS_IMETHOD Init(nsIDOMDocument *aDoc,
nsIPresShell *aPresShell);
NS_IMETHOD SetTextProperty(nsIAtom *aProperty,
const nsString *aAttribute,
const nsString *aValue);
NS_IMETHOD GetTextProperty(nsIAtom *aProperty,
const nsString *aAttribute,
const nsString *aValue,
PRBool &aFirst, PRBool &aAll, PRBool &aAny);
NS_IMETHOD GetParagraphFormat(nsString& aParagraphFormat);
NS_IMETHOD SetParagraphFormat(const nsString& aParagraphFormat);
NS_IMETHOD RemoveTextProperty(nsIAtom *aProperty, const nsString *aAttribute);
NS_IMETHOD DeleteSelection(nsIEditor::ESelectionCollapseDirection aAction);
NS_IMETHOD InsertText(const nsString& aStringToInsert);
NS_IMETHOD InsertBreak();
NS_IMETHOD EnableUndo(PRBool aEnable);
NS_IMETHOD Undo(PRUint32 aCount);
NS_IMETHOD CanUndo(PRBool &aIsEnabled, PRBool &aCanUndo);
NS_IMETHOD Redo(PRUint32 aCount);
NS_IMETHOD CanRedo(PRBool &aIsEnabled, PRBool &aCanRedo);
NS_IMETHOD BeginTransaction();
NS_IMETHOD EndTransaction();
NS_IMETHOD MoveSelectionUp(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD MoveSelectionDown(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD MoveSelectionNext(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD MoveSelectionPrevious(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD SelectNext(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD SelectPrevious(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD SelectAll();
NS_IMETHOD BeginningOfDocument();
NS_IMETHOD EndOfDocument();
NS_IMETHOD ScrollUp(nsIAtom *aIncrement);
NS_IMETHOD ScrollDown(nsIAtom *aIncrement);
NS_IMETHOD ScrollIntoView(PRBool aScrollToBegin);
NS_IMETHOD Save();
NS_IMETHOD SaveAs(PRBool aSavingCopy);
NS_IMETHOD Cut();
NS_IMETHOD Copy();
NS_IMETHOD Paste();
NS_IMETHOD PasteAsQuotation();
NS_IMETHOD PasteAsCitedQuotation(const nsString& aCitation);
NS_IMETHOD InsertAsQuotation(const nsString& aQuotedText);
NS_IMETHOD InsertAsCitedQuotation(const nsString& aQuotedText, const nsString& aCitation);
NS_IMETHOD InsertHTML(const nsString &aInputString);
NS_IMETHOD OutputToString(nsString& aOutputString,
const nsString& aFormatType,
PRUint32 aFlags);
NS_IMETHOD OutputToStream(nsIOutputStream* aOutputStream,
const nsString& aFormatType,
const nsString* aCharsetOverride,
PRUint32 aFlags);
NS_IMETHOD ApplyStyleSheet(const nsString& aURL);
NS_IMETHOD GetLocalFileURL(nsIDOMWindow* aParent, const nsString& aFilterType, nsString& aReturn);
NS_IMETHOD SetBackgroundColor(const nsString& aColor);
NS_IMETHOD SetBodyAttribute(const nsString& aAttr, const nsString& aValue);
NS_IMETHOD GetParagraphStyle(nsStringArray *aTagList);
NS_IMETHOD AddBlockParent(nsString& aParentTag);
NS_IMETHOD ReplaceBlockParent(nsString& aParentTag);
NS_IMETHOD RemoveParagraphStyle();
NS_IMETHOD RemoveParent(const nsString &aParentTag);
NS_IMETHOD InsertList(const nsString& aListType);
NS_IMETHOD Indent(const nsString& aIndent);
NS_IMETHOD Align(const nsString& aAlign);
NS_IMETHOD GetElementOrParentByTagName(const nsString& aTagName, nsIDOMNode *aNode, nsIDOMElement** aReturn);
NS_IMETHOD GetSelectedElement(const nsString& aTagName, nsIDOMElement** aReturn);
NS_IMETHOD CreateElementWithDefaults(const nsString& aTagName, nsIDOMElement** aReturn);
NS_IMETHOD InsertElement(nsIDOMElement* aElement, PRBool aDeleteSelection);
NS_IMETHOD SaveHLineSettings(nsIDOMElement* aElement);
NS_IMETHOD InsertLinkAroundSelection(nsIDOMElement* aAnchorElement);
NS_IMETHOD SelectElement(nsIDOMElement* aElement);
NS_IMETHOD SetCaretAfterElement(nsIDOMElement* aElement);
NS_IMETHOD GetEmbeddedObjects(nsISupportsArray** aNodeList);
NS_IMETHOD GetCellIndexes(nsIDOMElement *aCell, PRInt32 &aColIndex, PRInt32 &aRowIndex);
NS_IMETHOD GetTableSize(nsIDOMElement *aTable, PRInt32 &aRowCount, PRInt32 &aColCount);
NS_IMETHOD GetCellAt(nsIDOMElement* aTable, PRInt32 aRowIndex, PRInt32 aColIndex, nsIDOMElement* &aCell);
NS_IMETHOD GetCellDataAt(nsIDOMElement* aTable, PRInt32 aRowIndex, PRInt32 aColIndex, nsIDOMElement* &aCell,
PRInt32& aStartRowIndex, PRInt32& aStartColIndex, PRInt32& aRowSpan, PRInt32& aColSpan, PRBool& aIsSelected);
NS_IMETHOD InsertTable();
NS_IMETHOD InsertTableCell(PRInt32 aNumber, PRBool aAfter);
NS_IMETHOD InsertTableColumn(PRInt32 aNumber, PRBool aAfter);
NS_IMETHOD InsertTableRow(PRInt32 aNumber, PRBool aAfter);
NS_IMETHOD DeleteTable();
NS_IMETHOD DeleteTableCell(PRInt32 aNumber);
NS_IMETHOD DeleteTableColumn(PRInt32 aNumber);
NS_IMETHOD DeleteTableRow(PRInt32 aNumber);
NS_IMETHOD JoinTableCells();
NS_IMETHOD NormalizeTable(nsIDOMElement *aTable);
NS_IMETHOD BeginComposition(void);
NS_IMETHOD SetCompositionString(const nsString& aCompositionString, nsIDOMTextRangeList* aTextRangeList);
NS_IMETHOD EndComposition(void);
NS_IMETHOD StartLogging(nsIFileSpec *aLogFile);
NS_IMETHOD StopLogging();
/* nsJSEditorLog public methods. */
nsresult Write(const char *aBuffer);
nsresult WriteInt(const char *aFormat, PRInt32 aInt);
nsresult Flush();
nsresult PrintUnicode(const nsString &aString);
nsresult PrintSelection();
nsresult PrintNode(nsIDOMNode *aNode, PRInt32 aDepth=0);
nsresult PrintElementNode(nsIDOMNode *aNode, PRInt32 aDepth);
nsresult PrintTextNode(nsIDOMNode *aNode, PRInt32 aDepth);
nsresult PrintAttributeNode(nsIDOMNode *aNode, PRInt32 aDepth=0);
nsresult PrintNodeChildren(nsIDOMNode *aNode, PRInt32 aDepth=0);
nsresult GetNodeTreeOffsets(nsIDOMNode *aNode, PRInt32 **aResult, PRInt32 *aLength);
nsresult Lock();
nsresult Unlock();
};
class nsAutoJSEditorLogLock
{
nsJSEditorLog *mLog;
public:
nsAutoJSEditorLogLock(nsJSEditorLog *aLog)
{
mLog = aLog;
if (mLog)
mLog->Lock();
}
~nsAutoJSEditorLogLock()
{
if (mLog)
mLog->Unlock();
}
};
#endif // nsJSEditorLog_h__

View File

@@ -1,406 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include <stdio.h>
#include "nsJSEditorLog.h"
#include "nsJSTxnLog.h"
#define LOCK_LOG(doc)
#define UNLOCK_LOG(doc)
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
nsJSTxnLog::nsJSTxnLog(nsJSEditorLog *aEditorLog)
{
mRefCnt = 0;
mIndentLevel = 0;
mBatchCount = 0;
mEditorLog = aEditorLog;
}
nsJSTxnLog::~nsJSTxnLog()
{
}
#define DEBUG_JS_TXN_LOG_REFCNT 1
#ifdef DEBUG_JS_TXN_LOG_REFCNT
nsrefcnt nsJSTxnLog::AddRef(void)
{
return ++mRefCnt;
}
nsrefcnt nsJSTxnLog::Release(void)
{
NS_PRECONDITION(0 != mRefCnt, "dup release");
if (--mRefCnt == 0) {
NS_DELETEXPCOM(this);
return 0;
}
return mRefCnt;
}
#else
NS_IMPL_ADDREF(nsJSTxnLog)
NS_IMPL_RELEASE(nsJSTxnLog)
#endif
NS_IMETHODIMP
nsJSTxnLog::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (nsnull == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(kISupportsIID)) {
*aInstancePtr = (void*)(nsISupports*)this;
NS_ADDREF_THIS();
return NS_OK;
}
if (aIID.Equals(nsITransactionListener::GetIID())) {
*aInstancePtr = (void*)(nsITransactionListener*)this;
NS_ADDREF_THIS();
return NS_OK;
}
*aInstancePtr = 0;
return NS_NOINTERFACE;
}
NS_IMETHODIMP
nsJSTxnLog::WillDo(nsITransactionManager *aTxMgr, nsITransaction *aTransaction)
{
LOCK_LOG(this);
PrintIndent(mIndentLevel++);
Write("WillDo: ");
Write(GetString(aTransaction));
Write("\n");
Flush();
UNLOCK_LOG(this);
return NS_OK;
}
NS_IMETHODIMP
nsJSTxnLog::DidDo(nsITransactionManager *aTxMgr, nsITransaction *aTransaction, nsresult aDoResult)
{
LOCK_LOG(this);
PrintIndent(--mIndentLevel);
Write("DidDo: ");
Write(GetString(aTransaction));
Write("(");
WriteInt("%d", aDoResult);
Write(")\n");
Flush();
UNLOCK_LOG(this);
return NS_OK;
}
NS_IMETHODIMP
nsJSTxnLog::WillUndo(nsITransactionManager *aTxMgr, nsITransaction *aTransaction)
{
LOCK_LOG(this);
PrintIndent(mIndentLevel++);
if (aTransaction)
{
Write("WillUndo: ");
Write(GetString(aTransaction));
Write("\n");
}
else
Write("WillUndoBatch\n");
Flush();
UNLOCK_LOG(this);
return NS_OK;
}
NS_IMETHODIMP
nsJSTxnLog::DidUndo(nsITransactionManager *aTxMgr, nsITransaction *aTransaction, nsresult aUndoResult)
{
LOCK_LOG(this);
PrintIndent(--mIndentLevel);
if (aTransaction)
{
Write("DidUndo: ");
Write(GetString(aTransaction));
Write("(");
WriteInt("%d", aUndoResult);
Write(")\n");
}
else
{
Write("EndUndoBatch (");
WriteInt("%d", aUndoResult);
Write(")\n");
}
Flush();
UNLOCK_LOG(this);
return NS_OK;
}
NS_IMETHODIMP
nsJSTxnLog::WillRedo(nsITransactionManager *aTxMgr, nsITransaction *aTransaction)
{
LOCK_LOG(this);
PrintIndent(mIndentLevel++);
if (aTransaction)
{
Write("WillRedo: ");
Write(GetString(aTransaction));
Write("\n");
}
else
Write("WillRedoBatch\n");
Flush();
UNLOCK_LOG(this);
return NS_OK;
}
NS_IMETHODIMP
nsJSTxnLog::DidRedo(nsITransactionManager *aTxMgr, nsITransaction *aTransaction, nsresult aRedoResult)
{
LOCK_LOG(this);
PrintIndent(--mIndentLevel);
if (aTransaction)
{
Write("DidRedo: ");
Write(GetString(aTransaction));
Write(" (");
WriteInt("%d", aRedoResult);
Write(")\n");
}
else
{
Write("DidRedoBatch (");
WriteInt("%d", aRedoResult);
Write(")\n");
}
Flush();
UNLOCK_LOG(this);
return NS_OK;
}
NS_IMETHODIMP
nsJSTxnLog::WillBeginBatch(nsITransactionManager *aTxMgr)
{
LOCK_LOG(this);
PrintIndent(mIndentLevel);
Write("WillBeginBatch: ");
WriteInt("%d", mBatchCount);
Write("\n");
Flush();
UNLOCK_LOG(this);
return NS_OK;
}
NS_IMETHODIMP
nsJSTxnLog::DidBeginBatch(nsITransactionManager *aTxMgr, nsresult aResult)
{
LOCK_LOG(this);
PrintIndent(mIndentLevel++);
Write("DidBeginBatch: ");
WriteInt("%d", mBatchCount++);
Write(" (");
WriteInt("%d", aResult);
Write(")\n");
Flush();
UNLOCK_LOG(this);
return NS_OK;
}
NS_IMETHODIMP
nsJSTxnLog::WillEndBatch(nsITransactionManager *aTxMgr)
{
LOCK_LOG(this);
PrintIndent(--mIndentLevel);
Write("WillEndBatch: ");
WriteInt("%d", --mBatchCount);
Write("\n");
Flush();
UNLOCK_LOG(this);
return NS_OK;
}
NS_IMETHODIMP
nsJSTxnLog::DidEndBatch(nsITransactionManager *aTxMgr, nsresult aResult)
{
LOCK_LOG(this);
PrintIndent(mIndentLevel);
Write("DidEndBatch: ");
WriteInt("%d", mBatchCount);
Write(" (");
WriteInt("%d", aResult);
Write(")\n");
Flush();
UNLOCK_LOG(this);
return NS_OK;
}
NS_IMETHODIMP
nsJSTxnLog::WillMerge(nsITransactionManager *aTxMgr, nsITransaction *aTopTransaction, nsITransaction *aTransaction)
{
LOCK_LOG(this);
PrintIndent(mIndentLevel);
Write("WillMerge: ");
Write(GetString(aTopTransaction));
Write(" <-- ");
Write(GetString(aTransaction));
Write("\n");
Flush();
UNLOCK_LOG(this);
return NS_OK;
}
NS_IMETHODIMP
nsJSTxnLog::DidMerge(nsITransactionManager *aTxMgr, nsITransaction *aTopTransaction, nsITransaction *aTransaction, PRBool aDidMerge, nsresult aMergeResult)
{
LOCK_LOG(this);
PrintIndent(mIndentLevel);
Write("DidMerge: ");
Write(GetString(aTopTransaction));
Write(" <-- ");
Write(GetString(aTransaction));
Write(" (");
Write(aDidMerge ? "TRUE" : "FALSE");
Write(", ");
WriteInt("%d", aMergeResult);
Write(")\n");
Flush();
UNLOCK_LOG(this);
return NS_OK;
}
const char *
nsJSTxnLog::GetString(nsITransaction *aTransaction)
{
static char buf[256];
nsString str = "";
aTransaction->GetRedoString(&str);
if (str.Length() == 0)
str = "<NULL>";
buf[0] = '\0';
str.ToCString(buf, 256);
return buf;
}
nsresult
nsJSTxnLog::PrintIndent(PRInt32 aIndentLevel)
{
PRInt32 i;
Write(" // ");
for (i = 0; i < aIndentLevel; i++)
Write(" ");
return NS_OK;
}
nsresult
nsJSTxnLog::Write(const char *aBuffer)
{
if (!aBuffer)
return NS_ERROR_NULL_POINTER;
if (mEditorLog)
mEditorLog->Write(aBuffer);
else
printf(aBuffer);
return NS_OK;
}
nsresult
nsJSTxnLog::WriteInt(const char *aFormat, PRInt32 aInt)
{
if (!aFormat)
return NS_ERROR_NULL_POINTER;
if (mEditorLog)
mEditorLog->WriteInt(aFormat, aInt);
else
printf(aFormat, aInt);
return NS_OK;
}
nsresult
nsJSTxnLog::Flush()
{
nsresult result = NS_OK;
#ifdef SLOWS_THINGS_WAY_DOWN
if (mEditorLog)
result = mEditorLog->Flush();
else
fflush(stdout);
#endif // SLOWS_THINGS_WAY_DOWN
return result;
}

View File

@@ -1,77 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://wwwt.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 nsJSTxnLog_h__
#define nsJSTxnLog_h__
#include "nsITransaction.h"
#include "nsITransactionManager.h"
#include "nsITransactionListener.h"
class nsJSEditorLog;
/** implementation of a transaction listener object.
*
*/
class nsJSTxnLog : public nsITransactionListener
{
private:
nsJSEditorLog *mEditorLog;
PRInt32 mIndentLevel;
PRInt32 mBatchCount;
public:
/** The default constructor.
*/
nsJSTxnLog(nsJSEditorLog *aEditorLog=0);
/** The default destructor.
*/
virtual ~nsJSTxnLog();
/* Macro for AddRef(), Release(), and QueryInterface() */
NS_DECL_ISUPPORTS
/* nsITransactionListener method implementations. */
NS_IMETHOD WillDo(nsITransactionManager *aTxMgr, nsITransaction *aTransaction);
NS_IMETHOD DidDo(nsITransactionManager *aTxMgr, nsITransaction *aTransaction, nsresult aDoResult);
NS_IMETHOD WillUndo(nsITransactionManager *aTxMgr, nsITransaction *aTransaction);
NS_IMETHOD DidUndo(nsITransactionManager *aTxMgr, nsITransaction *aTransaction, nsresult aUndoResult);
NS_IMETHOD WillRedo(nsITransactionManager *aTxMgr, nsITransaction *aTransaction);
NS_IMETHOD DidRedo(nsITransactionManager *aTxMgr, nsITransaction *aTransaction, nsresult aRedoResult);
NS_IMETHOD WillBeginBatch(nsITransactionManager *aTxMgr);
NS_IMETHOD DidBeginBatch(nsITransactionManager *aTxMgr, nsresult aResult);
NS_IMETHOD WillEndBatch(nsITransactionManager *aTxMgr);
NS_IMETHOD DidEndBatch(nsITransactionManager *aTxMgr, nsresult aResult);
NS_IMETHOD WillMerge(nsITransactionManager *aTxMgr, nsITransaction *aTopTransaction, nsITransaction *aTransaction);
NS_IMETHOD DidMerge(nsITransactionManager *aTxMgr, nsITransaction *aTopTransaction, nsITransaction *aTransaction, PRBool aDidMerge, nsresult aMergeResult);
private:
/* nsJSTxnLog private methods. */
const char *GetString(nsITransaction *aTransaction);
nsresult PrintIndent(PRInt32 aIndentLevel);
nsresult Write(const char *aBuffer);
nsresult WriteInt(const char *aFormat, PRInt32 aInt);
nsresult Flush();
};
#endif // nsJSTxnLog_h__

View File

@@ -1,297 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsEditor.h"
#include "nsIPresShell.h"
#include "nsICSSStyleSheet.h"
#include "nsIStyleSet.h"
#include "nsIDocument.h"
#include "nsIDocumentObserver.h"
#include "nsStyleSheetTxns.h"
AddStyleSheetTxn::AddStyleSheetTxn()
: mEditor(NULL)
{
}
AddStyleSheetTxn::~AddStyleSheetTxn()
{
}
NS_IMETHODIMP
AddStyleSheetTxn::Init(nsIEditor *aEditor, nsICSSStyleSheet *aSheet)
{
if (!aEditor)
return NS_ERROR_INVALID_ARG;
if (!aSheet)
return NS_ERROR_INVALID_ARG;
mEditor = aEditor;
mSheet = do_QueryInterface(aSheet);
return NS_OK;
}
NS_IMETHODIMP
AddStyleSheetTxn::Do()
{
if (!mEditor || !mSheet)
return NS_ERROR_NOT_INITIALIZED;
nsCOMPtr<nsIPresShell> presShell;
mEditor->GetPresShell(getter_AddRefs(presShell));
if (!presShell)
return NS_ERROR_UNEXPECTED;
nsCOMPtr<nsIStyleSet> styleSet;
nsresult rv = presShell->GetStyleSet(getter_AddRefs(styleSet));
if (NS_SUCCEEDED(rv) && styleSet)
{
nsCOMPtr<nsIStyleSheet> styleSheet = do_QueryInterface(mSheet);
if (styleSheet)
{
nsCOMPtr<nsIDocument> document;
rv = presShell->GetDocument(getter_AddRefs(document));
if (NS_SUCCEEDED(rv) && document)
document->AddStyleSheet(styleSheet);
}
}
return rv;
}
NS_IMETHODIMP
AddStyleSheetTxn::Undo()
{
if (!mEditor || !mSheet)
return NS_ERROR_NOT_INITIALIZED;
nsCOMPtr<nsIPresShell> presShell;
mEditor->GetPresShell(getter_AddRefs(presShell));
if (!presShell)
return NS_ERROR_UNEXPECTED;
nsCOMPtr<nsIStyleSet> styleSet;
nsresult rv = presShell->GetStyleSet(getter_AddRefs(styleSet));
if (NS_SUCCEEDED(rv) && styleSet)
{
styleSet->RemoveDocStyleSheet(mSheet);
nsCOMPtr<nsIDocumentObserver> observer = do_QueryInterface(presShell);
nsCOMPtr<nsIStyleSheet> styleSheet = do_QueryInterface(mSheet);
nsCOMPtr<nsIDocument> document;
rv = presShell->GetDocument(getter_AddRefs(document));
if (NS_SUCCEEDED(rv) && document && observer && styleSheet)
rv = observer->StyleSheetRemoved(document, styleSheet);
}
return rv;
}
NS_IMETHODIMP
AddStyleSheetTxn::Redo()
{
return Do();
}
NS_IMETHODIMP
AddStyleSheetTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
// set out param default value
if (!aDidMerge)
return NS_ERROR_NULL_POINTER;
*aDidMerge = PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP
AddStyleSheetTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_OK;
}
NS_IMETHODIMP
AddStyleSheetTxn::GetUndoString(nsString *aString)
{
if (aString)
{
*aString="Remove Style Sheet";
}
return NS_OK;
}
NS_IMETHODIMP
AddStyleSheetTxn::GetRedoString(nsString *aString)
{
if (aString)
{
*aString="Add Style Sheet";
}
return NS_OK;
}
#ifdef XP_MAC
#pragma mark -
#endif
RemoveStyleSheetTxn::RemoveStyleSheetTxn()
: mEditor(NULL)
{
}
RemoveStyleSheetTxn::~RemoveStyleSheetTxn()
{
}
NS_IMETHODIMP
RemoveStyleSheetTxn::Init(nsIEditor *aEditor, nsICSSStyleSheet *aSheet)
{
if (!aEditor)
return NS_ERROR_INVALID_ARG;
if (!aSheet)
return NS_ERROR_INVALID_ARG;
mEditor = aEditor;
mSheet = do_QueryInterface(aSheet);
return NS_OK;
}
NS_IMETHODIMP
RemoveStyleSheetTxn::Do()
{
if (!mEditor || !mSheet)
return NS_ERROR_NOT_INITIALIZED;
nsCOMPtr<nsIPresShell> presShell;
mEditor->GetPresShell(getter_AddRefs(presShell));
if (!presShell)
return NS_ERROR_UNEXPECTED;
nsCOMPtr<nsIStyleSet> styleSet;
nsresult rv = presShell->GetStyleSet(getter_AddRefs(styleSet));
if (NS_SUCCEEDED(rv) && styleSet)
{
styleSet->RemoveDocStyleSheet(mSheet);
nsCOMPtr<nsIDocumentObserver> observer = do_QueryInterface(presShell);
nsCOMPtr<nsIStyleSheet> styleSheet = do_QueryInterface(mSheet);
nsCOMPtr<nsIDocument> document;
rv = presShell->GetDocument(getter_AddRefs(document));
if (NS_SUCCEEDED(rv) && document && observer && styleSheet)
rv = observer->StyleSheetRemoved(document, styleSheet);
}
return rv;
}
NS_IMETHODIMP
RemoveStyleSheetTxn::Undo()
{
if (!mEditor || !mSheet)
return NS_ERROR_NOT_INITIALIZED;
nsCOMPtr<nsIPresShell> presShell;
mEditor->GetPresShell(getter_AddRefs(presShell));
if (!presShell)
return NS_ERROR_UNEXPECTED;
nsCOMPtr<nsIStyleSet> styleSet;
nsresult rv = presShell->GetStyleSet(getter_AddRefs(styleSet));
if (NS_SUCCEEDED(rv) && styleSet)
{
nsCOMPtr<nsIStyleSheet> styleSheet = do_QueryInterface(mSheet);
if (styleSheet)
{
nsCOMPtr<nsIDocument> document;
rv = presShell->GetDocument(getter_AddRefs(document));
if (NS_SUCCEEDED(rv) && document)
document->AddStyleSheet(styleSheet);
}
}
return rv;
}
NS_IMETHODIMP
RemoveStyleSheetTxn::Redo()
{
return Do();
}
NS_IMETHODIMP
RemoveStyleSheetTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
// set out param default value
if (!aDidMerge)
return NS_ERROR_NULL_POINTER;
*aDidMerge = PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP
RemoveStyleSheetTxn::Write(nsIOutputStream *aOutputStream)
{
return NS_OK;
}
NS_IMETHODIMP
RemoveStyleSheetTxn::GetUndoString(nsString *aString)
{
if (aString)
{
*aString="Add Style Sheet";
}
return NS_OK;
}
NS_IMETHODIMP
RemoveStyleSheetTxn::GetRedoString(nsString *aString)
{
if (aString)
{
*aString="Remove Style Sheet";
}
return NS_OK;
}

View File

@@ -1,124 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsStylesheetTxns_h__
#define nsStylesheetTxns_h__
#include "EditTxn.h"
#include "nsCOMPtr.h"
#include "nsIEditor.h"
#include "nsICSSStyleSheet.h"
#define ADD_STYLESHEET_TXN_CID \
{/* d05e2980-2fbe-11d3-9ce4-e8393835307c */ \
0xd05e2980, 0x2fbe, 0x11d3, { 0x9c, 0xe4, 0xe8, 0x39, 0x38, 0x35, 0x30, 0x7c } }
#define REMOVE_STYLESHEET_TXN_CID \
{/* d05e2981-2fbe-11d3-9ce4-e8393835307c */ \
0xd05e2981, 0x2fbe, 0x11d3, { 0x9c, 0xe4, 0xe8, 0x39, 0x38, 0x35, 0x30, 0x7c } }
class AddStyleSheetTxn : public EditTxn
{
friend class TransactionFactory;
public:
static const nsIID& GetCID() { static nsIID iid = ADD_STYLESHEET_TXN_CID; return iid; }
virtual ~AddStyleSheetTxn();
/** Initialize the transaction.
* @param aEditor the object providing core editing operations
* @param aSheet the stylesheet to add
*/
NS_IMETHOD Init(nsIEditor *aEditor,
nsICSSStyleSheet *aSheet);
private:
AddStyleSheetTxn();
public:
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
NS_IMETHOD Redo(void);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
protected:
nsIEditor* mEditor; // the editor that created this transaction
nsCOMPtr<nsICSSStyleSheet> mSheet; // the style sheet to add
};
class RemoveStyleSheetTxn : public EditTxn
{
friend class TransactionFactory;
public:
static const nsIID& GetCID() { static nsIID iid = REMOVE_STYLESHEET_TXN_CID; return iid; }
virtual ~RemoveStyleSheetTxn();
/** Initialize the transaction.
* @param aEditor the object providing core editing operations
* @param aSheet the stylesheet to remove
*/
NS_IMETHOD Init(nsIEditor *aEditor,
nsICSSStyleSheet *aSheet);
private:
RemoveStyleSheetTxn();
public:
NS_IMETHOD Do(void);
NS_IMETHOD Undo(void);
NS_IMETHOD Redo(void);
NS_IMETHOD Merge(PRBool *aDidMerge, nsITransaction *aTransaction);
NS_IMETHOD Write(nsIOutputStream *aOutputStream);
NS_IMETHOD GetUndoString(nsString *aString);
NS_IMETHOD GetRedoString(nsString *aString);
protected:
nsIEditor* mEditor; // the editor that created this transaction
nsCOMPtr<nsICSSStyleSheet> mSheet; // the style sheet to remove
};
#endif /* nsStylesheetTxns_h__ */

View File

@@ -1,124 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://wwwt.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 "nsTextEditFactory.h"
#include "nsITextEditor.h"
#include "nsTextEditor.h"
#include "nsEditor.h"
#include "nsEditorCID.h"
#include "nsIComponentManager.h"
static NS_DEFINE_CID(kTextEditorCID, NS_TEXTEDITOR_CID);
nsresult
GetTextEditFactory(nsIFactory **aFactory, const nsCID & aClass)
{
PR_EnterMonitor(GetEditorMonitor());
nsTextEditFactory *factory = new nsTextEditFactory(aClass);
if (!factory)
return NS_ERROR_OUT_OF_MEMORY;
nsCOMPtr<nsIFactory> pNSIFactory = do_QueryInterface(factory);
if (!pNSIFactory)
return NS_ERROR_NO_INTERFACE;
nsresult result = pNSIFactory->QueryInterface(nsIFactory::GetIID(),
(void **)aFactory);
PR_ExitMonitor(GetEditorMonitor());
return result;
}
////////////////////////////////////////////////////////////////////////////
// from nsISupports
nsresult
nsTextEditFactory::QueryInterface(const nsIID& aIID, void** aInstancePtr)
{
if (nsnull == aInstancePtr) {
NS_NOTREACHED("!nsEditor");
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(nsIFactory::GetIID()) ||
aIID.Equals(nsCOMTypeInfo<nsISupports>::GetIID())) {
*aInstancePtr = (void*) this;
AddRef();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMPL_ADDREF(nsTextEditFactory)
NS_IMPL_RELEASE(nsTextEditFactory)
////////////////////////////////////////////////////////////////////////////
// from nsIFactory:
NS_IMETHODIMP
nsTextEditFactory::CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
*aResult = nsnull;
nsISupports *obj = nsnull;
if (!aResult)
return NS_ERROR_NULL_POINTER;
if (aOuter && !aIID.Equals(nsCOMTypeInfo<nsISupports>::GetIID()))
return NS_NOINTERFACE; // XXX right error?
if (mCID.Equals(kTextEditorCID))
{
//Need to cast to interface first to avoid "ambiguous conversion..." error
// because of multiple nsISupports in the class hierarchy
obj = (nsISupports *)(nsITextEditor*)new nsTextEditor();
}
//more class ids to support. here
if (obj && NS_FAILED(obj->QueryInterface(aIID, (void**)aResult)) )
{
delete obj;
return NS_NOINTERFACE;
}
return NS_OK;
}
NS_IMETHODIMP
nsTextEditFactory::LockFactory(PRBool aLock)
{
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////
// from nsTextEditFactory:
nsTextEditFactory::nsTextEditFactory(const nsCID &aClass)
:mCID(aClass)
{
NS_INIT_REFCNT();
}
nsTextEditFactory::~nsTextEditFactory()
{
//nsComponentManager::UnregisterFactory(mCID, (nsIFactory *)this); //we are out of ref counts anyway
}

View File

@@ -1,66 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://wwwt.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 nsTextEditFactory_h___
#define nsTextEditFactory_h___
#include "nsISupports.h"
#include "nsIFactory.h"
/*
Factory that can make a text editor
*/
/**
* This supplies the neccessary entrance to the edit module. it will return any
* instantiations that we need.
*/
class nsTextEditFactory;
extern nsresult GetTextEditFactory(nsIFactory **aFactory, const nsCID & aClass);
class nsTextEditFactory : public nsIFactory {
public:
////////////////////////////////////////////////////////////////////////////
// from nsISupports and AggregatedQueryInterface:
NS_DECL_ISUPPORTS
////////////////////////////////////////////////////////////////////////////
// from nsIFactory:
NS_IMETHOD
CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult);
NS_IMETHOD
LockFactory(PRBool aLock);
////////////////////////////////////////////////////////////////////////////
virtual ~nsTextEditFactory(void);
private:
nsTextEditFactory(const nsCID &aClass); //will fill the aFactory with the result from queryinterface
/** GetTextEditFactory
* creates an edit factory other CSID supported friend functions here.
*/
friend nsresult GetTextEditFactory(nsIFactory **, const nsCID & );
const nsCID &mCID;
};
#endif //nsIEditFactory_h___

View File

@@ -1,968 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL") you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsTextEditRules.h"
#include "nsEditor.h"
#include "PlaceholderTxn.h"
#include "InsertTextTxn.h"
#include "nsCOMPtr.h"
#include "nsIDOMNode.h"
#include "nsIDOMElement.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMSelection.h"
#include "nsIDOMRange.h"
#include "nsIDOMCharacterData.h"
#include "nsIContent.h"
#include "nsIContentIterator.h"
#include "nsIEnumerator.h"
#include "nsLayoutCID.h"
#include "nsIEditProperty.h"
static NS_DEFINE_CID(kCContentIteratorCID, NS_CONTENTITERATOR_CID);
#define CANCEL_OPERATION_IF_READONLY_OR_DISABLED \
if ((mFlags & nsIHighLevelHTMLEditor::eEditorReadonlyMask) || (mFlags & nsIHighLevelHTMLEditor::eEditorDisabledMask)) \
{ \
*aCancel = PR_TRUE; \
return NS_OK; \
};
/********************************************************
* Constructor/Destructor
********************************************************/
nsTextEditRules::nsTextEditRules(PRUint32 aFlags)
: mEditor(nsnull)
, mFlags(aFlags)
{
}
nsTextEditRules::~nsTextEditRules()
{
// do NOT delete mEditor here. We do not hold a ref count to mEditor. mEditor owns our lifespan.
}
/********************************************************
* Public methods
********************************************************/
NS_IMETHODIMP
nsTextEditRules::Init(nsHTMLEditor *aEditor)
{
if (!aEditor) { return NS_ERROR_NULL_POINTER; }
mEditor = aEditor; // we hold a non-refcounted reference back to our editor
nsCOMPtr<nsIDOMSelection> selection;
mEditor->GetSelection(getter_AddRefs(selection));
NS_ASSERTION(selection, "editor cannot get selection");
nsresult result = CreateBogusNodeIfNeeded(selection); // this method handles null selection, which should never happen anyway
return result;
}
NS_IMETHODIMP
nsTextEditRules::GetFlags(PRUint32 *aFlags)
{
if (!aFlags) { return NS_ERROR_NULL_POINTER; }
*aFlags = mFlags;
return NS_OK;
}
NS_IMETHODIMP
nsTextEditRules::SetFlags(PRUint32 aFlags)
{
if (mFlags == aFlags) return NS_OK;
// XXX - this won't work if body element already has
// a style attribute on it, don't know why.
// SetFlags() is really meant to only be called once
// and at editor init time.
if (aFlags & nsIHighLevelHTMLEditor::eEditorPlaintextMask)
{
if (!(mFlags & nsIHighLevelHTMLEditor::eEditorPlaintextMask))
{
// we are converting TO a plaintext editor
// put a "white-space: pre" style on the body
nsCOMPtr<nsIDOMElement> bodyElement;
nsresult res = mEditor->GetBodyElement(getter_AddRefs(bodyElement));
if (NS_SUCCEEDED(res) && bodyElement)
{
// not going through the editor to do this.
bodyElement->SetAttribute("style", "white-space: pre");
}
}
}
mFlags = aFlags;
return NS_OK;
}
NS_IMETHODIMP
nsTextEditRules::WillDoAction(nsIDOMSelection *aSelection,
nsRulesInfo *aInfo, PRBool *aCancel)
{
// null selection is legal
if (!aInfo || !aCancel) { return NS_ERROR_NULL_POINTER; }
*aCancel = PR_FALSE;
// my kingdom for dynamic cast
nsTextRulesInfo *info = NS_STATIC_CAST(nsTextRulesInfo*, aInfo);
switch (info->action)
{
case kInsertBreak:
return WillInsertBreak(aSelection, aCancel);
case kInsertText:
return WillInsertText(aSelection,
aCancel,
info->placeTxn,
info->inString,
info->outString,
info->typeInState,
info->maxLength);
case kDeleteSelection:
return WillDeleteSelection(aSelection, info->collapsedAction, aCancel);
case kUndo:
return WillUndo(aSelection, aCancel);
case kRedo:
return WillRedo(aSelection, aCancel);
case kSetTextProperty:
return WillSetTextProperty(aSelection, aCancel);
case kRemoveTextProperty:
return WillRemoveTextProperty(aSelection, aCancel);
case kOutputText:
return WillOutputText(aSelection,
info->outString,
aCancel);
}
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsTextEditRules::DidDoAction(nsIDOMSelection *aSelection,
nsRulesInfo *aInfo, nsresult aResult)
{
if (!aSelection || !aInfo)
return NS_ERROR_NULL_POINTER;
// my kingdom for dynamic cast
nsTextRulesInfo *info = NS_STATIC_CAST(nsTextRulesInfo*, aInfo);
switch (info->action)
{
case kInsertBreak:
return DidInsertBreak(aSelection, aResult);
case kInsertText:
return DidInsertText(aSelection, aResult);
case kDeleteSelection:
return DidDeleteSelection(aSelection, info->collapsedAction, aResult);
case kUndo:
return DidUndo(aSelection, aResult);
case kRedo:
return DidRedo(aSelection, aResult);
case kSetTextProperty:
return DidSetTextProperty(aSelection, aResult);
case kRemoveTextProperty:
return DidRemoveTextProperty(aSelection, aResult);
case kOutputText:
return DidOutputText(aSelection, aResult);
}
return NS_ERROR_FAILURE;
}
/********************************************************
* Protected methods
********************************************************/
nsresult
nsTextEditRules::WillInsert(nsIDOMSelection *aSelection, PRBool *aCancel)
{
if (!aSelection || !aCancel)
return NS_ERROR_NULL_POINTER;
CANCEL_OPERATION_IF_READONLY_OR_DISABLED
// initialize out param
*aCancel = PR_FALSE;
// check for the magic content node and delete it if it exists
if (mBogusNode)
{
mEditor->DeleteNode(mBogusNode);
mBogusNode = do_QueryInterface(nsnull);
// there is no longer any legit selection, so clear it.
aSelection->ClearSelection();
}
return NS_OK;
}
nsresult
nsTextEditRules::DidInsert(nsIDOMSelection *aSelection, nsresult aResult)
{
return NS_OK;
}
nsresult
nsTextEditRules::WillInsertBreak(nsIDOMSelection *aSelection, PRBool *aCancel)
{
if (!aSelection || !aCancel) { return NS_ERROR_NULL_POINTER; }
CANCEL_OPERATION_IF_READONLY_OR_DISABLED
if (mFlags & nsIHighLevelHTMLEditor::eEditorSingleLineMask) {
*aCancel = PR_TRUE;
}
else {
*aCancel = PR_FALSE;
}
return NS_OK;
}
nsresult
nsTextEditRules::DidInsertBreak(nsIDOMSelection *aSelection, nsresult aResult)
{
return NS_OK;
}
nsresult
nsTextEditRules::WillInsertText(nsIDOMSelection *aSelection,
PRBool *aCancel,
PlaceholderTxn **aTxn,
const nsString *aInString,
nsString *aOutString,
TypeInState aTypeInState,
PRInt32 aMaxLength)
{
if (!aSelection || !aCancel || !aInString || !aOutString) {return NS_ERROR_NULL_POINTER;}
CANCEL_OPERATION_IF_READONLY_OR_DISABLED
nsresult result;
nsString inString = *aInString; // we might want to mutate the input
// before setting the output, do that in a local var
if ((-1 != aMaxLength) && (mFlags & nsIHighLevelHTMLEditor::eEditorPlaintextMask))
{
// get the current text length
// get the length of inString
// if len(doc) is at or over max, cancel the insert
// if l(doc) + l(input) > max, set aOutString to subset of inString so length = max
PRInt32 docLength;
result = mEditor->GetDocumentLength(&docLength);
if (NS_SUCCEEDED(result))
{
if (docLength >= aMaxLength)
{
*aOutString = "";
*aCancel = PR_TRUE;
return result;
}
else
{
PRInt32 inCount = inString.Length();
if ((inCount+docLength)>aMaxLength)
{
inString.Truncate(aMaxLength-docLength);
}
}
}
}
// initialize out params
*aCancel = PR_FALSE;
if (mFlags & nsIHighLevelHTMLEditor::eEditorPasswordMask)
{
// manage the password buffer
PRInt32 start, end;
result = mEditor->GetTextSelectionOffsets(aSelection, start, end);
NS_ASSERTION((NS_SUCCEEDED(result)), "getTextSelectionOffsets failed!");
mPasswordText.Insert(inString, start);
char *password = mPasswordText.ToNewCString();
printf("mPasswordText is %s\n", password);
delete [] password;
// change the output to '*' only
PRInt32 length = inString.Length();
PRInt32 i;
for (i=0; i<length; i++)
*aOutString += '*';
}
else
{
*aOutString = inString;
}
if (mBogusNode || (PR_TRUE==aTypeInState.IsAnySet()))
{
result = TransactionFactory::GetNewTransaction(PlaceholderTxn::GetCID(), (EditTxn **)aTxn);
if (NS_FAILED(result)) { return result; }
if (!*aTxn) { return NS_ERROR_NULL_POINTER; }
(*aTxn)->SetName(InsertTextTxn::gInsertTextTxnName);
mEditor->Do(*aTxn);
}
result = WillInsert(aSelection, aCancel);
if (NS_SUCCEEDED(result) && (PR_FALSE==*aCancel))
{
if (PR_TRUE==aTypeInState.IsAnySet())
{ // for every property that is set, insert a new inline style node
result = CreateStyleForInsertText(aSelection, aTypeInState);
}
}
return result;
}
nsresult
nsTextEditRules::DidInsertText(nsIDOMSelection *aSelection,
nsresult aResult)
{
return DidInsert(aSelection, aResult);
}
nsresult
nsTextEditRules::CreateStyleForInsertText(nsIDOMSelection *aSelection, TypeInState &aTypeInState)
{
// private method, we know aSelection is not null, and that it is collapsed
NS_ASSERTION(nsnull!=aSelection, "bad selection");
// We know at least one style is set and we're about to insert at least one character.
// If the selection is in a text node, split the node (even if we're at the beginning or end)
// then put the text node inside new inline style parents.
// Otherwise, create the text node and the new inline style parents.
nsCOMPtr<nsIDOMNode>anchor;
PRInt32 offset;
nsresult result = aSelection->GetAnchorNode( getter_AddRefs(anchor));
if (NS_SUCCEEDED(result) && NS_SUCCEEDED(aSelection->GetAnchorOffset(&offset)) && anchor)
{
nsCOMPtr<nsIDOMCharacterData>anchorAsText;
anchorAsText = do_QueryInterface(anchor);
if (anchorAsText)
{
nsCOMPtr<nsIDOMNode>newTextNode;
// create an empty text node by splitting the selected text node according to offset
if (0==offset)
{
result = mEditor->SplitNode(anchorAsText, offset, getter_AddRefs(newTextNode));
}
else
{
PRUint32 length;
anchorAsText->GetLength(&length);
if (length==(PRUint32)offset)
{
// newTextNode will be the left node
result = mEditor->SplitNode(anchorAsText, offset, getter_AddRefs(newTextNode));
// but we want the right node in this case
newTextNode = do_QueryInterface(anchor);
}
else
{
// splitting anchor twice sets newTextNode as an empty text node between
// two halves of the original text node
result = mEditor->SplitNode(anchorAsText, offset, getter_AddRefs(newTextNode));
result = mEditor->SplitNode(anchorAsText, 0, getter_AddRefs(newTextNode));
}
}
// now we have the new text node we are going to insert into.
// create style nodes or move it up the content hierarchy as needed.
if ((NS_SUCCEEDED(result)) && newTextNode)
{
nsCOMPtr<nsIDOMNode>newStyleNode;
if (aTypeInState.IsSet(NS_TYPEINSTATE_BOLD))
{
if (PR_TRUE==aTypeInState.GetBold()) {
result = InsertStyleNode(newTextNode, nsIEditProperty::b, aSelection, getter_AddRefs(newStyleNode));
}
else {
printf("not yet implemented, make not bold in a bold context\n");
}
}
if (aTypeInState.IsSet(NS_TYPEINSTATE_ITALIC))
{
if (PR_TRUE==aTypeInState.GetItalic()) {
result = InsertStyleNode(newTextNode, nsIEditProperty::i, aSelection, getter_AddRefs(newStyleNode));
}
else
{
printf("not yet implemented, make not italic in a italic context\n");
}
}
if (aTypeInState.IsSet(NS_TYPEINSTATE_UNDERLINE))
{
if (PR_TRUE==aTypeInState.GetUnderline()) {
result = InsertStyleNode(newTextNode, nsIEditProperty::u, aSelection, getter_AddRefs(newStyleNode));
}
else
{
printf("not yet implemented, make not underline in an underline context\n");
}
}
if (aTypeInState.IsSet(NS_TYPEINSTATE_FONTCOLOR))
{
nsAutoString value;
aTypeInState.GetFontColor(value);
nsAutoString attr;
nsIEditProperty::color->ToString(attr);
result = CreateFontStyleForInsertText(newTextNode, attr, value, aSelection);
}
if (aTypeInState.IsSet(NS_TYPEINSTATE_FONTFACE))
{
nsAutoString value;
aTypeInState.GetFontFace(value);
nsAutoString attr;
nsIEditProperty::face->ToString(attr);
result = CreateFontStyleForInsertText(newTextNode, attr, value, aSelection);
}
if (aTypeInState.IsSet(NS_TYPEINSTATE_FONTSIZE))
{
nsAutoString value;
aTypeInState.GetFontSize(value);
nsAutoString attr;
nsIEditProperty::size->ToString(attr);
result = CreateFontStyleForInsertText(newTextNode, attr, value, aSelection);
}
}
}
else
{
printf("not yet implemented. selection is not text.\n");
}
}
else // we have no selection, so insert a style tag in the body
{
nsCOMPtr<nsIDOMDocument>doc;
mEditor->GetDocument(getter_AddRefs(doc));
nsCOMPtr<nsIDOMNodeList>nodeList;
nsAutoString bodyTag = "body";
result = doc->GetElementsByTagName(bodyTag, getter_AddRefs(nodeList));
if ((NS_SUCCEEDED(result)) && nodeList)
{
PRUint32 count;
nodeList->GetLength(&count);
NS_ASSERTION(1==count, "there is not exactly 1 body in the document!");
nsCOMPtr<nsIDOMNode>bodyNode;
result = nodeList->Item(0, getter_AddRefs(bodyNode));
if ((NS_SUCCEEDED(result)) && bodyNode)
{ // now we've got the body tag. insert the style tag
if (aTypeInState.IsSet(NS_TYPEINSTATE_BOLD))
{
if (PR_TRUE==aTypeInState.GetBold()) {
InsertStyleAndNewTextNode(bodyNode, nsIEditProperty::b, aSelection);
}
}
if (aTypeInState.IsSet(NS_TYPEINSTATE_ITALIC))
{
if (PR_TRUE==aTypeInState.GetItalic()) {
InsertStyleAndNewTextNode(bodyNode, nsIEditProperty::i, aSelection);
}
}
if (aTypeInState.IsSet(NS_TYPEINSTATE_UNDERLINE))
{
if (PR_TRUE==aTypeInState.GetUnderline()) {
InsertStyleAndNewTextNode(bodyNode, nsIEditProperty::u, aSelection);
}
}
}
}
}
return result;
}
nsresult
nsTextEditRules::CreateFontStyleForInsertText(nsIDOMNode *aNewTextNode,
const nsString &aAttr,
const nsString &aValue,
nsIDOMSelection *aSelection)
{
nsresult result = NS_OK;
nsCOMPtr<nsIDOMNode>newStyleNode;
if (0!=aValue.Length())
{
result = InsertStyleNode(aNewTextNode, nsIEditProperty::font, aSelection, getter_AddRefs(newStyleNode));
if (NS_SUCCEEDED(result) && newStyleNode)
{
nsCOMPtr<nsIDOMElement>element = do_QueryInterface(newStyleNode);
if (element) {
result = mEditor->SetAttribute(element, aAttr, aValue);
}
}
}
else
{
printf("not yet implemented, undo font in an font context\n");
}
return result;
}
nsresult
nsTextEditRules::InsertStyleNode(nsIDOMNode *aNode,
nsIAtom *aTag,
nsIDOMSelection *aSelection,
nsIDOMNode **aNewNode)
{
NS_ASSERTION(aNode && aTag, "bad args");
if (!aNode || !aTag) { return NS_ERROR_NULL_POINTER; }
nsresult result;
nsCOMPtr<nsIDOMNode>parent;
aNode->GetParentNode(getter_AddRefs(parent));
PRInt32 offsetInParent;
nsEditor::GetChildOffset(aNode, parent, offsetInParent);
nsAutoString tag;
aTag->ToString(tag);
result = mEditor->CreateNode(tag, parent, offsetInParent, aNewNode);
if ((NS_SUCCEEDED(result)) && *aNewNode)
{
result = mEditor->DeleteNode(aNode);
if (NS_SUCCEEDED(result))
{
result = mEditor->InsertNode(aNode, *aNewNode, 0);
if (NS_SUCCEEDED(result)) {
if (aSelection) {
aSelection->Collapse(aNode, 0);
}
}
}
}
return result;
}
nsresult
nsTextEditRules::InsertStyleAndNewTextNode(nsIDOMNode *aParentNode, nsIAtom *aTag, nsIDOMSelection *aSelection)
{
NS_ASSERTION(aParentNode && aTag, "bad args");
if (!aParentNode || !aTag) { return NS_ERROR_NULL_POINTER; }
nsresult result;
// if the selection already points to a text node, just call InsertStyleNode()
if (aSelection)
{
nsCOMPtr<nsIDOMNode>anchor;
PRInt32 offset;
result = aSelection->GetAnchorNode(getter_AddRefs(anchor));
if (NS_SUCCEEDED(result) && NS_SUCCEEDED(aSelection->GetAnchorOffset(&offset)) && anchor)
{
nsCOMPtr<nsIDOMCharacterData>anchorAsText;
anchorAsText = do_QueryInterface(anchor);
if (anchorAsText)
{
nsCOMPtr<nsIDOMNode> newStyleNode;
result = InsertStyleNode(anchor, aTag, aSelection, getter_AddRefs(newStyleNode));
return result;
}
}
}
// if we get here, there is no selected text node so we create one.
nsAutoString tag;
aTag->ToString(tag);
nsCOMPtr<nsIDOMNode>newStyleNode;
nsCOMPtr<nsIDOMNode>newTextNode;
result = mEditor->CreateNode(tag, aParentNode, 0, getter_AddRefs(newStyleNode));
if (NS_SUCCEEDED(result))
{
result = mEditor->CreateNode(nsEditor::GetTextNodeTag(), newStyleNode, 0, getter_AddRefs(newTextNode));
if (NS_SUCCEEDED(result))
{
if (aSelection) {
aSelection->Collapse(newTextNode, 0);
}
}
}
return result;
}
nsresult
nsTextEditRules::WillSetTextProperty(nsIDOMSelection *aSelection, PRBool *aCancel)
{
nsresult result = NS_OK;
// XXX: should probably return a success value other than NS_OK that means "not allowed"
if (nsIHighLevelHTMLEditor::eEditorPlaintextMask & mFlags) {
*aCancel = PR_TRUE;
}
return result;
}
nsresult
nsTextEditRules::DidSetTextProperty(nsIDOMSelection *aSelection, nsresult aResult)
{
return NS_OK;
}
nsresult
nsTextEditRules::WillRemoveTextProperty(nsIDOMSelection *aSelection, PRBool *aCancel)
{
nsresult result = NS_OK;
// XXX: should probably return a success value other than NS_OK that means "not allowed"
if (nsIHighLevelHTMLEditor::eEditorPlaintextMask & mFlags) {
*aCancel = PR_TRUE;
}
return result;
}
nsresult
nsTextEditRules::DidRemoveTextProperty(nsIDOMSelection *aSelection, nsresult aResult)
{
return NS_OK;
}
nsresult
nsTextEditRules::WillDeleteSelection(nsIDOMSelection *aSelection,
nsIEditor::ESelectionCollapseDirection aCollapsedAction,
PRBool *aCancel)
{
if (!aSelection || !aCancel) { return NS_ERROR_NULL_POINTER; }
CANCEL_OPERATION_IF_READONLY_OR_DISABLED
// initialize out param
*aCancel = PR_FALSE;
// if there is only bogus content, cancel the operation
if (mBogusNode) {
*aCancel = PR_TRUE;
return NS_OK;
}
if (mFlags & nsIHighLevelHTMLEditor::eEditorPasswordMask)
{
// manage the password buffer
PRInt32 start, end;
mEditor->GetTextSelectionOffsets(aSelection, start, end);
if (end==start)
{ // collapsed selection
if (nsIEditor::eDeletePrevious==aCollapsedAction && 0<start) { // del back
mPasswordText.Cut(start-1, 1);
}
else if (nsIEditor::eDeleteNext==aCollapsedAction) { // del forward
mPasswordText.Cut(start, 1);
}
// otherwise nothing to do for this collapsed selection
}
else { // extended selection
mPasswordText.Cut(start, end-start);
}
char *password = mPasswordText.ToNewCString();
printf("mPasswordText is %s\n", password);
delete [] password;
}
return NS_OK;
}
// if the document is empty, insert a bogus text node with a &nbsp;
// if we ended up with consecutive text nodes, merge them
nsresult
nsTextEditRules::DidDeleteSelection(nsIDOMSelection *aSelection,
nsIEditor::ESelectionCollapseDirection aCollapsedAction,
nsresult aResult)
{
nsresult result = aResult; // if aResult is an error, we just return it
if (!aSelection) { return NS_ERROR_NULL_POINTER; }
PRBool isCollapsed;
aSelection->GetIsCollapsed(&isCollapsed);
NS_ASSERTION(PR_TRUE==isCollapsed, "selection not collapsed after delete selection.");
// if the delete selection resulted in no content
// insert a special bogus text node with a &nbsp; character in it.
if (NS_SUCCEEDED(result)) // only do this work if DeleteSelection completed successfully
{
result = CreateBogusNodeIfNeeded(aSelection);
// if we don't have an empty document, check the selection to see if any collapsing is necessary
if (!mBogusNode)
{
nsCOMPtr<nsIDOMNode>anchor;
PRInt32 offset;
result = aSelection->GetAnchorNode(getter_AddRefs(anchor));
if (NS_SUCCEEDED(result) && NS_SUCCEEDED(aSelection->GetAnchorOffset(&offset)) && anchor)
{
nsCOMPtr<nsIDOMNodeList> anchorChildren;
result = anchor->GetChildNodes(getter_AddRefs(anchorChildren));
nsCOMPtr<nsIDOMNode> selectedNode;
if ((NS_SUCCEEDED(result)) && anchorChildren) {
result = anchorChildren->Item(offset, getter_AddRefs(selectedNode));
}
else {
selectedNode = do_QueryInterface(anchor);
}
if ((NS_SUCCEEDED(result)) && selectedNode)
{
nsCOMPtr<nsIDOMCharacterData>selectedNodeAsText;
selectedNodeAsText = do_QueryInterface(selectedNode);
if (selectedNodeAsText)
{
nsCOMPtr<nsIDOMNode> siblingNode;
selectedNode->GetPreviousSibling(getter_AddRefs(siblingNode));
if (siblingNode)
{
nsCOMPtr<nsIDOMCharacterData>siblingNodeAsText;
siblingNodeAsText = do_QueryInterface(siblingNode);
if (siblingNodeAsText)
{
PRUint32 siblingLength; // the length of siblingNode before the join
siblingNodeAsText->GetLength(&siblingLength);
nsCOMPtr<nsIDOMNode> parentNode;
selectedNode->GetParentNode(getter_AddRefs(parentNode));
result = mEditor->JoinNodes(siblingNode, selectedNode, parentNode);
// selectedNode will remain after the join, siblingNode is removed
}
}
selectedNode->GetNextSibling(getter_AddRefs(siblingNode));
if (siblingNode)
{
nsCOMPtr<nsIDOMCharacterData>siblingNodeAsText;
siblingNodeAsText = do_QueryInterface(siblingNode);
if (siblingNodeAsText)
{
PRUint32 selectedNodeLength; // the length of siblingNode before the join
selectedNodeAsText->GetLength(&selectedNodeLength);
nsCOMPtr<nsIDOMNode> parentNode;
selectedNode->GetParentNode(getter_AddRefs(parentNode));
result = mEditor->JoinNodes(selectedNode, siblingNode, parentNode);
// selectedNode will remain after the join, siblingNode is removed
// set selection
aSelection->Collapse(siblingNode, selectedNodeLength);
}
}
}
}
}
}
}
return result;
}
nsresult
nsTextEditRules::WillUndo(nsIDOMSelection *aSelection, PRBool *aCancel)
{
if (!aSelection || !aCancel) { return NS_ERROR_NULL_POINTER; }
CANCEL_OPERATION_IF_READONLY_OR_DISABLED
// initialize out param
*aCancel = PR_FALSE;
return NS_OK;
}
/* the idea here is to see if the magic empty node has suddenly reappeared as the result of the undo.
* if it has, set our state so we remember it.
* There is a tradeoff between doing here and at redo, or doing it everywhere else that might care.
* Since undo and redo are relatively rare, it makes sense to take the (small) performance hit here.
*/
nsresult
nsTextEditRules:: DidUndo(nsIDOMSelection *aSelection, nsresult aResult)
{
nsresult result = aResult; // if aResult is an error, we return it.
if (!aSelection) { return NS_ERROR_NULL_POINTER; }
if (NS_SUCCEEDED(result))
{
if (mBogusNode) {
mBogusNode = do_QueryInterface(nsnull);
}
else
{
nsCOMPtr<nsIDOMNode>node;
PRInt32 offset;
result = aSelection->GetAnchorNode(getter_AddRefs(node));
if (NS_SUCCEEDED(result) && NS_SUCCEEDED(aSelection->GetAnchorOffset(&offset)) && node)
{
nsCOMPtr<nsIDOMElement>element;
element = do_QueryInterface(node);
if (element)
{
nsAutoString att(nsEditor::kMOZEditorBogusNodeAttr);
nsAutoString val;
(void)element->GetAttribute(att, val);
if (val.Equals(nsEditor::kMOZEditorBogusNodeValue)) {
mBogusNode = do_QueryInterface(element);
}
}
nsCOMPtr<nsIDOMNode> temp;
result = node->GetParentNode(getter_AddRefs(temp));
node = do_QueryInterface(temp);
}
}
}
return result;
}
nsresult
nsTextEditRules::WillRedo(nsIDOMSelection *aSelection, PRBool *aCancel)
{
if (!aSelection || !aCancel) { return NS_ERROR_NULL_POINTER; }
CANCEL_OPERATION_IF_READONLY_OR_DISABLED
// initialize out param
*aCancel = PR_FALSE;
return NS_OK;
}
nsresult
nsTextEditRules::DidRedo(nsIDOMSelection *aSelection, nsresult aResult)
{
nsresult result = aResult; // if aResult is an error, we return it.
if (!aSelection) { return NS_ERROR_NULL_POINTER; }
if (NS_SUCCEEDED(result))
{
if (mBogusNode) {
mBogusNode = do_QueryInterface(nsnull);
}
else
{
nsCOMPtr<nsIDOMNode>node;
PRInt32 offset;
result = aSelection->GetAnchorNode(getter_AddRefs(node));
if (NS_SUCCEEDED(result) && NS_SUCCEEDED(aSelection->GetAnchorOffset(&offset)) && node)
{
nsCOMPtr<nsIDOMElement>element;
element = do_QueryInterface(node);
if (element)
{
nsAutoString att(nsEditor::kMOZEditorBogusNodeAttr);
nsAutoString val;
(void)element->GetAttribute(att, val);
if (val.Equals(nsEditor::kMOZEditorBogusNodeValue)) {
mBogusNode = do_QueryInterface(element);
}
}
nsCOMPtr<nsIDOMNode> temp;
result = node->GetParentNode(getter_AddRefs(temp));
node = do_QueryInterface(temp);
}
}
}
return result;
}
nsresult
nsTextEditRules::WillOutputText(nsIDOMSelection *aSelection,
nsString *aOutString,
PRBool *aCancel)
{
// null selection ok
if (!aOutString || !aCancel) { return NS_ERROR_NULL_POINTER; }
// initialize out param
*aCancel = PR_FALSE;
if (mFlags & nsIHighLevelHTMLEditor::eEditorPasswordMask)
{
*aOutString = mPasswordText;
*aCancel = PR_TRUE;
}
return NS_OK;
}
nsresult
nsTextEditRules::DidOutputText(nsIDOMSelection *aSelection, nsresult aResult)
{
return NS_OK;
}
nsresult
nsTextEditRules::CreateBogusNodeIfNeeded(nsIDOMSelection *aSelection)
{
if (!aSelection) { return NS_ERROR_NULL_POINTER; }
if (!mEditor) { return NS_ERROR_NULL_POINTER; }
nsCOMPtr<nsIDOMDocument>doc;
mEditor->GetDocument(getter_AddRefs(doc));
nsCOMPtr<nsIDOMNodeList>nodeList;
nsAutoString bodyTag = "body";
nsresult result = doc->GetElementsByTagName(bodyTag, getter_AddRefs(nodeList));
if ((NS_SUCCEEDED(result)) && nodeList)
{
PRUint32 count;
nodeList->GetLength(&count);
NS_ASSERTION(1==count, "there is not exactly 1 body in the document!");
nsCOMPtr<nsIDOMNode>bodyNode;
result = nodeList->Item(0, getter_AddRefs(bodyNode));
if ((NS_SUCCEEDED(result)) && bodyNode)
{ // now we've got the body tag.
// iterate the body tag, looking for editable content
// if no editable content is found, insert the bogus node
PRBool needsBogusContent=PR_TRUE;
nsCOMPtr<nsIDOMNode>bodyChild;
result = bodyNode->GetFirstChild(getter_AddRefs(bodyChild));
while ((NS_SUCCEEDED(result)) && bodyChild)
{
if (PR_TRUE==mEditor->IsEditable(bodyChild))
{
needsBogusContent = PR_FALSE;
break;
}
nsCOMPtr<nsIDOMNode>temp;
bodyChild->GetNextSibling(getter_AddRefs(temp));
bodyChild = do_QueryInterface(temp);
}
if (PR_TRUE==needsBogusContent)
{
// set mBogusNode to be the newly created <P>
result = mEditor->CreateNode(nsAutoString("P"), bodyNode, 0,
getter_AddRefs(mBogusNode));
if ((NS_SUCCEEDED(result)) && mBogusNode)
{
nsCOMPtr<nsIDOMNode>newTNode;
result = mEditor->CreateNode(nsEditor::GetTextNodeTag(), mBogusNode, 0,
getter_AddRefs(newTNode));
if ((NS_SUCCEEDED(result)) && newTNode)
{
nsCOMPtr<nsIDOMCharacterData>newNodeAsText;
newNodeAsText = do_QueryInterface(newTNode);
if (newNodeAsText)
{
nsAutoString data;
data += 160;
newNodeAsText->SetData(data);
aSelection->Collapse(newTNode, 0);
}
}
// make sure we know the PNode is bogus
nsCOMPtr<nsIDOMElement>newPElement;
newPElement = do_QueryInterface(mBogusNode);
if (newPElement)
{
nsAutoString att(nsEditor::kMOZEditorBogusNodeAttr);
nsAutoString val(nsEditor::kMOZEditorBogusNodeValue);
newPElement->SetAttribute(att, val);
}
}
}
}
}
return result;
}

View File

@@ -1,201 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsTextEditRules_h__
#define nsTextEditRules_h__
#include "nsCOMPtr.h"
#include "nsHTMLEditor.h"
#include "nsIDOMNode.h"
#include "nsEditRules.h"
#include "TypeInState.h"
class PlaceholderTxn;
class nsTextEditor;
/** Object that encapsulates HTML text-specific editing rules.
*
* To be a good citizen, edit rules must live by these restrictions:
* 1. All data manipulation is through the editor.
* Content nodes in the document tree must <B>not</B> be manipulated directly.
* Content nodes in document fragments that are not part of the document itself
* may be manipulated at will. Operations on document fragments must <B>not</B>
* go through the editor.
* 2. Selection must not be explicitly set by the rule method.
* Any manipulation of Selection must be done by the editor.
*/
class nsTextEditRules : public nsEditRules
{
public:
nsTextEditRules(PRUint32 aFlags);
virtual ~nsTextEditRules();
// nsEditRules methods
NS_IMETHOD Init(nsHTMLEditor *aEditor);
NS_IMETHOD WillDoAction(nsIDOMSelection *aSelection, nsRulesInfo *aInfo, PRBool *aCancel);
NS_IMETHOD DidDoAction(nsIDOMSelection *aSelection, nsRulesInfo *aInfo, nsresult aResult);
NS_IMETHOD GetFlags(PRUint32 *aFlags);
NS_IMETHOD SetFlags(PRUint32 aFlags);
// nsTextEditRules action id's
enum
{
// any editor that has a txn mgr
kUndo = 1000,
kRedo = 1001,
// text actions
kInsertText = 2000,
kDeleteSelection = 2001,
kSetTextProperty = 2003,
kRemoveTextProperty = 2004,
kOutputText = 2005,
// html only action
kInsertBreak = 3000,
kMakeList = 3001,
kIndent = 3002,
kOutdent = 3003,
kAlign = 3004,
kMakeHeader = 3005,
kMakeAddress = 3006,
kMakePRE = 3007
};
protected:
// nsTextEditRules implementation methods
nsresult WillInsertText(nsIDOMSelection *aSelection,
PRBool *aCancel,
PlaceholderTxn **aTxn,
const nsString *inString,
nsString *outString,
TypeInState typeInState,
PRInt32 aMaxLength);
nsresult DidInsertText(nsIDOMSelection *aSelection, nsresult aResult);
nsresult CreateStyleForInsertText(nsIDOMSelection *aSelection, TypeInState &aTypeInState);
nsresult WillInsertBreak(nsIDOMSelection *aSelection, PRBool *aCancel);
nsresult DidInsertBreak(nsIDOMSelection *aSelection, nsresult aResult);
nsresult WillInsert(nsIDOMSelection *aSelection, PRBool *aCancel);
nsresult DidInsert(nsIDOMSelection *aSelection, nsresult aResult);
nsresult WillDeleteSelection(nsIDOMSelection *aSelection,
nsIEditor::ESelectionCollapseDirection aCollapsedAction,
PRBool *aCancel);
nsresult DidDeleteSelection(nsIDOMSelection *aSelection,
nsIEditor::ESelectionCollapseDirection aCollapsedAction,
nsresult aResult);
nsresult WillSetTextProperty(nsIDOMSelection *aSelection, PRBool *aCancel);
nsresult DidSetTextProperty(nsIDOMSelection *aSelection, nsresult aResult);
nsresult WillRemoveTextProperty(nsIDOMSelection *aSelection, PRBool *aCancel);
nsresult DidRemoveTextProperty(nsIDOMSelection *aSelection, nsresult aResult);
nsresult WillUndo(nsIDOMSelection *aSelection, PRBool *aCancel);
nsresult DidUndo(nsIDOMSelection *aSelection, nsresult aResult);
nsresult WillRedo(nsIDOMSelection *aSelection, PRBool *aCancel);
nsresult DidRedo(nsIDOMSelection *aSelection, nsresult aResult);
nsresult WillOutputText(nsIDOMSelection *aSelection, nsString *aOutText, PRBool *aCancel);
nsresult DidOutputText(nsIDOMSelection *aSelection, nsresult aResult);
// helper functions
/** insert aNode into a new style node of type aTag.
* aSelection is optional. If provided, aSelection is set to (aNode, 0)
* if aNode was successfully placed in a new style node
* @param aNewStyleNode [OUT] The newly created style node, if result is successful
* undefined if result is a failure.
*/
nsresult InsertStyleNode(nsIDOMNode *aNode,
nsIAtom *aTag,
nsIDOMSelection *aSelection,
nsIDOMNode **aNewStyleNode);
/** inserts a new <FONT> node and sets the aAttr attribute to aValue */
nsresult CreateFontStyleForInsertText(nsIDOMNode *aNewTextNode,
const nsString &aAttr,
const nsString &aValue,
nsIDOMSelection *aSelection);
/** create a new style node of type aTag in aParentNode, and put a new text node
* in the new style node.
* If aSelection is provided and points to a text node, just call InsertStyleNode instead.
* aSelection is optional. If provided, aSelection is set to (newTextNode, 0)
* if newTextNode was successfully created.
*/
nsresult InsertStyleAndNewTextNode(nsIDOMNode *aParentNode,
nsIAtom *aTag,
nsIDOMSelection *aSelection);
/** creates a bogus text node if the document has no editable content */
nsresult CreateBogusNodeIfNeeded(nsIDOMSelection *aSelection);
/** enforce selection must be inside PRE node */
nsresult PinSelectionInPRE(nsIDOMSelection *aSelection);
// data
nsHTMLEditor *mEditor; // note that we do not refcount the editor
nsString mPasswordText; // a buffer we use to store the real value of password editors
nsCOMPtr<nsIDOMNode> mBogusNode; // magic node acts as placeholder in empty doc
PRUint32 mFlags;
};
class nsTextRulesInfo : public nsRulesInfo
{
public:
nsTextRulesInfo(int aAction) :
nsRulesInfo(aAction),
placeTxn(0),
inString(0),
outString(0),
typeInState(),
maxLength(-1),
collapsedAction(nsIEditor::eDeleteNext)
{};
virtual ~nsTextRulesInfo() {};
// kInsertText
PlaceholderTxn **placeTxn;
const nsString *inString;
nsString *outString;
TypeInState typeInState;
PRInt32 maxLength;
// kDeleteSelection
nsIEditor::ESelectionCollapseDirection collapsedAction;
// kMakeList
PRBool bOrdered;
// kAlign
const nsString *alignType;
};
#endif //nsTextEditRules_h__

View File

@@ -1,661 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL") you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#error "This file is no longer used"
#include "nsTextEditor.h"
#include "nsEditorEventListeners.h"
#include "nsIDocument.h"
#include "nsFileSpec.h"
#include "nsIDOMDocument.h"
#include "nsIDOMEventReceiver.h"
#include "nsIDOMKeyListener.h"
#include "nsIDOMMouseListener.h"
#include "nsIDOMDragListener.h"
#include "nsIDOMFocusListener.h"
#include "nsIDOMSelection.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMCharacterData.h"
#include "nsIDOMElement.h"
#include "nsIDOMTextListener.h"
#include "nsIDiskDocument.h"
#include "nsIDocumentEncoder.h"
#include "nsEditorCID.h"
#include "nsISupportsArray.h"
#include "nsIEnumerator.h"
#include "nsIContentIterator.h"
#include "nsIContent.h"
#include "nsLayoutCID.h"
#include "nsIPresShell.h"
#include "nsIStyleContext.h"
#include "nsVoidArray.h"
#if DEBUG
#include "TextEditorTest.h"
#endif
// transactions the text editor knows how to build itself
#include "TransactionFactory.h"
#include "PlaceholderTxn.h"
#include "InsertTextTxn.h"
#include "nsIFileStream.h"
#include "nsIStringStream.h"
#include "nsIAppShell.h"
#include "nsIToolkit.h"
#include "nsWidgetsCID.h"
#include "nsIFileWidget.h"
// Drag & Drop, Clipboard
#include "nsIClipboard.h"
#include "nsITransferable.h"
//#include "nsIFormatConverter.h"
// Drag & Drop, Clipboard Support
static NS_DEFINE_CID(kCClipboardCID, NS_CLIPBOARD_CID);
static NS_DEFINE_CID(kCTransferableCID, NS_TRANSFERABLE_CID);
//static NS_DEFINE_IID(kCXIFFormatConverterCID, NS_XIFFORMATCONVERTER_CID);
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsTextEditRules.h"
#include "nsIPref.h"
#include "nsAOLCiter.h"
#include "nsInternetCiter.h"
#ifdef ENABLE_JS_EDITOR_LOG
#include "nsJSEditorLog.h"
#endif // ENABLE_JS_EDITOR_LOG
static NS_DEFINE_CID(kEditorCID, NS_EDITOR_CID);
static NS_DEFINE_CID(kTextEditorCID, NS_TEXTEDITOR_CID);
static NS_DEFINE_CID(kCContentIteratorCID, NS_CONTENTITERATOR_CID);
static NS_DEFINE_CID(kCRangeCID, NS_RANGE_CID);
static NS_DEFINE_CID(kPrefServiceCID, NS_PREF_CID);
#ifdef NS_DEBUG
static PRBool gNoisy = PR_FALSE;
#else
static const PRBool gNoisy = PR_FALSE;
#endif
/*****************************************************************************
* nsTextEditor implementation
****************************************************************************/
nsTextEditor::nsTextEditor()
: mTypeInState(nsnull)
, mRules(nsnull)
, mKeyListenerP(nsnull)
, mIsComposing(PR_FALSE)
{
// Done in nsEditor
// NS_INIT_REFCNT();
mRules = nsnull;
mMaxTextLength = -1;
mWrapColumn = 72;
}
nsTextEditor::~nsTextEditor()
{}
// Adds appropriate AddRef, Release, and QueryInterface methods for derived class
//NS_IMPL_ISUPPORTS_INHERITED(nsTextEditor, nsEditor, nsITextEditor)
//NS_IMPL_ADDREF_INHERITED(Class, Super)
NS_IMETHODIMP_(nsrefcnt) nsTextEditor::AddRef(void)
{
return nsEditor::AddRef();
}
//NS_IMPL_RELEASE_INHERITED(Class, Super)
NS_IMETHODIMP_(nsrefcnt) nsTextEditor::Release(void)
{
return nsEditor::Release();
}
//NS_IMPL_QUERY_INTERFACE_INHERITED(Class, Super, AdditionalInterface)
NS_IMETHODIMP nsTextEditor::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (!aInstancePtr) return NS_ERROR_NULL_POINTER;
if (aIID.Equals(nsITextEditor::GetIID())) {
*aInstancePtr = NS_STATIC_CAST(nsITextEditor*, this);
NS_ADDREF_THIS();
return NS_OK;
}
return nsEditor::QueryInterface(aIID, aInstancePtr);
}
NS_IMETHODIMP nsTextEditor::Init(nsIDOMDocument *aDoc,
nsIPresShell *aPresShell)
{}
void nsTextEditor::HandleEventListenerError()
{}
void nsTextEditor::InitRules()
{}
NS_IMETHODIMP
nsTextEditor::GetFlags(PRUint32 *aFlags)
{
if (!mRules || !aFlags) { return NS_ERROR_NULL_POINTER; }
return mRules->GetFlags(aFlags);
}
NS_IMETHODIMP
nsTextEditor::SetFlags(PRUint32 aFlags)
{
if (!mRules) { return NS_ERROR_NULL_POINTER; }
return mRules->SetFlags(aFlags);
}
NS_IMETHODIMP nsTextEditor::SetTextProperty(nsIAtom *aProperty,
const nsString *aAttribute,
const nsString *aValue)
{}
NS_IMETHODIMP nsTextEditor::GetTextProperty(nsIAtom *aProperty,
const nsString *aAttribute,
const nsString *aValue,
PRBool &aFirst, PRBool &aAny, PRBool &aAll)
{}
void nsTextEditor::IsTextStyleSet(nsIStyleContext *aSC,
nsIAtom *aProperty,
const nsString *aAttribute,
PRBool &aIsSet) const
{}
// this will NOT find aAttribute unless aAttribute has a non-null value
// so singleton attributes like <Table border> will not be matched!
void nsTextEditor::IsTextPropertySetByContent(nsIDOMNode *aNode,
nsIAtom *aProperty,
const nsString *aAttribute,
const nsString *aValue,
PRBool &aIsSet,
nsIDOMNode **aStyleNode) const
{}
NS_IMETHODIMP nsTextEditor::RemoveTextProperty(nsIAtom *aProperty, const nsString *aAttribute)
{}
void nsTextEditor::GetTextSelectionOffsetsForRange(nsIDOMSelection *aSelection,
nsIDOMNode **aParent,
PRInt32 &aStartOffset,
PRInt32 &aEndOffset)
{}
void nsTextEditor::ResetTextSelectionForRange(nsIDOMNode *aParent,
PRInt32 aStartOffset,
PRInt32 aEndOffset,
nsIDOMSelection *aSelection)
{}
NS_IMETHODIMP nsTextEditor::DeleteSelection(nsIEditor::ESelectionCollapseDirection aAction)
{}
NS_IMETHODIMP nsTextEditor::InsertText(const nsString& aStringToInsert)
{}
NS_IMETHODIMP nsTextEditor::SetMaxTextLength(PRInt32 aMaxTextLength)
{
mMaxTextLength = aMaxTextLength;
return NS_OK;
}
NS_IMETHODIMP nsTextEditor::GetMaxTextLength(PRInt32& aMaxTextLength)
{
aMaxTextLength = mMaxTextLength;
return NS_OK;
}
NS_IMETHODIMP nsTextEditor::InsertBreak()
{
#ifdef ENABLE_JS_EDITOR_LOG
nsAutoJSEditorLogLock logLock(mJSEditorLog);
if (mJSEditorLog)
mJSEditorLog->InsertBreak();
#endif // ENABLE_JS_EDITOR_LOG
nsCOMPtr<nsIDOMSelection> selection;
PRBool cancel= PR_FALSE;
// pre-process
nsEditor::GetSelection(getter_AddRefs(selection));
nsTextRulesInfo ruleInfo(nsTextEditRules::kInsertBreak);
nsresult result = mRules->WillDoAction(selection, &ruleInfo, &cancel);
if ((PR_FALSE==cancel) && (NS_SUCCEEDED(result)))
{
// For plainttext just pass newlines through
nsAutoString key;
key += '\n';
result = InsertText(key);
nsEditor::GetSelection(getter_AddRefs(selection));
result = mRules->DidDoAction(selection, &ruleInfo, result);
}
return result;
}
NS_IMETHODIMP nsTextEditor::EnableUndo(PRBool aEnable)
{
return nsEditor::EnableUndo(aEnable);
}
NS_IMETHODIMP nsTextEditor::Undo(PRUint32 aCount)
{
#ifdef ENABLE_JS_EDITOR_LOG
nsAutoJSEditorLogLock logLock(mJSEditorLog);
if (mJSEditorLog)
mJSEditorLog->Undo(aCount);
#endif // ENABLE_JS_EDITOR_LOG
nsCOMPtr<nsIDOMSelection> selection;
PRBool cancel= PR_FALSE;
// pre-process
nsEditor::GetSelection(getter_AddRefs(selection));
nsTextRulesInfo ruleInfo(nsTextEditRules::kUndo);
nsresult result = mRules->WillDoAction(selection, &ruleInfo, &cancel);
if ((PR_FALSE==cancel) && (NS_SUCCEEDED(result)))
{
result = nsEditor::Undo(aCount);
nsEditor::GetSelection(getter_AddRefs(selection));
result = mRules->DidDoAction(selection, &ruleInfo, result);
}
return result;
}
NS_IMETHODIMP nsTextEditor::CanUndo(PRBool &aIsEnabled, PRBool &aCanUndo)
{
return nsEditor::CanUndo(aIsEnabled, aCanUndo);
}
NS_IMETHODIMP nsTextEditor::Redo(PRUint32 aCount)
{
#ifdef ENABLE_JS_EDITOR_LOG
nsAutoJSEditorLogLock logLock(mJSEditorLog);
if (mJSEditorLog)
mJSEditorLog->Redo(aCount);
#endif // ENABLE_JS_EDITOR_LOG
nsCOMPtr<nsIDOMSelection> selection;
PRBool cancel= PR_FALSE;
// pre-process
nsEditor::GetSelection(getter_AddRefs(selection));
nsTextRulesInfo ruleInfo(nsTextEditRules::kRedo);
nsresult result = mRules->WillDoAction(selection, &ruleInfo, &cancel);
if ((PR_FALSE==cancel) && (NS_SUCCEEDED(result)))
{
result = nsEditor::Redo(aCount);
nsEditor::GetSelection(getter_AddRefs(selection));
result = mRules->DidDoAction(selection, &ruleInfo, result);
}
return result;
}
NS_IMETHODIMP nsTextEditor::CanRedo(PRBool &aIsEnabled, PRBool &aCanRedo)
{
return nsEditor::CanRedo(aIsEnabled, aCanRedo);
}
NS_IMETHODIMP nsTextEditor::BeginTransaction()
{
return nsEditor::BeginTransaction();
}
NS_IMETHODIMP nsTextEditor::EndTransaction()
{
return nsEditor::EndTransaction();
}
NS_IMETHODIMP nsTextEditor::MoveSelectionUp(nsIAtom *aIncrement, PRBool aExtendSelection)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTextEditor::MoveSelectionDown(nsIAtom *aIncrement, PRBool aExtendSelection)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTextEditor::MoveSelectionNext(nsIAtom *aIncrement, PRBool aExtendSelection)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTextEditor::MoveSelectionPrevious(nsIAtom *aIncrement, PRBool aExtendSelection)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTextEditor::SelectNext(nsIAtom *aIncrement, PRBool aExtendSelection)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTextEditor::SelectPrevious(nsIAtom *aIncrement, PRBool aExtendSelection)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTextEditor::SelectAll()
{
return nsEditor::SelectAll();
}
NS_IMETHODIMP nsTextEditor::BeginningOfDocument()
{
return nsEditor::BeginningOfDocument();
}
NS_IMETHODIMP nsTextEditor::EndOfDocument()
{
return nsEditor::EndOfDocument();
}
NS_IMETHODIMP nsTextEditor::ScrollUp(nsIAtom *aIncrement)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTextEditor::ScrollDown(nsIAtom *aIncrement)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTextEditor::ScrollIntoView(PRBool aScrollToBegin)
{
return nsEditor::ScrollIntoView(aScrollToBegin);
}
static NS_DEFINE_IID(kCFileWidgetCID, NS_FILEWIDGET_CID);
static NS_DEFINE_IID(kIFileWidgetIID, NS_IFILEWIDGET_IID);
NS_IMETHODIMP nsTextEditor::SaveDocument(PRBool saveAs, PRBool saveCopy)
{}
NS_IMETHODIMP nsTextEditor::Save()
{}
NS_IMETHODIMP nsTextEditor::SaveAs(PRBool aSavingCopy)
{}
NS_IMETHODIMP nsTextEditor::Cut()
{
return nsEditor::Cut();
}
NS_IMETHODIMP nsTextEditor::Copy()
{
return nsEditor::Copy();
}
NS_IMETHODIMP nsTextEditor::Paste()
{}
//
// Similar to that in nsEditor::Paste except that it does indentation:
//
NS_IMETHODIMP nsTextEditor::PasteAsQuotation()
{
#ifdef ENABLE_JS_EDITOR_LOG
nsAutoJSEditorLogLock logLock(mJSEditorLog);
if (mJSEditorLog)
mJSEditorLog->PasteAsQuotation();
#endif // ENABLE_JS_EDITOR_LOG
nsString stuffToPaste;
// Get Clipboard Service
nsIClipboard* clipboard;
nsresult rv = nsServiceManager::GetService(kCClipboardCID,
nsIClipboard::GetIID(),
(nsISupports **)&clipboard);
// Create generic Transferable for getting the data
nsCOMPtr<nsITransferable> trans;
rv = nsComponentManager::CreateInstance(kCTransferableCID, nsnull,
nsITransferable::GetIID(),
(void**) getter_AddRefs(trans));
if (NS_OK == rv)
{
// Get nsITransferable interface for getting the data from the clipboard
if (trans)
{
// We only handle plaintext pastes here
nsAutoString flavor(kTextMime);
trans->AddDataFlavor(&flavor);
// Get the Data from the clipboard
clipboard->GetData(trans);
// Now we ask the transferable for the data
// it still owns the data, we just have a pointer to it.
// If it can't support a "text" output of the data the call will fail
char *str = 0;
PRUint32 len;
if (NS_OK == trans->GetTransferData(&flavor, (void **)&str, &len)) {
// Make adjustments for null terminated strings
if (str && len > 0) {
// stuffToPaste is ready for insertion into the content
stuffToPaste.SetString(str, len);
}
}
}
}
nsServiceManager::ReleaseService(kCClipboardCID, clipboard);
return InsertAsQuotation(stuffToPaste);
}
NS_IMETHODIMP nsTextEditor::InsertAsQuotation(const nsString& aQuotedText)
{}
//
// Get the wrap width for the first PRE tag in the document.
// If no PRE tag, throw an error.
//
NS_IMETHODIMP nsTextEditor::GetBodyWrapWidth(PRInt32 *aWrapColumn)
{}
//
// Change the wrap width on the first <PRE> tag in this document.
// (Eventually want to search for more than one in case there are
// interspersed quoted text blocks.)
//
NS_IMETHODIMP nsTextEditor::SetBodyWrapWidth(PRInt32 aWrapColumn)
{}
NS_IMETHODIMP nsTextEditor::ApplyStyleSheet(const nsString& aURL)
{}
NS_IMETHODIMP nsTextEditor::OutputToString(nsString& aOutputString,
const nsString& aFormatType,
PRUint32 aFlags)
{}
NS_IMETHODIMP nsTextEditor::OutputToStream(nsIOutputStream* aOutputStream,
const nsString& aFormatType,
const nsString* aCharset,
PRUint32 aFlags)
{}
NS_IMETHODIMP nsTextEditor::SetTextPropertiesForNode(nsIDOMNode *aNode,
nsIDOMNode *aParent,
PRInt32 aStartOffset,
PRInt32 aEndOffset,
nsIAtom *aPropName,
const nsString *aAttribute,
const nsString *aValue)
{}
NS_IMETHODIMP nsTextEditor::MoveContentOfNodeIntoNewParent(nsIDOMNode *aNode,
nsIDOMNode *aNewParentNode,
PRInt32 aStartOffset,
PRInt32 aEndOffset)
{}
/* this should only get called if the only intervening nodes are inline style nodes */
NS_IMETHODIMP
nsTextEditor::SetTextPropertiesForNodesWithSameParent(nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
nsIDOMNode *aParent,
nsIAtom *aPropName,
const nsString *aAttribute,
const nsString *aValue)
{}
//XXX won't work for selections that are not leaf nodes!
// should fix up the end points to make sure they are leaf nodes
NS_IMETHODIMP nsTextEditor::MoveContiguousContentIntoNewParent(nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
nsIDOMNode *aGrandParentNode,
nsIDOMNode *aNewParentNode)
{}
/* this wraps every selected text node in a new inline style node if needed
the text nodes are treated as being unique -- each needs it's own style node
if the style is not already present.
each action has immediate effect on the content tree and resolved style, so
doing outermost text nodes first removes the need for interior style nodes in some cases.
XXX: need to code test to see if new style node is needed
*/
NS_IMETHODIMP
nsTextEditor::SetTextPropertiesForNodeWithDifferentParents(nsIDOMRange *aRange,
nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
nsIDOMNode *aParent,
nsIAtom *aPropName,
const nsString *aAttribute,
const nsString *aValue)
{}
NS_IMETHODIMP nsTextEditor::RemoveTextPropertiesForNode(nsIDOMNode *aNode,
nsIDOMNode *aParent,
PRInt32 aStartOffset,
PRInt32 aEndOffset,
nsIAtom *aPropName,
const nsString *aAttribute)
{}
/* this should only get called if the only intervening nodes are inline style nodes */
NS_IMETHODIMP
nsTextEditor::RemoveTextPropertiesForNodesWithSameParent(nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
nsIDOMNode *aParent,
nsIAtom *aPropName,
const nsString *aAttribute)
{}
NS_IMETHODIMP
nsTextEditor::RemoveTextPropertiesForNodeWithDifferentParents(nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
nsIDOMNode *aParent,
nsIAtom *aPropName,
const nsString *aAttribute)
{}
TypeInState * nsTextEditor::GetTypeInState()
{}
NS_IMETHODIMP
nsTextEditor::SetTypeInStateForProperty(TypeInState &aTypeInState,
nsIAtom *aPropName,
const nsString *aAttribute,
const nsString *aValue)
{}
NS_IMETHODIMP nsTextEditor::SetBackgroundColor(const nsString& aColor)
{}
// This file should be rearranged to put all methods that simply call nsEditor together
NS_IMETHODIMP
nsTextEditor::CopyAttributes(nsIDOMNode *aDestNode, nsIDOMNode *aSourceNode)
{
return nsEditor::CopyAttributes(aDestNode, aSourceNode);
}
NS_IMETHODIMP
nsTextEditor::BeginComposition(void)
{}
NS_IMETHODIMP
nsTextEditor::SetCompositionString(const nsString& aCompositionString,nsIDOMTextRangeList* aTextRangeList)
{}
NS_IMETHODIMP
nsTextEditor::EndComposition(void)
{}
NS_IMETHODIMP
nsTextEditor::DebugUnitTests(PRInt32 *outNumTests, PRInt32 *outNumTestsFailed)
{
#ifdef DEBUG
if (!outNumTests || !outNumTestsFailed)
return NS_ERROR_NULL_POINTER;
TextEditorTest *tester = new TextEditorTest();
if (!tester)
return NS_ERROR_OUT_OF_MEMORY;
tester->Run(this, outNumTests, outNumTestsFailed);
delete tester;
return NS_OK;
#else
return NS_ERROR_NOT_IMPLEMENTED;
#endif
}
NS_IMETHODIMP
nsTextEditor::GetDocumentLength(PRInt32 *aCount)
{}

View File

@@ -1,336 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#error "This file is no longer used"
#ifndef nsTextEditor_h__
#define nsTextEditor_h__
#include "nsITextEditor.h"
#include "nsCOMPtr.h"
#include "nsIDOMEventListener.h"
#include "nsIDOMElement.h"
#include "nsEditor.h"
#include "nsTextEditRules.h"
#include "TypeInState.h"
#include "nsString.h"
class nsIStyleContext;
class nsIDOMRange;
class nsIDOMNode;
/**
* The text editor implementation.<br>
* Use to edit text represented as a DOM tree.
* This class is used for editing both plain text and rich text (attributed text).
*/
class nsTextEditor : public nsEditor, public nsITextEditor
{
public:
// see nsITextEditor for documentation
//Interfaces for addref and release and queryinterface
//NOTE macro used is for classes that inherit from
// another class. Only the base class should use NS_DECL_ISUPPORTS
NS_DECL_ISUPPORTS_INHERITED
nsTextEditor();
virtual ~nsTextEditor();
//Initialization
NS_IMETHOD Init(nsIDOMDocument *aDoc, nsIPresShell *aPresShell);
NS_IMETHOD GetFlags(PRUint32 *aFlags);
NS_IMETHOD SetFlags(PRUint32 aFlags);
NS_IMETHOD GetDocumentLength(PRInt32 *aCount);
//============================================================================
// Methods that are duplicates of nsEditor -- exposed here for convenience
// Editing Operations
NS_IMETHOD SetTextProperty(nsIAtom *aProperty,
const nsString *aAttribute,
const nsString *aValue);
NS_IMETHOD GetTextProperty(nsIAtom *aProperty,
const nsString *aAttribute,
const nsString *aValue,
PRBool &aFirst, PRBool &aAny, PRBool &aAll);
NS_IMETHOD RemoveTextProperty(nsIAtom *aProperty, const nsString *aAttribute);
NS_IMETHOD DeleteSelection(nsIEditor::ESelectionCollapseDirection aAction);
NS_IMETHOD InsertText(const nsString& aStringToInsert);
NS_IMETHOD SetMaxTextLength(PRInt32 aMaxTextLength);
NS_IMETHOD GetMaxTextLength(PRInt32& aMaxTextLength);
NS_IMETHOD InsertBreak();
NS_IMETHOD CopyAttributes(nsIDOMNode *aDestNode, nsIDOMNode *aSourceNode);
// This method sets background of the page (the body tag)
NS_IMETHOD SetBackgroundColor(const nsString& aColor);
// Transaction control
NS_IMETHOD EnableUndo(PRBool aEnable);
NS_IMETHOD Undo(PRUint32 aCount);
NS_IMETHOD CanUndo(PRBool &aIsEnabled, PRBool &aCanUndo);
NS_IMETHOD Redo(PRUint32 aCount);
NS_IMETHOD CanRedo(PRBool &aIsEnabled, PRBool &aCanRedo);
NS_IMETHOD BeginTransaction();
NS_IMETHOD EndTransaction();
// Selection and navigation -- exposed here for convenience
NS_IMETHOD MoveSelectionUp(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD MoveSelectionDown(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD MoveSelectionNext(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD MoveSelectionPrevious(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD SelectNext(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD SelectPrevious(nsIAtom *aIncrement, PRBool aExtendSelection);
NS_IMETHOD SelectAll();
NS_IMETHOD BeginningOfDocument();
NS_IMETHOD EndOfDocument();
NS_IMETHOD ScrollUp(nsIAtom *aIncrement);
NS_IMETHOD ScrollDown(nsIAtom *aIncrement);
NS_IMETHOD ScrollIntoView(PRBool aScrollToBegin);
// file handling
NS_IMETHOD Save();
NS_IMETHOD SaveAs(PRBool aSavingCopy);
// cut, copy & paste
NS_IMETHOD Cut();
NS_IMETHOD Copy();
NS_IMETHOD Paste();
NS_IMETHOD PasteAsQuotation();
NS_IMETHOD InsertAsQuotation(const nsString& aQuotedText);
// Input/Output
NS_IMETHOD BeginComposition(void);
NS_IMETHOD SetCompositionString(const nsString& aCompositionString, nsIDOMTextRangeList* aRangeList);
NS_IMETHOD EndComposition(void);
NS_IMETHOD OutputToString(nsString& aOutputString,
const nsString& aFormatType,
PRUint32 aFlags);
NS_IMETHOD OutputToStream(nsIOutputStream* aOutputStream,
const nsString& aFormatType,
const nsString* aCharsetOverride,
PRUint32 aFlags);
// Plain text wrapping control
NS_IMETHOD GetBodyWrapWidth(PRInt32 *aWrapColumn);
NS_IMETHOD SetBodyWrapWidth(PRInt32 aWrapColumn);
// Miscellaneous
NS_IMETHOD ApplyStyleSheet(const nsString& aURL);
// Logging methods
NS_IMETHOD StartLogging(nsIFileSpec *aLogFile);
NS_IMETHOD StopLogging();
// End of methods implemented in nsEditor
//=============================================================
protected:
// file handling utils
NS_IMETHOD SaveDocument(PRBool saveAs, PRBool saveCopy);
// rules initialization
virtual void InitRules();
// Utility Methods
/** returns the PRE elements that bounds the content of the text document
* @param domdoc The text document
*/
nsCOMPtr<nsIDOMElement> FindPreElement();
/** content-based query returns PR_TRUE if <aProperty aAttribute=aValue> effects aNode
* If <aProperty aAttribute=aValue> contains aNode,
* but <aProperty aAttribute=SomeOtherValue> also contains aNode and the second is
* more deeply nested than the first, then the first does not effect aNode.
*
* @param aNode The target of the query
* @param aProperty The property that we are querying for
* @param aAttribute The attribute of aProperty, example: color in <FONT color="blue">
* May be null.
* @param aValue The value of aAttribute, example: blue in <FONT color="blue">
* May be null. Ignored if aAttribute is null.
* @param aIsSet [OUT] PR_TRUE if <aProperty aAttribute=aValue> effects aNode.
* @param aStyleNode [OUT] set to the node representing <aProperty aAttribute=aValue>, if found.
* null if aIsSet is returned as PR_FALSE;
*/
virtual void IsTextPropertySetByContent(nsIDOMNode *aNode,
nsIAtom *aProperty,
const nsString *aAttribute,
const nsString *aValue,
PRBool &aIsSet,
nsIDOMNode **aStyleNode) const;
/** style-based query returns PR_TRUE if (aProperty, aAttribute) is set in aSC.
* WARNING: not well tested yet since we don't do style-based queries anywhere.
*/
virtual void IsTextStyleSet(nsIStyleContext *aSC,
nsIAtom *aProperty,
const nsString *aAttributes,
PRBool &aIsSet) const;
/** Moves the content between (aNode, aStartOffset) and (aNode, aEndOffset)
* into aNewParentNode, splitting aNode as necessary to maintain the relative
* position of all leaf content.
* @param aNode The node whose content we're repositioning.
* aNode can be either a text node or a container node.
* @param aNewParentNode The node that will be the repositioned contents' parent.
* The caller is responsible for allocating aNewParentNode
* @param aStartOffset The start offset of the content of aNode
* @param aEndOffset The end offset of the content of aNode.
*/
NS_IMETHOD MoveContentOfNodeIntoNewParent(nsIDOMNode *aNode,
nsIDOMNode *aNewParentNode,
PRInt32 aStartOffset,
PRInt32 aEndOffset);
/** Moves the content between (aStartNode, aStartOffset) and (aEndNode, aEndOffset)
* into aNewParentNode, splitting aStartNode and aEndNode as necessary to maintain
* the relative position of all leaf content.
* The content between the two endpoints MUST be "contiguous" in the sense that
* it is all in the same block. Another way of saying this is all content nodes
* between aStartNode and aEndNode must be inline.
* @see IntermediateNodesAreInline
*
* @param aStartNode The left node, can be either a text node or a container node.
* @param aStartOffset The start offset in the content of aStartNode
* @param aEndNode The right node, can be either a text node or a container node.
* @param aEndOffset The end offset in the content of aEndNode.
* @param aGrandParentNode The common ancestor of aStartNode and aEndNode.
* aGrandParentNode will be the parent of aNewParentNode.
* @param aNewParentNode The node that will be the repositioned contents' parent.
* The caller is responsible for allocating aNewParentNode
*/
NS_IMETHOD MoveContiguousContentIntoNewParent(nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
nsIDOMNode *aGrandParentNode,
nsIDOMNode *aNewParentNode);
NS_IMETHOD SetTextPropertiesForNode(nsIDOMNode *aNode,
nsIDOMNode *aParent,
PRInt32 aStartOffset,
PRInt32 aEndOffset,
nsIAtom *aPropName,
const nsString *aAttribute,
const nsString *aValue);
NS_IMETHOD SetTextPropertiesForNodesWithSameParent(nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
nsIDOMNode *aParent,
nsIAtom *aPropName,
const nsString *aAttribute,
const nsString *aValue);
NS_IMETHOD SetTextPropertiesForNodeWithDifferentParents(nsIDOMRange *aRange,
nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
nsIDOMNode *aParent,
nsIAtom *aPropName,
const nsString *aAttribute,
const nsString *aValue);
NS_IMETHOD RemoveTextPropertiesForNode(nsIDOMNode *aNode,
nsIDOMNode *aParent,
PRInt32 aStartOffset,
PRInt32 aEndOffset,
nsIAtom *aPropName,
const nsString *aAttribute);
NS_IMETHOD RemoveTextPropertiesForNodesWithSameParent(nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
nsIDOMNode *aParent,
nsIAtom *aPropName,
const nsString *aAttribute);
NS_IMETHOD RemoveTextPropertiesForNodeWithDifferentParents(nsIDOMNode *aStartNode,
PRInt32 aStartOffset,
nsIDOMNode *aEndNode,
PRInt32 aEndOffset,
nsIDOMNode *aParent,
nsIAtom *aPropName,
const nsString *aAttribute);
NS_IMETHOD SetTypeInStateForProperty(TypeInState &aTypeInState,
nsIAtom *aPropName,
const nsString *aAttribute,
const nsString *aValue);
void GetTextSelectionOffsetsForRange(nsIDOMSelection *aSelection,
nsIDOMNode **aParent,
PRInt32 &aStartOffset,
PRInt32 &aEndOffset);
void ResetTextSelectionForRange(nsIDOMNode *aParent,
PRInt32 aStartOffset,
PRInt32 aEndOffset,
nsIDOMSelection *aSelection);
/** returns the absolute position of the end points of aSelection
* in the document as a text stream.
*/
nsresult GetTextSelectionOffsets(nsIDOMSelection *aSelection,
PRInt32 &aStartOffset,
PRInt32 &aEndOffset);
TypeInState *GetTypeInState();
/** simple utility to handle any error with event listener allocation or registration */
void HandleEventListenerError();
// this overrides the base class implementation. It is not exported in nsITextEditor.
NS_IMETHOD DebugUnitTests(PRInt32 *outNumTests, PRInt32 *outNumTestsFailed);
// Data members
protected:
TypeInState *mTypeInState;
nsTextEditRules *mRules;
nsCOMPtr<nsIDOMEventListener> mKeyListenerP;
nsCOMPtr<nsIDOMEventListener> mMouseListenerP;
nsCOMPtr<nsIDOMEventListener> mTextListenerP;
nsCOMPtr<nsIDOMEventListener> mCompositionListenerP;
nsCOMPtr<nsIDOMEventListener> mDragListenerP;
nsCOMPtr<nsIDOMEventListener> mFocusListenerP;
PRBool mIsComposing;
PRInt32 mMaxTextLength;
PRUint32 mWrapColumn;
// friends
friend class nsTextEditRules;
};
#endif //nsTextEditor_h__

File diff suppressed because it is too large Load Diff

View File

@@ -1,338 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsEditorShell_h___
#define nsEditorShell_h___
//#include "nsAppCores.h"
#include "nscore.h"
#include "nsCOMPtr.h"
#include "nsString.h"
#include "nsISupports.h"
#include "nsIEditorShell.h"
#include "nsIDocumentLoaderObserver.h"
#include "nsIDOMSelectionListener.h"
#ifdef NECKO
#include "nsIPrompt.h"
#else
#include "nsINetSupport.h"
#endif
#include "nsIStreamObserver.h"
#include "nsIDOMDocument.h"
#include "nsVoidArray.h"
#include "nsTextServicesCID.h"
#include "nsIEditorSpellCheck.h"
#include "nsISpellChecker.h"
#include "nsInterfaceState.h"
#include "nsIHighLevelHTMLEditor.h"
class nsIBrowserWindow;
class nsIWebShell;
class nsIScriptContext;
class nsIDOMWindow;
class nsIDOMElement;
class nsIDOMNode;
class nsIURI;
class nsIWebShellWindow;
class nsIPresShell;
class nsIOutputStream;
class nsISupportsArray;
#define NS_EDITORSHELL_CID \
{ /* {} */ \
0x9afff72b, 0xca9a, 0x11d2, \
{ 0x96, 0xc9, 0x0, 0x60, 0xb0, 0xfb, 0x99, 0x56 } \
}
////////////////////////////////////////////////////////////////////////////////
// nsEditorShell:
////////////////////////////////////////////////////////////////////////////////
class nsEditorShell : public nsIEditorShell,
public nsIEditorSpellCheck,
public nsIDocumentLoaderObserver
{
public:
nsEditorShell();
virtual ~nsEditorShell();
NS_DECL_ISUPPORTS
// NS_IMETHOD GetScriptObject(nsIScriptContext *aContext, void** aScriptObject);
NS_IMETHOD Init();
// NS_IMETHOD GetId(nsString& aId); // { return nsBaseAppCore::GetId(aId); }
// NS_IMETHOD SetDocumentCharset(const nsString& aCharset); // { return nsBaseAppCore::SetDocumentCharset(aCharset); }
/* nsIEditorShell interface */
NS_IMETHOD GetEditorDocument(nsIDOMDocument * *aEditorDocument);
NS_IMETHOD GetEditorSelection(nsIDOMSelection * *aEditorSelection);
NS_IMETHOD GetDocumentModified(PRBool *aDocumentModified);
NS_IMETHOD GetWrapColumn(PRInt32 *aWrapColumn);
NS_IMETHOD SetWrapColumn(PRInt32 aWrapColumn);
NS_IMETHOD SetEditorType(const PRUnichar *editorType);
NS_IMETHOD SetToolbarWindow(nsIDOMWindow *win);
NS_IMETHOD SetContentWindow(nsIDOMWindow *win);
NS_IMETHOD SetWebShellWindow(nsIDOMWindow *win);
NS_IMETHOD LoadUrl(const PRUnichar *url);
NS_IMETHOD RegisterDocumentStateListener(nsIDocumentStateListener *docListener);
NS_IMETHOD UnregisterDocumentStateListener(nsIDocumentStateListener *docListener);
/* void NewWindow (); */
NS_IMETHOD NewWindow();
NS_IMETHOD Open();
NS_IMETHOD Save();
NS_IMETHOD SaveAs();
NS_IMETHOD CloseWindow();
NS_IMETHOD Print();
NS_IMETHOD Exit();
NS_IMETHOD Undo();
NS_IMETHOD Redo();
NS_IMETHOD Cut();
NS_IMETHOD Copy();
NS_IMETHOD Paste();
NS_IMETHOD PasteAsQuotation();
NS_IMETHOD PasteAsCitedQuotation(const PRUnichar *cite);
NS_IMETHOD InsertAsQuotation(const PRUnichar *quotedText);
NS_IMETHOD InsertAsCitedQuotation(const PRUnichar *quotedText, const PRUnichar *cite);
NS_IMETHOD SelectAll();
NS_IMETHOD DeleteSelection(PRInt32 direction);
/* void Find (); */
NS_IMETHOD Find();
NS_IMETHOD FindNext();
/* void InsertText (in wstring textToInsert); */
NS_IMETHOD InsertText(const PRUnichar *textToInsert);
NS_IMETHOD InsertSource(const PRUnichar *sourceToInsert);
NS_IMETHOD InsertBreak();
NS_IMETHOD InsertList(const PRUnichar *listType);
/* void Indent (in string indent); */
NS_IMETHOD Indent(const PRUnichar *indent);
NS_IMETHOD Align(const PRUnichar *align);
/* nsIDOMElement GetSelectedElement (in wstring tagName); */
NS_IMETHOD GetSelectedElement(const PRUnichar *tagName, nsIDOMElement **_retval);
NS_IMETHOD GetElementOrParentByTagName(const PRUnichar *tagName, nsIDOMNode *aNode, nsIDOMElement **_retval);
NS_IMETHOD CreateElementWithDefaults(const PRUnichar *tagName, nsIDOMElement **_retval);
NS_IMETHOD InsertElement(nsIDOMElement *element, PRBool deleteSelection);
NS_IMETHOD SaveHLineSettings(nsIDOMElement* aElement);
NS_IMETHOD InsertLinkAroundSelection(nsIDOMElement *anchorElement);
NS_IMETHOD SelectElement(nsIDOMElement *element);
NS_IMETHOD SetSelectionAfterElement(nsIDOMElement *element);
/* Table insert and delete methods. Done relative to selected cell or
cell containing the selection anchor */
NS_IMETHOD InsertTableCell(PRInt32 aNumber, PRBool bAfter);
NS_IMETHOD InsertTableRow(PRInt32 aNumber, PRBool bAfter);
NS_IMETHOD InsertTableColumn(PRInt32 aNumber, PRBool bAfter);
NS_IMETHOD DeleteTable();
NS_IMETHOD DeleteTableCell(PRInt32 aNumber);
NS_IMETHOD DeleteTableRow(PRInt32 aNumber);
NS_IMETHOD DeleteTableColumn(PRInt32 aNumber);
NS_IMETHOD JoinTableCells();
/** Make table "rectangular" -- fill in all missing cellmap locations
* If aTable is null, it uses table enclosing the selection anchor
*/
NS_IMETHOD NormalizeTable(nsIDOMElement *aTable);
/* Get the row and col indexes in layout's cellmap */
NS_IMETHOD GetRowIndex(nsIDOMElement *aCell, PRInt32 *_retval);
NS_IMETHOD GetColumnIndex(nsIDOMElement *aCell, PRInt32 *_retval);
/** Get the number of rows in a table from the layout's cellmap */
NS_IMETHOD GetTableRowCount(nsIDOMElement *aTable, PRInt32 *_retval);
/** Get the number of columns in a table from the layout's cellmap */
NS_IMETHOD GetTableColumnCount(nsIDOMElement *aTable, PRInt32 *_retval);
/* Get a cell and associated data from the layout frame based on cell map coordinates (0 index) */
NS_IMETHOD GetCellAt(nsIDOMElement* aTable, PRInt32 aRowIndex, PRInt32 aColIndex, nsIDOMElement **_retval);
/* Note that the return param in the IDL must be the LAST out param here (_retval) */
NS_IMETHOD GetCellDataAt(nsIDOMElement* aTable, PRInt32 aRowIndex, PRInt32 aColIndex,
PRInt32 *aStartRowIndex, PRInt32 *aStartColIndex,
PRInt32 *aRowSpan, PRInt32 *aColSpan, PRBool *aIsSelected, nsIDOMElement **_retval);
/* Get list of embedded objects, e.g. for mail compose */
NS_IMETHOD GetEmbeddedObjects(nsISupportsArray **aObjectArray);
/* void SetParagraphFormat (in string value); */
NS_IMETHOD SetParagraphFormat(PRUnichar *value);
NS_IMETHOD GetParagraphFormat(PRUnichar * *aParagraphFormat);
/* void SetTextProperty (in string prop, in string attr, in string value); */
NS_IMETHOD SetTextProperty(const PRUnichar *prop, const PRUnichar *attr, const PRUnichar *value);
NS_IMETHOD GetTextProperty(const PRUnichar *prop, const PRUnichar *attr, const PRUnichar *value, PRBool *firstHas, PRBool *anyHas, PRBool *allHas);
NS_IMETHOD RemoveTextProperty(const PRUnichar *prop, const PRUnichar *attr);
/* void SetBodyAttribute (in string attr, in string value); */
NS_IMETHOD SetBodyAttribute(const PRUnichar *attr, const PRUnichar *value);
NS_IMETHOD SetBackgroundColor(const PRUnichar *color);
NS_IMETHOD ApplyStyleSheet(const PRUnichar *url);
/* Get the contents, for output or other uses */
NS_IMETHOD GetContentsAs(const PRUnichar *format, PRUint32 flags, PRUnichar **contentsAs);
/* Debugging: dump content tree to stdout */
NS_IMETHOD DumpContentTree();
/* string GetLocalFileURL (in nsIDOMWindow parent, in string filterType); */
NS_IMETHOD GetLocalFileURL(nsIDOMWindow *parent, const PRUnichar *filterType, PRUnichar **_retval);
/* void BeginBatchChanges (); */
NS_IMETHOD BeginBatchChanges();
NS_IMETHOD EndBatchChanges();
/* void RunUnitTests (); */
NS_IMETHOD RunUnitTests();
/* void BeginLogging (); */
NS_IMETHOD StartLogging(nsIFileSpec *logFile);
NS_IMETHOD StopLogging();
/* Spell check interface */
NS_IMETHOD StartSpellChecking(PRUnichar **_retval);
NS_IMETHOD GetNextMisspelledWord(PRUnichar **_retval);
NS_IMETHOD GetSuggestedWord(PRUnichar **_retval);
NS_IMETHOD CheckCurrentWord(const PRUnichar *suggestedWord, PRBool *_retval);
NS_IMETHOD ReplaceWord(const PRUnichar *misspelledWord, const PRUnichar *replaceWord, PRBool allOccurrences);
NS_IMETHOD IgnoreWordAllOccurrences(const PRUnichar *word);
NS_IMETHOD GetPersonalDictionary();
NS_IMETHOD GetPersonalDictionaryWord(PRUnichar **_retval);
NS_IMETHOD AddWordToDictionary(const PRUnichar *word);
NS_IMETHOD RemoveWordFromDictionary(const PRUnichar *word);
NS_IMETHOD CloseSpellChecking();
// nsIDocumentLoaderObserver
NS_IMETHOD OnStartDocumentLoad(nsIDocumentLoader* loader, nsIURI* aURL, const char* aCommand);
#ifndef NECKO
NS_IMETHOD OnEndDocumentLoad(nsIDocumentLoader* loader, nsIURI *aUrl, PRInt32 aStatus,
nsIDocumentLoaderObserver * aObserver);
#else
NS_IMETHOD OnEndDocumentLoad(nsIDocumentLoader* loader, nsIChannel* channel, PRInt32 aStatus,
nsIDocumentLoaderObserver * aObserver);
#endif // NECKO
#ifndef NECKO
NS_IMETHOD OnStartURLLoad(nsIDocumentLoader* loader, nsIURI* aURL, const char* aContentType,
nsIContentViewer* aViewer);
#else
NS_IMETHOD OnStartURLLoad(nsIDocumentLoader* loader, nsIChannel* channel,
nsIContentViewer* aViewer);
#endif // NECKO
#ifndef NECKO
NS_IMETHOD OnProgressURLLoad(nsIDocumentLoader* loader, nsIURI* aURL, PRUint32 aProgress,
PRUint32 aProgressMax);
#else
NS_IMETHOD OnProgressURLLoad(nsIDocumentLoader* loader, nsIChannel* channel, PRUint32 aProgress,
PRUint32 aProgressMax);
#endif // NECKO
#ifndef NECKO
NS_IMETHOD OnStatusURLLoad(nsIDocumentLoader* loader, nsIURI* aURL, nsString& aMsg);
#else
NS_IMETHOD OnStatusURLLoad(nsIDocumentLoader* loader, nsIChannel* channel, nsString& aMsg);
#endif // NECKO
#ifndef NECKO
NS_IMETHOD OnEndURLLoad(nsIDocumentLoader* loader, nsIURI* aURL, PRInt32 aStatus);
#else
NS_IMETHOD OnEndURLLoad(nsIDocumentLoader* loader, nsIChannel* channel, PRInt32 aStatus);
#endif // NECKO
#ifndef NECKO
NS_IMETHOD HandleUnknownContentType(nsIDocumentLoader* loader,
nsIURI *aURL,
const char *aContentType,
const char *aCommand );
#else
NS_IMETHOD HandleUnknownContentType(nsIDocumentLoader* loader,
nsIChannel* channel,
const char *aContentType,
const char *aCommand );
#endif // NECKO
protected:
nsIDOMWindow *mToolbarWindow; // weak reference
nsIDOMWindow *mContentWindow; // weak reference
nsIWebShellWindow *mWebShellWin; // weak reference
nsIWebShell *mWebShell; // weak reference
nsIWebShell *mContentAreaWebShell; // weak reference
typedef enum {
eUninitializedEditorType = 0,
ePlainTextEditorType = 1,
eHTMLTextEditorType = 2
} EEditorType;
nsIPresShell* GetPresShellFor(nsIWebShell* aWebShell);
NS_IMETHOD DoEditorMode(nsIWebShell *aWebShell);
NS_IMETHOD ExecuteScript(nsIScriptContext * aContext, const nsString& aScript);
NS_IMETHOD InstantiateEditor(nsIDOMDocument *aDoc, nsIPresShell *aPresShell);
NS_IMETHOD TransferDocumentStateListeners();
NS_IMETHOD RemoveOneProperty(const nsString& aProp, const nsString& aAttr);
void SetButtonImage(nsIDOMNode * aParentNode, PRInt32 aBtnNum, const nsString &aResName);
NS_IMETHOD CreateWindowWithURL(const char* urlStr);
NS_IMETHOD PrepareDocumentForEditing(nsIURI *aUrl);
NS_IMETHOD DoFind(PRBool aFindNext);
// this returns an AddReffed nsIScriptContext. You must relase it.
nsIScriptContext* GetScriptContext(nsIDOMWindow * aWin);
nsString mEnableScript;
nsString mDisableScript;
EEditorType mEditorType;
nsString mEditorTypeString; // string which describes which editor type will be instantiated (lowercased)
nsCOMPtr<nsIHighLevelHTMLEditor> mEditor; // this can be either an HTML or plain text (or other?) editor
nsCOMPtr<nsISupports> mSearchContext; // context used for search and replace. Owned by the appshell.
nsInterfaceState* mStateMaintainer; // we hold the owning ref to this.
PRInt32 mWrapColumn; // can't actually set this 'til the editor is created, so we may have to hold on to it for a while
nsCOMPtr<nsISpellChecker> mSpellChecker;
nsStringArray mSuggestedWordList;
PRInt32 mSuggestedWordIndex;
NS_IMETHOD DeleteSuggestedWordList();
nsStringArray mDictionaryList;
PRInt32 mDictionaryIndex;
// this is a holding pen for doc state listeners. They will be registered with
// the editor when that gets created.
nsCOMPtr<nsISupportsArray> mDocStateListeners; // contents are nsISupports
};
#endif // nsEditorShell_h___

View File

@@ -1,60 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsEditorAppCoreFactory_h___
#define nsEditorAppCoreFactory_h___
//#include "nscore.h"
//#include "nsString.h"
#include "nsIFactory.h"
#include "nsISupports.h"
////////////////////////////////////////////////////////////////////////////////
// nsEditorAppCoreFactory:
////////////////////////////////////////////////////////////////////////////////
class nsEditorShellFactoryImpl : public nsIFactory
{
public:
nsEditorShellFactoryImpl(const nsCID &aClass, const char* className, const char* progID);
// nsISupports methods
NS_DECL_ISUPPORTS
PRBool CanUnload(void);
NS_IMETHOD CreateInstance(nsISupports *aOuter,
const nsIID& aIID,
void **aResult);
NS_IMETHOD LockFactory(PRBool aLock);
protected:
virtual ~nsEditorShellFactoryImpl();
protected:
nsCID mClassID;
const char* mClassName;
const char* mProgID;
};
nsresult
GetEditorShellFactory(nsIFactory **aFactory, const nsCID &aClass, const char *aClassName, const char *aProgID);
#endif // nsEditorAppCoreFactory_h___

View File

@@ -1,300 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsCOMPtr.h"
#include "nsVoidArray.h"
#include "nsIContentViewer.h"
#include "nsIDocumentViewer.h"
#include "nsIDocument.h"
#include "nsIDOMDocument.h"
#include "nsIDOMXULDocument.h"
#include "nsIDiskDocument.h"
#include "nsIDOMElement.h"
#include "nsIDOMSelection.h"
#include "nsIEditor.h"
#include "nsIHighLevelHTMLEditor.h"
#include "nsInterfaceState.h"
nsInterfaceState::nsInterfaceState()
: mEditor(nsnull)
, mWebShell(nsnull)
, mBoldState(eStateUninitialized)
, mItalicState(eStateUninitialized)
, mUnderlineState(eStateUninitialized)
, mDirtyState(eStateUninitialized)
{
NS_INIT_REFCNT();
}
nsInterfaceState::~nsInterfaceState()
{
}
NS_IMPL_ADDREF(nsInterfaceState);
NS_IMPL_RELEASE(nsInterfaceState);
NS_IMETHODIMP
nsInterfaceState::QueryInterface(const nsIID& aIID, void** aInstancePtr)
{
if (nsnull == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
*aInstancePtr = nsnull;
if (aIID.Equals(nsIDOMSelectionListener::GetIID()))
{
*aInstancePtr = (void*)(nsIDOMSelectionListener*)this;
AddRef();
return NS_OK;
}
if (aIID.Equals(nsIDocumentStateListener::GetIID()))
{
*aInstancePtr = (void*)(nsIDocumentStateListener*)this;
AddRef();
return NS_OK;
}
if (aIID.Equals(nsCOMTypeInfo<nsISupports>::GetIID()))
{
*aInstancePtr = (void*)(nsISupports *)(nsIDOMSelectionListener*)this;
AddRef();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMETHODIMP
nsInterfaceState::Init(nsIHighLevelHTMLEditor* aEditor, nsIWebShell *aChromeWebShell)
{
if (!aEditor)
return NS_ERROR_INVALID_ARG;
if (!aChromeWebShell)
return NS_ERROR_INVALID_ARG;
mEditor = aEditor; // no addreffing here
mWebShell = aChromeWebShell;
return NS_OK;
}
NS_IMETHODIMP
nsInterfaceState::NotifyDocumentCreated()
{
return NS_OK;
}
NS_IMETHODIMP
nsInterfaceState::NotifyDocumentWillBeDestroyed()
{
return NS_OK;
}
NS_IMETHODIMP
nsInterfaceState::NotifyDocumentStateChanged(PRBool aNowDirty)
{
// update document modified. We should have some other notifications for this too.
return UpdateDirtyState(aNowDirty);
}
NS_IMETHODIMP
nsInterfaceState::NotifySelectionChanged()
{
nsresult rv;
// we don't really care if any of these fail.
// update bold
rv = UpdateTextState("b", "Editor:Style:IsBold", "bold", mBoldState);
// update italic
rv = UpdateTextState("i", "Editor:Style:IsItalic", "italic", mItalicState);
// update underline
rv = UpdateTextState("u", "Editor:Style:IsUnderline", "underline", mUnderlineState);
// udpate the font face
rv = UpdateFontFace("Editor:Font:Face", "font", mFontString);
// update the paragraph format popup
rv = UpdateParagraphState("Editor:Paragraph:Format", "format", mParagraphFormat);
// update the list buttons
rv = UpdateListState("Editor:Paragraph:List", "ol");
return NS_OK;
}
nsresult
nsInterfaceState::UpdateParagraphState(const char* observerName, const char* attributeName, nsString& ioParaFormat)
{
nsStringArray tagList;
mEditor->GetParagraphStyle(&tagList);
PRInt32 numTags = tagList.Count();
if (numTags > 0)
{
nsAutoString thisTag;
tagList.StringAt(0, thisTag);
if (thisTag != mParagraphFormat)
{
nsresult rv = SetNodeAttribute(observerName, attributeName, thisTag);
if (NS_FAILED(rv)) return rv;
mParagraphFormat = thisTag;
}
}
return NS_OK;
}
nsresult
nsInterfaceState::UpdateListState(const char* observerName, const char* tagName)
{
nsresult rv = NS_ERROR_NO_INTERFACE;
nsCOMPtr<nsIDOMSelection> domSelection;
{
nsCOMPtr<nsIEditor> editor = do_QueryInterface(mEditor);
editor->GetSelection(getter_AddRefs(domSelection));
}
nsAutoString tagStr(tagName);
nsCOMPtr<nsIDOMNode> domNode;
if (domSelection)
domSelection->GetAnchorNode(getter_AddRefs(domNode));
nsCOMPtr<nsIDOMElement> parentElement;
rv = mEditor->GetElementOrParentByTagName(tagStr, domNode, getter_AddRefs(parentElement));
return rv;
}
nsresult
nsInterfaceState::UpdateFontFace(const char* observerName, const char* attributeName, nsString& ioFontString)
{
nsresult rv;
PRBool firstOfSelectionHasProp = PR_FALSE;
PRBool anyOfSelectionHasProp = PR_FALSE;
PRBool allOfSelectionHasProp = PR_FALSE;
nsCOMPtr<nsIAtom> styleAtom = getter_AddRefs(NS_NewAtom("font"));
nsAutoString faceStr("face");
rv = mEditor->GetInlineProperty(styleAtom, &faceStr, nsnull, firstOfSelectionHasProp, anyOfSelectionHasProp, allOfSelectionHasProp);
return rv;
}
nsresult
nsInterfaceState::UpdateTextState(const char* tagName, const char* observerName, const char* attributeName, PRInt8& ioState)
{
nsresult rv;
PRBool firstOfSelectionHasProp = PR_FALSE;
PRBool anyOfSelectionHasProp = PR_FALSE;
PRBool allOfSelectionHasProp = PR_FALSE;
nsCOMPtr<nsIAtom> styleAtom = getter_AddRefs(NS_NewAtom(tagName));
rv = mEditor->GetInlineProperty(styleAtom, nsnull, nsnull, firstOfSelectionHasProp, anyOfSelectionHasProp, allOfSelectionHasProp);
PRBool &behaviour = allOfSelectionHasProp; // change this to alter the behaviour
if (behaviour != ioState)
{
rv = SetNodeAttribute(observerName, attributeName, behaviour ? "true" : "false");
if (NS_FAILED(rv))
return rv;
ioState = behaviour;
}
return rv;
}
nsresult
nsInterfaceState::UpdateDirtyState(PRBool aNowDirty)
{
if (mDirtyState != aNowDirty)
{
nsresult rv = SetNodeAttribute("Editor:Document:Dirty", "dirty", aNowDirty ? "true" : "false");
if (NS_FAILED(rv)) return rv;
mDirtyState = aNowDirty;
}
return NS_OK;
}
nsresult
nsInterfaceState::SetNodeAttribute(const char* nodeID, const char* attributeName, const nsString& newValue)
{
nsresult rv = NS_OK;
if (!mWebShell)
return NS_ERROR_NOT_INITIALIZED;
nsCOMPtr<nsIContentViewer> cv;
rv = mWebShell->GetContentViewer(getter_AddRefs(cv));
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIDocumentViewer> docViewer = do_QueryInterface(cv, &rv);
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIDocument> chromeDoc;
rv = docViewer->GetDocument(*getter_AddRefs(chromeDoc));
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIDOMXULDocument> xulDoc = do_QueryInterface(chromeDoc, &rv);
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIDOMElement> elem;
rv = xulDoc->GetElementById( nodeID, getter_AddRefs(elem) );
if (NS_FAILED(rv) || !elem) return rv;
return elem->SetAttribute(attributeName, newValue);
}
nsresult NS_NewInterfaceState(nsIHighLevelHTMLEditor* aEditor, nsIWebShell* aWebShell, nsIDOMSelectionListener** aInstancePtrResult)
{
nsInterfaceState* newThang = new nsInterfaceState;
if (!newThang)
return NS_ERROR_OUT_OF_MEMORY;
*aInstancePtrResult = nsnull;
nsresult rv = newThang->Init(aEditor, aWebShell);
if (NS_FAILED(rv))
{
delete newThang;
return rv;
}
return newThang->QueryInterface(nsIDOMSelectionListener::GetIID(), (void **)aInstancePtrResult);
}

View File

@@ -1,90 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsInterfaceState_h__
#define nsInterfaceState_h__
#include "nsIDOMSelectionListener.h"
#include "nsIDocumentStateListener.h"
#include "nsIWebShell.h"
class nsIHighLevelHTMLEditor;
// class responsible for communicating changes in local state back to the UI.
// This is currently somewhat tied to a given XUL UI implementation
class nsInterfaceState : public nsIDOMSelectionListener,
public nsIDocumentStateListener
{
public:
nsInterfaceState();
virtual ~nsInterfaceState();
NS_DECL_ISUPPORTS
NS_IMETHOD Init(nsIHighLevelHTMLEditor* aEditor, nsIWebShell *aChromeWebShell);
// nsIDOMSelectionListener interface
NS_IMETHOD NotifySelectionChanged();
// nsIDocumentStateListener interface
NS_IMETHOD NotifyDocumentCreated();
NS_IMETHOD NotifyDocumentWillBeDestroyed();
NS_IMETHOD NotifyDocumentStateChanged(PRBool aNowDirty);
protected:
enum {
eStateUninitialized = -1,
eStateOff = PR_FALSE,
eStateOn = PR_TRUE
};
nsresult SetNodeAttribute(const char* nodeID, const char* attributeName, const nsString& newValue);
nsresult UpdateParagraphState(const char* observerName, const char* attributeName, nsString& ioParaFormat);
nsresult UpdateListState(const char* observerName, const char* tagName);
nsresult UpdateTextState(const char* tagName, const char* observerName, const char* attributeName, PRInt8& ioState);
nsresult UpdateFontFace(const char* observerName, const char* attributeName, nsString& ioFontString);
nsresult UpdateDirtyState(PRBool aNowDirty);
// this class should not hold references to the editor or editorShell. Doing
// so would result in cirular reference chains.
nsIHighLevelHTMLEditor* mEditor; // the HTML editor
nsIWebShell* mWebShell; // web shell for the chrome area
// current state
PRInt8 mBoldState;
PRInt8 mItalicState;
PRInt8 mUnderlineState;
PRInt8 mDirtyState;
nsString mParagraphFormat;
nsString mFontString;
nsString mListTag; // contains "" for none, "ol" or "ul"
};
extern "C" nsresult NS_NewInterfaceState(nsIHighLevelHTMLEditor* aEditor, nsIWebShell* aWebShell, nsIDOMSelectionListener** aInstancePtrResult);
#endif // nsInterfaceState_h__

View File

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

View File

@@ -1,3 +0,0 @@
# target: EditorGuiManagerDebug.shlb
mozilla/editor/guimgr/src/nsEditGuiManager.cpp
mozilla/editor/guimgr/src/nsGuiManagerFactory.cpp

View File

@@ -1,25 +0,0 @@
#!nmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
DEPTH=..\..
IGNORE_MANIFEST=1
# add "tests" after makefile is finished
DIRS=public src
include <$(DEPTH)\config\rules.mak>

View File

@@ -1,20 +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 local files which get copied to the mozilla:dist:editor directory
#
nsIEditGuiManager.h
nsIGuiManagerFactory.h

View File

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

View File

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

View File

@@ -1,41 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIEditGuiManager_h__
#define nsIEditGuiManager_h__
#include "nsISupports.h"
/*
Gui Manager interface to outside world
*/
#define NS_IEDITGUIMANAGER_IID \
{ /* DD514F80-8BA7-11d2-9821-00805F8AA8B8 */ \
0xdd514f80, 0x8ba7, 0x11d2, \
{ 0x98, 0x21, 0x0, 0x80, 0x5f, 0x8a, 0xa8, 0xb8 } }
/**
* A Gui manager specific interface.
*/
class nsIEditGuiManager : public nsISupports{
public:
};
#endif // nsIEditGuiManager_h__

View File

@@ -1,42 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIGuiManagerFactory_h__
#define nsIGuiManagerFactory_h__
#include "nsISupports.h"
/*
Gui Manager interface to outside world
*/
#define NS_IGUIMANAGERFACTORY_IID \
{ /* 6279AC00-8BD7-11d2-9821-00805F8AA8B8*/ \
0x6279ac00, 0x8bd7, 0x11d2, \
{ 0x98, 0x21, 0x0, 0x80, 0x5f, 0x8a, 0xa8, 0xb8 } }
/**
* A Gui manager specific interface.
*/
class nsIGuiManagerFactory : public nsISupports{
public:
};
#endif // nsIGuiManagerFactory_h__

View File

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

View File

@@ -1,68 +0,0 @@
#!nmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
DEPTH=..\..\..
IGNORE_MANIFEST=1
LIBRARY_NAME=editguimgr
CPPSRCS = \
nsEditGuiManager.cpp \
nsGuiManagerFactory.cpp \
$(NULL)
CPP_OBJS = \
.\$(OBJDIR)\nsEditGuiManager.obj \
.\$(OBJDIR)\nsGuiManagerFactory.obj \
$(NULL)
MODULE=editguimgr
REQUIRES=xpcom base raptor
LINCS=-I$(PUBLIC)\editor \
-I$(PUBLIC)\xpcom \
-I$(PUBLIC)\guimgr \
-I$(PUBLIC)\base \
-I$(PUBLIC)\raptor
MAKE_OBJ_TYPE = DLL
DLLNAME = editguimgr
DLL=.\$(OBJDIR)\$(DLLNAME).dll
LCFLAGS = \
$(LCFLAGS) \
$(DEFINES) \
$(NULL)
# These are the libraries we need to link with to create the dll
LLIBS=$(DIST)\lib\xpcom.lib
!if "$(MOZ_BITS)"=="32" && defined(MOZ_DEBUG) && defined(GLOWCODE)
LLIBS=$(LLIBS) $(GLOWDIR)\glowcode.lib
!endif
include <$(DEPTH)\config\rules.mak>
libs:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\components
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).lib $(DIST)\lib
clobber::
rm -f $(DIST)\bin\components\$(DLLNAME).dll
rm -f $(DIST)\lib\$(DLLNAME).lib

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