2000-07-11 15:08:54 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1995-2000 The LyX Team.
|
|
|
|
*
|
|
|
|
*======================================================*/
|
|
|
|
/* FormTabular.h
|
|
|
|
* FormTabular Interface Class
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMTABULAR_H
|
|
|
|
#define FORMTABULAR_H
|
|
|
|
|
2000-10-24 13:13:59 +00:00
|
|
|
#include "FormInset.h"
|
2000-08-14 05:24:35 +00:00
|
|
|
|
2000-07-11 15:08:54 +00:00
|
|
|
class InsetTabular;
|
2000-07-14 14:57:20 +00:00
|
|
|
struct FD_form_tabular;
|
|
|
|
struct FD_form_tabular_options;
|
|
|
|
struct FD_form_column_options;
|
|
|
|
struct FD_form_cell_options;
|
|
|
|
struct FD_form_longtable_options;
|
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.
|
|
|
|
*/
|
2000-10-24 13:13:59 +00:00
|
|
|
class FormTabular : public FormInset {
|
2000-07-11 15:08:54 +00:00
|
|
|
public:
|
2000-10-24 13:13:59 +00:00
|
|
|
/// #FormTabular x(LyXFunc ..., Dialogs ...);#
|
|
|
|
FormTabular(LyXView *, Dialogs *);
|
|
|
|
///
|
|
|
|
~FormTabular();
|
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
|
|
|
/// Disconnect signals. Also perform any necessary housekeeping.
|
|
|
|
virtual void disconnect();
|
|
|
|
|
|
|
|
/// Slot launching dialog to an existing inset
|
|
|
|
void showInset(InsetTabular *);
|
|
|
|
/// Slot launching dialog to an existing inset
|
|
|
|
void updateInset(InsetTabular *);
|
|
|
|
/// Update dialog before showing it
|
|
|
|
virtual void update();
|
|
|
|
/// Build the dialog
|
|
|
|
virtual void build();
|
|
|
|
/// Filter the inputs
|
|
|
|
virtual bool input(FL_OBJECT *, long);
|
2001-03-05 19:02:40 +00:00
|
|
|
/// Pointer to the actual instantiation of the xforms form
|
2000-10-24 13:13:59 +00:00
|
|
|
virtual FL_FORM * form() const;
|
|
|
|
|
|
|
|
/// Fdesign generated methods
|
|
|
|
FD_form_tabular * build_tabular();
|
|
|
|
///
|
|
|
|
FD_form_tabular_options * build_tabular_options();
|
|
|
|
///
|
|
|
|
FD_form_column_options * build_column_options();
|
|
|
|
///
|
|
|
|
FD_form_cell_options * build_cell_options();
|
|
|
|
///
|
|
|
|
FD_form_longtable_options * build_longtable_options();
|
2000-07-11 15:08:54 +00:00
|
|
|
|
2000-10-24 13:13:59 +00:00
|
|
|
/// Real GUI implementation.
|
|
|
|
FD_form_tabular * dialog_;
|
|
|
|
///
|
|
|
|
FD_form_tabular_options * tabular_options_;
|
|
|
|
///
|
|
|
|
FD_form_column_options * column_options_;
|
|
|
|
///
|
|
|
|
FD_form_cell_options * cell_options_;
|
|
|
|
///
|
|
|
|
FD_form_longtable_options * longtable_options_;
|
2000-08-14 15:31:16 +00:00
|
|
|
|
2000-10-24 13:13:59 +00:00
|
|
|
/// pointer to the inset passed through showInset
|
|
|
|
InsetTabular * inset_;
|
|
|
|
///
|
|
|
|
int actCell_;
|
2000-07-11 15:08:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|