2000-07-11 15:08:54 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-03-11 17:00:41 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file FormTabular.h
|
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
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
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS
|
2000-07-11 15:08:54 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef FORMTABULAR_H
|
|
|
|
|
#define FORMTABULAR_H
|
|
|
|
|
|
2002-05-22 01:16:37 +00:00
|
|
|
|
#include <boost/scoped_ptr.hpp>
|
2001-03-15 13:37:04 +00:00
|
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
|
#pragma interface
|
|
|
|
|
#endif
|
|
|
|
|
|
2002-11-15 02:44:20 +00:00
|
|
|
|
#include "FormBase.h"
|
2000-08-14 05:24:35 +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.
|
|
|
|
|
*/
|
2002-11-15 02:44:20 +00:00
|
|
|
|
class FormTabular : public FormCB<ControlTabular, FormDB<FD_tabular> > {
|
2000-07-11 15:08:54 +00:00
|
|
|
|
public:
|
|
|
|
|
|
2002-11-15 02:44:20 +00:00
|
|
|
|
FormTabular();
|
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);
|
|
|
|
|
|
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-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
|