Support first, last tab item for the widget definition

Desktop / LibreOffice - Toma┼ż Vajngerl [collabora.co.uk] - 6 March 2019 19:59 EST

Add "extra" parameter for the widget definition states with the default set to "any". For tab item, the extra parameter can be "first", "last", "middle" and "first_last" (only one). This is needed to draw first and last tab item differently.

Change-Id: I46b6897b485b4df94ab6fe9521925c3715eaa24e Reviewed-on: https://gerrit.libreoffice.org/68817

fd57cdfc7727 Support first, last tab item for the widget definition
vcl/inc/widgetdraw/WidgetDefinition.hxx | 8 +++---
.../widgetdraw/WidgetDefinitionReaderTest.cxx | 12 +++++----
vcl/source/gdi/FileDefinitionWidgetDraw.cxx | 2 +-
vcl/source/gdi/WidgetDefinition.cxx | 29 ++++++++++++++++++++--
vcl/source/gdi/WidgetDefinitionReader.cxx | 6 ++++-
5 files changed, 45 insertions(+), 12 deletions(-)

Upstream: cgit.freedesktop.org


  • Share