Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
001da655
Kaydet (Commit)
001da655
authored
Nis 09, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pretty-print SwXTextCursor
Change-Id: I98bb5cbcde93a408c44f4f985c06532ab0a37652
üst
62660521
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
sw.py
solenv/gdb/libreoffice/sw.py
+27
-0
No files found.
solenv/gdb/libreoffice/sw.py
Dosyayı görüntüle @
001da655
...
@@ -154,6 +154,21 @@ class SwXTextRangeImplPrinter(object):
...
@@ -154,6 +154,21 @@ class SwXTextRangeImplPrinter(object):
children
=
[(
'mark'
,
mark
)]
children
=
[(
'mark'
,
mark
)]
return
children
.
__iter__
()
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
):
class
SwUnoImplPtrPrinter
(
object
):
"""Prints sw::UnoImplPtr"""
"""Prints sw::UnoImplPtr"""
...
@@ -177,6 +192,16 @@ class SwXTextRangePrinter(object):
...
@@ -177,6 +192,16 @@ class SwXTextRangePrinter(object):
def
to_string
(
self
):
def
to_string
(
self
):
return
"
%
s
%
s"
%
(
self
.
typename
,
self
.
value
[
'm_pImpl'
])
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
):
class
BigPtrArrayPrinter
(
object
):
'''Prints BigPtrArray.'''
'''Prints BigPtrArray.'''
...
@@ -306,6 +331,8 @@ def build_pretty_printers():
...
@@ -306,6 +331,8 @@ def build_pretty_printers():
printer
.
add
(
'sw::UnoImplPtr'
,
SwUnoImplPtrPrinter
)
printer
.
add
(
'sw::UnoImplPtr'
,
SwUnoImplPtrPrinter
)
printer
.
add
(
'SwXTextRange'
,
SwXTextRangePrinter
)
printer
.
add
(
'SwXTextRange'
,
SwXTextRangePrinter
)
printer
.
add
(
'SwModify'
,
SwModifyPrinter
)
printer
.
add
(
'SwModify'
,
SwModifyPrinter
)
printer
.
add
(
'SwXTextCursor::Impl'
,
SwXTextCursorImplPrinter
)
printer
.
add
(
'SwXTextCursor'
,
SwXTextCursorPrinter
)
def
register_pretty_printers
(
obj
):
def
register_pretty_printers
(
obj
):
printing
.
register_pretty_printer
(
printer
,
obj
)
printing
.
register_pretty_printer
(
printer
,
obj
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment