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



This might seem obvious, but: 

1. What document type? 

2. What is a "custom" shape? Do you mean com.sun.star.drawing.CustomShape, or do you mean a Custom 
Shape that you have added to a Library? 

Not that I have never used Cutom Shapes in any way in LibreOffice, but i have written a Macro at 
least once. :-)

I have written code that adds things such as lines (and other shapes) into documents. 

I might have looked at something in LO that allows me to have a bunch of shapes. On my computer, I 
use 

View > Gallery

Too open it. From there it looks like I can drag objects out of the "gallery" and onto a document. 

I had forgotten you can do that in LO. Is this the type of graphic that you want to insert? Not 
that I know how, but I am trying to clarify in case it is something that I do know how to do. 


On Thursday, February 11, 2021 13:08 EST, Regina Henschel <rb.henschel@t-online.de> wrote:
 Hi all,

does someone has a basic macro snippet for to insert a custom shape
(e.g. a smiley) into a page?

Background: For a unit test I need to insert a custom shape via code
similar to as it is done via mouse. But I have no idea how to code it. A
macro might give me an initial stage for a solution.

Kind regards
Regina

--
To unsubscribe e-mail to: users+unsubscribe@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


 

-- 
To unsubscribe e-mail to: users+unsubscribe@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

Context


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