Kaydet (Commit) 2987b20f authored tarafından Andreas Bregas's avatar Andreas Bregas

mib18: Merge

......@@ -207,8 +207,8 @@ void SbiExprList::Gen()
{
pParser->aGen.Gen( _ARGC );
// AB 10.1.96: Typ-Anpassung bei DECLARE
USHORT nCount = 1, nParAnz = 0;
SbiSymPool* pPool = NULL;
USHORT nCount = 1 /*, nParAnz = 0*/;
// SbiSymPool* pPool = NULL;
for( SbiExpression* pExpr = pFirst; pExpr; pExpr = pExpr->pNext,nCount++ )
{
pExpr->Gen();
......
......@@ -34,39 +34,26 @@ TARGET=comp
.INCLUDE : settings.mk
CXXFILES= \
sbcomp.cxx \
dim.cxx \
exprtree.cxx \
exprnode.cxx \
exprgen.cxx \
codegen.cxx \
io.cxx \
loops.cxx \
parser.cxx \
scanner.cxx \
token.cxx \
symtbl.cxx \
buffer.cxx
SLOFILES= \
$(SLO)$/sbcomp.obj \
$(SLO)$/buffer.obj \
$(SLO)$/codegen.obj \
$(SLO)$/dim.obj \
$(SLO)$/exprtree.obj \
$(SLO)$/exprnode.obj \
$(SLO)$/exprgen.obj \
$(SLO)$/codegen.obj \
$(SLO)$/exprnode.obj \
$(SLO)$/exprtree.obj \
$(SLO)$/io.obj \
$(SLO)$/loops.obj \
$(SLO)$/parser.obj \
$(SLO)$/sbcomp.obj \
$(SLO)$/scanner.obj \
$(SLO)$/token.obj \
$(SLO)$/symtbl.obj \
$(SLO)$/buffer.obj
$(SLO)$/token.obj
EXCEPTIONSFILES= \
$(SLO)$/parser.obj \
$(SLO)$/exprtree.obj
$(SLO)$/codegen.obj \
$(SLO)$/dim.obj \
$(SLO)$/exprtree.obj \
$(SLO)$/parser.obj
# --- Targets --------------------------------------------------------------
......
......@@ -153,28 +153,41 @@ void SAL_CALL
ScVbaUserForm::setValue( const ::rtl::OUString& aPropertyName, const uno::Any& aValue ) throw (beans::UnknownPropertyException, script::CannotConvertException, reflection::InvocationTargetException, uno::RuntimeException)
{
uno::Any aObject = getValue( aPropertyName );
// The Object *must* support XDefaultProperty here because getValue will
// only return properties that are Objects ( e.g. controls )
// e.g. Userform1.aControl = something
// 'aControl' has to support XDefaultProperty to make sense here
uno::Reference< script::XDefaultProperty > xDfltProp( aObject, uno::UNO_QUERY_THROW );
rtl::OUString aDfltPropName = xDfltProp->getDefaultPropertyName();
uno::Reference< beans::XIntrospectionAccess > xUnoAccess( getIntrospectionAccess( aObject ) );
uno::Reference< beans::XPropertySet > xPropSet( xUnoAccess->queryAdapter( ::getCppuType( (const uno::Reference< beans::XPropertySet > *)0 ) ), uno::UNO_QUERY_THROW );
xPropSet->setPropertyValue( aDfltPropName, aValue );
// in case the dialog is already closed the VBA implementation should not throw exceptions
if ( aObject.hasValue() )
{
// The Object *must* support XDefaultProperty here because getValue will
// only return properties that are Objects ( e.g. controls )
// e.g. Userform1.aControl = something
// 'aControl' has to support XDefaultProperty to make sense here
uno::Reference< script::XDefaultProperty > xDfltProp( aObject, uno::UNO_QUERY_THROW );
rtl::OUString aDfltPropName = xDfltProp->getDefaultPropertyName();
uno::Reference< beans::XIntrospectionAccess > xUnoAccess( getIntrospectionAccess( aObject ) );
uno::Reference< beans::XPropertySet > xPropSet( xUnoAccess->queryAdapter( ::getCppuType( (const uno::Reference< beans::XPropertySet > *)0 ) ), uno::UNO_QUERY_THROW );
xPropSet->setPropertyValue( aDfltPropName, aValue );
}
}
uno::Any SAL_CALL
ScVbaUserForm::getValue( const ::rtl::OUString& aPropertyName ) throw (beans::UnknownPropertyException, uno::RuntimeException)
{
uno::Reference< awt::XControl > xDialogControl( m_xDialog, uno::UNO_QUERY_THROW );
uno::Reference< awt::XControlContainer > xContainer( m_xDialog, uno::UNO_QUERY_THROW );
uno::Reference< awt::XControl > xControl = xContainer->getControl( aPropertyName );
ScVbaControlFactory aFac( mxContext, xControl, m_xModel );
uno::Reference< msforms::XControl > xVBAControl( aFac.createControl( xDialogControl->getModel() ) );
ScVbaControl* pControl = dynamic_cast< ScVbaControl* >( xVBAControl.get() );
pControl->setGeometryHelper( new UserFormGeometryHelper( mxContext, xControl ) );
return uno::makeAny( xVBAControl );
uno::Any aResult;
// in case the dialog is already closed the VBA implementation should not throw exceptions
if ( m_xDialog.is() )
{
uno::Reference< awt::XControl > xDialogControl( m_xDialog, uno::UNO_QUERY_THROW );
uno::Reference< awt::XControlContainer > xContainer( m_xDialog, uno::UNO_QUERY_THROW );
uno::Reference< awt::XControl > xControl = xContainer->getControl( aPropertyName );
ScVbaControlFactory aFac( mxContext, xControl, m_xModel );
uno::Reference< msforms::XControl > xVBAControl( aFac.createControl( xDialogControl->getModel() ) );
ScVbaControl* pControl = dynamic_cast< ScVbaControl* >( xVBAControl.get() );
pControl->setGeometryHelper( new UserFormGeometryHelper( mxContext, xControl ) );
aResult = uno::makeAny( xVBAControl );
}
return aResult;
}
::sal_Bool SAL_CALL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment