// $Revision: 1.5 $ #ifndef TaligentSamples_XBMTRANSLATOR #define TaligentSamples_XBMTRANSLATOR //----------------------------------------------------------------------------- // // Copyright (C) 1994 Taligent, Inc. All rights reserved. // // Project: XBMTranslator // File: XBMTranslator.h // Build/Version: 1.0.0 // //----------------------------------------------------------------------------- #ifndef Taligent_FOREIGNDATA #include #endif //============================================================================= // TXBMTranslator class TXBMTranslator : public TForeignDataTranslator { public: MCollectibleDeclarationsMacro(TXBMTranslator); public: TXBMTranslator(); TXBMTranslator(const TXBMTranslator& source); virtual ~TXBMTranslator(); TXBMTranslator& operator=(const TXBMTranslator& 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