fix fdo#30856 remove VBAForm property and associated geometry hack

This commit is contained in:
Noel Power
2010-10-15 13:00:04 +01:00
parent 65637b67f5
commit e63e28d7d6

View File

@@ -1922,11 +1922,6 @@ Reference< xml::sax::XDocumentHandler > SAL_CALL importDialogModel(
SAL_THROW( (Exception) )
{
DialogImport* pImport = new DialogImport( xContext, xDialogModel, xDocument );
uno::Reference< script::vba::XVBACompatibility > xVBAModeSource( pImport->getScriptLibraryContainer(), uno::UNO_QUERY );
uno::Reference< beans::XPropertySet > xDlgProps( xDialogModel, uno::UNO_QUERY );
if ( xVBAModeSource.is() && xDlgProps.is() && xVBAModeSource->getVBACompatibilityMode() )
xDlgProps->setPropertyValue( OUSTR("VBAForm"), uno::makeAny( sal_True ) );
return ::xmlscript::createDocumentHandler(
static_cast< xml::input::XRoot * >( pImport ) );
}