akkana%netscape.com
29ca4c23bc
Fix memory leak: use nsCOMPtr for frame selection everywhere
...
git-svn-id: svn://10.0.0.236/trunk@19624 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 01:00:34 +00:00
akkana%netscape.com
d85b082391
Fix typein
...
git-svn-id: svn://10.0.0.236/trunk@19611 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:19:30 +00:00
akkana%netscape.com
98b2973669
Rename an ifdef
...
git-svn-id: svn://10.0.0.236/trunk@19067 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 01:05:39 +00:00
akkana%netscape.com
52b18e6064
Implement a new interface, nsIDOMSelection, intended to become the
...
external interface for selection (to be IDL-ified later).
Fix some editor bugs:
- Advance the cursor on text insert (so text is inserted in the right order)
- Make DeleteSelection in the editor call the actual selection
- Make DeleteSelection update the frames' notion of the selection
git-svn-id: svn://10.0.0.236/trunk@19029 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 18:57:56 +00:00
buster%netscape.com
9d27388bf5
fixed some UMR's due to mRefCnt being uninitialized. This fixes some memory leaks.
...
git-svn-id: svn://10.0.0.236/trunk@18934 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 19:45:23 +00:00
buster%netscape.com
956232ee80
put in crude support for aggregating type-ins across selection changes.
...
this needs to get beefed up to handle offsets within elements, which we'll
do as soon as selection is set properly following an insertion.
git-svn-id: svn://10.0.0.236/trunk@18931 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 19:00:14 +00:00
buster%netscape.com
f2aea9aa2d
fixed a minor problem with merging type-in transactions.
...
git-svn-id: svn://10.0.0.236/trunk@18925 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 17:19:24 +00:00
buster%netscape.com
0986087710
fixed a minor bug where shortcut keys were being declared as "handled" even if
...
Ctrl wasn't pressed, so you couldn't type in the character.
git-svn-id: svn://10.0.0.236/trunk@18922 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 17:06:42 +00:00
brade%netscape.com
84902e3275
File Removed.
...
git-svn-id: svn://10.0.0.236/trunk@18920 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 17:01:19 +00:00
pinkerton%netscape.com
a06fe2c0dd
comment out section that doesn't compile to fix bustage.
...
git-svn-id: svn://10.0.0.236/trunk@18919 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 16:43:07 +00:00
pinkerton%netscape.com
61a3b41d8e
comment out routine that doesn't compile to fix bustage.
...
git-svn-id: svn://10.0.0.236/trunk@18918 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 16:42:47 +00:00
buster%netscape.com
ea9a76f945
changed nsIEditor to enable undo separately from Init
...
work in progress API changes to nsIEditor and nsEditor
git-svn-id: svn://10.0.0.236/trunk@18914 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 06:02:53 +00:00
cmanske%netscape.com
0c870ba5af
Changed Windows makefile to use BASE directory instead of CORE
...
git-svn-id: svn://10.0.0.236/trunk@18664 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-27 00:00:37 +00:00
mcafee%netscape.com
2461c1d3c3
Renaming editor/core to editor/base
...
git-svn-id: svn://10.0.0.236/trunk@18662 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-26 23:59:14 +00:00
buster%netscape.com
c4f9290ed2
checked in wrong version of editor previously. This is the right version.
...
git-svn-id: svn://10.0.0.236/trunk@18541 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-26 00:38:34 +00:00
buster%netscape.com
817b2a47d9
DeleteSelection now walks the content tree, so it can handle delete at the
...
end of a node and backspace at the beginning of a node
git-svn-id: svn://10.0.0.236/trunk@18540 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-26 00:37:42 +00:00
amusil%netscape.com
1a6a7a52aa
New Service Manager changes
...
git-svn-id: svn://10.0.0.236/trunk@18481 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-25 11:08:18 +00:00
amusil%netscape.com
5868424a36
Added support for new service manager
...
git-svn-id: svn://10.0.0.236/trunk@18479 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-25 10:55:35 +00:00
buster%netscape.com
cd2edf3e7c
added some basic tree navigation methods.
...
implemented part of backspacing from the beginning of a text node.
git-svn-id: svn://10.0.0.236/trunk@18363 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 22:58:15 +00:00
buster%netscape.com
652e32c887
better delete now that selection offsets are real.
...
git-svn-id: svn://10.0.0.236/trunk@18329 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 19:44:46 +00:00
buster%netscape.com
2c02dfaabf
fixed debug asserts to allow for offset=count, since offsets represent
...
the slots between content.
git-svn-id: svn://10.0.0.236/trunk@18326 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 19:06:27 +00:00
buster%netscape.com
53a4f6ba7d
delete range now iterates through the selection properly.
...
fixed an xpcom usage problem with macros...ALWAYS use {} on your if statements!
git-svn-id: svn://10.0.0.236/trunk@18325 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 19:05:08 +00:00
buster%netscape.com
048be49b69
made split test work with Ctrl-S only, so now you can type "s"
...
git-svn-id: svn://10.0.0.236/trunk@18324 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 19:03:23 +00:00
buster%netscape.com
62018679d8
updated to new nsCOMPtr usage
...
git-svn-id: svn://10.0.0.236/trunk@18315 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 16:55:59 +00:00
buster%netscape.com
f1bacd2e07
made GetIsTransient return false by default, so most transactions don't need to implement GetIsTransient
...
made delete and backspace do the right thing (testing hacks removed)
git-svn-id: svn://10.0.0.236/trunk@18304 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 15:40:31 +00:00
mcafee%netscape.com
dd4c94c66e
Removed hard-coded link line, use the one in rules.mk instead.
...
git-svn-id: svn://10.0.0.236/trunk@18280 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 10:03:32 +00:00
mjudge%netscape.com
bbddba9557
fixing build bustages
...
git-svn-id: svn://10.0.0.236/trunk@18259 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 03:50:22 +00:00
mjudge%netscape.com
da1cc58b72
fixing build bustage
...
git-svn-id: svn://10.0.0.236/trunk@18253 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 03:18:51 +00:00
mjudge%netscape.com
7a09e861da
fix build
...
git-svn-id: svn://10.0.0.236/trunk@18252 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 02:06:06 +00:00
akkana%netscape.com
826d1b136d
Try a different form of casting to keep both Linux and the Mac happy
...
git-svn-id: svn://10.0.0.236/trunk@18197 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-21 21:10:12 +00:00
buster%netscape.com
902ec60ee1
factored editor so a request (public) is separate from building the txn for that request (private)
...
added some debug code to transactions
git-svn-id: svn://10.0.0.236/trunk@18190 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-21 19:44:26 +00:00
akkana%netscape.com
9f4dfbc49b
Fix nsCOMPtr casting build bustage
...
git-svn-id: svn://10.0.0.236/trunk@18188 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-21 19:31:57 +00:00
buster%netscape.com
4490a6149a
bug fixes to delete range, plus some debugging printf's
...
git-svn-id: svn://10.0.0.236/trunk@18126 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-21 02:29:52 +00:00
buster%netscape.com
801958a339
starting to move towards a slimmed down nsIEditor.h
...
git-svn-id: svn://10.0.0.236/trunk@18123 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-21 01:53:10 +00:00
buster%netscape.com
b48e2caf7c
* added TransactionFactory. Editor no longer allocates its own transactions. This gives us an oppurtunity for a recycler.
...
* added DeleteSelection to editor. Doesn't work very well yet because selection is giving me random offsets into text content.
* lots of work in the various transactions.
git-svn-id: svn://10.0.0.236/trunk@18122 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-21 01:51:09 +00:00
jfrancis%netscape.com
4891b6afd8
added a bunch of editor stuff for Steve
...
git-svn-id: svn://10.0.0.236/trunk@18121 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-21 01:46:52 +00:00
mjudge%netscape.com
1e63a95689
changes to unload my library correctly
...
git-svn-id: svn://10.0.0.236/trunk@18107 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-21 00:56:18 +00:00
sfraser%netscape.com
42d6e74fbe
Reinstate buster's changes, with a fix for the nsCOMPtr problem.
...
git-svn-id: svn://10.0.0.236/trunk@17796 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-15 00:03:41 +00:00
buster%netscape.com
045c82cdbf
backed out Merge functionality because it doesn't compile on Mac.
...
git-svn-id: svn://10.0.0.236/trunk@17752 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-14 21:52:08 +00:00
buster%netscape.com
162941cddc
added pres shell to nsIEditor::Init
...
git-svn-id: svn://10.0.0.236/trunk@17748 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-14 19:41:38 +00:00
dcone%netscape.com
d6dd039681
Added files DeleteRangeTxn.cpp DeleteNodeTxn.cpp
...
git-svn-id: svn://10.0.0.236/trunk@17741 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-14 18:19:19 +00:00
buster%netscape.com
dceac9452d
added DeleteElementTxn and DeleteRangeTxn, and added merging of text insertions.
...
added some better error checking on all transactions.
git-svn-id: svn://10.0.0.236/trunk@17740 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-14 18:02:45 +00:00
pinkerton%netscape.com
efa104cbfb
fixes for SetDOMAttribute --> SetAttribute change.
...
git-svn-id: svn://10.0.0.236/trunk@17591 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-12 18:20:58 +00:00
buster%netscape.com
8a19fb26be
shuffled around the responsibilities of core editing objects.
...
The key listener is now mostly a mapper of key events to editor actions. Soon, this should be 100% true.
The editor builds transactions that are themselves intelligent. The editor makes very few DOM calls itself.
It relies on the transactions to do most of the actual editing.
git-svn-id: svn://10.0.0.236/trunk@17518 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-11 22:47:23 +00:00
buster%netscape.com
97e2d5d092
implemented joinNode. expect this and similar methods to move into editor.cpp
...
git-svn-id: svn://10.0.0.236/trunk@17495 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-11 19:06:37 +00:00
mcmullen%netscape.com
da1a7d5331
Remove illegal TextTxn:: within TextTxn class (this is illegal in C++ unless you have a nested class with the same name). This fixes Macintosh build bustage.
...
git-svn-id: svn://10.0.0.236/trunk@17445 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-09 02:41:35 +00:00
rickg%netscape.com
977421c9eb
sync up with mods to the parser
...
git-svn-id: svn://10.0.0.236/trunk@17435 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-09 01:11:37 +00:00
buster%netscape.com
be4b7d375b
better code factoring, so split and join base methods can be reused
...
git-svn-id: svn://10.0.0.236/trunk@17428 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-09 00:24:48 +00:00
dcone%netscape.com
a845fe996f
Added splitelementtxn.cpp
...
git-svn-id: svn://10.0.0.236/trunk@17392 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-08 22:18:21 +00:00
buster%netscape.com
62f2a08600
SplitElementTxn implementation. Do only.
...
test with Control-S.
git-svn-id: svn://10.0.0.236/trunk@17391 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-08 22:16:22 +00:00