3 * \file MathCompletionList.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Stefan Schimanski
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_COMPLETIONLIST_H
13 #define MATH_COMPLETIONLIST_H
15 #include "CompletionList.h"
17 #include "support/docstring.h"
24 class MathCompletionList : public CompletionList {
27 explicit MathCompletionList(Cursor const & cur);
29 virtual ~MathCompletionList();
32 bool sorted() const override { return false; }
34 size_t size() const override;
36 docstring const & data(size_t idx) const override;
38 std::string icon(size_t idx) const override;
41 static void addToFavorites(docstring const & completion);
45 static std::vector<docstring> globals;
47 std::vector<docstring> locals;
52 #endif // MATH_COMPLETIONLIST_H