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)
|
2009-05-07 10:57:52 +00:00
|
|
|
: flavor(LATEX), nice(false), moving_arg(false), inulemcmd(false),
|
2007-03-18 10:59:16 +00:00
|
|
|
local_font(0), encoding(enc), 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),
|
2007-07-21 18:10:55 +00:00
|
|
|
inDeletedInset(0), changeOfDeletedInset(Change::UNCHANGED),
|
2008-09-18 14:51:16 +00:00
|
|
|
par_begin(0), par_end(0), isLastPar(false),
|
2009-06-19 18:32:50 +00:00
|
|
|
dryrun(false), verbatim(false), disable_captions(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
|
|
|
|
|
|
|
|
|
|
|
} // namespace lyx
|