Commit Graph

416 Commits

Author SHA1 Message Date
cmanske%netscape.com
53fddb5ef6 Further table editing work
git-svn-id: svn://10.0.0.236/trunk@42324 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 20:04:58 +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
cmanske%netscape.com
59766ea19c Table editing implementation
git-svn-id: svn://10.0.0.236/trunk@42082 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 02:06:03 +00:00
sfraser%netscape.com
ad6fe30c67 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.
git-svn-id: svn://10.0.0.236/trunk@41954 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 06:53:45 +00:00
buster%netscape.com
41a9e50cfc 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.


git-svn-id: svn://10.0.0.236/trunk@41949 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 06:07:29 +00:00
buster%netscape.com
4e28fb3f85 added a missing break that was leading to an assert in NotifyDocumentListeners
git-svn-id: svn://10.0.0.236/trunk@41948 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 06:05:29 +00:00
warren%netscape.com
884a828735 Fixing Simon's stuff.
git-svn-id: svn://10.0.0.236/trunk@41922 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 01:57:26 +00:00
sfraser%netscape.com
c89af1b299 Make the nsIDocumentStateListener interface more useful, with doc creation and destruction notifiers.
git-svn-id: svn://10.0.0.236/trunk@41915 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 00:58:38 +00:00
buster%netscape.com
b96149959a 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


git-svn-id: svn://10.0.0.236/trunk@41819 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-02 13:53:23 +00:00
buster%netscape.com
0f1cc564a1 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.


git-svn-id: svn://10.0.0.236/trunk@41818 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-02 13:51:50 +00:00
cmanske%netscape.com
e77114a04c 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.
git-svn-id: svn://10.0.0.236/trunk@41775 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-01 22:37:58 +00:00
akkana%netscape.com
faf9469aa7 10525: Only handle plaintext paste in base and text editors
git-svn-id: svn://10.0.0.236/trunk@41622 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-30 23:46:18 +00:00
jfrancis%netscape.com
9877421283 fixed blocker bug 10698; rvwd: akkana; apprvd: chofmann
git-svn-id: svn://10.0.0.236/trunk@41563 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-29 23:40:21 +00:00
sfraser%netscape.com
49a6904cb4 Remove references to nsIContextLoader.
git-svn-id: svn://10.0.0.236/trunk@41411 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 03:08:21 +00:00
sfraser%netscape.com
7c7f0da18a Implement support for nsIDocumentStateListeners.
git-svn-id: svn://10.0.0.236/trunk@41407 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 02:55:40 +00:00
cmanske%netscape.com
21da99135b Fixed bug in GetElementOrParentByTagname
git-svn-id: svn://10.0.0.236/trunk@41383 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 01:37:51 +00:00
cmanske%netscape.com
143d44cb69 Fixed build bustage - removed references to removed .h files
git-svn-id: svn://10.0.0.236/trunk@41376 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 00:35:41 +00:00
mcafee%netscape.com
40f2175553 cmanske forgot to remove one reference to a removed header file, fixing linux bustage.
git-svn-id: svn://10.0.0.236/trunk@41375 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 00:33:50 +00:00
cmanske%netscape.com
19ab0e4029 Initial table editing stuff. Removed table editing transactions (use basic node txns). Fixed TrimString JS methods. Fixed setting border in insert table.
git-svn-id: svn://10.0.0.236/trunk@41372 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 23:59:22 +00:00
akkana%netscape.com
328fb4b62a 490: Insert a line break after a br tag. Also fix some warnings
git-svn-id: svn://10.0.0.236/trunk@41321 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 21:18:10 +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
buster%netscape.com
af08daa88b Clean-up
1) fixed unit tests
2) fixed a bunch of leaks having to do with using enumerators.  Thanks for noticing these, Simon.
3) fixed a tiny problem in nsTextEditRules::WillDoAction().
This method was overly aggressive in checking input args, sel can be null for some operations.


