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

156 Коммитов

Автор SHA1 Сообщение Дата
bruce%cybersight.com f872183b94 Fix for compile error on AIX. Need to define inline functions before calling them. Reviewed by akkana. 1999-04-13 02:28:11 +00:00
sfraser%netscape.com f0acea2009 Updated to conform to new IDL-ized selection interfaces. 1999-04-13 01:33:32 +00:00
akkana%netscape.com ee178adf4a turn off annoying debug print 1999-04-12 22:37:20 +00:00
jdunn%netscape.com 502899b64d on AIX (and I am suspecting HPUX) nsDerivedSafe needs to be a friend in
order to access the private constructor.
1999-04-12 20:14:20 +00:00
jfrancis%netscape.com 88527c7d24 attempting to fix unix build 1999-04-12 14:10:24 +00:00
jfrancis%netscape.com 0b0035a95c checkpointing html typing rules 1999-04-12 12:01:32 +00:00
buster%netscape.com f8f342f19a vastly improved RemoveTextProperty
turned off debug output
1999-04-11 22:55:40 +00:00
buster%netscape.com 4f6edce3cd added some debugging output 1999-04-11 22:53:17 +00:00
mjudge%netscape.com 0f03b6a5f0 adding batch changes around editor BeginTransaction. bug 4593 1999-04-08 01:28:33 +00:00
akkana%netscape.com 834d6dd1ed Cleaner addendum to the fix for 4661 1999-04-08 00:54:32 +00:00
akkana%netscape.com 84380c250e 4661: Fix win32 crasher inserting an image. Approved by chofmann.
Split nsEditor::DeleteSelectionAndCreateNode into two parts,
so that routines like InsertImage which need to set attributes
on the new node before inserting into the tree can do so.
This is somewhat temporary, since the current method isn't undo-able;
undo will be implemented after M4.
1999-04-08 00:46:10 +00:00
mcafee%netscape.com c98d0e698a Removing clipboard define comment. 1999-04-07 06:54:15 +00:00
mcafee%netscape.com 616c553b24 Finishing clipboard ifdef so we can remove the old clipboard. 1999-04-07 03:56:07 +00:00
rods%netscape.com ac37096cb3 Commented out the NEW_CLIPBOARD_SUPPORT 1999-04-07 01:35:49 +00:00
rods%netscape.com 46393b489c Turning on new clipboard support 1999-04-06 23:05:59 +00:00
rods%netscape.com 1d0886bcf6 Turning on new Clipboard support 1999-04-06 23:01:55 +00:00
rods%netscape.com 946396a03f Upgraded to implement new methods in D&D interface 1999-04-06 20:24:09 +00:00
akkana%netscape.com f3c2fcdd4a Fix some ordering problems in image insertion; make sure we end the transaction 1999-04-06 19:49:33 +00:00
buster%netscape.com 8c7af6070a RemoveTextPropery works in all cases now. 1999-04-06 18:21:43 +00:00
buster%netscape.com 8b2ac0cbbc fixed bug 4517
WIP on remove text attributes
1999-04-05 20:52:29 +00:00
jfrancis%netscape.com fffd5158c3 redoing rules architecture 1999-04-05 17:21:59 +00:00
jfrancis%netscape.com 7c1be30e3d First Checked In. 1999-04-05 17:21:14 +00:00
buster%netscape.com 73f3b2da71 Improved setting text property for next type-in (that is, setting text properties with a collapsed selection.) Bold, italic, and underline
all work.  Better error checking, and factored out some common code.
1999-04-04 20:10:39 +00:00
buster%netscape.com 332345e744 fixed some broken asserts 1999-04-04 20:10:24 +00:00
buster%netscape.com 16027c9454 implemented simple cases of RemoveTextProperty. other cases are no-op'd now.
added aFirst out param to GetTextProperty, so the caller can know if the first character has the property in the case of aAny=true and aAll=false.
fixed a bunch of places where result was being used incorrectly as a return val from do_QueryInterface
some minor undo/redo fixes to split and join of interior nodes.
1999-04-04 18:01:35 +00:00
mcafee%netscape.com b459733e17 Newline at end of file. 1999-04-03 09:28:08 +00:00
mcafee%netscape.com 6b79f86be1 Initializing some variables, protecting a null reference. 1999-04-02 01:34:05 +00:00
sfraser%netscape.com a84dcaa401 Call the new presshell->SetCaretEnabled() call to show the caret when editing. 1999-04-02 00:01:31 +00:00
buster%netscape.com 7462debe8b needed to include "nsCoord.h" in mixed case, not "nscoord" 1999-04-01 19:26:27 +00:00
buster%netscape.com 990f624122 initial checkin. 1999-04-01 18:40:35 +00:00
buster%netscape.com 52bb18a74f As a reminder, we decided to do this based strictly content. Some support for style-based text properties is written, but not used
anywhere any more.

