mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 16:52:02 +00:00
Rename one output param and add a new one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31752 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
331d8060b5
commit
9a19a312ba
@ -28,7 +28,8 @@ OutputParams::OutputParams(Encoding const * enc)
|
|||||||
inIndexEntry(false), inDeletedInset(0),
|
inIndexEntry(false), inDeletedInset(0),
|
||||||
changeOfDeletedInset(Change::UNCHANGED),
|
changeOfDeletedInset(Change::UNCHANGED),
|
||||||
par_begin(0), par_end(0), isLastPar(false),
|
par_begin(0), par_end(0), isLastPar(false),
|
||||||
dryrun(false), verbatim(false), disable_captions(false)
|
dryrun(false), verbatim(false),
|
||||||
|
html_disable_captions(false), html_in_par(false)
|
||||||
{
|
{
|
||||||
// Note: in PreviewLoader::Impl::dumpPreamble
|
// Note: in PreviewLoader::Impl::dumpPreamble
|
||||||
// OutputParams runparams(0);
|
// OutputParams runparams(0);
|
||||||
|
@ -209,8 +209,10 @@ public:
|
|||||||
bool dryrun;
|
bool dryrun;
|
||||||
/// Should we output verbatim or escape LaTeX's special chars?
|
/// Should we output verbatim or escape LaTeX's special chars?
|
||||||
bool verbatim;
|
bool verbatim;
|
||||||
/// Should we output captions? (Used in HTML output.)
|
/// Should we output captions?
|
||||||
bool disable_captions;
|
bool html_disable_captions;
|
||||||
|
/// Are we already in a paragraph?
|
||||||
|
bool html_in_par;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -253,7 +253,7 @@ int InsetCaption::docbook(odocstream & os,
|
|||||||
docstring InsetCaption::xhtml(odocstream & os,
|
docstring InsetCaption::xhtml(odocstream & os,
|
||||||
OutputParams const & rp) const
|
OutputParams const & rp) const
|
||||||
{
|
{
|
||||||
if (rp.disable_captions)
|
if (rp.html_disable_captions)
|
||||||
return docstring();
|
return docstring();
|
||||||
os << "<div class='float-caption'>\n";
|
os << "<div class='float-caption'>\n";
|
||||||
docstring def = getCaptionAsHTML(os, rp);
|
docstring def = getCaptionAsHTML(os, rp);
|
||||||
|
@ -283,7 +283,7 @@ docstring InsetListings::xhtml(odocstream & os, OutputParams const & rp) const
|
|||||||
|
|
||||||
out << "<pre>\n";
|
out << "<pre>\n";
|
||||||
OutputParams newrp = rp;
|
OutputParams newrp = rp;
|
||||||
newrp.disable_captions = true;
|
newrp.html_disable_captions = true;
|
||||||
docstring def = InsetText::xhtml(out, newrp);
|
docstring def = InsetText::xhtml(out, newrp);
|
||||||
out << "\n</pre>\n";
|
out << "\n</pre>\n";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user