Home | History | Annotate | Download | only in layout

Lines Matching defs:paragraph

24 #include "paragraph.h"
37 Paragraph *paragraph;
90 Paragraph *newPara;
94 newPara = Paragraph::paragraphFactory(fileName, font, guiSupport);
100 if (context->paragraph != NULL) {
101 delete context->paragraph;
104 context->paragraph = newPara;
108 context->paragraph->breakLines(context->width, context->height);
205 if (context->paragraph != NULL) {
210 context->paragraph->breakLines(context->width, context->height);
219 if (context->paragraph != NULL) {
220 gint maxLines = context->paragraph->getLineCount() - 1;
221 gint firstLine = 0, lastLine = context->height / context->paragraph->getLineHeight();
224 context->paragraph->draw(&surface, firstLine, (maxLines < lastLine)? maxLines : lastLine);
236 context->paragraph = Paragraph::paragraphFactory(fileName, font, guiSupport);
284 if (context->paragraph != NULL) {
285 delete context->paragraph;