From e7b99324caf1293514b550a9674ea0053584ebd1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sun, 5 Oct 2008 11:00:48 +0000 Subject: [PATCH] * InsetFlex.h: - 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 --- src/insets/InsetFlex.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetFlex.h b/src/insets/InsetFlex.h index bd165c55af..665dfa6f4e 100644 --- a/src/insets/InsetFlex.h +++ b/src/insets/InsetFlex.h @@ -35,8 +35,6 @@ public: void write(std::ostream &) const; /// void read(Lexer & lex); - /// - virtual bool allowParagraphCustomization(idx_type = 0) const { return false; } /// int plaintext(odocstream &, OutputParams const &) const; @@ -53,6 +51,14 @@ protected: 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(); } /// std::string name_; -- 2.39.2