home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / BETA / SAMPLES / OPENDOC / PARTS / PUBLIC / CNNOTEBK.IDL next >
Text File  |  1995-12-14  |  2KB  |  60 lines

  1.  
  2. #ifndef _CNNOTEBK_
  3. #define _CNNOTEBK_
  4.  
  5. #ifndef _SETTINGS_
  6. #include "Settings.idl"
  7. #endif
  8.  
  9. //==============================================================================
  10. // Theory of Operation
  11. //==============================================================================
  12.  
  13. /*
  14.   CNNotebk is implemented as a subclass of ODNotebk. The AddNotebookPages
  15.   method is overridden to allow the part to add only the background page. The 
  16.   InsertBackgroundPage is added to provide the new page.
  17. */
  18.  
  19. //==============================================================================
  20. // Classes defined in this interface
  21. //==============================================================================
  22. interface CNNotebook;
  23.  
  24. //=====================================================================================
  25. // Implementation Types
  26. //=====================================================================================
  27.  
  28. //==============================================================================
  29. // Classes used by this interface
  30. //==============================================================================
  31.  
  32. //==============================================================================
  33. // ODExtension
  34. //==============================================================================
  35.  
  36. interface CNNotebook : ODSettingsExtension
  37. {
  38.  
  39.    ODULong InsertBackgroundPage(in HWND hwndNotebook);
  40.  
  41. #ifdef __SOMIDL__
  42.   implementation
  43.   {
  44.  
  45.     functionprefix = CNNotebook;
  46.  
  47.   override:
  48.     AddNotebookPages, 
  49.     somInit,
  50.     somUninit;
  51.  
  52.   releaseorder:
  53.      InsertBackgroundPage;
  54.  
  55.  
  56.   };
  57. #endif
  58. };
  59. #endif     // CNNOTEBK
  60.