]> git.lyx.org Git - lyx.git/blobdiff - src/Floating.cpp
Account for old versions of Pygments
[lyx.git] / src / Floating.cpp
index 7c68189fc265ed52158b41f11052c1086d737ef0..72b81190a126f71c2bd3d2e3419d9d5bb4ca676b 100644 (file)
@@ -30,11 +30,13 @@ Floating::Floating(string const & type, string const & placement,
                   string const & listName, std::string const & listCmd,
                   string const & refPrefix, std::string const & allowedplacement,
                   string const & htmlTag, string const & htmlAttrib,
-                  string const & htmlStyle, bool usesfloat, bool ispredefined)
+                  docstring const & htmlStyle, bool usesfloat, bool ispredefined,
+                  bool allowswide, bool allowssideways)
        : floattype_(type), placement_(placement), ext_(ext), within_(within),
          style_(style), name_(name), listname_(listName), listcommand_(listCmd),
          refprefix_(refPrefix), allowedplacement_(allowedplacement),
          usesfloatpkg_(usesfloat), ispredefined_(ispredefined),
+         allowswide_(allowswide), allowssideways_(allowssideways),
          html_tag_(htmlTag), html_attrib_(htmlAttrib), html_style_(htmlStyle)
 {}
 
@@ -42,7 +44,7 @@ Floating::Floating(string const & type, string const & placement,
 string const & Floating::htmlAttrib() const
 {
        if (html_attrib_.empty())
-               html_attrib_ = "class='float " + defaultCSSClass() + "'";
+               html_attrib_ = "class='" + defaultCSSClass() + "'";
        return html_attrib_;
 }