From 870d29a1fd6330fd7c9537f2be958c97273370e5 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Fri, 13 Mar 2020 16:40:24 +0100 Subject: [PATCH] Fix for footnotes numbering --- ePublishing/Footnotes.xba | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/ePublishing/Footnotes.xba b/ePublishing/Footnotes.xba index e900fc0..b9f4e7c 100644 --- a/ePublishing/Footnotes.xba +++ b/ePublishing/Footnotes.xba @@ -1,6 +1,8 @@ -Sub openFootNotesDialog +sub footMark1 +endSub +Sub openFootNotesDialog Dim dialog As Object DialogLibraries.LoadLibrary("ePublishing") dialog = CreateUnoDialog(DialogLibraries.ePublishing.FootnotesConfig) @@ -123,5 +125,19 @@ Sub setFootnotesNumberingLevel(level) EndIf Wend statusIndicator.end() + MsgBox "Нумерация сносок успешно завершена." +End Sub + +Private Sub doNotTrack + dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") + document = ThisComponent.CurrentController.Frame + dim trackProperties(0) as new com.sun.star.beans.PropertyValue + trackProperties(0).Name = "TrackChanges" + trackProperties(0).Value = false + dispatcher.executeDispatch(document, ".uno:TrackChanges", "", 0, trackProperties()) + dim args1(0) as new com.sun.star.beans.PropertyValue + args1(0).Name = "ShowTrackedChanges" + args1(0).Value = true + dispatcher.executeDispatch(document, ".uno:ShowTrackedChanges", "", 0, args1()) End Sub \ No newline at end of file