2009-05-22 17:17:45 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file GuiPrintNomencl.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Jürgen Spitzmüller
|
|
|
|
* \author Uwe Stöhr
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GUIPRINTNOMENCL_H
|
|
|
|
#define GUIPRINTNOMENCL_H
|
|
|
|
|
|
|
|
#include "GuiDialog.h"
|
|
|
|
#include "ui_PrintNomenclUi.h"
|
|
|
|
|
|
|
|
#include "insets/InsetCommandParams.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
|
|
|
class GuiPrintNomencl : public GuiDialog, public Ui::PrintNomenclUi
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
GuiPrintNomencl(GuiView & lv);
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void change_adaptor();
|
|
|
|
void on_setWidthCO_activated(int);
|
|
|
|
|
|
|
|
private:
|
|
|
|
/// Apply changes
|
|
|
|
void applyView();
|
|
|
|
/// Update dialog before showing it
|
|
|
|
void updateContents();
|
|
|
|
///
|
|
|
|
bool initialiseParams(std::string const & data);
|
|
|
|
///
|
|
|
|
void paramsToDialog(InsetCommandParams const & icp);
|
|
|
|
///
|
|
|
|
void clearParams() { params_.clear(); }
|
|
|
|
///
|
|
|
|
void dispatchParams();
|
|
|
|
///
|
|
|
|
bool isBufferDependent() const { return true; }
|
2009-05-22 17:35:50 +00:00
|
|
|
///
|
|
|
|
bool isValid();
|
2009-05-22 17:17:45 +00:00
|
|
|
|
|
|
|
///
|
|
|
|
InsetCommandParams params_;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // GUIPRINTNOMENCL_H
|