ACF $AcfVersion:0$
IDocumentStateComparator.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
6#include <istd/IChangeable.h>
7
8
9namespace idoc
10{
11
12
60{
61public:
82
87 virtual bool HasStoredDocumentState() const = 0;
88
96 virtual bool StoreDocumentState() = 0;
97
105 virtual bool RestoreDocumentState() = 0;
106
112};
113
114
115} // namespace idoc
116
117
118
119
Allows to store some document state used as reference for comparison.
virtual bool HasStoredDocumentState() const =0
Check if there is stored document state available.
virtual bool RestoreDocumentState()=0
Restore last stored document state.
virtual DocumentChangeFlag GetDocumentChangeFlag() const =0
Check if document state is the same as stored state.
DocumentChangeFlag
Flag indicating the relationship between current and stored document state.
@ DCF_DIFFERENT
Current document state differs from the stored one (has changes).
@ DCF_UNKNOWN
There is no information about document change (no state stored).
@ DCF_EQUAL
Current document state equals the stored one (no changes).
virtual bool StoreDocumentState()=0
Store state of the document.
Common interface for data model objects, which can be changed.
Definition IChangeable.h:28
Contains the system independent basic implementations of Document/View design pattern.