Prepare ANNOUNCE and NEWS for rc2
[lyx.git] / src / update_flags.h
blob2950a894d1d6853fd0fbdfb76720ecdc0d0d4f63
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.
7 * \author The Denmark Cowboys
9 * Full author contact details are available in file CREDITS.
12 #ifndef UPDATE_FLAGS_H
13 #define UPDATE_FLAGS_H
15 namespace lyx {
17 namespace Update {
18 enum flags {
19 /// No screen update is needed.
20 None = 0,
21 /// Recenter the screen around the cursor if is found outside the
22 /// visible area.
23 FitCursor = 1,
24 /// Force a full screen metrics update.
25 Force = 2,
26 /// Try to rebreak only the current paragraph metrics.
27 SinglePar = 4,
28 /// Only the inset decorations need to be redrawn, no text metrics
29 /// update is needed.
30 Decoration = 8
33 inline flags operator|(flags const f, flags const g)
35 return static_cast<flags>(int(f) | int(g));
38 inline flags operator&(flags const f, flags const g)
40 return static_cast<flags>(int(f) & int(g));
43 } // namespace
45 } // namespace lyx
46 #endif