#include "FontEnums.h"
#include "SpellChecker.h"
-#include "insets/InsetCode.h"
-
#include "support/strfwd.h"
#include "support/types.h"
AS_STR_LABEL = 1, ///< Prefix with paragraph label.
AS_STR_INSETS = 2, ///< Go into insets.
AS_STR_NEWLINES = 4, ///< Get also newline characters.
- AS_STR_SKIPDELETE = 8 ///< Skip deleted text in change tracking.
+ AS_STR_SKIPDELETE = 8, ///< Skip deleted text in change tracking.
+ AS_STR_PLAINTEXT = 16 ///< Don't export formatting when descending into insets.
};
/// asString(AS_STR_LABEL | AS_STR_INSETS)
/// asString(AS_STR_INSETS)
docstring asString(int options = AS_STR_NONE) const;
- ///
+
+ /// Convert the paragraph to a string.
+ /// \note If options includes AS_STR_PLAINTEXT, then runparams must be != 0
docstring asString(pos_type beg, pos_type end,
- int options = AS_STR_NONE) const;
+ int options = AS_STR_NONE,
+ const OutputParams *runparams = 0) const;
///
- void forToc(docstring &, size_t maxlen) const;
-
- /// Extract only the explicitly visible text (without any formatting),
- /// descending into insets
- docstring stringify(pos_type beg, pos_type end, int options, OutputParams & runparams) const;
+ void forOutliner(docstring &, size_t maxlen) const;
///
void write(std::ostream &, BufferParams const &,
- depth_type & depth) const;
+ depth_type & depth) const;
///
void validate(LaTeXFeatures &) const;
/// \param force means: output even if layout.inpreamble is true.
void latex(BufferParams const &, Font const & outerfont, otexstream &,
- OutputParams const &, int start_pos = 0, int end_pos = -1,
- bool force = false) const;
+ OutputParams const &, int start_pos = 0, int end_pos = -1,
+ bool force = false) const;
/// Can we drop the standard paragraph wrapper?
bool emptyTag() const;
///
void insertChar(pos_type pos, char_type c,
Font const &, Change const & change);
- /// Insert \p inset at position \p pos with \p change traking status.
- /// \return true if successful.
- bool insertInset(pos_type pos, Inset * inset,
- Change const & change);
/// Insert \p inset at position \p pos with \p change traking status and
/// \p font.
/// \return true if successful.