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

38 Коммитов

Автор SHA1 Сообщение Дата
kin%netscape.com 13c2c64b3c Fix for blocker bug 126770 (Undo/Redo doesn't work in Text widgets, Composer, and Mail)
mozilla/editor/txmgr/src/nsTransactionManager.cpp
  mozilla/editor/txmgr/src/nsTransactionStack.cpp

    - nsTransactionStack::Peek() was intended to return NULL for
      an empty stack so I changed timeless' change for bug 114166
      to return NS_OK and init the return value to zero.

    - timeless also changed the behavior of nsDeque::End(), it no
      longer returns an interator that is one past the end. So
      nsTransactionStack::Peek() had to call CurrentItem() instead
      of operator--.

    - I also backed out the changes made to nsTransactionManager.cpp
      cause they are unnecessary with the changes made to
      nsTransactionStack::Peek() above.

r=timeless@bemail.org  sr=hyatt@netscape.com  a=leaf@mozilla.org
2002-02-20 23:22:31 +00:00
timeless%mac.com abdca2b41a Bug 114166 rewrite nsDeque
r=akkana sr=alecf
rs=alecf for TestDeque.cpp
2002-02-20 03:08:32 +00:00
gerv%gerv.net eecb4c06ee License changes, take 2. Bug 98089. mozilla/editor/. 2001-09-25 22:53:13 +00:00
gerv%gerv.net 1856815ff1 Oops. 2001-09-20 00:02:59 +00:00
scc%mozilla.org 102170b2a0 bug #98089: ripped new license 2001-09-19 20:09:47 +00:00
rjesup%wgate.com 070b2fe9da Bug 92576. nsVoidArray->nsAutoVoidArray. sr=jst, r=waterson, r=pavlov, r=kin, r=kmcclusk 2001-09-12 14:59:11 +00:00
shaver%mozilla.org a0daa1645d 75152: Remove GetVersionNumber stub in favour of upcoming, less-invasive
preloader strategy. r=jag, sr=attinasi.
2001-04-11 14:23:13 +00:00
rickg%netscape.com 169a621d42 preloader update. r=peterl, sr=attinasi 2001-04-03 22:58:59 +00:00
kin%netscape.com 11f8ac97cd Fixes for bug #66308 ([embed] XPIDL'ize transaction manager)
sr=sfraser@netscape.com,mscott@netscape.com r=jfrancis@netscape.com

* nsITransaction, nsITransactionListenter, nsITransactionManager have
  been XPIDL'ized and moved into mozilla/editor/txmgr/idl. The versions
  of these interfaces in mozilla/editor/txmgr/public are being CVS removed.

* Renamed Do(), Undo(), and Redo() to DoTransaction(), UndoTransaction(),
  and RedoTransaction() to avoid reserved word problems in languages like
  JS. I did a sweep through editor and mailnews to remove these methods.

* PeekUndoStack() and PeekRedoStack() now return an AddRef'd pointer.

* Removed GetUndoString(), GetRedoString() and Write() from the
  nsITransaction interface. Neither editor or mailnews really made
  use of these methods.

* Removed Write() from the nsITransactionManager.cpp interface.

* The Transaction Manager now supports weak references.

* Added support for nsITransactionList to the TransactionManager
  to allow access to all transactions on the Undo and Redo stacks, as
  well as auto-aggregated transactions.

* Removed all references to nsITransactionDescription from txmgr and editor.

* Added nsPIEditorTransaction and made all Editor internal transactions
  inherit from it so we can distinguish between our transactions and
  ones from 3rd parties.

New files checked in:

  editor/txmgr/idl/nsITransaction.idl
  editor/txmgr/idl/nsITransactionList.idl
  editor/txmgr/idl/nsITransactionListener.idl
  editor/txmgr/idl/nsITransactionManager.idl
  editor/txmgr/src/nsITransactionList.cpp
  editor/txmgr/src/nsITransactionList.h
  editor/idl/nsPIEditorTransaction.idl

Files that were CVS removed:

  editor/txmgr/public/nsITransaction.h
  editor/txmgr/public/nsITransactionListener.h
  editor/txmgr/public/nsITransactionManager.h
  editor/txmgr/idl/nsITransactionDescription.h
  editor/base/IMECommitTxn.cpp
  editor/base/IMECommitTxn.h

Files modified:

  editor/Makefile.in
  editor/makefile.win
  editor/base/ChangeAttributeTxn.cpp
  editor/base/ChangeAttributeTxn.h
  editor/base/CreateElementTxn.cpp
  editor/base/CreateElementTxn.h
  editor/base/DeleteElementTxn.cpp
  editor/base/DeleteElementTxn.h
  editor/base/DeleteRangeTxn.cpp
  editor/base/DeleteRangeTxn.h
  editor/base/DeleteTextTxn.cpp
  editor/base/DeleteTextTxn.h
  editor/base/EditAggregateTxn.cpp
  editor/base/EditAggregateTxn.h
  editor/base/EditTxn.cpp
  editor/base/EditTxn.h
  editor/base/IMECommitTxn.cpp
  editor/base/IMECommitTxn.h
  editor/base/IMETextTxn.cpp
  editor/base/IMETextTxn.h
  editor/base/InsertElementTxn.cpp
  editor/base/InsertElementTxn.h
  editor/base/InsertTextTxn.cpp
  editor/base/InsertTextTxn.h
  editor/base/JoinElementTxn.cpp
  editor/base/JoinElementTxn.h
  editor/base/nsEditor.cpp
  editor/base/nsEditorShell.cpp
  editor/base/nsEditorShell.h
  editor/base/nsEditorTxnLog.cpp
  editor/base/nsStyleSheetTxns.cpp
  editor/base/nsStyleSheetTxns.h
  editor/base/PlaceholderTxn.cpp
  editor/base/PlaceholderTxn.h
  editor/base/SetDocTitleTxn.cpp
  editor/base/SetDocTitleTxn.h
  editor/base/SplitElementTxn.cpp
  editor/base/SplitElementTxn.h
  editor/idl/Makefile.in
  editor/idl/makefile.win
  editor/idl/MANIFEST
  editor/idl/nsIEditorShell.idl
  editor/macbuild/editor.mcp
  editor/macbuild/EditorIDL.mcp
  editor/txmgr/idl/Makefile.in
  editor/txmgr/idl/makefile.win
  editor/txmgr/idl/MANIFEST
  editor/txmgr/idl/nsITransactionManager.idl
  editor/txmgr/macbuild/txmgr.mcp
  editor/txmgr/macbuild/txmgrIDL.mcp
  editor/txmgr/public/Makefile.in
  editor/txmgr/public/makefile.win
  editor/txmgr/public/MANIFEST
  editor/txmgr/src/Makefile.in
  editor/txmgr/src/makefile.win
  editor/txmgr/src/nsTransactionItem.cpp
  editor/txmgr/src/nsTransactionItem.h
  editor/txmgr/src/nsTransactionList.cpp
  editor/txmgr/src/nsTransactionList.h
  editor/txmgr/src/nsTransactionManager.cpp
  editor/txmgr/src/nsTransactionManager.h
  editor/txmgr/src/nsTransactionManagerFactory.cpp
  editor/txmgr/src/nsTransactionStack.cpp
  editor/txmgr/src/nsTransactionStack.h
  editor/txmgr/tests/TestTXMgr.cpp
  editor/ui/composer/content/EditorCommandsDebug.js
  editor/ui/composer/content/editorOverlay.xul
  editor/ui/composer/locale/en-US/editorOverlay.dtd
  mailnews/base/src/nsMessenger.cpp
  mailnews/base/util/nsMsgTxn.cpp
  mailnews/base/util/nsMsgTxn.h
  mailnews/imap/src/nsImapMailFolder.cpp
  mailnews/imap/src/nsImapUndoTxn.cpp
  mailnews/imap/src/nsImapUndoTxn.h
  mailnews/local/src/nsLocalMailFolder.cpp
  mailnews/local/src/nsLocalUndoTxn.cpp
  mailnews/local/src/nsLocalUndoTxn.h
2001-03-09 14:23:59 +00:00
warren%netscape.com c0497e31be Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar 2000-03-05 21:26:01 +00:00
dp%netscape.com bc95e3bdf7 - Converting to nsGenericModule
- Removed exported NS_New*()
- Using NS_IMPL_ISUPPORTS[0-9]
r=akkanna@netscape.com
1999-11-22 21:03:04 +00:00
kin%netscape.com ef66dcd123 TransactionManager fix for bug #11590: eliminate NS_COMFALSE
Modified all nsITransactionListener::Will* methods and implementations
to use an aInterrupt argument.

    mozilla/editor/base/nsEditorTxnLog.cpp
    mozilla/editor/base/nsEditorTxnLog.h
    mozilla/editor/txmgr/public/nsITransactionListener.h
    mozilla/editor/txmgr/src/nsTransactionItem.cpp
    mozilla/editor/txmgr/src/nsTransactionManager.cpp
    mozilla/editor/txmgr/src/nsTransactionManager.h

r=brade@netscape.com
1999-11-11 19:35:40 +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
morse%netscape.com b735dfc765 fix bug 10434, memory leak detection, r=kin 1999-10-14 13:50:36 +00:00
kin%netscape.com 236417d08b Enabled LOCK/UNLOCK macros. 1999-06-03 15:26:48 +00:00
kin%netscape.com 8245590ade Changed interface and implementation to us NS_IMETHOD and NS_IMPMETHOD macros. 1999-05-27 20:48:55 +00:00
kin%netscape.com ea1a98b277 Added support for nsITransactionListener.
Cleaned up includes in header files.
1999-05-26 21:16:25 +00:00
buster%netscape.com 033ffdd7ed * 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
mcmullen%netscape.com 9798175c73 Removed the offset parameter from the base stream interfaces. Implemented string streams. 1999-03-05 22:53:56 +00:00
kin%netscape.com efd75e5cfe Added BeginBatch(), EndBatch(), BeginTransaction() and EndTransaction()
methods. Modified Do() method to use Begin/EndTransaction().
1999-02-08 17:28:33 +00:00
mjudge%netscape.com 1a702419c2 changing COM_auto_ptr to nsCOMPtr.h 1998-12-17 19:26:17 +00:00
kin%netscape.com a62c1e0d05 Backout previous changes to fix build bustage. 1998-12-16 18:52:23 +00:00
mjudge%netscape.com 793bd2fc59 write now takes ints instead of unsigned ints 1998-12-16 18:43:13 +00:00
warren%netscape.com ce21da626c Fixed some unsigned problems for the Mac. 1998-12-16 08:03:53 +00:00
kin%netscape.com 1c9bd558c4 Added OPTIMIZATION comment. 1998-12-15 02:12:25 +00:00
kin%netscape.com 3074a19e6a Added SetMaxTransactionCount() method to nsITransactionManager and
nsTransactionManager. Replaced all !NS_SUCCEEDED with NS_FAILED.
1998-12-11 00:22:34 +00:00
kin%netscape.com 962ec07d6f Modified Undo() and Redo() to throw an error if there is a transaction
on the Do stack.
1998-12-09 19:53:31 +00:00
kin%netscape.com 54aeeda011 Added support for nsITransaction::GetIsTransient() method. 1998-12-04 23:09:55 +00:00
mjudge%netscape.com ac6b0fe43f removing NULL replacing with nsnull 1998-12-03 23:46:36 +00:00
kin%netscape.com 0f82ce934a Fixed crash bug when calling PeekUndoStack() or PeekRedoStack() when the stacks
are empty. Fixed bug that allowed mMaxLevelsOfUndo + 1 entries on the undo
stack.
1998-12-03 00:41:44 +00:00
kin%netscape.com cc62ea4233 Added implementations for new Clear(), PeekUndoStack(), and PeekRedoStack()
interface methods. Added support for transaction merging/coalescing, and
max number of undos.
1998-12-02 17:39:09 +00:00
kin%netscape.com 82e8e9c1ee Implemented transaction aggregation, modified code to use nsTransactionItem. 1998-12-01 18:38:52 +00:00
kin%netscape.com 84e16bb502 Modified transaction manager to use nsTransactionStacks. 1998-11-24 00:45:21 +00:00
kin%netscape.com be08e6d153 First pass implementations of Do, Undo, and Redo. 1998-11-21 01:02:55 +00:00
kin%netscape.com aa3e1c5209 Added QueryInterface() implementation. 1998-11-20 18:04:57 +00:00
kin%netscape.com 5c09bb55a3 Updated nsITransaction and nsITransactionManager to match current spec. 1998-11-20 00:43:07 +00:00
kin%netscape.com faef3ce058 Changed all occurrences of transactionManager to nsTransactionManager. 1998-11-19 21:58:58 +00:00
kin%netscape.com 8176990870 Initial checkin of file. 1998-11-19 21:43:21 +00:00