Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

XAP_Dialog_Print Class Reference

#include <xap_Dlg_Print.h>

Inheritance diagram for XAP_Dialog_Print:
XAP_Dialog_AppPersistent XAP_Dialog_Persistent XAP_Dialog XAP_CocoaDialog_Print XAP_UnixDialog_Print XAP_Win32Dialog_Print

List of all members.

Public Types

enum  tAnswer { a_VOID, a_OK, a_CANCEL }

Public Member Functions

 XAP_Dialog_Print (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id)
virtual ~XAP_Dialog_Print (void)
virtual void useStart (void)
virtual void runModal (XAP_Frame *pFrame)=0
virtual void useEnd (void)
void setDocumentTitle (const char *)
void setDocumentPathname (const char *)
void setEnablePageRangeButton (bool bEnable, UT_uint32 nFirst, UT_uint32 nLast)
void setEnablePrintSelection (bool bEnable)
void setEnablePrintToFile (bool bEnable)
void setTryToBypassActualDialog (bool bTry)
void setPaperSize (const char *pageSize)
XAP_Dialog_Print::tAnswer getAnswer (void) const
bool getDoPrintRange (UT_sint32 *pnFirst, UT_sint32 *pnLast) const
bool getDoPrintSelection (void) const
bool getDoPrintToFile (const char *) const
UT_uint32 getNrCopies (void) const
bool getCollate (void) const
GR_Graphics::ColorSpace getColorSpace (void) const
virtual void PrintDirectly (XAP_Frame *, const char *, const char *)
virtual GR_GraphicsgetPrinterGraphicsContext (void)=0
virtual void releasePrinterGraphicsContext (GR_Graphics *pGraphics)=0
virtual void setPreview (bool)

Protected Member Functions

bool _getPrintToFilePathname (XAP_Frame *pFrame, const char *szSuggestedName)

Protected Attributes

UT_uint32 m_bPersistValid
UT_uint32 m_persistNrCopies
bool m_persistCollate
GR_Graphics::ColorSpace m_persistColorSpace
bool m_persistPrintToFile
char * m_szDocumentTitle
char * m_szDocumentPathname
bool m_bBypassActualDialog
bool m_bEnablePageRange
bool m_bEnablePrintSelection
bool m_bEnablePrintToFile
bool m_bDoPrintRange
bool m_bDoPrintSelection
bool m_bDoPrintToFile
bool m_bCollate
GR_Graphics::ColorSpace m_cColorSpace
UT_sint32 m_nFirstPage
UT_sint32 m_nLastPage
UT_uint32 m_nCopies
XAP_Dialog_Print::tAnswer m_answer
char * m_szPrintToFilePathname
char * m_szPrintCommand
char * m_pageSize

Member Enumeration Documentation


Constructor & Destructor Documentation

XAP_Dialog_Print::~XAP_Dialog_Print ( void   )  [virtual]

Member Function Documentation

XAP_Dialog_Print::tAnswer XAP_Dialog_Print::getAnswer ( void   )  const

References m_answer.

Referenced by s_doPrint().

bool XAP_Dialog_Print::getCollate ( void   )  const
GR_Graphics::ColorSpace XAP_Dialog_Print::getColorSpace ( void   )  const
bool XAP_Dialog_Print::getDoPrintRange ( UT_sint32 pnFirst,
UT_sint32 pnLast 
) const
bool XAP_Dialog_Print::getDoPrintSelection ( void   )  const
bool XAP_Dialog_Print::getDoPrintToFile ( const char *   )  const
UT_uint32 XAP_Dialog_Print::getNrCopies ( void   )  const

References a_OK, m_answer, m_nCopies, and UT_ASSERT.

virtual GR_Graphics* XAP_Dialog_Print::getPrinterGraphicsContext ( void   )  [pure virtual]
virtual void XAP_Dialog_Print::PrintDirectly ( XAP_Frame ,
const char *  ,
const char *   
) [inline, virtual]

Reimplemented in XAP_UnixDialog_Print.

Referenced by Defun1(), and AbiCommand::printFiles().

virtual void XAP_Dialog_Print::releasePrinterGraphicsContext ( GR_Graphics pGraphics  )  [pure virtual]
virtual void XAP_Dialog_Print::runModal ( XAP_Frame pFrame  )  [pure virtual]
void XAP_Dialog_Print::setDocumentPathname ( const char *  szDocPath  ) 
void XAP_Dialog_Print::setDocumentTitle ( const char *  szDocTitle  ) 

References FREEP, and m_szDocumentTitle.

Referenced by s_doPrint().

void XAP_Dialog_Print::setEnablePageRangeButton ( bool  bEnable,
UT_uint32  nFirst,
UT_uint32  nLast 

References m_bEnablePageRange, m_nFirstPage, and m_nLastPage.

Referenced by s_doPrint().

void XAP_Dialog_Print::setEnablePrintSelection ( bool  bEnable  ) 

References m_bEnablePrintSelection.

Referenced by s_doPrint().

void XAP_Dialog_Print::setEnablePrintToFile ( bool  bEnable  ) 

References m_bEnablePrintToFile.

Referenced by s_doPrint().

void XAP_Dialog_Print::setPaperSize ( const char *  pageSize  ) 

References FREEP, and m_pageSize.

Referenced by s_doPrint().

virtual void XAP_Dialog_Print::setPreview ( bool   )  [inline, virtual]

Reimplemented in XAP_UnixDialog_Print.

Referenced by Defun1(), and AbiCommand::printFiles().

void XAP_Dialog_Print::setTryToBypassActualDialog ( bool  bTry  ) 

References m_bBypassActualDialog, and m_bPersistValid.

Referenced by s_doPrint().

Member Data Documentation

Referenced by XAP_Dialog_Print().

The documentation for this class was generated from the following files: