Kaydet (Commit) 524a9029 authored tarafından Petr Mladek's avatar Petr Mladek

Merge remote-tracking branch 'origin/libreoffice-3-4'

Conflicts:
	cui/source/options/optchart.cxx
This diff is collapsed.
...@@ -27,8 +27,12 @@ ...@@ -27,8 +27,12 @@
#include <sfx2/sfx.hrc> #include <sfx2/sfx.hrc>
#define ABOUT_BTN_OK 1 #define ABOUT_BTN_OK 1
#define ABOUT_FTXT_VERSION 1 #define ABOUT_FTXT_VERSION 2
#define ABOUT_STR_ACCEL 3 #define ABOUT_STR_ACCEL 3
#define ABOUT_FTXT_COPYRIGHT 4 #define ABOUT_FTXT_COPYRIGHT 4
#define ABOUT_FTXT_LINK 5
#define ABOUT_STR_VERSION 6
#define ABOUT_STR_COPYRIGHT 7
#define ABOUT_STR_LINK 8
...@@ -29,39 +29,57 @@ ...@@ -29,39 +29,57 @@
ModalDialog RID_DEFAULTABOUT ModalDialog RID_DEFAULTABOUT
{ {
HelpID = "cui:ModalDialog:RID_DEFAULTABOUT";
OutputSize = TRUE ; OutputSize = TRUE ;
Size = MAP_APPFONT ( 245 , 260 ) ; Size = MAP_APPFONT ( 245 , 280 ) ;
Moveable = TRUE ; Moveable = TRUE ;
SVLook = TRUE ; SVLook = TRUE ;
Text [ x-comment ] = "PB: ; PB: only %PRODUCTNAME"; // TEXT_DEFAULTABOUT
Text [ en-US ] = "About %PRODUCTNAME" ;
OKButton ABOUT_BTN_OK OKButton ABOUT_BTN_OK
{ {
DefButton = TRUE ; DefButton = TRUE ;
Pos = MAP_APPFONT ( 174 , 6 ) ; Pos = MAP_APPFONT ( 174 , 6 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ; Size = MAP_APPFONT ( 50 , 14 ) ;
}; };
FixedText ABOUT_FTXT_VERSION MultiLineEdit ABOUT_FTXT_VERSION
{ {
Border = FALSE ;
Pos = MAP_APPFONT ( 54 , 6 ) ; Pos = MAP_APPFONT ( 54 , 6 ) ;
Size = MAP_APPFONT ( 118 , 16 ) ; Size = MAP_APPFONT ( 118 , 16 ) ;
WordBreak = TRUE ; IgnoreTab = TRUE ;
Text = "%PRODUCTNAME %ABOUTBOXPRODUCTVERSION %PRODUCTEXTENSION" ; ReadOnly = TRUE ;
AutoVScroll = TRUE ;
}; };
MultiLineEdit ABOUT_FTXT_COPYRIGHT MultiLineEdit ABOUT_FTXT_COPYRIGHT
{ {
HelpID = "cui:MultiLineEdit:RID_DEFAULTABOUT:ABOUT_FTXT_COPYRIGHT"; Border = FALSE ;
Border = TRUE ;
Pos = MAP_APPFONT ( 54 , 25 ) ; Pos = MAP_APPFONT ( 54 , 25 ) ;
Size = MAP_APPFONT ( 168 , 51 ) ; Size = MAP_APPFONT ( 168 , 71 ) ;
IgnoreTab = TRUE ; IgnoreTab = TRUE ;
ReadOnly = TRUE ; ReadOnly = TRUE ;
AutoVScroll = TRUE ; AutoVScroll = TRUE ;
}; };
FixedText ABOUT_FTXT_LINK
{
NoLabel = TRUE;
TabStop = TRUE;
Text [ en-US ] = "Contributor credits";
Pos = MAP_APPFONT ( 54 , 100 ) ;
Size = MAP_APPFONT ( 168 , 10 ) ;
};
String ABOUT_STR_VERSION
{
Text[ en-US ] = "%PRODUCTNAME %ABOUTBOXPRODUCTVERSION %PRODUCTEXTENSION";
};
String ABOUT_STR_COPYRIGHT
{
Text[ en-US ] = "Copyright © 2000, 2010 LibreOffice contributors and/or their affiliates. All rights reserved.\nThis product was created by %OOOVENDOR, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.\n%OOOVENDOR acknowledges all community members, please find more info at the link below:";
};
String ABOUT_STR_LINK
{
Text[ en-US ] = "http://www.libreoffice.org/credits.html";
};
String ABOUT_STR_ACCEL String ABOUT_STR_ACCEL
{ {
Text = "SDT" ; Text = "SDT" ;
}; };
}; };
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/************************************************************************* /*************************************************************************
* *
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
...@@ -33,11 +34,12 @@ ...@@ -33,11 +34,12 @@
#include <vcl/button.hxx> #include <vcl/button.hxx>
#include <vcl/accel.hxx> #include <vcl/accel.hxx>
#include <svtools/svmedit.hxx> #include <svtools/svmedit.hxx>
#include <tools/list.hxx>
#include <svtools/stdctrl.hxx> #include <svtools/stdctrl.hxx>
#include "svtools/fixedhyper.hxx"
#include <sfx2/basedlgs.hxx> // SfxModalDialog #include <sfx2/basedlgs.hxx> // SfxModalDialog
#include <vector>
DECLARE_LIST( AccelList, Accelerator* ) typedef ::std::vector< Accelerator* > AccelList;
// class AboutDialog ----------------------------------------------------- // class AboutDialog -----------------------------------------------------
...@@ -47,15 +49,16 @@ private: ...@@ -47,15 +49,16 @@ private:
OKButton aOKButton; OKButton aOKButton;
Image aAppLogo; Image aAppLogo;
FixedInfo aVersionText; MultiLineEdit aVersionText;
MultiLineEdit aCopyrightText; MultiLineEdit aCopyrightText;
FixedInfo aBuildData; svt::FixedHyperlink aInfoLink;
ResStringArray* pDeveloperAry; // ResStringArray aDeveloperAry; // RIP ...
String aDevVersionStr;
String aAccelStr; String aAccelStr;
String aVersionData; String aVersionData;
String aVersionTextStr;
String aCopyrightTextStr; String aCopyrightTextStr;
String aLinkStr;
AccelList aAccelList; AccelList aAccelList;
...@@ -64,20 +67,20 @@ private: ...@@ -64,20 +67,20 @@ private:
long m_nDeltaWidth; long m_nDeltaWidth;
int m_nPendingScrolls; int m_nPendingScrolls;
sal_Bool bNormal;
protected: protected:
virtual sal_Bool Close(); virtual sal_Bool Close();
virtual void Paint( const Rectangle& ); virtual void Paint( const Rectangle& rRect );
public: public:
AboutDialog( Window* pParent, const ResId& nId ); AboutDialog( Window* pParent, const ResId& rId);
~AboutDialog(); ~AboutDialog();
DECL_LINK( TimerHdl, Timer * ); DECL_LINK( TimerHdl, Timer * );
DECL_LINK( AccelSelectHdl, Accelerator * ); DECL_LINK( AccelSelectHdl, Accelerator * );
DECL_LINK( HandleHyperlink, svt::FixedHyperlink * );
}; };
#endif // #ifndef _ABOUT_HXX #endif // #ifndef _ABOUT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -343,7 +343,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(const sal_Char* _pImplN ...@@ -343,7 +343,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(const sal_Char* _pImplN
sal_Int32 nClasses = s_aClassImplementationNames.getLength(); sal_Int32 nClasses = s_aClassImplementationNames.getLength();
OSL_ENSURE((s_aClassServiceNames.getLength() == nClasses) && OSL_ENSURE((s_aClassServiceNames.getLength() == nClasses) &&
(s_aFactories.getLength() == nClasses), (s_aFactories.getLength() == nClasses),
"forms::component_writeInfo : invalid class infos !"); "forms::component_getFactory : invalid class infos !");
// loop through the sequences and register the service providers // loop through the sequences and register the service providers
const ::rtl::OUString* pClasses = s_aClassImplementationNames.getConstArray(); const ::rtl::OUString* pClasses = s_aClassImplementationNames.getConstArray();
......
FindRegisteredExtensions FindRegisteredExtensions
LookForRegisteredExtensions LookForRegisteredExtensions
RegisterSomeExtensions RegisterSomeExtensions
\ No newline at end of file RestoreRegAllMSDoc
...@@ -213,6 +213,9 @@ static LONG DeleteSubKeyTree( HKEY RootKey, LPCSTR lpKey ) ...@@ -213,6 +213,9 @@ static LONG DeleteSubKeyTree( HKEY RootKey, LPCSTR lpKey )
return rc; return rc;
} }
// Unused
#if 0
//---------------------------------------------------------- //----------------------------------------------------------
static BOOL RemoveExtensionInRegistry( LPCSTR lpSubKey ) static BOOL RemoveExtensionInRegistry( LPCSTR lpSubKey )
{ {
...@@ -263,6 +266,8 @@ static BOOL RemoveExtensionInRegistry( LPCSTR lpSubKey ) ...@@ -263,6 +266,8 @@ static BOOL RemoveExtensionInRegistry( LPCSTR lpSubKey )
return ( ERROR_SUCCESS == lResult ); return ( ERROR_SUCCESS == lResult );
} }
#endif
//---------------------------------------------------------- //----------------------------------------------------------
bool GetMsiProp( MSIHANDLE handle, LPCSTR name, /*out*/std::string& value ) bool GetMsiProp( MSIHANDLE handle, LPCSTR name, /*out*/std::string& value )
{ {
...@@ -306,12 +311,60 @@ static void registerForExtension( MSIHANDLE handle, const int nIndex, bool bRegi ...@@ -306,12 +311,60 @@ static void registerForExtension( MSIHANDLE handle, const int nIndex, bool bRegi
} }
} }
//----------------------------------------------------------
static void saveOldRegistration( LPCSTR lpSubKey )
{
BOOL bRet = false;
HKEY hKey = NULL;
LONG lResult = RegOpenKeyExA( HKEY_CLASSES_ROOT, lpSubKey, 0,
KEY_QUERY_VALUE|KEY_SET_VALUE, &hKey );
if ( ERROR_SUCCESS == lResult )
{
CHAR szBuffer[1024];
DWORD nSize = sizeof( szBuffer );
lResult = RegQueryValueExA( hKey, "", NULL, NULL, (LPBYTE)szBuffer, &nSize );
if ( ERROR_SUCCESS == lResult )
{
szBuffer[nSize] = '\0';
// No need to save assocations for our own types
if ( strncmp( szBuffer, "OpenOffice.org.", 15 ) != 0 )
{
// Save the old association
RegSetValueExA( hKey, "OOoBackupAssociation", 0,
REG_SZ, (LPBYTE)szBuffer, nSize );
// Also save what the old association means, just so we can try to verify
// if/when restoring it that the old application still exists
HKEY hKey2 = NULL;
lResult = RegOpenKeyExA( HKEY_CLASSES_ROOT, szBuffer, 0,
KEY_QUERY_VALUE, &hKey2 );
if ( ERROR_SUCCESS == lResult )
{
nSize = sizeof( szBuffer );
lResult = RegQueryValueExA( hKey2, "", NULL, NULL, (LPBYTE)szBuffer, &nSize );
if ( ERROR_SUCCESS == lResult )
{
RegSetValueExA( hKey, "OOoBackupAssociationDeref", 0,
REG_SZ, (LPBYTE)szBuffer, nSize );
}
RegCloseKey( hKey2 );
}
}
}
RegCloseKey( hKey );
}
}
//---------------------------------------------------------- //----------------------------------------------------------
static void registerForExtensions( MSIHANDLE handle, BOOL bRegisterAll ) static void registerForExtensions( MSIHANDLE handle, BOOL bRegisterAll )
{ // Check all file extensions { // Check all file extensions
int nIndex = 0; int nIndex = 0;
while ( g_Extensions[nIndex] != 0 ) while ( g_Extensions[nIndex] != 0 )
{ {
saveOldRegistration( g_Extensions[nIndex] );
BOOL bRegister = bRegisterAll || CheckExtensionInRegistry( g_Extensions[nIndex] ); BOOL bRegister = bRegisterAll || CheckExtensionInRegistry( g_Extensions[nIndex] );
if ( bRegister ) if ( bRegister )
registerForExtension( handle, nIndex, true ); registerForExtension( handle, nIndex, true );
...@@ -478,6 +531,10 @@ extern "C" UINT __stdcall RegisterSomeExtensions( MSIHANDLE handle ) ...@@ -478,6 +531,10 @@ extern "C" UINT __stdcall RegisterSomeExtensions( MSIHANDLE handle )
} }
//---------------------------------------------------------- //----------------------------------------------------------
//
// This is the (slightly misleadinly named) entry point for the
// custom action called Regallmsdocdll.
//
extern "C" UINT __stdcall FindRegisteredExtensions( MSIHANDLE handle ) extern "C" UINT __stdcall FindRegisteredExtensions( MSIHANDLE handle )
{ {
if ( IsSetMsiProp( handle, "FILETYPEDIALOGUSED" ) ) if ( IsSetMsiProp( handle, "FILETYPEDIALOGUSED" ) )
...@@ -514,7 +571,12 @@ extern "C" UINT __stdcall FindRegisteredExtensions( MSIHANDLE handle ) ...@@ -514,7 +571,12 @@ extern "C" UINT __stdcall FindRegisteredExtensions( MSIHANDLE handle )
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
#if 0
//---------------------------------------------------------- //----------------------------------------------------------
//
// This entry is not called for any custom action.
//
extern "C" UINT __stdcall DeleteRegisteredExtensions( MSIHANDLE /*handle*/ ) extern "C" UINT __stdcall DeleteRegisteredExtensions( MSIHANDLE /*handle*/ )
{ {
OutputDebugStringFormat( "DeleteRegisteredExtensions\n" ); OutputDebugStringFormat( "DeleteRegisteredExtensions\n" );
...@@ -530,4 +592,78 @@ extern "C" UINT __stdcall DeleteRegisteredExtensions( MSIHANDLE /*handle*/ ) ...@@ -530,4 +592,78 @@ extern "C" UINT __stdcall DeleteRegisteredExtensions( MSIHANDLE /*handle*/ )
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
#endif
//----------------------------------------------------------
static void restoreOldRegistration( LPCSTR lpSubKey )
{
BOOL bRet = false;
HKEY hKey = NULL;
LONG lResult = RegOpenKeyExA( HKEY_CLASSES_ROOT, lpSubKey, 0,
KEY_QUERY_VALUE|KEY_SET_VALUE, &hKey );
if ( ERROR_SUCCESS == lResult )
{
CHAR szBuffer[1024];
DWORD nSize = sizeof( szBuffer );
lResult = RegQueryValueExA( hKey, "OOoBackupAssociation", NULL, NULL,
(LPBYTE)szBuffer, &nSize );
if ( ERROR_SUCCESS == lResult )
{
HKEY hKey2 = NULL;
lResult = RegOpenKeyExA( HKEY_CLASSES_ROOT, szBuffer, 0,
KEY_QUERY_VALUE, &hKey2 );
if ( ERROR_SUCCESS == lResult )
{
CHAR szBuffer2[1024];
DWORD nSize2 = sizeof( szBuffer2 );
lResult = RegQueryValueExA( hKey2, "", NULL, NULL, (LPBYTE)szBuffer2, &nSize2 );
if ( ERROR_SUCCESS == lResult )
{
CHAR szBuffer3[1024];
DWORD nSize3 = sizeof( szBuffer3 );
// Try to verify that the old association is OK to restore
lResult = RegQueryValueExA( hKey, "OOoBackupAssociationDeref", NULL, NULL,
(LPBYTE)szBuffer3, &nSize3 );
if ( ERROR_SUCCESS == lResult )
{
if ( nSize2 == nSize3 && strcmp (szBuffer2, szBuffer3) == 0)
{
// Yep. So restore it
RegSetValueExA( hKey, "", 0, REG_SZ, (LPBYTE)szBuffer, nSize );
}
}
}
RegCloseKey( hKey2 );
}
RegDeleteValueA( hKey, "OOoBackupAssociation" );
}
RegDeleteValueA( hKey, "OOoBackupAssociationDeref" );
RegCloseKey( hKey );
}
}
//----------------------------------------------------------
//
// This function is not in OO.o. We call this from the
// Restoreregallmsdocdll custom action.
//
extern "C" UINT __stdcall RestoreRegAllMSDoc( MSIHANDLE /*handle*/ )
{
OutputDebugStringFormat( "RestoreRegAllMSDoc\n" );
int nIndex = 0;
while ( g_Extensions[nIndex] != 0 )
{
restoreOldRegistration( g_Extensions[nIndex] );
++nIndex;
}
return ERROR_SUCCESS;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -158,7 +158,7 @@ public class LocaleCodes extends Resource ...@@ -158,7 +158,7 @@ public class LocaleCodes extends Resource
Ids[94] = "Slovenian;sl;1060"; Ids[94] = "Slovenian;sl;1060";
Ids[95] = "Slovak;sk;1051"; Ids[95] = "Slovak;sk;1051";
Ids[96] = "Sorbian;sb;1070"; Ids[96] = "Sorbian;sb;1070";
Ids[97] = "Spanish - Spain;es-es;1034"; Ids[97] = "Spanish - Spain;es-es;3082";
Ids[98] = "Spanish - Argentina;es-ar;11274"; Ids[98] = "Spanish - Argentina;es-ar;11274";
Ids[99] = "Spanish - Bolivia;es-bo;16394"; Ids[99] = "Spanish - Bolivia;es-bo;16394";
Ids[100] = "Spanish - Chile;es-cl;13322"; Ids[100] = "Spanish - Chile;es-cl;13322";
......
...@@ -52,81 +52,6 @@ using namespace ::com::sun::star::registry; ...@@ -52,81 +52,6 @@ using namespace ::com::sun::star::registry;
extern "C" extern "C"
{ {
sal_Bool SAL_CALL mscrypt_component_writeInfo( void* /*pServiceManager*/ , void* pRegistryKey )
{
sal_Bool result = sal_False;
sal_Int32 i ;
OUString sKeyName ;
Reference< XRegistryKey > xNewKey ;
Sequence< OUString > seqServices ;
Reference< XRegistryKey > xKey( reinterpret_cast< XRegistryKey* >( pRegistryKey ) ) ;
if( xKey.is() ) {
// XMLSignature_MSCryptImpl
sKeyName = OUString( RTL_CONSTASCII_USTRINGPARAM( "/" ) ) ;
sKeyName += XMLSignature_MSCryptImpl::impl_getImplementationName() ;
sKeyName += OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES")) ;
xNewKey = xKey->createKey( sKeyName ) ;
if( xNewKey.is() ) {
seqServices = XMLSignature_MSCryptImpl::impl_getSupportedServiceNames() ;
for( i = seqServices.getLength() ; i -- ; )
xNewKey->createKey( seqServices.getConstArray()[i] ) ;
}
// XMLEncryption_MSCryptImpl
sKeyName = OUString( RTL_CONSTASCII_USTRINGPARAM( "/" ) ) ;
sKeyName += XMLEncryption_MSCryptImpl::impl_getImplementationName() ;
sKeyName += OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES")) ;
xNewKey = xKey->createKey( sKeyName ) ;
if( xNewKey.is() ) {
seqServices = XMLEncryption_MSCryptImpl::impl_getSupportedServiceNames() ;
for( i = seqServices.getLength() ; i -- ; )
xNewKey->createKey( seqServices.getConstArray()[i] ) ;
}
// XMLSecurityContext_MSCryptImpl
sKeyName = OUString( RTL_CONSTASCII_USTRINGPARAM( "/" ) ) ;
sKeyName += XMLSecurityContext_MSCryptImpl::impl_getImplementationName() ;
sKeyName += OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES")) ;
xNewKey = xKey->createKey( sKeyName ) ;
if( xNewKey.is() ) {
seqServices = XMLSecurityContext_MSCryptImpl::impl_getSupportedServiceNames() ;
for( i = seqServices.getLength() ; i -- ; )
xNewKey->createKey( seqServices.getConstArray()[i] ) ;
}
// SecurityEnvironment_MSCryptImpl
sKeyName = OUString( RTL_CONSTASCII_USTRINGPARAM( "/" ) ) ;
sKeyName += SecurityEnvironment_MSCryptImpl::impl_getImplementationName() ;
sKeyName += OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES")) ;
xNewKey = xKey->createKey( sKeyName ) ;
if( xNewKey.is() ) {
seqServices = SecurityEnvironment_MSCryptImpl::impl_getSupportedServiceNames() ;
for( i = seqServices.getLength() ; i -- ; )
xNewKey->createKey( seqServices.getConstArray()[i] ) ;
}
// SEInitializer_MSCryptImpl
sKeyName = OUString( RTL_CONSTASCII_USTRINGPARAM( "/" ) ) ;
sKeyName += SEInitializer_MSCryptImpl_getImplementationName() ;
sKeyName += OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES")) ;
xNewKey = xKey->createKey( sKeyName ) ;
if( xNewKey.is() ) {
seqServices = SEInitializer_MSCryptImpl_getSupportedServiceNames() ;
for( i = seqServices.getLength() ; i -- ; )
xNewKey->createKey( seqServices.getConstArray()[i] ) ;
}
return sal_True;
}
return result;
}
void* SAL_CALL mscrypt_component_getFactory( const sal_Char* pImplName , void* pServiceManager , void* /*pRegistryKey*/ ) void* SAL_CALL mscrypt_component_getFactory( const sal_Char* pImplName , void* pServiceManager , void* /*pRegistryKey*/ )
{ {
void* pRet = 0; void* pRet = 0;
......
...@@ -52,81 +52,6 @@ using namespace ::com::sun::star::registry; ...@@ -52,81 +52,6 @@ using namespace ::com::sun::star::registry;
extern "C" extern "C"
{ {
sal_Bool SAL_CALL nss_component_writeInfo( void* /*pServiceManager*/ , void* pRegistryKey )
{
sal_Bool result = sal_False;
sal_Int32 i ;
OUString sKeyName ;
Reference< XRegistryKey > xNewKey ;
Sequence< OUString > seqServices ;
Reference< XRegistryKey > xKey( reinterpret_cast< XRegistryKey* >( pRegistryKey ) ) ;
if( xKey.is() ) {
// XMLSignature_NssImpl
sKeyName = OUString( RTL_CONSTASCII_USTRINGPARAM( "/" ) ) ;
sKeyName += XMLSignature_NssImpl::impl_getImplementationName() ;
sKeyName += OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES")) ;
xNewKey = xKey->createKey( sKeyName ) ;
if( xNewKey.is() ) {
seqServices = XMLSignature_NssImpl::impl_getSupportedServiceNames() ;
for( i = seqServices.getLength() ; i -- ; )
xNewKey->createKey( seqServices.getConstArray()[i] ) ;
}
// XMLEncryption_NssImpl
sKeyName = OUString( RTL_CONSTASCII_USTRINGPARAM( "/" ) ) ;
sKeyName += XMLEncryption_NssImpl::impl_getImplementationName() ;
sKeyName += OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES")) ;
xNewKey = xKey->createKey( sKeyName ) ;
if( xNewKey.is() ) {
seqServices = XMLEncryption_NssImpl::impl_getSupportedServiceNames() ;
for( i = seqServices.getLength() ; i -- ; )
xNewKey->createKey( seqServices.getConstArray()[i] ) ;
}
// XMLSecurityContext_NssImpl
sKeyName = OUString( RTL_CONSTASCII_USTRINGPARAM( "/" ) ) ;
sKeyName += XMLSecurityContext_NssImpl::impl_getImplementationName() ;
sKeyName += OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES")) ;
xNewKey = xKey->createKey( sKeyName ) ;
if( xNewKey.is() ) {
seqServices = XMLSecurityContext_NssImpl::impl_getSupportedServiceNames() ;
for( i = seqServices.getLength() ; i -- ; )
xNewKey->createKey( seqServices.getConstArray()[i] ) ;
}
// SecurityEnvironment_NssImpl
sKeyName = OUString( RTL_CONSTASCII_USTRINGPARAM( "/" ) ) ;
sKeyName += SecurityEnvironment_NssImpl::impl_getImplementationName() ;
sKeyName += OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES")) ;
xNewKey = xKey->createKey( sKeyName ) ;
if( xNewKey.is() ) {
seqServices = SecurityEnvironment_NssImpl::impl_getSupportedServiceNames() ;
for( i = seqServices.getLength() ; i -- ; )
xNewKey->createKey( seqServices.getConstArray()[i] ) ;
}
// SEInitializer_NssImpl
sKeyName = OUString( RTL_CONSTASCII_USTRINGPARAM( "/" ) ) ;
sKeyName += SEInitializer_NssImpl_getImplementationName() ;
sKeyName += OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES")) ;
xNewKey = xKey->createKey( sKeyName ) ;
if( xNewKey.is() ) {
seqServices = SEInitializer_NssImpl_getSupportedServiceNames() ;
for( i = seqServices.getLength() ; i -- ; )
xNewKey->createKey( seqServices.getConstArray()[i] ) ;
}
return sal_True;
}
return result;
}
void* SAL_CALL nss_component_getFactory( const sal_Char* pImplName , void* pServiceManager , void* /*pRegistryKey*/ ) void* SAL_CALL nss_component_getFactory( const sal_Char* pImplName , void* pServiceManager , void* /*pRegistryKey*/ )
{ {
void* pRet = 0; void* pRet = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment