diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-03-15 11:01:58 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-03-15 11:02:24 +0100 |
commit | 82b6c4884d7b2fbb3d45980785cebba7a159fb10 (patch) | |
tree | a16f2289c40ccc565173f28bd4cc0597c86f9619 /writerperfect/source/writer | |
parent | 07073a198a644d67579a00984aae208c79c4f92f (diff) |
Add typedetection and configuration for MWAW based filters
Change-Id: Icf489a49c547a93458aeef1c70ba699181a47c38
Diffstat (limited to 'writerperfect/source/writer')
-rw-r--r-- | writerperfect/source/writer/MWAWImportFilter.cxx | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/writerperfect/source/writer/MWAWImportFilter.cxx b/writerperfect/source/writer/MWAWImportFilter.cxx index 7c1d823c41d3..27270987721a 100644 --- a/writerperfect/source/writer/MWAWImportFilter.cxx +++ b/writerperfect/source/writer/MWAWImportFilter.cxx @@ -923,6 +923,73 @@ throw( com::sun::star::uno::RuntimeException ) if ((confidence == MWAW_CONFIDENCE_EXCELLENT) || (confidence == MWAW_CONFIDENCE_GOOD)) { + if ( docKind == MWAWDocument::K_TEXT ) + { + switch (docType) + { + case MWAWDocument::ACT: // Acta (nothing done ) + break; + case MWAWDocument::CW: // ClarisWorks/AppleWorks document (basic) + sTypeName = "writer_ClarisWorks"; + break; + case MWAWDocument::DM: // DocMaker (v4) + sTypeName = "writer_DocMaker"; + break; + case MWAWDocument::ED: // eDOC (v2) + sTypeName = "writer_eDoc_Document"; + break; + case MWAWDocument::FULLW: // FullWrite Professional (basic) + sTypeName = "writer_FullWrite_Professional"; + break; + case MWAWDocument::HMAC: // HanMac Word-K (basic done) + sTypeName = "writer_HanMac_Word_K"; + break; + case MWAWDocument::HMACJ: // HanMac Word-J ( almost nothing done for J document) + sTypeName = "writer_HanMac_Word_J"; + break; + case MWAWDocument::LWTEXT: // LightWayText ( only v4.5 Mac format ) + sTypeName = "writer_LightWayText"; + break; + case MWAWDocument::MARIW: // Mariner Write ( only v1.6-v3.5 Mac Classic) + sTypeName = "writer_Mariner_Write"; + break; + case MWAWDocument::MINDW: // MindWrite + sTypeName = "writer_MindWrite"; + break; + case MWAWDocument::MW: // MacWrite document + sTypeName = "writer_MacWrite"; + break; + case MWAWDocument::MWPRO: // MacWriteII or MacWritePro document + sTypeName = "writer_MacWritePro"; + break; + case MWAWDocument::MSWORD: // MSWord document (v4 v5: basic done) + sTypeName = "writer_Mac_Word"; + break; + case MWAWDocument::MSWORKS: // MSWorks document (v1 v2) + sTypeName = "writer_Mac_Works"; + break; + case MWAWDocument::NISUSW: // Nisus Writer document: v3.4-v6.5 + sTypeName = "writer_Nisus_Writer"; + break; + case MWAWDocument::TEACH: // TeachText or SimpleText: v1 + sTypeName = "writer_TeachText"; + break; + case MWAWDocument::TEDIT: // Tex-Edit v2 + sTypeName = "writer_TexEDit"; + break; + case MWAWDocument::WNOW: // WriteNow + sTypeName = "writer_WriteNow"; + break; + case MWAWDocument::WPLUS: // writerplus document + sTypeName = "writer_WritePlus"; + break; + case MWAWDocument::ZWRT: // Z-Write : v1.3 + sTypeName = "writer_ZWrite"; + break; + default: + break; + } + } } if (!sTypeName.isEmpty()) |