summaryrefslogtreecommitdiff
path: root/xmloff/source/xforms/xformsapi.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/xforms/xformsapi.cxx')
-rw-r--r--xmloff/source/xforms/xformsapi.cxx26
1 files changed, 0 insertions, 26 deletions
diff --git a/xmloff/source/xforms/xformsapi.cxx b/xmloff/source/xforms/xformsapi.cxx
index e07c9f0e46a4..f47e7aaeab4f 100644
--- a/xmloff/source/xforms/xformsapi.cxx
+++ b/xmloff/source/xforms/xformsapi.cxx
@@ -191,32 +191,6 @@ void lcl_setValue( Reference<XPropertySet>& xPropertySet,
xPropertySet->setPropertyValue( rName, rAny );
}
-
-Reference<XPropertySet> lcl_getXFormsModel( const Reference<frame::XModel>& xDoc )
-{
- Reference<XPropertySet> xRet;
- try
- {
- Reference<XFormsSupplier> xSupplier( xDoc, UNO_QUERY );
- if( xSupplier.is() )
- {
- Reference<XNameContainer> xForms = xSupplier->getXForms();
- if( xForms.is() )
- {
- Sequence<OUString> aNames = xForms->getElementNames();
- if( aNames.getLength() > 0 )
- xRet.set( xForms->getByName( aNames[0] ), UNO_QUERY );
- }
- }
- }
- catch( const Exception& )
- {
- ; // no success!
- }
-
- return xRet;
-}
-
#define TOKEN_MAP_ENTRY(NAMESPACE,TOKEN) { XML_NAMESPACE_##NAMESPACE, xmloff::token::XML_##TOKEN, xmloff::token::XML_##TOKEN }
static SvXMLTokenMapEntry aTypes[] =
{