]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSendto.h
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiSendto.h
index 92aaf0a97f040fa17579702f61c2986e6760c60d..af13be46273d9cbf8e2d2fa23faacaf5671f7991 100644 (file)
@@ -4,6 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
+ * \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,34 @@ 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 clearParams() {}
+       ///
+       void dispatchParams();
+       ///
+       bool isBufferDependent() const { return true; }
+       ///
+       FuncCode getLfun() const { return LFUN_BUFFER_EXPORT_CUSTOM; }
+
+       /// Return a vector of those formats that can be exported from "lyx".
+       std::vector<Format const *> allFormats() const;
+
+private:
+       ///
+       Format const * format_;
+       ///
+       std::string command_;
 };
 
 } // namespace frontend