#include <xap_UnixDlg_Print.h>
XAP_UnixDialog_Print::XAP_UnixDialog_Print | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
Referenced by static_constructor().
XAP_UnixDialog_Print::~XAP_UnixDialog_Print | ( | void | ) | [virtual] |
void XAP_UnixDialog_Print::BeginPrint | ( | GtkPrintContext * | context | ) |
References FL_DocLayout::fillLayouts(), FL_DocLayout::formatAll(), XAP_App::getApp(), GR_Graphics::getDeviceResolution(), FV_View::getDocument(), XAP_Frame::getFrameData(), FV_View::getGraphics(), FV_View::getViewMode(), gr_PRINTRES, m_bDidQuickPrint, AP_FrameData::m_bShowPara, m_bShowParagraphs, m_iNumberPages, m_pDL, m_pFrame, m_pPO, m_pPrintGraphics, m_pPrintLayout, m_pPrintView, m_pView, FL_DocLayout::recalculateTOCFields(), FL_DocLayout::setQuickPrint(), FV_View::setShowPara(), GR_Graphics::startPrint(), and xxx_UT_DEBUGMSG.
Referenced by s_Begin_Print().
void XAP_UnixDialog_Print::cleanup | ( | void | ) |
References DELETEP, gchar, FV_View::getDocument(), FV_View::getGraphics(), FL_DocLayout::incrementGraphicTick(), m_bDidQuickPrint, m_bShowParagraphs, m_pDL, m_pFrame, m_pPO, m_pPrintGraphics, m_pPrintLayout, m_pPrintView, m_pView, XAP_Frame::nullUpdate(), AD_Document::setPrintFilename(), FL_DocLayout::setQuickPrint(), FV_View::setShowPara(), and UT_DEBUGMSG.
Referenced by PrintDirectly(), and runModal().
GR_Graphics * XAP_UnixDialog_Print::getPrinterGraphicsContext | ( | void | ) | [virtual] |
Implements XAP_Dialog_Print.
References m_pPrintGraphics.
void XAP_UnixDialog_Print::PrintDirectly | ( | XAP_Frame * | pFrame, | |
const char * | szFilename, | |||
const char * | szPrinter | |||
) | [virtual] |
Reimplemented from XAP_Dialog_Print.
References cleanup(), m_pFrame, m_pPO, and setupPrint().
void XAP_UnixDialog_Print::PrintPage | ( | gint | iPage | ) |
References GR_Graphics::beginPaint(), FV_View::draw(), GR_Graphics::endPaint(), gchar, XAP_Dialog::getApp(), GR_Graphics::getResolutionRatio(), XAP_App::getStringSet(), XAP_StringSet::getValue(), gr_PRINTRES, m_iNumberPages, m_pFrame, m_pPrintGraphics, m_pPrintView, XAP_Frame::nullUpdate(), dg_DrawArgs::pG, XAP_Frame::setStatusMessage(), UT_DEBUGMSG, dg_DrawArgs::xoff, xxx_UT_DEBUGMSG, and dg_DrawArgs::yoff.
Referenced by s_Print_Page().
void XAP_UnixDialog_Print::releasePrinterGraphicsContext | ( | GR_Graphics * | pGraphics | ) | [virtual] |
Implements XAP_Dialog_Print.
References DELETEP, m_pGtkPageSize, m_pPageSetup, m_pPO, m_pPrintGraphics, UT_ASSERT, and UT_UNUSED.
void XAP_UnixDialog_Print::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
Implements XAP_Dialog_Print.
References cleanup(), XAP_Frame::getFrameImpl(), XAP_UnixFrameImpl::getTopLevelWindow(), m_bIsPreview, m_pFrame, m_pPO, and setupPrint().
void XAP_UnixDialog_Print::setPreview | ( | bool | b | ) | [virtual] |
Reimplemented from XAP_Dialog_Print.
References m_bIsPreview.
void XAP_UnixDialog_Print::setupPrint | ( | void | ) |
References FL_DocLayout::countPages(), DIM_MM, FL_DocLayout::findPage(), FV_View::getCurrentPage(), XAP_Frame::getCurrentView(), FV_View::getDocument(), AD_Document::getFilename(), FV_View::getLayout(), FV_View::getPageSize(), fp_PageSize::getPredefinedName(), AD_Document::getPrintFilename(), fp_PageSize::Height(), fp_PageSize::isPortrait(), m_iCurrentPage, m_iNumberPages, m_pDL, m_pFrame, m_pGtkPageSize, m_pPageSetup, m_pPO, m_pView, s_Begin_Print(), s_getPageMargins(), s_Print_Page(), UT_addOrReplacePathSuffix(), and fp_PageSize::Width().
Referenced by PrintDirectly(), and runModal().
XAP_Dialog * XAP_UnixDialog_Print::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References XAP_UnixDialog_Print().
bool XAP_UnixDialog_Print::m_bDidQuickPrint [protected] |
Referenced by BeginPrint(), and cleanup().
bool XAP_UnixDialog_Print::m_bIsPreview [protected] |
Referenced by runModal(), and setPreview().
bool XAP_UnixDialog_Print::m_bShowParagraphs [protected] |
Referenced by BeginPrint(), and cleanup().
gint XAP_UnixDialog_Print::m_iCurrentPage [protected] |
Referenced by setupPrint().
gint XAP_UnixDialog_Print::m_iNumberPages [protected] |
Referenced by BeginPrint(), PrintPage(), and setupPrint().
FL_DocLayout* XAP_UnixDialog_Print::m_pDL [protected] |
Referenced by BeginPrint(), cleanup(), and setupPrint().
XAP_Frame* XAP_UnixDialog_Print::m_pFrame [protected] |
Referenced by BeginPrint(), cleanup(), PrintDirectly(), PrintPage(), runModal(), and setupPrint().
GtkPaperSize* XAP_UnixDialog_Print::m_pGtkPageSize [protected] |
Referenced by releasePrinterGraphicsContext(), and setupPrint().
GtkPageSetup* XAP_UnixDialog_Print::m_pPageSetup [protected] |
Referenced by releasePrinterGraphicsContext(), and setupPrint().
GtkPrintOperation* XAP_UnixDialog_Print::m_pPO [protected] |
Referenced by BeginPrint(), cleanup(), PrintDirectly(), releasePrinterGraphicsContext(), runModal(), and setupPrint().
GR_Graphics* XAP_UnixDialog_Print::m_pPrintGraphics [protected] |
Referenced by BeginPrint(), cleanup(), getPrinterGraphicsContext(), PrintPage(), and releasePrinterGraphicsContext().
FL_DocLayout* XAP_UnixDialog_Print::m_pPrintLayout [protected] |
Referenced by BeginPrint(), and cleanup().
FV_View* XAP_UnixDialog_Print::m_pPrintView [protected] |
Referenced by BeginPrint(), cleanup(), and PrintPage().
FV_View* XAP_UnixDialog_Print::m_pView [protected] |
Referenced by BeginPrint(), cleanup(), and setupPrint().