]> git.lyx.org Git - lyx.git/blob - src/update_flags.h
remove obsolete references to saveSelection
[lyx.git] / src / update_flags.h
1 // -*- C++ -*-
2 /**
3  * \file update_flags.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author The Denmark Cowboys
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef UPDATE_FLAGS_H
13 #define UPDATE_FLAGS_H
14
15 namespace lyx {
16
17 namespace Update {
18         enum flags {
19                 None = 0,
20                 FitCursor = 1,
21                 Force = 2,
22                 SinglePar = 4,
23                 MultiParSel = 8,
24                 Decoration = 16
25         };
26
27 inline flags operator|(flags const f, flags const g)
28 {
29         return static_cast<flags>(int(f) | int(g));
30 }
31
32 inline flags operator&(flags const f, flags const g)
33 {
34         return static_cast<flags>(int(f) & int(g));
35 }
36
37 } // namespace
38
39 } // namespace lyx
40 #endif