43 Commits

Author SHA1 Message Date
dbaron%fas.harvard.edu
ac6b721449 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
git-svn-id: svn://10.0.0.236/trunk@114693 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-16 16:18:13 +00:00
timeless%mac.com
21c081c8bc Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting
r='s from many people. sr=jst


git-svn-id: svn://10.0.0.236/trunk@111049 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-23 23:23:41 +00:00
gerv%gerv.net
3821428085 License changes, take 2. Bug 98089. mozilla/editor/.
git-svn-id: svn://10.0.0.236/trunk@103757 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 22:53:13 +00:00
gerv%gerv.net
ae1d5501a1 Oops.
git-svn-id: svn://10.0.0.236/trunk@103236 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 00:02:59 +00:00
scc%mozilla.org
52c8d09e03 bug #98089: ripped new license
git-svn-id: svn://10.0.0.236/trunk@103219 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 20:09:47 +00:00
dbaron%fas.harvard.edu
3485888237 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
git-svn-id: svn://10.0.0.236/trunk@101462 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:48:11 +00:00
kin%netscape.com
7365b2cbe5 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


git-svn-id: svn://10.0.0.236/trunk@89126 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 14:23:59 +00:00
warren%netscape.com
f29b00bbe4 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
git-svn-id: svn://10.0.0.236/trunk@76875 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-22 07:03:33 +00:00
mjudge%netscape.com
3cd9a051da making string conversions explicit. scc
git-svn-id: svn://10.0.0.236/trunk@67161 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:13:55 +00:00
dmose%mozilla.org
0efb7c174c updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00
kin%netscape.com
a829550460 Fix for bug #9826: [malloc] memory allocation problems - editor tests
Added checks for NULL everywhere new and create are called.


git-svn-id: svn://10.0.0.236/trunk@39300 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 17:27:34 +00:00
mcafee%netscape.com
41f55c446a Adding coment for BeOS.
git-svn-id: svn://10.0.0.236/trunk@36892 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-25 14:33:31 +00:00
warren%netscape.com
d9b1c6a72f Moved WriteFrom to nsIBufferOutputStream. Made necko pass around buffer streams.
git-svn-id: svn://10.0.0.236/trunk@34249 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:57:32 +00:00
briano%netscape.com
a5a074461d Handle the (Unix) platform-specific DLL naming conventions properly.
git-svn-id: svn://10.0.0.236/trunk@33800 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:17:30 +00:00
warren%netscape.com
bee72685ed IDLized stream interfaces. Required rename of overloaded Write method (now WriteFrom).
git-svn-id: svn://10.0.0.236/trunk@33600 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:50:47 +00:00
kin%netscape.com
738e62b792 Changed GetUndoString() and GetRedoString() to use nsString *.
git-svn-id: svn://10.0.0.236/trunk@32954 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 20:50:05 +00:00
kin%netscape.com
cf9cdb1bd0 Added support for nsITransactionListener.
Cleaned up includes in header files.


git-svn-id: svn://10.0.0.236/trunk@32713 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:16:25 +00:00
warren%netscape.com
0f93e5d59a Added Write(nsIInputStream) and Flush to nsIOutputStream.
git-svn-id: svn://10.0.0.236/trunk@28684 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-22 07:31:03 +00:00
kin%netscape.com
dd9bfaeb94 Changed all occurences of NS_TRANSACTION_MANAGER_FACTORY_CID
and kCTransactionManagerFactoryCID to NS_TRANSACTIONMANAGER_CID
and kCTransactionManagerCID.


