#ifndef __XFILEDLG_H__
#define __XFILEDLG_H__

/*===========================================================================*/
/* OOL ------------------- the Open Object Library ------ OS/2 version 0.01a */
/*===========================================================================*/
/*                              class: XFileDialog                           */
/*                       derived from: XObject                               */
/*                        last update: 4/96                                  */
/*                      programmed by: Stefan von Brauk                      */
/*===========================================================================*/




#include "xobject.h"

#ifdef OOL_FOR_OS2_X86
   #define USER_OK        DID_OK
   #define USER_CANCEL    DID_CANCEL
   #define FD_OPEN        FDS_OPEN_DIALOG
   #define FD_CENTER      FDS_CENTER
   #define FD_SAVEAS      FDS_SAVEAS_DIALOG
   #define FD_MULTIPLESEL FDS_MULTIPLESEL
#endif

class XWindow;
class XString;

class _export_ XFileDialog: public XObject
{
   private:
      char * fileName;
      SHORT command;
      PAPSZ pap;
      SHORT numbers;
   public:
      XFileDialog( XWindow * owner, char * filename ="*.*", char * title = NULL, char * fileType = NULL, LONG options = FD_OPEN | FD_CENTER);
      virtual ~XFileDialog();
      SHORT GetCommand() { return command; }
      void GetFileName( XString*, SHORT index = 0);
      SHORT QueryFileCount( void ) { return numbers; }
};

#endif
