Kaydet (Commit) b1259761 authored tarafından David Tardon's avatar David Tardon

WaE: declaration of ‘FILE’ shadows a global declaration

Change-Id: I544e1154c846a8b5da4ab3dee72e3aa1332557e6
üst 174ba855
......@@ -71,7 +71,7 @@ enum SgaObjKind
enum class GalleryGraphicImportRet
{
NONE, FILE, INET
IMPORT_NONE, IMPORT_FILE, IMPORT_INET
};
#define GALLERY_PROGRESS_RANGE 10000
......
......@@ -85,7 +85,7 @@ IMPL_LINK( SgaUserDataFactory, MakeUserData, SdrObjFactory*, pObjFactory )
GalleryGraphicImportRet GalleryGraphicImport( const INetURLObject& rURL, Graphic& rGraphic,
OUString& rFilterName, bool bShowProgress )
{
GalleryGraphicImportRet nRet = GalleryGraphicImportRet::NONE;
GalleryGraphicImportRet nRet = GalleryGraphicImportRet::IMPORT_NONE;
SfxMedium aMedium( rURL.GetMainURL( INetURLObject::NO_DECODE ), StreamMode::READ );
aMedium.Download();
......@@ -101,7 +101,7 @@ GalleryGraphicImportRet GalleryGraphicImport( const INetURLObject& rURL, Graphic
if( !rGraphicFilter.ImportGraphic( rGraphic, rURL.GetMainURL( INetURLObject::NO_DECODE ), *pIStm, GRFILTER_FORMAT_DONTKNOW, &nFormat ) )
{
rFilterName = rGraphicFilter.GetImportFormatName( nFormat );
nRet = GalleryGraphicImportRet::FILE;
nRet = GalleryGraphicImportRet::IMPORT_FILE;
}
}
......
......@@ -278,7 +278,7 @@ SgaObjectBmp::SgaObjectBmp( const INetURLObject& rURL )
Graphic aGraphic;
OUString aFilter;
if ( GalleryGraphicImportRet::NONE != GalleryGraphicImport( rURL, aGraphic, aFilter ) )
if ( GalleryGraphicImportRet::IMPORT_NONE != GalleryGraphicImport( rURL, aGraphic, aFilter ) )
Init( aGraphic, rURL );
}
......
......@@ -553,7 +553,7 @@ void GalleryTheme::Actualize( const Link& rActualizeLink, GalleryProgress* pProg
{
aGraphic.Clear();
if ( GalleryGraphicImport( aURL, aGraphic, aFormat ) != GalleryGraphicImportRet::NONE )
if ( GalleryGraphicImport( aURL, aGraphic, aFormat ) != GalleryGraphicImportRet::IMPORT_NONE )
{
boost::scoped_ptr<SgaObject> pNewObj;
......@@ -790,7 +790,7 @@ bool GalleryTheme::GetGraphic( sal_uIntPtr nPos, Graphic& rGraphic, bool bProgre
case( SGA_OBJ_INET ):
{
OUString aFilterDummy;
bRet = ( GalleryGraphicImport( aURL, rGraphic, aFilterDummy, bProgress ) != GalleryGraphicImportRet::NONE );
bRet = ( GalleryGraphicImport( aURL, rGraphic, aFilterDummy, bProgress ) != GalleryGraphicImportRet::IMPORT_NONE );
}
break;
......@@ -1108,9 +1108,9 @@ bool GalleryTheme::InsertURL( const INetURLObject& rURL, sal_uIntPtr nInsertPos
const GalleryGraphicImportRet nImportRet = GalleryGraphicImport( rURL, aGraphic, aFormat );
bool bRet = false;
if( nImportRet != GalleryGraphicImportRet::NONE )
if( nImportRet != GalleryGraphicImportRet::IMPORT_NONE )
{
if ( GalleryGraphicImportRet::INET == nImportRet )
if ( GalleryGraphicImportRet::IMPORT_INET == nImportRet )
pNewObj.reset((SgaObject*) new SgaObjectINet( aGraphic, rURL, aFormat ));
else if ( aGraphic.IsAnimated() )
pNewObj.reset((SgaObject*) new SgaObjectAnim( aGraphic, rURL, aFormat ));
......
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