cmanske%netscape.com
523b9079f0
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
50f4479ca0
clean up small mem leak.
1999-08-30 22:18:23 +00:00
buster%netscape.com
8b33ec3088
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
bfd4c1f102
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
dbf32d1372
Handle lower-case alt-x as well as upper case
1999-08-28 00:31:06 +00:00
jfrancis%netscape.com
9ea8122814
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
72c115383c
toString -> ToString idl change.
1999-08-25 09:15:18 +00:00
pinkerton%netscape.com
268234cadd
IDL-ifying nsITransferable, nsIDragService, nsIDragSession, nsIFormatConverter.
1999-08-25 08:35:06 +00:00
akkana%netscape.com
ff7a19a5bd
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
796446129f
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
34f6986b50
refactoring text insertion code; indent/outdent now work with lists and list items.
1999-08-24 08:56:51 +00:00
buster%netscape.com
09e028ee79
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
de0fab64a7
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
b2c4160c8a
keyhandling for keybindings moved to keypress (was keydown)
1999-08-20 13:14:03 +00:00
pinkerton%netscape.com
e6c785c88e
add DragGesture to drag listener.
1999-08-19 19:48:33 +00:00
buster%netscape.com
3bc5912284
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
a099b1e5b6
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
4c2532dd8b
fixing bug 9366
1999-08-09 22:51:40 +00:00
buster%netscape.com
5b65a4e45f
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
ac5099a587
Fix the nsTextEditRules init so that setting the flags works.
1999-08-09 18:22:13 +00:00
buster%netscape.com
503defd7f0
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
151ee02b62
call SetFlags from Init, so plaintext logic gets executed.
1999-08-09 17:44:14 +00:00
sfraser%netscape.com
d73dfd8ddb
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
fd79be28bb
fixed handling of text controls with a max length set
1999-08-07 05:29:41 +00:00
buster%netscape.com
554895cb53
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
58316bd322
Added support for replies from private DOM text events. See bug #4826
1999-08-06 02:32:13 +00:00
buster%netscape.com
414c95e223
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
1941ea5807
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
cc49e3182a
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
491557ab29
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
d752334449
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
c0b1525970
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
dca6c49edd
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
21700e5d88
checkin for carpool for multiple seleciton/ime selection and api changes
1999-07-15 18:19:20 +00:00
sfraser%netscape.com
c9dbb47be6
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
a3fb11b98f
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
693e31fcd2
workaround for blocker bug 8123. approved by chofmann.
1999-07-08 19:52:44 +00:00
buster%netscape.com
58aa59e827
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
dcb4b5045a
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
5020b85ebb
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
8afa44f109
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
7bc9bfc2b0
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
7904f484a3
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
66024861e2
- 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
f79508bc68
|nsISupports::GetIID()| --> |nsCOMTypeInfo<nsISupports>::GetIID()|
1999-06-29 21:01:31 +00:00
tague%netscape.com
353d857fed
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
90131e6812
Call the Output routines with a new param for selection only.
1999-06-29 20:14:58 +00:00
buster%netscape.com
52fea2d39d
Moved GetTextSelectionOffsets and GetDocumentLength from nsTextEditRules to
...
nsTextEditor. Added GetDocumentLength to nsITextEditor public interface.
1999-06-28 13:36:38 +00:00
buster%netscape.com
96d97515ac
implemented most of max length handling
1999-06-25 22:57:26 +00:00
buster%netscape.com
4707ee0cc9
added rules for password behavior
1999-06-24 23:36:56 +00:00