throws Exception {
Style default_style = m_doc.addStyle(StyleContext.DEFAULT_STYLE, m_doc.getLogicalStyle(0));
Style parent_style = default_style;
TextFile file = new TextFile(stylefile);
file.openForRead(file_id);
TextToken token = file.nextToken();
for (; token != null; token = file.nextToken()) {
parent_style = default_style;