Kaydet (Commit) ab94f468 authored tarafından Miklos Vajna's avatar Miklos Vajna

DOC import: handle smart tags via RES_FLTR_RDFMARK

The idea is that a subset of the smart tags will be mapped to RDF
statements, as done already in the DOCX importer.

Change-Id: I46e0dad37a3905fe591cba0f710156f27be05ff4
üst f30ea8d9
......@@ -1701,6 +1701,7 @@ public: // really private, but can only be done public
long Read_Book(WW8PLCFManResult*);
long Read_And(WW8PLCFManResult* pRes);
long Read_AtnBook(WW8PLCFManResult*);
long Read_FactoidBook(WW8PLCFManResult*);
// attributes
......
......@@ -242,6 +242,18 @@ long SwWW8ImplReader::Read_AtnBook(WW8PLCFManResult*)
return 0;
}
long SwWW8ImplReader::Read_FactoidBook(WW8PLCFManResult*)
{
if (WW8PLCFx_FactoidBook* pFactoidBook = m_pPlcxMan->GetFactoidBook())
{
if (pFactoidBook->getIsEnd())
m_pReffedStck->SetAttr(*m_pPaM->GetPoint(), RES_FLTR_RDFMARK, true, pFactoidBook->getHandle());
else
m_pReffedStck->NewAttr(*m_pPaM->GetPoint(), CntUInt16Item(RES_FLTR_RDFMARK, pFactoidBook->getHandle()));
}
return 0;
}
// general help methods to separate parameters
/// translate FieldParameter names into the system character set and
......
......@@ -5033,7 +5033,8 @@ long SwWW8ImplReader::ImportExtSprm(WW8PLCFManResult* pRes)
/* 2 (258) */ &SwWW8ImplReader::Read_Field, // Feld
/* 3 (259) */ &SwWW8ImplReader::Read_Book, // Bookmark
/* 4 (260) */ &SwWW8ImplReader::Read_And, // Annotation
/* 5 (261) */ &SwWW8ImplReader::Read_AtnBook // Annotationmark
/* 5 (261) */ &SwWW8ImplReader::Read_AtnBook, // Annotationmark
/* 6 (262) */ &SwWW8ImplReader::Read_FactoidBook // Smart tag bookmark
};
if( pRes->nSprmId < 280 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment