lyx_mirror/src/insets/insetfloat.h

63 lines
1.2 KiB
C
Raw Normal View History

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