diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-21 15:33:43 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-22 10:28:41 +0200 |
commit | 1b5f6935a498c1d9eea35ba0aa2edd25ee11ca47 (patch) | |
tree | 40347c60c1970acf90dd6db95f4067bb4216a62e /sw/source/ui/misc | |
parent | 38143e4599e4ec759a11ea96a4b852bb00a42ab6 (diff) |
convert SV_DRAGDOP_ constants to scoped enum
Change-Id: If953610ed24a2b6d5f33f2ba014fba2ca5308d7d
Diffstat (limited to 'sw/source/ui/misc')
-rw-r--r-- | sw/source/ui/misc/glossary.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx index 0c2960398514..858fd69bdd3a 100644 --- a/sw/source/ui/misc/glossary.cxx +++ b/sw/source/ui/misc/glossary.cxx @@ -812,7 +812,7 @@ SwGlTreeListBox::SwGlTreeListBox(vcl::Window* pParent, WinBits nBits) , sReadonly(SW_RESSTR(SW_STR_READONLY)), pDragEntry(0) { - SetDragDropMode( SV_DRAGDROP_CTRL_MOVE|SV_DRAGDROP_CTRL_COPY ); + SetDragDropMode( DragDropMode::CTRL_MOVE|DragDropMode::CTRL_COPY ); } Size SwGlTreeListBox::GetOptimalSize() const @@ -892,7 +892,7 @@ DragDropMode SwGlTreeListBox::NotifyStartDrag( DragDropMode eRet; pDragEntry = pEntry; if(!GetParent(pEntry)) - eRet = SV_DRAGDROP_NONE; + eRet = DragDropMode::NONE; else { SwGlossaryDlg* pDlg = static_cast<SwGlossaryDlg*>(GetParentDialog()); @@ -903,10 +903,10 @@ DragDropMode SwGlTreeListBox::NotifyStartDrag( + OUStringLiteral1<GLOS_DELIM>() + OUString::number(pGroupData->nPathIdx); sal_Int8 nDragOption = DND_ACTION_COPY; - eRet = SV_DRAGDROP_CTRL_COPY; + eRet = DragDropMode::CTRL_COPY; if(!pDlg->pGlossaryHdl->IsReadOnly(&sEntry)) { - eRet |= SV_DRAGDROP_CTRL_MOVE; + eRet |= DragDropMode::CTRL_MOVE; nDragOption |= DND_ACTION_MOVE; } SetDragOptions( nDragOption ); |