diff options
Diffstat (limited to 'vcl/source')
26 files changed, 33 insertions, 33 deletions
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx index 33d08dd5e91e..9c1851918ca2 100644 --- a/vcl/source/app/svmain.cxx +++ b/vcl/source/app/svmain.cxx @@ -538,7 +538,7 @@ void DeInitVCL() ResMgr::DestroyAllResMgr(); - // destroy all Sal interfaces before destorying the instance + // destroy all Sal interfaces before destroying the instance // and thereby unloading the plugin delete pSVData->mpSalSystem; pSVData->mpSalSystem = nullptr; diff --git a/vcl/source/bitmap/BitmapFilterStackBlur.cxx b/vcl/source/bitmap/BitmapFilterStackBlur.cxx index 6782a94ca87b..a2664b702e7c 100644 --- a/vcl/source/bitmap/BitmapFilterStackBlur.cxx +++ b/vcl/source/bitmap/BitmapFilterStackBlur.cxx @@ -521,7 +521,7 @@ void centerExtendBitmap(Bitmap& rBitmap, sal_Int32 nExtendSize, Color aColor) * Stack Blur Algorithm by Mario Klingemann <mario@quasimondo.com> * (http://www.quasimondo.com/StackBlurForCanvas/StackBlurDemo.html) * - * Additionally eferences and implementations: + * Additionally references and implementations: * - Blur.js by Jacob Kelley * (http://www.blurjs.com) * - BlurEffectForAndroidDesign by Nicolas Pomepuy diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index d0e4eb1a3018..31538e842d9f 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -858,7 +858,7 @@ void Edit::ImplInsertText( const OUString& rStr, const Selection* pNewSel, bool // take care of input-sequence-checking now if (bIsUserInput && !rStr.isEmpty()) { - DBG_ASSERT( rStr.getLength() == 1, "unexpected string length. User input is expected to providse 1 char only!" ); + DBG_ASSERT( rStr.getLength() == 1, "unexpected string length. User input is expected to provide 1 char only!" ); // determine if input-sequence-checking should be applied or not diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index 8036d1640d1d..720ebd02568d 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -1068,7 +1068,7 @@ static OUString ImplMetricGetUnitText(const OUString& rStr) return aStr.makeStringAndClear(); } -// #104355# support localized mesaurements +// #104355# support localized measurements static const OUString ImplMetricToString( FieldUnit rUnit ) { diff --git a/vcl/source/filter/graphicfilter2.cxx b/vcl/source/filter/graphicfilter2.cxx index 822452bd450e..1a3af32d54cd 100644 --- a/vcl/source/filter/graphicfilter2.cxx +++ b/vcl/source/filter/graphicfilter2.cxx @@ -292,7 +292,7 @@ bool GraphicDescriptor::ImpDetectJPG( SvStream& rStm, bool bExtendedInfo ) bScanFinished = true; break; - // per default we assume marker segments conaining a length parameter + // per default we assume marker segments containing a length parameter default : { sal_uInt16 nLength = 0; diff --git a/vcl/source/filter/jpeg/JpegReader.cxx b/vcl/source/filter/jpeg/JpegReader.cxx index 5f42009d6ca9..78e818d8d8da 100644 --- a/vcl/source/filter/jpeg/JpegReader.cxx +++ b/vcl/source/filter/jpeg/JpegReader.cxx @@ -225,7 +225,7 @@ unsigned char * JPEGReader::CreateBitmap(JPEGCreateBitmapParam& rParam) if (nSize > SAL_MAX_INT32 / (bGray?1:3)) return nullptr; - // Check if the bitmap is untypically large. + // Check if the bitmap is atypically large. if (nSize*(bGray?1:3) > MAX_BITMAP_BYTE_SIZE) { // Do not try to acquire resources for the large bitmap or to diff --git a/vcl/source/filter/sgvspln.cxx b/vcl/source/filter/sgvspln.cxx index 762e310eb55e..d58ad9d5bb82 100644 --- a/vcl/source/filter/sgvspln.cxx +++ b/vcl/source/filter/sgvspln.cxx @@ -272,7 +272,7 @@ sal_uInt16 ZyklTriDiagGS(bool rep, sal_uInt16 n, double* lower, double* diag, /* */ /* Memory for lowrow[1],..,lowrow[n-3] und ricol[1],...,ricol[n-3] */ /* should be provided separately, as this should be available to */ -/* store the decomposition matrix, which is overwritting */ +/* store the decomposition matrix, which is overwriting */ /* the 5 vectors mentioned. */ /* */ /*====================================================================*/ diff --git a/vcl/source/filter/wmf/enhwmf.cxx b/vcl/source/filter/wmf/enhwmf.cxx index 989e0aa9efeb..90ed0bde8f1b 100644 --- a/vcl/source/filter/wmf/enhwmf.cxx +++ b/vcl/source/filter/wmf/enhwmf.cxx @@ -491,7 +491,7 @@ void EnhWMFReader::ReadAndDrawPolygon(Drawer drawer, const bool skipFirst) * The \<class T> parameter is for the type of the points * nStartIndex: which is the starting index in the polygon of the first point read * nPoints: number of points - * pWMF: the stream containings the polygons + * pWMF: the stream containing the polygons * */ template <class T> tools::Polygon EnhWMFReader::ReadPolygon(sal_uInt32 nStartIndex, sal_uInt32 nPoints) diff --git a/vcl/source/filter/wmf/wmf.cxx b/vcl/source/filter/wmf/wmf.cxx index 1b3972110792..8865d3c84f53 100644 --- a/vcl/source/filter/wmf/wmf.cxx +++ b/vcl/source/filter/wmf/wmf.cxx @@ -93,7 +93,7 @@ bool ConvertGDIMetaFileToWMF( const GDIMetaFile & rMTF, SvStream & rTargetStream { // #i121267# It is necessary to prepare the metafile since the export does *not* support // clip regions. This tooling method clips the geometry content of the metafile internally - // against it's own clip regions, so that the export is safe to ignore clip regions + // against its own clip regions, so that the export is safe to ignore clip regions clipMetafileContentAgainstOwnRegions(aGdiMetaFile); } @@ -109,7 +109,7 @@ bool ConvertGDIMetaFileToEMF(const GDIMetaFile & rMTF, SvStream & rTargetStream) { // #i121267# It is necessary to prepare the metafile since the export does *not* support // clip regions. This tooling method clips the geometry content of the metafile internally - // against it's own clip regions, so that the export is safe to ignore clip regions + // against its own clip regions, so that the export is safe to ignore clip regions clipMetafileContentAgainstOwnRegions(aGdiMetaFile); } diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index 37cd963fc607..608e7dbb0280 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -678,7 +678,7 @@ static int GetCompoundTTOutline(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPo * but Get{Simple|Compound}GlyphOutline returns 0 in such a case. * * NOTE: glyphlist is the stack of glyphs traversed while constructing - * a composite glyph. This is a safequard against endless recursion + * a composite glyph. This is a safeguard against endless recursion * in corrupted fonts. */ static int GetTTGlyphOutline(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPoint **pointArray, TTGlyphMetrics *metrics, std::vector< sal_uInt32 >* glyphlist) @@ -1024,7 +1024,7 @@ static void GetNames(TrueTypeFont *t) } /* #i60349# sanity check psname - * psname parctically has to be 7bit ascii and should not contains spaces + * psname pratically has to be 7bit ascii and should not contains spaces * there is a class of broken fonts which do not fulfill that at all, so let's try * if the family name is 7bit ascii and take it instead if so */ @@ -1471,7 +1471,7 @@ static void allocTrueTypeFont( TrueTypeFont** ttf ) } } -/* forward declariotn for the two entry points to use*/ +/* forward declaration for the two entry points to use*/ static int doOpenTTFont( sal_uInt32 facenum, TrueTypeFont* t ); #if !defined(WIN32) diff --git a/vcl/source/gdi/bitmapex.cxx b/vcl/source/gdi/bitmapex.cxx index f390855e7d7b..7af0f149016c 100644 --- a/vcl/source/gdi/bitmapex.cxx +++ b/vcl/source/gdi/bitmapex.cxx @@ -989,7 +989,7 @@ BitmapEx BitmapEx::getTransformed( aTransform.scale(fReduceFactor, fReduceFactor); } - // invert to get transformation from target pixel coordiates to source pixels + // invert to get transformation from target pixel coordinates to source pixels aTransform.invert(); // create bitmap using source, destination and linear back-transformation diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx index 21d1f112a641..8309d6b22c96 100644 --- a/vcl/source/gdi/gdimtf.cxx +++ b/vcl/source/gdi/gdimtf.cxx @@ -1664,8 +1664,8 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference, Rectangle* pHai case( MetaActionType::FLOATTRANSPARENT ): { MetaFloatTransparentAction* pAct = static_cast<MetaFloatTransparentAction*>(pAction); - // MetaFloatTransparentAction is defined limiting it's content Metafile - // to it's geometry definition(Point, Size), so use these directly + // MetaFloatTransparentAction is defined limiting its content Metafile + // to its geometry definition(Point, Size), so use these directly const Rectangle aRect( pAct->GetPoint(), pAct->GetSize() ); ImplActionBounds( aBound, OutputDevice::LogicToLogic( aRect, aMapVDev->GetMapMode(), GetPrefMapMode() ), aClipStack, nullptr ); } diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx index 22fa9b6f4245..ed742770a51d 100644 --- a/vcl/source/gdi/metaact.cxx +++ b/vcl/source/gdi/metaact.cxx @@ -3274,7 +3274,7 @@ void MetaCommentAction::Move( long nXMove, long nYMove ) } } -// SJ: 25.07.06 #i56656# we are not able to mirrorcertain kind of +// SJ: 25.07.06 #i56656# we are not able to mirror certain kind of // comments properly, especially the XPATHSTROKE and XPATHFILL lead to // problems, so it is better to remove these comments when mirroring // FIXME: fake comment to apply the next hunk in the right location diff --git a/vcl/source/gdi/pdfextoutdevdata.cxx b/vcl/source/gdi/pdfextoutdevdata.cxx index 8212f8534338..78304facf2f8 100644 --- a/vcl/source/gdi/pdfextoutdevdata.cxx +++ b/vcl/source/gdi/pdfextoutdevdata.cxx @@ -670,7 +670,7 @@ void PDFExtOutDevData::SetPageTransition( PDFWriter::PageTransition eType, sal_u mpGlobalSyncData->mParaInts.push_back( nPageNr == -1 ? mnPage : nPageNr ); } -/* local (page), actions have to be played synchroniously to the actions of +/* local (page), actions have to be played synchronously to the actions of of the recorded metafile (created by each xRenderable->render()) */ sal_Int32 PDFExtOutDevData::BeginStructureElement( PDFWriter::StructElement eType, const OUString& rAlias ) { diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index f9d3fbd755f5..ce3e32f1e33f 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -3768,7 +3768,7 @@ sal_Int32 PDFWriterImpl::createToUnicodeCMap( sal_uInt8* pEncoding, } aContents.append( "endbfchar\n" "endcmap\n" - "CMapName currentdict /CMap defineresource pop\n" + "CMapName currentdict /CMap define resource pop\n" "end\n" "end\n" ); #ifndef DEBUG_DISABLE_PDFCOMPRESSION @@ -5570,7 +5570,7 @@ bool PDFWriterImpl::emitWidgetAnnotations() else if( rWidget.m_nTextStyle & DrawTextFlags::Right ) aLine.append( "/Q 2\n" ); } - // appearance charactristics for terminal fields + // appearance characteristics for terminal fields // which are supposed to have an appearance constructed // by the viewer application if( !rWidget.m_aMKDict.isEmpty() ) @@ -7772,7 +7772,7 @@ sal_Int32 PDFWriterImpl::emitOutputIntent() appendLiteralStringEncrypt( aComment ,nOIObject, aLine ); aLine.append("/DestOutputProfile "); aLine.append( nICCObject ); - aLine.append( " 0 R>>\nendobj\n\n" );; + aLine.append( " 0 R>>\nendobj\n\n" ); if ( !writeBuffer( aLine.getStr(), aLine.getLength() ) ) return 0; return nOIObject; @@ -12257,7 +12257,7 @@ sal_Int32 PDFWriterImpl::setLinkURL( sal_Int32 nLinkId, const OUString& rURL ) if (!m_xTrans.is()) { uno::Reference< uno::XComponentContext > xContext( comphelper::getProcessComponentContext() ); - m_xTrans = util::URLTransformer::create(xContext);; + m_xTrans = util::URLTransformer::create(xContext); } util::URL aURL; diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx index 781e290a6519..b839fdfa7166 100644 --- a/vcl/source/gdi/print3.cxx +++ b/vcl/source/gdi/print3.cxx @@ -1234,7 +1234,7 @@ DrawModeFlags PrinterController::removeTransparencies( GDIMetaFile& i_rIn, GDIMe } } - // convert to greysacles + // convert to greyscales if( rPrinterOptions.IsConvertToGreyscales() ) { mpImplData->mxPrinter->SetDrawMode( mpImplData->mxPrinter->GetDrawMode() | diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx index c77e9cd7b374..48a5cc026031 100644 --- a/vcl/source/gdi/region.cxx +++ b/vcl/source/gdi/region.cxx @@ -36,7 +36,7 @@ namespace { - /** Return <TRUE/> when the given polygon is rectiliner and oriented so that + /** Return <TRUE/> when the given polygon is rectilinear and oriented so that all sides are either horizontal or vertical. */ bool ImplIsPolygonRectilinear (const tools::PolyPolygon& rPolyPoly) diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx index cb9a9629d11c..2405967e6d53 100644 --- a/vcl/source/glyphs/graphite_layout.cxx +++ b/vcl/source/glyphs/graphite_layout.cxx @@ -106,7 +106,7 @@ namespace // This is an extended vector class with methods added to enable // o Correctly filling with glyphs. // o Querying clustering relationships. -// o manipulations that affect neighouring glyphs. +// o manipulations that affect neighbouring glyphs. const int GraphiteLayout::EXTRA_CONTEXT_LENGTH = 32; diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index cdffc747b866..7732b2477551 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -1418,7 +1418,7 @@ SalLayout* OutputDevice::ImplGlyphFallbackLayout( SalLayout* pSalLayout, ImplLay if( nFallbackLevel < MAX_FALLBACK-1) { // ignore fallback font if it is the same as the original font - // unless we are looking for a substituion for 0x202F, in which + // unless we are looking for a substitution for 0x202F, in which // case we'll just use a normal space if( mpFontInstance->maFontSelData.mpFontData == aFontSelData.mpFontData && aMissingCodes.indexOf(0x202F) == -1 ) diff --git a/vcl/source/outdev/mask.cxx b/vcl/source/outdev/mask.cxx index 6223de1c0de3..739cbf18c4da 100644 --- a/vcl/source/outdev/mask.cxx +++ b/vcl/source/outdev/mask.cxx @@ -114,7 +114,7 @@ void OutputDevice::DrawDeviceMask( const Bitmap& rMask, const Color& rMaskColor, ImplLogicWidthToDevicePixel(rDestSize.Width()), ImplLogicHeightToDevicePixel(rDestSize.Height())); - // we don't want to mirror via cooridates + // we don't want to mirror via coordinates const BmpMirrorFlags nMirrFlags = AdjustTwoRect( aPosAry, pImpBmp->ImplGetSize() ); // check if output is necessary diff --git a/vcl/source/outdev/transparent.cxx b/vcl/source/outdev/transparent.cxx index 3839a3380d4b..86b0fe5b40e8 100644 --- a/vcl/source/outdev/transparent.cxx +++ b/vcl/source/outdev/transparent.cxx @@ -334,7 +334,7 @@ bool OutputDevice::DrawTransparentNatively ( const tools::PolyPolygon& rPolyPoly // CAUTION: Only non printing (pixel-renderer) VCL commands from OutputDevices // should be used when printing. Normally this is avoided by the printer being // non-AAed and thus e.g. on WIN GdiPlus calls are not used. It may be necessary - // to figure out a way of moving this code to it's own function that is + // to figure out a way of moving this code to its own function that is // overriden by the Print class, which will mean we deliberately override the // functionality and we use the fallback some lines below (which is not very good, // though. For now, WinSalGraphics::drawPolyPolygon will detect printer usage and diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx index 305878e74a53..653b663b328d 100644 --- a/vcl/source/window/dockmgr.cxx +++ b/vcl/source/window/dockmgr.cxx @@ -532,7 +532,7 @@ css::uno::Reference< css::accessibility::XAccessible > ImplPopupFloatWin::Create // this is to avoid appearance of this window as standalone window in the accessibility hierarchy // as this window is only used as a helper for subtoolbars that are not teared-off, the parent toolbar // has to provide accessibility support (as implemented in the toolkit) - // so the contained toolbar should appear as child of the correponsing toolbar item of the parent toolbar + // so the contained toolbar should appear as child of the corresponding toolbar item of the parent toolbar return css::uno::Reference< css::accessibility::XAccessible >(); } diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx index e6d62d305580..36639b1a9364 100644 --- a/vcl/source/window/splitwin.cxx +++ b/vcl/source/window/splitwin.cxx @@ -603,7 +603,7 @@ static void ImplCalcSet( ImplSplitSet* pSet, nMins = 0; while ( nSizeDelta && (nItems != nMins) ) { - // determinne which items we can calculate + // determine which items we can calculate nCalcItems = 0; while ( !nCalcItems ) { diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index c9649aaa8e77..ffd3541da964 100644 --- a/vcl/source/window/status.cxx +++ b/vcl/source/window/status.cxx @@ -1373,7 +1373,7 @@ void StatusBar::StartProgressMode( const OUString& rText ) void StatusBar::SetProgressValue( sal_uInt16 nNewPercent ) { - DBG_ASSERT( mbProgressMode, "StatusBar::SetProgressValue(): no progrss mode" ); + DBG_ASSERT( mbProgressMode, "StatusBar::SetProgressValue(): no progress mode" ); SAL_WARN_IF( nNewPercent > 100, "vcl", "StatusBar::SetProgressValue(): nPercent > 100" ); if ( mbProgressMode diff --git a/vcl/source/window/syschild.cxx b/vcl/source/window/syschild.cxx index c9b84bf9232a..d0c8e8ca375d 100644 --- a/vcl/source/window/syschild.cxx +++ b/vcl/source/window/syschild.cxx @@ -229,7 +229,7 @@ sal_IntPtr SystemChildWindow::GetParentWindowHandle( bool bUseJava ) try { ::rtl::Reference< ::jvmaccess::VirtualMachine > xVM; - uno::Reference< java::XJavaVM > xJavaVM = java::JavaVirtualMachine::create(xContext);; + uno::Reference< java::XJavaVM > xJavaVM = java::JavaVirtualMachine::create(xContext); uno::Sequence< sal_Int8 > aProcessID( 17 ); rtl_getGlobalProcessId( reinterpret_cast<sal_uInt8*>(aProcessID.getArray()) ); diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx index 5227c2a97788..e61ea101dfcb 100644 --- a/vcl/source/window/winproc.cxx +++ b/vcl/source/window/winproc.cxx @@ -1600,7 +1600,7 @@ static void ImplHandlePaint( vcl::Window* pWindow, const Rectangle& rBoundRect, // #i87663# trigger possible pending resize notifications // (GetSizePixel does that for us) pWindow->GetSizePixel(); - // force drawing inmmediately + // force drawing immediately pWindow->Update(); } } |