Finale PDK Framework  0.54
ff_undo.h
1 /*
2  * File: ff_undo.h
3  * Author: Jari Williamsson
4  *
5  * Created on den 20 oktober 2011, 13:12
6  */
7 
8 #ifndef FF_UNDO_H
9 #define FF_UNDO_H
10 
11 
12 class FCUndoBlock;
13 
20 {
21  FCUndoBlock* _pOwner;
22  public:
23  __FCUndoBlockHandler() : __FCBase() { _pOwner = NULL; }
24 
31  virtual bool Execute() = 0;
32 
33 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
34 
35  void _SetOwner(FCUndoBlock* pOwner) { _pOwner = pOwner; }
36 #endif
37 
42  FCUndoBlock* GetOwner() { return _pOwner; }
43 };
44 
52 class FCUndoBlock : public __FCBase
53 {
54  bool _isrunning;
55  public:
56  FCUndoBlock() : __FCBase() { _isrunning = false; }
57 
66  bool Execute(__FCUndoBlockHandler *pHandler, FCString *pUndoString);
67 
79  bool AddSession(FCString *pUndoString, bool storecurrentblock);
80 };
81 
82 
83 #endif /* FF_UNDO_H */
84 
__FCBase()
The constructor.
Definition: ff_base.h:247
Class that handles Undo records for modeless plug-in interfaces.
Definition: ff_undo.h:52
The base class for the block handler. Intented for inheritance for use with the FCUndoBlock utility c...
Definition: ff_undo.h:19
virtual bool Execute()=0
Virtual method that will be called by FCUndoBlock::Execute.
FCUndoBlock * GetOwner()
Returns the executing owner.
Definition: ff_undo.h:42
Base class for the Finale Framework classes.
Definition: ff_base.h:47
Class that provides storage for text. This is to achieve platform-transparent text handling...
Definition: ff_base.h:1473
bool Execute(__FCUndoBlockHandler *pHandler, FCString *pUndoString)
Executes the code within an undoable edit record.
Definition: finaleframework.cpp:31046
bool AddSession(FCString *pUndoString, bool storecurrentblock)
Starts a new Undo/Redo block within a running Execute() session.
Definition: finaleframework.cpp:31070