def process_reportElement(report, element):
    """
    Set attributes of "reportElement" to a dictionary.
    :param report:
    :param element:
    :return:
    """
    text_settings = element.get('attr')
    attributes = {'x': int(text_settings.get('x')) + report['leftMargin'],
        'y': int(text_settings.get('y')), 'height': int(text_settings.get(
        'height', 0)), 'width': int(text_settings.get('width', 0)),
        'forecolor': text_settings.get('forecolor'), 'backcolor':
        text_settings.get('backcolor'), 'mode': text_settings.get('mode')}
    return attributes
