Kaydet (Commit) 8ed5e3bd authored tarafından Caolán McNamara's avatar Caolán McNamara

callcatcher: remove some unused Graphic methods

üst 3b5ec68b
...@@ -154,9 +154,7 @@ GalleryExplorer::DrawCentered(OutputDevice*, FmFormModel const&) ...@@ -154,9 +154,7 @@ GalleryExplorer::DrawCentered(OutputDevice*, FmFormModel const&)
GalleryExplorer::GetObjCount(unsigned long) GalleryExplorer::GetObjCount(unsigned long)
GraphCtrl::GraphCtrl(Window*, long) GraphCtrl::GraphCtrl(Window*, long)
Graphic::Draw(OutputDevice*, String const&, Font&, Bitmap const&, Point const&, Size const&) Graphic::Draw(OutputDevice*, String const&, Font&, Bitmap const&, Point const&, Size const&)
Graphic::GetGraphicsCompressMode(SvStream&)
Graphic::StartAnimation(OutputDevice*, Point const&, long, OutputDevice*) Graphic::StartAnimation(OutputDevice*, Point const&, long, OutputDevice*)
Graphic::WriteEmbedded(SvStream&)
GraphicReader::IsPreviewModeEnabled() const GraphicReader::IsPreviewModeEnabled() const
GroupTable::SkipCurrentGroup() GroupTable::SkipCurrentGroup()
GtkSalFrame::popIgnoreDamage() GtkSalFrame::popIgnoreDamage()
......
...@@ -188,14 +188,11 @@ public: ...@@ -188,14 +188,11 @@ public:
public: public:
static sal_uInt16 GetGraphicsCompressMode( SvStream& rIStm );
void SetDocFileName( const String& rName, sal_uLong nFilePos ); void SetDocFileName( const String& rName, sal_uLong nFilePos );
const String& GetDocFileName() const; const String& GetDocFileName() const;
sal_uLong GetDocFilePos() const; sal_uLong GetDocFilePos() const;
sal_Bool ReadEmbedded( SvStream& rIStream, sal_Bool bSwap = sal_False ); sal_Bool ReadEmbedded( SvStream& rIStream, sal_Bool bSwap = sal_False );
sal_Bool WriteEmbedded( SvStream& rOStream );
sal_Bool SwapOut(); sal_Bool SwapOut();
sal_Bool SwapOut( SvStream* pOStm ); sal_Bool SwapOut( SvStream* pOStm );
......
...@@ -680,44 +680,6 @@ void Graphic::SetContext( GraphicReader* pReader ) ...@@ -680,44 +680,6 @@ void Graphic::SetContext( GraphicReader* pReader )
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
sal_uInt16 Graphic::GetGraphicsCompressMode( SvStream& rIStm )
{
const sal_uLong nPos = rIStm.Tell();
const sal_uInt16 nOldFormat = rIStm.GetNumberFormatInt();
sal_uInt32 nTmp32;
sal_uInt16 nTmp16;
sal_uInt16 nCompressMode = COMPRESSMODE_NONE;
rIStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
rIStm >> nTmp32;
// is it a swapped graphic with a bitmap?
rIStm.SeekRel( (nTmp32 == (sal_uInt32) GRAPHIC_BITMAP ) ? 40 : -4 );
// try to read bitmap id
rIStm >> nTmp16;
// check id of BitmapFileHeader
if( 0x4D42 == nTmp16 )
{
// seek to compress field of BitmapInfoHeader
rIStm.SeekRel( 28 );
rIStm >> nTmp32;
// Compare with our own compressmode
if( ZCOMPRESS == nTmp32 )
nCompressMode = COMPRESSMODE_ZBITMAP;
}
rIStm.SetNumberFormatInt( nOldFormat );
rIStm.Seek( nPos );
return nCompressMode;
}
// ------------------------------------------------------------------------
void Graphic::SetDocFileName( const String& rName, sal_uLong nFilePos ) void Graphic::SetDocFileName( const String& rName, sal_uLong nFilePos )
{ {
mpImpGraphic->ImplSetDocFileName( rName, nFilePos ); mpImpGraphic->ImplSetDocFileName( rName, nFilePos );
...@@ -747,14 +709,6 @@ sal_Bool Graphic::ReadEmbedded( SvStream& rIStream, sal_Bool bSwap ) ...@@ -747,14 +709,6 @@ sal_Bool Graphic::ReadEmbedded( SvStream& rIStream, sal_Bool bSwap )
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
sal_Bool Graphic::WriteEmbedded( SvStream& rOStream )
{
ImplTestRefCount();
return mpImpGraphic->ImplWriteEmbedded( rOStream );
}
// ------------------------------------------------------------------------
sal_Bool Graphic::SwapOut() sal_Bool Graphic::SwapOut()
{ {
ImplTestRefCount(); ImplTestRefCount();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment