summaryrefslogtreecommitdiff
path: root/filter/source/graphicfilter/icgm/cgm.cxx
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-22 21:20:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 03:38:49 +0000
commit0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch)
tree5024cba9f9ea5e3b23ea26025323f6aef39488d0 /filter/source/graphicfilter/icgm/cgm.cxx
parentb81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff)
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter/source/graphicfilter/icgm/cgm.cxx')
-rw-r--r--filter/source/graphicfilter/icgm/cgm.cxx73
1 files changed, 4 insertions, 69 deletions
diff --git a/filter/source/graphicfilter/icgm/cgm.cxx b/filter/source/graphicfilter/icgm/cgm.cxx
index b2055b35ed42..08e81ad258d7 100644
--- a/filter/source/graphicfilter/icgm/cgm.cxx
+++ b/filter/source/graphicfilter/icgm/cgm.cxx
@@ -31,8 +31,6 @@
using namespace ::com::sun::star;
-// ---------------------------------------------------------------
-
void CGM::ImplCGMInit()
{
mbIsFinished = mbPicture = mbMetaFile = mbPictureBody = sal_False;
@@ -49,8 +47,6 @@ void CGM::ImplCGMInit()
pElement = new CGMElements( *this );
}
-// ---------------------------------------------------------------
-
#ifdef CGM_EXPORT_IMPRESS
CGM::CGM( sal_uInt32 nMode, uno::Reference< frame::XModel > & rModel ) :
@@ -64,8 +60,6 @@ CGM::CGM( sal_uInt32 nMode, uno::Reference< frame::XModel > & rModel ) :
}
#endif
-// ---------------------------------------------------------------
-
CGM::~CGM()
{
@@ -91,15 +85,11 @@ CGM::~CGM()
delete [] mpBuf;
};
-// ---------------------------------------------------------------
-
sal_uInt32 CGM::GetBackGroundColor()
{
return ( pElement ) ? pElement->aColorTable[ 0 ] : 0;
}
-// ---------------------------------------------------------------
-
sal_uInt32 CGM::ImplGetUI16( sal_uInt32 /*nAlign*/ )
{
sal_uInt8* pSource = mpSource + mnParaSize;
@@ -107,15 +97,11 @@ sal_uInt32 CGM::ImplGetUI16( sal_uInt32 /*nAlign*/ )
return ( pSource[ 0 ] << 8 ) + pSource[ 1 ];
};
-// ---------------------------------------------------------------
-
sal_uInt8 CGM::ImplGetByte( sal_uInt32 nSource, sal_uInt32 nPrecision )
{
return (sal_uInt8)( nSource >> ( ( nPrecision - 1 ) << 3 ) );
};
-// ---------------------------------------------------------------
-
long CGM::ImplGetI( sal_uInt32 nPrecision )
{
sal_uInt8* pSource = mpSource + mnParaSize;
@@ -146,8 +132,6 @@ long CGM::ImplGetI( sal_uInt32 nPrecision )
}
}
-// ---------------------------------------------------------------
-
sal_uInt32 CGM::ImplGetUI( sal_uInt32 nPrecision )
{
sal_uInt8* pSource = mpSource + mnParaSize;
@@ -174,8 +158,6 @@ sal_uInt32 CGM::ImplGetUI( sal_uInt32 nPrecision )
}
}
-// ---------------------------------------------------------------
-
void CGM::ImplGetSwitch4( sal_uInt8* pSource, sal_uInt8* pDest )
{
for ( int i = 0; i < 4; i++ )
@@ -184,8 +166,6 @@ void CGM::ImplGetSwitch4( sal_uInt8* pSource, sal_uInt8* pDest )
}
}
-// ---------------------------------------------------------------
-
void CGM::ImplGetSwitch8( sal_uInt8* pSource, sal_uInt8* pDest )
{
for ( int i = 0; i < 8; i++ )
@@ -194,8 +174,6 @@ void CGM::ImplGetSwitch8( sal_uInt8* pSource, sal_uInt8* pDest )
}
}
-// ---------------------------------------------------------------
-
double CGM::ImplGetFloat( RealPrecision eRealPrecision, sal_uInt32 nRealSize )
{
void* pPtr;
@@ -265,8 +243,6 @@ double CGM::ImplGetFloat( RealPrecision eRealPrecision, sal_uInt32 nRealSize )
return nRetValue;
}
-// ---------------------------------------------------------------
-
sal_uInt32 CGM::ImplGetPointSize()
{
if ( pElement->eVDCType == VDC_INTEGER )
@@ -275,36 +251,26 @@ sal_uInt32 CGM::ImplGetPointSize()
return pElement->nVDCRealSize << 1;
}
-// ---------------------------------------------------------------
-
inline double CGM::ImplGetIX()
{
return ( ( ImplGetI( pElement->nVDCIntegerPrecision ) + mnVDCXadd ) * mnVDCXmul );
}
-// ---------------------------------------------------------------
-
inline double CGM::ImplGetFX()
{
return ( ( ImplGetFloat( pElement->eVDCRealPrecision, pElement->nVDCRealSize ) + mnVDCXadd ) * mnVDCXmul );
}
-// ---------------------------------------------------------------
-
inline double CGM::ImplGetIY()
{
return ( ( ImplGetI( pElement->nVDCIntegerPrecision ) + mnVDCYadd ) * mnVDCYmul );
}
-// ---------------------------------------------------------------
-
inline double CGM::ImplGetFY()
{
return ( ( ImplGetFloat( pElement->eVDCRealPrecision, pElement->nVDCRealSize ) + mnVDCYadd ) * mnVDCYmul );
}
-// ---------------------------------------------------------------
-
void CGM::ImplGetPoint( FloatPoint& rFloatPoint, sal_Bool bMap )
{
if ( pElement->eVDCType == VDC_INTEGER )
@@ -321,8 +287,6 @@ void CGM::ImplGetPoint( FloatPoint& rFloatPoint, sal_Bool bMap )
ImplMapPoint( rFloatPoint );
}
-// ---------------------------------------------------------------
-
void CGM::ImplGetRectangle( FloatRect& rFloatRect, sal_Bool bMap )
{
if ( pElement->eVDCType == VDC_INTEGER )
@@ -349,8 +313,6 @@ void CGM::ImplGetRectangle( FloatRect& rFloatRect, sal_Bool bMap )
}
}
-// ---------------------------------------------------------------
-
void CGM::ImplGetRectangleNS( FloatRect& rFloatRect )
{
if ( pElement->eVDCType == VDC_INTEGER )
@@ -369,8 +331,6 @@ void CGM::ImplGetRectangleNS( FloatRect& rFloatRect )
}
}
-// ---------------------------------------------------------------
-
sal_uInt32 CGM::ImplGetBitmapColor( sal_Bool bDirect )
{
// the background color is always a direct color
@@ -408,8 +368,6 @@ sal_uInt32 CGM::ImplGetBitmapColor( sal_Bool bDirect )
return nTmp;
}
-// ---------------------------------------------------------------
-
// call this function each time after the mapmode settings has been changed
void CGM::ImplSetMapMode()
{
@@ -453,8 +411,6 @@ void CGM::ImplSetMapMode()
}
}
-// ---------------------------------------------------------------
-
void CGM::ImplMapDouble( double& nNumb )
{
if ( pElement->eDeviceViewPortMap == DVPM_FORCED )
@@ -470,7 +426,7 @@ void CGM::ImplMapDouble( double& nNumb )
case DVPM_METRIC :
{
-// nNumb *= ( 100 * pElement->nDeviceViewPortScale );
+ // nNumb *= ( 100 * pElement->nDeviceViewPortScale );
nNumb *= ( mnXFraction + mnYFraction ) / 2;
if ( pElement->nDeviceViewPortScale < 0 )
nNumb = -nNumb;
@@ -495,8 +451,6 @@ void CGM::ImplMapDouble( double& nNumb )
}
}
-// ---------------------------------------------------------------
-
void CGM::ImplMapX( double& nNumb )
{
if ( pElement->eDeviceViewPortMap == DVPM_FORCED )
@@ -512,7 +466,7 @@ void CGM::ImplMapX( double& nNumb )
case DVPM_METRIC :
{
-// nNumb *= ( 100 * pElement->nDeviceViewPortScale );
+ // nNumb *= ( 100 * pElement->nDeviceViewPortScale );
nNumb *= mnXFraction;
if ( pElement->nDeviceViewPortScale < 0 )
nNumb = -nNumb;
@@ -537,9 +491,6 @@ void CGM::ImplMapX( double& nNumb )
}
}
-
-// ---------------------------------------------------------------
-
void CGM::ImplMapY( double& nNumb )
{
if ( pElement->eDeviceViewPortMap == DVPM_FORCED )
@@ -555,7 +506,7 @@ void CGM::ImplMapY( double& nNumb )
case DVPM_METRIC :
{
-// nNumb *= ( 100 * pElement->nDeviceViewPortScale );
+ // nNumb *= ( 100 * pElement->nDeviceViewPortScale );
nNumb *= mnYFraction;
if ( pElement->nDeviceViewPortScale < 0 )
nNumb = -nNumb;
@@ -580,9 +531,6 @@ void CGM::ImplMapY( double& nNumb )
}
}
-
-// ---------------------------------------------------------------
-
// convert a point to the current VC mapmode (1/100TH mm)
void CGM::ImplMapPoint( FloatPoint& rFloatPoint )
{
@@ -628,8 +576,6 @@ void CGM::ImplMapPoint( FloatPoint& rFloatPoint )
}
}
-// ---------------------------------------------------------------
-
void CGM::ImplDoClass()
{
#ifdef CGM_USER_BREAKPOINT
@@ -662,8 +608,6 @@ void CGM::ImplDoClass()
mnActCount++;
};
-// ---------------------------------------------------------------
-
void CGM::ImplDefaultReplacement()
{
if ( !maDefRepList.empty() )
@@ -709,8 +653,6 @@ void CGM::ImplDefaultReplacement()
}
}
-// ---------------------------------------------------------------
-
sal_Bool CGM::Write( SvStream& rIStm )
{
if ( !mpBuf )
@@ -748,20 +690,13 @@ sal_Bool CGM::Write( SvStream& rIStm )
return mbStatus;
};
-// ---------------------------------------------------------------
-
SvStream& operator>>( SvStream& rOStm, CGM& /*rCGM*/ )
{
return rOStm;
};
-// ---------------------------------------------------------------
-
-
-
-//================== GraphicImport - the exported function ================
-
+// GraphicImport - the exported function
extern "C" SAL_DLLPUBLIC_EXPORT sal_uInt32 SAL_CALL
ImportCGM( OUString& rFileName, uno::Reference< frame::XModel > & rXModel, sal_uInt32 nMode, void* pProgressBar )
{