summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-07-28 17:52:20 +0200
committerThomas Arnhold <thomas@arnhold.org>2011-07-29 11:08:44 +0200
commitdb10877d894d2d5bba95ea1871a12c8c633b31d3 (patch)
treeef6260919b30e594dca5513a99995da92968d310 /svx
parentad8b40c6701367c2367bbd0ef97c4780182d808b (diff)
callcatcher: remove unused methods
Diffstat (limited to 'svx')
-rw-r--r--svx/inc/svx/gallery1.hxx1
-rw-r--r--svx/source/gallery2/gallery1.cxx77
2 files changed, 0 insertions, 78 deletions
diff --git a/svx/inc/svx/gallery1.hxx b/svx/inc/svx/gallery1.hxx
index b858b042d0ce..aa5cc4aa0f8e 100644
--- a/svx/inc/svx/gallery1.hxx
+++ b/svx/inc/svx/gallery1.hxx
@@ -167,7 +167,6 @@ public:
String GetThemeName( sal_uIntPtr nThemeId ) const;
SVX_DLLPUBLIC sal_Bool CreateTheme( const String& rThemeName, sal_uInt32 nNumFrom = 0 );
- sal_Bool CreateImportTheme( const INetURLObject& rURL, const String& rFileName );
sal_Bool RenameTheme( const String& rOldName, const String& rNewName );
SVX_DLLPUBLIC sal_Bool RemoveTheme( const String& rThemeName );
diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx
index 0eba3f66d248..165936cae991 100644
--- a/svx/source/gallery2/gallery1.cxx
+++ b/svx/source/gallery2/gallery1.cxx
@@ -633,83 +633,6 @@ sal_Bool Gallery::CreateTheme( const String& rThemeName, sal_uInt32 nNumFrom )
// ------------------------------------------------------------------------
-sal_Bool Gallery::CreateImportTheme( const INetURLObject& rURL, const String& rImportName )
-{
- INetURLObject aURL( rURL );
- sal_Bool bRet = sal_False;
-
- DBG_ASSERT( aURL.GetProtocol() != INET_PROT_NOT_VALID, "invalid URL" );
-
- if( FileExists( aURL ) )
- {
- SvStream* pIStm = ::utl::UcbStreamHelper::CreateStream( aURL.GetMainURL( INetURLObject::NO_DECODE ), STREAM_READ );
-
- if( pIStm )
- {
- sal_uIntPtr nStmErr;
- sal_uInt16 nId;
-
- *pIStm >> nId;
-
- if( nId > 0x0004 )
- ErrorHandler::HandleError( ERRCODE_IO_GENERAL );
- else
- {
- ByteString aTmpStr;
- String aThemeName; *pIStm >> aTmpStr; aThemeName = String( aTmpStr, RTL_TEXTENCODING_UTF8 );
- GalleryThemeEntry* pThemeEntry = new GalleryThemeEntry( aURL, rImportName,
- String(aURL.GetBase()).Erase( 0, 2 ).Erase( 6 ).ToInt32(),
- sal_True, sal_True, sal_True, 0, sal_False );
- GalleryTheme* pImportTheme = new GalleryTheme( this, pThemeEntry );
-
- pIStm->Seek( STREAM_SEEK_TO_BEGIN );
- *pIStm >> *pImportTheme;
- nStmErr = pIStm->GetError();
-
- if( nStmErr )
- {
- delete pThemeEntry;
- ErrorHandler::HandleError( ERRCODE_IO_GENERAL );
- }
- else
- {
- String aName( rImportName );
- String aNewName( aName );
- sal_uIntPtr nCount = 0;
-
- aName += ' ';
-
- while ( HasTheme( aNewName ) && ( nCount++ < 16000 ) )
- {
- aNewName = aName;
- aNewName += String::CreateFromInt32( nCount );
- }
-
- pImportTheme->SetImportName( aNewName );
- aThemeList.push_back( pThemeEntry );
-
- // Thema in Import-Liste eintragen und Import-Liste speichern
- GalleryImportThemeEntry* pImportEntry = new GalleryImportThemeEntry;
- pImportEntry->aThemeName = pImportEntry->aUIName = aNewName;
- pImportEntry->aURL = rURL;
- pImportEntry->aImportName = rImportName;
- aImportList.push_back( pImportEntry );
- ImplWriteImportList();
- bRet = sal_True;
- }
-
- delete pImportTheme;
- }
-
- delete pIStm;
- }
- }
-
- return bRet;
-}
-
-// ------------------------------------------------------------------------
-
sal_Bool Gallery::RenameTheme( const String& rOldName, const String& rNewName )
{
GalleryThemeEntry* pThemeEntry = ImplGetThemeEntry( rOldName );