]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetminipage.h
reformatting and remove using delc
[lyx.git] / src / insets / insetminipage.h
index c8a270dd4592b4b5fc22b2f50e350a762c2cae04..01880f1da754f1d6fea4350fc2ea173f2a7405f4 100644 (file)
@@ -4,9 +4,9 @@
  * 
  *           LyX, The Document Processor
  *
- *           Copyright 1998 The LyX Team.
+ *           Copyright 2001 The LyX Team.
  *
- *======================================================
+ * ======================================================
  */
 
 #ifndef InsetMinipage_H
@@ -18,6 +18,7 @@
 
 #include "insetcollapsable.h"
 #include "vspace.h"
+#include <sigc++/signal_system.h>
 
 /** The minipage inset
   
@@ -40,10 +41,18 @@ public:
        ///
        InsetMinipage();
        ///
+       ~InsetMinipage();
+       ///
        void Write(Buffer const * buf, std::ostream & os) const;
        ///
+       void Read(Buffer const * buf, LyXLex & lex);
+       ///
        Inset * Clone(Buffer const &) const;
        ///
+       int ascent(BufferView *, LyXFont const &) const;
+       ///
+       int descent(BufferView *, LyXFont const &) const;
+       ///
        Inset::Code LyxCode() const { return Inset::MINIPAGE_CODE; }
        ///
        int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
@@ -60,22 +69,32 @@ public:
        ///
        void innerPos(InnerPosition);
        ///
-       LyXLength const & height() const;
+       string const & height() const;
+       ///
+       void height(string const &);
+       ///
+       string const & width() const;
+       ///
+       void width(string const &);
+       ///
+       SigC::Signal0<void> hideDialog;
+       ///
+       void InsetButtonRelease(BufferView * bv, int x, int y, int button);
        ///
-       void height(LyXLength const &);
+       int getMaxWidth(BufferView *, UpdatableInset const *) const;
        ///
-       LyXLength const & width() const;
+       bool needFullRow() const { return false; }
        ///
-       void width(LyXLength const &);
+       bool ShowInsetDialog(BufferView *) const;
 private:
        ///
        Position pos_;
        ///
        InnerPosition inner_pos_;
        ///
-       LyXLength height_;
+       string height_;
        ///
-       LyXLength width_;
+       string width_;
 };
 
 #endif