summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-12-05 08:52:15 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-12-05 11:30:36 +0200
commit496e83089f44b9a0822c5fd9749e1c79d280fdf5 (patch)
treee14a29a5c8944ef8b074a59dc934d319281f0ca2 /framework
parentf1a0ab2b5fcba57f372f6642e6c2dd68a50a8524 (diff)
Bye bye ODMA
SUSE has no interest in it any longer, and I doubt anybody else has either.
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uielement/recentfilesmenucontroller.cxx39
1 files changed, 0 insertions, 39 deletions
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 <windows.h>
#undef GradientStyle_RECT
-#include <odma_lib.hxx>
#endif
#include <osl/mutex.hxx>
@@ -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