Граф коммитов

23 Коммитов

Автор SHA1 Сообщение Дата
jfrancis%netscape.com fb60392b41 bug 66290: embedding work: refactor editor to allow smaller plaintext only library. Embedding clients may be interested inthis library if they want to embed a browser but not composer/mail-compose. Reduces library footprint for plaintext-only library by over 50% on all three platforms. r=fm; sr=kin 2001-01-28 20:13:07 +00:00
shanjian%netscape.com de23b7e7a9 #14022 IME98 Reconversion does not work in HTML Editor
r = jfrancis
a = ftang
fix proposed by m_kato@ga2.so-net.ne.jp

New events are added to support reconversion. As a result, many files
are affected. They are:
editor:
  nsEditor.h nsEditor.cpp nsEditorEventListeners.cpp nsEditorEventListeners.h
  nsHTMLEditor.h nsHTMLEditor.cpp nsIEditorIMESupport.h
dom and layout:
  nsIPrivateCompositionEvent.h nsDOMEvent.h nsDOMEvnet.cpp nsEventListenerManager.cpp
  nsIDOMCompositionListener.h
widget:
  nsGUIEvent.h nsWindow.h nsWindow.cpp
2000-08-04 21:43:29 +00:00
kin%netscape.com 82849412ce Fix for bug #36935: [i18n] Textwidget doesn't scroll when non-7-bit-ascii chars
Made ScrollSelectionIntoView() a static function and called it from HandleText().
    editor/base/nsEditorEventListeners.cpp
    editor/base/nsEditorEventListeners.h

r=jfrancis@netscape.com  a=beppe@netscape.com
2000-05-31 03:18:05 +00:00
cmanske%netscape.com 0aa739ecd5 Lots of editor feature work: bugs 26286, 34519, 28498, 36998, 37089, 14342. r=sfraser 2000-05-09 23:03:41 +00:00
ftang%netscape.com 5d9824b4bd add query composition event which get current curosor position. add timer base IME x y location query for gtk. r=erik. fix bug 17916 20550 1999-12-07 01:29:00 +00:00
dmose%mozilla.org 142ac52eaf updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
sfraser%netscape.com c67d934ba7 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 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
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
pinkerton%netscape.com e6c785c88e add DragGesture to drag listener. 1999-08-19 19:48:33 +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 6b09e8c917 Preparation for ender-based text control
* added focus listener.  Doesn't do much yet, but when focus notifications start appearing, we'll be ready for them.  The code is in
place to hide selection when we lose focus and paint selection when we get focus.  That's probably not quite right, but it's a start.
We will need to be able to determine the distinction between losing focus to another control within our app, and losing focus to
another app.
* added support for disabled and readonly states in the editor.  This is accomplished by having flags set by the client, and letting the
rules system deal with those flags.  The flags I added are:
     TEXT_EDITOR_FLAG_PLAINTEXT   0x01   // only plain text editing is allowed
     TEXT_EDITOR_FLAG_SINGLELINE  0x02   // enter key and CR-LF handled specially
     TEXT_EDITOR_FLAG_PASSWORD    0x04   // text is not entered into content, only a representative character
     TEXT_EDITOR_FLAG_READONLY    0x08   // editing events are disabled.  Editor may still accept focus.
     TEXT_EDITOR_FLAG_DISALBED    0x10   // all events are disabled (like scrolling).  Editor will not accept focus.
* added WillInsertBreak/DidInsertBreak into text rules, so flags could be checked.  This gets us readonly, disabled, and single line
behavior.
* cleaned up the code that allocates, registers, and destroys event listeners.  Thanks to Kin and Simon for cleaning up the
ownership model on the listeners, it was a big help.
* added support for a max text length.  You can now tell the text editor, be no bigger than n characters.
1999-05-28 21:24:18 +00:00
sfraser%netscape.com b7ca9366ce Fix the event listeners to no longer hold owning pointer to the editor. 1999-05-28 00:19:51 +00:00
sfraser%netscape.com 220d4a3520 Remove the old key code function, and call the new unit test routine 1999-05-27 04:08:59 +00:00
rods%netscape.com e4ee930f8c removed reference to nsIDataFlavor and merged nsITransferable and nsIGenericTransferable 1999-05-13 21:53:57 +00:00
rods%netscape.com f49013bbe7 Changed code to use the new DragSession interface 1999-05-07 19:42:27 +00:00
tague%netscape.com 83e78f89e5 Fixed bug #5527 (Editor is not able to accumulate successive Japanese input) 1999-05-03 22:57:48 +00:00
rods%netscape.com 946396a03f Upgraded to implement new methods in D&D interface 1999-04-06 20:24:09 +00:00
joki%netscape.com e39e13cf18 Changing api uses in editor, rdf, and xpfe to match DOM2 api name/param changes. 1999-03-28 22:27:38 +00:00
tague%netscape.com 6e19645586 Added support for basic Japanese input on Win32 1999-03-19 23:36:20 +00:00
rods%netscape.com 61cfe9a3d0 Added DragListener for Drag & Drop (it's not turned on) 1999-03-14 04:45:00 +00:00
mcafee%netscape.com 40e8ad043a Solaris: adding do_QueryInterface() wrappers to finish scc's nsCOMPtr carpool. a=scc 1999-02-19 11:30:31 +00:00
buster%netscape.com 1ceedf5abc * the viewer test app now instantiates an nsITextEditor via nsRepository for "Editor mode"
* the TxnMgr is invoked by the editor via nsRepository
* editor.h|cpp have been renamed nsEditor.h|cpp for consistency
* editorInterfaces.h|cpp have been renamed nsEditorEventListeners.c|hpp
* added nsITextEditor.h, nsTextEditor.h|cpp.  The text editor is a placeholder for the rules unique to text
editing.  It invokes the nsIEditor to do core editing operations.
* reworked nsIEditor and related interfaces as per emerging design.
* nsEditor::BeginTransaction and EndTransaction call nsTransactionManager::BeginBatch and EndBatch.
1999-02-12 17:18:58 +00:00