Re: [dev] re: using ant script to build add-in

2005-02-23 Thread Oliver Brinzing
Hi James,

i will sent you 2 sample projects including ant scripts
 which should work with eclipse 3.1 and oo1.1.4

Oliver


Am 23.02.2005 15:38 schrieb Kohei Yoshida:
 On Tue, 22 Feb 2005 14:44:23 -0500, James Black [EMAIL PROTECTED] wrote:
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I am curious if anyone has an ant script to build an add-in for Oo, as I
am going to do my project in java, and would prefer not to use make. :)
 
 
 Hi James,
 
 I think you will be better served on [EMAIL PROTECTED]  On that
 list I see regularly many folks who develop Java UNO components and/or
 write Java programs that connect to OO.o instance via UNO.
 
 As for me, I still use 'make' for my Java UNO component project, but
 switching to ant is in the back of my mind.
 
 HTH,
 
 Kohei


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



[dev] using xslt to create openoffice html document from xml ?

2005-03-18 Thread Oliver Brinzing
Hi,

I would like to create an openoffice html file from an xml file
using the xslt filter from the openoffice tools menu ...

I have the

- xml file
- xslt filter file
- html template file

choosing test xslt ... from the dialog in combination
with show source creates the html source ...

But how can I insert the source code into my html template ?

I don't want to copy the source via clipboad and insert
it into a wordpad text document (this works fine)

any hints ?

regards

Oliver

GnuPG key 0xFB3AB13E: 13E3 5853 66D3 4C0B 3B7A A946 2ED3 1D48 FB3A B13E


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



[dev] jobs.xcu: onFirstVisibleTask seems to behave different in OO 1.1.4/2.0

2005-03-18 Thread Oliver Brinzing
Hi,

I have a java oo component (XJob) which is executed onFirstVisibleTask.
The component registers a com.sun.star.frame.GlobalEventBroadcaster listener.

With OO 1.1.4 I get the following events for the first (new) document ...

- OnStartApp
- OnNew
- OnFocus

With OO 2.0 I get nothing for the first (new) document ...
(This does not happen if I start OO loading a document ...)


Is this a bug or feature ?

regards

Oliver

GnuPG key 0xFB3AB13E: 13E3 5853 66D3 4C0B 3B7A A946 2ED3 1D48 FB3A B13E


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



Re: [dev] component debuging with oo 2.0 ?

2005-03-25 Thread Oliver Brinzing
Hi Cyrille,

 In 2.0 there's a Java subpanel of the Tools/Options dialog, where you
 can specify a number of parameters for the JREs you use within OOo. I'd
 imagine that's where you could tune your use of Java within the product.

thanks, this works ... :-)

the javasettings_Windows_x86.xml file looks like ...

vmParameters xsi:nil=false
  param-Xdebug/param
  param-Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n/param
/vmParameters

regards

Oliver

GnuPG key 0xFB3AB13E: 13E3 5853 66D3 4C0B 3B7A A946 2ED3 1D48 FB3A B13E


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



[dev] how to extract a cell content via named range out of content.xml using sax parser ...

2005-06-15 Thread Oliver Brinzing
Hi,

I would like to parse spreadsheet documents, to get some information
without opening them with oo ...

For example I would like to get the content of the named range X_INFO

table:named-expressions
table:named-range table:name=X_INFO 
table:base-cell-address=$Sheet1.$A$1
table:cell-range-address=$Sheet1.$B$1/
/table:named-expressions

But how to find the referenced table:table-cell inside the content.xml ?

table:table table:name=Sheet1 table:style-name=ta1 table:print=false
table:table-column table:style-name=co1 
table:default-cell-style-name=Default/
table:table-column table:style-name=co1 
table:default-cell-style-name=ce1/
table:table-row table:style-name=ro1
table:table-cell/
table:table-cell office:value-type=string
text:p
text:span text:style-name=T1Hello 
World/text:span
/text:p
/table:table-cell
/table:table-row
/table:table

regards

Oliver


-
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-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] remote debugging seems not to work ...

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

Hi,

I just wanted to remote debug one of my oo java components ...

I have the following paramters set in Tools - Options - Java

- -Xdebug
- -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n

I am using WinXP SP 2 / Java 1.5_04 and eclipse 3.1
some month ago, i had no problems at all ...

cause the debugging from eclipse does not work,
(see https://bugs.eclipse.org/bugs/show_bug.cgi?id=105828)

it tried jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=8000
from the command line, but this causes a

E:\jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=8000
Set uncaught java.lang.Throwable
Internal exception:
com.sun.jdi.VMDisconnectedException: connection is closed
at com.sun.tools.jdi.TargetVM.send(TargetVM.java:274)
at 
com.sun.tools.jdi.VirtualMachineImpl.sendToTarget(VirtualMachineImpl.java:929)
at com.sun.tools.jdi.PacketStream.send(PacketStream.java:41)
at 
com.sun.tools.jdi.JDWP$EventRequest$Set.enqueueCommand(JDWP.java:6206)
at com.sun.tools.jdi.JDWP$EventRequest$Set.process(JDWP.java:6176)
at
com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.set(EventRequestManagerImpl.java:178)
at
com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.setEnabled(EventRequestManagerImpl.java:142)
at
com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.enable(EventRequestManagerImpl.java:127)
at 
com.sun.tools.example.debug.tty.VMConnection.setEventRequests(VMConnection.java:270)
at 
com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:177)
at com.sun.tools.example.debug.tty.Env.init(Env.java:63)
at com.sun.tools.example.debug.tty.TTY.main(TTY.java:964)


if I start my component *remote* from a commanline:

E:\java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n 
-cp .;
D:\Programme\OpenOffice.org\program\classes\juh.jar;D:\Programme\OpenOffice.org\program\classes\jurt.jar;
D:\Programme\OpenOffice.org\program\classes\jut.jar;D:\Programme\OpenOffice.org\program\classes\ridl.jar;
D:\Programme\OpenOffice.org\program\classes\unoil.jar;D:\Programme\OpenOffice.org\program\classes\sandbox.jar
oo.comp.remote.RemoteConnectionMain

Listening for transport dt_socket at address: 8000

the component starts but as soon as I try to start the debugger I get abouve 
exception
and the following output from oo.comp.remote.RemoteConnectionMain:

ERROR: transport error 202: send failed: Software caused connection abort 
[transport.c,L41]
ERROR: transport error 202: recv error: Software caused connection abort 
[transport.c,L41]

can give me a hint ?

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC8LXsTiyrQM/QSkURAsw2AJ9C6+Mm6ZerPTTr1FXHaYQ8rqrk+wCfU6oJ
MvvuQijOVO1txsJL0+f7K40=
=ItGf
-END PGP SIGNATURE-

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



Re: [dev] A question about the view cursor in Calc

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

Hi Michael,

 I want to make a program which can automatically move the current view
 cursor to a particular cell in Calc.

try ...

Sub Main

Dim oDocument as Object
Dim oView as Object
Dim oSheet as Object
Dim oCell as Object

oDocument = ThisComponent
oSheet = oDocument.getSheets().getByIndex(0)
oCell = oSheet.getCellByPosition(4, 3)

oView = oDocument.getCurrentController()
' select
oView.Select(oCell)
' deselect
oView.Select(null)

End Sub

HTH

Oliver


GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC/MSPTiyrQM/QSkURAjJtAKDCr1me1AYLK69wChUfg2lA2oKqAgCfe/Za
QIup5vbe22/UNhVg+9nC12M=
=hJYA
-END PGP SIGNATURE-

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



Re: [dev] Can I increase the jvm heap size for OpenOffice?

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

Hi,

add the following parameters to the java options
(Tools - Options... - OpenOffice.org - Java - Parameters...)

- -Xms64M(min)
- -Xmx128M  (max)

if you want to watch your programs behaviour you can use
the parameter (java 1.5 is required)

- -Dcom.sun.management.jmxremote

Start ...\Java\jdk1.5.0\bin\jconsole.exe to connect to the JVM

HTH

Oliver

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDDDy4TiyrQM/QSkURAvrzAJ9R3m22v89uFvkMNHVvKwuMC5G7HgCfRJpi
D+Ss4mdK5pkIJA8HI0COLHM=
=bDJf
-END PGP SIGNATURE-

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



[dev] unopkg - installation of java component fails in most cases with OO 1.9_m130...

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

Hi,

I tried to install a java component with OO 1.9_130 using unopkg ...
sometimes it works, but in most cases the installation fails with:

  WARNING: An error occurred while enabling the package: mycomp.uno.jar,
  Cause: (com.sun.star.registry.CannotRegisterImplementationException) { {
  Message = Could not create Java implementation loader,
  Context = (com.sun.star.uno.XInterface) 0x0 } }

I am using Java 1.5.0_05-b05

The installation of the same package *always* works with OO 1.1.5 ...

any hints ?

Oliver


- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDNRnaTiyrQM/QSkURAnhCAJ9vtQa2YstM8lmqS5P9aUPavz/QFwCfY+Ez
lbs779dN07Aa9XUhQ0jcxqI=
=xW7J
-END PGP SIGNATURE-

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



Re: [dev] unopkg - installation of java component fails in most cases with OO 1.9_m130...

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

Hi Steffen,

 What platform are you on?

i am using windows xp sp2 ...

 Can you give some more details of your command-line, and in which case
 the registering failed?

it seems, that especially a 'unopkg reinstall' fails on packages which do not 
include
a protocolhandler.xcu/addon.xcu file

e.g. I remove the package via GUI and add the new version ...

 And, lastly, could you make your package available? Only, of course, if
 it's not closed source.

it's just a demo service, i will sent it directly to you (including source)

Oliver

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDOW2ATiyrQM/QSkURApkWAKCjpHON389oy3j2X5UbYEFdIalnyQCgrAQl
0wFJk6LUv8Ok04SGrXhlhj4=
=r6gN
-END PGP SIGNATURE-

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



Re: [dev] unopkg - installation of java component fails in most cases with OO 1.9_m130...

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

Hi Steffen,

 I could reproduce your problem: the culprit seems to be the -agentlib
 parameter in your java-settings. Removing this entry worked for me.

you are right :-)
i use this setting for remote debugging ...

but i found a workaround:

unopkg remove swttest.uno.zip
unopkg add swttest.uno.zip

via commandline seems to work in all cases ...
only unopkg reinstall -v causes the problem 

thanks

Oliver

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDOtO9TiyrQM/QSkURAvygAJ9ZVC62mZiWT2UCM6z8JxsZtBxGuQCfZevW
LzvdFTaw72apkk7Rxijhm08=
=11RF
-END PGP SIGNATURE-

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



[dev] customize oo 2.0.1 - how to access form controls toolbar ...

2005-12-17 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

i try to customize the oo 2.0.1 toolbars, for example, i would like to have 
access to the
Form Control toolbar via a button in the objectbar ... but i can not find the 
.uno:x
command, in oo 1.1.5 we had slot:x ...

is there any documentation about the new .uno: commands like the slots.sxc file 
access ?

any hints ?

regards

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDpCRYTiyrQM/QSkURAikOAJ9+NiR7G2/As9IMug+WaLtagoR14wCgmjWu
S90jWpTolYmKQ0pXhrK6LWI=
=DuDy
-END PGP SIGNATURE-

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



Re: [dev] how to change the user profile in oo 2.0 ?

