Commit Graph

68 Commits

Author SHA1 Message Date
jfrancis%netscape.com
a7f35e4051 fix for 13677 1999-09-17 23:15:12 +00:00
buster%netscape.com
9f2b4b0ef1 added GetAbsoluteOffsetsForPoints, so we can get the length of a document without
playing with it's selection.  Much faster, and doesn't mess with the display at all.
1999-09-13 20:44:38 +00:00
jfrancis%netscape.com
49d7f73dbc implementing EditorKeyPress and handling tabs in tables and shift-return meaning <br> 1999-09-13 09:37:51 +00:00
sfraser%netscape.com
58b73017cb Add DocumentIsEmpty to EditorShell.idl and nsIEditor, and modify length and content getters to do the right thing with an empty document (which contains the bogus text node). 1999-09-08 23:32:04 +00:00
jfrancis%netscape.com
03c6026eb0 implementing RemoveList() - ie, list button now works as a toggle 1999-09-06 19:47:25 +00:00
cmanske%netscape.com
9c2fab8c18 Removed string bundle code from nsEditor into EditorShell and added access for JavaScript. Moved most of Save document code into EditorShell and added filetype filters to save dialog. Placed Advanced Edit functionality in an overly file. Removed redundant entity strings, that are now in overlays, from DTD files. 1999-08-28 02:40:18 +00:00
cmanske%netscape.com
ce2856a9e0 Fixed bug 12126. Removed pref code from nsHTMLEditor - do HLine pref stuff in JS instead. 1999-08-27 04:12:47 +00:00
buster%netscape.com
09e028ee79 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.
1999-08-23 06:42:04 +00:00
akkana%netscape.com
de0fab64a7 Handle plaintext wrapping in style, rather than a pre tag in the body. Also fix a couple of warnings. 1999-08-20 22:39:48 +00:00
akkana%netscape.com
3ced2aad8e 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).
1999-08-19 22:11:58 +00:00
buster%netscape.com
3bc5912284 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.
1999-08-19 13:30:48 +00:00
jfrancis%netscape.com
a099b1e5b6 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. 1999-08-18 08:13:06 +00:00
jfrancis%netscape.com
250a479977 added InsertHeader() 1999-08-09 21:50:28 +00:00
sfraser%netscape.com
d73dfd8ddb Landing editor API changes. Removed nsITextEditor and nsTextEditor, split interfaces into more, non-overlapping interfaces, and other general cleanup. 1999-08-09 01:37:50 +00:00
tague%netscape.com
58316bd322 Added support for replies from private DOM text events. See bug #4826 1999-08-06 02:32:13 +00:00
cmanske%netscape.com
33420b646e Further table editing work 1999-08-05 20:04:58 +00:00
cmanske%netscape.com
14bb564bf2 Table editing implementation 1999-08-04 02:06:03 +00:00
cmanske%netscape.com
0fef13e963 Fixed lots of XUL (adjust for new titledbutton changes and XPMenus). Added initial table properties support and unit test for nsITableLayout methods. Removed unused InsertLink and InsertImage methods. Added lots of comments for interface methods. 1999-08-01 22:37:58 +00:00
mcafee%netscape.com
a7f6ec1243 cmanske forgot to remove one reference to a removed header file, fixing linux bustage. 1999-07-28 00:33:50 +00:00
cmanske%netscape.com
d54ddc3632 Initial table editing stuff. Removed table editing transactions (use basic node txns). Fixed TrimString JS methods. Fixed setting border in insert table. 1999-07-27 23:59:22 +00:00
cmanske%netscape.com
556c28ed92 Fixed GetSelectedElement to detect caret or selection inside link text. Link dialog will select entire link. Added GetParentLinkElement. 1999-07-25 01:24:12 +00:00
cmanske%netscape.com
16ff2d941c Fixed bugs relating to insert element 1999-07-23 00:52:17 +00:00
jfrancis%netscape.com
2ec53e1f90 assorted work to expose nav html dtd to the editor 1999-07-19 22:49:21 +00:00
akkana%netscape.com
1f9dc3d358 Add GetEmbeddedObjects API to editor shell 1999-07-19 22:36:12 +00:00
akkana%netscape.com
6d4424c765 Add GetEmbeddedObjects API for mail/news 1999-07-19 19:06:39 +00:00
akkana%netscape.com
a3fb11b98f 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.
1999-07-14 18:54:29 +00:00
cmanske%netscape.com
f85acd993e Generic message dialog, fix insert element-related bugs, initial personal dictionary dialog, other editor bugs 1999-07-14 15:24:33 +00:00
cmanske%netscape.com
9761f8e938 Implemented insert named anchor and table. Fixed dialogs to utilize autosizing. Popups are screwed up because of stupid box layout behavior 1999-07-04 23:01:10 +00:00
kin%netscape.com
3b5b4d3b48 Added ApplyStyleSheet() method to the various editor interfaces. 1999-07-01 19:32:35 +00:00
tague%netscape.com
353d857fed Added clause and selection support for Input Methods. Fixes bug #8639, #8459, #6989, #7824 1999-06-29 20:31:22 +00:00
sfraser%netscape.com
c50cff4c35 Add new aSelectionOnly param to Output routines 1999-06-29 20:14:24 +00:00
kin%netscape.com
e3bf912523 * Added StartLogging() and StopLogging() methods to nsIEditor,
nsIHTMLEditor, nsITextEditor, and nsIEditorShell and enabled
  the "Start Log" and "End Log" menu items in the editor test bed.

