RTF_FFTYPE: we need it later, but not dmapper

This commit is contained in:
Miklos Vajna 2011-07-11 13:11:48 +02:00
parent 0e7ac3bc01
commit a17c8edd5a
2 changed files with 6 additions and 1 deletions

View file

@ -274,7 +274,8 @@ RTFDocumentImpl::RTFDocumentImpl(uno::Reference<uno::XComponentContext> const& x
m_aBookmarks(), m_aBookmarks(),
m_aAuthors(), m_aAuthors(),
m_aFormfieldSprms(), m_aFormfieldSprms(),
m_aFormfieldAttributes() m_aFormfieldAttributes(),
m_nFormFieldType(0)
{ {
OSL_ASSERT(xInputStream.is()); OSL_ASSERT(xInputStream.is());
m_pInStream = utl::UcbStreamHelper::CreateStream(xInputStream, sal_True); m_pInStream = utl::UcbStreamHelper::CreateStream(xInputStream, sal_True);
@ -1909,6 +1910,9 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
case RTF_SHPBOTTOM: case RTF_SHPBOTTOM:
m_aStates.top().aShape.nBottom = TWIP_TO_MM100(nParam); m_aStates.top().aShape.nBottom = TWIP_TO_MM100(nParam);
break; break;
case RTF_FFTYPE:
m_nFormFieldType = nParam;
break;
default: default:
OSL_TRACE("%s: TODO handle value '%s'", OSL_THIS_FUNC, lcl_RtfToString(nKeyword)); OSL_TRACE("%s: TODO handle value '%s'", OSL_THIS_FUNC, lcl_RtfToString(nKeyword));
bParsed = false; bParsed = false;

View file

@ -333,6 +333,7 @@ namespace writerfilter {
RTFSprms_t m_aFormfieldSprms; RTFSprms_t m_aFormfieldSprms;
RTFSprms_t m_aFormfieldAttributes; RTFSprms_t m_aFormfieldAttributes;
int m_nFormFieldType;
}; };
} // namespace rtftok } // namespace rtftok
} // namespace writerfilter } // namespace writerfilter