EasyHack: RTL macro converted from createFromAscii

This commit is contained in:
Kevin Hunter
2010-11-09 21:49:16 +01:00
committed by Thorsten Behrens
parent 10bfc7d833
commit 597faa1032
4 changed files with 75 additions and 75 deletions

View File

@@ -54,9 +54,9 @@ namespace canvas
uno::Sequence<rtl::OUString> ParametricPolyPolygon::getAvailableServiceNames() uno::Sequence<rtl::OUString> ParametricPolyPolygon::getAvailableServiceNames()
{ {
uno::Sequence<rtl::OUString> aRet(3); uno::Sequence<rtl::OUString> aRet(3);
aRet[0] = rtl::OUString::createFromAscii("LinearGradient"); aRet[0] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LinearGradient" ));
aRet[1] = rtl::OUString::createFromAscii("EllipticalGradient"); aRet[1] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "EllipticalGradient" ));
aRet[2] = rtl::OUString::createFromAscii("RectangularGradient"); aRet[2] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "RectangularGradient" ));
return aRet; return aRet;
} }

View File

@@ -40,9 +40,9 @@ namespace canvas
void throwUnknown( const ::rtl::OUString& aPropertyName ) void throwUnknown( const ::rtl::OUString& aPropertyName )
{ {
throw beans::UnknownPropertyException( throw beans::UnknownPropertyException(
::rtl::OUString::createFromAscii("PropertySetHelper: property ") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PropertySetHelper: property " )) +
aPropertyName + aPropertyName +
::rtl::OUString::createFromAscii(" not found."), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " not found." )),
uno::Reference< uno::XInterface >() uno::Reference< uno::XInterface >()
); );
} }
@@ -50,9 +50,9 @@ namespace canvas
void throwVeto( const ::rtl::OUString& aPropertyName ) void throwVeto( const ::rtl::OUString& aPropertyName )
{ {
throw beans::PropertyVetoException( throw beans::PropertyVetoException(
::rtl::OUString::createFromAscii("PropertySetHelper: property ") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PropertySetHelper: property " )) +
aPropertyName + aPropertyName +
::rtl::OUString::createFromAscii(" access was vetoed."), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " access was vetoed." )),
uno::Reference< uno::XInterface >() ); uno::Reference< uno::XInterface >() );
} }

View File

