diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-06-10 19:55:12 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-20 09:33:49 +0000 |
commit | cf5208b67180dc1deaeca611706087b1e2acc1ae (patch) | |
tree | bcf5b5b1e239704bf35d31604e6eb971d2266307 /desktop/source/splash | |
parent | 2d67042dc2f0672d1aca4784e61eb2a5d0e91e08 (diff) |
Convert PART to scoped enum
Change-Id: If4c2849beb207593d3d450ae3846ed24eaf66ca4
Reviewed-on: https://gerrit.libreoffice.org/26173
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'desktop/source/splash')
-rw-r--r-- | desktop/source/splash/splash.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/source/splash/splash.cxx b/desktop/source/splash/splash.cxx index d5980604b319..091eeeb11ec4 100644 --- a/desktop/source/splash/splash.cxx +++ b/desktop/source/splash/splash.cxx @@ -620,7 +620,7 @@ void SplashScreenWindow::Paint(vcl::RenderContext& rRenderContext, const Rectang //native drawing // in case of native controls we need to draw directly to the window - if (pSpl->_bNativeProgress && rRenderContext.IsNativeControlSupported(ControlType::IntroProgress, PART_ENTIRE_CONTROL)) + if (pSpl->_bNativeProgress && rRenderContext.IsNativeControlSupported(ControlType::IntroProgress, ControlPart::Entire)) { rRenderContext.DrawBitmapEx(Point(), pSpl->_aIntroBmp); @@ -628,7 +628,7 @@ void SplashScreenWindow::Paint(vcl::RenderContext& rRenderContext, const Rectang Rectangle aDrawRect( Point(pSpl->_tlx, pSpl->_tly), Size( pSpl->_barwidth, pSpl->_barheight)); Rectangle aNativeControlRegion, aNativeContentRegion; - if (rRenderContext.GetNativeControlRegion(ControlType::IntroProgress, PART_ENTIRE_CONTROL, aDrawRect, + if (rRenderContext.GetNativeControlRegion(ControlType::IntroProgress, ControlPart::Entire, aDrawRect, ControlState::ENABLED, aValue, OUString(), aNativeControlRegion, aNativeContentRegion)) { @@ -637,7 +637,7 @@ void SplashScreenWindow::Paint(vcl::RenderContext& rRenderContext, const Rectang aDrawRect.Bottom() += (nProgressHeight - pSpl->_barheight)/2; } - if ((rRenderContext.DrawNativeControl(ControlType::IntroProgress, PART_ENTIRE_CONTROL, aDrawRect, + if ((rRenderContext.DrawNativeControl(ControlType::IntroProgress, ControlPart::Entire, aDrawRect, ControlState::ENABLED, aValue, pSpl->_sProgressText))) { return; |