2005-12-18 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Peter,

 you have to change the bootstrap.ini in the program directory before the
 first start of the user. There's no way to manipulate the msi-file.

thanks, this will help me for the moment, but i still wish the the oo 1.1.5 
handling
or a similar handling as i know from Firefox/Thunderbird, having a profiles.ini 
in
%APPDATA%, pointing to the user profile ... making it easier to reinstall 
Windows
for example without saving the oo userprofiles first ...

It also seems, that there is no way to use environment varibles inside the 
bootstrap.ini,
which will prevent me creating a multi user environment like

UserInstallation=file:///e:/profiles/oo20/%USERNAME%/user

I also noticed, that you *have* to use an URL, otherwise the unopkg fails ...

I am thinking about to open an RFE for this ...

best regards

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDpTfsTiyrQM/QSkURAlSCAJ94hqHL2G+POFek4r5lNK9raxVy0ACgmdEH
uzLkpuwcJyrvBsXZDvJfK/E=
=FiT0
-END PGP SIGNATURE-

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



Re: [dev] how to change the user profile in oo 2.0 ?

2005-12-21 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Joerg,

thanks a lot for this lesson :-)

 I am thinking about to open an RFE for this ...

 For what?
 For various reasons there is close to no chance that the URL-requirement can 
 be changed.
 Nor should it, IMNSHO. And you can use environment variables even now (unless 
 they
 conflict with one of the internally defined bootstrap variables).

you're right, i thought about a RFE for the sversion.ini handling, but if it's 
still working,
there is really no need for this ...

merry x-mas

Oliver

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDqYbtTiyrQM/QSkURAkUKAKCUWHzLfw0Rm8q5qJCCRiBH5MUylACgwlq7
oNgPbdsGk+4B24T0i00jpco=
=XV5U
-END PGP SIGNATURE-

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



[dev] remote connection disposes using XStandaloneDocumentInfo (oo 2.0.1)

2005-12-26 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I am using XStandaloneDocumentInfo to retrieve information from oo files via 
a remote connection
(uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager).
I have no problems to do so using oo 1.1.5, but with oo 2.0.1 the remote 
connection always disposes
if i try to call the following method for a *second* file ... the call for the 
first file always
works ...

using XDocumentInfo after loading the whole document instead always works,
but it's pretty slow ... :-(

here is my code:

private XDocumentInfo loadStandaloneDocInfo(String loadUrl)
throws Exception {

Object oObj = xComponentContext.getServiceManager()
.createInstanceWithContext(
com.sun.star.document.StandaloneDocumentInfo,
xComponentContext);

XStandaloneDocumentInfo xStandaloneDocumentInfo = 
(XStandaloneDocumentInfo) UnoRuntime
.queryInterface(XStandaloneDocumentInfo.class, oObj);

xStandaloneDocumentInfo.loadFromURL(loadUrl);

XDocumentInfo xDocumentInfo = (XDocumentInfo) UnoRuntime
.queryInterface(XDocumentInfo.class, xStandaloneDocumentInfo);

   return xDocumentInfo;
}

any hints ?

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDr6yGTiyrQM/QSkURAnGuAKC92e/pPJlrSo9h5742vpqs4MgSsQCeKg2b
WYiOKn0RHLM1EM/nhXRpid8=
=+UIW
-END PGP SIGNATURE-

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



Re: [dev] How to scroll view to make a certain location visible?

2005-12-29 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Matthias,

Am 29.12.2005 09:56 schrieb Matthias Benkmann:
 I'd like to scroll the view of a writer document so that a given
 bookmark will be visible or at least that the page the bookmark is on

this should bei possible with the following code snippet:

OPTION EXPLICIT

Sub Main

Dim oDoc as Object
Dim oBook as Object
Dim oView as Object
Dim oCursor as Object
Dim sMark as String

oDoc = ThisComponent
sMark = MyBookmark

oView = oDoc.getCurrentController()

if oDoc.Bookmarks.hasByName(sMark) then
oBook = oDoc.Bookmarks.getByName(sMark)
' get the Textcursor ...
oCursor = 
oBook.Anchor.Text.createTextCursorByRange(oBook.Anchor)
' set view to current cursor position ...
oView.getViewCursor().gotoRange(oCursor, false)
end if

End Sub


regards

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDs61+TiyrQM/QSkURAjsGAJwLyryK9hrXYsswHwHHqx6zqT6ppACgq/oL
D1325Fu7ZFM/C8+/ZyB9INQ=
=3UwK
-END PGP SIGNATURE-

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



Re: [dev] remote connection disposes using XStandaloneDocumentInfo (oo 2.0.1)

2006-01-02 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Stephan,

Am 02.01.2006 10:37 schrieb Stephan Bergmann:
 What exactly is the problem (Java exception with stack trace)?  Are you
 sure that it really is the bridge that is disposed?  If yes, that
 typically is the result of a crashed soffice process.

meanwhile i know what happened:

first i used the wrong (oo 1.1.5) *.jar files (this caused the crash) ..., 
second i did
not realize, that it's no longer possible to extract the StandaloneDocInfo from 
binary
(*.sdw, *.sdc) files, this caused a com.sun.star.task.ErrorCodeIOException ...

sorry ;-)

Oliver

- --
GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDuWZJTiyrQM/QSkURAvojAKDDjUWQJ6RdtnQQn8kzJn3H0ijU0gCfY5qb
4Wloein1sAWt+40ORooBSPg=
=8BMM
-END PGP SIGNATURE-

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



[dev] XStandaloneDocumentInfo - can not write info using oo 2.0.1/oo 1.1.5 ...

2006-01-04 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

as one can read, i still have problems using the XStandaloneDocumentInfo ...
using the code snippet to read and write the documentinfo from different files
causes the following problems:

 *.sdw  *.sxw
*.odt
   read writeread write  read 
write

oo 1.1.5okokok   fails  fails   
fails
oo 2.0.1fails  fails ok   fails   ok
 fails

can somebody confirm this ?

Oliver

REM  *  BASIC  *
Option Explicit

Sub Main

On Local Error Goto ErrorHandler

Dim oSM, oDesk, oInfo As Object
Dim sFile as String
Dim sTitle as String

sFile = E:\test.sdw
'   sFile = E:\test.sxw
'   sFile = E:\test.odt

oSM = CreateObject(com.sun.star.ServiceManager)
oInfo = 
oSM.createInstance(com.sun.star.document.StandaloneDocumentInfo)

oInfo.loadFromURL(ConvertToUrl(sFile))
sTitle = oInfo.getPropertyValue(Title)
msgBox sTitle

oInfo.setPropertyValue(Title, Hello World)
oInfo.storeIntoURL(ConvertToUrl(sFile))

Exit Sub
ErrorHandler:
MsgBox Error()  Chr(13)  Erl()  Chr(13)  Err()
End Sub
- 

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDvAhCTiyrQM/QSkURAsCNAJwJrQZwf2uXQyvE0R2QZ7PjpEEcBQCgjdtN
iFAmVAKH+zazmaWqKKMYKPo=
=iphg
-END PGP SIGNATURE-

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



Re: [dev] OpenOffice Integration with Eclipse RCP Application

2006-02-03 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

 I have an eclipse rcp app which uses Plugin A - my
 OpenOffice handling code and PlugIn B - My User
 Interface code which uses the Swt Bridge, Plugin C -
 My OpenOffice Lib ie all the classes and dll's, and
 other files openoffice needs.

some time ago I had a similar problem:
I tried to use a swt dialog from a oo component ... and found the following 
solution:

First I added the eclipse rcp/swt jar files to the oo userClassPath 
(javasettings_Windows_x86.xml)

userClassPath xsi:nil=false
D:\swt.win.runtime\org.eclipse.core.runtime_3.1.0.jar;
D:\swt.win.runtime\org.eclipse.jface.text_3.1.0.jar;
D:\swt.win.runtime\org.eclipse.jface_3.2.0.jar;
D:\swt.win.runtime\org.eclipse.osgi_3.1.0.jar;
D:\swt.win.runtime\org.eclipse.swt.win32.win32.x86_3.1.0.jar
/userClassPath

and second I added D:\swt.win.runtime to the windows environment Path 
variable, otherwise
the native swt dll's (swt-awt-win32-3201.dll, swt-win32-3201.dll, 
swt-gdip-win32-3201.dll) can't be
found ...
(I had to extract the dlls from the org.eclipse.swt.win32.win32.x86_3.1.0.jar 
file into
D:\swt.win.runtime)

it seems not to be possible to *extend* the java.library.path using the
-Djava.library.path=D:\swt.win.runtime
option inside the javasettings_Windows_x86.xml, afaik using this option will 
replace the current
setting with
your settings, and thats probably not what you want ...

Oliver

- --
GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD46wLTiyrQM/QSkURAmxLAJ9RBOMo9DjSnw0wgywmocnmGY5V1ACff860
+UJPqIBmVZhrAnGMcxOSOSA=
=DSVg
-END PGP SIGNATURE-

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



[dev] SO 7.0 PU 6 - where to find mor infos about the fixed issues ?

2006-02-15 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

i found a new product update for so 7.0 on
http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/xprod-StarOfficenav=pub-patches

Patch-ID# 116520-08
Keywords: writer calc draw impress math base setup saving documents security
Synopsis: StarOffice/StarSuite 7 (Windows): Product Update 6
Date: Jan/26/2006

it seems the following problems have been fixed ...

6325192 StarOffice7 writer crashes sliently after typing the keysequence of 
“Chinese char +
special char
6326717 Numbering changes if the link is cut between the master document and 
the source file.
6333608 Inserting animated images causes Presentation to crash
6341243 Dialog boxes under olwm are cut off when changing the scale of the 
StarOffice view

where can i find more infos about the fixed bugs ?
i can not find any issue tracker tasks ...

Oliver
- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFD81tkTiyrQM/QSkURAtihAJiwLte3pjKW/qYGaIdpnztMUPkFAJ9Qxpjz
jUn9kXMnv9aW2HVtuCRd+A==
=gLol
-END PGP SIGNATURE-

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



[dev] How to add a submenu to an OfficeMenuBar ?

2006-06-10 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I want to add a submenu to an OfficeMenuBar.
node oor:name=Submenu seems only valid for toplevel menu's ...

any hints ?

Oliver

node oor:name=OfficeMenuBar
node oor:name=oo.menu oor:op=replace
prop oor:name=Title oor:type=xs:string
value xml:lang=de~My Menu/value
/prop
node oor:name=Submenu
node oor:name=m01 oor:op=replace
prop oor:name=Title oor:type=xs:string
value xml:lang=dem1/value
/prop
/node
node oor:name=m02 oor:op=replace
prop oor:name=Title oor:type=xs:string
value xml:lang=dem2/value
/prop
/node
node oor:name=Submenu
node oor:name=x01 oor:op=replace
prop oor:name=Title 
oor:type=xs:string
value xml:lang=dex1/value
/prop
/node
/node
/node
/node
/node


- --


GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEipmpTiyrQM/QSkURAsoJAJ9nIC+jbvKLOZxb/ANu76Asx4NApACfeWxE
DRWsyYfdrx7dSUHLutOprvU=
=5Rpy
-END PGP SIGNATURE-

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



[dev] xslt filter with two input sources possible ?

2006-08-21 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

i tried to create a xslt filter to merge the information from two *.xml docs 
into one writer doc ...

the filter works perfect with *one* input source (i select the *.xml file via 
file - open)

but how can i access the second input source, i tried

   xsl:copy-of select=document('./seconde.xml')/ROOT/INFO/

but nothing happens ...

another question: is there a change to (remote) debug a xslt file ?
for my oo components i use log4j ...

any hints ?

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE6VKYTiyrQM/QSkURAtUHAKCyOQojeKzhV5JcnxtDvjpHwF/33ACeK98A
6O5YN74SV2KpJD6mpM9u3Qo=
=UlPO
-END PGP SIGNATURE-

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



[dev] How to add a submenu to an OfficeMenuBar ?

2006-09-21 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

some month ago i asked how to add a submenu to an OfficeMenuBar ...

 This is currently not possible with the Addons.xcu file.
 We are working on an enhancement to support this for OOo 2.0.4.

Seems not to be possible with oo 2.0.4 rc 2 or did i miss something ?


Oliver
- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFErdqTiyrQM/QSkURAv6KAJ4o7bSEe8iWC4IaHvcZCB9iDMC5vgCgmO1h
RxJKWyFgxjvDnRToYCGM6xc=
=mhaY
-END PGP SIGNATURE-

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



[dev] How to catch OnStartApp from job started onFirstVisibleTask ?

2006-11-28 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

is it possible to start a job onFirstVisibleTask and catch the OnStartApp 
event ?

node oor:name=Events
node oor:name=onFirstVisibleTask oor:op=replace
node oor:name=JobList
node oor:name=MyJob oor:op=replace/
/node
/node
/node

my job registers as a GlobalEventBroadcaster and will be initialized 
onFirstVisibleTask

it seems it's only possible to catch the onNew event ...
i guess the OnStartApp is triggered before ...

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFbIFGTiyrQM/QSkURAl0XAJ9naiy8wiuIuat9qfYB3BeuqeUplQCgxe/B
nsFtrNM5waZVGW1RGKDBvZM=
=AlEH
-END PGP SIGNATURE-

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



Re: [dev] How to catch OnStartApp from job started onFirstVisibleTask ?

2006-11-29 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Matthias,

  node oor:name=onStartApp oor:op=replace

 You are right. This is the very first event that occurs. Did you try to
 register your job for OnStartApp?

yes, this works no i get

OnStartApp
OnCreate
...

I did not know, that one could use this kind of events for the jobs.xcu :-)

Thanks

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFbcoTTiyrQM/QSkURAib3AJ9Zrf5LJNd55Gz/Qyg0fxMp+EwQmwCfTe4r
OcFu+R2GKqwdynkmaEkMroY=
=+fAH
-END PGP SIGNATURE-

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



[dev] OO 2.1 with jre 1.6 - xml validation problem

2006-12-18 Thread Oliver Brinzing
Hi,

now i know whats going wrong:

another extension (which i did not develop) 
deploys a xerces-2.6.2.jar.

if i remove the extension (or only the *.jar), from
uno_packages\cache\uno_packages\xx.tmp...\ it works ...

but is this behaviour correct ?
it seems the above mentioned *.jar overwrites the classpath
for all other extensions ...

Oliver


-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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



[dev] OO 2.3: How to add a submenu to an OfficeMenuBar ?

2007-08-18 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

i know i asked this question a year ago, but OO 2.3 has a new feature:
http://wiki.services.openoffice.org/wiki/Framework/WorkInProgress/Addon_Menu_Toolbar_Merging

Is it now possible to create a menu structure like this ?

[File] [MyTopLevelMenu] [Edit]
 - Entry 1
 - Entry 2
 - Submenu 3
   - Entry 3.1
   - Entry 3.2
 - Entry 4

How can I add the Submenu 3 with Entry 3.1 and Entry 3.2 ?

Can one please give me an example ?

Oliver




- --


GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGxsITTiyrQM/QSkURArf3AJ4yfmVYWTCYn5VhaH99HAMPO/KH3wCePfj3
xxn1Iu8dHwF3zt7Fs0AmmmM=
=i48f
-END PGP SIGNATURE-

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



Re: [dev] OO 2.3: How to add a submenu to an OfficeMenuBar ?

2007-08-19 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

 A new top-level menu entry with two menu items is added after the tools menu.

yes, but this is not a Submenu, it's a top level menu with 2 items,
i want to create a Submenu like

File - New - Text Document
 Spreadsheet
 Presentation

I tried to create some using:

 node oor:name=Submenu
[...]
node oor:name=Submenu
 [...]

but it's ignored ...

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGx/KPTiyrQM/QSkURAm9DAKC8kub0C0QMxUDNzIWbrdpm6G9QSgCdFZHz
ld57jjVeGtYLRaz/9gORT04=
=61jd
-END PGP SIGNATURE-

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



[dev] oo 2.3 m1 - can not load services implemented in external dll files ...

2007-08-21 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

are there any known issues with oo 2.3 ?

I have a protocolhandler (cpp). The users clicks on a toolbar button,
the external service should start now ... but i get a message (from
the protocolhandler), that the service can not be found.

Using OO 2.2.1 on vista/xp - no problems occur at all.
But I get the same error message here, if i delete the service dll ...

I had a look with the sysinternal procmon tool and found:

soffice.BIN QueryOpenD:\MyServices\ServiceA.dll SUCCESS CreationTime: 
04.05.2007 14:45:43,
 LastAccessTime: 04.05.2007 14:45:43, 
LastWriteTime: 09.03.2007
12:05:16,
 ChangeTime: 23.07.2007 19:20:29, 
AllocationSize: 503.808,
EndOfFile: 503.808,
 FileAttributes: A
soffice.BIN CreateFile  D:\MyServices\ServiceA.dll  SUCCESS Desired Access: 
Read Data/List
Directory,
 Execute/Traverse, Synchronize, 
Disposition: Open, Options:
Synchronous IO Non-Alert,
 Non-Directory File, Attributes: n/a, 
ShareMode: Read, Delete,
AllocationSize: n/a,
 OpenResult: Opened
soffice.BIN CloseFile   D:\MyServices\ServiceA.dll  SUCCESS 
soffice.BIN Load ImageD:\MyServices\ServiceA.dllSUCCESS Image Base: 
0x711, Image Size: 0x7c000

soffice.BIN RegQueryValue HKLM\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Image File Execution
Options\
DllNXOptions\ServiceA.dll  NAME NOT 
FOUND   Length: 1.024
soffice.BIN QueryNameInformationFileD:\MyServices\ServiceA.dll  SUCCESS 
Name:
\MyServices\ServiceA.dll

- - The last 2 steps RegQueryValue and QueryNameInformationFile do not 
appear if i use OO 2.3 ...

any hints ?

BTW: I do not have the protocolhandler/dll source code at the moment ...

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGyrg2TiyrQM/QSkURAmGxAKCxBs/6LdDh+Dh2SBzzN95gZXEb0wCfTKEb
30wBXnvKq0Y8fQV9DMyATyU=
=qQBy
-END PGP SIGNATURE-

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



Re: [dev] OO 2.3: How to add a submenu to an OfficeMenuBar ?

2007-08-22 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Steffen,

i already found your link and used the example provided:
http://wiki.services.openoffice.org/wiki/OpenOffice_Add-On_Project_Type

But this only adds a top level menu with an entry ...

I am not sure if it is possible to add real submenus at all,
(it was not possible with oo 2.2.1 ...), and i had no
success when i was playing with the example xml file, like ...

node oor:name=Submenu
   [...]
   node oor:name=Submenu

thanks

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGzEhbTiyrQM/QSkURAq6vAJ92CGtfq5pCDgKY9O03LwVNAxNY8QCfdEsS
Gj+p3HcN/i4rmTV1G/1opA0=
=4Tg1
-END PGP SIGNATURE-

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



Re: [dev] OO 2.3: How to add a submenu to an OfficeMenuBar ?

2007-08-23 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Steffen,

 ok, here it is, a Addons.xcu file for a menu structure with two commands
 in a sub menu. I used NetBeans and the mentioned plugin to create this -
 took about 2 minutes.

thanks a lot, you saved my day :-)

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGzVzeTiyrQM/QSkURAioYAJ9Jo3UhhGo1j0z/mmSAoAhiRwg0bACguVlw
veqviysmMp6eT0gykBJXNFI=
=bhW8
-END PGP SIGNATURE-

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



Re: [dev] OO 2.3: How to add a submenu to an OfficeMenuBar ?

2007-08-23 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

 Is it also possible to create submenu's, if i use the new 
 OfficeMenuBarMerging ?

now i got :-)

?xml version='1.0' encoding='UTF-8'?
oor:component-data oor:name=Addons oor:package=org.openoffice.Office
xmlns:install=http://openoffice.org/2004/installation;
xmlns:oor=http://openoffice.org/2001/registry; 
xmlns:xs=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
node oor:name=AddonUI
node oor:name=OfficeMenuBarMerging
node oor:name=org.openoffice.test.testcomponent 
oor:op=replace
node oor:name=S1 oor:op=replace
prop oor:name=MergePoint
value.uno:ToolsMenu/value
/prop
prop oor:name=MergeCommand
valueAddAfter/value
/prop
prop oor:name=MergeFallback
valueAddPath/value
/prop
node oor:name=MenuItems
node oor:name=M1 
oor:op=replace
prop oor:name=Title
value 
xml:lang=en-US~Test/value
/prop
node 
oor:name=Submenu
node 
oor:name=M11 oor:op=replace
prop 
oor:name=Title

value xml:lang=en-US~Close/value
/prop
prop 
oor:name=URL

value.uno:CloseDoc/value
/prop
/node
node 
oor:name=M12 oor:op=replace
prop 
oor:name=Title

value xml:lang=en-USHelp/value
/prop
prop 
oor:name=URL

value.uno:HelpIndex/value
/prop
/node
node 
oor:name=M13 oor:op=replace
prop 
oor:name=Title

value xml:lang=en-US~Test/value
/prop
node 
oor:name=Submenu

node oor:name=M131 oor:op=replace

prop oor:name=Title

value xml:lang=en-US~Save/value

/prop

prop oor:name=URL

value.uno:SaveAs/value

/prop

/node

node oor:name=M132 oor:op=replace

prop oor:name=Title

value xml:lang=en-USPrint/value

/prop
  

[dev] some questions about Addons.xcu - OfficeToolbar - Images

2007-08-24 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

i have some questions about the Addons.xcu:

- - Is it correct, that one can only define *one* OfficeToolBar inside an 
Addons.xcu ?
  So if one needs more OfficeToolbars, he has to deploy another extension ?
  OfficeToolBarMerging can not help in this case ?

- - I noticed, that user defined toolbars are stored in
\user\config\soffice.cfg\modules\scalc\toolbar\custom_toolbar_1.xml.
  All bitmaps are stored inside the
\user\config\soffice.cfg\modules\scalc\images\bitmaps\sc_userimages.png file 
and
  described (url - image) in sc_imagelist.xml.

  My OfficeMenuBar items can take advantage from this behaviour. They use 
these images ...
  but the OfficeToolBar items do not :-(   Is it a bug ?

- - Is there a posibility to deploy sc_userimages.png within extensions ?
  I noticed only the ImageIdentifier and Images nodes within the 
addons.xcu...

- - private:image/3216 will address an internal oo icon
  Where to find a list (image - id) for all possibilities ?

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGztGJTiyrQM/QSkURApgaAJ9hYyIw1HM+sh6eVsuA+U+kNG4fdQCcCa/c
Tw6yEd0b92uvDXq0qUJNIrI=
=Uk1b
-END PGP SIGNATURE-

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



Re: [dev] some questions about Addons.xcu - OfficeToolbar - Images

2007-09-03 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Carsten,

thanks a lot for your help... :-) but there is still one question i have:

One creates an extension with a top level menu using OfficeMenuBarMerging:

node oor:name=AddonUI
node oor:name=OfficeMenuBarMerging
node oor:name=org.test.oo.menu oor:op=replace
node oor:name=S1 oor:op=replace
prop oor:name=MergePoint
value.uno:WindowList/value
/prop
prop oor:name=MergeCommand
valueAddBefore/value
/prop
prop oor:name=MergeFallback
value/value
/prop
node oor:name=MenuItems
node oor:name=menu oor:op=replace
prop oor:name=Title
valuemYmENU/value
/prop
[...]

Is it possible to force a second extension to add it's menu entries
to the above mentioned top level menu ?

For example, toolsbars can be addressed using: 
private:resource/toolbar/addon_org.test.oo.toolbar
inside the CalcWindowState.xcu to set the UIName.

Oliver


  My OfficeMenuBar items can take advantage from this behaviour. They use 
  these images ...
  but the OfficeToolBar items do not :-(Is it a bug ?

I will try to create an example ... can take some time...

 You have to create a new node within the OfficeToolBar set to create a new 
 toolbar

  ahh, and i tried to create a second OfficeToolBar node ...
  But it's also possible to deploy a couple of addons.xcu's, for example 
addons-toolbar1,xcu


- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG3DV1TiyrQM/QSkURApguAJ9R3BWP3ASXZ49KLImDrvBpNXrhbgCdHDdi
OtbjwvcWRtgcJehqb91mekI=
=UbMx
-END PGP SIGNATURE-

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



Re: [dev] Re: UNOPKG and extension deployment

2007-10-03 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

 To add more info to this, we tried to use unopkg.com and not
 unopkg.exe and the installation worked even if unopkg says it
 failed:

 namespace error : Namespace prefix d for name on
 OpenOffice.org-minimal-version is not defined
   OpenOffice.org-minimal-version value=2.3 
 d:name=OpenOffice.org 2.3/

you should remove the p:

dependencies
 OpenOffice.org-minimal-version value=2.3 name=OpenOffice.org 2.3/
/dependencies


Oliver

- --
GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHA7dQTiyrQM/QSkURAm8yAJ4oBMsqMjgh37AWD1oOqCkVd4llfwCeKcNo
E7psu15syoySNAQUojitnZQ=
=rVUY
-END PGP SIGNATURE-

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



Re: [dev] Context menu interception

2007-11-11 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

 For this, you have to implement a ProtocolHandler. The Dev's Guide
 explains how to do this.

i will send you a demo protocolhandler ...

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHNvneTiyrQM/QSkURAtDXAJ0dBGv6jyjWDooLBGKeLtJv6AVGtACgpJhR
qHJL+yJ/YNChWDMF7imcsF4=
=yLGs
-END PGP SIGNATURE-

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



Re: [dev] how to choose java jre in oo 2.3 m235 ?

2007-11-26 Thread Oliver Brinzing
Hi Joachim,

 Just checked a m237 on Windows and Linux and the java options dialog 
 works fine. Can you select manually in the options dialog the JRE?

no, that is not possible too ...
I changed back to m233 and will wait for the next developer release ...

maybe something went wrong during the install process

thanks

Oliver

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

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



Re: [dev] Context menu interception

2007-11-26 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Andreas,

 As an optional feature you can provide an
 additional interface named XInterceptorInfo. There you can return a list
 of URL pattern (including wildcards) so the dispatch queue will call
 your interceptor only for those URLs ... and not for all.

i tried to configure my DispatchInterceptor:

private String[] interceptedURLs = { macro:///* };

public XDispatch queryDispatch(URL aURL, String sTarget, int nSearchFlags) {
[...]   
}

public String[] getInterceptedURLs() {
return interceptedURLs;
}

to listen only for macro:/// dispatches, but this seems not to work,
my queryDispatches method is called for .uno: dispatches too

Is there a broken chain ?

i found an explanation i the 
docs/common/ref/com/sun/star/frame/XInterceptorInfo.html

 makes it possible to get information about a registered interceptor and is 
 used by frame
 interceptor mechanism to perform interception.
 Frame can call right interceptor directly without calling all of registered 
 ones.
 Use it as an additional interface to XDispatchProviderInterceptor .
 If any interceptor in list doesn't support this interface - these mechanism 
 will be broken
 and normal list of master-slave interceptor objects will be used from top to 
 the bottom.

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHSwvjTiyrQM/QSkURAuk8AKCmYcuPPsCeO33yOJFGYmT/2IAIZgCfULRR
z58TiGImG+NYztnlvBFZExE=
=hJZI
-END PGP SIGNATURE-

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



[dev] inspection of object crashes basic ide

2007-11-28 Thread Oliver Brinzing
Hi,

can somebody confirm this ? Open a spreadsheet document, set a breakpoint at 
msgbox run macro and try to inspect oCursor ...

oo 2.3 (Vista) crashes with a memory leak ...

Oliver


REM  *  BASIC  *
OPTION EXPLICIT

Sub Main
Dim oSheet as Object
Dim oCursor as Object

oSheet = ThisComponent.getSheets().getByIndex(0)
oCursor = oSheet.createCursor()
Wait(50)
MsgBox Set a BreakPoint at MsgBox, Enter oCursor into the watch 
field  Chr(13) _
   Try to open the [+] oCursor - OO will freeze - memory leak 

End Sub
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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



Re: [dev] inspection of object crashes basic ide

2007-12-04 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Matthias,

 I can confirm this with 2.3.1rc1 under Linux. OOo freezes and its
 memory consumption grows and grows and grows ...

thanks, i submitted an issues for this:
http://www.openoffice.org/issues/show_bug.cgi?id=84092

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHVY0pTiyrQM/QSkURAq31AJ9pTmdL9+HraaO00xcMyHOPw0FVuACfYXYq
B8JnwmkxEv+L/5N9oHY9U9A=
=Jm2/
-END PGP SIGNATURE-

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



Re: [dev] Re: How to copy a PageStyle?

2007-12-18 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Matthias,

 Sorry, but your code copies even less. Header and footer are
 completely missing in the copied page style whereas with my code

yes you are right, i found some errors too :-(
but this should hopefully work for *spreadsheet*' documents:

REM  *  BASIC  *

OPTION EXPLICIT

Sub PageStyle

On Local Error Goto ErrorHandler

Dim oDocument as Object
Dim oSheet as Object
Dim oPStyle as Object
Dim oStyles as Object
Dim oCpyStyle as Object
Dim aProperties as Object
Dim vTmp as Variant
Dim sCopy as String
Dim sX as String
Dim i as Integer

oDocument = ThisComponent
oSheet = oDocument.getSheets.getByIndex(0)

oStyles = oDocument.StyleFamilies.getByName(PageStyles)
oPStyle = oStyles.getByName(Default)

sCopy = NewStyle

oCpyStyle = oDocument.createInstance(com.sun.star.style.PageStyle)

If oStyles.hasByName(sCopy) Then
oStyles.removeByName(sCopy)
EndIf

oStyles.insertByName(sCopy, oCpyStyle)  
oSheet.PageStyle = oCpyStyle.Name   

aProperties = oPStyle.PropertySetInfo.Properties

For i = LBound(aProperties) to UBound(aProperties)
sX = aProperties(i).Name
If Not IsNull(sX) Then
If sX   Then
If oPStyle.getPropertyState(sX) = 
com.sun.star.beans.PropertyState.DIRECT_VALUE Then
vTmp = oPStyle.getPropertyValue(sX)
oCpyStyle.setPropertyValue(sX, vTmp)
EndIf
EndIf
EndIf
Next i

Exit Sub

ErrorHandler:
msgbox Erl  Error  Err
Resume Next
End Sub


- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHaA9hTiyrQM/QSkURAnSLAJ4/CO4sez1h5GkOXMKn5Jw7gY/VzQCgnmvz
tRbjzMJux/POXsKav3bbSAo=
=ScrY
-END PGP SIGNATURE-

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



[dev] how to sign a document macro ?

2008-01-16 Thread Oliver Brinzing
Hi,

i have a question about how to sign a document macro 
(*only* the macro, *not* the document content).

For example a user should be able to edit the document
but not allowed to change the macro ...

if i sign a macro and edit the document i get a message that the 
signature will be removed on save ...

BTW: i set the macro security to high

any hints ?

Oliver
-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

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



Re: [dev] how to sign a document macro ?

2008-01-16 Thread Oliver Brinzing
Hi Malte,

 Open the doc, choose tools / macros / digital signatures

that's exactly what i did. After signing i can reload the document
and execute the macros ... but if i edit the document (*not* the macro)
the macro signature got lost and reloading leads to an error cause
the macros are unsigned now ...

i am using oo 2.3.1 (vista)

Oliver
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

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



Re: [dev] how to sign a document macro ?

2008-01-16 Thread Oliver Brinzing

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

| Then something is broken - file an issue please.

http://www.openoffice.org/issues/show_bug.cgi?id=85306

BTW: i thought it should be possible to allow executing macro's only
~if the are signed with a specific key ?
~for example a company could sign all document macro's and
~restrict using macro's this way ...

Oliver

- --
GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHjkSUTiyrQM/QSkURAuh/AKCldknfIk8tUtAUJA63n2BPltIdyACfeVl1
jD8reEujpxwUZIb7AU4144k=
=iZ4o
-END PGP SIGNATURE-

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



Re: [dev] AutoText via API not working

2008-01-21 Thread Oliver Brinzing

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Matthias,

|
| http://qa.openoffice.org/issues/show_bug.cgi?id=85426
| http://qa.openoffice.org/issues/show_bug.cgi?id=85427

could you please check if one of your issues deal with

http://qa.openoffice.org/issues/show_bug.cgi?id=73459
http://qa.openoffice.org/issues/show_bug.cgi?id=45368
http://qa.openoffice.org/issues/show_bug.cgi?id=45412
http://qa.openoffice.org/issues/show_bug.cgi?id=47079

thanks

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHlNTSTiyrQM/QSkURAl7eAKCPOPe2I0/NdNmhuk83Ghzb6uIRzACfcyBO
uxe8y2KkCMLaReFaFvIuLwM=
=FVCU
-END PGP SIGNATURE-

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



Re: [dev] How do I use the API to insert fields and change font size in a spreadsheet footer

2008-01-21 Thread Oliver Brinzing

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Dave,

Am 21.01.2008 11:45 schrieb Dave Cawley:
| I want my program to control spreadsheet footer contents.
| In particular I want to be able to set the font size and use PageNumber and
| PageCount fields.

please have a look ...

REM  *  BASIC  *

OPTION EXPLICIT

Sub CreateHeaderText()

Dim oDocument as Object
Dim oPStyle as Object
Dim oHContent as Object
Dim oText as Object
Dim oCursor as Object
Dim oField as Object

oDocument = ThisComponent
oPstyle = 
oDocument.StyleFamilies.getByName(PageStyles).getByName(Standard)

oPStyle.HeaderOn = True

oHContent = oPStyle.RightPageHeaderContent

oText = oHContent.LeftText
oCursor = oText.createTextCursor()

oText.insertString(oCursor, , True)

oCursor.CharHeight = 12
oCursor.CharFontName = Arial
oCursor.CharWeight = com.sun.star.awt.FontWeight.NORMAL
oCursor.CharPosture = com.sun.star.awt.FontSlant.NONE
oCursor.CharUnderline = com.sun.star.awt.FontUnderline.NONE

' insert text ...
oText.insertString(oCursor, Hello World , False)

~   ' PageNumber, PageCount, Date, Time
oField = 
oDocument.createInstance(com.sun.star.text.TextField.SheetName)
oText.insertTextContent(oCursor, oField, False)

'write content back
oPStyle.RightPageHeaderContent = oHContent

End Sub

HTH

Oliver
- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHlNfPTiyrQM/QSkURApIwAJ4rPeKrzXune4LCVRNa054nRrqMlgCeIxCQ
bZcW10p6vPmGKolMjLph2Rk=
=92km
-END PGP SIGNATURE-


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



[dev] autopilot presentation crashes if extension is installed

2008-01-31 Thread Oliver Brinzing

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

is it possible that somebody has a look at:

http://www.openoffice.org/issues/show_bug.cgi?id=85350

and maybe can confirm this issue ? I provided an example extension ;-)

thanks

Oliver
- --


GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHogR2TiyrQM/QSkURAvj6AJ9g7ioOQzhCOz+jfAhJS9838/QBBwCfTaJP
4Avz3PBNABHRessCU1U5kX4=
=/3Kx
-END PGP SIGNATURE-

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



[dev] how to log a java extensions ?

2008-01-31 Thread Oliver Brinzing

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

just thinking about how to simple log a java extension ...

is it correct that oo has no console output for stdout/stderr ?

i know i can use log4j or remote debugging, but what i am really
interessed in is a *simple* java.util.logging.ConsoleLogger,
which can be used within all java extensions ...

can jconsole from the jdk help ?
if started with jconsole.exe 
-J-Djava.util.logging.config.file=C:\Java\logging.properties
(oo java parameter: -Dcom.sun.management.jmxremote)
it will show a console log, but i don't know how to set my own logger ...
I get an error: class not found ...

any hints are welcome ;-)

Oliver
- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHogbuTiyrQM/QSkURAsIlAKC8hCU2nPxehJcPrX3KjKJPqx9+2gCdF10W
GmHbjEIziBQE2/V8h+pQPd0=
=GMdo
-END PGP SIGNATURE-

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



[dev] how to use ClassLoader.getSystemResource(file) inside an extension ?

2008-03-06 Thread Oliver Brinzing


Hi,

i try to load some *.xsd files for schema validation out of a jar file.

As long as i start the jar file outside the office an connect via remote
everything works fine. The *.xsd files are located inside the jar,
for example: my/package/resources/schema.xsd

But if i create an extension, the following code fails, cause
the *.xsd files are not found :-( ...

public InputStream getInputStreamFromFile(final String file) {

final URL url = ClassLoader.getSystemResource(file);
if (url != null)
try {
return url.openStream();
} catch (final IOException e) {
e.printStackTrace();
}
return null;
}

any hint's ?

Oliver

--

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


[dev] parcel-descriptor - logicalname - functionname

2008-03-11 Thread Oliver Brinzing
Hi,

can someone give me a hint what's the difference between
the functionname and logicalname ?

It seems not to be possible to use the logicalname as alias
to connect controls with the script...

?xml version=1.0 encoding=UTF-8?
parcel language=Java xmlns:parcel=scripting.dtd
script language=Java
locale lang=en
displayname value=MemoryUtils.MemUsage/
description
Text highlighting
/description
/locale

functionname value=MemoryUsage.updateMemoryUsage/

logicalname value=MemoryUtils.MemUsage/

languagedepprops
prop name=classpath value=MemoryUsage.jar/
/languagedepprops
/script
/parcel


Oliver

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

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



Re: [dev] Long paths on Windows

2008-04-10 Thread Oliver Brinzing

Hi,

a short question's regarding path's:

Is it generally a good idea to have space's and the version number
(for example OOo-dev 3.0,  Basis 3.0,...) inside the oo install path's ?

This can be a trouble source too, if one needs to do installation using simple 
batch scripts ...

Oliver


GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] Long paths on Windows

2008-04-11 Thread Oliver Brinzing

Hi,

spaces: no idea if that is good or bad; when coming up with Basis 3.0 
I just followed prior art (OpenOffice.org 2.4)


that's true, but till oo 2.4 one had a chance to install to a path
without spaces and version numbering, like c:\programs\openoffice.
that's not possible anymore ...

Oliver

--

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


[dev] customizing oo 2.4.1 ... - disable automatic update / skip registration / ...

2008-07-07 Thread Oliver Brinzing

Hi,

is there a way to customize oo 2.4.1, so the

- registration wizard on first start will be skipped
  (I noticed the new procedure is different from oo 2.0)

- menu item's
  help - registration... / help - search for updates will be removed

- option page - online update will be removed ...

- no automatic updates are possible at all ...

Oliver

--

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] customizing oo 2.4.1 ... - disable automatic update / skip registration / ...

