mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-17 10:07:27 +00:00
f2c9b56fb4
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23747 a592a061-630c-0410-9148-cb99ea01b6c8
37 lines
760 B
C++
37 lines
760 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file CompletionList.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 COMPLETIONLIST_H
|
|
#define COMPLETIONLIST_H
|
|
|
|
#include "support/docstring.h"
|
|
|
|
namespace lyx {
|
|
|
|
class CompletionList {
|
|
public:
|
|
///
|
|
virtual ~CompletionList() {}
|
|
///
|
|
virtual bool sorted() const = 0;
|
|
///
|
|
virtual size_t size() const = 0;
|
|
/// returns the string shown in the gui.
|
|
virtual lyx::docstring const & data(size_t idx) const = 0;
|
|
/// returns the resource string used to load an icon.
|
|
virtual std::string icon(size_t /*idx*/) const { return std::string(); }
|
|
};
|
|
|
|
} // namespace lyx
|
|
|
|
#endif
|
|
|