* Modified makefiles for Unix and Win32 to turn on  Editor API Logging.

* Added action argument to the DeleteSelection() method in nsIEditorShell.

* Modified nsJSTxnLog to use nsJSEditorLog when writing it's output.
1999-06-14 20:02:46 +00:00
cmanske%netscape.com
0e98fa1f0d Horizontal Line dialog and setting/getting hline settings from prefs implemented. Masked effect of bug 8058 by removing popupanchor attribute. 1999-06-12 21:22:12 +00:00
sfraser%netscape.com
4adc73a847 GetLocalFileURL has moved to the editorShell 1999-06-11 19:03:05 +00:00
akkana%netscape.com
87633c23c7 Implement InsertHTML.
Also, some minor fixes, like warning removal and addition of error checking
in files which needed it.
1999-06-10 21:31:42 +00:00
akkana%netscape.com
f08ae8af33 Get rid of overloaded class names, to eliminate warnings 1999-06-07 21:12:01 +00:00
akkana%netscape.com
ee4632cddb Add paste/insert as quotation into editor app cores to be accessible from JS. 1999-05-28 00:46:34 +00:00
sfraser%netscape.com
2239a8a64e Add unit test call to nsIEditor, and implement it in nsText- and nsHTMLEditors. 1999-05-27 04:10:04 +00:00
akkana%netscape.com
d2c4947c26 Insert / Paste as Quotation. 1999-05-27 00:08:15 +00:00
cmanske%netscape.com
a152976669 Continued UI work: Spell checker fixes, toolbar improvements, popup menus implemented for paragraph style, font face and color, setting font color test UI, etc. 1999-05-26 21:40:51 +00:00
jfrancis%netscape.com
502531964b const crazy - bet you can't eat jsut one! 1999-05-17 14:14:36 +00:00
jfrancis%netscape.com
cdffd008a0 fixing bustage 1999-05-17 13:10:29 +00:00
jfrancis%netscape.com
aaecdca8fb insert list and indent work 1999-05-17 12:22:31 +00:00
cmanske%netscape.com
e508bcd84f Implemented InsertLinkAroundSelection 1999-05-07 22:26:23 +00:00
sfraser%netscape.com
d77c6bd688 Implement Save, Save As in editor. 1999-05-07 05:02:35 +00:00
cmanske%netscape.com
5f7dc926d8 Added UI for paragraph style and preliminary versions of image and link dialogs 1999-05-05 23:29:18 +00:00
akkana%netscape.com
1f3151a20d - Rename iDirection enum to ECollapsedSelectionAction
- Initial implementation of Insert HTML
1999-05-05 23:27:17 +00:00
buster%netscape.com
99a96a39ec 1. block transformation infrastructure is now in place. We can go ahead and implement interesting
features like set paragraph style, set list type, indent, etc.  I'm sure there's holes in my
implementation that these high level features will make obvious.

2. I've factored a lot of utility methods from several modules into nsEditor as public static methods.
This makes them easily accessable to all, and will help Joe and I remove redundant methods.

3. I changed the HTML tags to lower case, and made all string compares case-insensitive.  No, this
isn't quite the right thing to do, but we don't have atoms from layout yet.  The Right Thing is for us
to reuse those atoms.
1999-05-05 04:05:19 +00:00
tague%netscape.com
83e78f89e5 Fixed bug #5527 (Editor is not able to accumulate successive Japanese input) 1999-05-03 22:57:48 +00:00
kostello%netscape.com
860a8b9cfa Changed:
nsI*Editor::OutputText(nsString& aOutputString);
nsI*Editor::OutputHTML(nsString& aOutputString);

These methods always returns back a Unicode version of whatever is in the content model. It is the
responsibility of the caller then to call whatever converter is required to convert to the appropriate
charset.

Added:

nsI*Editor::OutputText(nsIOutputStream* aOutputStream, nsString* aCharsetOverride = nsnull)
nsI*Editor::OutputHTML(nsIOutputStream* aOutputStream, nsString* aCharsetOverride = nsnull)

These methods output the the current content model to aOutputStream. The document is encoded using the
document defined charset or if the user passes in a non-null value for aCharsetOverride then this
encoding overrides the encoding used by the document.
1999-05-03 18:48:39 +00:00