0fb1fe341d1628d4bd5b11c7ebdab1979179a09c
[reactos.git] / dll / win32 / lpk / ros_lpk.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS
4 * PURPOSE: LPK Library
5 * PROGRAMMER: Magnus Olsen (greatlrd)
6 *
7 */
8
9 #ifndef _LPK_H
10 #define _LPK_H
11
12 #include <stdarg.h>
13
14 #define WIN32_NO_STATUS
15 #include <windef.h>
16 #include <winbase.h>
17 #include <wingdi.h>
18 #include <winnls.h>
19 #include <usp10.h>
20 #include <strsafe.h>
21
22 /* FIXME USP10 api that does not have prototype in any include file */
23 VOID WINAPI LpkPresent(VOID);
24
25 /* FIXME move _LPK_LPEDITCONTROL_LIST to global place so user32 can access it */
26 typedef struct _LPK_LPEDITCONTROL_LIST
27 {
28 PVOID EditCreate;
29 PVOID EditIchToXY;
30 PVOID EditMouseToIch;
31 PVOID EditCchInWidth;
32 PVOID EditGetLineWidth;
33 PVOID EditDrawText;
34 PVOID EditHScroll;
35 PVOID EditMoveSelection;
36 PVOID EditVerifyText;
37 PVOID EditNextWord;
38 PVOID EditSetMenu;
39 PVOID EditProcessMenu;
40 PVOID EditCreateCaret;
41 PVOID EditAdjustCaret;
42 } LPK_LPEDITCONTROL_LIST, *PLPK_LPEDITCONTROL_LIST;
43
44 /* This List are exported */
45
46
47 DWORD WINAPI EditCreate( DWORD x1, DWORD x2);
48 DWORD WINAPI EditIchToXY( DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5);
49 DWORD WINAPI EditMouseToIch( DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5);
50 DWORD WINAPI EditCchInWidth( DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5);
51
52 DWORD WINAPI EditGetLineWidth( DWORD x1, DWORD x2, DWORD x3, DWORD x4);
53 DWORD WINAPI EditDrawText( DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5, DWORD x6, DWORD x7);
54 DWORD WINAPI EditHScroll( DWORD x1, DWORD x2, DWORD x3);
55 DWORD WINAPI EditMoveSelection( DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5);
56
57 DWORD WINAPI EditVerifyText( DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5, DWORD x6);
58 DWORD WINAPI EditNextWord(DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5, DWORD x6, DWORD x7);
59 DWORD WINAPI EditSetMenu(DWORD x1, DWORD x2);
60 DWORD WINAPI EditProcessMenu(DWORD x1, DWORD x2);
61 DWORD WINAPI EditCreateCaret(DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5);
62 DWORD WINAPI EditAdjustCaret(DWORD x1, DWORD x2, DWORD x3, DWORD x5);
63
64 DWORD WINAPI LpkInitialize(DWORD x1);
65 DWORD WINAPI LpkTabbedTextOut(DWORD x1,DWORD x2,DWORD x3,DWORD x4,DWORD x5,DWORD x6,DWORD x7,DWORD x8,DWORD x9,DWORD x10,DWORD x11,DWORD x12);
66 BOOL WINAPI LpkDllInitialize (HANDLE hDll, DWORD dwReason, LPVOID lpReserved);
67 DWORD WINAPI LpkDrawTextEx(DWORD x1,DWORD x2,DWORD x3,DWORD x4,DWORD x5,DWORD x6,DWORD x7,DWORD x8,DWORD x9, DWORD x10);
68 DWORD WINAPI LpkGetTextExtentExPoint(DWORD x1,DWORD x2,DWORD x3,DWORD x4,DWORD x5,DWORD x6,DWORD x7,DWORD x8,DWORD x9);
69 DWORD WINAPI LpkPSMTextOut(DWORD x1,DWORD x2,DWORD x3,DWORD x4,DWORD x5,DWORD x6);
70 DWORD WINAPI LpkUseGDIWidthCache(DWORD x1,DWORD x2,DWORD x3,DWORD x4,DWORD x5);
71 DWORD WINAPI ftsWordBreak(DWORD x1,DWORD x2,DWORD x3,DWORD x4,DWORD x5);
72
73 /* Implemented */
74
75 BOOL WINAPI LpkExtTextOut(HDC hdc, int x, int y, UINT fuOptions, const RECT *lprc,
76 LPCWSTR lpString, UINT uCount , const INT *lpDx, INT unknown);
77
78 DWORD WINAPI LpkGetCharacterPlacement(HDC hdc, LPCWSTR lpString, INT uCount, INT nMaxExtent,
79 GCP_RESULTSW *lpResults, DWORD dwFlags, DWORD dwUnused);
80 /* bidi.c */
81
82 #define WINE_GCPW_FORCE_LTR 0
83 #define WINE_GCPW_FORCE_RTL 1
84 #define WINE_GCPW_LOOSE_LTR 2
85 #define WINE_GCPW_LOOSE_RTL 3
86 #define WINE_GCPW_DIR_MASK 3
87 #define WINE_GCPW_LOOSE_MASK 2
88
89 BOOL BIDI_Reorder(
90 _In_ HDC hDC, /* [in] Display DC */
91 _In_ LPCWSTR lpString, /* [in] The string for which information is to be returned */
92 _In_ INT uCount, /* [in] Number of WCHARs in string. */
93 _In_ DWORD dwFlags, /* [in] GetCharacterPlacement compatible flags specifying how to process the string */
94 _In_ DWORD dwWineGCP_Flags, /* [in] Wine internal flags - Force paragraph direction */
95 _Out_ LPWSTR lpOutString, /* [out] Reordered string */
96 _In_ INT uCountOut, /* [in] Size of output buffer */
97 _Out_ UINT *lpOrder, /* [out] Logical -> Visual order map */
98 _Out_ WORD **lpGlyphs, /* [out] reordered, mirrored, shaped glyphs to display */
99 _Out_ INT *cGlyphs /* [out] number of glyphs generated */
100 );
101
102 #endif /* _LPK_H */