Package peppy :: Package plugins :: Module text_transforms :: Class FillParagraphOrRegion
[frames] | no frames]

Class FillParagraphOrRegion

                        object --+            
                                 |            
actions.base.BufferBusyActionMixin --+        
                                     |        
                    object --+       |        
                             |       |        
              debug.debugmixin --+   |        
                                 |   |        
              actions.SelectAction --+        
                                     |        
   actions.base.TextModificationAction --+    
                                         |    
actions.base.ParagraphOrRegionMutateAction --+
                                             |
                                            FillParagraphOrRegion

Word-wrap the current paragraph or region.

Instance Methods
 
mutateParagraph(self, info)
Word wrap the current paragraph using the TeX algorithm.

Inherited from actions.base.ParagraphOrRegionMutateAction: action, mutateSelection

Inherited from actions.base.BufferBusyActionMixin: isActionAvailable, isEnabled

Inherited from actions.SelectAction: __call__, __init__, getMenuItemName, getSubIds, getTooltip, initPostHook, initPreHook, insertIntoMenu, insertIntoToolbar, showEnable

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods

Inherited from actions.base.TextModificationAction: worksWithMajorMode

Inherited from actions.SelectAction: getHelp, setAcceleratorText

Inherited from debug.debugmixin: dprint

Class Variables
  alias = 'fill-paragraph-or-region'
This alias holds an emacs style name that is used during M-X processing.
  name = 'Fill Paragraph'
This is the name of the menu entry as it appears in the menu bar.
  default_menu = ('Transform', 603)
The default menu location is specified here as a tuple containing the menu path (separated by / characters) and a number between 1 and 1000 representing the position within the menu.
  key_bindings = {'default': 'M-Q'}
Map of platform to default keybinding.

Inherited from actions.SelectAction: default_toolbar, global_id, icon, keyboard, stock_id, tooltip

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from object: __class__

Method Details

mutateParagraph(self, info)

 

Word wrap the current paragraph using the TeX algorithm.

Parameters:
  • info - ParagraphInfo instance representing the currently selected paragraph
Returns:
array of lines resulting from the desired processing
Overrides: actions.base.ParagraphOrRegionMutateAction.mutateParagraph