// -*- C++ -*-
/* This file is part of
* ======================================================
- *
+ *
* LyX, The Document Processor
*
* Copyright 2000-2001 The LyX Team.
class LyXCursor;
/** A collapsable text inset
-
+
*/
class InsetCollapsable : public UpdatableInset {
public:
///
void draw(BufferView *, const LyXFont &, int , float &, bool) const;
///
- void update(BufferView *, LyXFont const &, bool =false);
+ void update(BufferView *, LyXFont const &, bool =false);
///
void edit(BufferView *, int, int, unsigned int);
///
bool lockInsetInInset(BufferView *, UpdatableInset *);
///
bool unlockInsetInInset(BufferView *, UpdatableInset *,
- bool lr = false);
+ bool lr = false);
///
bool updateInsetInInset(BufferView *, Inset *);
///
void insetKeyPress(XKeyEvent *);
///
UpdatableInset::RESULT localDispatch(BufferView *, kb_action,
- string const &);
+ string const &);
///
int latex(Buffer const *, std::ostream &,
bool fragile, bool free_spc) const;
UpdatableInset * getFirstLockingInsetOfType(Inset::Code);
///
void setFont(BufferView *, LyXFont const &, bool toggleall = false,
- bool selectall = false);
+ bool selectall = false);
///
void setLabel(string const & l) const;
///
}
///
bool searchForward(BufferView * bv, string const & str,
- bool = true, bool = false);
+ bool = true, bool = false);
bool searchBackward(BufferView * bv, string const & str,
- bool = true, bool = false);
+ bool = true, bool = false);
protected:
///
void draw_collapsed(Painter & pain, int , float &) const;
///
int getMaxTextWidth(Painter & pain, UpdatableInset const *) const;
-
+
///
mutable bool collapsed_;
///