mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
c93e9dcbc5
further cosmetics git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2991 a592a061-630c-0410-9148-cb99ea01b6c8
61 lines
1.1 KiB
C++
61 lines
1.1 KiB
C++
// -*- C++ -*-
|
|
#ifndef MATH_BOXINSET_H
|
|
#define MATH_BOXINSET_H
|
|
|
|
#include "math_diminset.h"
|
|
#include "LString.h"
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
class InsetText;
|
|
class UpdatableInset;
|
|
class BufferView;
|
|
class Buffer;
|
|
class LyXFont;
|
|
|
|
/// Support for \\mbox
|
|
|
|
class MathBoxInset : public MathDimInset {
|
|
public:
|
|
///
|
|
explicit MathBoxInset(string const &);
|
|
///
|
|
MathBoxInset(MathBoxInset const &);
|
|
///
|
|
~MathBoxInset();
|
|
///
|
|
MathInset * clone() const;
|
|
///
|
|
void draw(Painter &, int x, int y) const;
|
|
///
|
|
void write(WriteStream & os) const;
|
|
///
|
|
void normalize(NormalStream &) const;
|
|
///
|
|
void metrics(MathMetricsInfo const &) const;
|
|
/// identifies BoxInsets
|
|
MathBoxInset * asBoxInset() { return this; }
|
|
///
|
|
bool isHyperActive() const { return 1; }
|
|
///
|
|
void edit(BufferView * bv, int x, int y, unsigned int button);
|
|
/// identifies hyperactive insets
|
|
UpdatableInset * asHyperActiveInset() const;
|
|
|
|
private:
|
|
/// unimplemented
|
|
void operator=(MathBoxInset const &);
|
|
|
|
///
|
|
mutable MathMetricsInfo mi_;
|
|
///
|
|
string name_;
|
|
///
|
|
InsetText * text_;
|
|
///
|
|
mutable Buffer * buffer_;
|
|
};
|
|
#endif
|