jfrancis%netscape.com
0d61526430
fix for bug #12337 : not counting non-editable nodes when searching for whitespace.
...
git-svn-id: svn://10.0.0.236/trunk@44275 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 08:55:28 +00:00
dougt%netscape.com
6c0494af59
xpild-ing nsIAtom. Now nsIAtom is xpcom compliant.
...
git-svn-id: svn://10.0.0.236/trunk@43975 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 07:07:00 +00:00
tague%netscape.com
c0fafec30b
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.
...
git-svn-id: svn://10.0.0.236/trunk@43908 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:52:36 +00:00
buster%netscape.com
d1193affa0
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.
git-svn-id: svn://10.0.0.236/trunk@43590 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:30:48 +00:00
kin%netscape.com
11de802b21
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.
git-svn-id: svn://10.0.0.236/trunk@43585 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:19:10 +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
tague%netscape.com
1bdbfaf844
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.
...
git-svn-id: svn://10.0.0.236/trunk@43310 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 22:26:50 +00:00
akkana%netscape.com
781c8bbf3e
11552: don't hardcode the character set for saving
...
git-svn-id: svn://10.0.0.236/trunk@43021 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 21:22:32 +00:00
jfrancis%netscape.com
f77002f5ae
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.
...
git-svn-id: svn://10.0.0.236/trunk@42818 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:45:52 +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
tague%netscape.com
5f2b704a17
Added support for replies from private DOM text events. See bug #4826
...
git-svn-id: svn://10.0.0.236/trunk@42391 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 02:32:13 +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
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
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
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
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
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
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
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
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
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
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
kin%netscape.com
d0b855c6a7
Fix for bug #7495 : [PP]Undo on Linux shows intermediate steps.
...
Modified Undo() and Redo() to call Begin/EndUpdateViewBatch().
git-svn-id: svn://10.0.0.236/trunk@38453 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-06 23:02:12 +00:00
cmanske%netscape.com
c9cdbce32c
Changes to editor XUL dialogs to accomodate new window-as-box changes
...
git-svn-id: svn://10.0.0.236/trunk@38177 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-02 22:52:34 +00:00
sfraser%netscape.com
c474a7e978
Added transactions for applying and removing style sheets
...
git-svn-id: svn://10.0.0.236/trunk@37965 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-02 03:57:50 +00:00
warren%netscape.com
32f5401615
Fixed NewURL for necko.
...
git-svn-id: svn://10.0.0.236/trunk@37880 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 21:48:46 +00:00
buster%netscape.com
210b24c193
minor bug fixes
...
git-svn-id: svn://10.0.0.236/trunk@37864 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 20:46:59 +00:00
kin%netscape.com
0d49f312e2
Added ApplyStyleSheet() method to the various editor interfaces.
...
git-svn-id: svn://10.0.0.236/trunk@37845 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 19:32:35 +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
scc%netscape.com
a2d0be4d64
|nsISupports::GetIID()| --> |nsCOMTypeInfo<nsISupports>::GetIID()|
...
git-svn-id: svn://10.0.0.236/trunk@37444 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 21:01:31 +00:00
tague%netscape.com
ea708a16a8
Added clause and selection support for Input Methods. Fixes bug #8639 , #8459 , #6989 , #7824
...
git-svn-id: svn://10.0.0.236/trunk@37435 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 20:31:22 +00:00
buster%netscape.com
7391f40410
implemented most of max length handling
...
git-svn-id: svn://10.0.0.236/trunk@36964 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-25 22:57:26 +00:00
mcafee%netscape.com
d80754b545
Adding comment for BeOS.
...
git-svn-id: svn://10.0.0.236/trunk@36891 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-25 14:26:21 +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
cmanske%netscape.com
3a2e4a5152
Expanded nsIEditPropery to include all (I hope) HTML tags
...
git-svn-id: svn://10.0.0.236/trunk@36830 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-25 03:18:42 +00:00
buster%netscape.com
9c117ff5c2
added nsIEditProperty::img
...
git-svn-id: svn://10.0.0.236/trunk@36765 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-24 23:34:41 +00:00