summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unocoll.cxx
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2011-02-21 12:10:36 +0000
committerNoel Power <noel.power@novell.com>2011-02-21 12:41:46 +0000
commit2747138cb602c42b7839426e0193b31be3b330ed (patch)
tree031e6b21233266566074cee6b6a70044d4abaa3a /sw/source/core/unocore/unocoll.cxx
parent79a3c41c756f20aa6d9c603bb994c49f70fd052a (diff)
make docx import cater for enhanced fields
introduced some new services for enhanced fields ( checkbox & dropdown ) that wrap existing implementations.
Diffstat (limited to 'sw/source/core/unocore/unocoll.cxx')
-rw-r--r--sw/source/core/unocore/unocoll.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/source/core/unocore/unocoll.cxx b/sw/source/core/unocore/unocoll.cxx
index e508e75bbf..7b037e9029 100644
--- a/sw/source/core/unocore/unocoll.cxx
+++ b/sw/source/core/unocore/unocoll.cxx
@@ -399,6 +399,8 @@ const ProvNamesId_Type aProvNamesId[] =
{ "ooo.vba.VBAObjectModuleObjectProvider", SW_SERVICE_VBAOBJECTPROVIDER },
{ "ooo.vba.VBACodeNameProvider", SW_SERVICE_VBACODENAMEPROVIDER },
{ "ooo.vba.VBAProjectNameProvider", SW_SERVICE_VBAPROJECTNAMEPROVIDER },
+ { "com.sun.star.text.FormFieldmark.ODFFormCheckbox", SW_SERVICE_ODF_FORM_CHECKBOX },
+ { "com.sun.star.text.FormFieldmark.ODFFormListbox", SW_SERVICE_ODF_FORM_LISTBOX },
{ "ooo.vba.VBAGlobals", SW_SERVICE_VBAGLOBALS },
// case-correct versions of the service names (see #i67811)
@@ -561,6 +563,7 @@ uno::Reference< uno::XInterface > SwXServiceProvider::MakeInstance(sal_uInt16
xRet = (cppu::OWeakObject*)pFieldmark;
}
break;
+ case SW_SERVICE_ODF_FORM_LISTBOX:
case SW_SERVICE_TYPE_FORMFIELDMARK :
{
SwXFieldmark* pFieldmark = new SwXFieldmark(true);
@@ -835,6 +838,12 @@ uno::Reference< uno::XInterface > SwXServiceProvider::MakeInstance(sal_uInt16
case SW_SERVICE_FIELDTYPE_METAFIELD:
xRet = static_cast< ::cppu::OWeakObject* >(new SwXMetaField(pDoc));
break;
+ case SW_SERVICE_ODF_FORM_CHECKBOX:
+ {
+ SwXFieldmark* pFormCheckbox = new SwXODFCheckboxField();
+ xRet = (cppu::OWeakObject*)pFormCheckbox;
+ }
+ break;
default:
throw uno::RuntimeException();
}