diff options
author | Timothy Pearson <[email protected]> | 2013-01-20 00:25:07 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-20 00:25:07 -0600 |
commit | 2715c65c510713f1a6c9ae83298e0cfb885f5475 (patch) | |
tree | 3805de35c7f06dceabb33e0226d4bd011cbb2a40 /libreoffice/git_10_28_2011 | |
parent | fe83a8b6495df13916e3cc8ca280e8513f131d6e (diff) | |
download | thirdparty-2715c65c510713f1a6c9ae83298e0cfb885f5475.tar.gz thirdparty-2715c65c510713f1a6c9ae83298e0cfb885f5475.zip |
Rename KApplication to TDEApplication to avoid conflicts with KDE4
Diffstat (limited to 'libreoffice/git_10_28_2011')
-rw-r--r-- | libreoffice/git_10_28_2011/patches/libreoffice-trinity.diff | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/libreoffice/git_10_28_2011/patches/libreoffice-trinity.diff b/libreoffice/git_10_28_2011/patches/libreoffice-trinity.diff index 61f5792..81b9141 100644 --- a/libreoffice/git_10_28_2011/patches/libreoffice-trinity.diff +++ b/libreoffice/git_10_28_2011/patches/libreoffice-trinity.diff @@ -2634,8 +2634,8 @@ index 0000000..cdf0463 + return false; + + lcl_getFunctionFromModuleOrUnload( m_hConnectorModule, "createKabConnection", m_pConnectionFactoryFunc ); -+ lcl_getFunctionFromModuleOrUnload( m_hConnectorModule, "initKApplication", m_pApplicationInitFunc ); -+ lcl_getFunctionFromModuleOrUnload( m_hConnectorModule, "shutdownKApplication", m_pApplicationShutdownFunc ); ++ lcl_getFunctionFromModuleOrUnload( m_hConnectorModule, "initTDEApplication", m_pApplicationInitFunc ); ++ lcl_getFunctionFromModuleOrUnload( m_hConnectorModule, "shutdownTDEApplication", m_pApplicationShutdownFunc ); + lcl_getFunctionFromModuleOrUnload( m_hConnectorModule, "matchTDEVersion", m_pTDEVersionCheckFunc ); + + if ( !m_hConnectorModule ) @@ -6632,7 +6632,7 @@ index 0000000..375b158 + { + private: + /// TDE application if we own it -+ static KApplication* s_pKApplication; ++ static TDEApplication* s_pTDEApplication; + static bool s_bDidInsertCatalogue; + + public: @@ -6641,7 +6641,7 @@ index 0000000..375b158 + }; + + // --------------------------------------------------------------- -+ KApplication* TDEInit::s_pKApplication = NULL; ++ TDEApplication* TDEInit::s_pTDEApplication = NULL; + bool TDEInit::s_bDidInsertCatalogue = false; + + // --------------------------------------------------------------- @@ -6650,14 +6650,14 @@ index 0000000..375b158 + // TODO: All this is not thread-safe + + // we create a TDE application only if it is not already done -+ if (KApplication::kApplication() == NULL) ++ if (TDEApplication::kApplication() == NULL) + { -+ OSL_ENSURE(s_pKApplication == NULL, "TDEInit::Init: inconsistency in the application pointers!"); ++ OSL_ENSURE(s_pTDEApplication == NULL, "TDEInit::Init: inconsistency in the application pointers!"); + + char *kabargs[1] = {(char*)"libkab1"}; + KCmdLineArgs::init(1, kabargs, "KAddressBook", *kabargs, "Address Book driver", KAB_DRIVER_VERSION); + -+ s_pKApplication = new KApplication(false, false); ++ s_pTDEApplication = new TDEApplication(false, false); + } + + // set language @@ -6682,10 +6682,10 @@ index 0000000..375b158 + // which we did not previously insert + KGlobal::locale()->removeCatalogue("kaddressbook"); + -+ if ( s_pKApplication != NULL ) ++ if ( s_pTDEApplication != NULL ) + { -+ delete s_pKApplication; -+ s_pKApplication = NULL; ++ delete s_pTDEApplication; ++ s_pTDEApplication = NULL; + } + } + } @@ -6701,13 +6701,13 @@ index 0000000..375b158 +} + +// ----------------------------------------------------------------------- -+extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL initKApplication() ++extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL initTDEApplication() +{ + ::connectivity::kab::TDEInit::Init(); +} + +// ----------------------------------------------------------------------- -+extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL shutdownKApplication() ++extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL shutdownTDEApplication() +{ + ::connectivity::kab::TDEInit::Shutdown(); +} @@ -6716,7 +6716,7 @@ index 0000000..375b158 + by the driver + + Has to be called before any other code from this library, in particular, -+ it has to be called before initKApplication() ++ it has to be called before initTDEApplication() + + If this function returns <code>0</code>, then no other code from this library + has to be called, else the results are unpredictable. @@ -7848,8 +7848,8 @@ index 0000000..2c828d8 +UDK_3_0_0 { + global: + createKabConnection; -+ initKApplication; -+ shutdownKApplication; ++ initTDEApplication; ++ shutdownTDEApplication; + matchTDEVersion; + local: + *; @@ -9370,7 +9370,7 @@ index 0000000..eb20aa3 + + KLocale::setMainCatalogue( "kdialog" ); + -+ KApplication kApplication; ++ TDEApplication kApplication; + + // Setup the modality + KCmdLineArgs *pArgs = KCmdLineArgs::parsedArgs(); @@ -12930,7 +12930,7 @@ index 0000000..19eaa60 + RTL_CONSTASCII_USTRINGPARAM("system.desktop-environment"))) >>= + desktop; + enabled_ = desktop.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("TDE")) && -+ KApplication::kApplication() != 0; ++ TDEApplication::kApplication() != 0; + } +} + @@ -15965,13 +15965,13 @@ index 0000000..adeb628 + +#include "vclpluginapi.h" + -+/* #i59042# override KApplications method for session management ++/* #i59042# override TDEApplications method for session management + * since it will interfere badly with our own. + */ -+class VCLTDEApplication : public KApplication ++class VCLTDEApplication : public TDEApplication +{ + public: -+ VCLTDEApplication() : KApplication() {} ++ VCLTDEApplication() : TDEApplication() {} + + virtual void commitData(QSessionManager &sm); +}; @@ -15995,7 +15995,7 @@ index 0000000..adeb628 + static_cast<TDEXLib*>(GetXLib())->doStartup(); + // clean up own members + doDestruct(); -+ // prevent SalDisplay from closing KApplication's display ++ // prevent SalDisplay from closing TDEApplication's display + pDisp_ = NULL; +} + @@ -16013,10 +16013,10 @@ index 0000000..adeb628 + // we should use tde's method to signal screen changes similar + // to the gtk plugin + #if ! defined USE_RANDR || ! (defined LINUX && defined X86_64) -+ // properly deinitialize KApplication ++ // properly deinitialize TDEApplication + delete (VCLTDEApplication*)m_pApplication; + #endif -+ // free the faked cmdline arguments no longer needed by KApplication ++ // free the faked cmdline arguments no longer needed by TDEApplication + for( int i = 0; i < m_nFakeCmdLineArgs; i++ ) + free( m_pFreeCmdLineArgs[i] ); + delete [] m_pFreeCmdLineArgs; @@ -16072,15 +16072,15 @@ index 0000000..adeb628 + m_pFreeCmdLineArgs[0] = strdup( aExec.getStr() ); + + // make a copy of the string list for freeing it since -+ // KApplication manipulates the pointers inside the argument vector -+ // note: KApplication bad ! ++ // TDEApplication manipulates the pointers inside the argument vector ++ // note: TDEApplication bad ! + m_pAppCmdLineArgs = new char*[ m_nFakeCmdLineArgs ]; + for( int i = 0; i < m_nFakeCmdLineArgs; i++ ) + m_pAppCmdLineArgs[i] = m_pFreeCmdLineArgs[i]; + + KCmdLineArgs::init( m_nFakeCmdLineArgs, m_pAppCmdLineArgs, kAboutData ); + -+ KApplication::disableAutoDcopRegistration(); ++ TDEApplication::disableAutoDcopRegistration(); + m_pApplication = new VCLTDEApplication(); + kapp->disableSessionManagement(); + |