2000-03-12 10:36:28 +00:00
|
|
|
// -*- C++ -*-
|
2000-07-24 13:53:19 +00:00
|
|
|
/* This file is part of
|
2002-03-21 17:27:08 +00:00
|
|
|
* ======================================================
|
|
|
|
*
|
2000-07-24 13:53:19 +00:00
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
2001-05-30 13:53:44 +00:00
|
|
|
* Copyright 1995-2001 The LyX Team.
|
2000-07-24 13:53:19 +00:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* ====================================================== */
|
|
|
|
|
2000-03-12 10:36:28 +00:00
|
|
|
|
|
|
|
#ifndef TOOLBARDEFAULTS_H
|
|
|
|
#define TOOLBARDEFAULTS_H
|
|
|
|
|
2000-07-24 13:53:19 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2000-03-12 10:36:28 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
class LyXLex;
|
|
|
|
|
|
|
|
///
|
|
|
|
class ToolbarDefaults {
|
|
|
|
public:
|
2002-03-21 17:27:08 +00:00
|
|
|
/// The special toolbar actions
|
2000-07-24 13:53:19 +00:00
|
|
|
enum ItemType {
|
|
|
|
/// adds space between buttons in the toolbar
|
|
|
|
SEPARATOR=-3,
|
|
|
|
/// a special combox insead of a button
|
|
|
|
LAYOUTS=-2,
|
|
|
|
/// begin a new line of button (not working)
|
|
|
|
NEWLINE=-1
|
|
|
|
};
|
|
|
|
|
2000-03-12 10:36:28 +00:00
|
|
|
///
|
2000-04-04 00:19:15 +00:00
|
|
|
typedef std::vector<int> Defaults;
|
2000-03-12 10:36:28 +00:00
|
|
|
///
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2000-08-07 20:58:24 +00:00
|
|
|
/// The global instance
|
2000-07-24 13:53:19 +00:00
|
|
|
extern ToolbarDefaults toolbardefaults;
|
2000-03-12 10:36:28 +00:00
|
|
|
|
|
|
|
|
2000-07-24 13:53:19 +00:00
|
|
|
#endif
|