* Cleaned up split and join undo/redo.
* Added TypeInState, a data struct that remembers things about text properties for collapsed selections, so you can type
* Ctrl-B with an insertion point and the next character will be bold.
* Added all the logic to handle inline vs. block elements when setting text properties.
* Added some support for italic and underline as well.  Adding these things is pretty easy now.  Ctrl-B, Ctrl-I, Ctrl-U for testing bold, italic, underline.
* Added all the logic to make sure we only add style tags where they're needed, so you should never get the same style tag nested within itself, except as needed for block elements.
* Added methods for testing a node to see if a particular style is set.  This isn't 100% done yet, but with very little work we could have toolbar buttons that respond to selection changed notification that show the state of bold, italic, underline, etc. in real time.  Supports tri-state:  whole selection is bold, some of selection is bold, none of selection is bold, ...
* Fully undoable and redoable.
* Added some debug printfs to transactions and editors.  all controlled by a gNoisy static in each module.  helps me track down undo/redo problems.  if the output bugs people enough, I'll shut it off and re-enable it in my local tree.

Noticably missing:  make un-bold, make un-italic, etc.  This is coming soon.
1999-04-01 17:58:07 +00:00
rods%netscape.com 6eb99d23f2 Fixed up new ifdef'ed clipboard support 1999-04-01 14:28:13 +00:00
kin%netscape.com a886d08255 Initial checkin of file. 1999-03-31 19:26:55 +00:00
kin%netscape.com 78383c59cf Initial checkin of files. 1999-03-31 19:25:05 +00:00
akkana%netscape.com cf7607381c Editor: Add Insert Link and Image 1999-03-29 22:01:26 +00:00
jfrancis%netscape.com 22ec10b544 don't drop tab keys 1999-03-29 08:02:50 +00:00
jfrancis%netscape.com 0db3d1ee04 seperating out html edit rules from text edit rules 1999-03-29 08:02:05 +00:00
jfrancis%netscape.com c7f3ede1e6 First Checked In. 1999-03-29 06:21:01 +00:00
joki%netscape.com e39e13cf18 Changing api uses in editor, rdf, and xpfe to match DOM2 api name/param changes. 1999-03-28 22:27:38 +00:00
rods%netscape.com 00af88c97a Minor changes to call to new clipboard 1999-03-26 15:49:28 +00:00
mcafee%netscape.com 2813616d59 Renamed GetTransferable() to GetData() 1999-03-25 23:39:03 +00:00
mcafee%netscape.com dd87f3c4fb initializing a variable to zero. 1999-03-24 09:08:24 +00:00
mcafee%netscape.com f75b5055fd Checking for null references on clipboard, trans (gtk/unix). 1999-03-24 01:43:46 +00:00
rods%netscape.com cb5eefe915 Added code for switching over Clipboard support to new classes
At the moment the are ifdef'ed out
1999-03-23 15:45:58 +00:00
akkana%netscape.com 5850dbaca8 Add hard-coded alt-I for testing insert html 1999-03-22 22:10:29 +00:00
jfrancis%netscape.com 1d6d98a5e5 bug 4057: fix is in layout; here I'm removing the old workaround code 1999-03-22 09:04:06 +00:00
tague%netscape.com 6e19645586 Added support for basic Japanese input on Win32 1999-03-19 23:36:20 +00:00
buster%netscape.com af5243998a split and join now properly remember which content gets deleted, and which content remains in the tree
split and join now properly set selection to the remaining node, at the proper offset.
fixes bugs 3910 3881, with approval from chofmann
1999-03-17 20:56:10 +00:00
buster%netscape.com a6b14ae03b I fixed the content twiddling part of bug 3778. Mike has a fix for the display part of it in his tree, but determined the risk didn't
justify the benefit.  This is partly true because he and I would have had to integrate tonight before checking in, which we thought
presented some additional risk.  In any event, this bug is fixed for all cases except when the user hits enter at the end of the
document.  That is the only case in text editing when the selection will not render correctly.

Some related problems got fixed as a side benefit of my code changes.  I filed bug 3896.
1999-03-17 06:13:46 +00:00
buster%netscape.com 53b3380a59 fixed join.
made a special case for typing with BR as the selection (as after an InsertBreak.)
made DEL and BACKSPACE at the beginning and end of a text node
fixes bugs 3742 and 3756 (with permission from choff and gkostello)
1999-03-16 16:38:09 +00:00