LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIPrintOptions.h (source / functions) Found Hit Coverage
Test: app.info Lines: 2 0 0.0 %
Date: 2012-06-02 Functions: 2 0 0.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/widget/nsIPrintOptions.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIPrintOptions_h__
       6                 : #define __gen_nsIPrintOptions_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsIPrintSettings_h__
      14                 : #include "nsIPrintSettings.h"
      15                 : #endif
      16                 : 
      17                 : /* For IDL files that don't want to include root IDL files. */
      18                 : #ifndef NS_NO_VTABLE
      19                 : #define NS_NO_VTABLE
      20                 : #endif
      21                 : struct nsFont;
      22                 : class nsIStringEnumerator; /* forward declaration */
      23                 : 
      24                 : 
      25                 : /* starting interface:    nsIPrintOptions */
      26                 : #define NS_IPRINTOPTIONS_IID_STR "92597c2b-109b-40bb-8f93-9b9acfa31de8"
      27                 : 
      28                 : #define NS_IPRINTOPTIONS_IID \
      29                 :   {0x92597c2b, 0x109b, 0x40bb, \
      30                 :     { 0x8f, 0x93, 0x9b, 0x9a, 0xcf, 0xa3, 0x1d, 0xe8 }}
      31                 : 
      32               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPrintOptions : public nsISupports {
      33                 :  public: 
      34                 : 
      35                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRINTOPTIONS_IID)
      36                 : 
      37                 :   /* void ShowPrintSetupDialog (in nsIPrintSettings aThePrintSettings); */
      38                 :   NS_SCRIPTABLE NS_IMETHOD ShowPrintSetupDialog(nsIPrintSettings *aThePrintSettings) = 0;
      39                 : 
      40                 :   /* nsIPrintSettings CreatePrintSettings (); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD CreatePrintSettings(nsIPrintSettings * *_retval NS_OUTPARAM) = 0;
      42                 : 
      43                 :   /* PRInt32 getPrinterPrefInt (in nsIPrintSettings aPrintSettings, in wstring aPrefName); */
      44                 :   NS_SCRIPTABLE NS_IMETHOD GetPrinterPrefInt(nsIPrintSettings *aPrintSettings, const PRUnichar * aPrefName, PRInt32 *_retval NS_OUTPARAM) = 0;
      45                 : 
      46                 :   /* void displayJobProperties (in wstring aPrinter, in nsIPrintSettings aPrintSettings, out boolean aDisplayed); */
      47                 :   NS_SCRIPTABLE NS_IMETHOD DisplayJobProperties(const PRUnichar * aPrinter, nsIPrintSettings *aPrintSettings, bool *aDisplayed NS_OUTPARAM) = 0;
      48                 : 
      49                 :   enum {
      50                 :     kNativeDataPrintRecord = 0
      51                 :   };
      52                 : 
      53                 :   /* [noscript] voidPtr GetNativeData (in short aDataType); */
      54                 :   NS_IMETHOD GetNativeData(PRInt16 aDataType, void **_retval NS_OUTPARAM) = 0;
      55                 : 
      56                 : };
      57                 : 
      58                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrintOptions, NS_IPRINTOPTIONS_IID)
      59                 : 
      60                 : /* Use this macro when declaring classes that implement this interface. */
      61                 : #define NS_DECL_NSIPRINTOPTIONS \
      62                 :   NS_SCRIPTABLE NS_IMETHOD ShowPrintSetupDialog(nsIPrintSettings *aThePrintSettings); \
      63                 :   NS_SCRIPTABLE NS_IMETHOD CreatePrintSettings(nsIPrintSettings * *_retval NS_OUTPARAM); \
      64                 :   NS_SCRIPTABLE NS_IMETHOD GetPrinterPrefInt(nsIPrintSettings *aPrintSettings, const PRUnichar * aPrefName, PRInt32 *_retval NS_OUTPARAM); \
      65                 :   NS_SCRIPTABLE NS_IMETHOD DisplayJobProperties(const PRUnichar * aPrinter, nsIPrintSettings *aPrintSettings, bool *aDisplayed NS_OUTPARAM); \
      66                 :   NS_IMETHOD GetNativeData(PRInt16 aDataType, void **_retval NS_OUTPARAM); 
      67                 : 
      68                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      69                 : #define NS_FORWARD_NSIPRINTOPTIONS(_to) \
      70                 :   NS_SCRIPTABLE NS_IMETHOD ShowPrintSetupDialog(nsIPrintSettings *aThePrintSettings) { return _to ShowPrintSetupDialog(aThePrintSettings); } \
      71                 :   NS_SCRIPTABLE NS_IMETHOD CreatePrintSettings(nsIPrintSettings * *_retval NS_OUTPARAM) { return _to CreatePrintSettings(_retval); } \
      72                 :   NS_SCRIPTABLE NS_IMETHOD GetPrinterPrefInt(nsIPrintSettings *aPrintSettings, const PRUnichar * aPrefName, PRInt32 *_retval NS_OUTPARAM) { return _to GetPrinterPrefInt(aPrintSettings, aPrefName, _retval); } \
      73                 :   NS_SCRIPTABLE NS_IMETHOD DisplayJobProperties(const PRUnichar * aPrinter, nsIPrintSettings *aPrintSettings, bool *aDisplayed NS_OUTPARAM) { return _to DisplayJobProperties(aPrinter, aPrintSettings, aDisplayed); } \
      74                 :   NS_IMETHOD GetNativeData(PRInt16 aDataType, void **_retval NS_OUTPARAM) { return _to GetNativeData(aDataType, _retval); } 
      75                 : 
      76                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      77                 : #define NS_FORWARD_SAFE_NSIPRINTOPTIONS(_to) \
      78                 :   NS_SCRIPTABLE NS_IMETHOD ShowPrintSetupDialog(nsIPrintSettings *aThePrintSettings) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowPrintSetupDialog(aThePrintSettings); } \
      79                 :   NS_SCRIPTABLE NS_IMETHOD CreatePrintSettings(nsIPrintSettings * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreatePrintSettings(_retval); } \
      80                 :   NS_SCRIPTABLE NS_IMETHOD GetPrinterPrefInt(nsIPrintSettings *aPrintSettings, const PRUnichar * aPrefName, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrinterPrefInt(aPrintSettings, aPrefName, _retval); } \
      81                 :   NS_SCRIPTABLE NS_IMETHOD DisplayJobProperties(const PRUnichar * aPrinter, nsIPrintSettings *aPrintSettings, bool *aDisplayed NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DisplayJobProperties(aPrinter, aPrintSettings, aDisplayed); } \
      82                 :   NS_IMETHOD GetNativeData(PRInt16 aDataType, void **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNativeData(aDataType, _retval); } 
      83                 : 
      84                 : #if 0
      85                 : /* Use the code below as a template for the implementation class for this interface. */
      86                 : 
      87                 : /* Header file */
      88                 : class nsPrintOptions : public nsIPrintOptions
      89                 : {
      90                 : public:
      91                 :   NS_DECL_ISUPPORTS
      92                 :   NS_DECL_NSIPRINTOPTIONS
      93                 : 
      94                 :   nsPrintOptions();
      95                 : 
      96                 : private:
      97                 :   ~nsPrintOptions();
      98                 : 
      99                 : protected:
     100                 :   /* additional members */
     101                 : };
     102                 : 
     103                 : /* Implementation file */
     104                 : NS_IMPL_ISUPPORTS1(nsPrintOptions, nsIPrintOptions)
     105                 : 
     106                 : nsPrintOptions::nsPrintOptions()
     107                 : {
     108                 :   /* member initializers and constructor code */
     109                 : }
     110                 : 
     111                 : nsPrintOptions::~nsPrintOptions()
     112                 : {
     113                 :   /* destructor code */
     114                 : }
     115                 : 
     116                 : /* void ShowPrintSetupDialog (in nsIPrintSettings aThePrintSettings); */
     117                 : NS_IMETHODIMP nsPrintOptions::ShowPrintSetupDialog(nsIPrintSettings *aThePrintSettings)
     118                 : {
     119                 :     return NS_ERROR_NOT_IMPLEMENTED;
     120                 : }
     121                 : 
     122                 : /* nsIPrintSettings CreatePrintSettings (); */
     123                 : NS_IMETHODIMP nsPrintOptions::CreatePrintSettings(nsIPrintSettings * *_retval NS_OUTPARAM)
     124                 : {
     125                 :     return NS_ERROR_NOT_IMPLEMENTED;
     126                 : }
     127                 : 
     128                 : /* PRInt32 getPrinterPrefInt (in nsIPrintSettings aPrintSettings, in wstring aPrefName); */
     129                 : NS_IMETHODIMP nsPrintOptions::GetPrinterPrefInt(nsIPrintSettings *aPrintSettings, const PRUnichar * aPrefName, PRInt32 *_retval NS_OUTPARAM)
     130                 : {
     131                 :     return NS_ERROR_NOT_IMPLEMENTED;
     132                 : }
     133                 : 
     134                 : /* void displayJobProperties (in wstring aPrinter, in nsIPrintSettings aPrintSettings, out boolean aDisplayed); */
     135                 : NS_IMETHODIMP nsPrintOptions::DisplayJobProperties(const PRUnichar * aPrinter, nsIPrintSettings *aPrintSettings, bool *aDisplayed NS_OUTPARAM)
     136                 : {
     137                 :     return NS_ERROR_NOT_IMPLEMENTED;
     138                 : }
     139                 : 
     140                 : /* [noscript] voidPtr GetNativeData (in short aDataType); */
     141                 : NS_IMETHODIMP nsPrintOptions::GetNativeData(PRInt16 aDataType, void **_retval NS_OUTPARAM)
     142                 : {
     143                 :     return NS_ERROR_NOT_IMPLEMENTED;
     144                 : }
     145                 : 
     146                 : /* End of implementation class template. */
     147                 : #endif
     148                 : 
     149                 : 
     150                 : /* starting interface:    nsIPrinterEnumerator */
     151                 : #define NS_IPRINTERENUMERATOR_IID_STR "5e738fff-404c-4c94-9189-e8f2cce93e94"
     152                 : 
     153                 : #define NS_IPRINTERENUMERATOR_IID \
     154                 :   {0x5e738fff, 0x404c, 0x4c94, \
     155                 :     { 0x91, 0x89, 0xe8, 0xf2, 0xcc, 0xe9, 0x3e, 0x94 }}
     156                 : 
     157               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPrinterEnumerator : public nsISupports {
     158                 :  public: 
     159                 : 
     160                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRINTERENUMERATOR_IID)
     161                 : 
     162                 :   /* readonly attribute wstring defaultPrinterName; */
     163                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultPrinterName(PRUnichar * *aDefaultPrinterName) = 0;
     164                 : 
     165                 :   /* void initPrintSettingsFromPrinter (in wstring aPrinterName, in nsIPrintSettings aPrintSettings); */
     166                 :   NS_SCRIPTABLE NS_IMETHOD InitPrintSettingsFromPrinter(const PRUnichar * aPrinterName, nsIPrintSettings *aPrintSettings) = 0;
     167                 : 
     168                 :   /* readonly attribute nsIStringEnumerator printerNameList; */
     169                 :   NS_SCRIPTABLE NS_IMETHOD GetPrinterNameList(nsIStringEnumerator * *aPrinterNameList) = 0;
     170                 : 
     171                 :   /* void displayPropertiesDlg (in wstring aPrinter, in nsIPrintSettings aPrintSettings); */
     172                 :   NS_SCRIPTABLE NS_IMETHOD DisplayPropertiesDlg(const PRUnichar * aPrinter, nsIPrintSettings *aPrintSettings) = 0;
     173                 : 
     174                 : };
     175                 : 
     176                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrinterEnumerator, NS_IPRINTERENUMERATOR_IID)
     177                 : 
     178                 : /* Use this macro when declaring classes that implement this interface. */
     179                 : #define NS_DECL_NSIPRINTERENUMERATOR \
     180                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultPrinterName(PRUnichar * *aDefaultPrinterName); \
     181                 :   NS_SCRIPTABLE NS_IMETHOD InitPrintSettingsFromPrinter(const PRUnichar * aPrinterName, nsIPrintSettings *aPrintSettings); \
     182                 :   NS_SCRIPTABLE NS_IMETHOD GetPrinterNameList(nsIStringEnumerator * *aPrinterNameList); \
     183                 :   NS_SCRIPTABLE NS_IMETHOD DisplayPropertiesDlg(const PRUnichar * aPrinter, nsIPrintSettings *aPrintSettings); 
     184                 : 
     185                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     186                 : #define NS_FORWARD_NSIPRINTERENUMERATOR(_to) \
     187                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultPrinterName(PRUnichar * *aDefaultPrinterName) { return _to GetDefaultPrinterName(aDefaultPrinterName); } \
     188                 :   NS_SCRIPTABLE NS_IMETHOD InitPrintSettingsFromPrinter(const PRUnichar * aPrinterName, nsIPrintSettings *aPrintSettings) { return _to InitPrintSettingsFromPrinter(aPrinterName, aPrintSettings); } \
     189                 :   NS_SCRIPTABLE NS_IMETHOD GetPrinterNameList(nsIStringEnumerator * *aPrinterNameList) { return _to GetPrinterNameList(aPrinterNameList); } \
     190                 :   NS_SCRIPTABLE NS_IMETHOD DisplayPropertiesDlg(const PRUnichar * aPrinter, nsIPrintSettings *aPrintSettings) { return _to DisplayPropertiesDlg(aPrinter, aPrintSettings); } 
     191                 : 
     192                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     193                 : #define NS_FORWARD_SAFE_NSIPRINTERENUMERATOR(_to) \
     194                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultPrinterName(PRUnichar * *aDefaultPrinterName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultPrinterName(aDefaultPrinterName); } \
     195                 :   NS_SCRIPTABLE NS_IMETHOD InitPrintSettingsFromPrinter(const PRUnichar * aPrinterName, nsIPrintSettings *aPrintSettings) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitPrintSettingsFromPrinter(aPrinterName, aPrintSettings); } \
     196                 :   NS_SCRIPTABLE NS_IMETHOD GetPrinterNameList(nsIStringEnumerator * *aPrinterNameList) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrinterNameList(aPrinterNameList); } \
     197                 :   NS_SCRIPTABLE NS_IMETHOD DisplayPropertiesDlg(const PRUnichar * aPrinter, nsIPrintSettings *aPrintSettings) { return !_to ? NS_ERROR_NULL_POINTER : _to->DisplayPropertiesDlg(aPrinter, aPrintSettings); } 
     198                 : 
     199                 : #if 0
     200                 : /* Use the code below as a template for the implementation class for this interface. */
     201                 : 
     202                 : /* Header file */
     203                 : class nsPrinterEnumerator : public nsIPrinterEnumerator
     204                 : {
     205                 : public:
     206                 :   NS_DECL_ISUPPORTS
     207                 :   NS_DECL_NSIPRINTERENUMERATOR
     208                 : 
     209                 :   nsPrinterEnumerator();
     210                 : 
     211                 : private:
     212                 :   ~nsPrinterEnumerator();
     213                 : 
     214                 : protected:
     215                 :   /* additional members */
     216                 : };
     217                 : 
     218                 : /* Implementation file */
     219                 : NS_IMPL_ISUPPORTS1(nsPrinterEnumerator, nsIPrinterEnumerator)
     220                 : 
     221                 : nsPrinterEnumerator::nsPrinterEnumerator()
     222                 : {
     223                 :   /* member initializers and constructor code */
     224                 : }
     225                 : 
     226                 : nsPrinterEnumerator::~nsPrinterEnumerator()
     227                 : {
     228                 :   /* destructor code */
     229                 : }
     230                 : 
     231                 : /* readonly attribute wstring defaultPrinterName; */
     232                 : NS_IMETHODIMP nsPrinterEnumerator::GetDefaultPrinterName(PRUnichar * *aDefaultPrinterName)
     233                 : {
     234                 :     return NS_ERROR_NOT_IMPLEMENTED;
     235                 : }
     236                 : 
     237                 : /* void initPrintSettingsFromPrinter (in wstring aPrinterName, in nsIPrintSettings aPrintSettings); */
     238                 : NS_IMETHODIMP nsPrinterEnumerator::InitPrintSettingsFromPrinter(const PRUnichar * aPrinterName, nsIPrintSettings *aPrintSettings)
     239                 : {
     240                 :     return NS_ERROR_NOT_IMPLEMENTED;
     241                 : }
     242                 : 
     243                 : /* readonly attribute nsIStringEnumerator printerNameList; */
     244                 : NS_IMETHODIMP nsPrinterEnumerator::GetPrinterNameList(nsIStringEnumerator * *aPrinterNameList)
     245                 : {
     246                 :     return NS_ERROR_NOT_IMPLEMENTED;
     247                 : }
     248                 : 
     249                 : /* void displayPropertiesDlg (in wstring aPrinter, in nsIPrintSettings aPrintSettings); */
     250                 : NS_IMETHODIMP nsPrinterEnumerator::DisplayPropertiesDlg(const PRUnichar * aPrinter, nsIPrintSettings *aPrintSettings)
     251                 : {
     252                 :     return NS_ERROR_NOT_IMPLEMENTED;
     253                 : }
     254                 : 
     255                 : /* End of implementation class template. */
     256                 : #endif
     257                 : 
     258                 : 
     259                 : #endif /* __gen_nsIPrintOptions_h__ */

Generated by: LCOV version 1.7