Initial release of Maemo 5 port of gnuplot
[gnuplot] / src / win / wcommon.h
1 /*
2  * $Id: wcommon.h,v 1.9 2006/03/28 09:55:22 broeker Exp $
3  */
4
5 /* GNUPLOT - wcommon.h */
6
7 /*[
8  * Copyright 1992 - 1993, 1998, 2004 Maurice Castro, Russell Lang
9  *
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.
15  *
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,
20  * provided you
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
28  *    software.
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.
32  *
33  * This software is provided "as is" without express or implied warranty
34  * to the extent permitted by applicable law.
35 ]*/
36
37 /*
38  * AUTHORS
39  *
40  *   Maurice Castro
41  *   Russell Lang
42  */
43
44 #if WINVER >= 0x030a
45 #ifndef CYGWIN
46 #include <shellapi.h>
47 #endif
48 #endif
49 /* this file contains items that are internal to wgnuplot.dll */
50
51 #ifdef WIN32
52
53   /* Enable new directory dialogs on Win32 */
54 # define WITH_ADV_DIR_DIALOG
55
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 
59
60 #endif
61   
62
63 /* winmain.c */
64 #ifdef WIN32
65 # define PACKVERSION(major,minor) MAKELONG(minor,major)
66 extern DWORD GetDllVersion(LPCTSTR lpszDllName);
67 extern char *appdata_directory(void);
68 #endif
69
70 /* wgnuplib.c */
71 extern HINSTANCE hdllInstance;
72 extern LPSTR szParentClass;
73 extern LPSTR szTextClass;
74 extern LPSTR szPauseClass;
75 extern LPSTR szGraphClass;
76 extern LPSTR szAboutClass;
77
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);
82
83 /* wtext.c */
84 void UpdateText(LPTW, int);
85 void CreateTextClass(LPTW lptw);
86 void NewLine(LPTW);
87 void TextPutStr(LPTW lptw, LPSTR str);
88 void WriteTextIni(LPTW lptw);
89 void ReadTextIni(LPTW lptw);
90 #if WINVER >= 0x030a
91 void DragFunc(LPTW lptw, HDROP hdrop);
92 #endif
93
94 /* wmenu.c - Menu */
95 void SendMacro(LPTW lptw, UINT m);
96 void LoadMacros(LPTW lptw);
97 void CloseMacros(LPTW lptw);
98
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);
103 #if WINVER >= 0x030a
104 BOOL CALLBACK WINEXPORT PrintAbortProc(HDC hdcPrn, int code);
105 BOOL CALLBACK WINEXPORT PrintDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
106 #endif
107
108 /* wgraph.c */
109