MCPcopy Index your code
hub / github.com/python-openxml/python-docx / CT_TabStops

Class CT_TabStops

src/docx/oxml/text/parfmt.py:378–392  ·  view source on GitHub ↗

`` `` element, container for a sorted sequence of tab stops.

Source from the content-addressed store, hash-verified

376
377
378class CT_TabStops(BaseOxmlElement):
379 """``<w:tabs>`` element, container for a sorted sequence of tab stops."""
380
381 tab = OneOrMore("w:tab", successors=())
382
383 def insert_tab_in_order(self, pos, align, leader):
384 """Insert a newly created `w:tab` child element in `pos` order."""
385 new_tab = self._new_tab()
386 new_tab.pos, new_tab.val, new_tab.leader = pos, align, leader
387 for tab in self.tab_lst:
388 if new_tab.pos < tab.pos:
389 tab.addprevious(new_tab)
390 return new_tab
391 self.append(new_tab)
392 return new_tab

Callers

nothing calls this directly

Calls 1

OneOrMoreClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…