1 // Created on: 2002-11-20
2 // Created by: Vladimir ANIKIN
3 // Copyright (c) 2002-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 //=======================================================================
17 //function : GetUndoLimit
19 //=======================================================================
21 inline Standard_Integer
22 TDocStd_MultiTransactionManager::GetUndoLimit() const
27 //=======================================================================
28 //function : GetAvailableUndos
30 //=======================================================================
32 inline const TDocStd_SequenceOfApplicationDelta&
33 TDocStd_MultiTransactionManager::GetAvailableUndos() const
38 //=======================================================================
39 //function : GetAvailableRedos
41 //=======================================================================
43 inline const TDocStd_SequenceOfApplicationDelta&
44 TDocStd_MultiTransactionManager::GetAvailableRedos() const
49 //=======================================================================
50 //function : Documents
52 //=======================================================================
54 inline const TDocStd_SequenceOfDocument&
55 TDocStd_MultiTransactionManager::Documents() const
60 //=======================================================================
61 //function : IsNestedTransactionMode
63 //=======================================================================
65 inline Standard_Boolean
66 TDocStd_MultiTransactionManager::IsNestedTransactionMode () const
68 return myIsNestedTransactionMode;
71 //=======================================================================
72 //function : HasOpenCommand
74 //=======================================================================
76 inline Standard_Boolean
77 TDocStd_MultiTransactionManager::HasOpenCommand () const
79 return myOpenTransaction;
82 //=======================================================================
83 //function : ModificationMode
84 //purpose : returns True if changes allowed only inside transactions
85 //=======================================================================
87 inline Standard_Boolean TDocStd_MultiTransactionManager::ModificationMode() const
89 return myOnlyTransactionModification;