namespace lyx {
-class Lexer;
+namespace support { class Lexer; }
+
class TextClass;
/* Fixed labels are printed flushright, manual labels flushleft.
void setUnknown(bool unknown) { unknown_ = unknown; }
/// Reads a layout definition from file
/// \return true on success.
- bool read(Lexer &, TextClass const &, bool validating = false);
+ bool read(support::Lexer &, TextClass const &, bool validating = false);
///
- void readAlign(Lexer &);
+ void readAlign(support::Lexer &);
///
- void readAlignPossible(Lexer &);
+ void readAlignPossible(support::Lexer &);
///
- void readLabelType(Lexer &);
+ void readLabelType(support::Lexer &);
///
- void readEndLabelType(Lexer &);
+ void readEndLabelType(support::Lexer &);
///
- void readMargin(Lexer &);
+ void readMargin(support::Lexer &);
///
- void readLatexType(Lexer &);
+ void readLatexType(support::Lexer &);
///
- void readSpacing(Lexer &);
+ void readSpacing(support::Lexer &);
///
- void readArgument(Lexer &, bool);
+ void readArgument(support::Lexer &, bool);
/// Write a layout definition in utf8 encoding
void write(std::ostream &) const;
///
bool pass_thru;
/// Individual chars to be passed verbatim
docstring pass_thru_chars;
+ /// Individual characters that must not be
+ /// passed verbatim even if normally requested
+ docstring no_pass_thru_chars;
///
bool parbreak_is_newline;
/// show this in toc
/** true when the verbatim stuff of this layout needs to be
\cprotect'ed. */
bool needcprotect;
+ /** true when the verbatim stuff of this layout never should be
+ \cprotect'ed. */
+ bool nocprotect;
/** true when specific commands in this paragraph need to be
protected in an \mbox. */
bool needmboxprotect;
private:
/// Reads a layout definition from file
/// \return true on success.
- bool readIgnoreForcelocal(Lexer &, TextClass const &, bool validating);
+ bool readIgnoreForcelocal(support::Lexer &, TextClass const &, bool validating);
/// generates the default CSS for this layout
void makeDefaultCSS() const;
///