// $Revision: 1.4 $ #ifndef TaligentSamples_GIFTRANSLATOR #define TaligentSamples_GIFTRANSLATOR //----------------------------------------------------------------------------- // // Copyright (C) 1995 Taligent, Inc. All rights reserved. // // Project: GIFTranslator // File: GIFTranslator.h // Build/Version: 1.0.0 // //----------------------------------------------------------------------------- #ifndef Taligent_FOREIGNDATA #include #endif //============================================================================= // TGIFTranslator class TGIFTranslator : public TForeignDataTranslator { public: MCollectibleDeclarationsMacro(TGIFTranslator); public: TGIFTranslator(); TGIFTranslator(const TGIFTranslator& source); virtual ~TGIFTranslator(); TGIFTranslator& operator=(const TGIFTranslator& source); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); virtual TScrapItem* CreateScrapItem(const TForeignData& inputData, const TTypeDescription& desiredType, TMemoryHeap* heap=0) const; virtual void ExportData(const TTypeDescription& inputType, const TScrapItem& inputData, const TForeignDataType& desiredType, TForeignData& output) const; private: MGraphic* CreateGraphic(const TForeignData& inputData) const; enum {kOriginalVersion}; static const TTypeDescription kGraphicScrapType; static const TTypeDescription kEmbedderModelScrapType; }; #endif