]> git.lyx.org Git - lyx.git/blob - src/Floating.h
acb98f7e8a2c9dcb7ba007b191468288f1c780e9
[lyx.git] / src / Floating.h
1 // -*- C++ -*-
2 /**
3  * \file Floating.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef FLOATING_H
13 #define FLOATING_H
14
15 #include <string>
16
17
18 namespace lyx {
19
20 /** This is a "float layout" object. It contains the parameters for how to
21  *  handle the different kinds of floats, default ones and user created ones.
22  *  Objects of this class is stored in a container in FloatList. The different
23  *  InsetFloat(s) have a pointer/reference through the name of the Floating
24  *  so that it knows how the different floats should be handled.
25  */
26 class Floating {
27 public:
28         ///
29         Floating();
30         ///
31         Floating(std::string const & type, std::string const & placement,
32                  std::string const & ext, std::string const & within,
33                  std::string const & style, std::string const & name,
34                  std::string const & listName, std::string const & htmlType,
35                  std::string const & htmlClass, std::string const & htmlStyle,
36                  bool builtin = false);
37         ///
38         std::string const & type() const;
39         ///
40         std::string const & placement() const;
41         ///
42         std::string const & ext() const;
43         ///
44         std::string const & within() const;
45         ///
46         std::string const & style() const;
47         ///
48         std::string const & name() const;
49         ///
50         std::string const & listName() const;
51         /// style information, for preamble
52         std::string const & htmlStyle() const;
53         /// class, for css, defaults to "float-" + type()
54         std::string const & htmlClass() const;
55         /// tag type, defaults to "div"
56         std::string const & htmlTag() const;
57         ///
58         bool builtin() const;
59 private:
60         ///
61         std::string type_;
62         ///
63         std::string placement_;
64         ///
65         std::string ext_;
66         ///
67         std::string within_;
68         ///
69         std::string style_;
70         ///
71         std::string name_;
72         ///
73         std::string listName_;
74         /// 
75         mutable std::string htmlTag_;
76         /// 
77         mutable std::string htmlClass_;
78         /// 
79         std::string htmlStyle_;
80         ///
81         bool builtin_;
82 };
83
84
85 } // namespace lyx
86
87 #endif