summaryrefslogtreecommitdiff
path: root/vcl/inc/qt5/Qt5Frame.hxx
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2018-04-19 14:20:27 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2018-06-01 10:06:24 +0200
commit68f3ce381bc4aaeb3217fa252ec69f7a70d806b6 (patch)
tree3522adb1d59a9cc4c1f3c05b851d738f21f0121f /vcl/inc/qt5/Qt5Frame.hxx
parentc389e0d0a1e69ed3b977c42530826683cf34f75f (diff)
Reorganize code to enable derived classes inject SvpSalGraphics
or derivative thereof Change-Id: Iea0d5e838de0ea397dcbffd11c33f021d53face2
Diffstat (limited to 'vcl/inc/qt5/Qt5Frame.hxx')
-rw-r--r--vcl/inc/qt5/Qt5Frame.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/inc/qt5/Qt5Frame.hxx b/vcl/inc/qt5/Qt5Frame.hxx
index e2b9b96936e2..4b0a99113536 100644
--- a/vcl/inc/qt5/Qt5Frame.hxx
+++ b/vcl/inc/qt5/Qt5Frame.hxx
@@ -44,7 +44,11 @@ class VCLPLUG_QT5_PUBLIC Qt5Frame : public SalFrame
std::unique_ptr<QImage> m_pQImage;
std::unique_ptr<Qt5Graphics> m_pQt5Graphics;
UniqueCairoSurface m_pSurface;
- std::unique_ptr<SvpSalGraphics> m_pSvpGraphics;
+ std::unique_ptr<SvpSalGraphics> m_pOurSvpGraphics;
+ // in base class, this ptr is the same as m_pOurSvpGraphic
+ // in derived class, it can point to a derivative
+ // of SvpSalGraphics (which the derived class then owns)
+ SvpSalGraphics* m_pSvpGraphics;
DamageHandler m_aDamageHandler;
bool m_bGraphicsInUse;
@@ -81,6 +85,7 @@ public:
void Damage(sal_Int32 nExtentsX, sal_Int32 nExtentsY, sal_Int32 nExtentsWidth,
sal_Int32 nExtentsHeight) const;
+ virtual void InitSvpSalGraphics( SvpSalGraphics* pSvpSalGraphics );
virtual SalGraphics* AcquireGraphics() override;
virtual void ReleaseGraphics(SalGraphics* pGraphics) override;