2003-10-07 07:42:15 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file ControlBox.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Martin Vermeer (with useful hints from Angus Leeming)
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLBOX_H
|
|
|
|
#define CONTROLBOX_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "Dialog.h"
|
|
|
|
#include <vector>
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
2003-10-07 07:42:15 +00:00
|
|
|
class InsetBoxParams;
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace frontend {
|
|
|
|
|
2003-10-07 07:42:15 +00:00
|
|
|
class ControlBox : public Dialog::Controller {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
ControlBox(Dialog &);
|
|
|
|
///
|
|
|
|
virtual bool initialiseParams(std::string const & data);
|
|
|
|
///
|
|
|
|
virtual void clearParams();
|
|
|
|
///
|
|
|
|
virtual void dispatchParams();
|
|
|
|
///
|
|
|
|
virtual bool isBufferDependent() const { return true; }
|
|
|
|
///
|
|
|
|
InsetBoxParams & params() { return *params_.get(); }
|
|
|
|
///
|
|
|
|
InsetBoxParams const & params() const { return *params_.get(); }
|
|
|
|
///
|
|
|
|
private:
|
|
|
|
///
|
|
|
|
boost::scoped_ptr<InsetBoxParams> params_;
|
|
|
|
};
|
|
|
|
|
|
|
|
///
|
|
|
|
void box_gui_tokens(std::vector<std::string> &, std::vector<std::string> &);
|
|
|
|
///
|
2003-10-13 09:43:15 +00:00
|
|
|
void box_gui_tokens_special_length(std::vector<std::string> &,
|
2003-10-07 07:42:15 +00:00
|
|
|
std::vector<std::string> &);
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2003-10-07 07:42:15 +00:00
|
|
|
#endif // CONTROLBOX_H
|