LCOV - app.info - objdir/dist/include/nsIEditingSession.h

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

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/editor/composer/public/nsIEditingSession.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIEditingSession_h__
           6                 : #define __gen_nsIEditingSession_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsISupports_h__
          10                 : #include "nsISupports.h"
          11                 : #endif
          12                 :
          13                 : #ifndef __gen_domstubs_h__
          14                 : #include "domstubs.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                 : class nsIEditor; /* forward declaration */
          22                 :
          23                 :
          24                 : /* starting interface:    nsIEditingSession */
          25                 : #define NS_IEDITINGSESSION_IID_STR "24f3f4da-18a4-448d-876d-7360fefac029"
          26                 :
          27                 : #define NS_IEDITINGSESSION_IID \
          28                 :   {0x24f3f4da, 0x18a4, 0x448d, \
          29                 :     { 0x87, 0x6d, 0x73, 0x60, 0xfe, 0xfa, 0xc0, 0x29 }}
          30                 :
          31               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIEditingSession : public nsISupports {
          32                 :  public:
          33                 :
          34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEDITINGSESSION_IID)
          35                 :
          36                 :   enum {
          37                 :     eEditorOK = 0,
          38                 :     eEditorCreationInProgress = 1,
          39                 :     eEditorErrorCantEditMimeType = 2,
          40                 :     eEditorErrorFileNotFound = 3,
          41                 :     eEditorErrorCantEditFramesets = 8,
          42                 :     eEditorErrorUnknown = 9
          43                 :   };
          44                 :
          45                 :   /* readonly attribute unsigned long editorStatus; */
          46                 :   NS_SCRIPTABLE NS_IMETHOD GetEditorStatus(PRUint32 *aEditorStatus) = 0;
          47                 :
          48                 :   /* void makeWindowEditable (in nsIDOMWindow window, in string aEditorType, in boolean doAfterUriLoad, in boolean aMakeWholeDocumentEditable, in boolean aInteractive); */
          49                 :   NS_SCRIPTABLE NS_IMETHOD MakeWindowEditable(nsIDOMWindow *window, const char * aEditorType, bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive) = 0;
          50                 :
          51                 :   /* boolean windowIsEditable (in nsIDOMWindow window); */
          52                 :   NS_SCRIPTABLE NS_IMETHOD WindowIsEditable(nsIDOMWindow *window, bool *_retval NS_OUTPARAM) = 0;
          53                 :
          54                 :   /* nsIEditor getEditorForWindow (in nsIDOMWindow window); */
          55                 :   NS_SCRIPTABLE NS_IMETHOD GetEditorForWindow(nsIDOMWindow *window, nsIEditor * *_retval NS_OUTPARAM) = 0;
          56                 :
          57                 :   /* void setupEditorOnWindow (in nsIDOMWindow window); */
          58                 :   NS_SCRIPTABLE NS_IMETHOD SetupEditorOnWindow(nsIDOMWindow *window) = 0;
          59                 :
          60                 :   /* void tearDownEditorOnWindow (in nsIDOMWindow window); */
          61                 :   NS_SCRIPTABLE NS_IMETHOD TearDownEditorOnWindow(nsIDOMWindow *window) = 0;
          62                 :
          63                 :   /* void setEditorOnControllers (in nsIDOMWindow aWindow, in nsIEditor aEditor); */
          64                 :   NS_SCRIPTABLE NS_IMETHOD SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor) = 0;
          65                 :
          66                 :   /* void disableJSAndPlugins (in nsIDOMWindow aWindow); */
          67                 :   NS_SCRIPTABLE NS_IMETHOD DisableJSAndPlugins(nsIDOMWindow *aWindow) = 0;
          68                 :
          69                 :   /* void restoreJSAndPlugins (in nsIDOMWindow aWindow); */
          70                 :   NS_SCRIPTABLE NS_IMETHOD RestoreJSAndPlugins(nsIDOMWindow *aWindow) = 0;
          71                 :
          72                 :   /* void detachFromWindow (in nsIDOMWindow aWindow); */
          73                 :   NS_SCRIPTABLE NS_IMETHOD DetachFromWindow(nsIDOMWindow *aWindow) = 0;
          74                 :
          75                 :   /* void reattachToWindow (in nsIDOMWindow aWindow); */
          76                 :   NS_SCRIPTABLE NS_IMETHOD ReattachToWindow(nsIDOMWindow *aWindow) = 0;
          77                 :
          78                 :   /* readonly attribute boolean jsAndPluginsDisabled; */
          79                 :   NS_SCRIPTABLE NS_IMETHOD GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled) = 0;
          80                 :
          81                 : };
          82                 :
          83                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIEditingSession, NS_IEDITINGSESSION_IID)
          84                 :
          85                 : /* Use this macro when declaring classes that implement this interface. */
          86                 : #define NS_DECL_NSIEDITINGSESSION \
          87                 :   NS_SCRIPTABLE NS_IMETHOD GetEditorStatus(PRUint32 *aEditorStatus); \
          88                 :   NS_SCRIPTABLE NS_IMETHOD MakeWindowEditable(nsIDOMWindow *window, const char * aEditorType, bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive); \
          89                 :   NS_SCRIPTABLE NS_IMETHOD WindowIsEditable(nsIDOMWindow *window, bool *_retval NS_OUTPARAM); \
          90                 :   NS_SCRIPTABLE NS_IMETHOD GetEditorForWindow(nsIDOMWindow *window, nsIEditor * *_retval NS_OUTPARAM); \
          91                 :   NS_SCRIPTABLE NS_IMETHOD SetupEditorOnWindow(nsIDOMWindow *window); \
          92                 :   NS_SCRIPTABLE NS_IMETHOD TearDownEditorOnWindow(nsIDOMWindow *window); \
          93                 :   NS_SCRIPTABLE NS_IMETHOD SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor); \
          94                 :   NS_SCRIPTABLE NS_IMETHOD DisableJSAndPlugins(nsIDOMWindow *aWindow); \
          95                 :   NS_SCRIPTABLE NS_IMETHOD RestoreJSAndPlugins(nsIDOMWindow *aWindow); \
          96                 :   NS_SCRIPTABLE NS_IMETHOD DetachFromWindow(nsIDOMWindow *aWindow); \
          97                 :   NS_SCRIPTABLE NS_IMETHOD ReattachToWindow(nsIDOMWindow *aWindow); \
          98                 :   NS_SCRIPTABLE NS_IMETHOD GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled);
          99                 :
         100                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
         101                 : #define NS_FORWARD_NSIEDITINGSESSION(_to) \
         102                 :   NS_SCRIPTABLE NS_IMETHOD GetEditorStatus(PRUint32 *aEditorStatus) { return _to GetEditorStatus(aEditorStatus); } \
         103                 :   NS_SCRIPTABLE NS_IMETHOD MakeWindowEditable(nsIDOMWindow *window, const char * aEditorType, bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive) { return _to MakeWindowEditable(window, aEditorType, doAfterUriLoad, aMakeWholeDocumentEditable, aInteractive); } \
         104                 :   NS_SCRIPTABLE NS_IMETHOD WindowIsEditable(nsIDOMWindow *window, bool *_retval NS_OUTPARAM) { return _to WindowIsEditable(window, _retval); } \
         105                 :   NS_SCRIPTABLE NS_IMETHOD GetEditorForWindow(nsIDOMWindow *window, nsIEditor * *_retval NS_OUTPARAM) { return _to GetEditorForWindow(window, _retval); } \
         106                 :   NS_SCRIPTABLE NS_IMETHOD SetupEditorOnWindow(nsIDOMWindow *window) { return _to SetupEditorOnWindow(window); } \
         107                 :   NS_SCRIPTABLE NS_IMETHOD TearDownEditorOnWindow(nsIDOMWindow *window) { return _to TearDownEditorOnWindow(window); } \
         108                 :   NS_SCRIPTABLE NS_IMETHOD SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor) { return _to SetEditorOnControllers(aWindow, aEditor); } \
         109                 :   NS_SCRIPTABLE NS_IMETHOD DisableJSAndPlugins(nsIDOMWindow *aWindow) { return _to DisableJSAndPlugins(aWindow); } \
         110                 :   NS_SCRIPTABLE NS_IMETHOD RestoreJSAndPlugins(nsIDOMWindow *aWindow) { return _to RestoreJSAndPlugins(aWindow); } \
         111                 :   NS_SCRIPTABLE NS_IMETHOD DetachFromWindow(nsIDOMWindow *aWindow) { return _to DetachFromWindow(aWindow); } \
         112                 :   NS_SCRIPTABLE NS_IMETHOD ReattachToWindow(nsIDOMWindow *aWindow) { return _to ReattachToWindow(aWindow); } \
         113                 :   NS_SCRIPTABLE NS_IMETHOD GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled) { return _to GetJsAndPluginsDisabled(aJsAndPluginsDisabled); }
         114                 :
         115                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
         116                 : #define NS_FORWARD_SAFE_NSIEDITINGSESSION(_to) \
         117                 :   NS_SCRIPTABLE NS_IMETHOD GetEditorStatus(PRUint32 *aEditorStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEditorStatus(aEditorStatus); } \
         118                 :   NS_SCRIPTABLE NS_IMETHOD MakeWindowEditable(nsIDOMWindow *window, const char * aEditorType, bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive) { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeWindowEditable(window, aEditorType, doAfterUriLoad, aMakeWholeDocumentEditable, aInteractive); } \
         119                 :   NS_SCRIPTABLE NS_IMETHOD WindowIsEditable(nsIDOMWindow *window, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->WindowIsEditable(window, _retval); } \
         120                 :   NS_SCRIPTABLE NS_IMETHOD GetEditorForWindow(nsIDOMWindow *window, nsIEditor * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEditorForWindow(window, _retval); } \
         121                 :   NS_SCRIPTABLE NS_IMETHOD SetupEditorOnWindow(nsIDOMWindow *window) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetupEditorOnWindow(window); } \
         122                 :   NS_SCRIPTABLE NS_IMETHOD TearDownEditorOnWindow(nsIDOMWindow *window) { return !_to ? NS_ERROR_NULL_POINTER : _to->TearDownEditorOnWindow(window); } \
         123                 :   NS_SCRIPTABLE NS_IMETHOD SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEditorOnControllers(aWindow, aEditor); } \
         124                 :   NS_SCRIPTABLE NS_IMETHOD DisableJSAndPlugins(nsIDOMWindow *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->DisableJSAndPlugins(aWindow); } \
         125                 :   NS_SCRIPTABLE NS_IMETHOD RestoreJSAndPlugins(nsIDOMWindow *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->RestoreJSAndPlugins(aWindow); } \
         126                 :   NS_SCRIPTABLE NS_IMETHOD DetachFromWindow(nsIDOMWindow *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->DetachFromWindow(aWindow); } \
         127                 :   NS_SCRIPTABLE NS_IMETHOD ReattachToWindow(nsIDOMWindow *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReattachToWindow(aWindow); } \
         128                 :   NS_SCRIPTABLE NS_IMETHOD GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJsAndPluginsDisabled(aJsAndPluginsDisabled); }
         129                 :
         130                 : #if 0
         131                 : /* Use the code below as a template for the implementation class for this interface. */
         132                 :
         133                 : /* Header file */
         134                 : class nsEditingSession : public nsIEditingSession
         135                 : {
         136                 : public:
         137                 :   NS_DECL_ISUPPORTS
         138                 :   NS_DECL_NSIEDITINGSESSION
         139                 :
         140                 :   nsEditingSession();
         141                 :
         142                 : private:
         143                 :   ~nsEditingSession();
         144                 :
         145                 : protected:
         146                 :   /* additional members */
         147                 : };
         148                 :
         149                 : /* Implementation file */
         150                 : NS_IMPL_ISUPPORTS1(nsEditingSession, nsIEditingSession)
         151                 :
         152                 : nsEditingSession::nsEditingSession()
         153                 : {
         154                 :   /* member initializers and constructor code */
         155                 : }
         156                 :
         157                 : nsEditingSession::~nsEditingSession()
         158                 : {
         159                 :   /* destructor code */
         160                 : }
         161                 :
         162                 : /* readonly attribute unsigned long editorStatus; */
         163                 : NS_IMETHODIMP nsEditingSession::GetEditorStatus(PRUint32 *aEditorStatus)
         164                 : {
         165                 :     return NS_ERROR_NOT_IMPLEMENTED;
         166                 : }
         167                 :
         168                 : /* void makeWindowEditable (in nsIDOMWindow window, in string aEditorType, in boolean doAfterUriLoad, in boolean aMakeWholeDocumentEditable, in boolean aInteractive); */
         169                 : NS_IMETHODIMP nsEditingSession::MakeWindowEditable(nsIDOMWindow *window, const char * aEditorType, bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive)
         170                 : {
         171                 :     return NS_ERROR_NOT_IMPLEMENTED;
         172                 : }
         173                 :
         174                 : /* boolean windowIsEditable (in nsIDOMWindow window); */
         175                 : NS_IMETHODIMP nsEditingSession::WindowIsEditable(nsIDOMWindow *window, bool *_retval NS_OUTPARAM)
         176                 : {
         177                 :     return NS_ERROR_NOT_IMPLEMENTED;
         178                 : }
         179                 :
         180                 : /* nsIEditor getEditorForWindow (in nsIDOMWindow window); */
         181                 : NS_IMETHODIMP nsEditingSession::GetEditorForWindow(nsIDOMWindow *window, nsIEditor * *_retval NS_OUTPARAM)
         182                 : {
         183                 :     return NS_ERROR_NOT_IMPLEMENTED;
         184                 : }
         185                 :
         186                 : /* void setupEditorOnWindow (in nsIDOMWindow window); */
         187                 : NS_IMETHODIMP nsEditingSession::SetupEditorOnWindow(nsIDOMWindow *window)
         188                 : {
         189                 :     return NS_ERROR_NOT_IMPLEMENTED;
         190                 : }
         191                 :
         192                 : /* void tearDownEditorOnWindow (in nsIDOMWindow window); */
         193                 : NS_IMETHODIMP nsEditingSession::TearDownEditorOnWindow(nsIDOMWindow *window)
         194                 : {
         195                 :     return NS_ERROR_NOT_IMPLEMENTED;
         196                 : }
         197                 :
         198                 : /* void setEditorOnControllers (in nsIDOMWindow aWindow, in nsIEditor aEditor); */
         199                 : NS_IMETHODIMP nsEditingSession::SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor)
         200                 : {
         201                 :     return NS_ERROR_NOT_IMPLEMENTED;
         202                 : }
         203                 :
         204                 : /* void disableJSAndPlugins (in nsIDOMWindow aWindow); */
         205                 : NS_IMETHODIMP nsEditingSession::DisableJSAndPlugins(nsIDOMWindow *aWindow)
         206                 : {
         207                 :     return NS_ERROR_NOT_IMPLEMENTED;
         208                 : }
         209                 :
         210                 : /* void restoreJSAndPlugins (in nsIDOMWindow aWindow); */
         211                 : NS_IMETHODIMP nsEditingSession::RestoreJSAndPlugins(nsIDOMWindow *aWindow)
         212                 : {
         213                 :     return NS_ERROR_NOT_IMPLEMENTED;
         214                 : }
         215                 :
         216                 : /* void detachFromWindow (in nsIDOMWindow aWindow); */
         217                 : NS_IMETHODIMP nsEditingSession::DetachFromWindow(nsIDOMWindow *aWindow)
         218                 : {
         219                 :     return NS_ERROR_NOT_IMPLEMENTED;
         220                 : }
         221                 :
         222                 : /* void reattachToWindow (in nsIDOMWindow aWindow); */
         223                 : NS_IMETHODIMP nsEditingSession::ReattachToWindow(nsIDOMWindow *aWindow)
         224                 : {
         225                 :     return NS_ERROR_NOT_IMPLEMENTED;
         226                 : }
         227                 :
         228                 : /* readonly attribute boolean jsAndPluginsDisabled; */
         229                 : NS_IMETHODIMP nsEditingSession::GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled)
         230                 : {
         231                 :     return NS_ERROR_NOT_IMPLEMENTED;
         232                 : }
         233                 :
         234                 : /* End of implementation class template. */
         235                 : #endif
         236                 :
         237                 :
         238                 : #endif /* __gen_nsIEditingSession_h__ */

Generated by: LCOV version 1.7