using graphics::PreviewLoader;
-class TextCompletionList : public Inset::CompletionList {
+class TextCompletionList : public Inset::CompletionList
+{
public:
///
TextCompletionList(Cursor const & cur)
///
virtual bool sorted() const { return true; }
///
- virtual size_t size() const {
+ virtual size_t size() const
+ {
return buf_.registeredWords().size();
}
///
- virtual docstring data(size_t idx) const {
+ virtual docstring data(size_t idx) const
+ {
return buf_.registeredWords().word(idx);
}
}
-Inset::CompletionList const
-* InsetText::createCompletionList(Cursor const & cur) const
+Inset::CompletionList const * InsetText::createCompletionList(
+ Cursor const & cur) const
{
if (!completionSupported(cur))
return 0;
}
-docstring InsetText::previousWord(Buffer const & buffer, CursorSlice const & sl) const
+docstring InsetText::previousWord(Buffer const & buffer,
+ CursorSlice const & sl) const
{
CursorSlice from = sl;
CursorSlice to = sl;
bool InsetText::insertCompletion(Cursor & cur, docstring const & s,
- bool /*finished*/)
+ bool /*finished*/)
{
if (!completionSupported(cur))
return false;
void InsetText::completionPosAndDim(Cursor const & cur, int & x, int & y,
- Dimension & dim) const
+ Dimension & dim) const
{
Cursor const & bvcur = cur.bv().cursor();