253 Commits

Author SHA1 Message Date
kin%netscape.com
85e00a320c Disabled HACKForceRedraw() calls. Added calls to nsIViewManager::BeginUpdateViewBatch() and nsIViewManager::EndUpdateViewBatch().
git-svn-id: svn://10.0.0.236/trunk@32714 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:18:12 +00:00
pinkerton%netscape.com
651d8eb4ff new multiple-item drag and drop apis.
git-svn-id: svn://10.0.0.236/trunk@32705 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:08:14 +00:00
akkana%netscape.com
0325b11e9d 6773: an nsresult was being checked before it was initialized. Appv'd chofmann
git-svn-id: svn://10.0.0.236/trunk@32364 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 01:48:12 +00:00
joki%netscape.com
5ff7e26f51 Breaking nsIDOMEvent out into nsIDOMEvent and nsIDOMUIEvent.
git-svn-id: svn://10.0.0.236/trunk@32168 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:51:04 +00:00
kin%netscape.com
b1424f52bf Fix for bug #4796: UMR: nsEditor::JoinNodesImpl().
git-svn-id: svn://10.0.0.236/trunk@31903 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 18:59:40 +00:00
jfrancis%netscape.com
5846a4cc07 const crazy - bet you can't eat jsut one!
git-svn-id: svn://10.0.0.236/trunk@31898 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 14:14:36 +00:00
kin%netscape.com
31bd0fb412 Commented out all calls to HACKForceRedraw(). We now call it from
nsEditor::EndTransaction().


git-svn-id: svn://10.0.0.236/trunk@31897 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 13:31:56 +00:00
jfrancis%netscape.com
656494ed95 fixing bustage
git-svn-id: svn://10.0.0.236/trunk@31896 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 13:10:29 +00:00
jfrancis%netscape.com
2a700f7f7c insert list and indent work
git-svn-id: svn://10.0.0.236/trunk@31895 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 12:22:31 +00:00
mjudge%netscape.com
b1fe71c301 adding in selection ability for images in editor only
git-svn-id: svn://10.0.0.236/trunk@31873 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 00:21:50 +00:00
akkana%netscape.com
622007a1d7 5786: Cut shouldn't do anything when selection is collapsed
git-svn-id: svn://10.0.0.236/trunk@31638 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 19:24:10 +00:00
pinkerton%netscape.com
60ffd063f4 fix a d&d bug introduced in the transferable interface merging and add a SetCanDrop at the point of the drop for MacOS.
git-svn-id: svn://10.0.0.236/trunk@31611 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-14 18:44:28 +00:00
akkana%netscape.com
ad2018ef65 Implementations for new fcn Get/SetBodyWrapWidth
git-svn-id: svn://10.0.0.236/trunk@31472 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 22:11:05 +00:00
rods%netscape.com
089a8e7024 removed reference to nsIDataFlavor and merged nsITransferable and nsIGenericTransferable
git-svn-id: svn://10.0.0.236/trunk@31462 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:53:57 +00:00
cmanske%netscape.com
18352a19b6 Implemented Spell Checking
git-svn-id: svn://10.0.0.236/trunk@31452 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 20:59:08 +00:00
sfraser%netscape.com
0659e88f57 Fix misplaced )
git-svn-id: svn://10.0.0.236/trunk@31407 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 04:42:11 +00:00
tague%netscape.com
4e4477d076 Added work around for #5912
git-svn-id: svn://10.0.0.236/trunk@31315 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 23:23:14 +00:00
sfraser%netscape.com
ac1a4a233b Added file opening functionality
git-svn-id: svn://10.0.0.236/trunk@31300 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:24:47 +00:00
kin%netscape.com
802bb823c8 Made read only parameters const.
git-svn-id: svn://10.0.0.236/trunk@31294 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:17:41 +00:00
kin%netscape.com
120c8543f6 Changed all references to nsVoidArray to nsStringArray.
git-svn-id: svn://10.0.0.236/trunk@31288 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 21:56:11 +00:00
sspitzer%netscape.com
223e501705 fix pedantic build bustage. (thanks to kin for the fix)
git-svn-id: svn://10.0.0.236/trunk@31273 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 16:53:26 +00:00
akkana%netscape.com
1c82a16281 Add test for IsDataFlavorSupported for xpfe folks to fix bug 6289
git-svn-id: svn://10.0.0.236/trunk@31169 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 23:34:40 +00:00
kin%netscape.com
f21c805899 Added implementation for First/LastSelectedBlock().
Added better iterator status tracking.


