]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlRef.h
The reference dialog now disconnects from the inset on Apply. Its behaviour
[lyx.git] / src / frontends / controllers / ControlRef.h
index 0a125fbe8dfc1047e74558e7fb2ca119dddbe18d..7e8dc44d4b46aff8c225df5514f1193cb04881b1 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /* This file is part of
  * ====================================================== 
  *
@@ -28,15 +29,20 @@ public:
        ControlRef(LyXView &, Dialogs &);
 
        ///
-       std::vector<string> const getLabelList() const;
+       std::vector<string> const getLabelList(string const &) const;
        ///
        void gotoRef(string const &) const;
        ///
        void gotoBookmark() const;
+       ///
+       std::vector<string> const getBufferList() const;
+       ///
+       int getBufferNum() const;
 
 private:
-       /// not needed.
-       virtual void clearDaughterParams() {}
+       /** disconnect from the inset when the Apply button is pressed.
+        Allows easy insertion of multiple references. */
+       virtual bool disconnectOnApply() { return true; }
 };
 
 #endif // CONTROLREF_H