diff --git a/lib/layouts/stdinsets.inc b/lib/layouts/stdinsets.inc index 989e67e197..a638c32473 100644 --- a/lib/layouts/stdinsets.inc +++ b/lib/layouts/stdinsets.inc @@ -206,8 +206,8 @@ InsetLayout Index Size Small EndFont MultiPar false -# CustomPars false -# ForcePlain true + CustomPars false + ForcePlain true NeedProtect true End @@ -270,7 +270,7 @@ InsetLayout OptArg Color collapsable Size Small EndFont -# MultiPar false + MultiPar false End InsetLayout Info diff --git a/src/insets/InsetCollapsable.h b/src/insets/InsetCollapsable.h index 5b7b91f580..0375387bcd 100644 --- a/src/insets/InsetCollapsable.h +++ b/src/insets/InsetCollapsable.h @@ -180,6 +180,12 @@ private: /// Dimension dimensionCollapsed(BufferView const & bv) const; /// + /// should paragraphs be forced to use the empty layout? + virtual bool forcePlainLayout(idx_type = 0) const + { return getLayout().forcePlainLayout(); } + /// should the user be allowed to customize alignment, etc.? + virtual bool allowParagraphCustomization(idx_type = 0) const + { return getLayout().allowParagraphCustomization(); } docstring labelstring_; /// mutable Box button_dim; diff --git a/src/insets/InsetERT.h b/src/insets/InsetERT.h index 2fbfa8669d..ed010c5d8c 100644 --- a/src/insets/InsetERT.h +++ b/src/insets/InsetERT.h @@ -60,10 +60,6 @@ private: void validate(LaTeXFeatures &) const {} /// bool showInsetDialog(BufferView *) const; - /// - virtual bool forcePlainLayout(idx_type = 0) const { return true; } - /// - virtual bool allowParagraphCustomization(idx_type = 0) const { return false; } /// should paragraph indendation be omitted in any case? bool neverIndent() const { return true; } /// diff --git a/src/insets/InsetFlex.h b/src/insets/InsetFlex.h index a8c96db659..4b70aba2aa 100644 --- a/src/insets/InsetFlex.h +++ b/src/insets/InsetFlex.h @@ -47,18 +47,6 @@ protected: private: Inset * clone() const { return new InsetFlex(*this); } - // FIXME The following two routines should be moved to InsetCollapsable. - // That will allow the redeclarations of these routines to be removed - // from its subclasses, such as InsetERT. But it will also require us - // to rework stdinsets.inc, to make sure we get the right behavior from - // the subclasses. - /// should paragraphs be forced to use the empty layout? - virtual bool forcePlainLayout(idx_type = 0) const - { return getLayout().forcePlainLayout(); } - /// should the user be allowed to customize alignment, etc.? - virtual bool allowParagraphCustomization(idx_type = 0) const - { return getLayout().allowParagraphCustomization(); } - /// std::string name_; }; diff --git a/src/insets/InsetIndex.h b/src/insets/InsetIndex.h index 5f4492884f..092311c64c 100644 --- a/src/insets/InsetIndex.h +++ b/src/insets/InsetIndex.h @@ -40,10 +40,6 @@ private: int latex(odocstream &, OutputParams const &) const; /// should paragraph indendation be omitted in any case? bool neverIndent() const { return true; } - /// should paragraphs be forced to use the empty layout? - virtual bool forcePlainLayout(idx_type = 0) const { return true; } - /// should the user be allowed to customize alignment, etc.? - virtual bool allowParagraphCustomization(idx_type = 0) const { return false; } /// void addToToc(DocIterator const &); /// diff --git a/src/insets/InsetOptArg.h b/src/insets/InsetOptArg.h index 20867f299a..6e8d2d3d65 100644 --- a/src/insets/InsetOptArg.h +++ b/src/insets/InsetOptArg.h @@ -39,19 +39,14 @@ private: docstring name() const { return from_ascii("OptArg"); } /// return an message upon editing docstring editMessage() const; - /// Standard LaTeX output -- short-circuited int latex(odocstream &, OutputParams const &) const; /// Standard plain text output -- short-circuited int plaintext(odocstream &, OutputParams const &) const; /// Standard DocBook output -- short-circuited int docbook(odocstream &, OutputParams const &) const; - /// - virtual bool forcePlainLayout(idx_type = 0) const { return true; } - /// Write out to the .lyx file void write(std::ostream & os) const; - /// should paragraph indendation be ommitted in any case? bool neverIndent() const { return true; } ///