4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "support/docstring.h"
25 Author() : used_(false), buffer_id_(0) {};
27 Author(docstring const & name, docstring const & email);
29 docstring name() const { return name_; }
31 docstring email() const { return email_; }
33 int bufferId() const { return buffer_id_; }
35 void setBufferId(int buffer_id) const { buffer_id_ = buffer_id; }
37 void setUsed(bool u) const { used_ = u; }
39 bool used() const { return used_; }
41 friend std::istream & operator>>(std::istream & os, Author & a);
43 friend std::ostream & operator<<(std::ostream & os, Author const & a);
48 /// The author's email address
52 /// The id of the author in the lyx-file
53 mutable int buffer_id_;
62 int record(Author const & a);
64 void record(int id, Author const & a);
66 void recordCurrentAuthor(Author const & a);
68 Author const & get(int id) const;
72 typedef std::vector<Author> Authors;
74 Authors::const_iterator begin() const;
76 Authors::const_iterator end() const;
79 std::ostream & operator<<(std::ostream & os, AuthorList const & a);
87 bool operator==(Author const & l, Author const & r);
89 std::ostream & operator<<(std::ostream & os, Author const & a);
91 std::istream & operator>>(std::istream & os, Author & a);