baside2.cxx (8a25ac93) baside2.cxx (0848378b)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 356 unchanged lines hidden (view full) ---

365 {
366 pMethod = pM;
367 nCurMethodStart = nStart;
368 }
369 }
370 if ( !pMethod )
371 {
372 if ( aDocument.isInVBAMode() )
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 356 unchanged lines hidden (view full) ---

365 {
366 pMethod = pM;
367 nCurMethodStart = nStart;
368 }
369 }
370 if ( !pMethod )
371 {
372 if ( aDocument.isInVBAMode() )
373 return ( BasicIDE::ChooseMacro( uno::Reference< frame::XModel >(), sal_False, rtl::OUString() ).getLength() > 0 ) ? sal_True : sal_False;
373 return ( BasicIDE::ChooseMacro( uno::Reference< frame::XModel >(), sal_False, rtl::OUString() ).isEmpty() == false ) ? sal_True : sal_False;
374 else
375 pMethod = (SbMethod*)xModule->Find( String( RTL_CONSTASCII_USTRINGPARAM( "Main" ) ), SbxCLASS_METHOD );
376 }
377 if ( pMethod )
378 {
379 pMethod->SetDebugFlags( aStatus.nBasicFlags );
380 BasicDLL::SetDebugMode( sal_True );
381 BasicIDE::RunMethod( pMethod );

--- 1400 unchanged lines hidden ---
374 else
375 pMethod = (SbMethod*)xModule->Find( String( RTL_CONSTASCII_USTRINGPARAM( "Main" ) ), SbxCLASS_METHOD );
376 }
377 if ( pMethod )
378 {
379 pMethod->SetDebugFlags( aStatus.nBasicFlags );
380 BasicDLL::SetDebugMode( sal_True );
381 BasicIDE::RunMethod( pMethod );

--- 1400 unchanged lines hidden ---