Skip to main content

The rtfstyle.cpp File Reference

Included Headers

#include <string> #include <fstream> #include "rtfstyle.h" #include "message.h" #include "regex.h"

Functions Index

voidloadStylesheet (const QCString &name, StyleDataMap &map)
voidloadExtensions (const QCString &name)

Variables Index

QCStringrtf_title
QCStringrtf_subject
QCStringrtf_comments
QCStringrtf_company
QCStringrtf_logoFilename
QCStringrtf_author
QCStringrtf_manager
QCStringrtf_documentType
QCStringrtf_documentId
QCStringrtf_keywords
static std::map< std::string, QCString & >g_styleMap = ...
charrtf_Style_Reset[] = "\\pard\\plain "
Rtf_Style_Defaultrtf_Style_Default[]
Rtf_Table_Defaultrtf_Table_Default[]
static const reg::Exs_clause(R"(\\s(\d+)\s*)")
StyleDataMaprtf_Style

Macro Definitions Index

#defineRTF_LatexToc(lvl, nest, nxt, pos, twps)   ...
#defineRTF_ListBullet(lvl, nest, nxt, pos, lvl2)   ...
#defineRTF_ListEnum(lvl, nest, nxt, pos)   ...
#defineRTF_CodeExample(lvl, nest, nxt, pos)   ...
#defineRTF_ListContinue(lvl, nest, nxt, pos)   ...
#defineRTF_DescContinue(lvl, nest, nxt, pos)   ...
#defineRTF_ListElement(id, lvl, pos, chr)   ...

Functions

loadExtensions()

void loadExtensions (const QCString & name)

Definition at line 364 of file rtfstyle.cpp.

364void loadExtensions(const QCString &name)
365{
366 std::ifstream file(name.str());
367 if (!file.is_open())
368 {
369 err("Can't open RTF extensions file {}. Using defaults.\n",name);
370 return;
371 }
372 msg("Loading RTF extensions {}...\n",name);
373
374 uint32_t lineNr=1;
375
376 for (std::string line ; getline(file,line) ; ) // for each line
377 {
378 if (line.empty() || line[0]=='#') continue; // skip blanks & comments
379 static const reg::Ex assignment_splitter(R"(\s*=\s*)");
380 reg::Match match;
381 if (reg::search(line,match,assignment_splitter))
382 {
383 std::string key = match.prefix().str();
384 std::string value = match.suffix().str();
385 auto it = g_styleMap.find(key);
386 if (it!=g_styleMap.end())
387 {
388 it->second = value;
389 }
390 else
391 {
392 warn(name,lineNr,"Ignoring unknown extension key '{}'...",key);
393 }
394 }
395 else
396 {
397 warn(name,lineNr,"Assignment of style sheet name expected!");
398 }
399 lineNr++;
400 }
401}

References err, g_styleMap, msg, reg::search, QCString::str and warn.

Referenced by RTFGenerator::init.

loadStylesheet()

void loadStylesheet (const QCString & name, StyleDataMap & map)

Definition at line 322 of file rtfstyle.cpp.

322void loadStylesheet(const QCString &name, StyleDataMap& map)
323{
324 std::ifstream file(name.str());
325 if (!file.is_open())
326 {
327 err("Can't open RTF style sheet file {}. Using defaults.\n",name);
328 return;
329 }
330 msg("Loading RTF style sheet {}...\n",name);
331
332 uint32_t lineNr=1;
333
334 for (std::string line ; getline(file,line) ; ) // for each line
335 {
336 if (line.empty() || line[0]=='#') continue; // skip blanks & comments
337 static const reg::Ex assignment_splitter(R"(\s*=\s*)");
338 reg::Match match;
339 if (reg::search(line,match,assignment_splitter))
340 {
341 std::string key = match.prefix().str();
342 std::string value = match.suffix().str();
343 auto it = map.find(key);
344 if (it!=map.end())
345 {
346 StyleData& styleData = it->second;
347 styleData.setStyle(value,key);
348 }
349 else
350 {
351 warn(name,lineNr,"Unknown style sheet name {} ignored.",key);
352 }
353 }
354 else
355 {
356 warn(name,lineNr,"Assignment of style sheet name expected line='{}'!",line);
357 }
358 lineNr++;
359 }
360}

References err, msg, reg::search, StyleData::setStyle, QCString::str and warn.

Referenced by RTFGenerator::init.

Variables

g_styleMap

