]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.cpp
Fix GRAPHICS_EDIT of InsetGraphics
[lyx.git] / src / insets / InsetText.cpp
index 1b0435b0a0b3fcf73ba2082043d30152dbe1630d..06105c83e5b426120aa27605841734aaf719c264 100644 (file)
@@ -412,22 +412,6 @@ void InsetText::addPreview(PreviewLoader & loader) const
 }
 
 
-// FIXME: instead of this hack, which only works by chance,
-// cells should have their own insetcell type, which returns CELL_CODE!
-bool InsetText::isTableCell() const
-{
-       // this is only true for tabular cells
-       return !text_.isMainText(buffer()) && lyxCode() == TEXT_CODE;
-}
-
-
-
-bool InsetText::neverIndent() const
-{
-       return isTableCell();
-}
-
-
 ParagraphList const & InsetText::paragraphs() const
 {
        return text_.paragraphs();
@@ -495,6 +479,12 @@ bool InsetText::automaticPopupCompletion() const
 }
 
 
+bool InsetText::showCompletionCursor() const
+{
+       return lyxrc.completion_cursor_text;
+}
+
+
 CompletionList const * InsetText::createCompletionList(Cursor const & cur) const
 {
        return completionSupported(cur) ? text_.createCompletionList(cur) : 0;