summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-08-27 13:33:01 +0200
committerJan Holesovsky <kendy@collabora.com>2018-11-09 18:42:27 +0100
commitcb09d6eee7574a1b3c6f74cbb5210a1f2964fe2c (patch)
tree2894c1b28cf1ce389a21de0fe53121e967742aee /vcl
parent996a9f068de292930f5c99050c063cc1ab391fb2 (diff)
custom widgets: add Toolbar widget
Change-Id: Ia4efe711c07213f2edf472602c5b2acc81876906
Diffstat (limited to 'vcl')
-rw-r--r--vcl/headless/CustomWidgetDraw.cxx5
-rw-r--r--vcl/inc/WidgetThemeLibrary.hxx1
2 files changed, 5 insertions, 1 deletions
diff --git a/vcl/headless/CustomWidgetDraw.cxx b/vcl/headless/CustomWidgetDraw.cxx
index 81a51b074e10..a512a62bb178 100644
--- a/vcl/headless/CustomWidgetDraw.cxx
+++ b/vcl/headless/CustomWidgetDraw.cxx
@@ -221,7 +221,10 @@ bool CustomWidgetDraw::drawNativeControl(ControlType eType, ControlPart ePart,
case ControlType::Fixedline:
break;
case ControlType::Toolbar:
- break;
+ {
+ bOK = s_pWidgetImplementation->drawToolbar(aParameters, nWidth, nHeight);
+ }
+ break;
case ControlType::Menubar:
break;
case ControlType::MenuPopup:
diff --git a/vcl/inc/WidgetThemeLibrary.hxx b/vcl/inc/WidgetThemeLibrary.hxx
index 1db8d62a68f1..6d4ab9dde196 100644
--- a/vcl/inc/WidgetThemeLibrary.hxx
+++ b/vcl/inc/WidgetThemeLibrary.hxx
@@ -59,6 +59,7 @@ public:
virtual bool drawTabHeader(ControlDrawParameters const& rParameters, long nWidth, long nHeight);
virtual bool drawTabBody(ControlDrawParameters const& rParameters, long nWidth, long nHeight);
virtual bool drawSlider(ControlDrawParameters const& rParameters, long nWidth, long nHeight);
+ virtual bool drawToolbar(ControlDrawParameters const& rParameters, long nWidth, long nHeight);
virtual bool drawProgress(ControlDrawParameters const& rParameters, long nWidth, long nHeight);
virtual bool drawWindowsBackground(ControlDrawParameters const& rParameters, long nWidth,
long nHeight);