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

28 Коммитов

Автор SHA1 Сообщение Дата
jfrancis%netscape.com c412022f4a revised rules system api to include "handled" parameter and ceased to overload the meaning of the "cancel" parameter; added TypedText() method to editor, editorshell, and logging, so that logging will work properly with typing; coallesce deletions for undo purposes r=buster@netscape.com 1999-10-06 19:34:09 +00:00
jfrancis%netscape.com 9a79219861 revised UNDO; introduced first cut at the "mozdiv" typing rules 1999-09-29 20:08:15 +00:00
jfrancis%netscape.com 9e2b02664f fix for 12675; also added a wrapper for GetNextNode()/GetPriorNode() that checks for containment in the <body> 1999-09-12 01:36:07 +00:00
jfrancis%netscape.com 8915071857 fix for bug 13482 1999-09-09 22:22:14 +00:00
jfrancis%netscape.com 7e088b3bf0 implemented RemoveList(); deletion doesn't scatter so many empty nodes; mailcite rules started; general deletion work (still WIP); several small bugfixes; refactored list item outdenting code 1999-09-06 19:51:59 +00:00
jfrancis%netscape.com f574b5218f more deletion work... 1999-09-01 21:23:47 +00:00
jfrancis%netscape.com 34f6986b50 refactoring text insertion code; indent/outdent now work with lists and list items. 1999-08-24 08:56:51 +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 c8ee477692 added helper function IsEmptyBlock() 1999-08-09 21:49:25 +00:00
buster%netscape.com 5b65a4e45f 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.
1999-08-09 18:39:49 +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
akkana%netscape.com c8b9982001 Oops, I misunderstood tor's fix for the sunos bustage 1999-07-01 23:41:29 +00:00
buster%netscape.com 7bc9bfc2b0 0. possible fix for Sun build bustage.
1. IsEditable is much less hacky.  It basically says:
  1. if the node is a special bogus text node, it's not editable
  2. if the node is a text node with only newlines, then it's not editable
  3. if the node has no frame associated with it, then it is not editable
  4. otherwise, it is editable.
As part of this, I had to make IsEditable non-static.  This had some cascading effects on static methods that called
IsEditable, which likewise had to be made non-static.

2. SetTextProperties now works when the endpoints are leaf nodes (like images), not just text.  Charlie, you should
put this through some stress cases.
1999-07-01 18:42:28 +00:00
jfrancis%netscape.com 7904f484a3 some cleanup and also selection enforcement for plaintext documents: selection is pinned to within the PRE tag on any edit action 1999-07-01 13:42:03 +00:00
jfrancis%netscape.com 0db5edf4c8 improvement of editing rules for insert list, indent, outdent, and change alignment 1999-06-25 09:33:02 +00:00
jfrancis%netscape.com 41074bcccd editor rules framework for {make list, indent, outdent, change alignment} 1999-06-16 05:02:43 +00:00
buster%netscape.com 6a3429ddc2 * Added nsAutoSelectionReset, a tiny class that resets the selection to what it was before a block transformation.
* Added some code to restore selection after RemoveTextProperty.
* Made a tiny change to the way the editor holds onto the transaction manager, so client (like the ender text control) can
turn undo on and off effectively
* Fixed a bug in IsNodeInline that was causing GetBlockParent to return the wrong parent node (and who knows what
other mischief) where atom compares were being done on strings of different case, for <B>, "b" vs. "B".  The DOM
method nsIDOMElement::GetTagName forced the returned tag name to upper case.  I don't know how long that has
been true, but I assume it's a fairly recent change (or something on our side related to it changed recently) or this method
never would have worked.  I also found a few cases of nsString::Equals that I changed to EqualsIgnoreCase
* Made some general improvements to the interaction between editors and rules, so that the aCancel out param is always
intialized, and all rules with Will... are matched with a Did... call.  Added Will/DidSetTextProperty() and
Will/DidRemoveTextProperty().  This helps enable plain text mode.  Added a skeleton for max length support in text editor.
* fixed some warnings.
1999-06-08 06:04:51 +00:00
jfrancis%netscape.com 1522156259 groundwork for block transformation functionality 1999-06-03 06:01:08 +00:00
jfrancis%netscape.com 38b9a7c369 cleanup util function duplication 1999-05-28 21:17:30 +00:00
akkana%netscape.com 1f3151a20d - Rename iDirection enum to ECollapsedSelectionAction
- Initial implementation of Insert HTML
1999-05-05 23:27:17 +00:00
jfrancis%netscape.com 6035561262 revamped join on deletion 1999-05-04 08:03:07 +00:00
jfrancis%netscape.com dfd141ac76 more html typing rules implementation 1999-04-26 14:08:52 +00:00
jfrancis%netscape.com 4eb392665e more typing rules work - space and tab occassionally do the right thing now 1999-04-21 14:49:58 +00:00
jfrancis%netscape.com e816efb197 merging in rules work with Simon's selection changes 1999-04-13 13:35:08 +00:00
jfrancis%netscape.com 88527c7d24 attempting to fix unix build 1999-04-12 14:10:24 +00:00
jfrancis%netscape.com 0b0035a95c checkpointing html typing rules 1999-04-12 12:01:32 +00:00
jfrancis%netscape.com fffd5158c3 redoing rules architecture 1999-04-05 17:21:59 +00:00
jfrancis%netscape.com c7f3ede1e6 First Checked In. 1999-03-29 06:21:01 +00:00