2000-06-28 13:35:52 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-08-23 00:17:00 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file Floating.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 17:27:08 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
2000-06-28 13:35:52 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2000-06-28 13:35:52 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef FLOATING_H
|
|
|
|
|
#define FLOATING_H
|
|
|
|
|
|
2003-10-06 15:43:21 +00:00
|
|
|
|
#include <string>
|
2000-12-31 05:32:33 +00:00
|
|
|
|
|
2000-07-15 23:51:46 +00:00
|
|
|
|
/** This is a "float layout" object. It contains the parameters for how to
|
2004-10-05 10:11:42 +00:00
|
|
|
|
* 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
|
|
|
|
|
* InsetFloat(s) have a pointer/reference through the name of the Floating
|
|
|
|
|
* so that it knows how the different floats should be handled.
|
|
|
|
|
*/
|
2000-06-28 13:35:52 +00:00
|
|
|
|
class Floating {
|
|
|
|
|
public:
|
|
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
|
Floating();
|
2000-06-28 13:35:52 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
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);
|
2000-06-28 13:35:52 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const & type() const;
|
2000-06-28 13:35:52 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const & placement() const;
|
2000-06-28 13:35:52 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const & ext() const;
|
2001-03-11 03:20:44 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const & within() const;
|
2001-03-11 03:20:44 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const & style() const;
|
2001-03-11 03:20:44 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const & name() const;
|
2000-06-28 13:35:52 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const & listName() const;
|
2002-04-04 14:39:55 +00:00
|
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
|
bool builtin() const;
|
|
|
|
|
private:
|
2000-06-28 13:35:52 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string type_;
|
2000-12-29 12:48:02 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string placement_;
|
2000-12-29 12:48:02 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string ext_;
|
2000-12-29 12:48:02 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string within_;
|
2000-12-29 12:48:02 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string style_;
|
2000-12-29 12:48:02 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string name_;
|
2000-12-29 12:48:02 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string listName_;
|
2002-04-04 14:39:55 +00:00
|
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
|
bool builtin_;
|
2000-06-28 13:35:52 +00:00
|
|
|
|
};
|
2000-12-29 12:48:02 +00:00
|
|
|
|
|
2000-06-28 13:35:52 +00:00
|
|
|
|
#endif
|