]> git.lyx.org Git - lyx.git/blobdiff - src/Author.h
Fix bug #12772
[lyx.git] / src / Author.h
index 108a701e825300144ede07a05a032d6e36040e8e..798cfd80433499f236c2462645ab42e33cbc705e 100644 (file)
@@ -22,9 +22,10 @@ namespace lyx {
 class Author {
 public:
        ///
-       Author() : used_(false), buffer_id_(0) {};
+       Author() : used_(false), buffer_id_(0) {}
        ///
-       Author(docstring const & name, docstring const & email);
+       Author(docstring const & name, docstring const & email,
+              docstring const & initials);
        /// For when the \author line is missing (#9854)
        Author(int buffer_id);
        ///
@@ -32,6 +33,8 @@ public:
        ///
        docstring email() const { return email_; }
        ///
+       docstring initials() const { return initials_; }
+       ///
        docstring nameAndEmail() const;
        ///
        int bufferId() const { return buffer_id_; }
@@ -53,6 +56,8 @@ private:
        docstring name_;
        /// The author's email address
        docstring email_;
+       /// The author's initials
+       docstring initials_;
        ///
        mutable bool used_;
        /// The id of the author in the lyx-file