#ifndef INSET_H
#define INSET_H
-
-#include <vector>
#include "LString.h"
#include "LColor.h"
#include "insetbase.h"
#include "frontends/mouse_state.h"
#include "support/types.h"
+#include <vector>
+
class LyXFont;
class Buffer;
class Painter;
class LyXText;
class LyXLex;
class Paragraph;
+class ParagraphList;
class LyXCursor;
class FuncRequest;
class WordLangTuple;
///
OPTARG_CODE,
///
- ENVIRONMENT_CODE,
+ ENVIRONMENT_CODE,
///
HFILL_CODE,
///
/// what appears in the minibuffer when opening
virtual string const editMessage() const;
///
- virtual void edit(BufferView *, int x, int y, mouse_button::state button);
- ///
- virtual void edit(BufferView *, bool front = true);
- ///
virtual EDITABLE editable() const;
///
virtual bool isTextInset() const { return false; }
virtual Inset * getInsetFromID(int /*id*/) const { return 0; }
/// if this insets owns paragraphs (f.ex. InsetText) then it
/// should return it's very first one!
- virtual Paragraph * firstParagraph() const { return 0; }
+ virtual ParagraphList * getParagraphs(int /*num*/) const { return 0; }
///
- virtual Paragraph * getFirstParagraph(int /*num*/) const { return 0; }
+ virtual bool haveParagraphs() const {
+ return false;
+ }
/// return the cursor if we own one otherwise giv'em just the
/// BufferView cursor to work with.