class InsetCollapsable : public InsetText {
public:
///
- InsetCollapsable(Buffer const &,
- CollapseStatus status = Inset::Open, DocumentClass * tc = 0);
+ InsetCollapsable(Buffer const &, CollapseStatus status = Inset::Open);
///
InsetCollapsable(InsetCollapsable const & rhs);
///
/// to name()
void setLayout(DocumentClass const * const tc);
///
- virtual bool useEmptyLayout() { return true; }
+ virtual bool usePlainLayout() { return true; }
///
void read(Lexer &);
///
/// (status_), autoOpen_ and openinlined_, and of
/// course decoration().
Geometry geometry() const;
- ///
- bool allowSpellCheck() const { return true; }
+ /// Allow spellchecking, except for insets with latex_language
+ bool allowSpellCheck() const { return !forceLTR(); }
///
bool allowMultiPar() const;
///
/// Force inset into LTR environment if surroundings are RTL?
virtual bool forceLTR() const { return layout_->isForceLtr(); }
///
- virtual bool useEmptyLayout() const { return true; }
+ virtual bool usePlainLayout() const { return true; }
/// Is this inset's layout defined in the document's textclass?
/// May be wrong after textclass change or paste from another document
bool undefined() const;