diff options
Diffstat (limited to 'sc/source/ui/unoobj/linkuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/linkuno.cxx | 157 |
1 files changed, 78 insertions, 79 deletions
diff --git a/sc/source/ui/unoobj/linkuno.cxx b/sc/source/ui/unoobj/linkuno.cxx index 38f1ce4bd610..3cff46ba8287 100644 --- a/sc/source/ui/unoobj/linkuno.cxx +++ b/sc/source/ui/unoobj/linkuno.cxx @@ -45,7 +45,6 @@ using ::com::sun::star::uno::UNO_QUERY; using ::com::sun::star::uno::UNO_QUERY_THROW; using ::com::sun::star::lang::IllegalArgumentException; using ::com::sun::star::uno::RuntimeException; -using ::rtl::OUString; using ::std::vector; //------------------------------------------------------------------------ @@ -55,9 +54,9 @@ static const SfxItemPropertyMapEntry* lcl_GetSheetLinkMap() { static SfxItemPropertyMapEntry aSheetLinkMap_Impl[] = { - {MAP_CHAR_LEN(SC_UNONAME_FILTER), 0, &getCppuType((rtl::OUString*)0), 0, 0 }, - {MAP_CHAR_LEN(SC_UNONAME_FILTOPT), 0, &getCppuType((rtl::OUString*)0), 0, 0 }, - {MAP_CHAR_LEN(SC_UNONAME_LINKURL), 0, &getCppuType((rtl::OUString*)0), 0, 0 }, + {MAP_CHAR_LEN(SC_UNONAME_FILTER), 0, &getCppuType((OUString*)0), 0, 0 }, + {MAP_CHAR_LEN(SC_UNONAME_FILTOPT), 0, &getCppuType((OUString*)0), 0, 0 }, + {MAP_CHAR_LEN(SC_UNONAME_LINKURL), 0, &getCppuType((OUString*)0), 0, 0 }, {MAP_CHAR_LEN(SC_UNONAME_REFDELAY), 0, &getCppuType((sal_Int32*)0), 0, 0 }, {MAP_CHAR_LEN(SC_UNONAME_REFPERIOD), 0, &getCppuType((sal_Int32*)0), 0, 0 }, {0,0,0,0,0,0} @@ -130,13 +129,13 @@ ScTableLink* ScSheetLinkObj::GetLink_Impl() const // XNamed -rtl::OUString SAL_CALL ScSheetLinkObj::getName() throw(uno::RuntimeException) +OUString SAL_CALL ScSheetLinkObj::getName() throw(uno::RuntimeException) { SolarMutexGuard aGuard; return getFileName(); // Name ist der Dateiname (URL) } -void SAL_CALL ScSheetLinkObj::setName( const rtl::OUString& aName ) throw(uno::RuntimeException) +void SAL_CALL ScSheetLinkObj::setName( const OUString& aName ) throw(uno::RuntimeException) { SolarMutexGuard aGuard; setFileName(aName); // Name ist der Dateiname (URL) @@ -212,14 +211,14 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScSheetLinkObj::getPropertySetI } void SAL_CALL ScSheetLinkObj::setPropertyValue( - const rtl::OUString& aPropertyName, const uno::Any& aValue ) + const OUString& aPropertyName, const uno::Any& aValue ) throw(beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException) { SolarMutexGuard aGuard; String aNameString(aPropertyName); - rtl::OUString aValStr; + OUString aValStr; if ( aNameString.EqualsAscii( SC_UNONAME_LINKURL ) ) { if ( aValue >>= aValStr ) @@ -249,7 +248,7 @@ void SAL_CALL ScSheetLinkObj::setPropertyValue( } } -uno::Any SAL_CALL ScSheetLinkObj::getPropertyValue( const rtl::OUString& aPropertyName ) +uno::Any SAL_CALL ScSheetLinkObj::getPropertyValue( const OUString& aPropertyName ) throw(beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) { @@ -273,13 +272,13 @@ SC_IMPL_DUMMY_PROPERTY_LISTENER( ScSheetLinkObj ) // internal: -rtl::OUString ScSheetLinkObj::getFileName(void) const +OUString ScSheetLinkObj::getFileName(void) const { SolarMutexGuard aGuard; return aFileName; } -void ScSheetLinkObj::setFileName(const rtl::OUString& rNewName) +void ScSheetLinkObj::setFileName(const OUString& rNewName) { SolarMutexGuard aGuard; ScTableLink* pLink = GetLink_Impl(); @@ -295,7 +294,7 @@ void ScSheetLinkObj::setFileName(const rtl::OUString& rNewName) ScDocument* pDoc = pDocShell->GetDocument(); SCTAB nTabCount = pDoc->GetTableCount(); for (SCTAB nTab=0; nTab<nTabCount; nTab++) - if ( pDoc->IsLinked(nTab) && pDoc->GetLinkDoc(nTab) == rtl::OUString(aFileName) ) // alte Datei + if ( pDoc->IsLinked(nTab) && pDoc->GetLinkDoc(nTab) == OUString(aFileName) ) // alte Datei pDoc->SetLink( nTab, pDoc->GetLinkMode(nTab), aNewStr, pDoc->GetLinkFlt(nTab), pDoc->GetLinkOpt(nTab), pDoc->GetLinkTab(nTab), @@ -316,17 +315,17 @@ void ScSheetLinkObj::setFileName(const rtl::OUString& rNewName) } } -rtl::OUString ScSheetLinkObj::getFilter(void) const +OUString ScSheetLinkObj::getFilter(void) const { SolarMutexGuard aGuard; - rtl::OUString aRet; + OUString aRet; ScTableLink* pLink = GetLink_Impl(); if (pLink) aRet = pLink->GetFilterName(); return aRet; } -void ScSheetLinkObj::setFilter(const rtl::OUString& Filter) +void ScSheetLinkObj::setFilter(const OUString& Filter) { SolarMutexGuard aGuard; ScTableLink* pLink = GetLink_Impl(); @@ -337,17 +336,17 @@ void ScSheetLinkObj::setFilter(const rtl::OUString& Filter) } } -rtl::OUString ScSheetLinkObj::getFilterOptions(void) const +OUString ScSheetLinkObj::getFilterOptions(void) const { SolarMutexGuard aGuard; - rtl::OUString aRet; + OUString aRet; ScTableLink* pLink = GetLink_Impl(); if (pLink) aRet = pLink->GetOptions(); return aRet; } -void ScSheetLinkObj::setFilterOptions(const rtl::OUString& FilterOptions) +void ScSheetLinkObj::setFilterOptions(const OUString& FilterOptions) { SolarMutexGuard aGuard; ScTableLink* pLink = GetLink_Impl(); @@ -406,7 +405,7 @@ ScSheetLinkObj* ScSheetLinksObj::GetObjectByIndex_Impl(sal_Int32 nIndex) if (!pDocShell) return NULL; - typedef boost::unordered_set<rtl::OUString, rtl::OUStringHash> StrSetType; + typedef boost::unordered_set<OUString, OUStringHash> StrSetType; StrSetType aNames; ScDocument* pDoc = pDocShell->GetDocument(); SCTAB nTabCount = pDoc->GetTableCount(); @@ -416,7 +415,7 @@ ScSheetLinkObj* ScSheetLinksObj::GetObjectByIndex_Impl(sal_Int32 nIndex) if (!pDoc->IsLinked(nTab)) continue; - rtl::OUString aLinkDoc = pDoc->GetLinkDoc(nTab); + OUString aLinkDoc = pDoc->GetLinkDoc(nTab); if (aNames.insert(aLinkDoc).second) { // unique document name. @@ -429,7 +428,7 @@ ScSheetLinkObj* ScSheetLinksObj::GetObjectByIndex_Impl(sal_Int32 nIndex) return NULL; // kein Dokument oder Index zu gross } -ScSheetLinkObj* ScSheetLinksObj::GetObjectByName_Impl(const rtl::OUString& aName) +ScSheetLinkObj* ScSheetLinksObj::GetObjectByName_Impl(const OUString& aName) { // Name ist der Dateiname @@ -458,14 +457,14 @@ uno::Reference<container::XEnumeration> SAL_CALL ScSheetLinksObj::createEnumerat throw(uno::RuntimeException) { SolarMutexGuard aGuard; - return new ScIndexEnumeration(this, rtl::OUString("com.sun.star.sheet.SheetLinksEnumeration")); + return new ScIndexEnumeration(this, OUString("com.sun.star.sheet.SheetLinksEnumeration")); } // XIndexAccess sal_Int32 SAL_CALL ScSheetLinksObj::getCount() throw(uno::RuntimeException) { - typedef boost::unordered_set<rtl::OUString, rtl::OUStringHash> StrSetType; + typedef boost::unordered_set<OUString, OUStringHash> StrSetType; SolarMutexGuard aGuard; if (!pDocShell) @@ -481,7 +480,7 @@ sal_Int32 SAL_CALL ScSheetLinksObj::getCount() throw(uno::RuntimeException) if (!pDoc->IsLinked(nTab)) continue; - rtl::OUString aLinkDoc = pDoc->GetLinkDoc(nTab); + OUString aLinkDoc = pDoc->GetLinkDoc(nTab); if (aNames.insert(aLinkDoc).second) ++nCount; } @@ -512,7 +511,7 @@ sal_Bool SAL_CALL ScSheetLinksObj::hasElements() throw(uno::RuntimeException) return ( getCount() != 0 ); } -uno::Any SAL_CALL ScSheetLinksObj::getByName( const rtl::OUString& aName ) +uno::Any SAL_CALL ScSheetLinksObj::getByName( const OUString& aName ) throw(container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException) { @@ -525,7 +524,7 @@ uno::Any SAL_CALL ScSheetLinksObj::getByName( const rtl::OUString& aName ) // return uno::Any(); } -sal_Bool SAL_CALL ScSheetLinksObj::hasByName( const rtl::OUString& aName ) +sal_Bool SAL_CALL ScSheetLinksObj::hasByName( const OUString& aName ) throw(uno::RuntimeException) { SolarMutexGuard aGuard; @@ -549,30 +548,30 @@ sal_Bool SAL_CALL ScSheetLinksObj::hasByName( const rtl::OUString& aName ) return false; } -uno::Sequence<rtl::OUString> SAL_CALL ScSheetLinksObj::getElementNames() throw(uno::RuntimeException) +uno::Sequence<OUString> SAL_CALL ScSheetLinksObj::getElementNames() throw(uno::RuntimeException) { - typedef boost::unordered_set<rtl::OUString, rtl::OUStringHash> StrSetType; + typedef boost::unordered_set<OUString, OUStringHash> StrSetType; SolarMutexGuard aGuard; // Name ist der Dateiname if (!pDocShell) - return uno::Sequence<rtl::OUString>(); + return uno::Sequence<OUString>(); StrSetType aNames; ScDocument* pDoc = pDocShell->GetDocument(); SCTAB nTabCount = pDoc->GetTableCount(); sal_Int32 nLinkCount = getCount(); - uno::Sequence<rtl::OUString> aSeq(nLinkCount); - rtl::OUString* pAry = aSeq.getArray(); + uno::Sequence<OUString> aSeq(nLinkCount); + OUString* pAry = aSeq.getArray(); sal_uInt16 nPos = 0; for (SCTAB nTab = 0; nTab < nTabCount; ++nTab) { if (!pDoc->IsLinked(nTab)) continue; - rtl::OUString aLinkDoc = pDoc->GetLinkDoc(nTab); + OUString aLinkDoc = pDoc->GetLinkDoc(nTab); if (aNames.insert(aLinkDoc).second) pAry[nPos++] = aLinkDoc; } @@ -642,8 +641,8 @@ void ScAreaLinkObj::Notify( SfxBroadcaster&, const SfxHint& rHint ) // XFileLink -void ScAreaLinkObj::Modify_Impl( const rtl::OUString* pNewFile, const rtl::OUString* pNewFilter, - const rtl::OUString* pNewOptions, const rtl::OUString* pNewSource, +void ScAreaLinkObj::Modify_Impl( const OUString* pNewFile, const OUString* pNewFilter, + const OUString* pNewOptions, const OUString* pNewSource, const table::CellRangeAddress* pNewDest ) { ScAreaLink* pLink = lcl_GetAreaLink(pDocShell, nPos); @@ -755,14 +754,14 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScAreaLinkObj::getPropertySetIn } void SAL_CALL ScAreaLinkObj::setPropertyValue( - const rtl::OUString& aPropertyName, const uno::Any& aValue ) + const OUString& aPropertyName, const uno::Any& aValue ) throw(beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException) { SolarMutexGuard aGuard; String aNameString(aPropertyName); - rtl::OUString aValStr; + OUString aValStr; if ( aNameString.EqualsAscii( SC_UNONAME_LINKURL ) ) { if ( aValue >>= aValStr ) @@ -792,7 +791,7 @@ void SAL_CALL ScAreaLinkObj::setPropertyValue( } } -uno::Any SAL_CALL ScAreaLinkObj::getPropertyValue( const rtl::OUString& aPropertyName ) +uno::Any SAL_CALL ScAreaLinkObj::getPropertyValue( const OUString& aPropertyName ) throw(beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) { @@ -816,49 +815,49 @@ SC_IMPL_DUMMY_PROPERTY_LISTENER( ScAreaLinkObj ) // internal: -rtl::OUString ScAreaLinkObj::getFileName(void) const +OUString ScAreaLinkObj::getFileName(void) const { SolarMutexGuard aGuard; - rtl::OUString aRet; + OUString aRet; ScAreaLink* pLink = lcl_GetAreaLink(pDocShell, nPos); if (pLink) aRet = pLink->GetFile(); return aRet; } -void ScAreaLinkObj::setFileName(const rtl::OUString& rNewName) +void ScAreaLinkObj::setFileName(const OUString& rNewName) { SolarMutexGuard aGuard; Modify_Impl( &rNewName, NULL, NULL, NULL, NULL ); } -rtl::OUString ScAreaLinkObj::getFilter(void) const +OUString ScAreaLinkObj::getFilter(void) const { SolarMutexGuard aGuard; - rtl::OUString aRet; + OUString aRet; ScAreaLink* pLink = lcl_GetAreaLink(pDocShell, nPos); if (pLink) aRet = pLink->GetFilter(); return aRet; } -void ScAreaLinkObj::setFilter(const rtl::OUString& Filter) +void ScAreaLinkObj::setFilter(const OUString& Filter) { SolarMutexGuard aGuard; Modify_Impl( NULL, &Filter, NULL, NULL, NULL ); } -rtl::OUString ScAreaLinkObj::getFilterOptions(void) const +OUString ScAreaLinkObj::getFilterOptions(void) const { SolarMutexGuard aGuard; - rtl::OUString aRet; + OUString aRet; ScAreaLink* pLink = lcl_GetAreaLink(pDocShell, nPos); if (pLink) aRet = pLink->GetOptions(); return aRet; } -void ScAreaLinkObj::setFilterOptions(const rtl::OUString& FilterOptions) +void ScAreaLinkObj::setFilterOptions(const OUString& FilterOptions) { SolarMutexGuard aGuard; Modify_Impl( NULL, NULL, &FilterOptions, NULL, NULL ); @@ -882,17 +881,17 @@ void ScAreaLinkObj::setRefreshDelay(sal_Int32 nRefreshDelay) // XAreaLink -rtl::OUString SAL_CALL ScAreaLinkObj::getSourceArea() throw(uno::RuntimeException) +OUString SAL_CALL ScAreaLinkObj::getSourceArea() throw(uno::RuntimeException) { SolarMutexGuard aGuard; - rtl::OUString aRet; + OUString aRet; ScAreaLink* pLink = lcl_GetAreaLink(pDocShell, nPos); if (pLink) aRet = pLink->GetSource(); return aRet; } -void SAL_CALL ScAreaLinkObj::setSourceArea( const rtl::OUString& aSourceArea ) +void SAL_CALL ScAreaLinkObj::setSourceArea( const OUString& aSourceArea ) throw(uno::RuntimeException) { SolarMutexGuard aGuard; @@ -952,10 +951,10 @@ ScAreaLinkObj* ScAreaLinksObj::GetObjectByIndex_Impl(sal_Int32 nIndex) } void SAL_CALL ScAreaLinksObj::insertAtPosition( const table::CellAddress& aDestPos, - const rtl::OUString& aFileName, - const rtl::OUString& aSourceArea, - const rtl::OUString& aFilter, - const rtl::OUString& aFilterOptions ) + const OUString& aFileName, + const OUString& aSourceArea, + const OUString& aFilter, + const OUString& aFilterOptions ) throw(uno::RuntimeException) { SolarMutexGuard aGuard; @@ -993,7 +992,7 @@ uno::Reference<container::XEnumeration> SAL_CALL ScAreaLinksObj::createEnumerati throw(uno::RuntimeException) { SolarMutexGuard aGuard; - return new ScIndexEnumeration(this, rtl::OUString("com.sun.star.sheet.CellAreaLinksEnumeration")); + return new ScIndexEnumeration(this, OUString("com.sun.star.sheet.CellAreaLinksEnumeration")); } // XIndexAccess @@ -1092,13 +1091,13 @@ static String lcl_BuildDDEName( const String& rAppl, const String& rTopic, const return aRet; } -rtl::OUString SAL_CALL ScDDELinkObj::getName() throw(uno::RuntimeException) +OUString SAL_CALL ScDDELinkObj::getName() throw(uno::RuntimeException) { SolarMutexGuard aGuard; return lcl_BuildDDEName( aAppl, aTopic, aItem ); } -void SAL_CALL ScDDELinkObj::setName( const rtl::OUString& /* aName */ ) throw(uno::RuntimeException) +void SAL_CALL ScDDELinkObj::setName( const OUString& /* aName */ ) throw(uno::RuntimeException) { // name can't be changed (formulas wouldn't find the link) throw uno::RuntimeException(); @@ -1106,7 +1105,7 @@ void SAL_CALL ScDDELinkObj::setName( const rtl::OUString& /* aName */ ) throw(un // XDDELink -rtl::OUString SAL_CALL ScDDELinkObj::getApplication() throw(uno::RuntimeException) +OUString SAL_CALL ScDDELinkObj::getApplication() throw(uno::RuntimeException) { SolarMutexGuard aGuard; //! Test, ob Link noch im Dokument enthalten? @@ -1114,7 +1113,7 @@ rtl::OUString SAL_CALL ScDDELinkObj::getApplication() throw(uno::RuntimeExceptio return aAppl; } -rtl::OUString SAL_CALL ScDDELinkObj::getTopic() throw(uno::RuntimeException) +OUString SAL_CALL ScDDELinkObj::getTopic() throw(uno::RuntimeException) { SolarMutexGuard aGuard; //! Test, ob Link noch im Dokument enthalten? @@ -1122,7 +1121,7 @@ rtl::OUString SAL_CALL ScDDELinkObj::getTopic() throw(uno::RuntimeException) return aTopic; } -rtl::OUString SAL_CALL ScDDELinkObj::getItem() throw(uno::RuntimeException) +OUString SAL_CALL ScDDELinkObj::getItem() throw(uno::RuntimeException) { SolarMutexGuard aGuard; //! Test, ob Link noch im Dokument enthalten? @@ -1209,7 +1208,7 @@ uno::Sequence< uno::Sequence< uno::Any > > ScDDELinkObj::getResults( ) if ( !bSuccess ) { - throw uno::RuntimeException( ::rtl::OUString( + throw uno::RuntimeException( OUString( "ScDDELinkObj::getResults: failed to get results!" ), uno::Reference< uno::XInterface >() ); } @@ -1241,7 +1240,7 @@ void ScDDELinkObj::setResults( const uno::Sequence< uno::Sequence< uno::Any > >& if ( !bSuccess ) { - throw uno::RuntimeException( ::rtl::OUString( + throw uno::RuntimeException( OUString( "ScDDELinkObj::setResults: failed to set results!" ), uno::Reference< uno::XInterface >() ); } @@ -1286,7 +1285,7 @@ ScDDELinkObj* ScDDELinksObj::GetObjectByIndex_Impl(sal_Int32 nIndex) { if (pDocShell) { - rtl::OUString aAppl, aTopic, aItem; + OUString aAppl, aTopic, aItem; if ( nIndex <= USHRT_MAX && pDocShell->GetDocument()->GetDdeLinkData( (sal_uInt16)nIndex, aAppl, aTopic, aItem ) ) return new ScDDELinkObj( pDocShell, aAppl, aTopic, aItem ); @@ -1294,12 +1293,12 @@ ScDDELinkObj* ScDDELinksObj::GetObjectByIndex_Impl(sal_Int32 nIndex) return NULL; } -ScDDELinkObj* ScDDELinksObj::GetObjectByName_Impl(const rtl::OUString& aName) +ScDDELinkObj* ScDDELinksObj::GetObjectByName_Impl(const OUString& aName) { if (pDocShell) { String aNamStr(aName); - rtl::OUString aAppl, aTopic, aItem; + OUString aAppl, aTopic, aItem; ScDocument* pDoc = pDocShell->GetDocument(); sal_uInt16 nCount = pDoc->GetDdeLinkCount(); @@ -1319,7 +1318,7 @@ uno::Reference<container::XEnumeration> SAL_CALL ScDDELinksObj::createEnumeratio throw(uno::RuntimeException) { SolarMutexGuard aGuard; - return new ScIndexEnumeration(this, rtl::OUString("com.sun.star.sheet.DDELinksEnumeration")); + return new ScIndexEnumeration(this, OUString("com.sun.star.sheet.DDELinksEnumeration")); } // XIndexAccess @@ -1357,7 +1356,7 @@ sal_Bool SAL_CALL ScDDELinksObj::hasElements() throw(uno::RuntimeException) return ( getCount() != 0 ); } -uno::Any SAL_CALL ScDDELinksObj::getByName( const rtl::OUString& aName ) +uno::Any SAL_CALL ScDDELinksObj::getByName( const OUString& aName ) throw(container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException) { @@ -1369,17 +1368,17 @@ uno::Any SAL_CALL ScDDELinksObj::getByName( const rtl::OUString& aName ) throw container::NoSuchElementException(); } -uno::Sequence<rtl::OUString> SAL_CALL ScDDELinksObj::getElementNames() throw(uno::RuntimeException) +uno::Sequence<OUString> SAL_CALL ScDDELinksObj::getElementNames() throw(uno::RuntimeException) { SolarMutexGuard aGuard; if (pDocShell) { - rtl::OUString aAppl, aTopic, aItem; + OUString aAppl, aTopic, aItem; ScDocument* pDoc = pDocShell->GetDocument(); sal_uInt16 nCount = pDoc->GetDdeLinkCount(); - uno::Sequence<rtl::OUString> aSeq(nCount); - rtl::OUString* pAry = aSeq.getArray(); + uno::Sequence<OUString> aSeq(nCount); + OUString* pAry = aSeq.getArray(); for (sal_uInt16 i=0; i<nCount; i++) { @@ -1388,17 +1387,17 @@ uno::Sequence<rtl::OUString> SAL_CALL ScDDELinksObj::getElementNames() throw(uno } return aSeq; } - return uno::Sequence<rtl::OUString>(); + return uno::Sequence<OUString>(); } -sal_Bool SAL_CALL ScDDELinksObj::hasByName( const rtl::OUString& aName ) +sal_Bool SAL_CALL ScDDELinksObj::hasByName( const OUString& aName ) throw(uno::RuntimeException) { SolarMutexGuard aGuard; if (pDocShell) { String aNamStr(aName); - rtl::OUString aAppl, aTopic, aItem; + OUString aAppl, aTopic, aItem; ScDocument* pDoc = pDocShell->GetDocument(); sal_uInt16 nCount = pDoc->GetDdeLinkCount(); @@ -1415,8 +1414,8 @@ sal_Bool SAL_CALL ScDDELinksObj::hasByName( const rtl::OUString& aName ) // XDDELinks uno::Reference< sheet::XDDELink > ScDDELinksObj::addDDELink( - const ::rtl::OUString& aApplication, const ::rtl::OUString& aTopic, - const ::rtl::OUString& aItem, ::com::sun::star::sheet::DDELinkMode nMode ) + const OUString& aApplication, const OUString& aTopic, + const OUString& aItem, ::com::sun::star::sheet::DDELinkMode nMode ) throw (uno::RuntimeException) { SolarMutexGuard aGuard; @@ -1453,7 +1452,7 @@ uno::Reference< sheet::XDDELink > ScDDELinksObj::addDDELink( if ( pDoc->CreateDdeLink( aApplication, aTopic, aItem, nMod, ScMatrixRef() ) ) { - const ::rtl::OUString aName( lcl_BuildDDEName( aApplication, aTopic, aItem ) ); + const OUString aName( lcl_BuildDDEName( aApplication, aTopic, aItem ) ); xLink.set( GetObjectByName_Impl( aName ) ); } } @@ -1461,7 +1460,7 @@ uno::Reference< sheet::XDDELink > ScDDELinksObj::addDDELink( if ( !xLink.is() ) { - throw uno::RuntimeException( ::rtl::OUString( + throw uno::RuntimeException( OUString( "ScDDELinksObj::addDDELink: cannot add DDE link!" ), uno::Reference< uno::XInterface >() ); } @@ -1597,7 +1596,7 @@ Reference< sheet::XExternalSheetCache > SAL_CALL ScExternalDocLinkObj::addSheetC return aSheetCache; } -Any SAL_CALL ScExternalDocLinkObj::getByName(const::rtl::OUString &aName) +Any SAL_CALL ScExternalDocLinkObj::getByName(const OUString &aName) throw (container::NoSuchElementException, lang::WrappedTargetException, RuntimeException) { SolarMutexGuard aGuard; @@ -1729,7 +1728,7 @@ Reference< sheet::XExternalDocLink > SAL_CALL ScExternalDocLinksObj::addDocLink( return aDocLink; } -Any SAL_CALL ScExternalDocLinksObj::getByName(const::rtl::OUString &aName) +Any SAL_CALL ScExternalDocLinksObj::getByName(const OUString &aName) throw (container::NoSuchElementException, lang::WrappedTargetException, RuntimeException) { SolarMutexGuard aGuard; |