1 #ifndef W32LOG_H_INCLUDED
2 #define W32LOG_H_INCLUDED
3 /*********************************************************************
5 * File : $Source: /cvsroot/ijbswa/current/w32log.h,v $
7 * Purpose : Functions for creating and destroying the log window,
8 * ouputting strings, processing messages and so on.
10 * Copyright : Written by and Copyright (C) 2001-2009 members of
11 * the Privoxy team. http://www.privoxy.org/
13 * Written by and Copyright (C) 1999 Adam Lock
16 * This program is free software; you can redistribute it
17 * and/or modify it under the terms of the GNU General
18 * Public License as published by the Free Software
19 * Foundation; either version 2 of the License, or (at
20 * your option) any later version.
22 * This program is distributed in the hope that it will
23 * be useful, but WITHOUT ANY WARRANTY; without even the
24 * implied warranty of MERCHANTABILITY or FITNESS FOR A
25 * PARTICULAR PURPOSE. See the GNU General Public
26 * License for more details.
28 * The GNU General Public License should be included with
29 * this file. If not, you can view it at
30 * http://www.gnu.org/copyleft/gpl.html
31 * or write to the Free Software Foundation, Inc., 59
32 * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
34 *********************************************************************/
37 extern HWND g_hwndLogFrame;
39 /* Indicates whether task bar shows activity animation */
40 extern BOOL g_bShowActivityAnimation;
42 /* Indicates if the log window appears on the task bar */
43 extern BOOL g_bShowOnTaskBar;
45 /* Indicates whether closing the log window really just hides it */
46 extern BOOL g_bCloseHidesWindow;
48 /* Indicates if messages are logged at all */
49 extern BOOL g_bLogMessages;
51 /* Indicates whether log messages are highlighted */
52 extern BOOL g_bHighlightMessages;
54 /* Indicates if buffer is limited in size */
55 extern BOOL g_bLimitBufferSize;
57 /* Maximum number of lines allowed in buffer when limited */
58 extern int g_nMaxBufferLines;
61 extern char g_szFontFaceName[32];
63 /* Size of font to use */
64 extern int g_nFontSize;
67 /* FIXME: this is a kludge */
69 extern const char * g_default_actions_file;
70 extern const char * g_user_actions_file;
71 extern const char * g_default_filterfile;
72 extern const char * g_user_filterfile;
74 extern const char * g_trustfile;
75 #endif /* def FEATURE_TRUST */
77 /* FIXME: end kludge */
79 extern HICON g_hiconApp;
80 extern int LogPutString(const char *pszText);
81 extern BOOL InitLogWindow(void);
82 extern void TermLogWindow(void);
83 extern void ShowLogWindow(BOOL bShow);
84 extern void LogShowActivity(void);
86 #endif /* ndef W32LOG_H_INCLUDED */