xref: /haiku/src/apps/haikudepot/edits_generic/EditContext.h (revision 651e8326ca65a7ed8616db1efc466d17e71baf28)
1 /*
2  * Copyright 2013 Stephan Aßmus <superstippi@gmx.de>
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #ifndef EDIT_CONTEXT_H
7 #define EDIT_CONTEXT_H
8 
9 #include <Referenceable.h>
10 
11 /**
12  * EditContext is passed to UndoableEdits in Perform(), Undo(), and Redo().
13  * It provides a context in which the user performs these operations
14  * and can be used for example to control the selection or visible
15  * portion of the document to focus the user's attention on the
16  * elements affected by the UndoableEdit.
17  */
18 class EditContext : public BReferenceable {
19 public:
20 								EditContext();
21 	virtual						~EditContext();
22 };
23 
24 typedef BReference<EditContext> EditContextRef;
25 
26 #endif // EDIT_CONTEXT_H
27