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

MReportEngine::MReportEngine (  ) 

Constructor

Definition at line 21 of file mreportengine.cpp.

References bottomMargin, cancelRender, details, dFooters, dHeaders, getPageMetrics(), grandTotal, leftMargin, pageHeight, pageOrientation, pageSize, pageWidth, pFooter, pHeader, rFooter, rHeader, rightMargin, MReportSection::setPrintFrequency(), and topMargin.

                             :QObject ()
{
  // Set page params
  pageSize = MReportEngine::A4;
  pageOrientation = MReportEngine::Portrait;
  topMargin = 0;
  bottomMargin = 0;
  leftMargin = 0;
  rightMargin = 0;

  // Set cancel flag
  cancelRender = false;

  // Set the grand total and gran detail total lists to AutoDelete
  grandTotal.setAutoDelete (true);
  // Set the details lists to AutoDelete
  dHeaders.setAutoDelete (true);
  details.setAutoDelete (true);
  dFooters.setAutoDelete (true);

  rHeader.setPrintFrequency (MReportSection::FirstPage);
  pHeader.setPrintFrequency (MReportSection::EveryPage);
  pFooter.setPrintFrequency (MReportSection::EveryPage);
  rFooter.setPrintFrequency (MReportSection::LastPage);

  // Set the default page metrics
  QSize
      ps =
      getPageMetrics (pageSize, pageOrientation);

  pageWidth = ps.width ();
  pageHeight = ps.height ();
}


Generated by  Doxygen 1.6.0   Back to index