summaryrefslogtreecommitdiff
path: root/sd/source/ui/func/fuzoom.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/func/fuzoom.cxx')
-rwxr-xr-x[-rw-r--r--]sd/source/ui/func/fuzoom.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/sd/source/ui/func/fuzoom.cxx b/sd/source/ui/func/fuzoom.cxx
index 390522cc33ca..14ad1bad4ad3 100644..100755
--- a/sd/source/ui/func/fuzoom.cxx
+++ b/sd/source/ui/func/fuzoom.cxx
@@ -50,7 +50,7 @@
namespace sd {
-USHORT SidArrayZoom[] = {
+sal_uInt16 SidArrayZoom[] = {
SID_ATTR_ZOOM,
SID_ZOOM_OUT,
SID_ZOOM_IN,
@@ -71,8 +71,8 @@ FuZoom::FuZoom(
SdDrawDocument* pDoc,
SfxRequest& rReq)
: FuPoor(pViewSh, pWin, pView, pDoc, rReq),
- bVisible(FALSE),
- bStartDrag(FALSE)
+ bVisible(sal_False),
+ bStartDrag(sal_False)
{
}
@@ -89,8 +89,8 @@ FuZoom::~FuZoom()
// Hide ZoomRect
mpViewShell->DrawMarkRect(aZoomRect);
- bVisible = FALSE;
- bStartDrag = FALSE;
+ bVisible = sal_False;
+ bStartDrag = sal_False;
}
}
@@ -106,18 +106,18 @@ FunctionReference FuZoom::Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::
|*
\************************************************************************/
-BOOL FuZoom::MouseButtonDown(const MouseEvent& rMEvt)
+sal_Bool FuZoom::MouseButtonDown(const MouseEvent& rMEvt)
{
// #95491# remember button state for creation of own MouseEvents
SetMouseButtonCode(rMEvt.GetButtons());
mpWindow->CaptureMouse();
- bStartDrag = TRUE;
+ bStartDrag = sal_True;
aBeginPosPix = rMEvt.GetPosPixel();
aBeginPos = mpWindow->PixelToLogic(aBeginPosPix);
- return TRUE;
+ return sal_True;
}
/*************************************************************************
@@ -126,7 +126,7 @@ BOOL FuZoom::MouseButtonDown(const MouseEvent& rMEvt)
|*
\************************************************************************/
-BOOL FuZoom::MouseMove(const MouseEvent& rMEvt)
+sal_Bool FuZoom::MouseMove(const MouseEvent& rMEvt)
{
if (bStartDrag)
{
@@ -169,7 +169,7 @@ BOOL FuZoom::MouseMove(const MouseEvent& rMEvt)
mpViewShell->DrawMarkRect(aZoomRect);
}
- bVisible = TRUE;
+ bVisible = sal_True;
}
return bStartDrag;
@@ -181,7 +181,7 @@ BOOL FuZoom::MouseMove(const MouseEvent& rMEvt)
|*
\************************************************************************/
-BOOL FuZoom::MouseButtonUp(const MouseEvent& rMEvt)
+sal_Bool FuZoom::MouseButtonUp(const MouseEvent& rMEvt)
{
// #95491# remember button state for creation of own MouseEvents
SetMouseButtonCode(rMEvt.GetButtons());
@@ -190,7 +190,7 @@ BOOL FuZoom::MouseButtonUp(const MouseEvent& rMEvt)
{
// Hide ZoomRect
mpViewShell->DrawMarkRect(aZoomRect);
- bVisible = FALSE;
+ bVisible = sal_False;
}
Point aPosPix = rMEvt.GetPosPixel();
@@ -199,7 +199,7 @@ BOOL FuZoom::MouseButtonUp(const MouseEvent& rMEvt)
{
// Zoom
Size aZoomSizePixel = mpWindow->LogicToPixel(aZoomRect).GetSize();
- ULONG nTol = DRGPIX + DRGPIX;
+ sal_uLong nTol = DRGPIX + DRGPIX;
if ( aZoomSizePixel.Width() < (long) nTol && aZoomSizePixel.Height() < (long) nTol )
{
@@ -221,11 +221,11 @@ BOOL FuZoom::MouseButtonUp(const MouseEvent& rMEvt)
mpWindow->GetOutputSizePixel()));
mpViewShell->GetZoomList()->InsertZoomRect(aVisAreaWin);
- bStartDrag = FALSE;
+ bStartDrag = sal_False;
mpWindow->ReleaseMouse();
mpViewShell->Cancel();
- return TRUE;
+ return sal_True;
}
/*************************************************************************