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"
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
|
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
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
namespace frontend { class Painter; }
|
2003-08-19 16:46:47 +00:00
|
|
|
|
|
2004-11-30 01:59:49 +00:00
|
|
|
|
/// paint visible paragraph of main text
|
2006-10-28 09:59:43 +00:00
|
|
|
|
void paintText(BufferView & bv, frontend::Painter & painter);
|
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
|
2006-10-04 21:43:40 +00:00
|
|
|
|
inline int changebarMargin() { return 12; }
|
2004-08-14 15:55:22 +00:00
|
|
|
|
|
|
|
|
|
/// right margin
|
2006-07-07 13:37:59 +00:00
|
|
|
|
inline int rightMargin() { return 10; }
|
2004-08-14 15:55:22 +00:00
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
} // namespace lyx
|
2004-08-14 15:55:22 +00:00
|
|
|
|
|
2003-02-26 17:04:10 +00:00
|
|
|
|
#endif // ROWPAINTER_H
|