2006-03-05 17:24:44 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
|
* \file GuiTabular.h
|
2006-03-05 17:24:44 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author John Levon
|
|
|
|
|
* \author Kalle Dalheimer
|
|
|
|
|
* \author J<EFBFBD>rgen Spitzm<EFBFBD>ller
|
|
|
|
|
* \author Herbert Vo<EFBFBD>
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
#ifndef GUITABULAR_H
|
|
|
|
|
#define GUITABULAR_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
|
#include "GuiDialogView.h"
|
2007-08-31 22:16:11 +00:00
|
|
|
|
#include "ControlTabular.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
|
#include "ui_TabularUi.h"
|
2007-04-24 17:46:08 +00:00
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
namespace frontend {
|
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
|
class GuiTabular;
|
2007-04-24 17:46:08 +00:00
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
class GuiTabularDialog : public QDialog, public Ui::TabularUi
|
|
|
|
|
{
|
2007-04-24 17:46:08 +00:00
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2007-08-31 05:53:55 +00:00
|
|
|
|
GuiTabularDialog(GuiTabular * form);
|
2007-04-24 17:46:08 +00:00
|
|
|
|
|
|
|
|
|
protected Q_SLOTS:
|
|
|
|
|
virtual void change_adaptor();
|
|
|
|
|
|
|
|
|
|
virtual void topspace_changed();
|
|
|
|
|
virtual void bottomspace_changed();
|
|
|
|
|
virtual void interlinespace_changed();
|
|
|
|
|
virtual void booktabsChanged(bool);
|
|
|
|
|
virtual void close_clicked();
|
|
|
|
|
virtual void borderSet_clicked();
|
|
|
|
|
virtual void borderUnset_clicked();
|
|
|
|
|
virtual void leftBorder_changed();
|
|
|
|
|
virtual void rightBorder_changed();
|
|
|
|
|
virtual void topBorder_changed();
|
|
|
|
|
virtual void bottomBorder_changed();
|
|
|
|
|
virtual void multicolumn_clicked();
|
|
|
|
|
virtual void rotateTabular();
|
|
|
|
|
virtual void rotateCell();
|
|
|
|
|
virtual void hAlign_changed(int align);
|
|
|
|
|
virtual void vAlign_changed(int align);
|
|
|
|
|
virtual void specialAlignment_changed();
|
|
|
|
|
virtual void width_changed();
|
|
|
|
|
virtual void longTabular();
|
|
|
|
|
virtual void ltNewpage_clicked();
|
|
|
|
|
virtual void ltHeaderStatus_clicked();
|
|
|
|
|
virtual void ltHeaderBorderAbove_clicked();
|
|
|
|
|
virtual void ltHeaderBorderBelow_clicked();
|
|
|
|
|
virtual void ltFirstHeaderStatus_clicked();
|
|
|
|
|
virtual void ltFirstHeaderBorderAbove_clicked();
|
|
|
|
|
virtual void ltFirstHeaderBorderBelow_clicked();
|
|
|
|
|
virtual void ltFirstHeaderEmpty_clicked();
|
|
|
|
|
virtual void ltFooterStatus_clicked();
|
|
|
|
|
virtual void ltFooterBorderAbove_clicked();
|
|
|
|
|
virtual void ltFooterBorderBelow_clicked();
|
|
|
|
|
virtual void ltLastFooterStatus_clicked();
|
|
|
|
|
virtual void ltLastFooterBorderAbove_clicked();
|
|
|
|
|
virtual void ltLastFooterBorderBelow_clicked();
|
|
|
|
|
virtual void ltLastFooterEmpty_clicked();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
virtual void closeEvent(QCloseEvent * e);
|
|
|
|
|
|
|
|
|
|
private:
|
2007-08-31 05:53:55 +00:00
|
|
|
|
GuiTabular * form_;
|
2007-04-24 17:46:08 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
class GuiTabular : public GuiView<GuiTabularDialog>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
{
|
|
|
|
|
public:
|
2007-08-31 05:53:55 +00:00
|
|
|
|
friend class GuiTabularDialog;
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
2007-09-03 05:59:32 +00:00
|
|
|
|
GuiTabular(GuiDialog &);
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
/// parent controller
|
|
|
|
|
ControlTabular & controller()
|
|
|
|
|
{ return static_cast<ControlTabular &>(this->getController()); }
|
|
|
|
|
/// parent controller
|
|
|
|
|
ControlTabular const & controller() const
|
|
|
|
|
{ return static_cast<ControlTabular const &>(this->getController()); }
|
2006-03-05 17:24:44 +00:00
|
|
|
|
protected:
|
|
|
|
|
virtual bool isValid();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
/// We can't use this ...
|
|
|
|
|
virtual void apply() {}
|
|
|
|
|
/// update borders
|
|
|
|
|
virtual void update_borders();
|
|
|
|
|
/// update
|
|
|
|
|
virtual void update_contents();
|
|
|
|
|
/// build the dialog
|
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
/// save some values before closing the gui
|
|
|
|
|
virtual void closeGUI();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
#endif // GUITABULAR_H
|