Kaydet (Commit) 79a8567b authored tarafından August Sodora's avatar August Sodora

Avoid use of the preprocessor

üst ef747a65
...@@ -105,11 +105,14 @@ public: ...@@ -105,11 +105,14 @@ public:
void Sort(); void Sort();
}; };
#define BASWIN_OK 0x00 enum BasicWindowStatus
#define BASWIN_RUNNINGBASIC 0x01 {
#define BASWIN_TOBEKILLED 0x02 BASWIN_OK = 0x00,
#define BASWIN_SUSPENDED 0x04 BASWIN_RUNNINGBASIC = 0x01,
#define BASWIN_INRESCHEDULE 0x08 BASWIN_TOBEKILLED = 0x02,
BASWIN_SUSPENDED = 0x04,
BASWIN_INRESCHEDULE = 0x08
};
class Printer; class Printer;
class BasicEntryDescriptor; class BasicEntryDescriptor;
...@@ -126,7 +129,7 @@ private: ...@@ -126,7 +129,7 @@ private:
ScrollBar* pShellVScrollBar; ScrollBar* pShellVScrollBar;
DECL_LINK( ScrollHdl, ScrollBar * ); DECL_LINK( ScrollHdl, ScrollBar * );
sal_uInt8 nStatus; int nStatus;
ScriptDocument m_aDocument; ScriptDocument m_aDocument;
::rtl::OUString m_aLibName; ::rtl::OUString m_aLibName;
...@@ -173,10 +176,10 @@ public: ...@@ -173,10 +176,10 @@ public:
virtual void SetReadOnly( sal_Bool bReadOnly ); virtual void SetReadOnly( sal_Bool bReadOnly );
virtual sal_Bool IsReadOnly(); virtual sal_Bool IsReadOnly();
sal_uInt8 GetStatus() { return nStatus; } int GetStatus() { return nStatus; }
void SetStatus( sal_uInt8 n ) { nStatus = n; } void SetStatus(int n) { nStatus = n; }
void AddStatus( sal_uInt8 n ) { nStatus = nStatus | n; } void AddStatus(int n) { nStatus |= n; }
void ClearStatus( sal_uInt8 n ) { nStatus = nStatus & ~n; } void ClearStatus(int n) { nStatus &= ~n; }
virtual Window* GetLayoutWindow(); virtual Window* GetLayoutWindow();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment