CCPrintToFileDialog Class Reference

#include <prdlgctl.h>

List of all members.

Public Member Functions

 CCPrintToFileDialog (TCHAR *DefExt, TCHAR *FilterString)
 Default constructor for the PrintToFile dialog.
 ~CCPrintToFileDialog ()
 Default destructor for the PrintToFile dialog.
virtual INT32 DoModal ()
 Displays the PrintToFile dlg modally, and returns the user's result.
LPSTR GetFullPathNamePtr ()
 Access to the static buffer that contains the full path name for the file to print to.

Private Attributes

String_64 Title

Static Private Attributes

static TCHAR FileName [256] = {_T('\0')}


Detailed Description

Definition at line 327 of file prdlgctl.h.


Constructor & Destructor Documentation

CCPrintToFileDialog::CCPrintToFileDialog TCHAR DefExt,
TCHAR FilterString
 

Default constructor for the PrintToFile dialog.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/5/95
Parameters:
DefExt - Default filter extension [INPUTS] FilterString - String to pass to the CFileDialog constructor dictating the filters for the dialog
- [OUTPUTS]
Returns:
-
See also:
-

Definition at line 2897 of file prdlgctl.cpp.

02897                                                                            :
02898      CFileDialog(FALSE, DefExt, FileName, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, FilterString, NULL)
02899 {
02900 //  String_256 Filt(_R(IDS_PRDLGCTL_PRINT_FILES_FILT_DLG)); // "Print files (*.prn) | *.prn | All files (*.*) | *.* ||"
02901 //  CFileDialog::CFileDialog(FALSE, "prn", FileName,    OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, (TCHAR *)Filt, NULL)
02902     
02903     Title = String_64(_R(IDS_PRDLGCTL_PRINT_TO_FILE));
02904     m_ofn.lpstrTitle = (TCHAR *)(Title);
02905 
02906     // Translate filter into commdlg format (lots of \0)
02907 //  m_strFilter = (TCHAR *)Filt;
02908 //  TCHAR *pch = (TCHAR *)Filt; // modify the buffer in place
02909 
02910     // MFC delimits with '|' not '\0'
02911 //  while ((pch = camStrchr(pch, '|')) != NULL)
02912 //      *pch++ = '\0';
02913 
02914 //  m_ofn.lpstrFilter = m_strFilter;
02915 
02916 }

CCPrintToFileDialog::~CCPrintToFileDialog  ) 
 

Default destructor for the PrintToFile dialog.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/5/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-
See also:
-

Definition at line 2932 of file prdlgctl.cpp.

02933 {
02934 }


Member Function Documentation

INT32 CCPrintToFileDialog::DoModal  )  [virtual]
 

Displays the PrintToFile dlg modally, and returns the user's result.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/5/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
IDOK or IDCANCEL
See also:
-

Definition at line 2951 of file prdlgctl.cpp.

02952 {
02953     INT32 Result = CFileDialog::DoModal();
02954 
02955     if (Result == IDOK)
02956     {
02957         camStrncpy(FileName,GetPathName(),FILENAMEBUFSIZE);
02958         FileName[FILENAMEBUFSIZE-1] = '\0';
02959     }
02960 
02961     return Result;
02962 }

LPSTR CCPrintToFileDialog::GetFullPathNamePtr  ) 
 

Access to the static buffer that contains the full path name for the file to print to.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/5/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
Ptr to the full path name entered by the user
See also:
-

Definition at line 2978 of file prdlgctl.cpp.

02979 {
02980     return FileName;
02981 }


Member Data Documentation

TCHAR CCPrintToFileDialog::FileName = {_T('\0')} [static, private]
 

Definition at line 338 of file prdlgctl.h.

String_64 CCPrintToFileDialog::Title [private]
 

Definition at line 339 of file prdlgctl.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:52:11 2007 for Camelot by  doxygen 1.4.4