]> git.lyx.org Git - features.git/commitdiff
MathsSymbols doesn't depend on xforms.
authorAngus Leeming <leeming@lyx.org>
Wed, 27 Mar 2002 12:04:55 +0000 (12:04 +0000)
committerAngus Leeming <leeming@lyx.org>
Wed, 27 Mar 2002 12:04:55 +0000 (12:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3852 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormMathsPanel.h
src/frontends/xforms/MathsSymbols.C
src/frontends/xforms/MathsSymbols.h

index 87a75d1fa8255043468cc42280c2b0d250159426..bcc825a94a3cfb988f488747d5dc3f19901b32bb 100644 (file)
@@ -1,3 +1,11 @@
+2002-03-27  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * MathsSymbols.[Ch]: remove #include "bmtable.h" & "FormMathsPanel.h".
+       Move enum MathsCallbackValues from FormMathsPanel.h to MathsSymbols.h.
+       The MathsSymbols are now xforms-independent.
+
+       * FormMathsPanel.h: #include MathsSymbols.h for the enum.
+
 2002-03-26  Angus Leeming  <a.leeming@ic.ac.uk>
 
        * FormPreferences.C (browse): don't use BrowseRelPath here you noodle!
index bface630921466fc536b2521abdd99fe93bfaee5..925e61d21815dbd24aedaf1822e403cab89c4515 100644 (file)
@@ -20,6 +20,7 @@
 #endif
 
 #include "FormBaseDeprecated.h"
+#include "MathsSymbols.h"
 
 class FormMathsBitmap;
 class FormMathsDeco;
@@ -30,34 +31,6 @@ class FormMathsStyle;
 class FormMathsSub;
 struct FD_form_maths_panel;
 
-/// values used by the xforms callbacks
-enum MathsCallbackValues {
-       MM_GREEK,
-       MM_ARROW,
-       MM_BOP,
-       MM_BRELATS,
-       MM_VARSIZE,
-       MM_MISC,
-       MM_FRAC,
-       MM_SQRT,
-       MM_DELIM,
-       MM_SUPER,
-       MM_SUB,
-       MM_SUBSUPER,
-       MM_MATRIX,
-       MM_EQU,
-       MM_DECO,
-       MM_SPACE,
-       MM_STYLE,
-       MM_DOTS,
-       MM_AMS_MISC,
-       MM_AMS_ARROWS,
-       MM_AMS_BREL,
-       MM_AMS_NREL,
-       MM_AMS_OPS,
-       MM_FUNC
-};
-
 /**
  * This class provides an XForms implementation of the maths panel.
  */
index ef2f07d7ac32bfd45e250216b78d85d55f438903..386769b638cdad6f278bfa2833ad31e5fd54eb3b 100644 (file)
@@ -20,7 +20,7 @@
 #include "support/lstrings.h"
 #include "debug.h"
 #include "MathsSymbols.h"
-#include "FormMathsPanel.h"
+#include "GUIRunTime.h"
 
 using std::max;
 using std::endl;
@@ -30,7 +30,6 @@ using std::ostream;
 using std::strstr;
 #endif
 
-
 /* Latex code for those bitmaps */
 
 #include "greek.xbm"
@@ -385,7 +384,7 @@ static char const ** pixmapFromBitmapData(char const * s, int wx, int hx)
                }
                int ww = w / dw;
                int hh = h / dh;
-               XImage * xima = XCreateImage(fl_get_display(), 0, 1, XYBitmap, 0,
+               XImage * xima = XCreateImage(GUIRunTime::x11Display(), 0, 1, XYBitmap, 0,
                                             const_cast<char*>(reinterpret_cast<char const *>(bdata)), w, h, 8, 0);
                xima->byte_order = LSBFirst;
                xima->bitmap_bit_order = LSBFirst;
@@ -394,7 +393,7 @@ static char const ** pixmapFromBitmapData(char const * s, int wx, int hx)
                if (ww > wx) ww = wx;
                if (hh > hx) hh = hx;
                XImage * sbima = XSubImage(xima, x, y, ww, hh);
-               XpmCreateDataFromImage(fl_get_display(), const_cast<char***>(&data), sbima, sbima, 0);
+               XpmCreateDataFromImage(GUIRunTime::x11Display(), const_cast<char***>(&data), sbima, sbima, 0);
 
                // Dirty hack to get blue symbols quickly
                char * sx = const_cast<char*>(strstr(data[2], "FFFFFFFF"));
index afdc6d6e7f173e747592e77e6faccbfee89190a6..c8da60c7f64246504f351735c82a04ebfc4af582 100644 (file)
 #pragma interface
 #endif
 
-#include "bmtable.h"
+/// values used by the xforms callbacks
+enum MathsCallbackValues {
+       MM_GREEK,
+       MM_ARROW,
+       MM_BOP,
+       MM_BRELATS,
+       MM_VARSIZE,
+       MM_MISC,
+       MM_FRAC,
+       MM_SQRT,
+       MM_DELIM,
+       MM_SUPER,
+       MM_SUB,
+       MM_SUBSUPER,
+       MM_MATRIX,
+       MM_EQU,
+       MM_DECO,
+       MM_SPACE,
+       MM_STYLE,
+       MM_DOTS,
+       MM_AMS_MISC,
+       MM_AMS_ARROWS,
+       MM_AMS_BREL,
+       MM_AMS_NREL,
+       MM_AMS_OPS,
+       MM_FUNC
+};
 
 extern char const * function_names[];
 extern int const nr_function_names;