]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetminipage.h
move inset related stuff from src/graphics to src/inset/
[lyx.git] / src / insets / insetminipage.h
index 01880f1da754f1d6fea4350fc2ea173f2a7405f4..699c914b0bb8efc208826c172bc2684d41580795 100644 (file)
@@ -1,7 +1,7 @@
 // -*- C++ -*-
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
  *
  *           Copyright 2001 The LyX Team.
 #endif
 
 #include "insetcollapsable.h"
-#include "vspace.h"
+#include "lyxlength.h"
 #include <sigc++/signal_system.h>
 
 /** The minipage inset
-  
+
 */
 class InsetMinipage : public InsetCollapsable {
 public:
@@ -39,27 +39,29 @@ public:
                inner_stretch
        };
        ///
-       InsetMinipage();
+       InsetMinipage(BufferParams const &);
+       ///
+       InsetMinipage(InsetMinipage const &, bool same_id = false);
        ///
        ~InsetMinipage();
        ///
-       void Write(Buffer const * buf, std::ostream & os) const;
+       void write(Buffer const * buf, std::ostream & os) const;
        ///
-       void Read(Buffer const * buf, LyXLex & lex);
+       void read(Buffer const * buf, LyXLex & lex);
        ///
-       Inset * Clone(Buffer const &) const;
+       Inset * clone(Buffer const &, bool same_id = false) const;
        ///
        int ascent(BufferView *, LyXFont const &) const;
        ///
        int descent(BufferView *, LyXFont const &) const;
        ///
-       Inset::Code LyxCode() const { return Inset::MINIPAGE_CODE; }
+       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 &, bool fragile, bool fp) const;
        ///
-       string const EditMessage() const;
+       string const editMessage() const;
        ///
-       bool InsertInsetAllowed(Inset * inset) const;
+       bool insetAllowed(Inset::Code) const;
        ///
        Position pos() const;
        ///
@@ -69,32 +71,33 @@ public:
        ///
        void innerPos(InnerPosition);
        ///
-       string const & height() const;
+       LyXLength const & pageHeight() const;
        ///
-       void height(string const &);
+       void pageHeight(LyXLength const &);
        ///
-       string const & width() const;
+       LyXLength const & pageWidth() const;
        ///
-       void width(string const &);
+       void pageWidth(LyXLength const &);
        ///
        SigC::Signal0<void> hideDialog;
        ///
-       void InsetButtonRelease(BufferView * bv, int x, int y, int button);
-       ///
        int getMaxWidth(BufferView *, UpdatableInset const *) const;
        ///
        bool needFullRow() const { return false; }
        ///
-       bool ShowInsetDialog(BufferView *) const;
+       bool showInsetDialog(BufferView *) const;
+       ///
+       int latexTextWidth(BufferView *) const;
+
 private:
        ///
        Position pos_;
        ///
        InnerPosition inner_pos_;
        ///
-       string height_;
+       LyXLength height_;
        ///
-       string width_;
+       LyXLength width_;
 };
 
 #endif