diff options
Diffstat (limited to 'sw/source/ui/inc/edtwin.hxx')
-rw-r--r-- | sw/source/ui/inc/edtwin.hxx | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/sw/source/ui/inc/edtwin.hxx b/sw/source/ui/inc/edtwin.hxx index b70a3f75aa96..3ca6259c41a4 100644 --- a/sw/source/ui/inc/edtwin.hxx +++ b/sw/source/ui/inc/edtwin.hxx @@ -60,23 +60,23 @@ class SwEditWin: public Window, public DropTargetHelper, public DragSourceHelper { friend void ScrollMDI(ViewShell* pVwSh, const SwRect&, - USHORT nRangeX, USHORT nRangeY); -friend BOOL IsScrollMDI(ViewShell* pVwSh, const SwRect&); + sal_uInt16 nRangeX, sal_uInt16 nRangeY); +friend sal_Bool IsScrollMDI(ViewShell* pVwSh, const SwRect&); friend void SizeNotify(ViewShell* pVwSh, const Size &); friend void PageNumNotify( ViewShell* pVwSh, - USHORT nPhyNum, - USHORT nVirtNum, + sal_uInt16 nPhyNum, + sal_uInt16 nVirtNum, const String& rPg ); static QuickHelpData* pQuickHlpData; - static BOOL bReplaceQuote; + static sal_Bool bReplaceQuote; static long nDDStartPosX, nDDStartPosY; static Color aTextColor; //Textfarbe, fuer die Giesskanne - static BOOL bTransparentBackColor; // Hintergrund transparent + static sal_Bool bTransparentBackColor; // Hintergrund transparent static Color aTextBackColor; //Texthintergrundfarbe, fuer die Giesskanne /* @@ -113,14 +113,14 @@ friend void PageNumNotify( ViewShell* pVwSh, int aActHitType; // aktueller Mauspointer - ULONG m_nDropFormat; //Format aus dem letzten QueryDrop - USHORT m_nDropAction; //Action aus dem letzten QueryDrop - USHORT m_nDropDestination; //Ziel aus dem letzten QueryDrop + sal_uLong m_nDropFormat; //Format aus dem letzten QueryDrop + sal_uInt16 m_nDropAction; //Action aus dem letzten QueryDrop + sal_uInt16 m_nDropDestination; //Ziel aus dem letzten QueryDrop - UINT16 eBezierMode; - UINT16 nInsFrmColCount; //Spaltenzahl fuer interaktiven Rahmen + sal_uInt16 eBezierMode; + sal_uInt16 nInsFrmColCount; //Spaltenzahl fuer interaktiven Rahmen SdrObjKind eDrawMode; - BOOL bLinkRemoved : 1, + sal_Bool bLinkRemoved : 1, bMBPressed : 1, bInsDraw : 1, bInsFrm : 1, @@ -142,8 +142,8 @@ friend void PageNumNotify( ViewShell* pVwSh, bObjectSelect : 1; - USHORT nKS_NUMDOWN_Count; // #i23725# - USHORT nKS_NUMINDENTINC_Count; + sal_uInt16 nKS_NUMDOWN_Count; // #i23725# + sal_uInt16 nKS_NUMINDENTINC_Count; void LeaveArea(const Point &); void JustifyAreaTimer(); @@ -151,19 +151,19 @@ friend void PageNumNotify( ViewShell* pVwSh, void RstMBDownFlags(); - void ChangeFly( BYTE nDir, BOOL bWeb = FALSE ); - void ChangeDrawing( BYTE nDir ); + void ChangeFly( sal_uInt8 nDir, sal_Bool bWeb = sal_False ); + void ChangeDrawing( sal_uInt8 nDir ); - BOOL EnterDrawMode(const MouseEvent& rMEvt, const Point& aDocPos); - BOOL RulerColumnDrag( const MouseEvent& rMEvt, BOOL bVerticalMode); + sal_Bool EnterDrawMode(const MouseEvent& rMEvt, const Point& aDocPos); + sal_Bool RulerColumnDrag( const MouseEvent& rMEvt, sal_Bool bVerticalMode); //Hilfsfunktionen fuer D&D void DropCleanup(); void CleanupDropUserMarker(); - USHORT GetDropDestination( const Point& rPixPnt, + sal_uInt16 GetDropDestination( const Point& rPixPnt, SdrObject ** ppObj = 0 ); //select the object/cursor at the mouse position of the context menu request - BOOL SelectMenuPosition(SwWrtShell& rSh, const Point& rMousePos ); + sal_Bool SelectMenuPosition(SwWrtShell& rSh, const Point& rMousePos ); /* * Handler fuer das Weiterscrollen, wenn der Mauspointer innerhalb eines @@ -217,45 +217,45 @@ protected: SvxAutoCorrect* pACorr, sal_Bool bFromIME = sal_False ); public: - void UpdatePointer(const Point &, USHORT nButtons = 0); + void UpdatePointer(const Point &, sal_uInt16 nButtons = 0); - BOOL IsDrawSelMode(); - BOOL IsDrawAction() { return (bInsDraw); } - void SetDrawAction(BOOL bFlag) { bInsDraw = bFlag; } + sal_Bool IsDrawSelMode(); + sal_Bool IsDrawAction() { return (bInsDraw); } + void SetDrawAction(sal_Bool bFlag) { bInsDraw = bFlag; } - void SetObjectSelect( BOOL bVal ) { bObjectSelect = bVal; } - BOOL IsObjectSelect() const { return bObjectSelect; } + void SetObjectSelect( sal_Bool bVal ) { bObjectSelect = bVal; } + sal_Bool IsObjectSelect() const { return bObjectSelect; } - inline SdrObjKind GetSdrDrawMode(/*BOOL bBuf = FALSE*/) const { return eDrawMode; } - inline void SetSdrDrawMode( SdrObjKind eSdrObjectKind ) { eDrawMode = eSdrObjectKind; SetObjectSelect( FALSE ); } - void StdDrawMode( SdrObjKind eSdrObjectKind, BOOL bObjSelect ); + inline SdrObjKind GetSdrDrawMode(/*sal_Bool bBuf = sal_False*/) const { return eDrawMode; } + inline void SetSdrDrawMode( SdrObjKind eSdrObjectKind ) { eDrawMode = eSdrObjectKind; SetObjectSelect( sal_False ); } + void StdDrawMode( SdrObjKind eSdrObjectKind, sal_Bool bObjSelect ); - BOOL IsFrmAction() { return (bInsFrm); } - inline UINT16 GetBezierMode() { return eBezierMode; } - void SetBezierMode(UINT16 eBezMode) { eBezierMode = eBezMode; } + sal_Bool IsFrmAction() { return (bInsFrm); } + inline sal_uInt16 GetBezierMode() { return eBezierMode; } + void SetBezierMode(sal_uInt16 eBezMode) { eBezierMode = eBezMode; } void EnterDrawTextMode(const Point& aDocPos); // DrawTextEditMode einschalten - void InsFrm(USHORT nCols); + void InsFrm(sal_uInt16 nCols); void StopInsFrm(); - UINT16 GetFrmColCount() const {return nInsFrmColCount;} //Spaltenzahl fuer interaktiven Rahmen + sal_uInt16 GetFrmColCount() const {return nInsFrmColCount;} //Spaltenzahl fuer interaktiven Rahmen - void SetChainMode( BOOL bOn ); - BOOL IsChainMode() const { return bChainMode; } + void SetChainMode( sal_Bool bOn ); + sal_Bool IsChainMode() const { return bChainMode; } void FlushInBuffer(); - BOOL IsInputSequenceCheckingRequired( const String &rText, const SwPaM& rCrsr ) const; + sal_Bool IsInputSequenceCheckingRequired( const String &rText, const SwPaM& rCrsr ) const; - static void SetReplaceQuote(BOOL bOn = TRUE) { bReplaceQuote = bOn; } - static BOOL IsReplaceQuote() { return bReplaceQuote; } + static void SetReplaceQuote(sal_Bool bOn = sal_True) { bReplaceQuote = bOn; } + static sal_Bool IsReplaceQuote() { return bReplaceQuote; } void SetApplyTemplate(const SwApplyTemplate &); SwApplyTemplate* GetApplyTemplate() const { return pApplyTempl; } void StartExecuteDrag(); void DragFinished(); - USHORT GetDropAction() const { return m_nDropAction; } - ULONG GetDropFormat() const { return m_nDropFormat; } + sal_uInt16 GetDropAction() const { return m_nDropAction; } + sal_uLong GetDropFormat() const { return m_nDropFormat; } Color GetTextColor() { return aTextColor; } @@ -265,11 +265,11 @@ public: { return aTextBackColor; } void SetTextBackColor(const Color& rCol ) { aTextBackColor = rCol; } - void SetTextBackColorTransparent(BOOL bSet) + void SetTextBackColorTransparent(sal_Bool bSet) { bTransparentBackColor = bSet; } - BOOL IsTextBackColorTransparent() + sal_Bool IsTextBackColorTransparent() { return bTransparentBackColor; } - void LockKeyInput(BOOL bSet){bLockInput = bSet;} + void LockKeyInput(sal_Bool bSet){bLockInput = bSet;} const SwView &GetView() const { return rView; } SwView &GetView() { return rView; } @@ -289,7 +289,7 @@ public: void StopQuickHelp(); // --> OD 2005-02-18 #i42921# - add parameter <bVerticalMode> - BOOL RulerMarginDrag( const MouseEvent& rMEvt, + sal_Bool RulerMarginDrag( const MouseEvent& rMEvt, const bool bVerticalMode ); // <-- |