[Doxygen-develop] Wish: Font and color tables in RTF stylesheets
Brought to you by:
dimitri
From: Swisher Janet-R. <RB...@mo...> - 2002-06-20 19:19:02
|
Greetings, In the RTFGenerator, currently the RTF font table and color table are hard-coded, and don't correspond to what I need to use. The quick-and-dirty fix for this is obviously to change the hard-coded values to ones that I want. However, it seems like a more generic solution would be to support font and color tables in the Doxygen RTF stylesheet file. What I propose is this: Modify RTFGenerator::loadStyleSheet to recognize the strings "{\fonttbl" and "{\colortbl"; if it encounters either of these control words, it will scan to the matching "}" (skipping nested braces), and store the matched string in an appropriate variable, to be output by RTFGenerator::beginRTFDocument. Note that the RTF font and color tables are not directly used by RTFGenerator -- they are just spit out into the RTF file. Therefore, RTFGenerator doesn't need to understand the contents of the tables the way that it does the contents of the stylesheet table. Does this sound like a reasonable proposal? Janet Swisher Technical Writer Motorola SPS WBSG 512-895-7056 |