22 Commits

Author SHA1 Message Date
waterson%netscape.com
30e53d03e9 Bug 16105. (Bugsplat 366256.) Ensure that nsISupports::Release() calls dtor only once by 'stabilizing' refcnt to a non-zero value before invoking the dtor. See also news://news.mozilla.org/37FD0F3C.3078AE5C%40netscape.com. r=scc,fur
git-svn-id: svn://10.0.0.236/trunk@50416 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 03:05:10 +00:00
kipp%netscape.com
e18af2d0ee Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage
git-svn-id: svn://10.0.0.236/trunk@50239 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:41:19 +00:00
akkana%netscape.com
8fc8b5c72c Set default wrap column to 72 instead of 0
git-svn-id: svn://10.0.0.236/trunk@47396 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 21:32:06 +00:00
akkana%netscape.com
d9a941b563 Fix UMRs
git-svn-id: svn://10.0.0.236/trunk@46829 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 19:12:46 +00:00
akkana%netscape.com
65eef8b0cd Remove some redundant logic
git-svn-id: svn://10.0.0.236/trunk@46199 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-07 19:13:04 +00:00
sfraser%netscape.com
98ceab82e9 No longer need a pres shell for the document encoder; remove it.
git-svn-id: svn://10.0.0.236/trunk@44529 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 21:42:20 +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
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
akkana%netscape.com
cf7c8e5dac Add a working implementation for nsDOMSelection::ContainsNode, and use it in nsDocument::IsInSelection for XIF conversion
git-svn-id: svn://10.0.0.236/trunk@40518 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-21 21:29:29 +00:00
akkana%netscape.com
a878369d02 Restructure the editor output routines to allow passing in
a mime type and a flag argument.  Also fix the following bugs:
9746: get rid of bogus empty <style> in head.
8143: save wrap column in editor shell in case it's set before the
      editor is created.
9470, 9488: allow explicit specification of formatted output.


git-svn-id: svn://10.0.0.236/trunk@39332 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 18:54:29 +00:00
akkana%netscape.com
b704d40ce3 Fix formatted plaintext output -- it wasn't following prettyprint or wrap length
git-svn-id: svn://10.0.0.236/trunk@38461 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-06 23:13:15 +00:00
akkana%netscape.com
e5b828c0ce Fix DoPrettyPrint -- turning off prettyprinting was broken
git-svn-id: svn://10.0.0.236/trunk@38124 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-02 19:41:40 +00:00
akkana%netscape.com
2fb45d996c - New dialog and editor shell API for Insert HTML Source
- Add wrapcolumn setting to document encoders, and use it in the editor
- Fix numbered lists in the html to text sink stream.


git-svn-id: svn://10.0.0.236/trunk@37529 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-30 19:26:08 +00:00
akkana%netscape.com
2300ca567a - Add a prettyprint flag to the html-to-text sink (false by default).
When prettyprinting is on, we will attempt to make the plaintext
  mimic the look of the html; when off (as for copy/paste), we just
  dump the text with no formatting information.


git-svn-id: svn://10.0.0.236/trunk@36966 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-26 00:01:11 +00:00
akkana%netscape.com
2787dec93c 5924: Fix XIF handling of HTML comments, and also pass through the document's original formatting whitespace
git-svn-id: svn://10.0.0.236/trunk@36697 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-24 20:15:52 +00:00
sfraser%netscape.com
ecfb2ed35b Don't release the selection that you didn't addref, mister document encoder.
git-svn-id: svn://10.0.0.236/trunk@35553 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:58:41 +00:00
kostello%netscape.com
e3bdb359ea Fix build bustage: changed include to be the right case
git-svn-id: svn://10.0.0.236/trunk@34525 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:06:35 +00:00
kostello%netscape.com
e69948ccbb Akkana set up a service for encoding a document.
This checkin adds the implementations for encoding
HTML and plain text:

nsTextEncoder::EncodeToString(..)
nsHTMLEncoder::EncodeToStream(..)

Hooked these services into the nsHTMLEditor implemenation

We probably want to update the clipboard code to
use the same pattern as in nsHTMLEditor.cpp


git-svn-id: svn://10.0.0.236/trunk@34518 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 00:35:02 +00:00
akkana%netscape.com
ee09a04094 Add Init method to pass in the document and mime type
git-svn-id: svn://10.0.0.236/trunk@34129 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:01:55 +00:00
akkana%netscape.com
3db80acc76 Split document encoder's Encode() method into a stream method and a string method
git-svn-id: svn://10.0.0.236/trunk@34033 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:32:36 +00:00
akkana%netscape.com
3e01b3f572 attempt to fix win build bustage
git-svn-id: svn://10.0.0.236/trunk@33862 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:45:25 +00:00
akkana%netscape.com
5199693c7c Checking in the non-dangerous parts of the XIF document/html encoder
git-svn-id: svn://10.0.0.236/trunk@33681 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 01:04:08 +00:00