From d9cf110dae8030c93c4cc7909b30c779b523359f Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 5 Dec 2012 08:52:15 +0200 Subject: Bye bye ODMA SUSE has no interest in it any longer, and I doubt anybody else has either. --- .../source/uielement/recentfilesmenucontroller.cxx | 39 ---------------------- 1 file changed, 39 deletions(-) (limited to 'framework') diff --git a/framework/source/uielement/recentfilesmenucontroller.cxx b/framework/source/uielement/recentfilesmenucontroller.cxx index 6466f2265b6e..2603b2f86c83 100644 --- a/framework/source/uielement/recentfilesmenucontroller.cxx +++ b/framework/source/uielement/recentfilesmenucontroller.cxx @@ -42,7 +42,6 @@ #define GradientStyle_RECT BLA_GradientStyle_RECT #include #undef GradientStyle_RECT -#include #endif #include @@ -188,44 +187,6 @@ void RecentFilesMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu > else aMenuTitle = aSystemPath; } -#if 0 // Please don't remove this commented-out code just yet, - // we can try to resurrect it later in case somebody complains -#ifdef WNT - else if ( aURL.GetProtocol() == INET_PROT_VND_SUN_STAR_ODMA && ::odma::DMSsAvailable ()) - { - String aShortTitle = m_aRecentFilesItems.at( i ).aTitle; - - // This is against all rules for using - // proper abstraction layers and whatnot. - // But figuring out how to do it "right" - // would have taken the whole week. - // So just call the odma_lib functions... - // (odma_lib is a thin layer on - // top of the ODMA32 DLL) - - static ODMHANDLE handle = NULL; - static sal_Bool beenhere = sal_False; - ODMSTATUS status; - - if ( ! beenhere ) - { - status = NODMRegisterApp( &handle, ODM_API_VERSION, "sodma", NULL, NULL ); - beenhere = sal_True; - } - - if ( handle != NULL ) - { - rtl::OUString s = aURL.GetMainURL( INetURLObject::DECODE_WITH_CHARSET, RTL_TEXTENCODING_MS_1252 ); - s = s.copy( strlen ( "vnd.sun.star.odma:/" ) ); - char title[47]; - status = NODMGetDocInfo( handle, rtl::OUStringToOString( s, RTL_TEXTENCODING_MS_1252 ).pData->buffer, ODM_NAME, title, sizeof ( title ) ); - aShortTitle = String::CreateFromAscii( title ); - } - aMenuTitle += aShortTitle; - aTipHelpText = aURLString; - } -#endif -#endif else { // Use INetURLObject to abbreviate all other URLs -- cgit