diff options
Diffstat (limited to 'vcl/inc/vcl/image.h')
-rw-r--r-- | vcl/inc/vcl/image.h | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/vcl/inc/vcl/image.h b/vcl/inc/vcl/image.h index 397cde3af506..0234d57f6811 100644 --- a/vcl/inc/vcl/image.h +++ b/vcl/inc/vcl/image.h @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -44,34 +44,34 @@ public: ImplImageBmp(); ~ImplImageBmp(); - void Create( long nItemWidth, long nItemHeight, USHORT nInitSize ); - void Create( const BitmapEx& rBmpEx, long nItemWidth, long nItemHeight,USHORT nInitSize ); + void Create( long nItemWidth, long nItemHeight, USHORT nInitSize ); + void Create( const BitmapEx& rBmpEx, long nItemWidth, long nItemHeight,USHORT nInitSize ); - void Expand( USHORT nGrowSize ); + void Expand( USHORT nGrowSize ); - void Replace( USHORT nPos, USHORT nSrcPos ); - void Replace( USHORT nPos, const ImplImageBmp& rImageBmp, USHORT nSrcPos ); - void Replace( USHORT nPos, const BitmapEx& rBmpEx ); + void Replace( USHORT nPos, USHORT nSrcPos ); + void Replace( USHORT nPos, const ImplImageBmp& rImageBmp, USHORT nSrcPos ); + void Replace( USHORT nPos, const BitmapEx& rBmpEx ); void ReplaceColors( const Color* pSrcColors, const Color* pDstColors, ULONG nColorCount ); - void ColorTransform( BmpColorMode eColorMode ); - void Invert(); + void ColorTransform( BmpColorMode eColorMode ); + void Invert(); - BitmapEx GetBitmapEx( USHORT nPosCount, USHORT* pPosAry ) const; + BitmapEx GetBitmapEx( USHORT nPosCount, USHORT* pPosAry ) const; - void Draw( USHORT nPos, OutputDevice* pDev, const Point& rPos, USHORT nStyle, const Size* pSize = NULL ); + void Draw( USHORT nPos, OutputDevice* pDev, const Point& rPos, USHORT nStyle, const Size* pSize = NULL ); private: - BitmapEx maBmpEx; - BitmapEx maDisabledBmpEx; - BitmapEx* mpDisplayBmp; - Size maSize; - BYTE* mpInfoAry; - USHORT mnSize; + BitmapEx maBmpEx; + BitmapEx maDisabledBmpEx; + BitmapEx* mpDisplayBmp; + Size maSize; + BYTE* mpInfoAry; + USHORT mnSize; - void ImplUpdateDisplayBmp( OutputDevice* pOutDev ); - void ImplUpdateDisabledBmpEx( int nPos ); + void ImplUpdateDisplayBmp( OutputDevice* pOutDev ); + void ImplUpdateDisabledBmpEx( int nPos ); private: // prevent assignment and copy construction ImplImageBmp( const ImplImageBmp& ); @@ -90,9 +90,9 @@ enum ImageType { IMAGETYPE_BITMAP, IMAGETYPE_IMAGE }; struct ImageAryData { - ::rtl::OUString maName; + ::rtl::OUString maName; // Images identified by either name, or by id - USHORT mnId; + USHORT mnId; BitmapEx maBitmapEx; ImageAryData(); @@ -104,7 +104,7 @@ struct ImageAryData bool IsLoadable() { return maBitmapEx.IsEmpty() && maName.getLength(); } void Load(const rtl::OUString &rPrefix); - ImageAryData& operator=( const ImageAryData& rData ); + ImageAryData& operator=( const ImageAryData& rData ); }; // ------------------------------------------------------------------------------ @@ -118,7 +118,7 @@ struct ImplImageList ImageAryDataVec maImages; ImageAryDataNameHash maNameHash; rtl::OUString maPrefix; - Size maImageSize; + Size maImageSize; ULONG mnRefCount; ImplImageList(); @@ -137,13 +137,13 @@ struct ImplImageList struct ImplImageRefData { - ImplImageList* mpImplData; - USHORT mnIndex; + ImplImageList* mpImplData; + USHORT mnIndex; - ImplImageRefData() {} // Um Warning zu umgehen + ImplImageRefData() {} // Um Warning zu umgehen ~ImplImageRefData(); - BOOL IsEqual( const ImplImageRefData& rData ); + BOOL IsEqual( const ImplImageRefData& rData ); }; // ---------------- @@ -152,13 +152,13 @@ struct ImplImageRefData struct ImplImageData { - ImplImageBmp* mpImageBitmap; - BitmapEx maBmpEx; + ImplImageBmp* mpImageBitmap; + BitmapEx maBmpEx; ImplImageData( const BitmapEx& rBmpEx ); ~ImplImageData(); - BOOL IsEqual( const ImplImageData& rData ); + BOOL IsEqual( const ImplImageData& rData ); }; // ------------- @@ -167,10 +167,10 @@ struct ImplImageData struct ImplImage { - ULONG mnRefCount; + ULONG mnRefCount; // TODO: use inheritance to get rid of meType+mpData - void* mpData; - ImageType meType; + void* mpData; + ImageType meType; ImplImage(); ~ImplImage(); |