Warning, /include/opencascade/TDocStd_MultiTransactionManager.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 2002-11-20
0002 // Created by: Vladimir ANIKIN
0003 // Copyright (c) 2002-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015
0016 //=======================================================================
0017 //function : GetUndoLimit
0018 //purpose :
0019 //=======================================================================
0020
0021 inline Standard_Integer
0022 TDocStd_MultiTransactionManager::GetUndoLimit() const
0023 {
0024 return myUndoLimit;
0025 }
0026
0027 //=======================================================================
0028 //function : GetAvailableUndos
0029 //purpose :
0030 //=======================================================================
0031
0032 inline const TDocStd_SequenceOfApplicationDelta&
0033 TDocStd_MultiTransactionManager::GetAvailableUndos() const
0034 {
0035 return myUndos;
0036 }
0037
0038 //=======================================================================
0039 //function : GetAvailableRedos
0040 //purpose :
0041 //=======================================================================
0042
0043 inline const TDocStd_SequenceOfApplicationDelta&
0044 TDocStd_MultiTransactionManager::GetAvailableRedos() const
0045 {
0046 return myRedos;
0047 }
0048
0049 //=======================================================================
0050 //function : Documents
0051 //purpose :
0052 //=======================================================================
0053
0054 inline const TDocStd_SequenceOfDocument&
0055 TDocStd_MultiTransactionManager::Documents() const
0056 {
0057 return myDocuments;
0058 }
0059
0060 //=======================================================================
0061 //function : IsNestedTransactionMode
0062 //purpose :
0063 //=======================================================================
0064
0065 inline Standard_Boolean
0066 TDocStd_MultiTransactionManager::IsNestedTransactionMode () const
0067 {
0068 return myIsNestedTransactionMode;
0069 }
0070
0071 //=======================================================================
0072 //function : HasOpenCommand
0073 //purpose :
0074 //=======================================================================
0075
0076 inline Standard_Boolean
0077 TDocStd_MultiTransactionManager::HasOpenCommand () const
0078 {
0079 return myOpenTransaction;
0080 }
0081
0082 //=======================================================================
0083 //function : ModificationMode
0084 //purpose : returns True if changes allowed only inside transactions
0085 //=======================================================================
0086
0087 inline Standard_Boolean TDocStd_MultiTransactionManager::ModificationMode() const
0088 {
0089 return myOnlyTransactionModification;
0090 }