Граф коммитов

171 Коммитов

Автор SHA1 Сообщение Дата
kostello%netscape.com def5f64f9e Force Redraw on Enter: this is a workaround for bug#3356 & bug#3639 1999-03-12 15:40:29 +00:00
sfraser%netscape.com 84473f96fa Throw the switch so we now pay attention to the charCode in the key event. 1999-03-12 05:28:22 +00:00
buster%netscape.com e7be453ae5 deleting the last editable object in a document now causes a bogus placeholder <P>&nbsp;</P> to be added to the document. This node has the
attribute MOZ_EDITOR_BOGUS_NODE set to TRUE.  this solves the problem of when you do a SelectAll then a DEL, you don't have a cursor
or any way to set selection in the document. You do still have the problem that the nbsp is pretty narrow and the frame containing it is hard to hit
with the mouse.  We really need the "set selection to frame nearest the mouse down point" operation.

the intent is for all inserts to look for this node, and if found delete it before the insert.  likewise, all deletes will be no-ops if this node is found.
1999-03-12 02:28:24 +00:00
buster%netscape.com 10abab085e fixed a small bug. mRefNode may be nsnull. 1999-03-12 02:27:48 +00:00
mjudge%netscape.com b6027c828a reverting fix :( 1999-03-12 01:49:12 +00:00
mjudge%netscape.com fd5733ba79 fixed copy paste issue on windows, linking wrong.lib file 1999-03-12 00:01:24 +00:00
sfraser%netscape.com 4640d83543 Fix for 3630 -- terminate text and HTML strings returned from the editor. 1999-03-11 21:31:03 +00:00
sfraser%netscape.com 1f8973c082 Fix the key handling, and fix my macro for the charCode stuff 1999-03-11 19:34:28 +00:00
sfraser%netscape.com b784058886 Add SelectAll() 1999-03-11 19:33:37 +00:00
sfraser%netscape.com 97a6619823 Adapted key listener to get char code directly from event, rather than trying to do a key code conversion (#ifdeffed out until char code is there on all platforms). 1999-03-11 06:42:09 +00:00
mjudge%netscape.com e3c9b3a179 fixing windows build bustage by temporarily loading the raptorwidget_s.dll when ender.dll is loaded. temporary until repository code working 1999-03-11 00:20:27 +00:00
akkana%netscape.com 13a246a08e Change the reference to the global selection mgr to fix windows build 1999-03-11 00:08:10 +00:00
akkana%netscape.com bf40a872a6 Comment out debug prints 1999-03-10 22:50:51 +00:00
akkana%netscape.com 2920383dee Implement editor cut/copy/paste 1999-03-10 22:46:15 +00:00
akkana%netscape.com 7606e45b30 Fix Solaris build problems -- thanks to braddr & bruce @ puremagic.com 1999-03-10 22:41:18 +00:00
sfraser%netscape.com b5a8cb2fc4 Add Cut, Copy and Paste to editor interfaces and classes, with a stub implemenatioon in nsEditor. 1999-03-10 21:29:41 +00:00
kin%netscape.com 3854e3bfb8 Changed all occurences of NS_TRANSACTION_MANAGER_FACTORY_CID
and kCTransactionManagerFactoryCID to NS_TRANSACTIONMANAGER_CID
and kCTransactionManagerCID.
1999-03-10 21:27:02 +00:00
sfraser%netscape.com 40c939125e Add static to remove warning 1999-03-10 21:26:33 +00:00
kin%netscape.com bf5f23f2e0 Modified the clobber target so that it removes the dll from the bin/components directory. 1999-03-10 21:25:03 +00:00
buster%netscape.com cd54a83c26 first cut at rules delegate for text editor, will change drastically in the next week or two 1999-03-10 19:53:26 +00:00
buster%netscape.com 0c62f0bed4 creation of text nodes now supported 1999-03-10 19:51:55 +00:00
buster%netscape.com bb2bd2a108 mNewNode is a DOM Node, not a DOM Element 1999-03-10 19:51:07 +00:00
buster%netscape.com cab053f693 small fix of an off-by-one error in an assertion 1999-03-10 19:50:17 +00:00
buster%netscape.com f436abdcd6 SelectAll wired to Ctrl-A. 1999-03-10 19:49:43 +00:00
buster%netscape.com 709ac5c2c8 small interface change to InsertBreak 1999-03-10 19:49:18 +00:00
buster%netscape.com fd1334e42c improvements to InsertBreak, and first crack at adding support for rules delegate 1999-03-10 19:48:46 +00:00
buster%netscape.com 88a87e021d Implemented SelectAll.
Added nsEditor::DoInitialInsert() for doing first insert into an empty document.  Try typing into <html><body></body></html>
Added some smarts to DeleteSelectionAndCreateNode() so it only splits the selected node when appropriate (when the selection is not at offset 0 or max)

CreateElementTxn now creates text nodes as well as DOM elements
1999-03-10 19:48:13 +00:00
buster%netscape.com 9e210afb5b added nsTextEditRules 1999-03-10 19:47:34 +00:00
cmanske%netscape.com c391f0853e 2nd try to get it right in get editor factory method 1999-03-09 23:06:16 +00:00
cmanske%netscape.com ec8f15ffaf Fixed editor registration and startup problems 1999-03-09 22:52:24 +00:00
jfrancis%netscape.com 5f2a20fa5b catching up with nsComponentManager and getting rid of cout usage 1999-03-09 20:11:27 +00:00
jfrancis%netscape.com 05c077bc42 including header 1999-03-09 20:04:59 +00:00
jfrancis%netscape.com bcb97b8ac4 integrated with content iterator 1999-03-09 19:22:48 +00:00
warren%netscape.com bdcaa63028 Backed out the nsService template stuff. 1999-03-09 11:49:41 +00:00
warren%netscape.com c50687b845 nsRepository -> nsIComponentManager changes. 1999-03-09 09:44:27 +00:00
cmanske%netscape.com 84e841e009 Fixed editor classes to do autoregistration correctly and moved target directory to bin/components 1999-03-08 22:46:33 +00:00
sfraser%netscape.com 7afcbe012f Modified OutputText and OutputHTML methods to pass out nsStrings instead of nsIOutputStreams. Also fixed return values, and commented out line termination conversion in Mac outoutput. 1999-03-06 20:32:48 +00:00
mcmullen%netscape.com 2dfd0a256c Adapt to new Write() 1999-03-06 00:27:37 +00:00
cmanske%netscape.com 06356ad73a Changed editor classes to inherited model. Fixed lots of destructor warnings. 1999-03-05 21:05:35 +00:00
kostello%netscape.com ae567e408e Added Implementations for OutputHTML and OutputTXT 1999-03-04 21:53:42 +00:00
scc%netscape.com 31ff626ae9 rename |IID()| --> |GetIID()| 1999-03-03 19:48:57 +00:00
mjudge%netscape.com ae38ead5c7 fixes for selection code, batching at correct point 1999-03-03 01:51:59 +00:00
dp%netscape.com e115322998 Installing loadable components in components/ directory 1999-03-03 01:25:21 +00:00
scc%netscape.com 00a29df078 fixed for nsCOMPtr: no construction or assignment from raw COM interface pointers 1999-03-02 22:27:46 +00:00
buster%netscape.com a1a725cf0e implemented GetTextProperty -- only works for bold and italic now,
trivial to add more properties
finished first cut at SetTextProperty.  This triggers lots of crashes in
range/selection code where we're holding onto a stale frame pointer (at
least, that's my best guess.)
synched with Charlie's change-o-rama
added an assert in DeleteTextTxn::Init() checking aNumCharsToDelete vs.
0
  NS_ASSERTION(0!=aNumCharsToDelete, "bad arg, numCharsToDelete");
if the number of chars to delete is 0, we shouldn't be creating a
transaction at all.  I had never seen this condition arise before
Charlie's checkin, I don't know if he introduced it or if it was a
latent bug I just never tripped over before.
1999-03-02 07:52:41 +00:00
cmanske%netscape.com 7aca17a8cb Implemented nsHTMLEditor. Changed prototypes to be use NS_IMETHOD and NS_IMETHODIMP. Started table editing transactions 1999-03-02 05:30:53 +00:00
cmanske%netscape.com e83bbb1e19 New files for nsHTMLEditor and table editing transactions (not working yet) 1999-03-01 19:54:47 +00:00
ebina%netscape.com 0893363a0b Changing RegisterFactory to use the new API. 1999-02-26 15:59:52 +00:00
warren%netscape.com 97781f4c14 Changes for RDF component registration using nsRepository. Also changed args to NSGetFactory and friends. 1999-02-26 10:17:14 +00:00
mcafee%netscape.com 57eb5dae9a Adding do_QueryInterface() to fix Solaris/nxCOMPtr ambiguity. 1999-02-26 03:50:37 +00:00