mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Initialize math_flavor, and introduce an isLaTeX() flavor check.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33968 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a0043da05f
commit
b5d2302180
@ -19,8 +19,8 @@ namespace lyx {
|
||||
|
||||
|
||||
OutputParams::OutputParams(Encoding const * enc)
|
||||
: flavor(LATEX), nice(false), moving_arg(false), inulemcmd(false),
|
||||
local_font(0), master_language(0), encoding(enc),
|
||||
: flavor(LATEX), math_flavor(NotApplicable), nice(false), moving_arg(false),
|
||||
inulemcmd(false), local_font(0), master_language(0), encoding(enc),
|
||||
free_spacing(false), use_babel(false),
|
||||
use_indices(false), use_japanese(false), linelen(0), depth(0),
|
||||
exportdata(new ExportData),
|
||||
@ -43,4 +43,9 @@ OutputParams::~OutputParams()
|
||||
{}
|
||||
|
||||
|
||||
bool OutputParams::isLaTeX() const
|
||||
{
|
||||
return flavor == LATEX || flavor == PDFLATEX || flavor == XETEX;
|
||||
}
|
||||
|
||||
} // namespace lyx
|
||||
|
@ -39,6 +39,7 @@ public:
|
||||
};
|
||||
|
||||
enum MathFlavor {
|
||||
NotApplicable,
|
||||
MathAsMathML,
|
||||
MathAsHTML,
|
||||
MathAsImages,
|
||||
@ -64,6 +65,8 @@ public:
|
||||
compile the file.
|
||||
*/
|
||||
FLAVOR flavor;
|
||||
/// is it some flavor of LaTeX?
|
||||
bool isLaTeX() const;
|
||||
|
||||
/// Same, but for math output, which only matter is XHTML output.
|
||||
MathFlavor math_flavor;
|
||||
|
Loading…
Reference in New Issue
Block a user