3 * \file GraphicsSupport.h
4 * Copyright 2002 the LyX Team
5 * Read the file COPYING
7 * \author Angus Leeming <leeming@lyx.org>
10 #ifndef GRAPHICSSUPPORT_H
11 #define GRAPHICSSUPPORT_H
17 #include "support/types.h"
24 /** A Paragraph * together with delimiters for the start and end positions
27 struct VisibleParagraph {
29 VisibleParagraph() : par(0), start(0), end(0) {}
31 VisibleParagraph(Paragraph * p, lyx::pos_type s, lyx::pos_type e)
32 : par(p), start(s), end(e) {}
42 /// Returns a list of all Paragraphs currently visible in bv.
43 std::list<VisibleParagraph> const getVisibleParagraphs(BufferView const & bv);
45 /** Given this data, check whether inset lies within it and is, therefore,
48 bool isInsetVisible(Inset const & inset, std::list<VisibleParagraph> const &);
50 #endif // GRAPHICSSUPPORT_H