2008-07-08 Thread Oliver Brinzing

Hi,

thanks for help - i found some answers for my problems:


- registration wizard on first start will be skipped


IMHO the easiest way is to run a user setup once and copy the
\user\registry\data\org\openoffice\Office\Common.xcu
\user\registry\data\org\openoffice\Office\Jobs.xcu files ...


- menu item's:  help - registration... / help - search for updates will be 
removed


creating an Addons.xcu will help:

?xml version='1.0' encoding='UTF-8'?
oor:component-data oor:name=Addons oor:package=org.openoffice.Office 
xmlns:install=http://openoffice.org/2004/installation; 
xmlns:oor=http://openoffice.org/2001/registry; xmlns:xs=http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

node oor:name=AddonUI
node oor:name=OfficeMenuBarMerging
node oor:name=org.test.remove oor:op=replace
node oor:name=S1 oor:op=replace
prop oor:name=MergePoint

value.uno:HelpMenu\.uno:OnlineRegistrationDlg/value
/prop
prop oor:name=MergeCommand
valueRemove/value
/prop
prop oor:name=MergeCommandParameter
value1/value
/prop
/node
/node
/node
/node
/oor:component-data


 - no automatic updates are possible at all ...

msiexec /passive /norestart /i openofficeorg24.msi INSTALLLOCATION=%ProgramFiles%\OpenOffice.org 
ADDLOCAL=ALL REMOVE=gm_o_Onlineupdate



- option page - online update will be removed ...


creating an OptionsDialog.xcu will do the job, e.g. removing Pages java and 
Security,
(online update will not appear, if not installed, see above ...)

?xml version=1.0 encoding=UTF-8?
oor:component-data xmlns:oor=http://openoffice.org/2001/registry; 
xmlns:xs=http://www.w3.org/2001/XMLSchema; oor:name=OptionsDialog 
oor:package=org.openoffice.Office

 node oor:name=OptionsDialogGroups
  node oor:name=ProductName oor:op=replace
   node oor:name=Pages
node oor:name=Java oor:finalized=true oor:op=replace
 prop oor:name=Hide oor:type=xs:boolean
  valuetrue/value
 /prop
/node
node oor:name=Security oor:finalized=true oor:op=replace
 prop oor:name=Hide oor:type=xs:boolean
  valuetrue/value
 /prop
/node
   /node
  /node
 /node
/oor:component-data


Oliver

--

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] FireFox 3.0 and OpenOffice-Add-on-Menu not compatible, how about a new version ?

2008-07-12 Thread Oliver Brinzing

Hi,

after upgrading to FireFox 3.0 the OpenOffice.org menu extension is Not 
compatible with Firefox 3.0 and therefore disabled.


you can patch the extension's install.rdf:   em:maxVersion3.0/em:maxVersion

don't forget to delete the extensions.cache before you start again ...


Oliver

--

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] help with userpaths for OO 2.4.1

2008-09-16 Thread Oliver Brinzing
Hi,

 so, for my version of OO, can i add a unique path (i want to have
 non-standard templates located in a folder outside of the standard
 tmepaltes)

to add a templates path's you can add a Paths.xcu file to 
.\user\registry\data\org\openoffice\Office

for example:

?xml version=1.0 encoding=UTF-8?
oor:component-data xmlns:oor=http://openoffice.org/2001/registry;
xmlns:xs=http://www.w3.org/2001/XMLSchema; oor:name=Paths 
oor:package=org.openoffice.Office
node oor:name=Paths

node oor:name=Template
prop oor:name=UserPaths
value$(inst)/share/template/$(vlang) 
file:///E:/Share/Templates/value
/prop
prop oor:name=WritePath
valuefile:///E:/User/User_Templates/value
/prop
/node

/node
/oor:component-data


BTW: it's possible you have to add the following node to the Commons.xcu too 
to make it work:

node oor:name=Path
node oor:name=Current
prop oor:name=Template oor:type=oor:string-list
value xsi:nil=true/
/prop
/node
/node

Oliver

-- 


GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] help with userpaths for OO 2.4.1

2008-09-17 Thread Oliver Brinzing
Hi Wane,

 2) are you available for hire for some OO work (i attached specifications)?

sorry, but due to limited time i can not  :-(
but maybe i can give you some hints ... ;-)

you were talking about adding a templates path to oo.
this can be done by adding url's to the Templates node of the Paths.xcu
(or by adding it manually using tools - option - paths)

in this example the directory file:///E:/Share/Templates is added,
so oo will search for templates inside this dir too.
$(inst)/share/template/$(vlang) is the standard shared templates path.
WritePath is the path, where a user can store own templates

 node oor:name=Template
 prop oor:name=UserPaths
 value$(inst)/share/template/$(vlang) 
 file:///E:/Share/Templates/value
 /prop
 prop oor:name=WritePath
 valuefile:///E:/User/User_Templates/value
 /prop
 /node

BTW: i am not sure if you can add an own entry to the list - never tried

Oliver


-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


[dev] idlc warnings - why ?

2008-12-12 Thread Oliver Brinzing
Hi,

can one give me a hint, why i get warnings for the following *.idl files ??

D:\Programme\OO_SDK_30\windows\bin\idlc: compile
'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\Service.idl'
 ...
D:\Programme\OO_SDK_30\windows\bin\idlc: detected 1 warnings compiling file
'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\Service.idl'
D:\Programme\OO_SDK_30\windows\bin\idlc: compile
'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\XGetSomething.idl'
 ...
D:\Programme\OO_SDK_30\windows\bin\idlc: detected 1 warnings compiling file
'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\XGetSomething.idl'
D:\Programme\OO_SDK_30\windows\bin\idlc: returned successful

#ifndef __bw_stv_tvs_structedit_tool_XGetSomething_idl__
#define __bw_stv_tvs_structedit_tool_XGetSomething_idl__

#include com/sun/star/uno/XInterface.idl

module bw {
module stv {
module tvs {
module structedit {
module tool {
interface XGetSomething : 
com::sun::star::uno:: XInterface {
string saySomething([in] string 
_something);
};
};
};
};
};
};

#endif

#ifndef __bw_stv_tvs_structedit_tool_Service_idl__
#define __bw_stv_tvs_structedit_tool_Service_idl__

#include XGetSomething.idl

