summaryrefslogtreecommitdiff
path: root/fpicker/source/office/iodlgimp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker/source/office/iodlgimp.cxx')
-rw-r--r--fpicker/source/office/iodlgimp.cxx70
1 files changed, 0 insertions, 70 deletions
diff --git a/fpicker/source/office/iodlgimp.cxx b/fpicker/source/office/iodlgimp.cxx
index 7900ee18c6b1..f93b84d20775 100644
--- a/fpicker/source/office/iodlgimp.cxx
+++ b/fpicker/source/office/iodlgimp.cxx
@@ -264,76 +264,6 @@ void SvtUpButton_Impl::Click()
GetDialogParent()->PrevLevel_Impl();
}
-//=============================================================================
-//= SvtTravelButton_Impl
-//=============================================================================
-
-//-----------------------------------------------------------------------------
-SvtTravelButton_Impl::SvtTravelButton_Impl( SvtFileDialog* pParent, const ResId& rResId )
- :SvtFileDialogURLSelector ( pParent, rResId, IMG_FILEDLG_BTN_STD )
-{
- SetDropDown( 0 ); // by default, don't drop down, as we don't have favourites
-}
-
-//-----------------------------------------------------------------------------
-void SvtTravelButton_Impl::SetFavouriteLocations( const ::std::vector< String >& _rLocations )
-{
- m_aFavourites = _rLocations;
- // enable the drop down if and only if we have favourites
- SetDropDown( m_aFavourites.empty() ? 0 : PUSHBUTTON_DROPDOWN_TOOLBOX );
-}
-
-//-----------------------------------------------------------------------------
-SvtTravelButton_Impl::~SvtTravelButton_Impl()
-{
-}
-
-//-----------------------------------------------------------------------------
-void SvtTravelButton_Impl::FillURLMenu( PopupMenu* _pMenu )
-{
- if ( m_aFavourites.empty() )
- // though we claimed that we do not want to have a drop down button
- // in this case, VCL nevertheless behaves as if we had one .... :(
- return;
-
- _pMenu->Clear();
-
- sal_uInt16 nItemId = 1;
- String sDisplayName;
-
- ::std::vector< String >::const_iterator aLoop;
- for ( aLoop = m_aFavourites.begin(); aLoop != m_aFavourites.end(); ++aLoop, ++nItemId )
- {
- if ( GetDialogParent()->isUrlAllowed( *aLoop ) )
- {
- Image aImage = SvFileInformationManager::GetImage( INetURLObject(*aLoop) );
- if ( LocalFileHelper::ConvertURLToSystemPath(*aLoop, sDisplayName) )
- _pMenu->InsertItem( nItemId, sDisplayName, aImage );
- else
- _pMenu->InsertItem( nItemId, *aLoop, aImage );
- }
- }
-}
-
-//-----------------------------------------------------------------------------
-void SvtTravelButton_Impl::Select()
-{
- sal_uInt16 nId = GetCurItemId();
- if ( nId )
- {
- --nId;
- DBG_ASSERT( nId < m_aFavourites.size(), "SvtTravelButton_Impl::Select: invalid index!" );
- if ( nId < m_aFavourites.size() )
- OpenURL( m_aFavourites[ nId ] );
- }
-}
-
-//-----------------------------------------------------------------------------
-void SvtTravelButton_Impl::Click()
-{
- OpenURL( GetDialogParent()->GetStandardDir() );
-}
-
//*****************************************************************************
// SvtExpFileDlg_Impl
//*****************************************************************************