]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlRef.h
Nothing but a changed email address (trying to factor my tree in in small steps)
[lyx.git] / src / frontends / controllers / ControlRef.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 2001 The LyX Team.
8  *
9  * ======================================================
10  *
11  * \file ControlRef.h
12  * \author Angus Leeming <leeming@lyx.org>
13  */
14
15 #ifndef CONTROLREF_H
16 #define CONTROLREF_H
17
18 #ifdef __GNUG__
19 #pragma interface
20 #endif
21
22 #include "ControlCommand.h"
23
24 /** A controller for the Ref Dialog.
25  */
26 class ControlRef : public ControlCommand {
27 public:
28         ///
29         ControlRef(LyXView &, Dialogs &);
30
31         ///
32         std::vector<string> const getLabelList(string const &) const;
33         ///
34         void gotoRef(string const &);
35         ///
36         void gotoBookmark();
37         ///
38         std::vector<string> const getBufferList() const;
39         ///
40         int getBufferNum() const;
41         ///
42         string const getBufferName(int num) const;
43 private:
44         /** disconnect from the inset when the Apply button is pressed.
45          Allows easy insertion of multiple references. */
46         virtual bool disconnectOnApply() { return true; }
47 };
48
49 #endif // CONTROLREF_H