]> git.lyx.org Git - lyx.git/blobdiff - src/support/types.h
Andre's s/getTextClass/textClass/ cleanup.
[lyx.git] / src / support / types.h
index 94acd680ecfc3a626bbe8e2cf8bea8435695e385..206d2818b15672ca82067794227c4cf2fbde2ed4 100644 (file)
@@ -39,6 +39,9 @@ namespace lyx {
        /// 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
@@ -57,6 +60,19 @@ namespace lyx {
                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
 
        ///