* Return the .rel file path based on filePath */
| 39 | * Return the .rel file path based on filePath |
| 40 | */ |
| 41 | QString getRelFilePath(const QString &filePath) |
| 42 | { |
| 43 | QString ret; |
| 44 | |
| 45 | int idx = filePath.lastIndexOf(QLatin1Char('/')); |
| 46 | if (idx == -1) // not found |
| 47 | { |
| 48 | // return QString(); |
| 49 | |
| 50 | // dev34 |
| 51 | ret = QLatin1String("_rels/") + QStringLiteral("%0.rels").arg(filePath); |
| 52 | return ret; |
| 53 | } |
| 54 | |
| 55 | ret = QString( filePath.left(idx) + QLatin1String("/_rels/") + filePath.mid(idx+1) + QLatin1String(".rels")); |
| 56 | return ret; |
| 57 | } |
| 58 | |
| 59 | double datetimeToNumber(const QDateTime &dt, bool is1904) |
| 60 | { |
no test coverage detected