summaryrefslogtreecommitdiff
path: root/svx/source/xoutdev/xtabptrn.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-12 09:52:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-26 07:35:36 +0100
commit4fbd63860500b2db76df4d5aedbe5e3aa31fac69 (patch)
tree5fa96dc262ba651e82244b0f9e508f79e88ea2df /svx/source/xoutdev/xtabptrn.cxx
parent62fa5bb8c1299469eacc21cb35ee670b65120713 (diff)
switching long to a 64-bit type on 64-bit windows
(*) create a rewriting plugin to do most of the work, heavily based on the fakebool plugin (*) but there are still a number of "long"s in the codebase that will need to be done by hand (*) the plugin needs lots of handholding, due to needing to add #include and update macros Change-Id: I8184d7000ca482c0469514bb73178c3a1123b1e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104203 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/xoutdev/xtabptrn.cxx')
-rw-r--r--svx/source/xoutdev/xtabptrn.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/xoutdev/xtabptrn.cxx b/svx/source/xoutdev/xtabptrn.cxx
index 8a53168b491b..96e1d4b919c3 100644
--- a/svx/source/xoutdev/xtabptrn.cxx
+++ b/svx/source/xoutdev/xtabptrn.cxx
@@ -30,7 +30,7 @@
using namespace com::sun::star;
-XBitmapEntry* XPatternList::GetBitmap(long nIndex) const
+XBitmapEntry* XPatternList::GetBitmap(tools::Long nIndex) const
{
return static_cast<XBitmapEntry*>( XPropertyList::Get(nIndex) );
}
@@ -79,7 +79,7 @@ bool XPatternList::Create()
return true;
}
-BitmapEx XPatternList::CreateBitmap( long nIndex, const Size& rSize ) const
+BitmapEx XPatternList::CreateBitmap( tools::Long nIndex, const Size& rSize ) const
{
assert( nIndex < Count() );
@@ -118,9 +118,9 @@ BitmapEx XPatternList::CreateBitmap( long nIndex, const Size& rSize ) const
{
const Size aBitmapSize(rBitmapEx.GetSizePixel());
- for(long y(0); y < rSize.Height(); y += aBitmapSize.Height())
+ for(tools::Long y(0); y < rSize.Height(); y += aBitmapSize.Height())
{
- for(long x(0); x < rSize.Width(); x += aBitmapSize.Width())
+ for(tools::Long x(0); x < rSize.Width(); x += aBitmapSize.Width())
{
pVirtualDevice->DrawBitmapEx(
Point(x, y),
@@ -135,14 +135,14 @@ BitmapEx XPatternList::CreateBitmap( long nIndex, const Size& rSize ) const
return BitmapEx();
}
-BitmapEx XPatternList::CreateBitmapForUI( long nIndex )
+BitmapEx XPatternList::CreateBitmapForUI( tools::Long nIndex )
{
const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
const Size& rSize = rStyleSettings.GetListBoxPreviewDefaultPixelSize();
return CreateBitmap(nIndex, rSize);
}
-BitmapEx XPatternList::GetBitmapForPreview( long nIndex, const Size& rSize )
+BitmapEx XPatternList::GetBitmapForPreview( tools::Long nIndex, const Size& rSize )
{
return CreateBitmap(nIndex, rSize);
}