diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-03-04 08:17:51 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-03-04 08:17:51 +0000 |
commit | c5262d7840f6a8366e393f1f3491fbf19337be02 (patch) | |
tree | 681dc8592134a7ac91fcd864adb5d89e49da47ea /scripting | |
parent | 9df5d3452e865420878ecf95f413ad3820759ace (diff) |
INTEGRATION: CWS fwkpostbeta03 (1.14.4); FILE MERGED
2005/02/16 10:40:04 kso 1.14.4.1: #i42740# - Adapted to changed signature of helper function.
Diffstat (limited to 'scripting')
-rwxr-xr-x | scripting/source/provider/MasterScriptProvider.cxx | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx index 4bb3f2807271..2df5929a8fbd 100755 --- a/scripting/source/provider/MasterScriptProvider.cxx +++ b/scripting/source/provider/MasterScriptProvider.cxx @@ -2,9 +2,9 @@ * * $RCSfile: MasterScriptProvider.cxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: hr $ $Date: 2005-02-11 16:34:17 $ + * last change: $Author: kz $ $Date: 2005-03-04 09:17:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -186,7 +186,7 @@ throw ( Exception, RuntimeException ) try { m_xModel.set( args[ 0 ], UNO_QUERY_THROW ); - m_sCtxString = MiscUtils::xModelToTdocUrl( m_xModel ); + m_sCtxString = MiscUtils::xModelToTdocUrl( m_xModel, m_xContext ); Any propValURL = makeAny( m_sCtxString ); invokeArgs[ 0 ] <<= propValURL; } @@ -253,6 +253,7 @@ void MasterScriptProvider::createPkgProvider() } catch ( Exception& e ) { + e; OSL_TRACE("Exception creating MasterScriptProvider for uno_packages in context %s: %s", ::rtl::OUStringToOString( m_sCtxString, RTL_TEXTENCODING_ASCII_US ).pData->buffer, @@ -447,9 +448,9 @@ MasterScriptProvider::getName() ::rtl::OUString sCtx = getContextString(); if ( sCtx.indexOf( OUSTR( "vnd.sun.star.tdoc" ) ) == 0 ) { - // seems to be a bug with tdoc, Title is - // incorrect after a save-as, also - // Title property is not returned if it is set + // @@@ cannot be used because title returned is not the same + // as returned by MiscUtils::xModelToDocTitle(). And this + // would break code in SVX (source/dialog/selector.cxx). //m_sNodeName = MiscUtils::tDocUrlToTitle( sCtx ); Reference< frame::XModel > xModel = m_xModel; @@ -602,7 +603,7 @@ MasterScriptProvider::insertByName( const ::rtl::OUString& aName, const Any& aEl xCont->insertByName( aName, aElement ); break; } - catch ( Exception& ignore ) + catch ( Exception& ) { } @@ -676,7 +677,7 @@ MasterScriptProvider::removeByName( const ::rtl::OUString& Name ) throw ( contai xCont->removeByName( Name ); break; } - catch ( Exception& ignore ) + catch ( Exception& ) { } @@ -779,7 +780,7 @@ MasterScriptProvider::hasByName( const ::rtl::OUString& aName ) throw (RuntimeEx break; } } - catch ( Exception& ignore ) + catch ( Exception& ) { } @@ -1022,7 +1023,7 @@ extern "C" xKey->setStringValue( OUSTR("com.sun.star.script.browse.BrowseNodeFactory") ); return sal_True; } - catch (Exception & exc) + catch (Exception &) { } } |