Commit Graph

450 Commits

Author SHA1 Message Date
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
dougt%netscape.com
32a9a77110 xpild-ing nsIAtom. Now nsIAtom is xpcom compliant. 1999-08-21 07:07:00 +00:00
tague%netscape.com
893a484b35 Fixed bug #12052 - design changes to the implemenation of the editor charset menu. The charset information is now pushed down to the nsIDocument rather than being stored in the nsEditor component. 1999-08-20 23:52:36 +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
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
pinkerton%netscape.com
e6c785c88e add DragGesture to drag listener. 1999-08-19 19:48:33 +00:00
buster%netscape.com
e153977b80 just turned off the noisy debugging 1999-08-19 15:15:41 +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
kin%netscape.com
f83e42cc70 Modifications to re-enable Editor API Logging which was broken after the last editor source reorg.
editor/base/Makefile.in
  editor/base/makefile.win
    - Modified makefiles build files that were
      renamed, and use new define to build the
      API Logging code.

  editor/base/nsEditor.cpp
  editor/base/nsEditor.h
  editor/base/nsHTMLEditor.cpp
    - Removed all ENABLE_JS_EDITOR_LOG ifdef'd code.
    - Removed all references to nsVector.h.

  editor/base/nsEditorFactory.cpp
    - Added ENABLE_EDITOR_API_LOG ifdef'd code
      that will create an instance of nsHTMLEditorLog
      instead of nsHTMLEditor.

  editor/base/nsEditorTxnLog.cpp
    - Initial checkin of file. File was originally named nsJSTxnLog.cpp.

  editor/base/nsEditorTxnLog.h
    - Initial checkin of file. File was originally named nsJSTxnLog.h.

  editor/base/nsHTMLEditorLog.cpp
    - Initial checkin of file. File was originally named nsJSEditorLog.cpp.
    - nsHTMLEditorLog.cpp now derives from nsHTMLEditor, and only
      overrides methods that modify the content tree and are publicly
      available via XPIDL.

  editor/base/nsHTMLEditorLog.h
    - Initial checkin of file. File was originally named nsJSEditorLog.h.
    - nsHTMLEditorLog.cpp now derives from nsHTMLEditor, and only
      overrides methods that modify the content tree and are publicly
      available via XPIDL.
1999-08-19 13:19:10 +00:00
rods%netscape.com
41a0de11a3 getting unicode data from clipboard 1999-08-18 15:10:18 +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
tague%netscape.com
11dad9b8c4 Fix bug #11687 - [Dogfood] Enable ender to save documents in encodings other than ISO-8859-1. Approved by chofmann@netscape.com, reviewed by buster@netscape.com. 1999-08-13 22:26:50 +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
akkana%netscape.com
f673bdb804 11552: don't hardcode the character set for saving 1999-08-10 21:22:32 +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
4d7c1bf9f2 default impl for InsertHeader(); plus adapted to new definition of SplitNodeDeep() 1999-08-09 21:51:19 +00:00
jfrancis%netscape.com
250a479977 added InsertHeader() 1999-08-09 21:50:28 +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
jfrancis%netscape.com
c8ee477692 added helper function IsEmptyBlock() 1999-08-09 21:49:25 +00:00
jfrancis%netscape.com
70c5b10ce6 SplitNodeDeep() now emits an out param that tells you what the effective split offset was. This routine no longer splits text nodes unless it has to; ie, if the original offset was at the beginning or end of the text node, no split occurs in it. 1999-08-09 21:45:52 +00:00
jfrancis%netscape.com
49b63463ff fix for 10584 1999-08-09 21:42:51 +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
ac5099a587 Fix the nsTextEditRules init so that setting the flags works. 1999-08-09 18:22:13 +00:00
buster%netscape.com
503defd7f0 backed out my last change, it didn't fix the problem I thought it would. 1999-08-09 18:01:08 +00:00
buster%netscape.com
151ee02b62 call SetFlags from Init, so plaintext logic gets executed. 1999-08-09 17:44:14 +00:00
sfraser%netscape.com
923338fe36 Fix bustage 1999-08-09 02:03:57 +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
sfraser%netscape.com
6f28b668c9 First Checked In. 1999-08-09 01:34:04 +00:00
buster%netscape.com
fd79be28bb fixed handling of text controls with a max length set 1999-08-07 05:29:41 +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
cmanske%netscape.com
33420b646e Further table editing work 1999-08-05 20:04:58 +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
cmanske%netscape.com
14bb564bf2 Table editing implementation 1999-08-04 02:06:03 +00:00
sfraser%netscape.com
bbeffd28f0 Fix the document state listener mechanism so that you can install listeners after the editor has been created, and still get their 'document creation' notification called. 1999-08-03 06:53:45 +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
c05df307b2 added a missing break that was leading to an assert in NotifyDocumentListeners 1999-08-03 06:05:29 +00:00
warren%netscape.com
5f088dfe9e Fixing Simon's stuff. 1999-08-03 01:57:26 +00:00
sfraser%netscape.com
dd24fdb884 Make the nsIDocumentStateListener interface more useful, with doc creation and destruction notifiers. 1999-08-03 00:58:38 +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
buster%netscape.com
e0138bce18 enabled string bundles, now that NECKO has landed
selection and caret are not displayed at Init time any more.  This is done on Focus now.
1999-08-02 13:51:50 +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
akkana%netscape.com
2a0454f835 10525: Only handle plaintext paste in base and text editors 1999-07-30 23:46:18 +00:00
jfrancis%netscape.com
5e6c751652 fixed blocker bug 10698; rvwd: akkana; apprvd: chofmann 1999-07-29 23:40:21 +00:00
sfraser%netscape.com
8c8a92675a Remove references to nsIContextLoader. 1999-07-28 03:08:21 +00:00
sfraser%netscape.com
6c31c915dd Implement support for nsIDocumentStateListeners. 1999-07-28 02:55:40 +00:00
cmanske%netscape.com
89c5a45a40 Fixed bug in GetElementOrParentByTagname 1999-07-28 01:37:51 +00:00