summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2018-09-22 11:25:31 -0800
committerJim Raykowski <raykowj@gmail.com>2018-10-08 23:17:37 +0200
commit7645bd0adf4f4e8845ecb7bcb814aa2a0537bff3 (patch)
treec816dd7880a326def6be23edff1518e07f3e5e14
parentbc9385c71e780f4dca5c54b8e817faae43c30d18 (diff)
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@gmail.com>
-rw-r--r--sw/source/uibase/utlui/navipi.cxx7
1 files changed, 7 insertions, 0 deletions
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() );