Sidebar for Developers

2013-06-10 Thread Andre Fischer

Hi,

I have created a new Wiki page for developers how want to add new panels 
to the sidebar [1].  At the moment it focuses on the explanation of a 
demo extension that with some Java code shows an analog clock in a new 
"Tools" deck.  The part that explains how a sidebar panel extension 
works in general has to be extended in the future.  But it's a start.


Until I find a better place, maybe in the SDK, the source code (as 
Eclipse project) [3] and OXT file [2] can be found on my apache people 
directory.


I also have a question for those of you with a better understanding of 
Mediawiki: do we have an extension that allows syntax highlighting of 
XML and Java code snippets?


Regards,
Andre

[1] http://wiki.openoffice.org/wiki/Sidebar_for_Developers
[2] http://people.apache.org/~af/clock/AnalogClock.oxt
[3] http://people.apache.org/~af/clock/AnalogClock.zip

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-10 Thread Regina Henschel

Hi Andre,

Andre Fischer schrieb:

Hi,

I have created a new Wiki page for developers how want to add new panels
to the sidebar [1].  At the moment it focuses on the explanation of a
demo extension that with some Java code shows an analog clock in a new
"Tools" deck.  The part that explains how a sidebar panel extension
works in general has to be extended in the future.  But it's a start.


That is a good idea. It's too bad, that I have no time now but have to 
wait till school holidays for to play around with this feature.




Until I find a better place, maybe in the SDK, the source code (as
Eclipse project) [3] and OXT file [2] can be found on my apache people
directory.

I also have a question for those of you with a better understanding of
Mediawiki: do we have an extension that allows syntax highlighting of
XML and Java code snippets?


Yes, the extension SyntaxHighlight GeSHi, see 
http://www.mediawiki.org/wiki/Syntaxhighlight and 
http://wiki.openoffice.org/wiki/Help:SyntaxHighlight_GeSHi


For XML I have used for example




I don't know, whether all languages mentioned in 
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Supported_languages 
are actual supported in our Wiki.


Kind regards
Regina

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-11 Thread Andre Fischer

On 10.06.2013 19:06, Regina Henschel wrote:

Hi Andre,

Andre Fischer schrieb:

Hi,

I have created a new Wiki page for developers how want to add new panels
to the sidebar [1].  At the moment it focuses on the explanation of a
demo extension that with some Java code shows an analog clock in a new
"Tools" deck.  The part that explains how a sidebar panel extension
works in general has to be extended in the future.  But it's a start.


That is a good idea. It's too bad, that I have no time now but have to 
wait till school holidays for to play around with this feature.


Great.  Then I am looking forward to the school holidays :-)





Until I find a better place, maybe in the SDK, the source code (as
Eclipse project) [3] and OXT file [2] can be found on my apache people
directory.

I also have a question for those of you with a better understanding of
Mediawiki: do we have an extension that allows syntax highlighting of
XML and Java code snippets?


Yes, the extension SyntaxHighlight GeSHi, see 
http://www.mediawiki.org/wiki/Syntaxhighlight and 
http://wiki.openoffice.org/wiki/Help:SyntaxHighlight_GeSHi


For XML I have used for example





I did find this in am internet search but id did not work, or so I 
thought.  I seems that it does not work in the preview mode.  After 
saving my changes the syntax highlighting works well.

Thank you.

-Andre



I don't know, whether all languages mentioned in 
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Supported_languages 
are actual supported in our Wiki.


Kind regards
Regina

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-11 Thread Jörg Schmidt
Hello Andre, 

> From: Andre Fischer [mailto:awf@gmail.com] 

> I have created a new Wiki page for developers how want to add 
> new panels 
> to the sidebar [1].  At the moment it focuses on the explanation of a 
> demo extension that with some Java code shows an analog clock 
> in a new 
> "Tools" deck.  The part that explains how a sidebar panel extension 
> works in general has to be extended in the future.  But it's a start.
> 
> Until I find a better place, maybe in the SDK, the source code (as 
> Eclipse project) [3] and OXT file [2] can be found on my 
> apache people 
> directory.

Thank you for this work.


I have the following questions:

1.
Can you please still give an example of normal controls? (Buttons, combo boxes,
...)

2.
Your example is implemented in Java, there are also ways in StarBasic? 
Maybe it also needs a 'bridge' in Java or C++, but there is a way?

(With 'bridge' I mean for example technically to provide a new UNO-service, 
which
would then allow access with StarBasic.)



Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-11 Thread Jürgen Schmidt
On 6/11/13 12:29 PM, Jörg Schmidt wrote:
> Hello Andre, 
> 
>> From: Andre Fischer [mailto:awf@gmail.com] 
> 
>> I have created a new Wiki page for developers how want to add 
>> new panels 
>> to the sidebar [1].  At the moment it focuses on the explanation of a 
>> demo extension that with some Java code shows an analog clock 
>> in a new 
>> "Tools" deck.  The part that explains how a sidebar panel extension 
>> works in general has to be extended in the future.  But it's a start.
>>
>> Until I find a better place, maybe in the SDK, the source code (as 
>> Eclipse project) [3] and OXT file [2] can be found on my 
>> apache people 
>> directory.
> 
> Thank you for this work.
> 
> 
> I have the following questions:
> 
> 1.
> Can you please still give an example of normal controls? (Buttons, combo 
> boxes,
> ...)

the SDK contains examples how to use UNO awt controls

> 
> 2.
> Your example is implemented in Java, there are also ways in StarBasic? 
> Maybe it also needs a 'bridge' in Java or C++, but there is a way?
> 
> (With 'bridge' I mean for example technically to provide a new UNO-service, 
> which
> would then allow access with StarBasic.)

bridge is not the correct term here but anyway. Currently it is not
possible to use Basic in the context of the sidebar. But it would
definitely a good enhancement.

Something comparable to UnoDialogProvider where you can use a dialog xml
description as input ... There are probably more things that have to be
taken into account. For example layouting etc. Nothing planned or
designed yet.

Nothing that can be achieved for AOO 4.0.

Juergen


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-11 Thread Jörg Schmidt
> From: Jürgen Schmidt [mailto:jogischm...@gmail.com] 

> > 1.
> > Can you please still give an example of normal controls? 
> (Buttons, combo boxes,
> > ...)
> 
> the SDK contains examples how to use UNO awt controls

Is not really you serious ;-)

My problem is *not* control itself but a concrete example of the sidebar with
controls. Or is there a Such in the SDK already?

> bridge is not the correct term here but anyway. 

And what is the correct term, i think UNO-service.

For example, in Munich, I have certainly worked with SimpleConfig
(http://www.wollmux.net/wiki/SimpleConfig) and this is technically a (in my 
words,
new or user-defined) UNO-service.

> But it would
> definitely a good enhancement.

Yes, I think so too.


Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-11 Thread Andre Fischer

On 11.06.2013 13:22, Jörg Schmidt wrote:

From: Jürgen Schmidt [mailto:jogischm...@gmail.com]

1.
Can you please still give an example of normal controls?

