- /// number of transactions after the last "save" call, used for "IsModified" method
- int myTransactionsAfterSave;
- /// number of nested transactions performed (or -1 if not nested)
- int myNestedNum;
+
+ /// counter value of transaction on the last "save" call, used for "IsModified" method
+ int myTransactionSave;
+ /// number of nested transactions performed (list becasue may be nested inside of nested)
+ /// the list is empty if not nested transaction is performed
+ std::list<int> myNestedNum;
+
+ /// Information related to the every user-transaction
+ struct Transaction {
+ int myOCAFNum; ///< number of OCAF transactions related to each "this" transaction, may be 0
+ std::string myId; ///< user-identifier string of transaction
+ /// default constructor with default Id
+ Transaction(): myOCAFNum(0), myId("") {}
+ };
+
+ /// transaction indexes (related to myTransactionsAfterSave) and info about the real transactions
+ /// in myDocument connected to this operation (may be zero for empty transaction)
+ std::list<Transaction> myTransactions;
+ /// list of info about transactions undone (first is oldest undone)
+ std::list<Transaction> myRedos;