]> git.lyx.org Git - lyx.git/blob - src/frontends/GUIRunTime.h
We don't currently use fork anywhere (or if we do it's by mistake!), so
[lyx.git] / src / frontends / GUIRunTime.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  * 
5  *           LyX, The Document Processor
6  *
7  *           Copyright 2000-2001 The LyX Team.
8  *
9  * ====================================================== */
10
11 #ifndef GUIRUNTIME_H
12 #define GUIRUNTIME_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include <X11/Xlib.h>
19 class LyXView;
20
21 /** The LyX GUI independent guiruntime class
22     The GUI interface is implemented in the corresponding
23     frontends GUIRunTime.C file.
24 */
25 class GUIRunTime {
26 public:
27         /// initialise the toolkit 
28         static
29         int initApplication(int & argc, char * argv[]);
30         /// process pending events
31         static
32         void processEvents();
33         /// enter the permanent event loop until "finished" becomes false
34         static
35         void runTime();
36         /// This is run first in the LyXGUI constructor.
37         static
38         void setDefaults();
39         ///
40         static
41         LyXView * createMainView(int w, int h);
42
43 /* the following entries are X11 specific and should eventually go away */
44         /// The display on which LyX is running
45         static
46         Display * x11Display();
47         /// The screen on which LyX is running
48         static
49         int x11Screen();
50         /// The current colormap
51         static
52         Colormap x11Colormap();
53         /// The current visual depth
54         static
55         int x11VisualDepth();
56         /// the server's DPI estimate
57         static
58         float getScreenDPI(); 
59 };
60 #endif