mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
376f3f08bd
Unwrapped symbols can be obtained either by dissolving the text inset or by verbatim paste (Ctrl+Shift+V). In such a case, the symbols are wrapped in \lyxmathsym when exporting to latex, as usual. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29096 a592a061-630c-0410-9148-cb99ea01b6c8
54 lines
961 B
C++
54 lines
961 B
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 warnigs or errors).
|
|
QUIET = 0x04,
|
|
/// Wrap unicode symbols in \text{}.
|
|
USETEXT = 0x08
|
|
};
|
|
|
|
|
|
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
|