Kaydet (Commit) 5ab6a622 authored tarafından Noel Grandin's avatar Noel Grandin

convert include/svx/dialcontrol.hxx from String to OUString

Change-Id: I6f35595305178ec10b19a9d5f499526d76e2b736
üst 40a210a9
...@@ -43,7 +43,7 @@ public: ...@@ -43,7 +43,7 @@ public:
void CopyBackground( const DialControlBmp& rSrc ); void CopyBackground( const DialControlBmp& rSrc );
void DrawBackground( const Size& rSize, bool bEnabled ); void DrawBackground( const Size& rSize, bool bEnabled );
virtual void DrawBackground(); virtual void DrawBackground();
virtual void DrawElements( const String& rText, sal_Int32 nAngle ); virtual void DrawElements( const OUString& rText, sal_Int32 nAngle );
protected: protected:
Rectangle maRect; Rectangle maRect;
......
...@@ -70,7 +70,7 @@ void DialControlBmp::DrawBackground( const Size& rSize, bool bEnabled ) ...@@ -70,7 +70,7 @@ void DialControlBmp::DrawBackground( const Size& rSize, bool bEnabled )
DrawBackground(); DrawBackground();
} }
void DialControlBmp::DrawElements( const String& rText, sal_Int32 nAngle ) void DialControlBmp::DrawElements( const OUString& rText, sal_Int32 nAngle )
{ {
double fAngle = nAngle * F_PI180 / 100.0; double fAngle = nAngle * F_PI180 / 100.0;
double fSin = sin( fAngle ); double fSin = sin( fAngle );
...@@ -78,7 +78,7 @@ void DialControlBmp::DrawElements( const String& rText, sal_Int32 nAngle ) ...@@ -78,7 +78,7 @@ void DialControlBmp::DrawElements( const String& rText, sal_Int32 nAngle )
double fWidth = GetTextWidth( rText ) / 2.0; double fWidth = GetTextWidth( rText ) / 2.0;
double fHeight = GetTextHeight() / 2.0; double fHeight = GetTextHeight() / 2.0;
if ( rText.Len() > 0 ) if ( !rText.isEmpty() )
{ {
// rotated text // rotated text
Font aFont( GetFont() ); Font aFont( GetFont() );
......
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