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-09-05 20:33:29 +00:00
|
|
|
|
#include "GuiDialog.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
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
namespace frontend {
|
|
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
|
class GuiTabularDialog : public GuiDialog, public Ui::TabularUi
|
2007-08-31 22:16:11 +00:00
|
|
|
|
{
|
2007-04-24 17:46:08 +00:00
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
|
public:
|
2007-09-05 20:33:29 +00:00
|
|
|
|
GuiTabularDialog(LyXView & lv);
|
|
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
|
void change_adaptor();
|
|
|
|
|
|
|
|
|
|
void topspace_changed();
|
|
|
|
|
void bottomspace_changed();
|
|
|
|
|
void interlinespace_changed();
|
|
|
|
|
void booktabsChanged(bool);
|
|
|
|
|
void close_clicked();
|
|
|
|
|
void borderSet_clicked();
|
|
|
|
|
void borderUnset_clicked();
|
|
|
|
|
void leftBorder_changed();
|
|
|
|
|
void rightBorder_changed();
|
|
|
|
|
void topBorder_changed();
|
|
|
|
|
void bottomBorder_changed();
|
|
|
|
|
void multicolumn_clicked();
|
|
|
|
|
void rotateTabular();
|
|
|
|
|
void rotateCell();
|
|
|
|
|
void hAlign_changed(int align);
|
|
|
|
|
void vAlign_changed(int align);
|
|
|
|
|
void specialAlignment_changed();
|
|
|
|
|
void width_changed();
|
|
|
|
|
void longTabular();
|
|
|
|
|
void ltNewpage_clicked();
|
|
|
|
|
void ltHeaderStatus_clicked();
|
|
|
|
|
void ltHeaderBorderAbove_clicked();
|
|
|
|
|
void ltHeaderBorderBelow_clicked();
|
|
|
|
|
void ltFirstHeaderStatus_clicked();
|
|
|
|
|
void ltFirstHeaderBorderAbove_clicked();
|
|
|
|
|
void ltFirstHeaderBorderBelow_clicked();
|
|
|
|
|
void ltFirstHeaderEmpty_clicked();
|
|
|
|
|
void ltFooterStatus_clicked();
|
|
|
|
|
void ltFooterBorderAbove_clicked();
|
|
|
|
|
void ltFooterBorderBelow_clicked();
|
|
|
|
|
void ltLastFooterStatus_clicked();
|
|
|
|
|
void ltLastFooterBorderAbove_clicked();
|
|
|
|
|
void ltLastFooterBorderBelow_clicked();
|
|
|
|
|
void ltLastFooterEmpty_clicked();
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
|
|
private:
|
2007-09-05 20:33:29 +00:00
|
|
|
|
///
|
|
|
|
|
void closeEvent(QCloseEvent * e);
|
|
|
|
|
/// parent controller
|
2007-09-11 18:33:42 +00:00
|
|
|
|
ControlTabular & controller();
|
2007-09-05 20:33:29 +00:00
|
|
|
|
///
|
|
|
|
|
bool isValid() { return true; }
|
2006-03-05 17:24:44 +00:00
|
|
|
|
/// update borders
|
2007-09-05 20:33:29 +00:00
|
|
|
|
void update_borders();
|
2006-03-05 17:24:44 +00:00
|
|
|
|
/// update
|
2007-09-11 18:33:42 +00:00
|
|
|
|
void updateContents();
|
2006-03-05 17:24:44 +00:00
|
|
|
|
/// save some values before closing the gui
|
2007-09-05 20:33:29 +00:00
|
|
|
|
void closeGUI();
|
2006-03-05 17:24:44 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
#endif // GUITABULAR_H
|