]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetminipage.h
reformatting and remove using delc
[lyx.git] / src / insets / insetminipage.h
index 54f9d23d0c981bdba2227086d8ba38a700913f6c..01880f1da754f1d6fea4350fc2ea173f2a7405f4 100644 (file)
@@ -4,9 +4,9 @@
  * 
  *           LyX, The Document Processor
  *
- *           Copyright 1998 The LyX Team.
+ *           Copyright 2001 The LyX Team.
  *
- *======================================================
+ * ======================================================
  */
 
 #ifndef InsetMinipage_H
@@ -45,8 +45,14 @@ public:
        ///
        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;
@@ -63,35 +69,32 @@ public:
        ///
        void innerPos(InnerPosition);
        ///
-       LyXLength const & height() const;
+       string const & height() const;
        ///
-       void height(LyXLength const &);
+       void height(string const &);
        ///
        string const & width() const;
        ///
        void width(string const &);
        ///
-       int widthp() const;
+       SigC::Signal0<void> hideDialog;
        ///
-       void widthp(int);
+       void InsetButtonRelease(BufferView * bv, int x, int y, int button);
        ///
-       void widthp(string const &);
+       int getMaxWidth(BufferView *, UpdatableInset const *) const;
        ///
-       SigC::Signal0<void> hideDialog;
+       bool needFullRow() const { return false; }
        ///
-       void InsetButtonRelease(BufferView * bv, int x, int y, int button);
-
+       bool ShowInsetDialog(BufferView *) const;
 private:
        ///
        Position pos_;
        ///
        InnerPosition inner_pos_;
        ///
-       LyXLength height_;
+       string height_;
        ///
        string width_;
-       ///
-       int widthp_;
 };
 
 #endif