60 Commits

Author SHA1 Message Date
jfrancis%netscape.com
381ca4cab7 fixing a heap-o-undo problems and some mBogusNode problems
git-svn-id: svn://10.0.0.236/trunk@48297 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 01:31:44 +00:00
jfrancis%netscape.com
0db3f03a4f fix bug 13469
git-svn-id: svn://10.0.0.236/trunk@48255 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 10:31:31 +00:00
jfrancis%netscape.com
572f6aa05f fix for bug 13500 - typo that broke deletion
git-svn-id: svn://10.0.0.236/trunk@47541 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 05:43:25 +00:00
jfrancis%netscape.com
23d9478cc5 fix for 12675; also added a wrapper for GetNextNode()/GetPriorNode() that checks for containment in the <body>
git-svn-id: svn://10.0.0.236/trunk@47001 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-12 01:36:07 +00:00
jfrancis%netscape.com
dc37b61445 cleaning up warnings (bug 13469)
git-svn-id: svn://10.0.0.236/trunk@46900 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 00:20:59 +00:00
jfrancis%netscape.com
045ecf14d5 bug fix: paragraphs now merge properly.
git-svn-id: svn://10.0.0.236/trunk@46888 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 23:32:28 +00:00
jfrancis%netscape.com
14c949b1d4 fix for bug 13482
git-svn-id: svn://10.0.0.236/trunk@46644 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 22:22:14 +00:00
jfrancis%netscape.com
8771ef0e8a making special mail-compose editing rules accessible to mail
git-svn-id: svn://10.0.0.236/trunk@46318 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-08 06:26:53 +00:00
jfrancis%netscape.com
132134ca11 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


git-svn-id: svn://10.0.0.236/trunk@46126 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-06 19:51:59 +00:00
sspitzer%netscape.com
d477f04e12 add newline to end of file to please certain UNIX compilers.
git-svn-id: svn://10.0.0.236/trunk@45876 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 10:43:00 +00:00
jfrancis%netscape.com
a1542a6e29 more deletion work...
git-svn-id: svn://10.0.0.236/trunk@45518 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 21:23:47 +00:00
jfrancis%netscape.com
9c5e2c817e checkpointing some deletion work
git-svn-id: svn://10.0.0.236/trunk@45344 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-31 13:55:18 +00:00
mscott%netscape.com
eaeb6bff71 Fix pedantic build breakage for unix.
git-svn-id: svn://10.0.0.236/trunk@44313 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:38:21 +00:00
jfrancis%netscape.com
99de773e68 refactoring text insertion code; indent/outdent now work with lists and list items.
git-svn-id: svn://10.0.0.236/trunk@44276 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 08:56:51 +00:00
jfrancis%netscape.com
41485faa2c 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.
git-svn-id: svn://10.0.0.236/trunk@43484 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 08:13:06 +00:00
jfrancis%netscape.com
c5e0ffdf88 let VC 5 live!
git-svn-id: svn://10.0.0.236/trunk@43041 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:02:27 +00:00
jfrancis%netscape.com
22b6d64142 more block operation improvements to "make list"
git-svn-id: svn://10.0.0.236/trunk@43032 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:44:10 +00:00
jfrancis%netscape.com
6933a8242b begginning of block operations honoring breaks...
git-svn-id: svn://10.0.0.236/trunk@42850 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 23:39:48 +00:00
jfrancis%netscape.com
9b541be769 fixing bug 9366
git-svn-id: svn://10.0.0.236/trunk@42836 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 22:51:40 +00:00
jfrancis%netscape.com
54dd82668d smarts for creating empty lists in the right places;
prelim work for WillMakeHeader();
prelim work for indenting lists;
helper routine IsEmptyBlock();


git-svn-id: svn://10.0.0.236/trunk@42821 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:50:02 +00:00
buster%netscape.com
645dd7a8ea 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.


git-svn-id: svn://10.0.0.236/trunk@42775 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 18:39:49 +00:00
sfraser%netscape.com
4dd92661ce Landing editor API changes. Removed nsITextEditor and nsTextEditor, split interfaces into more, non-overlapping interfaces, and other general cleanup.
git-svn-id: svn://10.0.0.236/trunk@42725 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 01:37:50 +00:00
kin%netscape.com
c89294e709 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)


git-svn-id: svn://10.0.0.236/trunk@42152 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:36:19 +00:00
rhp%netscape.com
5c06ffe2e1 Fix for stopper bug #10504
git-svn-id: svn://10.0.0.236/trunk@41147 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-26 18:05:41 +00:00
jfrancis%netscape.com
d4d1113f4f assorted work to expose nav html dtd to the editor
git-svn-id: svn://10.0.0.236/trunk@40179 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-19 22:49:21 +00:00
mjudge%netscape.com
329d39ba11 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.
git-svn-id: svn://10.0.0.236/trunk@39971 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-18 02:27:19 +00:00
buster%netscape.com
6382cd2eea 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.


git-svn-id: svn://10.0.0.236/trunk@39546 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 19:13:46 +00:00
mjudge%netscape.com
757f22388f checkin for carpool for multiple seleciton/ime selection and api changes
git-svn-id: svn://10.0.0.236/trunk@39542 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 18:19:20 +00:00
jfrancis%netscape.com
e78ee967a3 fix for bug 5903
git-svn-id: svn://10.0.0.236/trunk@38277 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-03 13:27:13 +00:00
jfrancis%netscape.com
30aa13a1d0 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
git-svn-id: svn://10.0.0.236/trunk@38021 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-02 07:53:08 +00:00
jfrancis%netscape.com
d1466999a5 bitten by lack of const enforcement in mac coimpiler once again.
git-svn-id: svn://10.0.0.236/trunk@37991 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-02 05:13:21 +00:00
jfrancis%netscape.com
1ad411ef7d 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.
git-svn-id: svn://10.0.0.236/trunk@37982 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-02 04:46:45 +00:00
akkana%netscape.com
ce6c1f2bdd Oops, I misunderstood tor's fix for the sunos bustage
git-svn-id: svn://10.0.0.236/trunk@37911 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 23:41:29 +00:00
akkana%netscape.com
1ced106a53 Fix gcc 2.7.2.3 build -- thanks to tor@boojum.cs.brown.edu (Tim Rowley) for the fix
git-svn-id: svn://10.0.0.236/trunk@37909 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 23:31:03 +00:00
buster%netscape.com
0513dccdf4 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.


git-svn-id: svn://10.0.0.236/trunk@37741 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 18:42:28 +00:00
jfrancis%netscape.com
aaaa87a18c some cleanup and also selection enforcement for plaintext documents: selection is pinned to within the PRE tag on any edit action
git-svn-id: svn://10.0.0.236/trunk@37698 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 13:42:03 +00:00
akkana%netscape.com
6923eadd06 Fix a warning
git-svn-id: svn://10.0.0.236/trunk@37234 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-28 21:26:31 +00:00
jfrancis%netscape.com
475b049f3c these are not the droids you are looking for
git-svn-id: svn://10.0.0.236/trunk@36871 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-25 10:36:54 +00:00
jfrancis%netscape.com
d314457228 improvement of editing rules for insert list, indent, outdent, and change alignment
git-svn-id: svn://10.0.0.236/trunk@36861 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-25 09:33:02 +00:00
jfrancis%netscape.com
fab90f1e90 bug 8300; rvd: floppy moose; aprvd: chofmann
git-svn-id: svn://10.0.0.236/trunk@35747 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 23:40:16 +00:00
jfrancis%netscape.com
ca6c1a3d36 editor rules framework for {make list, indent, outdent, change alignment}
git-svn-id: svn://10.0.0.236/trunk@35666 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:02:43 +00:00
buster%netscape.com
4bad1b96b8 * 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.


git-svn-id: svn://10.0.0.236/trunk@34183 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 06:04:51 +00:00
jfrancis%netscape.com
61ea2c363e groundwork for block transformation functionality
git-svn-id: svn://10.0.0.236/trunk@33512 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 06:01:08 +00:00
jfrancis%netscape.com
677f048b01 cleanup util function duplication
git-svn-id: svn://10.0.0.236/trunk@33152 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 21:17:30 +00:00
jfrancis%netscape.com
54b66fca14 fix for bug 5979
git-svn-id: svn://10.0.0.236/trunk@32764 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:44:08 +00:00
akkana%netscape.com
392f2f0298 - Rename iDirection enum to ECollapsedSelectionAction
- Initial implementation of Insert HTML


git-svn-id: svn://10.0.0.236/trunk@30432 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:27:17 +00:00
jfrancis%netscape.com
cf6d856eef revamped join on deletion
git-svn-id: svn://10.0.0.236/trunk@30095 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 08:03:07 +00:00
sfraser%netscape.com
7ec5fb9eec Memory leak fixes for bug 5870. r mjudge, a chofmann.
git-svn-id: svn://10.0.0.236/trunk@30001 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 22:26:07 +00:00
jfrancis%netscape.com
b4767a9319 fix for bug 5832; bad constant for nbsp value. rvd - floppy moose; appv - chofmann
git-svn-id: svn://10.0.0.236/trunk@30000 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 22:16:02 +00:00
jfrancis%netscape.com
e1f400aecd fix for bug 5782 - check for null return when getting prev/next node is deletion rules; rvd floppy moose, appr chofmann
git-svn-id: svn://10.0.0.236/trunk@29950 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 19:37:50 +00:00