summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-10 16:10:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-10 16:11:37 +0100
commit95a88a478ea7fcc848bc1a579d7ed8dd5c9a7521 (patch)
tree2ecb97a643d2eba77e5711f9e552bd6aaba65c10 /sw/source
parent69dcc7adae5c531b4da8c099bd1e2f99b851ebcd (diff)
these navigator menu items should be radio checks
Change-Id: Ib785ce929ea33250b275969187d63c528fbafe6f
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/utlui/navipi.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx
index dd7d770495ee..fa586e65585e 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -381,9 +381,9 @@ IMPL_LINK( SwNavigationPI, ToolBoxDropdownClickHdl, ToolBox*, pBox, void )
HID_NAVI_DRAG_COPY,
};
ScopedVclPtrInstance<PopupMenu> pMenu;
- for (sal_uInt16 i = 0; i <= static_cast<sal_uInt16>(RegionMode::EMBEDDED); i++)
+ for (sal_uInt16 i = 0; i <= static_cast<sal_uInt16>(RegionMode::EMBEDDED); ++i)
{
- pMenu->InsertItem( i + 1, m_aContextArr[i] );
+ pMenu->InsertItem(i + 1, m_aContextArr[i], MenuItemBits::RADIOCHECK);
pMenu->SetHelpId(i + 1, aHIDs[i]);
}
pMenu->CheckItem( static_cast<int>(m_nRegionMode) + 1 );
@@ -401,10 +401,10 @@ IMPL_LINK( SwNavigationPI, ToolBoxDropdownClickHdl, ToolBox*, pBox, void )
case FN_OUTLINE_LEVEL:
{
ScopedVclPtrInstance<PopupMenu> pMenu;
- for (sal_uInt16 i = 101; i <= 100 + MAXLEVEL; i++)
+ for (sal_uInt16 i = 101; i <= 100 + MAXLEVEL; ++i)
{
- pMenu->InsertItem( i, OUString::number(i - 100) );
- pMenu->SetHelpId( i, HID_NAVI_OUTLINES );
+ pMenu->InsertItem(i, OUString::number(i - 100), MenuItemBits::RADIOCHECK);
+ pMenu->SetHelpId(i, HID_NAVI_OUTLINES);
}
pMenu->CheckItem( m_aContentTree->GetOutlineLevel() + 100 );
pMenu->SetSelectHdl(LINK(this, SwNavigationPI, MenuSelectHdl));