home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / ifiledlg.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  2.6 KB  |  90 lines

  1. #ifndef _IFILEDLG_INL_
  2. #define _IFILEDLG_INL_ 0
  3. /*******************************************************************************
  4. * FILE NAME: ifiledlg.inl                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the definition of the inline functions for the          *
  8. *   classes declared in ifiledlg.hpp.                                          *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #ifndef _IFILEDLG_
  19.   #undef  _IFILEDLG_INL_
  20.   #define _IFILEDLG_INL_ 1
  21.   #include <ifiledlg.hpp>
  22. #endif
  23.  
  24. #if _IFILEDLG_INL_
  25.   #define inline
  26. #endif
  27.  
  28. inline IFileDialog::Settings&  IFileDialog::Settings :: setOpenDialog ( )
  29. {
  30.   isOpenDlg = true;
  31.   return *this;
  32. }
  33.  
  34. inline IFileDialog::Settings&  IFileDialog::Settings :: setSaveAsDialog ( )
  35. {
  36.   isOpenDlg = false;
  37.   return *this;
  38. }
  39.  
  40. inline IBase::Boolean  IFileDialog::Settings :: isOpenDialog ( ) const
  41. {
  42.   return isOpenDlg;
  43. }
  44.  
  45. inline IFileDialog::Settings&
  46.   IFileDialog::Settings :: setPosition ( const IPoint& position )
  47. {
  48.   isPosSet = true;
  49.   pos = position;
  50.   return *this;
  51. }
  52.  
  53. inline IBase::Boolean  IFileDialog::Settings :: isPositionSet ( ) const
  54. {
  55.   return isPosSet;
  56. }
  57.  
  58. inline IPoint  IFileDialog::Settings :: position ( ) const
  59. {
  60.   return pos;
  61. }
  62.  
  63. inline IString  IFileDialog::Settings :: title ( ) const
  64. {
  65.   return titleStr;
  66. }
  67.  
  68. inline IString  IFileDialog::Settings :: okButtonText ( ) const
  69. {
  70.   return OKButtonStr;
  71. }
  72.  
  73. inline IString  IFileDialog::Settings :: fileName ( ) const
  74. {
  75.   return fileNameStr;
  76. }
  77.  
  78. inline IString  IFileDialog::Settings :: initialDrive ( ) const
  79. {
  80.   return initialDriveStr;
  81. }
  82.  
  83. inline IString  IFileDialog::Settings :: initialFileType ( ) const
  84. {
  85.   return initialFileTypeStr;
  86. }
  87.  
  88.  
  89. #endif // _IFILEDLG_INL_
  90.