]> git.lyx.org Git - lyx.git/blob - src/menus.h
64bbc6c7750e34f64ac1eb2a616675ae85aaa995
[lyx.git] / src / menus.h
1 // -*- C++ -*-
2 /* This file is part of
3 * ======================================================
4
5 *           LyX, The Document Processor
6 *        
7 *           Copyright (C) 1995 1996 Matthias Ettrich
8 *           and the LyX Team.
9 *
10 *======================================================*/
11
12 #ifndef _MENUS_H
13 #define _MENUS_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include FORMS_H_LOCATION
20 #include "lyx.h"
21
22 class BufferView;
23 class LyXView;
24 class LString;
25
26 ///
27 class Menus {
28 public:
29         ///
30         Menus(LyXView *view, int air);
31         ///
32         void showMenus();
33         ///
34         void hideMenus();
35         ///
36         void openByName(LString const &menuName);
37 private:
38         ///
39         void create_menus(int air);
40         ///
41         void ScreenOptions();
42         ///
43         void showCopyright();
44         ///
45         void showLicense();
46         ///
47         void MenuDocu(LString const & docname);
48         ///
49         void handleBufferMenu(int choice);
50         
51         ///
52         static void ShowFileMenu(FL_OBJECT *ob, long);
53         ///
54         static void ShowFileMenu2(FL_OBJECT *ob, long);
55         ///
56         static void ShowEditMenu(FL_OBJECT *ob, long data);
57         ///
58         static void ShowLayoutMenu(FL_OBJECT *ob, long data);
59         ///
60         static void ShowInsertMenu(FL_OBJECT *ob, long data);
61         ///
62         static void ShowMathMenu(FL_OBJECT *ob, long);
63         ///
64         static void ShowOptionsMenu(FL_OBJECT *ob, long men);
65         ///
66         static void ShowBufferMenu(FL_OBJECT *ob, long);
67         ///
68         static void ShowHelpMenu(FL_OBJECT *ob, long);
69         /// 
70         BufferView *currentView();
71         ///
72         LyXView *_view;
73         ///
74         FL_OBJECT *menu_grp1;
75         ///
76         FL_OBJECT *menu_grp2;
77         ///
78         FL_OBJECT *menu_file;
79         ///
80         FL_OBJECT *menu_file2;
81         ///
82         FL_OBJECT *menu_edit;
83         ///
84         FL_OBJECT *menu_layout;
85         ///
86         FL_OBJECT *menu_insert;
87         ///
88         FL_OBJECT *menu_math;
89         ///
90         FL_OBJECT *menu_options;
91         ///
92         FL_OBJECT *menu_options2;
93         ///
94         FL_OBJECT *menu_buffer;
95         ///
96         FL_OBJECT *menu_help;
97         ///
98         FL_OBJECT *menu_help2;
99 };
100
101 #endif