]> git.lyx.org Git - lyx.git/blobdiff - src/Author.h
Try even harder to obtain an instant preview
[lyx.git] / src / Author.h
index afc39576918b19212754dfe4d10c896527dced99..f798b041b2df5e4b00e6eb62d8e794ae7e0357a3 100644 (file)
@@ -22,7 +22,7 @@ namespace lyx {
 class Author {
 public:
        ///
-       Author() {}
+       Author() : used_(false), buffer_id_(0) {};
        ///
        Author(docstring const & name, docstring const & email);
        ///
@@ -30,7 +30,7 @@ public:
        ///
        docstring email() const { return email_; }
        ///
-       int buffer_id() const { return buffer_id_; }
+       int bufferId() const { return buffer_id_; }
        ///
        void setBufferId(int buffer_id) const { buffer_id_ = buffer_id; }
        ///
@@ -39,6 +39,8 @@ public:
        bool used() const { return used_; }
        ///
        friend std::istream & operator>>(std::istream & os, Author & a);
+       ///
+       friend std::ostream & operator<<(std::ostream & os, Author const & a);
 
 private:
        /// The author's name
@@ -65,10 +67,10 @@ public:
        ///
        Author const & get(int id) const;
        ///
-       typedef std::vector<Author> Authors;
-       ///
        void sort();
        ///
+       typedef std::vector<Author> Authors;
+       ///
        Authors::const_iterator begin() const;
        ///
        Authors::const_iterator end() const;