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

43 Коммитов

Автор SHA1 Сообщение Дата
dbaron%fas.harvard.edu 59892aa65e Remove more no-longer-needed nsComponentManager::RegisterComponent calls. Remove remnants of NS_IMPL_IDS macro, associated with long-gone NS_DECLARE_ID. b=125782 r=dougt rs=jag 2002-02-16 16:18:13 +00:00
timeless%mac.com 61a97fd94a Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting
r='s from many people. sr=jst
2001-12-23 23:23:41 +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
dbaron%fas.harvard.edu 113ad642ae Replace uses of deprecated NS_IMPL_ISUPPORTS and NS_IMPL_QUERYINTERFACE macros with NS_IMPL_{ISUPPORTS,QUERYINTERFACE}{1,0}. r=jag rs=brendan b=45797 2001-08-21 01:48:11 +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 e05eef45e9 Bug 46777. Redesigned stream interfaces to allows stream observers to be decoupled from pipe implementation. Needed for embedding to fix 'spin' problem. r=rpotts,valeski,ruslan 2000-08-22 07:03:33 +00:00
mjudge%netscape.com 2cfb602409 making string conversions explicit. scc 2000-04-26 01:13:55 +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
kin%netscape.com 54e49f6b16 Fix for bug #9826: [malloc] memory allocation problems - editor tests
Added checks for NULL everywhere new and create are called.
1999-07-14 17:27:34 +00:00
mcafee%netscape.com d8516561a9 Adding coment for BeOS. 1999-06-25 14:33:31 +00:00
warren%netscape.com b113f2332f Moved WriteFrom to nsIBufferOutputStream. Made necko pass around buffer streams. 1999-06-08 20:57:32 +00:00
briano%netscape.com 8699ea0019 Handle the (Unix) platform-specific DLL naming conventions properly. 1999-06-04 22:17:30 +00:00
warren%netscape.com cbbfa208f8 IDLized stream interfaces. Required rename of overloaded Write method (now WriteFrom). 1999-06-03 21:50:47 +00:00
kin%netscape.com 4c8dbecd07 Changed GetUndoString() and GetRedoString() to use nsString *. 1999-05-27 20:50:05 +00:00
kin%netscape.com ea1a98b277 Added support for nsITransactionListener.
Cleaned up includes in header files.
1999-05-26 21:16:25 +00:00
warren%netscape.com c289c670cd Added Write(nsIInputStream) and Flush to nsIOutputStream. 1999-04-22 07:31:03 +00:00
kin%netscape.com 806301a0b5 Changed all occurences of NS_TRANSACTION_MANAGER_FACTORY_CID
and kCTransactionManagerFactoryCID to NS_TRANSACTIONMANAGER_CID
and kCTransactionManagerCID.
1999-03-10 21:27:02 +00:00
warren%netscape.com 4b2d56fbaa nsRepository -> nsIComponentManager changes. 1999-03-09 09:44:27 +00:00
mcmullen%netscape.com 5c9516e394 Adapt to new stream interfaces some more. 1999-03-06 02:12:52 +00:00
mcmullen%netscape.com 1b6c1b44be Adapt to new stream interfaces 1999-03-06 00:29:58 +00:00
cmanske%netscape.com 27e9ab27a5 Fixed mismatched declarations/implementations 1999-03-02 07:13:45 +00:00
ebina%netscape.com 1b377a9c65 Changing RegisterFactory to use the new API. 1999-02-26 15:59:52 +00:00
kin%netscape.com 6b7560f829 Removed all references to ServiceManager, we now rely on nsRepository directly. 1999-02-12 16:57:55 +00:00
kin%netscape.com 9bd79d07f3 Added test cases for TransactionManager's BeginBatch() and EndBatch() methods. 1999-02-08 17:30:30 +00:00
kin%netscape.com 208f109b51 Added calls to nsServiceManager::ShutdownService() to get the tests working
again.  Fixed some compiler warnings.
1999-02-04 17:35:04 +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 8344827a20 Added tests for SetMaxTransactionCount(). 1998-12-15 02:11:53 +00:00
kin%netscape.com 5e6f7ebaaa Added TestTransactionFactory classes. Got rid of duplicate test/stress
functions.
1998-12-14 23:50:27 +00:00
mjudge%netscape.com c97fc5a613 txmgr changes not built yet 1998-12-14 18:46:13 +00:00
kin%netscape.com 2a84b4165f Modified tests to call nsServiceManager::GetService() to create an
nsITransactionManager.
1998-12-11 00:25:33 +00:00
kin%netscape.com dfaac710fa Added aggregation_test(), stress_test(), and aggregation_stress_test(). 1998-12-09 19:28:58 +00:00
kin%netscape.com cfaea97c1e Added transient and coalescing test cases. 1998-12-05 01:15:40 +00:00
kin%netscape.com 54aeeda011 Added support for nsITransaction::GetIsTransient() method. 1998-12-04 23:09:55 +00:00
kin%netscape.com 7e610d5df9 Added test case for error during a redo. Added checks to make sure all
transaction destruction happens in the order we expect.
1998-12-04 21:32:47 +00:00
kin%netscape.com 45ade84f31 Added more test cases. 1998-12-04 18:09:06 +00:00
mjudge%netscape.com ac6b0fe43f removing NULL replacing with nsnull 1998-12-03 23:46:36 +00:00
kin%netscape.com a26443652f Updated TestTransaction methods to match changes to nsITransaction interface.
Started implementation of simple test.
1998-12-02 17:40:25 +00:00
kin%netscape.com 2bbdbbe8de Quick test to see if the first pass transaction manager code is working. 1998-11-21 01:21:14 +00:00
kin%netscape.com b9d9887672 Initial checkin of files. 1998-11-20 18:36:05 +00:00