(Buttons, combo boxes,

...)

the SDK contains examples how to use UNO awt controls

Is not really you serious ;-)

My problem is *not* control itself but a concrete example of the sidebar with
controls. Or is there a Such in the SDK already?


bridge is not the correct term here but anyway.

And what is the correct term, i think UNO-service.

For example, in Munich, I have certainly worked with SimpleConfig
(http://www.wollmux.net/wiki/SimpleConfig) and this is technically a (in my 
words,
new or user-defined) UNO-service.


I tried to download this extension but the link on the Wiki page to the 
source code download page is broken.  After searching and finding it I 
discovered that you have to register to be allowed to download it.  I am 
not willing to do that.
Therefore I do not know how the service(s) in SimpleConfig are 
implemented or which language is used to do that.


-Andre




But it would
definitely a good enhancement.

Yes, I think so too.


Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-11 Thread Andre Fischer

On 11.06.2013 12:29, Jörg Schmidt wrote:

Hello Andre,


From: Andre Fischer [mailto:awf@gmail.com]
I have created a new Wiki page for developers how want to add
new panels
to the sidebar [1].  At the moment it focuses on the explanation of a
demo extension that with some Java code shows an analog clock
in a new
"Tools" deck.  The part that explains how a sidebar panel extension
works in general has to be extended in the future.  But it's a start.

Until I find a better place, maybe in the SDK, the source code (as
Eclipse project) [3] and OXT file [2] can be found on my
apache people
directory.

Thank you for this work.


I have the following questions:

1.
Can you please still give an example of normal controls? (Buttons, combo boxes,
...)


Maybe in the future.  This extension is not about its content.  Its 
focus is on demonstrating on how to add a panel and a deck to the 
sidebar.  Once you have an XWindow for the new panel, it is up to you to 
fill it with something meaningful.




2.
Your example is implemented in Java, there are also ways in StarBasic?
Maybe it also needs a 'bridge' in Java or C++, but there is a way?


Juergen has answered this already.
I would like to add that you can use any language that a) is supported 
by UNO and b) in which you can create new UNO services.


-Andre



(With 'bridge' I mean for example technically to provide a new UNO-service, 
which
would then allow access with StarBasic.)



Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-11 Thread Jürgen Schmidt
On 6/11/13 1:22 PM, Jörg Schmidt wrote:
>> From: Jürgen Schmidt [mailto:jogischm...@gmail.com] 
> 
>>> 1.
>>> Can you please still give an example of normal controls? 
>> (Buttons, combo boxes,
>>> ...)
>>
>> the SDK contains examples how to use UNO awt controls
> 
> Is not really you serious ;-)
> 
> My problem is *not* control itself but a concrete example of the sidebar with
> controls. Or is there a Such in the SDK already?

there is at least a custom panel example in the SDK in C++

Andre provided the sources of his demo, the important pieces are there
and how to use UNO awt controls can be find in several examples in the
SDK, the wiki or the net.

Sure it would be nice to have a step by step example for those who
prefer to pick everything from a silver plate but we don't have time
for that now ;-)

> 
>> bridge is not the correct term here but anyway. 
> 
> And what is the correct term, i think UNO-service.
> 
> For example, in Munich, I have certainly worked with SimpleConfig
> (http://www.wollmux.net/wiki/SimpleConfig) and this is technically a (in my 
> words,
> new or user-defined) UNO-service.

I don't know the details of this and I personally have no interest to
look deeper in it.

But I am interested in a clean approach to support Basic in the sidebar
and volunteers can join the dev list and can work with us here in the
project.

Juergen

> 
>> But it would
>> definitely a good enhancement.
> 
> Yes, I think so too.
> 
> 
> Greetings,
> Jörg
> 
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
> For additional commands, e-mail: dev-h...@openoffice.apache.org
> 


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-11 Thread Jörg Schmidt
> From: Andre Fischer [mailto:awf@gmail.com] 

> I tried to download this extension but the link on the Wiki 
> page to the 
> source code download page is broken.  After searching and 
> finding it I 
> discovered that you have to register to be allowed to 
> download it.  I am 
> not willing to do that.

I had this extension not at all addressed if I had not found the public website.

But I have saved the extension also here with me, I will send them to you via 
PM?

> Therefore I do not know how the service(s) in SimpleConfig are 
> implemented or which language is used to do that.

The language is Java.


Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-11 Thread Jörg Schmidt
> But I am interested in a clean approach to support Basic in 
> the sidebar
> and volunteers can join the dev list and can work with us here in the
> project.

I would be very interested to take part me when you tell me how I can help.
Unfortunately not I program in Java or C++.

In the concrete, I hope it could be a way to functionality via a 'unserdefined'
'bridge' (in the sense of a UN service, which would be addressed also by
StarBasic) to open up.
Better would be of course, as you rightly say, a direct access via StarBasic, 
that
needs to be but then implemetiert in AOO directly.



Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-12 Thread Andre Fischer

On 12.06.2013 08:59, Jörg Schmidt wrote:

From: Andre Fischer [mailto:awf@gmail.com]
I tried to download this extension but the link on the Wiki
page to the
source code download page is broken.  After searching and
finding it I
discovered that you have to register to be allowed to
download it.  I am
not willing to do that.

I had this extension not at all addressed if I had not found the public website.

But I have saved the extension also here with me, I will send them to you via 
PM?


Yes, please.




Therefore I do not know how the service(s) in SimpleConfig are
implemented or which language is used to do that.

The language is Java.


Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-12 Thread Andre Fischer

On 12.06.2013 08:59, Jörg Schmidt wrote:

But I am interested in a clean approach to support Basic in
the sidebar
and volunteers can join the dev list and can work with us here in the
project.

I would be very interested to take part me when you tell me how I can help.
Unfortunately not I program in Java or C++.


Sounds good.  I have heard of a UI editor (written in Basic?) that 
produces XML resource files that can be used in extensions.  Maybe you 
can tell me how this works.  And/or design a little dialog that can be 
used in a second demo extension for the sidebar.  I would then provide 
the Java part of that extension.


-Andre



In the concrete, I hope it could be a way to functionality via a 'unserdefined'
'bridge' (in the sense of a UN service, which would be addressed also by
StarBasic) to open up.
Better would be of course, as you rightly say, a direct access via StarBasic, 
that
needs to be but then implemetiert in AOO directly.



Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-12 Thread Jörg Schmidt
> From: Andre Fischer [mailto:awf@gmail.com] 

> Sounds good.  I have heard of a UI editor (written in Basic?) that 
> produces XML resource files that can be used in extensions.  
> Maybe you 
> can tell me how this works.  And/or design a little dialog 
> that can be 
> used in a second demo extension for the sidebar.  I would 
> then provide 
> the Java part of that extension.

I do not know which editor you mean.

But, with XML resource files, you mean something like:



http://openoffice.org/2000/dialog";
xmlns:script="http://openoffice.org/2000/script"; dlg:id="Dialog3a" 
dlg:left="157"
dlg:top="86" dlg:width="121" dlg:height="43" dlg:closeable="true"
dlg:moveable="true" dlg:title="Hilfe/Lizenz">
 
  
 
 
  
   
  
  
   
  
 




Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-12 Thread Andre Fischer

