[Libreoffice-commits] core.git: vcl/source

Andrea Gelmini andrea.gelmini at gelma.net
Tue Sep 29 23:40:07 PDT 2015


 vcl/source/filter/sgvtext.cxx       |    6 +++---
 vcl/source/filter/wmf/winwmf.cxx    |    4 ++--
 vcl/source/filter/wmf/wmfwr.hxx     |    2 +-
 vcl/source/gdi/bitmap.cxx           |    2 +-
 vcl/source/gdi/bitmap3.cxx          |    2 +-
 vcl/source/gdi/gdimetafiletools.cxx |    2 +-
 vcl/source/gdi/pdfwriter_impl.cxx   |    6 +++---
 vcl/source/gdi/print3.cxx           |    2 +-
 vcl/source/gdi/regband.cxx          |    2 +-
 vcl/source/gdi/region.cxx           |    2 +-
 vcl/source/gdi/regionband.cxx       |    2 +-
 vcl/source/outdev/bitmap.cxx        |    2 +-
 vcl/source/outdev/font.cxx          |    2 +-
 vcl/source/outdev/gradient.cxx      |    2 +-
 vcl/source/outdev/transparent.cxx   |    2 +-
 15 files changed, 20 insertions(+), 20 deletions(-)

New commits:
commit 4314fb6418299f28139132d1044f890712c57e8f
Author: Andrea Gelmini <andrea.gelmini at gelma.net>
Date:   Tue Sep 29 18:13:11 2015 +0200

    Fix typos
    
    Change-Id: I33385f1395f428c14bf86eff9891b288ddc590de
    Reviewed-on: https://gerrit.libreoffice.org/18993
    Reviewed-by: Joren De Cuyper <jorendc at libreoffice.org>
    Tested-by: Joren De Cuyper <jorendc at libreoffice.org>

diff --git a/vcl/source/filter/sgvtext.cxx b/vcl/source/filter/sgvtext.cxx
index 62e877b..e05ffb3 100644
--- a/vcl/source/filter/sgvtext.cxx
+++ b/vcl/source/filter/sgvtext.cxx
@@ -63,7 +63,7 @@ extern SgfFontLst* pSgfFonts;
 #define  EscLFeed  'L' /* character spacing 1..32767% of max. text angle of the line*/
                         // or 1..32767 for 1..16383<<Pt absolute (if bit 15=1)
 #define  EscSlant  'S' /* italic (angle) 1..8999 for 0.01deg..89.99deg              */
-#define  EscVPos   'V' /* character vercial position 1..255 for <<Pt..127<<Pt       */
+#define  EscVPos   'V' /* character vertical position 1..255 for <<Pt..127<<Pt       */
 #define  EscZAbst  'Z' /* character spacing -128..127%                              */
 #define  EscHJust  'A' /* H-justify  paragraph: left, cent, right, block, aligned, fixed (0..5)*/
 
@@ -196,8 +196,8 @@ sal_uInt16 GetTopToBaseLine(sal_uInt16 MaxGrad)
 // Index is incremented accordingly.
 // Parameter Rest should always contain the number of characters,
 // the number of remaining characters in that line.
-// Otherwise the hyphenation does not work. If the constand NoTrenn
-// is used instaed, no hyphenation is done. To the contrary then
+// Otherwise the hyphenation does not work. If the constant NoTrenn
+// is used instead, no hyphenation is done. To the contrary then
 // constant DoTrenn triggers hyphenation where a soft-break is present.
 //
 // Soft separators are converted to a minus sign.
diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx
index 463e8a8..e3d59a3 100644
--- a/vcl/source/filter/wmf/winwmf.cxx
+++ b/vcl/source/filter/wmf/winwmf.cxx
@@ -627,7 +627,7 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc )
             // 10-11 : used width  of source bitmap
             // 12-13 : destination position y (in pixel)
             // 14-15 : destination position x (in pixel)
-            // 16-17 : dont know
+            // 16-17 : don't know
             // 18-19 : Width Bitmap in Pixel
             // 20-21 : Height Bitmap in Pixel
             // 22-23 : bytes per scanline
@@ -1293,7 +1293,7 @@ bool WMFReader::ReadHeader()
     pWMF->SeekRel( 2 ); // Version (of Windows)
     pWMF->SeekRel( 4 ); // Size (of file in words)
     pWMF->SeekRel( 2 ); // NoObjects (maximum number of simultaneous objects)
-    pWMF->SeekRel( 4 ); // MaxRecord (size of largets record in words)
+    pWMF->SeekRel( 4 ); // MaxRecord (size of largest record in words)
     pWMF->SeekRel( 2 ); // NoParameters (Unused
 
     return pWMF->good();
diff --git a/vcl/source/filter/wmf/wmfwr.hxx b/vcl/source/filter/wmf/wmfwr.hxx
index d26cac0..dd84240 100644
--- a/vcl/source/filter/wmf/wmfwr.hxx
+++ b/vcl/source/filter/wmf/wmfwr.hxx
@@ -107,7 +107,7 @@ private:
     sal_uLong nWrittenBitmaps;  // number of bitmaps written
     sal_uLong nActBitmapPercent; // percentage of next bitmap written.
 
-    bool bEmbedEMF; // optionally embedd EMF data into WMF
+    bool bEmbedEMF; // optionally embed EMF data into WMF
 
     void MayCallback();
         // this function calculates percentage using the above 5 parameters
diff --git a/vcl/source/gdi/bitmap.cxx b/vcl/source/gdi/bitmap.cxx
index 23b752b..e8bf0dd 100644
--- a/vcl/source/gdi/bitmap.cxx
+++ b/vcl/source/gdi/bitmap.cxx
@@ -1478,7 +1478,7 @@ bool Bitmap::Replace( const Bitmap& rMask, const Color& rReplaceColor )
 
                     for( sal_uInt16 i = 0UL; i < nMaxColors; i++ )
                     {
-                        // Hurray, we do have an unsused entry
+                        // Hurray, we do have an unused entry
                         if( !pFlags[ i ] )
                         {
                             pAcc->SetPaletteColor( (sal_uInt16) i, rReplaceColor );
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx
index 9afad3f..e0da9aa 100644
--- a/vcl/source/gdi/bitmap3.cxx
+++ b/vcl/source/gdi/bitmap3.cxx
@@ -1566,7 +1566,7 @@ namespace
 
 // #i121233# Added BmpScaleFlag::Lanczos, BmpScaleFlag::BiCubic, BmpScaleFlag::BiLinear and
 // BmpScaleFlag::Box derived from the original commit from Tomas Vajngerl (see
-// bugzilla task for deitails) Thanks!
+// bugzilla task for details) Thanks!
 bool Bitmap::ImplScaleConvolution(
     const double& rScaleX,
     const double& rScaleY,
diff --git a/vcl/source/gdi/gdimetafiletools.cxx b/vcl/source/gdi/gdimetafiletools.cxx
index 745c9d6..b8adfdf 100644
--- a/vcl/source/gdi/gdimetafiletools.cxx
+++ b/vcl/source/gdi/gdimetafiletools.cxx
@@ -959,7 +959,7 @@ void clipMetafileContentAgainstOwnRegions(GDIMetaFile& rSource)
                     break;
                 }
 
-                // need to handle gradient fills (hopefully only unroated ones)
+                // need to handle gradient fills (hopefully only unrotated ones)
 
                 case MetaActionType::GRADIENT :
                 {
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index d449d1a..0911269 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -637,7 +637,7 @@ static void appendLiteralString( const sal_Char* pStr, sal_Int32 nLength, OStrin
  * even though they expose the content of PDF file (e.g. guessing the PDF content from the
  * destination name).
  *
- * Fhurter limitation: it is advisable to use standard ASCII characters for
+ * Further limitation: it is advisable to use standard ASCII characters for
  * OOo bookmarks.
 */
 static void appendDestinationName( const OUString& rString, OStringBuffer& rBuffer )
@@ -6119,7 +6119,7 @@ typedef struct {
 } TimeStampReq;
 
 // (Partial) ASN.1 for the time stamp response. Very complicated. Pulled
-// together from varuous RFCs.
+// together from various RFCs.
 
 /*
 Accuracy ::= SEQUENCE {
@@ -8776,7 +8776,7 @@ void PDFWriterImpl::drawHorizontalGlyphs(
         aCurPos += rAlignOffset;
         // the first run can be set with "Td" operator
         // subsequent use of that operator would move
-        // the texline matrix relative to what was set before
+        // the textline matrix relative to what was set before
         // making use of that would drive us into rounding issues
         Matrix3 aMat;
         if( nRun == 0 && fAngle == 0.0 && fXScale == 1.0 && fSkew == 0.0 )
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index ab68012..c9fff67 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -601,7 +601,7 @@ bool Printer::StartJob( const OUString& i_rJobName, std::shared_ptr<vcl::Printer
     if( GetCapabilities( PrinterCapType::UsePullModel ) )
     {
         mbJobActive             = true;
-        // sallayer does all necessary page printing
+        // SAL layer does all necessary page printing
         // and also handles showing a dialog
         // that also means it must call jobStarted when the dialog is finished
         // it also must set the JobState of the Controller
diff --git a/vcl/source/gdi/regband.cxx b/vcl/source/gdi/regband.cxx
index 87261cf..ecf55c8 100644
--- a/vcl/source/gdi/regband.cxx
+++ b/vcl/source/gdi/regband.cxx
@@ -604,7 +604,7 @@ void ImplRegionBand::XOr( long nXLeft, long nXRight )
     // 111100000001111
 
     // Clearly, the leading band sep now goes from 0 to 3, and the
-    // trailing band sep from 11 to 14. This mimicks the xor look of a
+    // trailing band sep from 11 to 14. This mimics the xor look of a
     // bitmap operation.
 
     // band empty? -> add element
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx
index 0991ac4..4dc3c04 100644
--- a/vcl/source/gdi/region.cxx
+++ b/vcl/source/gdi/region.cxx
@@ -236,7 +236,7 @@ RegionBand* ImplCreateRegionBandFromPolyPolygon(const tools::PolyPolygon& rPolyP
 
     if(rPolyPolygon.Count())
     {
-        // ensure to subdivide when bezier segemnts are used, it's going to
+        // ensure to subdivide when bezier segments are used, it's going to
         // be expanded to rectangles
         tools::PolyPolygon aPolyPolygon;
 
diff --git a/vcl/source/gdi/regionband.cxx b/vcl/source/gdi/regionband.cxx
index 2474092..32cf326 100644
--- a/vcl/source/gdi/regionband.cxx
+++ b/vcl/source/gdi/regionband.cxx
@@ -192,7 +192,7 @@ enum StreamEntryType { STREAMENTRY_BANDHEADER, STREAMENTRY_SEPARATION, STREAMENT
 
 void RegionBand::load(SvStream& rIStrm)
 {
-    // clear this nstance's data
+    // clear this instance data
     implReset();
 
     // get all bands
diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx
index aebc7df..eb342c6 100644
--- a/vcl/source/outdev/bitmap.cxx
+++ b/vcl/source/outdev/bitmap.cxx
@@ -1231,7 +1231,7 @@ void OutputDevice::DrawTransformedBitmapEx(
         basegfx::B2DRange aVisibleRange(0.0, 0.0, 1.0, 1.0);
 
         // limit maximum area to something looking good for non-pixel-based targets (metafile, printer)
-        // by using a fixed minimum (allow at least, but no need to utilize) for good smooting and an area
+        // by using a fixed minimum (allow at least, but no need to utilize) for good smoothing and an area
         // dependent of original size for good quality when e.g. rotated/sheared. Still, limit to a maximum
         // to avoid crashes/ressource problems (ca. 1500x3000 here)
         const Size& rOriginalSizePixel(rBitmapEx.GetSizePixel());
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index a7f8ab9..dcd2af3 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -1856,7 +1856,7 @@ void ImplFontMetricData::ImplInitTextLineSize( const OutputDevice* pDev )
     else
         mnWUnderlineSize = ((nWCalcSize*50)+50) / 100;
 
-    // #109280# the following line assures that wavelnes are never placed below the descent, however
+    // #109280# the following line assures that wavelines are never placed below the descent, however
     // for most fonts the waveline then is drawn into the text, so we better keep the old solution
     // pFontEntry->maMetric.mnWUnderlineOffset     = pFontEntry->maMetric.mnDescent + 1 - pFontEntry->maMetric.mnWUnderlineSize;
     mnWUnderlineOffset     = nUnderlineOffset;
diff --git a/vcl/source/outdev/gradient.cxx b/vcl/source/outdev/gradient.cxx
index 5222c1e..847cce3 100644
--- a/vcl/source/outdev/gradient.cxx
+++ b/vcl/source/outdev/gradient.cxx
@@ -562,7 +562,7 @@ void OutputDevice::DrawComplexGradient( const Rectangle& rRect,
         nGreen = GetGradientColorValue( nStartGreen + ( ( nGreenSteps * nStepIndex ) / nSteps ) );
         nBlue = GetGradientColorValue( nStartBlue + ( ( nBlueSteps * nStepIndex ) / nSteps ) );
 
-        // either slow tools::PolyPolygon output or fast Polygon-Paiting
+        // either slow tools::PolyPolygon output or fast Polygon-Painting
         if( xPolyPoly )
         {
             bPaintLastPolygon = true; // #107349# Paint last polygon only if loop has generated any output
diff --git a/vcl/source/outdev/transparent.cxx b/vcl/source/outdev/transparent.cxx
index 5e4da2f..38df331 100644
--- a/vcl/source/outdev/transparent.cxx
+++ b/vcl/source/outdev/transparent.cxx
@@ -698,7 +698,7 @@ void OutputDevice::DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos,
                     // For MetaFile replay (see task) it may now be necessary to take
                     // into account that the content is AntiAlialiased 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)
+                    // here (as i already use in the VclPrimiziveRenderer with success)
                     xVDev->SetAntialiasing(GetAntialiasing());
 
                     // create MapMode for buffer (offset needed) and set


More information about the Libreoffice-commits mailing list