diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-14 09:29:02 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-14 10:00:15 +0900 |
commit | 1a83ac554873af3ecd0e0b9ab4917e600ee863aa (patch) | |
tree | 5f83c1cf36bd586958ab1cde5fe9daa4e4d9b076 /cui | |
parent | 418c7ae28dbca391e6cf80049728b0c5926240ab (diff) |
refactor SvxHlmarkTreeLBox to use RenderContext
Change-Id: I15f259cd68a628fc298ca086000b94abf018a938
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/hlmarkwn.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/cui/source/dialogs/hlmarkwn.cxx b/cui/source/dialogs/hlmarkwn.cxx index 40327e900f38..faeb2d7302b6 100644 --- a/cui/source/dialogs/hlmarkwn.cxx +++ b/cui/source/dialogs/hlmarkwn.cxx @@ -98,7 +98,7 @@ 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) { @@ -106,13 +106,13 @@ void SvxHlmarkTreeLBox::Paint( vcl::RenderContext& rRenderContext, const Rectang } else { - Erase(); + rRenderContext.Erase(); - Rectangle aDrawRect( Point( 0, 0 ), GetSizePixel() ); + Rectangle aDrawRect(Point( 0, 0 ), GetSizePixel()); OUString aStrMessage; - switch( mpParentWnd->mnError ) + switch (mpParentWnd->mnError) { case LERR_NOENTRIES : aStrMessage = CUI_RESSTR( RID_SVXSTR_HYPDLG_ERR_LERR_NOENTRIES ); @@ -122,9 +122,8 @@ void SvxHlmarkTreeLBox::Paint( vcl::RenderContext& rRenderContext, const Rectang break; } - DrawText( aDrawRect, aStrMessage, TEXT_DRAW_LEFT | TEXT_DRAW_MULTILINE | TEXT_DRAW_WORDBREAK ); + rRenderContext.DrawText(aDrawRect, aStrMessage, TEXT_DRAW_LEFT | TEXT_DRAW_MULTILINE | TEXT_DRAW_WORDBREAK); } - } @@ -139,8 +138,7 @@ void SvxHlmarkTreeLBox::Paint( vcl::RenderContext& rRenderContext, const Rectang |* |************************************************************************/ SvxHlinkDlgMarkWnd::SvxHlinkDlgMarkWnd( SvxHyperlinkTabPageBase *pParent ) - : ModalDialog(pParent, "HyperlinkMark", - "cui/ui/hyperlinkmarkdialog.ui") + : ModalDialog(pParent, "HyperlinkMark", "cui/ui/hyperlinkmarkdialog.ui") , mbUserMoved(false) , mpParent(pParent) , mnError(LERR_NOERROR) |