Commit Graph
53 Commits
Author SHA1 Message Date
cyeh@netscape.com cf7c4851ae Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 00:54:34 +00:00
kin@netscape.com 6e1fc699f0 Modifications to re-enable Editor API Logging which was broken after the last editor source reorg.
editor/base/Makefile.in
  editor/base/makefile.win
    - Modified makefiles build files that were
      renamed, and use new define to build the
      API Logging code.

  editor/base/nsEditor.cpp
  editor/base/nsEditor.h
  editor/base/nsHTMLEditor.cpp
    - Removed all ENABLE_JS_EDITOR_LOG ifdef'd code.
    - Removed all references to nsVector.h.

  editor/base/nsEditorFactory.cpp
    - Added ENABLE_EDITOR_API_LOG ifdef'd code
      that will create an instance of nsHTMLEditorLog
      instead of nsHTMLEditor.

  editor/base/nsEditorTxnLog.cpp
    - Initial checkin of file. File was originally named nsJSTxnLog.cpp.

  editor/base/nsEditorTxnLog.h
    - Initial checkin of file. File was originally named nsJSTxnLog.h.

  editor/base/nsHTMLEditorLog.cpp
    - Initial checkin of file. File was originally named nsJSEditorLog.cpp.
    - nsHTMLEditorLog.cpp now derives from nsHTMLEditor, and only
      overrides methods that modify the content tree and are publicly
      available via XPIDL.

  editor/base/nsHTMLEditorLog.h
    - Initial checkin of file. File was originally named nsJSEditorLog.h.
    - nsHTMLEditorLog.cpp now derives from nsHTMLEditor, and only
      overrides methods that modify the content tree and are publicly
      available via XPIDL.
1999-08-19 13:19:10 +00:00
bienvenu@netscape.com f0dfbeda60 fix build bustage on win32 1999-08-09 01:57:28 +00:00
sfraser@netscape.com 9274b71482 Turn off the JS logging for now. 1999-08-09 01:42:08 +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
mscott@netscape.com b4d195feb4 fix build breakage with necko landing...include config.mak 1999-07-29 04:25:34 +00:00
sfraser@netscape.com aeac1f5578 Added nsInterfaceState for UI state maintenance 1999-07-28 02:53:09 +00:00
cmanske@netscape.com 47db45bb9b Initial table editing stuff. Removed table editing transactions (use basic node txns). Fixed TrimString JS methods. Fixed setting border in insert table. 1999-07-27 23:59:22 +00:00
dveditz@netscape.com f08ede6dcc makeile cleanups 1999-07-02 13:38:47 +00:00
sfraser@netscape.com fc78036bf9 Added nsStyleSheetTxns.cpp 1999-07-02 04:01:38 +00:00
warren@netscape.com 0832def9d8 Added necko util glue. 1999-07-01 21:49:24 +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
warren@netscape.com 0a063ac027 Last of the necko ifdefs. Now we link with necko. 1999-06-28 10:35:57 +00:00
kin@netscape.com e381bbffbb * Added StartLogging() and StopLogging() methods to nsIEditor,
nsIHTMLEditor, nsITextEditor, and nsIEditorShell and enabled
  the "Start Log" and "End Log" menu items in the editor test bed.

* Modified makefiles for Unix and Win32 to turn on  Editor API Logging.

* Added action argument to the DeleteSelection() method in nsIEditorShell.

