lyx_mirror/src/mathed/MathCompletionList.h
Yuriy Skalko d82adc625b Amend efc0877f
Add more `override` specifiers. Replace `throw()` to `noexcept`.
2020-10-05 09:37:15 +02:00

53 lines
978 B
C++

// -*- C++ -*-
/**
* \file MathCompletionList.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Stefan Schimanski
*
* Full author contact details are available in file CREDITS.
*/
#ifndef MATH_COMPLETIONLIST_H
#define MATH_COMPLETIONLIST_H
#include "CompletionList.h"
#include "support/docstring.h"
#include <vector>
namespace lyx {
class MathCompletionList : public CompletionList {
public:
///
explicit MathCompletionList(Cursor const & cur);
///
virtual ~MathCompletionList();
///
bool sorted() const override { return false; }
///
size_t size() const override;
///
docstring const & data(size_t idx) const override;
///
std::string icon(size_t idx) const override;
///
static void addToFavorites(docstring const & completion);
private:
///
static std::vector<docstring> globals;
///
std::vector<docstring> locals;
};
} // namespace lyx
#endif // MATH_COMPLETIONLIST_H