jfrancis%netscape.com
427a56fc02
merging in rules work with Simon's selection changes
...
git-svn-id: svn://10.0.0.236/trunk@27324 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-13 13:35:08 +00:00
bruce%cybersight.com
0b3e46b83a
Fix for compile error on AIX. Need to define inline functions before calling them. Reviewed by akkana.
...
git-svn-id: svn://10.0.0.236/trunk@27294 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-13 02:28:11 +00:00
sfraser%netscape.com
bbda90e2b0
Updated to conform to new IDL-ized selection interfaces.
...
git-svn-id: svn://10.0.0.236/trunk@27289 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-13 01:33:32 +00:00
akkana%netscape.com
32e728b35e
turn off annoying debug print
...
git-svn-id: svn://10.0.0.236/trunk@27227 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-12 22:37:20 +00:00
jdunn%netscape.com
6a8295e0a5
on AIX (and I am suspecting HPUX) nsDerivedSafe needs to be a friend in
...
order to access the private constructor.
git-svn-id: svn://10.0.0.236/trunk@27181 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-12 20:14:20 +00:00
jfrancis%netscape.com
2b679b5ef6
attempting to fix unix build
...
git-svn-id: svn://10.0.0.236/trunk@27157 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-12 14:10:24 +00:00
jfrancis%netscape.com
c6d12c638f
checkpointing html typing rules
...
git-svn-id: svn://10.0.0.236/trunk@27152 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-12 12:01:32 +00:00
buster%netscape.com
64e11a9d2f
vastly improved RemoveTextProperty
...
turned off debug output
git-svn-id: svn://10.0.0.236/trunk@27115 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-11 22:55:40 +00:00
buster%netscape.com
23cdcfcbf2
added some debugging output
...
git-svn-id: svn://10.0.0.236/trunk@27114 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-11 22:53:17 +00:00
mjudge%netscape.com
3f9c7d2ca8
adding batch changes around editor BeginTransaction. bug 4593
...
git-svn-id: svn://10.0.0.236/trunk@26770 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-08 01:28:33 +00:00
akkana%netscape.com
202959b6e8
Cleaner addendum to the fix for 4661
...
git-svn-id: svn://10.0.0.236/trunk@26767 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-08 00:54:32 +00:00
akkana%netscape.com
c16be50ebc
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.
git-svn-id: svn://10.0.0.236/trunk@26766 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-08 00:46:10 +00:00
mcafee%netscape.com
b6293c712f
Removing clipboard define comment.
...
git-svn-id: svn://10.0.0.236/trunk@26727 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-07 06:54:15 +00:00
mcafee%netscape.com
d98f8fccf1
Finishing clipboard ifdef so we can remove the old clipboard.
...
git-svn-id: svn://10.0.0.236/trunk@26678 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-07 03:56:07 +00:00
rods%netscape.com
0cd1a45ea8
Commented out the NEW_CLIPBOARD_SUPPORT
...
git-svn-id: svn://10.0.0.236/trunk@26647 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-07 01:35:49 +00:00
rods%netscape.com
1b986dbb54
Turning on new clipboard support
...
git-svn-id: svn://10.0.0.236/trunk@26586 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 23:05:59 +00:00
rods%netscape.com
b60b9cf5ae
Turning on new Clipboard support
...
git-svn-id: svn://10.0.0.236/trunk@26584 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 23:01:55 +00:00
rods%netscape.com
9748b9c0c4
Upgraded to implement new methods in D&D interface
...
git-svn-id: svn://10.0.0.236/trunk@26516 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 20:24:09 +00:00
akkana%netscape.com
fb31344db8
Fix some ordering problems in image insertion; make sure we end the transaction
...
git-svn-id: svn://10.0.0.236/trunk@26508 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 19:49:33 +00:00
buster%netscape.com
e124ff90ed
RemoveTextPropery works in all cases now.
...
git-svn-id: svn://10.0.0.236/trunk@26481 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 18:21:43 +00:00
buster%netscape.com
a29a790970
fixed bug 4517
...
WIP on remove text attributes
git-svn-id: svn://10.0.0.236/trunk@26317 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-05 20:52:29 +00:00
jfrancis%netscape.com
f104246088
redoing rules architecture
...
git-svn-id: svn://10.0.0.236/trunk@26297 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-05 17:21:59 +00:00
jfrancis%netscape.com
6e8962e404
First Checked In.
...
git-svn-id: svn://10.0.0.236/trunk@26296 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-05 17:21:14 +00:00
buster%netscape.com
937b6ed03a
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.
git-svn-id: svn://10.0.0.236/trunk@26223 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-04 20:10:39 +00:00
buster%netscape.com
803f3d9473
fixed some broken asserts
...
git-svn-id: svn://10.0.0.236/trunk@26222 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-04 20:10:24 +00:00
buster%netscape.com
baaca59f79
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.
git-svn-id: svn://10.0.0.236/trunk@26218 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-04 18:01:35 +00:00
mcafee%netscape.com
3b4b21b2a6
Newline at end of file.
...
git-svn-id: svn://10.0.0.236/trunk@26139 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-03 09:28:08 +00:00
mcafee%netscape.com
b65f92a67b
Initializing some variables, protecting a null reference.
...
git-svn-id: svn://10.0.0.236/trunk@25983 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-02 01:34:05 +00:00
sfraser%netscape.com
e51ed48fbd
Call the new presshell->SetCaretEnabled() call to show the caret when
...
editing.
git-svn-id: svn://10.0.0.236/trunk@25956 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-02 00:01:31 +00:00
buster%netscape.com
5b08ebbd5d
needed to include "nsCoord.h" in mixed case, not "nscoord"
...
git-svn-id: svn://10.0.0.236/trunk@25890 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 19:26:27 +00:00
buster%netscape.com
726862e213
initial checkin.
...
git-svn-id: svn://10.0.0.236/trunk@25880 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 18:40:35 +00:00
buster%netscape.com
0fe8e1324d
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.
git-svn-id: svn://10.0.0.236/trunk@25869 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 17:58:07 +00:00
rods%netscape.com
3d9eafaa3c
Fixed up new ifdef'ed clipboard support
...
git-svn-id: svn://10.0.0.236/trunk@25848 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 14:28:13 +00:00
kin%netscape.com
d581e6208f
Initial checkin of file.
...
git-svn-id: svn://10.0.0.236/trunk@25725 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-31 19:26:55 +00:00
kin%netscape.com
143641b144
Initial checkin of files.
...
git-svn-id: svn://10.0.0.236/trunk@25721 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-31 19:25:05 +00:00
akkana%netscape.com
dd6ab917f7
Editor: Add Insert Link and Image
...
git-svn-id: svn://10.0.0.236/trunk@25455 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-29 22:01:26 +00:00
jfrancis%netscape.com
add9ef7ae5
don't drop tab keys
...
git-svn-id: svn://10.0.0.236/trunk@25440 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-29 08:02:50 +00:00
jfrancis%netscape.com
46bf828d41
seperating out html edit rules from text edit rules
...
git-svn-id: svn://10.0.0.236/trunk@25439 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-29 08:02:05 +00:00
jfrancis%netscape.com
bdd8af18e1
First Checked In.
...
git-svn-id: svn://10.0.0.236/trunk@25437 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-29 06:21:01 +00:00
joki%netscape.com
e92adc111d
Changing api uses in editor, rdf, and xpfe to match DOM2 api name/param changes.
...
git-svn-id: svn://10.0.0.236/trunk@25420 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-28 22:27:38 +00:00
rods%netscape.com
1e195c10d5
Minor changes to call to new clipboard
...
git-svn-id: svn://10.0.0.236/trunk@25220 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-26 15:49:28 +00:00
mcafee%netscape.com
78f453eef5
Renamed GetTransferable() to GetData()
...
git-svn-id: svn://10.0.0.236/trunk@25139 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-25 23:39:03 +00:00
mcafee%netscape.com
6a5c4e0f48
initializing a variable to zero.
...
git-svn-id: svn://10.0.0.236/trunk@24988 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-24 09:08:24 +00:00
mcafee%netscape.com
83d83ef5df
Checking for null references on clipboard, trans (gtk/unix).
...
git-svn-id: svn://10.0.0.236/trunk@24940 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-24 01:43:46 +00:00
rods%netscape.com
f82195869f
Added code for switching over Clipboard support to new classes
...
At the moment the are ifdef'ed out
git-svn-id: svn://10.0.0.236/trunk@24843 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-23 15:45:58 +00:00
akkana%netscape.com
8d57bb62e9
Add hard-coded alt-I for testing insert html
...
git-svn-id: svn://10.0.0.236/trunk@24708 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-22 22:10:29 +00:00
jfrancis%netscape.com
6a6a648796
bug 4057: fix is in layout; here I'm removing the old workaround code
...
git-svn-id: svn://10.0.0.236/trunk@24664 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-22 09:04:06 +00:00
tague%netscape.com
b473550518
Added support for basic Japanese input on Win32
...
git-svn-id: svn://10.0.0.236/trunk@24498 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-19 23:36:20 +00:00
buster%netscape.com
3ee55b4626
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
git-svn-id: svn://10.0.0.236/trunk@24272 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-17 20:56:10 +00:00
buster%netscape.com
041f73c845
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.
git-svn-id: svn://10.0.0.236/trunk@24254 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-17 06:13:46 +00:00