// $Revision: 1.7 $ #ifndef TaligentSamples_WEBVIEW #define TaligentSamples_WEBVIEW //----------------------------------------------------------------------------- // // Copyright (C) 1995 Taligent, Inc. All rights reserved. // // Project: WebRunner Sample // File: WebView.h // Build/Version: 1.0.0 // //----------------------------------------------------------------------------- #ifndef Taligent_TEXTVIEW #include #endif #ifndef Taligent_EMBEDDERTEXT #include #endif #ifndef Taligent_GUICOMPOUNDDOCUMENT #include #endif #ifndef Taligent_LABEL #include #endif //============================================================================= // TWebView class TWebView : public TDocumentComponentView { public: MCollectibleDeclarationsMacro(TWebView); public: TWebView(TGUIBundle* bundleToAlias); virtual ~TWebView(); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); virtual void AdoptHypertextView(TView* adoptScrollingView, TView* textViewAlias); virtual bool DistributePositionalEvent(TEvent& event, const TGPoint& local); protected: TWebView(); TWebView(const TWebView& source); virtual void HandleAllocatedAreaChanged(const TGArea& newArea); virtual void HandleAfterConnectionToViewRoot(); virtual void HandleModelChanged(const TNotification& change); virtual void CreateTitleView(); virtual void PlaceLabelView(const TGArea& mainViewArea); private: enum {kOriginalVersion}; TView* fScrollingViewAlias; TView* fTextViewAlias; TLabelView* fTitleViewAlias; }; #endif