]> git.lyx.org Git - lyx.git/blobdiff - src/Author.h
Avoid full metrics computation with Update:FitCursor
[lyx.git] / src / Author.h
index 6915318531802f2eea40536bc50ac0227ef984d9..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,10 @@ public:
        ///
        docstring email() const { return email_; }
        ///
+       docstring initials() const { return initials_; }
+       ///
+       docstring nameAndEmail() const;
+       ///
        int bufferId() const { return buffer_id_; }
        ///
        void setBufferId(int buffer_id) const { buffer_id_ = buffer_id; }
@@ -51,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