X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFloating.h;h=d10694f92be29b88400e7970cbc3fff7a0ffb3db;hb=eeaea7cbbb98141c98c189751907a8fc0b10f7d4;hp=a5f1ddcd9c5e6e0559db1f4f821f6f49b6ff4f06;hpb=51aebc9327345f6ea065035f489dbfec1568279f;p=lyx.git diff --git a/src/Floating.h b/src/Floating.h index a5f1ddcd9c..d10694f92b 100644 --- a/src/Floating.h +++ b/src/Floating.h @@ -37,8 +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, 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_; } /// @@ -64,6 +65,8 @@ public: std::string const & allowedPlacement() const { return allowedplacement_; } /// bool usesFloatPkg() const { return usesfloatpkg_; } + /// allowed placement options + std::string const & required() const { return required_; } /// bool isPredefined() const { return ispredefined_; } /// @@ -76,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; @@ -100,6 +109,8 @@ private: /// std::string allowedplacement_; /// + std::string required_; + /// bool usesfloatpkg_; /// bool ispredefined_; @@ -115,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_; };