// $Revision: 1.7 $ #ifndef TaligentSamples_WEBLINKVIEW #define TaligentSamples_WEBLINKVIEW //----------------------------------------------------------------------------- // // Copyright (C) 1995 Taligent, Inc. All rights reserved. // // Project: WebRunner Sample // File: WebLinkView.h // Build/Version: 1.0.0 // //----------------------------------------------------------------------------- #ifndef Taligent_LABEL #include #endif #ifndef Taligent_TEXTCONTROL #include #endif #ifndef Taligent_GUICOMPOUNDDOCUMENT #include #endif #ifndef Taligent_MOUSEINPUT #include #endif #ifndef Taligent_LINELAYOUTSTYLES #include #endif #ifndef TaligentSamples_WEBLINK #include "WebLink.h" #endif //============================================================================= // TWebLinkView class TWebLinkView : public TLabelView, public MMouseEventHandler, public MGUIBundle { public: VersionDeclarationsMacro(TWebLinkView); public: TWebLinkView(TGUIBundle* bundleToAlias); TWebLinkView(const TWebLinkView& source); virtual ~TWebLinkView(); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); virtual bool MouseDown(TMouseDownEvent& mouseDown); protected: TWebLinkView(); virtual TLabel* CreateCurrentLabel(const TTextColorStyle& linkTextColor = TTextColorStyle::GetRed()) const; virtual void InitiateDrag(TMouseDownEvent& mouseDown); virtual void ActivateFeedback(); virtual void DeactivateFeedback(); virtual void HandleAfterConnectionToViewRoot(); private: enum {kOriginalVersion}; }; #endif