Re: copy part of text from api

2024-04-13 Thread Andrew Pitonyak
I will not have access to check (probably only my phone for a week or two), but can you pull xtransferable content from a cursor or range? ⁣Get BlueMail for Android ​ On Apr 13, 2024, 12:35 PM, at 12:35 PM, Zorg wrote: >Hello > >Hope some can help us here > >Here is the  problem > > >We are

Re: paste html using API

2023-03-26 Thread Andrew Pitonyak
  For i = LBound(oData) To UBound(oData)     s = s & CHR$(oData(i))   Next   MsgBox s If I kept going, then I would attempt to then use the transferable content directly, which is obtained from oClip.getContents() I believe. But, one of the real questions is Does the clipboard have the contents

Re: Bug 81720

2022-08-19 Thread Andrew Pitonyak
stay empty. > >So exception aside, I think maybe a good compromise would be that, if >the user put the cursor on the right of a field, and press "Esc", it >will start to type outside of the field, without expanding the field? >Would that work? > >Best, > >Phil >

Re: Bug 81720

2022-08-19 Thread Andrew Pitonyak
The general expected behavior in libre office, at least for me, is that if I place the cursor and start typing, that it will continue using the same attributes and properties of the character directly to the left of the cursor. So, if I have bold text, and I placed the cursor to the left of the

Re: Headless mail merge

2022-04-06 Thread Andrew Pitonyak
gt;thank you for your answer. I'll take a look at the links you pointed >to. > >The idea is, starting from a template in odt/doc/docx, to "fill in the >gaps" and save the filled document. Is there any other way rather than >mail merge? > > >All the best, > >Marc

Re: Headless mail merge

2022-04-06 Thread Andrew Pitonyak
I had planned on documenting how to do this some years back and AndrewBase.odt, and my only notes say that I should document the new e-mail merge API released in OpenOffice.org version 2.01; that was a long time ago.  I generally do not have reason to use mailmerge, but did you want to send

Re: tdf#140286 - CALC formula =INFO("OSVERSION") gives wrong output

2022-01-17 Thread Andrew Pitonyak
On Monday, January 17, 2022 17:17 EST, Wol wrote:  On 14/01/2022 22:24, Wols Lists wrote: > On 14/01/2022 21:26, Chris Sherlock wrote: >> I will work on a patch for Linux that parses /etc/os-release with a >> fallback to just the kernel version if that is not available >> (virtually all desktop

Re: ConfigManager warning

2021-12-26 Thread Andrew Pitonyak
Not that it helps your problem, but this is how I do it in basic https://www.pitonyak.org/AndrewFontMacro.odt ⁣Get BlueMail for Android ​ On Dec 26, 2021, 2:08 PM, at 2:08 PM, Chris Sherlock wrote: >Hi all, > >I'm writing a basic utility to list font details, but I'm getting the >following

bug related to how Basic handles arrays of Structures, location suggestions

2021-12-06 Thread Andrew Pitonyak
Wolfgang, I verified that there is a bug related to how Basic handles arrays of Structures. I tested against LibreOffice 7.2.2.2 on Fedora Linux as well as Windows 7.1.2.2 and 7.2.4.1 so I filed a bug report: https://bugs.documentfoundation.org/show_bug.cgi?id=146082 Note that a Structure

Re: Added some information about Qt Creator IDE integration to the wiki

2021-02-10 Thread Andrew Pitonyak
Very nice, appreciated by my anyway! On Wednesday, February 10, 2021 09:25 EST, Hossein Noorikhah wrote:  Hi, I have added some information about how to use Qt Creator for building, running and debugging LibreOffice in the appropriate section of the wiki:

Re: FastSaxParser ans XFastParser

2020-11-26 Thread Andrew Pitonyak
I think that it is an external package. Search for libxml c++ so does my expectation that you need to install it and then make sure that your library includes no to look where it is installed. The latter part might come for free depending on your environment. For example, I'm Linux I probably

RE: calc: jumbo sheets on windows (never gonna happen)

2020-10-06 Thread Andrew Pitonyak
I think that the important point is that people do it in excel. They then try to open the file and they cannot. I have certainly been handled really large files perhaps it is simply a CSV file with lots of rows and I know how to deal with the spreadsheet so that's how I open it. Quick and dirty

Re[2]: Enabling Calc macro recording

2020-08-18 Thread Andrew Pitonyak
l Message --From: "Andrew Pitonyak" To: "Steve (GMail)" Cc: "Development List" Sent: 18/08/2020 19:31:34Subject: Re: Enabling Calc macro recording It may not record input from a dialog. As an example, if you import a CSV file, I think that it does not rem

Re: Enabling Calc macro recording

2020-08-18 Thread Andrew Pitonyak
It may not record input from a dialog. As an example, if you import a CSV file, I think that it does not remember the parameters that you used for the import.  The macro it produces does not use commands that directly modify the underlying object model but instead build an object to

Re: Forced Updates? WTF?

2020-06-09 Thread Andrew Pitonyak
Ten computers, have not seen this behavior even though I want it on a few of them. Did not even know LO could do it. ⁣Sent from BlueMail ​ On Jun 9, 2020, 6:49 PM, at 6:49 PM, "Christoph Schäfer" wrote: > > >> Gesendet: Dienstag, 09. Juni 2020 um 09:36 Uhr >> Von: "Mike Kaganski" >> An:

Re: How do I get rid of this error? Macro file requires OpenOffice but I would like to use Libreoffice

2020-03-11 Thread Andrew Pitonyak
Not able to test for at least a week, but am curious what this causes an error. where it fails, it verifies is something by that name is there and then it tries to remove it. If I was able to run a test I could check to make sure that the method is exist, but the real question, is do you have

Re: Writing a LibreOffice extension that logs user (and other) events in real-time

2019-11-28 Thread Andrew Pitonyak
Take a look at event listeners to see what they can do the biggest problems will probably be related to things such as understanding which event listeners get called in which orders and also things like what will cause an event listener to disappear such as changing from a print view to a

RE: need help to insert an image with a caption with the Libo java API

2019-09-06 Thread Andrew Pitonyak
ted programmatically, probably, because I don’t know how to create properly a numbered caption.   I’m a bit confused about the SetExpression, DependentField, field master, … I will continue to investigate about that, but if you have some references for me, please don’t hesitate.   Regard

RE: need help to insert an image with a caption with the Libo java API

2019-09-05 Thread Andrew Pitonyak
Are you looking to insert the caption, or the reference to the caption? I think you want to insert a reference to a dependent field for a text field master. Does this sound correct?  The text field master, which is of type:  com.sun.star.text.fieldmaster.SetExpression.Figure But you want to

Re: Reveal Codes macros now works

2019-07-11 Thread Andrew Pitonyak
to release it as such.  In this case, I added a few lines of code to code that is labeled GPL. This is not significant code, it is a few fixes. It can stay as GPL. Normally I release my code as open.  On Thursday, July 11, 2019 02:32 EDT, Uwe Brauer wrote:   > On 10/07/19 17:54, Andrew Piton

Re: Reveal Codes macros now works

2019-07-10 Thread Andrew Pitonyak
On Wednesday, July 10, 2019 10:52 EDT, Uwe Brauer wrote:  >>> "AP" == Andrew Pitonyak writes: > There was so much static related to the orginal question, that I opted to > simply started a new thread.  > I was provided with a linke to the orignal documents: &

Reveal Codes macros now works

2019-07-09 Thread Andrew Pitonyak
There was so much static related to the orginal question, that I opted to simply started a new thread.  I was provided with a linke to the orignal documents: https://web.archive.org/web/20180326030224/http://homepages.paradise.net.nz/hillview/OOo/ There are three documents and I have the

Re: Reveal code, old macros convert them to LO

2019-07-04 Thread Andrew Pitonyak
So I read your response to say... If it is a read only display them it is not worth the time to bother with it... That is certainly easier than trying to make it work :-) ⁣Sent from BlueMail ​ On Jul 4, 2019, 10:26 PM, at 10:26 PM, Wols Lists wrote: >On 05/07/19 03:15, Wol's lists wrote: >>

Re: Writer TextTable access via the UNO API

