]> git.lyx.org Git - lyx.git/blobdiff - src/Floating.h
DocBook: add a layout tag to tell whether an item is the abstract or not.
[lyx.git] / src / Floating.h
index e4c9e130f9da6e16227b89b97afe8b49250d1b20..d10694f92be29b88400e7970cbc3fff7a0ffb3db 100644 (file)
@@ -37,9 +37,9 @@ public:
                 std::string const & listName, std::string const & listCmd,
                 std::string const & refPrefix, std::string const & allowedplacement,
                 std::string const & htmlType, std::string const & htmlClass,
-                docstring const & htmlStyle, std::string const & requires,
-                bool usesfloat, bool isprefined,
-                bool allowswide, bool allowssideways);
+                docstring const & htmlStyle, std::string const & docbookTag,
+                std::string const & docbookAttr, std::string const & required,
+                bool usesfloat, bool isprefined, bool allowswide, bool allowssideways);
        ///
        std::string const & floattype() const { return floattype_; }
        ///
@@ -66,7 +66,7 @@ public:
        ///
        bool usesFloatPkg() const { return usesfloatpkg_; }
        /// allowed placement options
-       std::string const & requires() const { return requires_; }
+       std::string const & required() const { return required_; }
        ///
        bool isPredefined() const { return ispredefined_; }
        ///
@@ -79,6 +79,12 @@ public:
        std::string const & htmlAttrib() const;
        /// tag type, defaults to "div"
        std::string const & htmlTag() const;
+       ///
+       std::string const & docbookTag(bool hasTitle = false) const;
+       ///
+       std::string const & docbookAttr() const;
+       ///
+       std::string const & docbookCaption() const;
 private:
        ///
        std::string defaultCSSClass() const;
@@ -103,7 +109,7 @@ private:
        ///
        std::string allowedplacement_;
        ///
-       std::string requires_;
+       std::string required_;
        ///
        bool usesfloatpkg_;
        ///
@@ -120,6 +126,12 @@ private:
        mutable std::string defaultcssclass_;
        ///
        docstring html_style_;
+       /// DocBook tag
+       mutable std::string docbook_tag_;
+       /// attribute (mostly, role)
+       mutable std::string docbook_caption_;
+       /// caption tag (mostly, either caption or title)
+       std::string docbook_attr_;
 };