]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetminipage.h
Enable the external inset to handle unknown templates gracefully.
[lyx.git] / src / insets / insetminipage.h
index f5f5cafada146ec801f0cbd828eade891782d55c..9ba55571e516af1458b0278936bd3d5f13d04fd6 100644 (file)
@@ -10,9 +10,8 @@
  * Full author contact details are available in file CREDITS
  */
 
-#ifndef InsetMinipage_H
-#define InsetMinipage_H
-
+#ifndef INSETMINIPAGE_H
+#define INSETMINIPAGE_H
 
 #include "insetcollapsable.h"
 #include "lyxlength.h"
@@ -57,46 +56,29 @@ public:
        ///
        InsetMinipage(BufferParams const &);
        ///
-       InsetMinipage(InsetMinipage const &, bool same_id = false);
+       InsetMinipage(InsetMinipage const &);
        ///
        ~InsetMinipage();
        ///
-       virtual dispatch_result localDispatch(FuncRequest const & cmd); 
+       virtual dispatch_result localDispatch(FuncRequest const & cmd);
        ///
        void write(Buffer const * buf, std::ostream & os) const;
        ///
        void read(Buffer const * buf, LyXLex & lex);
        ///
-       Inset * clone(Buffer const &, bool same_id = false) const;
-       ///
-       int ascent(BufferView *, LyXFont const &) const;
+       Inset * clone() const;
        ///
-       int descent(BufferView *, LyXFont const &) const;
+       void metrics(MetricsInfo &, Dimension &) const;
        ///
        Inset::Code lyxCode() const { return Inset::MINIPAGE_CODE; }
        ///
-       int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       int latex(Buffer const *, std::ostream &,
+                 LatexRunParams const &) const;
        ///
        string const editMessage() const;
        ///
        bool insetAllowed(Inset::Code) const;
        ///
-       Position pos() const;
-       ///
-       void pos(Position);
-       ///
-       InnerPosition innerPos() const;
-       ///
-       void innerPos(InnerPosition);
-       ///
-       LyXLength const & pageHeight() const;
-       ///
-       void pageHeight(LyXLength const &);
-       ///
-       LyXLength const & pageWidth() const;
-       ///
-       void pageWidth(LyXLength const &);
-       ///
        int getMaxWidth(BufferView *, UpdatableInset const *) const;
        ///
        bool needFullRow() const { return false; }
@@ -126,7 +108,7 @@ public:
        ///
        InsetMinipageMailer(InsetMinipage & inset);
        ///
-       virtual Inset & inset() const { return inset_; }
+       virtual InsetBase & inset() const { return inset_; }
        ///
        virtual string const & name() const { return name_; }
        ///