2004-06-03 13:08:50 +00:00
|
|
|
/**
|
2007-04-26 04:41:58 +00:00
|
|
|
* \file OutputParams.cpp
|
2004-06-03 13:08:50 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Angus Leeming
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
2007-04-26 04:41:58 +00:00
|
|
|
#include "OutputParams.h"
|
|
|
|
#include "Exporter.h"
|
2008-08-18 17:26:09 +00:00
|
|
|
#include "Encoding.h"
|
2004-06-03 13:08:50 +00:00
|
|
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
|
2007-03-18 10:59:16 +00:00
|
|
|
OutputParams::OutputParams(Encoding const * enc)
|
2010-03-31 18:57:20 +00:00
|
|
|
: flavor(LATEX), math_flavor(NotApplicable), nice(false), moving_arg(false),
|
|
|
|
inulemcmd(false), local_font(0), master_language(0), encoding(enc),
|
2009-10-18 21:48:13 +00:00
|
|
|
free_spacing(false), use_babel(false),
|
2009-04-16 07:29:01 +00:00
|
|
|
use_indices(false), use_japanese(false), linelen(0), depth(0),
|
2006-01-09 21:00:24 +00:00
|
|
|
exportdata(new ExportData),
|
2009-02-07 12:27:24 +00:00
|
|
|
inComment(false), inTableCell(NO), inFloat(NONFLOAT),
|
2009-09-10 12:07:42 +00:00
|
|
|
inIndexEntry(false), inDeletedInset(0),
|
|
|
|
changeOfDeletedInset(Change::UNCHANGED),
|
2008-09-18 14:51:16 +00:00
|
|
|
par_begin(0), par_end(0), isLastPar(false),
|
2010-08-07 22:07:49 +00:00
|
|
|
dryrun(false), pass_thru(false),
|
2009-11-19 22:31:52 +00:00
|
|
|
html_disable_captions(false), html_in_par(false),
|
2010-01-14 22:24:43 +00:00
|
|
|
html_make_pars(true), for_toc(false), includeall(false)
|
2008-08-18 17:26:09 +00:00
|
|
|
{
|
|
|
|
// Note: in PreviewLoader::Impl::dumpPreamble
|
|
|
|
// OutputParams runparams(0);
|
|
|
|
if (enc && enc->package() == Encoding::japanese)
|
|
|
|
use_japanese = true;
|
|
|
|
}
|
2004-06-03 13:08:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
OutputParams::~OutputParams()
|
|
|
|
{}
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
2010-03-31 18:57:20 +00:00
|
|
|
bool OutputParams::isLaTeX() const
|
|
|
|
{
|
|
|
|
return flavor == LATEX || flavor == PDFLATEX || flavor == XETEX;
|
|
|
|
}
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
} // namespace lyx
|