LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIEditorStyleSheets.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIEditorStyleSheets.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIEditorStyleSheets_h__
       6             : #define __gen_nsIEditorStyleSheets_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : 
      18             : /* starting interface:    nsIEditorStyleSheets */
      19             : #define NS_IEDITORSTYLESHEETS_IID_STR "4805e682-49b9-11d3-9ce4-ed60bd6cb5bc"
      20             : 
      21             : #define NS_IEDITORSTYLESHEETS_IID \
      22             :   {0x4805e682, 0x49b9, 0x11d3, \
      23             :     { 0x9c, 0xe4, 0xed, 0x60, 0xbd, 0x6c, 0xb5, 0xbc }}
      24             : 
      25           0 : class NS_NO_VTABLE nsIEditorStyleSheets : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEDITORSTYLESHEETS_IID)
      29             : 
      30             :   /* void replaceStyleSheet (in AString aURL); */
      31             :   NS_IMETHOD ReplaceStyleSheet(const nsAString & aURL) = 0;
      32             : 
      33             :   /* void addStyleSheet (in AString aURL); */
      34             :   NS_IMETHOD AddStyleSheet(const nsAString & aURL) = 0;
      35             : 
      36             :   /* void replaceOverrideStyleSheet (in AString aURL); */
      37             :   NS_IMETHOD ReplaceOverrideStyleSheet(const nsAString & aURL) = 0;
      38             : 
      39             :   /* void addOverrideStyleSheet (in AString aURL); */
      40             :   NS_IMETHOD AddOverrideStyleSheet(const nsAString & aURL) = 0;
      41             : 
      42             :   /* void removeStyleSheet (in AString aURL); */
      43             :   NS_IMETHOD RemoveStyleSheet(const nsAString & aURL) = 0;
      44             : 
      45             :   /* void removeOverrideStyleSheet (in AString aURL); */
      46             :   NS_IMETHOD RemoveOverrideStyleSheet(const nsAString & aURL) = 0;
      47             : 
      48             :   /* void enableStyleSheet (in AString aURL, in boolean aEnable); */
      49             :   NS_IMETHOD EnableStyleSheet(const nsAString & aURL, bool aEnable) = 0;
      50             : 
      51             : };
      52             : 
      53             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIEditorStyleSheets, NS_IEDITORSTYLESHEETS_IID)
      54             : 
      55             : /* Use this macro when declaring classes that implement this interface. */
      56             : #define NS_DECL_NSIEDITORSTYLESHEETS \
      57             :   NS_IMETHOD ReplaceStyleSheet(const nsAString & aURL) override; \
      58             :   NS_IMETHOD AddStyleSheet(const nsAString & aURL) override; \
      59             :   NS_IMETHOD ReplaceOverrideStyleSheet(const nsAString & aURL) override; \
      60             :   NS_IMETHOD AddOverrideStyleSheet(const nsAString & aURL) override; \
      61             :   NS_IMETHOD RemoveStyleSheet(const nsAString & aURL) override; \
      62             :   NS_IMETHOD RemoveOverrideStyleSheet(const nsAString & aURL) override; \
      63             :   NS_IMETHOD EnableStyleSheet(const nsAString & aURL, bool aEnable) override; 
      64             : 
      65             : /* Use this macro when declaring the members of this interface when the
      66             :    class doesn't implement the interface. This is useful for forwarding. */
      67             : #define NS_DECL_NON_VIRTUAL_NSIEDITORSTYLESHEETS \
      68             :   nsresult ReplaceStyleSheet(const nsAString & aURL); \
      69             :   nsresult AddStyleSheet(const nsAString & aURL); \
      70             :   nsresult ReplaceOverrideStyleSheet(const nsAString & aURL); \
      71             :   nsresult AddOverrideStyleSheet(const nsAString & aURL); \
      72             :   nsresult RemoveStyleSheet(const nsAString & aURL); \
      73             :   nsresult RemoveOverrideStyleSheet(const nsAString & aURL); \
      74             :   nsresult EnableStyleSheet(const nsAString & aURL, bool aEnable); 
      75             : 
      76             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      77             : #define NS_FORWARD_NSIEDITORSTYLESHEETS(_to) \
      78             :   NS_IMETHOD ReplaceStyleSheet(const nsAString & aURL) override { return _to ReplaceStyleSheet(aURL); } \
      79             :   NS_IMETHOD AddStyleSheet(const nsAString & aURL) override { return _to AddStyleSheet(aURL); } \
      80             :   NS_IMETHOD ReplaceOverrideStyleSheet(const nsAString & aURL) override { return _to ReplaceOverrideStyleSheet(aURL); } \
      81             :   NS_IMETHOD AddOverrideStyleSheet(const nsAString & aURL) override { return _to AddOverrideStyleSheet(aURL); } \
      82             :   NS_IMETHOD RemoveStyleSheet(const nsAString & aURL) override { return _to RemoveStyleSheet(aURL); } \
      83             :   NS_IMETHOD RemoveOverrideStyleSheet(const nsAString & aURL) override { return _to RemoveOverrideStyleSheet(aURL); } \
      84             :   NS_IMETHOD EnableStyleSheet(const nsAString & aURL, bool aEnable) override { return _to EnableStyleSheet(aURL, aEnable); } 
      85             : 
      86             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      87             : #define NS_FORWARD_SAFE_NSIEDITORSTYLESHEETS(_to) \
      88             :   NS_IMETHOD ReplaceStyleSheet(const nsAString & aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceStyleSheet(aURL); } \
      89             :   NS_IMETHOD AddStyleSheet(const nsAString & aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddStyleSheet(aURL); } \
      90             :   NS_IMETHOD ReplaceOverrideStyleSheet(const nsAString & aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceOverrideStyleSheet(aURL); } \
      91             :   NS_IMETHOD AddOverrideStyleSheet(const nsAString & aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddOverrideStyleSheet(aURL); } \
      92             :   NS_IMETHOD RemoveStyleSheet(const nsAString & aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveStyleSheet(aURL); } \
      93             :   NS_IMETHOD RemoveOverrideStyleSheet(const nsAString & aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveOverrideStyleSheet(aURL); } \
      94             :   NS_IMETHOD EnableStyleSheet(const nsAString & aURL, bool aEnable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnableStyleSheet(aURL, aEnable); } 
      95             : 
      96             : #if 0
      97             : /* Use the code below as a template for the implementation class for this interface. */
      98             : 
      99             : /* Header file */
     100             : class nsEditorStyleSheets : public nsIEditorStyleSheets
     101             : {
     102             : public:
     103             :   NS_DECL_ISUPPORTS
     104             :   NS_DECL_NSIEDITORSTYLESHEETS
     105             : 
     106             :   nsEditorStyleSheets();
     107             : 
     108             : private:
     109             :   ~nsEditorStyleSheets();
     110             : 
     111             : protected:
     112             :   /* additional members */
     113             : };
     114             : 
     115             : /* Implementation file */
     116             : NS_IMPL_ISUPPORTS(nsEditorStyleSheets, nsIEditorStyleSheets)
     117             : 
     118             : nsEditorStyleSheets::nsEditorStyleSheets()
     119             : {
     120             :   /* member initializers and constructor code */
     121             : }
     122             : 
     123             : nsEditorStyleSheets::~nsEditorStyleSheets()
     124             : {
     125             :   /* destructor code */
     126             : }
     127             : 
     128             : /* void replaceStyleSheet (in AString aURL); */
     129             : NS_IMETHODIMP nsEditorStyleSheets::ReplaceStyleSheet(const nsAString & aURL)
     130             : {
     131             :     return NS_ERROR_NOT_IMPLEMENTED;
     132             : }
     133             : 
     134             : /* void addStyleSheet (in AString aURL); */
     135             : NS_IMETHODIMP nsEditorStyleSheets::AddStyleSheet(const nsAString & aURL)
     136             : {
     137             :     return NS_ERROR_NOT_IMPLEMENTED;
     138             : }
     139             : 
     140             : /* void replaceOverrideStyleSheet (in AString aURL); */
     141             : NS_IMETHODIMP nsEditorStyleSheets::ReplaceOverrideStyleSheet(const nsAString & aURL)
     142             : {
     143             :     return NS_ERROR_NOT_IMPLEMENTED;
     144             : }
     145             : 
     146             : /* void addOverrideStyleSheet (in AString aURL); */
     147             : NS_IMETHODIMP nsEditorStyleSheets::AddOverrideStyleSheet(const nsAString & aURL)
     148             : {
     149             :     return NS_ERROR_NOT_IMPLEMENTED;
     150             : }
     151             : 
     152             : /* void removeStyleSheet (in AString aURL); */
     153             : NS_IMETHODIMP nsEditorStyleSheets::RemoveStyleSheet(const nsAString & aURL)
     154             : {
     155             :     return NS_ERROR_NOT_IMPLEMENTED;
     156             : }
     157             : 
     158             : /* void removeOverrideStyleSheet (in AString aURL); */
     159             : NS_IMETHODIMP nsEditorStyleSheets::RemoveOverrideStyleSheet(const nsAString & aURL)
     160             : {
     161             :     return NS_ERROR_NOT_IMPLEMENTED;
     162             : }
     163             : 
     164             : /* void enableStyleSheet (in AString aURL, in boolean aEnable); */
     165             : NS_IMETHODIMP nsEditorStyleSheets::EnableStyleSheet(const nsAString & aURL, bool aEnable)
     166             : {
     167             :     return NS_ERROR_NOT_IMPLEMENTED;
     168             : }
     169             : 
     170             : /* End of implementation class template. */
     171             : #endif
     172             : 
     173             : 
     174             : #endif /* __gen_nsIEditorStyleSheets_h__ */

Generated by: LCOV version 1.13