Is there a basic macro that can delete all draw objects from a document? I found one that can delete graphic objects, but I can't figure out how to modify it to delete draw objects.
that macro is here: http://askubuntu.com/questions/259704/h ... ice-writer
[Solved] Removing all draw objects from a writer doc?
[Solved] Removing all draw objects from a writer doc?
Last edited by Hagar Delest on Mon Feb 27, 2017 9:10 am, edited 1 time in total.
Reason: tagged [Solved].
Reason: tagged [Solved].
Re: Removing all draw objects from a writer doc?
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Re: Removing all draw objects from a writer doc?
This will delete ALL graphics:
Code: Select all
sub deleteallGraphics
go = ThisComponent.DrawPage
For i = go.Count-1 to 0 step -1
g = go.getByIndex(i)
g.dispose
next i
end sub
Win7 Pro, Lubuntu 15.10, LO 4.4.7, OO 4.1.3
Free Project: LibreOffice Songbook Architect (LOSA)
http://struckkai.blogspot.de/2015/04/li ... itect.html
Free Project: LibreOffice Songbook Architect (LOSA)
http://struckkai.blogspot.de/2015/04/li ... itect.html
Re: Removing all draw objects from a writer doc?
Wow, thanks! That's perfect. I appreciate the help.musikai wrote:This will delete ALL graphics: