]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlRef.h
This file is part of LyX, the document processor.
[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 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ControlCommand.h"
20
21 /** A controller for the Ref Dialog.
22  */
23 class ControlRef : public ControlCommand {
24 public:
25         ///
26         ControlRef(LyXView &, Dialogs &);
27
28         ///
29         std::vector<string> const getLabelList(string const &) const;
30         ///
31         void gotoRef(string const &);
32         ///
33         void gotoBookmark();
34         ///
35         std::vector<string> const getBufferList() const;
36         ///
37         int getBufferNum() const;
38         ///
39         string const getBufferName(int num) const;
40 private:
41         /** disconnect from the inset when the Apply button is pressed.
42          Allows easy insertion of multiple references. */
43         virtual bool disconnectOnApply() { return true; }
44 };
45
46 #endif // CONTROLREF_H