License statement

2012-05-10 Thread Mattias Johnsson
All of my past and future contributions to LibreOffice may be licensed under the MPL/LGPLv3+ dual license. Regards, Mattias Johnsson ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

[Libreoffice] [LibreOffice] [Patch] Fix for i#108228: Bool has negative sign when used in Writer formula expression

2010-12-08 Thread Mattias Johnsson
blocker :-P Code contributed under MPL 1.1 / GPLv3+ / LGPLv3+ licenses. Cheers, Mattias From cacb952d14de82625a93373d82c541810f2c38c5 Mon Sep 17 00:00:00 2001 From: Mattias Johnsson Date: Wed, 8 Dec 2010 21:15:43 +1100 Subject: [PATCH] Fix i#108228 : bool has negative sign when used in formula expressi

Re: [Libreoffice] [PUSHED] Re: [PATCH] Fix for bug/feature request i#8288

2010-12-01 Thread Mattias Johnsson
On 2 December 2010 01:31, Lubos Lunak wrote: > On Wednesday 01 of December 2010, Jan Holesovsky wrote: >> >  There appears to be a helper class for this, SwCrsrSaveState. Except >> > that it >> > doesn't seem to work, as far as I can judge SwCursor::RestoreState() >> > doesn't >> > really restore

Re: [Libreoffice] [PATCH] Fix for bug/feature request i#8288

2010-12-01 Thread Mattias Johnsson
On 2 December 2010 07:23, Michael Meeks wrote: > Hi Matthias, > > On Sun, 2010-11-28 at 14:40 +1100, Mattias Johnsson wrote: >> Patch ensures that after doing "replace all" the cursor is left at >> original position, rather than moved to the position of the last

Re: [Libreoffice] [PUSHED] Re: [PATCH] Fix for bug/feature request i#8288

2010-12-01 Thread Mattias Johnsson
On 2 December 2010 01:05, Lubos Lunak wrote: > On Wednesday 01 of December 2010, Jan Holesovsky wrote: >> Hi Mattias, >> >> Mattias Johnsson píše v Ne 28. 11. 2010 v 14:40 +1100: >> > Also one of the easy hacks. >> > >> > Patch ensures that

Re: [Libreoffice] [PUSHED] Re: [PATCH] Fix for bug/feature request i#8288

2010-12-01 Thread Mattias Johnsson
On 2 December 2010 00:30, Jan Holesovsky wrote: > Hi Mattias, > > Mattias Johnsson píše v Ne 28. 11. 2010 v 14:40 +1100: > >> Also one of the easy hacks. >> >> Patch ensures that after doing "replace all" the cursor is left at >> original position,

Re: [Libreoffice] Script to find undocumented classes

2010-12-01 Thread Mattias Johnsson
>> Personally I think it would be very nice if source files had just a few >> lines of comment telling what they are about, from a very high perspective. >> Every time I am searching for the implementation of some functionality in >> the OOo/LO codebase, I find myself looking at source files with v

Re: [Libreoffice] [Crazy Ideas] Discuss

2010-11-29 Thread Mattias Johnsson
On 30 November 2010 11:34, Joe Smith wrote: > I was also having a lot of trouble learning anything from running OOo under > gdb. Gdb was acting weird and I couldn't step through the code and poke > around. I ended up trying to do it by adding a printf, rebuild, run, rinse, > repeat. No fun; less p

[Libreoffice] [PATCH] Fix for bug/feature request i#8288

2010-11-27 Thread Mattias Johnsson
f1b3245474 Mon Sep 17 00:00:00 2001 From: Mattias Johnsson Date: Sun, 28 Nov 2010 13:37:12 +1100 Subject: [PATCH] Fix for i#12345: "Replace all" should leave the cursor at original position --- sw/source/ui/uiview/viewsrch.cxx |9 + 1 files changed, 9 insertions(+), 0 deleti

Re: [Libreoffice] Location of SfxPoolItem.Type() method

2010-11-22 Thread Mattias Johnsson
On 23 November 2010 16:59, David Tardon wrote: > On Tue, Nov 23, 2010 at 04:14:01PM +1100, Mattias Johnsson wrote: >> >> On a semi-related note, I'm doing a lot of stepping through the search >> and replace code trying to track the problem down. Because LO seems to &g

Re: [Libreoffice] Location of SfxPoolItem.Type() method

2010-11-22 Thread Mattias Johnsson
On 22 November 2010 21:22, Michael Meeks wrote: > Hi Mattias, > > On Sun, 2010-11-21 at 00:21 +1100, Mattias Johnsson wrote: >> I've been trying to fix a bug in the search and replace code, and >> after a bit of hacking have discovered that in findattr.cxx there'

Re: [Libreoffice] Location of SfxPoolItem.Type() method

