| 295 | |
| 296 | |
| 297 | text ExtractDoc::formatSyntax(XL::Tree *t) |
| 298 | // ---------------------------------------------------------------------------- |
| 299 | // Format the syntax documentation from the given tree |
| 300 | // ---------------------------------------------------------------------------- |
| 301 | { |
| 302 | std::ostringstream oss; |
| 303 | XL::Renderer render(oss); |
| 304 | QFileInfo fi("system:nocomment.stylesheet"); |
| 305 | render.SelectStyleSheet( text(fi.absoluteFilePath().toUtf8().constData()) ); |
| 306 | render.RenderFile(t); |
| 307 | |
| 308 | syntax = oss.str(); |
| 309 | size_t begin; |
| 310 | |
| 311 | while ((begin = syntax.find('\n')) != std::string::npos ) |
| 312 | { |
| 313 | syntax.erase(begin, 1); |
| 314 | } |
| 315 | |
| 316 | return syntax; |
| 317 | } |
| 318 | |
| 319 | text ExtractDoc::addParam(XL::Name *name, XL::Name *ptype, text *comment) |
| 320 | // ---------------------------------------------------------------------------- |
nothing calls this directly
no outgoing calls
no test coverage detected