Re: [dev] Maven dependencies for UNO
Emmanouil Batsis wrote: Does OOo provide a repo for apache maven dependency handling? no, not yet and currently we have no plans to create one. But if their is a real demand, we should align it and should create only one. It would be bad to have several different ones, which maybe run out of sync. The problem is that most often related problems come to us. I would suggest that we create one on openoffice.org if necessary. - Juergen Thanks, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] How to add a button to a newly created toolbar?
Matthias Benkmann wrote: I've managed to create my own toolbar with the following code layout = thisComponent.CurrentController.Frame.LayoutManager layout.createElement( private:resource/toolbar/UITest ) layout.showElement( private:resource/toolbar/UITest ) but I can't seem to find a way to add a button to it. Could someone please give me a pointer in the right direction. Thanks. Hi Matthias, please have a look at the following Basic example. It creates a transient toolbar (non-persistent) and inserts a toolbar button. Sub Main REM *** Initialize strings sToolbar = private:resource/toolbar/mytoolbar sMyToolbarCmdId = vnd.openoffice.org:MyFunction REM *** Retrieve the desktop service oDesktop = createUnoService(com.sun.star.frame.Desktop) REM *** Retrieve the current frame and layout manager oCurrFrame = oDesktop.getCurrentFrame() oLayoutManager = oCurrFrame.LayoutManager REM *** Create a new transient toolbar *** REM *** A transient toolbar will be automatically created whenever REM *** createElement is called and no configuration data can be found REM *** for it. By default a new toolbar is visible. REM *** Attention: REM *** Running this macro more than once on the same frame will REM *** add the same button again and again. oLayoutManager.createElement( sToolbar ) oLayoutManager.hideElement( sToolbar ) oToolbar = oLayoutManager.getElement( sToolbar ) REM *** Retrieve settings from toolbar *** oToolbarSettings = oToolbar.getSettings( true ) REM *** Create a toolbar button *** oToolbarItem = CreateToolbarItem( macro:///Standard.Module1.Test(), Standard.Module1.Test ) REM *** Insert button into our settings oToolbarSettings.insertByIndex( 0, oToolbarItem ) REM *** Set title of our new toolbar oToolbarSettings.setPropertyValue( UIName, My new toolbar ) REM *** Set new settings at our toolbar oToolbar.setSettings( oToolbarSettings ) oLayoutManager.showElement( sToolbar ) End Sub Function CreateToolbarItem( Command as String, Label as String ) as Variant Dim aToolbarItem(3) as new com.sun.star.beans.PropertyValue aToolbarItem(0).Name = CommandURL aToolbarItem(0).Value = Command aToolbarItem(1).Name = Label aToolbarItem(1).Value = Label aToolbarItem(2).Name = Type aToolbarItem(2).Value = 0 aToolbarItem(3).Name = IsVisible aToolbarItem(3).Value = TRUE CreateToolbarItem = aToolbarItem() End Function Sub Test MsgBox Test End Sub Regards, Carsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] End of SISSL
I would like to know if StarOffice 8 (next release) will be in LGPL licensing (If SISSL is down) ? Regards Didier
Re: [dev] menu bar and toolbars listener
Carsten Driesner wrote: A dispatch inceptor is not able to determine which user interface element invoked the command. See chapter 6.1.6 Office Development - OpenOffice.org Application Environment - Using the Dispatch Framework in the Developer's Guide. To make it more clear: this is not a defect, this is by intent! Users expect that a menu command does the same as the corresponding toolbar command. Everything else would be irritating. Consequently the OOo API for suppressing or redirecting functionality abstracts from the concrete GUI source of the command request. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] What is OnCopyTo(Done)
From an API point of view OnCopyTo(Done) is called when storeToURL(...) is called on the model while OnSaveAs(Done) is called for storeAsURL(...). So in my case (I was getting these events without any user interaction) the events were caused by auto-save, right? Matthias
[dev] OOo Impress, exportfilter
Dear developers, I had a poster in the size of 36 x 48 using OOo Impress in the versions 1.1.4, 2.0beta2, german and english edition. The background was a gradient from the left-top-corner to the right-bottom-corner. On the monitor everythng was ok. When I printed it to my postscript-printer (to file as well to paper) there was a frame around every gradient-tile (every tile had only 1 color (monochrome), so all tiles made the gradient over the full page). Exporting the file to pdf is the same matter. Exporting it to tiff or png the gradient was very fine, without frames around the tiles but the resolution was not free to configure. My wishes are: * be free to modify the export-resolution of bitmap-exports (knowing about export in my case may produces lvery large tif/png-files) * discarding the frames around the tiles using a gradient. Thanks a lot Martin Kubiak ftp.rz.tu-bs.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Warning-Free Code
Stephan Bergmann wrote: [...] - Added SAL_INT_CAST (for C) and std::static_int_cast and std::reinterpret_int_cast (for C++) to sal/types.h and brought in sal_IntPtr and sal_uIntPtr to sal/types.h from CWS ooo64bit02. See the documentation in sal/types.h for when this new functionality should be used. Just dropped std::reinterpret_int_cast again (and changed documentation of SAL_INT_CAST to disallow casting between integer and pointer types), as a plain reinterpret_cast is sufficient. The following is a little cookbook of how to cast between pointer and integer types. C++: From pointer-to-(possibly-cv-qualified-)void-or-object type P to unsigned integral type U: P p; U u = sal::static_int_cast U ( reinterpret_cast sal_uIntPtr (p)); From unsigned integral type U to pointer-to-(possibly-cv-qualified-)void-or-object type P: U u; P p = reinterpret_cast P ( sal::static_int_cast sal_uIntPtr (u)); From pointer-to-(possibly-cv-qualified-)void-or-object type P to signed integral type S: P p; S s = sal::static_int_cast S ( reinterpret_cast sal_uIntPtr (p)); From signed integral type S to pointer-to-(possibly-cv-qualified-)void-or-object type P: S s; P p = reinterpret_cast P ( sal::static_int_cast sal_uIntPtr (s)); C: == From pointer-to-(possibly-qualified-)void-or-object type P to unsigned integer type U: P p; U u = SAL_INT_CAST(U, (sal_uIntPtr) p); From unsigned integer type U to pointer-to-(possibly-qualified-)void-or-object type P: U u; P p = (P) SAL_INT_CAST(sal_uIntPtr, u); From pointer-to-(possibly-qualified-)void-or-object type P to signed integer type S: P p; S s = SAL_INT_CAST(S, (sal_uIntPtr) p); From signed integer type S to pointer-to-(possibly-qualified-)void-or-object type P: S s; P p = (P) SAL_INT_CAST(sal_uIntPtr, s); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Maven dependencies for UNO
Juergen wrote: no, not yet and currently we have no plans to create one. But if their is a real demand, we should align it and should create only one. It would be bad to have several different ones, which maybe run out of sync. The problem is that most often related problems come to us. It may happen that maven repositories are silently created by various project according their need. For example the Geotools project already has a subset of OpenOffice jars in a Maven repository there: http://lists.refractions.net/geotools/openoffice/jars/ Having a central place on openoffice.org would be better, of course. Martin. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Maven dependencies for UNO
Jürgen Schmidt wrote: Emmanouil Batsis wrote: Does OOo provide a repo for apache maven dependency handling? no, not yet and currently we have no plans to create one. But if their is a real demand, we should align it and should create only one. It would be bad to have several different ones, which maybe run out of sync. The problem is that most often related problems come to us. I would suggest that we create one on openoffice.org if necessary. It is not. You could submit jars to ibiblio. Most (if not all) java OS projects do it and it saves them from creating and maintaining a maven repo for themselves (and developers from a repo labyrinth). Ibiblio is *the* maven repo. You can easily post a request for this to the codehaus JIRA, see: http://maven.apache.org/reference/repository-upload.html Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Maven dependencies for UNO
Martin Desruisseaux wrote: It may happen that maven repositories are silently created by various project according their need. For example the Geotools project already has a subset of OpenOffice jars in a Maven repository there: http://lists.refractions.net/geotools/openoffice/jars/ Ah, many thanks for that :-) Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Maven dependencies for UNO
Emmanouil Batsis wrote: Jürgen Schmidt wrote: Emmanouil Batsis wrote: Does OOo provide a repo for apache maven dependency handling? no, not yet and currently we have no plans to create one. But if their is a real demand, we should align it and should create only one. It would be bad to have several different ones, which maybe run out of sync. The problem is that most often related problems come to us. I would suggest that we create one on openoffice.org if necessary. It is not. You could submit jars to ibiblio. Most (if not all) java OS projects do it and it saves them from creating and maintaining a maven repo for themselves (and developers from a repo labyrinth). Ibiblio is *the* maven repo. You can easily post a request for this to the codehaus JIRA, see: http://maven.apache.org/reference/repository-upload.html Fine, then we will need an automated mechanism that for each offical release of OO the repository will be updated. Ok somebody who feels responsible for that would be enough ;-) Any volunteers? I will provide the infomration which jars are necessary because we won't need all office jars. Only the jars with ofical public API's. - Juergen Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] Build getting stuck in icu
Hi I'm trying to build on Windows. The build is getting stuck building ICU. It says cannot find windows.h I wonder if this is related to the guw.pl errors about not converting -X switches at the top of the log (below). Unfortunately its a bit difficult to debug as cl.exe is being given its parameters in a temporary file which gets deleted after build fails. So I was wondering if someone has a hint for me. The output is below Regards David Building project icu = /cygdrive/c/ooo-build/vs-scratch/OOo_2.0beta2/icu Error: guw.pl: WinFormat: Not converted -X/... type switch in :-I/cygdrive/c/DevTools/MICROS~2//include:. Error: guw.pl: WinFormat: Not converted -X/... type switch in :-I/cygdrive/c/DevTools/MICROS~1.0SD//include:. - mkdir.pl ./wntmsci10.pro/misc/build/icu/source cd ./wntmsci10.pro/misc/build/icu/source cd allinone/all cmd /c nmake /f all.mak CFG=all - Win32 Release cd ../.. /usr/bin/touch.exe so_built_so_icu Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. cd c:\ooo-build\vs-scratch\OOo_2.0beta2\icu\wntmsci10.pro\misc\build\icu\source\allinone\all\..\..\layout nmake / /F .\layout.mak CFG=layout - Win32 Release Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. cd ..\common nmake / /F .\common.mak CFG=common - Win32 Release Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. cd ..\stubdata nmake / /F .\stubdata.mak CFG=stubdata - Win32 Release Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. cd ..\common tempfile.bat 1 file(s) copied. tempfile.bat 1 file(s) copied. tempfile.bat 1 file(s) copied. [[[lots of above message]]] cl.exe @c:\DOCUME~1\DAVIDF~1\LOCALS~1\Temp\nm28A3.tmp NMAKE : fatal error U1077: 'cl.exe' : return code '0x1' Stop. NMAKE : fatal error U1077: 'c:\PROGRA~1\MICROS~1.NET\Vc7\bin\nmake.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: 'c:\PROGRA~1\MICROS~1.NET\Vc7\bin\nmake.exe' : return code '0x2' Stop. dmake: Error code 2, while making './wntmsci10.pro/misc/build/so_built_so_icu' ---* tg_merge.mk *--- ERROR: Error 65280 occurred while making /cygdrive/c/ooo-build/vs-scratch/OOo_2.0beta2/icu dmake: Error code 1, while making 'build_instsetoo_native' ---* tg_merge.mk *--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Build getting stuck in icu
I'm trying to build on Windows. The build is getting stuck building ICU. It says cannot find windows.h I wonder if this is related to the guw.pl errors about not converting -X switches at the top of the log (below). As include switches are not converted (see guw error) this is highly possible. Please open an issue and attach your winenv.set so that we can investigate what went wrong. Even better would be if you tell us the configure switches you used and the output of configure. Volker Unfortunately its a bit difficult to debug as cl.exe is being given its parameters in a temporary file which gets deleted after build fails. So I was wondering if someone has a hint for me. The output is below Regards David Building project icu = /cygdrive/c/ooo-build/vs-scratch/OOo_2.0beta2/icu Error: guw.pl: WinFormat: Not converted -X/... type switch in :-I/cygdrive/c/DevTools/MICROS~2//include:. Error: guw.pl: WinFormat: Not converted -X/... type switch in :-I/cygdrive/c/DevTools/MICROS~1.0SD//include:. - mkdir.pl ./wntmsci10.pro/misc/build/icu/source cd ./wntmsci10.pro/misc/build/icu/source cd allinone/all cmd /c nmake /f all.mak CFG=all - Win32 Release cd ../.. /usr/bin/touch.exe so_built_so_icu Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. cd c:\ooo-build\vs-scratch\OOo_2.0beta2\icu\wntmsci10.pro\misc\build\icu\source\allinone\all\..\..\layout nmake / /F .\layout.mak CFG=layout - Win32 Release Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. cd ..\common nmake / /F .\common.mak CFG=common - Win32 Release Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. cd ..\stubdata nmake / /F .\stubdata.mak CFG=stubdata - Win32 Release Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. cd ..\common tempfile.bat 1 file(s) copied. tempfile.bat 1 file(s) copied. tempfile.bat 1 file(s) copied. [[[lots of above message]]] cl.exe @c:\DOCUME~1\DAVIDF~1\LOCALS~1\Temp\nm28A3.tmp NMAKE : fatal error U1077: 'cl.exe' : return code '0x1' Stop. NMAKE : fatal error U1077: 'c:\PROGRA~1\MICROS~1.NET\Vc7\bin\nmake.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: 'c:\PROGRA~1\MICROS~1.NET\Vc7\bin\nmake.exe' : return code '0x2' Stop. dmake: Error code 2, while making './wntmsci10.pro/misc/build/so_built_so_icu' ---* tg_merge.mk *--- ERROR: Error 65280 occurred while making /cygdrive/c/ooo-build/vs-scratch/OOo_2.0beta2/icu dmake: Error code 1, while making 'build_instsetoo_native' ---* tg_merge.mk *--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- If you like my work consider: http://www.scytek.de/donations.html PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D
Re: [dev] Build getting stuck in icu
Volker Quetschke wrote: I'm trying to build on Windows. The build is getting stuck building ICU. It says cannot find windows.h I wonder if this is related to the guw.pl errors about not converting -X switches at the top of the log (below). As include switches are not converted (see guw error) this is highly possible. Please open an issue and attach your winenv.set so that we can investigate what went wrong. Even better would be if you tell us the configure switches you used and the output of configure. OK have done, its 54285 http://www.openoffice.org/issues/show_bug.cgi?id=54285 http://www.openoffice.org/issues/show_bug.cgi?id=54285 I've included all the info there. I'll try delve into guw.pl and see if I can figure out what is going wrong... By the way, I am using winenv.set.sh and building from bash, but the same error happens using tcsh Thanks David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Options-Dialog, MacroSecurityLevel 3 , subfolders and http://
Peter Eberlein wrote: Hi, adding http://MyServer/* and/or file:///v:/* to the string list of the SecureURL in the common.xcu seems not to work. Most of our templates reside on dozens of subfolders on our http-server. Is there a way to work with subfolders on the highest security level? The list of secure URLs doesn not work recursively. This is a known issue. I don't have the ID at hand, but perhaps you can find it by yourself. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] End of SISSL
Didier Urban wrote: I would like to know if StarOffice 8 (next release) will be in LGPL licensing (If SISSL is down) ? It depends. Most parts of StarOffice are created from code that Sun has copyright for, so no licencing is necessary. Some other parts are from third parties (like the SpellChecker) and Sun paid for them. Ciao, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Strange Bug in StarBasic? Function returning null instead of empty
Matthias Benkmann wrote: I have a problem with a recursive function in one of my macros. The function is supposed to either return an array of strings or Empty (in case there's not enough input data). However, under some circumstances the function mysteriously returns Object/Null instead of Variant/Empty. I'd like to know if this is a bug in OOo (I tested 1.9.122 and 1.9.125) or some misunderstanding on my part. The following is a chopped down version of my code: Sub Main Dim n(1) as String n(0) = n(1) = Dim a as Variant f(Array(60,10,1,12,20,10,25,30), n(), 0, 76) End Sub Function f(splitInfo() as Variant, daten() as String, i as Long, j as Long) as Variant If i UBound(daten) Then Exit Function End If Dim ret() as String for k = 0 to UBound(splitInfo) restLen = Len(daten(i)) - j Dim splitPos as Long splitPos = splitInfo(k) If splitPos = restLen Then j = j + splitPos Else st = Right(daten(i), restLen) i = i + 1 j = 0 sta = f(Array(splitPos - restLen), daten, i, j) If IsNull(sta) Then MsgBox(This is impossible!) Exit Function End if End If next k f = ret() End Function As you can see there are only 2 ways out of the function f(). The first one is an Exit Function that is called without an assignment to the function's return value. On this code path the function is supposed to return Variant/Empty. The 2nd way out of the function is after the assignment f = ret() which sets the return value to an array of string. There should be no way for the function to return Variant/Null, so the condition IsNull(sta) should never be true. But strangely it is at some point. If I call the function directly from Main with the exact same parameters as the recursive call that returns Null, I get Empty as it should be. So it seems that Null is returned only in the recursive case. Can someone give me a clue what's going on? Is this a bug? Should I file a bug report? Matthias I don't suppose that you can provide an example that causes the problem... I tried to use the supplied example and there are issues. I added some error handling and found out that errors were generated and variables are not defined. This is likely to affect the results. In the following code, in which I tried to NOT change the meaning of the variables, I added some error handling that is called. Option Explicit Sub Main Dim n(1) as String n(0) = n(1) = Dim a as Variant f(Array(60,10,1,12,20,10,25,30), n(), 0, 76) End Sub Function f(splitInfo() As Variant, daten() As String, i As Long, j As Long) As Variant Dim ret() As String Dim k As Long Dim splitPos As Long Dim restLen As Long Dim st As String Dim sta On Error Goto BadError If i UBound(daten()) Then Print Exit at point 1 Exit Function End If For k = 0 To UBound(splitInfo()) REM dataen(i) is always of length 1 in this example. REM j starts off as length 76, so restLen is likely to spend some REM time with a negative value. restLen = Len(daten(i)) - j splitPos = splitInfo(k) If splitPos = restLen Then j = j + splitPos Else REM We generate an error when restLen = -75. st = Right(daten(i), restLen) i = i + 1 j = 0 sta = f(Array(splitPos - restLen), daten, i, j) If IsNull(sta) Then Print Exit at impossible point 2 Exit Function End if End If Next k 'Print Exit at point 3 f = ret() Exit Function BadError: Print There was a bad error On Error Goto 0 Print LB = LBound(daten()) UB = UBound(daten()) Print i = i restLen = restLen End Function -- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw My Macro Book: http://www.hentzenwerke.com/catalog/oome.htm Free Info: http://www.pitonyak.org/oo.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]