summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2011-12-10 01:36:34 -0500
committerAugust Sodora <augsod@gmail.com>2011-12-10 01:36:34 -0500
commit79a8567b422459d1ba42ce60e6cafea416441e75 (patch)
tree0e6b13d729415f5e0a376806c0897060ada4143f /basctl
parentef747a6570d72f3f2f871ee2edd4611523f91988 (diff)
Avoid use of the preprocessor
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/inc/bastypes.hxx23
1 files changed, 13 insertions, 10 deletions
diff --git a/basctl/source/inc/bastypes.hxx b/basctl/source/inc/bastypes.hxx
index 1ab45fc2750b..e61f3117d84f 100644
--- a/basctl/source/inc/bastypes.hxx
+++ b/basctl/source/inc/bastypes.hxx
@@ -105,11 +105,14 @@ public:
void Sort();
};
-#define BASWIN_OK 0x00
-#define BASWIN_RUNNINGBASIC 0x01
-#define BASWIN_TOBEKILLED 0x02
-#define BASWIN_SUSPENDED 0x04
-#define BASWIN_INRESCHEDULE 0x08
+enum BasicWindowStatus
+{
+ BASWIN_OK = 0x00,
+ BASWIN_RUNNINGBASIC = 0x01,
+ BASWIN_TOBEKILLED = 0x02,
+ BASWIN_SUSPENDED = 0x04,
+ BASWIN_INRESCHEDULE = 0x08
+};
class Printer;
class BasicEntryDescriptor;
@@ -126,7 +129,7 @@ private:
ScrollBar* pShellVScrollBar;
DECL_LINK( ScrollHdl, ScrollBar * );
- sal_uInt8 nStatus;
+ int nStatus;
ScriptDocument m_aDocument;
::rtl::OUString m_aLibName;
@@ -173,10 +176,10 @@ public:
virtual void SetReadOnly( sal_Bool bReadOnly );
virtual sal_Bool IsReadOnly();
- sal_uInt8 GetStatus() { return nStatus; }
- void SetStatus( sal_uInt8 n ) { nStatus = n; }
- void AddStatus( sal_uInt8 n ) { nStatus = nStatus | n; }
- void ClearStatus( sal_uInt8 n ) { nStatus = nStatus & ~n; }
+ int GetStatus() { return nStatus; }
+ void SetStatus(int n) { nStatus = n; }
+ void AddStatus(int n) { nStatus |= n; }
+ void ClearStatus(int n) { nStatus &= ~n; }
virtual Window* GetLayoutWindow();