0031075: Application Framework - reading STEP file into TDocStd_Document leads to...
[occt.git] / src / TDocStd / TDocStd_MultiTransactionManager.lxx
1 // Created on: 2002-11-20
2 // Created by: Vladimir ANIKIN
3 // Copyright (c) 2002-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 //=======================================================================
17 //function : GetUndoLimit
18 //purpose  : 
19 //=======================================================================
20
21 inline Standard_Integer
22   TDocStd_MultiTransactionManager::GetUndoLimit() const
23 {
24   return myUndoLimit;
25 }
26
27 //=======================================================================
28 //function : GetAvailableUndos
29 //purpose  : 
30 //=======================================================================
31
32 inline const TDocStd_SequenceOfApplicationDelta&
33   TDocStd_MultiTransactionManager::GetAvailableUndos() const
34 {
35   return myUndos;
36 }
37
38 //=======================================================================
39 //function : GetAvailableRedos
40 //purpose  : 
41 //=======================================================================
42
43 inline const TDocStd_SequenceOfApplicationDelta&
44   TDocStd_MultiTransactionManager::GetAvailableRedos() const
45 {
46   return myRedos;
47 }
48
49 //=======================================================================
50 //function : Documents
51 //purpose  : 
52 //=======================================================================
53
54 inline const TDocStd_SequenceOfDocument&
55   TDocStd_MultiTransactionManager::Documents() const
56 {
57   return myDocuments;
58 }
59
60 //=======================================================================
61 //function : IsNestedTransactionMode
62 //purpose  : 
63 //=======================================================================
64
65 inline Standard_Boolean
66   TDocStd_MultiTransactionManager::IsNestedTransactionMode () const
67 {
68   return myIsNestedTransactionMode;
69 }
70
71 //=======================================================================
72 //function : HasOpenCommand
73 //purpose  : 
74 //=======================================================================
75
76 inline Standard_Boolean
77   TDocStd_MultiTransactionManager::HasOpenCommand () const
78 {
79   return myOpenTransaction;
80 }
81
82 //=======================================================================
83 //function : ModificationMode
84 //purpose  : returns True if changes allowed only inside transactions
85 //=======================================================================
86
87 inline Standard_Boolean TDocStd_MultiTransactionManager::ModificationMode() const
88 {
89   return myOnlyTransactionModification;
90 }