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 <john.dora...@cappellaniauniroma3.org> wrote: > 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 values having the alpha bit and the > Uno/Basic values not having the alpha bit for Character Background Color > would need to be addressed somewhere around where the values are passed > between the two, or where the value is actually set to the Writer > interface. I'm still trying to get an idea of how the source code is > organized... > > On Mon, Sep 21, 2015 at 8:45 PM, John D'Orazio < > john.dora...@cappellaniauniroma3.org> wrote: > >> 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 <dam...@apache.org> >> wrote: >> >>> 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 >>> <john.dora...@cappellaniauniroma3.org> 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 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 >>> > <https://wiki.openoffice.org/wiki/OpenOffice_and_Eclipse> that says it >>> > should be doable. >>> > >>> > On Sat, Sep 19, 2015 at 7:18 PM, John D'Orazio < >>> > john.dora...@cappellaniauniroma3.org> wrote: >>> > >>> >> 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 use "0x00" for the alpha bit (which would normally >>> mean >>> >> transparent rather than opaque!). >>> >> The problem is that the Java Color Object and any other kind of Color >>> >> handling such as with JColorChooser, always set the alpha bit. So I'm >>> >> having to explicitly unset the alpha bit / set it to 0x00 before >>> trying to >>> >> set the background color. >>> >> I believe this is something that can / should be handled behind the >>> >> scenes, by the OpenOffice API. If it doesn't support transparency it >>> should >>> >> however check for the alpha bit and set it to whatever it likes it to >>> be. >>> >> So anyone trying to set transparency will simply get opaque, rather >>> than >>> >> get nothing. >>> >> >>> >> >>> >> On Sat, Sep 19, 2015 at 4:31 PM, Carl Marcum <cmar...@apache.org> >>> wrote: >>> >> >>> >>> 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 been discussing this on a forum >>> >>>> thread ( >>> >>>> >>> https://forum.openoffice.org/en/forum/viewtopic.php?f=44&t=79294&p=364347 >>> >>>> ) >>> >>>> and have opened an issue for it on the bugzilla tracker ( >>> >>>> https://bz.apache.org/ooo/show_bug.cgi?id=126531). >>> >>>> >>> >>>> I would be willing to look into it and work on a patch for this, if >>> >>>> anyone >>> >>>> can point me in the right direction of where exactly to look in the >>> Open >>> >>>> Office source code... I have been skimming over it in the svn repo ( >>> >>>> https://svn.apache.org/repos/asf/openoffice/trunk/), but for a >>> newcomer >>> >>>> it's hard to know where to look (I'm guessing it might have to do >>> with >>> >>>> the >>> >>>> XPropertySet interface, or wherever the Text Properties supported by >>> the >>> >>>> interface are defined). If anyone can point me in the right >>> direction I >>> >>>> can >>> >>>> try to look into it... >>> >>>> >>> >>>> Hi John, >>> >>> >>> >>> I'm actually just beginning to look into how the java jars are built >>> so I >>> >>> may need corrected by someone. >>> >>> >>> >>> I think the java files are "Built" from IDL files and packaged into >>> the >>> >>> jar files during a build process. >>> >>> >>> >>> I have only svn checked out the AOO code last night and begun looking. >>> >>> >>> >>> For instance if you search the codebase for XPropertySet the only java >>> >>> files I have found are in QA type directories. >>> >>> >>> >>> Have you tried to additionally set the CharBackTransparent boolean >>> >>> property as well [1]. >>> >>> >>> >>> [1] >>> >>> >>> https://www.openoffice.org/api/docs/common/ref/com/sun/star/style/CharacterProperties.html#CharBackColor >>> >>> >>> >>> Thanks, >>> >>> Carl >>> >>> >>> >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> >>> To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org >>> >>> For additional commands, e-mail: dev-h...@openoffice.apache.org >>> >>> >>> >>> >>> >> >>> > >>> > >>> > -- >>> > John R. D'Orazio >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org >>> For additional commands, e-mail: dev-h...@openoffice.apache.org >>> >>> >> >> >> -- >> John R. D'Orazio >> > > > > -- > John R. D'Orazio --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org