#define INSETFLOAT_H
#include "insetcollapsable.h"
-#include "toc.h"
+#include "mailinset.h"
+
+namespace lyx {
-struct InsetFloatParams {
+
+class InsetFloatParams {
+public:
///
InsetFloatParams() : wide(false), sideways(false) {}
///
///
void validate(LaTeXFeatures & features) const;
///
- virtual std::auto_ptr<InsetBase> clone() const;
+ InsetBase::Code lyxCode() const { return InsetBase::FLOAT_CODE; }
///
- InsetOld::Code lyxCode() const { return InsetOld::FLOAT_CODE; }
- ///
- int latex(Buffer const &, std::ostream &,
+ int latex(Buffer const &, odocstream &,
OutputParams const &) const;
///
- int linuxdoc(Buffer const &, std::ostream &,
- OutputParams const &) const;
- ///
- int docbook(Buffer const &, std::ostream &,
+ int docbook(Buffer const &, odocstream &,
OutputParams const &) const;
///
- std::string const editMessage() const;
+ virtual docstring const editMessage() const;
///
- bool insetAllowed(InsetOld::Code) const;
+ bool insetAllowed(InsetBase::Code) const;
/** 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 */
///
void sideways(bool s, BufferParams const &);
///
- void addToToc(lyx::toc::TocList &, Buffer const &) const;
+ void addToToc(TocList &, Buffer const &) const;
///
bool showInsetDialog(BufferView *) const;
///
InsetFloatParams const & params() const { return params_; }
+ ///
+ bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
protected:
- virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
+ virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
private:
+ virtual std::auto_ptr<InsetBase> doClone() const;
+
///
InsetFloatParams params_;
};
-#include "mailinset.h"
-
-
class InsetFloatMailer : public MailInset {
public:
///
InsetFloat & inset_;
};
+
+} // namespace lyx
+
#endif