#include "box.h"
#include "lyxfont.h"
-#include <boost/weak_ptr.hpp>
-
class Painter;
class LyXText;
class Paragraph;
///
int insetInInsetY() const;
///
- RESULT localDispatch(FuncRequest const &);
+ dispatch_result localDispatch(FuncRequest const &);
///
int latex(Buffer const &, std::ostream &,
LatexRunParams const &) const;
void setFont(BufferView *, LyXFont const &, bool toggleall = false,
bool selectall = false);
///
- void setLabel(string const & l) const;
+ void setLabel(std::string const & l) const;
///
void setLabelFont(LyXFont & f);
#if 0
LyXText * getLyXText(BufferView const *, bool const recursive) const;
///
void deleteLyXText(BufferView *, bool recursive=true) const;
- ///
- void getLabelList(std::vector<string> &) const;
+ /// Appends \c list with all labels found within this inset.
+ void getLabelList(Buffer const &, std::vector<std::string> & list) const;
///
int scroll(bool recursive=true) const;
///
bool nextChange(BufferView * bv, lyx::pos_type & length);
///
- bool searchForward(BufferView * bv, string const & str,
+ bool searchForward(BufferView * bv, std::string const & str,
bool = true, bool = false);
- bool searchBackward(BufferView * bv, string const & str,
+ bool searchBackward(BufferView * bv, std::string const & str,
bool = true, bool = false);
///
void addPreview(lyx::graphics::PreviewLoader &) const;
protected:
- ///
- virtual void cache(BufferView *) const;
- ///
- virtual BufferView * view() const;
-
///
void dimension_collapsed(Dimension &) const;
///
mutable int topbaseline;
///
- mutable string label;
+ mutable std::string label;
#if 0
///
bool autocollapse;
bool in_update;
///
mutable bool first_after_edit;
- ///
- mutable boost::weak_ptr<BufferView> view_;
};