home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Embed / Sources / Select.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.8 KB  |  63 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Select.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                M.Boetcher
  7. //
  8. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef SELECT_H
  13. #define SELECT_H
  14.  
  15. // ----- FrameWork Includes -----
  16.  
  17. #ifndef FWSELECT_H
  18. #include "FWSelect.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. //    Forward Declarations
  23. //========================================================================================
  24.  
  25. class CEmbedContent;
  26.  
  27. //========================================================================================
  28. //    class CEmbedSelection
  29. //========================================================================================
  30.  
  31. class CEmbedSelection : public FW_CSelection
  32. {
  33.     
  34. //----------------------------------------------------------------------------------------
  35. //    Initialization/Destruction
  36. //
  37.   public:
  38.     FW_DECLARE_AUTO(CEmbedSelection)
  39.     
  40.     CEmbedSelection(Environment* ev, CEmbedContent* content);
  41.     virtual ~CEmbedSelection();
  42.     
  43. //----------------------------------------------------------------------------------------
  44. //    Inherited API
  45. //
  46.   public:
  47.     virtual void        CloseSelection(Environment* ev);
  48.     virtual void        ClearSelection(Environment* ev);
  49.     virtual FW_Boolean    IsEmpty(Environment* ev) const;
  50.     virtual void        SelectAll(Environment* ev);
  51.  
  52.     virtual FW_CContent*    GetSelectedContent(Environment* ev);
  53.     virtual FW_Boolean  CanPasteAsLink(Environment* ev,  ODPasteAsMergeSetting& setting,  ODStorageUnit* su); //Override
  54.  
  55.                                 
  56. //----------------------------------------------------------------------------------------
  57. //    Data Members
  58. //
  59.   private:
  60.     CEmbedContent*            fContent;
  61. };
  62.  
  63. #endif