Re: help how to create a patch

2015-09-23 Thread John D'Orazio
Exactly, that's what I had in mind, a kind of helper function for a more permanent solution. In the meantime I'm beginning to look over the source code to familiarize myself, to see if I can contribute such a solution. We'll see how far I get... Il 23/set/2015 03:32, "Carl Marcum" ha scritto: > O

Re: help how to create a patch

2015-09-22 Thread Carl Marcum
On 09/22/2015 01:25 PM, John D'Orazio wrote: Damjan thank you for the interest, xPropertySet is coming from the current ViewCursor: //In the initialize method of the main class we get the XFrame of our current application m_xFrame = (com.sun.star.frame.XFrame)UnoRuntime.queryInterfa

Re: help how to create a patch

2015-09-22 Thread John D'Orazio
Damjan thank you for the interest, xPropertySet is coming from the current ViewCursor: //In the initialize method of the main class we get the XFrame of our current application m_xFrame = (com.sun.star.frame.XFrame)UnoRuntime.queryInterface( com.sun.star.frame.XFrame.cl

Re: help how to create a patch

2015-09-22 Thread Damjan Jovanovic
Hi John Yes, you can see what the different directories are for on https://wiki.openoffice.org/wiki/Source_code_directories I understand about the colors. But I can't tell where your xPropertySet comes from. It is critical to know that. Is it obtained from the text cursor like the Basic example o

Re: help how to create a patch

2015-09-22 Thread John D'Orazio
Ok I'll take a look at that area of the wiki, in the meantime I have found that the Writer code is under the main/sw folder (in fact I corrected a page of the wiki that said it was under main/sd, which is instead the Draw application...) I posted some code samples in the forum thread that I opened

Re: help how to create a patch

2015-09-22 Thread Damjan Jovanovic
Hi John Have you looked at the development documentation for Writer (https://wiki.openoffice.org/wiki/Writer)? It would also help if you posted a code sample so we can see what you are trying to set the color on. Damjan On Mon, Sep 21, 2015 at 9:17 PM, John D'Orazio wrote: > Does anyone know i

Re: help how to create a patch

2015-09-21 Thread John D'Orazio
Does anyone know if the Writer application uses some kind of canvas interface for formatting and displaying text? I'm picking up on "canvas" here and there but I'm not sure if it's only for the Drawing application, or if all Applications use a form of canvas. I'm guessing the problem with the Java

Re: help how to create a patch

2015-09-21 Thread John D'Orazio
Thanks for the tip on OpenGrok! it rocks :D did a search in 887 milliseconds, not bad at all. I guess it has the source code already indexed so it's a lot faster. That's a big help! On Mon, Sep 21, 2015 at 8:20 PM, Damjan Jovanovic wrote: > I use Eclipse but I first build OpenOffice and then onl

Re: help how to create a patch

2015-09-21 Thread Damjan Jovanovic
I use Eclipse but I first build OpenOffice and then only open 1 module at a time. If you plan to open the entire project, you'll need a lot of RAM and to increase Eclipse/Java memory limits. Regards Damjan On Mon, Sep 21, 2015 at 7:47 PM, John D'Orazio wrote: > Ok I'm trying to get the sources o

Re: help how to create a patch

2015-09-21 Thread Andrea Pescetti
John D'Orazio wrote: Ok I'm trying to get the sources on my local computer to take a better look at them, it'll be easier to search them locally Not necessarily. Opengrok is your friend in many cases: http://opengrok.adfinis-sygroup.org/source/ Does anyone use Eclipse to work with the source

Re: help how to create a patch

2015-09-21 Thread John D'Orazio
Ok I'm trying to get the sources on my local computer to take a better look at them, it'll be easier to search them locally and start to get to know them. Does anyone use Eclipse to work with the source code? I'm giving it a try to see if it is feasible... I saw this page

Re: help how to create a patch

2015-09-19 Thread John D'Orazio
Yes I tried setting the CharBackTransparent boolean also, it had no effect. >From my latest "research" I believe that it's not the case that transparent and opaque values are being exchange, it's simply that OpenOffice doesn't support transparency for background colors and because of this seems to

Re: help how to create a patch

2015-09-19 Thread Carl Marcum
On 09/17/2015 07:24 PM, John D'Orazio wrote: I believe I have found what can be considered a bug, or at least not intended behaviour, in the way the OpenOffice API takes values from Java when setting certain text properties (in this case "CharBackColor") using the XPropertySet interface. I have b

help how to create a patch

2015-09-17 Thread John D'Orazio
I believe I have found what can be considered a bug, or at least not intended behaviour, in the way the OpenOffice API takes values from Java when setting certain text properties (in this case "CharBackColor") using the XPropertySet interface. I have been discussing this on a forum thread ( https:/