Windows C++ Library
|
#include <Clipboard.hpp>
Classes | |
struct | FmtEntry |
Public Member Functions | |
CClipboard () | |
~CClipboard () | |
size_t | Size () const |
void | Open (uint nMode, uint iFormat) |
void | Close () |
virtual void | Read (void *pBuffer, size_t nNumBytes) |
Read a number of bytes from the stream. | |
virtual void | Write (const void *pBuffer, size_t nNumBytes) |
Write a number of bytes to the stream. | |
virtual WCL::StreamPos | Seek (WCL::StreamPos lPos, SeekPos eFrom=BEGIN) |
Move the stream pointer. | |
virtual bool | IsEOF () |
Query if the End of File has been reached. | |
virtual void | Throw (int eErrCode, DWORD dwLastError) |
Throw a stream specific exception with the specified error code. | |
Static Public Member Functions | |
static bool | CopyText (HWND hOwner, const tchar *pszText) |
static bool | IsEmpty () |
static bool | IsFormatAvail (uint nFormat) |
static bool | PasteText (CString &strString) |
static bool | IsStdFormat (uint nFormat) |
static uint | RegisterFormat (const tchar *pszFormat) |
static CString | FormatName (uint nFormat) |
static uint | FormatHandle (const tchar *pszFormat) |
Protected Types | |
typedef Core::SharedPtr< CBuffer > | BufferPtr |
The memory buffer smart-pointer type. | |
typedef Core::SharedPtr < CMemStream > | MemStreamPtr |
The stream adaptor smart-pointer type. | |
Protected Attributes | |
BufferPtr | m_pBuffer |
MemStreamPtr | m_pStream |
uint | m_iFormat |
Static Private Attributes | |
static FmtEntry | s_oStdFormats [] |
typedef Core::SharedPtr<CBuffer> CClipboard::BufferPtr [protected] |
The memory buffer smart-pointer type.
typedef Core::SharedPtr<CMemStream> CClipboard::MemStreamPtr [protected] |
The stream adaptor smart-pointer type.
size_t CClipboard::Size | ( | ) | const [inline] |
void CClipboard::Open | ( | uint | nMode, |
uint | iFormat | ||
) |
void CClipboard::Close | ( | ) |
void CClipboard::Read | ( | void * | pBuffer, |
size_t | iNumBytes | ||
) | [inline, virtual] |
Read a number of bytes from the stream.
Implements WCL::IInputStream.
void CClipboard::Write | ( | const void * | pBuffer, |
size_t | iNumBytes | ||
) | [inline, virtual] |
Write a number of bytes to the stream.
Implements WCL::IOutputStream.
WCL::StreamPos CClipboard::Seek | ( | WCL::StreamPos | lPos, |
SeekPos | eFrom = BEGIN |
||
) | [inline, virtual] |
Move the stream pointer.
Implements WCL::IStreamBase.
bool CClipboard::IsEOF | ( | ) | [inline, virtual] |
Query if the End of File has been reached.
Implements WCL::IInputStream.
void CClipboard::Throw | ( | int | eErrCode, |
DWORD | dwLastError | ||
) | [inline, virtual] |
Throw a stream specific exception with the specified error code.
Implements WCL::IStreamBase.
bool CClipboard::CopyText | ( | HWND | hOwner, |
const tchar * | pszText | ||
) | [static] |
bool CClipboard::IsEmpty | ( | ) | [static] |
bool CClipboard::IsFormatAvail | ( | uint | nFormat | ) | [static] |
bool CClipboard::PasteText | ( | CString & | strString | ) | [static] |
bool CClipboard::IsStdFormat | ( | uint | nFormat | ) | [static] |
uint CClipboard::RegisterFormat | ( | const tchar * | pszFormat | ) | [static] |
CString CClipboard::FormatName | ( | uint | nFormat | ) | [static] |
uint CClipboard::FormatHandle | ( | const tchar * | pszFormat | ) | [static] |
BufferPtr CClipboard::m_pBuffer [protected] |
MemStreamPtr CClipboard::m_pStream [protected] |
uint CClipboard::m_iFormat [protected] |
CClipboard::FmtEntry CClipboard::s_oStdFormats [static, private] |
{ { CF_TEXT, TXT("CF_TEXT") }, { CF_BITMAP, TXT("CF_BITMAP") }, { CF_METAFILEPICT, TXT("CF_METAFILEPICT") }, { CF_SYLK, TXT("CF_SYLK") }, { CF_DIF, TXT("CF_DIF") }, { CF_TIFF, TXT("CF_TIFF") }, { CF_OEMTEXT, TXT("CF_OEMTEXT") }, { CF_DIB, TXT("CF_DIB") }, { CF_PALETTE, TXT("CF_PALETTE") }, { CF_PENDATA, TXT("CF_PENDATA") }, { CF_RIFF, TXT("CF_RIFF") }, { CF_WAVE, TXT("CF_WAVE") }, { CF_UNICODETEXT, TXT("CF_UNICODETEXT") }, { CF_ENHMETAFILE, TXT("CF_ENHMETAFILE") }, { CF_HDROP, TXT("CF_HDROP") }, { CF_LOCALE, TXT("CF_LOCALE") }, { CF_DIBV5, TXT("CF_DIBV5") }, { CF_NONE, NULL } }