summaryrefslogtreecommitdiff
path: root/sc/inc/drawattr.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/inc/drawattr.hxx')
0 files changed, 0 insertions, 0 deletions
='right'>2023-10-04 18:50:16 +0200 commita29841ccbdf1e71b9a7c943c5c430d1a1b96234b (patch) tree9c178447b440a7dbc3a9aff533080009c5acec68 /wizards/source/sfdocuments/SF_Document.xba parent7b4bf155b622e985cdc5f90d620d0a797bc48204 (diff)
ScriptForge (SFDocuments) Styles management
Introduction of new properties and methods: - StyleFamilies List of available style families All document types except Base - XStyle(family, stylename) UNO representation of given style All document types except Base - Styles(family, [namepattern, used, userdefined, parentstyle, category) A list of styles matching the given criteria All document types except Base - DeleteStyles(family, styleslist) Suppress the user-defined styles in the list All document types except Base and FormDocument - ImportStylesFromFile(filename, families, overwrite) Load styles from a closed file Calc and Writer only Example: to delete unused styles: a = doc.Styles("ParagraphStyles", used := False) doc.DeleteStyles("ParagraphStyles", a) All functionalities are available from Basic and Python scripts. Documentation has to be completed. Change-Id: I2533c14912257b58feb42bb11ff9d151c7b9531a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157563 Reviewed-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jenkins