On 12.06.2013 10:24, Jörg Schmidt wrote:

From: Andre Fischer [mailto:awf@gmail.com]
Sounds good.  I have heard of a UI editor (written in Basic?) that
produces XML resource files that can be used in extensions.
Maybe you
can tell me how this works.  And/or design a little dialog
that can be
used in a second demo extension for the sidebar.  I would
then provide
the Java part of that extension.

I do not know which editor you mean.

But, with XML resource files, you mean something like:



http://openoffice.org/2000/dialog";
xmlns:script="http://openoffice.org/2000/script"; dlg:id="Dialog3a" 
dlg:left="157"
dlg:top="86" dlg:width="121" dlg:height="43" dlg:closeable="true"
dlg:moveable="true" dlg:title="Hilfe/Lizenz">
  
   
  
  
   

   
   

   
  



Yes, exactly.  If you have an idea for a demo panel and can design the 
dialog then I can wrap a Java extension around it.


-Andre




Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-13 Thread Jörg Schmidt
> From: Andre Fischer [mailto:awf@gmail.com] 

> Yes, exactly.  If you have an idea for a demo panel 

Yes, I have - a variable import extension for csv files in Calc. Users complain
about the normal import always the defaults are not permanently(!) changed.

> and can 
> design the 
> dialog 

Ok, I can do that. I need few days.

But can I also use these entries:



what I mean is that the macros (in StarBasic) will work then? Then that would 
be a
really useful example of a sidebar-extension.

> then I can wrap a Java extension around it.

Ok, fine.


Greetings,
Jörg



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-13 Thread Andre Fischer

On 13.06.2013 09:44, Jörg Schmidt wrote:

From: Andre Fischer [mailto:awf@gmail.com]
Yes, exactly.  If you have an idea for a demo panel

Yes, I have - a variable import extension for csv files in Calc. Users complain
about the normal import always the defaults are not permanently(!) changed.


Please keep in mind that we are talking about a demo.  Its purpose is to 
teach developers how to develop an extension, not to provide missing 
functionality.  It should not be too complicated.  Besides, an import 
dialog is something that is only used when you begin to edit a 
document.  After that it would just takes up space in the sidebar.  But 
maybe I am misunderstanding what you have in mind.





and can
design the
dialog

Ok, I can do that. I need few days.


Take your time.



But can I also use these entries:



what I mean is that the macros (in StarBasic) will work then? Then that would 
be a
really useful example of a sidebar-extension.


I don't know.  I stopped programming Basic two decades ago.   The Basic 
part is your problem :-)


-Andre





then I can wrap a Java extension around it.

Ok, fine.


Greetings,
Jörg



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-06-13 Thread Jörg Schmidt
Hello Andre, 

> From: Andre Fischer [mailto:awf@gmail.com] 

> Please keep in mind that we are talking about a demo.  Its 
> purpose is to 
> teach developers how to develop an extension, not to provide missing 
> functionality.  It should not be too complicated.  Besides, an import 
> dialog is something that is only used when you begin to edit a 
> document.  After that it would just takes up space in the 
> sidebar.  But 
> maybe I am misunderstanding what you have in mind.

Yes, of course. Do not worry.



> I don't know.  I stopped programming Basic two decades ago.   
> The Basic 
> part is your problem :-)

The macro itself will work, my question is whether you can take it directly to 
the
extension with.

Example:

script:macro-name="vnd.sun.star.script:mottco.Module1.hilfe_aufrufen?language=Basi
c&location=application"

is a clear indication of where the macro is to be found, so you could also 
install
separately from your sidebar extension, but I hope that you can grab it directly
into the SideBar extension. That's what I meant.

I mean:
The Strukture of your extension is:

icons
META-INF
registry
<...>.jar
description.xml

and I hope this can be:

myMacro
icons
META-INF
registry
<...>.jar
description.xml

and the contents of "myMacro" is then:

Script.xlb
Dialog.xlb
Module1.xba
Dialog1.xdl
...

where Module1.xba is the starbasic code.


Greetings,
Jörg



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-09-26 Thread Jörg Schmidt
Hello,
 
> From: Andre Fischer [mailto:awf@gmail.com] 

> Yes, exactly.  If you have an idea for a demo panel and can 
> design the 
> dialog then I can wrap a Java extension around it.
> 
> -Andre

It took a long time but here is my example, a simple search for writer.

Can you please help me now?


The complete example-extension can be found here:
http://calc-info.de/files/demo_textsuche.oxt

Here is the dialogue:



http://openoffice.org/2000/dialog";
xmlns:script="http://openoffice.org/2000/script"; dlg:id="dlg_textsuche"
dlg:left="243" dlg:top="165" dlg:width="178" dlg:height="180" 
dlg:closeable="true"
dlg:moveable="true" dlg:title="Demo_Textsuche">
 
  
  
  
  
   
  
  
  
  
  
   
  
 




Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-09-28 Thread Mike Dupont
I am interested in creating a non modal search dialog, something
docked would be best. the dialog is getting in the way of the text.
Is there any way to do that?
mike

On Thu, Sep 26, 2013 at 2:19 AM, Jörg Schmidt  wrote:
> Hello,
>
>> From: Andre Fischer [mailto:awf@gmail.com]
>
>> Yes, exactly.  If you have an idea for a demo panel and can
>> design the
>> dialog then I can wrap a Java extension around it.
>>
>> -Andre
>
> It took a long time but here is my example, a simple search for writer.
>
> Can you please help me now?
>
>
> The complete example-extension can be found here:
> http://calc-info.de/files/demo_textsuche.oxt
>
> Here is the dialogue:
>
> 
>  "dialog.dtd">
> http://openoffice.org/2000/dialog";
> xmlns:script="http://openoffice.org/2000/script"; dlg:id="dlg_textsuche"
> dlg:left="243" dlg:top="165" dlg:width="178" dlg:height="180" 
> dlg:closeable="true"
> dlg:moveable="true" dlg:title="Demo_Textsuche">
>  
>dlg:width="168" dlg:height="23" dlg:value="Diese Extension dient zur 
> Demonstration
> des Einbindens von Steuerelementen in die AOO-Sidebar." dlg:multiline="true"/>
>dlg:top="49"
> dlg:width="166" dlg:height="16"/>
>dlg:width="57" dlg:height="12" dlg:value="Suchtext:"/>
>dlg:width="60" dlg:height="16" dlg:value="Suche Nächsten">
> script:macro-name="vnd.sun.star.script:Demo_Textsuche.textsuche.Suche_Einzel?langu
> age=Basic&location=application" script:language="Script"/>
>   
>dlg:width="115" dlg:height="30" dlg:value="Lizenz: 
Apache License, 
> Version
> 2.0
Copyright 2013, Jörg Schmidt" dlg:align="right" 
> dlg:multiline="true"/>
>dlg:width="57" dlg:height="12" dlg:value="Ersetze durch:"/>
>dlg:top="106"
> dlg:width="166" dlg:height="16"/>
>dlg:width="60" dlg:height="16" dlg:value="Ersetze Nächsten">
> script:macro-name="vnd.sun.star.script:Demo_Textsuche.textsuche.Ersetze_Einzel?lan
> guage=Basic&location=application" script:language="Script"/>
>   
>  
> 
>
>
>
> Greetings,
> Jörg
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
> For additional commands, e-mail: dev-h...@openoffice.apache.org
>



-- 
James Michael DuPont
Member of Free Libre Open Source Software Kosova http://flossk.org
Saving wikipedia(tm) articles from deletion http://SpeedyDeletion.wikia.com
Contributor FOSM, the CC-BY-SA map of the world http://fosm.org
Mozilla Rep https://reps.mozilla.org/u/h4ck3rm1k3
Free Software Foundation Europe Fellow http://fsfe.org/support/?h4ck3rm1k3

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-09-28 Thread Jörg Schmidt
Hello, 

> -Original Message-
> From: Mike Dupont [mailto:jamesmikedup...@googlemail.com] 
> Sent: Saturday, September 28, 2013 4:26 PM
> To: dev
> Subject: Re: Sidebar for Developers

Your question has nothing to do with the topic of the thread.

*Why you do not open a new thread?*


> I am interested in creating a non modal search dialog, 

Here is a very simple example for a non-modal dialog:

Sub status()
warten_model = CreateUnoService("com.sun.star.awt.UnoControlDialogModel")
warten_model.setPropertyValue("Width",  150) '343
warten_model.setPropertyValue("Height", 20)
warten_model.SetPropertyValue("Title","Bitte etwas Geduld")

oMod_warten =
warten_model.createInstance("com.sun.star.awt.UnoControlFixedTextModel")
With oMod_warten
   .setPropertyValue("Name","warten1")
   .setPropertyValue("PositionX",5) '192
   .setPropertyValue("PositionY",5)
   .setPropertyValue("Width",140)
   .setPropertyValue("Height",13)
   .setPropertyValue("Label","...")
End With
warten_model.insertByName("warten1", oMod_warten)
warten_dialog = CreateUnoService("com.sun.star.awt.UnoControlDialog")
warten_dialog.setModel(warten_model)

oWin2 = CreateUnoService("com.sun.star.awt.Toolkit")
warten_dialog.createPeer(oWin2, null)
warten_dialog.setVisible(True)

for i = 0 To 5 Step 10
   warten_dialog.Model.getByName("warten1").Label = i & " Werte verglichen"
next i

warten_dialog.setVisible(False)
End Sub

> something
> docked would be best. 

I do not know


Greetings,
Jörg



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-01 Thread Andre Fischer

On 26.09.2013 09:19, Jörg Schmidt wrote:

Hello,
  

From: Andre Fischer [mailto:awf@gmail.com]
Yes, exactly.  If you have an idea for a demo panel and can
design the
dialog then I can wrap a Java extension around it.

-Andre

It took a long time but here is my example, a simple search for writer.


That's OK.  I just came back from my vacation and am now catching up on  
emails.




Can you please help me now?


I will try.  Can you tell me, what the extension does and how you want 
it to work and look?


-Andre




The complete example-extension can be found here:
http://calc-info.de/files/demo_textsuche.oxt

Here is the dialogue:



http://openoffice.org/2000/dialog";
xmlns:script="http://openoffice.org/2000/script"; dlg:id="dlg_textsuche"
dlg:left="243" dlg:top="165" dlg:width="178" dlg:height="180" 
dlg:closeable="true"
dlg:moveable="true" dlg:title="Demo_Textsuche">
  
   
   
   
   

   
   
   
   
   

   
  




Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-03 Thread Jörg Schmidt
Hello, 

> From: Andre Fischer [mailto:awf@gmail.com] 

> > It took a long time but here is my example, a simple search 
> for writer.
> 
> That's OK.  I just came back from my vacation and am now 
> catching up on  
> emails.
> 
> >
> > Can you please help me now?
> 
> I will try.  Can you tell me, what the extension does and how 
> you want 
> it to work and look?

The extension function is very simple, there is a dialog with two text fields to
enter a search string and a replacement text, and two buttons to start searching
or replacing. The extension is for writer.

So not much function but it is indeed primarily an example of integration in the
sidebar

This dialogue should now be implemented, he works as a sidebar, so:

2 text fields for entering
4 Label Fields
2 buttons to launch two Basic Macros



Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-03 Thread James Michael DuPont
>>The extension function is very simple, there is a dialog with two text
fields to
>> enter a search string and a replacement text, and two buttons to start
searching
>>or replacing. The extension is for writer.
That is what I would like to have as well. We have some code that runs in a
modal dialog now and would like to have it in the sidebar like the normal
search and replace works.
mike


On Thu, Oct 3, 2013 at 4:37 AM, Jörg Schmidt  wrote:

> Hello,
>
> > From: Andre Fischer [mailto:awf@gmail.com]
>
> > > It took a long time but here is my example, a simple search
> > for writer.
> >
> > That's OK.  I just came back from my vacation and am now
> > catching up on
> > emails.
> >
> > >
> > > Can you please help me now?
> >
> > I will try.  Can you tell me, what the extension does and how
> > you want
> > it to work and look?
>
> The extension function is very simple, there is a dialog with two text
> fields to
> enter a search string and a replacement text, and two buttons to start
> searching
> or replacing. The extension is for writer.
>
> So not much function but it is indeed primarily an example of integration
> in the
> sidebar
>
> This dialogue should now be implemented, he works as a sidebar, so:
>
> 2 text fields for entering
> 4 Label Fields
> 2 buttons to launch two Basic Macros
>
>
>
> Greetings,
> Jörg
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
> For additional commands, e-mail: dev-h...@openoffice.apache.org
>
>


Re: Sidebar for Developers

2013-10-07 Thread Andre Fischer

On 03.10.2013 17:22, James Michael DuPont wrote:

The extension function is very simple, there is a dialog with two text

fields to

enter a search string and a replacement text, and two buttons to start

searching

or replacing. The extension is for writer.

That is what I would like to have as well. We have some code that runs in a
modal dialog now and would like to have it in the sidebar like the normal
search and replace works.
mike


On Thu, Oct 3, 2013 at 4:37 AM, Jörg Schmidt  wrote:


Hello,


From: Andre Fischer [mailto:awf@gmail.com]

It took a long time but here is my example, a simple search

for writer.

That's OK.  I just came back from my vacation and am now
catching up on
emails.


Can you please help me now?

I will try.  Can you tell me, what the extension does and how
you want
it to work and look?

The extension function is very simple, there is a dialog with two text
fields to
enter a search string and a replacement text, and two buttons to start
searching
or replacing. The extension is for writer.

So not much function but it is indeed primarily an example of integration
in the
sidebar

This dialogue should now be implemented, he works as a sidebar, so:

2 text fields for entering
4 Label Fields
2 buttons to launch two Basic Macros


