- /// 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;
+
+ /// transaction indexes (related to myTransactionsAfterSave) and number of real transactions
+ /// in myDocument connected to this operation (may be zero for empty transaction)
+ std::list<int> myTransactions;
+ /// list of numbers of real document transactions undone (first is oldest undone)
+ std::list<int> myRedos;