diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-26 13:30:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-27 11:28:29 +0100 |
commit | c98d3303027bd8bf8e0881b61918710ac479864c (patch) | |
tree | e6843dfd93352f134207cbc482451e8f17266bc2 /sd | |
parent | 44a485c2baaf5bab81748f992915459bdaa58615 (diff) |
replace Color(COL_*) with COL_*
using
git grep -lwP "Color\s*\(\s*(COL_\w+)\s*\)"
| xargs perl -pi -e "s/Color\s*\(\s*(COL_\w+)\s*\)//g"
and then some manual fixup where the resulting expression no longer
compiled
Change-Id: I0e268d78611c3be40bba9f60ecfdc087a36c0df4
Reviewed-on: https://gerrit.libreoffice.org/50372
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/export-tests.cxx | 4 | ||||
-rw-r--r-- | sd/source/core/drawdoc4.cxx | 6 | ||||
-rw-r--r-- | sd/source/core/stlpool.cxx | 24 | ||||
-rw-r--r-- | sd/source/filter/html/htmlex.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/animations/CustomAnimationDialog.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/animations/motionpathtag.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/annotations/annotationmanager.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/dlg/PhotoAlbumDialog.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/RemoteDialogClientBox.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/docprev.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/headerfooterdlg.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/slideshow/showwin.cxx | 12 | ||||
-rw-r--r-- | sd/source/ui/slideshow/slideshowimpl.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/table/TableDesignPane.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/view/DocumentRenderer.cxx | 2 |
15 files changed, 39 insertions, 39 deletions
diff --git a/sd/qa/unit/export-tests.cxx b/sd/qa/unit/export-tests.cxx index e0c31b2b0da3..d1d9e24c7ef4 100644 --- a/sd/qa/unit/export-tests.cxx +++ b/sd/qa/unit/export-tests.cxx @@ -279,10 +279,10 @@ void SdExportTest::testTransparentBackground() const SdrPage *pPage = GetPage( 1, xDocShRef ); const SdrTextObj *pObj1 = dynamic_cast<SdrTextObj *>( pPage->GetObj( 0 ) ); - checkFontAttributes<Color, SvxBackgroundColorItem>( pObj1, Color(COL_TRANSPARENT) ); + checkFontAttributes<Color, SvxBackgroundColorItem>( pObj1, COL_TRANSPARENT ); const SdrTextObj *pObj2 = dynamic_cast<SdrTextObj *>( pPage->GetObj( 1 ) ); - checkFontAttributes<Color, SvxBackgroundColorItem>( pObj2, Color(COL_YELLOW)); + checkFontAttributes<Color, SvxBackgroundColorItem>( pObj2, COL_YELLOW); xDocShRef->DoClose(); } diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx index a990a41ef772..7fda9ef61e67 100644 --- a/sd/source/core/drawdoc4.cxx +++ b/sd/source/core/drawdoc4.cxx @@ -214,7 +214,7 @@ void SdDrawDocument::CreateLayoutTemplates() rISet.Put(SvxCaseMapItem(SvxCaseMap::NotMapped, EE_CHAR_CASEMAP )); rISet.Put(SvxEmphasisMarkItem(FontEmphasisMark::NONE, EE_CHAR_EMPHASISMARK)); rISet.Put(SvxCharReliefItem(FontRelief::NONE, EE_CHAR_RELIEF)); - rISet.Put(SvxColorItem(Color(COL_AUTO), EE_CHAR_COLOR )); + rISet.Put(SvxColorItem(COL_AUTO, EE_CHAR_COLOR )); // Paragraph attributes (Edit Engine) rISet.Put(SvxLRSpaceItem(EE_PARA_LRSPACE)); @@ -573,7 +573,7 @@ void SdDrawDocument::CreateDefaultCellStyles() rISet.Put( SvxFontHeightItem( 635, 100, EE_CHAR_FONTHEIGHT_CJK ) ); // 18 pt rISet.Put( SvxFontHeightItem( convertFontHeightToCTL( 635 ), 100, EE_CHAR_FONTHEIGHT_CTL ) ); // 18 pt - rISet.Put(SvxColorItem(Color(COL_AUTO), EE_CHAR_COLOR )); + rISet.Put(SvxColorItem(COL_AUTO, EE_CHAR_COLOR )); // Paragraph attributes (Edit Engine) rISet.Put(SvxLRSpaceItem(EE_PARA_LRSPACE)); @@ -1202,7 +1202,7 @@ void SdDrawDocument::SetTextDefaults() const aNumberFormat.SetBulletFont(&aBulletFont); aNumberFormat.SetBulletChar( 0x25CF ); // StarBats: 0xF000 + 34 aNumberFormat.SetBulletRelSize(45); - aNumberFormat.SetBulletColor(Color(COL_AUTO)); + aNumberFormat.SetBulletColor(COL_AUTO); aNumberFormat.SetStart(1); aNumberFormat.SetNumAdjust(SvxAdjust::Left); diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx index 3f92f2250a98..6a25bb423751 100644 --- a/sd/source/core/stlpool.cxx +++ b/sd/source/core/stlpool.cxx @@ -247,8 +247,8 @@ void SdStyleSheetPool::CreateLayoutStyleSheets(const OUString& rLayoutName, bool rSet.Put( SvxContourItem(false, EE_CHAR_OUTLINE ) ); rSet.Put( SvxEmphasisMarkItem(FontEmphasisMark::NONE, EE_CHAR_EMPHASISMARK ) ); rSet.Put( SvxCharReliefItem(FontRelief::NONE, EE_CHAR_RELIEF) ); - rSet.Put( SvxColorItem( Color(COL_AUTO), EE_CHAR_COLOR) ); - rSet.Put( SvxBackgroundColorItem( Color (COL_AUTO), EE_CHAR_BKGCOLOR ) ); + rSet.Put( SvxColorItem( COL_AUTO, EE_CHAR_COLOR) ); + rSet.Put( SvxBackgroundColorItem( COL_AUTO, EE_CHAR_BKGCOLOR ) ); rSet.Put( XLineStyleItem(css::drawing::LineStyle_NONE) ); rSet.Put( XFillStyleItem(drawing::FillStyle_NONE) ); rSet.Put( SdrTextFitToSizeTypeItem(drawing::TextFitToSizeType_AUTOFIT) ); @@ -362,8 +362,8 @@ void SdStyleSheetPool::CreateLayoutStyleSheets(const OUString& rLayoutName, bool rTitleSet.Put(SvxContourItem(false, EE_CHAR_OUTLINE )); rTitleSet.Put( SvxEmphasisMarkItem(FontEmphasisMark::NONE, EE_CHAR_EMPHASISMARK ) ); rTitleSet.Put( SvxCharReliefItem(FontRelief::NONE, EE_CHAR_RELIEF ) ); - rTitleSet.Put(SvxColorItem( Color(COL_AUTO), EE_CHAR_COLOR )); - rTitleSet.Put(SvxBackgroundColorItem( Color(COL_AUTO), EE_CHAR_BKGCOLOR )); + rTitleSet.Put(SvxColorItem( COL_AUTO, EE_CHAR_COLOR )); + rTitleSet.Put(SvxBackgroundColorItem( COL_AUTO, EE_CHAR_BKGCOLOR )); rTitleSet.Put(SvxAdjustItem(SvxAdjust::Center, EE_PARA_JUST )); rTitleSet.Put( SdrTextVertAdjustItem( SDRTEXTVERTADJUST_CENTER ) ); // #i16874# enable kerning by default but only for new documents @@ -408,8 +408,8 @@ void SdStyleSheetPool::CreateLayoutStyleSheets(const OUString& rLayoutName, bool rSubtitleSet.Put(SvxContourItem(false, EE_CHAR_OUTLINE )); rSubtitleSet.Put( SvxEmphasisMarkItem(FontEmphasisMark::NONE, EE_CHAR_EMPHASISMARK ) ); rSubtitleSet.Put( SvxCharReliefItem(FontRelief::NONE, EE_CHAR_RELIEF ) ); - rSubtitleSet.Put(SvxColorItem( Color(COL_AUTO), EE_CHAR_COLOR )); - rSubtitleSet.Put(SvxBackgroundColorItem( Color(COL_AUTO), EE_CHAR_BKGCOLOR )); + rSubtitleSet.Put(SvxColorItem( COL_AUTO, EE_CHAR_COLOR )); + rSubtitleSet.Put(SvxBackgroundColorItem( COL_AUTO, EE_CHAR_BKGCOLOR )); rSubtitleSet.Put(SvxAdjustItem(SvxAdjust::Center, EE_PARA_JUST )); rSubtitleSet.Put( SdrTextVertAdjustItem( SDRTEXTVERTADJUST_CENTER ) ); // #i16874# enable kerning by default but only for new documents @@ -457,8 +457,8 @@ void SdStyleSheetPool::CreateLayoutStyleSheets(const OUString& rLayoutName, bool rNotesSet.Put( SvxContourItem(false, EE_CHAR_OUTLINE ) ); rNotesSet.Put( SvxEmphasisMarkItem(FontEmphasisMark::NONE, EE_CHAR_EMPHASISMARK ) ); rNotesSet.Put( SvxCharReliefItem(FontRelief::NONE, EE_CHAR_RELIEF) ); - rNotesSet.Put( SvxColorItem( Color(COL_AUTO), EE_CHAR_COLOR ) ); - rNotesSet.Put( SvxBackgroundColorItem( Color(COL_AUTO), EE_CHAR_BKGCOLOR ) ); + rNotesSet.Put( SvxColorItem( COL_AUTO, EE_CHAR_COLOR ) ); + rNotesSet.Put( SvxBackgroundColorItem( COL_AUTO, EE_CHAR_BKGCOLOR ) ); rNotesSet.Put( SvxLRSpaceItem( 0, 0, 600, -600, EE_PARA_LRSPACE ) ); // #i16874# enable kerning by default but only for new documents rNotesSet.Put( SvxAutoKernItem( true, EE_CHAR_PAIRKERNING ) ); @@ -481,7 +481,7 @@ void SdStyleSheetPool::CreateLayoutStyleSheets(const OUString& rLayoutName, bool pSheet->SetParent( OUString() ); SfxItemSet& rBackgroundObjectsSet = pSheet->GetItemSet(); rBackgroundObjectsSet.Put(makeSdrShadowItem(false)); - rBackgroundObjectsSet.Put(makeSdrShadowColorItem(Color(COL_GRAY))); + rBackgroundObjectsSet.Put(makeSdrShadowColorItem(COL_GRAY)); rBackgroundObjectsSet.Put(makeSdrShadowXDistItem(200)); // 3 mm shadow distance rBackgroundObjectsSet.Put(makeSdrShadowYDistItem(200)); // #i16874# enable kerning by default but only for new documents @@ -1092,7 +1092,7 @@ void SdStyleSheetPool::PutNumBulletItem( SfxStyleSheetBase* pSheet, aNumberFormat.SetBulletFont(&rBulletFont); aNumberFormat.SetBulletChar( 0x25CF ); // StarBats: 0xF000 + 34 aNumberFormat.SetBulletRelSize(45); - aNumberFormat.SetBulletColor(Color(COL_AUTO)); + aNumberFormat.SetBulletColor(COL_AUTO); aNumberFormat.SetStart(1); aNumberFormat.SetNumAdjust(SvxAdjust::Left); @@ -1148,7 +1148,7 @@ void SdStyleSheetPool::PutNumBulletItem( SfxStyleSheetBase* pSheet, { // Outline template SvxNumberFormat aNumberFormat(SVX_NUM_CHAR_SPECIAL); - aNumberFormat.SetBulletColor(Color(COL_AUTO)); + aNumberFormat.SetBulletColor(COL_AUTO); aNumberFormat.SetStart(1); aNumberFormat.SetNumAdjust(SvxAdjust::Left); @@ -1187,7 +1187,7 @@ vcl::Font SdStyleSheetPool::GetBulletFont() aBulletFont.SetItalic(ITALIC_NONE); aBulletFont.SetOutline(false); aBulletFont.SetShadow(false); - aBulletFont.SetColor(Color(COL_AUTO)); + aBulletFont.SetColor(COL_AUTO); aBulletFont.SetTransparent(true); return aBulletFont; diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx index 1e8c666f68bb..6c6792d6c780 100644 --- a/sd/source/filter/html/htmlex.cxx +++ b/sd/source/filter/html/htmlex.cxx @@ -811,7 +811,7 @@ void HtmlExport::SetDocColors( SdPage* pPage ) maVLinkColor = aConfig.GetColorValue(svtools::LINKSVISITED).nColor; maALinkColor = aConfig.GetColorValue(svtools::LINKS).nColor; maLinkColor = aConfig.GetColorValue(svtools::LINKS).nColor; - maTextColor = Color(COL_BLACK); + maTextColor = COL_BLACK; SfxStyleSheet* pSheet = nullptr; @@ -1422,7 +1422,7 @@ OUString HtmlExport::ParagraphToHTMLString( SdrOutliner const * pOutliner, sal_I if(nullptr == pPara) return OUString(); - HtmlState aState( (mbUserAttr || mbDocColors) ? maTextColor : Color(COL_BLACK) ); + HtmlState aState( (mbUserAttr || mbDocColors) ? maTextColor : COL_BLACK ); std::vector<sal_Int32> aPortionList; rEditEngine.GetPortions( nPara, aPortionList ); diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx index 7012cb278b36..0f151eef9775 100644 --- a/sd/source/ui/animations/CustomAnimationDialog.cxx +++ b/sd/source/ui/animations/CustomAnimationDialog.cxx @@ -1061,7 +1061,7 @@ CustomAnimationEffectTabPage::CustomAnimationEffectTabPage( vcl::Window* pParent get(mpLBAfterEffect, "aeffect_list" ); get(mpFTDimColor, "dim_color_label" ); get(mpCLBDimColor, "dim_color_list" ); - mpCLBDimColor->SelectEntry(Color(COL_BLACK)); + mpCLBDimColor->SelectEntry(COL_BLACK); get(mpFTTextAnim, "text_animation_label" ); get(mpLBTextAnim, "text_animation_list" ); get(mpMFTextDelay,"text_delay" ); diff --git a/sd/source/ui/animations/motionpathtag.cxx b/sd/source/ui/animations/motionpathtag.cxx index 688a15873920..17668e4f36c0 100644 --- a/sd/source/ui/animations/motionpathtag.cxx +++ b/sd/source/ui/animations/motionpathtag.cxx @@ -332,7 +332,7 @@ MotionPathTag::MotionPathTag( CustomAnimationPane& rPane, ::sd::View& rView, con OUString aEmpty( "?" ); mpPathObj->SetMergedItem( XLineDashItem( aEmpty, aDash ) ); mpPathObj->SetMergedItem( XLineStyleItem( drawing::LineStyle_DASH ) ); - mpPathObj->SetMergedItem( XLineColorItem(aEmpty, ::Color(COL_GRAY)) ); + mpPathObj->SetMergedItem( XLineColorItem(aEmpty, ::COL_GRAY) ); mpPathObj->SetMergedItem( XFillStyleItem( drawing::FillStyle_NONE ) ); ::basegfx::B2DPolygon aStartArrow; diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx index 2294115c0394..bdf41e19a65b 100644 --- a/sd/source/ui/annotations/annotationmanager.cxx +++ b/sd/source/ui/annotations/annotationmanager.cxx @@ -1226,7 +1226,7 @@ Color AnnotationManagerImpl::GetColor(sal_uInt16 aAuthorIndex) return aArrayNormal[ aAuthorIndex % SAL_N_ELEMENTS( aArrayNormal ) ]; } - return Color(COL_WHITE); + return COL_WHITE; } Color AnnotationManagerImpl::GetColorLight(sal_uInt16 aAuthorIndex) @@ -1241,7 +1241,7 @@ Color AnnotationManagerImpl::GetColorLight(sal_uInt16 aAuthorIndex) return aArrayLight[ aAuthorIndex % SAL_N_ELEMENTS( aArrayLight ) ]; } - return Color(COL_WHITE); + return COL_WHITE; } Color AnnotationManagerImpl::GetColorDark(sal_uInt16 aAuthorIndex) @@ -1256,7 +1256,7 @@ Color AnnotationManagerImpl::GetColorDark(sal_uInt16 aAuthorIndex) return aArrayAnkor[ aAuthorIndex % SAL_N_ELEMENTS( aArrayAnkor ) ]; } - return Color(COL_WHITE); + return COL_WHITE; } SdPage* AnnotationManagerImpl::GetNextPage( SdPage const * pPage, bool bForward ) diff --git a/sd/source/ui/dlg/PhotoAlbumDialog.cxx b/sd/source/ui/dlg/PhotoAlbumDialog.cxx index c7d0c8243a27..da03348b075f 100644 --- a/sd/source/ui/dlg/PhotoAlbumDialog.cxx +++ b/sd/source/ui/dlg/PhotoAlbumDialog.cxx @@ -789,7 +789,7 @@ void SdPhotoAlbumDialog::createCaption(const awt::Size& aPageSize ) SfxItemSet aSet(pDoc->GetItemPool() ); aSet.Put( XFillStyleItem(drawing::FillStyle_SOLID) ); - aSet.Put( XFillColorItem( "", Color(COL_BLACK) ) ); + aSet.Put( XFillColorItem( "", COL_BLACK ) ); aSet.Put( XFillTransparenceItem( 20 ) ); pSdrObj->SetMergedItemSetAndBroadcast(aSet); } diff --git a/sd/source/ui/dlg/RemoteDialogClientBox.cxx b/sd/source/ui/dlg/RemoteDialogClientBox.cxx index f5618622d042..5fa5dc69ab50 100644 --- a/sd/source/ui/dlg/RemoteDialogClientBox.cxx +++ b/sd/source/ui/dlg/RemoteDialogClientBox.cxx @@ -328,7 +328,7 @@ void ClientBox::DrawRow(vcl::RenderContext& rRenderContext, const ::tools::Recta DrawText(m_sPinTextRect, sPinText); } - rRenderContext.SetLineColor(Color(COL_LIGHTGRAY)); + rRenderContext.SetLineColor(COL_LIGHTGRAY); rRenderContext.DrawLine(rRect.BottomLeft(), rRect.BottomRight()); } diff --git a/sd/source/ui/dlg/docprev.cxx b/sd/source/ui/dlg/docprev.cxx index a654fbe6417e..1c69894cf011 100644 --- a/sd/source/ui/dlg/docprev.cxx +++ b/sd/source/ui/dlg/docprev.cxx @@ -149,7 +149,7 @@ void SdDocPreviewWin::updateViewSettings() bool bUseWhiteColor = !aAccOptions.GetIsForPagePreviews() && GetSettings().GetStyleSettings().GetHighContrastMode(); if( bUseWhiteColor ) { - maDocumentColor = Color( COL_WHITE ); + maDocumentColor = COL_WHITE; } else { diff --git a/sd/source/ui/dlg/headerfooterdlg.cxx b/sd/source/ui/dlg/headerfooterdlg.cxx index f706d61b0a3d..da9f2f6679d1 100644 --- a/sd/source/ui/dlg/headerfooterdlg.cxx +++ b/sd/source/ui/dlg/headerfooterdlg.cxx @@ -791,7 +791,7 @@ void PresLayoutPreview::Paint(vcl::RenderContext& rRenderContext, const ::tools: maOutRect = aDecoView.DrawFrame(maOutRect, DrawFrameStyle::In); // draw page background - rRenderContext.SetFillColor(Color(COL_WHITE)); + rRenderContext.SetFillColor(COL_WHITE); rRenderContext.DrawRect(maOutRect); // paint presentation objects from masterpage diff --git a/sd/source/ui/slideshow/showwin.cxx b/sd/source/ui/slideshow/showwin.cxx index b70234500935..8553cbea1ba4 100644 --- a/sd/source/ui/slideshow/showwin.cxx +++ b/sd/source/ui/slideshow/showwin.cxx @@ -70,7 +70,7 @@ ShowWindow::ShowWindow( const ::rtl::Reference< SlideshowImpl >& xController, vc maMouseTimer.SetInvokeHandler( LINK( this, ShowWindow, MouseTimeoutHdl ) ); maMouseTimer.SetTimeout( HIDE_MOUSE_TIMEOUT ); - maShowBackground = Wallpaper( Color( COL_BLACK ) ); + maShowBackground = Wallpaper( COL_BLACK ); SetBackground(); // avoids that VCL paints any background! GetParent()->Show(); AddEventListener( LINK( this, ShowWindow, EventHdl ) ); @@ -294,7 +294,7 @@ void ShowWindow::SetEndMode() { DeleteWindowFromPaintView(); meShowWindowMode = SHOWWINDOWMODE_END; - maShowBackground = Wallpaper( Color( COL_BLACK ) ); + maShowBackground = Wallpaper( COL_BLACK ); // hide navigator if it is visible if( mpViewShell->GetViewFrame()->GetChildWindow( SID_NAVIGATOR ) ) @@ -324,7 +324,7 @@ bool ShowWindow::SetPauseMode( sal_Int32 nTimeout, Graphic const * pLogo ) mnPauseTimeout = nTimeout; mnRestartPageIndex = 0; meShowWindowMode = SHOWWINDOWMODE_PAUSE; - maShowBackground = Wallpaper( Color( COL_BLACK ) ); + maShowBackground = Wallpaper( COL_BLACK ); // hide navigator if it is visible if( mpViewShell->GetViewFrame()->GetChildWindow( SID_NAVIGATOR ) ) @@ -378,7 +378,7 @@ void ShowWindow::TerminateShow() maPauseTimer.Stop(); maMouseTimer.Stop(); Erase(); - maShowBackground = Wallpaper( Color( COL_BLACK ) ); + maShowBackground = Wallpaper( COL_BLACK ); meShowWindowMode = SHOWWINDOWMODE_NORMAL; mnPauseTimeout = SLIDE_NO_TIMEOUT; @@ -411,7 +411,7 @@ void ShowWindow::RestartShow( sal_Int32 nPageIndexToRestart ) maLogo.Clear(); maPauseTimer.Stop(); Erase(); - maShowBackground = Wallpaper( Color( COL_BLACK ) ); + maShowBackground = Wallpaper( COL_BLACK ); meShowWindowMode = SHOWWINDOWMODE_NORMAL; mnPauseTimeout = SLIDE_NO_TIMEOUT; @@ -489,7 +489,7 @@ void ShowWindow::DrawPauseScene( bool bTimeoutOnly ) aVMap.SetOrigin( Point() ); pVDev->SetMapMode( aVMap ); - pVDev->SetBackground( Wallpaper( Color( COL_BLACK ) ) ); + pVDev->SetBackground( Wallpaper( COL_BLACK ) ); // set font first, to determine real output height pVDev->SetFont( aFont ); diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index d55b9adb66a1..4ad0e1042cd6 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -1100,7 +1100,7 @@ void SlideshowImpl::onFirstPaint() if( mpShowWindow ) { /* - mpShowWindow->SetBackground( Wallpaper( Color( COL_BLACK ) ) ); + mpShowWindow->SetBackground( Wallpaper( COL_BLACK ) ); mpShowWindow->Erase(); mpShowWindow->SetBackground(); */ @@ -1995,7 +1995,7 @@ IMPL_LINK_NOARG(SlideshowImpl, ContextMenuHdl, void*, void) PopupMenu* pBlankMenu = pMenu->GetPopupMenu(pMenu->GetItemId("screen")); if( pBlankMenu ) { - pBlankMenu->CheckItem((mpShowWindow->GetBlankColor() == Color(COL_WHITE)) ? pBlankMenu->GetItemId("white") : pBlankMenu->GetItemId("black")); + pBlankMenu->CheckItem((mpShowWindow->GetBlankColor() == COL_WHITE) ? pBlankMenu->GetItemId("white") : pBlankMenu->GetItemId("black")); } } diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx index 0d54c61b3182..4b6203418f5c 100644 --- a/sd/source/ui/table/TableDesignPane.cxx +++ b/sd/source/ui/table/TableDesignPane.cxx @@ -103,8 +103,8 @@ TableDesignWidget::TableDesignWidget( VclBuilderContainer* pParent, ViewShellBas } else { - m_pValueSet->SetColor( Color( COL_WHITE ) ); - m_pValueSet->SetBackground( Color( COL_WHITE ) ); + m_pValueSet->SetColor( COL_WHITE ); + m_pValueSet->SetBackground( Color(COL_WHITE) ); } m_pValueSet->SetSelectHdl (LINK(this, TableDesignWidget, implValueSetHdl)); diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index 2e55d56edfe0..f70554442f34 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -1549,7 +1549,7 @@ private: SdrPathObj* pPathObj = new SdrPathObj(OBJ_PATHLINE, aPathPoly ); pPathObj->SetMergedItem(XLineStyleItem(drawing::LineStyle_SOLID)); - pPathObj->SetMergedItem(XLineColorItem(OUString(), Color(COL_BLACK))); + pPathObj->SetMergedItem(XLineColorItem(OUString(), COL_BLACK)); pHandout->NbcInsertObject( pPathObj ); } |