2000-07-11 15:08:54 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-03-11 17:00:41 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file FormTabular.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.
|
2000-07-11 15:08:54 +00:00
|
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
|
* \author J<EFBFBD>rgen Vigna
|
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2000-07-11 15:08:54 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef FORMTABULAR_H
|
|
|
|
|
#define FORMTABULAR_H
|
|
|
|
|
|
2003-03-09 18:11:57 +00:00
|
|
|
|
#include "FormDialogView.h"
|
2002-05-22 01:16:37 +00:00
|
|
|
|
#include <boost/scoped_ptr.hpp>
|
2001-03-15 13:37:04 +00:00
|
|
|
|
|
2000-07-11 15:08:54 +00:00
|
|
|
|
class InsetTabular;
|
2002-11-15 02:44:20 +00:00
|
|
|
|
class ControlTabular;
|
2002-06-13 13:43:51 +00:00
|
|
|
|
struct FD_tabular;
|
|
|
|
|
struct FD_tabular_options;
|
|
|
|
|
struct FD_tabular_column;
|
|
|
|
|
struct FD_tabular_cell;
|
|
|
|
|
struct FD_tabular_longtable;
|
2000-07-11 15:08:54 +00:00
|
|
|
|
|
|
|
|
|
/** This class provides an XForms implementation of the FormTabular Dialog.
|
|
|
|
|
The tabular dialog allows users to set/save their tabular.
|
|
|
|
|
*/
|
2003-03-09 18:11:57 +00:00
|
|
|
|
class FormTabular
|
|
|
|
|
: public FormController<ControlTabular, FormView<FD_tabular> > {
|
2000-07-11 15:08:54 +00:00
|
|
|
|
public:
|
|
|
|
|
|
2003-03-09 18:11:57 +00:00
|
|
|
|
FormTabular(Dialog &);
|
2002-08-14 19:19:47 +00:00
|
|
|
|
|
2000-07-11 15:08:54 +00:00
|
|
|
|
private:
|
2000-11-10 17:29:47 +00:00
|
|
|
|
/** Redraw the form (on receipt of a Signal indicating, for example,
|
2001-03-05 19:02:40 +00:00
|
|
|
|
that the xforms colours have been re-mapped). */
|
2000-11-10 17:29:47 +00:00
|
|
|
|
virtual void redraw();
|
2000-10-24 13:13:59 +00:00
|
|
|
|
|
2002-11-15 02:44:20 +00:00
|
|
|
|
/// not used
|
|
|
|
|
virtual void apply() {}
|
2000-10-24 13:13:59 +00:00
|
|
|
|
/// Update dialog before showing it
|
|
|
|
|
virtual void update();
|
|
|
|
|
/// Build the dialog
|
|
|
|
|
virtual void build();
|
|
|
|
|
/// Filter the inputs
|
2002-11-15 02:44:20 +00:00
|
|
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
2002-12-01 22:59:25 +00:00
|
|
|
|
|
2001-12-19 16:13:21 +00:00
|
|
|
|
///
|
|
|
|
|
virtual int checkLongtableOptions(FL_OBJECT *, string &);
|
2000-10-24 13:13:59 +00:00
|
|
|
|
|
|
|
|
|
///
|
2002-06-13 13:43:51 +00:00
|
|
|
|
boost::scoped_ptr<FD_tabular_options> tabular_options_;
|
2000-10-24 13:13:59 +00:00
|
|
|
|
///
|
2002-06-13 13:43:51 +00:00
|
|
|
|
boost::scoped_ptr<FD_tabular_column> column_options_;
|
2000-10-24 13:13:59 +00:00
|
|
|
|
///
|
2002-06-13 13:43:51 +00:00
|
|
|
|
boost::scoped_ptr<FD_tabular_cell> cell_options_;
|
2000-10-24 13:13:59 +00:00
|
|
|
|
///
|
2002-06-13 13:43:51 +00:00
|
|
|
|
boost::scoped_ptr<FD_tabular_longtable> longtable_options_;
|
2000-08-14 15:31:16 +00:00
|
|
|
|
|
2000-10-24 13:13:59 +00:00
|
|
|
|
///
|
2002-01-07 09:50:19 +00:00
|
|
|
|
bool closing_;
|
2002-12-01 22:59:25 +00:00
|
|
|
|
|
2002-11-15 02:44:20 +00:00
|
|
|
|
///
|
|
|
|
|
int actCell_;
|
2000-07-11 15:08:54 +00:00
|
|
|
|
};
|
|
|
|
|
|
2002-11-15 02:44:20 +00:00
|
|
|
|
#endif // FORMTABULAR_H
|