RTF Writer macro - what's been done ----------------------------------- v 1.0, 3 October 1996 - bullets handled correctly - { and } handled correctly - filename derived from original document filename v 0.3, 4 September 1996 - Returns to same section, paragraph and position as start at - Alignment: Left, Right, Centre, Justified - Paragraph indents: first, left, right - Line spacing: some of this should be working - Fixed bug that didn't handle double new line properly v 0.2, 8 May 1996 - Multiple sections - Columns in a section: number & inter-column gap - Page size - Page margins: print area & edit area - Character position: sub and superscript - Fonts: name, family, and size - Font style: bold and italic - Font underlining: underline, double underline & strikethrough RTF codes done so far ==================== RTF group RTF name Source --------- -------- ------ File Header charset \mac as default FontTbl fontnum Status NumFonts FontTbl fontfamily Status FontName, then lookup FontTbl fontname Status FontName Document DocFmt \paperw GetPageSetup WIDTH DocFmt \paperh GetPageSetup HEIGHT DocFmt \margl GetPageSetup LEFT DocFmt \margr GetPageSetup RIGHT DocFmt \margt GetPageSetup TOP DocFmt \margb GetPageSetup BOTTOM DocFmt \facingp GetPageSetup PAGES DocFmt \landscape GetPageSetup ORIENT DocFmt \pgnstart GetPageSetup FIRSTPAGE Section Get SectionList then counts and parses result secfmt \cols GetSectionSetup COLUMNS secfmt \colsx GetSectionSetup COLUMNGAP secfmt \marglsxn GetSectionSetup INSIDE secfmt \margrsxn GetSectionSetup OUTSIDE secfmt \margtsxn GetSectionSetup TOP secfmt \margbsxn GetSectionSetup BOTTOM secfmt \pgnstarts GetSectionSetup FIRSTPAGE para parfmt \q(l|r|j|c) Status Justify parfmt \fi Status Indent parfmt \li Status LeftMargin parfmt \ri Status RightMargin parfmt \sl Status Spacing textpar \par Inserted when '0a'x character found char ptext chrfmt \sub Status FontPosition chrfmt \super Status FontPosition chrfmt \nosupersub Status FontPosition chrfmt \f Status FontName then lookup in font table chrfmt \b Status FontName then look for bold chrfmt \i Status FontName then look for italic chrfmt \ulnone Status FontStyle chrfmt \ul Status FontStyle chrfmt \uldb Status FontStyle chrfmt \strike Status FontStyle chrfmt \fs Status FontSize