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

165 Коммитов

Автор SHA1 Сообщение Дата
braddr%puremagic.com 341c8b0054 Ooops.. tree closed, better back these out for now. Sorry. 1999-10-27 21:01:37 +00:00
braddr%puremagic.com 55276cc3c4 Move all nsIEnumerator usage over to NS_ENUMERATOR_FALSE from NS_COMFALSE
in anticipation of nixing NS_COMFALSE in the near future.
r=scc (please contact him should there be any build issues)
1999-10-27 20:24:21 +00:00
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
akkana%netscape.com fb6ea2d4ad 14859: make rules code smarter about identifying blockquote type=cite 1999-09-29 20:20:31 +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 54d647b458 fixing a heap-o-undo problems and some mBogusNode problems 1999-09-20 01:31:44 +00:00
jfrancis%netscape.com aa65cecc3d fix bug 13469 1999-09-19 10:31:31 +00:00
jfrancis%netscape.com 7ae57f5b07 fix for bug 13500 - typo that broke deletion 1999-09-15 05:43:25 +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 e00747a633 cleaning up warnings (bug 13469) 1999-09-11 00:20:59 +00:00
jfrancis%netscape.com 325a680de6 bug fix: paragraphs now merge properly. 1999-09-10 23:32:28 +00:00
jfrancis%netscape.com 8915071857 fix for bug 13482 1999-09-09 22:22:14 +00:00
jfrancis%netscape.com 986f1f5a40 making special mail-compose editing rules accessible to mail 1999-09-08 06:26:53 +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
sspitzer%netscape.com b494799f9e add newline to end of file to please certain UNIX compilers. 1999-09-03 10:43:00 +00:00
jfrancis%netscape.com f574b5218f more deletion work... 1999-09-01 21:23:47 +00:00
jfrancis%netscape.com 743156ab31 checkpointing some deletion work 1999-08-31 13:55:18 +00:00
mscott%netscape.com 351282c55c Fix pedantic build breakage for unix. 1999-08-24 18:38:21 +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 97693b4584 let VC 5 live! 1999-08-10 22:02:27 +00:00
jfrancis%netscape.com e94e14d8d1 more block operation improvements to "make list" 1999-08-10 21:44:10 +00:00
jfrancis%netscape.com b4b31aaa18 begginning of block operations honoring breaks... 1999-08-09 23:39:48 +00:00
jfrancis%netscape.com 4c2532dd8b fixing bug 9366 1999-08-09 22:51:40 +00:00
jfrancis%netscape.com 2c1631036f smarts for creating empty lists in the right places; prelim work for WillMakeHeader(); prelim work for indenting lists; helper routine IsEmptyBlock(); 1999-08-09 21:50:02 +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
kin%netscape.com 375eb2de71 Fixes for bug #10231 (crash making list after select all)
and bug #10815 (Crash deleting selected text and table)

mozilla/editor/base/nsHTMLEditRules.cpp
  - Added check, in WillDeleteSelection(),  to see if
    endpoints of the range are in the body before calling
    GetBlockNodeParent(). (Bug #10231)
  - Modified GetPromotedPoint() to check for NULL in the
    case where aWhere == kEnd and GetChildAt() returns NULL.
    (Bug #10815)

mozilla/layout/base/src/nsGenericElement.cpp
  - Modified RangeAdd() so that it doesn't add
    a range if it's already in the list.  (Bug #10231)

mozilla/layout/base/src/nsRangeList.cpp
  - Modified GetPrimaryFrameForFocusNode() to
    initialize aReturnFrame and to return a failure
    if ChildAt() returns NULL. (Bug #10231)
1999-08-04 18:36:19 +00:00
rhp%netscape.com 5fc2eec4f2 Fix for stopper bug #10504 1999-07-26 18:05:41 +00:00
jfrancis%netscape.com 2ec53e1f90 assorted work to expose nav html dtd to the editor 1999-07-19 22:49:21 +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
buster%netscape.com dca6c49edd replaced IID's with CID's where they were appropriate, and removed lots of
NS_DEFINE_IID macros in favor of GetCID() wherever I could.
plus some minor bug fixes.
1999-07-15 19:13:46 +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
jfrancis%netscape.com b570308383 fix for bug 5903 1999-07-03 13:27:13 +00:00
jfrancis%netscape.com 5020b85ebb making the plain text selection pinning savvy to the other flavors of text editors, the ones that DONT have <pre> tags wrapping all the text 1999-07-02 07:53:08 +00:00
jfrancis%netscape.com 1338afd680 bitten by lack of const enforcement in mac coimpiler once again. 1999-07-02 05:13:21 +00:00
jfrancis%netscape.com dad328a513 making rules savvy to multi-char insertions. this means that pasting in text with embedded tabs, returns, spaces, & nbsp's now get the full rules treatment. 1999-07-02 04:46:45 +00:00
akkana%netscape.com c8b9982001 Oops, I misunderstood tor's fix for the sunos bustage 1999-07-01 23:41:29 +00:00
akkana%netscape.com 7ef7ab7f49 Fix gcc 2.7.2.3 build -- thanks to tor@boojum.cs.brown.edu (Tim Rowley) for the fix 1999-07-01 23:31:03 +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
akkana%netscape.com 552ab3e5ca Fix a warning 1999-06-28 21:26:31 +00:00
jfrancis%netscape.com 7e6d227982 these are not the droids you are looking for 1999-06-25 10:36:54 +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 78b68b1878 bug 8300; rvd: floppy moose; aprvd: chofmann 1999-06-16 23:40:16 +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
jfrancis%netscape.com f60a7f5872 fix for bug 5979 1999-05-26 22:44:08 +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
sfraser%netscape.com 3b2d7aef50 Memory leak fixes for bug 5870. r mjudge, a chofmann. 1999-05-03 22:26:07 +00:00
jfrancis%netscape.com 724e8503af fix for bug 5832; bad constant for nbsp value. rvd - floppy moose; appv - chofmann 1999-05-03 22:16:02 +00:00
jfrancis%netscape.com 8bd92b238d fix for bug 5782 - check for null return when getting prev/next node is deletion rules; rvd floppy moose, appr chofmann 1999-05-01 19:37:50 +00:00
pinkerton%netscape.com f029f1c432 fix build bustage comparing raw pointer to nsCOMPtr. 1999-04-29 01:01:04 +00:00
buster%netscape.com 457a1555e7 approved bug fix for infinite loop when typing a space in a document with only a single text node 1999-04-29 00:14:05 +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
sfraser%netscape.com f0acea2009 Updated to conform to new IDL-ized selection interfaces. 1999-04-13 01:33:32 +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