summaryrefslogtreecommitdiff
path: root/basctl/source/dlged/dlged.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-21 09:28:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-21 14:34:01 +0200
commit915c7529e9b041879e8c63f15306028a6f649f48 (patch)
tree3072539a7649359d9ddbf1496ef7e4ee7c8ff0d2 /basctl/source/dlged/dlged.cxx
parent5e43e888f6b9bc32fc5d3361be5a7962796726ea (diff)
use tools::Long in accessibility..basctl
Change-Id: I67087c7a281e5bdecbaf227bd3147e7c12828791 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104587 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl/source/dlged/dlged.cxx')
-rw-r--r--basctl/source/dlged/dlged.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx
index 481e669d765b..b9da399830ac 100644
--- a/basctl/source/dlged/dlged.cxx
+++ b/basctl/source/dlged/dlged.cxx
@@ -302,8 +302,8 @@ void DlgEditor::DoScroll()
aScrollPos = rWindow.LogicToPixel( aScrollPos );
aScrollPos = rWindow.PixelToLogic( aScrollPos );
- long nX = aScrollPos.Width() + aOrg.X();
- long nY = aScrollPos.Height() + aOrg.Y();
+ tools::Long nX = aScrollPos.Width() + aOrg.X();
+ tools::Long nY = aScrollPos.Height() + aOrg.Y();
if( !nX && !nY )
return;
@@ -493,7 +493,7 @@ void DlgEditor::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle
Size aSize = rRenderContext.PixelToLogic( Size( 400, 300 ) );
// align with grid
- Size aGridSize_(long(pDlgEdView->GetSnapGridWidthX()), long(pDlgEdView->GetSnapGridWidthY()));
+ Size aGridSize_(tools::Long(pDlgEdView->GetSnapGridWidthX()), tools::Long(pDlgEdView->GetSnapGridWidthY()));
aSize.AdjustWidth( -(aSize.Width() % aGridSize_.Width()) );
aSize.AdjustHeight( -(aSize.Height() % aGridSize_.Height()) );
@@ -1086,11 +1086,11 @@ void DlgEditor::ClearModifyFlag()
namespace Print
{
- long const nLeftMargin = 1700;
- long const nRightMargin = 900;
- long const nTopMargin = 2000;
- long const nBottomMargin = 1000;
- long const nBorder = 300;
+ tools::Long const nLeftMargin = 1700;
+ tools::Long const nRightMargin = 900;
+ tools::Long const nTopMargin = 2000;
+ tools::Long const nBottomMargin = 1000;
+ tools::Long const nBorder = 300;
}
static void lcl_PrintHeader( Printer* pPrinter, const OUString& rTitle ) // not working yet
@@ -1108,20 +1108,20 @@ static void lcl_PrintHeader( Printer* pPrinter, const OUString& rTitle ) // not
aFont.SetAlignment( ALIGN_BOTTOM );
pPrinter->SetFont( aFont );
- long const nFontHeight = pPrinter->GetTextHeight();
+ tools::Long const nFontHeight = pPrinter->GetTextHeight();
// 1st border => line, 2+3 border = free space
- long const nYTop = Print::nTopMargin - 3*Print::nBorder - nFontHeight;
+ tools::Long const nYTop = Print::nTopMargin - 3*Print::nBorder - nFontHeight;
- long const nXLeft = Print::nLeftMargin - Print::nBorder;
- long const nXRight = aSz.Width() - Print::nRightMargin + Print::nBorder;
+ tools::Long const nXLeft = Print::nLeftMargin - Print::nBorder;
+ tools::Long const nXRight = aSz.Width() - Print::nRightMargin + Print::nBorder;
pPrinter->DrawRect(tools::Rectangle(
Point(nXLeft, nYTop),
Size(nXRight - nXLeft, aSz.Height() - nYTop - Print::nBottomMargin + Print::nBorder)
));
- long nY = Print::nTopMargin - 2*Print::nBorder;
+ tools::Long nY = Print::nTopMargin - 2*Print::nBorder;
Point aPos(Print::nLeftMargin, nY);
pPrinter->DrawText( aPos, rTitle );
@@ -1169,13 +1169,13 @@ void DlgEditor::Print( Printer* pPrinter, const OUString& rTitle ) // not wor
Size aOutputSz;
if( nBmpSzHeight * nScaleX <= nPaperSzHeight )
{
- aOutputSz.setWidth( static_cast<long>(nBmpSzWidth * nScaleX) );
- aOutputSz.setHeight( static_cast<long>(nBmpSzHeight * nScaleX) );
+ aOutputSz.setWidth( static_cast<tools::Long>(nBmpSzWidth * nScaleX) );
+ aOutputSz.setHeight( static_cast<tools::Long>(nBmpSzHeight * nScaleX) );
}
else
{
- aOutputSz.setWidth( static_cast<long>(nBmpSzWidth * nScaleY) );
- aOutputSz.setHeight( static_cast<long>(nBmpSzHeight * nScaleY) );
+ aOutputSz.setWidth( static_cast<tools::Long>(nBmpSzWidth * nScaleY) );
+ aOutputSz.setHeight( static_cast<tools::Long>(nBmpSzHeight * nScaleY) );
}
Point aPosOffs(