mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
mathparser_flags.h: follow our naming convention part 2/2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26937 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8cacb191aa
commit
02d28d981c
@ -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"
|
||||
|
51
src/mathed/MathParser_flags.h
Normal file
51
src/mathed/MathParser_flags.h
Normal file
@ -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
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user