Remove pagebreak from first table or para
This commit is contained in:
parent
77e43f6d5b
commit
d8567c7c8b
3 changed files with 16 additions and 2 deletions
|
@ -23,12 +23,26 @@ Sub cleanButton
|
||||||
fixTableWidth
|
fixTableWidth
|
||||||
fixDrawingAnchors
|
fixDrawingAnchors
|
||||||
fixFrequentMistakes
|
fixFrequentMistakes
|
||||||
|
removeFirstElementPageBreak
|
||||||
removeUserPageStyles
|
removeUserPageStyles
|
||||||
loadArticleStyles
|
loadArticleStyles
|
||||||
statusIndicator.end()
|
statusIndicator.end()
|
||||||
saveAndreload()
|
saveAndreload()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub removeFirstElementPageBreak
|
||||||
|
enum1 = ThisComponent.Text.createEnumeration
|
||||||
|
If enum1.hasMoreElements Then
|
||||||
|
enum1Element = enum1.nextElement
|
||||||
|
If enum1Element.supportsService("com.sun.star.text.Paragraph") OR enum1Element.supportsService("com.sun.star.text.TextTable") Then
|
||||||
|
If enum1Element.BreakType <> com.sun.star.style.BreakType.NONE Then
|
||||||
|
enum1Element.PageDescName = ""
|
||||||
|
enum1Element.BreakType = com.sun.star.style.BreakType.NONE
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub unicodeSymbolsConversion
|
Private Sub unicodeSymbolsConversion
|
||||||
Dim newFontName As String
|
Dim newFontName As String
|
||||||
newFontName = "IPH Astra Serif"
|
newFontName = "IPH Astra Serif"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
xmlns:dep="http://openoffice.org/extensions/description/2006"
|
xmlns:dep="http://openoffice.org/extensions/description/2006"
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
<identifier value="pro.litvinovg.Redaction" />
|
<identifier value="pro.litvinovg.Redaction" />
|
||||||
<version value="0.2.6" />
|
<version value="0.2.7" />
|
||||||
<platform value="all" />
|
<platform value="all" />
|
||||||
<display-name>
|
<display-name>
|
||||||
<name lang="en">Redaction for publishing in Institute of philosophy</name>
|
<name lang="en">Redaction for publishing in Institute of philosophy</name>
|
||||||
|
|
BIN
redaction.oxt
BIN
redaction.oxt
Binary file not shown.
Loading…
Add table
Reference in a new issue