Граф коммитов

84 Коммитов

Автор SHA1 Сообщение Дата
akkana%netscape.com ff7a19a5bd 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
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
brade%netscape.com b2c4160c8a keyhandling for keybindings moved to keypress (was keydown) 1999-08-20 13:14:03 +00:00
pinkerton%netscape.com e6c785c88e add DragGesture to drag listener. 1999-08-19 19:48:33 +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
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
buster%netscape.com 554895cb53 fixed disabled and readonly handling
added redraw hack to blur (in addition to focus, already done)
1999-08-07 05:28:57 +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
buster%netscape.com 414c95e223 added the same hack for blur as for focus, to force a repaint
handle TAB in keyDown, not keyPress, so we can surpress focus manager
using TAB to swap focus from the editor.
1999-08-03 06:07:29 +00:00
buster%netscape.com 1941ea5807 selection and caret are not displayed at Init time any more. This is done on Focus now.
checking in temp hack to repaint on focus
1999-08-02 13:53:23 +00:00
joki%netscape.com d752334449 Updating DOM event apis and changing behavior to properly respect capturing, bubbling, and cancellation methods. 1999-07-19 19:54:34 +00:00
mjudge%netscape.com c0b1525970 massive checkin for selection. adjusting nsIDOMSelection api and nsIFrameSelection. many "small" changes. this is not as bad as it looks. layout will not be affected other than "getter" calls for selection. and all consumers of selection should be in good shape. 1999-07-18 02:27:19 +00:00
mjudge%netscape.com 21700e5d88 checkin for carpool for multiple seleciton/ime selection and api changes 1999-07-15 18:19:20 +00:00
sfraser%netscape.com c9dbb47be6 Don't handle a key event as a keypress if the meta key is down. 1999-07-14 22:29:06 +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
buster%netscape.com 693e31fcd2 workaround for blocker bug 8123. approved by chofmann. 1999-07-08 19:52:44 +00:00
buster%netscape.com 58aa59e827 minor fix for returning when a key is handled or not. This is a tiny part
of the fix for 8123, joki is working on the rest with tague and rods.
1999-07-06 23:31:08 +00:00
akkana%netscape.com 8afa44f109 Oops, making wrapcolumn unsigned was a mistake. (Thanks to slamm's
warnings page for showing me that!)  Change it back to signed.
1999-07-01 19:01:04 +00:00
akkana%netscape.com 66024861e2 - 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
scc%netscape.com f79508bc68 |nsISupports::GetIID()| --> |nsCOMTypeInfo<nsISupports>::GetIID()| 1999-06-29 21:01:31 +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 90131e6812 Call the Output routines with a new param for selection only. 1999-06-29 20:14:58 +00:00
cmanske%netscape.com aaa2213d4c Fixed GetBodyElement. Changed editor test doc to not use CSS for background. Initial code to edit element properties when double-clicking on element. 1999-06-24 20:59:45 +00:00
mcafee%netscape.com 71f3ec8513 Removing NEW_DRAG_AND_DROP ifdef, this is on by default now. 1999-06-16 04:52:05 +00:00
mcafee%netscape.com 31010fa35d Minor reformatting. 1999-06-15 04:07:36 +00:00
tague%netscape.com 0ef188f82e backed out last change. 1999-06-15 01:24:23 +00:00
tague%netscape.com 81b161e737 Modified logic so that shortcut keys are actually returns an NS_OK when the keydown handler handels them. 1999-06-15 01:02:14 +00:00
buster%netscape.com e8cc730b08 fixed keydown event processing to return NS_OK when a key is not handled. 1999-06-14 23:25:48 +00:00
tague%netscape.com 8688949472 Turned on bug fix for #6896: Windows editorinterprets the period key as a forward delete. 1999-06-13 21:13:12 +00:00
tague%netscape.com e885d271de More work on bug #6896 1999-06-11 20:32:09 +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 a90ad21220 Add alt-X and alt-shift-x for debug output html and text 1999-06-09 19:12:28 +00:00
tague%netscape.com d0540fc75b Conditional fix for #7629. Only builds with a conditional set in my environment 1999-06-09 03:17:56 +00:00
akkana%netscape.com 9b33e3e633 5380: middle-mouse paste to correct position in the editor 1999-06-08 21:51:40 +00:00
pinkerton%netscape.com 1e3b08c682 changes so that transferable no longer takes ownership of dataflavor string, but correctly copies it. fix some memory leaks as well. 1999-06-07 20:43:23 +00:00
tague%netscape.com 6740fde5bb Fix for #6896: Windows editor interprests the '.' key as a forward delete. Not building by default -- will switch over once tested on Mac and Unix. 1999-06-04 05:14:01 +00:00
buster%netscape.com 6b09e8c917 Preparation for ender-based text control
* added focus listener.  Doesn't do much yet, but when focus notifications start appearing, we'll be ready for them.  The code is in
place to hide selection when we lose focus and paint selection when we get focus.  That's probably not quite right, but it's a start.
We will need to be able to determine the distinction between losing focus to another control within our app, and losing focus to
another app.
* added support for disabled and readonly states in the editor.  This is accomplished by having flags set by the client, and letting the
rules system deal with those flags.  The flags I added are:
     TEXT_EDITOR_FLAG_PLAINTEXT   0x01   // only plain text editing is allowed
     TEXT_EDITOR_FLAG_SINGLELINE  0x02   // enter key and CR-LF handled specially
     TEXT_EDITOR_FLAG_PASSWORD    0x04   // text is not entered into content, only a representative character
     TEXT_EDITOR_FLAG_READONLY    0x08   // editing events are disabled.  Editor may still accept focus.
     TEXT_EDITOR_FLAG_DISALBED    0x10   // all events are disabled (like scrolling).  Editor will not accept focus.
