]> git.lyx.org Git - lyx.git/blobdiff - src/insets/Inset.h
Move isMultiCell() to Cursor, and use it.
[lyx.git] / src / insets / Inset.h
index 620fc428e0e83a7c538082a26970b836b71eda64..e50caf7f7b14464f4cd43b6dc6b1bd2de9c9190c 100644 (file)
@@ -53,8 +53,6 @@ class ParConstIterator;
 class ParIterator;
 class Text;
 class TocList;
-class FileNameList;
-
 
 namespace graphics { class PreviewLoader; }
 
@@ -103,6 +101,9 @@ public:
        /// retrieve associated Buffer
        virtual Buffer & buffer();
        virtual Buffer const & buffer() const;
+       /// This checks whether the Buffer * actually points to an open 
+       /// Buffer. It might not if that Buffer has been closed.
+       bool isBufferValid() const;
 
        /// initialize view for this inset.
        /**
@@ -351,10 +352,10 @@ public:
        virtual bool insetAllowed(InsetCode) 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(); }
+       virtual bool usePlainLayout() const { return forcePlainLayout(); }
        /// if this inset has paragraphs should they be forced to use the
        /// empty layout?
-       virtual bool forceEmptyLayout(idx_type = 0) const { return false; }
+       virtual bool forcePlainLayout(idx_type = 0) const { return false; }
        /// if this inset has paragraphs should the user be allowed to
        /// customize alignment, etc?
        virtual bool allowParagraphCustomization(idx_type = 0) const { return true; }
@@ -489,8 +490,9 @@ public:
        enum { TEXT_TO_INSET_OFFSET = 4 };
 
 protected:
-       /// Constructor
-       explicit Inset() : buffer_(0) {}
+       /// Constructors
+       Inset() : buffer_(0) {}
+       Inset(Inset const &) : buffer_(0) {}
 
        /// replicate ourselves
        friend class InsetList;