home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / IBMCLASS / IFILEDLG.INL < prev    next >
Text File  |  1993-10-22  |  3KB  |  114 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. *   class(es) declared in ifiledlg.hpp.                                        *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   Licensed Materials - Property of IBM                                       *
  12. *   (C) Copyright IBM Corporation 1992, 1993                                   *
  13. *   All Rights Reserved                                                        *
  14. *   US Government Users Restricted Rights - Use, duplication, or               *
  15. *   disclosure                                                                 *
  16. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  17. *                                                                              *
  18. *******************************************************************************/
  19. #ifndef _IFILEDLG_
  20.   #undef  _IFILEDLG_INL_
  21.   #define _IFILEDLG_INL_ 1
  22.   #include <ifiledlg.hpp>
  23. #endif
  24.  
  25. #if _IFILEDLG_INL_
  26.   #define inline
  27. #endif
  28.  
  29. /*-------------------------- IFileDialog::Settings ---------------------------*/
  30. inline IFileDialog::Settings&  IFileDialog::Settings :: setOpenDialog ( )
  31. {
  32.   _isOpenDialog = true;
  33.   return *this;
  34. }
  35.  
  36. inline IFileDialog::Settings&  IFileDialog::Settings :: setSaveAsDialog ( )
  37. {
  38.   _isOpenDialog = false;
  39.   return *this;
  40. }
  41.  
  42. inline IBase::Boolean  IFileDialog::Settings :: isOpenDialog ( ) const
  43. {
  44.   return _isOpenDialog;
  45. }
  46.  
  47. inline IFileDialog::Settings&
  48.   IFileDialog::Settings :: setPosition ( const IPoint& position )
  49. {
  50.   _isPositionSet = true;
  51.   _position = position;
  52.   return *this;
  53. }
  54.  
  55. inline IBase::Boolean  IFileDialog::Settings :: isPositionSet ( ) const
  56. {
  57.   return _isPositionSet;
  58. }
  59.  
  60. inline IPoint  IFileDialog::Settings :: position ( ) const
  61. {
  62.   return _position;
  63. }
  64.  
  65.  
  66. inline IString  IFileDialog::Settings :: title ( ) const
  67. {
  68.   return _title;
  69. }
  70.  
  71. inline IString  IFileDialog::Settings :: OKButtonText ( ) const
  72. {
  73.   return _OKButtonText;
  74. }
  75.  
  76. inline IString  IFileDialog::Settings :: fileName ( ) const
  77. {
  78.   return _fileName;
  79. }
  80.  
  81. inline IString  IFileDialog::Settings :: initialDrive ( ) const
  82. {
  83.   return _initialDrive;
  84. }
  85.  
  86. inline IString  IFileDialog::Settings :: initialFileType ( ) const
  87. {
  88.   return _initialFileType;
  89. }
  90.  
  91. inline StringSeq*  IFileDialog::Settings :: fileTypes ( ) const
  92. {
  93.   return _fileTypes;
  94. }
  95.  
  96. inline StringSeq*  IFileDialog::Settings :: drives( ) const
  97. {
  98.   return _drives;
  99. }
  100.  
  101.  
  102. inline IBase::Boolean  IFileDialog::Settings :: isDialogTemplateSet ( ) const
  103. {
  104.   return _isDialogTemplateSet;
  105. }
  106.  
  107.  
  108. inline void  IFileDialog :: setDefaultStyle ( IFileDialog::Style newDefault )
  109. {
  110.   currentDefaultStyle = newDefault;
  111. }
  112.  
  113. #endif // _IFILEDLG_INL_
  114.