mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 21:24:14 +00:00
f7ba7c8e9f
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3806 a592a061-630c-0410-9148-cb99ea01b6c8
73 lines
1.6 KiB
C++
73 lines
1.6 KiB
C++
// -*- C++ -*-
|
|
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
* Copyright 1995 Matthias Ettrich
|
|
* Copyright 1995-2001 The LyX Team.
|
|
*
|
|
* This file is Copyright 1996-2001
|
|
* Lars Gullik Bjønnes
|
|
*
|
|
* ====================================================== */
|
|
|
|
#ifndef TOOLBAR_H
|
|
#define TOOLBAR_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "LString.h"
|
|
|
|
class LyXView;
|
|
class ToolbarDefaults;
|
|
|
|
/** The LyX GUI independent toolbar class
|
|
The GUI interface is implemented in the corresponding Toolbar_pimpl class.
|
|
*/
|
|
class Toolbar {
|
|
public:
|
|
///
|
|
Toolbar(LyXView * o, int x, int y, ToolbarDefaults const &);
|
|
|
|
///
|
|
~Toolbar();
|
|
|
|
/// (re)sets the toolbar
|
|
void set(bool doingmain = false);
|
|
|
|
/** this is to be the entry point to the toolbar
|
|
frame, where you can change the toolbar realtime. */
|
|
void edit();
|
|
/// add a new button to the toolbar.
|
|
void add(int , bool doclean = true);
|
|
/// name of func instead of kb_action
|
|
void add(string const & , bool doclean = true);
|
|
/// invokes the n'th icon in the toolbar
|
|
void push(int);
|
|
/// activates the toolbar
|
|
void activate();
|
|
/// deactivates the toolbar
|
|
void deactivate();
|
|
/// update the state of the icons
|
|
void update();
|
|
|
|
/// update the layout combox
|
|
void setLayout(string const & layout);
|
|
/// Populate the layout combox; re-do everything if force is true.
|
|
void updateLayoutList(bool force);
|
|
/// Drop down the layout list
|
|
void openLayoutList();
|
|
/// Erase the layout list
|
|
void clearLayoutList();
|
|
|
|
private:
|
|
struct Pimpl;
|
|
///
|
|
friend struct Toolbar::Pimpl;
|
|
///
|
|
Pimpl * pimpl_;
|
|
};
|
|
#endif
|