#ifndef TOOLBAR_BACKEND_H
#define TOOLBAR_BACKEND_H
-#include "funcrequest.h"
+#include "FuncRequest.h"
#include <vector>
namespace lyx {
-class LyXLex;
+class Lexer;
class ToolbarItem {
public:
LAYOUTS,
/// a special widget to insert tabulars
TABLEINSERT,
- ///
+ ///
POPUPMENU,
///
ICONPALETTE
Flags flags;
/// read a toolbar from the file
- ToolbarInfo & read(LyXLex &);
+ ToolbarInfo & read(Lexer &);
private:
/// add toolbar item
Toolbars::iterator end() { return usedtoolbars.end(); }
/// read toolbars from the file
- void readToolbars(LyXLex &);
+ void readToolbars(Lexer &);
/// read ui toolbar settings
- void readToolbarSettings(LyXLex &);
+ void readToolbarSettings(Lexer &);
+
///
- ToolbarInfo const & getToolbar(std::string const & name) const;
+ ToolbarInfo const * getDefinedToolbarInfo(std::string const & name) const;
///
- ToolbarInfo & getToolbar(std::string const & name);
+ ToolbarInfo * getUsedToolbarInfo(std::string const & name);
private:
- /// all the toolbars
+ /// all the defined toolbars
Toolbars toolbars;
/// toolbars listed