]> git.lyx.org Git - features.git/blobdiff - src/insets/Inset.h
Allow removing words from the personal dictionary, that weren't previously added.
[features.git] / src / insets / Inset.h
index f73f8a60a0ec1f50e73c14b859a3ee5dbe41c686..fd55d69215ae05c947582207369500942a0000b6 100644 (file)
@@ -46,6 +46,7 @@ class InsetArgument;
 class InsetCollapsible;
 class InsetCommand;
 class InsetGraphics;
+class InsetIndex;
 class InsetIterator;
 class InsetLayout;
 class InsetList;
@@ -146,6 +147,8 @@ public:
        virtual InsetCommand const * asInsetCommand() const { return nullptr; }
        /// is this inset based on the InsetArgument class?
        virtual InsetArgument const * asInsetArgument() const { return nullptr; }
+       /// is this inset based on the InsetIndex class?
+       virtual InsetIndex const * asInsetIndex() const { return nullptr; }
        /// is this inset based on the InsetGraphics class?
        virtual InsetGraphics * asInsetGraphics() { return nullptr; }
        /// is this inset based on the InsetGraphics class?
@@ -402,10 +405,10 @@ public:
        /// Returns the completion prefix to filter the suggestions for completion.
        /// This is only called if completionList returned a non-null list.
        virtual docstring completionPrefix(Cursor const &) const;
-       /// Do a completion at the cursor position. Return true on success.
-       /// The completion does not contain the prefix. If finished is true, the
-       /// completion is final. If finished is false, completion might only be
-       /// a partial completion.
+       /// Do a completion at the cursor position. Return true on success. Handles undo.
+       /// The completion does not contain the prefix.
+       /// If finished is true, the completion is final, otherwise it
+       /// might be only partial. (only useful for mathed)
        virtual bool insertCompletion(Cursor & /*cur*/,
                docstring const & /*completion*/, bool /*finished*/)
                { return false; }
@@ -479,7 +482,7 @@ public:
 
        virtual CtObject getCtObject(OutputParams const &) const;
 
-       // properties with respect to row breaking (made of RowFLag enums)
+       // properties with respect to row breaking (made of RowFLag enumerators)
        virtual int rowFlags() const { return Inline; }
        /// indentation before this inset (only needed for displayed hull insets with fleqn option)
        virtual int indent(BufferView const &) const { return 0; }