module bw {
module stv {
module tvs {
module structedit {
module tool {
service Service {
interface 
bw::stv::tvs::structedit::tool::XGetSomething;
};
};
};
};
};
};

#endif

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] idlc warnings - why ?

2008-12-13 Thread Oliver Brinzing
Hi Cédric,

 You should try to remove the inheritance to XInterface: it is automatic
 when no inheritance class is given.

thanks for the hint - but the warnings do not disappear ...

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] idlc warnings - why ?

2008-12-15 Thread Oliver Brinzing
Hi Juergen,

 see the idlc options:
 -w  = display warning messages.
 -we = treat warnings as errors.

aah - someway missed the new idlc options for oo 2.x/3.x ...

added -w -cid to the idlc command :-)

thanks a lot

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] Options dialog in the extension

2008-12-24 Thread Oliver Brinzing
Hi,

   Can someone please help me with this? I don't know what exactly I'm
 doing wrong here.

are you sure that your com.example.EventHandler class is an uno service ?

from the dialog demo:

public static class _DialogEventHandler extends WeakBase
   implements XServiceInfo, XContainerWindowEventHandler

BTW: i cannot find any namespace declarations in your *.xdl and *.xcu files

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] Toolbar naming - Previously - Re: [dev] Error log and debugging an extension

2009-01-05 Thread Oliver Brinzing
Hi Karthik,

i simply added your files to a zip archive (test.oxt) and it works.
Test Name is shown as title if i open a *writer* document ...

test.oxt zip-archive:

+ META-INF
   manifest.xml
Addons.xcu
WriterWindowState.xcu

of course, the Command0 is disabled, cause i don't have the 
protocolhandler.xcu and *.jar file.
(i also removed the two entries form the manifest.xml ...)

to check, if deployment worked look at:

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

oo will merge the *.xcu files from all extensions to the specfic files you will 
find there.
for example all Addons.xcu are merged into the Addons.xcu at this place.

i will send you the test.oxt via email ...

regards

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] Toolbar naming - Previously - Re: [dev] Error log and debugging an extension

2009-01-05 Thread Oliver Brinzing
Hi,

if you sure, your *.xcu files are correct you can try to close oo,
delete all files in .\user\registry\cache and reinstall all extensions

example Addons.xcu:

oor:component-data oor:name=Addons oor:package=org.openoffice.Office
xmlns:install=http://openoffice.org/2004/installation;
xmlns:oor=http://openoffice.org/2001/registry;
xmlns:xs=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
node oor:name=AddonUI
node oor:name=OfficeToolBar
node oor:name=my.toolbar oor:op=replace

example CalcWindowState.xcu:

oor:component-data xmlns:oor=http://openoffice.org/2001/registry;
xmlns:xs=http://www.w3.org/2001/XMLSchema;
oor:name=CalcWindowState
oor:package=org.openoffice.Office.UI

node oor:name=UIElements
node oor:name=States
node 
oor:name=private:resource/toolbar/addon_my.toolbar oor:op=replace
prop oor:name=ContextSensitive 
oor:type=xs:boolean
valuefalse/value
/prop
prop oor:name=UIName oor:type=xs:string
valueMy Addon/value
/prop

look at node oor:name=my.toolbar oor:op=replace and
node oor:name=private:resource/toolbar/addon_my.toolbar oor:op=replace

see: http://www.mail-archive.com/d...@api.openoffice.org/msg02760.html

IMHO you have to create an *WindowState.xcu file for every module

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] non code extensions

2009-01-15 Thread Oliver Brinzing
Hi,

you have to add the node oor:name=Paths emelent inside the Paths.xcu:

?xml version='1.0' encoding='UTF-8'?
oor:component-data oor:package=org.openoffice.Office oor:name=Paths
xmlns:install=http://openoffice.org/2004/installation;
xmlns:oor=http://openoffice.org/2001/registry; 
xmlns:xs=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
node oor:name=Paths
node oor:name=UserConfig oor:op=fuse oor:mandatory=true
prop oor:name=IsSinglePath oor:finalized=true
valuetrue/value
/prop
node oor:name=InternalPaths oor:finalized=true/
prop oor:name=UserPaths oor:finalized=true/
prop oor:name=WritePath
value%origin%/../config/value
/prop
/node
/node
/oor:component-data

manifest.xml: manifest:full-path=/registry/Common.xcu

my manifest:full-path attributes do not start with a slash
(but don't know if this has any effect)

manifest:file-entry manifest:full-path=registry/Common.xcu
manifest:media-type=application/vnd.sun.star.configuration-data /
manifest:file-entry manifest:full-path=registry/Paths.xcu
manifest:media-type=application/vnd.sun.star.configuration-data /


Oliver

-- 


GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


[dev] win7-beta and oo 3.0.1 rc2 - firewall problems with uno.exe/unopkg.bin

2009-01-18 Thread Oliver Brinzing
last weekend i had some time to install win7-beta inside a vm
i used my vista 32bit host and vmware server 2.0 and installed:

- jre 1.6_0_11
- oo 3.0.1 rc 2

what i noticed: installing my shared java extensions via unopkg
command line tool makes some trouble.

during install process windows firewall shows me a dialog asking
to allow access for uno.exe/unopkg.bin. clicking the checkbox to
allow connection will freeze windows. i have to reset the vm
using vmware remote console - troubleshot - reset

i noticed, this is caused due to my vm paramters for remote connection:
-agentlib:jdwp=transport=dt_socket,server=y,address=localhost:8000,suspend=n

so as a workaround, i renamed javasettings_Windows_x86.xml before installing 
extensions

strange: allowing access for soffice.bin and java.exe works without any 
problems
if the dialog comes up. but even if i open windows firewall (wf.msc) and try to 
create
a rule for uno.exe/unopkg.bin, windows will freeze if i choose the UDP or 
TCP
protocoll type... if i do not change the protocol type (this means, all 
protocolls
are allowed), it will work ...

Oliver
-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


[dev] missing regmerge in OOo-SDK_3.1.0_Win32Intel_install_en-US.exe

2009-05-10 Thread Oliver Brinzing
is there any reason why regmerge.exe has been removed from .\sdk\bin ?

OO 3.1 will contain now regmerge in .\OpenOffice.org 3\URE\bin

Oliver

-- 


GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


[dev] NullpointerException: XPathFactory.newInstance() with OODEV 300 m49

2009-06-03 Thread Oliver Brinzing
Hi,

can someone give me a hint why this fails in DEV300m49:

this.xFactory = javax.xml.xpath.XPathFactory.newInstance();

i get a NullpointerException at javax.xml.xpath.XPathFactoryFinder._newFactory()
uri is http://java.sun.com/jaxp/xpath/dom;

same extension runs without any problems with oo 3.1

JRE is 1.6_14 in both cases (vista 32)

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] NullpointerException: XPathFactory.newInstance() with OODEV 300 m49

2009-06-03 Thread Oliver Brinzing
Hi Marcin,

 Thread.currentThread().setContextClassLoader(getClass().getClassLoader());

yes this seems to help, classloader was indeed null ...

may i add your solution to issue 
http://www.openoffice.org/issues/show_bug.cgi?id=102164 ?

thanks a lot :-)

Oliver
-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


[dev] how to close the quickstarter ?

2009-07-07 Thread Oliver Brinzing
Hi,

i remember oo 2.x has had a command line option to close
the quickstart service on windows: 

.\program\quickstart -killtray

oo 3.x will start the quickstart service with soffice -quickstart
but how to close the quickstarter ?

Oliver
-- 
Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Add-On Menu with ShortCuts

2009-07-29 Thread Oliver Brinzing
Hi Vil,

have you seen 
http://blogs.sun.com/GullFOSS/entry/the_framework_project_and_community ?

Oliver

Am 28.07.2009 17:33 schrieb Vil:
 Hi!
 
 Building an Add-On Extension is pretty straight forward, but now I ran into
 the problem of adding ShortCut Labels like Strg + F3  next to my new Menu
 - Items.
 
 MyMenu
 ---
 Item 1   Strg + F1
 Item 2   Strg + F2
 Item 3   Strg + F3
 
 Is there a way of providing the ShortCut-String information to the Menu in
 order to force it to display e.g. Strg + F1 on the right edge of the
 Dropdown menu? (like it is possible with icons, which are displayed on the
 left edge)
 
 I am well aware that the organization of shortcuts is seperated from the
 extension.
 There is no need for a dynamic solution which finds the right short cut for
 the command.
 A hard coded solution would be sufficient for my purpose.
 
 I would be grateful for any ideas.
 thx in advance.
 
 cu 
 Phil
 


-- 
Oliver Brinzing fon   +49 7181 481401   fax +49 7181 475635
Ludwigstrasse 14mobil +49 174 3015743
73614 Schorndorfmailto:oliver.brinz...@gmx.de

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] Save Button

2009-09-25 Thread Oliver Brinzing
Hi Albert,

 When I open an OpenOffice document with the API the save button is disabled
 until the document is changed.
 Is there any way to put the save button enabled always?

try:

Sub Main
ThisComponent.setModified(True)
End Sub

Oliver

--
GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


[dev] How to create a uno singleton component ?

2009-10-11 Thread Oliver Brinzing
Hi,

can one give me some hints how to create a real java singleton component like

final XLoggerPool xLoggerPool = LoggerPool.get(xComponentContext); ?

till now i found only
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Singleton

is there a code templete available  ?

Oliver
-- 


GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] How to create a uno singleton component ?

2009-10-12 Thread Oliver Brinzing
Hi Giuseppe,

 in this project:

 https://forge.osor.eu/projects/ooo-xadessig-it/

thanks a lot, i will have a look next weekend ;-)

Oliver
-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] How to create a uno singleton component ?

2009-10-17 Thread Oliver Brinzing
Hi,

today i started to create my first uno singleton ;-)

idlc, regmerge  javamaker seem to work, regview shows me for example:

 / LogService
  Value: Type = RG_VALUETYPE_BINARY
 Size = 110
 Data = version: 1
documentation: 
file name: 
type class: singleton
type name: logging/LogService
super type count: 1
super type name 0: logging/XLogAccess
field count: 0
method count: 0
reference count: 0

the extension is deployable an i can get an instance, for example:

oContext = 
createUnoService(com.sun.star.configuration.bootstrap.BootstrapContext)
oA = oContext.getValueByName(/singletons/logging.LogService)
oB = oContext.getValueByName(/singletons/logging.LogService)

msgbox EqualUnoObjects(oA, oB)
   - return's TRUE

Now i see two problems:

1. oA = CreateUnoService(logging.LogService)
oB = CreateUnoService(logging.LogService)
msgbox EqualUnoObjects(oA, oB)
- return's FALSE - do i have 2 instances here ???

 2.   How can i use the static get(xComponentContext) to obtain the instance, 
described here:

http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/C%2B%2B/Mapping_of_Singletons

   changing LogServiceImpl.java to a java singleton

private static LogServiceImpl instance = null;
private LogServiceImpl(final XComponentContext xComponentContext) {
}
public static XLogAccess get(final XComponentContext xComponentContext) 
{
if (LogServiceImpl.instance == null)
LogServiceImpl.instance = new 
LogServiceImpl(xComponentContext);
return LogServiceImpl.instance;
}

   will cause an error message: Can not activate the factory for 
logging.LogServiceImpl beacause
   FactoryHelper can not find a useable constructor 

any hints ?

Oliver

code snippet's:

