1 #ifndef W32LOG_H_INCLUDED
2 #define W32LOG_H_INCLUDED
3 #define W32LOG_H_VERSION "$Id: w32log.h,v 1.16 2011/09/04 11:10:56 fabiankeil Exp $"
4 /*********************************************************************
6 * File : $Source: /cvsroot/ijbswa/current/w32log.h,v $
8 * Purpose : Functions for creating and destroying the log window,
9 * ouputting strings, processing messages and so on.
11 * Copyright : Written by and Copyright (C) 2001-2009 members of
12 * the Privoxy team. http://www.privoxy.org/
14 * Written by and Copyright (C) 1999 Adam Lock
17 * This program is free software; you can redistribute it
18 * and/or modify it under the terms of the GNU General
19 * Public License as published by the Free Software
20 * Foundation; either version 2 of the License, or (at
21 * your option) any later version.
23 * This program is distributed in the hope that it will
24 * be useful, but WITHOUT ANY WARRANTY; without even the
25 * implied warranty of MERCHANTABILITY or FITNESS FOR A
26 * PARTICULAR PURPOSE. See the GNU General Public
27 * License for more details.
29 * The GNU General Public License should be included with
30 * this file. If not, you can view it at
31 * http://www.gnu.org/copyleft/gpl.html
32 * or write to the Free Software Foundation, Inc., 59
33 * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
35 *********************************************************************/
38 extern HWND g_hwndLogFrame;
40 /* Indicates whether task bar shows activity animation */
41 extern BOOL g_bShowActivityAnimation;
43 /* Indicates if the log window appears on the task bar */
44 extern BOOL g_bShowOnTaskBar;
46 /* Indicates whether closing the log window really just hides it */
47 extern BOOL g_bCloseHidesWindow;
49 /* Indicates if messages are logged at all */
50 extern BOOL g_bLogMessages;
52 /* Indicates whether log messages are highlighted */
53 extern BOOL g_bHighlightMessages;
55 /* Indicates if buffer is limited in size */
56 extern BOOL g_bLimitBufferSize;
58 /* Maximum number of lines allowed in buffer when limited */
59 extern int g_nMaxBufferLines;
62 extern char g_szFontFaceName[32];
64 /* Size of font to use */
65 extern int g_nFontSize;
68 /* FIXME: this is a kludge */
70 extern const char * g_default_actions_file;
71 extern const char * g_user_actions_file;
72 extern const char * g_default_filterfile;
73 extern const char * g_user_filterfile;
75 extern const char * g_trustfile;
76 #endif /* def FEATURE_TRUST */
78 /* FIXME: end kludge */
80 extern HICON g_hiconApp;
81 extern int LogPutString(const char *pszText);
82 extern BOOL InitLogWindow(void);
83 extern void TermLogWindow(void);
84 extern void ShowLogWindow(BOOL bShow);
85 extern void LogShowActivity(void);
87 /* Revision control strings from this header and associated .c file */
88 extern const char w32log_rcs[];
89 extern const char w32log_h_rcs[];
91 #endif /* ndef W32LOG_H_INCLUDED */