summaryrefslogtreecommitdiffstats
path: root/vcl/win/gdi
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/win/gdi')
-rw-r--r--vcl/win/gdi/gdiimpl.cxx16
-rw-r--r--vcl/win/gdi/salbmp.cxx26
-rw-r--r--vcl/win/gdi/salfont.cxx8
-rw-r--r--vcl/win/gdi/salgdi.cxx22
-rw-r--r--vcl/win/gdi/salnativewidgets-luna.cxx32
-rw-r--r--vcl/win/gdi/salprn.cxx60
6 files changed, 82 insertions, 82 deletions
diff --git a/vcl/win/gdi/gdiimpl.cxx b/vcl/win/gdi/gdiimpl.cxx
index 95fd346af1a5..79621f53bf60 100644
--- a/vcl/win/gdi/gdiimpl.cxx
+++ b/vcl/win/gdi/gdiimpl.cxx
@@ -470,7 +470,7 @@ void WinSalGraphicsImpl::copyArea( long nDestX, long nDestY,
hOldClipRgn = CreateRectRgn( 0, 0, 0, 0 );
nOldClipRgnType = GetClipRgn( mrParent.getHDC(), hOldClipRgn );
- bRestoreClipRgn = TRUE; // indicate changed clipregion and force invalidate
+ bRestoreClipRgn = true; // indicate changed clipregion and force invalidate
ExtSelectClipRgn( mrParent.getHDC(), hInvalidateRgn, RGN_DIFF );
}
}
@@ -810,7 +810,7 @@ std::shared_ptr<SalBitmap> WinSalGraphicsImpl::getBitmap( long nX, long nY, long
{
pSalBitmap = std::make_shared<WinSalBitmap>();
- if( !pSalBitmap->Create( hBmpBitmap, FALSE, FALSE ) )
+ if( !pSalBitmap->Create( hBmpBitmap, false, false ) )
{
pSalBitmap.reset();
}
@@ -1285,8 +1285,8 @@ void WinSalGraphicsImpl::SetLineColor()
ResetPen(GetStockPen(NULL_PEN));
// set new data
- mbPen = FALSE;
- mbStockPen = TRUE;
+ mbPen = false;
+ mbStockPen = true;
}
void WinSalGraphicsImpl::SetLineColor(Color nColor)
@@ -1307,7 +1307,7 @@ void WinSalGraphicsImpl::SetLineColor(Color nColor)
// set new data
mnPenColor = nPenColor;
maLineColor = nColor;
- mbPen = TRUE;
+ mbPen = true;
mbStockPen = bStockPen;
}
@@ -1369,8 +1369,8 @@ void WinSalGraphicsImpl::SetFillColor()
ResetBrush(GetStockBrush(NULL_BRUSH));
// set new data
- mbBrush = FALSE;
- mbStockBrush = TRUE;
+ mbBrush = false;
+ mbStockBrush = true;
}
void WinSalGraphicsImpl::SetFillColor(Color nColor)
@@ -1391,7 +1391,7 @@ void WinSalGraphicsImpl::SetFillColor(Color nColor)
// set new data
mnBrushColor = nBrushColor;
maFillColor = nColor;
- mbBrush = TRUE;
+ mbBrush = true;
mbStockBrush = bStockBrush;
}
diff --git a/vcl/win/gdi/salbmp.cxx b/vcl/win/gdi/salbmp.cxx
index 173ea361bbe8..128f786381e0 100644
--- a/vcl/win/gdi/salbmp.cxx
+++ b/vcl/win/gdi/salbmp.cxx
@@ -470,7 +470,7 @@ Gdiplus::Bitmap* WinSalBitmap::ImplCreateGdiPlusBitmap(const WinSalBitmap& rAlph
bool WinSalBitmap::Create( HANDLE hBitmap, bool bDIB, bool bCopyHandle )
{
- bool bRet = TRUE;
+ bool bRet = true;
if( bDIB )
mhDIB = static_cast<HGLOBAL>( bCopyHandle ? ImplCopyDIBOrDDB( hBitmap, true ) : hBitmap );
@@ -508,18 +508,18 @@ bool WinSalBitmap::Create( HANDLE hBitmap, bool bDIB, bool bCopyHandle )
else
{
mhDDB = nullptr;
- bRet = FALSE;
+ bRet = false;
}
}
else
- bRet = FALSE;
+ bRet = false;
return bRet;
}
bool WinSalBitmap::Create( const Size& rSize, sal_uInt16 nBitCount, const BitmapPalette& rPal )
{
- bool bRet = FALSE;
+ bool bRet = false;
mhDIB = ImplCreateDIB( rSize, nBitCount, rPal );
@@ -527,7 +527,7 @@ bool WinSalBitmap::Create( const Size& rSize, sal_uInt16 nBitCount, const Bitmap
{
maSize = rSize;
mnBitCount = nBitCount;
- bRet = TRUE;
+ bRet = true;
}
return bRet;
@@ -535,7 +535,7 @@ bool WinSalBitmap::Create( const Size& rSize, sal_uInt16 nBitCount, const Bitmap
bool WinSalBitmap::Create( const SalBitmap& rSSalBitmap )
{
- bool bRet = FALSE;
+ bool bRet = false;
const WinSalBitmap& rSalBitmap = static_cast<const WinSalBitmap&>(rSSalBitmap);
if ( rSalBitmap.mhDIB || rSalBitmap.mhDDB )
@@ -553,7 +553,7 @@ bool WinSalBitmap::Create( const SalBitmap& rSSalBitmap )
maSize = rSalBitmap.maSize;
mnBitCount = rSalBitmap.mnBitCount;
- bRet = TRUE;
+ bRet = true;
}
}
@@ -562,7 +562,7 @@ bool WinSalBitmap::Create( const SalBitmap& rSSalBitmap )
bool WinSalBitmap::Create( const SalBitmap& rSSalBmp, SalGraphics* pSGraphics )
{
- bool bRet = FALSE;
+ bool bRet = false;
const WinSalBitmap& rSalBmp = static_cast<const WinSalBitmap&>(rSSalBmp);
WinSalGraphics* pGraphics = static_cast<WinSalGraphics*>(pSGraphics);
@@ -594,7 +594,7 @@ bool WinSalBitmap::Create( const SalBitmap& rSSalBmp, SalGraphics* pSGraphics )
maSize = Size( aDDBInfo.bmWidth, aDDBInfo.bmHeight );
mnBitCount = aDDBInfo.bmPlanes * aDDBInfo.bmBitsPixel;
- bRet = TRUE;
+ bRet = true;
}
else if( hNewDDB )
DeleteObject( hNewDDB );
@@ -605,7 +605,7 @@ bool WinSalBitmap::Create( const SalBitmap& rSSalBmp, SalGraphics* pSGraphics )
bool WinSalBitmap::Create( const SalBitmap& rSSalBmp, sal_uInt16 nNewBitCount )
{
- bool bRet = FALSE;
+ bool bRet = false;
const WinSalBitmap& rSalBmp = static_cast<const WinSalBitmap&>(rSSalBmp);
@@ -634,7 +634,7 @@ bool WinSalBitmap::Create( const SalBitmap& rSSalBmp, sal_uInt16 nNewBitCount )
GlobalUnlock( mhDIB );
maSize = rSalBmp.maSize;
mnBitCount = nNewBitCount;
- bRet = TRUE;
+ bRet = true;
}
else
{
@@ -950,7 +950,7 @@ void WinSalBitmap::ImplDecodeRLEBuffer( const BYTE* pSrcBuf, BYTE* pDstBuf,
sal_uLong nRunByte;
sal_uLong i;
BYTE cTmp;
- bool bEndDecoding = FALSE;
+ bool bEndDecoding = false;
if( pRLE && pDIB )
{
@@ -996,7 +996,7 @@ void WinSalBitmap::ImplDecodeRLEBuffer( const BYTE* pSrcBuf, BYTE* pDstBuf,
nX = 0;
}
else if( nRunByte == 1 )
- bEndDecoding = TRUE;
+ bEndDecoding = true;
else
{
nX += *pRLE++;
diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx
index 9d8439c7387c..0a962c49f8db 100644
--- a/vcl/win/gdi/salfont.cxx
+++ b/vcl/win/gdi/salfont.cxx
@@ -1568,7 +1568,7 @@ bool WinSalGraphics::CreateFontSubset( const OUString& rToFile,
OUString aSysPath;
if( osl_File_E_None != osl_getSystemPathFromFileURL( rToFile.pData, &aSysPath.pData ) )
- return FALSE;
+ return false;
const rtl_TextEncoding aThreadEncoding = osl_getThreadTextEncoding();
const OString aToFile(OUStringToOString(aSysPath, aThreadEncoding));
@@ -1591,7 +1591,7 @@ bool WinSalGraphics::CreateFontSubset( const OUString& rToFile,
// get raw font file data
const RawFontData xRawFontData( getHDC(), 0 );
if( !xRawFontData.get() )
- return FALSE;
+ return false;
// open font file
sal_uInt32 nFaceNum = 0;
@@ -1601,7 +1601,7 @@ bool WinSalGraphics::CreateFontSubset( const OUString& rToFile,
ScopedTrueTypeFont aSftTTF;
SFErrCodes nRC = aSftTTF.open( xRawFontData.get(), xRawFontData.size(), nFaceNum );
if( nRC != SFErrCodes::Ok )
- return FALSE;
+ return false;
TTGlobalFontInfo aTTInfo;
::GetTTGlobalFontInfo( aSftTTF.get(), &aTTInfo );
@@ -1647,7 +1647,7 @@ bool WinSalGraphics::CreateFontSubset( const OUString& rToFile,
std::unique_ptr<sal_uInt16[]> pMetrics =
::GetTTSimpleGlyphMetrics( aSftTTF.get(), aShortIDs, nGlyphCount, aIFSD.mbVertical );
if( !pMetrics )
- return FALSE;
+ return false;
sal_uInt16 nNotDefAdv = pMetrics[0];
pMetrics[0] = pMetrics[nNotDef];
pMetrics[nNotDef] = nNotDefAdv;
diff --git a/vcl/win/gdi/salgdi.cxx b/vcl/win/gdi/salgdi.cxx
index 2d4a283bb818..c8b1aa4471e7 100644
--- a/vcl/win/gdi/salgdi.cxx
+++ b/vcl/win/gdi/salgdi.cxx
@@ -153,7 +153,7 @@ void ImplInitSalGDI()
HBITMAP hBmpOld = static_cast<HBITMAP>(::SelectObject( hMemDC, hMemBmp ));
HBRUSH hMemBrush = ::CreateSolidBrush( PALETTERGB( 175, 171, 169 ) );
HBRUSH hBrushOld = static_cast<HBRUSH>(::SelectObject( hMemDC, hMemBrush ));
- bool bDither16 = TRUE;
+ bool bDither16 = true;
::PatBlt( hMemDC, 0, 0, 8, 8, PATCOPY );
const COLORREF aCol( ::GetPixel( hMemDC, 0, 0 ) );
@@ -161,7 +161,7 @@ void ImplInitSalGDI()
for( int nY = 0; ( nY < 8 ) && bDither16; nY++ )
for( int nX = 0; ( nX < 8 ) && bDither16; nX++ )
if( ::GetPixel( hMemDC, nX, nY ) != aCol )
- bDither16 = FALSE;
+ bDither16 = false;
::SelectObject( hMemDC, hBrushOld );
::DeleteObject( hMemBrush );
@@ -828,7 +828,7 @@ static BYTE* ImplSearchEntry( BYTE* pSource, BYTE const * pDest, sal_uLong nComp
static bool ImplGetBoundingBox( double* nNumb, BYTE* pSource, sal_uLong nSize )
{
- bool bRetValue = FALSE;
+ bool bRetValue = false;
BYTE* pDest = ImplSearchEntry( pSource, reinterpret_cast<BYTE const *>("%%BoundingBox:"), nSize, 14 );
if ( pDest )
{
@@ -843,9 +843,9 @@ static bool ImplGetBoundingBox( double* nNumb, BYTE* pSource, sal_uLong nSize )
for ( i = 0; ( i < 4 ) && nSizeLeft; i++ )
{
int nDivision = 1;
- bool bDivision = FALSE;
- bool bNegative = FALSE;
- bool bValid = TRUE;
+ bool bDivision = false;
+ bool bNegative = false;
+ bool bValid = true;
while ( ( --nSizeLeft ) && ( ( *pDest == ' ' ) || ( *pDest == 0x9 ) ) ) pDest++;
BYTE nByte = *pDest;
@@ -855,12 +855,12 @@ static bool ImplGetBoundingBox( double* nNumb, BYTE* pSource, sal_uLong nSize )
{
case '.' :
if ( bDivision )
- bValid = FALSE;
+ bValid = false;
else
- bDivision = TRUE;
+ bDivision = true;
break;
case '-' :
- bNegative = TRUE;
+ bNegative = true;
break;
default :
if ( ( nByte < '0' ) || ( nByte > '9' ) )
@@ -883,7 +883,7 @@ static bool ImplGetBoundingBox( double* nNumb, BYTE* pSource, sal_uLong nSize )
nNumb[i] /= nDivision;
}
if ( i == 4 )
- bRetValue = TRUE;
+ bRetValue = true;
}
return bRetValue;
}
@@ -1032,7 +1032,7 @@ bool WinSalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void*
"b4_Inc_state_salWin restore\n\n" );
*reinterpret_cast<sal_uInt16*>(const_cast<char *>(aBuf.getStr())) = static_cast<sal_uInt16>( aBuf.getLength() - 2 );
Escape ( getHDC(), nEscape, aBuf.getLength(), aBuf.getStr(), nullptr );
- bRetValue = TRUE;
+ bRetValue = true;
}
}
}
diff --git a/vcl/win/gdi/salnativewidgets-luna.cxx b/vcl/win/gdi/salnativewidgets-luna.cxx
index 84a9bda35ec3..2eb7161974f8 100644
--- a/vcl/win/gdi/salnativewidgets-luna.cxx
+++ b/vcl/win/gdi/salnativewidgets-luna.cxx
@@ -240,13 +240,13 @@ bool WinSalGraphics::isNativeControlSupported( ControlType nType, ControlPart nP
break;
case ControlType::Scrollbar:
if( nPart == ControlPart::DrawBackgroundHorz || nPart == ControlPart::DrawBackgroundVert )
- return FALSE; // no background painting needed
+ return false; // no background painting needed
if( nPart == ControlPart::Entire )
hTheme = getThemeHandle( mhWnd, L"Scrollbar");
break;
case ControlType::Combobox:
if( nPart == ControlPart::HasBackgroundTexture )
- return FALSE; // we do not paint the inner part (ie the selection background/focus indication)
+ return false; // we do not paint the inner part (ie the selection background/focus indication)
if( nPart == ControlPart::Entire )
hTheme = getThemeHandle( mhWnd, L"Edit");
else if( nPart == ControlPart::ButtonDown )
@@ -267,14 +267,14 @@ bool WinSalGraphics::isNativeControlSupported( ControlType nType, ControlPart nP
case ControlType::Editbox:
case ControlType::MultilineEditbox:
if( nPart == ControlPart::HasBackgroundTexture )
- return FALSE; // we do not paint the inner part (ie the selection background/focus indication)
+ return false; // we do not paint the inner part (ie the selection background/focus indication)
//return TRUE;
if( nPart == ControlPart::Entire )
hTheme = getThemeHandle( mhWnd, L"Edit");
break;
case ControlType::Listbox:
if( nPart == ControlPart::HasBackgroundTexture )
- return FALSE; // we do not paint the inner part (ie the selection background/focus indication)
+ return false; // we do not paint the inner part (ie the selection background/focus indication)
if( nPart == ControlPart::Entire || nPart == ControlPart::ListboxWindow )
hTheme = getThemeHandle( mhWnd, L"Listview");
else if( nPart == ControlPart::ButtonDown )
@@ -339,7 +339,7 @@ bool WinSalGraphics::hitTestNativeControl( ControlType,
const Point&,
bool& )
{
- return FALSE;
+ return false;
}
static bool ImplDrawTheme( HTHEME hTheme, HDC hDC, int iPart, int iState, RECT rc, const OUString& aStr)
@@ -996,7 +996,7 @@ static bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
if( nType == ControlType::Progress )
{
if( nPart != ControlPart::Entire )
- return FALSE;
+ return false;
if( ! ImplDrawTheme( hTheme, hDC, PP_BAR, iState, rc, aCaption) )
return false;
@@ -1051,7 +1051,7 @@ static bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
if( nType == ControlType::ListNode )
{
if( nPart != ControlPart::Entire )
- return FALSE;
+ return false;
ButtonValue aButtonValue = aValue.getTristateVal();
iPart = TVP_GLYPH;
@@ -1064,7 +1064,7 @@ static bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
iState = GLPS_CLOSED;
break;
default:
- return FALSE;
+ return false;
}
return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption );
}
@@ -1326,7 +1326,7 @@ bool WinSalGraphics::getNativeControlRegion( ControlType nType,
tools::Rectangle &rNativeBoundingRegion,
tools::Rectangle &rNativeContentRegion )
{
- bool bRet = FALSE;
+ bool bRet = false;
// FIXME: rNativeBoundingRegion has a different origin
// depending on which part is used; horrors.
@@ -1368,7 +1368,7 @@ bool WinSalGraphics::getNativeControlRegion( ControlType nType,
rNativeContentRegion = aRect;
rNativeBoundingRegion = rNativeContentRegion;
if( !rNativeContentRegion.IsEmpty() )
- bRet = TRUE;
+ bRet = true;
}
}
}
@@ -1382,7 +1382,7 @@ bool WinSalGraphics::getNativeControlRegion( ControlType nType,
rNativeContentRegion = aRect;
rNativeBoundingRegion = rNativeContentRegion;
if( !rNativeContentRegion.IsEmpty() )
- bRet = TRUE;
+ bRet = true;
}
}
if( (nType == ControlType::Listbox || nType == ControlType::Combobox ) && nPart == ControlPart::Entire )
@@ -1400,7 +1400,7 @@ bool WinSalGraphics::getNativeControlRegion( ControlType nType,
rNativeContentRegion = aBoxRect;
rNativeBoundingRegion = rNativeContentRegion;
if( !aRect.IsEmpty() )
- bRet = TRUE;
+ bRet = true;
}
}
@@ -1432,7 +1432,7 @@ bool WinSalGraphics::getNativeControlRegion( ControlType nType,
aBoxRect.SetRight( aBoxRect.Left() + aRect.GetWidth() );
rNativeContentRegion = aBoxRect;
rNativeBoundingRegion = rNativeContentRegion;
- bRet = TRUE;
+ bRet = true;
}
}
}
@@ -1455,7 +1455,7 @@ bool WinSalGraphics::getNativeControlRegion( ControlType nType,
{
rNativeContentRegion = aRect;
rNativeBoundingRegion = rNativeContentRegion;
- bRet = TRUE;
+ bRet = true;
}
}
}
@@ -1485,7 +1485,7 @@ bool WinSalGraphics::getNativeControlRegion( ControlType nType,
rNativeContentRegion = aRect;
rNativeBoundingRegion = rNativeContentRegion;
}
- bRet = TRUE;
+ bRet = true;
}
}
@@ -1517,7 +1517,7 @@ bool WinSalGraphics::getNativeControlRegion( ControlType nType,
}
}
rNativeBoundingRegion = aControlRect;
- bRet = TRUE;
+ bRet = true;
}
ReleaseDC( mhWnd, hDC );
diff --git a/vcl/win/gdi/salprn.cxx b/vcl/win/gdi/salprn.cxx
index 211f84a8609d..98886c72a9dc 100644
--- a/vcl/win/gdi/salprn.cxx
+++ b/vcl/win/gdi/salprn.cxx
@@ -290,11 +290,11 @@ static bool ImplTestSalJobSetup( WinSalInfoPrinter const * pPrinter,
HANDLE hPrn;
LPWSTR pPrinterNameW = const_cast<LPWSTR>(o3tl::toW(pPrinter->maDeviceName.getStr()));
if ( !OpenPrinterW( pPrinterNameW, &hPrn, nullptr ) )
- return FALSE;
+ return false;
// #131642# hPrn==HGDI_ERROR even though OpenPrinter() succeeded!
if( hPrn == HGDI_ERROR )
- return FALSE;
+ return false;
nSysJobSize = DocumentPropertiesW( nullptr, hPrn,
pPrinterNameW,
@@ -303,7 +303,7 @@ static bool ImplTestSalJobSetup( WinSalInfoPrinter const * pPrinter,
if( nSysJobSize < 0 )
{
ClosePrinter( hPrn );
- return FALSE;
+ return false;
}
DEVMODEW *pBuffer = static_cast<DEVMODEW*>(_alloca( nSysJobSize ));
LONG nRet = DocumentPropertiesW( nullptr, hPrn,
@@ -312,7 +312,7 @@ static bool ImplTestSalJobSetup( WinSalInfoPrinter const * pPrinter,
if( nRet < 0 )
{
ClosePrinter( hPrn );
- return FALSE;
+ return false;
}
// the spec version differs between the windows platforms, ie 98,NT,2000/XP
@@ -333,7 +333,7 @@ static bool ImplTestSalJobSetup( WinSalInfoPrinter const * pPrinter,
if( pDevModeW &&
(dmSpecVersion == pDevModeW->dmSpecVersion) &&
(dmDriverVersion == pDevModeW->dmDriverVersion) )
- return TRUE;
+ return true;
}
if ( bDelete )
{
@@ -343,7 +343,7 @@ static bool ImplTestSalJobSetup( WinSalInfoPrinter const * pPrinter,
}
}
- return FALSE;
+ return false;
}
static bool ImplUpdateSalJobSetup( WinSalInfoPrinter const * pPrinter, ImplJobSetup* pSetupData,
@@ -352,10 +352,10 @@ static bool ImplUpdateSalJobSetup( WinSalInfoPrinter const * pPrinter, ImplJobSe
HANDLE hPrn;
LPWSTR pPrinterNameW = const_cast<LPWSTR>(o3tl::toW(pPrinter->maDeviceName.getStr()));
if ( !OpenPrinterW( pPrinterNameW, &hPrn, nullptr ) )
- return FALSE;
+ return false;
// #131642# hPrn==HGDI_ERROR even though OpenPrinter() succeeded!
if( hPrn == HGDI_ERROR )
- return FALSE;
+ return false;
LONG nRet;
HWND hWnd = nullptr;
@@ -369,7 +369,7 @@ static bool ImplUpdateSalJobSetup( WinSalInfoPrinter const * pPrinter, ImplJobSe
if ( nSysJobSize < 0 )
{
ClosePrinter( hPrn );
- return FALSE;
+ return false;
}
// make Outputbuffer
@@ -412,7 +412,7 @@ static bool ImplUpdateSalJobSetup( WinSalInfoPrinter const * pPrinter, ImplJobSe
if( (nRet < 0) || (pVisibleDlgParent && (nRet == IDCANCEL)) )
{
std::free( pOutBuffer );
- return FALSE;
+ return false;
}
// fill up string buffers with 0 so they do not influence a JobSetup's memcmp
@@ -436,7 +436,7 @@ static bool ImplUpdateSalJobSetup( WinSalInfoPrinter const * pPrinter, ImplJobSe
pSetupData->SetDriverData(reinterpret_cast<BYTE*>(pOutBuffer));
pSetupData->SetSystem( JOBSETUP_SYSTEM_WINDOWS );
- return TRUE;
+ return true;
}
static void ImplDevModeToJobSetup( WinSalInfoPrinter const * pPrinter, ImplJobSetup* pSetupData, JobSetFlags nFlags )
@@ -1039,7 +1039,7 @@ static bool ImplUpdateSalPrnIC( WinSalInfoPrinter* pPrinter, const ImplJobSetup*
{
HDC hNewDC = ImplCreateSalPrnIC( pPrinter, pSetupData );
if ( !hNewDC )
- return FALSE;
+ return false;
if ( pPrinter->mpGraphics )
{
@@ -1051,7 +1051,7 @@ static bool ImplUpdateSalPrnIC( WinSalInfoPrinter* pPrinter, const ImplJobSetup*
pPrinter->mpGraphics = ImplCreateSalPrnGraphics( hNewDC );
pPrinter->mhDC = hNewDC;
- return TRUE;
+ return true;
}
@@ -1094,9 +1094,9 @@ void WinSalInstance::DestroyInfoPrinter( SalInfoPrinter* pPrinter )
WinSalInfoPrinter::WinSalInfoPrinter() :
mpGraphics( nullptr ),
mhDC( nullptr ),
- mbGraphics( FALSE )
+ mbGraphics( false )
{
- m_bPapersInit = FALSE;
+ m_bPapersInit = false;
}
WinSalInfoPrinter::~WinSalInfoPrinter()
@@ -1151,14 +1151,14 @@ SalGraphics* WinSalInfoPrinter::AcquireGraphics()
return nullptr;
if ( mpGraphics )
- mbGraphics = TRUE;
+ mbGraphics = true;
return mpGraphics;
}
void WinSalInfoPrinter::ReleaseGraphics( SalGraphics* )
{
- mbGraphics = FALSE;
+ mbGraphics = false;
}
bool WinSalInfoPrinter::Setup(weld::Window* pFrame, ImplJobSetup* pSetupData)
@@ -1169,13 +1169,13 @@ bool WinSalInfoPrinter::Setup(weld::Window* pFrame, ImplJobSetup* pSetupData)
return ImplUpdateSalPrnIC( this, pSetupData );
}
- return FALSE;
+ return false;
}
bool WinSalInfoPrinter::SetPrinterData( ImplJobSetup* pSetupData )
{
if ( !ImplTestSalJobSetup( this, pSetupData, false ) )
- return FALSE;
+ return false;
return ImplUpdateSalPrnIC( this, pSetupData );
}
@@ -1188,7 +1188,7 @@ bool WinSalInfoPrinter::SetData( JobSetFlags nFlags, ImplJobSetup* pSetupData )
return ImplUpdateSalPrnIC( this, pSetupData );
}
- return FALSE;
+ return false;
}
sal_uInt16 WinSalInfoPrinter::GetPaperBinCount( const ImplJobSetup* pSetupData )
@@ -1351,8 +1351,8 @@ WinSalPrinter::WinSalPrinter() :
mhDC( nullptr ),
mnError( SalPrinterError::NONE ),
mnCopies( 0 ),
- mbCollate( FALSE ),
- mbAbort( FALSE ),
+ mbCollate( false ),
+ mbAbort( false ),
mbValid( true )
{
SalData* pSalData = GetSalData();
@@ -1418,7 +1418,7 @@ bool WinSalPrinter::StartJob( const OUString* pFileName,
ImplJobSetup* pSetupData )
{
mnError = SalPrinterError::NONE;
- mbAbort = FALSE;
+ mbAbort = false;
mnCopies = nCopies;
mbCollate = bCollate;
@@ -1447,7 +1447,7 @@ bool WinSalPrinter::StartJob( const OUString* pFileName,
if ( !hDC )
{
mnError = SalPrinterError::General;
- return FALSE;
+ return false;
}
// make sure mhDC is set before the printer driver may call our abortproc
@@ -1455,11 +1455,11 @@ bool WinSalPrinter::StartJob( const OUString* pFileName,
if ( SetAbortProc( hDC, SalPrintAbortProc ) <= 0 )
{
mnError = SalPrinterError::General;
- return FALSE;
+ return false;
}
mnError = SalPrinterError::NONE;
- mbAbort = FALSE;
+ mbAbort = false;
// As the Telecom Balloon Fax driver tends to send messages repeatedly
// we try to process first all, and then insert a dummy message
@@ -1484,7 +1484,7 @@ bool WinSalPrinter::StartJob( const OUString* pFileName,
else
{
mnError = SalPrinterError::Abort;
- return FALSE;
+ return false;
}
}
@@ -1513,10 +1513,10 @@ bool WinSalPrinter::StartJob( const OUString* pFileName,
mnError = SalPrinterError::Abort;
else
mnError = SalPrinterError::General;
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
void WinSalPrinter::DoEndDoc(HDC hDC)
@@ -1553,7 +1553,7 @@ bool WinSalPrinter::EndJob()
mhDC = nullptr;
}
- return TRUE;
+ return true;
}
SalGraphics* WinSalPrinter::StartPage( ImplJobSetup* pSetupData, bool bNewJobData )