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
|
|
|
*
|
2003-08-23 00:17:00 +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
|
|
|
|
2003-03-05 23:12:19 +00:00
|
|
|
class InsetFloatParams;
|
2001-07-30 13:35:08 +00:00
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
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 &);
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
virtual bool initialiseParams(std::string const & data);
|
2003-03-05 19:46:08 +00:00
|
|
|
/// 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
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2001-07-30 11:56:00 +00:00
|
|
|
#endif
|