42 lines
1.0 KiB
C++
42 lines
1.0 KiB
C++
#ifndef _PRINTMAN_PICKDLG_HPP_
|
|
#define _PRINTMAN_PICKDLG_HPP_
|
|
#ifndef _COMMON_WINDOWS_HPP_
|
|
#include <common/windows.hpp>
|
|
#endif
|
|
#ifndef _COMMON_BLOCK_HPP_
|
|
#include <common/block.hpp>
|
|
#endif
|
|
#ifndef _COMMON_SMARTPOINTER_HPP_
|
|
#include <common/pointer.hpp>
|
|
#endif
|
|
#ifndef _DIALOG_DYNAMICDIALOG_HPP_
|
|
#include <dialog/dyndlg.hpp>
|
|
#endif
|
|
#ifndef _PRINTMAN_PRINTER_HPP_
|
|
#include <printman/printer.hpp>
|
|
#endif
|
|
|
|
class PickDlg : private DynamicDialog
|
|
{
|
|
public:
|
|
PickDlg(void);
|
|
virtual ~PickDlg();
|
|
BOOL perform(GUIWindow &parentWindow,Block<Printer> &printers,String &strPrinter);
|
|
protected:
|
|
virtual void init(void);
|
|
private:
|
|
enum{ComboBoxID=200};
|
|
PickDlg(const PickDlg &PickDlg);
|
|
PickDlg &operator=(const PickDlg &PickDlg);
|
|
void create(GUIWindow &parentWindow);
|
|
WORD dlgCommand(DWORD commandID,CallbackData &someCallbackData);
|
|
BOOL dlgInitDialog(CallbackData &someCallbackData);
|
|
void dlgDestroyDialog(CallbackData &someCallbackData);
|
|
|
|
String mPrinter;
|
|
SmartPointer<GUIWindow> mParent;
|
|
Block<Printer> mPrinters;
|
|
BOOL mCancel;
|
|
};
|
|
#endif
|