diff options
Diffstat (limited to 'svl/qa/complex/ConfigItems/helper/PrintOptTest.cxx')
-rw-r--r-- | svl/qa/complex/ConfigItems/helper/PrintOptTest.cxx | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/svl/qa/complex/ConfigItems/helper/PrintOptTest.cxx b/svl/qa/complex/ConfigItems/helper/PrintOptTest.cxx index e2ef940cbde6..9075a82a3a33 100644 --- a/svl/qa/complex/ConfigItems/helper/PrintOptTest.cxx +++ b/svl/qa/complex/ConfigItems/helper/PrintOptTest.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 @@ -25,7 +25,7 @@ * for a copy of the LGPLv3 License. * ************************************************************************/ - + #include "PrintOptTest.hxx" #include <com/sun/star/beans/XPropertySet.hpp> @@ -37,10 +37,10 @@ namespace css = ::com::sun::star; // using test only #define ROOTNODE_PRINTOPTION rtl::OUString::createFromAscii("org.openoffice.Office.Common/Print/Option") -#define PROPERTYNAME_REDUCETRANSPARENCY rtl::OUString::createFromAscii("ReduceTransparency") -#define PROPERTYNAME_REDUCEDTRANSPARENCYMODE rtl::OUString::createFromAscii("ReducedTransparencyMode") -#define PROPERTYNAME_REDUCEGRADIENTS rtl::OUString::createFromAscii("ReduceGradients") -#define PROPERTYNAME_REDUCEDGRADIENTMODE rtl::OUString::createFromAscii("ReducedGradientMode") +#define PROPERTYNAME_REDUCETRANSPARENCY rtl::OUString::createFromAscii("ReduceTransparency") +#define PROPERTYNAME_REDUCEDTRANSPARENCYMODE rtl::OUString::createFromAscii("ReducedTransparencyMode") +#define PROPERTYNAME_REDUCEGRADIENTS rtl::OUString::createFromAscii("ReduceGradients") +#define PROPERTYNAME_REDUCEDGRADIENTMODE rtl::OUString::createFromAscii("ReducedGradientMode") #define PROPERTYNAME_REDUCEDGRADIENTSTEPCOUNT rtl::OUString::createFromAscii("ReducedGradientStepCount") #define PROPERTYNAME_REDUCEBITMAPS rtl::OUString::createFromAscii("ReduceBitmaps") #define PROPERTYNAME_REDUCEDBITMAPMODE rtl::OUString::createFromAscii("ReducedBitmapMode") @@ -57,7 +57,7 @@ PrintOptTest::PrintOptTest() ::comphelper::ConfigurationHelper::E_STANDARD), css::uno::UNO_QUERY); - if (m_xCfg.is()) + if (m_xCfg.is()) { //UniString sTmp = UniString("printer"); //xub_StrLen nTokenCount = sTmp.GetTokenCount('/'); @@ -124,7 +124,7 @@ void PrintOptTest::impl_SetReduceTransparency(sal_Bool bState ) } } -sal_Bool PrintOptTest::impl_IsReduceGradients() const +sal_Bool PrintOptTest::impl_IsReduceGradients() const { sal_Bool bRet = sal_False; if (m_xNode.is()) @@ -227,7 +227,7 @@ sal_Bool PrintOptTest::impl_IsReduceBitmaps() const css::uno::Reference<css::beans::XPropertySet> xSet(m_xNode, css::uno::UNO_QUERY); if (xSet.is()) { - xSet->getPropertyValue(PROPERTYNAME_REDUCEBITMAPS) >>= bRet; + xSet->getPropertyValue(PROPERTYNAME_REDUCEBITMAPS) >>= bRet; } } return bRet; @@ -292,7 +292,7 @@ sal_Int16 PrintOptTest::impl_GetReducedBitmapResolution() const if (xSet.is()) { xSet->getPropertyValue(PROPERTYNAME_REDUCEDBITMAPRESOLUTION) >>= nRet; - } + } } return nRet; } @@ -386,7 +386,7 @@ PrintOptTest::~PrintOptTest() void PrintOptTest::impl_checkPrint() { - //test SetReduceTransparency() + //test SetReduceTransparency() sal_Bool bNewValue = sal_False; sal_Bool bOldValue = sal_False; bOldValue = PrintOptTest::impl_IsReduceTransparency(); @@ -402,7 +402,7 @@ void PrintOptTest::impl_checkPrint() "the SetReduceTransparency() error!"), 0); } - + //test IsReduceTransparemcy() bNewValue = bOldValue = sal_False; bOldValue = impl_IsReduceTransparency(); @@ -424,7 +424,7 @@ void PrintOptTest::impl_checkPrint() nOldMode = nNewMode = 0; nOldMode = impl_GetReducedTransparencyMode(); nNewMode = nOldMode + 1; - aPrintOpt.SetReducedTransparencyMode( nNewMode ); + aPrintOpt.SetReducedTransparencyMode( nNewMode ); nNewMode = impl_GetReducedTransparencyMode(); //if(nNewMode != nOldMode) // test the old source if ( nNewMode == nOldMode ) // test the new source @@ -459,7 +459,7 @@ void PrintOptTest::impl_checkPrint() bNewValue = !bOldValue; aPrintOpt.SetReduceGradients(bNewValue); bNewValue = impl_IsReduceGradients(); - //if (bNewValue != bOldValue) //test the old source + //if (bNewValue != bOldValue) //test the old source if (bNewValue == bOldValue) //test the new source { throw css::uno::RuntimeException( @@ -486,7 +486,7 @@ void PrintOptTest::impl_checkPrint() 0); } - + //test SetRedecedGradientMode() nOldMode = nNewMode = 0; nOldMode = this->impl_GetReducedGradientMode(); @@ -519,7 +519,7 @@ void PrintOptTest::impl_checkPrint() 0); } - + //test the SetReducedGradientStepCount() sal_Int16 nNewStepCount; sal_Int16 nOldStepCount; @@ -554,7 +554,7 @@ void PrintOptTest::impl_checkPrint() "the GetReduceGradientStepCount() error!"), 0); } - + // test the SetReduceBitmaps() bNewValue = bOldValue = sal_False; bOldValue = this->impl_IsReduceBitmaps(); @@ -586,7 +586,7 @@ void PrintOptTest::impl_checkPrint() "the IsReduceBitmaps() error!"), 0); } - + // test the SetReduceBitmap() nNewMode = nOldMode = 0; nOldMode = impl_GetReducedBitmapMode(); @@ -602,7 +602,7 @@ void PrintOptTest::impl_checkPrint() "the SetReduceBitmap() error!"), 0); } - + // test the SetReduceBitmapMode() nNewMode = nOldMode = 0; nOldMode = this->impl_GetReducedBitmapMode(); @@ -701,7 +701,7 @@ void PrintOptTest::impl_checkPrint() "the IsReducedBitmapIncludesTransparency() error!"), 0); } - + // test the SetConvertToGreyscales() bNewValue = bOldValue = sal_False; bOldValue = this->impl_IsConvertToGreyscales(); @@ -715,10 +715,10 @@ void PrintOptTest::impl_checkPrint() rtl::OUString::createFromAscii( "null com.sun.star.configuration." "the SetConvertToGreyscales() error!"), - 0); + 0); } - // test the IsConvertToGreyscales() + // test the IsConvertToGreyscales() bNewValue = bOldValue = sal_False; bOldValue = this->impl_IsConvertToGreyscales(); bNewValue = !bOldValue; |