From 63f4b1367f9e38eab22cb89da6a5bc6898a3a0ce Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 11 Jul 2011 13:19:37 +0200 Subject: [PATCH] implement RTF_FFDEFRES and RTF_FFRES for checkboxes --- writerfilter/source/rtftok/rtfdocumentimpl.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index ee338e274eea..96caeb219efb 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -1913,6 +1913,14 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) case RTF_FFTYPE: m_nFormFieldType = nParam; break; + case RTF_FFDEFRES: + if (m_nFormFieldType == 1) + m_aFormfieldSprms.push_back(make_pair(NS_ooxml::LN_CT_FFCheckBox_default, pIntValue)); + break; + case RTF_FFRES: + if (m_nFormFieldType == 1) + m_aFormfieldSprms.push_back(make_pair(NS_ooxml::LN_CT_FFCheckBox_checked, pIntValue)); + break; default: OSL_TRACE("%s: TODO handle value '%s'", OSL_THIS_FUNC, lcl_RtfToString(nKeyword)); bParsed = false;