summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/cvtsvm.cxx4
-rw-r--r--vcl/source/gdi/gdimtf.cxx2
-rw-r--r--vcl/source/gdi/outdev4.cxx6
-rw-r--r--vcl/source/gdi/outdev6.cxx4
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx2
-rw-r--r--vcl/source/gdi/pdfwriter_impl2.cxx2
-rw-r--r--vcl/source/gdi/print2.cxx4
-rw-r--r--vcl/source/gdi/print3.cxx2
-rw-r--r--vcl/source/gdi/regband.cxx12
-rw-r--r--vcl/source/gdi/region.cxx22
-rw-r--r--vcl/source/gdi/textlayout.cxx2
11 files changed, 31 insertions, 31 deletions
diff --git a/vcl/source/gdi/cvtsvm.cxx b/vcl/source/gdi/cvtsvm.cxx
index 869f726cda80..1aabaf0a7588 100644
--- a/vcl/source/gdi/cvtsvm.cxx
+++ b/vcl/source/gdi/cvtsvm.cxx
@@ -1358,7 +1358,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
}
}
- // cleanup push-pop stack if neccessary
+ // cleanup push-pop stack if necessary
while( !aLIStack.empty() )
{
delete aLIStack.top();
@@ -1404,7 +1404,7 @@ void SVMConverter::ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile& rMtf )
rOStm.Seek( nActPos );
rOStm.SetNumberFormatInt( nOldFormat );
- // cleanup push-pop stack if neccessary
+ // cleanup push-pop stack if necessary
while ( !aLineColStack.empty() )
{
delete aLineColStack.top();
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index ab53ac867712..b989b80f826d 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -3092,7 +3092,7 @@ sal_Bool GDIMetaFile::CreateThumbnail( sal_uInt32 nMaximumExtent,
const_cast<GDIMetaFile *>(this)->WindStart();
const_cast<GDIMetaFile *>(this)->Play( &aVDev, aBackPosPix, aDrawSize );
- // draw overlay if neccessary
+ // draw overlay if necessary
if ( pOverlay )
aVDev.DrawBitmapEx( aOverlayRect.TopLeft(), aOverlayRect.GetSize(), *pOverlay );
diff --git a/vcl/source/gdi/outdev4.cxx b/vcl/source/gdi/outdev4.cxx
index ee5d8daac3f8..390220d4f158 100644
--- a/vcl/source/gdi/outdev4.cxx
+++ b/vcl/source/gdi/outdev4.cxx
@@ -724,7 +724,7 @@ void OutputDevice::DrawGradient( const Rectangle& rRect,
mbInitFillColor = sal_True;
- // calculate step count if neccessary
+ // calculate step count if necessary
if ( !aGradient.GetSteps() )
aGradient.SetSteps( GRADIENT_DEFAULT_STEPCOUNT );
@@ -888,7 +888,7 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
mbInitFillColor = sal_True;
- // calculate step count if neccessary
+ // calculate step count if necessary
if ( !aGradient.GetSteps() )
aGradient.SetSteps( GRADIENT_DEFAULT_STEPCOUNT );
@@ -997,7 +997,7 @@ void OutputDevice::AddGradientActions( const Rectangle& rRect, const Gradient& r
aRect.Right()++;
aRect.Bottom()++;
- // calculate step count if neccessary
+ // calculate step count if necessary
if ( !aGradient.GetSteps() )
aGradient.SetSteps( GRADIENT_DEFAULT_STEPCOUNT );
diff --git a/vcl/source/gdi/outdev6.cxx b/vcl/source/gdi/outdev6.cxx
index b79ee991732e..680a63dc34de 100644
--- a/vcl/source/gdi/outdev6.cxx
+++ b/vcl/source/gdi/outdev6.cxx
@@ -221,7 +221,7 @@ void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly,
return;
}
- // short circut for drawing an invisible polygon
+ // short circuit for drawing an invisible polygon
if( !mbFillColor || (nTransparencePercent >= 100) )
{
// short circuit if the polygon border is invisible too
@@ -646,7 +646,7 @@ void OutputDevice::DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos,
if(GetAntialiasing())
{
// #i102109#
- // For MetaFile replay (see task) it may now be neccessary to take
+ // For MetaFile replay (see task) it may now be necessary to take
// into account that the content is AntiAlialised and needs to be masked
// like that. Instead of masking, i will use a copy-modify-paste cycle
// here (as i already use in the VclPrimiziveRenderer with successs)
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 956cd85a0276..178e619a2bba 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -4765,7 +4765,7 @@ we check in the following sequence:
}
else
{
-// change the fragment to accomodate the bookmark (only if the file extension is PDF and
+// change the fragment to accommodate the bookmark (only if the file extension is PDF and
// the requested action is of the correct type)
if(m_aContext.DefaultLinkAction == PDFWriter::URIActionDestination &&
bTargetHasPDFExtension && !aFragment.isEmpty() )
diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx
index ac35c4f7c05c..469f49205ee4 100644
--- a/vcl/source/gdi/pdfwriter_impl2.cxx
+++ b/vcl/source/gdi/pdfwriter_impl2.cxx
@@ -98,7 +98,7 @@ void PDFWriterImpl::implWriteBitmapEx( const Point& i_rPoint, const Size& i_rSiz
}
if( i_rContext.m_nMaxImageResolution > 50 )
{
- // do downsampling if neccessary
+ // do downsampling if necessary
const Size aDstSizeTwip( i_pDummyVDev->PixelToLogic( i_pDummyVDev->LogicToPixel( aSize ), MAP_TWIP ) );
const Size aBmpSize( aBitmapEx.GetSizePixel() );
const double fBmpPixelX = aBmpSize.Width();
diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx
index 5f7ccadea4d2..e1fe203b6ca8 100644
--- a/vcl/source/gdi/print2.cxx
+++ b/vcl/source/gdi/print2.cxx
@@ -1372,7 +1372,7 @@ Bitmap OutputDevice::GetDownsampledBitmap( const Size& rDstSz,
const Rectangle aBmpRect( aPoint, aBmp.GetSizePixel() );
Rectangle aSrcRect( rSrcPt, rSrcSz );
- // do cropping if neccessary
+ // do cropping if necessary
if( aSrcRect.Intersection( aBmpRect ) != aBmpRect )
{
if( !aSrcRect.IsEmpty() )
@@ -1383,7 +1383,7 @@ Bitmap OutputDevice::GetDownsampledBitmap( const Size& rDstSz,
if( !aBmp.IsEmpty() )
{
- // do downsampling if neccessary
+ // do downsampling if necessary
Size aDstSizeTwip( PixelToLogic( LogicToPixel( rDstSz ), MAP_TWIP ) );
// #103209# Normalize size (mirroring has to happen outside of this method)
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index d47aa925dc31..314ade5e1960 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -1223,7 +1223,7 @@ void PrinterController::printFilteredPage( int i_nPage )
mpImplData->mpPrinter->SetPaperBin( mpImplData->mnFixedPaperBin );
}
- // if full paper is meant to be used, move the output to accomodate for pageoffset
+ // if full paper is meant to be used, move the output to accommodate for pageoffset
if( aPageSize.bFullPaper )
{
Point aPageOffset( mpImplData->mpPrinter->GetPageOffset() );
diff --git a/vcl/source/gdi/regband.cxx b/vcl/source/gdi/regband.cxx
index 760e19bdff49..5bd481b6f3de 100644
--- a/vcl/source/gdi/regband.cxx
+++ b/vcl/source/gdi/regband.cxx
@@ -182,7 +182,7 @@ void ImplRegionBand::ProcessPoints()
ImplRegionBandPoint* pNextBandPoint = pRegionBandPoint->mpNextBandPoint->mpNextBandPoint;
- // remove allready processed points
+ // remove already processed points
delete pRegionBandPoint->mpNextBandPoint;
delete pRegionBandPoint;
@@ -216,7 +216,7 @@ sal_Bool ImplRegionBand::InsertPoint( long nX, long nLineId,
return sal_True;
}
- // look if line allready touched the band
+ // look if line already touched the band
ImplRegionBandPoint* pRegionBandPoint = mpFirstBandPoint;
ImplRegionBandPoint* pLastTestedRegionBandPoint = NULL;
while( pRegionBandPoint )
@@ -272,7 +272,7 @@ sal_Bool ImplRegionBand::InsertPoint( long nX, long nLineId,
pLastTestedRegionBandPoint = NULL;
while ( pRegionBandPoint )
{
- // new point completly left? -> insert as first point
+ // new point completely left? -> insert as first point
if ( nX <= pRegionBandPoint->mnX )
{
pNewRegionBandPoint = new ImplRegionBandPoint;
@@ -409,7 +409,7 @@ void ImplRegionBand::Union( long nXLeft, long nXRight )
if ( (nXLeft >= pSep->mnXLeft) && (nXRight <= pSep->mnXRight) )
return;
- // new separation completly left? -> new separation!
+ // new separation completely left? -> new separation!
if ( nXRight < pSep->mnXLeft )
{
pNewSep = new ImplRegionBandSep;
@@ -473,7 +473,7 @@ void ImplRegionBand::Intersect( long nXLeft, long nXRight )
ImplRegionBandSep* pSep = mpFirstSep;
while ( pSep )
{
- // new separation completly outside? -> remove separation
+ // new separation completely outside? -> remove separation
if ( (nXRight < pSep->mnXLeft) || (nXLeft > pSep->mnXRight) )
// will be removed from the optimizer
pSep->mbRemoved = sal_True;
@@ -894,7 +894,7 @@ sal_Bool ImplRegionBand::operator==( const ImplRegionBand& rRegionBand ) const
pSecondRectBandSep = pSecondRectBandSep->mpNextSep;
}
- // differnt number of separations?
+ // different number of separations?
if ( pOwnRectBandSep || pSecondRectBandSep )
return sal_False;
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx
index 6276017ecb17..f12b3c0aa43d 100644
--- a/vcl/source/gdi/region.cxx
+++ b/vcl/source/gdi/region.cxx
@@ -701,7 +701,7 @@ void ImplRegion::InsertBands( long nTop, long nBottom )
if ( bTopBoundaryInserted && bTop2BoundaryInserted && bBottomBoundaryInserted )
break;
- // insert bands between two bands if neccessary
+ // insert bands between two bands if necessary
if ( pBand->mpNextBand )
{
if ( (pBand->mnYBottom + 1) < pBand->mpNextBand->mnYTop )
@@ -1373,7 +1373,7 @@ void Region::Union( const Rectangle& rRect )
long nRight = Max( rRect.Left(), rRect.Right() );
long nBottom = Max( rRect.Top(), rRect.Bottom() );
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( nTop, nBottom );
// process union
@@ -1495,7 +1495,7 @@ void Region::Intersect( const Rectangle& rRect )
if ( mpImplRegion->mnRefCount > 1 )
ImplCopyData();
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( nTop, nBottom );
// process intersections
@@ -1578,7 +1578,7 @@ void Region::Exclude( const Rectangle& rRect )
long nRight = Max( rRect.Left(), rRect.Right() );
long nBottom = Max( rRect.Top(), rRect.Bottom() );
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( nTop, nBottom );
// process exclude
@@ -1640,7 +1640,7 @@ void Region::XOr( const Rectangle& rRect )
long nRight = Max( rRect.Left(), rRect.Right() );
long nBottom = Max( rRect.Top(), rRect.Bottom() );
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( nTop, nBottom );
// process xor
@@ -1706,7 +1706,7 @@ void Region::Union( const Region& rRegion )
ImplRegionBand* pBand = rRegion.mpImplRegion->mpFirstBand;
while ( pBand )
{
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( pBand->mnYTop, pBand->mnYBottom );
// process all elements of the list
@@ -1818,7 +1818,7 @@ void Region::Intersect( const Region& rRegion )
pBand = rRegion.mpImplRegion->mpFirstBand;
while ( pBand )
{
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( pBand->mnYTop, pBand->mnYBottom );
// process all elements of the list
@@ -1853,7 +1853,7 @@ void Region::Intersect( const Region& rRegion )
pBand = pBand->mpNextBand;
}
- // remove all untouched bands if bands allready left
+ // remove all untouched bands if bands already left
ImplRegionBand* pPrevBand = 0;
pBand = mpImplRegion->mpFirstBand;
while ( pBand )
@@ -1934,7 +1934,7 @@ void Region::Exclude( const Region& rRegion )
ImplRegionBand* pBand = rRegion.mpImplRegion->mpFirstBand;
while ( pBand )
{
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( pBand->mnYTop, pBand->mnYBottom );
// process all elements of the list
@@ -2012,7 +2012,7 @@ void Region::XOr( const Region& rRegion )
ImplRegionBand* pBand = rRegion.mpImplRegion->mpFirstBand;
while ( pBand )
{
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( pBand->mnYTop, pBand->mnYBottom );
// process all elements of the list
@@ -2824,7 +2824,7 @@ void Region::ImplEndAddRect()
return;
}
- // check if we have somthing to optimize
+ // check if we have something to optimize
if ( !mpImplRegion->mpFirstBand->mpNextBand )
{
// update mpImplRegion->mnRectCount, because no OptimizeBandList is called
diff --git a/vcl/source/gdi/textlayout.cxx b/vcl/source/gdi/textlayout.cxx
index 81dc881e1f78..d03ea25b8f2a 100644
--- a/vcl/source/gdi/textlayout.cxx
+++ b/vcl/source/gdi/textlayout.cxx
@@ -141,7 +141,7 @@ namespace vcl
// normally, controls simulate "zoom" by "zooming" the font. This is responsible for (part of) the discrepancies
// between text in Writer and text in controls in Writer, though both have the same font.
// So, if we have a zoom set at the control, then we do not scale the font, but instead modify the map mode
- // to accomodate for the zoom.
+ // to accommodate for the zoom.
aTargetMapMode.SetScaleX( m_aZoom ); // TODO: shouldn't this be "current_scale * zoom"?
aTargetMapMode.SetScaleY( m_aZoom );