'Requires:
line -- line to parse
Returns:
nothing
Logic:
Look for the beginning of the first section. This can be \sectd,
but in older RTF it could mean the any paragraph or row definition'

def __before_first_sec_func(self, line):

    if (self.__token_info == 'cw<sc<sect-defin'):
        self.__state = 'section_def'
        self.__section_num += 1
        self.__section_values.clear()
    elif (self.__token_info == 'cw<pf<par-def___'):
        self.__state = 'body'
        self.__section_num += 1
        self.__write_obj.write(('mi<tg<open-att__<section<num>%s<num-in-level>%s<type>rtf-native<level>0\n' % (str(self.__section_num), str(self.__section_num))))
        self.__found_first_sec = 1
    elif (self.__token_info == 'tx<nu<__________'):
        self.__state = 'body'
        self.__section_num += 1
        self.__write_obj.write(('mi<tg<open-att__<section<num>%s<num-in-level>%s<type>rtf-native<level>0\n' % (str(self.__section_num), str(self.__section_num))))
        self.__write_obj.write('cw<pf<par-def___<true\n')
        self.__found_first_sec = 1
    self.__write_obj.write(line)
