summaryrefslogtreecommitdiff
path: root/solenv/gdb/libreoffice
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-04-09 11:55:14 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-04-09 11:57:29 +0200
commit001da6553adfcb160a08225fdd6aea478bd7dea9 (patch)
tree99603c9c9d224fa17d7b8b46ef73a2c14b82c571 /solenv/gdb/libreoffice
parent626605218359df6c3f9274e57cb5ef0886b890fc (diff)
pretty-print SwXTextCursor
Change-Id: I98bb5cbcde93a408c44f4f985c06532ab0a37652
Diffstat (limited to 'solenv/gdb/libreoffice')
-rw-r--r--solenv/gdb/libreoffice/sw.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/solenv/gdb/libreoffice/sw.py b/solenv/gdb/libreoffice/sw.py
index f5cdc292e9d3..21e8ea865c82 100644
--- a/solenv/gdb/libreoffice/sw.py
+++ b/solenv/gdb/libreoffice/sw.py
@@ -154,6 +154,21 @@ class SwXTextRangeImplPrinter(object):
children = [('mark', mark)]
return children.__iter__()
+class SwXTextCursorImplPrinter(object):
+ '''Prints SwXTextCursor::Impl.'''
+
+ def __init__(self, typename, value):
+ self.typename = typename
+ self.value = value
+
+ def to_string(self):
+ return "%s" % (self.typename)
+
+ def children(self):
+ registeredIn = self.value['pRegisteredIn'].dereference()
+ children = [('registeredIn', registeredIn)]
+ return children.__iter__()
+
class SwUnoImplPtrPrinter(object):
"""Prints sw::UnoImplPtr"""
@@ -177,6 +192,16 @@ class SwXTextRangePrinter(object):
def to_string(self):
return "%s %s" % (self.typename, self.value['m_pImpl'])
+class SwXTextCursorPrinter(object):
+ '''Prints SwXTextCursor.'''
+
+ def __init__(self, typename, value):
+ self.typename = typename
+ self.value = value
+
+ def to_string(self):
+ return "%s %s" % (self.typename, self.value['m_pImpl'])
+
class BigPtrArrayPrinter(object):
'''Prints BigPtrArray.'''
@@ -306,6 +331,8 @@ def build_pretty_printers():
printer.add('sw::UnoImplPtr', SwUnoImplPtrPrinter)
printer.add('SwXTextRange', SwXTextRangePrinter)
printer.add('SwModify', SwModifyPrinter)
+ printer.add('SwXTextCursor::Impl', SwXTextCursorImplPrinter)
+ printer.add('SwXTextCursor', SwXTextCursorPrinter)
def register_pretty_printers(obj):
printing.register_pretty_printer(printer, obj)