summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2011-04-01 10:26:03 +0200
committerIvo Hinkelmann <ihi@openoffice.org>2011-04-01 10:26:03 +0200
commit1682eb01e75a78f01e7ef8b37097ed744b568703 (patch)
tree09ef1bb7dbd75ca521c494838fe88e651013be8f /svx
parenta2ae6ba78a9869528f42cf46a5fae0dc7a13e7e5 (diff)
parentaa67a378129447f60c1eb234f0657b14196b24d0 (diff)
CWS-TOOLING: integrate CWS os151
Diffstat (limited to 'svx')
-rwxr-xr-x[-rw-r--r--]svx/inc/svx/xoutbmp.hxx1
-rwxr-xr-x[-rw-r--r--]svx/source/xoutdev/_xoutbmp.cxx6
2 files changed, 5 insertions, 2 deletions
diff --git a/svx/inc/svx/xoutbmp.hxx b/svx/inc/svx/xoutbmp.hxx
index 1d0fca8de220..6dd59dbd6e57 100644..100755
--- a/svx/inc/svx/xoutbmp.hxx
+++ b/svx/inc/svx/xoutbmp.hxx
@@ -43,6 +43,7 @@
#define XOUTBMP_CONTOUR_HORZ 0x00000001L
#define XOUTBMP_CONTOUR_VERT 0x00000002L
#define XOUTBMP_CONTOUR_EDGEDETECT 0x00000004L
+#define XOUTBMP_DONT_ADD_EXTENSION 0x00000008L
#define XOUTBMP_DONT_EXPAND_FILENAME 0x10000000L
#define XOUTBMP_USE_GIF_IF_POSSIBLE 0x20000000L
diff --git a/svx/source/xoutdev/_xoutbmp.cxx b/svx/source/xoutdev/_xoutbmp.cxx
index e8958bf82479..62c434097699 100644..100755
--- a/svx/source/xoutdev/_xoutbmp.cxx
+++ b/svx/source/xoutdev/_xoutbmp.cxx
@@ -367,7 +367,8 @@ sal_uInt16 XOutBitmap::WriteGraphic( const Graphic& rGraphic, String& rFileName,
if( aExt.Len() )
{
- aURL.setExtension( aExt );
+ if( 0 == (nFlags & XOUTBMP_DONT_ADD_EXTENSION))
+ aURL.setExtension( aExt );
rFileName = aURL.GetMainURL( INetURLObject::NO_DECODE );
SfxMedium aMedium( aURL.GetMainURL( INetURLObject::NO_DECODE ), STREAM_WRITE | STREAM_SHARE_DENYNONE | STREAM_TRUNC, sal_True );
@@ -472,7 +473,8 @@ sal_uInt16 XOutBitmap::WriteGraphic( const Graphic& rGraphic, String& rFileName,
if( ( GRFILTER_FORMAT_NOTFOUND != nFilter ) && ( aGraphic.GetType() != GRAPHIC_NONE ) )
{
- aURL.setExtension( aExt );
+ if( 0 == (nFlags & XOUTBMP_DONT_ADD_EXTENSION))
+ aURL.setExtension( aExt );
rFileName = aURL.GetMainURL( INetURLObject::NO_DECODE );
nErr = ExportGraphic( aGraphic, aURL, *pFilter, nFilter, NULL );
}