fix: added script to fix footnote sign positions
This commit is contained in:
parent
2b37cfe542
commit
8611814942
1 changed files with 24 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Footnotes" script:language="StarBasic" script:moduleType="normal">sub footMark7
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Footnotes" script:language="StarBasic" script:moduleType="normal">sub footMark8
|
||||
End Sub
|
||||
|
||||
Sub openFootNotesDialog
|
||||
|
@ -284,4 +284,27 @@ Private Sub doNotTrack
|
|||
args1(0).Value = true
|
||||
dispatcher.executeDispatch(document, ".uno:ShowTrackedChanges", "", 0, args1())
|
||||
End Sub
|
||||
|
||||
Sub FixFootnotes()
|
||||
Dim description As String
|
||||
Dim allNotes As Object
|
||||
Dim aNote As Object
|
||||
Dim oViewCursor As Object
|
||||
turnOffTracking
|
||||
AcceptAllTrackedChanges
|
||||
oViewCursor = ThisComponent.currentController.getViewCursor()
|
||||
'Globalscope.BasicLibraries.LoadLibrary( "MRILib" )
|
||||
allNotes = ThisComponent.FootNotes
|
||||
For x = 0 to allNotes.Count -1
|
||||
aNote = allNotes.getByIndex(x)
|
||||
anchor = aNote.anchor
|
||||
oViewCursor.goToRange(anchor,false)
|
||||
oViewCursor.collapseToStart()
|
||||
oViewCursor.goToRange(anchor,true)
|
||||
unoCut()
|
||||
oViewCursor.goLeft(1,false)
|
||||
unoPaste()
|
||||
Next
|
||||
|
||||
End Sub
|
||||
</script:module>
|
Loading…
Add table
Reference in a new issue