one line per paragraph
| 2211 | |
| 2212 | /// one line per paragraph |
| 2213 | bool DoPMLImport(LVXMLParserCallback * callback) |
| 2214 | { |
| 2215 | CRLog::debug("DoPMLImport()"); |
| 2216 | RemoveLines( length() ); |
| 2217 | file->Reset(); |
| 2218 | file->SetCharset(L"windows-1252"); |
| 2219 | ReadLines( 100 ); |
| 2220 | int remainingLines = 0; |
| 2221 | PMLTextImport importer(callback); |
| 2222 | do { |
| 2223 | for ( int i=remainingLines; i<length(); i++ ) { |
| 2224 | LVTextFileLine * item = get(i); |
| 2225 | importer.processLine(item->text); |
| 2226 | file->updateProgress(); |
| 2227 | } |
| 2228 | RemoveLines( length()-3 ); |
| 2229 | remainingLines = 3; |
| 2230 | } while ( ReadLines( 100 ) ); |
| 2231 | importer.endPage(); |
| 2232 | return true; |
| 2233 | } |
| 2234 | |
| 2235 | /// one line per paragraph |
| 2236 | bool DoParaPerLineImport(LVXMLParserCallback * callback) |
nothing calls this directly
no test coverage detected