Re: [libreoffice-users] About pseudo objects with Basic code ...

2018-07-17 Thread Mauricio Baeza Servin
On Tue, 17 Jul 2018 23:54:44 -0500 (CDT), "Mauricio Baeza Servin" 
 wrote:

> > >
> > > ok, I will write the firs very simple new UNO component, and I will
> > > documented it...
> > >
> > > Please, be merciful to my English
> > 
> > Awesome!
> > 
> 
> 
> ok, I has finish first draft where I show you:
> 
> First macro.
> First minimal Calc function (Add-in)
> First minimal extension (Add-on)
> First minimal UNO component
> 
> I have very much documentation in spanish for translate. Please, you tell me 
> any error in my basic english. 
> 
> Please, any question, you use new thread, or use our group pymacros in 
> telegram:
> https://t.me/joinchat/GYWsLA56MfCuv490-LiYLA


I'm sorry, I forgot the link:
https://pymacros.elmau.net/

:)



-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] About pseudo objects with Basic code ...

2018-07-17 Thread Mauricio Baeza Servin
> >
> > ok, I will write the firs very simple new UNO component, and I will
> > documented it...
> >
> > Please, be merciful to my English
> 
> Awesome!
> 


ok, I has finish first draft where I show you:

First macro.
First minimal Calc function (Add-in)
First minimal extension (Add-on)
First minimal UNO component

I have very much documentation in spanish for translate. Please, you tell me 
any error in my basic english. 

Please, any question, you use new thread, or use our group pymacros in telegram:
https://t.me/joinchat/GYWsLA56MfCuv490-LiYLA


Best regards


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] About pseudo objects with Basic code ...

2018-07-09 Thread Mauricio Baeza Servin
On Mon, 09 Jul 2018 18:01:37 + (UTC), Andrew Pitonyak  
wrote:

> On 2018-07-09 13:25, Mauricio Baeza Servin wrote:
> 
> > You can make; macros, functions of Calc (full integrated in function
> > wizard), extensions and new UNO components.
> 
> This last part is very important for more serious programs. For certain 
> serious integration, Basic fails, but it sounds like Python would be 
> suitable. Of course, if you are asking what language to learn, you are 
> not likely to write something so difficult, but, the fact that you can 
> do it makes it easier.
> 


ok, I will write the firs very simple new UNO component, and I will documented 
it...

Please, be merciful to my English
-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] About pseudo objects with Basic code ...

2018-07-09 Thread Mauricio Baeza Servin
On Mon, 9 Jul 2018 11:20:49 +0100, Tom Davies  wrote:

> Hi :)
> > 
> @ all: Do you think Python is easy as a 1st language?  - or is it better to
> start with something else first to ease into it all?
> 


All languages have pros and contra, but the advantages of Python are very big 
more than it you disadvantageous.

For example, the indentation in code, that have effect in the execution, for 
some users it's a problem, for me it's a virtue. The majority modern IDEs, help 
you with this.

Basic, maybe it's perfect for you, depend what you needed.

But, Python is so much funny... :)

You can make; macros, functions of Calc (full integrated in function wizard), 
extensions and new UNO components.

With some precautions, Python is perfectly portable. Is possible insert code 
Python into documents ODF.

The short curve for learn Python, it's more short with our help. If you or 
others are interested, we can continuity the wiki document for Python macros. 
[1]


Best regards


[1]https://wiki.documentfoundation.org/Macros/Python_Guide
-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] About pseudo objects with Basic code ...

2018-07-08 Thread Mauricio Baeza Servin
On Sun, 8 Jul 2018 15:30:18 -0400, Drew Jensen  
wrote:

> Howdy, Mauricio, Patrick
> 
> I am curious as to why you think python is always the better choice? (ie.
> error handling, or whatever; or is it just always so in Patrick's use case
> and the example code you supplied there)
> 
> Also, I you don't mind me asking. I'm new python scripting in LibreOffice.
> 
> Do you have recommendations for setting up tools with LibreOffice to with
> Python scripts and perhaps then turning those into an extension.
> 
> Right now I am using the following: LibreOffice 6.x, APSO (latest), MRI
> (latest), MS Video Code. Which of those would, if any, would you suggest I
> look at replacing.
> 
> Thanks and best wishes,
> 
> 


