2002-09-10 10:18:58 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file ControlWrap.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Dekel Tsur
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2002-09-10 10:18:58 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLWRAP_H
|
|
|
|
#define CONTROLWRAP_H
|
|
|
|
|
2003-03-05 23:19:45 +00:00
|
|
|
#include "Dialog.h"
|
2002-09-10 10:18:58 +00:00
|
|
|
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
class InsetWrapParams;
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace frontend {
|
|
|
|
|
2003-03-05 23:19:45 +00:00
|
|
|
class ControlWrap : public Dialog::Controller {
|
|
|
|
public:
|
2002-09-10 10:18:58 +00:00
|
|
|
///
|
2003-03-05 23:19:45 +00:00
|
|
|
ControlWrap(Dialog &);
|
2002-09-10 10:18:58 +00:00
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
virtual bool initialiseParams(std::string const & data);
|
2003-03-05 23:19:45 +00:00
|
|
|
/// clean-up on hide.
|
|
|
|
virtual void clearParams();
|
|
|
|
/// clean-up on hide.
|
|
|
|
virtual void dispatchParams();
|
2002-09-10 10:18:58 +00:00
|
|
|
///
|
2003-03-05 23:19:45 +00:00
|
|
|
virtual bool isBufferDependent() const { return true; }
|
2002-09-10 10:18:58 +00:00
|
|
|
///
|
2003-03-05 23:19:45 +00:00
|
|
|
InsetWrapParams & params() { return *params_.get(); }
|
2002-09-10 10:18:58 +00:00
|
|
|
///
|
2003-03-05 23:19:45 +00:00
|
|
|
InsetWrapParams const & params() const { return *params_.get(); }
|
2002-09-10 10:18:58 +00:00
|
|
|
private:
|
|
|
|
///
|
2003-03-05 23:19:45 +00:00
|
|
|
boost::scoped_ptr<InsetWrapParams> params_;
|
2002-09-10 10:18:58 +00:00
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2002-09-10 10:18:58 +00:00
|
|
|
#endif
|