std::map<std::string,QCString &> g_styleMap
static
Initialiser
= { { "Title", rtf_title }, { "Subject", rtf_subject }, { "Comments", rtf_comments }, { "Company", rtf_company }, { "LogoFilename", rtf_logoFilename }, { "Author", rtf_author }, { "Manager", rtf_manager }, { "DocumentType", rtf_documentType }, { "DocumentId", rtf_documentId }, { "Keywords", rtf_keywords } }

Definition at line 34 of file rtfstyle.cpp.

34static std::map<std::string,QCString &> g_styleMap =
35{
36 { "Title", rtf_title },
37 { "Subject", rtf_subject },
38 { "Comments", rtf_comments },
39 { "Company", rtf_company },
40 { "LogoFilename", rtf_logoFilename },
41 { "Author", rtf_author },
42 { "Manager", rtf_manager },
43 { "DocumentType", rtf_documentType },
44 { "DocumentId", rtf_documentId },
45 { "Keywords", rtf_keywords }
46};

Referenced by loadExtensions.

rtf_author

QCString rtf_author

rtf_comments

QCString rtf_comments

Definition at line 25 of file rtfstyle.cpp.

Referenced by RTFGenerator::startIndexSection.

rtf_company

QCString rtf_company

rtf_documentId

QCString rtf_documentId

Definition at line 31 of file rtfstyle.cpp.

Referenced by RTFGenerator::endIndexSection.

rtf_documentType

QCString rtf_documentType

rtf_keywords

QCString rtf_keywords

Definition at line 32 of file rtfstyle.cpp.

Referenced by RTFGenerator::startIndexSection.

rtf_logoFilename

QCString rtf_logoFilename

Definition at line 27 of file rtfstyle.cpp.

Referenced by RTFGenerator::endIndexSection and RTFGenerator::init.

rtf_manager

QCString rtf_manager

Definition at line 29 of file rtfstyle.cpp.

Referenced by RTFGenerator::startIndexSection.

rtf_Style

rtf_Style_Default

Rtf_Style_Default rtf_Style_Default[]

Definition at line 88 of file rtfstyle.cpp.

