]> git.lyx.org Git - features.git/blobdiff - src/insets/Inset.h
Fix bug 4037 and related problems. The patch has been cleaned up a bit
[features.git] / src / insets / Inset.h
index 4b03465e2eaf9ad9c4e3d1642e05d4629f9b275e..42c5a6aa6d2e5c4057583f77f118bce5582f12a5 100644 (file)
@@ -286,9 +286,15 @@ public:
 
        /// returns true if the inset can hold an inset of given type
        virtual bool insetAllowed(InsetCode) const { return false; }
-       /// if this inset has paragraphs should they be output all as default
-       /// paragraphs with the default layout of the text class?
-       virtual bool forceDefaultParagraphs(idx_type) const { return false; }
+       /// should this inset use the empty layout by default rather than 
+       /// the standard layout? (default: only if that is forced.)
+       virtual bool useEmptyLayout() const { return forceEmptyLayout(); }
+       /// if this inset has paragraphs should they be forced to use the
+       /// empty layout?
+       virtual bool forceEmptyLayout() const { return false; }
+       /// if this inset has paragraphs should the user be allowed to
+       /// customize alignment, etc?
+       virtual bool allowParagraphCustomization(idx_type) const { return true; }
        /// Is the width forced to some value?
        virtual bool hasFixedWidth() const { return false; }