]> git.lyx.org Git - lyx.git/blob - src/func_status.h
Fix working of the spellchecker dialog with ispell when there are no
[lyx.git] / src / func_status.h
1 // -*- C++ -*-
2 #ifndef FUNC_STATUS_H
3 #define FUNC_STATUS_H
4
5 /// The status of a function.
6 namespace func_status {
7
8 enum value_type {
9                 /// No problem
10                 OK = 0,
11                 ///
12                 Unknown = 1,
13                 /// Command cannot be executed
14                 Disabled = 2,
15                 ///
16                 ToggleOn = 4,
17                 ///
18                 ToggleOff = 8
19         };
20 }
21
22 ///
23 inline
24 void operator|=(func_status::value_type & fs, func_status::value_type f)
25 {
26         fs = static_cast<func_status::value_type>(fs | f);
27 }
28
29 #endif