| 4399 | #ifndef CFG_NO_DOC_SIGNATURE |
| 4400 | #ifndef TAO_PLAYER |
| 4401 | static bool isUserFile(QString path) |
| 4402 | // ---------------------------------------------------------------------------- |
| 4403 | // True if file is not a Tao file (tao.xl, etc.) or module |
| 4404 | // ---------------------------------------------------------------------------- |
| 4405 | { |
| 4406 | path = QFileInfo(path).absoluteFilePath(); |
| 4407 | ModuleManager *mmgr = ModuleManager::moduleManager(); |
| 4408 | QList<QDir> exclude; |
| 4409 | exclude << mmgr->userModuleDir() << mmgr->systemModuleDir() |
| 4410 | << QDir(Application::applicationDirPath()); |
| 4411 | foreach (QDir dir, exclude) |
| 4412 | if (path.startsWith(dir.absolutePath())) |
| 4413 | return false; |
| 4414 | return true; |
| 4415 | } |
| 4416 | |
| 4417 | |
| 4418 | static QString attachSigatureInfoAndSign(XL::SourceFile &sf) |
no test coverage detected