diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-06-07 19:09:18 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2019-06-14 06:09:43 +0200 |
commit | 5ee408eb4c9f55d3438426290e91ac31d04821de (patch) | |
tree | 2b803f9f7693f1149163eb52ca5c8480abe27ba8 /vcl/unx/kde5/KDE5SalVirtualDevice.hxx | |
parent | a21e297b1229dd389c691893ddc48605e9471db0 (diff) |
tdf#125673 KDE5 implement a KDE5SalVirtualDevice
We just need AcquireGraphics() to return a KDE5Graphics.
Otherwise the BufferDevice's SVP will use a SvpSalGraphics
instead of the KDE5Graphics, which knows about Qt's theming.
Reviewed-on: https://gerrit.libreoffice.org/73673
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
(cherry picked from commit 2cb6a591b643a0f65dc58f060f60cc707ad3589c)
Reviewed-on: https://gerrit.libreoffice.org/73722
Change-Id: I0ea646df260f2067d61c753f03dee01a003f382a
Reviewed-on: https://gerrit.libreoffice.org/73963
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Diffstat (limited to 'vcl/unx/kde5/KDE5SalVirtualDevice.hxx')
-rw-r--r-- | vcl/unx/kde5/KDE5SalVirtualDevice.hxx | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/vcl/unx/kde5/KDE5SalVirtualDevice.hxx b/vcl/unx/kde5/KDE5SalVirtualDevice.hxx new file mode 100644 index 000000000000..baa8a2e31aa8 --- /dev/null +++ b/vcl/unx/kde5/KDE5SalVirtualDevice.hxx @@ -0,0 +1,36 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#pragma once + +#include <headless/svpvd.hxx> +#include "KDE5SalGraphics.hxx" + +class VCL_DLLPUBLIC KDE5SalVirtualDevice : public SvpSalVirtualDevice +{ +public: + KDE5SalVirtualDevice(DeviceFormat eFormat, cairo_surface_t* pRefSurface) + : SvpSalVirtualDevice(eFormat, pRefSurface) + { + } + + SalGraphics* AcquireGraphics() override { return AddGraphics(new KDE5SalGraphics(nullptr)); } +}; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |