3 * \file GraphicsSupport.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS
12 #ifndef GRAPHICSSUPPORT_H
13 #define GRAPHICSSUPPORT_H
19 #include "support/types.h"
26 /** A Paragraph * together with delimiters for the start and end positions
29 struct VisibleParagraph {
31 VisibleParagraph() : par(0), start(0), end(0) {}
33 VisibleParagraph(Paragraph * p, lyx::pos_type s, lyx::pos_type e)
34 : par(p), start(s), end(e) {}
44 /// Returns a list of all Paragraphs currently visible in bv.
45 std::list<VisibleParagraph> const getVisibleParagraphs(BufferView const & bv);
47 /** Given this data, check whether inset lies within it and is, therefore,
50 bool isInsetVisible(Inset const & inset, std::list<VisibleParagraph> const &);
52 #endif // GRAPHICSSUPPORT_H