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
|
|
|
|
*
|
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;
|
2003-02-26 17:04:10 +00:00
|
|
|
|
2003-08-19 16:46:47 +00:00
|
|
|
/// paint the rows of the main text, return last drawn y value
|
2003-11-28 08:55:12 +00:00
|
|
|
int paintText(BufferView const & bv);
|
2003-08-19 16:46:47 +00:00
|
|
|
|
2004-04-07 20:20:15 +00:00
|
|
|
/// refresh a par of the main text
|
|
|
|
void refreshPar(BufferView const & bv, LyXText const & text,
|
2004-11-24 21:53:46 +00:00
|
|
|
lyx::pit_type pit);
|
2004-04-07 20:20:15 +00:00
|
|
|
|
2003-08-19 16:46:47 +00:00
|
|
|
/// paint the rows of a text inset
|
2004-04-07 20:20:15 +00:00
|
|
|
void paintTextInset(LyXText const & text, PainterInfo & pi);
|
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)
|
|
|
|
inline int nestMargin()
|
|
|
|
{
|
|
|
|
return 15;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// margin for changebar
|
|
|
|
inline int changebarMargin()
|
|
|
|
{
|
|
|
|
return 10;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// right margin
|
|
|
|
inline int rightMargin()
|
|
|
|
{
|
|
|
|
return 30;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-02-26 17:04:10 +00:00
|
|
|
#endif // ROWPAINTER_H
|