3 * \file CompletionList.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 COMPLETIONLIST_H
13 #define COMPLETIONLIST_H
15 #include "support/docstring.h"
19 class CompletionList
{
22 virtual ~CompletionList() {}
24 virtual bool sorted() const = 0;
26 virtual size_t size() const = 0;
27 /// returns the string shown in the gui.
28 virtual lyx::docstring
const & data(size_t idx
) const = 0;
29 /// returns the resource string used to load an icon.
30 virtual std::string
icon(size_t /*idx*/) const { return std::string(); }