]> git.lyx.org Git - lyx.git/blob - src/menus.h
Small fix.
[lyx.git] / src / menus.h
1 // -*- C++ -*-
2 /* This file is part of
3 * ======================================================
4
5 *           LyX, The Document Processor
6 *        
7 *           Copyright 1995 Matthias Ettrich
8 *           Copyright 1995-2000 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 #include "LString.h"
22
23 class BufferView;
24 class LyXView;
25
26
27 ///
28 class Menus {
29 public:
30         ///
31         Menus(LyXView *view, int air);
32         ///
33         void showMenus();
34         ///
35         void hideMenus();
36         ///
37         void openByName(string const &menuName);
38         ///
39         static void ShowFileMenu(FL_OBJECT *ob, long);
40         ///
41         static void ShowFileMenu2(FL_OBJECT *ob, long);
42         ///
43         static void ShowEditMenu(FL_OBJECT *ob, long data);
44         ///
45         static void ShowTocMenu(FL_OBJECT *ob, long data);
46         ///
47         static void ShowRefsMenu(FL_OBJECT *ob, long data);
48         ///
49         static void ShowLayoutMenu(FL_OBJECT *ob, long data);
50         ///
51         static void ShowInsertMenu(FL_OBJECT *ob, long data);
52         ///
53         static void ShowMathMenu(FL_OBJECT *ob, long);
54         ///
55         static void ShowOptionsMenu(FL_OBJECT *ob, long men);
56         ///
57         static void ShowBufferMenu(FL_OBJECT *ob, long);
58         ///
59         static void ShowHelpMenu(FL_OBJECT *ob, long);
60 private:
61         ///
62         void create_menus(int air);
63         ///
64         void ScreenOptions();
65         ///
66         void showCopyright();
67         ///
68         void showLicense();
69         ///
70         void MenuDocu(string const & docname);
71         ///
72         void handleBufferMenu(int choice);
73         
74         /// 
75         BufferView *currentView();
76         ///
77         LyXView *_view;
78         ///
79         FL_OBJECT *menu_grp1;
80         ///
81         FL_OBJECT *menu_grp2;
82         ///
83         FL_OBJECT *menu_file;
84         ///
85         FL_OBJECT *menu_file2;
86         ///
87         FL_OBJECT *menu_edit;
88         ///
89         FL_OBJECT *menu_toc;
90         ///
91         FL_OBJECT *menu_refs;
92         ///
93         FL_OBJECT *menu_layout;
94         ///
95         FL_OBJECT *menu_insert;
96         ///
97         FL_OBJECT *menu_math;
98         ///
99         FL_OBJECT *menu_options;
100         ///
101         FL_OBJECT *menu_options2;
102         ///
103         FL_OBJECT *menu_buffer;
104         ///
105         FL_OBJECT *menu_help;
106         ///
107         FL_OBJECT *menu_help2;
108 };
109
110 #endif