mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-23 00:11:49 +00:00
31f6d268e2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6768 a592a061-630c-0410-9148-cb99ea01b6c8
63 lines
1.1 KiB
C++
63 lines
1.1 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file Toolbar.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Lars Gullik Bjønnes
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
#ifndef TOOLBAR_H
|
|
#define TOOLBAR_H
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
class LyXView;
|
|
|
|
|
|
/**
|
|
* 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);
|
|
|
|
///
|
|
~Toolbar();
|
|
|
|
/// update the state of the toolbars
|
|
void update(bool in_math, bool in_table);
|
|
|
|
/// update the layout combox
|
|
void setLayout(string const & layout);
|
|
/**
|
|
* Populate the layout combox - returns whether we did a full
|
|
* update or not
|
|
*/
|
|
bool updateLayoutList(int textclass);
|
|
/// Drop down the layout list
|
|
void openLayoutList();
|
|
/// Erase the layout list
|
|
void clearLayoutList();
|
|
|
|
/// Compaq cxx 6.5 requires this to be public
|
|
struct Pimpl;
|
|
private:
|
|
///
|
|
friend struct Toolbar::Pimpl;
|
|
///
|
|
Pimpl * pimpl_;
|
|
|
|
/**
|
|
* The last textclass layout list in the layout choice selector
|
|
*/
|
|
int last_textclass_;
|
|
};
|
|
#endif
|