diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-26 17:13:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-28 07:34:27 +0100 |
commit | e2cb154195fdc2ffccdb6f5e87cae8b29640b3eb (patch) | |
tree | 7c3d53d78e0867aa879b98d84211d1e73602520f /sd/source | |
parent | 0ea41fea75cd1ac1d81fa57c4411e75a6b4001f0 (diff) |
convert COL_ constants to be of type Color
Change-Id: I0e25c8950ac26b851ff42f71e1471fcbe4770d48
Reviewed-on: https://gerrit.libreoffice.org/50373
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/filter/eppt/epptso.cxx | 4 | ||||
-rw-r--r-- | sd/source/filter/eppt/pptx-stylesheet.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/table/TableDesignPane.cxx | 8 |
4 files changed, 9 insertions, 9 deletions
diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index 3124929fe615..53ce26cfce89 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -746,7 +746,7 @@ void PPTWriter::ImplWriteParagraphs( SvStream& rOut, TextObj& rTextObj ) if ( nPropertyFlags & 0x20 ) { sal_uInt32 nBulletColor = pPara->nBulletColor; - if ( nBulletColor == COL_AUTO ) + if ( nBulletColor == sal_uInt32(COL_AUTO) ) { bool bIsDark = false; css::uno::Any aAny; @@ -799,7 +799,7 @@ void PPTWriter::ImplWritePortions( SvStream& rOut, TextObj& rTextObj ) sal_uInt32 nCharAttr = rPortion.mnCharAttr; sal_uInt32 nCharColor = rPortion.mnCharColor; - if ( nCharColor == COL_AUTO ) // nCharColor depends to the background color + if ( nCharColor == sal_uInt32(COL_AUTO) ) // nCharColor depends to the background color { bool bIsDark = false; css::uno::Any aAny; diff --git a/sd/source/filter/eppt/pptx-stylesheet.cxx b/sd/source/filter/eppt/pptx-stylesheet.cxx index d71241ec9de6..e848deb77820 100644 --- a/sd/source/filter/eppt/pptx-stylesheet.cxx +++ b/sd/source/filter/eppt/pptx-stylesheet.cxx @@ -103,7 +103,7 @@ void PPTExCharSheet::Write( SvStream& rSt, sal_uInt16 nLev, bool bSimpleText, .WriteUInt16( rLev.mnFont ); sal_uInt32 nFontColor = rLev.mnFontColor; - if ( nFontColor == COL_AUTO ) + if ( nFontColor == sal_uInt32(COL_AUTO) ) { bool bIsDark = false; css::uno::Any aAny; @@ -346,7 +346,7 @@ void PPTExParaSheet::Write( SvStream& rSt, sal_uInt16 nLev, bool bSimpleText, if ( bSimpleText ) nParaFlags &= 0x7fff; sal_uInt32 nBulletColor = rLev.mnBulletColor; - if ( nBulletColor == COL_AUTO ) + if ( nBulletColor == sal_uInt32(COL_AUTO) ) { bool bIsDark = false; css::uno::Any aAny; diff --git a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx index 5d1f3db27f0d..690c69e7f952 100644 --- a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx +++ b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx @@ -829,7 +829,7 @@ css::uno::Sequence< css::uno::Any > sal_Int32 SAL_CALL AccessibleDocumentViewBase::getForeground( ) { - return COL_BLACK; + return sal_Int32(COL_BLACK); } sal_Int32 SAL_CALL AccessibleDocumentViewBase::getBackground( ) diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx index 4b6203418f5c..c686ebab5305 100644 --- a/sd/source/ui/table/TableDesignPane.cxx +++ b/sd/source/ui/table/TableDesignPane.cxx @@ -104,7 +104,7 @@ TableDesignWidget::TableDesignWidget( VclBuilderContainer* pParent, ViewShellBas else { m_pValueSet->SetColor( COL_WHITE ); - m_pValueSet->SetBackground( Color(COL_WHITE) ); + m_pValueSet->SetBackground( COL_WHITE ); } m_pValueSet->SetSelectHdl (LINK(this, TableDesignWidget, implValueSetHdl)); @@ -619,7 +619,7 @@ const BitmapEx CreateDesignPreview( const Reference< XIndexAccess >& xTableStyle Size aBmpSize(nBitmapWidth, nBitmapHeight); pVirDev->SetOutputSizePixel(aBmpSize); - pVirDev->SetBackground( Color( bIsPageDark ? COL_BLACK : COL_WHITE ) ); + pVirDev->SetBackground( bIsPageDark ? COL_BLACK : COL_WHITE ); pVirDev->Erase(); // first draw cell background and text line previews @@ -638,7 +638,7 @@ const BitmapEx CreateDesignPreview( const Reference< XIndexAccess >& xTableStyle // fill cell background const ::tools::Rectangle aRect( nX, nY, nX + nCellWidth - 1, nY + nCellHeight - 1 ); - if( xCellInfo->maCellColor.GetColor() != COL_TRANSPARENT ) + if( xCellInfo->maCellColor != COL_TRANSPARENT ) { pVirDev->SetFillColor( xCellInfo->maCellColor ); pVirDev->DrawRect( aRect ); @@ -648,7 +648,7 @@ const BitmapEx CreateDesignPreview( const Reference< XIndexAccess >& xTableStyle } // draw text preview line - if( aTextColor.GetColor() == COL_AUTO ) + if( aTextColor == COL_AUTO ) aTextColor = bIsPageDark ? COL_WHITE : COL_BLACK; pVirDev->SetLineColor( aTextColor ); const Point aPnt1( nX + 2, nY + ((nCellHeight - 1 ) >> 1) ); |