diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-18 13:36:39 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-20 09:52:08 +0200 |
commit | 25a47c5cd54c73e754de988bde8ec8a202d27717 (patch) | |
tree | 479c07ba52f718f03770fba60121d2a0ef3a3b08 /extensions | |
parent | 7a0af37989d1f1b508a61f28e785c5b1f27d58af (diff) |
convert TEXT_DRAW constants to scoped enum
Change-Id: Ic0f7f8fa236bb478b3598ae3fd3c1b30ebbf1a01
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/inspectorhelpwindow.cxx | 2 | ||||
-rw-r--r-- | extensions/source/update/ui/updatecheckui.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/extensions/source/propctrlr/inspectorhelpwindow.cxx b/extensions/source/propctrlr/inspectorhelpwindow.cxx index b174b69bd6c2..c0090fa582bd 100644 --- a/extensions/source/propctrlr/inspectorhelpwindow.cxx +++ b/extensions/source/propctrlr/inspectorhelpwindow.cxx @@ -113,7 +113,7 @@ namespace pcr Rectangle aTextRect( Point( 0, 0 ), m_aHelpText->GetOutputSizePixel() ); aTextRect = m_aHelpText->GetTextRect( aTextRect, m_aHelpText->GetText(), - TEXT_DRAW_LEFT | TEXT_DRAW_TOP | TEXT_DRAW_MULTILINE | TEXT_DRAW_WORDBREAK ); + DrawTextFlags::Left | DrawTextFlags::Top | DrawTextFlags::MultiLine | DrawTextFlags::WordBreak ); long nActTextWindowHeight = impl_getHelpTextBorderHeight() + aTextRect.GetHeight(); long nOptTextWindowHeight = ::std::max( nMinTextWindowHeight, ::std::min( nMaxTextWindowHeight, nActTextWindowHeight ) ); diff --git a/extensions/source/update/ui/updatecheckui.cxx b/extensions/source/update/ui/updatecheckui.cxx index 4a9fbe9bb640..10ef520420ca 100644 --- a/extensions/source/update/ui/updatecheckui.cxx +++ b/extensions/source/update/ui/updatecheckui.cxx @@ -847,12 +847,12 @@ void BubbleWindow::Paint(vcl::RenderContext& /*rRenderContext*/, const Rectangle SetFont( aBoldFont ); Rectangle aTitleRect = maTitleRect; aTitleRect.Move( aImgSize.Width(), 0 ); - DrawText( aTitleRect, maBubbleTitle, TEXT_DRAW_MULTILINE | TEXT_DRAW_WORDBREAK ); + DrawText( aTitleRect, maBubbleTitle, DrawTextFlags::MultiLine | DrawTextFlags::WordBreak ); SetFont( aOldFont ); Rectangle aTextRect = maTextRect; aTextRect.Move( aImgSize.Width(), 0 ); - DrawText( aTextRect, maBubbleText, TEXT_DRAW_MULTILINE | TEXT_DRAW_WORDBREAK ); + DrawText( aTextRect, maBubbleText, DrawTextFlags::MultiLine | DrawTextFlags::WordBreak ); } @@ -926,12 +926,12 @@ void BubbleWindow::RecalcTextRects() maTitleRect = GetTextRect( Rectangle( Point( 0, 0 ), maMaxTextSize ), maBubbleTitle, - TEXT_DRAW_MULTILINE | TEXT_DRAW_WORDBREAK ); + DrawTextFlags::MultiLine | DrawTextFlags::WordBreak ); SetFont( aOldFont ); maTextRect = GetTextRect( Rectangle( Point( 0, 0 ), maMaxTextSize ), maBubbleText, - TEXT_DRAW_MULTILINE | TEXT_DRAW_WORDBREAK ); + DrawTextFlags::MultiLine | DrawTextFlags::WordBreak ); if ( maTextRect.GetHeight() < 10 ) maTextRect.setHeight( 10 ); |