]> git.lyx.org Git - lyx.git/blob - src/mathed/MathCompletionList.h
Merge branch 'master' of git.lyx.org:lyx
[lyx.git] / src / mathed / MathCompletionList.h
1 // -*- C++ -*-
2 /**
3  * \file MathCompletionList.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Stefan Schimanski
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_COMPLETIONLIST_H
13 #define MATH_COMPLETIONLIST_H
14
15 #include "CompletionList.h"
16
17 #include "support/docstring.h"
18
19 #include <vector>
20
21
22 namespace lyx {
23
24 class MathCompletionList : public CompletionList {
25 public:
26         ///
27         MathCompletionList(Cursor const & cur);
28         ///
29         virtual ~MathCompletionList();
30
31         ///
32         virtual bool sorted() const { return false; }
33         ///
34         virtual size_t size() const;
35         ///
36         virtual docstring const & data(size_t idx) const;
37         ///
38         virtual std::string icon(size_t idx) const;
39
40         ///
41         static void addToFavorites(docstring const & completion);
42
43 private:
44         ///
45         static std::vector<docstring> globals;
46         ///
47         std::vector<docstring> locals;
48 };
49
50 } // namespace lyx
51
52 #endif // MATH_COMPLETIONLIST_H