Commit Graph
29 Commits
Author SHA1 Message Date
akkana@netscape.com 28fbe58c93 Fix sink stream so that it works when parsing from html as well as from XIF 1999-09-20 21:05:47 +00:00
mcafee@netscape.com 60f56fb9fe Tweaking pinkerton's switch to nsAutoString to avoid crashing! (13598) 1999-09-11 07:56:08 +00:00
pinkerton@netscape.com 401099f2e0 getting rid of new/delete pairs for string buffers. using nsAutoSTring and CBufDescriptor where appropriate. 1999-09-10 23:19:44 +00:00
akkana@netscape.com 6a894140b5 12018: add a linebreak for br tags even in unformatted mode 1999-09-01 23:37:36 +00:00
akkana@netscape.com c359aafe41 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.
1999-08-24 18:30:19 +00:00
nisheeth@netscape.com fd67f88e34 Adding a new parameter, aMode, to nsIContentSink::AddDocTypeDecl. 1999-07-28 06:56:05 +00:00
nisheeth@netscape.com d162e65cd8 - Move AddDocTypeDecl method from nsIXMLContentSink to nsIContentSink.
- Fix bug 8607 by passing the XML decl and the doctype decl from the expat tokenizer to the XML DTD.
1999-07-26 05:40:25 +00:00
scc@netscape.com e2ea20873d explicitly define kCharsetConversionManagerCID only in files that need it ... move to canonical scheme for defining and using IIDs and CIDs 1999-07-22 05:25:17 +00:00
peterl@netscape.com afeb6760cf changed to preprocessor for code generation for tag & entity tables
cleanup tag and entity lookup apis
1999-07-18 00:12:32 +00:00
rickg@netscape.com a71f2cb74d fix bugs 8523, 9127, parially fix 8803 1999-07-07 07:40:35 +00:00
akkana@netscape.com ea44445873 Fix formatted plaintext output -- it wasn't following prettyprint or wrap length 1999-07-06 23:13:15 +00:00
akkana@netscape.com c88a4fee5a - 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.
1999-06-30 19:26:08 +00:00
akkana@netscape.com 5fa969968e - 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.
1999-06-26 00:01:11 +00:00
akkana@netscape.com c918bbd60d Change unicode assertion to a warning 1999-06-22 21:45:42 +00:00
rickg@netscape.com ee6a76ab97 oops -- I didn't mean to update these -- backing out 1999-05-29 03:04:16 +00:00
rickg@netscape.com 9d240d8863 fixed nsString2 usage error introduced by observerlist change 1999-05-29 03:01:22 +00:00
rickg@netscape.com fc107fc38c fixed bug 6597 and added memory allocation conditioning 1999-05-19 05:01:46 +00:00
akkana@netscape.com fb039b7769 5663: Fix copy/paste of entities.
mUnicodeEncoder isn't getting initialized properly, at least on Linux.
Also fixed some compiler warnings while I'm here.
1999-05-14 19:47:10 +00:00
kostello@netscape.com 84242d2428 Small update to fix for bug #5525. Approval for checkin: chofmann. 1999-05-03 20:16:14 +00:00
kostello@netscape.com 4d87205652 Added support to encode the document as either a nsString or an nsIOutputStream.
In the case of the stream, the document is encoded using the document defined charset
or the user may override the charset.

Added constructors for creating a sink using a nsIOutputStream or an nsString.

Removed all HTML and TEXT encoding which relied on references to ostream. Using John McMullen's
platform independent streaming code in its place. :)
1999-05-03 18:41:23 +00:00
rickg@netscape.com 101270bec1 fixed ABW in nsTagStack and updated to string2 API 1999-05-02 00:37:25 +00:00
kostello@netscape.com 5546a883ef Added support to use the specified document charset when encoding a
document to HTML to Text. The charset information is first encoded
in XIF and then that information is used when interpretting the unicode
for output.

Added support to output character entity information which should address
bug 4709
1999-04-26 06:16:49 +00:00
rickg@netscape.com 93b02e8dd9 sync with new nsString2 API 1999-04-21 04:02:14 +00:00
harishd@netscape.com 251ceea27a Added Methods BeginContext() and EndContext()
to handle illegal-contents in tables
1999-04-15 20:08:04 +00:00
rods@netscape.com aa0efc3b45 Added nsString, so the conversion goes to a string and to a stream
Eventually, we will want it to just go to a string.
1999-03-19 15:53:07 +00:00
kostello@netscape.com 811ff5d060 Added nsIHTMLContentSink::DoFragment() method.
Added support for conversion of HTML entities in output
1999-03-15 05:08:36 +00:00
kostello@netscape.com 9cc05e9057 Fixed bug 3651: for OutputText, we were not outputting
linebreaks whenever we encounter <BR> in the content
model.
1999-03-12 06:51:34 +00:00
nisheeth@netscape.com 569ab02e20 Changed nsIContentSink->NotifyError() to accept an nsParserError argument. This change is needed for propagating errors from the new expat parser. 1999-03-06 02:09:46 +00:00
kostello@netscape.com 4012fe7c40 Added new sink that outputs a Text stream instead of
an HTML stream.
1999-03-04 21:52:57 +00:00