]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlRef.h
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[lyx.git] / src / frontends / controllers / ControlRef.h
index 7e8dc44d4b46aff8c225df5514f1193cb04881b1..df13045ec51d6eea00be4952ded138936278da2d 100644 (file)
@@ -1,48 +1,44 @@
 // -*- C++ -*-
-/* This file is part of
- * ====================================================== 
- *
- *           LyX, The Document Processor
- *
- *           Copyright 2001 The LyX Team.
+/**
+ * \file ControlRef.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * ======================================================
+ * \author Angus Leeming
  *
- * \file ControlRef.h
- * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef CONTROLREF_H
 #define CONTROLREF_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "ControlCommand.h"
+#include <vector>
+
 
 /** A controller for the Ref Dialog.
  */
 class ControlRef : public ControlCommand {
 public:
        ///
-       ControlRef(LyXView &, Dialogs &);
-
+       ControlRef(Dialog &);
        ///
        std::vector<string> const getLabelList(string const &) const;
        ///
-       void gotoRef(string const &) const;
+       void gotoRef(string const &);
        ///
-       void gotoBookmark() const;
+       void gotoBookmark();
        ///
        std::vector<string> const getBufferList() const;
        ///
        int getBufferNum() const;
-
+       ///
+       string const getBufferName(int num) const;
 private:
        /** disconnect from the inset when the Apply button is pressed.
         Allows easy insertion of multiple references. */
-       virtual bool disconnectOnApply() { return true; }
+       virtual bool disconnectOnApply() const { return true; }
 };
 
 #endif // CONTROLREF_H