X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxtextclasslist.h;h=3309e541b296266930478db1626b4d85aa8051f8;hb=dd47a9eb1798d583dc84ec1c91c10cecbfa9874a;hp=086567074578932a47d143eaef3fb074859594b9;hpb=dbd7a961fc46bb10c85bdd8c7fb6626477ae63d8;p=lyx.git diff --git a/src/lyxtextclasslist.h b/src/lyxtextclasslist.h index 0865670745..3309e541b2 100644 --- a/src/lyxtextclasslist.h +++ b/src/lyxtextclasslist.h @@ -1,9 +1,9 @@ // -*- C++ -*- /* This file is part of * ====================================================== - * + * * LyX, The Document Processor - * + * * Copyright 1995 Matthias Ettrich * Copyright 1995-2001 The LyX Team. * @@ -12,10 +12,6 @@ #ifndef LYXTEXTCLASSLIST_H #define LYXTEXTCLASSLIST_H -#ifdef __GNUG__ -#pragma interface -#endif - #include "support/types.h" #include @@ -38,31 +34,25 @@ public: /// typedef ClassList::const_iterator const_iterator; /// - const_iterator begin() const { return classlist.begin(); } + const_iterator begin() const { return classlist_.begin(); } /// - const_iterator end() const { return classlist.end(); } + const_iterator end() const { return classlist_.end(); } - /** Gets textclass number from name. - Returns -1 if textclass name does not exist - */ + /// Gets textclass number from name, -1 if textclass name does not exist std::pair const NumberOfClass(string const & textclass) const; /// LyXTextClass const & operator[](lyx::textclass_type textclass) const; - /** Read textclass list. - Returns false if this fails - */ + /// Read textclass list. Returns false if this fails. bool Read(); private: /// - mutable ClassList classlist; - /// - void Add(LyXTextClass const &); + mutable ClassList classlist_; }; -/// +/// extern LyXTextClassList textclasslist; #endif