2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2001-03-26 14:33:58 +00:00
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
2002-03-21 21:21:28 +00:00
|
|
|
*
|
2001-03-26 14:33:58 +00:00
|
|
|
* LyX, The Document Processor
|
2002-03-21 21:21:28 +00:00
|
|
|
*
|
2001-03-26 14:33:58 +00:00
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
*
|
|
|
|
*======================================================
|
|
|
|
*
|
|
|
|
* \file ControlTabularCreate.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLTABULARCREATE_H
|
|
|
|
#define CONTROLTABULARCREATE_H
|
|
|
|
|
2001-04-26 18:40:38 +00:00
|
|
|
#include <utility>
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-03-26 14:33:58 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2002-01-16 14:47:58 +00:00
|
|
|
#include "ControlDialog_impl.h"
|
2001-03-26 14:33:58 +00:00
|
|
|
|
|
|
|
/** A controller for the TabularCreate Dialog.
|
|
|
|
*/
|
2002-01-16 14:47:58 +00:00
|
|
|
class ControlTabularCreate : public ControlDialogBD {
|
2001-03-26 14:33:58 +00:00
|
|
|
public:
|
2002-03-21 21:21:28 +00:00
|
|
|
///
|
2001-03-26 14:33:58 +00:00
|
|
|
ControlTabularCreate(LyXView &, Dialogs &);
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-04-11 17:59:08 +00:00
|
|
|
typedef std::pair<unsigned int, unsigned int> rowsCols;
|
|
|
|
|
2001-03-26 14:33:58 +00:00
|
|
|
///
|
2001-04-11 17:59:08 +00:00
|
|
|
rowsCols & params();
|
2001-03-26 14:33:58 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
/// Apply from dialog
|
|
|
|
virtual void apply();
|
|
|
|
|
|
|
|
/// set the params before show or update
|
|
|
|
virtual void setParams();
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-04-11 17:59:08 +00:00
|
|
|
/// rows, cols params
|
|
|
|
rowsCols params_;
|
2001-03-26 14:33:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLTABULARCREATE_H
|