148 Commits

Author SHA1 Message Date
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
cmanske%netscape.com
078a1a95b5 Fixed GetBodyElement. Changed editor test doc to not use CSS for background. Initial code to edit element properties when double-clicking on element.
git-svn-id: svn://10.0.0.236/trunk@36724 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-24 20:59:45 +00:00
warren%netscape.com
06d707be48 Renamed nsIURL to nsIURI in preperation for necko. More NECKO ifdefs too.
git-svn-id: svn://10.0.0.236/trunk@36440 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-23 03:29:44 +00:00
akkana%netscape.com
4120467dac Use deep first/last child for Beginning/EndOfDocument methods
git-svn-id: svn://10.0.0.236/trunk@36345 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-22 21:42:44 +00:00
jfrancis%netscape.com
b2f2bf7a70 turn off link following in the editor
git-svn-id: svn://10.0.0.236/trunk@36031 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-21 07:49:03 +00:00
valeski%netscape.com
4fa4e2e84d NECKO ifdef (ifdef'd _off_ by default) this checkin should not impact anything. checkin approved. If someone runs into a problem, call me at 303.546.0061.
git-svn-id: svn://10.0.0.236/trunk@35863 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-18 17:34:08 +00:00
jfrancis%netscape.com
1b33a49066 bug 8303; rvd kin; aprvd buster; aprvd chofmann
git-svn-id: svn://10.0.0.236/trunk@35734 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 21:38:04 +00:00
akkana%netscape.com
e413aafe07 8283: Fix crash because selectin wasn't initialized. r=sfraser/a=leaf
git-svn-id: svn://10.0.0.236/trunk@35728 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 21:02:25 +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
kin%netscape.com
38bb3e3ed2 * Added StartLogging() and StopLogging() methods to nsIEditor,
nsIHTMLEditor, nsITextEditor, and nsIEditorShell and enabled
  the "Start Log" and "End Log" menu items in the editor test bed.

* Modified makefiles for Unix and Win32 to turn on  Editor API Logging.

* Added action argument to the DeleteSelection() method in nsIEditorShell.

* Modified nsJSTxnLog to use nsJSEditorLog when writing it's output.


git-svn-id: svn://10.0.0.236/trunk@35149 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:02:46 +00:00
buster%netscape.com
91f2070891 changed the way nsEditProperty is used. Right now, it's our placeholder
for HTML and CSS atoms, since we can't get these from layout yet.  The old
use assumed one editor, but as we know many editors can exist simultaneously.
Now, the editors share a singleton which is fetched from a factory method,
saving memory and allocation overhead.


git-svn-id: svn://10.0.0.236/trunk@35033 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 21:15:14 +00:00
sfraser%netscape.com
84c77414a8 Add factory for EditorShell, and fix case of GetMonitor call.
git-svn-id: svn://10.0.0.236/trunk@34815 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:01:07 +00:00
akkana%netscape.com
91f72d1f82 Implement InsertHTML.
Also, some minor fixes, like warning removal and addition of error checking
in files which needed it.


git-svn-id: svn://10.0.0.236/trunk@34645 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:31:42 +00:00
kin%netscape.com
87f40affc1 First pass checkin of the JavaScript editor logging mechanism. All changes are
ifdef'd with ENABLE_JS_EDITOR_LOG.


git-svn-id: svn://10.0.0.236/trunk@34611 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 19:41:40 +00:00
cmanske%netscape.com
f46ece1554 Fixed fingers-to-quick checkin error
git-svn-id: svn://10.0.0.236/trunk@34350 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 02:28:47 +00:00
cmanske%netscape.com
45befba712 Moved destination of editor string bundle file to editor's chrome directory
git-svn-id: svn://10.0.0.236/trunk@34349 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 02:26:48 +00:00
cmanske%netscape.com
5cc87fa56e Added support for prefs and string bundles for editor, various bug fixes, preliminary Horizontal Line dialog work
git-svn-id: svn://10.0.0.236/trunk@34343 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 01:27:08 +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
briano%netscape.com
a5a074461d Handle the (Unix) platform-specific DLL naming conventions properly.
git-svn-id: svn://10.0.0.236/trunk@33800 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:17:30 +00:00
jfrancis%netscape.com
491c1d952c fixing a comment
git-svn-id: svn://10.0.0.236/trunk@33510 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 05:58:38 +00:00