Scribus
Open source desktop publishing at your fingertips
sceditor.indenter.TextIndenter Class Reference
Inheritance diagram for sceditor.indenter.TextIndenter:
Collaboration diagram for sceditor.indenter.TextIndenter:

Public Member Functions

def __init__
 
def correct_indentation (self, lineno)
 
def deindent (self, lineno)
 
def indent (self, lineno)
 
def entering_new_line (self, lineno)
 
def insert_tab (self, index)
 

Public Attributes

 editor
 
 indents
 
 line_editor
 

Detailed Description

A class for formatting texts

Member Function Documentation

def sceditor.indenter.TextIndenter.correct_indentation (   self,
  lineno 
)
Correct the indentation of a line
def sceditor.indenter.TextIndenter.deindent (   self,
  lineno 
)
Deindent the a line
def sceditor.indenter.TextIndenter.entering_new_line (   self,
  lineno 
)
Indent a line

Uses `correct_indentation` and last line indents
def sceditor.indenter.TextIndenter.indent (   self,
  lineno 
)
Indent a line
def sceditor.indenter.TextIndenter.insert_tab (   self,
  index 
)
Inserts a tab in the given index

The documentation for this class was generated from the following file: