36 Commits

Author SHA1 Message Date
cmanske%netscape.com
5cc87fa56e Added support for prefs and string bundles for editor, various bug fixes, preliminary Horizontal Line dialog work
git-svn-id: svn://10.0.0.236/trunk@34343 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 01:27:08 +00:00
buster%netscape.com
9041cef161 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.


git-svn-id: svn://10.0.0.236/trunk@33153 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 21:24:18 +00:00
akkana%netscape.com
e742bedf03 Require pref headers now
git-svn-id: svn://10.0.0.236/trunk@32845 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 01:46:06 +00:00
bienvenu%netscape.com
90ae0652bb fix build bustage by adding prefs include
git-svn-id: svn://10.0.0.236/trunk@32843 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 01:45:27 +00:00
akkana%netscape.com
156d763247 Insert / Paste as Quotation.
git-svn-id: svn://10.0.0.236/trunk@32824 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 00:08:15 +00:00
dp%netscape.com
befa259a88 Landing xpcom20/21 branch.
git-svn-id: svn://10.0.0.236/trunk@32644 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 01:38:36 +00:00
rods%netscape.com
3c29f31a25 Added nsInsertHTMLTxn
git-svn-id: svn://10.0.0.236/trunk@30708 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 19:38:53 +00:00
buster%netscape.com
d7cdf20fb8 * 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


git-svn-id: svn://10.0.0.236/trunk@27556 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 06:06:33 +00:00
jfrancis%netscape.com
bfe4edbf65 Adding nsHTMLEditRules.cpp
git-svn-id: svn://10.0.0.236/trunk@25438 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-29 08:01:21 +00:00
leaf%mozilla.org
8fadf11677 Landing nspr library name change, and plevent function call change.
git-svn-id: svn://10.0.0.236/trunk@24276 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-17 21:32:03 +00:00
buster%netscape.com
ef5f3265cc 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.


git-svn-id: svn://10.0.0.236/trunk@24151 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-15 00:57:32 +00:00
mjudge%netscape.com
e4c09191d6 reverting fix :(
git-svn-id: svn://10.0.0.236/trunk@23830 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-12 01:49:12 +00:00
mjudge%netscape.com
a1cd7388b4 fixed copy paste issue on windows, linking wrong.lib file
git-svn-id: svn://10.0.0.236/trunk@23797 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-12 00:01:24 +00:00
mjudge%netscape.com
85664fd476 fixing windows build bustage by temporarily loading the raptorwidget_s.dll when ender.dll is loaded. temporary until repository code working
git-svn-id: svn://10.0.0.236/trunk@23613 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-11 00:20:27 +00:00
kin%netscape.com
8b4d03a7fb Modified the clobber target so that it removes the dll from the bin/components directory.
git-svn-id: svn://10.0.0.236/trunk@23568 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 21:25:03 +00:00
buster%netscape.com
0e7f65788f added nsTextEditRules
git-svn-id: svn://10.0.0.236/trunk@23539 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 19:47:34 +00:00
cmanske%netscape.com
dea2088bcb Fixed editor classes to do autoregistration correctly and moved target directory to bin/components
git-svn-id: svn://10.0.0.236/trunk@23216 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-08 22:46:33 +00:00
kostello%netscape.com
575a96dca1 Added Implementations for OutputHTML and OutputTXT
git-svn-id: svn://10.0.0.236/trunk@22785 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-04 21:53:42 +00:00
cmanske%netscape.com
202c5b89dc Implemented nsHTMLEditor. Changed prototypes to be use NS_IMETHOD and NS_IMETHODIMP. Started table editing transactions
git-svn-id: svn://10.0.0.236/trunk@22534 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 05:30:53 +00:00
buster%netscape.com
7218a4a579 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.


git-svn-id: svn://10.0.0.236/trunk@21760 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-24 17:24:37 +00:00
buster%netscape.com
6d04acb923 * 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.


git-svn-id: svn://10.0.0.236/trunk@20562 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:18:58 +00:00
buster%netscape.com
b48e2caf7c * 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.


git-svn-id: svn://10.0.0.236/trunk@18122 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-21 01:51:09 +00:00
buster%netscape.com
dceac9452d added DeleteElementTxn and DeleteRangeTxn, and added merging of text insertions.
added some better error checking on all transactions.


git-svn-id: svn://10.0.0.236/trunk@17740 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-14 18:02:45 +00:00
buster%netscape.com
62f2a08600 SplitElementTxn implementation. Do only.
test with Control-S.


git-svn-id: svn://10.0.0.236/trunk@17391 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-08 22:16:22 +00:00
buster%netscape.com
32c39f7e29 create element transaction WIP
git-svn-id: svn://10.0.0.236/trunk@17331 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-07 22:36:23 +00:00
buster%netscape.com
9a53de3e33 support for DeleteTextTxn, backspace and delete
git-svn-id: svn://10.0.0.236/trunk@17315 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-07 17:58:15 +00:00
buster%netscape.com
9ead1505eb support for inserting text
git-svn-id: svn://10.0.0.236/trunk@17280 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-07 01:02:32 +00:00
buster%netscape.com
418dc949ad ChangedAttributeTxn implementation
base class EditTxn implementation


git-svn-id: svn://10.0.0.236/trunk@17254 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-06 20:30:13 +00:00
mjudge%netscape.com
fe47a3bb8e tabbing
git-svn-id: svn://10.0.0.236/trunk@15416 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 21:59:52 +00:00
mjudge%netscape.com
6fffbd0142 removed non production code
git-svn-id: svn://10.0.0.236/trunk@15383 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 01:28:00 +00:00
mjudge%netscape.com
19263c1621 just broke the mac build. I will tell jfrancis!
git-svn-id: svn://10.0.0.236/trunk@15381 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 01:19:53 +00:00
mjudge%netscape.com
762c599ef7 this works with the new autopointers
git-svn-id: svn://10.0.0.236/trunk@14534 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 22:18:43 +00:00
mjudge%netscape.com
35e4aa0583 we now have a DLL!!!
git-svn-id: svn://10.0.0.236/trunk@14481 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 00:15:58 +00:00
mjudge%netscape.com
5dabcba40d changes to get autopointers to work
git-svn-id: svn://10.0.0.236/trunk@14455 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 20:44:02 +00:00
mjudge%netscape.com
f5eeccb6c0 more changes to API
git-svn-id: svn://10.0.0.236/trunk@14421 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 09:26:42 +00:00
mjudge%netscape.com
eadf162c58 moving editor core to "core"
git-svn-id: svn://10.0.0.236/trunk@14400 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 03:34:37 +00:00