#ifndef INSETCOLLAPSABLE_H
#define INSETCOLLAPSABLE_H
-
#include "inset.h"
#include "insettext.h"
#include "lyxfont.h"
+#include "funcrequest.h" // for adjustCommand
#include "LColor.h"
#include <boost/weak_ptr.hpp>
///
void update(BufferView *, bool =false);
///
- void edit(BufferView *, int, int, mouse_button::state);
- ///
- void edit(BufferView *, bool front = true);
- ///
EDITABLE editable() const;
///
bool insertInset(BufferView *, Inset * inset);
int docbook(Buffer const *, std::ostream &, bool mixcont) const;
///
void validate(LaTeXFeatures & features) const;
- ///
+ /// FIXME, document
void getCursorPos(BufferView *, int & x, int & y) const;
- ///
- void toggleInsetCursor(BufferView *);
- ///
- void showInsetCursor(BufferView *, bool show = true);
- ///
- void hideInsetCursor(BufferView *);
+ /// Get the absolute document x,y of the cursor
+ virtual void getCursor(BufferView &, int &, int &) const;
///
void fitInsetCursor(BufferView * bv) const {
inset.fitInsetCursor(bv);
///
Inset * getInsetFromID(int id) const;
///
- Paragraph * firstParagraph() const;
- ///
- Paragraph * getFirstParagraph(int) const;
+ ParagraphList * getParagraphs(int) const;
///
LyXCursor const & cursor(BufferView *) const;
///
private:
///
- void lfunMousePress(FuncRequest const &);
- ///
- bool lfunMouseRelease(FuncRequest const &);
+ void lfunMouseRelease(FuncRequest const &);
///
- void lfunMouseMotion(FuncRequest const &);
+ FuncRequest adjustCommand(FuncRequest const &);
///
mutable string label;