summaryrefslogtreecommitdiff
path: root/svx/source/svdraw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-16 15:41:10 +0200
committerNoel Grandin <noel@peralex.com>2015-04-22 10:28:39 +0200
commit0578aa4de27cc960cd3709eb2e15f40e02e1272d (patch)
tree295966c066e2760f4322273d970fa02fe5e0c84a /svx/source/svdraw
parentf87e0957cdcbf9ee12e0615b55a1bb1de1d70efb (diff)
convert BROWSER_ constants to scoped enum
and fix a couple of places where it was mixing these flags up with the WinBits flags and calling the wrong constructor. Change-Id: I65c66bdd5a263e2f1db179c853f3f00e9ac7659e
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r--svx/source/svdraw/svdibrow.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdibrow.cxx b/svx/source/svdraw/svdibrow.cxx
index 581fc860206a..d816c0ede1c6 100644
--- a/svx/source/svdraw/svdibrow.cxx
+++ b/svx/source/svdraw/svdibrow.cxx
@@ -206,7 +206,7 @@ void ImpItemEdit::KeyInput(const KeyEvent& rKEvt)
// - _SdrItemBrowserControl -
-#define MYBROWSEMODE (BROWSER_THUMBDRAGGING|BROWSER_KEEPHIGHLIGHT|BROWSER_NO_HSCROLL|BROWSER_HIDECURSOR)
+#define MYBROWSEMODE (BrowserMode::THUMBDRAGGING|BrowserMode::KEEPHIGHLIGHT|BrowserMode::NO_HSCROLL|BrowserMode::HIDECURSOR)
_SdrItemBrowserControl::_SdrItemBrowserControl(vcl::Window* pParent, WinBits nBits):
BrowseBox(pParent,nBits,MYBROWSEMODE),
@@ -492,7 +492,7 @@ bool _SdrItemBrowserControl::BegChangeEntry(sal_uIntPtr nPos)
bool bRet = false;
ImpItemListRow* pEntry=ImpGetEntry(nPos);
if (pEntry!=NULL && !pEntry->bComment) {
- SetMode(MYBROWSEMODE & ~BROWSER_KEEPHIGHLIGHT);
+ SetMode(MYBROWSEMODE & BrowserMode(~BrowserMode::KEEPHIGHLIGHT));
pEditControl=new ImpItemEdit(&GetDataWindow(),this,0);
Rectangle aRect(GetFieldRectPixel(nPos, ITEMBROWSER_VALUECOL_ID, false));
aRect.Left()+=2; // little offset for the Edit, so it's exact to the pixel
@@ -907,7 +907,7 @@ sal_uInt16 ImpSortWhich(sal_uInt16 nWhich)
void _SdrItemBrowserControl::SetAttributes(const SfxItemSet* pSet, const SfxItemSet* p2ndSet)
{
- SetMode(MYBROWSEMODE & ~BROWSER_KEEPHIGHLIGHT);
+ SetMode(MYBROWSEMODE & BrowserMode(~BrowserMode::KEEPHIGHLIGHT));
if (pSet!=NULL) {
sal_uInt16 nEntryNum=0;
SfxWhichIter aIter(*pSet);