]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetGraphics.h
requires is a keyword in C++2a
[lyx.git] / src / insets / InsetGraphics.h
index 22d70b233b666d6e271cb229f48303d719d761ff..be4a31773ada009df95bac9eedfcfbaa50fd3f6b 100644 (file)
@@ -61,13 +61,8 @@ public:
        /// 
        InsetGraphics const * asInsetGraphics() const { return this; }
 
-private:
-       ///
-       InsetGraphics(InsetGraphics const &);
-
        ///
        bool isLabeled() const { return true; }
-       void metrics(MetricsInfo &, Dimension &) const;
        ///
        bool hasSettings() const { return true; }
        ///
@@ -96,6 +91,18 @@ private:
        docstring layoutName() const { return from_ascii("Graphics"); }
        /// Get the inset parameters, used by the GUIndependent dialog.
        InsetGraphicsParams const & params() const;
+
+       ///
+       int topOffset(BufferView const *) const { return 0; }
+       ///
+       int bottomOffset(BufferView const *) const { return 0; }
+       ///
+       int leftOffset(BufferView const *) const { return 0; }
+       ///
+       int rightOffset(BufferView const *) const { return 0; }
+
+       ///
+       void metrics(MetricsInfo &, Dimension &) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -136,6 +143,10 @@ private:
        ///
        OutputParams::CtObject CtObject(OutputParams const &) const { return OutputParams::CT_OBJECT; }
 
+private:
+       ///
+       InsetGraphics(InsetGraphics const &);
+
        ///
        InsetGraphicsParams params_;
        /// holds the entity name that defines the graphics location (SGML).