ScriptStorage.cxx (2c696243) | ScriptStorage.cxx (437a6594) |
---|---|
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 --- 139 unchanged lines hidden (view full) --- 148 149//************************************************************************* 150void 151ScriptStorage::initialize( const Sequence <Any> & args ) 152throw ( RuntimeException, Exception ) 153{ 154 OSL_TRACE( "Entering ScriptStorage::initialize\n" ); 155 | 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 --- 139 unchanged lines hidden (view full) --- 148 149//************************************************************************* 150void 151ScriptStorage::initialize( const Sequence <Any> & args ) 152throw ( RuntimeException, Exception ) 153{ 154 OSL_TRACE( "Entering ScriptStorage::initialize\n" ); 155 |
156 // Should not be renitialised | 156 // Should not be renitialized |
157 if ( m_bInitialised ) 158 { 159 throw RuntimeException( | 157 if ( m_bInitialised ) 158 { 159 throw RuntimeException( |
160 OUSTR( "ScriptStorage::initalize already initialized" ), | 160 OUSTR( "ScriptStorage::initialize already initialized" ), |
161 Reference<XInterface> () ); 162 } 163 164 { // Protect member variable writes 165 ::osl::Guard< osl::Mutex > aGuard( m_mutex ); 166 167 // Check args 168 if ( args.getLength() != NUMBER_STORAGE_INITIALIZE_ARGS ) --- 46 unchanged lines hidden (view full) --- 215 { 216 create(); 217 } 218 } 219 catch ( RuntimeException & re ) 220 { 221 OSL_TRACE( "caught com::sun::star::uno::RuntimeException in ScriptStorage::initialize" ); 222 throw RuntimeException( | 161 Reference<XInterface> () ); 162 } 163 164 { // Protect member variable writes 165 ::osl::Guard< osl::Mutex > aGuard( m_mutex ); 166 167 // Check args 168 if ( args.getLength() != NUMBER_STORAGE_INITIALIZE_ARGS ) --- 46 unchanged lines hidden (view full) --- 215 { 216 create(); 217 } 218 } 219 catch ( RuntimeException & re ) 220 { 221 OSL_TRACE( "caught com::sun::star::uno::RuntimeException in ScriptStorage::initialize" ); 222 throw RuntimeException( |
223 OUSTR( "ScriptStorage::initalize RuntimeException: " ).concat( re.Message ), | 223 OUSTR( "ScriptStorage::initialize RuntimeException: " ).concat( re.Message ), |
224 Reference< XInterface > () ); 225 } 226 catch ( Exception & ue ) 227 { 228 OSL_TRACE( "caught com::sun::star::uno::Exception in ScriptStorage::initialize" ); 229 throw RuntimeException( | 224 Reference< XInterface > () ); 225 } 226 catch ( Exception & ue ) 227 { 228 OSL_TRACE( "caught com::sun::star::uno::Exception in ScriptStorage::initialize" ); 229 throw RuntimeException( |
230 OUSTR( "ScriptStorage::initalize Exception: " ).concat( ue.Message ), | 230 OUSTR( "ScriptStorage::initialize Exception: " ).concat( ue.Message ), |
231 Reference< XInterface > () ); 232 } 233#ifdef _DEBUG 234 catch ( ... ) 235 { 236 OSL_TRACE( "caught unknown Exception in ScriptStorage::initialize" ); 237 throw RuntimeException( | 231 Reference< XInterface > () ); 232 } 233#ifdef _DEBUG 234 catch ( ... ) 235 { 236 OSL_TRACE( "caught unknown Exception in ScriptStorage::initialize" ); 237 throw RuntimeException( |
238 OUSTR( "ScriptStorage::initalize unknown exception: " ), | 238 OUSTR( "ScriptStorage::initialize unknown exception: " ), |
239 Reference< XInterface > () ); 240 } 241#endif 242 243 OSL_TRACE( "Parsed the XML\n" ); 244 245 m_bInitialised = true; 246} --- 138 unchanged lines hidden (view full) --- 385 OUSTR( "ScriptStorage::create Exception: " ).concat( ue.Message ), 386 Reference< XInterface > () ); 387 } 388#ifdef _DEBUG 389 catch ( ... ) 390 { 391 OSL_TRACE( "caught unknown Exception in ScriptStorage::create" ); 392 throw RuntimeException( | 239 Reference< XInterface > () ); 240 } 241#endif 242 243 OSL_TRACE( "Parsed the XML\n" ); 244 245 m_bInitialised = true; 246} --- 138 unchanged lines hidden (view full) --- 385 OUSTR( "ScriptStorage::create Exception: " ).concat( ue.Message ), 386 Reference< XInterface > () ); 387 } 388#ifdef _DEBUG 389 catch ( ... ) 390 { 391 OSL_TRACE( "caught unknown Exception in ScriptStorage::create" ); 392 throw RuntimeException( |
393 OUSTR( "ScriptStorage::initalize unknown exception: " ), | 393 OUSTR( "ScriptStorage::initialize unknown exception: " ), |
394 Reference< XInterface > () ); 395 } 396#endif 397 398 OSL_TRACE( "Parsed the XML\n" ); 399 400 m_bInitialised = true; 401} --- 465 unchanged lines hidden --- | 394 Reference< XInterface > () ); 395 } 396#endif 397 398 OSL_TRACE( "Parsed the XML\n" ); 399 400 m_bInitialised = true; 401} --- 465 unchanged lines hidden --- |