#include "support/types.h"
-#include "frontends/mouse_state.h"
-
-
namespace lyx {
class Buffer;
class Dimension;
class Color_color;
class ParagraphList;
+class InsetTabular;
/**
///
InsetText();
+ ///
+ Dimension const dimension(BufferView const &) const;
+
/// empty inset to empty par
void clear();
///
///
void write(Buffer const & buf, std::ostream & os) const;
///
- bool metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const;
///
void draw(PainterInfo & pi, int x, int y) const;
- /// draw inset selection
- void drawSelection(PainterInfo & pi, int x, int y) const;
- /// are we inside the area covered by the inset?
- virtual bool covers(BufferView const & bv, int x, int y) const;
///
virtual docstring const editMessage() const;
///
int docbook(Buffer const &, odocstream &, OutputParams const &) const;
///
void validate(LaTeXFeatures & features) const;
- //FIXME The following should be removed when wide is.
- /// Overridden to force an update if the inset was wide().
- virtual bool notifyCursorLeaves(Cursor & cur);
/// return x,y of given position relative to the inset's baseline
void cursorPos(BufferView const & bv, CursorSlice const & sl,
bool neverIndent(Buffer const &) const;
///
InsetText(InsetText const &);
- ///
- virtual bool wide() const { return wide_inset_; }
- ///
- void setWide(bool wide_inset) { wide_inset_ = wide_inset; }
+
// Update the counters of this inset and of its contents
virtual void updateLabels(Buffer const &, ParIterator const &);
+ ///
+ virtual Inset * clone() const;
protected:
///
virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
private:
- ///
- virtual std::auto_ptr<Inset> doClone() const;
///
void init();
int frame_color_;
///
mutable pit_type old_pit;
- ///
- bool wide_inset_;
public:
///
mutable Text text_;
- ///
- mutable Font font_;
- ///
- static int border_;
};
} // namespace lyx