git-svn-id: svn://10.0.0.236/trunk@23570 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 21:27:02 +00:00
warren%netscape.com
0b33372d99 nsRepository -> nsIComponentManager changes.
git-svn-id: svn://10.0.0.236/trunk@23300 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-09 09:44:27 +00:00
mcmullen%netscape.com
f6c1353346 Adapt to new stream interfaces some more.
git-svn-id: svn://10.0.0.236/trunk@23033 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-06 02:12:52 +00:00
mcmullen%netscape.com
0f802d5ed2 Adapt to new stream interfaces
git-svn-id: svn://10.0.0.236/trunk@22998 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-06 00:29:58 +00:00
cmanske%netscape.com
746fe83415 Fixed mismatched declarations/implementations
git-svn-id: svn://10.0.0.236/trunk@22539 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 07:13:45 +00:00
ebina%netscape.com
f3c0c2ca83 Changing RegisterFactory to use the new API.
git-svn-id: svn://10.0.0.236/trunk@22111 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-26 15:59:52 +00:00
kin%netscape.com
307fbf07da Removed all references to ServiceManager, we now rely on nsRepository directly.
git-svn-id: svn://10.0.0.236/trunk@20557 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 16:57:55 +00:00
kin%netscape.com
da4ee1e1f6 Added test cases for TransactionManager's BeginBatch() and EndBatch() methods.
git-svn-id: svn://10.0.0.236/trunk@20000 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 17:30:30 +00:00
kin%netscape.com
d395298e0c Added calls to nsServiceManager::ShutdownService() to get the tests working
again.  Fixed some compiler warnings.


git-svn-id: svn://10.0.0.236/trunk@19705 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 17:35:04 +00:00
kin%netscape.com
b8de20feb4 Backout previous changes to fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@16527 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 18:52:23 +00:00
mjudge%netscape.com
5f09556bb7 write now takes ints instead of unsigned ints
git-svn-id: svn://10.0.0.236/trunk@16526 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 18:43:13 +00:00
warren%netscape.com
1dea681a6e Fixed some unsigned problems for the Mac.
git-svn-id: svn://10.0.0.236/trunk@16507 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 08:03:53 +00:00
kin%netscape.com
0f65caf3dd Added tests for SetMaxTransactionCount().
git-svn-id: svn://10.0.0.236/trunk@16394 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 02:11:53 +00:00
kin%netscape.com
171b21fb37 Added TestTransactionFactory classes. Got rid of duplicate test/stress
functions.


git-svn-id: svn://10.0.0.236/trunk@16373 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 23:50:27 +00:00
mjudge%netscape.com
6e0b2ad629 txmgr changes not built yet
git-svn-id: svn://10.0.0.236/trunk@16353 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 18:46:13 +00:00
kin%netscape.com
f87d102bdb Modified tests to call nsServiceManager::GetService() to create an
nsITransactionManager.


git-svn-id: svn://10.0.0.236/trunk@16189 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 00:25:33 +00:00
kin%netscape.com
c712081325 Added aggregation_test(), stress_test(), and aggregation_stress_test().
git-svn-id: svn://10.0.0.236/trunk@16077 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:28:58 +00:00
kin%netscape.com
9ce78f012e Added transient and coalescing test cases.
git-svn-id: svn://10.0.0.236/trunk@15817 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 01:15:40 +00:00
kin%netscape.com
4b75331b5b Added support for nsITransaction::GetIsTransient() method.
git-svn-id: svn://10.0.0.236/trunk@15812 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 23:09:55 +00:00
kin%netscape.com
905266e217 Added test case for error during a redo. Added checks to make sure all
transaction destruction happens in the order we expect.


git-svn-id: svn://10.0.0.236/trunk@15801 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 21:32:47 +00:00
kin%netscape.com
33a2cdeec8 Added more test cases.
git-svn-id: svn://10.0.0.236/trunk@15790 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 18:09:06 +00:00
mjudge%netscape.com
e75f4b14dd removing NULL replacing with nsnull
git-svn-id: svn://10.0.0.236/trunk@15745 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 23:46:36 +00:00
kin%netscape.com
c499a4300e Updated TestTransaction methods to match changes to nsITransaction interface.
Started implementation of simple test.


git-svn-id: svn://10.0.0.236/trunk@15634 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 17:40:25 +00:00
kin%netscape.com
2fd3bd374a Quick test to see if the first pass transaction manager code is working.
git-svn-id: svn://10.0.0.236/trunk@15091 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 01:21:14 +00:00
kin%netscape.com
e5331aea39 Initial checkin of files.
git-svn-id: svn://10.0.0.236/trunk@15031 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 18:36:05 +00:00