summaryrefslogtreecommitdiffstats
path: root/writerfilter/source/dmapper/GraphicImport.cxx
diff options
context:
space:
mode:
authorHenning Brinkmann <hbrinkm@openoffice.org>2006-11-23 08:56:15 +0000
committerHenning Brinkmann <hbrinkm@openoffice.org>2006-11-23 08:56:15 +0000
commita3721b58c0c32cc2cc3a244aabcc679400cbdd4a (patch)
tree2ae2d789c7277c50362bdaa87687636ba894258a /writerfilter/source/dmapper/GraphicImport.cxx
parentoutput hex of attribute values (diff)
downloadcore-a3721b58c0c32cc2cc3a244aabcc679400cbdd4a.tar.gz
core-a3721b58c0c32cc2cc3a244aabcc679400cbdd4a.zip
handed warnings
Diffstat (limited to 'writerfilter/source/dmapper/GraphicImport.cxx')
-rw-r--r--writerfilter/source/dmapper/GraphicImport.cxx25
1 files changed, 12 insertions, 13 deletions
diff --git a/writerfilter/source/dmapper/GraphicImport.cxx b/writerfilter/source/dmapper/GraphicImport.cxx
index 3fbd0e28c55b..9b356b41f70c 100644
--- a/writerfilter/source/dmapper/GraphicImport.cxx
+++ b/writerfilter/source/dmapper/GraphicImport.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: GraphicImport.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: os $ $Date: 2006-11-22 14:03:57 $
+ * last change: $Author: hbrinkm $ $Date: 2006-11-23 09:56:15 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -135,7 +135,7 @@ XInputStreamHelper::XInputStreamHelper(const sal_uInt8* buf, size_t len, bool bB
static const sal_uInt8 aHeader[] =
{0x42, 0x4d, 0xe6, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00 };
m_pBMPHeader = aHeader;
- m_nHeaderLength = m_bBmp ? sizeof( aHeader ) / sizeof sal_uInt8 : 0;
+ m_nHeaderLength = m_bBmp ? sizeof( aHeader ) / sizeof(sal_uInt8) : 0;
}
/*-- 01.11.2006 13:56:20---------------------------------------------------
@@ -280,6 +280,13 @@ struct GraphicImport_Impl
,nTopCrop (0)
,nRightCrop (0)
,nBottomCrop(0)
+ ,nWrap(0)
+ ,bContour(false)
+ ,bIgnoreWRK(true)
+ ,nContrast(0)
+ ,nBrightness(0)
+ ,fGamma( -1.0 )
+ ,eColorMode( drawing::ColorMode_STANDARD )
,nCurrentBorderLine(BORDER_TOP)
,bIsBitmap(false)
,bIsTiff(false)
@@ -287,14 +294,6 @@ struct GraphicImport_Impl
,bHoriFlip(false)
,bVertFlip(false)
,bInShapeOptionMode(false)
- ,nShapeOptionType(0)
- ,nWrap(0)
- ,bContour(false)
- ,bIgnoreWRK(true)
- ,nContrast(0)
- ,nBrightness(0)
- ,eColorMode( drawing::ColorMode_STANDARD )
- ,fGamma( -1.0 )
{}
};
/*-- 01.11.2006 09:42:42---------------------------------------------------
@@ -1414,9 +1413,9 @@ void GraphicImport::data(const sal_uInt8* buf, size_t len, doctok::Reference<Pro
{
if( !m_pImpl->bIsShapeImport || !nBorder )
{
- aBorderLine.Color = m_pImpl->aBorders[m_pImpl->bIsShapeImport ? BORDER_TOP : nBorder ].nLineColor;
+ aBorderLine.Color = m_pImpl->aBorders[m_pImpl->bIsShapeImport ? BORDER_TOP : static_cast<BorderPosition>(nBorder) ].nLineColor;
aBorderLine.InnerLineWidth = 0;
- aBorderLine.OuterLineWidth = (sal_Int16)m_pImpl->aBorders[m_pImpl->bIsShapeImport ? BORDER_TOP : nBorder ].nLineWidth;
+ aBorderLine.OuterLineWidth = (sal_Int16)m_pImpl->aBorders[m_pImpl->bIsShapeImport ? BORDER_TOP : static_cast<BorderPosition>(nBorder) ].nLineWidth;
aBorderLine.LineDistance = 0;
}
PropertyIds aBorderProps[4] =