// $Revision: 1.5 $ #ifndef TaligentSamples_HYPERTEXTSCRAPITEM #define TaligentSamples_HYPERTEXTSCRAPITEM //----------------------------------------------------------------------------- // // Copyright (C) 1995 Taligent, Inc. All rights reserved. // // Project: WebRunner Sample // File: HypertextScrapItem.h // Build/Version: 1.0.0 // //----------------------------------------------------------------------------- #ifndef Taligent_SCRAPITEM #include #endif #ifndef Taligent_STANDARDTEXT #include #endif #ifndef Taligent_DICTIONARYOF #include #endif #ifndef Taligent_DEQUEOF #include #endif #ifndef TaligentSamples_URL #include "URL.h" #endif extern "C" { #include } //============================================================================= // THypertextScrapItem class THypertextScrapItem : public TScrapItem { public: MCollectibleDeclarationsMacro(THypertextScrapItem); public: THypertextScrapItem(); THypertextScrapItem(const THypertextScrapItem& source); virtual ~THypertextScrapItem(); THypertextScrapItem& operator=(const THypertextScrapItem& source); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); virtual const TText* GetText() const; virtual const TText* GetTitle() const; virtual void SetTitle(const TText& titleText); virtual void Append(const TText& text); virtual void AddStyle(const TStyle& style, const TTextRange& at); virtual void AddLinkRange(const TTextRange& range, const TURL& destination); TIteratorOver >* CreateLinkIterator() const; protected: virtual void InternalCopyAvailableTypes( TSequenceOf& result, TMemoryHeap &whichHeap) const; private: enum {kOriginalVersion}; TStandardText fText; TStandardText fTitle; TDequeOf > fLinkStack; HText* fLibWWWHText; }; #endif