summaryrefslogtreecommitdiff
path: root/cppcanvas
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2011-03-12 18:53:13 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-03-12 19:02:03 -0600
commita918e60386f3e2d36012c1cb2842e561455ecf3f (patch)
tree5ea2bc6533aa18dfa753c58bc0a5fee120eb450d /cppcanvas
parente7bbed8e319ced003e9a29e9388ae91e9987e293 (diff)
mis-merge: clean-up remaining tools types
Diffstat (limited to 'cppcanvas')
-rw-r--r--cppcanvas/source/inc/implrenderer.hxx4
-rw-r--r--cppcanvas/source/mtfrenderer/emfplus.cxx30
2 files changed, 17 insertions, 17 deletions
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;