89{
90 { "Heading1",
91 "\\s1\\sb240\\sa60\\keepn\\widctlpar\\adjustright \\b\\f1\\fs36\\kerning36\\cgrid ",
92 "\\sbasedon0 \\snext0 heading 1"
93 },
94 { "Heading2",
95 "\\s2\\sb240\\sa60\\keepn\\widctlpar\\adjustright \\b\\f1\\fs28\\kerning28\\cgrid ",
96 "\\sbasedon0 \\snext0 heading 2"
97 },
98 { "Heading3",
99 "\\s3\\sb240\\sa60\\keepn\\widctlpar\\adjustright \\b\\f1\\cgrid ",
100 "\\sbasedon0 \\snext0 heading 3"
101 },
102 { "Heading4",
103 "\\s4\\sb240\\sa60\\keepn\\widctlpar\\adjustright \\b\\f1\\fs20\\cgrid ",
104 "\\sbasedon0 \\snext0 heading 4;}{\\*\\cs10 \\additive Default Paragraph Font"
105 },
106 { "Heading5",
107 "\\s5\\sb90\\sa30\\keepn\\widctlpar\\adjustright \\b\\f1\\fs16\\cgrid ",
108 "\\sbasedon0 \\snext0 heading 5;}{\\*\\cs10 \\additive Default Paragraph Font"
109 },
110 { "Heading6",
111 "\\s6\\sb90\\sa30\\keepn\\widctlpar\\adjustright \\b\\f1\\fs12\\cgrid ",
112 "\\sbasedon0 \\snext0 heading 6;}{\\*\\cs10 \\additive Default Paragraph Font"
113 },
114 { "Title",
115 "\\s15\\qc\\sb240\\sa60\\widctlpar\\outlinelevel0\\adjustright \\b\\f1\\fs32\\kerning28\\cgrid ",
116 "\\sbasedon0 \\snext15 Title"
117 },
118 { "SubTitle",
119 "\\s16\\qc\\sa60\\widctlpar\\outlinelevel1\\adjustright \\f1\\cgrid ",
120 "\\sbasedon0 \\snext16 Subtitle"
121 },
122 { "BodyText",
123 "\\s17\\sa60\\sb30\\widctlpar\\qj \\fs22\\cgrid ",
124 "\\sbasedon0 \\snext17 BodyText"
125 },
126 { "DenseText",
127 "\\s18\\widctlpar\\fs22\\cgrid ",
128 "\\sbasedon0 \\snext18 DenseText"
129 },
130 { "Header",
131 "\\s28\\widctlpar\\tqc\\tx4320\\tqr\\tx8640\\adjustright \\fs20\\cgrid ",
132 "\\sbasedon0 \\snext28 header"
133 },
134 { "Footer",
135 "\\s29\\widctlpar\\tqc\\tx4320\\tqr\\tx8640\\qr\\adjustright \\fs20\\cgrid ",
136 "\\sbasedon0 \\snext29 footer"
137 },
138 { "GroupHeader",
139 "\\s30\\li360\\sa60\\sb120\\keepn\\widctlpar\\adjustright \\b\\f1\\fs20\\cgrid ",
140 "\\sbasedon0 \\snext30 GroupHeader"
141 },
142
143 RTF_CodeExample( 0, 40, 41, 0),
144 RTF_CodeExample( 1, 41, 42, 360),
145 RTF_CodeExample( 2, 42, 43, 720),
146 RTF_CodeExample( 3, 43, 44,1080),
147 RTF_CodeExample( 4, 44, 45,1440),
148 RTF_CodeExample( 5, 45, 46,1800),
149 RTF_CodeExample( 6, 46, 47,2160),
150 RTF_CodeExample( 7, 47, 48,2520),
151 RTF_CodeExample( 8, 48, 49,2880),
152 RTF_CodeExample( 9, 49, 50,3240),
153 RTF_CodeExample(10, 50, 51,3600),
154 RTF_CodeExample(11, 51, 52,3960),
155 RTF_CodeExample(12, 52, 53,4320),
156 RTF_CodeExample(13, 53, 53,4680),
157
158 RTF_ListContinue( 0, 60, 61, 0),
159 RTF_ListContinue( 1, 61, 62, 360),
160 RTF_ListContinue( 2, 62, 63, 720),
161 RTF_ListContinue( 3, 63, 64,1080),
162 RTF_ListContinue( 4, 64, 65,1440),
163 RTF_ListContinue( 5, 65, 66,1800),
164 RTF_ListContinue( 6, 66, 67,2160),
165 RTF_ListContinue( 7, 67, 68,2520),
166 RTF_ListContinue( 8, 68, 69,2880),
167 RTF_ListContinue( 9, 69, 70,3240),
168 RTF_ListContinue(10, 70, 71,3600),
169 RTF_ListContinue(11, 71, 72,3960),
170 RTF_ListContinue(12, 72, 73,4320),
171 RTF_ListContinue(13, 73, 73,4680),
172
173 RTF_DescContinue( 0, 80, 81, 0),
174 RTF_DescContinue( 1, 81, 82, 360),
175 RTF_DescContinue( 2, 82, 83, 720),
176 RTF_DescContinue( 3, 83, 84,1080),
177 RTF_DescContinue( 4, 84, 85,1440),
178 RTF_DescContinue( 5, 85, 86,1800),
179 RTF_DescContinue( 6, 86, 87,2160),
180 RTF_DescContinue( 7, 87, 88,2520),
181 RTF_DescContinue( 8, 88, 89,2880),
182 RTF_DescContinue( 9, 89, 90,3240),
183 RTF_DescContinue(10, 90, 91,3600),
184 RTF_DescContinue(11, 91, 92,3960),
185 RTF_DescContinue(12, 92, 93,4320),
186 RTF_DescContinue(13, 93, 93,4680),
187
188 RTF_LatexToc( 0,100,101, 0,30),
189 RTF_LatexToc( 1,101,102, 360,27),
190 RTF_LatexToc( 2,102,103, 720,24),
191 RTF_LatexToc( 3,103,104,1080,21),
192 RTF_LatexToc( 4,104,105,1440,18),
193 RTF_LatexToc( 5,105,106,1800,15),
194 RTF_LatexToc( 6,106,107,2160,12),
195 RTF_LatexToc( 7,107,108,2520, 9),
196 RTF_LatexToc( 8,108,109,2880, 6),
197 RTF_LatexToc( 9,109,110,3240, 3),
198 RTF_LatexToc(10,110,111,3600, 3),
199 RTF_LatexToc(11,111,112,3960, 3),
200 RTF_LatexToc(12,112,113,4320, 3),
201 RTF_LatexToc(13,113,113,4680, 3),
202
203 RTF_ListBullet( 0,120,121, 360, 1),
204 RTF_ListBullet( 1,121,122, 720, 2),
205 RTF_ListBullet( 2,122,123,1080, 3),
206 RTF_ListBullet( 3,123,124,1440, 4),
207 RTF_ListBullet( 4,124,125,1800, 5),
208 RTF_ListBullet( 5,125,126,2160, 6),
209 RTF_ListBullet( 6,126,127,2520, 7),
210 RTF_ListBullet( 7,127,128,2880, 8),
211 RTF_ListBullet( 8,128,129,3240, 9),
212 RTF_ListBullet( 9,129,130,3600,10),
213 RTF_ListBullet(10,130,131,3960,11),
214 RTF_ListBullet(11,131,132,4320,12),
215 RTF_ListBullet(12,132,133,4680,13),
216 RTF_ListBullet(13,133,133,5040,14),
217
218 RTF_ListEnum( 0,140,141, 360),
219 RTF_ListEnum( 1,141,142, 720),
220 RTF_ListEnum( 2,142,143,1080),
221 RTF_ListEnum( 3,143,144,1440),
222 RTF_ListEnum( 4,144,145,1800),
223 RTF_ListEnum( 5,145,146,2160),
224 RTF_ListEnum( 6,146,147,2520),
225 RTF_ListEnum( 7,147,148,2880),
226 RTF_ListEnum( 8,148,149,3240),
227 RTF_ListEnum( 9,149,150,3600),
228 RTF_ListEnum(10,150,151,3960),
229 RTF_ListEnum(11,151,152,4320),
230 RTF_ListEnum(12,152,153,4680),
231 RTF_ListEnum(13,153,153,5040),
232
233 { nullptr,
234 nullptr,
235 nullptr
236 }
237};

