Moin Dániel,

Darabos Dániel wrote:
Dear Ocke,

I have checked out rptchart02, and have compiled it to work with OOo
2.4 (I needed to change a file, I have attached the diff in case you
are interested).
Thanks. I'll put it in a new cws when rptchart02 is integrated. Could you please submit an issue where you attach the patch file. Thanks.
I would like to ask for a bit of help though.

Our extension is a UNO component and its output is a vector drawing.
Do you think that with rptchart02 Sun Report Builder would now be able
to accomodate such an extension? I got my hopes high, because charts
are similar to some extent, but from looking at the source code I find
that it is very specific to charts and not easily extended to other
UNO components.
Yes it should work. When you create a new function like for example Author-function.java and you put the component context in the same list as the AUTHOR keyword, you can access it in your function. Your function has to do the same what it does in the ImageProducer. The functions gets evaluated and the result will be send to the image producer. So I guess 100 lines of code :-) But may be one or more things have to be done which we currently don't see. I would start by search for Author and Title in Java and in properties files.
In fact I do not understand why Sun Report Builder writes the XML
directly when generating the report instead of using UNO to build and
save a document. I think that the current approach is rather rigid and
at the same time requires lots of extra effort on your part (writing
more and more complex XML generators). What was the reason for this
approach?
It should be possible to generate many reports at a time. Where the resulting documents don't need to be loaded. Another reason is speed ;-)

Best regards,

Ocke
Cheers,

Daniel


On Thu, Jun 12, 2008 at 6:50 AM, Ocke Janssen <[EMAIL PROTECTED]> wrote:
Moin Daniel,

Darabos Dániel wrote:
Thanks for the answer!

I will look into rptchart02, it sounds like a Promised Land :). Is it
only going to be integrated in OOo 3.0, or will its features come
earlier as an update to the extension?

The feature to insert charts into the report will be available in a
DEv300m20 or m21. But to extend the function set is already possible.
At the moment I don't know exactly but it looks good the engine will be
released earlier as OOo3.0. It still works with earlier versions and the new
feature se t is simply unused in that versions.

Best regards,

Ocke
Best regards,

Daniel


On Wed, Jun 11, 2008 at 4:15 PM, Ocke Janssen <[EMAIL PROTECTED]>
wrote:

Hi Daniel Darabos,

Please note I answer the mail in dev@dba.openoffice.org, which really is
the more appropriate for this kind of discussion. Please also stick to
this list - doing all this in private communication sounds like a waste
of knowledge to me. Thanks.


Darabos Dániel wrote:

Dear Ocke,

I am a developer from MultiRacio Ltd., responsible for the
"EuroOffice" brand of extensions. Seeing how useful and popular Sun
Report Builder is, we had the idea of bringing the functionality of
EuroOffice Map Chart to it. It would allow adding automatically
generated map charts to your reports.

To read about EuroOffice Map Chart here is its page in the Extension
Repository:

http://extensions.services.openoffice.org/project/eurooffice-mapchart

We now have a prototype of this integration working.

That sounds really cool. :-)

Unfortunately for this to work, I had to modify two files in the Java
source of Sun Report Builder.
In SOReportJobFactory.java I made m_cmpCtx
public static so I could get a UNO ServiceManager in
ImageProducer.java. In ImageProducer.java if the image data is a
string and starts with "map:" I instanciate
com.multiracio.MapChartProfessional, give it the image data and use
the image returned by EuroOffice Map Chart in the document.

If you would like to open up Sun Report Builder to extensions, I think
this could be a very effortless approach. There would just need to be
a registry for Sun Report Builder plugins, and they could register for
handling different "protocols" (such as
"com.multiracio.MapChartProfessional" for "map:").

The prototype of EuroOffice Map Chart Professional now works by adding
a new menu item to the "Insert" menu of
com.sun.star.report.ReportDefinition (through the
UIConfigurationManager), which opens a dialog, and creates an image
object with a data field that is a formula expression that will
evaluate to a string starting with "map:" and containing possibly
different data for different instances (such as in the example).


I don't know if it is a good idea to introduce a new URL for "map:". A
better approach for me would be to use a function like
"rpt:MapChartProfessional(args)". In cws rptchart02 I introduced two new
functions "Author" and "Title" which can be used as template. all what
need
to be done is add the service factory to the configuration like it was
done
for Author.


If you have any questions about using it, let me know. It is supposed
to be installed after the modified Sun Report Builder is installed, so
that the menu is correctly extended.

Now we are sure all this would be a nice feature for users. But we are
not sure about how to go ahead with providing this solution.



The easiest way for me is that you submit a patch file. I'll verify and
check before I integrate it into the source code. ;-)

The ideal scenario for us would be if a cleaned up version of this
extensibility feature could be integrated into future versions of Sun
Report Builder. This would also open up the way for other Sun Report
Builder extensions, a very useful example of which would be an
integration of regular charts.

That is done in cws rptchart02. You can use charts as you can in for
example
in OOoCalc.

I would be more than glad to cooperate
with you on making this happen. (Of course my understanding of the Sun
Report Builder sources is a bit limited, but with your guidance I
could probably write most of the code.)


Feel free to ask any question which come to your mind. I'll try my best
to
answer them ;-)

We could also possibly provide a patched variant of the newest Sun
Report Builder versions for download for users of EuroOffice Map
Chart, but this would be quite an awkward solution, and I am not even
sure about its legal circumstances, so I would like to avoid this
approach.


+1

Please let me know what you think about all this! I am looking forward
to your answer.


Really great.

Best regards,

Ocke

Best regards,

Daniel Darabos


--
Ocke Janssen                      Tel: +49 40 23646 661, x66661
Dipl. Inf(FH)                     Fax: +49 40 23646 550
Sun Microsystems Inc.
Nagelsweg 55                     mailto:[EMAIL PROTECTED]
D-20097 Hamburg                   http://www.sun.com/staroffice

Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551
Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Ocke Janssen                      Tel: +49 40 23646 661, x66661
Dipl. Inf(FH)                     Fax: +49 40 23646 550
Sun Microsystems Inc.
Nagelsweg 55                     mailto:[EMAIL PROTECTED]
D-20097 Hamburg                   http://www.sun.com/staroffice

Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551
Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering



------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Ocke Janssen                      Tel: +49 40 23646 661, x66661
Dipl. Inf(FH)                     Fax: +49 40 23646 550
Sun Microsystems Inc.
Nagelsweg 55                     mailto:[EMAIL PROTECTED]
D-20097 Hamburg                   http://www.sun.com/staroffice

Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering

Reply via email to