git-svn-id: svn://10.0.0.236/trunk@41056 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-25 18:14:44 +00:00
jfrancis%netscape.com
8a52f1dd60 default to setting selection _after_ a created element
git-svn-id: svn://10.0.0.236/trunk@41047 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-25 09:25:02 +00:00
jfrancis%netscape.com
121b1074a2 making plaintext flag force a "white-space: pre" style on the body. this is a fix for bug 9153
git-svn-id: svn://10.0.0.236/trunk@41044 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-25 05:34:02 +00:00
cmanske%netscape.com
60a35fb2ec Fixed GetSelectedElement to detect caret or selection inside link text. Link dialog will select entire link. Added GetParentLinkElement.
git-svn-id: svn://10.0.0.236/trunk@41030 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-25 01:24:12 +00:00
cmanske%netscape.com
654f7e2069 Fixed insert element bugs. Added message if no misspelled words. Changed 'More Atrributes' to 'Advanced Edit' in dialogs. Improved generic message dialog. Added remove link button to link dialog
git-svn-id: svn://10.0.0.236/trunk@40996 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-24 20:27:53 +00:00
cmanske%netscape.com
8e08f9008a Fixed bugs relating to insert element
git-svn-id: svn://10.0.0.236/trunk@40761 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-23 00:52:17 +00:00
sfraser%netscape.com
44fcff752c Turn on selection for all documents that are being edited. This enables selection in GFX ender widgets.
git-svn-id: svn://10.0.0.236/trunk@40748 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-23 00:11:00 +00:00
sfraser%netscape.com
3243c754ca #ifdef out loading the string bundle, because it causes onEndDocumentLoad handlers to fire, which is very bad.
git-svn-id: svn://10.0.0.236/trunk@40744 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 23:52:08 +00:00
tague%netscape.com
d39a25f0d4 Fixed bug #10242 - crash when typing space after IME composition
git-svn-id: svn://10.0.0.236/trunk@40731 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 23:13:59 +00:00
tao%netscape.com
e190b593e4 Adopt new str res api prototype.
git-svn-id: svn://10.0.0.236/trunk@40601 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 04:41:11 +00:00
akkana%netscape.com
ecc056831b Find file: URLs when searching for embedded elements -- bug 10134
git-svn-id: svn://10.0.0.236/trunk@40317 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-20 20:38:04 +00:00
kin%netscape.com
d47b93b109 Switch from override style sheets to doc
style sheets.


git-svn-id: svn://10.0.0.236/trunk@40298 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-20 19:34:35 +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
akkana%netscape.com
3f8e57acfe Add GetEmbeddedObjects API to editor shell
git-svn-id: svn://10.0.0.236/trunk@40174 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-19 22:36:12 +00:00
tague%netscape.com
d8df483826 Fixed crashing bug with IME support.
git-svn-id: svn://10.0.0.236/trunk@40150 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-19 21:16:42 +00:00
joki%netscape.com
065c158182 Updating DOM event apis and changing behavior to properly respect capturing, bubbling, and cancellation methods.
git-svn-id: svn://10.0.0.236/trunk@40134 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-19 19:54:34 +00:00
akkana%netscape.com
71645acf32 Fix paste html; remove some unneeded inclusions
git-svn-id: svn://10.0.0.236/trunk@40130 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-19 19:37:08 +00:00
akkana%netscape.com
86b5825885 Add GetEmbeddedObjects API for mail/news
git-svn-id: svn://10.0.0.236/trunk@40122 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-19 19:06:39 +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
buster%netscape.com
c8fd47542f fixed tests
git-svn-id: svn://10.0.0.236/trunk@39545 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 19:08:49 +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
sfraser%netscape.com
d1731677b3 Document modification count maintenance.
git-svn-id: svn://10.0.0.236/trunk@39419 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 22:29:39 +00:00
sfraser%netscape.com
4dc3ba7bb6 Don't handle a key event as a keypress if the meta key is down.
git-svn-id: svn://10.0.0.236/trunk@39418 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 22:29:06 +00:00
tague%netscape.com
1a4c1a16ff Fix bug #8459, #6989 Can't move cursor within IME composition string.
git-svn-id: svn://10.0.0.236/trunk@39359 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 20:05:25 +00:00
akkana%netscape.com
a878369d02 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.


git-svn-id: svn://10.0.0.236/trunk@39332 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 18:54:29 +00:00
cmanske%netscape.com
79fd9050ea Generic message dialog, fix insert element-related bugs, initial personal dictionary dialog, other editor bugs
git-svn-id: svn://10.0.0.236/trunk@39268 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 15:24:33 +00:00
rods%netscape.com
e7ee253d92 Fixed up paste code to help support HTML paste
git-svn-id: svn://10.0.0.236/trunk@38921 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-09 19:43:59 +00:00
buster%netscape.com
81c8ed2576 workaround for blocker bug 8123. approved by chofmann.
git-svn-id: svn://10.0.0.236/trunk@38807 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-08 19:52:44 +00:00