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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/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 "b74fb158-1265-4102-91eb-edd0136b49f8"
      20             : 
      21             : #define NS_IPLAINTEXTEDITOR_IID \
      22             :   {0xb74fb158, 0x1265, 0x4102, \
      23             :     { 0x91, 0xeb, 0xed, 0xd0, 0x13, 0x6b, 0x49, 0xf8 }}
      24             : 
      25           1 : class NS_NO_VTABLE 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_IMETHOD GetTextLength(int32_t *aTextLength) = 0;
      56             : 
      57             :   /* attribute long maxTextLength; */
      58             :   NS_IMETHOD GetMaxTextLength(int32_t *aMaxTextLength) = 0;
      59             :   NS_IMETHOD SetMaxTextLength(int32_t aMaxTextLength) = 0;
      60             : 
      61             :   /* attribute long wrapWidth; */
      62             :   NS_IMETHOD GetWrapWidth(int32_t *aWrapWidth) = 0;
      63             :   NS_IMETHOD SetWrapWidth(int32_t aWrapWidth) = 0;
      64             : 
      65             :   /* void setWrapColumn (in long aWrapColumn); */
      66             :   NS_IMETHOD SetWrapColumn(int32_t aWrapColumn) = 0;
      67             : 
      68             :   /* attribute long newlineHandling; */
      69             :   NS_IMETHOD GetNewlineHandling(int32_t *aNewlineHandling) = 0;
      70             :   NS_IMETHOD SetNewlineHandling(int32_t aNewlineHandling) = 0;
      71             : 
      72             :   /* void insertText (in DOMString aStringToInsert); */
      73             :   NS_IMETHOD InsertText(const nsAString & aStringToInsert) = 0;
      74             : 
      75             :   /* [noscript] void setText (in DOMString aString); */
      76             :   NS_IMETHOD SetText(const nsAString & aString) = 0;
      77             : 
      78             :   /* void insertLineBreak (); */
      79             :   NS_IMETHOD InsertLineBreak(void) = 0;
      80             : 
      81             : };
      82             : 
      83             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPlaintextEditor, NS_IPLAINTEXTEDITOR_IID)
      84             : 
      85             : /* Use this macro when declaring classes that implement this interface. */
      86             : #define NS_DECL_NSIPLAINTEXTEDITOR \
      87             :   NS_IMETHOD GetTextLength(int32_t *aTextLength) override; \
      88             :   NS_IMETHOD GetMaxTextLength(int32_t *aMaxTextLength) override; \
      89             :   NS_IMETHOD SetMaxTextLength(int32_t aMaxTextLength) override; \
      90             :   NS_IMETHOD GetWrapWidth(int32_t *aWrapWidth) override; \
      91             :   NS_IMETHOD SetWrapWidth(int32_t aWrapWidth) override; \
      92             :   NS_IMETHOD SetWrapColumn(int32_t aWrapColumn) override; \
      93             :   NS_IMETHOD GetNewlineHandling(int32_t *aNewlineHandling) override; \
      94             :   NS_IMETHOD SetNewlineHandling(int32_t aNewlineHandling) override; \
      95             :   NS_IMETHOD InsertText(const nsAString & aStringToInsert) override; \
      96             :   NS_IMETHOD SetText(const nsAString & aString) override; \
      97             :   NS_IMETHOD InsertLineBreak(void) override; 
      98             : 
      99             : /* Use this macro when declaring the members of this interface when the
     100             :    class doesn't implement the interface. This is useful for forwarding. */
     101             : #define NS_DECL_NON_VIRTUAL_NSIPLAINTEXTEDITOR \
     102             :   nsresult GetTextLength(int32_t *aTextLength); \
     103             :   nsresult GetMaxTextLength(int32_t *aMaxTextLength); \
     104             :   nsresult SetMaxTextLength(int32_t aMaxTextLength); \
     105             :   nsresult GetWrapWidth(int32_t *aWrapWidth); \
     106             :   nsresult SetWrapWidth(int32_t aWrapWidth); \
     107             :   nsresult SetWrapColumn(int32_t aWrapColumn); \
     108             :   nsresult GetNewlineHandling(int32_t *aNewlineHandling); \
     109             :   nsresult SetNewlineHandling(int32_t aNewlineHandling); \
     110             :   nsresult InsertText(const nsAString & aStringToInsert); \
     111             :   nsresult SetText(const nsAString & aString); \
     112             :   nsresult InsertLineBreak(void); 
     113             : 
     114             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     115             : #define NS_FORWARD_NSIPLAINTEXTEDITOR(_to) \
     116             :   NS_IMETHOD GetTextLength(int32_t *aTextLength) override { return _to GetTextLength(aTextLength); } \
     117             :   NS_IMETHOD GetMaxTextLength(int32_t *aMaxTextLength) override { return _to GetMaxTextLength(aMaxTextLength); } \
     118             :   NS_IMETHOD SetMaxTextLength(int32_t aMaxTextLength) override { return _to SetMaxTextLength(aMaxTextLength); } \
     119             :   NS_IMETHOD GetWrapWidth(int32_t *aWrapWidth) override { return _to GetWrapWidth(aWrapWidth); } \
     120             :   NS_IMETHOD SetWrapWidth(int32_t aWrapWidth) override { return _to SetWrapWidth(aWrapWidth); } \
     121             :   NS_IMETHOD SetWrapColumn(int32_t aWrapColumn) override { return _to SetWrapColumn(aWrapColumn); } \
     122             :   NS_IMETHOD GetNewlineHandling(int32_t *aNewlineHandling) override { return _to GetNewlineHandling(aNewlineHandling); } \
     123             :   NS_IMETHOD SetNewlineHandling(int32_t aNewlineHandling) override { return _to SetNewlineHandling(aNewlineHandling); } \
     124             :   NS_IMETHOD InsertText(const nsAString & aStringToInsert) override { return _to InsertText(aStringToInsert); } \
     125             :   NS_IMETHOD SetText(const nsAString & aString) override { return _to SetText(aString); } \
     126             :   NS_IMETHOD InsertLineBreak(void) override { return _to InsertLineBreak(); } 
     127             : 
     128             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     129             : #define NS_FORWARD_SAFE_NSIPLAINTEXTEDITOR(_to) \
     130             :   NS_IMETHOD GetTextLength(int32_t *aTextLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextLength(aTextLength); } \
     131             :   NS_IMETHOD GetMaxTextLength(int32_t *aMaxTextLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxTextLength(aMaxTextLength); } \
     132             :   NS_IMETHOD SetMaxTextLength(int32_t aMaxTextLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxTextLength(aMaxTextLength); } \
     133             :   NS_IMETHOD GetWrapWidth(int32_t *aWrapWidth) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWrapWidth(aWrapWidth); } \
     134             :   NS_IMETHOD SetWrapWidth(int32_t aWrapWidth) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWrapWidth(aWrapWidth); } \
     135             :   NS_IMETHOD SetWrapColumn(int32_t aWrapColumn) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWrapColumn(aWrapColumn); } \
     136             :   NS_IMETHOD GetNewlineHandling(int32_t *aNewlineHandling) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewlineHandling(aNewlineHandling); } \
     137             :   NS_IMETHOD SetNewlineHandling(int32_t aNewlineHandling) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNewlineHandling(aNewlineHandling); } \
     138             :   NS_IMETHOD InsertText(const nsAString & aStringToInsert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertText(aStringToInsert); } \
     139             :   NS_IMETHOD SetText(const nsAString & aString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetText(aString); } \
     140             :   NS_IMETHOD InsertLineBreak(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertLineBreak(); } 
     141             : 
     142             : #if 0
     143             : /* Use the code below as a template for the implementation class for this interface. */
     144             : 
     145             : /* Header file */
     146             : class nsPlaintextEditor : public nsIPlaintextEditor
     147             : {
     148             : public:
     149             :   NS_DECL_ISUPPORTS
     150             :   NS_DECL_NSIPLAINTEXTEDITOR
     151             : 
     152             :   nsPlaintextEditor();
     153             : 
     154             : private:
     155             :   ~nsPlaintextEditor();
     156             : 
     157             : protected:
     158             :   /* additional members */
     159             : };
     160             : 
     161             : /* Implementation file */
     162             : NS_IMPL_ISUPPORTS(nsPlaintextEditor, nsIPlaintextEditor)
     163             : 
     164             : nsPlaintextEditor::nsPlaintextEditor()
     165             : {
     166             :   /* member initializers and constructor code */
     167             : }
     168             : 
     169             : nsPlaintextEditor::~nsPlaintextEditor()
     170             : {
     171             :   /* destructor code */
     172             : }
     173             : 
     174             : /* readonly attribute long textLength; */
     175             : NS_IMETHODIMP nsPlaintextEditor::GetTextLength(int32_t *aTextLength)
     176             : {
     177             :     return NS_ERROR_NOT_IMPLEMENTED;
     178             : }
     179             : 
     180             : /* attribute long maxTextLength; */
     181             : NS_IMETHODIMP nsPlaintextEditor::GetMaxTextLength(int32_t *aMaxTextLength)
     182             : {
     183             :     return NS_ERROR_NOT_IMPLEMENTED;
     184             : }
     185             : NS_IMETHODIMP nsPlaintextEditor::SetMaxTextLength(int32_t aMaxTextLength)
     186             : {
     187             :     return NS_ERROR_NOT_IMPLEMENTED;
     188             : }
     189             : 
     190             : /* attribute long wrapWidth; */
     191             : NS_IMETHODIMP nsPlaintextEditor::GetWrapWidth(int32_t *aWrapWidth)
     192             : {
     193             :     return NS_ERROR_NOT_IMPLEMENTED;
     194             : }
     195             : NS_IMETHODIMP nsPlaintextEditor::SetWrapWidth(int32_t aWrapWidth)
     196             : {
     197             :     return NS_ERROR_NOT_IMPLEMENTED;
     198             : }
     199             : 
     200             : /* void setWrapColumn (in long aWrapColumn); */
     201             : NS_IMETHODIMP nsPlaintextEditor::SetWrapColumn(int32_t aWrapColumn)
     202             : {
     203             :     return NS_ERROR_NOT_IMPLEMENTED;
     204             : }
     205             : 
     206             : /* attribute long newlineHandling; */
     207             : NS_IMETHODIMP nsPlaintextEditor::GetNewlineHandling(int32_t *aNewlineHandling)
     208             : {
     209             :     return NS_ERROR_NOT_IMPLEMENTED;
     210             : }
     211             : NS_IMETHODIMP nsPlaintextEditor::SetNewlineHandling(int32_t aNewlineHandling)
     212             : {
     213             :     return NS_ERROR_NOT_IMPLEMENTED;
     214             : }
     215             : 
     216             : /* void insertText (in DOMString aStringToInsert); */
     217             : NS_IMETHODIMP nsPlaintextEditor::InsertText(const nsAString & aStringToInsert)
     218             : {
     219             :     return NS_ERROR_NOT_IMPLEMENTED;
     220             : }
     221             : 
     222             : /* [noscript] void setText (in DOMString aString); */
     223             : NS_IMETHODIMP nsPlaintextEditor::SetText(const nsAString & aString)
     224             : {
     225             :     return NS_ERROR_NOT_IMPLEMENTED;
     226             : }
     227             : 
     228             : /* void insertLineBreak (); */
     229             : NS_IMETHODIMP nsPlaintextEditor::InsertLineBreak()
     230             : {
     231             :     return NS_ERROR_NOT_IMPLEMENTED;
     232             : }
     233             : 
     234             : /* End of implementation class template. */
     235             : #endif
     236             : 
     237             : 
     238             : #endif /* __gen_nsIPlaintextEditor_h__ */

Generated by: LCOV version 1.13