summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorFrancois Tigeot <ftigeot@wolfpond.org>2011-04-22 21:52:55 +0200
committerFrancois Tigeot <ftigeot@wolfpond.org>2011-04-22 21:52:55 +0200
commit7df82673c5c0df83c9d1131ff4727e91ec7af36b (patch)
tree054a2658b3b22bd82d40d7015f56d590ebaca421 /svl
parent69560c178f3e3f39b38b8f0b3cc39f30753aeb75 (diff)
Remove PM2 macro usage
Diffstat (limited to 'svl')
-rw-r--r--svl/source/svdde/ddedata.cxx25
1 files changed, 1 insertions, 24 deletions
diff --git a/svl/source/svdde/ddedata.cxx b/svl/source/svdde/ddedata.cxx
index 6afb6c20de87..0364c1bcf7e1 100644
--- a/svl/source/svdde/ddedata.cxx
+++ b/svl/source/svdde/ddedata.cxx
@@ -161,23 +161,11 @@ sal_uLong DdeData::GetExternalFormat( sal_uLong nFmt )
default:
{
-#if defined(WNT) || defined( PM2 )
- String aName( SotExchange::GetFormatName( nFmt ) );
-
#if defined(WNT)
-
+ String aName( SotExchange::GetFormatName( nFmt ) );
if( aName.Len() )
nFmt = RegisterClipboardFormat( reinterpret_cast<LPCWSTR>(aName.GetBuffer()) );
#endif
-#if defined( PM2 )
-
- if( aName.Len() )
- {
- HATOMTBL hSysTable = WinQuerySystemAtomTable();
- nFmt = (sal_uLong)WinAddAtom( hSysTable, (PSZ)aName.GetBuffer() );
- }
-#endif
-#endif
}
}
return nFmt;
@@ -209,17 +197,6 @@ sal_uLong DdeData::GetInternalFormat( sal_uLong nFmt )
nFmt = SotExchange::RegisterFormatName( String(reinterpret_cast<const sal_Unicode*>(szName)) );
}
#endif
-#if defined(PM2)
- if( nFmt > CF_PALETTE )
- {
- char szName[ 256 ];
-
- HATOMTBL hSysTable = WinQuerySystemAtomTable();
- WinQueryAtomName( hSysTable, (ATOM)nFmt, (PSZ)szName,
- sizeof( szName ) );
- nFmt = SotExchange::RegisterFormatName( String( szName ) );
- }
-#endif
break;
}
return nFmt;