ó žò=Qc@soddlZddlZddlmZddlmZddlmZddlmZdd d„ƒYZdS( iÿÿÿÿNi(tconfig(tutils(t dbustypes(tparsertDocbookCodeGeneratorcBs}eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „ZRS( cCs ||_||_|jƒdS(N(tifacestdocbooktgenerate_expand_dicts(tselfRR((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pyt__init__#s  c Cs´d}|r;xD|jD]}tt|jƒ|ƒ}qWntt|jƒ|ƒ}d}|rÎxÄ|jD]^}x)|jD]}tt|jƒ|ƒ}qyWx)|jD]}tt|jƒ|ƒ}q¥WqiWnXx)|jD]}tt|jƒ|ƒ}qØWx)|jD]}tt|jƒ|ƒ}qW|rq|jjdt j |jƒ|j|j|t|jƒdfƒn-|jjd|j|t|jƒdfƒd}x{|jD]p}|dkrá|jjd|ddfƒn|jjd|j|t|jƒd|jfƒ|d}q®Wx{|jD]p}|dkr_|jjd|ddfƒn|jjd |j|t|jƒd|jfƒ|d}q,W|jjd ƒdS( Nis1%s%*s (ts%s%*s (s, %*sis IN %s%*s %sis OUT %s%*s %ss); ( tmethodstmaxtlentnametin_argst signaturetout_argstouttwriteRtdots_to_hyphens( Rtitmt in_synopsistmax_method_lent_mtmax_signature_lentatcount((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pytprint_method_prototype(sB# 9 ! !3 !3c CsÞd}|r;xD|jD]}tt|jƒ|ƒ}qWntt|jƒ|ƒ}d}|r¢xl|jD]2}x)|jD]}tt|jƒ|ƒ}qyWqiWn,x)|jD]}tt|jƒ|ƒ}q¬W|r|jjdtj |jƒ|j|j|t|jƒdfƒn-|jjd|j|t|jƒdfƒd}x{|jD]p}|dkr‰|jjd|ddfƒn|jjd|j|t|jƒd|jfƒ|d}qVW|jjd ƒdS( Nis1%s%*s (R s%s%*s (s, %*sis%s%*s %sis); ( tsignalsR R RtargsRRRRR( RRtsRtmax_signal_lent_sRRR((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pytprint_signal_prototypePs0# 9 ! !3cCsrd}|r;xD|jD]}tt|jƒ|ƒ}qWntt|jƒ|ƒ}d}|rŽxD|jD]}tt|jƒ|ƒ}qiWntt|jƒ|ƒ}|rñ|jjdtj|jƒ|j|j|t|jƒdfƒn-|jjd|j|t|jƒdfƒ|j r9|j r9d}n|j rKd}nd}|jjd||jfƒdS( Nis1%s%*sR s%s%*st readwrites readable s writable s %s %s ( t propertiesR R RRRRRRtreadabletwritable(RRtpRtmax_property_lent_pRtaccess((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pytprint_property_prototypeos* 9 !   cCs’|jjddƒ|jjddƒ|jjdd ƒx'|jD]}|j||dtƒqFW|jjdd ƒ|jjdd ƒdS( Ns# s1 Methods s Rs s ((((((RRR RtTrue(RRR((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pytprint_synopsis_methodsscCs’|jjddƒ|jjddƒ|jjdd ƒx'|jD]}|j||dtƒqFW|jjdd ƒ|jjdd ƒdS( Ns! s5 Signals s Rs s ((((((RRRR#R-(RRR ((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pytprint_synopsis_signals–scCs’|jjddƒ|jjddƒ|jjdd ƒx'|jD]}|j||dtƒqFW|jjdd ƒ|jjdd ƒdS( Ns s6 Properties s Rs s ((((((RRR%R,R-(RRR(((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pytprint_synopsis_propertiesŸscCs^|jjdtj|jƒ|jfƒ|jjd|jƒ|jjdtj|jƒ|j|j|j|j|jfƒ|jjdƒ|j||dtƒ|jjdƒ|jjd|j|j t ƒƒ|jjdƒx||j D]q}|jjd dƒ|jjd |j |jfƒ|jjd |j|j t ƒƒ|jjd dƒqôWx||j D]q}|jjd dƒ|jjd |j |jfƒ|jjd |j|j t ƒƒ|jjd dƒqsW|jjdƒt|jƒdkr'|jjd|jƒn|jrJ|jjd|jƒn|jjdƒdS(Ns1 s! The %s() method s] %s.%s() s Rs s%s s s sC IN %s %s: s' %s s sD OUT %s %s: s is#Since %s s>The %s() method is deprecated.s (((((RRRRRtname_without_prefixRtFalsetexpandt doc_stringR-RRRR tsincet deprecated(RRRR((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pyt print_method¨s0)A# # # cCsß|jjdtj|jƒ|jfƒ|jjd|jƒ|jjdtj|jƒ|j|j|j|j|jfƒ|jjdƒ|j||dtƒ|jjdƒ|jjd|j|j t ƒƒ|jjdƒx||j D]q}|jjd dƒ|jjd |j |jfƒ|jjd |j|j t ƒƒ|jjd dƒqôW|jjd ƒt |jƒdkr¨|jjd|jƒn|jrË|jjd|jƒn|jjdƒdS(Ns1 s! The "%s" signal s] %s::%s s Rs s%s s s s@ %s %s: s' %s s s is#Since %s s>The "%s" signal is deprecated.s (((RRRRRR1R#R2R3R4R-RRR R5R6(RRR R((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pyt print_signalÂs&)A# # cCs@|jjdtj|jƒ|jfƒ|jjd|jƒ|jjdtj|jƒ|j|j|j|j|jfƒ|jjdƒ|j||dtƒ|jjdƒ|jjd|j|j t ƒƒt |j ƒdkr |jjd |j ƒn|j r,|jjd |jƒn|jjd ƒdS( Ns5 s# The "%s" property s] %s:%s s Rs s%s is#Since %s s@The "%s" property is deprecated.s (RRRRRR1R,R2R3R4R-R R5R6(RRR(((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pytprint_property×s)A# cCs—x*|jD]}|j||j|ƒ}q Wx*|jD]}|j||j|ƒ}q7W|r“tjdd„|ƒ}tjdd„|ƒ}n|S(Ns@[a-zA-Z0-9_]*cSsd|jdƒddS(Ns iis (tgroup(R((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pytìss%[a-zA-Z0-9_]*cSsd|jdƒddS(Ns iis (R:(R((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pyR;îs(texpand_member_dict_keystreplacetexpand_member_dicttexpand_iface_dict_keystexpand_iface_dicttretsub(RR texpandParamsAndConstantstkey((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pyR3åscCs³i|_i|_x^|jD]S}d|j}dtj|jƒ|jf}||j|%ss%s.%s()s.%s()s#%s::%ss."%s"s#%s:%ss0"%s"treverse(R>R@RRRRR RR%tsortedtkeysR-R<R?(RRRDtvalueRR R(((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pyRñs(    %%%cCsHxA|jD]6}td|j|jfdƒ|_|jjdd ƒ|jjdd!ƒ|jjdd"ƒ|jjdd#ƒ|jjdd$ƒ|jjd|jƒ|jjd d%ƒ|jjd tj|jƒ|jfƒ|jjd tj|jƒ|j|jfƒ|jjd d&ƒ|jjd d'ƒ|jjd|jƒ|jjd|j ƒ|jjdd(ƒt |j ƒdkr¨|j |ƒnt |j ƒdkrÍ|j|ƒnt |jƒdkrò|j|ƒn|jjdtj|jƒƒ|jjdd)ƒ|jjd|j|jtƒƒt |jƒdkrx|jjd|jƒn|jr›|jjd|jƒn|jjdd*ƒt |j ƒdkr*|jjd|jƒ|jjdd+ƒx!|j D]}|j||ƒqùW|jjdd,ƒnt |j ƒdkr¥|jjd|jƒ|jjdd-ƒx!|j D]}|j||ƒqtW|jjdd.ƒnt |jƒdkr |jjd|jƒ|jjdd/ƒx!|jD]}|j||ƒqïW|jjdd0ƒn|jjdƒ|jjdƒq WdS(1Ns %s-%s.xmltwR s' sA s s s] %s sa %s s s s %ss %ss is/ s/ Description s %s s% Since %s s?The %s interface is deprecated.s s0 s5 Method Details s0 s5 Signal Details s3 s7 Property Details s s ((((((((((((((((((RtopenRRRRRRR1tdoc_string_briefR R R.RR/R%R0R3R4R-R5R6R7R8R9(RRRR ((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pytgenerate sd")/ # (t__name__t __module__R RR#R,R.R/R0R7R8R9R3RRL(((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pyR"s  (      ((tsysRAR RRRRR(((sa/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/gdbus-2.0/codegen/codegen_docbook.pyts