2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-05 14:10:50 +00:00
|
|
|
/**
|
|
|
|
* \file ControlTabularCreate.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-26 14:33:58 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author unknown
|
2001-03-26 14:33:58 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-03-26 14:33:58 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLTABULARCREATE_H
|
|
|
|
#define CONTROLTABULARCREATE_H
|
|
|
|
|
2003-03-09 19:34:46 +00:00
|
|
|
#include "Dialog.h"
|
2001-04-26 18:40:38 +00:00
|
|
|
#include <utility>
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2001-03-26 14:33:58 +00:00
|
|
|
/** A controller for the TabularCreate Dialog.
|
|
|
|
*/
|
2007-09-08 21:16:54 +00:00
|
|
|
class ControlTabularCreate : public Controller {
|
2001-03-26 14:33:58 +00:00
|
|
|
public:
|
2002-03-21 21:21:28 +00:00
|
|
|
///
|
2003-03-09 19:34:46 +00:00
|
|
|
ControlTabularCreate(Dialog &);
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
virtual bool initialiseParams(std::string const & data);
|
2003-03-09 19:34:46 +00:00
|
|
|
/// clean-up on hide.
|
|
|
|
virtual void clearParams();
|
|
|
|
///
|
|
|
|
virtual void dispatchParams();
|
|
|
|
///
|
|
|
|
virtual bool isBufferDependent() const { return true; }
|
2005-04-26 09:37:52 +00:00
|
|
|
///
|
|
|
|
virtual kb_action getLfun() const { return LFUN_TABULAR_INSERT; }
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2003-03-09 19:34:46 +00:00
|
|
|
///
|
2004-12-03 13:57:50 +00:00
|
|
|
typedef std::pair<size_t, size_t> rowsCols;
|
2001-03-26 14:33:58 +00:00
|
|
|
///
|
2003-03-09 19:34:46 +00:00
|
|
|
rowsCols & params() { return params_; }
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2003-03-09 19:34:46 +00:00
|
|
|
private:
|
2001-04-11 17:59:08 +00:00
|
|
|
/// rows, cols params
|
|
|
|
rowsCols params_;
|
2001-03-26 14:33:58 +00:00
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2001-03-26 14:33:58 +00:00
|
|
|
#endif // CONTROLTABULARCREATE_H
|