def process_reportElement(report, element):
    """
    Set attributes of "reportElement" to a dictionary.
    :param report: dictionary holding report information
    :param element: current jrxml element being processes.
    :return: dictionary of attributes of specified element
    """
    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')  # 'Opaque': show
    }
    return attributes