mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
13349032cb
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5758 a592a061-630c-0410-9148-cb99ea01b6c8
74 lines
1.6 KiB
C++
74 lines
1.6 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file FormTabular.h
|
|
* Copyright 1995 Matthias Ettrich
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Jürgen Vigna
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
#ifndef FORMTABULAR_H
|
|
#define FORMTABULAR_H
|
|
|
|
#include <boost/scoped_ptr.hpp>
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "FormBase.h"
|
|
|
|
class InsetTabular;
|
|
class ControlTabular;
|
|
struct FD_tabular;
|
|
struct FD_tabular_options;
|
|
struct FD_tabular_column;
|
|
struct FD_tabular_cell;
|
|
struct FD_tabular_longtable;
|
|
|
|
/** This class provides an XForms implementation of the FormTabular Dialog.
|
|
The tabular dialog allows users to set/save their tabular.
|
|
*/
|
|
class FormTabular : public FormCB<ControlTabular, FormDB<FD_tabular> > {
|
|
public:
|
|
|
|
FormTabular();
|
|
|
|
private:
|
|
/** Redraw the form (on receipt of a Signal indicating, for example,
|
|
that the xforms colours have been re-mapped). */
|
|
virtual void redraw();
|
|
|
|
/// not used
|
|
virtual void apply() {}
|
|
/// Update dialog before showing it
|
|
virtual void update();
|
|
/// Build the dialog
|
|
virtual void build();
|
|
/// Filter the inputs
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
|
|
|
///
|
|
virtual int checkLongtableOptions(FL_OBJECT *, string &);
|
|
|
|
///
|
|
boost::scoped_ptr<FD_tabular_options> tabular_options_;
|
|
///
|
|
boost::scoped_ptr<FD_tabular_column> column_options_;
|
|
///
|
|
boost::scoped_ptr<FD_tabular_cell> cell_options_;
|
|
///
|
|
boost::scoped_ptr<FD_tabular_longtable> longtable_options_;
|
|
|
|
///
|
|
bool closing_;
|
|
|
|
///
|
|
int actCell_;
|
|
};
|
|
|
|
#endif // FORMTABULAR_H
|