Lines Matching refs:OUString
76 OUString const & rBaseNode, in mergeKeys()
77 OUString const & rURL ) in mergeKeys()
104 OUString getExePath() in getExePath()
106 OUString exe; in getExePath()
122 OUString userReg = getExePath(); in setStarUserRegistry()
123 userReg += OUString::createFromAscii("user.rdb"); in setStarUserRegistry()
136 void setLinkInDefaultRegistry(const OUString& linkName, const OUString& linkTarget) in setLinkInDefaultRegistry()
142 OUString appReg = getExePath(); in setLinkInDefaultRegistry()
143 appReg += OUString::createFromAscii("stoctest.rdb"); in setLinkInDefaultRegistry()
158 OUString const & testreg, in test_SimpleRegistry()
159 OUString const & testreg2, in test_SimpleRegistry()
165 OUString dllName( in test_SimpleRegistry()
172 module.getFunctionSymbol( OUString::createFromAscii(COMPONENT_GETFACTORY) ); in test_SimpleRegistry()
204 …TEST_ENSHURE( xServInfo->supportsService(OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.regis… in test_SimpleRegistry()
223 …Reference<XRegistryKey> xKey = xRootKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("FirstKey… in test_SimpleRegistry()
225 …Reference<XRegistryKey> xSubKey = xKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("FirstSubK… in test_SimpleRegistry()
228 xSubKey = xKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("SecondSubKey") )); in test_SimpleRegistry()
229 xSubKey->setAsciiValue(OUString( RTL_CONSTASCII_USTRINGPARAM("ich bin ein acsii value") )); in test_SimpleRegistry()
231 xSubKey = xKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("ThirdSubKey") )); in test_SimpleRegistry()
232 xSubKey->setStringValue(OUString( RTL_CONSTASCII_USTRINGPARAM("ich bin ein unicode value") )); in test_SimpleRegistry()
234 xSubKey = xKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("FourthSubKey") )); in test_SimpleRegistry()
238 Sequence<OUString> seqNames = xKey->getKeyNames(); in test_SimpleRegistry()
241 OUString name; in test_SimpleRegistry()
247 if (name == OUString( RTL_CONSTASCII_USTRINGPARAM("/FirstKey/FirstSubKey") )) in test_SimpleRegistry()
252 if (name == OUString( RTL_CONSTASCII_USTRINGPARAM("/FirstKey/SecondSubKey") )) in test_SimpleRegistry()
254 …TEST_ENSHURE( xSubKey->getAsciiValue() == OUString( RTL_CONSTASCII_USTRINGPARAM("ich bin ein acsii… in test_SimpleRegistry()
257 if (name == OUString( RTL_CONSTASCII_USTRINGPARAM("/FirstKey/ThirdSubKey") )) in test_SimpleRegistry()
259 …TEST_ENSHURE( xSubKey->getStringValue() == OUString( RTL_CONSTASCII_USTRINGPARAM("ich bin ein unic… in test_SimpleRegistry()
262 if (name == OUString( RTL_CONSTASCII_USTRINGPARAM("/FirstKey/FourthSubKey") )) in test_SimpleRegistry()
274 xRootKey->deleteKey(OUString( RTL_CONSTASCII_USTRINGPARAM("FirstKey") )); in test_SimpleRegistry()
275 xRootKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("SecondFirstKey" ))); in test_SimpleRegistry()
277 xKey = xRootKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("SecondKey") )); in test_SimpleRegistry()
290 xKey = xRootKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("ThirdKey") )); in test_SimpleRegistry()
291 OUString pAscii[3]; in test_SimpleRegistry()
292 pAscii[0] = OUString( RTL_CONSTASCII_USTRINGPARAM("Hallo") ); in test_SimpleRegistry()
293 pAscii[1] = OUString( RTL_CONSTASCII_USTRINGPARAM("jetzt komm") ); in test_SimpleRegistry()
294 pAscii[2] = OUString( RTL_CONSTASCII_USTRINGPARAM("ich") ); in test_SimpleRegistry()
296 Sequence<OUString> seqAscii(pAscii, 3); in test_SimpleRegistry()
299 Sequence<OUString> seqAscii2; in test_SimpleRegistry()
302 …TEST_ENSHURE( seqAscii2.getArray()[0] == OUString( RTL_CONSTASCII_USTRINGPARAM("Hallo") ), "test_S… in test_SimpleRegistry()
303 …TEST_ENSHURE( seqAscii2.getArray()[1] == OUString( RTL_CONSTASCII_USTRINGPARAM("jetzt komm") ), "t… in test_SimpleRegistry()
304 …TEST_ENSHURE( seqAscii2.getArray()[2] == OUString( RTL_CONSTASCII_USTRINGPARAM("ich") ), "test_Sim… in test_SimpleRegistry()
306 xKey = xRootKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("FourthKey") )); in test_SimpleRegistry()
307 OUString pUnicode[3]; in test_SimpleRegistry()
308 pUnicode[0] = OUString( RTL_CONSTASCII_USTRINGPARAM("Hallo") ); in test_SimpleRegistry()
309 pUnicode[1] = OUString( RTL_CONSTASCII_USTRINGPARAM("jetzt komm") ); in test_SimpleRegistry()
310 pUnicode[2] = OUString( RTL_CONSTASCII_USTRINGPARAM("ich als unicode") ); in test_SimpleRegistry()
312 Sequence<OUString> seqUnicode(pUnicode, 3); in test_SimpleRegistry()
315 Sequence<OUString> seqUnicode2; in test_SimpleRegistry()
318 …TEST_ENSHURE( seqUnicode2.getArray()[0] == OUString( RTL_CONSTASCII_USTRINGPARAM("Hallo") ), "test… in test_SimpleRegistry()
319 …TEST_ENSHURE( seqUnicode2.getArray()[1] == OUString( RTL_CONSTASCII_USTRINGPARAM("jetzt komm") ), … in test_SimpleRegistry()
320 …TEST_ENSHURE( seqUnicode2.getArray()[2] == OUString( RTL_CONSTASCII_USTRINGPARAM("ich als unicode"… in test_SimpleRegistry()
326 …xKey = xRootKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("ThirdKey/FirstSubKey/WithSubSubK… in test_SimpleRegistry()
330 OUString( RTL_CONSTASCII_USTRINGPARAM("LinkTest") ), in test_SimpleRegistry()
331 OUString( RTL_CONSTASCII_USTRINGPARAM("/ThirdKey/FirstSubKey/WithSubSubKey") )), in test_SimpleRegistry()
343 OUString(), in test_SimpleRegistry()
348 xReg->mergeKey(OUString(), testreg2); in test_SimpleRegistry()
352 xKey = xRootKey->openKey( OUString( RTL_CONSTASCII_USTRINGPARAM("LinkTest") ) ); in test_SimpleRegistry()
359 xRootKey->getKeyType( OUString( RTL_CONSTASCII_USTRINGPARAM("LinkTest") ) ) == in test_SimpleRegistry()
363 xKey = xRootKey->openKey(OUString( RTL_CONSTASCII_USTRINGPARAM("FirstKey/SecondSubKey") )); in test_SimpleRegistry()
367 xKey = xRootKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("FifthKey") )); in test_SimpleRegistry()
368 xKey->createLink(OUString( RTL_CONSTASCII_USTRINGPARAM("MyFirstLink") ), in test_SimpleRegistry()
369 OUString( RTL_CONSTASCII_USTRINGPARAM("/ThirdKey/FirstSubKey") )); in test_SimpleRegistry()
371 xKey = xRootKey->openKey(OUString( RTL_CONSTASCII_USTRINGPARAM("/FifthKey/MyFirstLink") )); in test_SimpleRegistry()
373 …TEST_ENSHURE( xKey->getKeyName() == OUString( RTL_CONSTASCII_USTRINGPARAM("/ThirdKey/FirstSubKey")… in test_SimpleRegistry()
375 xKey->createLink(OUString( RTL_CONSTASCII_USTRINGPARAM("/WithSubSubKey/MyFourthLink") ), in test_SimpleRegistry()
376 OUString( RTL_CONSTASCII_USTRINGPARAM("/FourthKey/MySecondLink") )); in test_SimpleRegistry()
378 …TEST_ENSHURE( xKey->getLinkTarget(OUString( RTL_CONSTASCII_USTRINGPARAM("/WithSubSubKey/MyFourthLi… in test_SimpleRegistry()
379 …== OUString( RTL_CONSTASCII_USTRINGPARAM("/FourthKey/MySecondLink") ), "test_SimpleRegistry error … in test_SimpleRegistry()
383 …TEST_ENSHURE( xKey->getResolvedName(OUString( RTL_CONSTASCII_USTRINGPARAM("/WithSubSubKey/MyFourth… in test_SimpleRegistry()
384 …== OUString( RTL_CONSTASCII_USTRINGPARAM("/FourthKey/MySecondLink/BlaBlaBla") ), "test_SimpleRegis… in test_SimpleRegistry()
390 xRootKey->createLink(OUString( RTL_CONSTASCII_USTRINGPARAM("/FourthKey/MySecondLink") ), in test_SimpleRegistry()
391 OUString( RTL_CONSTASCII_USTRINGPARAM("/SixthKey/MyThirdLink") )); in test_SimpleRegistry()
392 xKey = xRootKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("SixthKey") )); in test_SimpleRegistry()
393 xKey->createLink(OUString( RTL_CONSTASCII_USTRINGPARAM("MyThirdLink") ), in test_SimpleRegistry()
394 OUString( RTL_CONSTASCII_USTRINGPARAM("/FourthKey/MySecondLink") )); in test_SimpleRegistry()
396 xKey = xRootKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("/SixthKey/SixthSubKey") )); in test_SimpleRegistry()
400 …xRootKey->openKey(OUString( RTL_CONSTASCII_USTRINGPARAM("/FifthKey/MyFirstLink/WithSubSubKey/MyFou… in test_SimpleRegistry()
406 …TEST_ENSHURE( xRootKey->getLinkTarget(OUString( RTL_CONSTASCII_USTRINGPARAM("/FifthKey/MyFirstLink… in test_SimpleRegistry()
407 …== OUString( RTL_CONSTASCII_USTRINGPARAM("/FourthKey/MySecondLink") ), "test_SimpleRegistry error … in test_SimpleRegistry()
409 …xRootKey->deleteLink(OUString( RTL_CONSTASCII_USTRINGPARAM("/FifthKey/MyFirstLink/WithSubSubKey/My… in test_SimpleRegistry()
411 xRootKey->createLink(OUString( RTL_CONSTASCII_USTRINGPARAM("/FourthKey/MySecondLink") ), in test_SimpleRegistry()
412 OUString( RTL_CONSTASCII_USTRINGPARAM("/ThirdKey/FirstSubKey/WithSubSubKey") )); in test_SimpleRegistry()
414 xKey = xRootKey->openKey(OUString( RTL_CONSTASCII_USTRINGPARAM("SixthKey") )); in test_SimpleRegistry()
418 …TEST_ENSHURE( seqNames.getArray()[0] == OUString( RTL_CONSTASCII_USTRINGPARAM("/SixthKey/SixthSubK… in test_SimpleRegistry()
420 …TEST_ENSHURE( seqNames.getArray()[1] == OUString( RTL_CONSTASCII_USTRINGPARAM("/SixthKey/MyThirdLi… in test_SimpleRegistry()
423 …TEST_ENSHURE( seqKeys.getArray()[0]->getKeyName() == OUString( RTL_CONSTASCII_USTRINGPARAM("/Sixth… in test_SimpleRegistry()
425 …TEST_ENSHURE( seqKeys.getArray()[1]->getKeyName() == OUString( RTL_CONSTASCII_USTRINGPARAM("/Third… in test_SimpleRegistry()
428 xRootKey->deleteLink(OUString( RTL_CONSTASCII_USTRINGPARAM("/FourthKey/MySecondLink") )); in test_SimpleRegistry()
447 OUString const & testreg, in test_DefaultRegistry()
448 OUString const & testreg2, in test_DefaultRegistry()
452 OUString exePath( getExePath() ); in test_DefaultRegistry()
453 OUString userRdb(exePath); in test_DefaultRegistry()
454 OUString applicatRdb(exePath); in test_DefaultRegistry()
456 userRdb += OUString::createFromAscii("user.rdb"); in test_DefaultRegistry()
457 applicatRdb += OUString::createFromAscii("stoctest.rdb"); in test_DefaultRegistry()
459 …tory > rSMgr = ::cppu::createRegistryServiceFactory( userRdb, applicatRdb, sal_False, OUString()); in test_DefaultRegistry()
465 …Any aPropertyAny( xPropSet->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("Registry")) ) … in test_DefaultRegistry()
476 …TEST_ENSHURE( xServInfo->getImplementationName() == OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun… in test_DefaultRegistry()
477 …TEST_ENSHURE( xServInfo->supportsService(OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.regis… in test_DefaultRegistry()
487 …Reference<XRegistryKey> xKey = xRootKey->openKey(OUString( RTL_CONSTASCII_USTRINGPARAM("/UCR/com/s… in test_DefaultRegistry()
489 …TEST_ENSHURE( xKey->getKeyName() == OUString( RTL_CONSTASCII_USTRINGPARAM("/UCR/com/sun/star/regis… in test_DefaultRegistry()
496 OUString( RTL_CONSTASCII_USTRINGPARAM("Test") ), in test_DefaultRegistry()
501 xReg->mergeKey(OUString( RTL_CONSTASCII_USTRINGPARAM("Test") ), testreg ); in test_DefaultRegistry()
504 …xKey = xRootKey->openKey(OUString( RTL_CONSTASCII_USTRINGPARAM("Test/ThirdKey/FirstSubKey/WithSubS… in test_DefaultRegistry()
508 xKey = xRootKey->openKey(OUString( RTL_CONSTASCII_USTRINGPARAM("Test/ThirdKey/FirstSubKey") )); in test_DefaultRegistry()
511 xKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("SecondSubSubKey") )); in test_DefaultRegistry()
513 Sequence<OUString> seqNames = xKey->getKeyNames(); in test_DefaultRegistry()
518 xKey = xRootKey->openKey(OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/ThirdKey") )); in test_DefaultRegistry()
524 Sequence<OUString> seqValue = xKey->getAsciiListValue(); in test_DefaultRegistry()
527 TEST_ENSHURE( seqValue.getArray()[0] == OUString( RTL_CONSTASCII_USTRINGPARAM("Hallo") ), in test_DefaultRegistry()
529 TEST_ENSHURE( seqValue.getArray()[1] == OUString( RTL_CONSTASCII_USTRINGPARAM("jetzt komm") ), in test_DefaultRegistry()
531 TEST_ENSHURE( seqValue.getArray()[2] == OUString( RTL_CONSTASCII_USTRINGPARAM("ich") ), in test_DefaultRegistry()
550 xKey = xRootKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/FifthKey") )); in test_DefaultRegistry()
551 xKey->createLink(OUString( RTL_CONSTASCII_USTRINGPARAM("MyFirstLink") ), in test_DefaultRegistry()
552 OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/ThirdKey/FirstSubKey") )); in test_DefaultRegistry()
554 xKey = xRootKey->openKey(OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/FifthKey/MyFirstLink") )); in test_DefaultRegistry()
556 …TEST_ENSHURE( xKey->getKeyName() == OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/ThirdKey/FirstSub… in test_DefaultRegistry()
559 xKey->createLink(OUString( RTL_CONSTASCII_USTRINGPARAM("/WithSubSubKey/MyFourthLink") ), in test_DefaultRegistry()
560 OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/FourthKey/MySecondLink") )); in test_DefaultRegistry()
562 …TEST_ENSHURE( xKey->getLinkTarget(OUString( RTL_CONSTASCII_USTRINGPARAM("/WithSubSubKey/MyFourthLi… in test_DefaultRegistry()
563 == OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/FourthKey/MySecondLink") ), in test_DefaultRegistry()
568 …TEST_ENSHURE( xKey->getResolvedName(OUString( RTL_CONSTASCII_USTRINGPARAM("/WithSubSubKey/MyFourth… in test_DefaultRegistry()
569 == OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/FourthKey/MySecondLink/BlaBlaBla") ), in test_DefaultRegistry()
576 xRootKey->createLink(OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/FourthKey/MySecondLink") ), in test_DefaultRegistry()
577 OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/SixthKey/MyThirdLink") )); in test_DefaultRegistry()
578 xKey = xRootKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/SixthKey") )); in test_DefaultRegistry()
579 xKey->createLink(OUString( RTL_CONSTASCII_USTRINGPARAM("MyThirdLink") ), in test_DefaultRegistry()
580 OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/FourthKey/MySecondLink") )); in test_DefaultRegistry()
584 …xRootKey->openKey(OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/FifthKey/MyFirstLink/WithSubSubKey/… in test_DefaultRegistry()
591 …TEST_ENSHURE( xRootKey->getLinkTarget(OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/FifthKey/MyFirs… in test_DefaultRegistry()
592 == OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/FourthKey/MySecondLink") ), in test_DefaultRegistry()
595 …xRootKey->deleteLink(OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/FifthKey/MyFirstLink/WithSubSubK… in test_DefaultRegistry()
597 …xKey = xRootKey->openKey(OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/DefaultLink/SecondSubSubKey"… in test_DefaultRegistry()
600 …TEST_ENSHURE( xKey->getKeyName() == OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/ThirdKey/FirstSub… in test_DefaultRegistry()
602 …xKey = xRootKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/DefaultLink/ThirdSubSubKey… in test_DefaultRegistry()
605 …TEST_ENSHURE( xKey->getKeyName() == OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/ThirdKey/FirstSub… in test_DefaultRegistry()
609 xKey = xRootKey->openKey(OUString( RTL_CONSTASCII_USTRINGPARAM("Test") )); in test_DefaultRegistry()
612 xRootKey->deleteKey(OUString( RTL_CONSTASCII_USTRINGPARAM("Test") )); in test_DefaultRegistry()
618 OUString( RTL_CONSTASCII_USTRINGPARAM("AllFromTestreg2") ), in test_DefaultRegistry()
623 xReg->mergeKey(OUString( RTL_CONSTASCII_USTRINGPARAM("AllFromTestreg2") ), in test_DefaultRegistry()
627 …xKey = xRootKey->openKey(OUString( RTL_CONSTASCII_USTRINGPARAM("/AllFromTestreg2/ThirdKey/FirstSub… in test_DefaultRegistry()
630 xRootKey->deleteKey(OUString( RTL_CONSTASCII_USTRINGPARAM("/AllFromTestreg2") )); in test_DefaultRegistry()
667 setLinkInDefaultRegistry(OUString::createFromAscii("/Test/DefaultLink"), in SAL_IMPLEMENT_MAIN()
668 OUString::createFromAscii("/Test/FifthKey/MyFirstLink")); in SAL_IMPLEMENT_MAIN()
670 OUString reg1( RTL_CONSTASCII_USTRINGPARAM("testreg1.rdb") ); in SAL_IMPLEMENT_MAIN()
671 OUString reg2( RTL_CONSTASCII_USTRINGPARAM("testreg2.rdb") ); in SAL_IMPLEMENT_MAIN()
672 OUString areg1( RTL_CONSTASCII_USTRINGPARAM("atestreg1.rdb") ); in SAL_IMPLEMENT_MAIN()
673 OUString areg2( RTL_CONSTASCII_USTRINGPARAM("atestreg2.rdb") ); in SAL_IMPLEMENT_MAIN()