Re: [dev] re: still having problems getting my protocol handler to be called

2005-07-09 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi James,

I now have my components from the idl in a separate project, and in a
jar file, and the protocol handler classes in another jar file.

I am not sure that you can split your project into two jar files, I would place
everything into one jar file ...

before we continue, did you manage to install the demo protocolhandler addon
myprotocolhandler.uno.zip I send you some days ago ?

use Tools - Package Manager ... for OO 1.9 or pkgchk for OO 1.1.4 to install

the common.rdb/services.rdb should look like this:

 / SERVICES
   / com.sun.star.frame.ProtocolHandler
 Value: Type = RG_VALUETYPE_STRINGLIST
Size = 76
Len  = 2
Data = 0 = org.test.OOProtocolHandler

you should also find the Protocolhandler.xcu in

.\user\uno_packages\cache\registry\com.sun.star.comp.deployment.configuration.PackageRegistryBackend\
registry\data\org\openoffice\Office

with an entry like this:

 node oor:name=org.test.OOProtocolHandler oor:op=replace
   prop oor:name=Protocols oor:type=oor:string-list
valuetest.java.oo:*/value
   /prop
  /node

remember the demo project was build to run with OO 1.1.4,
so I did not use the new (optional ?) manifest files ...

another question:

are you sure that the service name of your ProtocolHandler class is
com.sun.star.frame.ProtocolHandler ?

HTH

Oliver


GnuPG key 0xFB3AB13E: 13E3 5853 66D3 4C0B 3B7A A946 2ED3 1D48 FB3A B13E
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCz5I3LtMdSPs6sT4RAr4TAJ4j/+ooFKr9mfal/zgTxlZKaF/82gCfcMKl
pftU+91te8aPuhUk6VYGBLU=
=hxeU
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] re: still having problems getting my protocol handler to be called

2005-07-09 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi James,

   No, I am not certain that the service name is
 com.sun.star.frame.ProtocolHandler.

you have to use com.sun.star.frame.ProtocolHandler,
otherwise it will not work ... look at the example code ...

 but my computer is turned off due to hurricane concerns.

good luck :-)

Oliver


GnuPG key 0xFB3AB13E: 13E3 5853 66D3 4C0B 3B7A A946 2ED3 1D48 FB3A B13E
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC0ActLtMdSPs6sT4RAqi4AJ0QDdRuwC6qw92MNWFDDdgFp/poAACfQk7+
EA3+DLUOnMDRN/gu7wBpync=
=a4Wn
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] re: still having problems getting my protocol handler to be called

2005-07-08 Thread James Black
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I am creating a file in the class the implements the four interfaces for
the protocol handler, in the constructor, but it is never opened, and
closed, so my protocol handler is never being called.

Is there someone that is willing to look at my Netbeans project and see
what I am doing wrong?  This has been very frustrating.

My addition to the menubar appears, so the addon.xcu file is fine, but
the two menu items are greyed out, so it appears that that is due to the
protocol handler not being called.

Thank you.

- --
Love is mutual self-giving that ends in self-recovery. Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCzozVikQgpVn8xrARAvR7AJ9kRd2x7zhyIFgt0Q5WHsaRA7GzewCfckT6
tWj/+8kXKgMqCjKrdgmBdwQ=
=xRtS
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] re: still having problems getting my protocol handler to be called

2005-07-08 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi James,

 I am creating a file in the class the implements the four interfaces for
 the protocol handler, in the constructor, but it is never opened, and
 closed, so my protocol handler is never being called.

Did you have a look at the common.rdb (oo1.4 services.rdb) using the
regview tool to see, if your protocol handler is registered ?

OO 2.0:
.\program\regview
C:\...\OpenOffice.org1.9.109\user\uno_packages\cache\registry\com.sun.star.comp.deployment.component.PackageRegistryBackend\common.rdb

OO 1.1.4:

.\program\regview d:\programs\oo1.0.\user\uno_packages\cache\services.rdb

you should get an output like this:

/ SERVICES
  / com.sun.star.frame.ProtocolHandler
Value: Type = RG_VALUETYPE_STRINGLIST
   Size = 45
   Len  = 1
   Data = 0 = oo.test.comp.MyService

HTH

Oliver


- --
GnuPG key 0xFB3AB13E: 13E3 5853 66D3 4C0B 3B7A A946 2ED3 1D48 FB3A B13E
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCzsI9LtMdSPs6sT4RAgyLAJ4qPtWMrmM51OGAv4fnfuEXBwaXzQCgh3ss
o578I2256Sz/0WL/igy01v4=
=tT/9
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] re: still having problems getting my protocol handler to be called

2005-07-08 Thread James Black
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Oliver Brinzing wrote:
 Hi James,
 
 
I am creating a file in the class the implements the four interfaces for
the protocol handler, in the constructor, but it is never opened, and
closed, so my protocol handler is never being called.
 
 
 Did you have a look at the common.rdb (oo1.4 services.rdb) using the
 regview tool to see, if your protocol handler is registered ?

  I just tried that, and all I get is:
common.rdb:

/



  So it isn't registered.  So, what could I have done or not done to not
have it be registered?

  I had looked at your code and realized that I needed
BBGradebook.uno.Manifest in BBGradebook.uno.jar and that matched the
MANIFEST.MF that was in the jar file.
RegistrationClassName: gradebook.GradebookHandlerAddon


This class is my protocol handler, or at least where the factory is.

I now have my components from the idl in a separate project, and in a
jar file, and the protocol handler classes in another jar file.

Thank you for your help so far.

- --
Love is mutual self-giving that ends in self-recovery. Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCzs5WikQgpVn8xrARAvKdAJ9LxPrIyContH4LoHxnE3J77W/SZACeOzhE
PBA/UPwa/XpTejhzNAP0GSA=
=eRD6
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]