LogService.idl
[...]   module logging {
interface XLogAccess;
singleton LogService : XLogAccess;
};

XLogAccess.idl
   [...]  module logging {
interface XLogAccess : com::sun::star::uno:: XInterface 
{
string getLoggerName();
long getLevel();
   [...]
  };
   };

LogServiceImpl.java

public class LogServiceImpl extends ComponentBase implements XServiceInfo, 
XLogAccess {

static final String _serviceName = logging.LogService;

public LogServiceImpl(final XComponentContext xComponentContext) {
}

public String getImplementationName() {
return getClass().getName();
}

public boolean supportsService(final String name) {
if (name.equals(LogServiceImpl._serviceName))
return true;
return false;
}

public String[] getSupportedServiceNames() {
return new String[] { LogServiceImpl._serviceName };
}

// XLogAccess
public String getLoggerName() {
return Log.getName();
}

public int getLevel() {
return Log.getLevel();
}
}

ServiceProvider.java

public class ServiceProvider {

public static XSingleServiceFactory __getServiceFactory(
final String sImplName, final XMultiServiceFactory 
xMultiFactory,
final XRegistryKey xRegistryKey) {

XSingleServiceFactory xSingleServiceFactory = null;

if (sImplName.equals(LogServiceImpl.class.getName()))
xSingleServiceFactory = FactoryHelper.getServiceFactory(
LogServiceImpl.class, 
LogServiceImpl._serviceName,
xMultiFactory, xRegistryKey);
return xSingleServiceFactory;
}

public static boolean __writeRegistryServiceInfo(
final XRegistryKey xRegistryKey) {

try {
XRegistryKey newKey = 
xRegistryKey.createKey(LogServiceImpl.class
.getName()
+ /UNO/SINGLETONS/ + 
LogServiceImpl._serviceName);
newKey.setStringValue(LogServiceImpl._serviceName);
} catch (InvalidRegistryException e) {
return false;
}

return 

Re: [dev] How to create a uno singleton component ?

2009-10-18 Thread Oliver Brinzing
Hi,

i think i finally did it :-)
the trick is to implement your own SingletonFactory ...

public class SingletonFactory implements XSingleComponentFactory {

private transient LogServiceImpl instance = null;

public Object createInstanceWithArgumentsAndContext(final Object[] args,
final XComponentContext xComponentContext) throws 
Exception {
return createInstanceWithContext(xComponentContext);
}

public Object createInstanceWithContext(
final XComponentContext xComponentContext) throws 
Exception {
if (this.instance == null)
this.instance = new LogServiceImpl(xComponentContext);
return this.instance;
}

and changing ServiceProvider class:

public class ServiceProvider {

public static XSingleComponentFactory __getComponentFactory(final 
String sImplName) {
XSingleComponentFactory xSingleComponentFactory = null;
if (sImplName.equals(LogServiceImpl.class.getName()))
xSingleComponentFactory = new SingletonFactory();
return xSingleComponentFactory;
}

public static boolean __writeRegistryServiceInfo(final XRegistryKey 
xRegistryKey) {
try {
final XRegistryKey newKey = xRegistryKey

.createKey(LogServiceImpl.class.getName()
+ /UNO/SINGLETONS/ + 
LogServiceImpl._serviceName);
newKey.setStringValue(LogServiceImpl._serviceName);
} catch (final InvalidRegistryException e) {
return false;
}
return 
Factory.writeRegistryServiceInfo(LogServiceImpl.class.getName(),
new String[] { LogServiceImpl._serviceName }, 
xRegistryKey);
}
}

now  EqualUnoObjects(oA,oB) returns true ...

oA = CreateUnoService(logging.LogService)
oB = CreateUnoService(logging.LogService)

and generated LogService.class has a static method get(xComponentContext)

Oliver

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


[dev] OO Dialog sizes - MapAppFont

2009-11-18 Thread Oliver Brinzing
Hi,

can one give me a hint how to solve this problem ?

OO uses MapAppFont metric for dialogs created with the basic ide editor.

We are using different window styles for screen resolutions 1024x768
and 1280x1024. The styles use different font sizes too - this seems to be 
the, problems cause MapAppFont calculates with the font sizes ... Due to 
our ergonomic specifications we cannot adjust the styles to our needs.

So OO will change the size of all dialogs when used with different styles.
In out case a dialog created with the style for 1024x768 resolution appears 
about 25% to 28% bigger when displayed with the 1280x1024 style.

On the other side resetting the style to windows default will make the dialog 
to small, using other screen resolutions (e.g. for wide screen 16:10 or 16:9) 
will cause problems too.

So is there a way to adjust the dialog size ?
And how does oo convert from MapAppFonts to pixels ?


Oliver





-- 
DSL-Preisknaller: DSL Komplettpakete von GMX schon für 
16,99 Euro mtl.!* Hier klicken: http://portal.gmx.net/de/go/dsl02

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] OO Dialog sizes - MapAppFont

2009-11-19 Thread Oliver Brinzing
Hi Frank,

 http://api.openoffice.org/docs/common/ref/com/sun/star/awt/XUnitConversion.html

just found http://www.openoffice.org/issues/show_bug.cgi?id=94067 with an 
example :-)

thanks

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] Problems creating a Clipart Gallery extension

2010-01-23 Thread Oliver Brinzing
Hi Fabio,

 I am creating a Clipart extension for OO. I know how to create en

haveyou seen 
http://wiki.services.openoffice.org/wiki/Non-code_extensions#Gallery_Extensions 
?

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


[dev] configure org.openoffice.Office.OptionsDialog ...

2010-02-03 Thread Oliver Brinzing
Hi,

i want to hide some checkboxes in tools - options dialog like:

node oor:name=LoadSave oor:op=replace
node oor:name=Pages oor:node-type=OptionsPage
node oor:name=General oor:op=replace oor:finalized=true
node oor:name=Options
node oor:name=AutoSave oor:op=replace 
oor:finalized=true
prop oor:name=Hide
valuetrue/value
/prop
/node
node oor:name=Backup oor:op=replace 
oor:finalized=true
prop oor:name=Hide
valuetrue/value
/prop
/node
/node
/node
/node
/node

but where can i find all the checkbox/listbox/optionsbuttons names, e.g. for

Load/Save - General - Load user -specific settings with the document
Load/Save - General - Load prprinter settings with the document
...

Is there a list avaiable ?

Oliver


-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] Writer XSLT import does not work as expected.

2010-02-13 Thread Oliver Brinzing
Hi Werner,

 is not happy with my filter. Is there any logfile / debug possibility
 where I can find more information ?

The logfile is being activated by setting a Java System Property in the office 
(Tools-Option-Java),

for example: -DXSLTransformer.statsfile=E:\Temp\xslt_debug.txt

btw: have you seen: http://blogs.sun.com/GullFOSS/entry/new_in_3_0_xslt

regards

Oliver

--

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] Writer XSLT import does not work as expected.

2010-02-13 Thread Oliver Brinzing
Hi Werner,

 Thanks for the quick answer. I tried it, but don't get a logfile.

just tried it - testing with the docbook filter - i get a log file:

The transformation's parameters as 'name = value' pairs:
StylesheetURL =
file:///C:/Program%20Files/OpenOffice.org/Basis/share/xslt/docbook/sofftodocbookheadings.xsl
TargetURL =
DoctypeSystem =
TargetBaseURL =
Starting transformation...
TransformerFactory is 'net.sf.saxon.TransformerFactoryImpl'
Warning: at xsl:stylesheet on line 32 of
file:///C:/Program%20Files/OpenOffice.org/Basis/share/xslt/docbook/sofftodocbookheadings.xsl:
  Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
finished transformation in 147ms

are you sure, your \user\config\javasettings_Windows_x86.xml looks like:
param-DXSLTransformer.statsfile=E:\Temp\xslt_debug.txt/param

see the leading hyphen -DXSL...

Is there a chance to hook a piece of java code into the XML Filter
process, which would be able to patch the transformed files to the users needs

have you seen http://wiki.services.openoffice.org/wiki/Xml ?

regards

Oliver


-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


[dev] question about oDatabaseContext.getElementNames()

2010-02-23 Thread Oliver Brinzing
Is it correct, that oDatabaseContext.getElementNames() will return the 
displayed name
(shown in database brwoser)  and not the registered Name shown in Tools - 
Options ?

for example the macro below will return My Database, not mydatabase

node oor:name=RegisteredNames
node oor:name=My Database oor:op=replace
prop oor:name=Location oor:type=xs:string
valuefile:///X:/MyDatabase.odb/value
/prop
prop oor:name=Name oor:type=xs:string
valuemydatabase/value
/prop
/node
/node


OPTION EXPLICIT
Sub Test()

Dim oDatabaseContext as Object
Dim oNames()
Dim s as String
Dim i as Integer

oDatabaseContext = createUnoService(com.sun.star.sdb.DatabaseContext)

oNames = oDatabaseContext.getElementNames()

For i = 0 To UBound(oNames())
s = s  Chr(13)  oNames(i)
Next i

MsgBox s
End Sub

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] question about oDatabaseContext.getElementNames()

2010-02-24 Thread Oliver Brinzing
Hi Frank,

 When the config data is created by OOo itself, then the node name and the
 property value are identical.

yes, you are right, i tried to insert a more readable (localized) display name,
but wasn't aware that oo 3.2  will use the node name for database access.

so for upward compatibility i will change it back to the registration name ...
otherwise our users's will have to use Edit - Echange Database... or
even change macro code in oo 3.x ...

thanks :-)

Oliver


Am 24.02.2010 09:56 schrieb Frank Schoenheit, Sun Microsystems Germany:
 Hi Oliver,
 
 Is it correct, that oDatabaseContext.getElementNames() will return the 
 displayed name
 (shown in database brwoser)  and not the registered Name shown in Tools - 
 Options ?

 for example the macro below will return My Database, not mydatabase

 node oor:name=RegisteredNames
  node oor:name=My Database oor:op=replace
  prop oor:name=Location oor:type=xs:string
  valuefile:///X:/MyDatabase.odb/value
  /prop
  prop oor:name=Name oor:type=xs:string
  valuemydatabase/value
  /prop
  /node
 /node
 
 The code for this happen[s/ed] to be a little ... inconsistent. When the
 config data is created by OOo itself, then the node name and the
 property value are identical. When reading the data, the node name is
 taken as registration name. Strictly, this is wrong, of course, but it's
 noticed only when the node name and the prop value are not identical.
 
 On the DEV300 code line, this has been fixed - now the property value is
 taken as registration name, the node name can be an arbitrary logical
 name (preferably something like org.something to ensure uniqueness).
 
 In addition, an interface css.sdb.XDatabaseRegistrations [1] has been
 introduced, which hides the configuration data from you, so there is no
 need to tamper with it directly (The exception would be an extension
 bringing its own configuration data with it, but even here, an on-demand
 registration using XDatabaseRegistrations and the new XDeploymentHook
 would be possible).
 
 Ciao
 Frank
 
 [1]http://hg.services.openoffice.org/DEV300/file/1467f46f8817/offapi/com/sun/star/sdb/XDatabaseRegistrations.idl
 


-- 
Oliver Brinzing fon   +49 7181 481401   fax +49 7181 475635
Ludwigstrasse 14mobil +49 174 3015743
73614 Schorndorfmailto:oliver.brinz...@gmx.de

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


[dev] oo320 simple spreadsheet with control element fails odfvalidator test

