2001-07-30 11:56:00 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-05 14:10:50 +00:00
|
|
|
/**
|
|
|
|
* \file ControlFloat.h
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-07-30 11:56:00 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author unknown
|
2001-07-30 11:56:00 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* Full author contact details are available in file CREDITS
|
2001-07-30 11:56:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLFLOAT_H
|
|
|
|
#define CONTROLFLOAT_H
|
|
|
|
|
|
|
|
|
2003-03-05 19:46:08 +00:00
|
|
|
#include "Dialog.h"
|
2002-08-12 20:17:41 +00:00
|
|
|
#include "insets/insetfloat.h"
|
|
|
|
|
2001-07-30 13:35:08 +00:00
|
|
|
|
2001-07-30 11:56:00 +00:00
|
|
|
/** A controller for Minipage dialogs.
|
|
|
|
*/
|
2003-03-05 19:46:08 +00:00
|
|
|
class ControlFloat : public Dialog::Controller {
|
2001-07-30 11:56:00 +00:00
|
|
|
public:
|
|
|
|
///
|
2003-03-05 19:46:08 +00:00
|
|
|
ControlFloat(Dialog &);
|
|
|
|
///
|
|
|
|
virtual void initialiseParams(string const & data);
|
|
|
|
/// clean-up on hide.
|
|
|
|
virtual void clearParams();
|
|
|
|
/// clean-up on hide.
|
|
|
|
virtual void dispatchParams();
|
|
|
|
///
|
|
|
|
virtual bool isBufferDependent() const { return true; }
|
|
|
|
///
|
|
|
|
InsetFloatParams & params() { return *params_.get(); }
|
|
|
|
///
|
|
|
|
InsetFloatParams const & params() const { return *params_.get(); }
|
2001-07-30 11:56:00 +00:00
|
|
|
private:
|
2002-03-21 21:21:28 +00:00
|
|
|
///
|
2003-03-05 19:46:08 +00:00
|
|
|
boost::scoped_ptr<InsetFloatParams> params_;
|
2001-07-30 11:56:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|