]> git.lyx.org Git - lyx.git/blob - src/mathed/MathCompletionList.h
g-brief loads babel internally. So don't load it ourselves.
[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         explicit MathCompletionList(Cursor const & cur);
28         ///
29         virtual ~MathCompletionList();
30
31         ///
32         bool sorted() const override { return false; }
33         ///
34         size_t size() const override;
35         ///
36         docstring const & data(size_t idx) const override;
37         ///
38         std::string icon(size_t idx) const override;
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