236 Commits

Author SHA1 Message Date
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
buster%netscape.com
68a1ee7d46 with permission from chofmann:
1. fix for bug 5796, crash on exit.  This was a bad, bad memory smudge on my part, easily fixed by doing the right ref counting in the
right places.

2. some preliminary code for M6 block transformations has leaked into this checkin.  It's safer than trying to re-code the fix above into
a fresh tree.  Unless you're making calls to do block transformations, you won't see any difference.


git-svn-id: svn://10.0.0.236/trunk@29897 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 22:40:18 +00:00
joki%netscape.com
a158b164ef Adding scrolling fixes to fix bug #3999, A: chofmann
git-svn-id: svn://10.0.0.236/trunk@29867 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 19:38:39 +00:00
akkana%netscape.com
98097b95da 5734: put back working copy from version 1.17, which got accidentally stomped in a cvs merge. a=cyeh,kostello
git-svn-id: svn://10.0.0.236/trunk@29843 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 18:03:39 +00:00
mjudge%netscape.com
5fb2b5d521 FIXING M5 BUGS: making weak links to stop extra addreff to presshell. fixing xul to set editor doc type to "content"
git-svn-id: svn://10.0.0.236/trunk@29799 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-29 20:21:04 +00:00
pinkerton%netscape.com
44fe02fdd9 fix build bustage comparing raw pointer to nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@29782 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-29 01:01:04 +00:00
buster%netscape.com
fa9252b0f9 approved bug fix for infinite loop when typing a space in a document with only a single text node
git-svn-id: svn://10.0.0.236/trunk@29777 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-29 00:14:05 +00:00
kin%netscape.com
f29814710c Removed enabled code that was ifdef'd with HAVE_EDIT_ACTION_LISTENERS.
git-svn-id: svn://10.0.0.236/trunk@29461 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 19:17:35 +00:00
kin%netscape.com
a32fea50dd Modified nsIEditActionListener to have Will*() and Do*() methods. Added
nsIEditActionListener support to nsEditor.cpp and nsEditor.h.


git-svn-id: svn://10.0.0.236/trunk@29438 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 17:14:28 +00:00
sfraser%netscape.com
e304ad83e7 Advance the iterator so we don't freeze bringing up the link dialog.
git-svn-id: svn://10.0.0.236/trunk@29323 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 01:10:10 +00:00
buster%netscape.com
74a2e2a5ec just removing a printf
git-svn-id: svn://10.0.0.236/trunk@29298 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-26 23:41:13 +00:00
jfrancis%netscape.com
8591f5670e more html typing rules implementation
git-svn-id: svn://10.0.0.236/trunk@29166 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-26 14:08:52 +00:00
rickg%netscape.com
8832f32e49 sync with nsString2
git-svn-id: svn://10.0.0.236/trunk@29011 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-24 01:39:50 +00:00
kin%netscape.com
7fd16575ef Misc changes to the nsITextServicesDocument interface.
git-svn-id: svn://10.0.0.236/trunk@28867 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-23 16:52:28 +00:00
bruce%cybersight.com
1ef8e5b65a Must define inline methods _before_ calling them on AIX 4.2 with xlC.
git-svn-id: svn://10.0.0.236/trunk@28857 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-23 16:47:30 +00:00
rods%netscape.com
5b22bfbff7 Switch Drag&Drop over to nsCOMPtr and fixed service release
git-svn-id: svn://10.0.0.236/trunk@28841 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-23 14:43:30 +00:00
rods%netscape.com
addd96526d Switch Paste support over to nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@28840 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-23 14:41:32 +00:00
buster%netscape.com
1664ba068f vastly improved type-in state handling. smaller and faster
git-svn-id: svn://10.0.0.236/trunk@28704 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-22 14:46:53 +00:00