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