private void pAddControlEndAux(float left, float top, cReportControl baseControl) {
cReportControl ctrl = null;
// first we add a control in the main header
// after the user complete the add operation
// we would move the control to the desired
// section line
//
ctrl = m_report.getHeaders().item(cGlobals.C_KEY_HEADER).getSectionLines().item(1).getControls().add();
// later we will set the properties related to the type of the control
//
m_nextNameCtrl = m_nextNameCtrl + 1;
ctrl.setName(cGlobals.C_CONTROL_NAME + m_nextNameCtrl);
if (baseControl == null) {
pSetNewControlProperties(ctrl);
}
else {
pCopyControl(baseControl, ctrl);
}
pSetNewControlPosition(ctrl, left, top);
}