summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/impvect.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/impvect.cxx')
-rw-r--r--vcl/source/gdi/impvect.cxx24
1 files changed, 24 insertions, 0 deletions
diff --git a/vcl/source/gdi/impvect.cxx b/vcl/source/gdi/impvect.cxx
index 5ecfb6aedbd1..d060b9d7c490 100644
--- a/vcl/source/gdi/impvect.cxx
+++ b/vcl/source/gdi/impvect.cxx
@@ -55,9 +55,13 @@ static void VECT_PROGRESS( const Link<long, void>* pProgress, long _def_nVal )
pProgress->Call(_def_nVal);
}
+namespace {
+
class ImplVectMap;
class ImplChain;
+}
+
namespace ImplVectorizer
{
static ImplVectMap* ImplExpand( BitmapReadAccess* pRAcc, const Color& rColor );
@@ -67,8 +71,12 @@ namespace ImplVectorizer
static void ImplLimitPolyPoly( tools::PolyPolygon& rPolyPoly );
}
+namespace {
+
struct ChainMove { long nDX; long nDY; };
+}
+
static const ChainMove aImplMove[ 8 ] = {
{ 1, 0 },
{ 0, -1 },
@@ -102,6 +110,8 @@ static const ChainMove aImplMoveOuter[ 8 ] = {
{ 0, -1 }
};
+namespace {
+
struct ImplColorSet
{
BitmapColor maColor;
@@ -109,6 +119,8 @@ struct ImplColorSet
bool mbSet = false;
};
+}
+
static bool ImplColorSetCmpFnc( const ImplColorSet& lhs, const ImplColorSet& rhs)
{
if( lhs.mbSet && rhs.mbSet )
@@ -120,6 +132,8 @@ static bool ImplColorSetCmpFnc( const ImplColorSet& lhs, const ImplColorSet& rhs
return lhs.mbSet < rhs.mbSet;
}
+namespace {
+
class ImplPointArray
{
std::unique_ptr<Point[]> mpArray;
@@ -140,6 +154,8 @@ public:
};
+}
+
ImplPointArray::ImplPointArray() :
mnSize ( 0 ),
mnRealSize ( 0 )
@@ -174,6 +190,8 @@ void ImplPointArray::ImplCreatePoly( tools::Polygon& rPoly ) const
rPoly = tools::Polygon( sal::static_int_cast<sal_uInt16>(mnRealSize), mpArray.get() );
}
+namespace {
+
class ImplVectMap
{
private:
@@ -200,6 +218,8 @@ public:
};
+}
+
ImplVectMap::ImplVectMap( long nWidth, long nHeight ) :
mpBuf ( static_cast<Scanline>(rtl_allocateZeroMemory(nWidth * nHeight)) ),
mpScan ( static_cast<Scanline*>(std::malloc(nHeight * sizeof(Scanline))) ),
@@ -246,6 +266,8 @@ inline bool ImplVectMap::IsDone( long nY, long nX ) const
return( VECT_DONE_INDEX == Get( nY, nX ) );
}
+namespace {
+
class ImplChain
{
private:
@@ -275,6 +297,8 @@ public:
const tools::Polygon& ImplGetPoly() const { return maPoly; }
};
+}
+
ImplChain::ImplChain() :
mnArraySize ( 1024 ),
mnCount ( 0 ),