/// a type for positions used in paragraphs
// needs to be signed for a while to hold the special value -1 that is
- // used there...
+ // used there
typedef ptrdiff_t pos_type;
/// a type for paragraph offsets
- typedef ptrdiff_t paroffset_type;
+ // FIXME: should be unsigned as well.
+ // however, simply changing it breaks a downward loop somewhere...
+ typedef ptrdiff_t pit_type;
/// a type for the nesting depth of a paragraph
typedef size_t depth_type;
/// a type for sizes
typedef size_t size_type;
- /// a type used for numbering text classes
- typedef size_t textclass_type;
-
#else
// These structs wrap simple things to make them distinguishible
base_type data_;
};
- struct textclass_type {
- ///
- typedef size_t base_type;
- ///
- textclass_type(base_type t) { data_ = t; }
- ///
- operator base_type() const { return data_; }
- ///
- private:
- base_type data_;
- };
-
-
#endif
///
NEXT_WORD
};
+ ///
+ enum PageSides {
+ ///
+ OneSide,
+ ///
+ TwoSides
+ };
+
} // namespace lyx
#endif // LYX_TYPES_H