2010-11-20 Thread Mattias Johnsson
On 21 November 2010 01:04, Miklos Vajna wrote: > On Sun, Nov 21, 2010 at 12:21:08AM +1100, Mattias Johnsson > wrote: >> int SfxPoolItem::operator==( const SfxPoolItem& rCmp ) const >> { >>     DBG_CHKTHIS(SfxPoolItem, 0); >>     return rCmp.Type() == Type(); &

[Libreoffice] Location of SfxPoolItem.Type() method

2010-11-20 Thread Mattias Johnsson
Hello all, I've been trying to fix a bug in the search and replace code, and after a bit of hacking have discovered that in findattr.cxx there's a function int CmpAttr( const SfxPoolItem& rItem1, const SfxPoolItem& rItem2 ) { ... return rItem1 == rItem2; } In the bugged case this returns tru

[Libreoffice] [LibreOffice] [PATCH] Fix typo in Impress (i105883 and i102212)

2010-11-14 Thread Mattias Johnsson
ince they're not going to be pulling the fix from LO, right? Patches contributed under MPL 1.1 / GPLv3+ / LGPLv3+ licenses. Cheers, Mattias From b4396f4690e66aeb66c8f8422ae2c120481885a9 Mon Sep 17 00:00:00 2001 From: Mattias Johnsson Date: Sun, 14 Nov 2010 20:54:59 +1100 Subject: [PA

[Libreoffice] [PATCH] Clean up compiler warnings in writer/sw module

2010-11-06 Thread Mattias Johnsson
9b3c1b53f576d8b4f96573d Mon Sep 17 00:00:00 2001 From: Mattias Johnsson Date: Sat, 6 Nov 2010 22:31:51 +1100 Subject: [PATCH] Clean up compiler warnings --- sw/source/core/edit/edsect.cxx |4 ++-- sw/source/core/frmedt/tblsel.cxx|4 ++-- sw/source/core/layout/paintfrm.cxx | 10 ++

Re: [Libreoffice] [PATCH] Fix bug where an opening quote mark is treated as a word

2010-11-05 Thread Mattias Johnsson
On 6 November 2010 12:13, John LeMoyne Castle wrote: > > Hi all, > Ok, after getting over a short-term dislike of Word Count - with a new found > appreciation for some of the developer comments in OOo issuezilla - I had a > new idea for a test plan.  Perhaps turning on the Scanner clipping has > *

Re: [Libreoffice] [PATCH] Fix bug where an opening quote mark is treated as a word

2010-11-05 Thread Mattias Johnsson
On 5 November 2010 20:16, Cedric Bosdonnat wrote: > Hi Mattias, > > On Fri, 2010-11-05 at 10:38 +1100, Mattias Johnsson wrote: >> There isn't a bug report in the LO tracker, but there are quite a few >> in the OO.o issue tracker. The basic issue number is 89042, wit

Re: [Libreoffice] [PATCH] Fix bug where an opening quote mark is treated as a word

2010-11-04 Thread Mattias Johnsson
On 5 November 2010 02:29, Cedric Bosdonnat wrote: > Hi Mattias, > > On Thu, 2010-11-04 at 23:41 +1100, Mattias Johnsson wrote: >> > Patch attached. It's a very minimal change, so it's probably safe to >> > push into the 3.3 branch as well as master. > >

Re: [Libreoffice] build problem in instsetoo_native module on linux x86-64

2010-11-04 Thread Mattias Johnsson
On 4 November 2010 20:07, Thorsten Behrens wrote: > Mattias Johnsson wrote: >> Unfortunately, LO no longer builds. I get the following error when I >> try to build in the instsetoo_native directory. >> >> ERROR: The following files could not be found: >> ERROR

Re: [Libreoffice] [PATCH] Fix bug where an opening quote mark is treated as a word

2010-11-04 Thread Mattias Johnsson
; On Thu, 2010-11-04 at 23:38 +1100, Mattias Johnsson wrote: >> Patch attached. It's a very minimal change, so it's probably safe to >> push into the 3.3 branch as well as master. > > It seems that you forgot to actually attach the patch ;) > > Regards, >

Re: [Libreoffice] [PATCH] Fix bug where an opening quote mark is treated as a word

2010-11-04 Thread Mattias Johnsson
On 4 November 2010 23:38, Mattias Johnsson wrote: > After spending a number of hours learning more about unicode than I > ever wanted to know, I've fixed the bug where the word counter in > Writer counts an opening quote mark (unicode symbol 0x201C) as an extra > word. >

[Libreoffice] [PATCH] Fix bug where an opening quote mark is treated as a word

2010-11-04 Thread Mattias Johnsson
After spending a number of hours learning more about unicode than I ever wanted to know, I've fixed the bug where the word counter in Writer counts an opening quote mark (unicode symbol 0x201C) as an extra word. Turns out that the opening quote lives in unicode block 40, which was not given an ass

[Libreoffice] build problem in instsetoo_native module on linux x86-64

