summaryrefslogtreecommitdiff
path: root/sal/workben/clipboardwben/testpaste
diff options
context:
space:
mode:
Diffstat (limited to 'sal/workben/clipboardwben/testpaste')
-rw-r--r--sal/workben/clipboardwben/testpaste/StdAfx.cpp8
-rw-r--r--sal/workben/clipboardwben/testpaste/StdAfx.h32
-rw-r--r--sal/workben/clipboardwben/testpaste/TestWin32.icobin0 -> 1590 bytes
-rw-r--r--sal/workben/clipboardwben/testpaste/cbptest.cxx428
-rw-r--r--sal/workben/clipboardwben/testpaste/cbptest.rc120
-rw-r--r--sal/workben/clipboardwben/testpaste/makefile.mk67
-rw-r--r--sal/workben/clipboardwben/testpaste/resource.h28
-rw-r--r--sal/workben/clipboardwben/testpaste/small.icobin0 -> 318 bytes
8 files changed, 683 insertions, 0 deletions
diff --git a/sal/workben/clipboardwben/testpaste/StdAfx.cpp b/sal/workben/clipboardwben/testpaste/StdAfx.cpp
new file mode 100644
index 000000000000..cb07d603f28f
--- /dev/null
+++ b/sal/workben/clipboardwben/testpaste/StdAfx.cpp
@@ -0,0 +1,8 @@
+// stdafx.cpp : Quelltextdatei, die nur die Standard-Includes einbindet
+// TestWin32.pch ist die vorkompilierte Header-Datei
+// stdafx.obj enthält die vorkompilierte Typinformation
+
+#include "stdafx.h"
+
+// ZU ERLEDIGEN: Verweis auf alle zusätzlichen Header-Dateien, die Sie in STDAFX.H
+// und nicht in dieser Datei benötigen
diff --git a/sal/workben/clipboardwben/testpaste/StdAfx.h b/sal/workben/clipboardwben/testpaste/StdAfx.h
new file mode 100644
index 000000000000..bb762adbdc36
--- /dev/null
+++ b/sal/workben/clipboardwben/testpaste/StdAfx.h
@@ -0,0 +1,32 @@
+// stdafx.h : Include-Datei für Standard-System-Include-Dateien,
+// oder projektspezifische Include-Dateien, die häufig benutzt, aber
+// in unregelmäßigen Abständen geändert werden.
+//
+
+#if !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_)
+#define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#define WIN32_LEAN_AND_MEAN // Selten benutzte Teile der Windows-Header nicht einbinden
+
+
+// Windows-Header-Dateien:
+#include <windows.h>
+
+// Header-Dateien der C-Laufzeit
+#include <stdlib.h>
+#include <malloc.h>
+#include <memory.h>
+#include <tchar.h>
+
+// Lokale Header-Dateien
+
+// ZU ERLEDIGEN: Verweisen Sie hier auf zusätzliche Header-Dateien, die Ihr Programm benötigt
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Visual C++ fügt zusätzliche Deklarationen unmittelbar vor der vorherigen Zeile ein.
+
+#endif // !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_)
diff --git a/sal/workben/clipboardwben/testpaste/TestWin32.ico b/sal/workben/clipboardwben/testpaste/TestWin32.ico
new file mode 100644
index 000000000000..255ff3be4fba
--- /dev/null
+++ b/sal/workben/clipboardwben/testpaste/TestWin32.ico
Binary files differ
diff --git a/sal/workben/clipboardwben/testpaste/cbptest.cxx b/sal/workben/clipboardwben/testpaste/cbptest.cxx
new file mode 100644
index 000000000000..f26d51ec6d72
--- /dev/null
+++ b/sal/workben/clipboardwben/testpaste/cbptest.cxx
@@ -0,0 +1,428 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_sal.hxx"
+// TestWin32.cpp : Definiert den Einsprungpunkt für die Anwendung.
+//
+
+#define _WIN32_DCOM
+
+#include "stdafx.h"
+
+#include <windows.h>
+
+#include <ole2.h>
+#include <objidl.h>
+#include <objbase.h>
+#include <process.h>
+#include <olectl.h>
+#include <stdlib.h>
+#include <malloc.h>
+#include <..\..\inc\systools\win32\MtaOleClipb.h>
+
+#include "resource.h"
+
+#define MAX_LOADSTRING 100
+
+// Globale Variablen:
+HINSTANCE hInst; // aktuelle Instanz
+WCHAR szTitle[MAX_LOADSTRING]; // Text der Titelzeile
+WCHAR szWindowClass[MAX_LOADSTRING]; // Text der Titelzeile
+ATOM MyRegisterClass( HINSTANCE hInstance );
+BOOL InitInstance( HINSTANCE, int );
+LRESULT CALLBACK WndProc( HWND, UINT, WPARAM, LPARAM );
+LRESULT CALLBACK About( HWND, UINT, WPARAM, LPARAM );
+void PasteClipboardData(HWND hwndParent);
+void PasteClipboardData2(HWND hwndParent);
+
+LPSTREAM g_pStm = NULL;
+char* pTextBuff = NULL;
+DWORD lData = 0;
+
+//----------------------------------------------------
+// a thread function
+//----------------------------------------------------
+
+unsigned int _stdcall ThreadProc(LPVOID pParam)
+{
+ IDataObject* pIDataObj = NULL;
+ FORMATETC formatETC;
+ STGMEDIUM stgMedium;
+ LPVOID pGlobMem;
+ HWND hwnd;
+ DWORD sizeGlobBuff;
+ HRESULT hr;
+
+ hwnd = (HWND)pParam;
+
+ OleInitialize( NULL );
+
+ hr = OleGetClipboard( &pIDataObj );
+
+ hr = CoGetInterfaceAndReleaseStream(
+ g_pStm,
+ __uuidof(IDataObject),
+ reinterpret_cast<LPVOID*>(&pIDataObj));
+
+ formatETC.cfFormat = CF_TEXT;
+ formatETC.ptd = NULL;
+ formatETC.dwAspect = DVASPECT_CONTENT;
+ formatETC.lindex = -1;
+ formatETC.tymed = TYMED_HGLOBAL;
+
+ hr = pIDataObj->GetData( &formatETC, &stgMedium );
+ pGlobMem = GlobalLock( stgMedium.hGlobal );
+ if ( NULL != pGlobMem )
+ {
+ if ( NULL != pTextBuff )
+ {
+ free( pTextBuff );
+ }
+
+ sizeGlobBuff = GlobalSize( stgMedium.hGlobal );
+ pTextBuff = (char*)malloc( sizeGlobBuff + 1 );
+ ZeroMemory( pTextBuff, sizeGlobBuff + 1 );
+
+ memcpy( pTextBuff, pGlobMem, sizeGlobBuff );
+ lData = sizeGlobBuff;
+
+ InvalidateRect( hwnd, NULL, TRUE );
+ UpdateWindow( hwnd );
+ }
+
+ GlobalUnlock( stgMedium.hGlobal );
+
+ ReleaseStgMedium( &stgMedium );
+
+ pIDataObj->Release();
+
+ //CoUninitialize( );
+
+ OleUninitialize( );
+
+ return 0;
+}
+
+//----------------------------------------------------
+// WinMain
+//----------------------------------------------------
+
+int APIENTRY WinMain(HINSTANCE hInstance,
+ HINSTANCE hPrevInstance,
+ LPSTR lpCmdLine,
+ int nCmdShow )
+{
+ // ZU ERLEDIGEN: Fügen Sie hier den Code ein.
+ MSG msg;
+ HACCEL hAccelTable;
+ HRESULT hr = E_FAIL;
+
+ // it's important to initialize ole
+ // in order to use the clipboard
+ //hr = OleInitialize( NULL );
+ hr = CoInitializeEx( NULL, COINIT_MULTITHREADED );
+ //hr = CoInitializeEx( NULL, COINIT_APARTMENTTHREADED );
+
+ // Globale Zeichenfolgen initialisieren
+ LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
+ LoadStringW(hInstance, IDC_TESTWIN32, szWindowClass, MAX_LOADSTRING);
+ MyRegisterClass(hInstance);
+
+ // Initialisierung der Anwendung durchführen:
+ if( !InitInstance( hInstance, nCmdShow ) )
+ {
+ return FALSE;
+ }
+
+ hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_TESTWIN32);
+
+ // Hauptnachrichtenschleife:
+ while( GetMessage(&msg, NULL, 0, 0) )
+ {
+ if( !TranslateAccelerator (msg.hwnd, hAccelTable, &msg) )
+ {
+ TranslateMessage( &msg );
+ DispatchMessage( &msg );
+ }
+ }
+
+ // uninitializing the ole libraries
+ //OleUninitialize( );
+ CoUninitialize( );
+
+ return msg.wParam;
+}
+
+
+
+//
+// FUNKTION: MyRegisterClass()
+//
+// AUFGABE: Registriert die Fensterklasse.
+//
+// KOMMENTARE:
+//
+// Diese Funktion und ihre Verwendung sind nur notwendig, wenn dieser Code
+// mit Win32-Systemen vor der 'RegisterClassEx'-Funktion kompatibel sein soll,
+// die zu Windows 95 hinzugefügt wurde. Es ist wichtig diese Funktion aufzurufen,
+// damit der Anwendung kleine Symbole mit den richtigen Proportionen zugewiesen
+// werden.
+//
+ATOM MyRegisterClass( HINSTANCE hInstance )
+{
+ WNDCLASSEXW wcex;
+
+ wcex.cbSize = sizeof(WNDCLASSEX);
+
+ wcex.style = CS_HREDRAW | CS_VREDRAW;
+ wcex.lpfnWndProc = (WNDPROC)WndProc;
+ wcex.cbClsExtra = 0;
+ wcex.cbWndExtra = 0;
+ wcex.hInstance = hInstance;
+ wcex.hIcon = LoadIcon(hInstance, (LPCTSTR)IDI_TESTWIN32);
+ wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
+ wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
+ wcex.lpszMenuName = (LPCWSTR)IDC_TESTWIN32;
+ wcex.lpszClassName = szWindowClass;
+ wcex.hIconSm = LoadIcon(wcex.hInstance, (LPCTSTR)IDI_SMALL);
+
+ return RegisterClassExW(&wcex);
+}
+
+//
+// FUNKTION: InitInstance(HANDLE, int)
+//
+// AUFGABE: Speichert die Instanzzugriffsnummer und erstellt das Hauptfenster
+//
+// KOMMENTARE:
+//
+// In dieser Funktion wird die Instanzzugriffsnummer in einer globalen Variable
+// gespeichert und das Hauptprogrammfenster erstellt und angezeigt.
+//
+BOOL InitInstance( HINSTANCE hInstance, int nCmdShow )
+{
+ HWND hWnd;
+
+ hInst = hInstance; // Instanzzugriffsnummer in unserer globalen Variable speichern
+
+ hWnd = CreateWindowExW(0, szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
+ CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);
+
+ if( !hWnd )
+ {
+ return FALSE;
+ }
+
+ ShowWindow( hWnd, nCmdShow );
+ UpdateWindow( hWnd );
+
+ return TRUE;
+}
+
+//
+// FUNKTION: WndProc(HWND, unsigned, WORD, LONG)
+//
+// AUFGABE: Verarbeitet Nachrichten für das Hauptfenster.
+//
+// WM_COMMAND - Anwendungsmenü verarbeiten
+// WM_PAINT - Hauptfenster darstellen
+// WM_DESTROY - Beendigungsnachricht ausgeben und zurückkehren
+//
+//
+LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
+{
+ int wmId;
+ int wmEvent;
+ PAINTSTRUCT ps;
+ HDC hdc;
+ TCHAR szHello[MAX_LOADSTRING];
+
+
+ LoadString(hInst, IDS_HELLO, szHello, MAX_LOADSTRING);
+
+ switch( message )
+ {
+ case WM_COMMAND:
+ wmId = LOWORD(wParam);
+ wmEvent = HIWORD(wParam);
+ // Menüauswahlen analysieren:
+ switch( wmId )
+ {
+ case IDD_PASTE:
+ //PasteClipboardData(hWnd);
+ PasteClipboardData2(hWnd);
+ break;
+
+ case IDM_EXIT:
+ DestroyWindow( hWnd );
+ break;
+
+ default:
+ return DefWindowProc( hWnd, message, wParam, lParam );
+ }
+ break;
+
+ case WM_PAINT:
+ hdc = BeginPaint (hWnd, &ps);
+ // ZU ERLEDIGEN: Hier beliebigen Code zum Zeichnen hinzufügen...
+ RECT rt;
+ GetClientRect( hWnd, &rt );
+
+ if ( NULL != pTextBuff )
+ {
+ DrawText( hdc, pTextBuff, lData, &rt, DT_CENTER );
+ }
+ else
+ {
+ DrawText( hdc, szHello, strlen(szHello), &rt, DT_CENTER );
+ }
+
+ EndPaint( hWnd, &ps );
+ break;
+
+ case WM_DESTROY:
+ PostQuitMessage( 0 );
+ break;
+
+ default:
+ return DefWindowProc( hWnd, message, wParam, lParam );
+ }
+ return 0;
+}
+
+void PasteClipboardData2(HWND hwndParent)
+{
+ IDataObject* pIDataObject;
+ HRESULT hr;
+ FORMATETC formatETC;
+ STGMEDIUM stgMedium;
+ LPVOID pGlobMem;
+ HWND hwnd;
+ DWORD sizeGlobBuff;
+
+ hr = MTAGetClipboard( &pIDataObject );
+ if ( SUCCEEDED( hr ) )
+ {
+ formatETC.cfFormat = CF_TEXT;
+ formatETC.ptd = NULL;
+ formatETC.dwAspect = DVASPECT_CONTENT;
+ formatETC.lindex = -1;
+ formatETC.tymed = TYMED_HGLOBAL;
+
+ hr = pIDataObject->GetData( &formatETC, &stgMedium );
+ pGlobMem = GlobalLock( stgMedium.hGlobal );
+ if ( NULL != pGlobMem )
+ {
+ if ( NULL != pTextBuff )
+ {
+ free( pTextBuff );
+ }
+
+ sizeGlobBuff = GlobalSize( stgMedium.hGlobal );
+ pTextBuff = (char*)malloc( sizeGlobBuff + 1 );
+ ZeroMemory( pTextBuff, sizeGlobBuff + 1 );
+
+ memcpy( pTextBuff, pGlobMem, sizeGlobBuff );
+ lData = sizeGlobBuff;
+
+ InvalidateRect( hwndParent, NULL, TRUE );
+ UpdateWindow( hwndParent );
+ }
+
+ GlobalUnlock( stgMedium.hGlobal );
+
+ ReleaseStgMedium( &stgMedium );
+
+ pIDataObject->Release();
+ }
+}
+
+//----------------------------------------------------
+// clipboard handling
+//----------------------------------------------------
+
+/*
+void PasteClipboardData(HWND hwndParent)
+{
+ IDataObject* pIDataObj = NULL;
+ HRESULT hr = E_FAIL;
+ unsigned int dwId;
+
+ hr = OleGetClipboard( &pIDataObj );
+ if ( SUCCEEDED( hr ) )
+ {
+ HRESULT hr = CoMarshalInterThreadInterfaceInStream(
+ __uuidof(IDataObject), //The IID of inteface to be marshaled
+ pIDataObj, //The interface pointer
+ &g_pStm //IStream pointer
+ );
+
+ HANDLE hThread = (HANDLE)_beginthreadex(
+ NULL, //Security
+ 0, //Stack Size
+ ThreadProc, //Start Address
+ NULL, //Parmeter
+ (unsigned int)hwndParent, //Creation Flag
+ &dwId //Thread Id
+ );
+
+ //Wait for the thread to finish execution
+ //A thread handle is signaled is thread execution
+ //is complete
+ for(;;)
+ {
+ DWORD dwRet = ::MsgWaitForMultipleObjects(
+ 1, //Count of objects
+ &hThread, //pointer to the array of objects
+ FALSE, //Wait for all objects?
+ INFINITE, //Wait How Long?
+ QS_ALLINPUT //Wait for all messges
+ );
+
+ //This means that the object is signaled
+ if ( dwRet != WAIT_OBJECT_0 + 1 )
+ break;
+
+ //Remove the messages from the queue
+ MSG msg;
+
+ while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) > 0)
+ {
+ //Not essential
+ TranslateMessage(&msg);
+ //Let the windowproc handle the message
+ DispatchMessage(&msg);
+ }
+ }
+
+ CloseHandle( hThread );
+ pIDataObj->Release();
+ }
+}
+*/
diff --git a/sal/workben/clipboardwben/testpaste/cbptest.rc b/sal/workben/clipboardwben/testpaste/cbptest.rc
new file mode 100644
index 000000000000..2deeb86a93a2
--- /dev/null
+++ b/sal/workben/clipboardwben/testpaste/cbptest.rc
@@ -0,0 +1,120 @@
+//Microsoft Developer Studio generated resource script.
+//
+#include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#define APSTUDIO_HIDDEN_SYMBOLS
+#include "windows.h"
+#undef APSTUDIO_HIDDEN_SYMBOLS
+#include "resource.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// German (Germany) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
+#ifdef _WIN32
+LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
+#pragma code_page(1252)
+#endif //_WIN32
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
+
+// Icon with lowest ID value placed first to ensure application icon
+// remains consistent on all systems.
+IDI_TESTWIN32 ICON DISCARDABLE "TestWin32.ICO"
+IDI_SMALL ICON DISCARDABLE "SMALL.ICO"
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Menu
+//
+
+IDC_TESTWIN32 MENU DISCARDABLE
+BEGIN
+ POPUP "&Datei"
+ BEGIN
+ MENUITEM "&Paste", IDD_PASTE
+ MENUITEM SEPARATOR
+ MENUITEM "&Beenden", IDM_EXIT
+ END
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Accelerator
+//
+
+IDC_TESTWIN32 ACCELERATORS MOVEABLE PURE
+BEGIN
+ "?", IDM_ABOUT, ASCII, ALT
+ "/", IDM_ABOUT, ASCII, ALT
+END
+
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+2 TEXTINCLUDE DISCARDABLE
+BEGIN
+ "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
+ "#include ""windows.h""\r\n"
+ "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
+ "#include ""resource.h""\r\n"
+ "\0"
+END
+
+3 TEXTINCLUDE DISCARDABLE
+BEGIN
+ "\r\n"
+ "\0"
+END
+
+1 TEXTINCLUDE DISCARDABLE
+BEGIN
+ "resource.h\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// String Table
+//
+
+STRINGTABLE DISCARDABLE
+BEGIN
+ IDS_APP_TITLE "TestWin32"
+ IDS_HELLO "Hallo Welt!"
+ IDC_TESTWIN32 "TESTWIN32"
+END
+
+#endif // German (Germany) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
diff --git a/sal/workben/clipboardwben/testpaste/makefile.mk b/sal/workben/clipboardwben/testpaste/makefile.mk
new file mode 100644
index 000000000000..5514d7c569b0
--- /dev/null
+++ b/sal/workben/clipboardwben/testpaste/makefile.mk
@@ -0,0 +1,67 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sal
+TARGET=cbptest
+LIBTARGET=NO
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+
+CFLAGS+= $(LFS_CFLAGS)
+CXXFLAGS+= $(LFS_CFLAGS)
+
+# --- Files --------------------------------------------------------
+
+#
+# test clipboard paste
+#
+ # --- Resources ----------------------------------------------------
+ RCFILES= cbptest.rc
+
+ OBJFILES= $(OBJ)$/cbptest.obj
+
+ APP1TARGET= $(TARGET)
+ APP1OBJS= $(OBJFILES)
+ APP1NOSAL= TRUE
+ APP1NOSVRES= $(RES)$/$(TARGET).res
+
+ APP1STDLIBS+=$(OLE32LIB) $(USER32LIB) $(KERNEL32LIB)
+
+ APP1LIBS=$(LB)$/ole9x.lib \
+ $(LB)$/tools32.lib
+
+ APP1DEPN= makefile.mk $(APP1NOSVRES)
+
+# --- Targets ------------------------------------------------------
+
+.INCLUDE : target.mk
+
+
diff --git a/sal/workben/clipboardwben/testpaste/resource.h b/sal/workben/clipboardwben/testpaste/resource.h
new file mode 100644
index 000000000000..5206e911eabf
--- /dev/null
+++ b/sal/workben/clipboardwben/testpaste/resource.h
@@ -0,0 +1,28 @@
+//{{NO_DEPENDENCIES}}
+// Microsoft Developer Studio generated include file.
+// Used by mtacb.rc
+//
+#define IDC_MYICON 2
+#define IDD_TESTWIN32_DIALOG 102
+#define IDD_ABOUTBOX 103
+#define IDS_APP_TITLE 103
+#define IDM_ABOUT 104
+#define IDM_EXIT 105
+#define IDS_HELLO 106
+#define IDI_TESTWIN32 107
+#define IDI_SMALL 108
+#define IDC_TESTWIN32 109
+#define IDR_MAINFRAME 128
+#define IDD_PASTE 32771
+#define IDC_STATIC -1
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NEXT_RESOURCE_VALUE 129
+#define _APS_NEXT_COMMAND_VALUE 32772
+#define _APS_NEXT_CONTROL_VALUE 1000
+#define _APS_NEXT_SYMED_VALUE 110
+#endif
+#endif
diff --git a/sal/workben/clipboardwben/testpaste/small.ico b/sal/workben/clipboardwben/testpaste/small.ico
new file mode 100644
index 000000000000..8f94d9aa8285
--- /dev/null
+++ b/sal/workben/clipboardwben/testpaste/small.ico
Binary files differ