Referenced by RTFGenerator::init and RTFGenerator::writeStyleSheetFile.

rtf_Style_Reset

char rtf_Style_Reset[] = "\\pard\\plain "

Definition at line 49 of file rtfstyle.cpp.

49char rtf_Style_Reset[] = "\\pard\\plain ";

Referenced by RTFGenerator::beginRTFChapter, RTFGenerator::beginRTFSection, RTFGenerator::endCallGraph, RTFGenerator::endClassDiagram, RTFGenerator::endDirDepGraph, RTFGenerator::endDotGraph, RTFGenerator::endGroupHeader, RTFGenerator::endInclDepGraph, RTFGenerator::endIndexSection, RTFGenerator::endMemberGroupHeader, RTFGenerator::endTitleHead, RTFDocVisitor::includePicturePreRTF, RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFCodeGenerator::startCodeFragment, RTFGenerator::startCompoundTemplateParams, RTFGenerator::startConstraintList, RTFGenerator::startDescTable, RTFGenerator::startExamples, RTFGenerator::startGroupHeader, RTFGenerator::startIndent, RTFGenerator::startIndexList, RTFGenerator::startInlineHeader, RTFGenerator::startItemListItem, RTFGenerator::startMemberDescription, RTFGenerator::startMemberDoc, RTFGenerator::startMemberDocSimple, RTFGenerator::startMemberGroup, RTFGenerator::startMemberGroupHeader, RTFGenerator::startMemberItem, RTFGenerator::startMemberSubtitle, RTFGenerator::startSection, RTFGenerator::startTextBlock, RTFGenerator::startTitleHead, RTFGenerator::writeInheritedSectionTitle and RTFGenerator::writePageLink.

rtf_subject

QCString rtf_subject

Definition at line 24 of file rtfstyle.cpp.

Referenced by RTFGenerator::startIndexSection.

rtf_Table_Default

Rtf_Table_Default rtf_Table_Default[]

Definition at line 245 of file rtfstyle.cpp.

