wxPDFView  0.1
wxWidgets PDFium Integration Library
Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
wxPDFViewDocumentPanel Class Reference

PDF reader panel combining all controls to a ready built PDF reader panel. More...

#include <PDFViewDocumentPanel.h>

+ Inheritance diagram for wxPDFViewDocumentPanel:

Public Member Functions

 wxPDFViewDocumentPanel ()
 
 wxPDFViewDocumentPanel (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const wxString &name=DefaultName)
 
 ~wxPDFViewDocumentPanel ()
 
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const wxString &name=DefaultName)
 
bool LoadFile (const wxString &fileName)
 Load the specified file into the panel. More...
 
wxPDFViewGetPDFView ()
 
void SetToolBar (wxToolBar *toolBar)
 

Static Public Attributes

static wxString DefaultName
 

Protected Types

enum  {
  ID_ZOOM_IN = 1600,
  ID_ZOOM_OUT,
  ID_NAVIGATION,
  ID_ZOOM_PAGE_FIT,
  ID_ZOOM_PAGE_WIDTH,
  ID_DISPLAY_SINGLE_PAGE,
  ID_DISPLAY_2PAGES,
  ID_DISPLAY_2PAGES_COVER,
  ID_FIND_NEXT,
  ID_FIND_PREV
}
 

Protected Member Functions

virtual void PreparePrintDialogData (wxPrintDialogData &printDialogData)
 Override this method to customize the printDialogData used when the print button is pressed. More...
 
virtual wxBitmap GetToolbarBitmap (wxArtID id)
 Returns bitmap for the specified art ID. More...
 
void StartActivity (const wxString &description)
 
void UpdateActivity (const wxString &description)
 
void EndActivity ()
 

Protected Attributes

wxSplitterWindow * m_splitter
 
wxPanel * m_navPanel
 
wxNotebook * m_docNotebook
 
wxPanel * m_bookmarkPanel
 
wxPDFViewBookmarksCtrlm_pdfViewBookmarksCtrl
 
wxPanel * m_thumbPanel
 
wxPDFViewThumbnailListBoxm_thumbnailListBox
 
wxPanel * m_docPanel
 
wxPDFViewm_pdfView
 
wxToolBar * m_toolBar
 
wxInfoBar * m_infoBar
 
wxSearchCtrl * m_searchCtrl
 
wxTextCtrl * m_pageTxtCtrl
 
wxStaticText * m_pageCountTxtCtrl
 
wxComboBox * m_zoomComboBox
 
wxString m_fileName
 

Detailed Description

PDF reader panel combining all controls to a ready built PDF reader panel.

This panel combines the other controls into a PDF reader panel. It can be a good base for deriving your own panel or directly using it in your application. Simply initiate an instance load a file into it and show it.

See also
wxPDFView, wxPDFViewBookmarksCtrl, wxPDFViewThumbnailListBox

Member Enumeration Documentation

anonymous enum
protected
Enumerator
ID_ZOOM_IN 
ID_ZOOM_OUT 
ID_NAVIGATION 
ID_ZOOM_PAGE_FIT 
ID_ZOOM_PAGE_WIDTH 
ID_DISPLAY_SINGLE_PAGE 
ID_DISPLAY_2PAGES 
ID_DISPLAY_2PAGES_COVER 
ID_FIND_NEXT 
ID_FIND_PREV 

Constructor & Destructor Documentation

wxPDFViewDocumentPanel::wxPDFViewDocumentPanel ( )
inline
wxPDFViewDocumentPanel::wxPDFViewDocumentPanel ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL|wxNO_BORDER,
const wxString &  name = DefaultName 
)
wxPDFViewDocumentPanel::~wxPDFViewDocumentPanel ( )

Member Function Documentation

bool wxPDFViewDocumentPanel::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL|wxNO_BORDER,
const wxString &  name = DefaultName 
)
void wxPDFViewDocumentPanel::EndActivity ( )
protected
wxPDFView* wxPDFViewDocumentPanel::GetPDFView ( )
inline
virtual wxBitmap wxPDFViewDocumentPanel::GetToolbarBitmap ( wxArtID  id)
protectedvirtual

Returns bitmap for the specified art ID.

bool wxPDFViewDocumentPanel::LoadFile ( const wxString &  fileName)

Load the specified file into the panel.

Parameters
fileNameFully qualified local file name
virtual void wxPDFViewDocumentPanel::PreparePrintDialogData ( wxPrintDialogData &  printDialogData)
inlineprotectedvirtual

Override this method to customize the printDialogData used when the print button is pressed.

void wxPDFViewDocumentPanel::SetToolBar ( wxToolBar *  toolBar)
void wxPDFViewDocumentPanel::StartActivity ( const wxString &  description)
protected
void wxPDFViewDocumentPanel::UpdateActivity ( const wxString &  description)
protected

Member Data Documentation

wxString wxPDFViewDocumentPanel::DefaultName
static
wxPanel* wxPDFViewDocumentPanel::m_bookmarkPanel
protected
wxNotebook* wxPDFViewDocumentPanel::m_docNotebook
protected
wxPanel* wxPDFViewDocumentPanel::m_docPanel
protected
wxString wxPDFViewDocumentPanel::m_fileName
protected
wxInfoBar* wxPDFViewDocumentPanel::m_infoBar
protected
wxPanel* wxPDFViewDocumentPanel::m_navPanel
protected
wxStaticText* wxPDFViewDocumentPanel::m_pageCountTxtCtrl
protected
wxTextCtrl* wxPDFViewDocumentPanel::m_pageTxtCtrl
protected
wxPDFView* wxPDFViewDocumentPanel::m_pdfView
protected
wxPDFViewBookmarksCtrl* wxPDFViewDocumentPanel::m_pdfViewBookmarksCtrl
protected
wxSearchCtrl* wxPDFViewDocumentPanel::m_searchCtrl
protected
wxSplitterWindow* wxPDFViewDocumentPanel::m_splitter
protected
wxPDFViewThumbnailListBox* wxPDFViewDocumentPanel::m_thumbnailListBox
protected
wxPanel* wxPDFViewDocumentPanel::m_thumbPanel
protected
wxToolBar* wxPDFViewDocumentPanel::m_toolBar
protected
wxComboBox* wxPDFViewDocumentPanel::m_zoomComboBox
protected