Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hello Everyone,
I'm very excited to do this task in GSOC 2013. My name is Gergő Mocsi and
Iám a student ant Eötvös Loránd University in Budapest, Hungary. Here's
what I've alredy figured out:
the problem in BASIC language is that it can handle only Object type, and
other can be created with createUnoService(...) etc. First, I have to add
support to the other type. Here is an example how I wan to do this:

Dim filepicker As Object
filepicker = createUnoService("com.sun.star.ui.dialogs.FilePicker")

these two lines create a FilePicker that will show up. Later can be used
like this:

filepicker.setDisplayDirectory(".")
filepicker.Title = title
filepicker.execute()
files = filepicker.getFiles()

This code sets the display directory and title of the filepicker, and the
execute() method shows it. After that, we get back the selected file.
So, if we had a FilePicker type in BASIC, we could do the code completition
(beacuse the IDE doesn't know the type, ONLY when executed the code).
So, I'd like to implement these types to BASIC language and it would look
like this:
eg. Dim filepicker as com.sun.star.ui.dialogs.FilePicker
instead of the two lones mentioned above. This would give them a Java-like
object hierarchy (that Object type could be the ancestor of them). So the
first, I'd like to add language support (for recognizing), and then the
iplementation. This means a lot of work, beacuse there are a lot of
interfaces to do. Any better ideas?

Regards,
Gergő Mocsi
IRC:stalker08

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.