]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNest.h
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / InsetMathNest.h
index d164fe752558e9ed3d5ec131c14a75f3ebc3f434..72d14e6c71a4ca7ff3caa1af1d049a82471b6823 100644 (file)
@@ -23,10 +23,12 @@ public:
        ///
        virtual ~MathCompletionList();
 
+       ///
+       virtual bool sorted() const { return false; }
        ///
        virtual size_t size() const;
        ///
-       virtual docstring data(size_t idx) const;
+       virtual docstring const & data(size_t idx) const;
        ///
        virtual std::string icon(size_t idx) const;
 
@@ -97,7 +99,7 @@ public:
        /// access to the lock
        void lock(bool);
        /// get notification when the cursor leaves this inset
-       bool notifyCursorLeaves(Cursor & cur);
+       bool notifyCursorLeaves(Cursor const & old, Cursor & cur);
 
        /// direct access to the cell.
        /// inlined because shows in profile.
@@ -126,8 +128,7 @@ public:
        /// writes [, name(), and args in []
        void normalize(NormalStream & os) const;
        ///
-       int latex(Buffer const &, odocstream & os,
-                       OutputParams const & runparams) const;
+       int latex(odocstream & os, OutputParams const & runparams) const;
        ///
        bool setMouseHover(bool mouse_hover);
        ///
@@ -142,7 +143,7 @@ public:
        ///
        bool automaticPopupCompletion() const;
        ///
-       CompletionList const * completionList(Cursor const & cur) const;
+       CompletionList const * createCompletionList(Cursor const & cur) const;
        ///
        docstring completionPrefix(Cursor const & cur) const;
        ///