]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlSendto.h
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlSendto.h
index d052a95d1a16c28867c9c9fc0be1524dc2c62db9..55c38ceae539959dd51b126dc5185d5311d5b424 100644 (file)
@@ -1,32 +1,41 @@
 // -*- C++ -*-
 /**
  * \file ControlSendto.h
- * Copyright 2002 The LyX Team.
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming <leeming@lyx.org>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef CONTROLSENDTO_H
 #define CONTROLSENDTO_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "ControlDialog_impl.h"
-#include "LString.h"
-
+#include "Dialog.h"
 #include <vector>
 
 class Format;
 
+namespace lyx {
+namespace frontend {
+
 /** A controller for the Custom Export dialogs.
  */
-class ControlSendto : public ControlDialogBD {
+class ControlSendto : public Dialog::Controller {
 public:
        ///
-       ControlSendto(LyXView &, Dialogs &);
+       ControlSendto(Dialog &);
+       ///
+       virtual bool initialiseParams(std::string const & data);
+       ///
+       virtual void clearParams() {}
+       ///
+       virtual void dispatchParams();
+       ///
+       virtual bool isBufferDependent() const { return true; }
+       ///
+       virtual kb_action getLfun() const { return LFUN_EXPORT_CUSTOM; }
 
        /// Return a vector of those formats that can be exported from "lyx".
        std::vector<Format const *> const allFormats() const;
@@ -36,16 +45,16 @@ public:
        void setFormat(Format const *);
 
        /// The command to be executed
-       string const getCommand() const { return command_; };
-       void setCommand(string const &);
-
+       std::string const getCommand() const { return command_; };
+       void setCommand(std::string const &);
 private:
-       ///
-       virtual void apply();
        ///
        Format const * format_;
        ///
-       string command_;
+       std::string command_;
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // CONTROLSENDTO_H