Added remove all pagebreaks option in advanced mode
This commit is contained in:
parent
082768d368
commit
fa3ff2c16b
3 changed files with 11 additions and 6 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="Clean" script:language="StarBasic">Sub mark27
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Clean" script:language="StarBasic">Sub mark28
|
||||
|
||||
End Sub
|
||||
|
||||
|
@ -82,6 +82,10 @@ Private Sub cleanAccordingTo(dialog)
|
|||
statusIndicator.Start("Загружаем стили из шаблона",100)
|
||||
loadArticleStyles
|
||||
EndIf
|
||||
If dialog.getControl("removeManualPageBreaks").state = 1 Then
|
||||
removeManualPageBreaks
|
||||
EndIf
|
||||
|
||||
statusIndicator.end()
|
||||
saveAndreload()
|
||||
MsgBox "Чистка завершена."
|
||||
|
@ -499,7 +503,7 @@ Private Sub disposeAllBookmarks()
|
|||
End Sub
|
||||
|
||||
|
||||
Private Sub disposePageBreaks
|
||||
Private Sub removeManualPageBreaks
|
||||
oTextCursor = ThisComponent.Text.CreateTextCursor()
|
||||
enum1 = ThisComponent.Text.createEnumeration
|
||||
While enum1.hasMoreElements
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue