blob: 3f49f2c6e897ba862f65361cad5a25b48a617e3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/**
* @file lleditmenuhandler.h
* @authors Aaron Yonas, James Cook
*
* Copyright (c) 2006-$CurrentYear$, Linden Research, Inc.
* $License$
*/
#ifndef LLEDITMENUHANDLER_H
#define LLEDITMENUHANDLER_H
// Interface used by menu system for plug-in hotkey/menu handling
class LLEditMenuHandler
{
public:
// this is needed even though this is just an interface class.
virtual ~LLEditMenuHandler();
virtual void undo();
virtual BOOL canUndo();
virtual void redo();
virtual BOOL canRedo();
virtual void cut();
virtual BOOL canCut();
virtual void copy();
virtual BOOL canCopy();
virtual void paste();
virtual BOOL canPaste();
// "delete" is a keyword
virtual void doDelete();
virtual BOOL canDoDelete();
virtual void selectAll();
virtual BOOL canSelectAll();
virtual void deselect();
virtual BOOL canDeselect();
virtual void duplicate();
virtual BOOL canDuplicate();
};
extern LLEditMenuHandler* gEditMenuHandler;
#endif
|