1999-04-19 23:55:48 +04:00
|
|
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
* http:/www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* NPL.
|
|
|
|
*
|
|
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
* Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* -*- Mode: C; tab-width: 4 -*-
|
|
|
|
* nsGIFDecoder.cpp --- interface to gif decoder
|
|
|
|
*/
|
|
|
|
#ifndef _nsGIFCallbk_h
|
|
|
|
#define _nsGIFCallbk_h
|
|
|
|
|
|
|
|
|
|
|
|
#include "nsIImgDecoder.h"
|
|
|
|
#include "nsGIFDecoder.h"
|
|
|
|
|
|
|
|
/* new gif call back stuff: */
|
|
|
|
/* 0b1eab40-cdc6-11d2-802c-0060088f91a3 */
|
|
|
|
#define NS_GIFCALLBK_CID \
|
|
|
|
{ 0x0b1eab40, 0xcdc6, 0x11d2, \
|
|
|
|
{ 0x80, 0x2c, 0x00, 0x60, 0x08, 0x8f, 0x91, 0xa3 } }
|
|
|
|
|
|
|
|
/* 1cab3680-cdc6-11d2-802c-0060088f91a3 */
|
|
|
|
#define NS_GIFCALLBK_IID \
|
|
|
|
{ 0x1cab3680, 0xcdc6, 0x11d2, \
|
|
|
|
{ 0x80, 0x2c, 0x00, 0x60, 0x08, 0x8f, 0x91, 0xa3 } }
|
|
|
|
|
|
|
|
|
|
|
|
class GIFCallbk : public nsIImgDCallbk {
|
|
|
|
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
|
|
|
il_container *GetContainer() {return mContainer;};
|
|
|
|
il_container *SetContainer(il_container *ic) {mContainer=ic; return ic;};
|
|
|
|
|
1999-05-04 22:38:21 +04:00
|
|
|
GIFCallbk(il_container *aContainer){ NS_INIT_ISUPPORTS(); mContainer=aContainer; };
|
1999-05-13 04:51:26 +04:00
|
|
|
virtual ~GIFCallbk() { }; // XXX Pam needs to fix this
|
1999-04-19 23:55:48 +04:00
|
|
|
|
|
|
|
private:
|
|
|
|
il_container* mContainer;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|