mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23222 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
477366d8ee
commit
bd7cd85d04
@ -66,7 +66,8 @@ namespace lyx {
|
|||||||
using graphics::PreviewLoader;
|
using graphics::PreviewLoader;
|
||||||
|
|
||||||
|
|
||||||
class TextCompletionList : public Inset::CompletionList {
|
class TextCompletionList : public Inset::CompletionList
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
TextCompletionList(Cursor const & cur)
|
TextCompletionList(Cursor const & cur)
|
||||||
@ -77,11 +78,13 @@ public:
|
|||||||
///
|
///
|
||||||
virtual bool sorted() const { return true; }
|
virtual bool sorted() const { return true; }
|
||||||
///
|
///
|
||||||
virtual size_t size() const {
|
virtual size_t size() const
|
||||||
|
{
|
||||||
return buf_.registeredWords().size();
|
return buf_.registeredWords().size();
|
||||||
}
|
}
|
||||||
///
|
///
|
||||||
virtual docstring data(size_t idx) const {
|
virtual docstring data(size_t idx) const
|
||||||
|
{
|
||||||
return buf_.registeredWords().word(idx);
|
return buf_.registeredWords().word(idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -499,8 +502,8 @@ bool InsetText::automaticPopupCompletion() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Inset::CompletionList const
|
Inset::CompletionList const * InsetText::createCompletionList(
|
||||||
* InsetText::createCompletionList(Cursor const & cur) const
|
Cursor const & cur) const
|
||||||
{
|
{
|
||||||
if (!completionSupported(cur))
|
if (!completionSupported(cur))
|
||||||
return 0;
|
return 0;
|
||||||
@ -509,7 +512,8 @@ Inset::CompletionList const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
docstring InsetText::previousWord(Buffer const & buffer, CursorSlice const & sl) const
|
docstring InsetText::previousWord(Buffer const & buffer,
|
||||||
|
CursorSlice const & sl) const
|
||||||
{
|
{
|
||||||
CursorSlice from = sl;
|
CursorSlice from = sl;
|
||||||
CursorSlice to = sl;
|
CursorSlice to = sl;
|
||||||
|
Loading…
Reference in New Issue
Block a user