]> git.lyx.org Git - lyx.git/blob - src/frontends/GUIRunTime.h
change some __GNUG_ to __GNUG__
[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         /** Called bu the graphics cache to connect the approriate frontend
43          *  image loading routines to the LyX kernel.
44          */
45         static void initialiseGraphics();
46
47 /* the following entries are X11 specific and should eventually go away */
48         /// The display on which LyX is running
49         static
50         Display * x11Display();
51         /// The screen on which LyX is running
52         static
53         int x11Screen();
54         /// The current colormap
55         static
56         Colormap x11Colormap();
57         /// The current visual depth
58         static
59         int x11VisualDepth();
60         /// the server's DPI estimate
61         static
62         float getScreenDPI();
63 };
64 #endif