diff --git a/editor/txmgr/src/transactionManager.cpp b/editor/txmgr/src/transactionManager.cpp index 25437b136368..41557d7d64bd 100644 --- a/editor/txmgr/src/transactionManager.cpp +++ b/editor/txmgr/src/transactionManager.cpp @@ -15,3 +15,42 @@ * Copyright (C) 1998 Netscape Communications Corporation. All Rights * Reserved. */ + +#include "transactionManager.h" +#include "COM_auto_ptr.h" + +nsTransactionManager::nsTransactionManager() +{ +} + +nsTransactionManager::~nsTransactionManager() +{ +} + +NS_IMPL_ADDREF(nsTransactionManager) +NS_IMPL_RELEASE(nsTransactionManager) + +nsresult +nsTransactionManager::Execute(nsITransaction *tx) +{ + return NS_OK; +} + +nsresult +nsTransactionManager::Undo(PRInt32 n) +{ + return NS_OK; +} + +nsresult +nsTransactionManager::Redo(PRInt32 n) +{ + return NS_OK; +} + +nsresult +nsTransactionManager::Write(nsIOutputStream *os) +{ + return NS_OK; +} + diff --git a/editor/txmgr/src/transactionManager.h b/editor/txmgr/src/transactionManager.h index c103a98fc844..8c6b00e66343 100644 --- a/editor/txmgr/src/transactionManager.h +++ b/editor/txmgr/src/transactionManager.h @@ -20,13 +20,31 @@ #define transactionManager_h__ #include "nsITransactionManager.h" -#include "COM_auto_ptr.h" /** implementation of a transaction manager object. * */ -class TransactionManager : public nsITransactionManager +class nsTransactionManager : public nsITransactionManager { +public: + + /** The default constructor. + */ + nsTransactionManager(); + + /** The default destructor. + */ + virtual ~nsTransactionManager(); + + /* Macro for AddRef(), Release(), and QueryInterface() */ + NS_DECL_ISUPPORTS + + virtual nsresult Execute(nsITransaction *tx); + virtual nsresult Undo(PRInt32 n); + virtual nsresult Redo(PRInt32 n); + virtual nsresult Write(nsIOutputStream *os); + // virtual nsresult AddListener(nsITransactionListener *l); + // virtual nsresult RemoveListener(nsITransactionListener *l); }; #endif // transactionManager_h__