diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-09-30 13:27:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-10-01 11:16:39 +0200 |
commit | a6f1841aedae66915bcc10287bdec21fc2ebe8eb (patch) | |
tree | e970f24b952d3508bc39c452c779a1e8c4b7d4cd /sd/source/ui/dlg/navigatr.cxx | |
parent | 73637f83ee92453eb6249acf9ceb2b39b5a9c4ea (diff) |
loplugin:unusedmethods
Change-Id: I3897ccb3349874672b778835b9c15642cb1a14f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174298
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/dlg/navigatr.cxx')
-rw-r--r-- | sd/source/ui/dlg/navigatr.cxx | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx index c6eed54865a8..6197825b2811 100644 --- a/sd/source/ui/dlg/navigatr.cxx +++ b/sd/source/ui/dlg/navigatr.cxx @@ -158,42 +158,6 @@ static void lcl_select_marked_objects(sd::ViewShell* pViewShell, SdPageObjsTLV* } } -//when object is marked , fresh the corresponding entry tree . -void SdNavigatorWin::FreshTree( const SdDrawDocument* pDoc ) -{ - SdDrawDocument* pNonConstDoc = const_cast<SdDrawDocument*>(pDoc); // const as const can... - sd::DrawDocShell* pDocShell = pNonConstDoc->GetDocSh(); - ::sd::ViewShell* pViewShell = pDocShell->GetViewShell(); - - // tdf#160190 - if (!pViewShell) - return; - - // tdf#139944 disable navigator in master mode - if (const sd::DrawViewShell* pDrawViewShell = static_cast<::sd::DrawViewShell*>(pViewShell)) - { - if (pDrawViewShell->GetEditMode() == EditMode::MasterPage) - { - m_xContainer->set_sensitive(false); - mxTlbObjects->clear(); - return; - } - else - m_xContainer->set_sensitive(true); - } - - const OUString& aDocShName( pDocShell->GetName() ); - OUString aDocName = pDocShell->GetMedium()->GetName(); - if (!mxTlbObjects->IsEqualToDoc(pDoc)) - { - mxTlbObjects->Fill( pDoc, false, aDocName ); // Only normal pages - RefreshDocumentLB(); - mxLbDocs->set_active_text(aDocShName); - } - - lcl_select_marked_objects(pViewShell, mxTlbObjects.get()); -} - void SdNavigatorWin::InitTreeLB( const SdDrawDocument* pDoc ) { SdDrawDocument* pNonConstDoc = const_cast<SdDrawDocument*>(pDoc); // const as const can... |