]> git.lyx.org Git - lyx.git/blob - src/Floating.h
"Inter-word Space"
[lyx.git] / src / Floating.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1998-2001 The LyX Team.
8  *
9  * ======================================================
10  */
11
12 #ifndef FLOATING_H
13 #define FLOATING_H
14
15 #include "LString.h"
16
17 /** This is a "float layout" object. It contains the parameters for how to
18     handle the different kinds of floats, default ones and user created ones.
19     Objects of this class is stored in a container in FloatList. The different
20     InsetFloat(s) have a pointer/reference through the name of the Floating
21     so that it knows how the different floats should be handled.
22 */
23 class Floating {
24 public:
25         ///
26         Floating();
27         ///
28         Floating(string const & type, string const & placement,
29                  string const & ext, string const & within,
30                  string const & style, string const & name,
31                  string const & listName, bool builtin = false);
32         ///
33         string const & type() const;
34         ///
35         string const & placement() const;
36         ///
37         string const & ext() const;
38         ///
39         string const & within() const;
40         ///
41         string const & style() const;
42         ///
43         string const & name() const;
44         ///
45         string const & listName() const;
46         ///
47         bool builtin() const;
48 private:
49         ///
50         string type_;
51         ///
52         string placement_;
53         ///
54         string ext_;
55         ///
56         string within_;
57         ///
58         string style_;
59         ///
60         string name_;
61         ///
62         string listName_;
63         ///
64         bool builtin_;
65 };
66
67 #endif