]> 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 f8e8c048081b2d1800a047ffc3281d98220f9853..55c38ceae539959dd51b126dc5185d5311d5b424 100644 (file)
@@ -17,6 +17,9 @@
 
 class Format;
 
+namespace lyx {
+namespace frontend {
+
 /** A controller for the Custom Export dialogs.
  */
 class ControlSendto : public Dialog::Controller {
@@ -31,6 +34,8 @@ public:
        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;
@@ -49,4 +54,7 @@ private:
        std::string command_;
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // CONTROLSENDTO_H