X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFloating.h;h=50c94af53ad684763db02a400d2a36e9bea61f27;hb=1a74f3d1035cfbdb5e21947448e5af2b9ec152f0;hp=3daaeec15b16c6fc52c9360c558238071f01c47e;hpb=e978fa42e38be22e9312be963ba6512fcd4b45ef;p=lyx.git diff --git a/src/Floating.h b/src/Floating.h index 3daaeec15b..50c94af53a 100644 --- a/src/Floating.h +++ b/src/Floating.h @@ -4,7 +4,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 * * Full author contact details are available in file CREDITS. */ @@ -14,6 +14,9 @@ #include + +namespace lyx { + /** This is a "float layout" object. It contains the parameters for how to * handle the different kinds of floats, default ones and user created ones. * Objects of this class is stored in a container in FloatList. The different @@ -28,7 +31,9 @@ public: Floating(std::string const & type, std::string const & placement, std::string const & ext, std::string const & within, std::string const & style, std::string const & name, - std::string const & listName, bool builtin = false); + std::string const & listName, std::string const & htmlType, + std::string const & htmlClass, std::string const & htmlStyle, + bool builtin = false); /// std::string const & type() const; /// @@ -43,6 +48,12 @@ public: std::string const & name() const; /// std::string const & listName() const; + /// style information, for preamble + std::string const & htmlStyle() const; + /// class, for css, defaults to "float-" + type() + std::string const & htmlClass() const; + /// tag type, defaults to "div" + std::string const & htmlTag() const; /// bool builtin() const; private: @@ -60,8 +71,17 @@ private: std::string name_; /// std::string listName_; + /// + mutable std::string html_tag_; + /// + mutable std::string html_class_; + /// + std::string html_style_; /// bool builtin_; }; + +} // namespace lyx + #endif