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

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

#include <PDFViewDocumentFrame.h>

+ Inheritance diagram for wxPDFViewDocumentFrame:

Public Member Functions

 wxPDFViewDocumentFrame ()
 
 wxPDFViewDocumentFrame (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxString(), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=DefaultName)
 
 ~wxPDFViewDocumentFrame ()
 
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxString(), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=DefaultName)
 
bool LoadFile (const wxString &fileName)
 Load the specified file into the frame. More...
 
wxPDFViewGetPDFView ()
 

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_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 frame combining all controls to a ready built PDF reader.

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

Example:

docFrame->LoadFile("C:\\mydocument.pdf");
docFrame->Show();
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_FIND_NEXT 
ID_FIND_PREV 

Constructor & Destructor Documentation

wxPDFViewDocumentFrame::wxPDFViewDocumentFrame ( )
inline
wxPDFViewDocumentFrame::wxPDFViewDocumentFrame ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxString &  title = wxString(),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxDEFAULT_FRAME_STYLE,
const wxString &  name = DefaultName 
)
wxPDFViewDocumentFrame::~wxPDFViewDocumentFrame ( )

Member Function Documentation

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

Returns bitmap for the specified art ID.

bool wxPDFViewDocumentFrame::LoadFile ( const wxString &  fileName)

Load the specified file into the frame.

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

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

void wxPDFViewDocumentFrame::StartActivity ( const wxString &  description)
protected
void wxPDFViewDocumentFrame::UpdateActivity ( const wxString &  description)
protected

Member Data Documentation

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