OK, I will see what I can do.  Just give me some time.

-Andre





Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org





-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-09 Thread Andre Fischer

On 03.10.2013 11:37, Jörg Schmidt wrote:

Hello,


From: Andre Fischer [mailto:awf@gmail.com]

It took a long time but here is my example, a simple search

for writer.

That's OK.  I just came back from my vacation and am now
catching up on
emails.


Can you please help me now?

I will try.  Can you tell me, what the extension does and how
you want
it to work and look?

The extension function is very simple, there is a dialog with two text fields to
enter a search string and a replacement text, and two buttons to start searching
or replacing. The extension is for writer.

So not much function but it is indeed primarily an example of integration in the
sidebar

This dialogue should now be implemented, he works as a sidebar, so:

2 text fields for entering
4 Label Fields
2 buttons to launch two Basic Macros



I was somewhat but not entirely successful in turning your BASIC script 
into a sidebar panel.


I have created an Eclipse project of the sidebar panel [1].   Run the 
'oxt' target of the Ant build file to create the file 
SidebarBasicPanelDemo.oxt in the dist/ directory.   Install this 
extension in a 4.* OpenOffice and restart.  Now you should see in the 
sidebar tab bar a new entry with a gear icon.  Click on it to swtich to 
the demo panel.


What works is that the dialog is displayed as expected.  Callbacks into 
the BASIC script work also.


What does not work is that the BASIC script can not access the dialog 
for eg retrieval of the search strings.  The reason for that is that the 
dialog is not created from the script in the 'Start_dialog' function but 
on the Java side of the implementation. I tried to call from Java into 
BASIC with the dialog object.  The call works, but I did not get the 
public BASIC variable 'ts_dialog' to work.  When you click on the 'Suche 
Nächsten' button then the ts_dialog value is empty again.


But maybe this is a good thing, because every document has its own side 
bar and its own BASIC dialog.  Using a single global variable to hold 
the dialog would not work.  As I do not know OpenOffice BASIC well 
enough to know if and how object orientation works, I did not try to fix 
this.
I also do not know how to change the event callbacks to pass parameters 
to the BASIC script.  Without parameters, your BASIC script does not 
know from which instance of the dialog it has been called and thus could 
not retrieve the search string, even if it could access the dialogs.


Using the BASIC dialog but do the implementation in Java would be much 
easier and more reliable.


Best regards,

Andre


[1] http://people.apache.org/~af/SidebarBasicDemo.zip



Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-09 Thread Rony G. Flatscher (Apache)

On 09.10.2013 14:42, Andre Fischer wrote:
> On 03.10.2013 11:37, Jörg Schmidt wrote:
>> Hello,
>>
>>> From: Andre Fischer [mailto:awf@gmail.com]
 It took a long time but here is my example, a simple search
>>> for writer.
>>>
>>> That's OK.  I just came back from my vacation and am now
>>> catching up on
>>> emails.
>>>
 Can you please help me now?
>>> I will try.  Can you tell me, what the extension does and how
>>> you want
>>> it to work and look?
>> The extension function is very simple, there is a dialog with two text 
>> fields to
>> enter a search string and a replacement text, and two buttons to start 
>> searching
>> or replacing. The extension is for writer.
>>
>> So not much function but it is indeed primarily an example of integration in 
>> the
>> sidebar
>>
>> This dialogue should now be implemented, he works as a sidebar, so:
>>
>> 2 text fields for entering
>> 4 Label Fields
>> 2 buttons to launch two Basic Macros
>>
>
> I was somewhat but not entirely successful in turning your BASIC script into 
> a sidebar panel.
>
> I have created an Eclipse project of the sidebar panel [1].   Run the 'oxt' 
> target of the Ant
> build file to create the file SidebarBasicPanelDemo.oxt in the dist/ 
> directory.   Install this
> extension in a 4.* OpenOffice and restart.  Now you should see in the sidebar 
> tab bar a new entry
> with a gear icon.  Click on it to swtich to the demo panel.
>
> What works is that the dialog is displayed as expected.  Callbacks into the 
> BASIC script work also.
>
> What does not work is that the BASIC script can not access the dialog for eg 
> retrieval of the
> search strings.  The reason for that is that the dialog is not created from 
> the script in the
> 'Start_dialog' function but on the Java side of the implementation. I tried 
> to call from Java into
> BASIC with the dialog object.  The call works, but I did not get the public 
> BASIC variable
> 'ts_dialog' to work.  When you click on the 'Suche Nächsten' button then the 
> ts_dialog value is
> empty again.
>
> But maybe this is a good thing, because every document has its own side bar 
> and its own BASIC
> dialog.  Using a single global variable to hold the dialog would not work.  
> As I do not know
> OpenOffice BASIC well enough to know if and how object orientation works, I 
> did not try to fix this.
> I also do not know how to change the event callbacks to pass parameters to 
> the BASIC script. 
> Without parameters, your BASIC script does not know from which instance of 
> the dialog it has been
> called and thus could not retrieve the search string, even if it could access 
> the dialogs.
>
> Using the BASIC dialog but do the implementation in Java would be much easier 
> and more reliable.
>
> Best regards,
>
> Andre
>
>
> [1] http://people.apache.org/~af/SidebarBasicDemo.zip
Very interesting!

Would it be possible for you use e.g. BeanShell, JavaScript, Pyhton,  instead 
of AOO Basic to fetch
the values in the Basic dialog one way or another? If so, could you please 
create such a sidebar
extension too, which could serve as a great template for script coders to take 
advantage of the new
sidebar feature?

---rony



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-09 Thread Mike Dupont
Thank you so much andre, I will see if we can use this!
mike

On Wed, Oct 9, 2013 at 7:42 AM, Andre Fischer  wrote:
> On 03.10.2013 11:37, Jörg Schmidt wrote:
>>
>> Hello,
>>
>>> From: Andre Fischer [mailto:awf@gmail.com]

 It took a long time but here is my example, a simple search
>>>
>>> for writer.
>>>
>>> That's OK.  I just came back from my vacation and am now
>>> catching up on
>>> emails.
>>>
 Can you please help me now?
