]> git.lyx.org Git - lyx.git/blob - src/UpdateFlags.h
* languages: use nb_NO instead of no_NO for norwegian (bug 2850).
[lyx.git] / src / UpdateFlags.h
1 // -*- C++ -*-
2 /**
3  * \file UpdateFlags.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         };
25
26 inline flags operator|(flags const f, flags const g)
27 {
28         return static_cast<flags>(int(f) | int(g));
29 }
30
31 inline flags operator&(flags const f, flags const g)
32 {
33         return static_cast<flags>(int(f) & int(g));
34 }
35
36 } // namespace
37
38 } // namespace lyx
39 #endif