diff options
-rw-r--r-- | solenv/gdb/libreoffice/sw.py | 27 |
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) |