summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/text/TextSectionHandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/com/sun/star/wizards/text/TextSectionHandler.py')
-rw-r--r--wizards/com/sun/star/wizards/text/TextSectionHandler.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/wizards/com/sun/star/wizards/text/TextSectionHandler.py b/wizards/com/sun/star/wizards/text/TextSectionHandler.py
index c9ec437e87a7..bc63e1a9ae1c 100644
--- a/wizards/com/sun/star/wizards/text/TextSectionHandler.py
+++ b/wizards/com/sun/star/wizards/text/TextSectionHandler.py
@@ -41,35 +41,12 @@ class TextSectionHandler(object):
xAllTextSections = self.xTextDocument.TextSections
return xAllTextSections.hasByName(SectionName)
- def removeLastTextSection(self):
- try:
- xAllTextSections = self.xTextDocument.TextSections
- oTextSection = xAllTextSections.getByIndex(
- xAllTextSections.getCount() - 1)
- self.removeTextSection(oTextSection)
- except Exception:
- traceback.print_exc()
-
def removeTextSection(self, _oTextSection):
try:
self.xText.removeTextContent(_oTextSection)
except Exception:
traceback.print_exc()
- def removeInvisibleTextSections(self):
- try:
- xAllTextSections = self.xTextDocument.TextSections
- TextSectionCount = xAllTextSections.getCount()
- i = TextSectionCount - 1
- while i >= 0:
- xTextContentTextSection = xAllTextSections.getByIndex(i)
- if not bool(xTextContentTextSection.getPropertyValue("IsVisible")):
- self.xText.removeTextContent(xTextContentTextSection)
-
- i -= 1
- except Exception:
- traceback.print_exc()
-
def removeAllTextSections(self):
try:
TextSectionCount = self.xTextDocument.TextSections.Count