// $Revision: 1.5 $ #ifndef TaligentSamples_WEBMODEL #define TaligentSamples_WEBMODEL //----------------------------------------------------------------------------- // // Copyright (C) 1995 Taligent, Inc. All rights reserved. // // Project: WebRunner Sample // File: WebModel.h // Build/Version: 1.0.0 // //----------------------------------------------------------------------------- #ifndef Taligent_TEXTVIEW #include #endif #ifndef Taligent_EMBEDDERTEXT #include #endif #ifndef TaligentSamples_URL #include "URL.h" #endif #ifndef TaligentSamples_HYPERTEXTSCRAPITEM #include "HypertextScrapItem.h" #endif class TEmbedderTextModel; class TURL; class TWebModel; //============================================================================= // TWebModel class TWebModel : public TEmbedderTextModel { public: ModelDeclarationsMacro(TWebModel); public: static TDocumentReference OpenWebDocument(const TURL& URL); TWebModel(); TWebModel(const TURL& firstURL); TWebModel(const TWebModel& source); virtual ~TWebModel(); TWebModel& operator=(const TWebModel& source); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); TURL FollowURL(const TURL& newURL); TStandardText GetPageTitle() const; protected: virtual void AcceptModelScrap(const TModelScrapItem& item); virtual void AcceptHypertextScrap( const THypertextScrapItem& scrapItem); private: enum {kOriginalVersion}; TURL fCurrentURL; TStandardText fCurrentTitle; }; #endif