Logo Search packages:      
Sourcecode: facturalux version File versions  Download package

void MReportEngine::startPage ( MPageCollection pages  )  [protected]

Starts a new page of the report

Definition at line 303 of file mreportengine.cpp.

References MPageCollection::appendPage(), currPage, currY, drawPageHeader(), drawReportHeader(), MPageCollection::getCurrentPage(), p, and topMargin.

Referenced by newPage(), and renderReport().

  // Set the current y pos
  currY = topMargin;

  // Create a new page
  pages->appendPage ();
  // Increment the page count

  // Set the page painter to the current page
  p.begin (pages->getCurrentPage ());

  // Draw the report header
  drawReportHeader (pages);
  // Draw the page header
  drawPageHeader (pages);

Generated by  Doxygen 1.6.0   Back to index