]> git.lyx.org Git - lyx.git/blob - src/LayoutModuleList.h
compilation warning: scale is unsigned
[lyx.git] / src / LayoutModuleList.h
1 // -*- C++ -*-
2 /**
3  * \file ModuleList.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Richard Heck
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef LAYOUTMODULELIST_H
13 #define LAYOUTMODULELIST_H
14
15 #include <list>
16 #include <string>
17
18 namespace lyx {
19
20 class LayoutModuleList {
21 public:
22         ///
23         typedef std::list<std::string>::const_iterator const_iterator;
24         ///
25         typedef std::list<std::string>::iterator iterator;
26         ///
27         iterator begin() { return lml_.begin(); }
28         ///
29         iterator end() { return lml_.end(); }
30         ///
31         const_iterator begin() const { return lml_.begin(); }
32         ///
33         const_iterator end() const { return lml_.end(); }
34         ///
35         void clear() { lml_.clear(); }
36         ///
37         bool empty() const { return lml_.empty(); }
38         ///
39         iterator erase(iterator pos) { return lml_.erase(pos); }
40         ///
41         iterator insert(iterator pos, std::string const & str)
42                 { return lml_.insert(pos, str); }
43         ///
44         void push_back(std::string const & str) { lml_.push_back(str); }
45         /// 
46         size_t size() const { return lml_.size(); }
47         /// This is needed in GuiDocument. It seems better than an
48         /// implicit conversion.
49         std::list<std::string> const & list() const { return lml_; }
50 private:
51         std::list<std::string> lml_;
52 };
53 }
54 #endif