validation status indicator
This commit is contained in:
parent
e5244b8259
commit
9dd59609c1
4 changed files with 17 additions and 5 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="Validation" script:language="StarBasic">Sub markval9
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Validation" script:language="StarBasic">Sub markval10
|
||||
|
||||
End Sub
|
||||
|
||||
|
@ -34,14 +34,25 @@ Sub validateButton
|
|||
Dim needExtendedInfo As Boolean
|
||||
Dim config As Object
|
||||
config = initRedactionConfiguration()
|
||||
|
||||
Dim statusIndicator as Object
|
||||
statusIndicator = ThisComponent.getCurrentController.statusIndicator
|
||||
statusIndicator.Start(getTranslation("validationStarted"),100)
|
||||
|
||||
badText = false
|
||||
badNumberings = false
|
||||
footnotesReport = noteSingsCheck
|
||||
statusIndicator.setValue(10)
|
||||
graphicsReport = checkGraphics
|
||||
statusIndicator.setValue(20)
|
||||
sectionsReport = checkSectionsInTables
|
||||
statusIndicator.setValue(30)
|
||||
outlineInNotesReport = checkNotesOutline()
|
||||
statusIndicator.setValue(40)
|
||||
outlinePageStylesReport = checkHeadingsInHeadersFooters
|
||||
statusIndicator.setValue(50)
|
||||
oulineInTablesReport = checkHeadingsInTextTables
|
||||
statusIndicator.setValue(60)
|
||||
If outlineInNotesReport <> "" Then
|
||||
MsgBox outlineInNotesReport
|
||||
EndIf
|
||||
|
@ -72,7 +83,7 @@ Sub validateButton
|
|||
EndIf
|
||||
|
||||
printNumberingSymbols(needExtendedInfo)
|
||||
|
||||
statusIndicator.setValue(80)
|
||||
If badText OR badNumberings OR footnotesReport <> "" OR graphicsReport <> "" Or outlineInNotesReport <> "" Or sectionsReport <> "" OR oulineInTablesReport <> "" OR outlinePageStylesReport <> "" Then
|
||||
MsgBox getTranslation("validationWarning")
|
||||
If badText Then
|
||||
|
@ -82,6 +93,7 @@ Sub validateButton
|
|||
Else
|
||||
MsgBox getTranslation("validationSuccess")
|
||||
EndIf
|
||||
statusIndicator.end()
|
||||
End Sub
|
||||
|
||||
Private Function checkGraphics() As String
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue