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
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author Jürgen Spitzmüller
|
|
|
|
* \author Herbert Voß
|
2006-03-05 17:24:44 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
2010-02-18 08:28:46 +00:00
|
|
|
#include "InsetParamsWidget.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
#include "ui_TabularUi.h"
|
2010-08-25 06:25:07 +00:00
|
|
|
#include "insets/InsetTabular.h"
|
2007-04-24 17:46:08 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2010-02-18 08:28:46 +00:00
|
|
|
class GuiTabular : public InsetParamsWidget, 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:
|
2010-02-18 08:28:46 +00:00
|
|
|
GuiTabular(QWidget * parent = 0);
|
2007-09-05 20:33:29 +00:00
|
|
|
|
|
|
|
private Q_SLOTS:
|
2010-02-18 08:28:46 +00:00
|
|
|
void checkEnabled();
|
2007-09-05 20:33:29 +00:00
|
|
|
void borderSet_clicked();
|
|
|
|
void borderUnset_clicked();
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
private:
|
2010-02-18 08:28:46 +00:00
|
|
|
/// \name InsetParamsWidget inherited methods
|
|
|
|
//@{
|
|
|
|
InsetCode insetCode() const { return TABULAR_CODE; }
|
|
|
|
FuncCode creationCode() const { return LFUN_TABULAR_INSERT; }
|
|
|
|
void paramsToDialog(Inset const *);
|
|
|
|
docstring dialogToParams() const;
|
|
|
|
//@}
|
2007-10-06 09:19:53 +00:00
|
|
|
|
|
|
|
///
|
2010-02-18 08:28:46 +00:00
|
|
|
void setHAlign(std::string & param_str) const;
|
2007-10-06 09:19:53 +00:00
|
|
|
///
|
2010-02-18 08:28:46 +00:00
|
|
|
void setVAlign(std::string & param_str) const;
|
2007-10-06 09:19:53 +00:00
|
|
|
///
|
2010-02-18 08:28:46 +00:00
|
|
|
void setTableAlignment(std::string & param_str) const;
|
2010-02-19 11:04:15 +00:00
|
|
|
///
|
|
|
|
void setWidthAndAlignment();
|
2010-08-25 06:25:07 +00:00
|
|
|
///
|
|
|
|
bool funcEnabled(Tabular::Feature f) const;
|
2006-03-05 17:24:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#endif // GUITABULAR_H
|