X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiSendto.h;h=38f0f531a780b0f16567a2a98c5e351f5cd029e9;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=92aaf0a97f040fa17579702f61c2986e6760c60d;hpb=c9ea6e6eef090b863fb54445010f24443b15eb23;p=lyx.git diff --git a/src/frontends/qt4/GuiSendto.h b/src/frontends/qt4/GuiSendto.h index 92aaf0a97f..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,18 +39,33 @@ private Q_SLOTS: void slotFormatSelected(QListWidgetItem *) {} private: - void closeEvent(QCloseEvent * e); - /// parent controller - ControlSendto & controller() const; /// bool isValid(); /// Apply from dialog void applyView(); /// Update the dialog - void update_contents(); + void updateContents(); /// 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