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

407 Коммитов

Автор SHA1 Сообщение Дата
mjudge%netscape.com 2c168c74ff fixed selection results after bold/italics. 4593 bug. simply collapsed range and extended it to take up the whole new range 1999-04-08 01:30:05 +00:00
mjudge%netscape.com 23ef64c0ed adding batch changes around editor BeginTransaction. bug 4593 1999-04-08 01:28:33 +00:00
akkana%netscape.com 90b932baba Cleaner addendum to the fix for 4661 1999-04-08 00:54:32 +00:00
akkana%netscape.com b67d941c43 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 8f9574792d Removing clipboard define comment. 1999-04-07 06:54:15 +00:00
mcafee%netscape.com 7e09613cf6 Finishing clipboard ifdef so we can remove the old clipboard. 1999-04-07 03:56:07 +00:00
rods%netscape.com edfd55e9b0 Commented out the NEW_CLIPBOARD_SUPPORT 1999-04-07 01:35:49 +00:00
rods%netscape.com ff72724f97 Turning on new clipboard support 1999-04-06 23:05:59 +00:00
rods%netscape.com 81b6a86d87 Turning on new Clipboard support 1999-04-06 23:01:55 +00:00
rods%netscape.com 5641718c90 Upgraded to implement new methods in D&D interface 1999-04-06 20:24:09 +00:00
akkana%netscape.com ca10e8f662 Fix some ordering problems in image insertion; make sure we end the transaction 1999-04-06 19:49:33 +00:00
buster%netscape.com 180f113b89 RemoveTextPropery works in all cases now. 1999-04-06 18:21:43 +00:00
jband%netscape.com b0859a052d fixed typo so no extra .pdb files get left behind 1999-04-06 00:10:10 +00:00
buster%netscape.com e879c875d9 fixed bug 4517
WIP on remove text attributes
1999-04-05 20:52:29 +00:00
jfrancis%netscape.com 3d9334b888 bug fix: typing didn't work 1999-04-05 19:21:22 +00:00
jfrancis%netscape.com 26aece12e6 redoing rules architecture 1999-04-05 17:21:59 +00:00
jfrancis%netscape.com 30e32bddcf First Checked In. 1999-04-05 17:21:14 +00:00
buster%netscape.com f51ac88437 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 4041b3fb20 fixed some broken asserts 1999-04-04 20:10:24 +00:00
buster%netscape.com 2246607975 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
buster%netscape.com d645402f94 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.
1999-04-04 17:59:09 +00:00
mcafee%netscape.com 0e14e1c1b8 Newline at end of file. 1999-04-03 09:28:08 +00:00
kin%netscape.com 298507fe9e Changes to build the entire editor by default, unless DISABLE_EDITOR is defined. 1999-04-03 00:03:54 +00:00
mcafee%netscape.com c5f7849c47 Initializing some variables, protecting a null reference. 1999-04-02 01:34:05 +00:00
sfraser%netscape.com 59a254849e Call the new presshell->SetCaretEnabled() call to show the caret when editing. 1999-04-02 00:01:31 +00:00
buster%netscape.com a4f292781b GetTextProperty is now content-based, not style-based 1999-04-01 19:28:48 +00:00
buster%netscape.com a5956d921d needed to include "nsCoord.h" in mixed case, not "nscoord" 1999-04-01 19:26:27 +00:00
buster%netscape.com 2a13b7f872 initial checkin. 1999-04-01 18:40:35 +00:00
buster%netscape.com 4c59bda1d7 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 a4685d8bdf Fixed up new ifdef'ed clipboard support 1999-04-01 14:28:13 +00:00
kin%netscape.com 7eeb164a7e Removed nsITextServicesDocumentInternal.h. 1999-03-31 22:10:42 +00:00
kin%netscape.com 763241f9f6 Initial checkin of file. 1999-03-31 19:26:55 +00:00
kin%netscape.com 5aae071d07 Initial checkin of files. 1999-03-31 19:25:05 +00:00
ramiro%netscape.com de0f3f737c delete vs. delete[] vs. free fixes.
Thanks to "Bruce Mitchener, Jr." <bruce@cybersight.com for finding all these
and making patches.
1999-03-30 05:26:59 +00:00
akkana%netscape.com c1f9238feb Editor: Add Insert Link and Image 1999-03-29 22:01:26 +00:00
jfrancis%netscape.com 807ebf0894 don't drop tab keys 1999-03-29 08:02:50 +00:00
jfrancis%netscape.com f538386093 seperating out html edit rules from text edit rules 1999-03-29 08:02:05 +00:00
jfrancis%netscape.com a92f5e21c9 Adding nsHTMLEditRules.cpp 1999-03-29 08:01:21 +00:00
jfrancis%netscape.com a9e8aaa72b First Checked In. 1999-03-29 06:21:01 +00:00
joki%netscape.com 5abbeab8a7 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 9bb56700e8 Minor changes to call to new clipboard 1999-03-26 15:49:28 +00:00
mcafee%netscape.com 330f22b0c2 Renamed GetTransferable() to GetData() 1999-03-25 23:39:03 +00:00
mcafee%netscape.com 4627594e0b initializing a variable to zero. 1999-03-24 09:08:24 +00:00
mcafee%netscape.com 9bd648f051 Checking for null references on clipboard, trans (gtk/unix). 1999-03-24 01:43:46 +00:00
rods%netscape.com 03fef4236a 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 eec13f4b56 Add hard-coded alt-I for testing insert html 1999-03-22 22:10:29 +00:00
jfrancis%netscape.com 709b2b5918 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 21fe067546 Added support for basic Japanese input on Win32 1999-03-19 23:36:20 +00:00
buster%netscape.com 76b4113a16 small change to match change in semantics in nsIDOMRange::GetCommonParent 1999-03-18 21:55:23 +00:00
leaf%mozilla.org 0a0f5ac00f Landing nspr library name change, and plevent function call change. 1999-03-17 21:32:03 +00:00