246{
247 RTF_ListElement( 1,0, 360, 8226),
248 RTF_ListElement( 1,1, 720, 9702),
249 RTF_ListElement( 1,2,1080, 9642),
250 RTF_ListElement( 1,3,1440, 8226),
251 RTF_ListElement( 1,4,1800, 9702),
252 RTF_ListElement( 1,5,2160, 9642),
253 RTF_ListElement( 1,6,2520, 8662),
254 RTF_ListElement( 1,7,2880, 9702),
255 RTF_ListElement( 1,8,3600, 9642),
256
257 RTF_ListElement( 2,0, 360, 9744),
258 RTF_ListElement( 2,1, 720, 9744),
259 RTF_ListElement( 2,2,1080, 9744),
260 RTF_ListElement( 2,3,1440, 9744),
261 RTF_ListElement( 2,4,1800, 9744),
262 RTF_ListElement( 2,5,2160, 9744),
263 RTF_ListElement( 2,6,2520, 9744),
264 RTF_ListElement( 2,7,2880, 9744),
265 RTF_ListElement( 2,8,3600, 9744),
266
267 RTF_ListElement( 3,0, 360, 9746),
268 RTF_ListElement( 3,1, 720, 9746),
269 RTF_ListElement( 3,2,1080, 9746),
270 RTF_ListElement( 3,3,1440, 9746),
271 RTF_ListElement( 3,4,1800, 9746),
272 RTF_ListElement( 3,5,2160, 9746),
273 RTF_ListElement( 3,6,2520, 9746),
274 RTF_ListElement( 3,7,2880, 9746),
275 RTF_ListElement( 3,8,3600, 9746),
276
277 { 0,
278 0,
279 nullptr,
280 nullptr
281 }
282};

Referenced by RTFGenerator::beginRTFDocument and RTFDocVisitor::getListTable.

rtf_title

QCString rtf_title

Definition at line 23 of file rtfstyle.cpp.

Referenced by RTFGenerator::endIndexSection.

s_clause

const reg::Ex s_clause(R"(\\s(\d+)\s*)")
static

Definition at line 284 of file rtfstyle.cpp.

Referenced by StyleData::setStyle and StyleData::StyleData.

Macro Definitions

RTF_CodeExample

