home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / docview.pak / EDITLIST.CPP < prev    next >
C/C++ Source or Header  |  1997-07-23  |  1KB  |  21 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1993 by Borland International
  3. //   Provides templates and DLL access to TEditView and TListView
  4. //----------------------------------------------------------------------------
  5. #include <owl\owlpch.h>
  6. #include <owl\listview.h>
  7. #include <owl\editview.h>
  8. #include <owl\filedoc.h>
  9. #include <owl\docmanag.h>
  10.  
  11. DEFINE_DOC_TEMPLATE_CLASS(TFileDocument, TListView, ListTemplate);
  12. DEFINE_DOC_TEMPLATE_CLASS(TFileDocument, TEditView, EditTemplate);
  13.  
  14. _OWLLINK(rTListView); // force TListView::Streamer to be linked in
  15. _OWLLINK(rTEditView); // force TEditView::Streamer to be linked in
  16.  
  17. EditTemplate atpl("Text files, EditView", "*.txt", 0, "TXT", dtAutoDelete|dtUpdateDir);
  18. ListTemplate btpl("Text files, ListView", "*.txt", 0, "TXT", dtAutoDelete|dtUpdateDir);
  19. ListTemplate ctpl("Batch files, ListView", "*.bat", 0, "BAT", dtAutoDelete|dtUpdateDir);
  20. EditTemplate dtpl("Source files, EditView", "*.cpp;*.h",0,0,dtAutoDelete|dtUpdateDir);
  21.