diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-28 12:53:27 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-29 09:24:20 +0900 |
commit | 9905a8b953953b9ec5e123a17997d5931978acfe (patch) | |
tree | 8f31ba1b0e1aa6a024a02e580d0a350cb363c986 /cui | |
parent | f50fd9692ed7b9632c0f8dad9508f5a207679be4 (diff) |
replace Paint calls to Invalidate + fix compilation
Change-Id: Id716c47d56922ab6ce0c3adb3d426ea814980674
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/hlmarkwn.cxx | 4 | ||||
-rw-r--r-- | cui/source/dialogs/thesdlg.cxx | 4 | ||||
-rw-r--r-- | cui/source/tabpages/backgrnd.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/dialogs/hlmarkwn.cxx b/cui/source/dialogs/hlmarkwn.cxx index 6ba42590500d..5af808240616 100644 --- a/cui/source/dialogs/hlmarkwn.cxx +++ b/cui/source/dialogs/hlmarkwn.cxx @@ -97,11 +97,11 @@ Size SvxHlmarkTreeLBox::GetOptimalSize() const return LogicToPixel(Size(103, 162), MAP_APPFONT); } -void SvxHlmarkTreeLBox::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect ) +void SvxHlmarkTreeLBox::Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) { if (!mpParentWnd || mpParentWnd->mnError == LERR_NOERROR) { - SvTreeListBox::Paint(rRect); + SvTreeListBox::Paint(rRenderContext, rRect); } else { diff --git a/cui/source/dialogs/thesdlg.cxx b/cui/source/dialogs/thesdlg.cxx index 7dc7b7aea781..4a98eb59a44b 100644 --- a/cui/source/dialogs/thesdlg.cxx +++ b/cui/source/dialogs/thesdlg.cxx @@ -267,7 +267,7 @@ void ThesaurusAlternativesCtrl::KeyInput( const KeyEvent& rKEvt ) SvxCheckListBox::KeyInput( rKEvt ); } -void ThesaurusAlternativesCtrl::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect ) +void ThesaurusAlternativesCtrl::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) { if (!m_pDialog->WordFound()) { @@ -281,7 +281,7 @@ void ThesaurusAlternativesCtrl::Paint( vcl::RenderContext& /*rRenderContext*/, c } else - SvxCheckListBox::Paint( rRect ); + SvxCheckListBox::Paint(rRenderContext, rRect); } uno::Sequence< uno::Reference< linguistic2::XMeaning > > SvxThesaurusDialog::queryMeanings_Impl( diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx index 0bc294550b81..e8b92a9a8e40 100644 --- a/cui/source/tabpages/backgrnd.cxx +++ b/cui/source/tabpages/backgrnd.cxx @@ -213,7 +213,7 @@ BackgroundPreviewImpl::BackgroundPreviewImpl(vcl::Window* pParent) , nTransparency(0) { SetBorderStyle(WindowBorderStyle::MONO); - Paint(aDrawRect); + Invalidate(aDrawRect); } extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeBackgroundPreview(vcl::Window *pParent, VclBuilder::stringmap &) @@ -250,7 +250,7 @@ void BackgroundPreviewImpl::NotifyChange( const Color& rColor ) nTransparency = lcl_TransparencyToPercent( rColor.GetTransparency() ); SetFillColor( rColor == aTranspCol ? GetSettings().GetStyleSettings().GetFieldColor() : Color(rColor.GetRGBColor()) ); - Paint( aDrawRect ); + Invalidate(aDrawRect); } } |