2000-07-24 13:53:19 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-09-05 14:10:50 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file Toolbar.h
|
2002-09-05 15:14:23 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 21:21:28 +00:00
|
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
2000-07-24 13:53:19 +00:00
|
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
|
*/
|
2000-07-24 13:53:19 +00:00
|
|
|
|
|
|
|
|
|
#ifndef TOOLBAR_H
|
|
|
|
|
#define TOOLBAR_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
|
|
class LyXView;
|
|
|
|
|
class ToolbarDefaults;
|
2002-08-12 14:28:43 +00:00
|
|
|
|
|
2000-07-24 13:53:19 +00:00
|
|
|
|
|
|
|
|
|
/** The LyX GUI independent toolbar class
|
2002-03-21 21:21:28 +00:00
|
|
|
|
The GUI interface is implemented in the corresponding Toolbar_pimpl class.
|
2000-07-24 13:53:19 +00:00
|
|
|
|
*/
|
|
|
|
|
class Toolbar {
|
|
|
|
|
public:
|
|
|
|
|
///
|
2002-08-12 14:28:43 +00:00
|
|
|
|
Toolbar(LyXView * o, int x, int y, ToolbarDefaults const &);
|
2000-07-24 13:53:19 +00:00
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
~Toolbar();
|
2002-03-21 21:21:28 +00:00
|
|
|
|
|
2000-07-24 13:53:19 +00:00
|
|
|
|
/// update the state of the icons
|
|
|
|
|
void update();
|
|
|
|
|
|
|
|
|
|
/// update the layout combox
|
2002-03-02 16:39:54 +00:00
|
|
|
|
void setLayout(string const & layout);
|
2002-07-02 19:23:10 +00:00
|
|
|
|
/**
|
|
|
|
|
* Populate the layout combox - returns whether we did a full
|
2002-06-18 15:44:30 +00:00
|
|
|
|
* update or not
|
|
|
|
|
*/
|
|
|
|
|
bool updateLayoutList(int textclass);
|
2000-07-24 13:53:19 +00:00
|
|
|
|
/// Drop down the layout list
|
|
|
|
|
void openLayoutList();
|
|
|
|
|
/// Erase the layout list
|
|
|
|
|
void clearLayoutList();
|
|
|
|
|
|
2002-06-10 07:57:39 +00:00
|
|
|
|
/// Compaq cxx 6.5 requires this to be public
|
2000-07-24 13:53:19 +00:00
|
|
|
|
struct Pimpl;
|
2002-06-10 07:57:39 +00:00
|
|
|
|
private:
|
2000-08-07 20:58:24 +00:00
|
|
|
|
///
|
2000-07-24 13:53:19 +00:00
|
|
|
|
friend struct Toolbar::Pimpl;
|
2000-08-07 20:58:24 +00:00
|
|
|
|
///
|
2000-07-24 13:53:19 +00:00
|
|
|
|
Pimpl * pimpl_;
|
2002-06-18 15:44:30 +00:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The last textclass layout list in the layout choice selector
|
|
|
|
|
*/
|
|
|
|
|
int last_textclass_;
|
2000-07-24 13:53:19 +00:00
|
|
|
|
};
|
|
|
|
|
#endif
|