2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
* \file GuiSendto.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.
|
|
|
|
*
|
2007-10-06 20:09:40 +00:00
|
|
|
* \author Angus Leeming
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author Jürgen Spitzmüller
|
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 GUISENDTO_H
|
|
|
|
#define GUISENDTO_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
#include "GuiDialog.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
#include "ui_SendtoUi.h"
|
2007-04-25 10:57:54 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2007-04-25 10:57:54 +00:00
|
|
|
class QListWidgetItem;
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
class Format;
|
|
|
|
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-10-09 19:34:27 +00:00
|
|
|
class GuiSendTo : public GuiDialog, public Ui::SendtoUi
|
2007-09-05 20:33:29 +00:00
|
|
|
{
|
2007-04-25 10:57:54 +00:00
|
|
|
Q_OBJECT
|
2007-09-05 20:33:29 +00:00
|
|
|
|
2007-04-25 10:57:54 +00:00
|
|
|
public:
|
2007-11-23 09:44:02 +00:00
|
|
|
GuiSendTo(GuiView & lv);
|
2007-04-25 10:57:54 +00:00
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
private Q_SLOTS:
|
|
|
|
void changed_adaptor();
|
|
|
|
void slotFormatHighlighted(QListWidgetItem *) {}
|
|
|
|
void slotFormatSelected(QListWidgetItem *) {}
|
2007-04-25 10:57:54 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
private:
|
2007-09-05 20:33:29 +00:00
|
|
|
///
|
|
|
|
bool isValid();
|
2006-03-05 17:24:44 +00:00
|
|
|
/// Apply from dialog
|
2007-09-05 20:33:29 +00:00
|
|
|
void applyView();
|
2006-03-05 17:24:44 +00:00
|
|
|
/// Update the dialog
|
2007-09-11 18:33:42 +00:00
|
|
|
void updateContents();
|
2007-09-05 20:33:29 +00:00
|
|
|
|
2007-10-06 20:09:40 +00:00
|
|
|
///
|
|
|
|
bool initialiseParams(std::string const & data);
|
|
|
|
///
|
2008-09-04 09:36:44 +00:00
|
|
|
void paramsToDialog(Format const * format, QString const & command);
|
|
|
|
///
|
2007-10-06 20:09:40 +00:00
|
|
|
void clearParams() {}
|
|
|
|
///
|
|
|
|
void dispatchParams();
|
|
|
|
///
|
|
|
|
bool isBufferDependent() const { return true; }
|
|
|
|
///
|
2008-03-15 01:20:36 +00:00
|
|
|
FuncCode getLfun() const { return LFUN_BUFFER_EXPORT_CUSTOM; }
|
2007-10-06 20:09:40 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
///
|
|
|
|
Format const * format_;
|
|
|
|
///
|
2008-04-20 16:32:40 +00:00
|
|
|
QString command_;
|
2006-03-05 17:24:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#endif // GUISENDTO_H
|