Windows C++ Library
Classes | Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes | Static Private Attributes
CClipboard Class Reference

#include <Clipboard.hpp>

Inheritance diagram for CClipboard:
CStream WCL::IInputStream WCL::IOutputStream WCL::IStreamBase WCL::IStreamBase

List of all members.

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< CBufferBufferPtr
 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 []

Member Typedef Documentation

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.


Constructor & Destructor Documentation


Member Function Documentation

size_t CClipboard::Size ( ) const [inline]
void CClipboard::Open ( uint  nMode,
uint  iFormat 
)
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]

Member Data Documentation

uint CClipboard::m_iFormat [protected]
Initial value:
{
    { 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                   }
}

The documentation for this class was generated from the following files: