]> git.lyx.org Git - features.git/blobdiff - src/TextClass.h
Restore Andre's TextClassIndex, but now in the form of BaseClassIndex. It seems worth...
[features.git] / src / TextClass.h
index 07b4f16893f49ce1c934c8d9953526f0bad8f080..f7f4d1b11c5c7dd398c0142ed3885f3a283e08f2 100644 (file)
@@ -38,6 +38,21 @@ class FloatList;
 /// List of inset layouts
 typedef std::map<docstring, InsetLayout> InsetLayouts;
 
+/// Index into global list of base classes (i.e., *.layout).
+/// Basically a 'strong typedef'.
+class BaseClassIndex {
+public:
+       ///
+       typedef size_t   base_type;
+       ///
+       BaseClassIndex(base_type t) { data_ = t; }
+       ///
+       operator base_type() const { return data_; }
+       ///
+private:
+       base_type data_;
+};
+
 /// Stores the layout specification of a LyX document class.
 class TextClass {
 public: