buster%netscape.com
273f420e23
fixed my part of bug 15814 (Cleanup build warnings)
...
so trivial, no reviewer needed
fixed my part of bug 5403 (Services improperly released: Use NS_WITH_SERVICE)
a handful of subtle error handling bugs were fixed as a side effect
r=Akkana
git-svn-id: svn://10.0.0.236/trunk@50222 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 14:39:20 +00:00
buster%netscape.com
1e0b48570c
fixed some space leaks reported by kipp. no bug #, r=tague
...
added some assertions and error checking to nsEditor::Do, no bug #, r=kin
fixed bug 14898 (implemented type-in state for any context), r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@50004 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:27:41 +00:00
jfrancis%netscape.com
0209785bbb
revised rules system api to include "handled" parameter and ceased to overload the meaning of the "cancel" parameter; added TypedText() method to editor, editorshell, and logging, so that logging will work properly with typing; coallesce deletions for undo purposes r=buster@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@49999 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 19:34:09 +00:00
jfrancis%netscape.com
8e3610bfe2
revised UNDO; introduced first cut at the "mozdiv" typing rules
...
git-svn-id: svn://10.0.0.236/trunk@49317 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:08:15 +00:00
cmanske%netscape.com
d733c2160f
More list property dialog work. Remaned GetParagraphStyle to more readable GetParagraphTags. Added GetListTags needed for list manipulation. Enhanced GetElementOrParentByTagName to handle lists
...
git-svn-id: svn://10.0.0.236/trunk@48795 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:52:44 +00:00
buster%netscape.com
6c46de52f8
very simple extension of a fix already in place for bug 11804
...
git-svn-id: svn://10.0.0.236/trunk@48787 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:00:58 +00:00
brade%netscape.com
a42cc57b3f
warning cleanup
...
git-svn-id: svn://10.0.0.236/trunk@48659 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:32:39 +00:00
joki%netscape.com
b1998d03d5
Changing dom event VK_* names to DOM_VK_*
...
git-svn-id: svn://10.0.0.236/trunk@48573 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:19:17 +00:00
waterson%netscape.com
a3557b2d24
Fix Linux bustage.
...
git-svn-id: svn://10.0.0.236/trunk@48318 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 04:50:18 +00:00
buster%netscape.com
28bdfeef11
most of the fix for bug 11804, type-in state wasn't properly removing
...
inline attributes from the next character entered (you're in a bold word
and user clicks bold button, should make next character not bold.)
all done except for font properties.
git-svn-id: svn://10.0.0.236/trunk@48316 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 04:20:18 +00:00
buster%netscape.com
1dcd85d64b
fixed recent bustage on windows that '.' key wouldn't work, making it
...
tough to type URL's in browser. still needs work, but it's usable again.
git-svn-id: svn://10.0.0.236/trunk@48314 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 04:16:34 +00:00
jfrancis%netscape.com
381ca4cab7
fixing a heap-o-undo problems and some mBogusNode problems
...
git-svn-id: svn://10.0.0.236/trunk@48297 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 01:31:44 +00:00
jfrancis%netscape.com
a2716305a8
putting tab handling back in KeyDown(). Else editor never gets tabs.
...
git-svn-id: svn://10.0.0.236/trunk@48254 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 10:30:30 +00:00
jfrancis%netscape.com
5df01a19dc
fix for 13677
...
git-svn-id: svn://10.0.0.236/trunk@48051 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:15:12 +00:00
buster%netscape.com
f5e00214bc
fixed a warning
...
git-svn-id: svn://10.0.0.236/trunk@48004 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:17:22 +00:00
akkana%netscape.com
2612638b20
Handle everything in KeyPress; make KeyDown a nop. This also fixes bug 13962
...
git-svn-id: svn://10.0.0.236/trunk@47988 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:11:13 +00:00
buster%netscape.com
c3c148ab7b
fixed bug 13810 by removing an extraneous check for empty string. empty strings are perfectly legal
...
in WillInsertText
git-svn-id: svn://10.0.0.236/trunk@47623 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 19:43:19 +00:00
sfraser%netscape.com
59455396ec
Use nsAutoStrings where appropriate
...
git-svn-id: svn://10.0.0.236/trunk@47453 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 23:40:16 +00:00
buster%netscape.com
f15796dc95
fixed bug 13669, wrong password when user typed with 1 or more characters selected
...
git-svn-id: svn://10.0.0.236/trunk@47230 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 00:11:22 +00:00
jfrancis%netscape.com
e3f5506102
implementing EditorKeyPress and handling tabs in tables and shift-return meaning <br>
...
git-svn-id: svn://10.0.0.236/trunk@47113 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 09:37:51 +00:00
jfrancis%netscape.com
9650db2cbc
adding a default case enum value for rules action enum
...
git-svn-id: svn://10.0.0.236/trunk@47000 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-12 01:33:20 +00:00
brade%netscape.com
afe4e8cbac
handle hard-coded keybindings on Mac; begin to support new key event spec (lower case letters for charcodes)
...
git-svn-id: svn://10.0.0.236/trunk@46772 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 14:42:20 +00:00
buster%netscape.com
d7d624a6ed
fixed password editors, while maintaining output of empty HTML documents
...
fixes bug 13404, a blocker for enabling gfx text controls
git-svn-id: svn://10.0.0.236/trunk@46602 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 19:39:36 +00:00
sfraser%netscape.com
8a797c14a4
Add DocumentIsEmpty to EditorShell.idl and nsIEditor, and modify length and content getters to do the right thing with an empty document (which contains the bogus text node).
...
git-svn-id: svn://10.0.0.236/trunk@46444 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-08 23:32:04 +00:00
jfrancis%netscape.com
fc7ebc0ae1
restoring 1.54 checkin: no longer clearing selection when we detect empty document - selection is a perfectly valid concept in an empty document.
...
fix for bug 13251 is now in layout/src/base/nsRange.cpp
git-svn-id: svn://10.0.0.236/trunk@46308 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-08 05:30:48 +00:00
kin%netscape.com
3f07e6a437
Fix for bug #13251 : gfx text fields are not accepting input
...
Reenabled call to ClearSelection() in nsTextEditRules::WillInsert().
git-svn-id: svn://10.0.0.236/trunk@46234 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-07 22:47:50 +00:00
jfrancis%netscape.com
a5341f92a7
implementing RemoveList() - ie, list button now works as a toggle
...
git-svn-id: svn://10.0.0.236/trunk@46125 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-06 19:47:25 +00:00
jfrancis%netscape.com
33cc588b93
no longer clearing selection when we detect empty document - selection is a perfectly valid concept in an empty document.
...
git-svn-id: svn://10.0.0.236/trunk@46124 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-06 19:45:26 +00:00
bruce%cybersight.com
bf0dde26b0
Use nsCRT::free() instead of delete[] for char* data.
...
git-svn-id: svn://10.0.0.236/trunk@46092 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-06 06:22:51 +00:00
sspitzer%netscape.com
5059b5c5de
it really scares me to see my password get sent to the console when I type it. it's scaring others, see #13061 . wrapping this code with #ifdef DEBUG_<author>. I'll send them mail directly.
...
git-svn-id: svn://10.0.0.236/trunk@45858 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 08:31:33 +00:00
tague%netscape.com
6bbc6c0935
Added support for a reply from the StartComposition message. Necessary for XIM support on UNIX.
...
git-svn-id: svn://10.0.0.236/trunk@45252 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-31 01:20:32 +00:00
sfraser%netscape.com
ba6f86bc52
Back out cmanske's changes to these files, which he checked by by mistake.
...
git-svn-id: svn://10.0.0.236/trunk@45250 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-31 01:14:40 +00:00
cmanske%netscape.com
f9cc1c05e3
Added checking if we need to save file before allowing close window or exit (bug 7615). Added support for Confirm and Alert message dialogs
...
git-svn-id: svn://10.0.0.236/trunk@45247 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-31 00:51:23 +00:00
pinkerton%netscape.com
003e325792
clean up small mem leak.
...
git-svn-id: svn://10.0.0.236/trunk@45205 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-30 22:18:23 +00:00
buster%netscape.com
8860c971f8
fixed bug 12680 (password fields broken)
...
fixed bug 12489 (static contructors must be removed)
git-svn-id: svn://10.0.0.236/trunk@45186 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-30 22:11:09 +00:00
kin%netscape.com
ea9db112f9
Fix for bugs #7153 , #10673 , #12066 , #12067 , and #12793 .
...
editor/base/nsEditorEventListeners.cpp
editor/base/nsEditorEventListeners.h
- Added code to scroll the selection into view
after processing key events.
- Commented out the hack that redraws the entire
view when the focus is gained and lost. Replaced
the hack code with calls to RepaintSelection().
layout/base/public/nsIFrameSelection.h
layout/base/public/nsIPresShell.h
layout/html/base/src/nsPresShell.cpp
- Added ScrollSelectionIntoView() and RepaintSelection() methods.
layout/base/src/nsRangeList.cpp
- Added implementation for ScrollSelectionIntoView() and
RepaintSelection().
- Check for NULL primary frame in GetFocusNodeRect()
to fix bug #12793 .
git-svn-id: svn://10.0.0.236/trunk@45163 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-30 21:54:40 +00:00
akkana%netscape.com
2879c01e5b
Handle lower-case alt-x as well as upper case
...
git-svn-id: svn://10.0.0.236/trunk@44953 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-28 00:31:06 +00:00
jfrancis%netscape.com
2a60fccebc
making nsPresShell and nsDocument support weak references; using weak references to docs and pres shells within the editor
...
git-svn-id: svn://10.0.0.236/trunk@44483 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 10:51:55 +00:00
pinkerton%netscape.com
2d43935d4d
toString -> ToString idl change.
...
git-svn-id: svn://10.0.0.236/trunk@44477 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 09:15:18 +00:00
pinkerton%netscape.com
6eb3a21da9
IDL-ifying nsITransferable, nsIDragService, nsIDragSession, nsIFormatConverter.
...
git-svn-id: svn://10.0.0.236/trunk@44476 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 08:35:06 +00:00
akkana%netscape.com
131d318ad4
Revise the doc encoder and content sink APIs yet again to make it easier
...
to add new flags (pass a flag in the constructor, rather than specific
booleans. This in order to fix:
11249: Add flag to write only the body in html output.
git-svn-id: svn://10.0.0.236/trunk@44308 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:30:19 +00:00
buster%netscape.com
d2cf706ddc
added a special case to the output text rules for an empty document
...
(one that contains the bogus node)
git-svn-id: svn://10.0.0.236/trunk@44286 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 13:48:08 +00:00
jfrancis%netscape.com
99de773e68
refactoring text insertion code; indent/outdent now work with lists and list items.
...
git-svn-id: svn://10.0.0.236/trunk@44276 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 08:56:51 +00:00
buster%netscape.com
d25319c9c2
Split out installing the editor's own event handler as a separate step.
...
The owner of the editor can now initialize the editor,
set up its own listeners if it wants to, then the editor will set up it's own
backstop listeners as part of PostCreate().
The backstop key listener now ignores ENTER for single line text controls.
Ugly to have to do it here, it would be better if the owner could just swallow the key event.
git-svn-id: svn://10.0.0.236/trunk@44121 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 06:42:04 +00:00
akkana%netscape.com
1a9e06b69b
Handle plaintext wrapping in style, rather than a pre tag in the body. Also fix a couple of warnings.
...
git-svn-id: svn://10.0.0.236/trunk@43844 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:39:48 +00:00
brade%netscape.com
f10a2dbac1
keyhandling for keybindings moved to keypress (was keydown)
...
git-svn-id: svn://10.0.0.236/trunk@43813 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 13:14:03 +00:00
pinkerton%netscape.com
d7fdcb2e00
add DragGesture to drag listener.
...
git-svn-id: svn://10.0.0.236/trunk@43635 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:48:33 +00:00
buster%netscape.com
d1193affa0
Fixed a ton of errors where we were not handling error results correctly.
...
Added some comments of the form "// XXX: ERROR_HANDLING <explanation>"
wherever I saw a potential error but wasn't 100% sure of the intention of the code.
Fixed a few bugs along the way.
git-svn-id: svn://10.0.0.236/trunk@43590 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:30:48 +00:00
jfrancis%netscape.com
41485faa2c
some reorg of block transformation code; implemented make-{header,preformatted,address,normal}; tweaked make list to honor <br> in some circumstances; rewrote "return in list item" to pop you out of list if item is empty; rewrote "return in header" to work with non-trivial headers.
...
git-svn-id: svn://10.0.0.236/trunk@43484 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 08:13:06 +00:00
jfrancis%netscape.com
9b541be769
fixing bug 9366
...
git-svn-id: svn://10.0.0.236/trunk@42836 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 22:51:40 +00:00