* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team.
+ * Copyright 1995-2001 The LyX Team.
*
* ====================================================== */
#pragma interface
#endif
-#include "lyxlex.h"
+class LyXLeX;
#include "lyxfont.h"
#include "Spacing.h"
-#include "support/utility.hpp"
+#include <boost/utility.hpp>
/// Reads the style files
extern void LyXSetStyle();
-///
-enum no_good_name_for_this {
- ///
- LYX_ENVIRONMENT_DEFAULT = 97,
+enum layout_default {
///
LYX_LAYOUT_DEFAULT = 99
};
-
// Could this cause confusion that both DUMMY_LAYOUT and LAYOUT_DEFAULT has
// the same value? (Lgb)
///
///
string const & name() const { return name_; }
///
- void name(string const & n) { name_ = n; }
+ void setName(string const & n) { name_ = n; }
///
string const & obsoleted_by() const { return obsoleted_by_; }
///
char labeltype; // add approp. type
///
- char endlabeltype;
+ LYX_END_LABEL_TYPES endlabeltype;
///
LYX_MARGIN_TYPE margintype;
///
bool free_spacing;
+
+ ///
+ bool pass_thru;
+
/** true when the fragile commands in the paragraph need to be
\protect'ed. */
bool needprotect;
///
-class LyXTextClassList : public noncopyable {
+class LyXTextClassList : boost::noncopyable {
public:
///
typedef std::vector<LyXTextClass> ClassList;
LyXTextClass::size_type layout) const;
/// Gets layout number from textclass number and layout name
- std::pair<bool, LyXTextClass::size_type>
+ std::pair<bool, LyXTextClass::size_type> const
NumberOfLayout(size_type textclass,
string const & name) const;
/** Gets textclass number from name.
Returns -1 if textclass name does not exist
*/
- std::pair<bool, size_type>
+ std::pair<bool, size_type> const
NumberOfClass(string const & textclass) const;
///