FreeRDP
synthetic.c File Reference
#include <winpr/config.h>
#include <errno.h>
#include <winpr/crt.h>
#include <winpr/user.h>
#include <winpr/image.h>
#include "clipboard.h"

Functions

static void * clipboard_synthesize_cf_text (wClipboard *clipboard, UINT32 formatId, const void *data, UINT32 *pSize)
 
static void * clipboard_synthesize_cf_oemtext (wClipboard *clipboard, UINT32 formatId, const void *data, UINT32 *pSize)
 
static void * clipboard_synthesize_cf_locale (wClipboard *clipboard, UINT32 formatId, const void *data, UINT32 *pSize)
 
static void * clipboard_synthesize_cf_unicodetext (wClipboard *clipboard, UINT32 formatId, const void *data, UINT32 *pSize)
 
static void * clipboard_synthesize_utf8_string (wClipboard *clipboard, UINT32 formatId, const void *data, UINT32 *pSize)
 
static BOOL is_format_bitmap (wClipboard *clipboard, UINT32 formatId)
 
static void * clipboard_synthesize_cf_dib (wClipboard *clipboard, UINT32 formatId, const void *data, UINT32 *pSize)
 
static void * clipboard_synthesize_cf_dibv5 (wClipboard *clipboard, UINT32 formatId, const void *data, UINT32 *pSize)
 
static void * clipboard_prepend_bmp_header (const BITMAPINFOHEADER *pInfoHeader, const void *data, size_t size, UINT32 *pSize)
 
static void * clipboard_synthesize_image_bmp (wClipboard *clipboard, UINT32 formatId, const void *data, UINT32 *pSize)
 
static void * clipboard_synthesize_image_bmp_to_format (wClipboard *clipboard, UINT32 formatId, UINT32 bmpFormat, const void *data, UINT32 *pSize)
 
static void * clipboard_synthesize_html_format (wClipboard *clipboard, UINT32 formatId, const void *pData, UINT32 *pSize)
 
static void * clipboard_synthesize_text_html (wClipboard *clipboard, UINT32 formatId, const void *data, UINT32 *pSize)
 
BOOL ClipboardInitSynthesizers (wClipboard *clipboard)
 

Variables

static const char * mime_bitmap []
 

Function Documentation

◆ clipboard_prepend_bmp_header()

static void* clipboard_prepend_bmp_header ( const BITMAPINFOHEADER pInfoHeader,
const void *  data,
size_t  size,
UINT32 *  pSize 
)
static
Here is the caller graph for this function:

◆ clipboard_synthesize_cf_dib()

static void* clipboard_synthesize_cf_dib ( wClipboard *  clipboard,
UINT32  formatId,
const void *  data,
UINT32 *  pSize 
)
static

"CF_DIB":

BITMAPINFO structure followed by the bitmap bits.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clipboard_synthesize_cf_dibv5()

static void* clipboard_synthesize_cf_dibv5 ( wClipboard *  clipboard,
UINT32  formatId,
const void *  data,
UINT32 *  pSize 
)
static

"CF_DIBV5":

BITMAPV5HEADER structure followed by the bitmap color space information and the bitmap bits.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clipboard_synthesize_cf_locale()

static void* clipboard_synthesize_cf_locale ( wClipboard *  clipboard,
UINT32  formatId,
const void *  data,
UINT32 *  pSize 
)
static

"CF_LOCALE":

System locale identifier associated with CF_TEXT

Here is the caller graph for this function:

◆ clipboard_synthesize_cf_oemtext()

static void* clipboard_synthesize_cf_oemtext ( wClipboard *  clipboard,
UINT32  formatId,
const void *  data,
UINT32 *  pSize 
)
static

"CF_OEMTEXT":

Null-terminated OEM text with CR/LF line endings.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clipboard_synthesize_cf_text()

static void* clipboard_synthesize_cf_text ( wClipboard *  clipboard,
UINT32  formatId,
const void *  data,
UINT32 *  pSize 
)
static

Standard Clipboard Formats: http://msdn.microsoft.com/en-us/library/windows/desktop/ff729168/ "CF_TEXT":

Null-terminated ANSI text with CR/LF line endings.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clipboard_synthesize_cf_unicodetext()

static void* clipboard_synthesize_cf_unicodetext ( wClipboard *  clipboard,
UINT32  formatId,
const void *  data,
UINT32 *  pSize 
)
static

"CF_UNICODETEXT":

Null-terminated UTF-16 text with CR/LF line endings.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clipboard_synthesize_html_format()

static void* clipboard_synthesize_html_format ( wClipboard *  clipboard,
UINT32  formatId,
const void *  pData,
UINT32 *  pSize 
)
static

"HTML Format":

HTML clipboard format: msdn.microsoft.com/en-us/library/windows/desktop/ms649015/

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clipboard_synthesize_image_bmp()

static void* clipboard_synthesize_image_bmp ( wClipboard *  clipboard,
UINT32  formatId,
const void *  data,
UINT32 *  pSize 
)
static

"image/bmp":

Bitmap file format.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clipboard_synthesize_image_bmp_to_format()

static void* clipboard_synthesize_image_bmp_to_format ( wClipboard *  clipboard,
UINT32  formatId,
UINT32  bmpFormat,
const void *  data,
UINT32 *  pSize 
)
static
Here is the call graph for this function:

◆ clipboard_synthesize_text_html()

static void* clipboard_synthesize_text_html ( wClipboard *  clipboard,
UINT32  formatId,
const void *  data,
UINT32 *  pSize 
)
static

"text/html":

HTML text format.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clipboard_synthesize_utf8_string()

static void* clipboard_synthesize_utf8_string ( wClipboard *  clipboard,
UINT32  formatId,
const void *  data,
UINT32 *  pSize 
)
static

mime_utf8_string:

Null-terminated UTF-8 string with LF line endings.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClipboardInitSynthesizers()

BOOL ClipboardInitSynthesizers ( wClipboard *  clipboard)

CF_TEXT

CF_OEMTEXT

CF_UNICODETEXT

UTF8_STRING

text/plain

CF_DIB

CF_DIBV5

image/bmp

image/png

image/webp

image/jpeg

HTML Format

text/html

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_format_bitmap()

static BOOL is_format_bitmap ( wClipboard *  clipboard,
UINT32  formatId 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ mime_bitmap

const char* mime_bitmap[]
static
Initial value:
= { "image/bmp", "image/x-bmp", "image/x-MS-bmp",
"image/x-win-bitmap" }

WinPR: Windows Portable Runtime Clipboard Functions

Copyright 2014 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.