X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiSendto.h;h=38f0f531a780b0f16567a2a98c5e351f5cd029e9;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=d69ca02f287f8896f7642413f9a894cb38c15992;hpb=470aba2a0e552f27d55992372c09f15af9725fa8;p=lyx.git diff --git a/src/frontends/qt4/GuiSendto.h b/src/frontends/qt4/GuiSendto.h index d69ca02f28..38f0f531a7 100644 --- a/src/frontends/qt4/GuiSendto.h +++ b/src/frontends/qt4/GuiSendto.h @@ -4,7 +4,8 @@ * 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. */ @@ -13,7 +14,6 @@ #define GUISENDTO_H #include "GuiDialog.h" -#include "ControlSendto.h" #include "ui_SendtoUi.h" #include @@ -26,12 +26,12 @@ class Format; 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(); @@ -39,9 +39,6 @@ private Q_SLOTS: void slotFormatSelected(QListWidgetItem *) {} private: - void closeEvent(QCloseEvent * e); - /// parent controller - ControlSendto & controller(); /// bool isValid(); /// Apply from dialog @@ -51,6 +48,24 @@ private: /// std::vector 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