>>>
>>> I will try.  Can you tell me, what the extension does and how
>>> you want
>>> it to work and look?
>>
>> The extension function is very simple, there is a dialog with two text
>> fields to
>> enter a search string and a replacement text, and two buttons to start
>> searching
>> or replacing. The extension is for writer.
>>
>> So not much function but it is indeed primarily an example of integration
>> in the
>> sidebar
>>
>> This dialogue should now be implemented, he works as a sidebar, so:
>>
>> 2 text fields for entering
>> 4 Label Fields
>> 2 buttons to launch two Basic Macros
>>
>
> I was somewhat but not entirely successful in turning your BASIC script into
> a sidebar panel.
>
> I have created an Eclipse project of the sidebar panel [1].   Run the 'oxt'
> target of the Ant build file to create the file SidebarBasicPanelDemo.oxt in
> the dist/ directory.   Install this extension in a 4.* OpenOffice and
> restart.  Now you should see in the sidebar tab bar a new entry with a gear
> icon.  Click on it to swtich to the demo panel.
>
> What works is that the dialog is displayed as expected.  Callbacks into the
> BASIC script work also.
>
> What does not work is that the BASIC script can not access the dialog for eg
> retrieval of the search strings.  The reason for that is that the dialog is
> not created from the script in the 'Start_dialog' function but on the Java
> side of the implementation. I tried to call from Java into BASIC with the
> dialog object.  The call works, but I did not get the public BASIC variable
> 'ts_dialog' to work.  When you click on the 'Suche Nächsten' button then the
> ts_dialog value is empty again.
>
> But maybe this is a good thing, because every document has its own side bar
> and its own BASIC dialog.  Using a single global variable to hold the dialog
> would not work.  As I do not know OpenOffice BASIC well enough to know if
> and how object orientation works, I did not try to fix this.
> I also do not know how to change the event callbacks to pass parameters to
> the BASIC script.  Without parameters, your BASIC script does not know from
> which instance of the dialog it has been called and thus could not retrieve
> the search string, even if it could access the dialogs.
>
> Using the BASIC dialog but do the implementation in Java would be much
> easier and more reliable.
>
> Best regards,
>
> Andre
>
>
> [1] http://people.apache.org/~af/SidebarBasicDemo.zip
>
>
>>
>> Greetings,
>> Jörg
>>
>>
>> -
>> To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
>> For additional commands, e-mail: dev-h...@openoffice.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
> For additional commands, e-mail: dev-h...@openoffice.apache.org
>



-- 
James Michael DuPont
Member of Free Libre Open Source Software Kosova http://flossk.org
Saving wikipedia(tm) articles from deletion http://SpeedyDeletion.wikia.com
Contributor FOSM, the CC-BY-SA map of the world http://fosm.org
Mozilla Rep https://reps.mozilla.org/u/h4ck3rm1k3
Free Software Foundation Europe Fellow http://fsfe.org/support/?h4ck3rm1k3

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-10 Thread Jörg Schmidt
Hello Andre, *, 

> From: Andre Fischer [mailto:awf@gmail.com] 

> I was somewhat but not entirely successful in turning your 
> BASIC script 
> into a sidebar panel.

Thank you very much.

But ...

> I have created an Eclipse project of the sidebar panel [1].   Run the 
> 'oxt' target of the Ant build file to create the file 
> SidebarBasicPanelDemo.oxt in the dist/ directory.   

What should I do exactly? I do not know, because I am not familiar with Eclipse.

Could not you please create a finished oxt?


Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-10 Thread Jürgen Schmidt
On 10/9/13 3:01 PM, Rony G. Flatscher (Apache) wrote:
> 
> On 09.10.2013 14:42, Andre Fischer wrote:
>> On 03.10.2013 11:37, Jörg Schmidt wrote:
>>> Hello,
>>>
 From: Andre Fischer [mailto:awf@gmail.com]
> It took a long time but here is my example, a simple search
 for writer.

 That's OK.  I just came back from my vacation and am now
 catching up on
 emails.

> Can you please help me now?
 I will try.  Can you tell me, what the extension does and how
 you want
 it to work and look?
>>> The extension function is very simple, there is a dialog with two text 
>>> fields to
>>> enter a search string and a replacement text, and two buttons to start 
>>> searching
>>> or replacing. The extension is for writer.
>>>
>>> So not much function but it is indeed primarily an example of integration 
>>> in the
>>> sidebar
>>>
>>> This dialogue should now be implemented, he works as a sidebar, so:
>>>
>>> 2 text fields for entering
>>> 4 Label Fields
>>> 2 buttons to launch two Basic Macros
>>>
>>
>> I was somewhat but not entirely successful in turning your BASIC script into 
>> a sidebar panel.
>>
>> I have created an Eclipse project of the sidebar panel [1].   Run the 'oxt' 
>> target of the Ant
>> build file to create the file SidebarBasicPanelDemo.oxt in the dist/ 
>> directory.   Install this
>> extension in a 4.* OpenOffice and restart.  Now you should see in the 
>> sidebar tab bar a new entry
>> with a gear icon.  Click on it to swtich to the demo panel.
>>
>> What works is that the dialog is displayed as expected.  Callbacks into the 
>> BASIC script work also.
>>
>> What does not work is that the BASIC script can not access the dialog for eg 
>> retrieval of the
>> search strings.  The reason for that is that the dialog is not created from 
>> the script in the
>> 'Start_dialog' function but on the Java side of the implementation. I tried 
>> to call from Java into
>> BASIC with the dialog object.  The call works, but I did not get the public 
>> BASIC variable
>> 'ts_dialog' to work.  When you click on the 'Suche Nächsten' button then the 
>> ts_dialog value is
>> empty again.
>>
>> But maybe this is a good thing, because every document has its own side bar 
>> and its own BASIC
>> dialog.  Using a single global variable to hold the dialog would not work.  
>> As I do not know
>> OpenOffice BASIC well enough to know if and how object orientation works, I 
>> did not try to fix this.
>> I also do not know how to change the event callbacks to pass parameters to 
>> the BASIC script. 
>> Without parameters, your BASIC script does not know from which instance of 
>> the dialog it has been
>> called and thus could not retrieve the search string, even if it could 
>> access the dialogs.
>>
>> Using the BASIC dialog but do the implementation in Java would be much 
>> easier and more reliable.
>>
>> Best regards,
>>
>> Andre
>>
>>
>> [1] http://people.apache.org/~af/SidebarBasicDemo.zip
> Very interesting!
> 
> Would it be possible for you use e.g. BeanShell, JavaScript, Pyhton,  instead 
> of AOO Basic to fetch
> the values in the Basic dialog one way or another? If so, could you please 
> create such a sidebar
> extension too, which could serve as a great template for script coders to 
> take advantage of the new
> sidebar feature?

Python should be no problem because it is a full language binding and
you can implement UNO objects in Python. The problem is more with
scripting languages where this is not possible.

But anyway to support Basic here better probably more work is necessary
and I don't see that this will happen soon. Any volunteers who are
interested to work on a better support? Without having real detail
knowledge I assume that we would need some helper in Basic to support
the management of dialogs/sidebar per frame/document and to allow easy
access to the underlying window controls...

But in general I would concentrate on other more powerful languages like
Java or Python instead of Basic.

Juergen


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-10 Thread Andre Fischer

On 10.10.2013 10:04, Jörg Schmidt wrote:

Hello Andre, *,


From: Andre Fischer [mailto:awf@gmail.com]
I was somewhat but not entirely successful in turning your
BASIC script
into a sidebar panel.

Thank you very much.

But ...


I have created an Eclipse project of the sidebar panel [1].   Run the
'oxt' target of the Ant build file to create the file
SidebarBasicPanelDemo.oxt in the dist/ directory.

What should I do exactly? I do not know, because I am not familiar with Eclipse.

Could not you please create a finished oxt?


I did not provide one on purpose because it does not work.  If you 
really want to use BASIC to implement the panel then you have to fix the 
callback/dialog reference issues.


But if you or anybody else want to give Java a try, I made another demo 
[2] and implemented a similar search dialog completely in Java.  Most of 
that demo extension is generic code that does not have to be modified 
for a real-life extension.  Any other language with complete UNO binding 
(like Python) should work very similar.


Look into its README file for an explanation of the individual files and 
pointers of what to change if you want to implement your own panels.


Here is how to import that ZIP file into Eclipse:

- Start a generic or Java-centric Eclipse
- Click menu entry File->Import...

In the 'Import' dialog
  - Select 'General->Existing Projects into Workspace'
  - Click 'Next >'
  - Select 'Select archive file:'
  - Click 'Browse...' and load the downloaded SidebarSearchDemo.zip
  - Click 'Finish'
A new entry should appear in the 'Package Explorer' (by default on the 
left side) labeld 'SidebarSearchDemo'.


- Locate the 'Ant' view.  If it is not open then
  - Click Window->Show View->Ant
- Drag-and-drop the 'SidebarSearchDemo' entry from the 'Package 
Explorer' to the 'Ant' view.

- Expand the new 'SidebarSearchDemoOXT' entry in the 'Ant' view.

- Double click on the 'oxt [default]' entry.
  This will build both the JAR and the OXT file.
- In OpenOffice open the extension manager and add the newly built
  SidebarSearchDemo.oxt.  It doesn't matter if one is already
  installed, it will be overwritten.
- Restart OpenOffice

Repeat the last step three steps (from double click on 'oxt' to restart) 
whenever you made changes and want to test them.


Regards,
Andre

[2] http://people.apache.org/~af/SidebarSearchDemo.zip




Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-10 Thread Jörg Schmidt
> From: Andre Fischer [mailto:awf@gmail.com] 

> I did not provide one on purpose because it does not work.  If you 
> really want to use BASIC to implement the panel then you have 
> to fix the 
> callback/dialog reference issues.

Sorry, I do not understand the situation.

>From the beginning I talked only about a *Basic* extension.

*Is it true that I can not use the sidebar using Basic Extension?* Or do I
understand this wrong?


> But if you or anybody else want to give Java a try, I made 
> another demo 
> [2] and implemented a similar search dialog completely in 
> Java.  Most of 
> that demo extension is generic code that does not have to be modified 
> for a real-life extension.  Any other language with complete 
> UNO binding 
> (like Python) should work very similar.
> 
> Look into its README file for an explanation of the 
> individual files and 
> pointers of what to change if you want to implement your own panels.
> 
> Here is how to import that ZIP file into Eclipse:
> 
> - Start a generic or Java-centric Eclipse
> - Click menu entry File->Import...
> 
> In the 'Import' dialog
>- Select 'General->Existing Projects into Workspace'
>- Click 'Next >'
>- Select 'Select archive file:'
>- Click 'Browse...' and load the downloaded SidebarSearchDemo.zip
>- Click 'Finish'
> A new entry should appear in the 'Package Explorer' (by 
> default on the 
> left side) labeld 'SidebarSearchDemo'.
> 
> - Locate the 'Ant' view.  If it is not open then
>- Click Window->Show View->Ant
> - Drag-and-drop the 'SidebarSearchDemo' entry from the 'Package 
> Explorer' to the 'Ant' view.
> - Expand the new 'SidebarSearchDemoOXT' entry in the 'Ant' view.
> 
> - Double click on the 'oxt [default]' entry.
>This will build both the JAR and the OXT file.
> - In OpenOffice open the extension manager and add the newly built
>SidebarSearchDemo.oxt.  It doesn't matter if one is already
>installed, it will be overwritten.
> - Restart OpenOffice
> 
> Repeat the last step three steps (from double click on 'oxt' 
> to restart) 
> whenever you made changes and want to test them.

Thank you for this work, not only helps me, because I understand neither Java 
nor
Eclipse

Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-10 Thread Jürgen Schmidt
On 10/10/13 1:28 PM, Jörg Schmidt wrote:
>> From: Andre Fischer [mailto:awf@gmail.com] 
> 
>> I did not provide one on purpose because it does not work.  If you 
>> really want to use BASIC to implement the panel then you have 
>> to fix the 
>> callback/dialog reference issues.
> 
> Sorry, I do not understand the situation.
> 
> From the beginning I talked only about a *Basic* extension.
> 
> *Is it true that I can not use the sidebar using Basic Extension?* Or do I
> understand this wrong?

you understand correct, it doesn't work with Basic and more work would
be necessary. Or potentially some Basic experts have some ideas how to
add the dialog as parameter to the callback functions.

Juergen

> 
> 
>> But if you or anybody else want to give Java a try, I made 
>> another demo 
>> [2] and implemented a similar search dialog completely in 
>> Java.  Most of 
>> that demo extension is generic code that does not have to be modified 
>> for a real-life extension.  Any other language with complete 
>> UNO binding 
>> (like Python) should work very similar.
>>
>> Look into its README file for an explanation of the 
>> individual files and 
>> pointers of what to change if you want to implement your own panels.
>>
>> Here is how to import that ZIP file into Eclipse:
>>
>> - Start a generic or Java-centric Eclipse
>> - Click menu entry File->Import...
>>
>> In the 'Import' dialog
>>- Select 'General->Existing Projects into Workspace'
>>- Click 'Next >'
>>- Select 'Select archive file:'
>>- Click 'Browse...' and load the downloaded SidebarSearchDemo.zip
>>- Click 'Finish'
>> A new entry should appear in the 'Package Explorer' (by 
>> default on the 
>> left side) labeld 'SidebarSearchDemo'.
>>
>> - Locate the 'Ant' view.  If it is not open then
>>- Click Window->Show View->Ant
>> - Drag-and-drop the 'SidebarSearchDemo' entry from the 'Package 
>> Explorer' to the 'Ant' view.
>> - Expand the new 'SidebarSearchDemoOXT' entry in the 'Ant' view.
>>
>> - Double click on the 'oxt [default]' entry.
>>This will build both the JAR and the OXT file.
>> - In OpenOffice open the extension manager and add the newly built
>>SidebarSearchDemo.oxt.  It doesn't matter if one is already
>>installed, it will be overwritten.
>> - Restart OpenOffice
>>
>> Repeat the last step three steps (from double click on 'oxt' 
>> to restart) 
>> whenever you made changes and want to test them.
> 
> Thank you for this work, not only helps me, because I understand neither Java 
> nor
> Eclipse
> 
> Greetings,
> Jörg
> 
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
> For additional commands, e-mail: dev-h...@openoffice.apache.org
> 


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-10 Thread Andre Fischer

On 10.10.2013 13:28, Jörg Schmidt wrote:

From: Andre Fischer [mailto:awf@gmail.com]
I did not provide one on purpose because it does not work.  If you
really want to use BASIC to implement the panel then you have
to fix the
callback/dialog reference issues.

Sorry, I do not understand the situation.

 From the beginning I talked only about a *Basic* extension.

*Is it true that I can not use the sidebar using Basic Extension?* Or do I
understand this wrong?


As far as I understand our variant of BASIC it is not possible to create 
a BASIC-only extension.  Therefore my idea was to create a Java-BASIC 
hybrid where the generic boilerplate code (factory, registration of 
services, etc) is written in Java and only the implementation of the 
actual panel is provided in BASIC.  But this does not seem to work 
either.  But maybe only my knowledge of OpenOffice BASIC is not good enough.


The Java-only solution that DOES work can probably be easily adopted to 
other languages with proper UNO binding.






But if you or anybody else want to give Java a try, I made
another demo
[2] and implemented a similar search dialog completely in
Java.  Most of
that demo extension is generic code that does not have to be modified
for a real-life extension.  Any other language with complete
UNO binding
(like Python) should work very similar.

Look into its README file for an explanation of the
individual files and
pointers of what to change if you want to implement your own panels.

Here is how to import that ZIP file into Eclipse:

- Start a generic or Java-centric Eclipse
- Click menu entry File->Import...

In the 'Import' dialog
- Select 'General->Existing Projects into Workspace'
- Click 'Next >'
- Select 'Select archive file:'
- Click 'Browse...' and load the downloaded SidebarSearchDemo.zip
- Click 'Finish'
A new entry should appear in the 'Package Explorer' (by
default on the
left side) labeld 'SidebarSearchDemo'.

- Locate the 'Ant' view.  If it is not open then
- Click Window->Show View->Ant
- Drag-and-drop the 'SidebarSearchDemo' entry from the 'Package
Explorer' to the 'Ant' view.
- Expand the new 'SidebarSearchDemoOXT' entry in the 'Ant' view.

- Double click on the 'oxt [default]' entry.
This will build both the JAR and the OXT file.
- In OpenOffice open the extension manager and add the newly built
SidebarSearchDemo.oxt.  It doesn't matter if one is already
installed, it will be overwritten.
- Restart OpenOffice

Repeat the last step three steps (from double click on 'oxt'
to restart)
whenever you made changes and want to test them.

Thank you for this work, not only helps me, because I understand neither Java 
nor
Eclipse


I am sorry to hear that.  Maybe this is a good oportunity to learn Java :-)

-Andre



Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-10 Thread Jörg Schmidt

> From: Jürgen Schmidt [mailto:jogischm...@gmail.com] 

> > *Is it true that I can not use the sidebar using Basic 
> Extension?* Or do I
> > understand this wrong?
> 
> you understand correct, it doesn't work with Basic and more work would
> be necessary. Or potentially some Basic experts have some ideas how to
> add the dialog as parameter to the callback functions.

One would have to think about it in detail, your proposal in principle could be 
a
possibility.


Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-10 Thread Jörg Schmidt
Hello,
 
> From: Andre Fischer [mailto:awf@gmail.com] 

> As far as I understand our variant of BASIC it is not 
> possible to create 
> a BASIC-only extension.  Therefore my idea was to create a Java-BASIC 
> hybrid where the generic boilerplate code (factory, registration of 
> services, etc) is written in Java and only the implementation of the 
> actual panel is provided in BASIC.  But this does not seem to work 
> either.  But maybe only my knowledge of OpenOffice BASIC is 
> not good enough.
> 
> The Java-only solution that DOES work can probably be easily 
> adopted to 
> other languages with proper UNO binding.

I think I understand what you mean, because I know of similar solutions.

Do you see a chance, we will discuss the details in German [*] and only the 
final
result again in English, here on the mailinglist?

[*]
We can communicate via PM or by telephone.


Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-14 Thread Andre Fischer

On 10.10.2013 15:08, Jörg Schmidt wrote:

Hello,
  

From: Andre Fischer [mailto:awf@gmail.com]
As far as I understand our variant of BASIC it is not
possible to create
a BASIC-only extension.  Therefore my idea was to create a Java-BASIC
hybrid where the generic boilerplate code (factory, registration of
services, etc) is written in Java and only the implementation of the
actual panel is provided in BASIC.  But this does not seem to work
either.  But maybe only my knowledge of OpenOffice BASIC is
not good enough.

The Java-only solution that DOES work can probably be easily
adopted to
other languages with proper UNO binding.

I think I understand what you mean, because I know of similar solutions.

Do you see a chance, we will discuss the details in German [*] and only the 
final
result again in English, here on the mailinglist?


Sure, we can discuss this in German off-list.  I would prefer an 
asynchronous medium, like email.


-Andre



[*]
We can communicate via PM or by telephone.


Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-14 Thread Andre Fischer

On 14.10.2013 17:08, Andre Fischer wrote:

On 10.10.2013 15:08, Jörg Schmidt wrote:

Hello,

From: Andre Fischer [mailto:awf@gmail.com]
As far as I understand our variant of BASIC it is not
possible to create
a BASIC-only extension.  Therefore my idea was to create a Java-BASIC
hybrid where the generic boilerplate code (factory, registration of
services, etc) is written in Java and only the implementation of the
actual panel is provided in BASIC.  But this does not seem to work
either.  But maybe only my knowledge of OpenOffice BASIC is
not good enough.

The Java-only solution that DOES work can probably be easily
adopted to
other languages with proper UNO binding.

I think I understand what you mean, because I know of similar solutions.

Do you see a chance, we will discuss the details in German [*] and 
only the final

result again in English, here on the mailinglist?


Sure, we can discuss this in German off-list.  I would prefer an 
asynchronous medium, like email.


That should have been "... German, off-list."



-Andre



[*]
We can communicate via PM or by telephone.


Greetings,
Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org






-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Sidebar for Developers

2013-10-16 Thread Jörg Schmidt
> From: Andre Fischer [mailto:awf@gmail.com] 

> > Do you see a chance, we will discuss the details in German 
> [*] and only the final
> > result again in English, here on the mailinglist?
> 
> Sure, we can discuss this in German off-list.  I would prefer an 
> asynchronous medium, like email.

Thank you for your consent.

I have sent you a personal email.


Jörg


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Ad, potentially, macros in sidebar ... (Re: Sidebar for Developers

2013-06-13 Thread Rony G. Flatscher

On 13.06.2013 10:14, Andre Fischer wrote:
> On 13.06.2013 09:44, Jörg Schmidt wrote:

>
>>
>> But can I also use these entries:
>>
>> > script:macro-name="vnd.sun.star.script:mottco.Module1.hilfe_aufrufen?language=Basi
>> c&location=application" script:language="Script"/>
>>
>> what I mean is that the macros (in StarBasic) will work then? Then that 
>> would be a
>> really useful example of a sidebar-extension.
>
> I don't know.  I stopped programming Basic two decades ago.   The Basic part 
> is your problem :-)
Well it is more about the dispatch interface. If it becomes possible to write 
AOO Basic macros to
excercise the task presented in a sidebar, then it would also mean that one 
could use any other,
AOO-supported macro language (BeanShell, JavaScript, Python, ooRexx, ...), 
which would be cool!

So Jörg, try your best and teach us how you could achieve your goal!
:-)

All the best for this project!

---rony



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org