tague@netscape.com
b5eb3c42a4
Added support for a reply from the StartComposition message. Necessary for XIM support on UNIX.
1999-08-31 01:20:32 +00:00
sfraser@netscape.com
ceb9d06f3f
Back out cmanske's changes to these files, which he checked by by mistake.
1999-08-31 01:14:40 +00:00
cmanske@netscape.com
e16430d90e
Added checking if we need to save file before allowing close window or exit (bug 7615). Added support for Confirm and Alert message dialogs
1999-08-31 00:51:23 +00:00
pinkerton@netscape.com
16f18cb9ac
clean up small mem leak.
1999-08-30 22:18:23 +00:00
buster@netscape.com
4419b92511
fixed bug 12680 (password fields broken)
...
fixed bug 12489 (static contructors must be removed)
1999-08-30 22:11:09 +00:00
kin@netscape.com
2206ab56b9
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 .
1999-08-30 21:54:40 +00:00
akkana@netscape.com
a9edb8cdc4
Handle lower-case alt-x as well as upper case
1999-08-28 00:31:06 +00:00
jfrancis@netscape.com
4036bf65f9
making nsPresShell and nsDocument support weak references; using weak references to docs and pres shells within the editor
1999-08-25 10:51:55 +00:00
pinkerton@netscape.com
687c6291ee
toString -> ToString idl change.
1999-08-25 09:15:18 +00:00
pinkerton@netscape.com
9a13c452d7
IDL-ifying nsITransferable, nsIDragService, nsIDragSession, nsIFormatConverter.
1999-08-25 08:35:06 +00:00
akkana@netscape.com
c359aafe41
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.
1999-08-24 18:30:19 +00:00
buster@netscape.com
1e17502070
added a special case to the output text rules for an empty document
...
(one that contains the bogus node)
1999-08-24 13:48:08 +00:00
jfrancis@netscape.com
56f6603265
refactoring text insertion code; indent/outdent now work with lists and list items.
1999-08-24 08:56:51 +00:00
buster@netscape.com
282f1193b9
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.
1999-08-23 06:42:04 +00:00
akkana@netscape.com
d4d6e87cf9
Handle plaintext wrapping in style, rather than a pre tag in the body. Also fix a couple of warnings.
1999-08-20 22:39:48 +00:00
brade@netscape.com
5091e7084e
keyhandling for keybindings moved to keypress (was keydown)
1999-08-20 13:14:03 +00:00
pinkerton@netscape.com
83daf3a139
add DragGesture to drag listener.
1999-08-19 19:48:33 +00:00
buster@netscape.com
725f13ce9d
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.
1999-08-19 13:30:48 +00:00
jfrancis@netscape.com
787ffb516a
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.
1999-08-18 08:13:06 +00:00
jfrancis@netscape.com
cb0070f114
fixing bug 9366
1999-08-09 22:51:40 +00:00
buster@netscape.com
39e237a3f7
moved handling of flags from rules constructor to rules init, so
...
rules code can call SetFlags with mEditor initialized and do real
processing if it wants to.
1999-08-09 18:39:49 +00:00
sfraser@netscape.com
21e3f77732
Fix the nsTextEditRules init so that setting the flags works.
1999-08-09 18:22:13 +00:00
buster@netscape.com
798afd91c2
backed out my last change, it didn't fix the problem I thought it would.
1999-08-09 18:01:08 +00:00
buster@netscape.com
ff9aa67ea2
call SetFlags from Init, so plaintext logic gets executed.
1999-08-09 17:44:14 +00:00
sfraser@netscape.com
9b2b76de4f
Landing editor API changes. Removed nsITextEditor and nsTextEditor, split interfaces into more, non-overlapping interfaces, and other general cleanup.
1999-08-09 01:37:50 +00:00
buster@netscape.com
83c8315759
fixed handling of text controls with a max length set
1999-08-07 05:29:41 +00:00
buster@netscape.com
60fccafd94
fixed disabled and readonly handling
...
added redraw hack to blur (in addition to focus, already done)
1999-08-07 05:28:57 +00:00
tague@netscape.com
802dcb7d84
Added support for replies from private DOM text events. See bug #4826
1999-08-06 02:32:13 +00:00
buster@netscape.com
0eca24ff16
added the same hack for blur as for focus, to force a repaint
...
handle TAB in keyDown, not keyPress, so we can surpress focus manager
using TAB to swap focus from the editor.
1999-08-03 06:07:29 +00:00
buster@netscape.com
834ec5c96c
selection and caret are not displayed at Init time any more. This is done on Focus now.
...
checking in temp hack to repaint on focus
1999-08-02 13:53:23 +00:00
buster@netscape.com
5092412068
Clean-up
...
1) fixed unit tests
2) fixed a bunch of leaks having to do with using enumerators. Thanks for noticing these, Simon.
3) fixed a tiny problem in nsTextEditRules::WillDoAction().
This method was overly aggressive in checking input args, sel can be null for some operations.
1999-07-25 18:14:44 +00:00
jfrancis@netscape.com
41707245ab
making plaintext flag force a "white-space: pre" style on the body. this is a fix for bug 9153
1999-07-25 05:34:02 +00:00
joki@netscape.com
3212c700d4
Updating DOM event apis and changing behavior to properly respect capturing, bubbling, and cancellation methods.
1999-07-19 19:54:34 +00:00
mjudge@netscape.com
8e4c13fcd1
massive checkin for selection. adjusting nsIDOMSelection api and nsIFrameSelection. many "small" changes. this is not as bad as it looks. layout will not be affected other than "getter" calls for selection. and all consumers of selection should be in good shape.
1999-07-18 02:27:19 +00:00
buster@netscape.com
0926cbc8f9
replaced IID's with CID's where they were appropriate, and removed lots of
...
NS_DEFINE_IID macros in favor of GetCID() wherever I could.
plus some minor bug fixes.
1999-07-15 19:13:46 +00:00
mjudge@netscape.com
a8748298ee
checkin for carpool for multiple seleciton/ime selection and api changes
1999-07-15 18:19:20 +00:00
sfraser@netscape.com
53fa184017
Don't handle a key event as a keypress if the meta key is down.
1999-07-14 22:29:06 +00:00
akkana@netscape.com
3fd1dc7c68
Restructure the editor output routines to allow passing in
...
a mime type and a flag argument. Also fix the following bugs:
9746: get rid of bogus empty <style> in head.
8143: save wrap column in editor shell in case it's set before the
editor is created.
9470, 9488: allow explicit specification of formatted output.
1999-07-14 18:54:29 +00:00
buster@netscape.com
6c7073ce16
workaround for blocker bug 8123. approved by chofmann.
1999-07-08 19:52:44 +00:00
buster@netscape.com
59107d4bc8
minor fix for returning when a key is handled or not. This is a tiny part
...
of the fix for 8123, joki is working on the rest with tague and rods.
1999-07-06 23:31:08 +00:00
jfrancis@netscape.com
fa139bb9a4
turning off ill fated coercion of selection for plaintext editing. I'll turn this back on when I know how to correctly detect when it's needed.
1999-07-03 05:13:30 +00:00
jfrancis@netscape.com
7f2653f760
making the plain text selection pinning savvy to the other flavors of text editors, the ones that DONT have <pre> tags wrapping all the text
1999-07-02 07:53:08 +00:00
akkana@netscape.com
c69f0f141f
Oops, making wrapcolumn unsigned was a mistake. (Thanks to slamm's
...
warnings page for showing me that!) Change it back to signed.
1999-07-01 19:01:04 +00:00
buster@netscape.com
ac9871a79f
0. possible fix for Sun build bustage.
...
1. IsEditable is much less hacky. It basically says:
1. if the node is a special bogus text node, it's not editable
2. if the node is a text node with only newlines, then it's not editable
3. if the node has no frame associated with it, then it is not editable
4. otherwise, it is editable.
As part of this, I had to make IsEditable non-static. This had some cascading effects on static methods that called
IsEditable, which likewise had to be made non-static.
2. SetTextProperties now works when the endpoints are leaf nodes (like images), not just text. Charlie, you should
put this through some stress cases.
1999-07-01 18:42:28 +00:00
jfrancis@netscape.com
f981dcb4bf
some cleanup and also selection enforcement for plaintext documents: selection is pinned to within the PRE tag on any edit action
1999-07-01 13:42:03 +00:00
akkana@netscape.com
c88a4fee5a
- New dialog and editor shell API for Insert HTML Source
...
- Add wrapcolumn setting to document encoders, and use it in the editor
- Fix numbered lists in the html to text sink stream.
1999-06-30 19:26:08 +00:00
scc@netscape.com
90f6a8560a
|nsISupports::GetIID()| --> |nsCOMTypeInfo<nsISupports>::GetIID()|
1999-06-29 21:01:31 +00:00
tague@netscape.com
8269007861
Added clause and selection support for Input Methods. Fixes bug #8639 , #8459 , #6989 , #7824
1999-06-29 20:31:22 +00:00
sfraser@netscape.com
e701e1d6e0
Call the Output routines with a new param for selection only.
1999-06-29 20:14:58 +00:00
buster@netscape.com
efa2524535
Moved GetTextSelectionOffsets and GetDocumentLength from nsTextEditRules to
...
nsTextEditor. Added GetDocumentLength to nsITextEditor public interface.
1999-06-28 13:36:38 +00:00