3 * \file FloatPlacement.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
10 * Full author contact details are available in file CREDITS.
13 #ifndef FLOATPLACEMENT_H
14 #define FLOATPLACEMENT_H
16 #include "ui_FloatPlacementUi.h"
20 #include "support/docstring.h"
26 class InsetFloatParams;
28 class FloatPlacement : public QWidget, public Ui::FloatPlacementUi {
31 FloatPlacement(bool show_options = false, QWidget * parent = 0);
34 void paramsToDialog(Inset const *);
36 docstring dialogToParams() const;
42 void set(std::string const & placement);
44 std::string const get() const;
47 void on_defaultsCB_stateChanged(int state);
57 std::string const get(bool & wide, bool & sideways) const;
59 void initFloatTypeCO(FloatList const & floats);
61 /// one of figure or table?
64 FloatList const * float_list_;
69 #endif // FLOATPLACEMENT_H