diff options
Diffstat (limited to 'svl/qa/complex/ConfigItems/helper')
9 files changed, 156 insertions, 156 deletions
diff --git a/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.cxx b/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.cxx index 63a88e733efb..10bb0f30929e 100644 --- a/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.cxx +++ b/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.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 "AccessibilityOptTest.hxx" #include "configitems/accessibilityoptions_const.hxx" @@ -61,14 +61,14 @@ void AccessibilityOptTest::impl_checkGetAutoDetectSystemHC() sal_Bool bAutoDetectSystemHC; sal_Bool bAutoDetectSystemHC_; - bAutoDetectSystemHC = aAccessibilityOpt.GetAutoDetectSystemHC(); - xSet->setPropertyValue( s_sAutoDetectSystemHC, css::uno::makeAny(bAutoDetectSystemHC ? sal_False:sal_True) ); + bAutoDetectSystemHC = aAccessibilityOpt.GetAutoDetectSystemHC(); + xSet->setPropertyValue( s_sAutoDetectSystemHC, css::uno::makeAny(bAutoDetectSystemHC ? sal_False:sal_True) ); ::comphelper::ConfigurationHelper::flush(m_xCfg); bAutoDetectSystemHC_ = aAccessibilityOpt.GetAutoDetectSystemHC(); if ( bAutoDetectSystemHC_ == bAutoDetectSystemHC )//old config item will not throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetAutoDetectSystemHC() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetAutoDetectSystemHC() error!")), 0); } //============================================================================= @@ -80,13 +80,13 @@ void AccessibilityOptTest::impl_checkGetIsForPagePreviews() sal_Bool bIsForPagePreviews_; bIsForPagePreviews = aAccessibilityOpt.GetIsForPagePreviews(); - xSet->setPropertyValue( s_sIsForPagePreviews, css::uno::makeAny(bIsForPagePreviews ? sal_False:sal_True) ); + xSet->setPropertyValue( s_sIsForPagePreviews, css::uno::makeAny(bIsForPagePreviews ? sal_False:sal_True) ); ::comphelper::ConfigurationHelper::flush(m_xCfg); bIsForPagePreviews_ = aAccessibilityOpt.GetIsForPagePreviews(); if ( bIsForPagePreviews_ == bIsForPagePreviews )//old config item will not throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsForPagePreviews() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsForPagePreviews() error!")), 0); } //============================================================================= @@ -98,13 +98,13 @@ void AccessibilityOptTest::impl_checkGetIsHelpTipsDisappear() sal_Bool bIsHelpTipsDisappear_; bIsHelpTipsDisappear = aAccessibilityOpt.GetIsHelpTipsDisappear(); - xSet->setPropertyValue( s_sIsHelpTipsDisappear, css::uno::makeAny(bIsHelpTipsDisappear ? sal_False:sal_True) ); + xSet->setPropertyValue( s_sIsHelpTipsDisappear, css::uno::makeAny(bIsHelpTipsDisappear ? sal_False:sal_True) ); ::comphelper::ConfigurationHelper::flush(m_xCfg); bIsHelpTipsDisappear_ = aAccessibilityOpt.GetIsHelpTipsDisappear(); if ( bIsHelpTipsDisappear_ == bIsHelpTipsDisappear )//old config item will not throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsHelpTipsDisappear() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsHelpTipsDisappear() error!")), 0); } //============================================================================= @@ -116,13 +116,13 @@ void AccessibilityOptTest::impl_checkGetIsAllowAnimatedGraphics() sal_Bool bIsAllowAnimatedGraphics_; bIsAllowAnimatedGraphics = aAccessibilityOpt.GetIsAllowAnimatedGraphics(); - xSet->setPropertyValue( s_sIsAllowAnimatedGraphics, css::uno::makeAny(bIsAllowAnimatedGraphics ? sal_False:sal_True) ); + xSet->setPropertyValue( s_sIsAllowAnimatedGraphics, css::uno::makeAny(bIsAllowAnimatedGraphics ? sal_False:sal_True) ); ::comphelper::ConfigurationHelper::flush(m_xCfg); bIsAllowAnimatedGraphics_ = aAccessibilityOpt.GetIsAllowAnimatedGraphics(); if ( bIsAllowAnimatedGraphics_ == bIsAllowAnimatedGraphics )//old config item will not throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsAllowAnimatedGraphics() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsAllowAnimatedGraphics() error!")), 0); } //============================================================================= @@ -134,13 +134,13 @@ void AccessibilityOptTest::impl_checkGetIsAllowAnimatedText() sal_Bool bIsAllowAnimatedText_; bIsAllowAnimatedText = aAccessibilityOpt.GetIsAllowAnimatedText(); - xSet->setPropertyValue( s_sIsAllowAnimatedText, css::uno::makeAny(bIsAllowAnimatedText ? sal_False:sal_True) ); + xSet->setPropertyValue( s_sIsAllowAnimatedText, css::uno::makeAny(bIsAllowAnimatedText ? sal_False:sal_True) ); ::comphelper::ConfigurationHelper::flush(m_xCfg); bIsAllowAnimatedText_ = aAccessibilityOpt.GetIsAllowAnimatedText(); if ( bIsAllowAnimatedText_ == bIsAllowAnimatedText )//old config item will not throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsAllowAnimatedText() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsAllowAnimatedText() error!")), 0); } //============================================================================= @@ -152,13 +152,13 @@ void AccessibilityOptTest::impl_checkGetIsAutomaticFontColor() sal_Bool bIsAutomaticFontColor_; bIsAutomaticFontColor = aAccessibilityOpt.GetIsAutomaticFontColor(); - xSet->setPropertyValue( s_sIsAutomaticFontColor, css::uno::makeAny(bIsAutomaticFontColor ? sal_False:sal_True) ); + xSet->setPropertyValue( s_sIsAutomaticFontColor, css::uno::makeAny(bIsAutomaticFontColor ? sal_False:sal_True) ); ::comphelper::ConfigurationHelper::flush(m_xCfg); bIsAutomaticFontColor_ = aAccessibilityOpt.GetIsAutomaticFontColor(); if ( bIsAutomaticFontColor_ == bIsAutomaticFontColor )//old config item will not throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsAutomaticFontColor() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsAutomaticFontColor() error!")), 0); } //============================================================================= @@ -170,13 +170,13 @@ void AccessibilityOptTest::impl_checkGetIsSystemFont() sal_Bool bIsSystemFont_; bIsSystemFont = aAccessibilityOpt.GetIsSystemFont(); - xSet->setPropertyValue( s_sIsSystemFont, css::uno::makeAny(bIsSystemFont ? sal_False:sal_True) ); + xSet->setPropertyValue( s_sIsSystemFont, css::uno::makeAny(bIsSystemFont ? sal_False:sal_True) ); ::comphelper::ConfigurationHelper::flush(m_xCfg); bIsSystemFont_ = aAccessibilityOpt.GetIsSystemFont(); if ( bIsSystemFont_ == bIsSystemFont )//old config item will not throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsSystemFont() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsSystemFont() error!")), 0); } //============================================================================= @@ -194,7 +194,7 @@ void AccessibilityOptTest::impl_checkGetHelpTipSeconds() if ( nHelpTipSeconds_ == nHelpTipSeconds )//old config item will not throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetHelpTipSeconds() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetHelpTipSeconds() error!")), 0); } //============================================================================= @@ -206,13 +206,13 @@ void AccessibilityOptTest::impl_checkIsSelectionInReadonly() sal_Bool bIsSelectionInReadonly_; bIsSelectionInReadonly = aAccessibilityOpt.IsSelectionInReadonly(); - xSet->setPropertyValue( s_sIsSelectionInReadonly, css::uno::makeAny(bIsSelectionInReadonly ? sal_False:sal_True) ); + xSet->setPropertyValue( s_sIsSelectionInReadonly, css::uno::makeAny(bIsSelectionInReadonly ? sal_False:sal_True) ); ::comphelper::ConfigurationHelper::flush(m_xCfg); bIsSelectionInReadonly_ = aAccessibilityOpt.IsSelectionInReadonly(); if ( bIsSelectionInReadonly_ == bIsSelectionInReadonly )//old config item will not throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsSelectionInReadonly() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsSelectionInReadonly() error!")), 0); } //============================================================================= @@ -229,7 +229,7 @@ void AccessibilityOptTest::impl_checkSetAutoDetectSystemHC() if ( bAutoDetectSystemHC_ == bAutoDetectSystemHC )//old config item will throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetAutoDetectSystemHC() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetAutoDetectSystemHC() error!")), 0); } //============================================================================= @@ -246,7 +246,7 @@ void AccessibilityOptTest::impl_checkSetIsForPagePreviews() if ( bIsForPagePreviews_ == bIsForPagePreviews )//old config item will throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsForPagePreviews() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsForPagePreviews() error!")), 0); } //============================================================================= @@ -263,7 +263,7 @@ void AccessibilityOptTest::impl_checkSetIsHelpTipsDisappear() if ( bIsHelpTipsDisappear_ == bIsHelpTipsDisappear )//old config item will throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsHelpTipsDisappear() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsHelpTipsDisappear() error!")), 0); } //============================================================================= @@ -280,7 +280,7 @@ void AccessibilityOptTest::impl_checkSetIsAllowAnimatedGraphics() if ( bIsAllowAnimatedGraphics_ == bIsAllowAnimatedGraphics )//old config item will throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsAllowAnimatedGraphics() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsAllowAnimatedGraphics() error!")), 0); } //============================================================================= @@ -297,7 +297,7 @@ void AccessibilityOptTest::impl_checkSetIsAllowAnimatedText() if ( bIsAllowAnimatedText_ == bIsAllowAnimatedText )//old config item will throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsAllowAnimatedText() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsAllowAnimatedText() error!")), 0); } //============================================================================= @@ -314,7 +314,7 @@ void AccessibilityOptTest::impl_checkSetIsAutomaticFontColor() if ( bIsAutomaticFontColor_ == bIsAutomaticFontColor )//old config item will throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsAutomaticFontColor() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsAutomaticFontColor() error!")), 0); } //============================================================================= @@ -331,7 +331,7 @@ void AccessibilityOptTest::impl_checkSetIsSystemFont() if ( bIsSystemFont_ == bIsSystemFont )//old config item will throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsSystemFont() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsSystemFont() error!")), 0); } //============================================================================= @@ -348,7 +348,7 @@ void AccessibilityOptTest::impl_checkSetHelpTipSeconds() if ( nHelpTipSeconds_ == nHelpTipSeconds )//old config item will throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetHelpTipSeconds() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetHelpTipSeconds() error!")), 0); } //============================================================================= @@ -365,12 +365,12 @@ void AccessibilityOptTest::impl_checkSetSelectionInReadonly() if ( bIsSelectionInReadonly_ == bIsSelectionInReadonly )//old config item will throw error throw css::uno::RuntimeException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetSelectionInReadonly() error!")), 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetSelectionInReadonly() error!")), 0); } //============================================================================= void AccessibilityOptTest::impl_checkAccessibilityOptions() -{ +{ impl_checkGetAutoDetectSystemHC(); impl_checkGetIsForPagePreviews(); impl_checkGetIsHelpTipsDisappear(); diff --git a/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.hxx b/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.hxx index 89dce6d2bdd1..242d7be87aa1 100644 --- a/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.hxx +++ b/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.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 @@ -63,7 +63,7 @@ private: void impl_checkSetHelpTipSeconds(); void impl_checkSetSelectionInReadonly(); -private: +private: css::uno::Reference< css::container::XNameAccess > m_xCfg; SvtAccessibilityOptions aAccessibilityOpt; }; diff --git a/svl/qa/complex/ConfigItems/helper/ConfigItemTest.cxx b/svl/qa/complex/ConfigItems/helper/ConfigItemTest.cxx index 4ee8ce09289f..e948eb550803 100644 --- a/svl/qa/complex/ConfigItems/helper/ConfigItemTest.cxx +++ b/svl/qa/complex/ConfigItems/helper/ConfigItemTest.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 @@ -54,7 +54,7 @@ static const ::rtl::OUString TEST_HELPBOOKMARKS = ::rtl::OUString::creat static const ::rtl::OUString TEST_ACCESSIBILITYOPTIONS = ::rtl::OUString::createFromAscii("checkAccessibilityOptions"); static const ::rtl::OUString TEST_PRINTOPTIONS = ::rtl::OUString::createFromAscii("checkPrintOptions"); static const ::rtl::OUString TEST_USEROPTIONS = ::rtl::OUString::createFromAscii("checkUserOptions"); - + //============================================================================= class ConfigItemTest : public ::cppu::WeakImplHelper2< css::task::XJob , css::lang::XServiceInfo > @@ -63,7 +63,7 @@ class ConfigItemTest : public ::cppu::WeakImplHelper2< css::task::XJob , // interface public: explicit ConfigItemTest(const css::uno::Reference< css::uno::XComponentContext >& xContext); - + // css::task::XJob virtual css::uno::Any SAL_CALL execute(const css::uno::Sequence< css::beans::NamedValue >& lArguments) throw (css::uno::RuntimeException , @@ -73,27 +73,27 @@ class ConfigItemTest : public ::cppu::WeakImplHelper2< css::task::XJob , // css::lang::XServiceInfo virtual ::rtl::OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException); - + virtual ::sal_Bool SAL_CALL supportsService(const ::rtl::OUString& sServiceName) throw (css::uno::RuntimeException); - + virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException); - + //------------------------------------------------------------------------- // internal private: ConfigItemTest(ConfigItemTest &); // not defined virtual ~ConfigItemTest() {} void operator=(ConfigItemTest &); // not defined - + //------------------------------------------------------------------------- // helper for registration ! public: static ::rtl::OUString SAL_CALL st_getImplementationName(); static css::uno::Sequence< ::rtl::OUString > SAL_CALL st_getSupportedServiceNames(); static css::uno::Reference< css::uno::XInterface > SAL_CALL st_create(const css::uno::Reference< css::uno::XComponentContext >& XContext); - + //------------------------------------------------------------------------- // member private: diff --git a/svl/qa/complex/ConfigItems/helper/HistoryOptTest.cxx b/svl/qa/complex/ConfigItems/helper/HistoryOptTest.cxx index a304a508b3fb..71cb50d27b3e 100644 --- a/svl/qa/complex/ConfigItems/helper/HistoryOptTest.cxx +++ b/svl/qa/complex/ConfigItems/helper/HistoryOptTest.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 "HistoryOptTest.hxx" #include <unotools/historyoptions_const.hxx> @@ -131,7 +131,7 @@ void HistoryOptTest::impl_testHistory(EHistoryType eHistory , ( ! impl_existsItemAtIndex(nFirstItem , 1)) ) throw css::uno::Exception(MESSAGE_WRONG_ORDER, 0); - + for (i=0; i<nSecondItem; ++i) { ::sal_Int32 nExpectedIndex = (c-1)-i; @@ -147,10 +147,10 @@ void HistoryOptTest::impl_testHistory(EHistoryType eHistory , if ( ! impl_existsItemAtIndex(nNewestItem, 0)) throw css::uno::Exception(MESSAGE_WRONG_ORDER, 0); - + if (impl_existsItem(nOldestItem)) throw css::uno::Exception(MESSAGE_UNEXPECTED_ITEM, 0); - + // e) Check if decreasing list size will remove oldest items. // Note: impl_setSize() will make sure that 3 items exists only. // Otherwhise it throws an exception. If we further check @@ -185,17 +185,17 @@ void HistoryOptTest::impl_clearList() if (nCount != 0) throw css::uno::Exception(MESSAGE_CLEAR_FAILED, 0); - + css::uno::Reference< css::container::XNameAccess > xList; xList = impl_getItemList(); nCount = xList->getElementNames().getLength(); - + if (nCount != 0) throw css::uno::Exception(MESSAGE_CLEAR_FAILED, 0); - + xList = impl_getOrderList(); nCount = xList->getElementNames().getLength(); - + if (nCount != 0) throw css::uno::Exception(MESSAGE_CLEAR_FAILED, 0); } @@ -210,7 +210,7 @@ void HistoryOptTest::impl_setSize(::sal_Int32 nSize) ::sal_Int32 nCheck = m_aConfigItem.GetSize(m_eList); if (nCheck != nSize) throw css::uno::Exception(MESSAGE_SETSIZE_FAILED, 0); - + // b) current size of used XCU lists reflects the current state of // history list and not max size. So it can be less then size ! css::uno::Reference< css::container::XNameAccess > xList; @@ -279,7 +279,7 @@ void HistoryOptTest::impl_appendItem(::sal_Int32 nItem) { const ::comphelper::SequenceAsHashMap aItem(lItems[i]); const ::rtl::OUString& sCheck = aItem.getUnpackedValueOrDefault(s_sURL, ::rtl::OUString()); - + bFound = sCheck.equals(sURL); if (bFound) break; @@ -294,12 +294,12 @@ void HistoryOptTest::impl_appendItem(::sal_Int32 nItem) css::uno::Reference< css::container::XNameAccess > xItemList = impl_getItemList(); css::uno::Reference< css::container::XNameAccess > xItem ; xItemList->getByName(sURL) >>= xItem; - + bFound = xItem.is(); } catch(const css::container::NoSuchElementException&) {} - + return bFound; } @@ -328,23 +328,23 @@ void HistoryOptTest::impl_appendItem(::sal_Int32 nItem) css::uno::Reference< css::container::XNameAccess > xItemList = impl_getItemList(); css::uno::Reference< css::container::XNameAccess > xItem ; xItemList->getByName(sURL) >>= xItem; - + bFound = xItem.is(); } catch(const css::container::NoSuchElementException&) {} - + if ( ! bFound) return sal_False; bFound = sal_False; - + try { const ::rtl::OUString sOrder = ::rtl::OUString::valueOf(nIndex); css::uno::Reference< css::container::XNameAccess > xOrderList = impl_getOrderList(); css::uno::Reference< css::container::XNameAccess > xOrder ; xOrderList->getByName(sOrder) >>= xOrder; - + if (xOrder.is()) { xOrder->getByName(s_sHistoryItemRef) >>= sCheck; @@ -353,7 +353,7 @@ void HistoryOptTest::impl_appendItem(::sal_Int32 nItem) } catch(const css::container::NoSuchElementException&) {} - + return bFound; } @@ -363,10 +363,10 @@ css::uno::Reference< css::container::XNameAccess > HistoryOptTest::impl_getItemL css::uno::Reference< css::container::XNameAccess > xHistory = impl_getNewHistory(); css::uno::Reference< css::container::XNameAccess > xList ; xHistory->getByName (s_sItemList) >>= xList; - + if ( ! xList.is()) throw css::uno::Exception(MESSAGE_MISS_ITEMLIST, 0); - + return xList; } @@ -376,10 +376,10 @@ css::uno::Reference< css::container::XNameAccess > HistoryOptTest::impl_getOrder css::uno::Reference< css::container::XNameAccess > xHistory = impl_getNewHistory(); css::uno::Reference< css::container::XNameAccess > xList ; xHistory->getByName (s_sOrderList) >>= xList; - + if ( ! xList.is()) throw css::uno::Exception(MESSAGE_MISS_ORDERLIST, 0); - + return xList; } @@ -403,11 +403,11 @@ css::uno::Reference< css::container::XNameAccess > HistoryOptTest::impl_getNewHi case ePICKLIST : m_xHistoriesXCU->getByName(s_sPickList) >>= xHistory; break; - + case eHISTORY : m_xHistoriesXCU->getByName(s_sURLHistory) >>= xHistory; break; - + case eHELPBOOKMARKS : m_xHistoriesXCU->getByName(s_sHelpBookmarks) >>= xHistory; break; @@ -415,7 +415,7 @@ css::uno::Reference< css::container::XNameAccess > HistoryOptTest::impl_getNewHi if ( ! xHistory.is()) throw css::uno::Exception(MESSAGE_MISS_HISTORY, 0); - + return xHistory; } @@ -439,11 +439,11 @@ css::uno::Reference< css::container::XNameAccess > HistoryOptTest::impl_getOldHi case ePICKLIST : m_xCommonXCU->getByName(s_sPickList) >>= xHistory; break; - + case eHISTORY : m_xCommonXCU->getByName(s_sURLHistory) >>= xHistory; break; - + case eHELPBOOKMARKS : m_xCommonXCU->getByName(s_sHelpBookmarks) >>= xHistory; break; @@ -476,13 +476,13 @@ void HistoryOptTest::impl_clearList(const ::rtl::OUString& sList) if (xListAccess.is()) { - xListAccess->getByName(s_sItemList) >>= xItemOrder ; - sFileList = xItemOrder->getElementNames(); + xListAccess->getByName(s_sItemList) >>= xItemOrder ; + sFileList = xItemOrder->getElementNames(); for(sal_Int32 i=0; i<sFileList.getLength(); ++i) xItemOrder->removeByName(sFileList[i]); xListAccess->getByName(s_sOrderList) >>= xItemOrder ; - sFileList = xItemOrder->getElementNames(); + sFileList = xItemOrder->getElementNames(); for(sal_Int32 j=0; j<sFileList.getLength(); ++j) xItemOrder->removeByName(sFileList[j]); @@ -494,7 +494,7 @@ void HistoryOptTest::impl_clearList(const ::rtl::OUString& sList) } //============================================================================= -// use configuration API (not ConfigItem!) to verify the results within XML ! +// use configuration API (not ConfigItem!) to verify the results within XML ! sal_Bool HistoryOptTest::impl_isListEmpty(const ::rtl::OUString& sList) { css::uno::Reference< css::container::XNameAccess > xListAccess; @@ -526,7 +526,7 @@ sal_Bool HistoryOptTest::impl_isListEmpty(const ::rtl::OUString& sList) } //============================================================================= -// append a item: use configuration API (not ConfigItem!) to verify the results within XML ! +// append a item: use configuration API (not ConfigItem!) to verify the results within XML ! void HistoryOptTest::impl_appendItem(const ::rtl::OUString& sList) {//to do... } @@ -547,7 +547,7 @@ void HistoryOptTest::impl_checkGetSize(const ::rtl::OUString& sList) xSet->setPropertyValue(s_sPickListSize, css::uno::makeAny(nSize+1)); ::comphelper::ConfigurationHelper::flush(m_xCommonXCU); - nSize_ = aHistoryOpt.GetSize(ePICKLIST); + nSize_ = aHistoryOpt.GetSize(ePICKLIST); if (nSize_ == nSize) throw css::uno::RuntimeException( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetSize(ePICKLIST) error!")), 0); @@ -560,7 +560,7 @@ void HistoryOptTest::impl_checkGetSize(const ::rtl::OUString& sList) xSet->setPropertyValue(s_sURLHistorySize, css::uno::makeAny(nSize+1)); ::comphelper::ConfigurationHelper::flush(m_xCommonXCU); - nSize_ = aHistoryOpt.GetSize(eHISTORY); + nSize_ = aHistoryOpt.GetSize(eHISTORY); if (nSize_ == nSize) throw css::uno::RuntimeException( @@ -574,7 +574,7 @@ void HistoryOptTest::impl_checkGetSize(const ::rtl::OUString& sList) xSet->setPropertyValue(s_sHelpBookmarksSize, css::uno::makeAny(nSize+1)); ::comphelper::ConfigurationHelper::flush(m_xCommonXCU); - nSize_ = aHistoryOpt.GetSize(eHELPBOOKMARKS); + nSize_ = aHistoryOpt.GetSize(eHELPBOOKMARKS); if (nSize_ == nSize) throw css::uno::RuntimeException( @@ -651,7 +651,7 @@ void HistoryOptTest::impl_checkClear(const ::rtl::OUString& sList) if ( !impl_isListEmpty(s_sHelpBookmarks) ) throw css::uno::RuntimeException( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Clear(eHELPBOOKMARKS) error!")), 0); - } + } } //============================================================================= @@ -661,7 +661,7 @@ void HistoryOptTest::impl_checkGetList(const ::rtl::OUString& sList) if (sList.equalsAscii("PickList")) { impl_clearList(s_sPickList); - aHistoryOpt.AppendItem( ePICKLIST , + aHistoryOpt.AppendItem( ePICKLIST , ::rtl::OUString::createFromAscii("file:///c/test1"), ::rtl::OUString::createFromAscii(""), ::rtl::OUString::createFromAscii(""), @@ -676,7 +676,7 @@ void HistoryOptTest::impl_checkGetList(const ::rtl::OUString& sList) else if (sList.equalsAscii("URLHistory")) { impl_clearList(s_sURLHistory); - aHistoryOpt.AppendItem( eHISTORY , + aHistoryOpt.AppendItem( eHISTORY , ::rtl::OUString::createFromAscii("file:///c/test1"), ::rtl::OUString::createFromAscii(""), ::rtl::OUString::createFromAscii(""), @@ -691,7 +691,7 @@ void HistoryOptTest::impl_checkGetList(const ::rtl::OUString& sList) else if (sList.equalsAscii("HelpBookmarks")) { impl_clearList(s_sHelpBookmarks); - aHistoryOpt.AppendItem( eHELPBOOKMARKS , + aHistoryOpt.AppendItem( eHELPBOOKMARKS , ::rtl::OUString::createFromAscii("file:///c/test1"), ::rtl::OUString::createFromAscii(""), ::rtl::OUString::createFromAscii(""), @@ -701,7 +701,7 @@ void HistoryOptTest::impl_checkGetList(const ::rtl::OUString& sList) if ( aHistoryList.getLength()==0 ) throw css::uno::RuntimeException( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetList(eHELPBOOKMARKS) error!")), 0); - } + } } void HistoryOptTest::impl_checkAppendItem(const ::rtl::OUString& sList) @@ -712,13 +712,13 @@ void HistoryOptTest::impl_checkAppendItem(const ::rtl::OUString& sList) sal_Int32 nListSize = aHistoryOpt.GetSize(ePICKLIST); for (sal_Int32 i=0; i<nListSize; ++i) - aHistoryOpt.AppendItem( ePICKLIST , + aHistoryOpt.AppendItem( ePICKLIST , ::rtl::OUString::valueOf(i), ::rtl::OUString::createFromAscii(""), ::rtl::OUString::createFromAscii(""), ::rtl::OUString::createFromAscii("") ); - aHistoryOpt.AppendItem( ePICKLIST , + aHistoryOpt.AppendItem( ePICKLIST , ::rtl::OUString::valueOf(nListSize), ::rtl::OUString::createFromAscii(""), ::rtl::OUString::createFromAscii(""), @@ -731,13 +731,13 @@ void HistoryOptTest::impl_checkAppendItem(const ::rtl::OUString& sList) sal_Int32 nListSize = aHistoryOpt.GetSize(eHISTORY); for (sal_Int32 i=0; i<nListSize; ++i) - aHistoryOpt.AppendItem( eHISTORY , + aHistoryOpt.AppendItem( eHISTORY , ::rtl::OUString::valueOf(i), ::rtl::OUString::createFromAscii(""), ::rtl::OUString::createFromAscii(""), ::rtl::OUString::createFromAscii("") ); - aHistoryOpt.AppendItem( eHISTORY , + aHistoryOpt.AppendItem( eHISTORY , ::rtl::OUString::valueOf(nListSize), ::rtl::OUString::createFromAscii(""), ::rtl::OUString::createFromAscii(""), @@ -750,17 +750,17 @@ void HistoryOptTest::impl_checkAppendItem(const ::rtl::OUString& sList) //sal_Int32 nListSize = aHistoryOpt.GetSize(eHELPBOOKMARKS); //for (sal_Int32 i=0; i<nListSize; ++i) - // aHistoryOpt.AppendItem( eHELPBOOKMARKS , - // ::rtl::OUString::valueOf(i), - // ::rtl::OUString::createFromAscii(""), - // ::rtl::OUString::createFromAscii(""), - // ::rtl::OUString::createFromAscii("") ); - - //aHistoryOpt.AppendItem( eHELPBOOKMARKS , - // ::rtl::OUString::valueOf(nListSize), - // ::rtl::OUString::createFromAscii(""), - // ::rtl::OUString::createFromAscii(""), - // ::rtl::OUString::createFromAscii("") ); + // aHistoryOpt.AppendItem( eHELPBOOKMARKS , + // ::rtl::OUString::valueOf(i), + // ::rtl::OUString::createFromAscii(""), + // ::rtl::OUString::createFromAscii(""), + // ::rtl::OUString::createFromAscii("") ); + + //aHistoryOpt.AppendItem( eHELPBOOKMARKS , + // ::rtl::OUString::valueOf(nListSize), + // ::rtl::OUString::createFromAscii(""), + // ::rtl::OUString::createFromAscii(""), + // ::rtl::OUString::createFromAscii("") ); } } @@ -789,7 +789,7 @@ void HistoryOptTest::impl_checkURLHistory() //============================================================================= void HistoryOptTest::impl_checkHelpBookmarks() { - impl_checkGetSize(s_sHelpBookmarks); + impl_checkGetSize(s_sHelpBookmarks); impl_checkSetSize(s_sHelpBookmarks); impl_checkClear(s_sHelpBookmarks); diff --git a/svl/qa/complex/ConfigItems/helper/HistoryOptTest.hxx b/svl/qa/complex/ConfigItems/helper/HistoryOptTest.hxx index c73a71e3d81e..1162c07254ff 100644 --- a/svl/qa/complex/ConfigItems/helper/HistoryOptTest.hxx +++ b/svl/qa/complex/ConfigItems/helper/HistoryOptTest.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/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; diff --git a/svl/qa/complex/ConfigItems/helper/PrintOptTest.hxx b/svl/qa/complex/ConfigItems/helper/PrintOptTest.hxx index 2d43d7057154..84b2cedc7726 100644 --- a/svl/qa/complex/ConfigItems/helper/PrintOptTest.hxx +++ b/svl/qa/complex/ConfigItems/helper/PrintOptTest.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 @@ -25,7 +25,7 @@ * for a copy of the LGPLv3 License. * ************************************************************************/ - + #ifndef SVTOOLS_PRINTOPTTEST_HXX #define SVTOOLS_PRINTOPTTEST_HXX @@ -37,17 +37,17 @@ namespace css = ::com::sun::star; class PrintOptTest { public: - + PrintOptTest(); ~PrintOptTest(); void impl_checkPrint(); private: //members - + SvtPrinterOptions aPrintOpt; - css::uno::Reference< css::container::XNameAccess > m_xCfg; - css::uno::Reference< css::container::XNameAccess > m_xNode; + css::uno::Reference< css::container::XNameAccess > m_xCfg; + css::uno::Reference< css::container::XNameAccess > m_xNode; private: // methods sal_Bool impl_IsReduceTransparency() const ; @@ -55,17 +55,17 @@ private: // methods sal_Int16 impl_GetReducedTransparencyMode() const ; void impl_SetReducedTransparencyMode( sal_Int16 nMode ) ; - - sal_Bool impl_IsReduceGradients() const ; + + sal_Bool impl_IsReduceGradients() const ; void impl_SetReduceGradients( sal_Bool bState ) ; sal_Int16 impl_GetReducedGradientMode() const ; void impl_SetReducedGradientMode( sal_Int16 nMode ) ; sal_Int16 impl_GetReducedGradientStepCount() const ; - void impl_SetReducedGradientStepCount( sal_Int16 nStepCount ); + void impl_SetReducedGradientStepCount( sal_Int16 nStepCount ); - sal_Bool impl_IsReduceBitmaps() const ; + sal_Bool impl_IsReduceBitmaps() const ; void impl_SetReduceBitmaps( sal_Bool bState ) ; sal_Int16 impl_GetReducedBitmapMode() const ; @@ -73,11 +73,11 @@ private: // methods sal_Int16 impl_GetReducedBitmapResolution() const ; void impl_SetReducedBitmapResolution( sal_Int16 nResolution ) ; - - sal_Bool impl_IsReducedBitmapIncludesTransparency() const ; + + sal_Bool impl_IsReducedBitmapIncludesTransparency() const ; void impl_SetReducedBitmapIncludesTransparency( sal_Bool bState ) ; - sal_Bool impl_IsConvertToGreyscales() const; + sal_Bool impl_IsConvertToGreyscales() const; void impl_SetConvertToGreyscales( sal_Bool bState ) ; }; diff --git a/svl/qa/complex/ConfigItems/helper/UserOptTest.cxx b/svl/qa/complex/ConfigItems/helper/UserOptTest.cxx index 571d5bb9e3ed..62bd0ba3851f 100644 --- a/svl/qa/complex/ConfigItems/helper/UserOptTest.cxx +++ b/svl/qa/complex/ConfigItems/helper/UserOptTest.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 @@ -65,41 +65,41 @@ UserOptTest::~UserOptTest() void UserOptTest::impl_checkUserData() { - impl_checkSetCompany( ::rtl::OUString() ); - impl_checkSetFirstName( ::rtl::OUString() ); - impl_checkSetLastName( ::rtl::OUString() ); - impl_checkSetID( ::rtl::OUString() ); - impl_checkSetStreet( ::rtl::OUString() ); - impl_checkSetCity( ::rtl::OUString() ); - impl_checkSetState( ::rtl::OUString() ); - impl_checkSetZip( ::rtl::OUString() ); + impl_checkSetCompany( ::rtl::OUString() ); + impl_checkSetFirstName( ::rtl::OUString() ); + impl_checkSetLastName( ::rtl::OUString() ); + impl_checkSetID( ::rtl::OUString() ); + impl_checkSetStreet( ::rtl::OUString() ); + impl_checkSetCity( ::rtl::OUString() ); + impl_checkSetState( ::rtl::OUString() ); + impl_checkSetZip( ::rtl::OUString() ); impl_checkSetCountry( ::rtl::OUString() ); impl_checkSetPosition( ::rtl::OUString() ); - impl_checkSetTitle( ::rtl::OUString() ); + impl_checkSetTitle( ::rtl::OUString() ); impl_checkSetTelephoneHome( ::rtl::OUString() ); impl_checkSetTelephoneWork( ::rtl::OUString() ); - impl_checkSetFax( ::rtl::OUString() ); + impl_checkSetFax( ::rtl::OUString() ); impl_checkSetEmail( ::rtl::OUString() ); - //impl_checkSetCustomerNumber( ::rtl::OUString() ); + //impl_checkSetCustomerNumber( ::rtl::OUString() ); impl_checkSetFathersName( ::rtl::OUString() ); impl_checkSetApartment( ::rtl::OUString() ); - impl_checkSetCompany( ::rtl::OUString::createFromAscii("RedFlag2000") ); - impl_checkSetFirstName( ::rtl::OUString::createFromAscii("Yan") ); - impl_checkSetLastName( ::rtl::OUString::createFromAscii("Wu") ); - impl_checkSetID( ::rtl::OUString::createFromAscii("wuy") ); - impl_checkSetStreet( ::rtl::OUString::createFromAscii("SouthFifthRing") ); - impl_checkSetCity( ::rtl::OUString::createFromAscii("Beijing") ); - impl_checkSetState( ::rtl::OUString::createFromAscii("Beijing") ); - impl_checkSetZip( ::rtl::OUString::createFromAscii("100176") ); + impl_checkSetCompany( ::rtl::OUString::createFromAscii("RedFlag2000") ); + impl_checkSetFirstName( ::rtl::OUString::createFromAscii("Yan") ); + impl_checkSetLastName( ::rtl::OUString::createFromAscii("Wu") ); + impl_checkSetID( ::rtl::OUString::createFromAscii("wuy") ); + impl_checkSetStreet( ::rtl::OUString::createFromAscii("SouthFifthRing") ); + impl_checkSetCity( ::rtl::OUString::createFromAscii("Beijing") ); + impl_checkSetState( ::rtl::OUString::createFromAscii("Beijing") ); + impl_checkSetZip( ::rtl::OUString::createFromAscii("100176") ); impl_checkSetCountry( ::rtl::OUString::createFromAscii("China") ); impl_checkSetPosition( ::rtl::OUString::createFromAscii("Engineer") ); - impl_checkSetTitle( ::rtl::OUString::createFromAscii("Software Engineer") ); + impl_checkSetTitle( ::rtl::OUString::createFromAscii("Software Engineer") ); impl_checkSetTelephoneHome( ::rtl::OUString::createFromAscii("010-51570010") ); impl_checkSetTelephoneWork( ::rtl::OUString::createFromAscii("010-51570010") ); - impl_checkSetFax( ::rtl::OUString::createFromAscii("010-51570010") ); + impl_checkSetFax( ::rtl::OUString::createFromAscii("010-51570010") ); impl_checkSetEmail( ::rtl::OUString::createFromAscii("wuy@redflag2000.cn") ); - //impl_checkSetCustomerNumber( ::rtl::OUString::createFromAscii("87654321") ); + //impl_checkSetCustomerNumber( ::rtl::OUString::createFromAscii("87654321") ); impl_checkSetFathersName( ::rtl::OUString::createFromAscii("father") ); impl_checkSetApartment( ::rtl::OUString::createFromAscii("apartment") ); } diff --git a/svl/qa/complex/ConfigItems/helper/UserOptTest.hxx b/svl/qa/complex/ConfigItems/helper/UserOptTest.hxx index 11e7de6794c1..ebbde98f63fc 100644 --- a/svl/qa/complex/ConfigItems/helper/UserOptTest.hxx +++ b/svl/qa/complex/ConfigItems/helper/UserOptTest.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 |