Working on page styles
This commit is contained in:
parent
37c469c866
commit
163cb7de47
2 changed files with 16 additions and 5 deletions
|
@ -7,20 +7,31 @@
|
|||
Dim oStyles As Object
|
||||
Dim pageStyles As Object
|
||||
Dim pageStyleNames() As String
|
||||
Dim imageURL As String
|
||||
oStyles = ThisComponent.StyleFamilies
|
||||
pageStyles = oStyles.getByName(oStyles.elementNames(2))
|
||||
pageStyleNames = pageStyles.getElementNames
|
||||
'Globalscope.BasicLibraries.LoadLibrary( "MRILib" )
|
||||
'MRI pageStyles
|
||||
|
||||
|
||||
|
||||
dialog = CreateUnoDialog( DialogLibraries.ePublishing.PageConfig )
|
||||
' Globalscope.BasicLibraries.LoadLibrary( "MRILib" )
|
||||
a = dialog.getControl("ImageControl1")
|
||||
|
||||
imageURL = convertToURL(getExtensionPath() + "/images/panel.svg")
|
||||
dialog.getControl("ImageControl1").model.imageURL = imageURL
|
||||
|
||||
listBox = dialog.getControl("pageStyles")
|
||||
listBox.addItems(pageStyleNames , 0)
|
||||
dialog.Title = getTranslation("batchChangePageStyleProperties")
|
||||
dialog.Execute()
|
||||
End Sub
|
||||
|
||||
Function getExtensionPath As String
|
||||
Dim extensionIdentifier As String
|
||||
Dim pip As Object
|
||||
extensionIdentifier = "pro.litvinovg.Redaction"
|
||||
pip = GetDefaultContext.getByName("/singletons/com.sun.star.deployment.PackageInformationProvider")
|
||||
getExtensionPath = pip.getPackageLocation(extensionIdentifier)
|
||||
End Function
|
||||
|
||||
|
||||
Sub setDimensions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue