summaryrefslogtreecommitdiff
path: root/sd/source/ui/func/fusnapln.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/func/fusnapln.cxx')
-rw-r--r--sd/source/ui/func/fusnapln.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/sd/source/ui/func/fusnapln.cxx b/sd/source/ui/func/fusnapln.cxx
index cef5fba69..bb4938a8a 100644
--- a/sd/source/ui/func/fusnapln.cxx
+++ b/sd/source/ui/func/fusnapln.cxx
@@ -74,14 +74,14 @@ FunctionReference FuSnapLine::Create( ViewShell* pViewSh, ::sd::Window* pWin, ::
void FuSnapLine::DoExecute( SfxRequest& rReq )
{
const SfxItemSet* pArgs = rReq.GetArgs();
- USHORT nHelpLine = 0;
- BOOL bCreateNew = TRUE;
+ sal_uInt16 nHelpLine = 0;
+ sal_Bool bCreateNew = sal_True;
// Get index of snap line or snap point from the request.
- SFX_REQUEST_ARG (rReq, pHelpLineIndex, SfxUInt32Item, ID_VAL_INDEX, FALSE);
+ SFX_REQUEST_ARG (rReq, pHelpLineIndex, SfxUInt32Item, ID_VAL_INDEX, sal_False);
if (pHelpLineIndex != NULL)
{
- nHelpLine = static_cast<USHORT>(pHelpLineIndex->GetValue());
+ nHelpLine = static_cast<sal_uInt16>(pHelpLineIndex->GetValue());
// Reset the argument pointer to trigger the display of the dialog.
pArgs = NULL;
}
@@ -100,13 +100,13 @@ void FuSnapLine::DoExecute( SfxRequest& rReq )
// request. Determine it from the mouse position.
aLinePos = static_cast<DrawViewShell*>(mpViewShell)->GetMousePos();
- static_cast<DrawViewShell*>(mpViewShell)->SetMousePosFreezed( FALSE );
+ static_cast<DrawViewShell*>(mpViewShell)->SetMousePosFreezed( sal_False );
if ( aLinePos.X() >= 0 )
{
aLinePos = mpWindow->PixelToLogic(aLinePos);
- USHORT nHitLog = (USHORT) mpWindow->PixelToLogic(Size(HITPIX,0)).Width();
+ sal_uInt16 nHitLog = (sal_uInt16) mpWindow->PixelToLogic(Size(HITPIX,0)).Width();
bLineExist = mpView->PickHelpLine(aLinePos, nHitLog, *mpWindow, nHelpLine, pPV);
if ( bLineExist )
aLinePos = (pPV->GetHelpLines())[nHelpLine].GetPos();
@@ -143,23 +143,23 @@ void FuSnapLine::DoExecute( SfxRequest& rReq )
if ( rHelpLine.GetKind() == SDRHELPLINE_POINT )
{
pDlg->SetText(String(SdResId(STR_SNAPDLG_SETPOINT)));
- pDlg->SetInputFields(TRUE, TRUE);
+ pDlg->SetInputFields(sal_True, sal_True);
}
else
{
pDlg->SetText(String(SdResId(STR_SNAPDLG_SETLINE)));
if ( rHelpLine.GetKind() == SDRHELPLINE_VERTICAL )
- pDlg->SetInputFields(TRUE, FALSE);
+ pDlg->SetInputFields(sal_True, sal_False);
else
- pDlg->SetInputFields(FALSE, TRUE);
+ pDlg->SetInputFields(sal_False, sal_True);
}
- bCreateNew = FALSE;
+ bCreateNew = sal_False;
}
else
pDlg->HideDeleteBtn();
- USHORT nResult = pDlg->Execute();
+ sal_uInt16 nResult = pDlg->Execute();
pDlg->GetAttr(aNewAttr);
delete pDlg;