* added WillInsertBreak/DidInsertBreak into text rules, so flags could be checked.  This gets us readonly, disabled, and single line
behavior.
* cleaned up the code that allocates, registers, and destroys event listeners.  Thanks to Kin and Simon for cleaning up the
ownership model on the listeners, it was a big help.
* added support for a max text length.  You can now tell the text editor, be no bigger than n characters.
1999-05-28 21:24:18 +00:00
sfraser%netscape.com b7ca9366ce Fix the event listeners to no longer hold owning pointer to the editor. 1999-05-28 00:19:51 +00:00
sfraser%netscape.com 220d4a3520 Remove the old key code function, and call the new unit test routine 1999-05-27 04:08:59 +00:00
akkana%netscape.com d2c4947c26 Insert / Paste as Quotation. 1999-05-27 00:08:15 +00:00
pinkerton%netscape.com be6f4e4d75 new multiple-item drag and drop apis. 1999-05-26 21:08:14 +00:00
joki%netscape.com 71e96012a3 Breaking nsIDOMEvent out into nsIDOMEvent and nsIDOMUIEvent. 1999-05-18 23:51:04 +00:00
pinkerton%netscape.com 3232f45efc fix a d&d bug introduced in the transferable interface merging and add a SetCanDrop at the point of the drop for MacOS. 1999-05-14 18:44:28 +00:00
akkana%netscape.com e9c48ece9f Implementations for new fcn Get/SetBodyWrapWidth 1999-05-13 22:11:05 +00:00
rods%netscape.com e4ee930f8c removed reference to nsIDataFlavor and merged nsITransferable and nsIGenericTransferable 1999-05-13 21:53:57 +00:00
rods%netscape.com f49013bbe7 Changed code to use the new DragSession interface 1999-05-07 19:42:27 +00:00
akkana%netscape.com dea0153e34 Middle-mouse paste; also, fix a bunch of warnings 1999-05-07 19:22:38 +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