<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Gergő<br>
On 29/05/13 15:16, Gergő Mocsi wrote:<br>
</div>
<blockquote
cite="mid:CAPGU2Ldv2=WDkNm344tL0f1nPmHfech0JHdf-4A=2Rnj7ktzOQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hello Everyone,
<div style="">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:</div>
</div>
</blockquote>
Congratulations on being accepted, we are delighted that you are
going to be working on this project, I am particularly excited and
looking forward to working with you on this project !!!!<br>
<blockquote
cite="mid:CAPGU2Ldv2=WDkNm344tL0f1nPmHfech0JHdf-4A=2Rnj7ktzOQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="">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:</div>
<div style=""><br>
</div>
<div style="">Dim filepicker As Object</div>
<div style="">
<div>filepicker =
createUnoService("com.sun.star.ui.dialogs.FilePicker")</div>
<div><br>
</div>
<div style="">these two lines create a FilePicker that will
show up. Later can be used like this:</div>
<div style=""><br>
</div>
<div style="">
<div>filepicker.setDisplayDirectory(".")</div>
<div>filepicker.Title = title</div>
<div>filepicker.execute()</div>
<div><span style="white-space:pre">f</span>iles =
filepicker.getFiles()</div>
<div><br>
</div>
<div style="">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.</div>
<div style="">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).</div>
<div style="">So, I'd like to implement these types to BASIC
language and it would look like this:</div>
<div style="">eg. Dim filepicker as
com.sun.star.ui.dialogs.FilePicker</div>
</div>
</div>
</div>
</blockquote>
I think you are on the right track :-) However you are jumping
forward a number of steps :-)) ( and I like small manageable steps
that my puny brain can process )<br>
<br>
Also I think we need to distinguish between defining an object as a
certain type and additionally defining an 'instance' of that type<br>
<br>
so... something like<br>
<br>
a) Dim filepicker as new com.sun.star.ui.dialogs.FilePicker ' to
declare a variable pointing to a new instance<br>
b) Dim filepicker as com.sun.star.ui.dialogs.FilePicker ' for just
declaring a variable<br>
<br>
but... "com.sun.star.ui.dialogs.FilePicker" is a service and not a
type ( and currently there is no afaik way to get the primary
interface associated with a service from a service name )<br>
But I like your idea and when the bones of the support is in place I
think we can think about some shortcuts and possibly getting some
information in the registry that would allow what you suggest to be
possible<br>
<br>
Personally though I think we need to start with b) it is sort of the
'base' usage, so.. something like<br>
<br>
Dim filepicker as com.sun.star.ui.dialogs.XFilePicker3<br>
<br>
and yes the above is quite a mouthful ( but.. for a further step we
could introduce some namespace magic ) and get<br>
<br>
Dim filepicker as ui.dialogs.XFilePicker3<br>
<br>
or even<br>
<br>
Dim filepicker as XFilePicker3<br>
<br>
(and eventually with some help from a tweaked registry )<br>
<br>
Dim filepicker as FilePicker '( which basic would understand and Dim
filepicker as com.sun.star.ui.dialogs.XFilePicker3 )<br>
<br>
But... lets talk about this maybe tomorrow, we should meet up in
anycase to just even say hello. I will try to write some very rough
ideas of where to start with this, we can then discuss that in some
more detail<br>
<br>
Once again, congratulations and welcome<br>
<br>
Noel<br>
<br>
<br>
ps. good choice of example <br>
</body>
</html>