]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlRef.h
prefs/tabular MVC work
[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         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