X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxtextclasslist.h;h=94d71bbc06b2ffb80e73d9a01c9b78d49bfd9e55;hb=5091380d6bad1686800e384ed1bbb03836a15aab;hp=086567074578932a47d143eaef3fb074859594b9;hpb=dbd7a961fc46bb10c85bdd8c7fb6626477ae63d8;p=lyx.git diff --git a/src/lyxtextclasslist.h b/src/lyxtextclasslist.h index 0865670745..94d71bbc06 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. * @@ -38,31 +38,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