]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSendto.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiSendto.h
index 92aaf0a97f040fa17579702f61c2986e6760c60d..38f0f531a780b0f16567a2a98c5e351f5cd029e9 100644 (file)
@@ -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 <vector>
@@ -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<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