mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-02 14:01:10 +00:00
3c4e567d44
codespell -w -i 3 -S Makefile.in -L mathed,afe,tthe,ue,fro,uint,larg,alph,te,thes,alle,Claus,wit,nd,numer src/mathed/
58 lines
1.1 KiB
C++
58 lines
1.1 KiB
C++
// -*- 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 warnings or errors).
|
|
QUIET = 0x04,
|
|
/// Wrap unicode symbols in \text{}.
|
|
USETEXT = 0x08,
|
|
/// Track macro creation while loading a document
|
|
TRACKMACRO = 0x10,
|
|
/// Parse a macro definition
|
|
MACRODEF = 0x20
|
|
};
|
|
|
|
|
|
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
|