30#include <osl/thread.h>
36 xImp->hData =
nullptr;
38 xImp->pData =
nullptr;
39 xImp->nFmt = SotClipboardFormatId::STRING;
45 xImp->hData =
nullptr;
54 xImp->hData =
nullptr;
55 xImp->pData = s.getStr();
56 xImp->nData = s.getLength()+1;
57 xImp->nFmt = SotClipboardFormatId::STRING;
71 : xImp(std::move(rData.xImp))
78 DdeUnaccessData(
xImp->hData);
109 if ( &rData !=
this )
120 xImp = std::move(rData.xImp);
128 case SotClipboardFormatId::STRING:
130 case SotClipboardFormatId::BITMAP:
132 case SotClipboardFormatId::GDIMETAFILE:
133 return CF_METAFILEPICT;
137 if( !
aName.isEmpty() )
138 return RegisterClipboardFormatW( o3tl::toW(
aName.getStr()) );
141 return static_cast<sal_uInt32
>(nFmt);
149 return SotClipboardFormatId::STRING;
151 return SotClipboardFormatId::BITMAP;
152 case CF_METAFILEPICT:
153 return SotClipboardFormatId::GDIMETAFILE;
159 if(GetClipboardFormatNameW( nFmt, szName,
SAL_N_ELEMENTS(szName) ))
tools::Long getSize() const
SVL_DLLPRIVATE void Lock()
SotClipboardFormatId GetFormat() const
static SotClipboardFormatId GetInternalFormat(sal_uLong nFmt)
void SetFormat(SotClipboardFormatId nFmt)
DdeData & operator=(const DdeData &)
static sal_uInt32 GetExternalFormat(SotClipboardFormatId nFmt)
void const * getData() const
std::unique_ptr< DdeDataImp > xImp
static OUString GetFormatName(SotClipboardFormatId nFormat)
static SotClipboardFormatId RegisterFormatName(const OUString &rName)
#define SAL_N_ELEMENTS(arr)