* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Jürgen Spitzmüller
+ * \author Angus Leeming
+ * \author Jürgen Spitzmüller
*
* Full author contact details are available in file CREDITS.
*/
#define GUISENDTO_H
#include "GuiDialog.h"
-#include "ControlSendto.h"
#include "ui_SendtoUi.h"
#include <vector>
namespace frontend {
-class GuiSendtoDialog : public GuiDialog, public Ui::SendtoUi
+class GuiSendTo : public GuiDialog, public Ui::SendtoUi
{
Q_OBJECT
public:
- GuiSendtoDialog(LyXView & lv);
+ GuiSendTo(GuiView & lv);
private Q_SLOTS:
void changed_adaptor();
void slotFormatSelected(QListWidgetItem *) {}
private:
- void closeEvent(QCloseEvent * e);
- /// parent controller
- ControlSendto & controller();
///
bool isValid();
/// Apply from dialog
///
std::vector<Format const *> all_formats_;
+ ///
+ bool initialiseParams(std::string const & data);
+ ///
+ void paramsToDialog(Format const * format, QString const & command);
+ ///
+ void clearParams() {}
+ ///
+ void dispatchParams();
+ ///
+ bool isBufferDependent() const { return true; }
+ ///
+ FuncCode getLfun() const { return LFUN_BUFFER_EXPORT_CUSTOM; }
+
+private:
+ ///
+ Format const * format_;
+ ///
+ QString command_;
};
} // namespace frontend