diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-10 10:46:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-10 13:22:50 +0100 |
commit | 20881524848bf8478e216671c15ccf00c7b76746 (patch) | |
tree | d141440234ab7f5dc01fbf769c3c867bdfe906e7 /sw | |
parent | e41d66811b9fef1fa0e7d3c0911104893fe6915c (diff) |
the navigator menus in writer should use radio entries too
Change-Id: Iea9ae8ef33387a76d43aaa802fa0600a352ae1f0
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 12 |
1 files 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<PopupMenu> 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<int>(GetParentWindow()->GetRegionDropMode())); // Insert the list of the open files @@ -1127,20 +1127,20 @@ VclPtr<PopupMenu> 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) |