// $Revision: 1.4 $ //------------------------------------------------------------------------------ // // Copyright (C) 1994, 1995 Taligent, Inc. All rights reserved. // // Project: TaligentSelectionTool // File: CurrentSelectionTarget.h // Build/Version: 1.0.0 // // Description: This target provides access to the current selection for a // model. // //------------------------------------------------------------------------------ #ifndef TaligentSamples_CURRENTSELECTIONTARGET #define TaligentSamples_CURRENTSELECTIONTARGET class TCurrentSelectionTarget; #ifndef TaligentSamples_SELECTIONTOOLTARGET #include "SelectionToolTarget.h" #endif #ifndef Taligent_DELETERFOR #include #endif class MSelectionMapping; //from SelectionMapping.h class MFeedbacker; //from Feedbacker.h class MGUIBundle; //from GUIBundle.h class TModelSelection; //from GUICompoundDocument.h //................................................................................ class TCurrentSelectionTarget : public TSelectionToolTarget { public: TaligentTypeExtensionDeclarationsMacro_Abstract(TCurrentSelectionTarget) public: TCurrentSelectionTarget(MSelectionMapping* mapping, MFeedbacker* feedbacker, MGUIBundle* bundle); virtual ~TCurrentSelectionTarget(); virtual TModelSelection* GetSelection() const; void AdoptSelection(TModelSelection* selection); private: TCurrentSelectionTarget& operator=(const TCurrentSelectionTarget& source); MGUIBundle* fBundle; TDeleterFor fSelection; }; #endif