On Sat, Nov 4, 2017 at 9:57 AM, Jambunathan K <kjambunathan@gmail.com>
wrote:
Hello
Could someone help me with a Basic Macro that does
"Writer Menu->Edit->Links->[Select All]->Break Link"
Jambunathan K.
The following macro does the job.
Sub BreakLinks()
Dim section, sectionNames
Dim sectionFileLink as new com.sun.star.text.SectionFileLink
sectionFileLink.FileURL=""
sSectionNames = ThisComponent.getTextSections().getElementNames()
For i = 0 To UBound(sSectionNames)
section = ThisComponent.getTextSections().getByName(sSectionNames(i))
section.setPropertyValue("FileLink",sectionFileLInk)
Next
End Sub
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.