1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
2000-03-09 03:36:48 +00:00
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1995-2000 The LyX Team.
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
1999-11-15 12:01:38 +00:00
|
|
|
* ====================================================== */
|
1999-09-27 18:44:28 +00:00
|
|
|
|
1999-10-02 16:21:10 +00:00
|
|
|
#ifndef MENUS_H
|
|
|
|
#define MENUS_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include FORMS_H_LOCATION
|
|
|
|
#include "lyx.h"
|
1999-10-02 16:21:10 +00:00
|
|
|
#include "LString.h"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
class BufferView;
|
|
|
|
class LyXView;
|
1999-10-02 16:21:10 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
///
|
|
|
|
class Menus {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
Menus(LyXView *view, int air);
|
|
|
|
///
|
|
|
|
void showMenus();
|
|
|
|
///
|
|
|
|
void hideMenus();
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
void openByName(string const &menuName);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
static void ShowFileMenu(FL_OBJECT *ob, long);
|
|
|
|
///
|
|
|
|
static void ShowFileMenu2(FL_OBJECT *ob, long);
|
|
|
|
///
|
|
|
|
static void ShowEditMenu(FL_OBJECT *ob, long data);
|
|
|
|
///
|
2000-05-19 16:46:01 +00:00
|
|
|
static void ShowTocMenu(FL_OBJECT *ob, long data);
|
|
|
|
///
|
|
|
|
static void ShowRefsMenu(FL_OBJECT *ob, long data);
|
|
|
|
///
|
1999-09-27 18:44:28 +00:00
|
|
|
static void ShowLayoutMenu(FL_OBJECT *ob, long data);
|
|
|
|
///
|
|
|
|
static void ShowInsertMenu(FL_OBJECT *ob, long data);
|
|
|
|
///
|
|
|
|
static void ShowMathMenu(FL_OBJECT *ob, long);
|
|
|
|
///
|
|
|
|
static void ShowOptionsMenu(FL_OBJECT *ob, long men);
|
|
|
|
///
|
|
|
|
static void ShowBufferMenu(FL_OBJECT *ob, long);
|
|
|
|
///
|
|
|
|
static void ShowHelpMenu(FL_OBJECT *ob, long);
|
1999-10-25 14:18:30 +00:00
|
|
|
private:
|
|
|
|
///
|
|
|
|
void create_menus(int air);
|
|
|
|
///
|
|
|
|
void ScreenOptions();
|
|
|
|
///
|
|
|
|
void showCopyright();
|
|
|
|
///
|
|
|
|
void showLicense();
|
|
|
|
///
|
|
|
|
void MenuDocu(string const & docname);
|
|
|
|
///
|
|
|
|
void handleBufferMenu(int choice);
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
BufferView *currentView();
|
|
|
|
///
|
|
|
|
LyXView *_view;
|
|
|
|
///
|
|
|
|
FL_OBJECT *menu_grp1;
|
|
|
|
///
|
|
|
|
FL_OBJECT *menu_grp2;
|
|
|
|
///
|
|
|
|
FL_OBJECT *menu_file;
|
|
|
|
///
|
|
|
|
FL_OBJECT *menu_file2;
|
|
|
|
///
|
|
|
|
FL_OBJECT *menu_edit;
|
|
|
|
///
|
2000-05-19 16:46:01 +00:00
|
|
|
FL_OBJECT *menu_toc;
|
|
|
|
///
|
|
|
|
FL_OBJECT *menu_refs;
|
|
|
|
///
|
1999-09-27 18:44:28 +00:00
|
|
|
FL_OBJECT *menu_layout;
|
|
|
|
///
|
|
|
|
FL_OBJECT *menu_insert;
|
|
|
|
///
|
|
|
|
FL_OBJECT *menu_math;
|
|
|
|
///
|
|
|
|
FL_OBJECT *menu_options;
|
|
|
|
///
|
|
|
|
FL_OBJECT *menu_options2;
|
|
|
|
///
|
|
|
|
FL_OBJECT *menu_buffer;
|
|
|
|
///
|
|
|
|
FL_OBJECT *menu_help;
|
|
|
|
///
|
|
|
|
FL_OBJECT *menu_help2;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|