lyx_mirror/src/insets/insetfloat.h
Jürgen Vigna 71f8ac34a9 Inset patch from Angus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1095 a592a061-630c-0410-9148-cb99ea01b6c8
2000-10-10 11:50:43 +00:00

64 lines
1.2 KiB
C++

// -*- 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:
///
InsetFloat(string const &);
///
void Write(Buffer const * buf, std::ostream & os) const;
///
void Read(Buffer const * buf, LyXLex & lex);
///
void Validate(LaTeXFeatures & features) const;
///
Inset * Clone(Buffer const &) const;
///
Inset::Code LyxCode() const { return Inset::FLOAT_CODE; }
///
int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
///
string const EditMessage() const;
///
bool InsertInsetAllowed(Inset * inset) const;
///
void InsetButtonRelease(BufferView * bv, int x, int y, int button);
///
string const & type() const;
///
void wide(bool w);
///
bool wide() const;
private:
///
string floatType;
///
string floatPlacement;
///
bool wide_;
};
#endif