1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir #include <vbahelper/helperdecl.hxx> 28*cdf0e10cSrcweir #include "vbaglobals.hxx" 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir #include <comphelper/unwrapargs.hxx> 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir #include <com/sun/star/lang/XMultiComponentFactory.hpp> 33*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp> 34*cdf0e10cSrcweir #include <cppuhelper/component_context.hxx> 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir #include "vbaapplication.hxx" 37*cdf0e10cSrcweir #include "vbaworksheet.hxx" 38*cdf0e10cSrcweir #include "vbarange.hxx" 39*cdf0e10cSrcweir #include <cppuhelper/bootstrap.hxx> 40*cdf0e10cSrcweir using namespace ::com::sun::star; 41*cdf0e10cSrcweir using namespace ::com::sun::star::uno; 42*cdf0e10cSrcweir using namespace ::ooo::vba; 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir // ============================================================================= 47*cdf0e10cSrcweir // ScVbaGlobals 48*cdf0e10cSrcweir // ============================================================================= 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir //ScVbaGlobals::ScVbaGlobals( css::uno::Reference< css::uno::XComponentContext >const& rxContext, ) : ScVbaGlobals_BASE( uno::Reference< XHelperInterface >(), rxContext ) 51*cdf0e10cSrcweir rtl::OUString sDocCtxName( RTL_CONSTASCII_USTRINGPARAM("ExcelDocumentContext") ); 52*cdf0e10cSrcweir 53*cdf0e10cSrcweir ScVbaGlobals::ScVbaGlobals( uno::Sequence< uno::Any > const& aArgs, uno::Reference< uno::XComponentContext >const& rxContext ) : ScVbaGlobals_BASE( uno::Reference< XHelperInterface >(), rxContext, sDocCtxName ) 54*cdf0e10cSrcweir { 55*cdf0e10cSrcweir OSL_TRACE("ScVbaGlobals::ScVbaGlobals()"); 56*cdf0e10cSrcweir 57*cdf0e10cSrcweir uno::Sequence< beans::PropertyValue > aInitArgs( 2 ); 58*cdf0e10cSrcweir aInitArgs[ 0 ].Name = rtl::OUString::createFromAscii("Application"); 59*cdf0e10cSrcweir aInitArgs[ 0 ].Value = uno::makeAny( getApplication() ); 60*cdf0e10cSrcweir aInitArgs[ 1 ].Name = sDocCtxName; 61*cdf0e10cSrcweir aInitArgs[ 1 ].Value = uno::makeAny( getXSomethingFromArgs< frame::XModel >( aArgs, 0 ) ); 62*cdf0e10cSrcweir 63*cdf0e10cSrcweir init( aInitArgs ); 64*cdf0e10cSrcweir } 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir ScVbaGlobals::~ScVbaGlobals() 67*cdf0e10cSrcweir { 68*cdf0e10cSrcweir OSL_TRACE("ScVbaGlobals::~ScVbaGlobals"); 69*cdf0e10cSrcweir } 70*cdf0e10cSrcweir 71*cdf0e10cSrcweir // ============================================================================= 72*cdf0e10cSrcweir // XGlobals 73*cdf0e10cSrcweir // ============================================================================= 74*cdf0e10cSrcweir uno::Reference<excel::XApplication > 75*cdf0e10cSrcweir ScVbaGlobals::getApplication() throw (uno::RuntimeException) 76*cdf0e10cSrcweir { 77*cdf0e10cSrcweir // OSL_TRACE("In ScVbaGlobals::getApplication"); 78*cdf0e10cSrcweir if ( !mxApplication.is() ) 79*cdf0e10cSrcweir mxApplication.set( new ScVbaApplication( mxContext) ); 80*cdf0e10cSrcweir return mxApplication; 81*cdf0e10cSrcweir } 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir 84*cdf0e10cSrcweir uno::Reference<excel::XApplication > SAL_CALL 85*cdf0e10cSrcweir ScVbaGlobals::getExcel() throw (uno::RuntimeException) 86*cdf0e10cSrcweir { 87*cdf0e10cSrcweir return getApplication(); 88*cdf0e10cSrcweir } 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir 91*cdf0e10cSrcweir 92*cdf0e10cSrcweir uno::Reference< excel::XWorkbook > SAL_CALL 93*cdf0e10cSrcweir ScVbaGlobals::getActiveWorkbook() throw (uno::RuntimeException) 94*cdf0e10cSrcweir { 95*cdf0e10cSrcweir // OSL_TRACE("In ScVbaGlobals::getActiveWorkbook"); 96*cdf0e10cSrcweir uno::Reference< excel::XWorkbook > xWorkbook( getApplication()->getActiveWorkbook(), uno::UNO_QUERY); 97*cdf0e10cSrcweir if ( xWorkbook.is() ) 98*cdf0e10cSrcweir { 99*cdf0e10cSrcweir return xWorkbook; 100*cdf0e10cSrcweir } 101*cdf0e10cSrcweir // FIXME check if this is correct/desired behavior 102*cdf0e10cSrcweir throw uno::RuntimeException( rtl::OUString::createFromAscii( 103*cdf0e10cSrcweir "No activeWorkbook available" ), Reference< uno::XInterface >() ); 104*cdf0e10cSrcweir } 105*cdf0e10cSrcweir 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir uno::Reference< excel::XWindow > SAL_CALL 108*cdf0e10cSrcweir ScVbaGlobals::getActiveWindow() throw (uno::RuntimeException) 109*cdf0e10cSrcweir { 110*cdf0e10cSrcweir return getApplication()->getActiveWindow(); 111*cdf0e10cSrcweir } 112*cdf0e10cSrcweir 113*cdf0e10cSrcweir uno::Reference< excel::XWorksheet > SAL_CALL 114*cdf0e10cSrcweir ScVbaGlobals::getActiveSheet() throw (uno::RuntimeException) 115*cdf0e10cSrcweir { 116*cdf0e10cSrcweir return getApplication()->getActiveSheet(); 117*cdf0e10cSrcweir } 118*cdf0e10cSrcweir 119*cdf0e10cSrcweir uno::Any SAL_CALL 120*cdf0e10cSrcweir ScVbaGlobals::WorkBooks( const uno::Any& aIndex ) throw (uno::RuntimeException) 121*cdf0e10cSrcweir { 122*cdf0e10cSrcweir return uno::Any( getApplication()->Workbooks(aIndex) ); 123*cdf0e10cSrcweir } 124*cdf0e10cSrcweir 125*cdf0e10cSrcweir uno::Any SAL_CALL 126*cdf0e10cSrcweir ScVbaGlobals::WorkSheets(const uno::Any& aIndex) throw (uno::RuntimeException) 127*cdf0e10cSrcweir { 128*cdf0e10cSrcweir return getApplication()->Worksheets( aIndex ); 129*cdf0e10cSrcweir } 130*cdf0e10cSrcweir uno::Any SAL_CALL 131*cdf0e10cSrcweir ScVbaGlobals::Sheets( const uno::Any& aIndex ) throw (uno::RuntimeException) 132*cdf0e10cSrcweir { 133*cdf0e10cSrcweir return WorkSheets( aIndex ); 134*cdf0e10cSrcweir } 135*cdf0e10cSrcweir 136*cdf0e10cSrcweir uno::Any SAL_CALL 137*cdf0e10cSrcweir ScVbaGlobals::Range( const uno::Any& Cell1, const uno::Any& Cell2 ) throw (uno::RuntimeException) 138*cdf0e10cSrcweir { 139*cdf0e10cSrcweir return getApplication()->Range( Cell1, Cell2 ); 140*cdf0e10cSrcweir } 141*cdf0e10cSrcweir 142*cdf0e10cSrcweir uno::Any SAL_CALL 143*cdf0e10cSrcweir ScVbaGlobals::Names( const css::uno::Any& aIndex ) throw ( uno::RuntimeException ) 144*cdf0e10cSrcweir { 145*cdf0e10cSrcweir return getApplication()->Names( aIndex ); 146*cdf0e10cSrcweir } 147*cdf0e10cSrcweir 148*cdf0e10cSrcweir uno::Reference< excel::XRange > SAL_CALL 149*cdf0e10cSrcweir ScVbaGlobals::getActiveCell() throw (uno::RuntimeException) 150*cdf0e10cSrcweir { 151*cdf0e10cSrcweir return getApplication()->getActiveCell(); 152*cdf0e10cSrcweir } 153*cdf0e10cSrcweir 154*cdf0e10cSrcweir uno::Reference< XAssistant > SAL_CALL 155*cdf0e10cSrcweir ScVbaGlobals::getAssistant() throw (uno::RuntimeException) 156*cdf0e10cSrcweir { 157*cdf0e10cSrcweir return getApplication()->getAssistant(); 158*cdf0e10cSrcweir } 159*cdf0e10cSrcweir 160*cdf0e10cSrcweir uno::Any SAL_CALL 161*cdf0e10cSrcweir ScVbaGlobals::getSelection() throw (uno::RuntimeException) 162*cdf0e10cSrcweir { 163*cdf0e10cSrcweir return getApplication()->getSelection(); 164*cdf0e10cSrcweir } 165*cdf0e10cSrcweir 166*cdf0e10cSrcweir uno::Reference< excel::XWorkbook > SAL_CALL 167*cdf0e10cSrcweir ScVbaGlobals::getThisWorkbook() throw (uno::RuntimeException) 168*cdf0e10cSrcweir { 169*cdf0e10cSrcweir return getApplication()->getThisWorkbook(); 170*cdf0e10cSrcweir } 171*cdf0e10cSrcweir void SAL_CALL 172*cdf0e10cSrcweir ScVbaGlobals::Calculate() throw (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) 173*cdf0e10cSrcweir { 174*cdf0e10cSrcweir return getApplication()->Calculate(); 175*cdf0e10cSrcweir } 176*cdf0e10cSrcweir 177*cdf0e10cSrcweir uno::Reference< excel::XRange > SAL_CALL 178*cdf0e10cSrcweir ScVbaGlobals::Cells( const uno::Any& RowIndex, const uno::Any& ColumnIndex ) throw (uno::RuntimeException) 179*cdf0e10cSrcweir { 180*cdf0e10cSrcweir return getApplication()->getActiveSheet()->Cells( RowIndex, ColumnIndex ); 181*cdf0e10cSrcweir } 182*cdf0e10cSrcweir uno::Reference< excel::XRange > SAL_CALL 183*cdf0e10cSrcweir ScVbaGlobals::Columns( const uno::Any& aIndex ) throw (uno::RuntimeException) 184*cdf0e10cSrcweir { 185*cdf0e10cSrcweir return getApplication()->getActiveSheet()->Columns( aIndex ); 186*cdf0e10cSrcweir } 187*cdf0e10cSrcweir 188*cdf0e10cSrcweir uno::Any SAL_CALL 189*cdf0e10cSrcweir ScVbaGlobals::CommandBars( const uno::Any& aIndex ) throw (uno::RuntimeException) 190*cdf0e10cSrcweir { 191*cdf0e10cSrcweir uno::Reference< XApplicationBase > xBase( getApplication(), uno::UNO_QUERY_THROW ); 192*cdf0e10cSrcweir return xBase->CommandBars( aIndex ); 193*cdf0e10cSrcweir } 194*cdf0e10cSrcweir 195*cdf0e10cSrcweir css::uno::Reference< ov::excel::XRange > SAL_CALL 196*cdf0e10cSrcweir ScVbaGlobals::Union( const css::uno::Reference< ov::excel::XRange >& Arg1, const css::uno::Reference< ov::excel::XRange >& Arg2, const css::uno::Any& Arg3, const css::uno::Any& Arg4, const css::uno::Any& Arg5, const css::uno::Any& Arg6, const css::uno::Any& Arg7, const css::uno::Any& Arg8, const css::uno::Any& Arg9, const css::uno::Any& Arg10, const css::uno::Any& Arg11, const css::uno::Any& Arg12, const css::uno::Any& Arg13, const css::uno::Any& Arg14, const css::uno::Any& Arg15, const css::uno::Any& Arg16, const css::uno::Any& Arg17, const css::uno::Any& Arg18, const css::uno::Any& Arg19, const css::uno::Any& Arg20, const css::uno::Any& Arg21, const css::uno::Any& Arg22, const css::uno::Any& Arg23, const css::uno::Any& Arg24, const css::uno::Any& Arg25, const css::uno::Any& Arg26, const css::uno::Any& Arg27, const css::uno::Any& Arg28, const css::uno::Any& Arg29, const css::uno::Any& Arg30 ) throw (css::script::BasicErrorException, css::uno::RuntimeException) 197*cdf0e10cSrcweir { 198*cdf0e10cSrcweir return getApplication()->Union( Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14, Arg15, Arg16, Arg17, Arg18, Arg19, Arg20, Arg21, Arg22, Arg23, Arg24, Arg25, Arg26, Arg27, Arg28, Arg29, Arg30 ); 199*cdf0e10cSrcweir } 200*cdf0e10cSrcweir css::uno::Reference< ov::excel::XRange > SAL_CALL 201*cdf0e10cSrcweir ScVbaGlobals::Intersect( const css::uno::Reference< ov::excel::XRange >& Arg1, const css::uno::Reference< ov::excel::XRange >& Arg2, const css::uno::Any& Arg3, const css::uno::Any& Arg4, const css::uno::Any& Arg5, const css::uno::Any& Arg6, const css::uno::Any& Arg7, const css::uno::Any& Arg8, const css::uno::Any& Arg9, const css::uno::Any& Arg10, const css::uno::Any& Arg11, const css::uno::Any& Arg12, const css::uno::Any& Arg13, const css::uno::Any& Arg14, const css::uno::Any& Arg15, const css::uno::Any& Arg16, const css::uno::Any& Arg17, const css::uno::Any& Arg18, const css::uno::Any& Arg19, const css::uno::Any& Arg20, const css::uno::Any& Arg21, const css::uno::Any& Arg22, const css::uno::Any& Arg23, const css::uno::Any& Arg24, const css::uno::Any& Arg25, const css::uno::Any& Arg26, const css::uno::Any& Arg27, const css::uno::Any& Arg28, const css::uno::Any& Arg29, const css::uno::Any& Arg30 ) throw (css::script::BasicErrorException, css::uno::RuntimeException) 202*cdf0e10cSrcweir { 203*cdf0e10cSrcweir return getApplication()->Intersect( Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14, Arg15, Arg16, Arg17, Arg18, Arg19, Arg20, Arg21, Arg22, Arg23, Arg24, Arg25, Arg26, Arg27, Arg28, Arg29, Arg30 ); 204*cdf0e10cSrcweir } 205*cdf0e10cSrcweir 206*cdf0e10cSrcweir uno::Any SAL_CALL 207*cdf0e10cSrcweir ScVbaGlobals::Evaluate( const ::rtl::OUString& Name ) throw (uno::RuntimeException) 208*cdf0e10cSrcweir { 209*cdf0e10cSrcweir return getApplication()->Evaluate( Name ); 210*cdf0e10cSrcweir } 211*cdf0e10cSrcweir 212*cdf0e10cSrcweir css::uno::Any SAL_CALL 213*cdf0e10cSrcweir ScVbaGlobals::WorksheetFunction( ) throw (css::uno::RuntimeException) 214*cdf0e10cSrcweir { 215*cdf0e10cSrcweir return getApplication()->WorksheetFunction(); 216*cdf0e10cSrcweir } 217*cdf0e10cSrcweir 218*cdf0e10cSrcweir uno::Any SAL_CALL 219*cdf0e10cSrcweir ScVbaGlobals::Windows( const uno::Any& aIndex ) throw (uno::RuntimeException) 220*cdf0e10cSrcweir { 221*cdf0e10cSrcweir return getApplication()->Windows( aIndex ); 222*cdf0e10cSrcweir } 223*cdf0e10cSrcweir 224*cdf0e10cSrcweir uno::Reference< excel::XRange > SAL_CALL 225*cdf0e10cSrcweir ScVbaGlobals::Rows( const uno::Any& aIndex ) throw (uno::RuntimeException) 226*cdf0e10cSrcweir { 227*cdf0e10cSrcweir return getApplication()->getActiveSheet()->Rows( aIndex ); 228*cdf0e10cSrcweir 229*cdf0e10cSrcweir } 230*cdf0e10cSrcweir 231*cdf0e10cSrcweir 232*cdf0e10cSrcweir uno::Any SAL_CALL 233*cdf0e10cSrcweir ScVbaGlobals::getDebug() throw (uno::RuntimeException) 234*cdf0e10cSrcweir { 235*cdf0e10cSrcweir try // return empty object on error 236*cdf0e10cSrcweir { 237*cdf0e10cSrcweir uno::Reference< lang::XMultiComponentFactory > xServiceManager( mxContext->getServiceManager(), uno::UNO_SET_THROW ); 238*cdf0e10cSrcweir uno::Reference< uno::XInterface > xVBADebug = xServiceManager->createInstanceWithContext( 239*cdf0e10cSrcweir ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ooo.vba.Debug" ) ), mxContext ); 240*cdf0e10cSrcweir return uno::Any( xVBADebug ); 241*cdf0e10cSrcweir } 242*cdf0e10cSrcweir catch( uno::Exception& ) 243*cdf0e10cSrcweir { 244*cdf0e10cSrcweir } 245*cdf0e10cSrcweir return uno::Any(); 246*cdf0e10cSrcweir } 247*cdf0e10cSrcweir 248*cdf0e10cSrcweir uno::Sequence< ::rtl::OUString > SAL_CALL 249*cdf0e10cSrcweir ScVbaGlobals::getAvailableServiceNames( ) throw (uno::RuntimeException) 250*cdf0e10cSrcweir { 251*cdf0e10cSrcweir static bool bInit = false; 252*cdf0e10cSrcweir static uno::Sequence< rtl::OUString > serviceNames( ScVbaGlobals_BASE::getAvailableServiceNames() ); 253*cdf0e10cSrcweir if ( !bInit ) 254*cdf0e10cSrcweir { 255*cdf0e10cSrcweir rtl::OUString names[] = { 256*cdf0e10cSrcweir ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "ooo.vba.excel.Range" ) ), 257*cdf0e10cSrcweir ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "ooo.vba.excel.Workbook" ) ), 258*cdf0e10cSrcweir ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "ooo.vba.excel.Window" ) ), 259*cdf0e10cSrcweir ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "ooo.vba.excel.Worksheet" ) ), 260*cdf0e10cSrcweir ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "ooo.vba.excel.Application" ) ), 261*cdf0e10cSrcweir ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "ooo.vba.excel.Hyperlink" ) ), 262*cdf0e10cSrcweir ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.script.vba.VBASpreadsheetEventProcessor" ) ) 263*cdf0e10cSrcweir }; 264*cdf0e10cSrcweir sal_Int32 nExcelServices = ( sizeof( names )/ sizeof( names[0] ) ); 265*cdf0e10cSrcweir sal_Int32 startIndex = serviceNames.getLength(); 266*cdf0e10cSrcweir serviceNames.realloc( serviceNames.getLength() + nExcelServices ); 267*cdf0e10cSrcweir for ( sal_Int32 index = 0; index < nExcelServices; ++index ) 268*cdf0e10cSrcweir serviceNames[ startIndex + index ] = names[ index ]; 269*cdf0e10cSrcweir bInit = true; 270*cdf0e10cSrcweir } 271*cdf0e10cSrcweir return serviceNames; 272*cdf0e10cSrcweir } 273*cdf0e10cSrcweir 274*cdf0e10cSrcweir rtl::OUString& 275*cdf0e10cSrcweir ScVbaGlobals::getServiceImplName() 276*cdf0e10cSrcweir { 277*cdf0e10cSrcweir static rtl::OUString sImplName( RTL_CONSTASCII_USTRINGPARAM("ScVbaGlobals") ); 278*cdf0e10cSrcweir return sImplName; 279*cdf0e10cSrcweir } 280*cdf0e10cSrcweir 281*cdf0e10cSrcweir uno::Sequence< rtl::OUString > 282*cdf0e10cSrcweir ScVbaGlobals::getServiceNames() 283*cdf0e10cSrcweir { 284*cdf0e10cSrcweir static uno::Sequence< rtl::OUString > aServiceNames; 285*cdf0e10cSrcweir if ( aServiceNames.getLength() == 0 ) 286*cdf0e10cSrcweir { 287*cdf0e10cSrcweir aServiceNames.realloc( 1 ); 288*cdf0e10cSrcweir aServiceNames[ 0 ] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ooo.vba.excel.Globals" ) ); 289*cdf0e10cSrcweir } 290*cdf0e10cSrcweir return aServiceNames; 291*cdf0e10cSrcweir } 292*cdf0e10cSrcweir 293*cdf0e10cSrcweir namespace globals 294*cdf0e10cSrcweir { 295*cdf0e10cSrcweir namespace sdecl = comphelper::service_decl; 296*cdf0e10cSrcweir sdecl::vba_service_class_<ScVbaGlobals, sdecl::with_args<true> > serviceImpl; 297*cdf0e10cSrcweir extern sdecl::ServiceDecl const serviceDecl( 298*cdf0e10cSrcweir serviceImpl, 299*cdf0e10cSrcweir "ScVbaGlobals", 300*cdf0e10cSrcweir "ooo.vba.excel.Globals" ); 301*cdf0e10cSrcweir } 302*cdf0e10cSrcweir 303