#define RTF_CodeExample(lvl, nest, nxt, pos)   ...
Value
{ "CodeExample"#lvl, \ "\\s"#nest"\\li"#pos"\\widctlpar\\adjustright \\shading1000\\cbpat8 \\f2\\fs16\\cgrid ", \ "\\sbasedon0 \\snext"#nxt" Code Example "#lvl \ }

Definition at line 70 of file rtfstyle.cpp.

70#define RTF_CodeExample(lvl,nest,nxt,pos) \
71 { "CodeExample"#lvl, \
72 "\\s"#nest"\\li"#pos"\\widctlpar\\adjustright \\shading1000\\cbpat8 \\f2\\fs16\\cgrid ", \
73 "\\sbasedon0 \\snext"#nxt" Code Example "#lvl \
74 }

RTF_DescContinue

#define RTF_DescContinue(lvl, nest, nxt, pos)   ...
Value
{ "DescContinue"#lvl, \ "\\s"#nest"\\li"#pos"\\widctlpar\\ql\\adjustright \\fs20\\cgrid ", \ "\\sbasedon0 \\snext"#nxt" DescContinue "#lvl \ }

Definition at line 82 of file rtfstyle.cpp.

82#define RTF_DescContinue(lvl,nest,nxt,pos) \
83 { "DescContinue"#lvl, \
84 "\\s"#nest"\\li"#pos"\\widctlpar\\ql\\adjustright \\fs20\\cgrid ", \
85 "\\sbasedon0 \\snext"#nxt" DescContinue "#lvl \
86 }

RTF_LatexToc

#define RTF_LatexToc(lvl, nest, nxt, pos, twps)   ...
Value
\ { "LatexTOC"#lvl, \ "\\s"#nest"\\li"#pos"\\sa"#twps"\\sb"#twps"\\widctlpar\\tqr\\tldot\\tx8640\\adjustright \\fs20\\cgrid ",\ "\\sbasedon0 \\snext"#nxt" LatexTOC "#lvl \ }

Definition at line 51 of file rtfstyle.cpp.

51#define RTF_LatexToc(lvl,nest,nxt,pos,twps) \
52 \
53 { "LatexTOC"#lvl, \
54 "\\s"#nest"\\li"#pos"\\sa"#twps"\\sb"#twps"\\widctlpar\\tqr\\tldot\\tx8640\\adjustright \\fs20\\cgrid ",\
55 "\\sbasedon0 \\snext"#nxt" LatexTOC "#lvl \
56 }

RTF_ListBullet

#define RTF_ListBullet(lvl, nest, nxt, pos, lvl2)   ...
Value
{ "ListBullet"#lvl, \ "\\s"#nest"\\fi-360\\li"#pos"\\widctlpar\\jclisttab\\tx"#pos"{\\*\\pn \\pnlvlbody\\ilvl0\\ls"#lvl2"\\pnrnot0\\pndec }\\ls1\\adjustright \\fs20\\cgrid ", \ "\\sbasedon0 \\snext"#nxt" \\sautoupd List Bullet "#lvl \ }

Definition at line 58 of file rtfstyle.cpp.

58#define RTF_ListBullet(lvl,nest,nxt,pos,lvl2) \
59 { "ListBullet"#lvl, \
60 "\\s"#nest"\\fi-360\\li"#pos"\\widctlpar\\jclisttab\\tx"#pos"{\\*\\pn \\pnlvlbody\\ilvl0\\ls"#lvl2"\\pnrnot0\\pndec }\\ls1\\adjustright \\fs20\\cgrid ", \
61 "\\sbasedon0 \\snext"#nxt" \\sautoupd List Bullet "#lvl \
62 }

RTF_ListContinue

#define RTF_ListContinue(lvl, nest, nxt, pos)   ...
Value
{ "ListContinue"#lvl, \ "\\s"#nest"\\li"#pos"\\sa60\\sb30\\qj\\widctlpar\\qj\\adjustright \\fs20\\cgrid ", \ "\\sbasedon0 \\snext"#nxt" List Continue "#lvl \ }

Definition at line 76 of file rtfstyle.cpp.

76#define RTF_ListContinue(lvl,nest,nxt,pos) \
77 { "ListContinue"#lvl, \
78 "\\s"#nest"\\li"#pos"\\sa60\\sb30\\qj\\widctlpar\\qj\\adjustright \\fs20\\cgrid ", \
79 "\\sbasedon0 \\snext"#nxt" List Continue "#lvl \
80 }

RTF_ListElement

#define RTF_ListElement(id, lvl, pos, chr)   ...
Value
{ id, lvl, \ "\\listlevel\\levelnfc23\\leveljc0\\levelstartat1\\levelfollow0{\\leveltext \\'01\\u"#chr" ?;}{\\levelnumbers;}\\f8\\dbch\\af3\\fi-360\\li"#pos, \ "{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\nowidctlpar\\cf0\\hich\\af0\\langfe2052\\dbch\\af0\\afs24\\lang1081\\loch\\f0\\fs24\\lang1033{\\listtext\\pard\\plain \\hich\\af3\\dbch\\af3\\loch\\f8 \\'01\\u"#chr"\\tab}\\ilvl"#lvl"\\ls"#id" \\li0\\ri0\\lin0\\rin0\\fi-360\\tx"#pos"\\li"#pos"\\ri0\\lin"#pos"\\rin0\\fi-360\\kerning1\\hich\\af4\\dbch\\af5\\rtlch \\ltrch\\loch\\fs20" \ }

Definition at line 239 of file rtfstyle.cpp.

239#define RTF_ListElement(id,lvl,pos,chr) \
240 { id, lvl, \
241 "\\listlevel\\levelnfc23\\leveljc0\\levelstartat1\\levelfollow0{\\leveltext \\'01\\u"#chr" ?;}{\\levelnumbers;}\\f8\\dbch\\af3\\fi-360\\li"#pos, \
242 "{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\nowidctlpar\\cf0\\hich\\af0\\langfe2052\\dbch\\af0\\afs24\\lang1081\\loch\\f0\\fs24\\lang1033{\\listtext\\pard\\plain \\hich\\af3\\dbch\\af3\\loch\\f8 \\'01\\u"#chr"\\tab}\\ilvl"#lvl"\\ls"#id" \\li0\\ri0\\lin0\\rin0\\fi-360\\tx"#pos"\\li"#pos"\\ri0\\lin"#pos"\\rin0\\fi-360\\kerning1\\hich\\af4\\dbch\\af5\\rtlch \\ltrch\\loch\\fs20" \
243 }

RTF_ListEnum

#define RTF_ListEnum(lvl, nest, nxt, pos)   ...
Value
{ "ListEnum"#lvl, \ "\\s"#nest"\\fi-360\\li"#pos"\\widctlpar\\fs20\\cgrid ", \ "\\sbasedon0 \\snext"#nxt" \\sautoupd List Enum "#lvl \ }

Definition at line 64 of file rtfstyle.cpp.

64#define RTF_ListEnum(lvl,nest,nxt,pos) \
65 { "ListEnum"#lvl, \
66 "\\s"#nest"\\fi-360\\li"#pos"\\widctlpar\\fs20\\cgrid ", \
67 "\\sbasedon0 \\snext"#nxt" \\sautoupd List Enum "#lvl \
68 }

Generated via doxygen2docusaurus by Doxygen 1.14.0.