[Libreoffice] Regarding LibreOffice Application Support
Hi all, We have a requirement for converting .dot to .doc in our application. I checked LibreOffice Website for any command line tool or any stand alone support , api support to include libreoffice in our application thru java. But i am unable to find. I just want to check whether libreoffice has any api or any application support thru any exposed services. Can any body shed me lights in this. Thanks Pavan ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Regarding LibreOffice Application Support
Hi same api as OOo have a look at http://api.openoffice.org/ http://wiki.services.openoffice.org/wiki/Extensions for you problem, you may have a look at jodconverter http://www.artofsolving.com/opensource/jodconverter HTH laurent ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Document( header=table, body=table )
On Thu, 2011-04-14 at 17:53 -0600, Gordon Haverland wrote: Normally, a header is a single line. For some documents, part of that single line could be an image (preferably vector). You've started with some solutions that didn't work, but didn't state the problem to be solved. So I'm baffled as to the question being asked. C. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] [Partly pushed] Easy Hack completed - All bogus comments removed
Hi Julio, Many thanks for your patches nice patches. I think we'll manage to eradicate loads of useless comments this way ;) I pushed both patches in libs-gui and libs-core after some manual edits, but it takes too much time to manually adjust the patch for sw. Could you please adjust your regexps to fix the following problems: * comments indentation is reduced to 4 spaces in all cases: you should keep the number of existing leading spaces to avoid breaking the indentation * #b[0-9]\+# comments should be purely removed: we don't need them as they refer to some Oracle internal bug database. Please pay attention here ase you may have #b...# and #i# references on the same line * you often have some comment after the bug number, please keep them. Some could be removed, but not all. * While at it, could you remove the lines with comments like '// --' as those are the closing comments for the other silly SCM-like comments? Don't forget to check your patch after running your regexps as you may have other unexpected cases. Regards, On Thu, 2011-04-14 at 19:26 -0300, Júlio Hoffimann wrote: I forget to mention... This patch is under the LGPLv3+ / MPL license. 2011/4/14 Júlio Hoffimann julio.hoffim...@gmail.com ... and the last and big one. ;-) https://bugs.freedesktop.org/show_bug.cgi?id=36234 Regards, Júlio. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice -- Cédric Bosdonnat LibreOffice hacker http://documentfoundation.org OOo Eclipse Integration developer http://cedric.bosdonnat.free.fr ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] [LibreOffice] [PATCH] [GSOC 2011] Hack: Store/Restore font dropdown MRU
Hi Marco, On Thu, 2011-04-14 at 19:12 +0100, Caolán McNamara wrote: On Thu, 2011-04-14 at 19:07 +0200, Marco wrote: Hi all, Store/Restore font dropdown MRU is the required hack I worked on. I attached the related patch. oh cool, one little thing, I wouldn't bother with using the osl_getThreadTextEncoding() (which is just the system encoding) and instead just use RTL_TEXTENCODING_UTF8, that way we don't run into problems munging e.g. CJK font names into ? if the system text encoding is some 8bit foo. I just pushed your patch after: * Applying Caolan's comment * Adding #if OSL_DEBUG_LEVEL 1 around the include of cstdio Many thanks for your nice patch and welcome to the LibreOffice hacking community! -- Cédric Bosdonnat LibreOffice hacker http://documentfoundation.org OOo Eclipse Integration developer http://cedric.bosdonnat.free.fr ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] [LibreOffice] [PATCH] [GSOC 2011] Hack: Store/Restore font dropdown MRU
On Fri, 15 Apr 2011 11:10:37 +0200, Cedric Bosdonnat cedric.bosdonnat@free.fr wrote: Hi Marco, On Thu, 2011-04-14 at 19:12 +0100, Caolán McNamara wrote: On Thu, 2011-04-14 at 19:07 +0200, Marco wrote: Hi all, Store/Restore font dropdown MRU is the required hack I worked on. I attached the related patch. oh cool, one little thing, I wouldn't bother with using the osl_getThreadTextEncoding() (which is just the system encoding) and instead just use RTL_TEXTENCODING_UTF8, that way we don't run into problems munging e.g. CJK font names into ? if the system text encoding is some 8bit foo. I just pushed your patch after: * Applying Caolan's comment * Adding #if OSL_DEBUG_LEVEL 1 around the include of cstdio Thanks for applying the needed changes. Many thanks for your nice patch and welcome to the LibreOffice hacking community! It's a pleasure! Marco -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] needful function on calc
Hi! I hope this mail will be send there, where should be send. If it is bad place you can change it. In calc, on doing GRAPH is necessary one simple function. When I'm doing LINEAR REGRESSION I can't set that line CROSS POINT (0,0). It's important function, for example in simple physical exercise. In laboratory tested: v=1m/s car drived 5m, in v=2m/s car drived 11m. But for v=0m/s lenght ALWAYS WILL BE 0. Not for example 0,0005. I can do it manually. I can use function REGLINP, there set up that function cross point (0,0) and add it to graph. But it fill much time. It needn't be cross (1,5), (3,4) and other, only (0,0) is realy important. This function was in microsoft office xp. Newer also too. This function is also in Gnumeric (package of gnome-office on linux). I hope for positive hear of matter. I can correct something if will be needed. --- dev...@gmail.com Dawid Gan POLAND ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Document( header=table, body=table )
On April 15, 2011, Caolán McNamara wrote: On Thu, 2011-04-14 at 17:53 -0600, Gordon Haverland wrote: Normally, a header is a single line. For some documents, part of that single line could be an image (preferably vector). You've started with some solutions that didn't work, but didn't state the problem to be solved. So I'm baffled as to the question being asked. Any idea what does (will?) work? I wouldn't say that what I've tried hasn't worked, but some of it seems awfully clumsy. Gord ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] [PATCH] Only accelerators in Edit popup on Windows and KDE
I made a change to not show accelerators in Edit popups except in KDE and Windows, which are to my knowledge the only platforms doing this. I'm not sure if this is the best way to address this, I looked at the style settings, but this isn't a setting, and I saw get_desktop_session() but that isn't public API and I'm not sure how it's meant to be used. If there's a better approach, pointers welcome. Also filed as fdo#36235 with the same patch. ciao, ChristianFrom 509dccd84864c79a659901800e145303d1182b23 Mon Sep 17 00:00:00 2001 From: Christian Dywan christian.dy...@lanedo.com Date: Thu, 14 Apr 2011 19:41:41 +0200 Subject: [PATCH] Only accelerators in Edit popup on Windows and KDE Fixes: fdo#36239 diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 30e0296..ee6f6ff 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2933,13 +2933,23 @@ PopupMenu* Edit::CreatePopupMenu() return new PopupMenu(); PopupMenu* pPopup = new PopupMenu( ResId( SV_RESID_MENU_EDIT, *pResMgr ) ); -pPopup-SetAccelKey( SV_MENU_EDIT_UNDO, KeyCode( KEYFUNC_UNDO ) ); -pPopup-SetAccelKey( SV_MENU_EDIT_CUT, KeyCode( KEYFUNC_CUT ) ); -pPopup-SetAccelKey( SV_MENU_EDIT_COPY, KeyCode( KEYFUNC_COPY ) ); -pPopup-SetAccelKey( SV_MENU_EDIT_PASTE, KeyCode( KEYFUNC_PASTE ) ); -pPopup-SetAccelKey( SV_MENU_EDIT_DELETE, KeyCode( KEYFUNC_DELETE ) ); -pPopup-SetAccelKey( SV_MENU_EDIT_SELECTALL, KeyCode( KEY_A, sal_False, sal_True, sal_False, sal_False ) ); -pPopup-SetAccelKey( SV_MENU_EDIT_INSERTSYMBOL, KeyCode( KEY_S, sal_True, sal_True, sal_False, sal_False ) ); +#ifdef _WIN32 +if (1) +#else +static const char *pDesktop = getenv (OOO_FORCE_DESKTOP); +if (! ( pDesktop *pDesktop)) +pDesktop = getenv (DESKTOP_SESSION); +if ( strstr( pDesktop, kde ) != NULL ) +#endif +{ +pPopup-SetAccelKey( SV_MENU_EDIT_UNDO, KeyCode( KEYFUNC_UNDO ) ); +pPopup-SetAccelKey( SV_MENU_EDIT_CUT, KeyCode( KEYFUNC_CUT ) ); +pPopup-SetAccelKey( SV_MENU_EDIT_COPY, KeyCode( KEYFUNC_COPY ) ); +pPopup-SetAccelKey( SV_MENU_EDIT_PASTE, KeyCode( KEYFUNC_PASTE ) ); +pPopup-SetAccelKey( SV_MENU_EDIT_DELETE, KeyCode( KEYFUNC_DELETE ) ); +pPopup-SetAccelKey( SV_MENU_EDIT_SELECTALL, KeyCode( KEY_A, sal_False, sal_True, sal_False, sal_False ) ); +pPopup-SetAccelKey( SV_MENU_EDIT_INSERTSYMBOL, KeyCode( KEY_S, sal_True, sal_True, sal_False, sal_False ) ); +} return pPopup; } -- 1.7.1 ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] [PATCH] Remove unneeded minus and plus keyboard aliases
The various KeysymNameReplacement arrays all contain XK_plus and XK_minus but in fact no existing keyboard layout has labels other than literal + and - for these keys. Removing these means that it becomes clearer what labels actually can be localised. Also filed as fdo#36235 with the same patch. ciao, ChristianFrom 85d9a20ba7da1eaa93ef555875e3985d29516594 Mon Sep 17 00:00:00 2001 From: Christian Dywan christian.dy...@lanedo.com Date: Thu, 14 Apr 2011 15:34:51 +0200 Subject: [PATCH] Remove unneeded minus and plus keyboard aliases Fixes: fdo#36235 diff --git a/vcl/unx/source/app/keysymnames.cxx b/vcl/unx/source/app/keysymnames.cxx index 023848a..254e793 100644 --- a/vcl/unx/source/app/keysymnames.cxx +++ b/vcl/unx/source/app/keysymnames.cxx @@ -95,8 +95,6 @@ namespace vcl_sal { { XK_Control_R, Ctrl }, { XK_Escape, Esc }, { XK_space, Space }, -{ XK_minus, - }, -{ XK_plus, + } }; static const struct KeysymNameReplacement aImplReplacements_Turkish[] = @@ -152,8 +150,6 @@ namespace vcl_sal { { SunXK_Paste, Einsetzen }, { SunXK_Find, Suchen }, { SunXK_Cut, Ausschneiden }, -{ XK_minus, - }, -{ XK_plus, + } }; static const struct KeysymNameReplacement aImplReplacements_French[] = @@ -184,8 +180,6 @@ namespace vcl_sal { { SunXK_Paste, Coller }, { SunXK_Find, Cher. }, { SunXK_Cut, Couper }, -{ XK_minus, - }, -{ XK_plus, + } }; static const struct KeysymNameReplacement aImplReplacements_Italian[] = @@ -215,8 +209,6 @@ namespace vcl_sal { { SunXK_Paste, Incolla }, { SunXK_Find, Trova }, { SunXK_Cut, Taglia }, -{ XK_minus, - }, -{ XK_plus, + } }; static const struct KeysymNameReplacement aImplReplacements_Dutch[] = @@ -241,8 +233,6 @@ namespace vcl_sal { { SunXK_Paste, Paste }, { SunXK_Find, Find }, { SunXK_Cut, Cut }, -{ XK_minus, - }, -{ XK_plus, + } }; static const struct KeysymNameReplacement aImplReplacements_Norwegian[] = @@ -268,8 +258,6 @@ namespace vcl_sal { { SunXK_Paste, Lim }, { SunXK_Find, Søk }, { SunXK_Cut, Klipp }, -{ XK_minus, - }, -{ XK_plus, + } }; static const struct KeysymNameReplacement aImplReplacements_Swedish[] = @@ -296,8 +284,6 @@ namespace vcl_sal { { SunXK_Paste, Klistra in }, { SunXK_Find, Sök }, { SunXK_Cut, Klipp ut }, -{ XK_minus, - }, -{ XK_plus, + } }; static const struct KeysymNameReplacement aImplReplacements_Portuguese[] = @@ -322,8 +308,6 @@ namespace vcl_sal { { SunXK_Paste, Paste }, { SunXK_Find, Find }, { SunXK_Cut, Cut }, -{ XK_minus, - }, -{ XK_plus, + } }; static const struct KeysymNameReplacement aImplReplacements_Spanish[] = @@ -354,8 +338,6 @@ namespace vcl_sal { { SunXK_Paste, Pegar }, { SunXK_Find, Buscar }, { SunXK_Cut, Cortar }, -{ XK_minus, - }, -{ XK_plus, + } }; static const struct KeyboardReplacements aKeyboards[] = diff --git a/vcl/unx/source/app/saldisp.cxx b/vcl/unx/source/app/saldisp.cxx index 6d58064..59577d9 100644 --- a/vcl/unx/source/app/saldisp.cxx +++ b/vcl/unx/source/app/saldisp.cxx @@ -1290,10 +1290,10 @@ XubString SalDisplay::GetKeyName( sal_uInt16 nKeyCode ) const nKeySym = GetServerVendor() == vendor_sun ? SunXK_Cut : XK_L10; break; case KEY_ADD: -nKeySym = XK_plus; +aCustomKeyName = '+'; break; case KEY_SUBTRACT: -nKeySym = XK_minus; +aCustomKeyName = '-'; break; case KEY_MULTIPLY: nKeySym = XK_asterisk; -- 1.7.1 ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] smoketest now works (i.e. green) with a11y enabled and --enable-dbgutil
And it was tricky to try and fix draw's a11y stuff, i.e. it suffered from calling methods in a base class ctor which triggered calling virtual methods on the object while not complete constructed yet, falling into the classic c++ problem where during construction that calls the *base* class virtual method, not the *derived* class virtual method, i.e. http://www.artima.com/cppsource/nevercall.html C. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] [PUSHED] How to create get an XWorksheet from a XSpreadsheet?
Hi Markus On 15/04/11 01:40, Markus Mohrhard wrote: And again with the patches. 2011/4/15 Markus Mohrhard markus.mohrh...@googlemail.com mailto:markus.mohrh...@googlemail.com Hi Noel, here is the patch without the conversion from XSpreadsheet to XWorksheet. I found some nice Code in ScVbaWorkbook::getActiveSheet() where nearly the same thing was done. But the following attempt didn't work, and created always an error message in getDocUnoModule() uno::Referenceframe::XModel xNewModel( getCurrentExcelDoc( mxContext ), uno::UNO_SET_THROW ); ScDocShell* pShell = excel::getDocShell( xNewModel ); if( !pShell ) throw uno::RuntimeException(); ScDocument* pDoc = pShell-GetDocument(); String aCodeName; pDoc-GetCodeName((SCTAB)0 ,aCodeName); return uno::Reference excel::XWorksheet ( getUnoDocModule( aCodeName, pShell ), uno::UNO_QUERY_THROW ); With a debugger you see that pShell points to the correct ScDocShell and aCodeName points to the CodeName of the ScTable but it still won't work. Perhabs you know why my idea won't work. Nearly the same code works fine with ScVbaWorkbook::getActiveSheet() ok, first using getCurrentExcelDoc is not really recommended ( when we actually know the target document ) 'active' is a little arbitrary and I am not sure in this case whether there is a timing issue between the document being created and being recognised as 'active'. But regardless of that the getUnoDocModule is not going to succeed as the (new) document is not vba enabled. Some post processing of the document is needed to ensure that works, like I said.. if you are interested in hacking on that as a separate issue then I can give you pointers how that is done ( actually it is already done in ScVbaWorkbooks ( see setUpDocumentModules method ) ) but that method would need to be generally available in excelvbahelper I think Patch is under LGPLv3+/MPL. Regards, Markus P.S. Even some really strange ways of using the setUpDocumentModules(const uno::Reference sheet::XSpreadsheetDocument ) of vbaworkbooks.cxx produces an error. But this seems a good way to solve the problem. If you can give me any hints why this won't work I will try again on the conversion hmm not without looking more closely at that ( which I will try to do later ) it imo should work now on to the patch :-) in vbaworksheet.cxx +//#TODO #FIXME +//return the new XWorksheet +return; I meant to not return NULL but pass NULL as the parent of the Worksheet ;-) fixed that ( of course we need to look into the problems mentioned above to see what we can do to get the correct parent ) A few more changes were needed to vbaworksheets, mostly these changes were required because on testing it became clear that things weren't working exactly as expected and there are a few bugs e.g.calling Worksheets.Copy() creates a copy of the sheets in a new workbook but there are in reverse order Similarly when calling Worksheets.Copy before:= Worksheets(2) the sheets are also copied in reverse order. I fixed those 2 problems and additionally reworked the method and removed one of the loops in the ScVbaWorksheets::Copy method thanks again for this useful patch, look forward to you next contribution Noel ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] [PUSHED] How to create get an XWorksheet from a XSpreadsheet?
On 15/04/11 14:59, Noel Power wrote: [...] thanks again for this useful patch, look forward to you next contribution Noel oh, and here are the commits http://cgit.freedesktop.org/libreoffice/libs-core/commit/?h=libreoffice-3-4id=e5a3f65d76efc5e70ea0ef8e25107b5af11c7327 http://cgit.freedesktop.org/libreoffice/calc/commit/?h=libreoffice-3-4id=f96c5afd276287d896760e11542918e679069b8c thanks Noel ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] Non-functional Beta?
Hi all This is a warning/question: I just installed LO 3.4 Beta 1 under Windows XP Pro SP3 (from the install_multi.exe file) and there are no buttons on the interface (just text) and opening any ods/odt file (curiously no error for doc or xls!) results in General Error. General Input/Output Error If this is only happening to me, then ignore this message. -- View this message in context: http://nabble.documentfoundation.org/Non-functional-Beta-tp2824860p2824860.html Sent from the Dev mailing list archive at Nabble.com. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Document( header=table, body=table )
On Fri, 2011-04-15 at 06:54 -0600, Gordon Haverland wrote: On April 15, 2011, Caolán McNamara wrote: On Thu, 2011-04-14 at 17:53 -0600, Gordon Haverland wrote: Normally, a header is a single line. For some documents, part of that single line could be an image (preferably vector). You've started with some solutions that didn't work, but didn't state the problem to be solved. So I'm baffled as to the question being asked. Any idea what does (will?) work? What I'm driving at is that it's not clear from your email what it is you are trying to achieve. C. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] [Bug 35673] LibreOffice 3.4 most annoying bugs
https://bugs.freedesktop.org/show_bug.cgi?id=35673 Olivier Hallot olivier.hal...@documentfoundation.org changed: What|Removed |Added CC||olivier.hallot@documentfoun ||dation.org Depends on||36262 --- Comment #21 from Olivier Hallot olivier.hal...@documentfoundation.org 2011-04-15 08:28:47 PDT --- Added bug 36262 to undo BrOffice modifications and return to LibreOffice for the Brazilian locale. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Document( header=table, body=table )
On April 15, 2011, Caolán McNamara wrote: On Fri, 2011-04-15 at 06:54 -0600, Gordon Haverland wrote: On April 15, 2011, Caolán McNamara wrote: On Thu, 2011-04-14 at 17:53 -0600, Gordon Haverland wrote: Normally, a header is a single line. For some documents, part of that single line could be an image (preferably vector). You've started with some solutions that didn't work, but didn't state the problem to be solved. So I'm baffled as to the question being asked. Any idea what does (will?) work? What I'm driving at is that it's not clear from your email what it is you are trying to achieve. While there are words and numbers in these documents, with the possible exception of notes at the end there are no sentences. One specific kind of change is: One cell in the header (the header is a table) contains pressures and temperatures. If the temperature is metric and greater than 0C, it is sometimes some arbitrary large temperature, and needs to be set to 260C. If the temperature is English units and greater than 0F, it is sometimes some arbitrary large temperature, and needs to be set to 500F. There are other changes like incorrect spacing (lack of whitespace or one too many whitespace) in a string. For example, something might read ASME B16. 5, it should be ASME B16.5. These things are scattered across a large set of files, all with the same format. Using the perl OpenOffice::OODoc module, I have stumbled across how to find the table, and I can get the delimted textContent. So far, I haven't found how to get at the table in the header. getAutoStyleList returns 29, and getMasterStyleList returns 2 if that helps. Gord ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Пpoбoины cтaрых сxeм
SPAM ! ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] [Partly pushed] Easy Hack completed - All bogus comments removed
Ok Cedric, no problem. I will fix these problems. Thank you for return. Regards, Júlio. 2011/4/15 Cedric Bosdonnat cedric.bosdonnat@free.fr Hi Julio, Many thanks for your patches nice patches. I think we'll manage to eradicate loads of useless comments this way ;) I pushed both patches in libs-gui and libs-core after some manual edits, but it takes too much time to manually adjust the patch for sw. Could you please adjust your regexps to fix the following problems: * comments indentation is reduced to 4 spaces in all cases: you should keep the number of existing leading spaces to avoid breaking the indentation * #b[0-9]\+# comments should be purely removed: we don't need them as they refer to some Oracle internal bug database. Please pay attention here ase you may have #b...# and #i# references on the same line * you often have some comment after the bug number, please keep them. Some could be removed, but not all. * While at it, could you remove the lines with comments like '// --' as those are the closing comments for the other silly SCM-like comments? Don't forget to check your patch after running your regexps as you may have other unexpected cases. Regards, On Thu, 2011-04-14 at 19:26 -0300, Júlio Hoffimann wrote: I forget to mention... This patch is under the LGPLv3+ / MPL license. 2011/4/14 Júlio Hoffimann julio.hoffim...@gmail.com ... and the last and big one. ;-) https://bugs.freedesktop.org/show_bug.cgi?id=36234 Regards, Júlio. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice -- Cédric Bosdonnat LibreOffice hacker http://documentfoundation.org OOo Eclipse Integration developer http://cedric.bosdonnat.free.fr ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Non-functional Beta?
Hi, On Fri, Apr 15, 2011 at 4:56 PM, plino pedl...@gmail.com wrote: Hi all This is a warning/question: I just installed LO 3.4 Beta 1 under Windows XP Pro SP3 (from the install_multi.exe file) and there are no buttons on the interface (just text) and opening any ods/odt file (curiously no error for doc or xls!) results in General Error. General Input/Output Error If this is only happening to me, then ignore this message. It happens to me too. No icons and several exceptions here and there. I'll guess it's time for some hacking fun :) -- Jesús Corrius je...@softcatala.org Document Foundation founding member Mobile: +34 661 11 38 26 Skype: jcorrius | Twitter: @jcorrius ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] [PATCH] fixes for some cppcheck warnings
Just variableScope, sending for review. Question: until now my patches are just code changes, nothing adding some extra function, i really need to tell that my work is under LGPLv3+/MPL? If so, they are. revol_ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Libo 3.4 - writer insert fields other : 2 bugs
On Thu, 2011-04-14 at 11:46 +0200, Robert Dargaud wrote: sw and svl are impacted by this problem. Yeah, they look very dodgy, changed those as well now in 3-4. In help, TRUE and FALSE are localized : (see below an extract of french help screen) VRAI La condition est toujours remplie. Il est également possible d'entrer une valeur quelconque différente de zéro comme texte conditionnel. FAUX La condition n'est pas remplie. À la place, vous pouvez aussi spécifier la valeur 0. I dont know if it is easy to use localized constant strings to display 'VRAI' 'FAUX' (for ex in french) in user interface. Well, I guess we could tweak things to display localized TRUE/FALSE strings in the UI. Its a little unclear if the current situation is a bug in the helpcontent2 or in the display :-). timar: Do we have markup in the helpcontent2 xml language to denote something as not-to-be-translated ? C. --- source/fr/helpcontent2/source/text/swriter/01.po.orig 2011-04-15 20:21:50.857689723 +0100 +++ source/fr/helpcontent2/source/text/swriter/01.po 2011-04-15 20:22:06.361871573 +0100 @@ -12409,7 +12409,7 @@ #: 04090200.xhp#par_id3153677.19.help.text msgid TRUE -msgstr VRAI +msgstr TRUE #: 04090200.xhp#par_id3152960.20.help.text msgid The condition is always met. You can also enter any value not equal to 0 as the conditional text. @@ -12417,7 +12417,7 @@ #: 04090200.xhp#par_id3155900.21.help.text msgid FALSE -msgstr FAUX +msgstr FALSE #: 04090200.xhp#par_id3154191.22.help.text msgid The condition is not met. You can also enter the value 0. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] [PATCH] fixes for some cppcheck warnings
On Fri, 15 Apr 2011 16:25:32 -0300, Kayo Hamid kayo.ha...@gekkolinux.com.br wrote: Just variableScope, sending for review. Sometimes it happens ;-) patch annexed revol_diff --git a/vcl/os2/source/app/printf.c b/vcl/os2/source/app/printf.c index 06e75b6..9c65147 100644 --- a/vcl/os2/source/app/printf.c +++ b/vcl/os2/source/app/printf.c @@ -139,7 +139,6 @@ int debug_printf(const char *f, ...) PIB*ppib;/* .. */ TIDourtid; /* thread ID */ struct perthread *tp;/* pointer to per-thread data */ - intrc; /* returncode */ ULONG urc; /* returncode */ urc=DosOpenQueue(servepid, qhandle, PRINTFQNAME); /* Open the Q */ @@ -192,6 +191,7 @@ int debug_printf(const char *f, ...) /* taking note of certain control characters and sending a line */ /* the queue whenever we see a LF control, or when the line */ /* fills (causing a forced break).*/ +intrc; /* returncode */ for (i=0; ; i++) { ch=buffer[i]; if (!ch) break; switch(ch) { diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx index 609d48e..9de5860 100644 --- a/vcl/win/source/window/salframe.cxx +++ b/vcl/win/source/window/salframe.cxx @@ -4750,14 +4750,12 @@ static int ImplHandleMinMax( HWND hWnd, LPARAM lParam ) // if bByPosition is FALSE then nPos denotes a menu id instead of a position static WinSalMenuItem* ImplGetSalMenuItem( HMENU hMenu, UINT nPos, sal_Bool bByPosition=TRUE ) { -DWORD err=0; - MENUITEMINFOW mi; memset(mi, 0, sizeof(mi)); mi.cbSize = sizeof( mi ); mi.fMask = MIIM_DATA; if( !GetMenuItemInfoW( hMenu, nPos, bByPosition, mi) ) -err = GetLastError(); + DWORD err = GetLastError(); return (WinSalMenuItem *) mi.dwItemData; } @@ -4765,8 +4763,6 @@ static WinSalMenuItem* ImplGetSalMenuItem( HMENU hMenu, UINT nPos, sal_Bool bByP // returns the index of the currently selected item if any or -1 static int ImplGetSelectedIndex( HMENU hMenu ) { -DWORD err=0; - MENUITEMINFOW mi; memset(mi, 0, sizeof(mi)); mi.cbSize = sizeof( mi ); @@ -4777,7 +4773,7 @@ static int ImplGetSelectedIndex( HMENU hMenu ) for(int i=0; in; i++ ) { if( !GetMenuItemInfoW( hMenu, i, TRUE, mi) ) -err = GetLastError(); +DWORD err = GetLastError(); else { if( mi.fState MFS_HILITE ) ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] [PATCH] conditional formatting with an unlimited number of rules
Hi Bob, finally a bit time to reply to your great mail :-) Am Dienstag, den 12.04.2011, 00:54 +0200 schrieb Robert Dargaud: Hello Christoph, Le 11/04/11 23:42, Christoph Noack a écrit : [...] Hehe ... then we should talk. To be honest, please tell me if you want to give this another try - or if you want to have a look at another topic as well. Yes, I want continue on this subject because it seems to me that it's a good way to learn LibO code. Cool! There is so much to learn ;-) [...] I'm currently thinking about whether something like the Custom Document Properties [1] might be a next step - the UI design pattern might fit here as well. Mmh ... Oh ! Yes !!! It seem perfectly adapted, I have a look to code and start to hack tomorow Amazing! Just tell if you have any questions related to the UI behavior or user's needs ... I think (but I'm not a developer) that the main issue will be to build a table with entries similar to the current ones (having several controls stacked in a container that represents a list item). A simple table like the one for the custom document properties might not work ... to many information / controls. Or at least I don't know if there is a solution that will work well nevertheless. At least, we may get rid of the Checkbox, and place the New Style ... below the table (because it is a rather generic control). And (dreaming) one day, we'll be able to provide something like LivePreview (or Apply behavior) for such dialogs :-) And I will debug refresh ... who is not really perfect ! like you can see on screen shot below. http://archives.bobiciel.com/libo/custom_properties/custom_document_properties_LibO_ubuntu.jpg http://archives.bobiciel.com/libo/custom_properties/custom_document_properties_OOo_Mac.jpg Ouch! Doesn't look that nice ... that's true. Cheers, Christoph ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] [PATCH] Only accelerators in Edit popup on Windows and KDE
Hi Christian, On 2011-04-15 at 12:48 +, Christian Dywan wrote: I'm not sure if this is the best way to address this, I looked at the style settings, but this isn't a setting, and I saw get_desktop_session() but that isn't public API and I'm not sure how it's meant to be used. If there's a better approach, pointers welcome. Nice, thank you very much for the patch! :-) The best is to use Application::GetDesktopEnvironment(), like eg. here: http://opengrok.libreoffice.org/xref/components/cui/source/options/optgdlg.cxx#129 [without the #ifdefs etc. - here you don't care whether the plugin is available, or not ;-)] Can you please update it? Thank you, Kendy ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] [Bug 35673] LibreOffice 3.4 most annoying bugs
https://bugs.freedesktop.org/show_bug.cgi?id=35673 Christian Lohmaier lohma...@gmx.de changed: What|Removed |Added Depends on||36277 -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] [PUSHED] Re: [PATCH] Remove unneeded minus and plus keyboard aliases
Hi Christian, On 2011-04-15 at 12:51 +, Christian Dywan wrote: The various KeysymNameReplacement arrays all contain XK_plus and XK_minus but in fact no existing keyboard layout has labels other than literal + and - for these keys. Removing these means that it becomes clearer what labels actually can be localised. Nice - pushed, thank you! :-) Regards, Kendy ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] Proposing a new Easy Hack - project consistent namespaces
Hi devs, How hard is to rename all the C++ namespaces to most comprehensive and consistent names with the project? It would help us, external contributors, to understand the code and make substantial changes. I'm trying to get familiar, but there is a complex mix of namespaces from StarOffice/OpenOffice and other previous versions. This really don't helps. I know, sounds crazy to rename everything, but you could pass this task for us, Easy Hackers. And what i have in mind? You could map the old namespaces to the names you want putting in a single header file: $ cat changingNames.hpp // this map should list all namespace trees:namespace oldNameLevel_0 { namespace oldNameLevel_1 { }} // and you developers choose the better names:namespace newNameLevel_0 { using namespace oldNameLevel_0; namespace newNameLevel_1 { using namespace oldNameLevel_1; }} // --- // another examplenamespace com { namespace sun { namespace star { namespace uno {} } } } // defining the new names for LibreOffice!namespace libre { using namespace com::sun; namespace writer { using namespace star; namespace writerSomething { using namespace uno; } }} This file would be added in all LibreOffice source code by regexp, then even we change the names to the new ones gradually, the build would not break. In a far future, when someone remove the last trace, we done. I think this Easy Hack is an important step for LibreOffice growth. Regards, Júlio. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] Easyhack : updating biblio.odb
Hello, I updated biblio.odb, commited and pushed it. There are less references than before but I didn't want to put books published before 2008. 3 years in computers art, it's quite a lot, but it's just my humble opinion. I tried to put several languages : - English - French - German - Polish - Italian - Spanish If you're ok with biblio.odb, i can put this easy task as completed. But perhaps, you think there's not enough or something else (typo, etc..) Tell me ! Julien. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] LibreOffice 3.4 Beta 1 available
Hi, Thorsten Behrens wrote (15-04-11 18:33) http://www.libreoffice.org/download/pre-releases/ Great news :-) Alas, I read quite some people with problems. Also for me, my regular way of installing (parallel installation) does not result in a program that launches. Will try to download again tomorrow - however is too slow now. Cor -- - http://nl.libreoffice.org - giving openoffice.org its foundation :: The Document Foundation - ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] LibreOffice 3.4 Beta 1 available
Hi Cor, *, On Sat, Apr 16, 2011 at 12:24 AM, Cor Nouws oo...@nouenoff.nl wrote: Thorsten Behrens wrote (15-04-11 18:33) http://www.libreoffice.org/download/pre-releases/ Great news :-) Will try to download again tomorrow - however is too slow now. Use BitTorrent... But yes, packaging is a mess :-/ * Installer file name scheme was changed (now there is a URE package, and I had to adapt the javascript, would have been nice to have known beforehand) * desktop-integration packages have wrong version-info * lots of file conflicts in packages (extensions packages and also core ones of 3.4 conflict with packages from 3.3 because the same filepath is used) → can't update 3.3.2 to 3.4 because of the packaging conflicts. → can't just install 3.4 along with 3.3.2 Either 3.4 is allowed to be installed in parallel to 3.3, or not. In the latter case it should obsolete/replace 3.3.2, not throw conflicts at the user. This definitely is a problem that needs to be resolved before RC ciao Christian ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] LibreOffice 3.4 Beta 1 available
Hi Christian, *, Christian Lohmaier wrote (16-04-11 00:32) Will try to download again tomorrow - however is too slow now. Use BitTorrent... But yes, packaging is a mess :-/ * Installer file name scheme was changed (now there is a URE package, and I had to adapt the javascript, would have been nice to have known beforehand) * desktop-integration packages have wrong version-info * lots of file conflicts in packages (extensions packages and also core ones of 3.4 conflict with packages from 3.3 because the same filepath is used) Ah, that explains other complaints that I see. → can't update 3.3.2 to 3.4 because of the packaging conflicts. → can't just install 3.4 along with 3.3.2 Either 3.4 is allowed to be installed in parallel to 3.3, or not. In the latter case it should obsolete/replace 3.3.2, not throw conflicts at the user. I always use this method http://wiki.services.openoffice.org/wiki/Run_OOo_versions_parallel which never gives any dependency / replacing / integration issues. However, $ ~/libreoffice/program/soffice doesn't do anything (nor swriter, *) This definitely is a problem that needs to be resolved before RC I think I will keep the release of this beta as a secret. Anyhow there is more than enough interesting news :-) Cor -- - http://nl.libreoffice.org - giving openoffice.org its foundation :: The Document Foundation - ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] compilation failed in lotuswordpro
Hello, here is the error : [ build ALL ] top level modules: lotuswordpro [ build ALL ] loaded modules: lotuswordpro [ build CUT ] lotuswordpro_test_lotuswordpro terminate called after throwing an instance of 'com::sun::star::registry::InvalidRegistryException' Aborted make: *** [/home/maryline/compile-libreoffice/libo/solver/300/unxlngi6/workdir/CppunitTest/lotuswordpro_test_lotuswordpro.test] Erreur 1 I tried to apply http://wiki.documentfoundation.org/Development/How_to_debug#Debugging_cppunit_tests Whereas gdb is installed, here what i get : maryline@maryline:~/compile-libreoffice/libo/lotuswordpro$ export GDBCPPUNITTRACE=gdb --args maryline@maryline:~/compile-libreoffice/libo/lotuswordpro$ make -sr [ build ALL ] top level modules: lotuswordpro [ build ALL ] loaded modules: lotuswordpro [ build CUT ] lotuswordpro_test_lotuswordpro terminate called after throwing an instance of 'com::sun::star::registry::InvalidRegistryException' Aborted make: *** [/home/maryline/compile-libreoffice/libo/solver/300/unxlngi6/workdir/CppunitTest/lotuswordpro_test_lotuswordpro.test] Erreur 1 then if i try export DEBUGCPPUNIT=TRUE i get : maryline@maryline:~/compile-libreoffice/libo/lotuswordpro$ export DEBUGCPPUNIT=TRUE maryline@maryline:~/compile-libreoffice/libo/lotuswordpro$ make -sr [ build ALL ] top level modules: lotuswordpro [ build ALL ] loaded modules: lotuswordpro [ build CUT ] lotuswordpro_test_lotuswordpro It hangs then (i waited about 1 minute), i must kill the terminal. I've got no gdbtrace.log Here is autogen.lastrun : --enable-ext-barcode --enable-ext-diagram --enable-ext-google-docs --enable-ext-hunart --enable-ext-lightproof --enable-ext-nlpsolver --enable-ext-ct2n --enable-ext-numbertext --enable-ext-oooblogger --enable-ext-pdfimport --enable-ext-presenter-console --enable-ext-presenter-minimizer --enable-ext-report-builder --enable-ext-scripting-beanshell --enable-ext-scripting-javascript --enable-ext-scripting-python --enable-ext-typo --enable-ext-validator --enable-ext-watch-window --enable-ext-wiki-publisher --enable-dbus --enable-graphite --enable-evolution2 --enable-werror --enable-debug --enable-dbgutil --enable-crashdump --enable-layout --enable-kde4 --enable-dependency-tracking --enable-extra-gallery --enable-extra-template --enable-extra-sample --enable-extra-font Any idea ? Julien. (x86 gcc : Debian 4.5.2-8) ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] LibreOffice 3.4 Beta 1 available
I think I will keep the release of this beta as a secret. Anyhow there is more than enough interesting news :-) Too late :) http://nabble.documentfoundation.org/LibreOffice-3-4-Beta-1-available-tp2825422p2825422.html http://blog.documentfoundation.org/2011/04/15/libreoffice-3-4-beta-1-available/ http://www.libreoffice.org/ I think the only option now is to fix it and replace it ASAP ;) -- View this message in context: http://nabble.documentfoundation.org/Re-LibreOffice-3-4-Beta-1-available-tp2826294p2827164.html Sent from the Dev mailing list archive at Nabble.com. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] Killing OS/2
Hi all, There's been a commit recently to remove some OS/2 code. Now that the cat is out of the bag, I suppose we could remove OS/2 support completely from the code base. Do we have a consensus on this matter ? -- Francois Tigeot ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice