1999-11-19 10:35:27 +03:00
|
|
|
/*
|
|
|
|
* DO NOT EDIT. THIS FILE IS GENERATED FROM nsIContentViewerFile.idl
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __gen_nsIContentViewerFile_h__
|
|
|
|
#define __gen_nsIContentViewerFile_h__
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
|
|
|
#include "nsrootidl.h"
|
|
|
|
#include "nsIWebShell.h"
|
|
|
|
#include "nsIDeviceContext.h"
|
2000-03-15 04:47:36 +03:00
|
|
|
#include "nsIPrintListener.h"
|
1999-11-19 10:35:27 +03:00
|
|
|
|
|
|
|
/* starting interface: nsIContentViewerFile */
|
|
|
|
|
|
|
|
#define NS_ICONTENTVIEWERFILE_IID_STR "6317f32c-9bc7-11d3-bccc-0060b0fc76bd"
|
|
|
|
|
|
|
|
#define NS_ICONTENTVIEWERFILE_IID \
|
|
|
|
{0x6317f32c, 0x9bc7, 0x11d3, \
|
|
|
|
{ 0xbc, 0xcc, 0x00, 0x60, 0xb0, 0xfc, 0x76, 0xbd }}
|
|
|
|
|
|
|
|
class nsIContentViewerFile : public nsISupports {
|
|
|
|
public:
|
|
|
|
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICONTENTVIEWERFILE_IID)
|
|
|
|
|
|
|
|
/* void Save (); */
|
|
|
|
NS_IMETHOD Save(void) = 0;
|
|
|
|
|
|
|
|
/* readonly attribute boolean saveable; */
|
|
|
|
NS_IMETHOD GetSaveable(PRBool *aSaveable) = 0;
|
|
|
|
|
2000-01-26 18:14:41 +03:00
|
|
|
/* void Print ();
|
|
|
|
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Print the current document
|
|
|
|
* @param aSilent -- if true, the print settings dialog will be suppressed
|
|
|
|
* @param aFileName -- a file pointer to output regression tests or print to a file
|
|
|
|
* @return error status
|
|
|
|
*/
|
2000-03-15 04:47:36 +03:00
|
|
|
NS_IMETHOD Print(PRBool aSilent,FILE *aFile, nsIPrintListener *aPrintListener = nsnull) = 0;
|
1999-11-19 10:35:27 +03:00
|
|
|
|
|
|
|
/* [noscript] void PrintContent (in nsIWebShell parent, in nsIDeviceContext DContext); */
|
|
|
|
NS_IMETHOD PrintContent(nsIWebShell * parent, nsIDeviceContext * DContext) = 0;
|
|
|
|
|
|
|
|
/* readonly attribute boolean printable; */
|
|
|
|
NS_IMETHOD GetPrintable(PRBool *aPrintable) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Use this macro when declaring classes that implement this interface. */
|
|
|
|
#define NS_DECL_NSICONTENTVIEWERFILE \
|
|
|
|
NS_IMETHOD Save(void); \
|
|
|
|
NS_IMETHOD GetSaveable(PRBool *aSaveable); \
|
2000-03-15 04:47:36 +03:00
|
|
|
NS_IMETHOD Print(PRBool aSilent,FILE *aFile, nsIPrintListener *aPrintListener); \
|
1999-11-19 10:35:27 +03:00
|
|
|
NS_IMETHOD PrintContent(nsIWebShell * parent, nsIDeviceContext * DContext); \
|
|
|
|
NS_IMETHOD GetPrintable(PRBool *aPrintable);
|
|
|
|
|
|
|
|
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
|
|
|
|
#define NS_FORWARD_NSICONTENTVIEWERFILE(_to) \
|
|
|
|
NS_IMETHOD Save(void) { return _to ## Save(); } \
|
|
|
|
NS_IMETHOD GetSaveable(PRBool *aSaveable) { return _to ## GetSaveable(aSaveable); } \
|
2000-03-15 04:47:36 +03:00
|
|
|
NS_IMETHOD Print(PRBool aSilent,FILE *aFile, nsIPrintListener *aPrintListener) { return _to ## Print(); } \
|
1999-11-19 10:35:27 +03:00
|
|
|
NS_IMETHOD PrintContent(nsIWebShell * parent, nsIDeviceContext * DContext) { return _to ## PrintContent(parent, DContext); } \
|
|
|
|
NS_IMETHOD GetPrintable(PRBool *aPrintable) { return _to ## GetPrintable(aPrintable); }
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __gen_nsIContentViewerFile_h__ */
|