else if (c == META_INSET && (options & AS_STR_INSETS)) {
if (c == META_INSET && (options & AS_STR_PLAINTEXT)) {
LASSERT(runparams != nullptr, return docstring());
- if (runparams->find_effective())
+ if (runparams->find_effective() && getInset(i)->hasToString())
getInset(i)->toString(os);
else
getInset(i)->plaintext(os, *runparams);
/// paragraph closes. this is appropriate e.g. for floats.
virtual docstring xhtml(XMLStream &, OutputParams const &) const;
+ ///
+ virtual bool hasToString() const { return false; }
/// Writes a string representation of the inset to the odocstream.
/// This one should be called when you want the whole contents of
/// the inset.
///
docstring xhtml(XMLStream &, OutputParams const &) const override;
///
+ bool hasToString() const override { return true; }
+ ///
void toString(odocstream &) const override;
///
void forOutliner(docstring &, size_t const, bool const) const override;
///
docstring xhtml(XMLStream &, OutputParams const &) const override;
///
+ bool hasToString() const override { return true; }
+ ///
void toString(odocstream &) const override;
///
void forOutliner(docstring &, size_t const, bool const) const override;
///
docstring xhtml(XMLStream &, OutputParams const &) const override;
///
+ bool hasToString() const override { return true; }
+ ///
void toString(odocstream &) const override;
///
void validate(LaTeXFeatures & features) const override;
///
bool isInToc() const override { return true; }
///
+ bool hasToString() const override { return true; }
+ ///
void toString(odocstream &) const override;
///
void forOutliner(docstring &, size_t const, bool const) const override;
///
docstring xhtml(XMLStream &, OutputParams const &) const override;
///
+ bool hasToString() const override { return true; }
+ ///
void toString(odocstream &) const override;
///
void forOutliner(docstring &, size_t const, bool const) const override;
///
docstring xhtml(XMLStream &, OutputParams const &) const override;
+ ///
+ bool hasToString() const override { return true; }
///
void toString(odocstream &) const override;
///
///
docstring xhtml(XMLStream &, OutputParams const &) const override;
///
+ bool hasToString() const override { return true; }
+ ///
void toString(odocstream &) const override;
///
void forOutliner(docstring &, size_t const, bool const) const override;
///
void validate(LaTeXFeatures & features) const override;
///
+ bool hasToString() const override { return true; }
+ ///
void toString(odocstream &) const override;
///
void forOutliner(docstring &, size_t const, bool const) const override;
///
docstring xhtml(XMLStream &, OutputParams const &) const override;
///
+ bool hasToString() const override { return true; }
+ ///
void toString(odocstream &) const override;
///
bool isInToc() const override { return true; }
///
void setMacrocontextPositionRecursive(DocIterator const & pos);
///
+ bool hasToString() const override { return true; }
+ ///
void toString(odocstream &) const override;
///
void forOutliner(docstring &, size_t const, bool const) const override;