2010-02-24 Thread Oliver Brinzing
Hi,

yesterday evening i had some time to create the odfvalidator.jar
from http://odftoolkit.org/ODFValidator ...

i used schemas from:

http://docs.oasis-open.org/office/v1.2/part3/cd01/OpenDocument-manifest-schema-v1.2-cd1.rng
http://docs.oasis-open.org/office/v1.2/part3/cd01/OpenDocument-dsig-schema-v1.2-cd1.rng
http://docs.oasis-open.org/office/v1.2/part1/cd04/OpenDocument-schema-v1.2-cd04.rng
 *)

*) renamed to OpenDocument-schema-v1.2-cd1.rng, see output below

i checked 2 to simple documents (spreadsheet with 1 push button) and here is 
the result:

- oo115_converted_oo32.ods - created with oo115 and converted with oo32
- oo320_native.ods - a native oo 320 document

oo115_converted_oo32.ods:Info:ODF Version: 1.2
internal:schema/odf12/OpenDocument-schema-v1.2-cd1.rng:Info:parsed.
oo115_converted_oo32.ods/meta.xml:Info:attribute 'grddl:transformation' of 
element office:document-meta ignored.
oo115_converted_oo32.ods/meta.xml:Info:Generator: OpenOffice.org/3.2$Win32 
OpenOffice.org_project/320m12$Build-9483
oo115_converted_oo32.ods/meta.xml:Info:no errors
internal:schema/odf12/OpenDocument-manifest-schema-v1.2-cd1.rng:Info:parsed.
oo115_converted_oo32.ods/META-INF/manifest.xml:Info:no errors
oo115_converted_oo32.ods:Info:Media Type: 
application/vnd.oasis.opendocument.spreadsheet
oo115_converted_oo32.ods/settings.xml:Info:no errors
oo115_converted_oo32.ods/styles.xml:Info:attribute 'grddl:transformation' of 
element office:document-styles ignored.
oo115_converted_oo32.ods/styles.xml:Info:no errors
oo115_converted_oo32.ods/content.xml:Info:attribute 'grddl:transformation' of 
element office:document-content ignored.
oo115_converted_oo32.ods/content.xml[2,3614]:Error:element form:form is 
missing type attribute
oo115_converted_oo32.ods/content.xml[2,5428]:Error:control1 is referenced by 
an IDREF, but not defined.
oo115_converted_oo32.ods/content.xml:Info:validation errors found
internal:schema/odf12/OpenDocument-dsig-schema-v1.2-cd1.rng:Info:parsed.
oo115_converted_oo32.ods:Info:validation errors found

oo320_native.ods:Info:ODF Version: 1.2
oo320_native.ods/meta.xml:Info:attribute 'grddl:transformation' of element 
office:document-meta ignored.
oo320_native.ods/meta.xml:Info:Generator: OpenOffice.org/3.2$Win32 
OpenOffice.org_project/320m12$Build-9483
oo320_native.ods/meta.xml:Info:no errors
oo320_native.ods/META-INF/manifest.xml:Info:no errors
oo320_native.ods:Info:Media Type: application/vnd.oasis.opendocument.spreadsheet
oo320_native.ods/settings.xml:Info:no errors
oo320_native.ods/styles.xml:Info:attribute 'grddl:transformation' of element 
office:document-styles ignored.
oo320_native.ods/styles.xml:Info:no errors
oo320_native.ods/content.xml:Info:attribute 'grddl:transformation' of element 
office:document-content ignored.
oo320_native.ods/content.xml[2,3529]:Error:element form:form is missing 
type attribute
oo320_native.ods/content.xml[2,4216]:Error:element script:event-listener is 
missing type attribute
oo320_native.ods/content.xml[2,5385]:Error:control1 is referenced by an 
IDREF, but not defined.
oo320_native.ods/content.xml:Info:validation errors found
oo320_native.ods:Info:validation errors found

is there anything to worry about ?

Oliver
-- 
GMX DSL: Internet, Telefon und Entertainment für nur 19,99 EUR/mtl.!
http://portal.gmx.net/de/go/dsl02

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Windows' unopkg.exe does not differentiate between stderr and stdout, where does stdout go to when piping ?

2010-03-20 Thread Oliver Brinzing
Hi Rony,

you can use: unopkg add myExtension.oxt--shared  --verbose --log-file 
c:\mylog.txt

but this won't log error's 
(http://qa.openoffice.org/issues/show_bug.cgi?id=79831),
output is:

## Progress log entry 2010-03-20 16:54:33 ##
Copying: myExtension.oxt
Enabling:myExtension
 Enabling: Addons.xcu
...

Oliver


-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] change Xcu with extension

2010-04-01 Thread Oliver Brinzing
Hi,

have you tried, for example:

Path.xcu:

node oor:name=AutoText
prop oor:name=UserPaths
valuefile:///D:/Data/Global_Autotext_1 
file:///D:/Data/Global_Autotext_2/value
/prop
prop oor:name=WritePath
valuefile:///X:/User/Autotext/value
/prop
/node

Common.xcu:

node oor:name=Path
node oor:name=Current
prop oor:name=AutoText oor:type=oor:string-list
value xsi:nil=true /
/prop
/node
/node

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


[dev] cannot install java extension on ubuntu 10.04 (oo 3.2)

2010-05-23 Thread Oliver Brinzing
Hi,

i tried to install some of my java extensions on ubuntu 10.04 (oo 3.2) but 
failed,
it seems all extensions with *.jar files refuse to install ...

any hints ?

Oliver

u...@notebook:/usr/lib/openoffice/program$ sudo unopkg add
./../share/uno_packages/sun-report-builder.oxt --shared --verbose
Copying: sun-report-builder.oxt
Enabling: Sun Report Builder
 Enabling: DbReportWindowState.xcs
 Enabling: ReportCommands.xcs
 Enabling: ReportDesign.xcs
 Enabling: sun-report-builder.jar

ERROR: (com.sun.star.deployment.DeploymentException) { { Message = An error 
occurred while
enabling: sun-report-builder.jar, Context = (com.sun.star.uno.XInterface) 
@9f37998 }, Cause = (any)
{ (com.sun.star.registry.CannotRegisterImplementationException) { { Message = 
, Context =
(com.sun.star.uno.XInterface) @0 } } } }
 rollback...
  Disabling: ReportDesign.xcs
  Disabling: ReportCommands.xcs
  Disabling: DbReportWindowState.xcs
  rollback finished.
An error occurred while enabling: sun-report-builder.jar

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] cannot install java extension on ubuntu 10.04 (oo 3.2)

2010-05-23 Thread Oliver Brinzing
Hi Konstantin,

  Have you installed openoffice.org-java-common package?

no, i tried to install my extensioin with oo 3.2 (which is shipped with ubuntu 
10.04)

should i replace open jdk with sun-java6 ?

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] cannot install java extension on ubuntu 10.04 (oo 3.2)

2010-05-23 Thread Oliver Brinzing
Hi Ariel, Hi Konstantin,

 $ sudo aptitude install openoffice.org-java-common

ok, it seems to work now, but there is another problem with my extensions:

on windows i placed some *.jar files in C:\Program 
Files\OpenOffice.org\share\uno_packages.
my java extensions have a manifest.mf like:

Manifest-Version: 1.0
RegistrationClassName: my.extension.comp.ServiceProvider
UNO-Type-Path:  ./../../../../my-idl-types.jar
Class-Path: ./ ./../../../../my-helper.jar

with ubuntu unopkg add ... fails again - so i replaced the relative paths 
./../../../../
with /home/user/jars/ (for example) - now unopkg add ... installs ...

Regards

Oliver
-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] oo3.2 (vista) freezes after double click on user field

2010-07-07 Thread Oliver Brinzing
Hi,

 Did you mean something else?

no, i did exactly the same, oo 3.2 freezes on vista - oo 3.2.1 is ok ...

Regards
Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] oo3.2 (vista) freezes after double click on user field

2010-07-08 Thread Oliver Brinzing
Hi,

i just noticed:

if the office freezes, pressing (Alt) (F4) will make it usable again.
i think the Fields Dialog is shown hidden and closed via (Alt) (F4)

Regards

Oliver


-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] oo3.2 (vista) freezes after double click on user field

2010-07-08 Thread Oliver Brinzing
Hi,

h, now i know what happend:

last week i was working with an extended desktop (2 monitors).
the File Dialog still opens in an invisible area now, caused by
an entry in user\registry\data\org\openoffice\Office\views.xcu
deleting the views.xcu fixes the problem ...

oo seems not to check if saved dialog positions are in a visible area ..

imho a bug ?

Oliver
-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] Changed an extension from .jar to .oxt, now extension gets installed but cannot be used ?

2010-07-25 Thread Oliver Brinzing
Hi,

 Is there something I must also denote in the description.xml file to

you need a META-INF\manifest.xml where you list all your files, for example:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE manifest:manifest PUBLIC -//OpenOffice.org//DTD Manifest 1.0//EN 
Manifest.dtd
 manifest:manifest xmlns:manifest=http://openoffice.org/2001/manifest;

manifest:file-entry manifest:full-path=my.jar manifest:media-type=
   application/vnd.sun.star.uno-component;type=Java /

manifest:file-entry manifest:full-path=my.rdb manifest:media-type=
  application/vnd.sun.star.uno-typelibrary;type=RDB /

manifest:file-entry manifest:full-path=registry/my.xcu
  manifest:media-type=application/vnd.sun.star.configuration-data /

manifest:file-entry manifest:full-path=registry/my.xcs
  manifest:media-type=application/vnd.sun.star.configuration-schema /

/manifest:manifest

http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Extensions/File_Format

Regards

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] unopkg - question about shared-extension-desc.xml

2010-08-22 Thread Oliver Brinzing
Hi Joachim,

 Registration of shared and bundled extensions occurrs now at startup
 and must be done for every user individually. See
 http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Extensions/The_Active_Extension

ok, i added issue http://www.openoffice.org/issues/show_bug.cgi?id=113899,
cause i don't think a user should be able to uninstall a shared extension via 
unopkg

regards

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] Debug output

2010-10-26 Thread Oliver Brinzing
Hi,

 Windows suppresses stdio in GUI programs. As a workaround you may copy
 solver/wntmsci*/bin/guistdio.com to your OOo installation's program
 directory, name it soffice.com and start soffice.com instead of
 soffice.exe

why not adding the guistdio.com to oo dev builds ?

Regards

Oliver
-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


[dev] cannot open old binary autocorr.dat

2010-11-04 Thread Oliver Brinzing
Hi,

sorry for asking such old stuff, but we have several users with autocorr.dat's
(originally created with SO 5.2/4.0). These files worked in SO 7.0 without 
problems.

But in OO 3.2 these files will not open anymore :-(

I noticed, in that case the file format is not zip (as newly created
acor.dat's in SO 7.0 are).
so i guess, SO 7.0 was able to read and write this old binary *.dat's.

Any hints how we can convert these files or extract the data ?

Regards

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45





signature.asc
Description: OpenPGP digital signature


Re: [dev] Which master document holds a subdocument?

2010-11-08 Thread Oliver Brinzing
Hi,

 or: I open slave_1.odt; can I tell this document is part of master.odm?

AFAIK a slave document doesn't know his master.

i would call it a bug, if a slave document would know,
cause a slave can have more masters ...

Regards

Oliver

-- 


GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


  1   2   >