///
InsetCode lyxCode() const { return SCRIPT_CODE; }
///
- docstring name() const;
+ docstring layoutName() const;
///
DisplayType display() const;
///
///
void read(Lexer & lex);
///
- bool neverIndent() const { return true; }
- ///
bool forcePlainLayout(idx_type = 0) const { return true; }
///
bool allowParagraphCustomization(idx_type = 0) const { return false; }
///
- virtual void validate(LaTeXFeatures &) const;
+ bool neverIndent() const { return true; }
///
- int latex(odocstream &, OutputParams const &) const;
+ bool inheritFont() const { return true; }
///
- int plaintext(odocstream &, OutputParams const &) const;
+ int plaintext(odocstringstream & ods, OutputParams const & op,
+ size_t max_length = INT_MAX) const;
///
int docbook(odocstream &, OutputParams const &) const;
///
- docstring xhtml(XHTMLStream &, OutputParams const &) const;
- ///
void edit(Cursor & cur, bool front,
EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
///
///
Inset * clone() const { return new InsetScript(*this); }
///
- docstring contextMenu(BufferView const & bv, int x, int y) const;
+ std::string contextMenuName() const;
//@}
/// \name Public functions inherited from InsetText class
friend class InsetScriptParams;
///
InsetScriptParams params_;
+ /// The font of containing inset; this is necessary to compute shift
+ mutable FontInfo outer_font_;
};