InsetLayout::InsetDecoration InsetCollapsable::decoration() const
{
InsetLayout::InsetDecoration const dec = getLayout().decoration();
- switch (dec) {
- case InsetLayout::CLASSIC:
- case InsetLayout::MINIMALISTIC:
- case InsetLayout::CONGLOMERATE:
- return dec;
- case InsetLayout::DEFAULT:
- break;
- }
- if (lyxCode() == FLEX_CODE)
- return InsetLayout::CONGLOMERATE;
- return InsetLayout::CLASSIC;
+ return dec == InsetLayout::DEFAULT ? InsetLayout::CLASSIC : dec;
}
{}
+InsetLayout::InsetDecoration InsetFlex::decoration() const
+{
+ InsetLayout::InsetDecoration const dec = getLayout().decoration();
+ return dec == InsetLayout::DEFAULT ? InsetLayout::CONGLOMERATE : dec;
+}
+
+
docstring InsetFlex::editMessage() const
{
return _("Opened Flex Inset");
docstring editMessage() const;
///
InsetCode lyxCode() const { return FLEX_CODE; }
+ /// Default looks
+ InsetLayout::InsetDecoration decoration() const;
///
void write(std::ostream &) const;
/// should paragraph indendation be ommitted in any case?