]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListingsParams.h
Links between citations and bibliography entries were broken in XHTML
[lyx.git] / src / insets / InsetListingsParams.h
index dc76ed40ad1db4cd34b24582b50c1aa7bf6a37b7..6c2d3f20d63b3f329128af5a14125e6093035980 100644 (file)
 #ifndef INSETLISTINGSPARAMS_H
 #define INSETLISTINGSPARAMS_H
 
-#include <map>
-#include <exception>
-#include "Lexer.h"
 #include "InsetCollapsable.h"
 
+#include <map>
+
 namespace lyx {
 
 class InsetListingsParams {
@@ -37,8 +36,10 @@ public:
        /// valid parameter string
        std::string params(std::string const & sep=",") const;
 
-       /// add key=value to params_
-       void addParam(std::string const & key, std::string const & value);
+       /// add key=value to params_. key_=value will be used if key=value already exists
+       /// unless replace=true.
+       void addParam(std::string const & key, std::string const & value, 
+                       bool replace = false);
 
        /// add a few parameters
        void addParams(std::string const & par);