// -*- C++ -*-
/* This file is part of
* ======================================================
- *
+ *
* LyX, The Document Processor
*
* Copyright 1998 The LyX Team.
#endif
#include "insetcollapsable.h"
+#include <sigc++/signal_system.h>
class Painter;
/** The float inset
-
+
*/
class InsetFloat : public InsetCollapsable {
public:
///
- explicit
- InsetFloat();
+ InsetFloat(BufferParams const &, string const &);
+ ///
+ InsetFloat(InsetFloat const &, bool same_id = false);
+ ///
+ ~InsetFloat();
+ ///
+ void write(Buffer const * buf, std::ostream & os) const;
///
- ~InsetFloat() {}
+ void read(Buffer const * buf, LyXLex & lex);
///
- void Write(Buffer const * buf, std::ostream & os) const;
+ void validate(LaTeXFeatures & features) const;
///
- void Read(Buffer const * buf, LyXLex & lex);
+ Inset * clone(Buffer const &, bool same_id = false) const;
///
- void Validate(LaTeXFeatures & features) const;
+ Inset::Code lyxCode() const { return Inset::FLOAT_CODE; }
///
- Inset * Clone() const;
+ int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
///
- Inset::Code LyxCode() const { return Inset::FLOAT_CODE; }
+ int docbook(Buffer const *, std::ostream &) const;
///
- int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+ string const editMessage() const;
///
- const char * EditMessage() const;
+ bool insetAllowed(Inset::Code) const;
///
- bool InsertInset(BufferView *, Inset * inset);
+ string const & type() const;
///
- bool InsertInsetAllowed(Inset * inset) const;
+ void placement(string const & p);
///
- LyXFont GetDrawFont(BufferView *, LyXParagraph * par, int pos) const;
+ string const & placement() const;
///
- void InsetButtonRelease(BufferView * bv, int x, int y, int button);
+ void wide(bool w);
+ ///
+ bool wide() const;
+ ///
+ bool showInsetDialog(BufferView *) const;
+ ///
+ SigC::Signal0<void> hideDialog;
private:
///
- string floatType;
+ string floatType_;
+ ///
+ string floatPlacement_;
///
- string floatPlacement;
+ bool wide_;
};
#endif