enter formfield destination

This commit is contained in:
Miklos Vajna 2011-07-11 11:40:24 +02:00
parent 94855fbbb9
commit bc49087c32
2 changed files with 5 additions and 1 deletions

View file

@ -927,6 +927,9 @@ int RTFDocumentImpl::dispatchDestination(RTFKeyword nKeyword)
OSL_ENSURE(!m_aShapetextBuffer.size(), "shapetext buffer is not empty");
m_pCurrentBuffer = &m_aShapetextBuffer;
break;
case RTF_FORMFIELD:
m_aStates.top().nDestinationState = DESTINATION_FORMFIELD;
break;
case RTF_LISTTEXT:
// Should be ignored by any reader that understands Word 97 through Word 2007 numbering.
case RTF_NONESTTABLES:

View file

@ -92,7 +92,8 @@ namespace writerfilter {
DESTINATION_BOOKMARKEND,
DESTINATION_REVISIONTABLE,
DESTINATION_REVISIONENTRY,
DESTINATION_SHAPETEXT
DESTINATION_SHAPETEXT,
DESTINATION_FORMFIELD
};
enum RTFBorderState