Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

void wxPdfDocument::SetViewerPreferences ( int  preferences = 0 ) [virtual]

Defines the viewer preferences.

Parameters:
preferencesA set of viewer preferences options.

  • wxPDF_VIEWER_HIDETOOLBAR: Hide tool bar
  • wxPDF_VIEWER_HIDEMENUBAR: Hide menu bar
  • wxPDF_VIEWER_HIDEWINDOWUI: Hide user interface
  • wxPDF_VIEWER_FITWINDOW: Fit window to page size
  • wxPDF_VIEWER_CENTERWINDOW: Center window on screen
  • wxPDF_VIEWER_DISPLAYDOCTITLE: Display document title in title bar

Definition at line 1776 of file pdfdoc.cpp.

References m_PDFVersion, and m_viewerPrefs.

{
  m_viewerPrefs = (preferences > 0) ? preferences : 0;
  if (((m_viewerPrefs & wxPDF_VIEWER_DISPLAYDOCTITLE) != 0) && (m_PDFVersion < _T("1.4")))
  {
    m_PDFVersion = _T("1.4");
  }
}

Generated by  Doxygen 1.6.0   Back to index