- correct the enabling of paragraph and layout changes as far as this
is possible with the current interface (see FIXMEs).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26743
a592a061-630c-0410-9148-
cb99ea01b6c8
void write(std::ostream &) const;
///
void read(Lexer & lex);
void write(std::ostream &) const;
///
void read(Lexer & lex);
- ///
- virtual bool allowParagraphCustomization(idx_type = 0) const { return false; }
///
int plaintext(odocstream &, OutputParams const &) const;
///
int plaintext(odocstream &, OutputParams const &) const;
private:
Inset * clone() const { return new InsetFlex(*this); }
private:
Inset * clone() const { return new InsetFlex(*this); }
+ /// should paragraphs be forced to use the empty layout?
+ //FIXME: this is not always correct. We need a layout tag that indicates
+ // whether layout changes are allowed or not
+ virtual bool forcePlainLayout(idx_type = 0) const { return !allowMultiPar(); }
+ /// should the user be allowed to customize alignment, etc.?
+ //FIXME: this is not always correct. We need a layout tag that indicates
+ // whether paragraph customization is allowed or not
+ virtual bool allowParagraphCustomization(idx_type = 0) const { return allowMultiPar(); }