summaryrefslogtreecommitdiff
path: root/basebmp
diff options
context:
space:
mode:
Diffstat (limited to 'basebmp')
-rw-r--r--basebmp/inc/basebmp/accessor.hxx14
-rw-r--r--basebmp/inc/basebmp/accessoradapters.hxx108
-rw-r--r--basebmp/inc/basebmp/accessorfunctors.hxx30
-rw-r--r--basebmp/inc/basebmp/accessortraits.hxx12
-rw-r--r--basebmp/inc/basebmp/bitmapdevice.hxx122
-rw-r--r--basebmp/inc/basebmp/clippedlinerenderer.hxx40
-rw-r--r--basebmp/inc/basebmp/color.hxx6
-rw-r--r--basebmp/inc/basebmp/colorblendaccessoradapter.hxx16
-rw-r--r--basebmp/inc/basebmp/colormisc.hxx14
-rw-r--r--basebmp/inc/basebmp/colortraits.hxx28
-rw-r--r--basebmp/inc/basebmp/compositeiterator.hxx72
-rw-r--r--basebmp/inc/basebmp/debug.hxx14
-rw-r--r--basebmp/inc/basebmp/drawmodes.hxx4
-rw-r--r--basebmp/inc/basebmp/endian.hxx2
-rw-r--r--basebmp/inc/basebmp/fillimage.hxx12
-rw-r--r--basebmp/inc/basebmp/genericcolorimageaccessor.hxx8
-rw-r--r--basebmp/inc/basebmp/greylevelformats.hxx24
-rw-r--r--basebmp/inc/basebmp/iteratortraits.hxx8
-rw-r--r--basebmp/inc/basebmp/linerenderer.hxx20
-rw-r--r--basebmp/inc/basebmp/metafunctions.hxx38
-rw-r--r--basebmp/inc/basebmp/nonstandarditerator.hxx2
-rw-r--r--basebmp/inc/basebmp/packedpixeliterator.hxx88
-rw-r--r--basebmp/inc/basebmp/paletteformats.hxx12
-rw-r--r--basebmp/inc/basebmp/paletteimageaccessor.hxx26
-rw-r--r--basebmp/inc/basebmp/pixelformatadapters.hxx8
-rw-r--r--basebmp/inc/basebmp/pixeliterator.hxx10
-rw-r--r--basebmp/inc/basebmp/polypolygonrenderer.hxx56
-rw-r--r--basebmp/inc/basebmp/rgb24pixelformats.hxx14
-rw-r--r--basebmp/inc/basebmp/rgbmaskpixelformats.hxx32
-rw-r--r--basebmp/inc/basebmp/scaleimage.hxx28
-rw-r--r--basebmp/inc/basebmp/scanlineformats.hxx2
-rw-r--r--basebmp/inc/basebmp/stridedarrayiterator.hxx2
-rw-r--r--basebmp/inc/basebmp/tools.hxx10
-rw-r--r--basebmp/inc/basebmp/truecolormaskaccessor.hxx54
-rw-r--r--basebmp/source/bitmapdevice.cxx394
-rw-r--r--basebmp/source/debug.cxx6
-rw-r--r--basebmp/source/intconversion.hxx12
-rw-r--r--basebmp/source/polypolygonrenderer.cxx6
-rw-r--r--basebmp/test/basictest.cxx2
-rw-r--r--basebmp/test/bmpdemo.cxx154
-rw-r--r--basebmp/test/bmpmasktest.cxx2
-rw-r--r--basebmp/test/bmptest.cxx2
-rw-r--r--basebmp/test/cliptest.cxx2
-rw-r--r--basebmp/test/export.map2
-rw-r--r--basebmp/test/filltest.cxx2
-rw-r--r--basebmp/test/linetest.cxx2
-rw-r--r--basebmp/test/masktest.cxx2
-rw-r--r--basebmp/test/polytest.cxx2
-rw-r--r--basebmp/test/tools.cxx2
-rw-r--r--basebmp/test/tools.hxx2
50 files changed, 765 insertions, 765 deletions
diff --git a/basebmp/inc/basebmp/accessor.hxx b/basebmp/inc/basebmp/accessor.hxx
index 9bf2d1b6d140..ae9a02d5f3d3 100644
--- a/basebmp/inc/basebmp/accessor.hxx
+++ b/basebmp/inc/basebmp/accessor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ public:
template< class Iterator >
value_type operator()(Iterator const& i) const
- {
+ {
return *i;
}
@@ -62,7 +62,7 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
+ {
*i = vigra::detail::RequiresExplicitCast<value_type>::cast(value);
}
@@ -89,8 +89,8 @@ public:
template< class Iterator >
value_type operator()(Iterator const& i) const
- {
- return i.get();
+ {
+ return i.get();
}
template< class Iterator, class Difference >
@@ -103,14 +103,14 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
+ {
i.set( vigra::detail::RequiresExplicitCast<value_type>::cast(value) );
}
template< typename V, class Iterator, class Difference >
void set(V const& value, Iterator const& i, Difference const& diff) const
{
- i.set( vigra::detail::RequiresExplicitCast<value_type>::cast(value),
+ i.set( vigra::detail::RequiresExplicitCast<value_type>::cast(value),
diff );
}
};
diff --git a/basebmp/inc/basebmp/accessoradapters.hxx b/basebmp/inc/basebmp/accessoradapters.hxx
index 8fb801d7c8ca..4067bf5e5d73 100644
--- a/basebmp/inc/basebmp/accessoradapters.hxx
+++ b/basebmp/inc/basebmp/accessoradapters.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ namespace basebmp
@tpl WrappedAccessor
Wrapped type must provide the usual get and set accessor methods,
with the usual signatures (see StandardAccessor for a conforming
- example).
+ example).
@tpl GetterFunctor
An Adaptable Unary Function (i.e. providing result_type and
@@ -50,8 +50,8 @@ namespace basebmp
An Adaptable Unary Function (i.e. providing result_type and
argument_type typedefs)
*/
-template< class WrappedAccessor,
- typename GetterFunctor,
+template< class WrappedAccessor,
+ typename GetterFunctor,
typename SetterFunctor > class UnaryFunctionAccessorAdapter
{
public:
@@ -75,12 +75,12 @@ public:
maAccessor(),
maGetterFunctor(),
maSetterFunctor()
- {}
+ {}
- template< class A > explicit
+ template< class A > explicit
UnaryFunctionAccessorAdapter( UnaryFunctionAccessorAdapter< A,
GetterFunctor,
- SetterFunctor > const& rSrc ) :
+ SetterFunctor > const& rSrc ) :
maAccessor( rSrc.maAccessor ),
maGetterFunctor( rSrc.maGetterFunctor ),
maSetterFunctor( rSrc.maSetterFunctor )
@@ -91,7 +91,7 @@ public:
maGetterFunctor(),
maSetterFunctor()
{}
-
+
template< class T > UnaryFunctionAccessorAdapter( T accessor,
GetterFunctor getterFunctor,
SetterFunctor setterFunctor) :
@@ -99,7 +99,7 @@ public:
maGetterFunctor( getterFunctor ),
maSetterFunctor( setterFunctor )
{}
-
+
// -------------------------------------------------------
WrappedAccessor const& getWrappedAccessor() const { return maAccessor; }
@@ -108,11 +108,11 @@ public:
// -------------------------------------------------------
value_type getter(typename GetterFunctor::argument_type v) const
- {
+ {
return maGetterFunctor(v);
}
typename SetterFunctor::result_type setter(argument_type v) const
- {
+ {
return maSetterFunctor(v);
}
@@ -120,7 +120,7 @@ public:
template< class Iterator >
value_type operator()(Iterator const& i) const
- {
+ {
return maGetterFunctor( maAccessor(i) );
}
@@ -134,8 +134,8 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
- maAccessor.set(
+ {
+ maAccessor.set(
maSetterFunctor(
vigra::detail::RequiresExplicitCast<argument_type>::cast(value) ),
i );
@@ -144,7 +144,7 @@ public:
template< typename V, class Iterator, class Difference >
void set(V const& value, Iterator const& i, Difference const& diff) const
{
- maAccessor.set(
+ maAccessor.set(
maSetterFunctor(
vigra::detail::RequiresExplicitCast<argument_type>::cast(value) ),
i,
@@ -169,7 +169,7 @@ public:
An adaptable binary function (i.e. providing nested typedefs for
result_type and first and second argument type)
*/
-template< class WrappedAccessor,
+template< class WrappedAccessor,
typename SetterFunctor > class BinarySetterFunctionAccessorAdapter
{
public:
@@ -189,12 +189,12 @@ public:
BinarySetterFunctionAccessorAdapter() :
maAccessor(),
maFunctor()
- {}
+ {}
- template< class A > explicit
- BinarySetterFunctionAccessorAdapter(
+ template< class A > explicit
+ BinarySetterFunctionAccessorAdapter(
BinarySetterFunctionAccessorAdapter< A,
- SetterFunctor > const& rSrc ) :
+ SetterFunctor > const& rSrc ) :
maAccessor( rSrc.maAccessor ),
maFunctor( rSrc.maFunctor )
{}
@@ -203,13 +203,13 @@ public:
maAccessor( accessor ),
maFunctor()
{}
-
+
template< class T > BinarySetterFunctionAccessorAdapter( T accessor,
SetterFunctor functor ) :
maAccessor( accessor ),
maFunctor( functor )
{}
-
+
// -------------------------------------------------------
WrappedAccessor const& getWrappedAccessor() const { return maAccessor; }
@@ -217,10 +217,10 @@ public:
// -------------------------------------------------------
- typename SetterFunctor::result_type setter(
+ typename SetterFunctor::result_type setter(
typename SetterFunctor::first_argument_type v1,
argument_type v2 ) const
- {
+ {
return maSetterFunctor(v1,v2);
}
@@ -228,7 +228,7 @@ public:
template< class Iterator >
value_type operator()(Iterator const& i) const
- {
+ {
return maAccessor(i);
}
@@ -242,9 +242,9 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
- maAccessor.set(
- maFunctor(maAccessor(i),
+ {
+ maAccessor.set(
+ maFunctor(maAccessor(i),
vigra::detail::RequiresExplicitCast<argument_type>::cast(value)),
i );
}
@@ -253,7 +253,7 @@ public:
void set(V const& value, Iterator const& i, Difference const& diff) const
{
maAccessor.set(
- maFunctor(maAccessor(i,diff),
+ maFunctor(maAccessor(i,diff),
vigra::detail::RequiresExplicitCast<argument_type>::cast(value)),
i,
diff );
@@ -284,8 +284,8 @@ public:
An adaptable ternary function (i.e. providing nested typedefs for
result_type and first, second and third argument type)
*/
-template< class WrappedAccessor1,
- class WrappedAccessor2,
+template< class WrappedAccessor1,
+ class WrappedAccessor2,
typename Functor > class TernarySetterFunctionAccessorAdapter
{
public:
@@ -316,16 +316,16 @@ public:
{}
template< class A1, class A2 > explicit
- TernarySetterFunctionAccessorAdapter(
+ TernarySetterFunctionAccessorAdapter(
TernarySetterFunctionAccessorAdapter< A1,
A2,
- Functor > const& rSrc ) :
+ Functor > const& rSrc ) :
ma1stAccessor( rSrc.ma1stAccessor ),
ma2ndAccessor( rSrc.ma2ndAccessor ),
maFunctor( rSrc.maFunctor )
{}
- template< class T1, class T2 >
+ template< class T1, class T2 >
TernarySetterFunctionAccessorAdapter( T1 accessor1,
T2 accessor2 ) :
ma1stAccessor( accessor1 ),
@@ -333,7 +333,7 @@ public:
maFunctor()
{}
- template< class T1, class T2 >
+ template< class T1, class T2 >
TernarySetterFunctionAccessorAdapter( T1 accessor1,
T2 accessor2,
Functor func ) :
@@ -341,7 +341,7 @@ public:
ma2ndAccessor( accessor2 ),
maFunctor( func )
{}
-
+
// -------------------------------------------------------
WrappedAccessor1 const& get1stWrappedAccessor() const { return ma1stAccessor; }
@@ -352,11 +352,11 @@ public:
// -------------------------------------------------------
- typename Functor::result_type setter(
+ typename Functor::result_type setter(
typename Functor::first_argument_type v1,
typename Functor::second_argument_type v2,
argument_type v3 ) const
- {
+ {
return maSetterFunctor(v1,v2,v3);
}
@@ -364,7 +364,7 @@ public:
template< class Iterator >
value_type operator()(Iterator const& i) const
- {
+ {
return ma1stAccessor(i.first());
}
@@ -378,9 +378,9 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
+ {
ma1stAccessor.set(
- maFunctor(ma1stAccessor(i.first()),
+ maFunctor(ma1stAccessor(i.first()),
ma2ndAccessor(i.second()),
vigra::detail::RequiresExplicitCast<argument_type>::cast(value)),
i.first() );
@@ -390,7 +390,7 @@ public:
void set(V const& value, Iterator const& i, Difference const& diff) const
{
ma1stAccessor.set(
- maFunctor(ma1stAccessor(i.first(), diff),
+ maFunctor(ma1stAccessor(i.first(), diff),
ma2ndAccessor(i.second(),diff),
vigra::detail::RequiresExplicitCast<argument_type>::cast(value)),
i.first(),
@@ -398,7 +398,7 @@ public:
}
};
-
+
//-----------------------------------------------------------------------------
/** Access two distinct images simultaneously
@@ -421,7 +421,7 @@ public:
example). Furthermore, the type must provide a nested typedef
value_type.
*/
-template< class WrappedAccessor1,
+template< class WrappedAccessor1,
class WrappedAccessor2 > class JoinImageAccessorAdapter
{
public:
@@ -452,14 +452,14 @@ public:
{}
template< class A1, class A2 > explicit
- JoinImageAccessorAdapter(
+ JoinImageAccessorAdapter(
JoinImageAccessorAdapter< A1,
- A2 > const& rSrc ) :
+ A2 > const& rSrc ) :
ma1stAccessor( rSrc.ma1stAccessor ),
ma2ndAccessor( rSrc.ma2ndAccessor )
{}
- template< class T1, class T2 >
+ template< class T1, class T2 >
JoinImageAccessorAdapter( T1 accessor1,
T2 accessor2 ) :
ma1stAccessor( accessor1 ),
@@ -478,7 +478,7 @@ public:
template< class Iterator >
value_type operator()(Iterator const& i) const
- {
+ {
return std::make_pair(ma1stAccessor(i.first()),
ma2ndAccessor(i.second()));
}
@@ -494,12 +494,12 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
- ma1stAccessor.set(
+ {
+ ma1stAccessor.set(
vigra::detail::RequiresExplicitCast<typename WrappedAccessor1::value_type>::cast(
value.first),
i.first() );
- ma2ndAccessor.set(
+ ma2ndAccessor.set(
vigra::detail::RequiresExplicitCast<typename WrappedAccessor2::value_type>::cast(
value.second),
i.second() );
@@ -508,19 +508,19 @@ public:
template< typename V, class Iterator, class Difference >
void set(V const& value, Iterator const& i, Difference const& diff) const
{
- ma1stAccessor.set(
+ ma1stAccessor.set(
vigra::detail::RequiresExplicitCast<typename WrappedAccessor1::value_type>::cast(
value.first),
i.first(),
diff );
- ma2ndAccessor.set(
+ ma2ndAccessor.set(
vigra::detail::RequiresExplicitCast<typename WrappedAccessor2::value_type>::cast(
value.second),
i.second(),
diff );
}
-};
+};
} // namespace basebmp
diff --git a/basebmp/inc/basebmp/accessorfunctors.hxx b/basebmp/inc/basebmp/accessorfunctors.hxx
index 1d5464ac0c2f..32f4e60a85b4 100644
--- a/basebmp/inc/basebmp/accessorfunctors.hxx
+++ b/basebmp/inc/basebmp/accessorfunctors.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ template< typename T > struct XorFunctor : public std::binary_function<T,T,T>
//-----------------------------------------------------------------------------
/// Base class, passing on the arg types
-template< typename T, typename M > struct MaskFunctorBase :
+template< typename T, typename M > struct MaskFunctorBase :
public TernaryFunctorBase<T,M,T,T> {};
@@ -61,8 +61,8 @@ template< typename T, typename M > struct MaskFunctorBase :
transparency, i.e. the original value will display. And vice
versa.
*/
-template< typename T,
- typename M,
+template< typename T,
+ typename M,
bool polarity > struct GenericOutputMaskFunctor : public MaskFunctorBase<T,M>
{
/// Ternary mask operation - selects v1 for !m == polarity, v2 otherwise
@@ -75,14 +75,14 @@ template< typename T,
/** Let a mask bit decide between two values (specialization for
integer mask types)
*/
-template< typename T,
+template< typename T,
typename M,
bool polarity > struct IntegerOutputMaskFunctor;
-template< typename T,
+template< typename T,
typename M > struct IntegerOutputMaskFunctor<T,M,true> : public MaskFunctorBase<T,M>
{
/** Mask v with state of m
-
+
@return v2, if m != 0, v1 otherwise.
*/
T operator()( T v1, M m, T v2 ) const
@@ -94,11 +94,11 @@ template< typename T,
return v1*(M)(1-mask) + v2*mask;
}
};
-template< typename T,
+template< typename T,
typename M > struct IntegerOutputMaskFunctor<T,M,false> : public MaskFunctorBase<T,M>
{
/** Mask v with state of m
-
+
@return v2, if m != 0, v1 otherwise.
*/
T operator()( T v1, M m, T v2 ) const
@@ -115,7 +115,7 @@ template< typename T,
binary-valued mask types)
*/
template< typename T, typename M, bool polarity > struct FastIntegerOutputMaskFunctor;
-template< typename T, typename M > struct FastIntegerOutputMaskFunctor<T,M,true> :
+template< typename T, typename M > struct FastIntegerOutputMaskFunctor<T,M,true> :
public MaskFunctorBase<T,M>
{
/// Specialization, only valid if mask can only attain 0 or 1
@@ -126,7 +126,7 @@ template< typename T, typename M > struct FastIntegerOutputMaskFunctor<T,M,true>
return v1*(M)(1-m) + v2*m;
}
};
-template< typename T, typename M > struct FastIntegerOutputMaskFunctor<T,M,false> :
+template< typename T, typename M > struct FastIntegerOutputMaskFunctor<T,M,false> :
public MaskFunctorBase<T,M>
{
/// Specialization, only valid if mask can only attain 0 or 1
@@ -167,14 +167,14 @@ private:
public:
BinaryFunctorSplittingWrapper() : maFunctor() {}
- template< class A > explicit
- BinaryFunctorSplittingWrapper(
+ template< class A > explicit
+ BinaryFunctorSplittingWrapper(
BinaryFunctorSplittingWrapper<A> const& src ) : maFunctor(src.maFunctor) {}
- template< class F > explicit
+ template< class F > explicit
BinaryFunctorSplittingWrapper( F const& func ) : maFunctor(func) {}
- typename Functor::result_type operator()(
+ typename Functor::result_type operator()(
typename Functor::first_argument_type v1,
std::pair< typename Functor::third_argument_type,
typename Functor::second_argument_type > const& v2 ) const
diff --git a/basebmp/inc/basebmp/accessortraits.hxx b/basebmp/inc/basebmp/accessortraits.hxx
index e54da3f3b5ea..15a5a041cd73 100644
--- a/basebmp/inc/basebmp/accessortraits.hxx
+++ b/basebmp/inc/basebmp/accessortraits.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,13 +61,13 @@ template< typename T, typename M, bool polarity > struct outputMaskFunctorSelect
Specialize this metafunction for your case, and pass FastMask to
the outputMaskFunctorSelector.
*/
-template< class Accessor,
- class MaskAccessor,
+template< class Accessor,
+ class MaskAccessor,
class Iterator,
class MaskIterator,
bool polarity > struct maskedAccessorSelector
{
- typedef TernarySetterFunctionAccessorAdapter<
+ typedef TernarySetterFunctionAccessorAdapter<
Accessor,
MaskAccessor,
typename outputMaskFunctorSelector<
@@ -97,7 +97,7 @@ template< class Accessor > struct AccessorTraits
typedef Accessor raw_accessor;
/// Retrieve wrapped accessor for XOR setter access
- typedef BinarySetterFunctionAccessorAdapter<
+ typedef BinarySetterFunctionAccessorAdapter<
Accessor,
XorFunctor< value_type > > xor_accessor;
@@ -113,7 +113,7 @@ template< class Accessor > struct AccessorTraits
partial specializations that take an optimized functor for
certain mask accessors.
*/
- template< class MaskAccessor,
+ template< class MaskAccessor,
class Iterator,
class MaskIterator,
bool polarity > struct masked_accessor :
diff --git a/basebmp/inc/basebmp/bitmapdevice.hxx b/basebmp/inc/basebmp/bitmapdevice.hxx
index e026f3165fbb..f41498973120 100644
--- a/basebmp/inc/basebmp/bitmapdevice.hxx
+++ b/basebmp/inc/basebmp/bitmapdevice.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ typedef boost::shared_ptr< const std::vector<Color> > PaletteMemorySharedVecto
struct ImplBitmapDevice;
-/** Definition of BitmapDevice interface
+/** Definition of BitmapDevice interface
Use the createBitmapDevice() factory method to create instances.
@@ -144,7 +144,7 @@ public:
Draw mode to use when changing the pixel value
*/
void setPixel( const basegfx::B2IPoint& rPt,
- Color pixelColor,
+ Color pixelColor,
DrawMode drawMode );
/** Set given pixel to specified color
@@ -162,9 +162,9 @@ public:
Clip mask to use. If the clip mask is 1 at the given pixel
position, no change will take place.
*/
- void setPixel( const basegfx::B2IPoint& rPt,
- Color pixelColor,
- DrawMode drawMode,
+ void setPixel( const basegfx::B2IPoint& rPt,
+ Color pixelColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip );
/** Get color value at given pixel
@@ -184,7 +184,7 @@ public:
@param rPt1
Start point of the line
- @param rPt2
+ @param rPt2
End point of the line. If the analytical line from rP1 to rPt2
(with the actual pixel positions assumed to be the center of
the pixel) is exactly in the middle between two pixel, this
@@ -196,9 +196,9 @@ public:
@param drawMode
Draw mode to use when changing the pixel value
*/
- void drawLine( const basegfx::B2IPoint& rPt1,
- const basegfx::B2IPoint& rPt2,
- Color lineColor,
+ void drawLine( const basegfx::B2IPoint& rPt1,
+ const basegfx::B2IPoint& rPt2,
+ Color lineColor,
DrawMode drawMode );
/** Draw a line
@@ -206,7 +206,7 @@ public:
@param rPt1
Start point of the line
- @param rPt2
+ @param rPt2
End point of the line. If the analytical line from rP1 to rPt2
(with the actual pixel positions assumed to be the center of
the pixel) is exactly in the middle between two pixel, this
@@ -222,10 +222,10 @@ public:
Clip mask to use. Pixel where the corresponding clip mask
pixel is 1 will not be modified.
*/
- void drawLine( const basegfx::B2IPoint& rPt1,
- const basegfx::B2IPoint& rPt2,
- Color lineColor,
- DrawMode drawMode,
+ void drawLine( const basegfx::B2IPoint& rPt1,
+ const basegfx::B2IPoint& rPt2,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip );
/** Draw a polygon
@@ -241,8 +241,8 @@ public:
@param drawMode
Draw mode to use when changing pixel values
*/
- void drawPolygon( const basegfx::B2DPolygon& rPoly,
- Color lineColor,
+ void drawPolygon( const basegfx::B2DPolygon& rPoly,
+ Color lineColor,
DrawMode drawMode );
/** Draw a polygon
@@ -262,9 +262,9 @@ public:
Clip mask to use. Pixel where the corresponding clip mask
pixel is 1 will not be modified.
*/
- void drawPolygon( const basegfx::B2DPolygon& rPoly,
- Color lineColor,
- DrawMode drawMode,
+ void drawPolygon( const basegfx::B2DPolygon& rPoly,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip );
/** Fill a poly-polygon
@@ -285,8 +285,8 @@ public:
@param drawMode
Draw mode to use when changing pixel values
*/
- void fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
+ void fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
DrawMode drawMode );
/** Fill a poly-polygon
@@ -311,9 +311,9 @@ public:
Clip mask to use. Pixel where the corresponding clip mask
pixel is 1 will not be modified.
*/
- void fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
- DrawMode drawMode,
+ void fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip );
/** Draw another bitmap into this device
@@ -342,7 +342,7 @@ public:
*/
void drawBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode );
/** Draw another bitmap into this device
@@ -375,8 +375,8 @@ public:
*/
void drawBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip );
/** Draw a color with an alpha-modulation bitmap into this device
@@ -445,9 +445,9 @@ public:
void drawMaskedColor( Color aSrcColor,
const BitmapDeviceSharedPtr& rAlphaMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IPoint& rDstPoint,
+ const basegfx::B2IPoint& rDstPoint,
const BitmapDeviceSharedPtr& rClip );
-
+
/** Draw another bitmap through a mask into this device
This method renders a source bitmap into this device, much
@@ -486,7 +486,7 @@ public:
void drawMaskedBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode );
/** Draw another bitmap through a mask into this device
@@ -531,8 +531,8 @@ public:
void drawMaskedBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip );
protected:
@@ -554,58 +554,58 @@ private:
const basegfx::B2IRange& rBounds ) = 0;
virtual void setPixel_i( const basegfx::B2IPoint& rPt,
- Color lineColor,
+ Color lineColor,
DrawMode drawMode ) = 0;
- virtual void setPixel_i( const basegfx::B2IPoint& rPt,
- Color lineColor,
- DrawMode drawMode,
+ virtual void setPixel_i( const basegfx::B2IPoint& rPt,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip ) = 0;
virtual Color getPixel_i( const basegfx::B2IPoint& rPt ) = 0;
virtual sal_uInt32 getPixelData_i( const basegfx::B2IPoint& rPt ) = 0;
- virtual void drawLine_i( const basegfx::B2IPoint& rPt1,
+ virtual void drawLine_i( const basegfx::B2IPoint& rPt1,
const basegfx::B2IPoint& rPt2,
const basegfx::B2IRange& rBounds,
- Color lineColor,
+ Color lineColor,
DrawMode drawMode ) = 0;
- virtual void drawLine_i( const basegfx::B2IPoint& rPt1,
- const basegfx::B2IPoint& rPt2,
+ virtual void drawLine_i( const basegfx::B2IPoint& rPt1,
+ const basegfx::B2IPoint& rPt2,
const basegfx::B2IRange& rBounds,
- Color lineColor,
- DrawMode drawMode,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip ) = 0;
- virtual void drawPolygon_i( const basegfx::B2DPolygon& rPoly,
+ virtual void drawPolygon_i( const basegfx::B2DPolygon& rPoly,
const basegfx::B2IRange& rBounds,
- Color lineColor,
+ Color lineColor,
DrawMode drawMode ) = 0;
- virtual void drawPolygon_i( const basegfx::B2DPolygon& rPoly,
+ virtual void drawPolygon_i( const basegfx::B2DPolygon& rPoly,
const basegfx::B2IRange& rBounds,
- Color lineColor,
- DrawMode drawMode,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip ) = 0;
- virtual void fillPolyPolygon_i( const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
+ virtual void fillPolyPolygon_i( const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
DrawMode drawMode,
const basegfx::B2IRange& rBounds ) = 0;
- virtual void fillPolyPolygon_i( const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
+ virtual void fillPolyPolygon_i( const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
DrawMode drawMode,
- const basegfx::B2IRange& rBounds,
+ const basegfx::B2IRange& rBounds,
const BitmapDeviceSharedPtr& rClip ) = 0;
// must work with *this == rSrcBitmap!
virtual void drawBitmap_i( const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode ) = 0;
virtual void drawBitmap_i( const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip ) = 0;
// must work with *this == rSrcBitmap!
@@ -616,20 +616,20 @@ private:
virtual void drawMaskedColor_i( Color rSrcColor,
const BitmapDeviceSharedPtr& rAlphaMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IPoint& rDstPoint,
+ const basegfx::B2IPoint& rDstPoint,
const BitmapDeviceSharedPtr& rClip ) = 0;
-
+
// must work with *this == rSrcBitmap!
virtual void drawMaskedBitmap_i( const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode ) = 0;
virtual void drawMaskedBitmap_i( const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip ) = 0;
BitmapDeviceSharedPtr getGenericRenderer() const;
diff --git a/basebmp/inc/basebmp/clippedlinerenderer.hxx b/basebmp/inc/basebmp/clippedlinerenderer.hxx
index e023581416d6..b2d7f3710a28 100644
--- a/basebmp/inc/basebmp/clippedlinerenderer.hxx
+++ b/basebmp/inc/basebmp/clippedlinerenderer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ namespace basebmp
// factored-out bresenham setup code, which is used from two different
// places in renderClippedLine() below. Admittedly messy for the long
// parameter list...
-inline bool prepareClip( sal_Int32 a1,
+inline bool prepareClip( sal_Int32 a1,
sal_Int32 a2,
sal_Int32 b1,
sal_Int32 da,
@@ -51,7 +51,7 @@ inline bool prepareClip( sal_Int32 a1,
sal_Int32& o_bs,
int sa,
int sb,
- sal_Int32& io_rem,
+ sal_Int32& io_rem,
int& o_n,
sal_uInt32 clipCode1,
sal_uInt32 clipCount1,
@@ -98,7 +98,7 @@ inline bool prepareClip( sal_Int32 a1,
if( clipCode1 & (aMinFlag|aMaxFlag) )
{
cb = (ca + da - !bRoundTowardsPt2) / (2*da);
-
+
if( sb >= 0 )
{
o_bs = b1 + cb;
@@ -111,7 +111,7 @@ inline bool prepareClip( sal_Int32 a1,
if( o_bs < bMin )
return false;
}
-
+
io_rem += ca - 2*da*cb;
}
else
@@ -129,7 +129,7 @@ inline bool prepareClip( sal_Int32 a1,
if( o_as < aMin )
return false;
}
-
+
io_rem += 2*db*ca - cb;
}
}
@@ -147,7 +147,7 @@ inline bool prepareClip( sal_Int32 a1,
cb = 2*da*((clipCode2 & bMinFlag) ? b1 - bMin : bMax - b1);
clipCode2 &= (cb + da < ca + bRoundTowardsPt2) ? ~(aMinFlag|aMaxFlag) : ~(bMinFlag|bMaxFlag);
}
-
+
if( clipCode2 & (aMinFlag|aMaxFlag) )
o_n = (clipCode2 & aMinFlag) ? o_as - aMin : aMax - o_as;
else
@@ -187,7 +187,7 @@ inline bool prepareClip( sal_Int32 a1,
@param end
right-bottom image iterator
-
+
@param acc
Image accessor
@@ -197,20 +197,20 @@ inline bool prepareClip( sal_Int32 a1,
pixel, the pixel closer to pt1 will be chosen. Giving true here
makes renderClippedLine() choose pt2 in those cases.
*/
-template< class Iterator, class Accessor >
+template< class Iterator, class Accessor >
void renderClippedLine( basegfx::B2IPoint aPt1,
basegfx::B2IPoint aPt2,
const basegfx::B2IRange& rClipRect,
typename Accessor::value_type color,
- Iterator begin,
- Accessor acc,
+ Iterator begin,
+ Accessor acc,
bool bRoundTowardsPt2=false )
{
// Algorithm according to Steven Eker's 'Pixel-perfect line clipping',
// Graphics Gems V, pp. 314-322
- sal_uInt32 clipCode1 = basegfx::tools::getCohenSutherlandClipFlags(aPt1,
+ sal_uInt32 clipCode1 = basegfx::tools::getCohenSutherlandClipFlags(aPt1,
rClipRect);
- sal_uInt32 clipCode2 = basegfx::tools::getCohenSutherlandClipFlags(aPt2,
+ sal_uInt32 clipCode2 = basegfx::tools::getCohenSutherlandClipFlags(aPt2,
rClipRect);
if( clipCode1 & clipCode2 )
@@ -219,7 +219,7 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
sal_uInt32 clipCount1 = basegfx::tools::getNumberOfClipPlanes(clipCode1);
sal_uInt32 clipCount2 = basegfx::tools::getNumberOfClipPlanes(clipCode2);
- if( (clipCode1 != 0 && clipCode2 == 0)
+ if( (clipCode1 != 0 && clipCode2 == 0)
|| (clipCount1 == 2 && clipCount2 == 1) )
{
std::swap(clipCount2,clipCount1);
@@ -241,7 +241,7 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
adx *= -1;
sx = -1;
}
-
+
// TODO(E1): This might overflow
sal_Int32 ady = y2 - y1;
int sy = 1;
@@ -250,7 +250,7 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
ady *= -1;
sy = -1;
}
-
+
int n = 0;
sal_Int32 xs = x1;
sal_Int32 ys = y1;
@@ -269,7 +269,7 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
bRoundTowardsPt2 ));
Iterator currIter( begin + vigra::Diff2D(0,ys) );
- typename vigra::IteratorTraits<Iterator>::row_iterator
+ typename vigra::IteratorTraits<Iterator>::row_iterator
rowIter( currIter.rowIterator() + xs );
adx *= 2;
@@ -308,7 +308,7 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
{
acc.set(color, rowIter);
- if( --n < 0 )
+ if( --n < 0 )
break;
if( rem >= 0 )
@@ -345,7 +345,7 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
bRoundTowardsPt2 ));
Iterator currIter( begin + vigra::Diff2D(xs,0) );
- typename vigra::IteratorTraits<Iterator>::column_iterator
+ typename vigra::IteratorTraits<Iterator>::column_iterator
colIter( currIter.columnIterator() + ys );
adx *= 2;
@@ -365,7 +365,7 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
xs += sx;
ys += sy;
rem -= ady;
-
+
currIter.x += sx;
colIter = currIter.columnIterator() + ys;
}
diff --git a/basebmp/inc/basebmp/color.hxx b/basebmp/inc/basebmp/color.hxx
index 1bd70198a280..df5516127a36 100644
--- a/basebmp/inc/basebmp/color.hxx
+++ b/basebmp/inc/basebmp/color.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,7 +38,7 @@ namespace basebmp
class Color
{
private:
- sal_uInt32 mnColor;
+ sal_uInt32 mnColor;
public:
typedef sal_uInt32 value_type;
@@ -55,7 +55,7 @@ public:
void setBlue( sal_uInt8 nBlue ) { mnColor &= ~0x000000FFUL; mnColor |= nBlue; }
void setGrey( sal_uInt8 nGreyVal ) { mnColor = (sal_uInt32)nGreyVal << 16 | (sal_uInt32)nGreyVal << 8 | nGreyVal; }
-
+
sal_uInt8 getRed() const { return 0xFF & (sal_uInt8)(mnColor >> 16); }
sal_uInt8 getGreen() const { return 0xFF & (sal_uInt8)(mnColor >> 8); }
sal_uInt8 getBlue() const { return 0xFF & (sal_uInt8)mnColor; }
diff --git a/basebmp/inc/basebmp/colorblendaccessoradapter.hxx b/basebmp/inc/basebmp/colorblendaccessoradapter.hxx
index 4bb913500bd9..b1a0e33a7349 100644
--- a/basebmp/inc/basebmp/colorblendaccessoradapter.hxx
+++ b/basebmp/inc/basebmp/colorblendaccessoradapter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ namespace basebmp
when blitting through a mask) - there really isn't no other
sensible default behaviour for these methods.
*/
-template< class WrappedAccessor,
+template< class WrappedAccessor,
typename AlphaType,
bool polarity > class ConstantColorBlendSetterAccessorAdapter
{
@@ -54,7 +54,7 @@ public:
typedef typename WrappedAccessor::value_type color_type;
private:
- typename ColorTraits< color_type >::
+ typename ColorTraits< color_type >::
template blend_functor<alpha_type,polarity>::type maFunctor;
WrappedAccessor maWrappee;
color_type maBlendColor;
@@ -107,14 +107,14 @@ public:
// -------------------------------------------------------
/// @return constant value, regardless of iterator content
- template< typename IteratorType > value_type operator()(IteratorType const& ) const
- {
+ template< typename IteratorType > value_type operator()(IteratorType const& ) const
+ {
return maGetterValue;
}
/// @return constant value, regardless of iterator content
template< typename IteratorType, class Difference >
value_type operator()(IteratorType const& , Difference const& ) const
- {
+ {
return maGetterValue;
}
@@ -122,7 +122,7 @@ public:
template< typename V, typename IteratorType >
void set(V const& value, IteratorType const& i) const
- {
+ {
maWrappee.set(
maFunctor(
vigra::detail::RequiresExplicitCast<alpha_type>::cast(value),
@@ -143,7 +143,7 @@ public:
diff );
}
};
-
+
} // namespace basebmp
#endif /* INCLUDED_BASEBMP_COLORBLENDACCESSORADAPTER_HXX */
diff --git a/basebmp/inc/basebmp/colormisc.hxx b/basebmp/inc/basebmp/colormisc.hxx
index 96a312c251ae..99685674b771 100644
--- a/basebmp/inc/basebmp/colormisc.hxx
+++ b/basebmp/inc/basebmp/colormisc.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -128,18 +128,18 @@ template<> struct ColorTraits< Color >
template< typename AlphaType, bool polarity > struct blend_functor;
/// Calculate normalized distance between color c1 and c2
- static inline double distance( const Color& c1,
- const Color& c2 )
- {
+ static inline double distance( const Color& c1,
+ const Color& c2 )
+ {
return (c1 - c2).magnitude();
}
- static inline component_type toGreyscale( const Color& c )
+ static inline component_type toGreyscale( const Color& c )
{
return c.getGreyscale();
}
- static inline Color fromGreyscale( component_type c )
+ static inline Color fromGreyscale( component_type c )
{
return Color(c,c,c);
}
@@ -176,7 +176,7 @@ struct NumericTraits<basebmp::Color>
typedef VigraTrueType isSigned;
typedef VigraTrueType isOrdered;
typedef VigraFalseType isComplex;
-
+
static Type zero() { return Type(); }
static Type one() { return Type(0x01010101); }
static Type nonZero() { return Type(0x01010101); }
diff --git a/basebmp/inc/basebmp/colortraits.hxx b/basebmp/inc/basebmp/colortraits.hxx
index ba6a4cfeee27..4fb75caa7f6d 100644
--- a/basebmp/inc/basebmp/colortraits.hxx
+++ b/basebmp/inc/basebmp/colortraits.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,10 +44,10 @@ namespace basebmp
When true, 0 means fully transparent, and 1 fully opaque. And vice
versa.
*/
-template< typename ValueType,
+template< typename ValueType,
typename AlphaType,
bool polarity > struct BlendFunctor;
-template< typename ValueType,
+template< typename ValueType,
typename AlphaType > struct BlendFunctor<ValueType,AlphaType,true>
: public TernaryFunctorBase<AlphaType,ValueType,ValueType,ValueType>
{
@@ -60,7 +60,7 @@ template< typename ValueType,
return (vigra::NumericTraits<AlphaType>::one()-fAlpha)*v1 + fAlpha*v2;
}
};
-template< typename ValueType,
+template< typename ValueType,
typename AlphaType > struct BlendFunctor<ValueType,AlphaType,false>
: public TernaryFunctorBase<AlphaType,ValueType,ValueType,ValueType>
{
@@ -79,12 +79,12 @@ template< typename ValueType,
@tpl polarity
When true, 0 means fully transparent, and 1 fully opaque. And vice
- versa.
+ versa.
*/
-template< typename ValueType,
+template< typename ValueType,
typename AlphaType,
bool polarity > struct IntegerBlendFunctor;
-template< typename ValueType,
+template< typename ValueType,
typename AlphaType > struct IntegerBlendFunctor<ValueType,AlphaType,true>
: public TernaryFunctorBase<AlphaType,ValueType,ValueType,ValueType>
{
@@ -97,7 +97,7 @@ template< typename ValueType,
vigra::NumericTraits<AlphaType>::max();
}
};
-template< typename ValueType,
+template< typename ValueType,
typename AlphaType > struct IntegerBlendFunctor<ValueType,AlphaType,false>
: public TernaryFunctorBase<AlphaType,ValueType,ValueType,ValueType>
{
@@ -105,7 +105,7 @@ template< typename ValueType,
ValueType v1,
ValueType v2 ) const
{
- return (alpha*v1 +
+ return (alpha*v1 +
vigra::NumericTraits<AlphaType>::toPromote(
vigra::NumericTraits<AlphaType>::max()-alpha)*v2) /
vigra::NumericTraits<AlphaType>::max();
@@ -129,18 +129,18 @@ template< typename ColorType > struct ColorTraits
typedef ColorType component_type;
/// Calculate normalized distance between color c1 and c2
- static inline vigra::NormTraits<ColorType> distance( ColorType c1,
- ColorType c2 )
- {
+ static inline vigra::NormTraits<ColorType> distance( ColorType c1,
+ ColorType c2 )
+ {
return vigra::norm(c1 - c2);
}
- static inline component_type toGreyscale( ColorType c )
+ static inline component_type toGreyscale( ColorType c )
{
return c;
}
- static inline ColorType fromGreyscale( component_type c )
+ static inline ColorType fromGreyscale( component_type c )
{
return c;
}
diff --git a/basebmp/inc/basebmp/compositeiterator.hxx b/basebmp/inc/basebmp/compositeiterator.hxx
index e64cf0d8c093..a821fbddbe47 100644
--- a/basebmp/inc/basebmp/compositeiterator.hxx
+++ b/basebmp/inc/basebmp/compositeiterator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,16 +79,16 @@ namespace detail
{ return *mpVal1 - *rhs.mpVal1; }
private:
- T1* mpVal1;
- T2* mpVal2;
+ T1* mpVal1;
+ T2* mpVal2;
};
- template< typename Iterator1,
- typename Iterator2,
- typename ValueType,
+ template< typename Iterator1,
+ typename Iterator2,
+ typename ValueType,
typename DifferenceType,
typename IteratorCategory,
- class Derived >
+ class Derived >
class CompositeIteratorBase : public NonStandardIterator
{
public:
@@ -110,12 +110,12 @@ namespace detail
public:
CompositeIteratorBase() :
- maIter1(),
+ maIter1(),
maIter2()
{}
CompositeIteratorBase( const iterator1_type& rIter1, const iterator2_type& rIter2 ) :
- maIter1( rIter1 ),
+ maIter1( rIter1 ),
maIter2( rIter2 )
{}
@@ -225,7 +225,7 @@ namespace detail
};
}
-/** Provide the composition of two 1D image iterators
+/** Provide the composition of two 1D image iterators
Use this template to compose two iterators into one (e.g. image
and mask). Operations are transitive, e.g. operator== only returns
@@ -235,31 +235,31 @@ namespace detail
avoid funny effects, iterator ranges given by a CompositeIterator
should consist of wrapped iterators of similar range
*/
-template< typename Iterator1,
+template< typename Iterator1,
typename Iterator2,
- typename ValueType,
+ typename ValueType,
typename DifferenceType,
- typename IteratorCategory >
-class CompositeIterator1D :
- public detail::CompositeIteratorBase< Iterator1,
- Iterator2,
+ typename IteratorCategory >
+class CompositeIterator1D :
+ public detail::CompositeIteratorBase< Iterator1,
+ Iterator2,
ValueType,
DifferenceType,
IteratorCategory,
- CompositeIterator1D<Iterator1,
+ CompositeIterator1D<Iterator1,
Iterator2,
- ValueType,
+ ValueType,
DifferenceType,
IteratorCategory> >
{
- typedef detail::CompositeIteratorBase< Iterator1,
- Iterator2,
+ typedef detail::CompositeIteratorBase< Iterator1,
+ Iterator2,
ValueType,
DifferenceType,
IteratorCategory,
- CompositeIterator1D<Iterator1,
+ CompositeIterator1D<Iterator1,
Iterator2,
- ValueType,
+ ValueType,
DifferenceType,
IteratorCategory> > base_type;
public:
@@ -267,13 +267,13 @@ public:
base_type()
{}
- CompositeIterator1D( const Iterator1& rIter1,
+ CompositeIterator1D( const Iterator1& rIter1,
const Iterator2& rIter2 ) :
base_type( rIter1, rIter2 )
{}
};
-/** Provide the composition of two 2D image iterators
+/** Provide the composition of two 2D image iterators
Use this template to compose two iterators into one (e.g. image
and mask). Operations are transitive, e.g. operator== only returns
@@ -283,23 +283,23 @@ public:
avoid funny effects, iterator ranges given by a CompositeIterator
should consist of wrapped iterators of similar range
*/
-template< typename Iterator1, typename Iterator2 > class CompositeIterator2D :
- public detail::CompositeIteratorBase< Iterator1,
- Iterator2,
+template< typename Iterator1, typename Iterator2 > class CompositeIterator2D :
+ public detail::CompositeIteratorBase< Iterator1,
+ Iterator2,
std::pair<
- typename vigra::IteratorTraits<Iterator1>::value_type,
+ typename vigra::IteratorTraits<Iterator1>::value_type,
typename vigra::IteratorTraits<Iterator2>::value_type >,
- typename vigra::IteratorTraits<Iterator1>::difference_type,
- typename vigra::IteratorTraits<Iterator1>::iterator_category,
+ typename vigra::IteratorTraits<Iterator1>::difference_type,
+ typename vigra::IteratorTraits<Iterator1>::iterator_category,
CompositeIterator2D<Iterator1, Iterator2> >
{
- typedef detail::CompositeIteratorBase< Iterator1,
- Iterator2,
+ typedef detail::CompositeIteratorBase< Iterator1,
+ Iterator2,
std::pair<
- typename vigra::IteratorTraits<Iterator1>::value_type,
+ typename vigra::IteratorTraits<Iterator1>::value_type,
typename vigra::IteratorTraits<Iterator2>::value_type >,
- typename vigra::IteratorTraits<Iterator1>::difference_type,
- typename vigra::IteratorTraits<Iterator1>::iterator_category,
+ typename vigra::IteratorTraits<Iterator1>::difference_type,
+ typename vigra::IteratorTraits<Iterator1>::iterator_category,
CompositeIterator2D<Iterator1, Iterator2> > base_type;
public:
typedef CompositeIterator1D< typename Iterator1::row_iterator,
@@ -362,7 +362,7 @@ public:
this->maIter2.columnIterator());
}
};
-
+
} // namespace basebmp
#endif /* INCLUDED_BASEBMP_COMPOSITEITERATOR_HXX */
diff --git a/basebmp/inc/basebmp/debug.hxx b/basebmp/inc/basebmp/debug.hxx
index c5660b9a6a74..1d72099a3b72 100644
--- a/basebmp/inc/basebmp/debug.hxx
+++ b/basebmp/inc/basebmp/debug.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,13 +37,13 @@ namespace basebmp
class BitmapDevice;
/** Dump content of BitmapDevice to given output stream.
-
- @param rDevice
+
+ @param rDevice
Device whose content should be dumped.
-
- @param rOutputStream
- Stream to write output to.
- */
+
+ @param rOutputStream
+ Stream to write output to.
+ */
void debugDump( const boost::shared_ptr< BitmapDevice >& rDevice,
::std::ostream& rOutputStream );
}
diff --git a/basebmp/inc/basebmp/drawmodes.hxx b/basebmp/inc/basebmp/drawmodes.hxx
index 7e59f81b6140..7e243374449d 100644
--- a/basebmp/inc/basebmp/drawmodes.hxx
+++ b/basebmp/inc/basebmp/drawmodes.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
namespace basebmp
{
- enum DrawMode
+ enum DrawMode
{
/** Default draw mode, which simply renders pixel in the
requested color
diff --git a/basebmp/inc/basebmp/endian.hxx b/basebmp/inc/basebmp/endian.hxx
index 03a0dbeb9fbf..7bdeb111337f 100644
--- a/basebmp/inc/basebmp/endian.hxx
+++ b/basebmp/inc/basebmp/endian.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/inc/basebmp/fillimage.hxx b/basebmp/inc/basebmp/fillimage.hxx
index d3809ecc0b6e..2ec90b4b0db3 100644
--- a/basebmp/inc/basebmp/fillimage.hxx
+++ b/basebmp/inc/basebmp/fillimage.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,8 +36,8 @@ namespace basebmp
{
template< class DestIterator, class DestAccessor, typename T >
-void fillImage( DestIterator begin,
- DestIterator end,
+void fillImage( DestIterator begin,
+ DestIterator end,
DestAccessor ad,
T fillVal )
{
@@ -50,9 +50,9 @@ void fillImage( DestIterator begin,
rowIter( begin.rowIterator() );
const typename vigra::IteratorTraits<DestIterator>::row_iterator
rowEnd( rowIter + width );
-
- // TODO(P2): Provide specialized span fill methods on the
- // iterator/accessor
+
+ // TODO(P2): Provide specialized span fill methods on the
+ // iterator/accessor
while( rowIter != rowEnd )
ad.set(fillVal, rowIter++);
}
diff --git a/basebmp/inc/basebmp/genericcolorimageaccessor.hxx b/basebmp/inc/basebmp/genericcolorimageaccessor.hxx
index 2fada3948faf..c5464d688e71 100644
--- a/basebmp/inc/basebmp/genericcolorimageaccessor.hxx
+++ b/basebmp/inc/basebmp/genericcolorimageaccessor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,17 +52,17 @@ namespace basebmp
meDrawMode(DrawMode_PAINT)
{}
- GenericColorImageAccessor( BitmapDeviceSharedPtr const& rTarget,
+ GenericColorImageAccessor( BitmapDeviceSharedPtr const& rTarget,
DrawMode eDrawMode ) :
mpDevice(rTarget),
meDrawMode(eDrawMode)
{}
- template< typename Iterator >
+ template< typename Iterator >
Color operator()( Iterator const& i ) const
{ return mpDevice->getPixel( basegfx::B2IPoint( i->x,i->y ) ); }
- template< typename Iterator, typename Difference >
+ template< typename Iterator, typename Difference >
Color operator()( Iterator const& i, Difference const& diff) const
{ return mpDevice->getPixel( basegfx::B2IPoint( i[diff]->x,
i[diff]->y ) ); }
diff --git a/basebmp/inc/basebmp/greylevelformats.hxx b/basebmp/inc/basebmp/greylevelformats.hxx
index 111fcc7e12fd..1270dd86a59f 100644
--- a/basebmp/inc/basebmp/greylevelformats.hxx
+++ b/basebmp/inc/basebmp/greylevelformats.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,29 +45,29 @@
namespace basebmp
{
-template< typename PixelType,
+template< typename PixelType,
typename ColorType,
- int UsedRange > struct GreylevelGetter :
- public std::unary_function<PixelType, ColorType>
+ int UsedRange > struct GreylevelGetter :
+ public std::unary_function<PixelType, ColorType>
{
ColorType operator()( PixelType const& c ) const
- {
+ {
return ColorTraits<ColorType>::fromGreyscale(
vigra::NumericTraits<PixelType>::toPromote(c) *
vigra::NumericTraits<PixelType>::maxConst / UsedRange );
}
};
-template< typename PixelType,
+template< typename PixelType,
typename ColorType,
- int UsedRange > struct GreylevelSetter :
- public std::unary_function<ColorType, PixelType>
+ int UsedRange > struct GreylevelSetter :
+ public std::unary_function<ColorType, PixelType>
{
PixelType operator()( ColorType const& c ) const
{
return vigra::NumericTraits<PixelType>::toPromote(
- ColorTraits<ColorType>::toGreyscale(c)) *
- UsedRange /
+ ColorTraits<ColorType>::toGreyscale(c)) *
+ UsedRange /
vigra::NumericTraits<PixelType>::maxConst;
}
};
@@ -96,7 +96,7 @@ template< class Iterator,
template< int BitsPerPixel,
bool MsbFirst > struct PixelFormatTraitsTemplate_PackedGreylevel :
- public PixelFormatTraitsTemplate_Greylevel<
+ public PixelFormatTraitsTemplate_Greylevel<
PackedPixelIterator< sal_uInt8,
BitsPerPixel,
true >,
@@ -124,7 +124,7 @@ BASEBMP_SPECIALIZE_ACCESSORTRAITS(PixelFormatTraits_GREY4_MSB::getter_type,
PixelFormatTraits_GREY4_MSB::setter_type);
// 8bpp
-typedef PixelFormatTraitsTemplate_Greylevel<
+typedef PixelFormatTraitsTemplate_Greylevel<
PixelIterator< sal_uInt8 >,
StandardAccessor< sal_uInt8 >,
255 > PixelFormatTraits_GREY8;
diff --git a/basebmp/inc/basebmp/iteratortraits.hxx b/basebmp/inc/basebmp/iteratortraits.hxx
index ac76a3ebf783..51e484734b42 100644
--- a/basebmp/inc/basebmp/iteratortraits.hxx
+++ b/basebmp/inc/basebmp/iteratortraits.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,17 +38,17 @@ namespace basebmp
template< class Iterator > struct IteratorTraits
{
/// VigraTrueType, if iterator does not provide *operator()/operator[] methods
- typedef typename vigra::IsDerivedFrom<Iterator,NonStandardIterator>::result
+ typedef typename vigra::IsDerivedFrom<Iterator,NonStandardIterator>::result
isNonStandardIterator;
/// Retrieve default accessor for this iterator (and given value type)
template< typename ValueType > struct defaultAccessor : public
- // select according to non-standardness of iterator type
+ // select according to non-standardness of iterator type
vigra::If< isNonStandardIterator,
NonStandardAccessor< ValueType >,
StandardAccessor< ValueType > >
{};
-
+
};
} // namespace basebmp
diff --git a/basebmp/inc/basebmp/linerenderer.hxx b/basebmp/inc/basebmp/linerenderer.hxx
index 5e3d4df30b88..672d867970bd 100644
--- a/basebmp/inc/basebmp/linerenderer.hxx
+++ b/basebmp/inc/basebmp/linerenderer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,7 +61,7 @@ namespace basebmp
@param end
right-bottom image iterator
-
+
@param acc
Image accessor
@@ -71,12 +71,12 @@ namespace basebmp
pixel, the pixel closer to pt1 will be chosen. Giving true here
makes renderClippedLine() choose pt2 in those cases.
*/
-template< class Iterator, class Accessor >
+template< class Iterator, class Accessor >
void renderLine( const basegfx::B2IPoint& rPt1,
const basegfx::B2IPoint& rPt2,
typename Accessor::value_type color,
- Iterator begin,
- Accessor acc,
+ Iterator begin,
+ Accessor acc,
bool bRoundTowardsPt2=false )
{
// code inspired by Paul Heckbert's Digital Line Drawing
@@ -115,7 +115,7 @@ void renderLine( const basegfx::B2IPoint& rPt1,
ady *= 2;
Iterator currIter( begin + vigra::Diff2D(0,ys) );
- typename vigra::IteratorTraits<Iterator>::row_iterator
+ typename vigra::IteratorTraits<Iterator>::row_iterator
rowIter( currIter.rowIterator() + xs );
while(true)
{
@@ -124,7 +124,7 @@ void renderLine( const basegfx::B2IPoint& rPt1,
if( xs == x2 )
return;
- if( rem >= 0 )
+ if( rem >= 0 )
{
ys += sy;
xs += sx;
@@ -149,7 +149,7 @@ void renderLine( const basegfx::B2IPoint& rPt1,
ady *= 2;
Iterator currIter( begin + vigra::Diff2D(xs,0) );
- typename vigra::IteratorTraits<Iterator>::column_iterator
+ typename vigra::IteratorTraits<Iterator>::column_iterator
colIter( currIter.columnIterator() + ys );
while(true)
{
@@ -157,8 +157,8 @@ void renderLine( const basegfx::B2IPoint& rPt1,
if( ys == y2 )
return;
-
- if( rem >= 0 )
+
+ if( rem >= 0 )
{
xs += sx;
ys += sy;
diff --git a/basebmp/inc/basebmp/metafunctions.hxx b/basebmp/inc/basebmp/metafunctions.hxx
index 642a98a70680..bdd6b668aeb9 100644
--- a/basebmp/inc/basebmp/metafunctions.hxx
+++ b/basebmp/inc/basebmp/metafunctions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,12 +36,12 @@
namespace basebmp
{
-// TODO(Q3): move to generic place (o3tl?)
+// TODO(Q3): move to generic place (o3tl?)
/** template meta function: add const qualifier to 2nd type, if given
1st type has it
*/
-template<typename A, typename B> struct clone_const
+template<typename A, typename B> struct clone_const
{
typedef B type;
};
@@ -53,7 +53,7 @@ template<typename A, typename B> struct clone_const<const A,B>
/** template meta function: add const qualifier to plain type (if not
already there)
*/
-template <typename T> struct add_const
+template <typename T> struct add_const
{
typedef const T type;
};
@@ -63,7 +63,7 @@ template <typename T> struct add_const<const T>
};
/// template meta function: remove const qualifier from plain type
-template <typename T> struct remove_const
+template <typename T> struct remove_const
{
typedef T type;
};
@@ -135,10 +135,10 @@ inline bool is_negative( int x )
template< typename T, typename trueCase, typename falseCase >
struct ifScalarIntegral
{
- typedef
- typename vigra::If<
+ typedef
+ typename vigra::If<
typename vigra::NumericTraits< T >::isIntegral,
- typename vigra::If<
+ typename vigra::If<
typename vigra::NumericTraits< T >::isScalar,
trueCase,
falseCase >::type,
@@ -149,11 +149,11 @@ struct ifScalarIntegral
template< typename T, typename trueCase, typename falseCase >
struct ifScalarNonIntegral
{
- typedef
- typename vigra::If<
+ typedef
+ typename vigra::If<
typename vigra::NumericTraits< T >::isIntegral,
falseCase,
- typename vigra::If<
+ typename vigra::If<
typename vigra::NumericTraits< T >::isScalar,
trueCase,
falseCase >::type >::type type;
@@ -163,11 +163,11 @@ struct ifScalarNonIntegral
template< typename T1, typename T2, typename trueCase, typename falseCase >
struct ifBothScalarIntegral
{
- typedef
- typename ifScalarIntegral<
- T1,
- typename ifScalarIntegral<
- T2,
+ typedef
+ typename ifScalarIntegral<
+ T1,
+ typename ifScalarIntegral<
+ T2,
trueCase,
falseCase >::type,
falseCase >::type type;
@@ -191,7 +191,7 @@ template<> struct numberOfTrailingZeros<0>
//--------------------------------------------------------------
-/// Count number of one bits
+/// Count number of one bits
template< unsigned int val > struct bitcount
{
enum { next = val >> 1 };
@@ -205,13 +205,13 @@ template<> struct bitcount<0>
//--------------------------------------------------------------
-/// Shift left for positive shift value, and right otherwise
+/// Shift left for positive shift value, and right otherwise
template< typename T > inline T shiftLeft( T v, int shift )
{
return shift > 0 ? v << shift : v >> (-shift);
}
-/// Shift right for positive shift value, and left otherwise
+/// Shift right for positive shift value, and left otherwise
template< typename T > inline T shiftRight( T v, int shift )
{
return shift > 0 ? v >> shift : v << (-shift);
diff --git a/basebmp/inc/basebmp/nonstandarditerator.hxx b/basebmp/inc/basebmp/nonstandarditerator.hxx
index 090d15d41025..ee20d42fd8bb 100644
--- a/basebmp/inc/basebmp/nonstandarditerator.hxx
+++ b/basebmp/inc/basebmp/nonstandarditerator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/inc/basebmp/packedpixeliterator.hxx b/basebmp/inc/basebmp/packedpixeliterator.hxx
index b98c8c8f9670..f02ced1b399d 100644
--- a/basebmp/inc/basebmp/packedpixeliterator.hxx
+++ b/basebmp/inc/basebmp/packedpixeliterator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,10 +42,10 @@ namespace basebmp
{
/// Get bitmask for data at given intra-word position, for given bit depth
-template< typename value_type,
- int bits_per_pixel,
- bool MsbFirst,
- typename difference_type >
+template< typename value_type,
+ int bits_per_pixel,
+ bool MsbFirst,
+ typename difference_type >
inline value_type get_mask( difference_type d )
{
BOOST_STATIC_ASSERT(bits_per_pixel > 0);
@@ -56,20 +56,20 @@ inline value_type get_mask( difference_type d )
const unsigned int nIntraWordPositions( sizeof(value_type)*8 / bits_per_pixel );
// create bits_per_pixel 1s shift to intra-word position
- return ((~(~0 << bits_per_pixel)) << bits_per_pixel*(MsbFirst ?
- (nIntraWordPositions-1 - (d % nIntraWordPositions)) :
+ return ((~(~0 << bits_per_pixel)) << bits_per_pixel*(MsbFirst ?
+ (nIntraWordPositions-1 - (d % nIntraWordPositions)) :
(d % nIntraWordPositions)));
}
template< int num_intraword_positions, int bits_per_pixel, bool MsbFirst, typename difference_type > inline difference_type get_shift( difference_type remainder )
{
- return bits_per_pixel*(MsbFirst ?
+ return bits_per_pixel*(MsbFirst ?
(num_intraword_positions - 1 - remainder) :
remainder);
}
-template< typename Valuetype,
- int bits_per_pixel,
+template< typename Valuetype,
+ int bits_per_pixel,
bool MsbFirst > class PackedPixelColumnIterator : public NonStandardIterator
{
public:
@@ -239,8 +239,8 @@ public:
}
};
-template< typename Valuetype,
- int bits_per_pixel,
+template< typename Valuetype,
+ int bits_per_pixel,
bool MsbFirst > class PackedPixelRowIterator : public NonStandardIterator
{
public:
@@ -280,12 +280,12 @@ private:
remainder_ = newValue % num_intraword_positions;
const mask_type shifted_mask(
- MsbFirst ?
- unsigned_cast<mask_type>(mask_) >> bits_per_pixel :
+ MsbFirst ?
+ unsigned_cast<mask_type>(mask_) >> bits_per_pixel :
mask_ << bits_per_pixel );
// data_offset is 0 for shifted mask, and 1 for wrapped-around mask
- mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
+ mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
bit_mask << bits_per_pixel*(num_intraword_positions-1) :
bit_mask);
}
@@ -308,12 +308,12 @@ private:
remainder_ = newRemainder + isNegative*num_intraword_positions;
const mask_type shifted_mask(
- MsbFirst ?
+ MsbFirst ?
mask_ << bits_per_pixel :
unsigned_cast<mask_type>(mask_) >> bits_per_pixel );
// data_offset is 0 for shifted mask, and 1 for wrapped-around mask
- mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
+ mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
bit_mask :
bit_mask << bits_per_pixel*(num_intraword_positions-1));
}
@@ -325,8 +325,8 @@ private:
bool less( PackedPixelRowIterator const & rhs ) const
{
- return data_ == rhs.data_ ?
- (remainder_ < rhs.remainder_) :
+ return data_ == rhs.data_ ?
+ (remainder_ < rhs.remainder_) :
(data_ < rhs.data_);
}
@@ -449,9 +449,9 @@ public:
value_type get() const
{
- return unsigned_cast<value_type>(*data_ & mask_) >>
- get_shift<num_intraword_positions,
- bits_per_pixel,
+ return unsigned_cast<value_type>(*data_ & mask_) >>
+ get_shift<num_intraword_positions,
+ bits_per_pixel,
MsbFirst>(remainder_);
}
@@ -464,9 +464,9 @@ public:
void set( value_type v ) const
{
- const value_type pixel_value(
- (v <<
- get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder_))
+ const value_type pixel_value(
+ (v <<
+ get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder_))
& mask_ );
*data_ = (*data_ & ~mask_) | pixel_value;
}
@@ -485,8 +485,8 @@ public:
one pixel into an machine data type (like one bit per pixel, eight
of which packed into one char)
*/
-template< typename Valuetype,
- int bits_per_pixel,
+template< typename Valuetype,
+ int bits_per_pixel,
bool MsbFirst > class PackedPixelIterator : public NonStandardIterator
{
public:
@@ -495,10 +495,10 @@ public:
typedef vigra::Diff2D difference_type;
typedef image_traverser_tag iterator_category;
typedef PackedPixelRowIterator<value_type,
- bits_per_pixel,
+ bits_per_pixel,
MsbFirst> row_iterator;
typedef PackedPixelColumnIterator<value_type,
- bits_per_pixel,
+ bits_per_pixel,
MsbFirst> column_iterator;
typedef value_type* pointer;
@@ -519,12 +519,12 @@ public:
private:
pointer current() const
- {
+ {
return y() + (x / num_intraword_positions);
}
pointer current(int dx, int dy) const
- {
+ {
return y(dy) + ((x+dx)/num_intraword_positions);
}
@@ -606,27 +606,27 @@ public:
{
const int remainder( x % num_intraword_positions );
- return (unsigned_cast<value_type>(*current() &
+ return (unsigned_cast<value_type>(*current() &
get_mask<value_type, bits_per_pixel, MsbFirst>(remainder))
- >> get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder));
+ >> get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder));
}
value_type get(difference_type const & d) const
{
const int remainder( x(d.x) % num_intraword_positions );
- return (unsigned_cast<value_type>(*current(d.x,d.y) &
+ return (unsigned_cast<value_type>(*current(d.x,d.y) &
get_mask<value_type, bits_per_pixel, MsbFirst>(remainder))
- >> get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder));
+ >> get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder));
}
void set( value_type v ) const
{
const int remainder( x % num_intraword_positions );
const int mask( get_mask<value_type, bits_per_pixel, MsbFirst>(remainder) );
- const value_type pixel_value(
- (v <<
- get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
+ const value_type pixel_value(
+ (v <<
+ get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
& mask );
pointer p = current();
*p = (*p & ~mask) | pixel_value;
@@ -636,9 +636,9 @@ public:
{
const int remainder( (x + d.x) % num_intraword_positions );
const int mask( get_mask<value_type, bits_per_pixel, MsbFirst>(remainder) );
- const value_type pixel_value(
+ const value_type pixel_value(
(v <<
- get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
+ get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
& mask );
pointer p = current(d.x,d.y);
*p = (*p & ~mask) | pixel_value;
@@ -650,11 +650,11 @@ public:
// partial specialization for the accessor traits masked_accessor
// selector metafunction - can employ fast mask functor for the 1bpp
// case.
-template< class Accessor,
- class MaskAccessor,
+template< class Accessor,
+ class MaskAccessor,
class Iterator,
bool polarity,
- bool MsbFirst > struct maskedAccessorSelector< Accessor,
+ bool MsbFirst > struct maskedAccessorSelector< Accessor,
MaskAccessor,
Iterator,
PackedPixelIterator< typename MaskAccessor::value_type,
@@ -662,7 +662,7 @@ template< class Accessor,
MsbFirst >,
polarity >
{
- typedef TernarySetterFunctionAccessorAdapter<
+ typedef TernarySetterFunctionAccessorAdapter<
Accessor,
MaskAccessor,
typename outputMaskFunctorSelector<
diff --git a/basebmp/inc/basebmp/paletteformats.hxx b/basebmp/inc/basebmp/paletteformats.hxx
index f138549462fe..0ba8cbbe4258 100644
--- a/basebmp/inc/basebmp/paletteformats.hxx
+++ b/basebmp/inc/basebmp/paletteformats.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ namespace basebmp
//-----------------------------------------------------------------------------
/** Lookup index value for given color value in a PaletteImageAccessor
- */
+ */
template< class Accessor > struct ColorLookup
{
typename Accessor::data_type operator()( const Accessor& acc,
@@ -62,7 +62,7 @@ template< class Accessor > struct ColorLookup
//-----------------------------------------------------------------------------
// partial specialization of AccessorTraits for PaletteAccessor
-template< class Accessor, typename ColorType > struct AccessorTraits<
+template< class Accessor, typename ColorType > struct AccessorTraits<
PaletteImageAccessor< Accessor, ColorType > >
{
/// value type of described accessor
@@ -86,7 +86,7 @@ template< class Accessor, typename ColorType > struct AccessorTraits<
* want to wrap a masked_accessor with a PaletteAccessor, not the
* other way around.
*/
- template< class MaskAccessor,
+ template< class MaskAccessor,
class Iterator,
class MaskIterator > struct masked_accessor
{
@@ -117,7 +117,7 @@ template< class Iterator,
template< int BitsPerPixel,
bool MsbFirst > struct PixelFormatTraitsTemplate_PackedPalette :
- public PixelFormatTraitsTemplate_Palette<
+ public PixelFormatTraitsTemplate_Palette<
PackedPixelIterator< sal_uInt8,
BitsPerPixel,
MsbFirst >,
@@ -139,7 +139,7 @@ typedef PixelFormatTraitsTemplate_PackedPalette<4, true> PixelFormatTraits_PAL4
typedef PixelFormatTraitsTemplate_PackedPalette<4, false> PixelFormatTraits_PAL4_LSB;
// 8bpp
-typedef PixelFormatTraitsTemplate_Palette<
+typedef PixelFormatTraitsTemplate_Palette<
PixelIterator< sal_uInt8 >,
StandardAccessor< sal_uInt8 > > PixelFormatTraits_PAL8;
diff --git a/basebmp/inc/basebmp/paletteimageaccessor.hxx b/basebmp/inc/basebmp/paletteimageaccessor.hxx
index 35a14d16dd36..de00efe6081d 100644
--- a/basebmp/inc/basebmp/paletteimageaccessor.hxx
+++ b/basebmp/inc/basebmp/paletteimageaccessor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,26 +62,26 @@ private:
template<class A, typename C> friend class PaletteImageAccessor;
#endif
- Accessor maAccessor;
+ Accessor maAccessor;
const value_type* mpPalette;
std::size_t mnNumEntries;
public:
- PaletteImageAccessor() :
+ PaletteImageAccessor() :
maAccessor(),
mpPalette(0),
mnNumEntries(0)
{}
- template< class A > explicit
- PaletteImageAccessor( PaletteImageAccessor<A,ColorType> const& rSrc ) :
+ template< class A > explicit
+ PaletteImageAccessor( PaletteImageAccessor<A,ColorType> const& rSrc ) :
maAccessor( rSrc.maAccessor ),
mpPalette( rSrc.mpPalette ),
mnNumEntries( rSrc.mnNumEntries )
{}
PaletteImageAccessor( const value_type* pPalette,
- std::size_t numEntries ) :
+ std::size_t numEntries ) :
maAccessor(),
mpPalette(pPalette),
mnNumEntries(numEntries)
@@ -89,7 +89,7 @@ public:
template< class T > PaletteImageAccessor( T accessor,
const value_type* pPalette,
- std::size_t numEntries ) :
+ std::size_t numEntries ) :
maAccessor(accessor),
mpPalette(pPalette),
mnNumEntries(numEntries)
@@ -115,7 +115,7 @@ public:
while( curr_entry != palette_end )
{
if( ColorTraits<value_type>::distance(*curr_entry,
- *best_entry)
+ *best_entry)
> ColorTraits<value_type>::distance(*curr_entry,
v) )
{
@@ -131,22 +131,22 @@ public:
// -------------------------------------------------------
template< class Iterator >
- value_type operator()(Iterator const& i) const
- {
- return mpPalette[ maAccessor(i) ];
+ value_type operator()(Iterator const& i) const
+ {
+ return mpPalette[ maAccessor(i) ];
}
template< class Iterator, class Difference >
value_type operator()(Iterator const& i, Difference const& diff) const
{
- return mpPalette[ maAccessor(i,diff) ];
+ return mpPalette[ maAccessor(i,diff) ];
}
// -------------------------------------------------------
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
+ {
maAccessor.set(
lookup(
vigra::detail::RequiresExplicitCast<value_type>::cast(value) ),
diff --git a/basebmp/inc/basebmp/pixelformatadapters.hxx b/basebmp/inc/basebmp/pixelformatadapters.hxx
index 6ebf531fbbb4..a769b3b3acae 100644
--- a/basebmp/inc/basebmp/pixelformatadapters.hxx
+++ b/basebmp/inc/basebmp/pixelformatadapters.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,12 +53,12 @@ namespace basebmp
to other templates, which in turn can invoke the nested meta
function.
*/
-template< typename Getter,
+template< typename Getter,
typename Setter > struct AccessorSelector
{
template< typename Accessor > struct wrap_accessor
{
- typedef UnaryFunctionAccessorAdapter< Accessor,
+ typedef UnaryFunctionAccessorAdapter< Accessor,
Getter,
Setter > type;
};
@@ -67,7 +67,7 @@ template< typename Getter,
//-----------------------------------------------------------------------------
/** Convert color value to pixel data type
- */
+ */
template< class Accessor, typename DataType > struct ColorConvert
{
DataType operator()( const Accessor& acc,
diff --git a/basebmp/inc/basebmp/pixeliterator.hxx b/basebmp/inc/basebmp/pixeliterator.hxx
index 6e5ca4394a01..adee8af09ae8 100644
--- a/basebmp/inc/basebmp/pixeliterator.hxx
+++ b/basebmp/inc/basebmp/pixeliterator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -229,13 +229,13 @@ private:
}
pointer current() const
- {
- return y() + x;
+ {
+ return y() + x;
}
pointer current(int dx, int dy) const
- {
- return y(dy) + x+dx;
+ {
+ return y(dy) + x+dx;
}
public:
diff --git a/basebmp/inc/basebmp/polypolygonrenderer.hxx b/basebmp/inc/basebmp/polypolygonrenderer.hxx
index 6a7c391f31d0..bd8cc5c24ba8 100644
--- a/basebmp/inc/basebmp/polypolygonrenderer.hxx
+++ b/basebmp/inc/basebmp/polypolygonrenderer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,28 +67,28 @@ namespace basebmp
sal_Int64 mnX;
sal_Int64 mnXDelta;
- bool mbDownwards; // needed for nonzero winding rule
+ bool mbDownwards; // needed for nonzero winding rule
// fills
- Vertex() :
- mnYCounter(0),
+ Vertex() :
+ mnYCounter(0),
mnX(0),
mnXDelta(0),
mbDownwards(true)
{}
- Vertex( basegfx::B2DPoint const& rPt1,
- basegfx::B2DPoint const& rPt2,
- bool bDownwards ) :
- mnYCounter( basegfx::fround(rPt2.getY()) -
- basegfx::fround(rPt1.getY()) ),
+ Vertex( basegfx::B2DPoint const& rPt1,
+ basegfx::B2DPoint const& rPt2,
+ bool bDownwards ) :
+ mnYCounter( basegfx::fround(rPt2.getY()) -
+ basegfx::fround(rPt1.getY()) ),
mnX( toFractional( basegfx::fround(rPt1.getX()) )),
mnXDelta( toFractional(
- ((rPt2.getX() - rPt1.getX()) /
+ ((rPt2.getX() - rPt1.getX()) /
(double)mnYCounter) )),
mbDownwards(bDownwards)
{}
};
-
+
typedef std::vector< std::vector<Vertex> > VectorOfVectorOfVertices;
typedef std::vector< Vertex* > VectorOfVertexPtr;
@@ -139,12 +139,12 @@ namespace basebmp
@param rClipRect
Clipping rectangle, relative to the begin iterator. No pixel outside
this clip rect will be modified.
-
+
@param rPoly
Polygon to fill
*/
template< class DestIterator, class DestAccessor, typename T >
- void renderClippedPolyPolygon( DestIterator begin,
+ void renderClippedPolyPolygon( DestIterator begin,
DestAccessor ad,
T fillColor,
const basegfx::B2IRange& rClipRect,
@@ -160,8 +160,8 @@ namespace basebmp
basegfx::B2DRange const aPolyBounds( basegfx::tools::getRange(rPoly) );
- const sal_Int32 nMinY( basegfx::fround(aPolyBounds.getMinY()) );
- const sal_Int32 nMaxY(
+ const sal_Int32 nMinY( basegfx::fround(aPolyBounds.getMinY()) );
+ const sal_Int32 nMaxY(
std::min(
nClipY2-1,
basegfx::fround(aPolyBounds.getMaxY())));
@@ -192,7 +192,7 @@ namespace basebmp
// current scanline - initially, points to first scanline
// within the clip rect, or to the polygon's first scanline
// (whichever is greater)
- DestIterator aScanline( begin +
+ DestIterator aScanline( begin +
vigra::Diff2D(
0,
std::max(nMinY,
@@ -213,14 +213,14 @@ namespace basebmp
detail::VectorOfVectorOfVertices::value_type::iterator const end=aGET[y-nMinY].end();
while( vertex != end )
{
- // find insertion pos by binary search, and put ptr
- // into active edge vector
+ // find insertion pos by binary search, and put ptr
+ // into active edge vector
pAET->insert( std::lower_bound( pAET->begin(),
pAET->end(),
&(*vertex),
aComp ),
&(*vertex) );
-
+
++vertex;
}
}
@@ -228,7 +228,7 @@ namespace basebmp
// with less than two active edges, no fill visible
if( pAET->size() >= 2 )
{
- typename vigra::IteratorTraits<DestIterator>::row_iterator
+ typename vigra::IteratorTraits<DestIterator>::row_iterator
rowIter( aScanline.rowIterator() );
// process each span in current scanline, with
@@ -249,9 +249,9 @@ namespace basebmp
// calc fill status for both rules. might save a
// few percent runtime to specialize here...
- const bool bEvenOddFill(
+ const bool bEvenOddFill(
eFillRule == basegfx::FillRule_EVEN_ODD && !(nCrossedEdges & 0x01) );
- const bool bNonZeroWindingFill(
+ const bool bNonZeroWindingFill(
eFillRule == basegfx::FillRule_NONZERO_WINDING_NUMBER && nWindingNumber != 0 );
// is span visible?
@@ -261,18 +261,18 @@ namespace basebmp
rV2.mnX > nClipX1_frac )
{
// clip span to horizontal bounds
- sal_Int32 const nStartX(
+ sal_Int32 const nStartX(
std::max( nClipX1,
std::min( nClipX2-1,
detail::toRoundedInteger(rV1.mnX) )));
- sal_Int32 const nEndX(
+ sal_Int32 const nEndX(
std::max( nClipX1,
std::min( nClipX2,
detail::toRoundedInteger(rV2.mnX) )));
- typename vigra::IteratorTraits<DestIterator>::row_iterator
+ typename vigra::IteratorTraits<DestIterator>::row_iterator
currPix( rowIter + nStartX);
- typename vigra::IteratorTraits<DestIterator>::row_iterator
+ typename vigra::IteratorTraits<DestIterator>::row_iterator
rowEnd( rowIter + nEndX );
// TODO(P2): Provide specialized span fill methods on the
@@ -284,7 +284,7 @@ namespace basebmp
// step vertices
rV1.mnX += rV1.mnXDelta;
--rV1.mnYCounter;
-
+
++nCrossedEdges;
}
@@ -353,7 +353,7 @@ namespace basebmp
if( !bFallbackTaken && (*currVertex)->mnYCounter > 0 )
pAETOther->push_back( *currVertex );
}
-
+
std::swap( pAET, pAETOther );
}
diff --git a/basebmp/inc/basebmp/rgb24pixelformats.hxx b/basebmp/inc/basebmp/rgb24pixelformats.hxx
index 91d374efd7e9..28b7a374e624 100644
--- a/basebmp/inc/basebmp/rgb24pixelformats.hxx
+++ b/basebmp/inc/basebmp/rgb24pixelformats.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,17 +41,17 @@
namespace basebmp
{
-template< typename PixelType, typename ColorType > struct RGBValueGetter :
- public std::unary_function<PixelType, ColorType>
+template< typename PixelType, typename ColorType > struct RGBValueGetter :
+ public std::unary_function<PixelType, ColorType>
{
ColorType operator()( PixelType const& c ) const
- {
- return ColorType(c.red(),c.green(),c.blue());
+ {
+ return ColorType(c.red(),c.green(),c.blue());
}
};
-template< typename PixelType, typename ColorType > struct RGBValueSetter :
- public std::unary_function<ColorType, PixelType>
+template< typename PixelType, typename ColorType > struct RGBValueSetter :
+ public std::unary_function<ColorType, PixelType>
{
PixelType operator()( ColorType const& c ) const
{
diff --git a/basebmp/inc/basebmp/rgbmaskpixelformats.hxx b/basebmp/inc/basebmp/rgbmaskpixelformats.hxx
index 47f7c2bf6199..9c0269d5a0dd 100644
--- a/basebmp/inc/basebmp/rgbmaskpixelformats.hxx
+++ b/basebmp/inc/basebmp/rgbmaskpixelformats.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,8 +68,8 @@ namespace basebmp
@tpl SwapBytes
When true, the final pixel values will be byte-swapped before
passed on.
- */
-template< typename PixelType,
+ */
+template< typename PixelType,
typename ColorType,
unsigned int RedMask,
unsigned int GreenMask,
@@ -82,7 +82,7 @@ template< typename PixelType,
typedef typename ColorTraits<ColorType>::component_type component_type;
// calc corrective shifts for all three channels in advance
- enum {
+ enum {
red_shift = numberOfTrailingZeros<RedMask>::value,
green_shift = numberOfTrailingZeros<GreenMask>::value,
blue_shift = numberOfTrailingZeros<BlueMask>::value,
@@ -93,19 +93,19 @@ template< typename PixelType,
};
};
-template< typename PixelType,
+template< typename PixelType,
typename ColorType,
unsigned int RedMask,
unsigned int GreenMask,
unsigned int BlueMask,
- bool SwapBytes > struct RGBMaskGetter :
+ bool SwapBytes > struct RGBMaskGetter :
public RGBMaskFunctorBase<PixelType,
ColorType,
RedMask,
GreenMask,
BlueMask,
SwapBytes>,
- public std::unary_function<PixelType, ColorType>
+ public std::unary_function<PixelType, ColorType>
{
typedef RGBMaskFunctorBase<PixelType,
ColorType,
@@ -115,7 +115,7 @@ template< typename PixelType,
SwapBytes> base_type;
ColorType operator()( PixelType v ) const
- {
+ {
v = SwapBytes ? byteSwap(v) : v;
const typename base_type::unsigned_pixel_type red (v & RedMask);
@@ -125,7 +125,7 @@ template< typename PixelType,
// shift color nibbles to right-aligend position. ORing it
// channel value shifted twice the number of channel bits, to
// spread the value into the component_type range
- ColorType res( (shiftRight(red,
+ ColorType res( (shiftRight(red,
base_type::red_shift-8*
(signed)sizeof(typename base_type::component_type)+
base_type::red_bits)) |
@@ -133,7 +133,7 @@ template< typename PixelType,
base_type::red_shift-8*
(signed)sizeof(typename base_type::component_type)+
2*base_type::red_bits)),
-
+
(shiftRight(green,
base_type::green_shift-8*
(signed)sizeof(typename base_type::component_type)+
@@ -142,7 +142,7 @@ template< typename PixelType,
base_type::green_shift-8*
(signed)sizeof(typename base_type::component_type)+
2*base_type::green_bits)),
-
+
(shiftRight(blue,
base_type::blue_shift-8*
(signed)sizeof(typename base_type::component_type)+
@@ -155,19 +155,19 @@ template< typename PixelType,
}
};
-template< typename PixelType,
+template< typename PixelType,
typename ColorType,
unsigned int RedMask,
unsigned int GreenMask,
unsigned int BlueMask,
- bool SwapBytes > struct RGBMaskSetter :
+ bool SwapBytes > struct RGBMaskSetter :
public RGBMaskFunctorBase<PixelType,
ColorType,
RedMask,
GreenMask,
BlueMask,
SwapBytes>,
- public std::unary_function<ColorType, PixelType>
+ public std::unary_function<ColorType, PixelType>
{
typedef RGBMaskFunctorBase<PixelType,
ColorType,
@@ -182,7 +182,7 @@ template< typename PixelType,
const typename base_type::unsigned_pixel_type green(c.getGreen());
const typename base_type::unsigned_pixel_type blue (c.getBlue());
- typename base_type::unsigned_pixel_type res(
+ typename base_type::unsigned_pixel_type res(
(shiftLeft(red,
base_type::red_shift-8*
(signed)sizeof(typename base_type::component_type)+
@@ -202,7 +202,7 @@ template< typename PixelType,
//-----------------------------------------------------------------------------
-template< typename PixelType,
+template< typename PixelType,
unsigned int RedMask,
unsigned int GreenMask,
unsigned int BlueMask,
diff --git a/basebmp/inc/basebmp/scaleimage.hxx b/basebmp/inc/basebmp/scaleimage.hxx
index a8fd83e2cd94..d1588db8a962 100644
--- a/basebmp/inc/basebmp/scaleimage.hxx
+++ b/basebmp/inc/basebmp/scaleimage.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,8 +44,8 @@ template< class SourceIter, class SourceAcc,
void scaleLine( SourceIter s_begin,
SourceIter s_end,
SourceAcc s_acc,
- DestIter d_begin,
- DestIter d_end,
+ DestIter d_begin,
+ DestIter d_end,
DestAcc d_acc )
{
const int src_width = s_end - s_begin;
@@ -58,7 +58,7 @@ void scaleLine( SourceIter s_begin,
// shrink
int rem = 0;
while( s_begin != s_end )
- {
+ {
if( rem >= 0 )
{
d_acc.set( s_acc(s_begin), d_begin );
@@ -68,7 +68,7 @@ void scaleLine( SourceIter s_begin,
}
rem += dest_width;
- ++s_begin;
+ ++s_begin;
}
}
else
@@ -81,10 +81,10 @@ void scaleLine( SourceIter s_begin,
{
rem -= dest_width;
++s_begin;
- }
+ }
d_acc.set( s_acc(s_begin), d_begin );
-
+
rem += src_width;
++d_begin;
}
@@ -123,8 +123,8 @@ template< class SourceIter, class SourceAcc,
void scaleImage( SourceIter s_begin,
SourceIter s_end,
SourceAcc s_acc,
- DestIter d_begin,
- DestIter d_end,
+ DestIter d_begin,
+ DestIter d_end,
DestAcc d_acc,
bool bMustCopy=false )
{
@@ -134,8 +134,8 @@ void scaleImage( SourceIter s_begin,
const int dest_width ( d_end.x - d_begin.x );
const int dest_height( d_end.y - d_begin.y );
- if( !bMustCopy &&
- src_width == dest_width &&
+ if( !bMustCopy &&
+ src_width == dest_width &&
src_height == dest_height )
{
// no scaling involved, can simply copy
@@ -147,7 +147,7 @@ void scaleImage( SourceIter s_begin,
typedef vigra::BasicImage<typename SourceAcc::value_type> TmpImage;
typedef typename TmpImage::traverser TmpImageIter;
- TmpImage tmp_image(src_width,
+ TmpImage tmp_image(src_width,
dest_height);
TmpImageIter t_begin = tmp_image.upperLeft();
@@ -157,7 +157,7 @@ void scaleImage( SourceIter s_begin,
typename SourceIter::column_iterator s_cbegin = s_begin.columnIterator();
typename TmpImageIter::column_iterator t_cbegin = t_begin.columnIterator();
- scaleLine(s_cbegin, s_cbegin+src_height, s_acc,
+ scaleLine(s_cbegin, s_cbegin+src_height, s_acc,
t_cbegin, t_cbegin+dest_height, tmp_image.accessor());
}
@@ -169,7 +169,7 @@ void scaleImage( SourceIter s_begin,
typename DestIter::row_iterator d_rbegin = d_begin.rowIterator();
typename TmpImageIter::row_iterator t_rbegin = t_begin.rowIterator();
- scaleLine(t_rbegin, t_rbegin+src_width, tmp_image.accessor(),
+ scaleLine(t_rbegin, t_rbegin+src_width, tmp_image.accessor(),
d_rbegin, d_rbegin+dest_width, d_acc);
}
}
diff --git a/basebmp/inc/basebmp/scanlineformats.hxx b/basebmp/inc/basebmp/scanlineformats.hxx
index ee466f21b5c9..e069937b3ba5 100644
--- a/basebmp/inc/basebmp/scanlineformats.hxx
+++ b/basebmp/inc/basebmp/scanlineformats.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/inc/basebmp/stridedarrayiterator.hxx b/basebmp/inc/basebmp/stridedarrayiterator.hxx
index 422269cb70e4..684ff232c1ec 100644
--- a/basebmp/inc/basebmp/stridedarrayiterator.hxx
+++ b/basebmp/inc/basebmp/stridedarrayiterator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/inc/basebmp/tools.hxx b/basebmp/inc/basebmp/tools.hxx
index 0b5fcb87a693..10bb0fccca41 100644
--- a/basebmp/inc/basebmp/tools.hxx
+++ b/basebmp/inc/basebmp/tools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ namespace basebmp
template< class Iterator, class Accessor >
inline vigra::triple<Iterator,Iterator,Accessor>
- destIterRange(Iterator const& begin,
+ destIterRange(Iterator const& begin,
Accessor const& accessor,
const basegfx::B2IRange& rRange)
{
@@ -56,7 +56,7 @@ namespace basebmp
template< class Iterator, class Accessor >
inline vigra::triple<Iterator,Iterator,Accessor>
- srcIterRange(Iterator const& begin,
+ srcIterRange(Iterator const& begin,
Accessor const& accessor,
const basegfx::B2IRange& rRange)
{
@@ -68,7 +68,7 @@ namespace basebmp
template< class Iterator, class Accessor >
inline vigra::pair<Iterator,Accessor>
- srcIter(Iterator const& begin,
+ srcIter(Iterator const& begin,
Accessor const& accessor,
const basegfx::B2IPoint& rPt)
{
@@ -79,7 +79,7 @@ namespace basebmp
template< class Iterator, class Accessor >
inline vigra::pair<Iterator,Accessor>
- destIter(Iterator const& begin,
+ destIter(Iterator const& begin,
Accessor const& accessor,
const basegfx::B2IPoint& rPt)
{
diff --git a/basebmp/inc/basebmp/truecolormaskaccessor.hxx b/basebmp/inc/basebmp/truecolormaskaccessor.hxx
index 79693a7b0ebb..efe80820fa3e 100644
--- a/basebmp/inc/basebmp/truecolormaskaccessor.hxx
+++ b/basebmp/inc/basebmp/truecolormaskaccessor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,15 +40,15 @@
namespace basebmp
{
-namespace
+namespace
{
- /// Shift left for positive shift value, and right otherwise
+ /// Shift left for positive shift value, and right otherwise
template< typename T > inline T shiftLeft( T v, int shift )
{
return shift > 0 ? v << shift : v >> (-shift);
}
- /// Shift right for positive shift value, and left otherwise
+ /// Shift right for positive shift value, and left otherwise
template< typename T > inline T shiftRight( T v, int shift )
{
return shift > 0 ? v >> shift : v << (-shift);
@@ -76,7 +76,7 @@ namespace
When true, the final pixel values will be byte-swapped before
passed to/from the iterator.
*/
-template< class Accessor,
+template< class Accessor,
typename ColorType,
int RedMask,
int GreenMask,
@@ -95,11 +95,11 @@ private:
template<class A, typename C, int R, int G, int B, bool S> friend class TrueColorMaskAccessor;
#endif
- Accessor maAccessor;
+ Accessor maAccessor;
public:
// calc corrective shifts for all three channels in advance
- enum {
+ enum {
red_shift = numberOfTrailingZeros<RedMask>::value,
green_shift = numberOfTrailingZeros<GreenMask>::value,
blue_shift = numberOfTrailingZeros<BlueMask>::value,
@@ -115,13 +115,13 @@ public:
maAccessor()
{}
- template< class A > explicit
+ template< class A > explicit
TrueColorMaskAccessor( TrueColorMaskAccessor< A,
ColorType,
RedMask,
GreenMask,
BlueMask,
- SwapBytes > const& rSrc ) :
+ SwapBytes > const& rSrc ) :
maAccessor( rSrc.maAccessor )
{}
@@ -144,16 +144,16 @@ public:
const unsigned_data_type green(v & GreenMask);
const unsigned_data_type blue (v & BlueMask);
- value_type res( (shiftRight(red,
+ value_type res( (shiftRight(red,
red_shift-8*sizeof(component_type)+red_bits)) |
(shiftRight(red,
red_shift-8*sizeof(component_type)+2*red_bits)),
-
+
(shiftRight(green,
green_shift-8*sizeof(component_type)+green_bits)) |
(shiftRight(green,
green_shift-8*sizeof(component_type)+2*green_bits)),
-
+
(shiftRight(blue,
blue_shift-8*sizeof(component_type)+blue_bits)) |
(shiftRight(blue,
@@ -167,7 +167,7 @@ public:
const unsigned_data_type green(v.getGreen());
const unsigned_data_type blue (v.getBlue());
- unsigned_data_type res(
+ unsigned_data_type res(
(shiftLeft(red,
red_shift-8*sizeof(component_type)+red_bits) & RedMask) |
(shiftLeft(green,
@@ -181,10 +181,10 @@ public:
// -------------------------------------------------------
template< class Iterator >
- value_type operator()(Iterator const& i) const
- {
- return toValue(
- unsigned_cast<data_type>( maAccessor(i)) );
+ value_type operator()(Iterator const& i) const
+ {
+ return toValue(
+ unsigned_cast<data_type>( maAccessor(i)) );
}
template< class Iterator, class Difference >
@@ -198,7 +198,7 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
+ {
maAccessor.set(
toPacked(
vigra::detail::RequiresExplicitCast<value_type>::cast(
@@ -209,10 +209,10 @@ public:
template< typename V, class Iterator, class Difference >
void set(V const& value, Iterator const& i, Difference const& diff) const
{
- maAccessor.set(
+ maAccessor.set(
toPacked(
vigra::detail::RequiresExplicitCast<value_type>::cast(
- value)),
+ value)),
i,
diff );
}
@@ -221,7 +221,7 @@ public:
//-----------------------------------------------------------------------------
/** Convert Color to packed true color value for TrueColorMaskAccessor
- */
+ */
template< class Accessor > struct ColorConvert
{
typename Accessor::data_type operator()( const Accessor& acc,
@@ -234,13 +234,13 @@ template< class Accessor > struct ColorConvert
//-----------------------------------------------------------------------------
// partial specialization for TrueColorMaskAccessor
-template< class Accessor,
+template< class Accessor,
typename ColorType,
int RedMask,
int GreenMask,
int BlueMask,
- bool SwapBytes > struct AccessorTraits<
- TrueColorMaskAccessor< Accessor,
+ bool SwapBytes > struct AccessorTraits<
+ TrueColorMaskAccessor< Accessor,
ColorType,
RedMask,
GreenMask,
@@ -248,7 +248,7 @@ template< class Accessor,
SwapBytes > >
{
/// value type of described accessor
- typedef typename TrueColorMaskAccessor< Accessor,
+ typedef typename TrueColorMaskAccessor< Accessor,
ColorType,
RedMask,
GreenMask,
@@ -256,7 +256,7 @@ template< class Accessor,
SwapBytes >::value_type value_type;
/// Retrieve stand-alone color lookup function for given Accessor type
- typedef ColorConvert< TrueColorMaskAccessor< Accessor,
+ typedef ColorConvert< TrueColorMaskAccessor< Accessor,
ColorType,
RedMask,
GreenMask,
@@ -278,7 +278,7 @@ template< class Accessor,
* want to wrap a masked_accessor with a TrueColorMaskAccessor,
* not the other way around.
*/
- template< class MaskAccessor,
+ template< class MaskAccessor,
class Iterator,
class MaskIterator > struct masked_accessor
{
diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx
index bf4cafd16cb2..2cb144717ca0 100644
--- a/basebmp/source/bitmapdevice.cxx
+++ b/basebmp/source/bitmapdevice.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -120,10 +120,10 @@ namespace
bool polarity,
typename MaskFunctorMode > struct masked_input_splitting_accessor
{
- typedef BinarySetterFunctionAccessorAdapter<
+ typedef BinarySetterFunctionAccessorAdapter<
DestAccessor,
- BinaryFunctorSplittingWrapper<
- typename outputMaskFunctorSelector<
+ BinaryFunctorSplittingWrapper<
+ typename outputMaskFunctorSelector<
typename JoinedAccessor::value_type::first_type,
typename JoinedAccessor::value_type::second_type,
polarity,
@@ -156,10 +156,10 @@ namespace
alpha masks. With those mask formats, clipping and alpha
blending is handled natively.
*/
- template< class DestIterator,
- class RawAccessor,
+ template< class DestIterator,
+ class RawAccessor,
class AccessorSelector,
- class Masks > class BitmapRenderer :
+ class Masks > class BitmapRenderer :
public BitmapDevice
{
public:
@@ -175,13 +175,13 @@ namespace
typedef typename Masks::alphamask_format_traits::raw_accessor_type alphamask_rawaccessor_type;
typedef typename Masks::alphamask_format_traits::accessor_selector alphamask_accessorselector_type;
- typedef typename AccessorSelector::template wrap_accessor<
+ typedef typename AccessorSelector::template wrap_accessor<
raw_accessor_type >::type dest_accessor_type;
typedef AccessorTraits< dest_accessor_type > accessor_traits;
- typedef CompositeIterator2D< dest_iterator_type,
+ typedef CompositeIterator2D< dest_iterator_type,
mask_iterator_type > composite_iterator_type;
- typedef CompositeIterator2D< vigra::Diff2D,
+ typedef CompositeIterator2D< vigra::Diff2D,
vigra::Diff2D > generic_composite_iterator_type;
typedef BitmapRenderer<mask_iterator_type,
@@ -203,22 +203,22 @@ namespace
typedef typename raw_accessor_traits::xor_accessor raw_xor_accessor_type;
typedef AccessorTraits<raw_xor_accessor_type> raw_xor_accessor_traits;
- typedef typename accessor_selector::template wrap_accessor<
+ typedef typename accessor_selector::template wrap_accessor<
raw_xor_accessor_type >::type xor_accessor_type;
typedef AccessorTraits<xor_accessor_type> xor_accessor_traits;
// -------------------------------------------------------
- typedef typename raw_accessor_traits::template masked_accessor<
+ typedef typename raw_accessor_traits::template masked_accessor<
mask_rawaccessor_type,
dest_iterator_type,
mask_iterator_type,
Masks::clipmask_polarity>::type raw_maskedaccessor_type;
- typedef typename accessor_selector::template wrap_accessor<
+ typedef typename accessor_selector::template wrap_accessor<
raw_maskedaccessor_type >::type masked_accessor_type;
typedef typename AccessorTraits<
raw_maskedaccessor_type>::xor_accessor raw_maskedxor_accessor_type;
- typedef typename accessor_selector::template wrap_accessor<
+ typedef typename accessor_selector::template wrap_accessor<
raw_maskedxor_accessor_type >::type masked_xoraccessor_type;
// -------------------------------------------------------
@@ -226,24 +226,24 @@ namespace
// ((iter,mask),mask) special case (e.g. for clipped
// drawMaskedColor())
typedef AccessorTraits< raw_maskedaccessor_type > raw_maskedaccessor_traits;
- typedef typename raw_maskedaccessor_traits::template masked_accessor<
+ typedef typename raw_maskedaccessor_traits::template masked_accessor<
mask_rawaccessor_type,
composite_iterator_type,
mask_iterator_type,
Masks::clipmask_polarity>::type raw_maskedmask_accessor_type;
- typedef CompositeIterator2D<
+ typedef CompositeIterator2D<
composite_iterator_type,
mask_iterator_type> composite_composite_mask_iterator_type;
-
+
// -------------------------------------------------------
- typedef ConstantColorBlendSetterAccessorAdapter<
+ typedef ConstantColorBlendSetterAccessorAdapter<
dest_accessor_type,
typename alphamask_rawaccessor_type::value_type,
Masks::alphamask_polarity> colorblend_accessor_type;
typedef AccessorTraits<colorblend_accessor_type> colorblend_accessor_traits;
- typedef typename colorblend_accessor_traits::template masked_accessor<
+ typedef typename colorblend_accessor_traits::template masked_accessor<
mask_rawaccessor_type,
dest_iterator_type,
mask_iterator_type,
@@ -251,12 +251,12 @@ namespace
// -------------------------------------------------------
- typedef ConstantColorBlendSetterAccessorAdapter<
+ typedef ConstantColorBlendSetterAccessorAdapter<
dest_accessor_type,
Color,
Masks::alphamask_polarity> colorblend_generic_accessor_type;
typedef AccessorTraits<colorblend_generic_accessor_type> colorblend_generic_accessor_traits;
- typedef typename colorblend_generic_accessor_traits::template masked_accessor<
+ typedef typename colorblend_generic_accessor_traits::template masked_accessor<
mask_rawaccessor_type,
dest_iterator_type,
mask_iterator_type,
@@ -273,7 +273,7 @@ namespace
dest_iterator_type maBegin;
typename accessor_traits::color_lookup maColorLookup;
- to_uint32_functor maToUInt32Converter;
+ to_uint32_functor maToUInt32Converter;
dest_accessor_type maAccessor;
colorblend_accessor_type maColorBlendAccessor;
colorblend_generic_accessor_type maGenericColorBlendAccessor;
@@ -294,12 +294,12 @@ namespace
sal_Int32 nScanlineFormat,
sal_Int32 nScanlineStride,
sal_uInt8* pFirstScanline,
- dest_iterator_type begin,
+ dest_iterator_type begin,
raw_accessor_type rawAccessor,
dest_accessor_type accessor,
const RawMemorySharedArray& rMem,
const PaletteMemorySharedVector& rPalette ) :
- BitmapDevice( rBounds, nScanlineFormat,
+ BitmapDevice( rBounds, nScanlineFormat,
nScanlineStride, pFirstScanline, rMem, rPalette ),
maBegin( begin ),
maColorLookup(),
@@ -369,30 +369,30 @@ namespace
{
fillImage(destIterRange(maBegin,
maRawAccessor,
- rBounds),
- maColorLookup(
+ rBounds),
+ maColorLookup(
maAccessor,
fillColor) );
}
- virtual void setPixel_i( const basegfx::B2IPoint& rPt,
- Color pixelColor,
+ virtual void setPixel_i( const basegfx::B2IPoint& rPt,
+ Color pixelColor,
DrawMode drawMode )
{
- const DestIterator pixel( maBegin +
+ const DestIterator pixel( maBegin +
vigra::Diff2D(rPt.getX(),
rPt.getY()) );
if( drawMode == DrawMode_XOR )
- maXorAccessor.set( pixelColor,
+ maXorAccessor.set( pixelColor,
pixel );
else
- maAccessor.set( pixelColor,
+ maAccessor.set( pixelColor,
pixel );
}
- virtual void setPixel_i( const basegfx::B2IPoint& rPt,
- Color pixelColor,
- DrawMode drawMode,
+ virtual void setPixel_i( const basegfx::B2IPoint& rPt,
+ Color pixelColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
boost::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rClip) );
@@ -401,7 +401,7 @@ namespace
const vigra::Diff2D offset(rPt.getX(),
rPt.getY());
- const composite_iterator_type aIter(
+ const composite_iterator_type aIter(
maBegin + offset,
pMask->maBegin + offset );
@@ -415,7 +415,7 @@ namespace
virtual Color getPixel_i(const basegfx::B2IPoint& rPt )
{
- const DestIterator pixel( maBegin +
+ const DestIterator pixel( maBegin +
vigra::Diff2D(rPt.getX(),
rPt.getY()) );
return maAccessor(pixel);
@@ -423,7 +423,7 @@ namespace
virtual sal_uInt32 getPixelData_i( const basegfx::B2IPoint& rPt )
{
- const DestIterator pixel( maBegin +
+ const DestIterator pixel( maBegin +
vigra::Diff2D(rPt.getX(),
rPt.getY()) );
return maToUInt32Converter(maRawAccessor(pixel));
@@ -437,7 +437,7 @@ namespace
const Iterator& begin,
const RawAcc& rawAcc )
{
- renderClippedLine( rPt1,
+ renderClippedLine( rPt1,
rPt2,
rBounds,
col,
@@ -460,15 +460,15 @@ namespace
begin,
rawAcc );
}
-
+
template< typename Iterator, typename RawAcc, typename XorAcc >
void implDrawLine( const basegfx::B2IPoint& rPt1,
const basegfx::B2IPoint& rPt2,
const basegfx::B2IRange& rBounds,
Color col,
- const Iterator& begin,
+ const Iterator& begin,
const RawAcc& rawAcc,
- const XorAcc& xorAcc,
+ const XorAcc& xorAcc,
DrawMode drawMode )
{
if( drawMode == DrawMode_XOR )
@@ -479,10 +479,10 @@ namespace
begin, maAccessor, rawAcc );
}
- virtual void drawLine_i(const basegfx::B2IPoint& rPt1,
- const basegfx::B2IPoint& rPt2,
+ virtual void drawLine_i(const basegfx::B2IPoint& rPt1,
+ const basegfx::B2IPoint& rPt2,
const basegfx::B2IRange& rBounds,
- Color lineColor,
+ Color lineColor,
DrawMode drawMode )
{
implDrawLine(rPt1,rPt2,rBounds,lineColor,
@@ -495,15 +495,15 @@ namespace
boost::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rClip) );
OSL_ASSERT( pMask );
- return composite_iterator_type( maBegin,
+ return composite_iterator_type( maBegin,
pMask->maBegin );
}
- virtual void drawLine_i(const basegfx::B2IPoint& rPt1,
- const basegfx::B2IPoint& rPt2,
+ virtual void drawLine_i(const basegfx::B2IPoint& rPt1,
+ const basegfx::B2IPoint& rPt2,
const basegfx::B2IRange& rBounds,
- Color lineColor,
- DrawMode drawMode,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
implDrawLine(rPt1,rPt2,rBounds,lineColor,
@@ -513,72 +513,72 @@ namespace
}
template< typename Iterator, typename RawAcc >
- void implDrawPolygon( const basegfx::B2DPolygon& rPoly,
+ void implDrawPolygon( const basegfx::B2DPolygon& rPoly,
const basegfx::B2IRange& rBounds,
Color col,
- const Iterator& begin,
+ const Iterator& begin,
const RawAcc& acc )
{
basegfx::B2DPolygon aPoly( rPoly );
if( rPoly.areControlPointsUsed() )
aPoly = basegfx::tools::adaptiveSubdivideByCount( rPoly );
- const typename dest_iterator_type::value_type colorIndex( maColorLookup(
+ const typename dest_iterator_type::value_type colorIndex( maColorLookup(
maAccessor,
col));
const sal_uInt32 nVertices( aPoly.count() );
for( sal_uInt32 i=1; i<nVertices; ++i )
- implRenderLine2( basegfx::fround(aPoly.getB2DPoint(i-1)),
- basegfx::fround(aPoly.getB2DPoint(i)),
+ implRenderLine2( basegfx::fround(aPoly.getB2DPoint(i-1)),
+ basegfx::fround(aPoly.getB2DPoint(i)),
rBounds,
colorIndex,
begin,
acc );
if( nVertices > 1 && aPoly.isClosed() )
- implRenderLine2( basegfx::fround(aPoly.getB2DPoint(nVertices-1)),
- basegfx::fround(aPoly.getB2DPoint(0)),
+ implRenderLine2( basegfx::fround(aPoly.getB2DPoint(nVertices-1)),
+ basegfx::fround(aPoly.getB2DPoint(0)),
rBounds,
colorIndex,
begin,
acc );
}
- virtual void drawPolygon_i(const basegfx::B2DPolygon& rPoly,
+ virtual void drawPolygon_i(const basegfx::B2DPolygon& rPoly,
const basegfx::B2IRange& rBounds,
- Color lineColor,
+ Color lineColor,
DrawMode drawMode )
{
if( drawMode == DrawMode_XOR )
- implDrawPolygon( rPoly, rBounds, lineColor,
- maBegin,
+ implDrawPolygon( rPoly, rBounds, lineColor,
+ maBegin,
maRawXorAccessor );
else
- implDrawPolygon( rPoly, rBounds, lineColor,
- maBegin,
+ implDrawPolygon( rPoly, rBounds, lineColor,
+ maBegin,
maRawAccessor );
}
- virtual void drawPolygon_i(const basegfx::B2DPolygon& rPoly,
+ virtual void drawPolygon_i(const basegfx::B2DPolygon& rPoly,
const basegfx::B2IRange& rBounds,
- Color lineColor,
- DrawMode drawMode,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( drawMode == DrawMode_XOR )
- implDrawPolygon( rPoly, rBounds, lineColor,
+ implDrawPolygon( rPoly, rBounds, lineColor,
getMaskedIter(rClip),
maRawMaskedXorAccessor );
else
- implDrawPolygon( rPoly, rBounds, lineColor,
+ implDrawPolygon( rPoly, rBounds, lineColor,
getMaskedIter(rClip),
maRawMaskedAccessor );
}
template< typename Iterator, typename RawAcc >
- void implFillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
+ void implFillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
Color col,
- const Iterator& begin,
+ const Iterator& begin,
const RawAcc& acc,
const basegfx::B2IRange& rBounds )
{
@@ -586,7 +586,7 @@ namespace
if( rPoly.areControlPointsUsed() )
aPoly = basegfx::tools::adaptiveSubdivideByCount( rPoly );
- renderClippedPolyPolygon( begin,
+ renderClippedPolyPolygon( begin,
acc,
maColorLookup( maAccessor,
col),
@@ -595,36 +595,36 @@ namespace
basegfx::FillRule_EVEN_ODD );
}
- virtual void fillPolyPolygon_i(const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
+ virtual void fillPolyPolygon_i(const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
DrawMode drawMode,
const basegfx::B2IRange& rBounds )
{
if( drawMode == DrawMode_XOR )
- implFillPolyPolygon( rPoly, fillColor,
+ implFillPolyPolygon( rPoly, fillColor,
maBegin,
maRawXorAccessor,
rBounds );
else
- implFillPolyPolygon( rPoly, fillColor,
+ implFillPolyPolygon( rPoly, fillColor,
maBegin,
maRawAccessor,
rBounds );
}
- virtual void fillPolyPolygon_i(const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
+ virtual void fillPolyPolygon_i(const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
DrawMode drawMode,
- const basegfx::B2IRange& rBounds,
+ const basegfx::B2IRange& rBounds,
const BitmapDeviceSharedPtr& rClip )
{
if( drawMode == DrawMode_XOR )
- implFillPolyPolygon( rPoly, fillColor,
+ implFillPolyPolygon( rPoly, fillColor,
getMaskedIter(rClip),
maRawMaskedXorAccessor,
rBounds );
else
- implFillPolyPolygon( rPoly, fillColor,
+ implFillPolyPolygon( rPoly, fillColor,
getMaskedIter(rClip),
maRawMaskedAccessor,
rBounds );
@@ -658,7 +658,7 @@ namespace
const Acc& acc)
{
GenericColorImageAccessor aSrcAcc( rSrcBitmap );
-
+
scaleImage(
srcIterRange(vigra::Diff2D(),
aSrcAcc,
@@ -670,7 +670,7 @@ namespace
virtual void drawBitmap_i(const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode )
{
if( isCompatibleBitmap( rSrcBitmap ) )
@@ -699,8 +699,8 @@ namespace
virtual void drawBitmap_i(const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( isCompatibleBitmap( rSrcBitmap ) )
@@ -752,12 +752,12 @@ namespace
maBegin + vigra::Diff2D(rDstPoint.getX(),
rDstPoint.getY()),
pMask->maBegin + topLeft(rSrcRect) );
-
+
fillImage(aBegin,
aBegin + vigra::Diff2D(rSrcRect.getWidth(),
- rSrcRect.getHeight()),
+ rSrcRect.getHeight()),
maRawMaskedAccessor,
- maColorLookup(
+ maColorLookup(
maAccessor,
aSrcColor) );
}
@@ -778,7 +778,7 @@ namespace
virtual void drawMaskedColor_i(Color aSrcColor,
const BitmapDeviceSharedPtr& rAlphaMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IPoint& rDstPoint,
+ const basegfx::B2IPoint& rDstPoint,
const BitmapDeviceSharedPtr& rClip )
{
boost::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rAlphaMask) );
@@ -787,7 +787,7 @@ namespace
if( pAlpha )
{
const composite_iterator_type aBegin( getMaskedIter(rClip) );
- maMaskedColorBlendAccessor.get1stWrappedAccessor().setColor(
+ maMaskedColorBlendAccessor.get1stWrappedAccessor().setColor(
aSrcColor );
vigra::copyImage( srcIterRange(pAlpha->maBegin,
@@ -812,12 +812,12 @@ namespace
pMask->maBegin + topLeft(rSrcRect)),
pClipMask->maBegin + vigra::Diff2D(rDstPoint.getX(),
rDstPoint.getY()) );
-
+
fillImage(aBegin,
aBegin + vigra::Diff2D(rSrcRect.getWidth(),
- rSrcRect.getHeight()),
+ rSrcRect.getHeight()),
maRawMaskedMaskAccessor,
- maColorLookup(
+ maColorLookup(
maAccessor,
aSrcColor) );
}
@@ -825,7 +825,7 @@ namespace
{
GenericColorImageAccessor aSrcAcc( rAlphaMask );
const composite_iterator_type aBegin( getMaskedIter(rClip) );
- maGenericMaskedColorBlendAccessor.get1stWrappedAccessor().setColor(
+ maGenericMaskedColorBlendAccessor.get1stWrappedAccessor().setColor(
aSrcColor );
vigra::copyImage( srcIterRange(vigra::Diff2D(),
@@ -903,7 +903,7 @@ namespace
virtual void drawMaskedBitmap_i(const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode )
{
if( isCompatibleClipMask(rMask) &&
@@ -938,8 +938,8 @@ namespace
virtual void drawMaskedBitmap_i(const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( isCompatibleClipMask(rMask) &&
@@ -975,7 +975,7 @@ namespace
struct ImplBitmapDevice
{
- /** Bitmap memory plus deleter.
+ /** Bitmap memory plus deleter.
Always points to the start of the mem
*/
@@ -984,7 +984,7 @@ struct ImplBitmapDevice
/// Palette memory plus deleter (might be NULL)
PaletteMemorySharedVector mpPalette;
- /** Bounds of the device.
+ /** Bounds of the device.
maBounds.getWidth()/getHeight() yield the true size of the
device (i.e. the rectangle given by maBounds covers the device
@@ -993,7 +993,7 @@ struct ImplBitmapDevice
*/
basegfx::B2IRange maBounds;
- /** Bounds of the device.
+ /** Bounds of the device.
maBounds.getWidth()/getHeight() yield the true size of the
device minus 1 (i.e. the rectangle given by maBounds covers
@@ -1010,7 +1010,7 @@ struct ImplBitmapDevice
/// Scanline stride. Negative for bottom-to-top formats
sal_Int32 mnScanlineStride;
-
+
/// raw ptr to 0th scanline. used for cloning a generic renderer
sal_uInt8* mpFirstScanline;
@@ -1051,7 +1051,7 @@ BitmapDevice::BitmapDevice( const basegfx::B2IRange& rBounds,
mpImpl->mnScanlineStride = nScanlineStride;
mpImpl->mpFirstScanline = pFirstScanline;
}
-
+
BitmapDevice::~BitmapDevice()
{
// outline, because of internal ImplBitmapDevice
@@ -1059,7 +1059,7 @@ BitmapDevice::~BitmapDevice()
basegfx::B2IVector BitmapDevice::getSize() const
{
-
+
return basegfx::B2IVector(
mpImpl->maBounds.getMaxX() - mpImpl->maBounds.getMinX(),
mpImpl->maBounds.getMaxY() - mpImpl->maBounds.getMinY() );
@@ -1077,7 +1077,7 @@ sal_Int32 BitmapDevice::getScanlineFormat() const
sal_Int32 BitmapDevice::getScanlineStride() const
{
- return mpImpl->mnScanlineStride < 0 ?
+ return mpImpl->mnScanlineStride < 0 ?
-mpImpl->mnScanlineStride : mpImpl->mnScanlineStride;
}
@@ -1101,17 +1101,17 @@ void BitmapDevice::clear( Color fillColor )
clear_i( fillColor, mpImpl->maBounds );
}
-void BitmapDevice::setPixel( const basegfx::B2IPoint& rPt,
- Color lineColor,
+void BitmapDevice::setPixel( const basegfx::B2IPoint& rPt,
+ Color lineColor,
DrawMode drawMode )
{
if( mpImpl->maLineClipRect.isInside(rPt) )
setPixel_i(rPt,lineColor,drawMode);
}
-void BitmapDevice::setPixel( const basegfx::B2IPoint& rPt,
- Color lineColor,
- DrawMode drawMode,
+void BitmapDevice::setPixel( const basegfx::B2IPoint& rPt,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( !rClip )
@@ -1145,22 +1145,22 @@ sal_uInt32 BitmapDevice::getPixelData( const basegfx::B2IPoint& rPt )
return 0;
}
-void BitmapDevice::drawLine( const basegfx::B2IPoint& rPt1,
- const basegfx::B2IPoint& rPt2,
- Color lineColor,
+void BitmapDevice::drawLine( const basegfx::B2IPoint& rPt1,
+ const basegfx::B2IPoint& rPt2,
+ Color lineColor,
DrawMode drawMode )
{
- drawLine_i( rPt1,
+ drawLine_i( rPt1,
rPt2,
mpImpl->maLineClipRect,
lineColor,
drawMode );
}
-void BitmapDevice::drawLine( const basegfx::B2IPoint& rPt1,
- const basegfx::B2IPoint& rPt2,
- Color lineColor,
- DrawMode drawMode,
+void BitmapDevice::drawLine( const basegfx::B2IPoint& rPt1,
+ const basegfx::B2IPoint& rPt2,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( !rClip )
@@ -1170,19 +1170,19 @@ void BitmapDevice::drawLine( const basegfx::B2IPoint& rPt1,
}
if( isCompatibleClipMask( rClip ) )
- drawLine_i( rPt1,
+ drawLine_i( rPt1,
rPt2,
mpImpl->maLineClipRect,
lineColor,
drawMode,
rClip );
else
- getGenericRenderer()->drawLine( rPt1, rPt2, lineColor,
+ getGenericRenderer()->drawLine( rPt1, rPt2, lineColor,
drawMode, rClip );
}
-void BitmapDevice::drawPolygon( const basegfx::B2DPolygon& rPoly,
- Color lineColor,
+void BitmapDevice::drawPolygon( const basegfx::B2DPolygon& rPoly,
+ Color lineColor,
DrawMode drawMode )
{
const sal_uInt32 numVertices( rPoly.count() );
@@ -1192,9 +1192,9 @@ void BitmapDevice::drawPolygon( const basegfx::B2DPolygon& rPoly,
lineColor, drawMode );
}
-void BitmapDevice::drawPolygon( const basegfx::B2DPolygon& rPoly,
- Color lineColor,
- DrawMode drawMode,
+void BitmapDevice::drawPolygon( const basegfx::B2DPolygon& rPoly,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( !rClip )
@@ -1211,21 +1211,21 @@ void BitmapDevice::drawPolygon( const basegfx::B2DPolygon& rPoly,
mpImpl->maLineClipRect,
lineColor, drawMode, rClip );
else
- getGenericRenderer()->drawPolygon( rPoly, lineColor,
+ getGenericRenderer()->drawPolygon( rPoly, lineColor,
drawMode, rClip );
}
}
-void BitmapDevice::fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
+void BitmapDevice::fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
DrawMode drawMode )
{
fillPolyPolygon_i( rPoly, fillColor, drawMode, mpImpl->maBounds );
}
-void BitmapDevice::fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
- DrawMode drawMode,
+void BitmapDevice::fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( !rClip )
@@ -1237,7 +1237,7 @@ void BitmapDevice::fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
if( isCompatibleClipMask( rClip ) )
fillPolyPolygon_i( rPoly, fillColor, drawMode, mpImpl->maBounds, rClip );
else
- getGenericRenderer()->fillPolyPolygon( rPoly, fillColor,
+ getGenericRenderer()->fillPolyPolygon( rPoly, fillColor,
drawMode, rClip );
}
@@ -1271,7 +1271,7 @@ namespace
const ::basegfx::B2IRange& rSourceBounds,
const ::basegfx::B2IRange& rDestBounds )
{
- const ::basegfx::B2IPoint aSourceTopLeft(
+ const ::basegfx::B2IPoint aSourceTopLeft(
io_rSourceArea.getMinimum() );
::basegfx::B2IRange aLocalSourceArea( io_rSourceArea );
@@ -1281,28 +1281,28 @@ namespace
if( aLocalSourceArea.isEmpty() )
return false;
-
+
// calc relative new source area points (relative to orig
// source area)
- const ::basegfx::B2IVector aUpperLeftOffset(
+ const ::basegfx::B2IVector aUpperLeftOffset(
aLocalSourceArea.getMinimum()-aSourceTopLeft );
- const ::basegfx::B2IVector aLowerRightOffset(
+ const ::basegfx::B2IVector aLowerRightOffset(
aLocalSourceArea.getMaximum()-aSourceTopLeft );
::basegfx::B2IRange aLocalDestArea( io_rDestPoint + aUpperLeftOffset,
io_rDestPoint + aLowerRightOffset );
-
+
// clip dest area (which must be inside rDestBounds)
aLocalDestArea.intersect( rDestBounds );
-
+
if( aLocalDestArea.isEmpty() )
return false;
// calc relative new dest area points (relative to orig
// source area)
- const ::basegfx::B2IVector aDestUpperLeftOffset(
+ const ::basegfx::B2IVector aDestUpperLeftOffset(
aLocalDestArea.getMinimum()-io_rDestPoint );
- const ::basegfx::B2IVector aDestLowerRightOffset(
+ const ::basegfx::B2IVector aDestLowerRightOffset(
aLocalDestArea.getMaximum()-io_rDestPoint );
io_rSourceArea = ::basegfx::B2IRange( aSourceTopLeft + aDestUpperLeftOffset,
@@ -1324,9 +1324,9 @@ namespace
const double nScaleY( io_rDestArea.getHeight() / (double)io_rSourceArea.getHeight() );
// extract range origins
- const basegfx::B2IPoint aDestTopLeft(
+ const basegfx::B2IPoint aDestTopLeft(
io_rDestArea.getMinimum() );
- const ::basegfx::B2IPoint aSourceTopLeft(
+ const ::basegfx::B2IPoint aSourceTopLeft(
io_rSourceArea.getMinimum() );
::basegfx::B2IRange aLocalSourceArea( io_rSourceArea );
@@ -1336,30 +1336,30 @@ namespace
if( aLocalSourceArea.isEmpty() )
return false;
-
+
// calc relative new source area points (relative to orig
// source area)
- const ::basegfx::B2IVector aUpperLeftOffset(
+ const ::basegfx::B2IVector aUpperLeftOffset(
aLocalSourceArea.getMinimum()-aSourceTopLeft );
- const ::basegfx::B2IVector aLowerRightOffset(
+ const ::basegfx::B2IVector aLowerRightOffset(
aLocalSourceArea.getMaximum()-aSourceTopLeft );
::basegfx::B2IRange aLocalDestArea( basegfx::fround(aDestTopLeft.getX() + nScaleX*aUpperLeftOffset.getX()),
basegfx::fround(aDestTopLeft.getY() + nScaleY*aUpperLeftOffset.getY()),
basegfx::fround(aDestTopLeft.getX() + nScaleX*aLowerRightOffset.getX()),
basegfx::fround(aDestTopLeft.getY() + nScaleY*aLowerRightOffset.getY()) );
-
+
// clip dest area (which must be inside rDestBounds)
aLocalDestArea.intersect( rDestBounds );
-
+
if( aLocalDestArea.isEmpty() )
return false;
// calc relative new dest area points (relative to orig
// source area)
- const ::basegfx::B2IVector aDestUpperLeftOffset(
+ const ::basegfx::B2IVector aDestUpperLeftOffset(
aLocalDestArea.getMinimum()-aDestTopLeft );
- const ::basegfx::B2IVector aDestLowerRightOffset(
+ const ::basegfx::B2IVector aDestLowerRightOffset(
aLocalDestArea.getMaximum()-aDestTopLeft );
io_rSourceArea = ::basegfx::B2IRange( basegfx::fround(aSourceTopLeft.getX() + aDestUpperLeftOffset.getX()/nScaleX),
@@ -1370,7 +1370,7 @@ namespace
// final source area clip (chopping round-offs)
io_rSourceArea.intersect( rSourceBounds );
-
+
if( io_rSourceArea.isEmpty() )
return false;
@@ -1381,7 +1381,7 @@ namespace
void BitmapDevice::drawBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode )
{
const basegfx::B2IVector& rSrcSize( rSrcBitmap->getSize() );
@@ -1403,8 +1403,8 @@ void BitmapDevice::drawBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
void BitmapDevice::drawBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( !rClip )
@@ -1432,7 +1432,7 @@ void BitmapDevice::drawBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
}
else
{
- getGenericRenderer()->drawBitmap( rSrcBitmap, rSrcRect,
+ getGenericRenderer()->drawBitmap( rSrcBitmap, rSrcRect,
rDstRect, drawMode, rClip );
}
}
@@ -1463,7 +1463,7 @@ void BitmapDevice::drawMaskedColor( Color aSrcColor,
const basegfx::B2ITuple aSize( aSrcRange.getWidth(),
aSrcRange.getHeight() );
- BitmapDeviceSharedPtr pAlphaCopy(
+ BitmapDeviceSharedPtr pAlphaCopy(
cloneBitmapDevice( aSize,
shared_from_this()) );
basegfx::B2ITuple aGcc3WorkaroundTemporary;
@@ -1485,7 +1485,7 @@ void BitmapDevice::drawMaskedColor( Color aSrcColor,
void BitmapDevice::drawMaskedColor( Color aSrcColor,
const BitmapDeviceSharedPtr& rAlphaMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IPoint& rDstPoint,
+ const basegfx::B2IPoint& rDstPoint,
const BitmapDeviceSharedPtr& rClip )
{
if( !rClip )
@@ -1516,7 +1516,7 @@ void BitmapDevice::drawMaskedColor( Color aSrcColor,
const basegfx::B2ITuple aSize( aSrcRange.getWidth(),
aSrcRange.getHeight() );
- BitmapDeviceSharedPtr pAlphaCopy(
+ BitmapDeviceSharedPtr pAlphaCopy(
cloneBitmapDevice( aSize,
shared_from_this()) );
basegfx::B2ITuple aGcc3WorkaroundTemporary;
@@ -1544,7 +1544,7 @@ void BitmapDevice::drawMaskedColor( Color aSrcColor,
void BitmapDevice::drawMaskedBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode )
{
OSL_ASSERT( rMask->getSize() == rSrcBitmap->getSize() );
@@ -1569,8 +1569,8 @@ void BitmapDevice::drawMaskedBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
void BitmapDevice::drawMaskedBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( !rClip )
@@ -1600,7 +1600,7 @@ void BitmapDevice::drawMaskedBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
}
else
{
- getGenericRenderer()->drawMaskedBitmap( rSrcBitmap, rMask, rSrcRect,
+ getGenericRenderer()->drawMaskedBitmap( rSrcBitmap, rMask, rSrcRect,
rDstRect, drawMode, rClip );
}
}
@@ -1664,7 +1664,7 @@ BitmapDeviceSharedPtr createRenderer(
typename FormatTraits::accessor_selector,
MaskTraits > Renderer;
- return BitmapDeviceSharedPtr(
+ return BitmapDeviceSharedPtr(
new Renderer( rBounds,
nScanlineFormat,
nScanlineStride,
@@ -1680,7 +1680,7 @@ BitmapDeviceSharedPtr createRenderer(
}
/// Create standard grey level palette
-PaletteMemorySharedVector createStandardPalette(
+PaletteMemorySharedVector createStandardPalette(
const PaletteMemorySharedVector& pPal,
sal_Int32 nNumEntries )
{
@@ -1689,14 +1689,14 @@ PaletteMemorySharedVector createStandardPalette(
boost::shared_ptr< std::vector<Color> > pLocalPal(
new std::vector<Color>(nNumEntries) );
-
+
const sal_Int32 nIncrement( 0x00FFFFFF/nNumEntries );
--nNumEntries;
for( sal_Int32 i=0, c=0; i<nNumEntries; ++i,c+=nIncrement )
pLocalPal->at(i) = Color(0xFF000000 | c);
-
+
pLocalPal->at(nNumEntries) = Color(0xFFFFFFFF);
-
+
return pLocalPal;
}
@@ -1742,7 +1742,7 @@ BitmapDeviceSharedPtr createRenderer(
nScanlineStride,
pFirstScanline,
typename FormatTraits::raw_accessor_type(),
- typename FormatTraits::accessor_selector::template
+ typename FormatTraits::accessor_selector::template
wrap_accessor<
typename FormatTraits::raw_accessor_type>::type(
&pPal->at(0),
@@ -1786,27 +1786,27 @@ BitmapDeviceSharedPtr createBitmapDeviceImpl( const basegfx::B2IVector& r
PaletteMemorySharedVector pPal,
const basegfx::B2IRange* pSubset )
{
- if( nScanlineFormat <= Format::NONE ||
+ if( nScanlineFormat <= Format::NONE ||
nScanlineFormat > Format::MAX )
return BitmapDeviceSharedPtr();
- static const sal_uInt8 bitsPerPixel[] =
+ static const sal_uInt8 bitsPerPixel[] =
{
- 0, // NONE
- 1, // ONE_BIT_MSB_GREY
- 1, // ONE_BIT_LSB_GREY
- 1, // ONE_BIT_MSB_PAL
- 1, // ONE_BIT_LSB_PAL
- 4, // FOUR_BIT_MSB_GREY
- 4, // FOUR_BIT_LSB_GREY
- 4, // FOUR_BIT_MSB_PAL
- 4, // FOUR_BIT_LSB_PAL
- 8, // EIGHT_BIT_PAL
- 8, // EIGHT_BIT_GREY
- 16, // SIXTEEN_BIT_LSB_TC_MASK
- 16, // SIXTEEN_BIT_MSB_TC_MASK
- 24, // TWENTYFOUR_BIT_TC_MASK
- 32, // THIRTYTWO_BIT_TC_MASK
+ 0, // NONE
+ 1, // ONE_BIT_MSB_GREY
+ 1, // ONE_BIT_LSB_GREY
+ 1, // ONE_BIT_MSB_PAL
+ 1, // ONE_BIT_LSB_PAL
+ 4, // FOUR_BIT_MSB_GREY
+ 4, // FOUR_BIT_LSB_GREY
+ 4, // FOUR_BIT_MSB_PAL
+ 4, // FOUR_BIT_LSB_PAL
+ 8, // EIGHT_BIT_PAL
+ 8, // EIGHT_BIT_GREY
+ 16, // SIXTEEN_BIT_LSB_TC_MASK
+ 16, // SIXTEEN_BIT_MSB_TC_MASK
+ 24, // TWENTYFOUR_BIT_TC_MASK
+ 32, // THIRTYTWO_BIT_TC_MASK
32, // THIRTYTWO_BIT_TC_MASK_ARGB
};
@@ -1825,7 +1825,7 @@ BitmapDeviceSharedPtr createBitmapDeviceImpl( const basegfx::B2IVector& r
// factor in bottom-up scanline order case
nScanlineStride *= bTopDown ? 1 : -1;
- const std::size_t nMemSize(
+ const std::size_t nMemSize(
(nScanlineStride < 0 ? -nScanlineStride : nScanlineStride)*rSize.getY() );
if( !pMem )
@@ -1836,7 +1836,7 @@ BitmapDeviceSharedPtr createBitmapDeviceImpl( const basegfx::B2IVector& r
rtl_zeroMemory(pMem.get(),nMemSize);
}
- sal_uInt8* pFirstScanline = nScanlineStride < 0 ?
+ sal_uInt8* pFirstScanline = nScanlineStride < 0 ?
pMem.get() + nMemSize + nScanlineStride : pMem.get();
// shrink render area to given subset, if given
@@ -1959,9 +1959,9 @@ BitmapDeviceSharedPtr createBitmapDevice( const basegfx::B2IVector& rSize,
bool bTopDown,
sal_Int32 nScanlineFormat )
{
- return createBitmapDeviceImpl( rSize,
- bTopDown,
- nScanlineFormat,
+ return createBitmapDeviceImpl( rSize,
+ bTopDown,
+ nScanlineFormat,
boost::shared_array< sal_uInt8 >(),
PaletteMemorySharedVector(),
NULL );
@@ -1972,9 +1972,9 @@ BitmapDeviceSharedPtr createBitmapDevice( const basegfx::B2IVector& rSize
sal_Int32 nScanlineFormat,
const PaletteMemorySharedVector& rPalette )
{
- return createBitmapDeviceImpl( rSize,
- bTopDown,
- nScanlineFormat,
+ return createBitmapDeviceImpl( rSize,
+ bTopDown,
+ nScanlineFormat,
boost::shared_array< sal_uInt8 >(),
rPalette,
NULL );
@@ -1986,9 +1986,9 @@ BitmapDeviceSharedPtr createBitmapDevice( const basegfx::B2IVector& rSize
const RawMemorySharedArray& rMem,
const PaletteMemorySharedVector& rPalette )
{
- return createBitmapDeviceImpl( rSize,
- bTopDown,
- nScanlineFormat,
+ return createBitmapDeviceImpl( rSize,
+ bTopDown,
+ nScanlineFormat,
rMem,
rPalette,
NULL );
@@ -1998,8 +1998,8 @@ BitmapDeviceSharedPtr subsetBitmapDevice( const BitmapDeviceSharedPtr& rProt
const basegfx::B2IRange& rSubset )
{
return createBitmapDeviceImpl( rProto->getSize(),
- rProto->isTopDown(),
- rProto->getScanlineFormat(),
+ rProto->isTopDown(),
+ rProto->getScanlineFormat(),
rProto->getBuffer(),
rProto->getPalette(),
&rSubset );
@@ -2008,9 +2008,9 @@ BitmapDeviceSharedPtr subsetBitmapDevice( const BitmapDeviceSharedPtr& rProt
BitmapDeviceSharedPtr cloneBitmapDevice( const basegfx::B2IVector& rSize,
const BitmapDeviceSharedPtr& rProto )
{
- return createBitmapDeviceImpl( rSize,
- rProto->isTopDown(),
- rProto->getScanlineFormat(),
+ return createBitmapDeviceImpl( rSize,
+ rProto->isTopDown(),
+ rProto->getScanlineFormat(),
boost::shared_array< sal_uInt8 >(),
rProto->getPalette(),
NULL );
diff --git a/basebmp/source/debug.cxx b/basebmp/source/debug.cxx
index 4e7abb0d613b..37630de1b5b8 100644
--- a/basebmp/source/debug.cxx
+++ b/basebmp/source/debug.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -87,7 +87,7 @@ namespace basebmp
const bool bTopDown( rDevice->isTopDown() );
const sal_Int32 nScanlineFormat( rDevice->getScanlineFormat() );
- rOutputStream
+ rOutputStream
<< "/* basebmp::BitmapDevice content dump */" << std::endl
<< "/* Width = " << aSize.getX() << " */" << std::endl
<< "/* Height = " << aSize.getY() << " */" << std::endl
@@ -99,7 +99,7 @@ namespace basebmp
rOutputStream << std::hex;
for( int y=0; y<aSize.getY(); ++y )
{
- for( int x=0; x<aSize.getX(); ++x )
+ for( int x=0; x<aSize.getX(); ++x )
rOutputStream << std::setw(8) << (sal_uInt32)rDevice->getPixel( basegfx::B2IPoint(x,y) ).toInt32() << " ";
rOutputStream << std::endl;
}
diff --git a/basebmp/source/intconversion.hxx b/basebmp/source/intconversion.hxx
index d18a88cfe912..966f1d3d7583 100644
--- a/basebmp/source/intconversion.hxx
+++ b/basebmp/source/intconversion.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@ namespace basebmp
template< class RgbVal > struct UInt32FromRgbValue
{
sal_uInt32 operator()( RgbVal const& c ) const
- {
+ {
return (c[0] << 16) | (c[1] << 8) | c[2];
}
};
@@ -50,7 +50,7 @@ namespace basebmp
template< class RgbVal > struct RgbValueFromUInt32
{
RgbVal operator()( sal_uInt32 c ) const
- {
+ {
return RgbVal((c >> 16) & 0xFF,
(c >> 8) & 0xFF,
c & 0xFF);
@@ -63,9 +63,9 @@ namespace basebmp
typedef std::identity<DataType> to;
typedef std::identity<DataType> from;
};
- template< unsigned int RedIndex,
- unsigned int GreenIndex,
- unsigned int BlueIndex > struct uInt32Converter<
+ template< unsigned int RedIndex,
+ unsigned int GreenIndex,
+ unsigned int BlueIndex > struct uInt32Converter<
vigra::RGBValue< sal_uInt8,
RedIndex,
GreenIndex,
diff --git a/basebmp/source/polypolygonrenderer.cxx b/basebmp/source/polypolygonrenderer.cxx
index ea561533f2de..8df594db849f 100644
--- a/basebmp/source/polypolygonrenderer.cxx
+++ b/basebmp/source/polypolygonrenderer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,8 +42,8 @@ namespace detail
sal_Int32 const nNumScanlines( (sal_Int32)rGET.size() );
// add all polygons to GET
- for( sal_uInt32 i(0), nCount(rPolyPoly.count());
- i<nCount;
+ for( sal_uInt32 i(0), nCount(rPolyPoly.count());
+ i<nCount;
++i )
{
// add all vertices to GET
diff --git a/basebmp/test/basictest.cxx b/basebmp/test/basictest.cxx
index 5b88c4a3bf40..bd971b5b14aa 100644
--- a/basebmp/test/basictest.cxx
+++ b/basebmp/test/basictest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/bmpdemo.cxx b/basebmp/test/bmpdemo.cxx
index 043d165c14d6..1d5bc405d63d 100644
--- a/basebmp/test/bmpdemo.cxx
+++ b/basebmp/test/bmpdemo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,7 +84,7 @@ namespace
{
/// template meta function: add const qualifier, if given 2nd type has it
-template<typename A, typename B> struct clone_const
+template<typename A, typename B> struct clone_const
{
typedef B type;
};
@@ -93,7 +93,7 @@ template<typename A, typename B> struct clone_const<const A,B>
typedef const B type;
};
-template< class DestIterator, class DestAccessor > class Renderer :
+template< class DestIterator, class DestAccessor > class Renderer :
public basegfx::B2DPolyPolygonRasterConverter
{
private:
@@ -106,8 +106,8 @@ public:
Renderer(const basegfx::B2DPolyPolygon& rPolyPolyRaster,
typename DestIterator::value_type fillColor,
typename DestIterator::value_type clearColor,
- DestIterator begin,
- DestIterator end,
+ DestIterator begin,
+ DestIterator end,
DestAccessor accessor ) :
B2DPolyPolygonRasterConverter(rPolyPolyRaster,
basegfx::B2DRange(0,0,
@@ -122,13 +122,13 @@ public:
virtual void span(const double& rfXLeft,
const double& rfXRight,
- sal_Int32 nY,
- bool bOn )
+ sal_Int32 nY,
+ bool bOn )
{
DestIterator currIter( begin_ + vigra::Diff2D(0,nY) );
- typename DestIterator::row_iterator rowIter( currIter.rowIterator() +
+ typename DestIterator::row_iterator rowIter( currIter.rowIterator() +
basegfx::fround(rfXLeft) );
- typename DestIterator::row_iterator rowEnd( currIter.rowIterator() +
+ typename DestIterator::row_iterator rowEnd( currIter.rowIterator() +
basegfx::fround(rfXRight) );
if( bOn )
while( rowIter != rowEnd )
@@ -145,13 +145,13 @@ public:
}
};
-template< class DestIterator, class DestAccessor >
+template< class DestIterator, class DestAccessor >
std::auto_ptr< Renderer< DestIterator, DestAccessor > > makeRenderer(
const basegfx::B2DPolyPolygon& rPolyPolyRaster,
typename DestIterator::value_type fillColor,
typename DestIterator::value_type clearColor,
vigra::triple<DestIterator, DestIterator, DestAccessor> dest )
-{
+{
return std::auto_ptr< Renderer< DestIterator, DestAccessor > >(
new Renderer< DestIterator, DestAccessor >(rPolyPolyRaster,
fillColor,
@@ -221,7 +221,7 @@ public:
};
/// template meta function: remove const qualifier from plain type
-template <typename T> struct remove_const
+template <typename T> struct remove_const
{
typedef T type;
};
@@ -254,21 +254,21 @@ template< typename data_type, int bits_per_pixel, bool MsbFirst, typename differ
const unsigned int nIntraWordPositions( sizeof(data_type)*8 / bits_per_pixel );
// create bits_per_pixel 1s shift to intra-word position
- return ((~(~0 << bits_per_pixel)) << bits_per_pixel*(MsbFirst ?
- (nIntraWordPositions-1 - (d % nIntraWordPositions)) :
+ return ((~(~0 << bits_per_pixel)) << bits_per_pixel*(MsbFirst ?
+ (nIntraWordPositions-1 - (d % nIntraWordPositions)) :
(d % nIntraWordPositions)));
}
template< int num_intraword_positions, int bits_per_pixel, bool MsbFirst, typename difference_type > inline difference_type get_shift( difference_type remainder )
{
- return bits_per_pixel*(MsbFirst ?
+ return bits_per_pixel*(MsbFirst ?
(num_intraword_positions - 1 - remainder) :
remainder);
}
-template< typename Datatype,
- typename Valuetype,
- int bits_per_pixel,
+template< typename Datatype,
+ typename Valuetype,
+ int bits_per_pixel,
bool MsbFirst > class PackedPixelColumnIterator
{
public:
@@ -418,7 +418,7 @@ public:
value_type get() const
{
- // TODO(Q3): use traits to get unsigned type for data_type (if
+ // TODO(Q3): use traits to get unsigned type for data_type (if
// not already)
return static_cast<unsigned int>(*y() & mask_) >> shift_;
}
@@ -443,9 +443,9 @@ public:
}
};
-template< typename Datatype,
- typename Valuetype,
- int bits_per_pixel,
+template< typename Datatype,
+ typename Valuetype,
+ int bits_per_pixel,
bool MsbFirst > class PackedPixelRowIterator
{
public:
@@ -486,14 +486,14 @@ private:
remainder_ = newValue % num_intraword_positions;
const mask_type shifted_mask(
- MsbFirst ?
+ MsbFirst ?
// TODO(Q3): use traits to get unsigned type for data_type
// (if not already)
- static_cast<unsigned int>(mask_) >> bits_per_pixel :
+ static_cast<unsigned int>(mask_) >> bits_per_pixel :
mask_ << bits_per_pixel );
// data_offset is 0 for shifted mask, and 1 for wrapped-around mask
- mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
+ mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
bit_mask << bits_per_pixel*(num_intraword_positions-1) :
bit_mask);
}
@@ -516,14 +516,14 @@ private:
remainder_ = newRemainder + isNegative*num_intraword_positions;
const mask_type shifted_mask(
- MsbFirst ?
+ MsbFirst ?
mask_ << bits_per_pixel :
// TODO(Q3): use traits to get unsigned type for data_type
// (if not already)
static_cast<unsigned int>(mask_) >> bits_per_pixel );
// data_offset is 0 for shifted mask, and 1 for wrapped-around mask
- mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
+ mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
bit_mask :
bit_mask << bits_per_pixel*(num_intraword_positions-1));
}
@@ -535,8 +535,8 @@ private:
bool less( PackedPixelRowIterator const & rhs ) const
{
- return data_ == rhs.data_ ?
- (remainder_ < rhs.remainder_) :
+ return data_ == rhs.data_ ?
+ (remainder_ < rhs.remainder_) :
(data_ < rhs.data_);
}
@@ -663,7 +663,7 @@ public:
{
// TODO(Q3): use traits to get unsigned type for data_type (if
// not already)
- return static_cast<unsigned int>(*data_ & mask_) >>
+ return static_cast<unsigned int>(*data_ & mask_) >>
get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder_);
}
@@ -676,9 +676,9 @@ public:
void set( value_type v ) const
{
- const value_type pixel_value(
- (v <<
- get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder_))
+ const value_type pixel_value(
+ (v <<
+ get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder_))
& mask_ );
*data_ = (*data_ & ~mask_) | pixel_value;
}
@@ -691,9 +691,9 @@ public:
}
};
-template< typename Datatype,
- typename Valuetype,
- int bits_per_pixel,
+template< typename Datatype,
+ typename Valuetype,
+ int bits_per_pixel,
bool MsbFirst > class PackedPixelIterator
{
public:
@@ -702,13 +702,13 @@ public:
typedef Valuetype value_type;
typedef vigra::Diff2D difference_type;
typedef image_traverser_tag iterator_category;
- typedef PackedPixelRowIterator<data_type,
+ typedef PackedPixelRowIterator<data_type,
value_type,
- bits_per_pixel,
+ bits_per_pixel,
MsbFirst> row_iterator;
- typedef PackedPixelColumnIterator<data_type,
+ typedef PackedPixelColumnIterator<data_type,
value_type,
- bits_per_pixel,
+ bits_per_pixel,
MsbFirst> column_iterator;
typedef data_type* pointer;
@@ -729,12 +729,12 @@ public:
private:
pointer current() const
- {
+ {
return y() + (x / num_intraword_positions);
}
pointer current(int dx, int dy) const
- {
+ {
return y(dy) + ((x+dx)/num_intraword_positions);
}
@@ -818,9 +818,9 @@ public:
// TODO(Q3): use traits to get unsigned type for data_type (if
// not already)
- return (static_cast<unsigned int>(*current() &
+ return (static_cast<unsigned int>(*current() &
get_mask<data_type, bits_per_pixel, MsbFirst>(remainder))
- >> (MsbFirst ?
+ >> (MsbFirst ?
(num_intraword_positions - remainder) :
remainder));
}
@@ -831,18 +831,18 @@ public:
// TODO(Q3): use traits to get unsigned type for data_type (if
// not already)
- return (static_cast<unsigned int>(*current(d.x,d.y) &
+ return (static_cast<unsigned int>(*current(d.x,d.y) &
get_mask<data_type, bits_per_pixel, MsbFirst>(remainder))
- >> get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder));
+ >> get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder));
}
void set( value_type v ) const
{
const int remainder( x() % num_intraword_positions );
const int mask( get_mask<data_type, bits_per_pixel, MsbFirst>(remainder) );
- const value_type pixel_value(
- (v <<
- get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
+ const value_type pixel_value(
+ (v <<
+ get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
& mask );
pointer p = current();
*p = (*p & ~mask) | pixel_value;
@@ -852,9 +852,9 @@ public:
{
const int remainder( x(d.x) % num_intraword_positions );
const int mask( get_mask<data_type, bits_per_pixel, MsbFirst>(remainder) );
- const value_type pixel_value(
+ const value_type pixel_value(
(v <<
- get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
+ get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
& mask );
pointer p = current(d.x,d.y);
*p = (*p & ~mask) | pixel_value;
@@ -880,7 +880,7 @@ private:
BitmapColor const& rRHS ) const
{
// convert RGBValue's linear space to a normed linear space
- return sqrt(
+ return sqrt(
vigra::sq(rLHS.GetRed()-rRHS.GetRed()) +
vigra::sq(rLHS.GetGreen()-rRHS.GetGreen()) +
vigra::sq(rLHS.GetBlue()-rRHS.GetBlue()) );
@@ -918,16 +918,16 @@ private:
value_type toCol( BitmapColor const& rCol ) const
{
return value_type(rCol.GetRed(),rCol.GetGreen(),rCol.GetBlue());
- }
+ }
public:
- PaletteImageAccessor() :
+ PaletteImageAccessor() :
palette(0),
num_entries(0)
{}
PaletteImageAccessor( const BitmapColor* pPalette,
- data_type entries ) :
+ data_type entries ) :
palette(pPalette),
num_entries(entries)
{}
@@ -944,8 +944,8 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
- i.set(
+ {
+ i.set(
find_best_match(
vigra::detail::RequiresExplicitCast<value_type>::cast(value) ));
}
@@ -953,9 +953,9 @@ public:
template< typename V, class Iterator, class Difference >
void set(V const& value, Iterator const& i, Difference const& diff) const
{
- i.set(
+ i.set(
find_best_match(
- vigra::detail::RequiresExplicitCast<value_type>::cast(value)),
+ vigra::detail::RequiresExplicitCast<value_type>::cast(value)),
diff );
}
};
@@ -967,7 +967,7 @@ class TestApp : public Application
{
public:
virtual void Main();
- virtual USHORT Exception( USHORT nError );
+ virtual USHORT Exception( USHORT nError );
};
class TestWindow : public Dialog
@@ -982,9 +982,9 @@ class TestWindow : public Dialog
}
virtual ~TestWindow() {}
virtual void MouseButtonUp( const MouseEvent& /*rMEvt*/ )
- {
+ {
//TODO: do something cool
- EndDialog();
+ EndDialog();
}
virtual void Paint( const Rectangle& rRect );
};
@@ -1078,16 +1078,16 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
::rtl::OUString aSvg;
basegfx::B2DPolyPolygon aPoly;
- basegfx::tools::importFromSvgD( aPoly,
- ::rtl::OUString::createFromAscii(
+ basegfx::tools::importFromSvgD( aPoly,
+ ::rtl::OUString::createFromAscii(
"m0 0 h7 v7 h-7 z" ) );
- basegfx::tools::importFromSvgD( aPoly,
- ::rtl::OUString::createFromAscii(
+ basegfx::tools::importFromSvgD( aPoly,
+ ::rtl::OUString::createFromAscii(
"m2 2 h3 v3 h-3 z" ) );
- pDevice->fillPolyPolygon(
+ pDevice->fillPolyPolygon(
aPoly,
- basebmp::Color(0xFFFFFFFF),
+ basebmp::Color(0xFFFFFFFF),
basebmp::DrawMode_PAINT );
}
@@ -1102,17 +1102,17 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
pMask->drawLine( aPt111, aPt222, aCol333, basebmp::DrawMode_PAINT );
- ::rtl::OUString aSvg = ::rtl::OUString::createFromAscii(
+ ::rtl::OUString aSvg = ::rtl::OUString::createFromAscii(
"m 0 0 h5 l5 5 v5 h-5 l-5-5 z" );
basegfx::B2DPolyPolygon aPoly;
basegfx::tools::importFromSvgD( aPoly, aSvg );
pMask->clear(basebmp::Color(0xFFFFFFFF));
- pMask->drawPolygon(
+ pMask->drawPolygon(
aPoly.getB2DPolygon(0),
- basebmp::Color(0),
+ basebmp::Color(0),
basebmp::DrawMode_PAINT );
- basebmp::BitmapDeviceSharedPtr pSubsetDevice =
+ basebmp::BitmapDeviceSharedPtr pSubsetDevice =
basebmp::subsetBitmapDevice( pDevice,
basegfx::B2IRange(3,3,7,7) );
@@ -1124,7 +1124,7 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
{
const basebmp::Color aCol(0xFFFFFFFF);
- basegfx::B2DPolygon aRect = basegfx::tools::createPolygonFromRect(
+ basegfx::B2DPolygon aRect = basegfx::tools::createPolygonFromRect(
basegfx::B2DRange( 0,0,1001,1001 ));
pDevice->drawPolygon( aRect, aCol, basebmp::DrawMode_PAINT );
@@ -1170,7 +1170,7 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
basegfx::B2DPolygon aPoly;
aPoly.append( basegfx::B2DPoint(project( aP1 ) + aCenter) );
aPoly.append( basegfx::B2DPoint(project( aP2 ) + aCenter) );
- pDevice->fillPolyPolygon(
+ pDevice->fillPolyPolygon(
basegfx::tools::createAreaGeometry(
aPoly,
// std::max(1,n/30),
@@ -1179,7 +1179,7 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
basegfx::B2DLINEJOIN_NONE),
aLineColor,
basebmp::DrawMode_PAINT);
-
+
aPoint.setX( (int)((((double)aP1.getX())*cosd - ((double)aP1.getY())*sind)*factor) );
aPoint.setY( (int)((((double)aP1.getY())*cosd + ((double)aP1.getX())*sind)*factor) );
aP1 = aPoint;
@@ -1194,7 +1194,7 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
// Fill bitmap with generated content
{
- ScopedBitmapWriteAccess pWriteAccess( aBitmap.AcquireWriteAccess(),
+ ScopedBitmapWriteAccess pWriteAccess( aBitmap.AcquireWriteAccess(),
aBitmap );
for( int y=0; y<aTestSize.getY(); ++y )
for( int x=0; x<aTestSize.getX(); ++x )
@@ -1225,7 +1225,7 @@ void TestApp::Main()
try
{
uno::Reference< uno::XComponentContext > xCtx = ::cppu::defaultBootstrap_InitialComponentContext();
- xFactory = uno::Reference< lang::XMultiServiceFactory >( xCtx->getServiceManager(),
+ xFactory = uno::Reference< lang::XMultiServiceFactory >( xCtx->getServiceManager(),
uno::UNO_QUERY );
if( xFactory.is() )
::comphelper::setProcessServiceFactory( xFactory );
diff --git a/basebmp/test/bmpmasktest.cxx b/basebmp/test/bmpmasktest.cxx
index 0d4fa01b3301..afb11717853e 100644
--- a/basebmp/test/bmpmasktest.cxx
+++ b/basebmp/test/bmpmasktest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/bmptest.cxx b/basebmp/test/bmptest.cxx
index f52a0567f271..752f950da123 100644
--- a/basebmp/test/bmptest.cxx
+++ b/basebmp/test/bmptest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/cliptest.cxx b/basebmp/test/cliptest.cxx
index 31af87140682..8cf80597edbb 100644
--- a/basebmp/test/cliptest.cxx
+++ b/basebmp/test/cliptest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/export.map b/basebmp/test/export.map
index 3308588ef6f8..0dbbcc5a7372 100644
--- a/basebmp/test/export.map
+++ b/basebmp/test/export.map
@@ -1,7 +1,7 @@
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/filltest.cxx b/basebmp/test/filltest.cxx
index 469b984b6ca6..b40895ffe5c4 100644
--- a/basebmp/test/filltest.cxx
+++ b/basebmp/test/filltest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/linetest.cxx b/basebmp/test/linetest.cxx
index 68633e8935d0..83590eb728d7 100644
--- a/basebmp/test/linetest.cxx
+++ b/basebmp/test/linetest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/masktest.cxx b/basebmp/test/masktest.cxx
index b7097518f64a..68582fe7ab77 100644
--- a/basebmp/test/masktest.cxx
+++ b/basebmp/test/masktest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/polytest.cxx b/basebmp/test/polytest.cxx
index 0f0faab77552..d4317ceb789b 100644
--- a/basebmp/test/polytest.cxx
+++ b/basebmp/test/polytest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/tools.cxx b/basebmp/test/tools.cxx
index ab7219ec32af..a9b9e97f4d5c 100644
--- a/basebmp/test/tools.cxx
+++ b/basebmp/test/tools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/tools.hxx b/basebmp/test/tools.hxx
index 57668e55a741..2b556a45dfe8 100644
--- a/basebmp/test/tools.hxx
+++ b/basebmp/test/tools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite