diff --git a/ePublishing/Footnotes.xba b/ePublishing/Footnotes.xba index c089b6e..3231d85 100644 --- a/ePublishing/Footnotes.xba +++ b/ePublishing/Footnotes.xba @@ -1,6 +1,6 @@ -sub footMark7 +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 \ No newline at end of file