LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIPlaintextEditor.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/idl/nsIPlaintextEditor.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIPlaintextEditor_h__
       6                 : #define __gen_nsIPlaintextEditor_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:    nsIPlaintextEditor */
      19                 : #define NS_IPLAINTEXTEDITOR_IID_STR "07b6d070-ccea-4a00-84b4-f4b94dd9eb52"
      20                 : 
      21                 : #define NS_IPLAINTEXTEDITOR_IID \
      22                 :   {0x07b6d070, 0xccea, 0x4a00, \
      23                 :     { 0x84, 0xb4, 0xf4, 0xb9, 0x4d, 0xd9, 0xeb, 0x52 }}
      24                 : 
      25               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPlaintextEditor : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPLAINTEXTEDITOR_IID)
      29                 : 
      30                 :   enum {
      31                 :     eEditorPlaintextMask = 1,
      32                 :     eEditorSingleLineMask = 2,
      33                 :     eEditorPasswordMask = 4,
      34                 :     eEditorReadonlyMask = 8,
      35                 :     eEditorDisabledMask = 16,
      36                 :     eEditorFilterInputMask = 32,
      37                 :     eEditorMailMask = 64,
      38                 :     eEditorEnableWrapHackMask = 128,
      39                 :     eEditorWidgetMask = 256,
      40                 :     eEditorNoCSSMask = 512,
      41                 :     eEditorAllowInteraction = 1024,
      42                 :     eEditorDontEchoPassword = 2048,
      43                 :     eEditorRightToLeft = 4096,
      44                 :     eEditorLeftToRight = 8192,
      45                 :     eEditorSkipSpellCheck = 16384,
      46                 :     eNewlinesPasteIntact = 0,
      47                 :     eNewlinesPasteToFirst = 1,
      48                 :     eNewlinesReplaceWithSpaces = 2,
      49                 :     eNewlinesStrip = 3,
      50                 :     eNewlinesReplaceWithCommas = 4,
      51                 :     eNewlinesStripSurroundingWhitespace = 5
      52                 :   };
      53                 : 
      54                 :   /* readonly attribute long textLength; */
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetTextLength(PRInt32 *aTextLength) = 0;
      56                 : 
      57                 :   /* attribute long maxTextLength; */
      58                 :   NS_SCRIPTABLE NS_IMETHOD GetMaxTextLength(PRInt32 *aMaxTextLength) = 0;
      59                 :   NS_SCRIPTABLE NS_IMETHOD SetMaxTextLength(PRInt32 aMaxTextLength) = 0;
      60                 : 
      61                 :   /* attribute long wrapWidth; */
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetWrapWidth(PRInt32 *aWrapWidth) = 0;
      63                 :   NS_SCRIPTABLE NS_IMETHOD SetWrapWidth(PRInt32 aWrapWidth) = 0;
      64                 : 
      65                 :   /* void setWrapColumn (in long aWrapColumn); */
      66                 :   NS_SCRIPTABLE NS_IMETHOD SetWrapColumn(PRInt32 aWrapColumn) = 0;
      67                 : 
      68                 :   /* attribute long newlineHandling; */
      69                 :   NS_SCRIPTABLE NS_IMETHOD GetNewlineHandling(PRInt32 *aNewlineHandling) = 0;
      70                 :   NS_SCRIPTABLE NS_IMETHOD SetNewlineHandling(PRInt32 aNewlineHandling) = 0;
      71                 : 
      72                 :   /* void insertText (in DOMString aStringToInsert); */
      73                 :   NS_SCRIPTABLE NS_IMETHOD InsertText(const nsAString & aStringToInsert) = 0;
      74                 : 
      75                 :   /* void insertLineBreak (); */
      76                 :   NS_SCRIPTABLE NS_IMETHOD InsertLineBreak(void) = 0;
      77                 : 
      78                 : };
      79                 : 
      80                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPlaintextEditor, NS_IPLAINTEXTEDITOR_IID)
      81                 : 
      82                 : /* Use this macro when declaring classes that implement this interface. */
      83                 : #define NS_DECL_NSIPLAINTEXTEDITOR \
      84                 :   NS_SCRIPTABLE NS_IMETHOD GetTextLength(PRInt32 *aTextLength); \
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetMaxTextLength(PRInt32 *aMaxTextLength); \
      86                 :   NS_SCRIPTABLE NS_IMETHOD SetMaxTextLength(PRInt32 aMaxTextLength); \
      87                 :   NS_SCRIPTABLE NS_IMETHOD GetWrapWidth(PRInt32 *aWrapWidth); \
      88                 :   NS_SCRIPTABLE NS_IMETHOD SetWrapWidth(PRInt32 aWrapWidth); \
      89                 :   NS_SCRIPTABLE NS_IMETHOD SetWrapColumn(PRInt32 aWrapColumn); \
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetNewlineHandling(PRInt32 *aNewlineHandling); \
      91                 :   NS_SCRIPTABLE NS_IMETHOD SetNewlineHandling(PRInt32 aNewlineHandling); \
      92                 :   NS_SCRIPTABLE NS_IMETHOD InsertText(const nsAString & aStringToInsert); \
      93                 :   NS_SCRIPTABLE NS_IMETHOD InsertLineBreak(void); 
      94                 : 
      95                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      96                 : #define NS_FORWARD_NSIPLAINTEXTEDITOR(_to) \
      97                 :   NS_SCRIPTABLE NS_IMETHOD GetTextLength(PRInt32 *aTextLength) { return _to GetTextLength(aTextLength); } \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetMaxTextLength(PRInt32 *aMaxTextLength) { return _to GetMaxTextLength(aMaxTextLength); } \
      99                 :   NS_SCRIPTABLE NS_IMETHOD SetMaxTextLength(PRInt32 aMaxTextLength) { return _to SetMaxTextLength(aMaxTextLength); } \
     100                 :   NS_SCRIPTABLE NS_IMETHOD GetWrapWidth(PRInt32 *aWrapWidth) { return _to GetWrapWidth(aWrapWidth); } \
     101                 :   NS_SCRIPTABLE NS_IMETHOD SetWrapWidth(PRInt32 aWrapWidth) { return _to SetWrapWidth(aWrapWidth); } \
     102                 :   NS_SCRIPTABLE NS_IMETHOD SetWrapColumn(PRInt32 aWrapColumn) { return _to SetWrapColumn(aWrapColumn); } \
     103                 :   NS_SCRIPTABLE NS_IMETHOD GetNewlineHandling(PRInt32 *aNewlineHandling) { return _to GetNewlineHandling(aNewlineHandling); } \
     104                 :   NS_SCRIPTABLE NS_IMETHOD SetNewlineHandling(PRInt32 aNewlineHandling) { return _to SetNewlineHandling(aNewlineHandling); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD InsertText(const nsAString & aStringToInsert) { return _to InsertText(aStringToInsert); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD InsertLineBreak(void) { return _to InsertLineBreak(); } 
     107                 : 
     108                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     109                 : #define NS_FORWARD_SAFE_NSIPLAINTEXTEDITOR(_to) \
     110                 :   NS_SCRIPTABLE NS_IMETHOD GetTextLength(PRInt32 *aTextLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextLength(aTextLength); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD GetMaxTextLength(PRInt32 *aMaxTextLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxTextLength(aMaxTextLength); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD SetMaxTextLength(PRInt32 aMaxTextLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxTextLength(aMaxTextLength); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetWrapWidth(PRInt32 *aWrapWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWrapWidth(aWrapWidth); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD SetWrapWidth(PRInt32 aWrapWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWrapWidth(aWrapWidth); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD SetWrapColumn(PRInt32 aWrapColumn) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWrapColumn(aWrapColumn); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD GetNewlineHandling(PRInt32 *aNewlineHandling) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewlineHandling(aNewlineHandling); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD SetNewlineHandling(PRInt32 aNewlineHandling) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNewlineHandling(aNewlineHandling); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD InsertText(const nsAString & aStringToInsert) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertText(aStringToInsert); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD InsertLineBreak(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertLineBreak(); } 
     120                 : 
     121                 : #if 0
     122                 : /* Use the code below as a template for the implementation class for this interface. */
     123                 : 
     124                 : /* Header file */
     125                 : class nsPlaintextEditor : public nsIPlaintextEditor
     126                 : {
     127                 : public:
     128                 :   NS_DECL_ISUPPORTS
     129                 :   NS_DECL_NSIPLAINTEXTEDITOR
     130                 : 
     131                 :   nsPlaintextEditor();
     132                 : 
     133                 : private:
     134                 :   ~nsPlaintextEditor();
     135                 : 
     136                 : protected:
     137                 :   /* additional members */
     138                 : };
     139                 : 
     140                 : /* Implementation file */
     141                 : NS_IMPL_ISUPPORTS1(nsPlaintextEditor, nsIPlaintextEditor)
     142                 : 
     143                 : nsPlaintextEditor::nsPlaintextEditor()
     144                 : {
     145                 :   /* member initializers and constructor code */
     146                 : }
     147                 : 
     148                 : nsPlaintextEditor::~nsPlaintextEditor()
     149                 : {
     150                 :   /* destructor code */
     151                 : }
     152                 : 
     153                 : /* readonly attribute long textLength; */
     154                 : NS_IMETHODIMP nsPlaintextEditor::GetTextLength(PRInt32 *aTextLength)
     155                 : {
     156                 :     return NS_ERROR_NOT_IMPLEMENTED;
     157                 : }
     158                 : 
     159                 : /* attribute long maxTextLength; */
     160                 : NS_IMETHODIMP nsPlaintextEditor::GetMaxTextLength(PRInt32 *aMaxTextLength)
     161                 : {
     162                 :     return NS_ERROR_NOT_IMPLEMENTED;
     163                 : }
     164                 : NS_IMETHODIMP nsPlaintextEditor::SetMaxTextLength(PRInt32 aMaxTextLength)
     165                 : {
     166                 :     return NS_ERROR_NOT_IMPLEMENTED;
     167                 : }
     168                 : 
     169                 : /* attribute long wrapWidth; */
     170                 : NS_IMETHODIMP nsPlaintextEditor::GetWrapWidth(PRInt32 *aWrapWidth)
     171                 : {
     172                 :     return NS_ERROR_NOT_IMPLEMENTED;
     173                 : }
     174                 : NS_IMETHODIMP nsPlaintextEditor::SetWrapWidth(PRInt32 aWrapWidth)
     175                 : {
     176                 :     return NS_ERROR_NOT_IMPLEMENTED;
     177                 : }
     178                 : 
     179                 : /* void setWrapColumn (in long aWrapColumn); */
     180                 : NS_IMETHODIMP nsPlaintextEditor::SetWrapColumn(PRInt32 aWrapColumn)
     181                 : {
     182                 :     return NS_ERROR_NOT_IMPLEMENTED;
     183                 : }
     184                 : 
     185                 : /* attribute long newlineHandling; */
     186                 : NS_IMETHODIMP nsPlaintextEditor::GetNewlineHandling(PRInt32 *aNewlineHandling)
     187                 : {
     188                 :     return NS_ERROR_NOT_IMPLEMENTED;
     189                 : }
     190                 : NS_IMETHODIMP nsPlaintextEditor::SetNewlineHandling(PRInt32 aNewlineHandling)
     191                 : {
     192                 :     return NS_ERROR_NOT_IMPLEMENTED;
     193                 : }
     194                 : 
     195                 : /* void insertText (in DOMString aStringToInsert); */
     196                 : NS_IMETHODIMP nsPlaintextEditor::InsertText(const nsAString & aStringToInsert)
     197                 : {
     198                 :     return NS_ERROR_NOT_IMPLEMENTED;
     199                 : }
     200                 : 
     201                 : /* void insertLineBreak (); */
     202                 : NS_IMETHODIMP nsPlaintextEditor::InsertLineBreak()
     203                 : {
     204                 :     return NS_ERROR_NOT_IMPLEMENTED;
     205                 : }
     206                 : 
     207                 : /* End of implementation class template. */
     208                 : #endif
     209                 : 
     210                 : 
     211                 : #endif /* __gen_nsIPlaintextEditor_h__ */

Generated by: LCOV version 1.7