rickg%netscape.com
2dd2265b49
sync with nsString2 API
...
git-svn-id: svn://10.0.0.236/trunk@28234 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 07:20:21 +00:00
rods%netscape.com
143378c1df
Added additional comments for Paste
...
git-svn-id: svn://10.0.0.236/trunk@28055 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 19:35:55 +00:00
rods%netscape.com
12e2328be7
Switched over nsIGenericTransferable
...
and added D&D Support
git-svn-id: svn://10.0.0.236/trunk@27985 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-17 13:52:28 +00:00
rods%netscape.com
5b35f2fb38
Switched over to new nsIGenericTransferable
...
git-svn-id: svn://10.0.0.236/trunk@27984 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-17 13:51:42 +00:00
bruce%cybersight.com
76b73c5a60
Add new line for native unix compilers.
...
git-svn-id: svn://10.0.0.236/trunk@27971 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-17 02:32:32 +00:00
bruce%cybersight.com
452caf2517
Added blank line for native compilers.
...
git-svn-id: svn://10.0.0.236/trunk@27935 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 22:34:54 +00:00
sfraser%netscape.com
e29c6d9d95
Fix Mac build bustage
...
git-svn-id: svn://10.0.0.236/trunk@27899 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 20:26:29 +00:00
buster%netscape.com
1b64f032e0
I think this will fix Mac build.
...
git-svn-id: svn://10.0.0.236/trunk@27880 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 19:34:13 +00:00
buster%netscape.com
a907540332
factored out re-parenting of content into MoveContentIntoNewParent
...
WIP on font handling.
git-svn-id: svn://10.0.0.236/trunk@27862 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 18:29:12 +00:00
sfraser%netscape.com
e6296a153a
Adapt to fixed selection interface
...
git-svn-id: svn://10.0.0.236/trunk@27662 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 20:20:12 +00:00
buster%netscape.com
149ccd1c08
initial check in for nsITextEditor unit test
...
git-svn-id: svn://10.0.0.236/trunk@27560 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 07:01:24 +00:00
buster%netscape.com
d7cdf20fb8
* beginnings of font handling. WIP, I did a big merge today and I'm checking in to synch up, not to announce new functionality here.
...
* added TextEditorTest.cpp, a unit test module for nsTextEditor. It's use is actually commented out since my checkin is happening so late due
to all-day build bustage, and I don't have a Mac handy to verify. With someone's Mac help tomorrow, I can turn it on.
* some minor bug fixes to property handling
git-svn-id: svn://10.0.0.236/trunk@27556 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 06:06:33 +00:00
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
af245251eb
fixed selection results after bold/italics. 4593 bug. simply collapsed range and extended it to take up the whole new range
...
git-svn-id: svn://10.0.0.236/trunk@26771 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-08 01:30:05 +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
48b2757fd1
bug fix: typing didn't work
...
git-svn-id: svn://10.0.0.236/trunk@26307 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-05 19:21:22 +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
7f4e37a3db
GetTextProperty is now content-based, not style-based
...
git-svn-id: svn://10.0.0.236/trunk@25892 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 19:28:48 +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
ramiro%netscape.com
52ef5e02cd
delete vs. delete[] vs. free fixes.
...
Thanks to "Bruce Mitchener, Jr." <bruce@cybersight.com for finding all these
and making patches.
git-svn-id: svn://10.0.0.236/trunk@25592 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-30 05:26:59 +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