Kaydet (Commit) 12949ecd authored tarafından Caolán McNamara's avatar Caolán McNamara

another round of build fixing

Change-Id: I79964b1e091b9a11a0e5724c6ce8465b31d25bff
üst ba1d0181
...@@ -78,8 +78,8 @@ public: ...@@ -78,8 +78,8 @@ public:
DdeData& operator = ( const DdeData& ); DdeData& operator = ( const DdeData& );
static sal_uLong GetExternalFormat( sal_uLong nFmt ); static sal_uLong GetExternalFormat(SotClipboardFormatId nFmt);
static sal_uLong GetInternalFormat( sal_uLong nFmt ); static SotClipboardFormatId GetInternalFormat(sal_uLong nFmt);
}; };
...@@ -394,9 +394,9 @@ public: ...@@ -394,9 +394,9 @@ public:
void AddTopic( const DdeTopic& ); void AddTopic( const DdeTopic& );
void RemoveTopic( const DdeTopic& ); void RemoveTopic( const DdeTopic& );
void AddFormat( sal_uLong ); void AddFormat(SotClipboardFormatId);
void RemoveFormat( sal_uLong ); void RemoveFormat(SotClipboardFormatId);
bool HasFormat( sal_uLong ); bool HasFormat(SotClipboardFormatId);
private: private:
// DdeService( const DdeService& ); // DdeService( const DdeService& );
......
...@@ -273,7 +273,7 @@ void DdeTransaction::Execute() ...@@ -273,7 +273,7 @@ void DdeTransaction::Execute()
HSZ hItem = *pName; HSZ hItem = *pName;
void* pData = (void*)(const void *)aDdeData; void* pData = (void*)(const void *)aDdeData;
DWORD nData = (DWORD)(long)aDdeData; DWORD nData = (DWORD)(long)aDdeData;
sal_uLong nIntFmt = aDdeData.pImp->nFmt; SotClipboardFormatId nIntFmt = aDdeData.pImp->nFmt;
UINT nExtFmt = DdeData::GetExternalFormat( nIntFmt ); UINT nExtFmt = DdeData::GetExternalFormat( nIntFmt );
DdeInstData* pInst = ImpGetInstData(); DdeInstData* pInst = ImpGetInstData();
......
...@@ -113,7 +113,7 @@ DdeData& DdeData::operator = ( const DdeData& rData ) ...@@ -113,7 +113,7 @@ DdeData& DdeData::operator = ( const DdeData& rData )
return *this; return *this;
} }
sal_uLong DdeData::GetExternalFormat( sal_uLong nFmt ) sal_uLong DdeData::GetExternalFormat(SotClipboardFormatId nFmt)
{ {
switch( nFmt ) switch( nFmt )
{ {
...@@ -139,35 +139,29 @@ sal_uLong DdeData::GetExternalFormat( sal_uLong nFmt ) ...@@ -139,35 +139,29 @@ sal_uLong DdeData::GetExternalFormat( sal_uLong nFmt )
return nFmt; return nFmt;
} }
sal_uLong DdeData::GetInternalFormat( sal_uLong nFmt ) SotClipboardFormatId DdeData::GetInternalFormat(sal_uLong nFmt)
{ {
switch( nFmt ) switch( nFmt )
{ {
case CF_TEXT: case CF_TEXT:
nFmt = SotClipboardFormatId::STRING; return SotClipboardFormatId::STRING;
break;
case CF_BITMAP: case CF_BITMAP:
nFmt = SotClipboardFormatId::BITMAP; return SotClipboardFormatId::BITMAP;
break;
case CF_METAFILEPICT: case CF_METAFILEPICT:
nFmt = SotClipboardFormatId::GDIMETAFILE; return SotClipboardFormatId::GDIMETAFILE;
break;
default: default:
#if defined(WNT) #if defined(WNT)
if( nFmt >= CF_MAX ) if( nFmt >= CF_MAX )
{ {
TCHAR szName[ 256 ]; TCHAR szName[ 256 ];
if( GetClipboardFormatName( nFmt, szName, sizeof(szName) ) ) if(GetClipboardFormatName( nFmt, szName, sizeof(szName) ))
nFmt = SotExchange::RegisterFormatName( OUString(reinterpret_cast<const sal_Unicode*>(szName)) ); return SotExchange::RegisterFormatName( OUString(reinterpret_cast<const sal_Unicode*>(szName)) );
} }
#endif #endif
break; break;
} }
return nFmt; return static_cast<SotClipboardFormatId>(nFmt);
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -565,12 +565,12 @@ bool DdeService::HasCbFormat( sal_uInt16 nFmt ) ...@@ -565,12 +565,12 @@ bool DdeService::HasCbFormat( sal_uInt16 nFmt )
return false; return false;
} }
bool DdeService::HasFormat( sal_uLong nFmt ) bool DdeService::HasFormat(SotClipboardFormatId nFmt)
{ {
return HasCbFormat( (sal_uInt16)DdeData::GetExternalFormat( nFmt )); return HasCbFormat( (sal_uInt16)DdeData::GetExternalFormat( nFmt ));
} }
void DdeService::AddFormat( sal_uLong nFmt ) void DdeService::AddFormat(SotClipboardFormatId nFmt)
{ {
nFmt = DdeData::GetExternalFormat( nFmt ); nFmt = DdeData::GetExternalFormat( nFmt );
for ( size_t i = 0, n = aFormats.size(); i < n; ++i ) for ( size_t i = 0, n = aFormats.size(); i < n; ++i )
...@@ -579,7 +579,7 @@ void DdeService::AddFormat( sal_uLong nFmt ) ...@@ -579,7 +579,7 @@ void DdeService::AddFormat( sal_uLong nFmt )
aFormats.push_back( nFmt ); aFormats.push_back( nFmt );
} }
void DdeService::RemoveFormat( sal_uLong nFmt ) void DdeService::RemoveFormat(SotClipboardFormatId nFmt)
{ {
nFmt = DdeData::GetExternalFormat( nFmt ); nFmt = DdeData::GetExternalFormat( nFmt );
for ( DdeFormats::iterator it = aFormats.begin(); it != aFormats.end(); ++it ) for ( DdeFormats::iterator it = aFormats.begin(); it != aFormats.end(); ++it )
......
...@@ -252,7 +252,7 @@ OUString DdeService::GetHelp() ...@@ -252,7 +252,7 @@ OUString DdeService::GetHelp()
return OUString(); return OUString();
} }
void DdeService::AddFormat( SAL_UNUSED_PARAMETER sal_uLong ) void DdeService::AddFormat(SAL_UNUSED_PARAMETER SotClipboardFormatId)
{ {
} }
......
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