[Libreoffice-commits] core.git: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Oct 8 21:17:59 UTC 2018


 sw/source/uibase/utlui/navipi.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 7645bd0adf4f4e8845ecb7bcb814aa2a0537bff3
Author:     Jim Raykowski <raykowj at gmail.com>
AuthorDate: Sat Sep 22 11:25:31 2018 -0800
Commit:     Jim Raykowski <raykowj at gmail.com>
CommitDate: Mon Oct 8 23:17:37 2018 +0200

    tdf#120061 Enable Navigator multiple headings selection
    
    ...on document reopening when Navigator window was previously in
    Headings/Outline Content Navigation View mode
    
    Change-Id: I169df15e81c4e9acf24c0e76d7f720af598c5b93
    Reviewed-on: https://gerrit.libreoffice.org/60910
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <raykowj at gmail.com>

diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx
index 14dae916f7d2..0a59be1f9bb1 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -1241,6 +1241,13 @@ SwNavigationChild::SwNavigationChild( vcl::Window* pParent,
     {
         pNavi->m_aContentTree->SetRootType(nRootType);
         pNavi->m_aContentToolBox->CheckItem(pNavi->m_aContentToolBox->GetItemId("root"));
+        if (nRootType == ContentTypeId::OUTLINE)
+        {
+            pNavi->m_aContentTree->SetSelectionMode(SelectionMode::Multiple);
+            pNavi->m_aContentTree->SetDragDropMode(DragDropMode::CTRL_MOVE |
+                                                   DragDropMode::CTRL_COPY |
+                                                   DragDropMode::ENABLE_TOP);
+        }
     }
     pNavi->m_aContentTree->SetOutlineLevel( static_cast< sal_uInt8 >( pNaviConfig->GetOutlineLevel() ) );
     pNavi->SetRegionDropMode( pNaviConfig->GetRegionMode() );


More information about the Libreoffice-commits mailing list