]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/biblio.h
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / biblio.h
index 602ad6b2fc8a63f5736323fa4a2c4a56034a309d..6da958af11c714d497dfdf54fde336043ec8a322 100644 (file)
@@ -19,6 +19,7 @@
 class Buffer;
 
 /** Functions of use to citation and bibtex GUI controllers and views */
+namespace lyx {
 namespace biblio {
 
 class CiteEngine_enum;
@@ -49,6 +50,14 @@ enum Direction {
        BACKWARD
 };
 
+
+/** Each citation engine recognizes only a subset of all possible
+ *  citation commands. Given a latex command \c input, this function
+ *  returns an appropriate command, valid for \c engine.
+ */
+std::string const asValidLatexCommand(std::string const & input,
+                                     CiteEngine_enum const & engine);
+
 /// First entry is the bibliography key, second the data
 typedef std::map<std::string, std::string> InfoMap;
 
@@ -94,7 +103,8 @@ searchKeys(InfoMap const & map,
           bool caseSensitive=false);
 
 
-struct CitationStyle {
+class CitationStyle {
+public:
        ///
        CitationStyle(CiteStyle s = CITE, bool f = false, bool force = false)
                : style(s), full(f), forceUCase(force) {}
@@ -148,6 +158,8 @@ std::vector<std::string> const
 getAuthorYearStrings(std::string const & key,
                     InfoMap const & map,
                     std::vector<CiteStyle> const & styles);
+
 } // namespace biblio
+} // namespace lyx
 
 #endif // BIBLIOHELPERS_H