]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formulabase.h
Fix.
[lyx.git] / src / mathed / formulabase.h
index 6654a8bfeb5c2b5fe9e6ba7e967e54023116b89c..49d48a4bcdb0d94ece4b5cc961825d79c8509722 100644 (file)
@@ -1,23 +1,18 @@
 // -*- C++ -*-
+
 /*
- *  File:        formulabase.h
- *  Purpose:     Common parts of the math LyX insets
- *  Author:      André Pönitz
- *  Created:     May 2001
- *  Description: Allows the edition of math paragraphs inside Lyx.
+ * Common parts of the math LyX insets
+ * \author  André Pönitz
  *
- *  Copyright: 2001, The LyX Project
+ * Full author contact details are available in file CREDITS
  *
- *   You are free to use and modify this code under the terms of
- *   the GNU General Public Licence version 2 or later.
+ * You are free to use and modify this code under the terms of
+ * the GNU General Public Licence version 2 or later.
  */
 
 #ifndef INSET_FORMULABASE_H
 #define INSET_FORMULABASE_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "insets/inset.h"
 #include "frontends/mouse_state.h"
@@ -98,10 +93,10 @@ public:
 
        ///
        virtual bool searchForward(BufferView *, string const &,
-                                  bool = true, bool = false);
+                                  bool = true, bool = false);
        ///
        virtual bool searchBackward(BufferView *, string const &,
-                                   bool = true, bool = false);
+                                   bool = true, bool = false);
        ///
        virtual bool isTextInset() const { return true; }
        ///
@@ -112,13 +107,15 @@ public:
        virtual EDITABLE editable() const { return HIGHLY_EDITABLE; }
        ///
        bool display() const;
+       // return the selection as string
+       string selectionAsString() const;
 
 private:
        /// unimplemented
        void operator=(const InsetFormulaBase &);
        /// common base for handling accents
        void handleAccent(BufferView * bv, string const & arg, string const & name);
-       /// lfun handler 
+       /// lfun handler
        RESULT lfunMousePress(FuncRequest const &);
        ///
        RESULT lfunMouseRelease(FuncRequest const &);
@@ -149,4 +146,7 @@ protected:
 // So do it here.
 void mathDispatch(FuncRequest const &);
 
+///
+void releaseMathCursor(BufferView * bv);
+
 #endif