2003-04-09 21:34:31 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-02-26 17:04:10 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file rowpainter.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author various
|
|
|
|
|
* \author John Levon
|
2004-11-30 01:59:49 +00:00
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
2003-02-26 17:04:10 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-02-26 17:04:10 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef ROWPAINTER_H
|
|
|
|
|
#define ROWPAINTER_H
|
|
|
|
|
|
2004-04-07 20:20:15 +00:00
|
|
|
|
#include "support/types.h"
|
|
|
|
|
|
2003-02-26 17:04:10 +00:00
|
|
|
|
class LyXText;
|
|
|
|
|
class BufferView;
|
2003-12-15 11:36:19 +00:00
|
|
|
|
class PainterInfo;
|
2004-11-30 01:59:49 +00:00
|
|
|
|
class ViewMetricsInfo;
|
2003-02-26 17:04:10 +00:00
|
|
|
|
|
2003-08-19 16:46:47 +00:00
|
|
|
|
|
2004-11-30 01:59:49 +00:00
|
|
|
|
/// paint visible paragraph of main text
|
|
|
|
|
void paintText(BufferView const & bv, ViewMetricsInfo const & vi);
|
2004-04-07 20:20:15 +00:00
|
|
|
|
|
2003-08-19 16:46:47 +00:00
|
|
|
|
/// paint the rows of a text inset
|
2004-11-30 01:59:49 +00:00
|
|
|
|
void paintTextInset(LyXText const & text, PainterInfo & pi, int x, int y);
|
2003-08-19 16:46:47 +00:00
|
|
|
|
|
2004-08-14 15:55:22 +00:00
|
|
|
|
/// some space for drawing the 'nested' markers (in pixel)
|
2004-11-30 01:59:49 +00:00
|
|
|
|
inline int nestMargin() { return 15; }
|
2004-08-14 15:55:22 +00:00
|
|
|
|
|
|
|
|
|
/// margin for changebar
|
2004-11-30 01:59:49 +00:00
|
|
|
|
inline int changebarMargin() { return 10; }
|
2004-08-14 15:55:22 +00:00
|
|
|
|
|
|
|
|
|
/// right margin
|
2006-07-07 13:42:03 +00:00
|
|
|
|
inline int rightMargin() { return 10; }
|
2004-08-14 15:55:22 +00:00
|
|
|
|
|
|
|
|
|
|
2003-02-26 17:04:10 +00:00
|
|
|
|
#endif // ROWPAINTER_H
|