From 20881524848bf8478e216671c15ccf00c7b76746 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 10 Apr 2017 10:46:15 +0100 Subject: the navigator menus in writer should use radio entries too Change-Id: Iea9ae8ef33387a76d43aaa802fa0600a352ae1f0 --- sw/source/uibase/utlui/content.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 8db9a70127b5..cf178dbf3895 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -1105,13 +1105,13 @@ VclPtr SwContentTree::CreateContextMenu() for(int i = 1; i <= MAXLEVEL; ++i) { - pSubPop1->InsertItem( i + 100, OUString::number(i)); + pSubPop1->InsertItem(i + 100, OUString::number(i), MenuItemBits::AUTOCHECK | MenuItemBits::RADIOCHECK); } pSubPop1->CheckItem(100 + m_nOutlineLevel); for(int i=0; i < 3; ++i) { - pSubPop2->InsertItem( i + 201, m_aContextStrings[ - STR_HYPERLINK - STR_CONTEXT_FIRST + i]); + pSubPop2->InsertItem(i + 201, m_aContextStrings[ + STR_HYPERLINK - STR_CONTEXT_FIRST + i], MenuItemBits::AUTOCHECK | MenuItemBits::RADIOCHECK); } pSubPop2->CheckItem(201 + static_cast(GetParentWindow()->GetRegionDropMode())); // Insert the list of the open files @@ -1127,20 +1127,20 @@ VclPtr SwContentTree::CreateContextMenu() sInsert += m_aContextStrings[ STR_ACTIVE - STR_CONTEXT_FIRST]; sInsert += ")"; } - pSubPop3->InsertItem(nId, sInsert); + pSubPop3->InsertItem(nId, sInsert, MenuItemBits::AUTOCHECK | MenuItemBits::RADIOCHECK); if (State::CONSTANT == m_eState && m_pActiveShell == &pView->GetWrtShell()) pSubPop3->CheckItem(nId); pView = SwModule::GetNextView(pView); nId++; } - pSubPop3->InsertItem(nId++, m_aContextStrings[STR_ACTIVE_VIEW - STR_CONTEXT_FIRST]); + pSubPop3->InsertItem(nId++, m_aContextStrings[STR_ACTIVE_VIEW - STR_CONTEXT_FIRST], MenuItemBits::AUTOCHECK | MenuItemBits::RADIOCHECK); if(m_pHiddenShell) { OUString sHiddenEntry = m_pHiddenShell->GetView().GetDocShell()->GetTitle(); sHiddenEntry += " ( "; sHiddenEntry += m_aContextStrings[ STR_HIDDEN - STR_CONTEXT_FIRST]; sHiddenEntry += " )"; - pSubPop3->InsertItem(nId, sHiddenEntry); + pSubPop3->InsertItem(nId, sHiddenEntry, MenuItemBits::AUTOCHECK | MenuItemBits::RADIOCHECK); } if (State::ACTIVE == m_eState) -- cgit