コード例 #1
0
ファイル: mreportengine.cpp プロジェクト: afibanez/eneboo
/**
 Finds the detail add-on footer object, which is apropriate for the given level.
 If no footer is found, trys to find a general add-on footer level -1)
 */
MReportSection *MReportEngine::findAddOnFooter(int level)
{
  MReportSection *sec;
  for (sec = addOnFooters->first(); sec; sec = addOnFooters->next()) {
    if (sec->getLevel() == level)
      return sec;
  }
  for (sec = addOnFooters->first(); sec; sec = addOnFooters->next()) {
    if (sec->getLevel() == -1)
      return sec;
  }
  return 0;
}
コード例 #2
0
ファイル: mreportengine.cpp プロジェクト: afibanez/eneboo
/** Finds the detail object, which is apropriate for the given level */
MReportSection *MReportEngine::findDetail(int level)
{
  MReportSection *sec;
  for (sec = details->first(); sec; sec = details->next()) {
    if (sec->getLevel() == level)
      return sec;
  }
  return 0;
}
コード例 #3
0
/** Finds the detail footer object, which is apropriate for the given level */
MReportSection *MReportEngine::findDetailFooter( int level ) {
  MReportSection * sec;

  for ( sec = dFooters->first(); sec; sec = dFooters->next() ) {
    if ( sec->getLevel() == level )
      return sec;
  }

  return NULL;
}