diff options
Diffstat (limited to 'vcl/source/window')
-rw-r--r-- | vcl/source/window/cursor.cxx | 6 | ||||
-rw-r--r-- | vcl/source/window/printdlg.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/toolbox.cxx | 6 | ||||
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 12 |
4 files changed, 13 insertions, 13 deletions
diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx index e80ba8d42b52..18773be22698 100644 --- a/vcl/source/window/cursor.cxx +++ b/vcl/source/window/cursor.cxx @@ -36,7 +36,7 @@ struct ImplCursorData Point maPixPos; // Pixel-Position Point maPixRotOff; // Pixel-Offset-Position Size maPixSize; // Pixel-Size - short mnOrientation; // Pixel-Orientation + Degree10 mnOrientation; // Pixel-Orientation CursorDirection mnDirection; // indicates writing direction sal_uInt16 mnStyle; // Cursor-Style bool mbCurVisible; // Is cursor currently visible @@ -332,7 +332,7 @@ vcl::Cursor::Cursor() { mpData = nullptr; mpWindow = nullptr; - mnOrientation = 0; + mnOrientation = Degree10(0); mnDirection = CursorDirection::NONE; mnStyle = 0; mbVisible = false; @@ -419,7 +419,7 @@ void vcl::Cursor::SetWidth( tools::Long nNewWidth ) } } -void vcl::Cursor::SetOrientation( short nNewOrientation ) +void vcl::Cursor::SetOrientation( Degree10 nNewOrientation ) { if ( mnOrientation != nNewOrientation ) { diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx index 0212f7da0e5f..88516e9f320b 100644 --- a/vcl/source/window/printdlg.cxx +++ b/vcl/source/window/printdlg.cxx @@ -188,7 +188,7 @@ void PrintDialog::PrintPreviewWindow::Paint(vcl::RenderContext& rRenderContext, { rRenderContext.Push(PushFlags::FONT); vcl::Font aFont(rRenderContext.GetFont()); - aFont.SetOrientation(900); + aFont.SetOrientation(Degree10(900)); rRenderContext.SetFont(aFont); auto nLeft = aOffset.X() - nTextHeight; diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 344f60d175eb..ae9afe30250f 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -314,7 +314,7 @@ void ToolBox::ImplDrawGradientBackground(vcl::RenderContext& rRenderContext) startCol = endCol; Gradient g; - g.SetAngle(mbHorz ? 0 : 900); + g.SetAngle(Degree10(mbHorz ? 0 : 900)); g.SetStyle(GradientStyle::Linear); g.SetStartColor(startCol); @@ -1147,7 +1147,7 @@ void ToolBox::ImplInitToolBoxData() meTextPosition = ToolBoxTextPosition::Right; mnLastFocusItemId = 0; mnActivateCount = 0; - mnImagesRotationAngle = 0; + mnImagesRotationAngle = Degree10(0); mpStatusListener = new VclStatusListener<ToolBox>(this, ".uno:ImageOrientation"); mpStatusListener->startListening(); @@ -2716,7 +2716,7 @@ void ToolBox::ImplDrawItem(vcl::RenderContext& rRenderContext, ImplToolItems::si bRotate = true; vcl::Font aRotateFont = aOldFont; - aRotateFont.SetOrientation( 2700 ); + aRotateFont.SetOrientation( Degree10(2700) ); // center horizontally nTextOffX += aTxtSize.Height(); diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index 59b7bbbbb01e..56abd3cea7ae 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -94,7 +94,7 @@ void ImplToolItem::init(sal_uInt16 nItemId, ToolBoxItemBits nItemBits, mbBreak = false; mnSepSize = TB_SEP_SIZE; mnDropDownArrowWidth = TB_DROPDOWNARROWWIDTH; - mnImageAngle = 0; + mnImageAngle = Degree10(0); mbMirrorMode = false; mbVisibleText = false; mbExpand = false; @@ -959,7 +959,7 @@ void ToolBox::SetItemImage( sal_uInt16 nItemId, const Image& rImage ) } } -static Image ImplRotImage( const Image& rImage, tools::Long nAngle10 ) +static Image ImplRotImage( const Image& rImage, Degree10 nAngle10 ) { BitmapEx aRotBitmapEx( rImage.GetBitmapEx() ); @@ -968,7 +968,7 @@ static Image ImplRotImage( const Image& rImage, tools::Long nAngle10 ) return Image( aRotBitmapEx ); } -void ToolBox::SetItemImageAngle( sal_uInt16 nItemId, tools::Long nAngle10 ) +void ToolBox::SetItemImageAngle( sal_uInt16 nItemId, Degree10 nAngle10 ) { ImplToolItems::size_type nPos = GetItemPos( nItemId ); @@ -978,9 +978,9 @@ void ToolBox::SetItemImageAngle( sal_uInt16 nItemId, tools::Long nAngle10 ) ImplToolItem* pItem = &mpData->m_aItems[nPos]; Size aOldSize = pItem->maImage.GetSizePixel(); - tools::Long nDeltaAngle = (nAngle10 - pItem->mnImageAngle) % 3600; - while( nDeltaAngle < 0 ) - nDeltaAngle += 3600; + Degree10 nDeltaAngle = (nAngle10 - pItem->mnImageAngle) % Degree10(3600); + while( nDeltaAngle < Degree10(0) ) + nDeltaAngle += Degree10(3600); pItem->mnImageAngle = nAngle10; if( nDeltaAngle && !!pItem->maImage ) |