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