@@ -81,7 +81,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): point X value contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): point X value contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
} }
@@ -90,7 +90,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): point X value contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): point X value contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
} }
@@ -115,7 +115,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): size.Width value contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): size.Width value contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
} }
@@ -124,7 +124,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): size.Height value contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): size.Height value contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
} }
@@ -149,7 +149,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bezier segment's Px value contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bezier segment's Px value contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
} }
@@ -158,7 +158,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bezier segment's Py value contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bezier segment's Py value contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
} }
@@ -167,7 +167,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bezier segment's C1x value contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bezier segment's C1x value contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
} }
@@ -176,7 +176,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bezier segment's C1y value contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bezier segment's C1y value contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
} }
@@ -185,7 +185,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bezier segment's C2x value contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bezier segment's C2x value contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
} }
@@ -194,7 +194,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bezier segment's C2y value contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bezier segment's C2y value contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
} }
@@ -223,7 +223,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): rectangle point X1 contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): rectangle point X1 contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
} }
@@ -232,7 +232,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): rectangle point Y1 contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): rectangle point Y1 contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
} }
@@ -241,7 +241,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): rectangle point X2 contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): rectangle point X2 contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
} }
@@ -250,7 +250,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): rectangle point Y2 contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): rectangle point Y2 contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
} }
@@ -285,7 +285,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): AffineMatrix2D contains infinite or NAN value(s) at the following positions (m00-m12): ") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): AffineMatrix2D contains infinite or NAN value(s) at the following positions (m00-m12): " )) +
::rtl::OUString::valueOf(nBinaryState), ::rtl::OUString::valueOf(nBinaryState),
xIf, xIf,
nArgPos ); nArgPos );
@@ -321,7 +321,7 @@ namespace canvas
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): Matrix2D contains infinite or NAN value(s) at the following positions (m00-m11): ") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): Matrix2D contains infinite or NAN value(s) at the following positions (m00-m11): " )) +
::rtl::OUString::valueOf(nBinaryState), ::rtl::OUString::valueOf(nBinaryState),
xIf, xIf,
nArgPos ); nArgPos );
@@ -360,11 +360,11 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): render state's device color has too few components (") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): render state's device color has too few components (" )) +
::rtl::OUString::valueOf(nMinColorComponents) + ::rtl::OUString::valueOf(nMinColorComponents) +
::rtl::OUString::createFromAscii(" expected, ") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " expected, " )) +
::rtl::OUString::valueOf(renderState.DeviceColor.getLength()) + ::rtl::OUString::valueOf(renderState.DeviceColor.getLength()) +
::rtl::OUString::createFromAscii(" provided)"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " provided)" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -378,9 +378,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): render state's CompositeOperation value out of range (") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): render state's CompositeOperation value out of range (" )) +
::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(renderState.CompositeOperation)) + ::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(renderState.CompositeOperation)) +
::rtl::OUString::createFromAscii(" not known)"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " not known)" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -404,9 +404,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): textures' alpha value out of range (is ") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): textures' alpha value out of range (is " )) +
::rtl::OUString::valueOf(texture.Alpha) + ::rtl::OUString::valueOf(texture.Alpha) +
::rtl::OUString::createFromAscii(")"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ")" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -419,7 +419,7 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): textures' NumberOfHatchPolygons is negative"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): textures' NumberOfHatchPolygons is negative" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -433,9 +433,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): textures' RepeatModeX value is out of range (") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): textures' RepeatModeX value is out of range (" )) +
::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(texture.RepeatModeX)) + ::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(texture.RepeatModeX)) +
::rtl::OUString::createFromAscii(" not known)"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " not known)" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -449,9 +449,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): textures' RepeatModeY value is out of range (") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): textures' RepeatModeY value is out of range (" )) +
::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(texture.RepeatModeY)) + ::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(texture.RepeatModeY)) +
::rtl::OUString::createFromAscii(" not known)"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " not known)" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -480,9 +480,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(mpStr) + ::rtl::OUString::createFromAscii(mpStr) +
::rtl::OUString::createFromAscii(": verifyInput(): one of stroke attributes' DashArray value out of range (is ") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): one of stroke attributes' DashArray value out of range (is " )) +
::rtl::OUString::valueOf(rVal) + ::rtl::OUString::valueOf(rVal) +
::rtl::OUString::createFromAscii(")"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ")" )),
mrIf, mrIf,
mnArgPos ); mnArgPos );
#else #else
@@ -508,9 +508,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): stroke attributes' StrokeWidth value out of range (is ") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): stroke attributes' StrokeWidth value out of range (is " )) +
::rtl::OUString::valueOf(strokeAttributes.StrokeWidth) + ::rtl::OUString::valueOf(strokeAttributes.StrokeWidth) +
::rtl::OUString::createFromAscii(")"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ")" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -524,9 +524,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): stroke attributes' MiterLimit value out of range (is ") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): stroke attributes' MiterLimit value out of range (is " )) +
::rtl::OUString::valueOf(strokeAttributes.MiterLimit) + ::rtl::OUString::valueOf(strokeAttributes.MiterLimit) +
::rtl::OUString::createFromAscii(")"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ")" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -548,9 +548,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): stroke attributes' StartCapType value is out of range (") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): stroke attributes' StartCapType value is out of range (" )) +
::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(strokeAttributes.StartCapType)) + ::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(strokeAttributes.StartCapType)) +
::rtl::OUString::createFromAscii(" not known)"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " not known)" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -564,9 +564,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): stroke attributes' StartCapType value is out of range (") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): stroke attributes' StartCapType value is out of range (" )) +
::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(strokeAttributes.EndCapType)) + ::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(strokeAttributes.EndCapType)) +
::rtl::OUString::createFromAscii(" not known)"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " not known)" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -580,9 +580,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): stroke attributes' JoinType value is out of range (") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): stroke attributes' JoinType value is out of range (" )) +
::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(strokeAttributes.JoinType)) + ::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(strokeAttributes.JoinType)) +
::rtl::OUString::createFromAscii(" not known)"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " not known)" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -603,7 +603,7 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's ScanLines is negative"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's ScanLines is negative" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -616,7 +616,7 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's ScanLineBytes is negative"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's ScanLineBytes is negative" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -629,7 +629,7 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's ColorSpace is invalid"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's ColorSpace is invalid" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -643,7 +643,7 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's ColorSpace getBitsPerPixel() is negative"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's ColorSpace getBitsPerPixel() is negative" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -657,9 +657,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's ColorSpace getEndianness() value is out of range (") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's ColorSpace getEndianness() value is out of range (" )) +
::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(bitmapLayout.ColorSpace->getEndianness())) + ::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(bitmapLayout.ColorSpace->getEndianness())) +
::rtl::OUString::createFromAscii(" not known)"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " not known)" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -681,7 +681,7 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's ScanLines is negative"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's ScanLines is negative" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -694,7 +694,7 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's ScanLineBytes is negative"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's ScanLineBytes is negative" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -707,7 +707,7 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's ColorSpace is invalid"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's ColorSpace is invalid" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -720,7 +720,7 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's NumComponents is negative"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's NumComponents is negative" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -734,9 +734,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's Endianness value is out of range (") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's Endianness value is out of range (" )) +
::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(bitmapLayout.Endianness)) + ::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(bitmapLayout.Endianness)) +
::rtl::OUString::createFromAscii(" not known)"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " not known)" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -750,9 +750,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's Format value is out of range (") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): bitmap layout's Format value is out of range (" )) +
::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(bitmapLayout.Format)) + ::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(bitmapLayout.Format)) +
::rtl::OUString::createFromAscii(" not known)"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " not known)" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -783,7 +783,7 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): font request's CellSize value contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): font request's CellSize value contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -796,7 +796,7 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): font request's ReferenceAdvancement value contains infinite or NAN"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): font request's ReferenceAdvancement value contains infinite or NAN" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -810,7 +810,7 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyInput(): font request's CellSize and ReferenceAdvancement are mutually exclusive, one of them must be 0.0"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyInput(): font request's CellSize and ReferenceAdvancement are mutually exclusive, one of them must be 0.0" )),
xIf, xIf,
nArgPos ); nArgPos );
#else #else
@@ -858,9 +858,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyBitmapSize(): size has 0 or negative width (value: ") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyBitmapSize(): size has 0 or negative width (value: " )) +
::rtl::OUString::valueOf(size.Width) + ::rtl::OUString::valueOf(size.Width) +
::rtl::OUString::createFromAscii(")"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ")" )),
xIf, xIf,
0 ); 0 );
#else #else
@@ -873,9 +873,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifyBitmapSize(): size has 0 or negative height (value: ") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifyBitmapSize(): size has 0 or negative height (value: " )) +
::rtl::OUString::valueOf(size.Height) + ::rtl::OUString::valueOf(size.Height) +
::rtl::OUString::createFromAscii(")"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ")" )),
xIf, xIf,
0 ); 0 );
#else #else
@@ -895,9 +895,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifySpriteSize(): size has 0 or negative width (value: ") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifySpriteSize(): size has 0 or negative width (value: " )) +
::rtl::OUString::valueOf(size.Width) + ::rtl::OUString::valueOf(size.Width) +
::rtl::OUString::createFromAscii(")"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ")" )),
xIf, xIf,
0 ); 0 );
#else #else
@@ -910,9 +910,9 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(pStr) + ::rtl::OUString::createFromAscii(pStr) +
::rtl::OUString::createFromAscii(": verifySpriteSize(): size has 0 or negative height (value: ") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": verifySpriteSize(): size has 0 or negative height (value: " )) +
::rtl::OUString::valueOf(size.Height) + ::rtl::OUString::valueOf(size.Height) +
::rtl::OUString::createFromAscii(")"), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ")" )),
xIf, xIf,
0 ); 0 );
#else #else

