File: PrintProgressListener.h

package info (click to toggle)
galeon 2.0.2-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 19,212 kB
  • ctags: 9,891
  • sloc: ansic: 77,793; cpp: 15,301; sh: 8,961; xml: 5,761; makefile: 888
file content (53 lines) | stat: -rw-r--r-- 1,433 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
 *  Copyright (C) 2002 Philip Langdale
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2, or (at your option)
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef __PrintProgressListener_h_
#define __PrintProgressListener_h_

#include <nsIWebProgressListener.h>
#include <nsWeakReference.h>
#include <gtk/gtkwindow.h>

#include "GulString.h"

class nsIPrintSettings;
class nsIWebBrowserPrint;

class GPrintListener : public nsIWebProgressListener
{
public:
	NS_DECL_ISUPPORTS
	NS_DECL_NSIWEBPROGRESSLISTENER

	GPrintListener(nsIWebBrowserPrint *aPrint, nsIPrintSettings *aSettings, GtkWindow *aParent);
        virtual ~GPrintListener();

	NS_METHOD Abort();

private:
	GulCString  mFilename;

	GtkWidget *mDialog;
	GtkWidget *mProgress;

	PRTime     mStartTime;

	nsWeakPtr  mWeakPrint;
};

#endif //__PrintProgressListener_h_