// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
+/**
+ * \file insetminipage.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * Copyright 2001 The LyX Team.
+ * \author Jürgen Vigna
+ * \author Lars Gullik Bjønnes
*
- * ======================================================
+ * Full author contact details are available in file CREDITS
*/
#ifndef InsetMinipage_H
#endif
#include "insetcollapsable.h"
-#include "vspace.h"
-#include <sigc++/signal_system.h>
+#include "lyxlength.h"
+
+#include <boost/signals/signal0.hpp>
/** The minipage inset
-
+
*/
class InsetMinipage : public InsetCollapsable {
public:
inner_stretch
};
///
- InsetMinipage();
+ InsetMinipage(BufferParams const &);
///
InsetMinipage(InsetMinipage const &, bool same_id = false);
///
///
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);
+ boost::signal0<void> hideDialog;
///
int getMaxWidth(BufferView *, UpdatableInset const *) const;
///
bool needFullRow() const { return false; }
+ /** returns true if, when outputing LaTeX, font changes should
+ be closed before generating this inset. This is needed for
+ insets that may contain several paragraphs */
+ bool noFontChange() const { return true; }
///
bool showInsetDialog(BufferView *) const;
+ ///
+ int latexTextWidth(BufferView *) const;
private:
///
///
InnerPosition inner_pos_;
///
- string height_;
+ LyXLength height_;
///
- string width_;
+ LyXLength width_;
};
#endif