]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlRef.h
port the graphics dialog to the new scheme and get rid of the ControlInset
[lyx.git] / src / frontends / controllers / ControlRef.h
1 // -*- C++ -*-
2 /**
3  * \file ControlRef.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef CONTROLREF_H
13 #define CONTROLREF_H
14
15
16 #include "ControlCommand.h"
17 #include <vector>
18
19
20 /** A controller for the Ref Dialog.
21  */
22 class ControlRef : public ControlCommand {
23 public:
24         ///
25         ControlRef(Dialog &);
26         ///
27         std::vector<string> const getLabelList(string const &) const;
28         ///
29         void gotoRef(string const &);
30         ///
31         void gotoBookmark();
32         ///
33         std::vector<string> const getBufferList() const;
34         ///
35         int getBufferNum() const;
36         ///
37         string const getBufferName(int num) const;
38 private:
39         /** disconnect from the inset when the Apply button is pressed.
40          Allows easy insertion of multiple references. */
41         virtual bool disconnectOnApply() const { return true; }
42 };
43
44 #endif // CONTROLREF_H