}
}
else
{
final String sFieldName = FieldColumns[i].getFieldName();
LabelControlList[i] = new Control(oFormHandler, xFormName, FormHandler.SOLABEL, sFieldName, aPoint, aSize);
if (bIsVeryFirstRun && icurArrangement == FormWizard.COLUMNAR_TOP)
{
m_currentControlPosY = m_currentLabelPosY + m_LabelHeight;
}
final String sTitle = FieldColumns[i].getFieldTitle();
m_LabelWidth = LabelControlList[i].getPreferredWidth(sTitle);
aSize.Width = m_LabelWidth;
LabelControlList[i].setSize(aSize);
}
Control curLabelControl = LabelControlList[i];
if (icurArrangement == FormWizard.COLUMNAR_LEFT)
{
// Note This If Sequence must be called before retrieving the outer Points
if (bIsFirstRun)
{
m_MaxLabelWidth = m_LabelWidth;
bIsFirstRun = false;
}
else if (m_LabelWidth > m_MaxLabelWidth)
{
m_MaxLabelWidth = m_LabelWidth;
}
}
checkOuterPoints(m_currentLabelPosX, m_LabelWidth, m_currentLabelPosY, m_LabelHeight, false);
if ((icurArrangement == FormWizard.COLUMNAR_TOP) || (icurArrangement == FormWizard.IN_BLOCK_TOP))
{
m_currentControlPosX = m_currentLabelPosX;
m_currentControlPosY = m_currentLabelPosY + m_LabelHeight;
curLabelControl.xPropertySet.setPropertyValue(PropertyNames.PROPERTY_ALIGN, new Short((short) com.sun.star.awt.TextAlign.LEFT));
}
else
{
curLabelControl.xPropertySet.setPropertyValue(PropertyNames.PROPERTY_ALIGN, new Short((short) _iAlign));
}
if (!bControlsareCreated)
{
curLabelControl.setSize(new Size(m_LabelWidth, m_LabelHeight));
}
// if (CurHelpText != PropertyNames.EMPTY_STRING){
// oModel.HelpText = CurHelptext;
// }
}