diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2015-08-03 14:43:32 +0200 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2015-08-14 08:45:25 +0200 |
commit | 7e33e62e87c4ebb656940958b64db44cb11e9499 (patch) | |
tree | 6528544d6c8d1430817d64429a584bf2c9906ac4 /fpicker | |
parent | 82e8226516f00de9db16d65f26c99cfd8ec28efc (diff) |
Breadcrumb: changed first entry label ('Root')
Change-Id: Id15bc1ef92fdab22ba3332dc9b42fb9c785298b4
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/office/RemoteFilesDialog.cxx | 3 | ||||
-rw-r--r-- | fpicker/source/office/RemoteFilesDialog.hxx | 1 | ||||
-rw-r--r-- | fpicker/source/office/iodlg.src | 5 |
3 files changed, 8 insertions, 1 deletions
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx index dde7eebcb81c..40b9c755bb90 100644 --- a/fpicker/source/office/RemoteFilesDialog.cxx +++ b/fpicker/source/office/RemoteFilesDialog.cxx @@ -206,6 +206,7 @@ RemoteFilesDialog::RemoteFilesDialog( vcl::Window* pParent, WinBits nBits ) m_pOk_btn->SetClickHdl( LINK( this, RemoteFilesDialog, OkHdl ) ); m_pCancel_btn->SetClickHdl( LINK( this, RemoteFilesDialog, CancelHdl ) ); + m_sRootLabel = ResId( STR_SVT_ROOTLABEL, *ResMgrHolder::getOrCreate() ); m_pPath = VclPtr<Breadcrumb>::Create( get< vcl::Window >( "breadcrumb_container" ) ); m_pPath->set_hexpand( true ); m_pPath->SetClickHdl( LINK( this, RemoteFilesDialog, SelectBreadcrumbHdl ) ); @@ -1099,7 +1100,7 @@ void RemoteFilesDialog::UpdateControls( const OUString& rURL ) OUString sURL = m_aServices[nPos]->GetUrl(); OUString sName = m_aServices[nPos]->GetName(); - m_pPath->SetRootName( sName ); + m_pPath->SetRootName( m_sRootLabel ); m_pTreeView->Clear(); SvTreeListEntry* pRoot = m_pTreeView->InsertEntry( sName, NULL, true ); diff --git a/fpicker/source/office/RemoteFilesDialog.hxx b/fpicker/source/office/RemoteFilesDialog.hxx index ea6af5f281aa..0d61f419f38b 100644 --- a/fpicker/source/office/RemoteFilesDialog.hxx +++ b/fpicker/source/office/RemoteFilesDialog.hxx @@ -127,6 +127,7 @@ private: OUString m_sPath; OUString m_sStdDir; + OUString m_sRootLabel; OUString m_sLastServiceUrl; unsigned int m_nCurrentFilter; diff --git a/fpicker/source/office/iodlg.src b/fpicker/source/office/iodlg.src index bc43b98555d8..775b6eef4c69 100644 --- a/fpicker/source/office/iodlg.src +++ b/fpicker/source/office/iodlg.src @@ -110,6 +110,11 @@ String STR_SVT_DELETESERVICE Text [ en-US ] = "Are you sure you want to delete the service?\n\"$servicename$\"" ; }; +String STR_SVT_ROOTLABEL +{ + Text [ en-US ] = "Root" ; +}; + String STR_SVT_NEW_FOLDER { Text [ en-US ] = "Folder" ; |