2001-06-13 14:33:31 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-09-05 14:10:50 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file ControlMinipage.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-03-27 16:03:28 +00:00
|
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
|
* \author J<EFBFBD>rgen Vigna
|
|
|
|
|
* \author Angus Leeming
|
2001-03-27 16:03:28 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-03-27 16:03:28 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef CONTROLMINIPAGE_H
|
|
|
|
|
#define CONTROLMINIPAGE_H
|
|
|
|
|
|
2003-03-07 14:08:10 +00:00
|
|
|
|
#include "Dialog.h"
|
|
|
|
|
#include "insets/insetminipage.h"
|
2001-03-28 12:59:29 +00:00
|
|
|
|
|
2003-03-07 14:08:10 +00:00
|
|
|
|
class ControlMinipage : public Dialog::Controller {
|
|
|
|
|
public:
|
2001-03-27 16:03:28 +00:00
|
|
|
|
///
|
2003-03-07 14:08:10 +00:00
|
|
|
|
ControlMinipage(Dialog &);
|
2001-03-27 16:03:28 +00:00
|
|
|
|
///
|
2003-03-14 00:20:42 +00:00
|
|
|
|
virtual bool initialiseParams(string const & data);
|
2003-03-07 14:08:10 +00:00
|
|
|
|
/// clean-up on hide.
|
|
|
|
|
virtual void clearParams();
|
|
|
|
|
/// clean-up on hide.
|
|
|
|
|
virtual void dispatchParams();
|
2001-03-27 16:03:28 +00:00
|
|
|
|
///
|
2003-03-07 14:08:10 +00:00
|
|
|
|
virtual bool isBufferDependent() const { return true; }
|
2001-03-27 16:03:28 +00:00
|
|
|
|
///
|
2003-03-07 14:08:10 +00:00
|
|
|
|
InsetMinipage::Params & params() { return *params_.get(); }
|
2001-03-27 16:03:28 +00:00
|
|
|
|
///
|
2003-03-07 14:08:10 +00:00
|
|
|
|
InsetMinipage::Params const & params() const { return *params_.get(); }
|
2001-03-27 16:03:28 +00:00
|
|
|
|
private:
|
2002-03-21 21:21:28 +00:00
|
|
|
|
///
|
2003-03-07 14:08:10 +00:00
|
|
|
|
boost::scoped_ptr<InsetMinipage::Params> params_;
|
2001-03-27 16:03:28 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|