2019-06-21 Thread Andrew Pitonyak
In OOME, I do not really discuss this, but, I do in AndrewMacro.odt where I claim (in the section "Enumerating cells in any text table" that you need to first use getCellNames() and then use getCellByName(aName). If you want to be even more complete, you may need to worry about things such as

Re: When file truncation happens by Basic's Open statement

2018-12-21 Thread Andrew Pitonyak
I evaluated the behavior from Basic for all of the different modes based on a specific build on a specific Linux platform. I did not read the code, nor did I test different platforms. I documented all of this in OOME on my web site. Don't remember the direct link, but, it is on

Re: How to insert extra and hidden information for each element of document via LibreOffice API?

2018-07-26 Thread Andrew Pitonyak
When I think of UML, I think of a graphical representation. Your description leads me to believe that you will have a "text" representation. My first thought was user defined attributes

String Length and Array Indexes in macros

2018-05-15 Thread Andrew Pitonyak
is that this now uses a 32-bit long, so, +/- 2G. Andrew Pitonyak ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Association between ToC index object and its paragraph content

2017-12-12 Thread Andrew Pitonyak
Disclaimer: I have not taken the time to look at the problem, but, if you have a text range, or have the ability to get a text range out of what you have, then you can compare the starting and ending positions. You might need to create a text cursor from the range to do this. I do not have

Re: Open web page from dialog

2016-06-11 Thread Andrew Pitonyak
I think this is usually done by invoking a command to the operating system. Cannot easily lookup how this is done right now It is likely os dependent. Sent from BlueMail On Jun 11, 2016, 3:24 PM, at 3:24 PM, "Jan Rheinländer" wrote: >Hi, > >is it possible to open

Re: suggested method to create LibreOffice Extensions

2015-11-16 Thread Andrew Pitonyak
If you email me directly I can send you a copy of my macro formatter stuff with the document I use to generate the OXT file. Won't have access until Thursday or Friday. On Nov 16, 2015 3:52 AM, Andrea Castellani wrote: > > Hello everyone, > almost three years ago I

LibreOffice 4.x copyright date is 2014

2015-07-06 Thread Andrew Pitonyak
Latest release of LO 4.x Help About Shows the a copyright date of 2014. I just installed the latest release candidate (2) and it has a 2015 copyright, so this probably only matters if there is another release of 4.x for some reason. I thought that the latest 4.x release was 2015. Andrew

Re: Q: How to get the path of all opened spreadsheet documents

2015-06-06 Thread Andrew Pitonyak
No time to find the solution now But I have done this sort of thing in basic. You enumerate the open components from the desktop object and check of the component is a calc document. In your case do you only care about documents that have been saved... Ignoring new never saved to disk

Re: Loading LaTeX document results in odd output

2015-04-09 Thread Andrew Pitonyak
What happens of you rename the file to have a .txt file extension? On Apr 9, 2015 3:44 AM, =?ISO-8859-1?Q?Jens_Tr=F6ger?= jens.troe...@light-speed.de wrote: Hi, I'm not sure if this is the right place to post this.  After running LO I loaded a LaTeX file:  

Re: How do I tear down soffice cleanly?

2015-02-25 Thread Andrew Pitonyak
Test your coffee against the basic IDE and a help window, one might not support close if my memory is correct. On Feb 25, 2015 7:16 PM, =?ISO-8859-1?Q?Jens_Tr=F6ger?= jens.troe...@light-speed.de wrote: Thanks Michael.  Looking at 13. in this FAQ  

Re: Ask for help, Young developer request

2015-02-20 Thread Andrew Pitonyak
First use XModifiable and if isModified is true call setModified to set to false. See of that helps. On Feb 20, 2015 3:12 AM, =?UTF-8?Q?Bart=C5=82omiej_Mikos_PrimeSoft_Polska?= bartlomiej.mi...@primesoft.pl wrote: Good Morning, I have problem with use of java LibreOffice Api 4.3 Is a

Re: Java sidebar extensions and LibreOffice

2015-02-10 Thread Andrew Pitonyak
I see where you go to the end of the document, but I don't see you placing the cursor at the start. I expect you to first go to the start with no selection and then Juno to the end with selection. I suspect that you are simply setting  paragraph properties on the last  paragraph. That said,

Re: Inserting a value into a XComponentContext

2014-12-03 Thread Andrew Pitonyak
Guessing from memory and not east for me to verify at the Moment, but I thought that the context was read only. I think that of you want to add values you need to create a new one with the desired named value pairs. Are you able to inspect an object to see of it supports setting values... I

Re: Inserting a value into a XComponentContext

2014-11-30 Thread Andrew Pitonyak
Anything I have done has been in basic, which abstracts ask the hard bits of casting away. Of Han that looks to be correct based on my memory. More specifically, that you add the values (or pad the values) on creation. Chris Sherlock chris.sherloc...@gmail.com wrote:

Re: Inserting a value into a XComponentContext

2014-11-30 Thread Andrew Pitonyak
xNameContainer( xContext, UNO_QUERY ); Is this the right approach? Will the delegate ComponentContext work? Chris On Mon, Dec 1, 2014 at 12:25 AM, Andrew Pitonyak and...@pitonyak.org wrote: Guessing from memory and not east for me to verify at the Moment, but I thought that the context

Please verify regression bug in latest release candidate

2013-02-07 Thread Andrew Pitonyak
on every version of OO I have ever used; until now. I would like to know if this breaks on version 4 RC3, and also specifically on Windows since I am unable to test there. I will likely then ask that this be marked as a blocker. Andrew Pitonyak

Re: [Libreoffice] BASIC IDE code completion

2011-08-20 Thread Andrew Pitonyak
When I write a macro, I am usually using a loosely typed object so the type is not fully known. Even worse, based on the execution path, the object type may be completely different than expected. Unless your variables are explicitly stated as to type, it would likely not be possible to implement.