lyx_mirror/src/CompletionList.h
André Pönitz f2c9b56fb4 cosmetics/#include cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23747 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 00:22:54 +00:00

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