Home | History | Annotate | Download | only in layout

Lines Matching refs:paragraph

17 #include "paragraph.h"
32 Paragraph *paragraph;
54 if (context->paragraph != NULL) {
58 context->paragraph->breakLines(context->width, context->height);
64 si.nMax = context->paragraph->getLineCount() - 1;
65 si.nPage = context->height / context->paragraph->getLineHeight();
148 context->paragraph = Paragraph::paragraphFactory("Sample.txt", font, guiSupport);
219 if (context->paragraph != NULL && si.nPos != vertPos) {
220 ScrollWindow(hwnd, 0, context->paragraph->getLineHeight() * (vertPos - si.nPos), NULL, NULL);
244 if (context->paragraph != NULL) {
250 lastLine = min (si.nPos + (le_int32) si.nPage, context->paragraph->getLineCount() - 1);
252 context->paragraph->draw(surface, firstLine, lastLine);
295 Paragraph *newParagraph = Paragraph::paragraphFactory(szFileName, font, guiSupport);
300 if (context->paragraph != NULL) {
301 delete context->paragraph;
304 context->paragraph = newParagraph;
337 if (context != NULL && context->paragraph != NULL) {
338 delete context->paragraph;