2000-06-28 13:35:52 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1998 The LyX Team.
|
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef InsetFloat_H
|
|
|
|
#define InsetFloat_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "insetcollapsable.h"
|
|
|
|
|
|
|
|
class Painter;
|
|
|
|
|
|
|
|
/** The float inset
|
|
|
|
|
|
|
|
*/
|
|
|
|
class InsetFloat : public InsetCollapsable {
|
|
|
|
public:
|
|
|
|
///
|
2000-07-15 23:51:46 +00:00
|
|
|
InsetFloat(string const &);
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
2000-06-28 14:55:57 +00:00
|
|
|
void Write(Buffer const * buf, std::ostream & os) const;
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
|
|
|
void Read(Buffer const * buf, LyXLex & lex);
|
|
|
|
///
|
|
|
|
void Validate(LaTeXFeatures & features) const;
|
|
|
|
///
|
2000-10-10 11:50:43 +00:00
|
|
|
Inset * Clone(Buffer const &) const;
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
|
|
|
Inset::Code LyxCode() const { return Inset::FLOAT_CODE; }
|
|
|
|
///
|
|
|
|
int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
|
|
|
|
///
|
2000-09-14 17:53:12 +00:00
|
|
|
string const EditMessage() const;
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
|
|
|
bool InsertInsetAllowed(Inset * inset) const;
|
|
|
|
///
|
|
|
|
void InsetButtonRelease(BufferView * bv, int x, int y, int button);
|
2000-07-15 23:51:46 +00:00
|
|
|
///
|
2000-07-18 17:45:27 +00:00
|
|
|
string const & type() const;
|
|
|
|
///
|
2000-07-15 23:51:46 +00:00
|
|
|
void wide(bool w);
|
|
|
|
///
|
|
|
|
bool wide() const;
|
2000-06-28 13:35:52 +00:00
|
|
|
private:
|
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
string floatType_;
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
string floatPlacement_;
|
2000-07-15 23:51:46 +00:00
|
|
|
///
|
|
|
|
bool wide_;
|
2000-06-28 13:35:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|