lyx_mirror/src/frontends/qt4/FloatPlacement.h
Jürgen Spitzmüller 4b799833e7 *** Support for generic sideways floats ***
* src/Buffer.cpp:
	- format is up to 312.
* src/LaTeXFeatures.cpp:
	- add rotfloat.
* src/Insets/InsetFloat.cpp:
	- handle starred and generic sideways floats.
* src/frontends/qt4/FloatPlacement.{cpp,h}:
	- adjust GUI to the new features.
* lib/chkconfig.ltx:
	- add rotfloat
* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- add reversion methods for new floats
* lib/lyx2lyx/lyx_1_4.py:
	- add proper reversion method for sideways floats (this was missing).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22495 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 18:56:53 +00:00

59 lines
1.1 KiB
C++

// -*- C++ -*-
/**
* \file floatplacement.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Edwin Leuven
* \author John Levon
*
* Full author contact details are available in file CREDITS.
*/
#ifndef QT_FLOATPLACEMENT_H
#define QT_FLOATPLACEMENT_H
#include "ui_FloatPlacementUi.h"
#include <QWidget>
#include <string>
namespace lyx { class InsetFloatParams; }
class FloatPlacement : public QWidget, public Ui::FloatPlacementUi {
Q_OBJECT
public:
FloatPlacement(QWidget * parent = 0);
void useWide();
void useSideways();
void set(lyx::InsetFloatParams const & params);
void set(std::string const & placement);
void checkAllowed();
std::string const get(bool & wide, bool & sideways) const;
std::string const get() const;
public Q_SLOTS:
void tbhpClicked();
void changedSlot();
void on_spanCB_clicked();
void on_heredefinitelyCB_clicked();
void on_sidewaysCB_clicked();
Q_SIGNALS:
void changed();
private:
/// one of figure or table?
bool standardfloat_;
};
//} // namespace lyx
#endif