X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextClass.h;h=f3d2197278b4617562ceea27195ef2acd25a94fd;hb=68fe13dfa1ed24891d930b0d9b8b79e217c7f1e4;hp=52074751bd2aeeea5a9c1d8868df8c3be3f1757f;hpb=f1912e1c33cebbd41fdaf76fb7307fa464d030b8;p=lyx.git diff --git a/src/TextClass.h b/src/TextClass.h index 52074751bd..f3d2197278 100644 --- a/src/TextClass.h +++ b/src/TextClass.h @@ -306,6 +306,8 @@ protected: int max_toclevel_; /// Citation formatting information std::map cite_formats_; + /// Citation macros + std::map cite_macros_; private: /////////////////////////////////////////////////////////////////// // helper routines for reading layout files @@ -329,7 +331,7 @@ private: /// void readCharStyle(Lexer &, std::string const &); /// - void readFloat(Lexer &); + bool readFloat(Lexer &); /// void readCiteFormat(Lexer &); }; @@ -429,6 +431,8 @@ public: bool hasTocLevels() const; /// std::string const & getCiteFormat(std::string const & entry_type) const; + /// + std::string const & getCiteMacro(std::string const & macro) const; protected: /// Constructs a DocumentClass based upon a LayoutFile. DocumentClass(LayoutFile const & tc); @@ -476,6 +480,9 @@ private: /// convert page sides option to text 1 or 2 std::ostream & operator<<(std::ostream & os, PageSides p); +/// current format of layout files +extern int const LAYOUT_FORMAT; + } // namespace lyx