[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]

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

[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

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 a

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 0xCF

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, a last question: Is it also possible to create submenu's, if i use the new "OfficeMenuBarMerging" ? it seems, submenu entries are ignored below "". Only the first "" is evaluted ... Oliver - -- GnuPG key 0xCFD04A45: 8822 057F 4956 4

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 :-) http://openoffice.org/2004/installation"; xmlns:oor="http://openoffice.org/2001/registry"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns

[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 hel

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":

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 >

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 SIGNA

[dev] com.sun.star.awt.XKeyHandler disposes - how to reconnect ?

2007-11-18 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, i added a com.sun.star.awt.XKeyHandler to a spreadsheet ... but if one activates the printPreview, the KeyHandler disposes. any hints how to reconnect the KeyHandler again, after the printPreview is closed ? should i add an XEventListener to th

Re: [dev] com.sun.star.awt.XKeyHandler disposes - how to reconnect ?

2007-11-18 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, > i added a com.sun.star.awt.XKeyHandler to a spreadsheet ... > but if one activates the printPreview, the KeyHandler disposes. thanks to Ariel (posted 10.11.2007: Re: [dev] Context menu interception) i found the solution ... >If the frame actio

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

2007-11-23 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, just installed oo 2.3 m235 - now i am not able to set a java jre ... the options dialog is empty - oo seems not to search for a jre not problems with m231 ... any hints ? Oliver - -- GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB

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

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 no

[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 Obje

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 ke

[dev] OfficeToolbarMerging - problems with icons ...

2007-12-12 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, i used the "OfficeToolbarMerging" to change the "standard" toolbar. i am not able to set icons for my new entries - for example for ".uno:PagebreakMode" the following icon will be set for the menubar entry, but the toolbar displays only the text

[dev] oo 2.4 m239 - performance problem ...

2007-12-12 Thread Oliver Brinzing
Hi, just installed oo 2.4 m239 ... is it Possible that m239 is pretty slow ? i installed some extensions (OfficeToolBarMerging/OfficeMenuBarMerging) and compared to oo 2.3.1 opening menues takes ages ... for example: selecting "File" - first menu entry gets blue, after about 0.5 sec's one will

Re: [dev] oo 2.4 m239 - performance problem ...

2007-12-13 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Utomo, > Can you please create an issue > http://qa.openoffice.org/issue_handling/pre_submission.html please have a look: http://qa.openoffice.org/issues/show_bug.cgi?id=84550 Oliver - -- GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C

[dev] Re: How to copy a PageStyle?

2007-12-13 Thread Oliver Brinzing
Hi Matthias, this works for me (calc): Oliver -- REM * BASIC * OPTION EXPLICIT Sub Main On Local Error Goto ErrorHandler Dim oDocument as Object Dim oSheet as Object Dim oPStyle as Object Dim oCpyStyle as Object Dim aPropert

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:

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

2007-12-20 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Matthias, > copy the contents of header and footer manually which is basically > impossible to do 100% with a reasonable effort since there's no way to > simply copy text portions. You need to analyse their type (e.g. they > could be any kind of sp

[dev] path.xcu - needs entry in common.xcu ?

2008-01-02 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, i had a look at: http://wiki.services.openoffice.org/wiki/Configuration_schema_path_settings this should change the "temp" path to "d:\temp" true file:///D:/TEMP But I have to ad

Re: [dev] path.xcu - needs entry in common.xcu ?

2008-01-07 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Andreas, thanks again for detailed information :-) I was a little bit confused about the current behaviour, but it's not a real problem now Oliver - -- GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45 -BEGIN PGP SIGNA

[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

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 uns

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

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.op

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

[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

[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.ConsoleLog

Re: [dev] how to log a java extensions ?

2008-02-01 Thread Oliver Brinzing
Hi Eike, > I suggest you configure Enigmail to sign using PGP/MIME instead of the > old-fashioned inline-PGP, in Thunderbird's Account Settings go to > OpenPGP Security and enable "Always use PGP/MIME". > Help: https://enigmail.mozdev.org/documentation/per-account.php thanks for the hint :-) O

[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, t

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

2008-03-06 Thread Oliver Brinzing
Hi Robert, .xsd is in the same .jar file as your extension? If yes, yes it's inside the extension ... getClass().getResource( "/path/in/my/jar/something.xsd" ) should work. i just found: InputStream is = this.getClass().getClassLoader().getResourceAsStream(file); anyway, i still do not un

[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...

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 Gn

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 ... Ol

[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 .

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 ... -

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: 3.0 don't forget to delete the "extensions.cache" before you start again ... Oliver -- GnuPG key 0xCFD04A45: 8822

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: http://openoffice.org

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 "

[dev] looking for source code: program/classes/report.jar (so 7.0 pu 13)

2008-11-20 Thread Oliver Brinzing
Hi, can one give me a hint where to find the source code for "program/classes/report.jar" for the latest SO 7.0 build (patch 13) ? I found: http://installation.openoffice.org/source/browse/installation/wizards/com/sun/star/wizards/report/?only_with_tag=StarOffice7_PP6 is this correct ? i want

[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 fi

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

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

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, XContainerWindow

Re: [dev] Options dialog in the extension

2008-12-24 Thread Oliver Brinzing
Hi, > I didn't get you when you said namespaces in *.xdl and *.xcu files. The > xmlns is defined in the beginning of the files. Am I supposed to add from the example: *.xdl: http://openoffice.org/2000/dialog"; xmlns:script="http://openoffice.org/2000/script"; dlg:id="FooOptio

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 protoc

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": http://openoffice.org/2004/installation"; xmlns:oor="http://openoffice.org/2001/registry";

Re: [dev] non code extensions

2009-01-14 Thread Oliver Brinzing
2001/registry"; xmlns:xs=" > http://www.w3.org/2001/XMLSchema"; xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance";> > > > > > > > > > > > > > > Thanks > -- Oliver Brinzing fon +49 7181 481401 fax +49 7181 475635 Ludwigstrass

Re: [dev] non code extensions

2009-01-15 Thread Oliver Brinzing
Hi, you have to add the "" emelent inside the Paths.xcu: 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";>

[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 firewa

[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

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

2009-06-03 Thread Oliver Brinzing
forgot to mention that there are other problems with java extension, as described in http://www.openoffice.org/issues/show_bug.cgi?id=102164 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 05

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

2009-06-03 Thread Oliver Brinzing
type, loader); > getKitRegisty().remove(type); > } argument classloader is null too ... so i am pretty sure this is a bug, and it will break a lot of existing java extensions ... btw: i will add your comments to the issue. Oliver Am 03.06.2009 19:58 schrieb Marcin Miłkowski: > Oliver

[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

Re: [dev] Add-On Menu with ShortCuts

2009-07-29 Thread Oliver Brinzing
> 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 Schorndorf

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

[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 ?

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

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,

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

2009-10-19 Thread Oliver Brinzing
Hi Juergen, > i think you don't necessarily need your own factory. Or better it > depends on what exactly do you want to achieve. IMHO a singleton should be a singleton. I am not sure about, if all developers will realize that one can create a second instance from a singleton using CreateUnoServi

[dev] unopkg: removing extensions will fail sometimes: file or directory could not be deleted - ACCESS_DENIED

2009-10-24 Thread Oliver Brinzing
Hi, today i noticed a strange problem with some of my extensions containing *.xcu files i can deploy the extensions wihout any problems, for example: C:\Program Files\OpenOffice.org\program>unopkg add .\..\share\uno_packages\user-config.oxt --verbose --shared Kopiere: user-config.oxt Aktiviere

[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 MapA

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 Descrip

Re: [dev] FW: Need to hide button in custom toolbar

2009-11-20 Thread Oliver Brinzing
Hi, > I have created ‘FeatureSTateEvent’ object and now need to set it to the > dispatcher provider.. but I didn’t get dispatch provider. Can you tell me how > to get that? C++ code is also ok.. I will convert it in C#. have you seen ? http://wiki.services.openoffice.org/wiki/Documentation/De

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: OpenPG

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

2010-02-03 Thread Oliver Brinzing
Hi, i want to hide some checkboxes in tools - options dialog like: true

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: hav

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/sofftodoc

[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"

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

2010-02-24 Thread Oliver Brinzing
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 >

[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-

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 Enabl

Re: [dev] change Xcu with extension

2010-04-01 Thread Oliver Brinzing
Hi, have you tried, for example: Path.xcu: file:///D:/Data/Global_Autotext_1 file:///D:/Data/Global_Autotext_2 file:///X:/User/Autotext

[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

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 sig

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: Man

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: SH

[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

[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 th

[dev] component debuging with oo 2.0 ?

2005-03-25 Thread Oliver Brinzing
Hi, How can I debug my oo java components with oo 2.0 ? With oo 1.1.4 it was possible to insert -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n to the java.ini file ... In oo 2.0 I found the "javasettings_Windows_x86.xml" file, but don't know which attributes/tags to inse

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" f

[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" But how to find the referenced inside the content.xml ?

Re: [dev] re: my menu item isn't highlighted when I mouse over it

2005-07-02 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi James, cause I see you still have problems with the protocolhandler stuff, I send you another eclipse example (via email) the protocolhandler.zip contains the project, the uno.zip file is the ready to run addon with different menu/tool bars for ca

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.rd

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

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 t

Re: [dev] re: problem creating dialog from within protocol handler

2005-07-25 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi James, you should get the xComponentContext from the protocolHandler class ... public class OOProtocolHandler extends WeakBase implements XDispatchProvider, XInitialization, XServiceInfo { static final String __serviceName = "com.sun.

Re: [dev] re: problem with setProperty in my dialog

2005-07-26 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi James, > xPSetButton.setPropertyValue(" PositionX ", new Integer(50)); > This causes a failure. it's no good idea to use blanks at the start/end of a properties name... :-) the properties are case sensitive too, as far as I know ... I remember th

Re: [dev] createUnoService problem in 1.9.x on windows

2005-08-02 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, just as a hint: have you already tried to "remote debug" your java component ? 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 Gn

[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 ecli

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

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)

  1   2   >