@@ -4,8 +4,7 @@ export PDOutline,
4
4
pdOutlineItemGetAttr
5
5
6
6
using .. Cos
7
- using AbstractTrees
8
- import AbstractTrees: children, printnode
7
+ using AbstractTrees: AbstractTrees
9
8
10
9
abstract type _ParentNode end
11
10
@@ -264,12 +263,13 @@ end
264
263
# interfaces. One can use these methods to traverse through the
265
264
# PDOutline and PDOutlineItem objects.
266
265
267
- children (tn:: _ParentNode ) = tn. first === nothing ? () : collect (tn. first)
268
- getindex (tn:: _ParentNode , i:: Int ) = children (tn)[i]
266
+ AbstractTrees. children (tn:: _ParentNode ) =
267
+ tn. first === nothing ? () : collect (tn. first)
268
+ Base. getindex (tn:: _ParentNode , i:: Int ) = AbstractTrees. children (tn)[i]
269
269
270
- printnode (io:: IO , it:: PDOutline ) = print (io, " Contents" )
270
+ AbstractTrees . printnode (io:: IO , it:: PDOutline ) = print (io, " Contents" )
271
271
272
- function printnode (io:: IO , it:: PDOutlineItem )
272
+ function AbstractTrees . printnode (io:: IO , it:: PDOutlineItem )
273
273
cosdoc, cosdict = it. doc. cosDoc, it. cosdict
274
274
title_obj = cosDocGetObject (cosdoc, cosdict, cn " Title" )
275
275
print (io, CDTextString (title_obj))
0 commit comments