#include "toc.h"
#include "lyxlength.h"
-#include <boost/signals/signal0.hpp>
-class Painter;
+struct InsetWrapParams {
+ ///
+ void write(std::ostream &) const;
+ ///
+ void read(LyXLex &);
+
+ ///
+ string type;
+ ///
+ string placement;
+ ///
+ LyXLength width;
+};
-/** The wrap inset
-*/
+/** The wrap inset
+ */
class InsetWrap : public InsetCollapsable {
public:
///
///
~InsetWrap();
///
+ virtual dispatch_result localDispatch(FuncRequest const & cmd);
+ ///
void write(Buffer const * buf, std::ostream & os) const;
///
void read(Buffer const * buf, LyXLex & lex);
///
bool showInsetDialog(BufferView *) const;
///
- boost::signal0<void> hideDialog;
- ///
int latexTextWidth(BufferView *) const;
+ ///
+ InsetWrapParams const & params() const { return params_; }
private:
///
- string Type_;
+ InsetWrapParams params_;
+};
+
+
+
+#include "mailinset.h"
+
+
+class InsetWrapMailer : public MailInset {
+public:
+ ///
+ InsetWrapMailer(InsetWrap & inset);
+ ///
+ virtual InsetBase & inset() const { return inset_; }
+ ///
+ virtual string const & name() const { return name_; }
+ ///
+ virtual string const inset2string() const;
+ ///
+ static void string2params(string const &, InsetWrapParams &);
+ ///
+ static string const params2string(InsetWrapParams const &);
+private:
///
- string Placement_;
+ static string const name_;
///
- LyXLength width_;
+ InsetWrap & inset_;
};
#endif