diff options
Diffstat (limited to 'sd/source/ui/func/fucopy.cxx')
-rw-r--r-- | sd/source/ui/func/fucopy.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sd/source/ui/func/fucopy.cxx b/sd/source/ui/func/fucopy.cxx index 800ce2f78be8..a93d7ded0d6f 100644 --- a/sd/source/ui/func/fucopy.cxx +++ b/sd/source/ui/func/fucopy.cxx @@ -40,6 +40,8 @@ #include "sdabstdlg.hxx" #include <boost/scoped_ptr.hpp> +using namespace com::sun::star; + namespace sd { TYPEINIT1( FuCopy, FuPoor ); @@ -84,9 +86,9 @@ void FuCopy::DoExecute( SfxRequest& rReq ) if( SFX_ITEM_SET == aAttr.GetItemState( XATTR_FILLSTYLE, true, &pPoolItem ) ) { - XFillStyle eStyle = ( ( const XFillStyleItem* ) pPoolItem )->GetValue(); + drawing::FillStyle eStyle = ( ( const XFillStyleItem* ) pPoolItem )->GetValue(); - if( eStyle == XFILL_SOLID && + if( eStyle == drawing::FillStyle_SOLID && SFX_ITEM_SET == aAttr.GetItemState( XATTR_FILLCOLOR, true, &pPoolItem ) ) { const XFillColorItem* pItem = ( const XFillColorItem* ) pPoolItem; @@ -209,7 +211,7 @@ void FuCopy::DoExecute( SfxRequest& rReq ) if( ( 1 == i ) && bColor ) { SfxItemSet aNewSet( mpViewShell->GetPool(), XATTR_FILLSTYLE, XATTR_FILLCOLOR, 0L ); - aNewSet.Put( XFillStyleItem( XFILL_SOLID ) ); + aNewSet.Put( XFillStyleItem( drawing::FillStyle_SOLID ) ); aNewSet.Put( XFillColorItem( OUString(), aStartColor ) ); mpView->SetAttributes( aNewSet ); } @@ -271,7 +273,7 @@ void FuCopy::DoExecute( SfxRequest& rReq ) sal_uInt8 nBlue = aStartColor.GetBlue() + (sal_uInt8) ( ( (long) aEndColor.GetBlue() - (long) aStartColor.GetBlue() ) * (long) i / (long) nNumber ); Color aNewColor( nRed, nGreen, nBlue ); SfxItemSet aNewSet( mpViewShell->GetPool(), XATTR_FILLSTYLE, XATTR_FILLCOLOR, 0L ); - aNewSet.Put( XFillStyleItem( XFILL_SOLID ) ); + aNewSet.Put( XFillStyleItem( drawing::FillStyle_SOLID ) ); aNewSet.Put( XFillColorItem( OUString(), aNewColor ) ); mpView->SetAttributes( aNewSet ); } |