diff options
Diffstat (limited to 'vcl/source/filter/ixpm/xpmread.cxx')
-rw-r--r-- | vcl/source/filter/ixpm/xpmread.cxx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/vcl/source/filter/ixpm/xpmread.cxx b/vcl/source/filter/ixpm/xpmread.cxx index 5ed2f7425561..e3f48ecbf05b 100644 --- a/vcl/source/filter/ixpm/xpmread.cxx +++ b/vcl/source/filter/ixpm/xpmread.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include <vcl/bmpacc.hxx> #include <vcl/graph.hxx> #include "rgbtable.hxx" @@ -51,8 +50,6 @@ XPMReader::~XPMReader() maBmp.ReleaseAccess( mpAcc ); } - - ReadState XPMReader::ReadXPM( Graphic& rGraphic ) { ReadState eReadState; @@ -208,7 +205,6 @@ ReadState XPMReader::ReadXPM( Graphic& rGraphic ) return eReadState; } - // ImplGetColor returns variouls colour values, // returns TRUE if various colours could be assigned @@ -227,7 +223,6 @@ bool XPMReader::ImplGetColor( sal_uLong nNumb ) return bStatus; } - // ImpGetScanLine reads the string mpBufSize and writes the pixel in the // Bitmap. Parameter nY is the horizontal position. @@ -293,7 +288,6 @@ bool XPMReader::ImplGetScanLine( sal_uLong nY ) return bStatus; } - // tries to determine a colour value from mpStringBuf // if a colour was found the RGB value is written a pDest[1]..pDest[2] // pDest[0] contains 0xFF if the colour is transparent otherwise 0 @@ -361,7 +355,6 @@ bool XPMReader::ImplGetColSub( sal_uInt8* pDest ) return bColStatus; } - // ImplGetColKey searches string mpStringBuf for a parameter 'nKey' // and returns a boolean. (if TRUE mpPara and mnParaSize will be set) @@ -405,7 +398,6 @@ bool XPMReader::ImplGetColKey( sal_uInt8 nKey ) return ( mnParaSize ) ? true : false; } - // ImplGetRGBHex translates the ASCII-Hexadecimalvalue belonging to mpPara // in a RGB value and writes this to pDest // below formats should be contained in mpPara: @@ -413,7 +405,6 @@ bool XPMReader::ImplGetColKey( sal_uInt8 nKey ) // 2 : '#1234abcd1234' " " " " // 6 : '#12345678abcdefab12345678' " " " " - void XPMReader::ImplGetRGBHex( sal_uInt8* pDest,sal_uLong nAdd ) { sal_uInt8* pPtr = mpPara+1; @@ -435,7 +426,6 @@ void XPMReader::ImplGetRGBHex( sal_uInt8* pDest,sal_uLong nAdd ) } } - // ImplGetUlong returns the value of a up to 6-digit long ASCII-decimal number. sal_uLong XPMReader::ImplGetULONG( sal_uLong nPara ) @@ -458,8 +448,6 @@ sal_uLong XPMReader::ImplGetULONG( sal_uLong nPara ) else return 0; } - - bool XPMReader::ImplCompare( sal_uInt8* pSource, sal_uInt8* pDest, sal_uLong nSize, sal_uLong nMode ) { bool bRet = true; @@ -489,7 +477,6 @@ bool XPMReader::ImplCompare( sal_uInt8* pSource, sal_uInt8* pDest, sal_uLong nSi return bRet; } - // ImplGetPara tries to retrieve nNumb (0...x) parameters from mpStringBuf. // Parameters are separated by spaces or tabs. // If a parameter was found then the return value is TRUE and mpPara + mnParaSize @@ -545,7 +532,6 @@ bool XPMReader::ImplGetPara ( sal_uLong nNumb ) return ( ( nCount == nNumb ) && ( mpPara ) ); } - // The next string is read and stored in mpStringBuf (terminated with 0); // mnStringSize contains the size of the string read. // Comments like '//' and '/*....*/' are skipped. @@ -644,10 +630,8 @@ bool XPMReader::ImplGetString( void ) return mbStatus; } - // - ImportXPM - - bool ImportXPM( SvStream& rStm, Graphic& rGraphic ) { XPMReader* pXPMReader = (XPMReader*) rGraphic.GetContext(); |