Re: How can I change the path for /user/uno_packages

2015-08-27 Thread Oliver Brinzing
Hi Jörg, How can I change the path for /user/uno_packages? I know how I can change the complete path /user by using a macro, but only /user/uno_packages? i never tried, but i think you have to change several entries inside the "uno.ini". Regards Oliver ---

Re: Changing Screen Cursor to Wait

2015-07-10 Thread Oliver Brinzing
Hi Berkhan, not sure, but maybe this old thread can help: http://osdir.com/ml/openoffice.devel.api/2008-05/msg00165.html Regards Oliver - To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org For additional commands,

Re: Registration of an accelerator at extension installation

2015-06-25 Thread Oliver Brinzing
Hi Amenel, > Your first recommendation, i.e. XJobExecutor + Accelerators.xcu was ineffective for the command > attached to opening that >main dialog window. I don't know why, since the protocol handler was > instantiated! I ended up removing the XJobExecutor > interface, its method, and the Acc

Re: Registration of an accelerator at extension installation

2015-06-24 Thread Oliver Brinzing
Hi Amenel, you can use an Accelerators.xcu file in you extension, for example: [...] service:my.extension.Service?myParam1 and register it during extension installation, for example add to the manifest.xml of your ex

Re: need some help to Accelerators.xcu

2015-06-17 Thread Oliver Brinzing
just found, that there is a service "com.sun.star.ui.GlobalAcceleratorConfiguration" maybe this will work: Sub Main oGlobalAccelCfg = createUnoService("com.sun.star.ui.GlobalAcceleratorConfiguration") Dim aKeyEvent as new com.sun.star.awt.KeyEvent aKeyEvent.KeyCode = com.sun.star

Re: need some help to Accelerators.xcu

2015-06-17 Thread Oliver Brinzing
Hi Jörg, > Is there any way to avoid the need for the restart? i am pretty sure (but maybe i am wrong) it will not work without restarting aoo. you can try creating shortcuts via api, for example see attached document: https://bz.apache.org/ooo/show_bug.cgi?id=71154 before you start, change "s

Re: [EXT] Issue with stylename, doc corrupted but repaired

2015-02-28 Thread Oliver Brinzing
Hi Sébastien, But when I look at the difference between what is considered as a « damaged » document and a « working » one, > and after some digging, the only things that seems damaged are some style names. For example : did you unzip the "damaged" and "repaired" document and compare each *.

Re: copy an existing style

2015-01-08 Thread Oliver Brinzing
Hi Jörg, > True, these questions are quite generally, but does anyone have any advice? you can check whether your copied styles complies with the source on xml level. open *.odt as a *.zip file, extract "styles.xml" and check whether the style properties are same. additionally, this question:

Re: copy an existing style

2015-01-07 Thread Oliver Brinzing
Hi Jörg, > Using the following code will _not_ transfer the setting >"position-at" (in a german AOO "Position-bei") of an numbering style. i think you have to iterate over the "NumberingRules" Objects and Copy it's properties For j = 0 To oPStyle.NumberingRules.getCount()-1

Re: copy an existing style

2015-01-04 Thread Oliver Brinzing
Hi, > res = xModel.getStyleFamilies().loadStylesFromURL(url, (ppp,)) yes, XStyleLoader should work in general but there are some limitations, for example: https://issues.apache.org/ooo/show_bug.cgi?id=75048 XStyleLoader - user defined number formats are not imported Regards Oliver --

Re: copy an existing style

2015-01-03 Thread Oliver Brinzing
Hi Jörg, or try to set the parent style: newStyle.ParentStyle = oldStyle.Name oStyles.insertByName("myNewStyle", newStyle) so newStyle inherits all properties from oldStyle Regards Oliver - To unsubscribe, e-mail: api-unsubsc

Re: copy an existing style

2015-01-03 Thread Oliver Brinzing
Hi Jörg, the_style = ThisComponent.getStyleFamilies.getByName("ParagraphStyles").getByName("jms1") ThisComponent.getStyleFamilies.getByName("ParagraphStyles").insertByName("jms3", the_style)> i think you have to copy all Properties from old to new style. this should work for Pagestyles: RE

Re: [EXT][GUI] Autoclosing of a dialog when exiting the application

2014-12-05 Thread Oliver Brinzing
Hi, Amenel, it seeems "OnCloseApp" is fired as last event if the last frame is closed (if quickstart is not enabled) or if quickstart is closed (if there is no other frame). Do you need a modal dialog? maybe a sidebar integration could be the better solution? or try using a "window" maybe it

Re: PackageInformationProvider::get() and subsequent Reference::getPackageLocation()

2014-02-24 Thread Oliver Brinzing
Hi, I remember i changed my source code last year to catch the exception: try { return PackageInformationProvider.get(xComponentContext) .getPackageLocation(identifier); } catch (final java.lang.Except

Re: Incompatible change for extensions

2013-02-05 Thread Oliver Brinzing
Hi Jürgen, > see for example a toolbar entry for the new scheme: thanks, i will have a look ;-) Regards Oliver -- GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45 signature.asc Description: OpenPGP digital signature

Re: Incompatible change for extensions

2013-02-04 Thread Oliver Brinzing
Hi > What do you think how much effort it would be to create a new scheme > for the new extended toolbars and keep the old one at least for a while? +1 due to api changes (e.g. toolsbars, com.sun.star.awt.XMessageBox, ...) i cannot run my oo32 extension with aoo 3.5 at the moment. so testing is