diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-15 08:55:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-15 09:07:49 +0100 |
commit | c54f77b7180b271fecff3737bc391e19f050ec11 (patch) | |
tree | 1143e3d23b0478dd8600f4d44741df2a446f0b21 /sw | |
parent | 79aa0c50dae2ff6d143d99212d3a32a8ac28f306 (diff) |
callcatcher: update unused code
All FontSizeBoxs and SmFontPickListBoxs are now .ui loaded, .res ctors unused
Change-Id: I50aa8606fefacab0b15b6795a7ba90dff8109802
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/shellio.hxx | 4 | ||||
-rw-r--r-- | sw/source/filter/writer/writer.cxx | 53 |
2 files changed, 0 insertions, 57 deletions
diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx index 5e4f4c7cf782..7e33733180a7 100644 --- a/sw/inc/shellio.hxx +++ b/sw/inc/shellio.hxx @@ -457,10 +457,6 @@ public: static SwPaM * NewSwPaM(SwDoc & rDoc, sal_uLong const nStartIdx, sal_uLong const nEndIdx); - // If applicable copy a local file into internet. - sal_Bool CopyLocalFileToINet( String& rFileNm ); - - // Stream-specific routines. Do not use in storage-writer! // Optimizing output on stream. diff --git a/sw/source/filter/writer/writer.cxx b/sw/source/filter/writer/writer.cxx index 65fe69aaa6e2..07fa02be2eb9 100644 --- a/sw/source/filter/writer/writer.cxx +++ b/sw/source/filter/writer/writer.cxx @@ -296,59 +296,6 @@ sal_uLong Writer::Write( SwPaM&, const uno::Reference < embed::XStorage >&, cons return ERR_SWG_WRITE_ERROR; } -sal_Bool Writer::CopyLocalFileToINet( String& rFileNm ) -{ - if( !pOrigFileName ) // can be happen, by example if we - return sal_False; // write into the clipboard - - sal_Bool bRet = sal_False; - INetURLObject aFileUrl( rFileNm ), aTargetUrl( *pOrigFileName ); - -// this is our old without the Mail-Export - if( ! ( INET_PROT_FILE == aFileUrl.GetProtocol() && - INET_PROT_FILE != aTargetUrl.GetProtocol() && - INET_PROT_FTP <= aTargetUrl.GetProtocol() && - INET_PROT_NEWS >= aTargetUrl.GetProtocol() ) ) - return bRet; - - if (m_pImpl->pFileNameMap) - { - // has the file been moved? - std::map<String, String>::iterator it = m_pImpl->pFileNameMap->find( rFileNm ); - if ( it != m_pImpl->pFileNameMap->end() ) - { - rFileNm = it->second; - return sal_True; - } - } - else - { - m_pImpl->pFileNameMap.reset( new std::map<String, String>() ); - } - - String aSrc = rFileNm; - String aDest = aTargetUrl.GetPartBeforeLastName(); - aDest += String(aFileUrl.GetName()); - - SfxMedium aSrcFile( aSrc, STREAM_READ ); - SfxMedium aDstFile( aDest, STREAM_WRITE | STREAM_SHARE_DENYNONE ); - - *aDstFile.GetOutStream() << *aSrcFile.GetInStream(); - - aSrcFile.Close(); - aDstFile.Commit(); - - bRet = 0 == aDstFile.GetError(); - - if( bRet ) - { - m_pImpl->pFileNameMap->insert( std::make_pair( aSrc, aDest ) ); - rFileNm = aDest; - } - - return bRet; -} - void Writer::PutNumFmtFontsInAttrPool() { // then there are a few fonts in the NumRules |