]> git.lyx.org Git - lyx.git/blobdiff - src/Floating.cpp
That didn't really work. So revert to old CSS for gray notes.
[lyx.git] / src / Floating.cpp
index 645dcf9307e1bbd82ea9aa1e26968d799dd8a439..f0a4d93ffcdbb879e223136830293b52688fc0a3 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  * \author Jean-Marc Lasgouttes
  * \author Angus Leeming
  *
@@ -27,9 +27,12 @@ Floating::Floating()
 Floating::Floating(string const & type, string const & placement,
                   string const & ext, string const & within,
                   string const & style, string const & name,
-                  string const & listName, bool builtin)
+                  string const & listName, string const & htmlTag,
+                  string const & htmlClass, string const & htmlStyle,
+                  bool builtin)
        : type_(type), placement_(placement), ext_(ext), within_(within),
-         style_(style), name_(name), listName_(listName), builtin_(builtin)
+         style_(style), name_(name), listName_(listName), html_tag_(htmlTag),
+         html_class_(htmlClass), html_style_(htmlStyle), builtin_(builtin)
 {}
 
 
@@ -75,6 +78,28 @@ string const & Floating::listName() const
 }
 
 
+string const & Floating::htmlStyle() const
+{
+       return html_style_;
+}
+
+
+string const & Floating::htmlClass() const
+{
+       if (html_class_.empty())
+               html_class_ = "float-" + type_;
+       return html_class_;
+}
+
+
+string const & Floating::htmlTag() const
+{
+       if (html_tag_.empty())
+               html_tag_ = "div";
+       return html_tag_;
+}
+
+
 bool Floating::builtin() const
 {
        return builtin_;