Add width, height and margin parameters for widget part def

Desktop / LibreOffice - Tomaž Vajngerl [collabora.co.uk] - 7 March 2019 07:35 EST

For some control parts we need to provide the size or redefine the size. Previously this was hardcoded, but this adds new attriburtes for widget part definition:- width, height: defines size for buttons in spinbox, the size of the checkbox or radiobutton- margin-width, margin-height: increases the size (margin) of tab items by the specified amount

Change-Id: Ieea69b92ad21adc4f4954e7555f4d59348f5dea8 Reviewed-on: https://gerrit.libreoffice.org/68829

723ad50fff71 Add width, height and margin parameters for widget part def.
vcl/inc/widgetdraw/WidgetDefinition.hxx | 6 ++
vcl/source/gdi/FileDefinitionWidgetDraw.cxx | 97 +++++++++++++++++----------
vcl/source/gdi/WidgetDefinitionReader.cxx | 30 +++++++++
vcl/uiconfig/theme_definitions/definition.xml | 10 +--
4 files changed, 104 insertions(+), 39 deletions(-)

Upstream: cgit.freedesktop.org


  • Share