Hi...

I'm sorry, my english is very basic, but I will try tell you my experience.

I developed Basic for many years, in Excel, and Calc. I writed a book (in 
spanish) of more 500 pages for develop macros in OpenOffice/Libre with Basic.

But... I knowed Python... and all changed. I thing, Python is better than Basic 
in all; it learn easyly, extensive core, libraries of third, very good 
documentation, and the most important, a great comunity.

If you want learn ans use Basic, not problem, but where Basic end, Python just 
beginning

Best regards
-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] About pseudo objects with Basic code ...

2018-07-08 Thread Mauricio Baeza Servin
On Sun, 8 Jul 2018 21:03:02 +0200, Patrick Gelin  wrote:

> Ok, with a factory for self variable into pseudo objects. I was thinking 
> of this solution already, but I was hoping a better solution in next 
> version ...
> - Do you need this pseudo object code could be better object model 
> complient next day ?
> - Or do you think python will be a better way for OpenOffice/LibreOffice 
> futur ?
> 


Of course, definitely, Python is much better, I always recommend; learn and 
used Python with LibreOffice


Best regards
-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] About pseudo objects with Basic code ...

2018-07-07 Thread Mauricio Baeza Servin
On Sat, 7 Jul 2018 20:04:07 +0200, Patrick Gelin  wrote:

> Hi,
> 
> 1. I'm using pseudo object style when I'm coding with Basic. What about 
> putting my  pseudo basic objects into library ? It looks like I couldn't 
> use new to create object if I put them into a library ...
> 
> 2. Can I access global variable into a librarie ?
> 
> 3. Do you know a trik to simulate reference like "This" pointer ?
> 
> 4. What about objects with nexts LibreOffice/OpenOffice versions ? Do I 
> need to use python next ?
> 
> Patrick
> 


Hi...

In this example: https://docs.empresalibre.net/f/0bd013d0edcc44f79456/?dl=1

You can see an example how to used classess in Basic, included simulate "self" 
(This)

Best regards
-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] [macros] How to create a timer ?

2017-07-21 Thread Mauricio Baeza Servin
On Fri, 21 Jul 2017 22:54:08 +0200, Jean-Francois Nifenecker 
 wrote:

> Maurizio, Andrew,
> 
> thanks for the pointers you posted. This will help me finding out.
> I guess the "simplest" way would be to call a Python script from Basic.
> 
> Thanks again to both of you. You've put me on the way.
> Greetings from the other side of the pond,
> -- 
> Jean-Francois Nifenecker, Bordeaux
> 

Hello again...

Yes, for call Python script from Basic, EasyDev it's your friend: 
http://easydev.readthedocs.io/en/latest/tools.html#call-macros

If you need some special functionality, I can add to EasyDev.

Best regards
-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] [macros] How to create a timer ?

2017-07-21 Thread Mauricio Baeza Servin
On Fri, 21 Jul 2017 17:30:26 +0200, Jean-Francois Nifenecker 
 wrote:

> All,
> 
> I'm looking for a way to create a timer in LibO Basic as a reminder to 
> accomplish some task.
> 
> 
> The timer would be started when the document is opened, then would send 
> a message to the user if he has not accomplished a particular task (eg 
> validating a particular dialog) when a delay expires (eg 2 hrs).
> 
> In fact I'm in need of several timers for the same document to handle as 
> many different delays/tasks.
> 
> 
> Can anyone point me to some direction as I'm currently in the dark?
> 
> 
> Thanks in advance.
> Best regards,
> -- 
> Jean-Francois Nifenecker, Bordeaux
> 


Hi...

You can used EasyDev: http://easydev.readthedocs.io/en/latest/tools.html#timer

Best regards
-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted