]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbase.h
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / insets / insetbase.h
index 51ba1a981a674fb68b9c1c8360d600079b1401d3..b2cd718a358ae97d8e53f29b4064c10b8ff03615 100644 (file)
@@ -6,13 +6,16 @@
  *
  * \author none
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef INSETBASE_H
 #define INSETBASE_H
 
+#include "LString.h"
+
 #include <vector>
+#include <memory>
 
 class BufferView;
 class FuncRequest;
@@ -64,6 +67,11 @@ public:
        /// type for column numbers
        typedef size_t  col_type;
 
+       /// virtual base class destructor
+       virtual ~InsetBase() {}
+       /// replicate ourselves
+       virtual std::auto_ptr<InsetBase> clone() const = 0;
+
        // the real dispatcher
        virtual dispatch_result dispatch
                (FuncRequest const & cmd, idx_type & idx, pos_type & pos);
@@ -75,15 +83,14 @@ public:
        /// draw inset and update (xo, yo)-cache
        virtual void draw(PainterInfo & pi, int x, int y) const = 0;
 
-       ///
-       virtual ~InsetBase() {}
-
        /// Methods to cache and retrieve a cached BufferView.
        virtual void cache(BufferView *) const {}
        ///
        virtual BufferView * view() const { return 0; }
        /// request "external features"
        virtual void validate(LaTeXFeatures &) const {}
+       /// fill in all labels in the inset
+       virtual void getLabelList(std::vector<string> &) const {}
 };
 
 #endif