]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/GUIRunTime.h
removed most uses of toupper and friends, removed <config.h> from headers and added...
[lyx.git] / src / frontends / GUIRunTime.h
index 7b4a8e594d314aa4c766b36b7576ba569ebafebe..5bfc5c57cbded9e664f023b34999acb8c66b875a 100644 (file)
@@ -4,7 +4,7 @@
  * 
  *           LyX, The Document Processor
  *
- *           Copyright 2000 The LyX Team.
+ *           Copyright 2000-2001 The LyX Team.
  *
  * ====================================================== */
 
@@ -15,6 +15,7 @@
 #pragma interface
 #endif
 
+#include <X11/Xlib.h>
 class LyXView;
 
 /** The LyX GUI independent guiruntime class
@@ -23,16 +24,37 @@ class LyXView;
 */
 class GUIRunTime {
 public:
+       /// initialise the toolkit 
        static
-       int initApplication(int argc, char * argv[]);
-       ///
+       int initApplication(int argc, char * argv[]);
+       /// process pending events
        static
        void processEvents();
-       ///
+       /// enter the permanent event loop until "finished" becomes false
        static
        void runTime();
        /// This is run first in the LyXGUI constructor.
        static
        void setDefaults();
+       ///
+       static
+       LyXView * createMainView(int w, int h);
+
+/* the following entries are X11 specific and should eventually go away */
+       /// The display on which LyX is running
+       static
+       Display * x11Display();
+       /// The screen on which LyX is running
+       static
+       int x11Screen();
+       /// The current colormap
+       static
+       Colormap x11Colormap();
+       /// The current visual depth
+       static
+       int x11VisualDepth();
+       /// the server's DPI estimate
+       static
+       float getScreenDPI(); 
 };
 #endif