]> git.lyx.org Git - features.git/commitdiff
mathparser_flags.h: follow our naming convention part 2/2
authorUwe Stöhr <uwestoehr@web.de>
Sat, 18 Oct 2008 12:25:03 +0000 (12:25 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sat, 18 Oct 2008 12:25:03 +0000 (12:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26937 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathParser.h
src/mathed/MathParser_flags.h [new file with mode: 0644]
src/mathed/MathSupport.h

index aa798e7ccaefd3d9e6a2fe2d6c496520daa3478a..7aea0640776e0c6000b2c0e35305558507a5f6c2 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef MATH_PARSER_H
 #define MATH_PARSER_H
 
-#include "mathparser_flags.h"
+#include "MathParser_flags.h"
 
 #include "support/types.h"
 #include "support/docstring.h"
diff --git a/src/mathed/MathParser_flags.h b/src/mathed/MathParser_flags.h
new file mode 100644 (file)
index 0000000..41d5cd7
--- /dev/null
@@ -0,0 +1,51 @@
+// -*- C++ -*-
+/**
+ * \file mathparser_flags.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Enrico Forestieri
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
+#ifndef MATHPARSER_FLAGS_H
+#define MATHPARSER_FLAGS_H
+
+namespace lyx {
+
+namespace Parse {
+
+enum flags {
+       /// Parse normally.
+       NORMAL = 0x00,
+       /// Start parsing in text mode.
+       TEXTMODE = 0x01,
+       /// Parse verbatim.
+       VERBATIM = 0x02,
+       /// Quiet operation (no warnigs or errors).
+       QUIET = 0x04
+};
+
+
+inline flags operator|(flags const f, flags const g)
+{
+       return static_cast<flags>(int(f) | int(g));
+}
+
+
+inline flags & operator|=(flags & f, flags g)
+{
+       return f = static_cast<flags>(int(f) | int(g));
+}
+
+
+inline flags operator&(flags const f, flags const g)
+{
+       return static_cast<flags>(int(f) & int(g));
+}
+
+} // namespace Parse
+
+} // namespace lyx
+#endif
index 8bda8ac80aa463517d5809c84b6d5c7ed6650559..85f0292762684a2670f8923af3ad67206241d0b8 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef MATH_SUPPORT_H
 #define MATH_SUPPORT_H
 
-#include "mathparser_flags.h"
+#include "MathParser_flags.h"
 #include "support/strfwd.h"
 #include <vector>