git-svn-id: svn://10.0.0.236/trunk@31106 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:16:24 +00:00
kin%netscape.com
d2d60c4340 Made Add/RemoveWordToPersonalDictionary pure virtual.
git-svn-id: svn://10.0.0.236/trunk@31105 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:14:43 +00:00
cmanske%netscape.com
1dc89a2562 Implemented InsertLinkAroundSelection
git-svn-id: svn://10.0.0.236/trunk@30786 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:26:23 +00:00
rods%netscape.com
3668cb6393 Changed code to use the new DragSession interface
git-svn-id: svn://10.0.0.236/trunk@30711 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:42:27 +00:00
rods%netscape.com
220cb361cc Removed static IID defs and am now using GetIID from the interface
git-svn-id: svn://10.0.0.236/trunk@30709 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:39:58 +00:00
akkana%netscape.com
0d82dd7ce3 Make Insert HTML a transaction
git-svn-id: svn://10.0.0.236/trunk@30697 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:23:17 +00:00
akkana%netscape.com
93cc772d77 Middle-mouse paste; also, fix a bunch of warnings
git-svn-id: svn://10.0.0.236/trunk@30696 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:22:38 +00:00
sfraser%netscape.com
ebe41203f5 Implement Save, Save As in editor.
git-svn-id: svn://10.0.0.236/trunk@30665 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:02:35 +00:00
cmanske%netscape.com
a762d8c6c5 More improvements to insert link and insert image dialogs. Added EdDialogCommon.js, where we should put java script used by all dialogs
git-svn-id: svn://10.0.0.236/trunk@30639 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 00:44:46 +00:00
dp%netscape.com
f015deb427 Converting stray UnregisterFactory calls to UnregisterComponent
git-svn-id: svn://10.0.0.236/trunk@30485 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:37:04 +00:00
cmanske%netscape.com
3918932e7d Added the redraw hack to SetParagraphFormat so we can see the content change
git-svn-id: svn://10.0.0.236/trunk@30483 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-06 01:33:48 +00:00
akkana%netscape.com
d6442ae892 Track change from iDirection to ECollapsedSelectionAction
git-svn-id: svn://10.0.0.236/trunk@30441 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:36:28 +00:00
cmanske%netscape.com
0a9edc9d32 Added UI for paragraph style and preliminary versions of image and link dialogs
git-svn-id: svn://10.0.0.236/trunk@30437 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:29:18 +00:00
akkana%netscape.com
392f2f0298 - Rename iDirection enum to ECollapsedSelectionAction
- Initial implementation of Insert HTML


git-svn-id: svn://10.0.0.236/trunk@30432 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:27:17 +00:00
waterson%netscape.com
9153931565 Fix nsCOMPtr bustage.
git-svn-id: svn://10.0.0.236/trunk@30383 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 05:56:58 +00:00
buster%netscape.com
8d03d0ce7c fixed mac bustage
git-svn-id: svn://10.0.0.236/trunk@30377 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 05:17:59 +00:00
buster%netscape.com
c59396c61b 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.


git-svn-id: svn://10.0.0.236/trunk@30373 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 04:51:54 +00:00
buster%netscape.com
9a004fa0f0 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.


git-svn-id: svn://10.0.0.236/trunk@30367 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 04:05:19 +00:00
kin%netscape.com
247bc45d35 Renamed NS_TEXTSERVICE_CID to NS_SPELLCHECKER_CID.
git-svn-id: svn://10.0.0.236/trunk@30225 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 22:03:32 +00:00
kin%netscape.com
e6a5300568 Initial checkin of file.
git-svn-id: svn://10.0.0.236/trunk@30224 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 21:54:11 +00:00
jfrancis%netscape.com
cd95192e53 fixing problem with undo of join txn
git-svn-id: svn://10.0.0.236/trunk@30096 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 08:03:51 +00:00
jfrancis%netscape.com
cf6d856eef revamped join on deletion
git-svn-id: svn://10.0.0.236/trunk@30095 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 08:03:07 +00:00
tague%netscape.com
6b3b505007 Fixed bug #5527 (Editor is not able to accumulate successive Japanese input)
git-svn-id: svn://10.0.0.236/trunk@30002 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 22:57:48 +00:00
sfraser%netscape.com
7ec5fb9eec Memory leak fixes for bug 5870. r mjudge, a chofmann.
git-svn-id: svn://10.0.0.236/trunk@30001 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 22:26:07 +00:00
jfrancis%netscape.com
b4767a9319 fix for bug 5832; bad constant for nbsp value. rvd - floppy moose; appv - chofmann
git-svn-id: svn://10.0.0.236/trunk@30000 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 22:16:02 +00:00
mjudge%netscape.com
218c99b232 ok done Simon reviewed 5870. choffman approved for M5
git-svn-id: svn://10.0.0.236/trunk@29998 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 21:52:19 +00:00
kostello%netscape.com
0b56937bd5 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.


git-svn-id: svn://10.0.0.236/trunk@29967 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 18:48:39 +00:00
jfrancis%netscape.com
e1f400aecd fix for bug 5782 - check for null return when getting prev/next node is deletion rules; rvd floppy moose, appr chofmann
git-svn-id: svn://10.0.0.236/trunk@29950 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-01 19:37:50 +00:00