Kaydet (Commit) 387a3ab3 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS sb59 (1.31.58); FILE MERGED

2006/08/18 17:38:29 sb 1.31.58.2: RESYNC: (1.31-1.34); FILE MERGED
2006/08/03 13:51:38 cl 1.31.58.1: removed compiler warnings
üst 0e1a4d34
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: treeopt.cxx,v $ * $RCSfile: treeopt.cxx,v $
* *
* $Revision: 1.35 $ * $Revision: 1.36 $
* *
* last change: $Author: obo $ $Date: 2006-09-17 04:46:04 $ * last change: $Author: obo $ $Date: 2006-10-12 12:32:25 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -63,6 +63,10 @@ ...@@ -63,6 +63,10 @@
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
#endif #endif
#ifndef _OSL_MODULE_HXX_
#include <osl/module.hxx>
#endif
#include <com/sun/star/util/XCloseable.hpp> #include <com/sun/star/util/XCloseable.hpp>
#include <com/sun/star/frame/XLoadable.hpp> #include <com/sun/star/frame/XLoadable.hpp>
...@@ -329,7 +333,7 @@ SfxTabPage* CreateGeneralTabPage( sal_uInt16 nId, Window* pParent, const SfxItem ...@@ -329,7 +333,7 @@ SfxTabPage* CreateGeneralTabPage( sal_uInt16 nId, Window* pParent, const SfxItem
case SID_SB_CONNECTIONPOOLING: fnCreate = &::offapp::ConnectionPoolOptionsPage::Create; break; case SID_SB_CONNECTIONPOOLING: fnCreate = &::offapp::ConnectionPoolOptionsPage::Create; break;
case SID_SB_DBREGISTEROPTIONS: fnCreate = &::svx::DbRegistrationOptionsPage::Create; break; case SID_SB_DBREGISTEROPTIONS: fnCreate = &::svx::DbRegistrationOptionsPage::Create; break;
case RID_SVXPAGE_ACCESSIBILITYCONFIG: fnCreate = &SvxAccessibilityOptionsTabPage::Create; break; case RID_SVXPAGE_ACCESSIBILITYCONFIG: fnCreate = &SvxAccessibilityOptionsTabPage::Create; break;
case RID_SVXPAGE_SSO: fnCreate = ( CreateTabPage ) GetSSOCreator(); break; case RID_SVXPAGE_SSO: fnCreate = GetSSOCreator(); break;
case RID_SVXPAGE_OPTIONS_CTL: fnCreate = &SvxCTLOptionsPage::Create ; break; case RID_SVXPAGE_OPTIONS_CTL: fnCreate = &SvxCTLOptionsPage::Create ; break;
//added by jmeng begin //added by jmeng begin
case RID_SVXPAGE_INET_MOZPLUGIN: fnCreate = &MozPluginTabPage::Create; break; case RID_SVXPAGE_INET_MOZPLUGIN: fnCreate = &MozPluginTabPage::Create; break;
...@@ -1116,6 +1120,7 @@ IMPL_LINK( OfaTreeOptionsDialog, SelectHdl_Impl, Timer*, EMPTYARG ) ...@@ -1116,6 +1120,7 @@ IMPL_LINK( OfaTreeOptionsDialog, SelectHdl_Impl, Timer*, EMPTYARG )
} }
else else
{ {
/*
static const sal_uInt16 _aGlobalHelpIds[] = static const sal_uInt16 _aGlobalHelpIds[] =
{ {
HID_OFADLG_TREE_GENERAL , HID_OFADLG_TREE_GENERAL ,
...@@ -1135,7 +1140,7 @@ IMPL_LINK( OfaTreeOptionsDialog, SelectHdl_Impl, Timer*, EMPTYARG ) ...@@ -1135,7 +1140,7 @@ IMPL_LINK( OfaTreeOptionsDialog, SelectHdl_Impl, Timer*, EMPTYARG )
DBG_ASSERT( aHelpTextsArr.Count() == DBG_ASSERT( aHelpTextsArr.Count() ==
sizeof( _aGlobalHelpIds ) / sizeof(_aGlobalHelpIds[0]), sizeof( _aGlobalHelpIds ) / sizeof(_aGlobalHelpIds[0]),
"fehlende HelpIds!!" ); "fehlende HelpIds!!" );
*/
/* !!! pb: #98643# do not expand automatically, only with <+> or <crsr><right> /* !!! pb: #98643# do not expand automatically, only with <+> or <crsr><right>
if(!aTreeLB.IsInCollapse()) if(!aTreeLB.IsInCollapse())
pBox->Expand(pEntry); pBox->Expand(pEntry);
...@@ -1282,17 +1287,17 @@ BOOL EnableSSO( void ) ...@@ -1282,17 +1287,17 @@ BOOL EnableSSO( void )
return bSSOEnabled; return bSSOEnabled;
} }
void* GetSSOCreator( void ) CreateTabPage GetSSOCreator( void )
{ {
static void* theSymbol = 0; static CreateTabPage theSymbol = 0;
if ( theSymbol == 0 ) if ( theSymbol == 0 )
{ {
OUString theModuleName = OUString::createFromAscii( SVLIBRARY( "ssoopt" ) ); osl::Module aModule;
oslModule theModule = osl_loadModule( theModuleName.pData, SAL_LOADMODULE_DEFAULT ); OUString theModuleName( RTL_CONSTASCII_USTRINGPARAM( SVLIBRARY( "ssoopt" ) ) );
if ( theModule != 0 ) if( aModule.load( theModuleName, SAL_LOADMODULE_DEFAULT ) )
{ {
OUString theSymbolName = OUString::createFromAscii( "CreateSSOTabPage" ); OUString theSymbolName( OUString::createFromAscii( "CreateSSOTabPage" ) );
theSymbol = osl_getSymbol( theModule, theSymbolName.pData ); theSymbol = reinterpret_cast<CreateTabPage>(aModule.getFunctionSymbol( theSymbolName ));
} }
} }
......
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