diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-03-12 18:53:13 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-03-12 19:02:03 -0600 |
commit | a918e60386f3e2d36012c1cb2842e561455ecf3f (patch) | |
tree | 5ea2bc6533aa18dfa753c58bc0a5fee120eb450d | |
parent | e7bbed8e319ced003e9a29e9388ae91e9987e293 (diff) |
mis-merge: clean-up remaining tools types
-rw-r--r-- | canvas/source/cairo/cairo_textlayout.cxx | 16 | ||||
-rw-r--r-- | cppcanvas/source/inc/implrenderer.hxx | 4 | ||||
-rw-r--r-- | cppcanvas/source/mtfrenderer/emfplus.cxx | 30 |
3 files changed, 25 insertions, 25 deletions
diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx index 8a2ec0b4bd57..add009fca6c8 100644 --- a/canvas/source/cairo/cairo_textlayout.cxx +++ b/canvas/source/cairo/cairo_textlayout.cxx @@ -214,8 +214,8 @@ namespace cairocanvas return geometry::RealRectangle2D( 0, nAboveBaseline, aVDev.GetTextWidth( maText.Text, - ::canvas::tools::numeric_cast<USHORT>(maText.StartPosition), - ::canvas::tools::numeric_cast<USHORT>(maText.Length) ), + ::canvas::tools::numeric_cast<sal_uInt16>(maText.StartPosition), + ::canvas::tools::numeric_cast<sal_uInt16>(maText.Length) ), nBelowBaseline ); } } @@ -404,8 +404,8 @@ namespace cairocanvas } aSysLayoutData = rOutDev.GetSysTextLayoutData(rOutpos, maText.Text, - ::canvas::tools::numeric_cast<USHORT>(maText.StartPosition), - ::canvas::tools::numeric_cast<USHORT>(maText.Length), + ::canvas::tools::numeric_cast<sal_uInt16>(maText.StartPosition), + ::canvas::tools::numeric_cast<sal_uInt16>(maText.Length), maLogicalAdvancements.getLength() ? aOffsets.get() : NULL); // Sort them so that all glyphs on the same glyph fallback level are consecutive @@ -446,15 +446,15 @@ namespace cairocanvas if (maLogicalAdvancements.getLength()) // VCL FALLBACK - with glyph advances { rOutDev.DrawTextArray( rOutpos, maText.Text, aOffsets.get(), - ::canvas::tools::numeric_cast<USHORT>(maText.StartPosition), - ::canvas::tools::numeric_cast<USHORT>(maText.Length) ); + ::canvas::tools::numeric_cast<sal_uInt16>(maText.StartPosition), + ::canvas::tools::numeric_cast<sal_uInt16>(maText.Length) ); return true; } else // VCL FALLBACK - without advances { rOutDev.DrawText( rOutpos, maText.Text, - ::canvas::tools::numeric_cast<USHORT>(maText.StartPosition), - ::canvas::tools::numeric_cast<USHORT>(maText.Length) ); + ::canvas::tools::numeric_cast<sal_uInt16>(maText.StartPosition), + ::canvas::tools::numeric_cast<sal_uInt16>(maText.Length) ); return true; } } diff --git a/cppcanvas/source/inc/implrenderer.hxx b/cppcanvas/source/inc/implrenderer.hxx index f219af2ef420..d021ad8a4492 100644 --- a/cppcanvas/source/inc/implrenderer.hxx +++ b/cppcanvas/source/inc/implrenderer.hxx @@ -266,7 +266,7 @@ static float GetSwapFloat( SvStream& rSt ) ActionVector::const_iterator& o_rRangeBegin, ActionVector::const_iterator& o_rRangeEnd ) const; - void processObjectRecord(SvMemoryStream& rObjectStream, UINT16 flags); + void processObjectRecord(SvMemoryStream& rObjectStream, sal_uInt16 flags); void processEMFPlus( MetaCommentAction* pAct, const ActionFactoryParameters& rFactoryParms, OutDevState& rState, const CanvasSharedPtr& rCanvas ); void EMFPPlusFillPolygon (::basegfx::B2DPolyPolygon& polygon, const ActionFactoryParameters& rParms, OutDevState& rState, const CanvasSharedPtr& rCanvas, bool isColor, sal_uInt32 brushIndexOrColor); @@ -293,7 +293,7 @@ static float GetSwapFloat( SvStream& rSt ) sal_Int32 nMmY; /* multipart object data */ bool mbMultipart; - UINT16 mMFlags; + sal_uInt16 mMFlags; SvMemoryStream mMStream; }; diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index 2059aaec486b..422b931121b2 100644 --- a/cppcanvas/source/mtfrenderer/emfplus.cxx +++ b/cppcanvas/source/mtfrenderer/emfplus.cxx @@ -144,12 +144,12 @@ namespace cppcanvas } // TODO: remove rR argument when debug code is not longer needed - void Read (SvStream& s, UINT32 pathFlags, ImplRenderer& rR) + void Read (SvStream& s, sal_uInt32 pathFlags, ImplRenderer& rR) { for (int i = 0; i < nPoints; i ++) { if (pathFlags & 0x4000) { // points are stored in short 16bit integer format - UINT16 x, y; + sal_uInt16 x, y; s >> x >> y; EMFP_DEBUG (printf ("EMF+\tpoint [x,y]: %hd,%hd\n", x, y)); @@ -341,12 +341,12 @@ namespace cppcanvas } } - UINT32 GetType() const { return type; } + sal_uInt32 GetType() const { return type; } const ::Color& GetColor() const { return solidColor; } void Read (SvStream& s, ImplRenderer& rR) { - UINT32 header; + sal_uInt32 header; s >> header >> type; @@ -355,7 +355,7 @@ namespace cppcanvas switch (type) { case 0: { - UINT32 color; + sal_uInt32 color; s >> color; solidColor = ::Color (0xff - (color >> 24), (color >> 16) & 0xff, (color >> 8) & 0xff, color & 0xff); @@ -370,7 +370,7 @@ namespace cppcanvas EMFP_DEBUG (printf ("EMF+\tpath gradient, additional flags: 0x%02x\n", additionalFlags)); - UINT32 color; + sal_uInt32 color; s >> color; solidColor = ::Color (0xff - (color >> 24), (color >> 16) & 0xff, (color >> 8) & 0xff, color & 0xff); @@ -483,7 +483,7 @@ namespace cppcanvas EMFP_DEBUG (printf ("EMF+\tarea: %f,%f - %fx%f\n", areaX, areaY, areaWidth, areaHeight)); - UINT32 color; + sal_uInt32 color; s >> color; solidColor = ::Color (0xff - (color >> 24), (color >> 16) & 0xff, (color >> 8) & 0xff, color & 0xff); @@ -584,7 +584,7 @@ namespace cppcanvas void Read (SvStream& s, ImplRenderer& rR, sal_Int32, sal_Int32 ) { - UINT32 header, unknown, penFlags, unknown2; + sal_uInt32 header, unknown, penFlags, unknown2; int i; s >> header >> unknown >> penFlags >> unknown2 >> width; @@ -1086,9 +1086,9 @@ namespace cppcanvas } } - void ImplRenderer::processObjectRecord(SvMemoryStream& rObjectStream, UINT16 flags) + void ImplRenderer::processObjectRecord(SvMemoryStream& rObjectStream, sal_uInt16 flags) { - EMFP_DEBUG (UINT32 objectLen); + EMFP_DEBUG (sal_uInt32 objectLen); sal_uInt32 index; EMFP_DEBUG (printf ("EMF+ Object slot: %hd flags: %hx\n", flags & 0xff, flags & 0xff00)); @@ -1169,8 +1169,8 @@ namespace cppcanvas length -= 4; while (length > 0) { - UINT16 type, flags; - UINT32 size, dataSize; + sal_uInt16 type, flags; + sal_uInt32 size, dataSize; sal_uInt32 next; rMF >> type >> flags >> size >> dataSize; @@ -1201,7 +1201,7 @@ namespace cppcanvas if (type != EmfPlusRecordTypeObject || !(flags & 0x8000)) switch (type) { case EmfPlusRecordTypeHeader: - UINT32 header, version; + sal_uInt32 header, version; rMF >> header >> version >> nHDPI >> nVDPI; @@ -1282,7 +1282,7 @@ namespace cppcanvas sal_uInt32 brushIndexOrColor; EMFP_DEBUG (sal_Int32 brushIndex); sal_Int32 points; - EMFP_DEBUG (UINT32 color); + EMFP_DEBUG (sal_uInt32 color); EMFP_DEBUG (USHORT transparency = 0); rMF >> brushIndexOrColor; @@ -1343,7 +1343,7 @@ namespace cppcanvas } case EmfPlusRecordTypeDrawPath: { - UINT32 penIndex; + sal_uInt32 penIndex; rMF >> penIndex; |