2010-11-03 Thread Mattias Johnsson
Since I've faffed around so much with my current git tree, I just blew it all away and downloaded the new git master since that's now been branched from 3.3. Unfortunately, LO no longer builds. I get the following error when I try to build in the instsetoo_native directory. ERROR: The following f

Re: [Libreoffice] How to write debug output to console or file?

2010-10-29 Thread Mattias Johnsson
Great, that's just what I need. Thanks! On 29 October 2010 18:52, Cedric Bosdonnat wrote: > Hi Mattias, > > On Fri, 2010-10-29 at 15:49 +1100, Mattias Johnsson wrote: >> To help with debugging, it'd be very useful for me to be able to write >> out variable values f

[Libreoffice] How to write debug output to console or file?

2010-10-28 Thread Mattias Johnsson
Hello, To help with debugging, it'd be very useful for me to be able to write out variable values from within the code. Writing to the console or a file would be fine. std::cout doesn't work with any of the internal (unicode) string types like OUString. Is there a way to cast them to something th

Re: [Libreoffice] [PATCH] Fix for bug / feature request 30550 - Character count without spaces

2010-10-27 Thread Mattias Johnsson
On 28 October 2010 08:42, LeMoyne wrote: > > Using the following sample from a git patch one can see one way in which the > current counting method comes up with fewer words than other methods do. > +1747,9 > 1.7.0.4 > 14 characters on two lines: either 2, 3 or 6 words depending on how you > count

Re: [Libreoffice] [PATCH] Fix for bug / feature request 30550 - Character count without spaces

2010-10-27 Thread Mattias Johnsson
i Mattias, > > On Wed, 2010-10-27 at 18:26 +1100, Mattias Johnsson wrote: >> Here are my patches for the easy hack / programming task "Count >> characters without whitespace in the Writer statistics." Since it's >> something translators have apparently been ask

Re: [Libreoffice] [PATCH] Fix for bug / feature request 30550 - Character count without spaces

2010-10-27 Thread Mattias Johnsson
On 27 October 2010 23:38, Cedric Bosdonnat wrote: > Hi Mattias, > > On Wed, 2010-10-27 at 18:26 +1100, Mattias Johnsson wrote: >> Here are my patches for the easy hack / programming task "Count >> characters without whitespace in the Writer statistics." Since it&

[Libreoffice] [PATCH] Fix for bug / feature request 30550 - Character count without spaces

2010-10-27 Thread Mattias Johnsson
ous to me how to fix it, but hopefully it'll be blindingly obvious to someone else. Please examine, test, and tell me if I've done stuff that's horribly wrong :-P Patches contributed under MPL 1.1 / GPLv3+ / LGPLv3+ licenses. Cheers, Mattias From 5ac50b845feab1ab1901cd52593237c3676e09

Re: [Libreoffice] How can I speed up a build?

2010-10-25 Thread Mattias Johnsson
build, yay :-) I'll check out icecream though; sounds good. Thanks again! On 25 October 2010 23:59, Michael Meeks wrote: > Hi Mattias, > > On Sat, 2010-10-23 at 13:15 +1100, Mattias Johnsson wrote: >> it seems that everything is rebuilt which takes hours, even if only a

Re: [Libreoffice] [PATCH] universal LibO URE packaging breaks in instsetoo_native (was: Debian packaging in universal LibO seems broken)

2010-10-23 Thread Mattias Johnsson
Hello, I'd also hit this bug, and was unable to build LibreOffice on my machine - 64-bit Ubuntu Linux. I can confirm that this patch fixes the problem, at least on my machine. Cheers, Mattias On 23 October 2010 17:33, Giuseppe Castagno wrote: > Hi all, > > this is a resubmitting, because I thi

[Libreoffice] How can I speed up a build?

2010-10-22 Thread Mattias Johnsson
Hello all, Two (probably idiotic) questions. First, when I refresh my master branch with ~/loroot $ ga pull -r and then make via ~/loroot/rawbuild $ ./autogen.sh --with-num-cpus=5 --without-junit --disable-kde ~/loroot/rawbuild $ make it seems that everything is rebuilt which takes hours, even

[Libreoffice] [PATCH] Remove bogus version control comments

2010-10-17 Thread Mattias Johnsson
ation and submission process. Patch is contributed under the LGPLv3+. If the format is incorrect and should be submitted another way, please let me know! From 34f8ed2ae24e75f46b2cdd98b0653165b07f8ef3 Mon Sep 17 00:00:00 2001 From: Mattias Johnsson Date: Sun, 17 Oct 2010 22:30:14 +1100 Subject: [

[Libreoffice] [PATCH] Remove bogus version control comments

2010-10-17 Thread Mattias Johnsson
34f8ed2ae24e75f46b2cdd98b0653165b07f8ef3 Mon Sep 17 00:00:00 2001 From: Mattias Johnsson Date: Sun, 17 Oct 2010 22:30:14 +1100 Subject: [PATCH] Remove bogus version control comments --- sw/source/core/access/accmap.cxx | 128 ++--- 1 files changed, 7 insertions