2 * $Id: wcommon.h,v 1.9 2006/03/28 09:55:22 broeker Exp $
5 /* GNUPLOT - wcommon.h */
8 * Copyright 1992 - 1993, 1998, 2004 Maurice Castro, Russell Lang
10 * Permission to use, copy, and distribute this software and its
11 * documentation for any purpose with or without fee is hereby granted,
12 * provided that the above copyright notice appear in all copies and
13 * that both that copyright notice and this permission notice appear
14 * in supporting documentation.
16 * Permission to modify the software is granted, but not the right to
17 * distribute the complete modified source code. Modifications are to
18 * be distributed as patches to the released version. Permission to
19 * distribute binaries produced by compiling modified sources is granted,
21 * 1. distribute the corresponding source modifications from the
22 * released version in the form of a patch file along with the binaries,
23 * 2. add special version identification to distinguish your version
24 * in addition to the base release version number,
25 * 3. provide your name and address as the primary contact for the
26 * support of your modified version, and
27 * 4. retain our contact information in regard to use of the base
29 * Permission to distribute the released version of the source code along
30 * with corresponding source modifications in the form of a patch file is
31 * granted with same provisions 2 through 4 for binary distributions.
33 * This software is provided "as is" without express or implied warranty
34 * to the extent permitted by applicable law.
49 /* this file contains items that are internal to wgnuplot.dll */
53 /* Enable new directory dialogs on Win32 */
54 # define WITH_ADV_DIR_DIALOG
56 /* Choose between the directory dialog of the windows shell and
57 a modified version of the "file open" dialog */
58 # define SHELL_DIR_DIALOG
65 # define PACKVERSION(major,minor) MAKELONG(minor,major)
66 extern DWORD GetDllVersion(LPCTSTR lpszDllName);
67 extern char *appdata_directory(void);
71 extern HINSTANCE hdllInstance;
72 extern LPSTR szParentClass;
73 extern LPSTR szTextClass;
74 extern LPSTR szPauseClass;
75 extern LPSTR szGraphClass;
76 extern LPSTR szAboutClass;
78 void NEAR * LocalAllocPtr(UINT flags, UINT size);
79 void NEAR * LocalReAllocPtr(void NEAR * ptr, UINT flags, UINT size);
80 void LocalFreePtr(void NEAR *ptr);
81 LPSTR GetInt(LPSTR str, LPINT pval);
84 void UpdateText(LPTW, int);
85 void CreateTextClass(LPTW lptw);
87 void TextPutStr(LPTW lptw, LPSTR str);
88 void WriteTextIni(LPTW lptw);
89 void ReadTextIni(LPTW lptw);
91 void DragFunc(LPTW lptw, HDROP hdrop);
95 void SendMacro(LPTW lptw, UINT m);
96 void LoadMacros(LPTW lptw);
97 void CloseMacros(LPTW lptw);
99 /* wprinter.c - Printer setup and dump */
100 BOOL PrintSize(HDC printer, HWND hwnd, LPRECT lprect);
101 void PrintRegister(GP_LPPRINT lpr);
102 void PrintUnregister(GP_LPPRINT lpr);
104 BOOL CALLBACK WINEXPORT PrintAbortProc(HDC hdcPrn, int code);
105 BOOL CALLBACK WINEXPORT PrintDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);