lib/win32ole/win32ole.jar in jruby-win32ole-0.8.4 vs lib/win32ole/win32ole.jar in jruby-win32ole-0.8.5

- old
+ new

@@ -1,21 +1,21 @@ PK -.c= META-INF/PK --c==META-INF/MANIFEST.MFManifest-Version: 1.0 +D? META-INF/PK +D?=META-INF/MANIFEST.MFManifest-Version: 1.0 Ant-Version: Apache Ant 1.8.1 Created-By: 1.6.0_21-b07 (Sun Microsystems Inc.) Class-Path: lib/jruby.jar lib/racob.jar PK -2[=jruby-win32ole/PK -1[=org/PK -1[= +D?jruby-win32ole/PK +D?org/PK +D? org/jruby/PK -1[=org/jruby/ext/PK -2[=org/jruby/ext/win32ole/PK -2[= win32ole/PK -2[=?£OOjruby-win32ole.rbrequire 'java' +D?org/jruby/ext/PK +D?org/jruby/ext/win32ole/PK +D? win32ole/PK +D??£OOjruby-win32ole.rbrequire 'java' # Set location so the loader can find the native dll it needs arch = ENV_JAVA['sun.arch.data.model'] == '32' ? 'x86' : 'x64' java.lang.System.set_property 'racob.dll.path', File.dirname(__FILE__) + "/racob-#{arch}.dll" @@ -37,152 +37,152 @@ require 'win32ole/win32ole_event' require 'win32ole/win32ole_param' require 'win32ole/win32ole_type' require 'win32ole/win32ole_typelib' PK -2[=D>|??jruby-win32ole/version.rbmodule JRuby +D?8??jruby-win32ole/version.rbmodule JRuby module WIN32OLE - VERSION = "0.8.2" + VERSION = "0.8.5" end end PK -1[=S60org/jruby/ext/win32ole/RubyInvocationProxy.class1< +D?S60org/jruby/ext/win32ole/RubyInvocationProxy.class1< % & ' ( )*+ ,- ./0runtimeLorg/jruby/Ruby;target'Lorg/jruby/runtime/builtin/IRubyObject;<init>*(Lorg/jruby/runtime/builtin/IRubyObject;)VCodeLineNumberTableLocalVariableTablethis,Lorg/jruby/ext/win32ole/RubyInvocationProxy;invokeC(Ljava/lang/String;[Lorg/racob/com/Variant;)Lorg/racob/com/Variant;iI methodNameLjava/lang/String; variantArgs[Lorg/racob/com/Variant;context!Lorg/jruby/runtime/ThreadContext;lengthargs([Lorg/jruby/runtime/builtin/IRubyObject; SourceFileRubyInvocationProxy.java 1  23 4 56%org/jruby/runtime/builtin/IRubyObject7 89 :;*org/jruby/ext/win32ole/RubyInvocationProxyorg/racob/com/InvocationProxy()V getRuntime()Lorg/jruby/Ruby;org/jruby/RubygetCurrentContext#()Lorg/jruby/runtime/ThreadContext;#org/jruby/ext/win32ole/RubyWIN32OLE fromVariantP(Lorg/jruby/Ruby;Lorg/racob/com/Variant;)Lorg/jruby/runtime/builtin/IRubyObject; callMethod(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;!   T**+*+  C*N,6:6*,2S*-+W" -3AHCCC; 7 0!"#$PK -.c=+org/jruby/ext/win32ole/RubyWIN32OLE$1.class1 +D?"`+org/jruby/ext/win32ole/RubyWIN32OLE$1.class1  <init>()VCodeLineNumberTableLocalVariableTablethis InnerClasses'Lorg/jruby/ext/win32ole/RubyWIN32OLE$1;allocateN(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)Lorg/jruby/runtime/builtin/IRubyObject;runtimeLorg/jruby/Ruby;klassLorg/jruby/RubyClass; SourceFileRubyWIN32OLE.javaEnclosingMethod #org/jruby/ext/win32ole/RubyWIN32OLE %org/jruby/ext/win32ole/RubyWIN32OLE$1java/lang/Object!org/jruby/runtime/ObjectAllocator((Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V0 /* -   H +   H Y+, -  +     PK -.c=$n[++)org/jruby/ext/win32ole/RubyWIN32OLE.class1 -h 4 -4 +D?%o*f+f+)org/jruby/ext/win32ole/RubyWIN32OLE.class1 +g 7 +7  -4 +7 -4 +7  -4 +7   -4 +7  -4 -4  -A -A -A -4 +7 +7  +D +D +D +7 -4 +7   -4 +7  -4 +7  -4 - 4 4 - - - -  -1 - - ! -4"# -4$%& -:' -() -=' -9* -+, --. -4/ -0 -C -C123 -I45 -I6 -+7 -I8 -I9 -: -; -H< -H= -H> -H? -H@ -HA -HB -HC -HD -HE -HF -GH -GI -GJ -KL -AMNOP -e4 4STEMPTY_OBJECT_ARGS[Ljava/lang/Object;EMPTY_ERROR_ARGS[IWIN32OLE_ALLOCATOR#Lorg/jruby/runtime/ObjectAllocator;dispatchLorg/racob/com/Dispatch;<init>((Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)VCodeLineNumberTableLocalVariableTablethis%Lorg/jruby/ext/win32ole/RubyWIN32OLE;runtimeLorg/jruby/Ruby; metaClassLorg/jruby/RubyClass;@(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/racob/com/Dispatch;)V getDispatch()Lorg/racob/com/Dispatch;J(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;context!Lorg/jruby/runtime/ThreadContext;RuntimeVisibleAnnotationsLorg/jruby/anno/JRubyMethod;eachc(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;valueLorg/racob/com/Variant;blockLorg/jruby/runtime/Block; enumVariantLorg/racob/com/EnumVariant; _getproperty(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;dispid'Lorg/jruby/runtime/builtin/IRubyObject;argsargTypes +7 + 7 7 +0 +0 + + 7 +0  +4 + +!" +7#$ +7%&' +=( +)* +@( +<+ +,- +./ +70 +F1 +2 +03 +45 +46 +47 +48 +49 +4: +4; +4< +4= +4> +4? +@A +@B +@C +DE +DFGH +]IJ +]K +]LM +bI 7P +QR ++STEMPTY_OBJECT_ARGS[Ljava/lang/Object;EMPTY_ERROR_ARGS[IWIN32OLE_ALLOCATOR#Lorg/jruby/runtime/ObjectAllocator;dispatchLorg/racob/com/Dispatch;OBJECT_ARRAY_CLASSLjava/lang/Class;<init>((Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)VCodeLineNumberTableLocalVariableTablethis%Lorg/jruby/ext/win32ole/RubyWIN32OLE;runtimeLorg/jruby/Ruby; metaClassLorg/jruby/RubyClass;@(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/racob/com/Dispatch;)V getDispatch()Lorg/racob/com/Dispatch;J(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;context!Lorg/jruby/runtime/ThreadContext;RuntimeVisibleAnnotationsLorg/jruby/anno/JRubyMethod;eachc(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;valueLorg/racob/com/Variant;blockLorg/jruby/runtime/Block; enumVariantLorg/racob/com/EnumVariant; _getproperty(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;dispid'Lorg/jruby/runtime/builtin/IRubyObject;argsargTypes objectArgsidIrequired initializer(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;([Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;progIdrestinvoke_invoke typesArraymethod_missing methodNameole_freeop_arefq(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;property propertyNamename[]op_aset(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;[]= _setproperty setproperty invokeSet(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject; errorArgsinvokeInternal(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;I)Lorg/jruby/runtime/builtin/IRubyObject; dispatchType argsArrayLorg/jruby/RubyArray; dispatchId returnValue makeErrorArgs(I)[IsizemakeObjectArgs>([Lorg/jruby/runtime/builtin/IRubyObject;I)[Ljava/lang/Object;irubyArgs -startIndexlength*(Lorg/jruby/RubyArray;)[Ljava/lang/Object;objectLjava/lang/Object;invokeMethodOrGettoJava%(Ljava/lang/Class;)Ljava/lang/Object;klassLjava/lang/Class;toObject;(Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/lang/Object; +startIndexlength*(Lorg/jruby/RubyArray;)[Ljava/lang/Object;objectLjava/lang/Object;invokeMethodOrGetvarianttoJava%(Ljava/lang/Class;)Ljava/lang/Object;klasstoObject;(Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/lang/Object; rubyObject -fromObjectK(Lorg/jruby/Ruby;Ljava/lang/Object;)Lorg/jruby/runtime/builtin/IRubyObject;listFromSafeArrayR(Lorg/jruby/Ruby;Lorg/racob/com/SafeArray;)Lorg/jruby/runtime/builtin/IRubyObject;elementconvertedElementlistLorg/racob/com/SafeArray;newArray fromVariantP(Lorg/jruby/Ruby;Lorg/racob/com/Variant;)Lorg/jruby/runtime/builtin/IRubyObject;variant date2rubyI(Lorg/jruby/Ruby;Ljava/util/Date;)Lorg/jruby/runtime/builtin/IRubyObject;dateLjava/util/Date;calLjava/util/Calendar;toProgID&(Ljava/lang/String;)Ljava/lang/String;<clinit>()V -SourceFileRubyWIN32OLE.java qr opU VWX Y Z[\ ]^ _` a b cd efg hi j kl mn op qrs tu org/racob/com/Dispatch qv = wx y z{ |} ~   kl ijjava/lang/Object y  m  java/lang/Boolean ^ #org/jruby/ext/win32ole/RubyWIN32OLE  q|java/util/Date java/lang/Numberjava/lang/Double  java/lang/Float y java/lang/String org/racob/com/SafeArray i |norg/racob/com/Variantjava/lang/StringBuilder q$Unknown element found in SafeArray:    u   ^   ^ }~  y   u     { x}clsid:%org/jruby/ext/win32ole/RubyWIN32OLE$1 InnerClasses mnorg/jruby/RubyObjectorg/jruby/runtime/ThreadContext -getRuntime()Lorg/jruby/Ruby;org/jruby/javasupport/JavaUtilconvertJavaToUsableRubyObject toEnumVariant()Lorg/racob/com/EnumVariant;org/racob/com/EnumVarianthasMoreElements()Z nextElement()Lorg/racob/com/Variant;org/jruby/runtime/Blockyield safeReleaseorg/jruby/RubygetNil)()Lorg/jruby/runtime/builtin/IRubyObject;%org/jruby/runtime/builtin/IRubyObjectconvertToArray()Lorg/jruby/RubyArray;org/jruby/RubyIntegernum2long*(Lorg/jruby/runtime/builtin/IRubyObject;)JcallO(I)Ljava/lang/Object;call-(I[Ljava/lang/Object;)Lorg/racob/com/Variant;convertToString()Lorg/jruby/RubyString;org/jruby/RubyString asJavaString()Ljava/lang/String;(Ljava/lang/String;)VendsWith(Ljava/lang/String;)Z()I substring(II)Ljava/lang/String;get+(Ljava/lang/String;)Lorg/racob/com/Variant;put'(Ljava/lang/String;Ljava/lang/Object;)VA(Ljava/lang/String;I[Ljava/lang/Object;[I)Lorg/racob/com/Variant;0(II[Ljava/lang/Object;[I)Lorg/racob/com/Variant;org/jruby/RubyArray eltInternal*(I)Lorg/jruby/runtime/builtin/IRubyObject;&(Ljava/lang/String;)Ljava/lang/Object;callN>(Ljava/lang/String;[Ljava/lang/Object;)Lorg/racob/com/Variant; booleanValue -newBoolean(Z)Lorg/jruby/RubyBoolean;win32ole/Win32oleService getMetaClass()Lorg/jruby/RubyClass; doubleValue()DnewFloat(D)Lorg/jruby/RubyFloat;intValue newFixnum(I)Lorg/jruby/RubyFixnum; newString*(Ljava/lang/String;)Lorg/jruby/RubyString;append-(Ljava/lang/String;)Ljava/lang/StringBuilder;getClass()Ljava/lang/Class;-(Ljava/lang/Object;)Ljava/lang/StringBuilder;toStringnewArgumentError9(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;>(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;isArraygetArray()Lorg/racob/com/SafeArray;getType()S +fromObjectK(Lorg/jruby/Ruby;Ljava/lang/Object;)Lorg/jruby/runtime/builtin/IRubyObject;listFromSafeArrayR(Lorg/jruby/Ruby;Lorg/racob/com/SafeArray;)Lorg/jruby/runtime/builtin/IRubyObject;arrayLorg/racob/com/SafeArray;values[Lorg/racob/com/Variant;newArray fromVariantP(Lorg/jruby/Ruby;Lorg/racob/com/Variant;)Lorg/jruby/runtime/builtin/IRubyObject; date2rubyI(Lorg/jruby/Ruby;Ljava/util/Date;)Lorg/jruby/runtime/builtin/IRubyObject;dateLjava/util/Date;calLjava/util/Calendar;toProgID&(Ljava/lang/String;)Ljava/lang/String;<clinit>()V +SourceFileRubyWIN32OLE.java rs noU VWX Y Z[\ ]^ _` a b cd efg hi j kl mn op qrs tu org/racob/com/Dispatch rv = wx y z{ |} ~   jk hijava/lang/Object y  m org/jruby/RubyArray pq java/lang/Boolean ^ #org/jruby/ext/win32ole/RubyWIN32OLE  r}java/util/Date java/lang/Numberjava/lang/Double  java/lang/Float y java/lang/String org/racob/com/SafeArray  i  ^   ^ ~  y   u     { x}java/lang/StringBuilder rclsid:  u%org/jruby/ext/win32ole/RubyWIN32OLE$1 InnerClasses lm  org/jruby/RubyObjectorg/jruby/runtime/ThreadContext +getRuntime()Lorg/jruby/Ruby;org/jruby/javasupport/JavaUtilconvertJavaToUsableRubyObject toEnumVariant()Lorg/racob/com/EnumVariant;org/racob/com/EnumVarianthasMoreElements()Z nextElement()Lorg/racob/com/Variant;org/jruby/runtime/Blockyield safeReleaseorg/jruby/RubygetNil)()Lorg/jruby/runtime/builtin/IRubyObject;%org/jruby/runtime/builtin/IRubyObjectconvertToArray()Lorg/jruby/RubyArray;org/jruby/RubyIntegernum2long*(Lorg/jruby/runtime/builtin/IRubyObject;)JcallO(I)Ljava/lang/Object;call-(I[Ljava/lang/Object;)Lorg/racob/com/Variant;convertToString()Lorg/jruby/RubyString;org/jruby/RubyString asJavaString()Ljava/lang/String;(Ljava/lang/String;)VendsWith(Ljava/lang/String;)Z()I substring(II)Ljava/lang/String;get+(Ljava/lang/String;)Lorg/racob/com/Variant;put'(Ljava/lang/String;Ljava/lang/Object;)VA(Ljava/lang/String;I[Ljava/lang/Object;[I)Lorg/racob/com/Variant;0(II[Ljava/lang/Object;[I)Lorg/racob/com/Variant; eltInternal*(I)Lorg/jruby/runtime/builtin/IRubyObject;&(Ljava/lang/String;)Ljava/lang/Object;callN>(Ljava/lang/String;[Ljava/lang/Object;)Lorg/racob/com/Variant; booleanValue +newBoolean(Z)Lorg/jruby/RubyBoolean;win32ole/Win32oleService getMetaClass()Lorg/jruby/RubyClass; doubleValue()DnewFloat(D)Lorg/jruby/RubyFloat;intValue newFixnum(I)Lorg/jruby/RubyFixnum; newString*(Ljava/lang/String;)Lorg/jruby/RubyString; getValues()[Lorg/racob/com/Variant;append>(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;org/racob/com/VariantisArray getSafeArray()Lorg/racob/com/SafeArray;getType()S getBooleangetDate()Ljava/util/Date;getInt getDoublegetFloat()F getString toJavaObject()Ljava/lang/Object;java/util/Calendar getInstance()Ljava/util/Calendar;setTime(Ljava/util/Date;)VgetTimeInMillis()JnewTime(J)Lorg/jruby/RubyTime; -startsWith!4hijkl mnopqrsR *+,*t%" &u  vw xy z{q|s\ *+,*-t)+ ,u* vw xy z{ op}~s/*t/u vwos@ +*t5u vw s6+N*::,+- -W - t":;?@A)B,C1Eu> 6vw661xy(s?*- :,6+:** tK LMO.QuR?vw???? 3j,&xy Is!,2N-:*Y*tV WY[u4!vw!! IZsE*+,t`u vwIZs\ -*+,--tfu4 -vw - - - -s|,,2N-*+--d,*+-, tk m$pu*,vw,, #IZsG*!+ t -uwuvwsc,N+*-" t -|~u*vw[sIsw,:*-#$+ tu4vw[sIs] *+,-tu4 vw    s],2N*+-,t - u*vw IZs%*-%: -:*,&W+ tu>%vw%%%jls ;- :,6*:*': * (: +startsWith-(Ljava/lang/String;)Ljava/lang/StringBuilder;toStringjava/lang/reflect/Array newInstance&(Ljava/lang/Class;I)Ljava/lang/Object;getClass()Ljava/lang/Class;!7ghijk lmnopqrstR *+,*u&# 'v  wx yz {|r}t\ *+,*-u*, -v* wx yz {| no~t/*u0v wxnt@ +*u6v wx t6+N*::,+- +W - u";<@AB)C,D1Fv> 6wx661yz(t?*- :,6+:** uL MNP.RvR?wx???? 3i,&yz It!,2N-:*Y*uW XZ\v4!wx!! IZtE*+,uav wxIZt\ +*+,--ugv4 +wx + + + +t|,,2N-*+--d,*+-, ul n$qv*,wx,, #IZtG*!+ u +vxvwxtc,N+*-" u +}v*wx[sItw,:*-#$+ uv4wx[sIt] *+,-uv4 wx    t],2N*+-,u + v*wx IZt%*-%: +:*,&W+ uv>%wx%%%ikt ;- :,6*:*': * (: + - t 1up ;vw;;;;;3,$j l 1 - -sB ) -tuvws5+>d*d+:6d+2#St ,2u>5vw552 js4+,=*+N6+-#:-S-t" &,2u>&4vw4/"js|,-+*,.+*,*-%/ tu*,vw,,,s9*tuvw s4 -*+0tu  - s+* +1*+123+4Y*5+6+7 *+78+95+:*+:;<+=*+=><*+9?@+A *+AB+C *+CD*+tJ #3:CJQ]dp|uxy -sh*EM>+FZ+G::C :5H*H :*IYJKLMNOP,QW,t2 !'/=Y`fu>JG_hxyhc s+* +R *+SD+T~ YYkb~Pu@~7*+U34Y*5+V6*+W8*+X@*+Y<*+Z<*+[B*+\t2   - T]mv uxy sX]M,+^*,_`t$& (u xy sh6*3*ab**c!IYJdL**dLO*t,-40u 6s8+* -)eYfgt R -ePK -2[=||win32ole/Win32oleService.class1I + u 1vp ;wx;;;;;3,$i k 1 + +tB ) +uvwxt5+>d*d+:6d+2#Su ,2v>5wx552 it4+,=*+N6+-#:-S-u" &,2v>&4wx4/"it0-+*,.*,*-%/:+ u&v40wx000& +t9*uvwxq tN*0*012*+3uv  t+* +4*+456+7Y*8+9+: *+:;+<5+=*+=>?+@*+@A?*+<BC+D *+DE+F *+FG*+uJ #3:CJQ]dp|vyz +t-+HM*IN, 6,-*,2 JW-u +%+v4-yz-( +# t+* +K *+LG+M~ YYkb~Pu@~7*+N67Y*8+O9*+P;*+QC*+R?*+S?*+TE*+Uu.   +T ]mvvyz tXVM,+W*,XYu " $v yz th6*3*Z[**\!]Y^_`**d`a*u()4,v 6tI%+* +)bYcd+ef1u O +bPK +D?||win32ole/Win32oleService.class1I ) *+ ,-. / ,01 23 @@ -191,11 +191,11 @@ Exceptions; getMetaClass()Lorg/jruby/RubyClass; SourceFileWin32oleService.java < => ?&WIN32OLE @A BC#org/jruby/ext/win32ole/RubyWIN32OLE DEjava/lang/ref/WeakReference F  GHorg/jruby/RubyClasswin32ole/Win32oleServicejava/lang/Object*org/jruby/runtime/load/BasicLibraryServicejava/io/IOExceptionorg/racob/com/LibraryLoader loadLibraryorg/jruby/Ruby getObjectWIN32OLE_ALLOCATOR#Lorg/jruby/runtime/ObjectAllocator; defineClassa(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;defineAnnotatedMethods(Ljava/lang/Class;)V(Ljava/lang/Object;)Vget()Ljava/lang/Object;!/*  '+M+,N- Y- %*'' !"!#$ %&" '(PK -2[=cj22win32ole/utils.rbrequire 'win32ole/win32ole_variant' +D?cj22win32ole/utils.rbrequire 'win32ole/win32ole_variant' class WIN32OLE module Utils java_import org.racob.com.ComFailException java_import org.racob.com.Dispatch @@ -369,11 +369,11 @@ type_details ? type_details : type_string end end end PK -Wb= _S/win32ole/win32ole_error.rbclass WIN32OLERuntimeError < RuntimeError +D? _S/win32ole/win32ole_error.rbclass WIN32OLERuntimeError < RuntimeError def initialize(cause=nil) @cause = cause end def backtrace @@ -383,13 +383,18 @@ def to_s @cause ? @cause.to_s : super end end PK -2[=Ȯwin32ole/win32ole_event.rbclass WIN32OLE_EVENT +D?TTwin32ole/win32ole_event.rbclass WIN32OLE_EVENT java_import org.racob.com.DispatchEvents - + + # Returns OLE event object. The first argument specifies WIN32OLE object. The second argument specifies OLE event name. + # + # ie = WIN32OLE.new('InternetExplorer.Application') + # ev = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents') + # def initialize(ole, event_name=nil) @event_handlers = {} raise TypeError.new("1st parameter must be WIN32OLE object") if !ole.kind_of? WIN32OLE @@ -399,17 +404,48 @@ dispatch = ole.dispatch DispatchEvents.new dispatch, RubyInvocationProxy.new(self), dispatch.program_id end + # Defines the callback event. If argument is omitted, this method defines the callback of all events. + # + # ie = WIN32OLE.new('InternetExplorer.Application') + # ev = WIN32OLE_EVENT.new(ie) + # ev.on_event("NavigateComplete") {|url| puts url} + # ev.on_event() {|ev, *args| puts "#{ev} fired"} + # def on_event(name=nil, &block) if name @event_handlers[name.to_s] = block else @default_handler = block end end + + # removes the callback of event. + # + # ie = WIN32OLE.new('InternetExplorer.Application') + # ev = WIN32OLE_EVENT.new(ie) + # ev.on_event('BeforeNavigate2') {|*args| + # args.last[6] = true + # } + # ... + # ev.off_event('BeforeNavigate2') + # ... + # + def off_event(name=nil) + if name.nil? + @event_handlers.clear + @default_handler = nil + elsif name.kind_of?(String) || name.kind_of?(Symbol) + @event_handlers.delete(name.to_s) + else + raise TypeError.new("wrong argument type (expected String or Symbol)") + end + + nil + end def method_missing(name, *args) name = name.to_s handler = @event_handlers[name] if handler @@ -417,18 +453,20 @@ elsif @default_handler @default_handler.call name, *args end end + # Translates and dispatches Windows message. + # # Almost noop this. We don't because it get CPU hot when people put this # in a hot loop! def self.message_loop DispatchEvents.message_loop end end PK -2[=Ƌ win32ole/win32ole_method.rbclass WIN32OLE_METHOD +D?Ƌ win32ole/win32ole_method.rbclass WIN32OLE_METHOD java_import org.racob.com.FuncDesc java_import org.racob.com.TypeInfo attr_accessor :oletype, :typeinfo @@ -563,11 +601,11 @@ end include WIN32OLE::Utils end PK -2[=win32ole/win32ole_param.rbclass WIN32OLE_PARAM +D?win32ole/win32ole_param.rbclass WIN32OLE_PARAM attr_accessor :name def initialize(method, index, param_info=nil) raise TypeError.new("1st parameter must be WIN32OLE object") if !method.kind_of? WIN32OLE_METHOD @@ -609,11 +647,11 @@ end include WIN32OLE::Utils end PK -2[=I}T win32ole/win32ole_ruby.rbrequire 'win32ole/utils' +D?I}T win32ole/win32ole_ruby.rbrequire 'win32ole/utils' require 'jruby' # Shorthand vocabulary: # ti, oti - typeinfo or owner_typeinfo @@ -725,11 +763,11 @@ private include WIN32OLE::Utils end PK -2[= win32ole/win32ole_type.rbclass WIN32OLE_TYPE +D? win32ole/win32ole_type.rbclass WIN32OLE_TYPE java_import org.racob.com.TypeInfo attr_reader :typeinfo def initialize(*args) @@ -876,11 +914,11 @@ end include WIN32OLE::Utils end PK -2[=U-win32ole/win32ole_typelib.rbrequire 'win32/registry' +D?U-win32ole/win32ole_typelib.rbrequire 'win32/registry' class WIN32OLE_TYPELIB java_import org.racob.com.TypeLib attr_reader :typelib @@ -955,11 +993,11 @@ end include WIN32OLE::Utils end PK -2[=R1::win32ole/win32ole_variable.rbclass WIN32OLE_VARIABLE +D?R1::win32ole/win32ole_variable.rbclass WIN32OLE_VARIABLE java_import org.racob.com.VarDesc attr_reader :name def initialize(type, var_desc, name) @@ -1010,11 +1048,11 @@ end include WIN32OLE::Utils end PK -2[=Q +D?Q \win32ole/win32ole_variant.rbclass WIN32OLE module VARIANT VT_I2 = 2 # Short VT_I4 = 3 # Int VT_R4 = 4 # Float @@ -1064,31 +1102,31 @@ end module_function :variant_to_string end end PK -.c= AMETA-INF/PK --c==+META-INF/MANIFEST.MFPK -2[=Ajruby-win32ole/PK -1[=Aorg/PK -1[= +D? AMETA-INF/PK +D?=+META-INF/MANIFEST.MFPK +D?Ajruby-win32ole/PK +D?Aorg/PK +D? A?org/jruby/PK -1[=Agorg/jruby/ext/PK -2[=Aorg/jruby/ext/win32ole/PK -2[= Awin32ole/PK -2[=?£OOjruby-win32ole.rbPK -2[=D>|??mjruby-win32ole/version.rbPK -1[=S60org/jruby/ext/win32ole/RubyInvocationProxy.classPK -.c=+ org/jruby/ext/win32ole/RubyWIN32OLE$1.classPK -.c=$n[++)?org/jruby/ext/win32ole/RubyWIN32OLE.classPK -2[=||;win32ole/Win32oleService.classPK -2[=cj22@win32ole/utils.rbPK -Wb= _S/(Vwin32ole/win32ole_error.rbPK -2[=Ȯ3Wwin32ole/win32ole_event.rbPK -2[=Ƌ [win32ole/win32ole_method.rbPK -2[=^gwin32ole/win32ole_param.rbPK -2[=I}T jwin32ole/win32ole_ruby.rbPK -2[= ttwin32ole/win32ole_type.rbPK -2[=U-7win32ole/win32ole_typelib.rbPK -2[=R1::Mwin32ole/win32ole_variable.rbPK -2[=Q -\Œwin32ole/win32ole_variant.rbPK +D?Agorg/jruby/ext/PK +D?Aorg/jruby/ext/win32ole/PK +D? Awin32ole/PK +D??£OOjruby-win32ole.rbPK +D?8??mjruby-win32ole/version.rbPK +D?S60org/jruby/ext/win32ole/RubyInvocationProxy.classPK +D?"`+ org/jruby/ext/win32ole/RubyWIN32OLE$1.classPK +D?%o*f+f+)?org/jruby/ext/win32ole/RubyWIN32OLE.classPK +D?||:win32ole/Win32oleService.classPK +D?cj22@win32ole/utils.rbPK +D? _S/Vwin32ole/win32ole_error.rbPK +D?TTWwin32ole/win32ole_event.rbPK +D?Ƌ _win32ole/win32ole_method.rbPK +D?kwin32ole/win32ole_param.rbPK +D?I}T  owin32ole/win32ole_ruby.rbPK +D? xwin32ole/win32ole_type.rbPK +D?U-win32ole/win32ole_typelib.rbPK +D?R1::Ќwin32ole/win32ole_variable.rbPK +D?Q +\Ewin32ole/win32ole_variant.rbPK1 \ No newline at end of file