]> git.lyx.org Git - lyx.git/blobdiff - src/support/types.h
Create a grfx::Loader class and so move large chunks of code out of
[lyx.git] / src / support / types.h
index c3c08913eb1e6395eb58488adb41fd0625d9cb8c..013743b376a20dd62471ef4b943eba4a5638f437 100644 (file)
@@ -1,11 +1,18 @@
+/**
+ * \file types.h
+ * Copyright 2002 the LyX Team
+ * Read the file COPYING
+ *
+ * Provide a set of typedefs for commonly used things like sizes and
+ * indices wile trying to stay compatible with types used
+ * by the standard containers.
+ *
+ * \author André Pönitz
+ */
+
 #ifndef LYX_TYPES_H
 #define LYX_TYPES_H
 
-// provide a set of typedefs for commonly used things like sizes and
-// indices whil trying to stay compatible with typse used by the standard
-// containers.
-
-
 // this probably could be improved by using <cstddef>...
 #include <vector>
 
@@ -23,10 +30,6 @@ namespace lyx
        /// a type for sizes
        typedef std::vector<char>::size_type         size_type;
 
-       /// a type used for numbering layouts   within a text class
-       // used to be LyXTextClass::size_type
-       typedef std::vector<char>::size_type         layout_type;
-
        /// a type used for numbering text classes
        // used to be LyXTextClassList::size_type
        typedef std::vector<char>::size_type         textclass_type;
@@ -48,22 +51,6 @@ namespace lyx
                private:
                base_type data_;
        };
-               
-
-       struct layout_type {
-               ///
-               typedef std::vector<char>::size_type  base_type;
-               ///
-               layout_type(base_type t) { data_ = t; }
-               ///
-               operator base_type() const { return data_; }
-               ///
-               void operator++() { ++data_; }
-               ///
-               private:
-               base_type data_;
-       };
-               
 
        struct textclass_type {
                ///
@@ -76,10 +63,10 @@ namespace lyx
                private:
                base_type data_;
        };
-               
+
 
 #endif
 
 }
 
-#endif
+#endif // LYX_TYPES_H