mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
58 lines
767 B
C
58 lines
767 B
C
|
// -*- C++ -*-
|
||
|
|
||
|
#ifndef TOOLBARDEFAULTS_H
|
||
|
#define TOOLBARDEFAULTS_H
|
||
|
|
||
|
#include <vector>
|
||
|
|
||
|
#include "LString.h"
|
||
|
|
||
|
class LyXLex;
|
||
|
|
||
|
using std::vector;
|
||
|
|
||
|
///
|
||
|
class ToolbarDefaults {
|
||
|
public:
|
||
|
///
|
||
|
typedef vector<int> Defaults;
|
||
|
///
|
||
|
typedef Defaults::iterator iterator;
|
||
|
///
|
||
|
typedef Defaults::const_iterator const_iterator;
|
||
|
///
|
||
|
ToolbarDefaults();
|
||
|
///
|
||
|
iterator begin() {
|
||
|
return defaults.begin();
|
||
|
}
|
||
|
///
|
||
|
const_iterator begin() const {
|
||
|
return defaults.begin();
|
||
|
}
|
||
|
///
|
||
|
iterator end() {
|
||
|
return defaults.end();
|
||
|
}
|
||
|
///
|
||
|
const_iterator end() const {
|
||
|
return defaults.end();
|
||
|
}
|
||
|
///
|
||
|
void read(LyXLex &);
|
||
|
private:
|
||
|
///
|
||
|
void init();
|
||
|
/// This func is just to make it easy for me...
|
||
|
void add(int);
|
||
|
///
|
||
|
void add(string const &);
|
||
|
///
|
||
|
Defaults defaults;
|
||
|
};
|
||
|
|
||
|
#endif
|
||
|
|
||
|
|
||
|
|