Kaydet (Commit) 1a83ac55 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

refactor SvxHlmarkTreeLBox to use RenderContext

Change-Id: I15f259cd68a628fc298ca086000b94abf018a938
üst 418c7ae2
...@@ -98,7 +98,7 @@ Size SvxHlmarkTreeLBox::GetOptimalSize() const ...@@ -98,7 +98,7 @@ Size SvxHlmarkTreeLBox::GetOptimalSize() const
return LogicToPixel(Size(103, 162), MAP_APPFONT); 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) if (!mpParentWnd || mpParentWnd->mnError == LERR_NOERROR)
{ {
...@@ -106,13 +106,13 @@ void SvxHlmarkTreeLBox::Paint( vcl::RenderContext& rRenderContext, const Rectang ...@@ -106,13 +106,13 @@ void SvxHlmarkTreeLBox::Paint( vcl::RenderContext& rRenderContext, const Rectang
} }
else else
{ {
Erase(); rRenderContext.Erase();
Rectangle aDrawRect( Point( 0, 0 ), GetSizePixel() ); Rectangle aDrawRect(Point( 0, 0 ), GetSizePixel());
OUString aStrMessage; OUString aStrMessage;
switch( mpParentWnd->mnError ) switch (mpParentWnd->mnError)
{ {
case LERR_NOENTRIES : case LERR_NOENTRIES :
aStrMessage = CUI_RESSTR( RID_SVXSTR_HYPDLG_ERR_LERR_NOENTRIES ); aStrMessage = CUI_RESSTR( RID_SVXSTR_HYPDLG_ERR_LERR_NOENTRIES );
...@@ -122,9 +122,8 @@ void SvxHlmarkTreeLBox::Paint( vcl::RenderContext& rRenderContext, const Rectang ...@@ -122,9 +122,8 @@ void SvxHlmarkTreeLBox::Paint( vcl::RenderContext& rRenderContext, const Rectang
break; 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 ...@@ -139,8 +138,7 @@ void SvxHlmarkTreeLBox::Paint( vcl::RenderContext& rRenderContext, const Rectang
|* |*
|************************************************************************/ |************************************************************************/
SvxHlinkDlgMarkWnd::SvxHlinkDlgMarkWnd( SvxHyperlinkTabPageBase *pParent ) SvxHlinkDlgMarkWnd::SvxHlinkDlgMarkWnd( SvxHyperlinkTabPageBase *pParent )
: ModalDialog(pParent, "HyperlinkMark", : ModalDialog(pParent, "HyperlinkMark", "cui/ui/hyperlinkmarkdialog.ui")
"cui/ui/hyperlinkmarkdialog.ui")
, mbUserMoved(false) , mbUserMoved(false)
, mpParent(pParent) , mpParent(pParent)
, mnError(LERR_NOERROR) , mnError(LERR_NOERROR)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment