Commit Graph
114 Commits
Author SHA1 Message Date
jfrancis@netscape.com 605dafb7d2 turn off link following in the editor 1999-06-21 07:49:03 +00:00
valeski@netscape.com 3737aa0d15 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. 1999-06-18 17:34:08 +00:00
jfrancis@netscape.com 1ea16ef3d5 bug 8303; rvd kin; aprvd buster; aprvd chofmann 1999-06-16 21:38:04 +00:00
akkana@netscape.com 38a0c59915 8283: Fix crash because selectin wasn't initialized. r=sfraser/a=leaf 1999-06-16 21:02:25 +00:00
jfrancis@netscape.com 951c9d8cc9 editor rules framework for {make list, indent, outdent, change alignment} 1999-06-16 05:02:43 +00:00
kin@netscape.com e381bbffbb * 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.
1999-06-14 20:02:46 +00:00
buster@netscape.com 815afeb053 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.
1999-06-12 21:15:14 +00:00
sfraser@netscape.com aaa6370b50 Add factory for EditorShell, and fix case of GetMonitor call. 1999-06-11 19:01:07 +00:00
akkana@netscape.com e506043f6f Implement InsertHTML.
Also, some minor fixes, like warning removal and addition of error checking
in files which needed it.
1999-06-10 21:31:42 +00:00
kin@netscape.com 8bdcd74b95 First pass checkin of the JavaScript editor logging mechanism. All changes are
ifdef'd with ENABLE_JS_EDITOR_LOG.
1999-06-10 19:41:40 +00:00
cmanske@netscape.com 105b993b6e Fixed fingers-to-quick checkin error 1999-06-09 02:28:47 +00:00
cmanske@netscape.com 24fb577142 Moved destination of editor string bundle file to editor's chrome directory 1999-06-09 02:26:48 +00:00
cmanske@netscape.com e4f48b3b80 Added support for prefs and string bundles for editor, various bug fixes, preliminary Horizontal Line dialog work 1999-06-09 01:27:08 +00:00
buster@netscape.com 63d11cc3fd * 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.
1999-06-08 06:04:51 +00:00
briano@netscape.com b2f8895eaf Handle the (Unix) platform-specific DLL naming conventions properly. 1999-06-04 22:17:30 +00:00
jfrancis@netscape.com 841a5b0630 fixing a comment 1999-06-03 05:58:38 +00:00
kin@netscape.com c5fb40e1c4 Fixed double addref in EnableUndo() that was causing us to leak the transaction manager on destruction of the editor. 1999-05-28 21:49:24 +00:00
jfrancis@netscape.com a817177715 cleanup util function duplication 1999-05-28 21:17:30 +00:00
sfraser@netscape.com 10136f1252 Removed obsolete IID definitions, use GetIID() instead. 1999-05-28 00:20:41 +00:00
sfraser@netscape.com 860aefdcfc Add unit test call to nsIEditor, and implement it in nsText- and nsHTMLEditors. 1999-05-27 04:10:04 +00:00
akkana@netscape.com 2e8078e1f7 Insert / Paste as Quotation. 1999-05-27 00:08:15 +00:00
cmanske@netscape.com 6451cf0883 Continued UI work: Spell checker fixes, toolbar improvements, popup menus implemented for paragraph style, font face and color, setting font color test UI, etc. 1999-05-26 21:40:51 +00:00
kin@netscape.com f393d6d563 Disabled HACKForceRedraw() calls. Added calls to nsIViewManager::BeginUpdateViewBatch() and nsIViewManager::EndUpdateViewBatch(). 1999-05-26 21:18:12 +00:00
akkana@netscape.com 213a7b0ca7 6773: an nsresult was being checked before it was initialized. Appv'd chofmann 1999-05-20 01:48:12 +00:00
kin@netscape.com b2f4914046 Fix for bug #4796: UMR: nsEditor::JoinNodesImpl(). 1999-05-17 18:59:40 +00:00
kin@netscape.com f6a70c37d8 Commented out all calls to HACKForceRedraw(). We now call it from
nsEditor::EndTransaction().
1999-05-17 13:31:56 +00:00
jfrancis@netscape.com ba3f92b749 insert list and indent work 1999-05-17 12:22:31 +00:00
mjudge@netscape.com 39705feb00 adding in selection ability for images in editor only 1999-05-17 00:21:50 +00:00
akkana@netscape.com 5521c851b7 5786: Cut shouldn't do anything when selection is collapsed 1999-05-14 19:24:10 +00:00
rods@netscape.com 031a157dcc removed reference to nsIDataFlavor and merged nsITransferable and nsIGenericTransferable 1999-05-13 21:53:57 +00:00
sfraser@netscape.com 1ef089ca98 Fix misplaced ) 1999-05-13 04:42:11 +00:00
tague@netscape.com c7719cb3ae Added work around for #5912 1999-05-12 23:23:14 +00:00
sfraser@netscape.com 5dacea0bd6 Added file opening functionality 1999-05-12 22:24:47 +00:00
akkana@netscape.com 198077254b Add test for IsDataFlavorSupported for xpfe folks to fix bug 6289 1999-05-11 23:34:40 +00:00
rods@netscape.com 53f3dc2cd5 Removed static IID defs and am now using GetIID from the interface 1999-05-07 19:39:58 +00:00
dp@netscape.com 30b177cc9e Converting stray UnregisterFactory calls to UnregisterComponent 1999-05-06 01:37:04 +00:00
akkana@netscape.com 1ad2f16e84 - Rename iDirection enum to ECollapsedSelectionAction
- Initial implementation of Insert HTML
1999-05-05 23:27:17 +00:00
waterson@netscape.com 20d83e288f Fix nsCOMPtr bustage. 1999-05-05 05:56:58 +00:00
buster@netscape.com b5d5079194 added a param to GetPriorNode and GetNextNode to tell these methods whether to use or skip
non-editable content.
added some comments, turned off some debugging flags.
1999-05-05 04:51:54 +00:00
buster@netscape.com 58428a0eb6 1. block transformation infrastructure is now in place. We can go ahead and implement interesting
features like set paragraph style, set list type, indent, etc.  I'm sure there's holes in my
implementation that these high level features will make obvious.

2. I've factored a lot of utility methods from several modules into nsEditor as public static methods.
This makes them easily accessable to all, and will help Joe and I remove redundant methods.

3. I changed the HTML tags to lower case, and made all string compares case-insensitive.  No, this
isn't quite the right thing to do, but we don't have atoms from layout yet.  The Right Thing is for us
to reuse those atoms.
1999-05-05 04:05:19 +00:00
tague@netscape.com 490e090ce7 Fixed bug #5527 (Editor is not able to accumulate successive Japanese input) 1999-05-03 22:57:48 +00:00
sfraser@netscape.com 9642ee1075 Memory leak fixes for bug 5870. r mjudge, a chofmann. 1999-05-03 22:26:07 +00:00
mjudge@netscape.com 519ab21300 ok done Simon reviewed 5870. choffman approved for M5 1999-05-03 21:52:19 +00:00
kostello@netscape.com 7331f85443 Changed:
nsI*Editor::OutputText(nsString& aOutputString);
nsI*Editor::OutputHTML(nsString& aOutputString);

These methods always returns back a Unicode version of whatever is in the content model. It is the
responsibility of the caller then to call whatever converter is required to convert to the appropriate
charset.

Added:

nsI*Editor::OutputText(nsIOutputStream* aOutputStream, nsString* aCharsetOverride = nsnull)
nsI*Editor::OutputHTML(nsIOutputStream* aOutputStream, nsString* aCharsetOverride = nsnull)

These methods output the the current content model to aOutputStream. The document is encoded using the
document defined charset or if the user passes in a non-null value for aCharsetOverride then this
encoding overrides the encoding used by the document.
1999-05-03 18:48:39 +00:00
mjudge@netscape.com 7d5bd76479 FIXING M5 BUGS: making weak links to stop extra addreff to presshell. fixing xul to set editor doc type to "content" 1999-04-29 20:21:04 +00:00
kin@netscape.com 25447209ef Modified nsIEditActionListener to have Will*() and Do*() methods. Added
nsIEditActionListener support to nsEditor.cpp and nsEditor.h.
1999-04-27 17:14:28 +00:00
rods@netscape.com ba6cd425c1 Switch Paste support over to nsCOMPtr 1999-04-23 14:41:32 +00:00
mcafee@netscape.com f10be82d1f Removing NEW_CLIPBOARD_SUPPORT ifdef. 1999-04-22 05:41:51 +00:00
cmanske@netscape.com d14d7c1994 Added simple dialogs for insert link and restructured ui source directories 1999-04-21 18:53:55 +00:00
rods@netscape.com 3e3e0f80b5 Added additional comments for Paste 1999-04-19 19:35:55 +00:00