summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-24 22:31:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-25 09:42:06 +0100
commitac1530a37e4544378c22c9358e57ca8a596c1aa8 (patch)
treeb9380514932038897631b6e9f7e509c4fc7f8129 /svtools
parent798496c5be43771ee478a0ee4288188b28583a8d (diff)
callcatcher: yet more unused code
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/svtools/fileview.hxx3
-rw-r--r--svtools/source/contnr/fileview.cxx60
-rw-r--r--svtools/source/contnr/templwin.hxx1
3 files changed, 0 insertions, 64 deletions
diff --git a/svtools/inc/svtools/fileview.hxx b/svtools/inc/svtools/fileview.hxx
index 75422e4b185e..37d8e2fc3f26 100644
--- a/svtools/inc/svtools/fileview.hxx
+++ b/svtools/inc/svtools/fileview.hxx
@@ -85,8 +85,6 @@ private:
::com::sun::star::uno::Sequence< ::rtl::OUString > mpBlackList;
- SVT_DLLPRIVATE void OpenFolder( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aContents );
-
DECL_DLLPRIVATE_LINK( HeaderSelect_Impl, HeaderBar * );
DECL_DLLPRIVATE_LINK( HeaderEndDrag_Impl, HeaderBar * );
@@ -186,7 +184,6 @@ public:
);
void SetNoSelection();
- void ResetCursor();
void SetSelectHdl( const Link& rHdl );
void SetDoubleClickHdl( const Link& rHdl );
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx
index f9267dea728a..404c667a8069 100644
--- a/svtools/source/contnr/fileview.cxx
+++ b/svtools/source/contnr/fileview.cxx
@@ -1283,59 +1283,6 @@ SvtFileView::~SvtFileView()
// -----------------------------------------------------------------------
-void SvtFileView::OpenFolder( const Sequence< OUString >& aContents )
-{
- mpImp->mpView->ClearAll();
- const OUString* pFileProperties = aContents.getConstArray();
- sal_uInt32 i, nCount = aContents.getLength();
- for ( i = 0; i < nCount; ++i )
- {
- String aRow( pFileProperties[i] );
- // extract columns
- // the columns are: title, type, size, date, target url, is folder, image url
- String aTitle, aType, aSize, aDate, aURL, aImageURL;
- xub_StrLen nIdx = 0;
- aTitle = aRow.GetToken( 0, '\t', nIdx );
- aType = aRow.GetToken( 0, '\t', nIdx );
- aSize = aRow.GetToken( 0, '\t', nIdx );
- aDate = aRow.GetToken( 0, '\t', nIdx );
- aURL = aRow.GetToken( 0, '\t', nIdx );
- sal_Unicode cFolder = aRow.GetToken( 0, '\t', nIdx ).GetChar(0);
- sal_Bool bIsFolder = ( '1' == cFolder );
- if ( nIdx != STRING_NOTFOUND )
- aImageURL = aRow.GetToken( 0, '\t', nIdx );
-
- if ( mpImp->mbOnlyFolder && !bIsFolder )
- continue;
-
- // build new row
- String aNewRow = aTitle;
- aNewRow += '\t';
- aNewRow += aType;
- aNewRow += '\t';
- aNewRow += aSize;
- aNewRow += '\t';
- aNewRow += aDate;
- // detect image
- sal_Bool bDoInsert = sal_True;
- INetURLObject aObj( aImageURL.Len() > 0 ? aImageURL : aURL );
- Image aImage = SvFileInformationManager::GetImage( aObj, sal_False );
-
- if ( bDoInsert )
- {
- // insert entry and set user data
- SvLBoxEntry* pEntry = mpImp->mpView->InsertEntry( aNewRow, aImage, aImage, NULL );
- SvtContentEntry* pUserData = new SvtContentEntry( aURL, bIsFolder );
- pEntry->SetUserData( pUserData );
- }
- }
-
- mpImp->InitSelection();
- mpImp->ResetCursor();
-}
-
-// -----------------------------------------------------------------------
-
String SvtFileView::GetURL( SvLBoxEntry* pEntry ) const
{
String aURL;
@@ -1568,13 +1515,6 @@ void SvtFileView::GetFocus()
// -----------------------------------------------------------------------
-void SvtFileView::ResetCursor()
-{
- mpImp->ResetCursor();
-}
-
-// -----------------------------------------------------------------------
-
void SvtFileView::SetSelectHdl( const Link& rHdl )
{
mpImp->SetSelectHandler( rHdl );
diff --git a/svtools/source/contnr/templwin.hxx b/svtools/source/contnr/templwin.hxx
index ebc0e393c0de..248eafa5a027 100644
--- a/svtools/source/contnr/templwin.hxx
+++ b/svtools/source/contnr/templwin.hxx
@@ -149,7 +149,6 @@ public:
inline void SetSelectHdl( const Link& rLink ) { aFileView.SetSelectHdl( rLink ); }
inline void SetDoubleClickHdl( const Link& rLink ) { aFileView.SetDoubleClickHdl( rLink ); }
inline void SetNewFolderHdl( const Link& rLink ) { aNewFolderLink = rLink; }
- inline void ResetCursor() { aFileView.ResetCursor(); }
inline sal_Bool IsTemplateFolder() const { return bIsTemplateFolder; }
inline String GetFolderURL() const { return aFolderURL; }
inline String GetRootURL() const { return aCurrentRootURL; }