* Modified nsJSTxnLog to use nsJSEditorLog when writing it's output.
1999-06-14 20:02:46 +00:00
sfraser@netscape.com 630e2ab6ff Fix the build. 1999-06-11 19:56:35 +00:00
sfraser@netscape.com a8b35e133c Fix Makefile stupidity. 1999-06-11 19:28:17 +00:00
sfraser@netscape.com 6bfff28bf2 Add EditorShell and its factory to build, and add idl dir to makefiles. 1999-06-11 19:00:22 +00:00
cmanske@netscape.com e4f48b3b80 Added support for prefs and string bundles for editor, various bug fixes, preliminary Horizontal Line dialog work 1999-06-09 01:27:08 +00:00
buster@netscape.com 868638b813 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
akkana@netscape.com 53b1709aed Require pref headers now 1999-05-27 01:46:06 +00:00
bienvenu@netscape.com 6ebdfb0d07 fix build bustage by adding prefs include 1999-05-27 01:45:27 +00:00
akkana@netscape.com 2e8078e1f7 Insert / Paste as Quotation. 1999-05-27 00:08:15 +00:00
dp@netscape.com 6dc8a899c6 Landing xpcom20/21 branch. 1999-05-26 01:38:36 +00:00
rods@netscape.com a541d39409 Added nsInsertHTMLTxn 1999-05-07 19:38:53 +00:00
buster@netscape.com 64dc84677f * beginnings of font handling. WIP, I did a big merge today and I'm checking in to synch up, not to announce new functionality here.
* added TextEditorTest.cpp, a unit test module for nsTextEditor.  It's use is actually commented out since my checkin is happening so late due
to all-day build bustage, and I don't have a Mac handy to verify.  With someone's Mac help tomorrow, I can turn it on.
* some minor bug fixes to property handling
1999-04-15 06:06:33 +00:00
jfrancis@netscape.com cb876a3254 Adding nsHTMLEditRules.cpp 1999-03-29 08:01:21 +00:00
leaf@mozilla.org 914e2a1e41 Landing nspr library name change, and plevent function call change. 1999-03-17 21:32:03 +00:00
buster@netscape.com 27219045e2 added PlaceholderTxn. This is an aggregate transaction that sits on the undo stack
and merges in subsequent transactions indiscriminately until it's told to stop.
It also gives the last transaction in its child list a chance to merge the
next transaction.
All this is in support of complex transactions that result in text insertion
being able to collapse into a single undoable event.
Also improved tracking of bogus content node used when document is empty.
1999-03-15 00:57:32 +00:00
mjudge@netscape.com 7654e9cac0 reverting fix :( 1999-03-12 01:49:12 +00:00
mjudge@netscape.com 675e760887 fixed copy paste issue on windows, linking wrong.lib file 1999-03-12 00:01:24 +00:00
mjudge@netscape.com 1625d8136f fixing windows build bustage by temporarily loading the raptorwidget_s.dll when ender.dll is loaded. temporary until repository code working 1999-03-11 00:20:27 +00:00
kin@netscape.com d98e294249 Modified the clobber target so that it removes the dll from the bin/components directory. 1999-03-10 21:25:03 +00:00
buster@netscape.com c68e3680ec added nsTextEditRules 1999-03-10 19:47:34 +00:00
cmanske@netscape.com 2f91fb14cb Fixed editor classes to do autoregistration correctly and moved target directory to bin/components 1999-03-08 22:46:33 +00:00
kostello@netscape.com 4aa7535d3b Added Implementations for OutputHTML and OutputTXT 1999-03-04 21:53:42 +00:00
cmanske@netscape.com 786d067af5 Implemented nsHTMLEditor. Changed prototypes to be use NS_IMETHOD and NS_IMETHODIMP. Started table editing transactions 1999-03-02 05:30:53 +00:00
buster@netscape.com ec455b8b0d added InsertElementTxn
added nsEditProperty
beginning of implementation for SetTextProperties.  Currently, it only works if the selection is entirely within a single text node.  Currently only
supports bold and italic (mapped to ctrl-b and ctrl-i for testing purposes.)
changed a bunch of interfaces to make things easier, like CreateElement now returns (as an out-param) the element created.
1999-02-24 17:24:37 +00:00
buster@netscape.com 29eddc6299 * 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
buster@netscape.com 2c6e14181c * 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.
1999-01-21 01:51:09 +00:00
buster@netscape.com 2f8a38357c added DeleteElementTxn and DeleteRangeTxn, and added merging of text insertions.
added some better error checking on all transactions.
1999-01-14 18:02:45 +00:00
buster@netscape.com 858ec20a39 SplitElementTxn implementation. Do only.
test with Control-S.
1999-01-08 22:16:22 +00:00
buster@netscape.com a55a507fd4 create element transaction WIP 1999-01-07 22:36:23 +00:00
buster@netscape.com ea66bbb244 support for DeleteTextTxn, backspace and delete 1999-01-07 17:58:15 +00:00
buster@netscape.com cf3bfd9bb8 support for inserting text 1999-01-07 01:02:32 +00:00
buster@netscape.com 7f5adb32d3 ChangedAttributeTxn implementation
base class EditTxn implementation
1999-01-06 20:30:13 +00:00
mjudge@netscape.com 909c18d77e tabbing 1998-11-29 21:59:52 +00:00
mjudge@netscape.com ddb94842ad removed non production code 1998-11-28 01:28:00 +00:00
mjudge@netscape.com db197bbe14 just broke the mac build. I will tell jfrancis! 1998-11-28 01:19:53 +00:00
mjudge@netscape.com 6e83ffb82c this works with the new autopointers 1998-11-12 22:18:43 +00:00
mjudge@netscape.com a7bc13848d we now have a DLL!!! 1998-11-12 00:15:58 +00:00