View File

@@ -93,7 +93,7 @@ class TestWindow : public Dialog
public: public:
TestWindow() : Dialog( (Window *) NULL ) TestWindow() : Dialog( (Window *) NULL )
{ {
SetText( rtl::OUString::createFromAscii( "Canvas test" ) ); SetText( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Canvas test" )) );
SetSizePixel( Size( 600, 450 ) ); SetSizePixel( Size( 600, 450 ) );
EnablePaint( true ); EnablePaint( true );
Show(); Show();
@@ -153,8 +153,8 @@ class DemoRenderer
lang::Locale aLocale; lang::Locale aLocale;
rendering::FontInfo aFontInfo; rendering::FontInfo aFontInfo;
aFontInfo.FamilyName = ::rtl::OUString::createFromAscii( "Swiss" ); aFontInfo.FamilyName = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Swiss" ));
aFontInfo.StyleName = ::rtl::OUString::createFromAscii( "SansSerif" ); aFontInfo.StyleName = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "SansSerif" ));
geometry::Matrix2D aFontMatrix( 1, 0, geometry::Matrix2D aFontMatrix( 1, 0,
0, 1 ); 0, 1 );
rendering::FontRequest aFontRequest( aFontInfo, 12.0, 0.0, aLocale ); rendering::FontRequest aFontRequest( aFontInfo, 12.0, 0.0, aLocale );