]> git.lyx.org Git - features.git/blobdiff - src/mathed/MathMacro.h
* simplify notifyCursorLeaves logic: We now only call it from strategic
[features.git] / src / mathed / MathMacro.h
index a4928f1cd58f7f4ded1d5e47ac319107411c1dc4..8a10a45300f4267226effb6f807f47bc93f75f9e 100644 (file)
@@ -56,7 +56,7 @@ public:
        bool idxLast(Cursor &) const;
 
        ///
-       virtual bool notifyCursorLeaves(Cursor &);
+       virtual bool notifyCursorLeaves(Cursor const & old, Cursor & cur);
        
        /// Remove cell (starting from 0)
        void removeArgument(pos_type pos);
@@ -175,6 +175,24 @@ private:
        std::string requires_;
        /// update macro representation
        bool needsUpdate_;
+
+public:
+       ///
+       bool completionSupported(Cursor const &) const;
+       ///
+       bool inlineCompletionSupported(Cursor const & cur) const;
+       ///
+       bool automaticInlineCompletion() const;
+       ///
+       bool automaticPopupCompletion() const;
+       ///
+       CompletionList const * completionList(Cursor const & cur) const;
+       ///
+       docstring completionPrefix(Cursor const & cur) const;
+       ///
+       bool insertCompletion(Cursor & cur, docstring const & s, bool finished);
+       ///
+       void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const;
 };
 
 } // namespace lyx