- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PDFViewCtrl.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPPDFPDFViewCtrl
6 #define PDFTRON_H_CPPPDFPDFViewCtrl
7
8 #include <PDF/PDFDoc.h>
9 #include <PDF/PDFRasterizer.h>
10 #include <PDF/Highlights.h>
11 #include <PDF/LinkInfo.h>
12 #include <PDF/OCG/Context.h>
13 #include <PDF/Selection.h>
14 #include <SDF/ObjSet.h>
15 #include <C/PDF/TRN_PDFViewCtrl.h>
16 #include <vector>
17 #include <PDF/ActionParameter.h>
18
19 namespace pdftron {
20 namespace PDF {
21
65 class PDFViewCtrl
66 {
67 public:
68
79 PDFViewCtrl(void* parent_hwnd, void* hinstance, bool compatibility = false);
80 ~PDFViewCtrl();
81
90 bool SetDoc(PDFDoc& doc, const char* password = 0);
91
96 void CloseDoc();
97
101 PDFDoc* GetDoc();
102
107 void DocLock(bool cancel_threads);
108
112 void DocUnlock();
113
119 bool DocTryLock( int milliseconds = 0 );
120
132 void DocLockRead();
133
137 void DocUnlockRead();
138
144 bool DocTryLockRead( int milliseconds = 0 );
145
150 enum WindowID {
151 e_main_view,
152 e_thumb_view,
153 e_layers_view,
154 e_bookmark_view,
155 e_navigation_pane,
156 e_navigation_toolbar,
157 e_toolbar,
158 e_status_bar,
159 e_dialog_modal,
160 e_dialog_modeless
161 };
162
163 enum ControlEventType {
164 e_mouse_move,
165 e_mouse_enter,
166 e_mouse_leave,
167 e_mouse_left_down,
168 e_mouse_left_up,
169 e_mouse_left_dclick,
170 e_mouse_right_down,
171 e_mouse_right_up,
172 e_mouse_right_dclick,
173 e_mouse_middle_down,
174 e_mouse_middle_up,
175 e_mouse_middle_dclick,
176 e_mouse_wheel,
177 e_context_menu,
178 e_key_down,
179 e_key_up,
180 e_key_press,
181 e_paint,
182 e_window_open,
183 e_window_close
184 };
185
186
191 struct MouseEvent {
192 int m_x;
193 int m_y;
194 int m_wheelRotation;
195 int m_wheelDelta;
196 int m_linesPerAction;
197 UInt8 m_leftDown;
198 UInt8 m_middleDown;
199 UInt8 m_rightDown;
200 UInt8 m_controlDown;
201 UInt8 m_shiftDown;
202 UInt8 m_altDown;
203 UInt8 m_metaDown;
204
205 // identifies the type of event
206 enum ControlEventType m_event_type;
207 // identifies which window emitted the event
208 enum WindowID m_event_window;
209 // if TRUE, this event was emitted after PDFViewCtrl has processed it
210 UInt8 m_pdfviewctrl_processed;
211 };
212
217 struct KeyEvent {
218 int m_x;
219 int m_y;
220 long int m_keyCode;
221 Unicode m_unicode;
222 UInt8 m_controlDown;
223 UInt8 m_shiftDown;
224 UInt8 m_altDown;
225 UInt8 m_metaDown;
226 // identifies the type of event
227 enum ControlEventType m_event_type;
228 // this helps you identify which window emitted the event
229 enum WindowID m_event_window;
230 // if TRUE, this event was emitted after PDFViewCtrl has processed it
231 UInt8 m_pdfviewctrl_processed;
232 };
233
238 struct PaintEvent {
239 // platform-dependent device context pointer
240 void* m_hdc;
241 enum TRN_PDFViewCtrlWindowID m_event_window;
242 TRN_Bool m_pdfviewctrl_processed;
243 };
244
245 struct SizeEvent {
246 int m_width;
247 int m_height;
248 int m_x_position;
249 int m_y_position;
250 // this helps you identify which window emitted the event
251 enum WindowID m_event_window;
252 };
253
258 struct WindowEvent {
259 // identifies the type of event
260 enum ControlEventType m_event_type;
261 // this helps you identify which window emitted the event
262 enum WindowID m_event_window;
263 };
264
268 struct TextFindDoneEvent {
269 bool m_found;
270 enum ControlEventType m_event_type;
271 enum WindowID m_event_window;
272
273 TextFindDoneEvent( PDFViewCtrl::WindowID id, ControlEventType tp, bool found )
274 : m_event_type(tp),
275 m_event_window(id),
276 m_found(found)
277 {}
278 };
279
283 struct AnnotationEditPermissionEvent {
284 TRN_Annot m_annot;
285 // identifies the type of event
286 enum ControlEventType m_event_type;
287 // this helps you identify which window emitted the event
288 enum WindowID m_event_window;
289
290 AnnotationEditPermissionEvent(PDFViewCtrl::WindowID id, ControlEventType tp, TRN_Annot annot)
291 : m_annot(annot),
292 m_event_type(tp),
293 m_event_window(id)
294 {}
295 };
296
297 // handlers for generic event signals emitted by PDFViewCtrl;
298 // they return boolean, return value of true means no PDFViewCtrl processing should take place
299 typedef UInt8 (*MouseEventHandler) ( struct MouseEvent* evt, void* custom_data );
300 typedef UInt8 (*KeyEventHandler) ( struct KeyEvent* evt, void* custom_data );
301 typedef UInt8 (*PaintEventHandler) ( struct PaintEvent* evt, void* custom_data );
302 typedef UInt8 (*SizeEventHandler) ( struct SizeEvent* evt, void* custom_data );
303 typedef UInt8 (*WindowEventHandler)( struct WindowEvent* evt, void* custom_data);
304 typedef UInt8 (*TextFindDoneHandler)(struct TextFindDoneEvent* evt, void* custom_data);
305 typedef UInt8 (*AnnotationEditPermissionHandler)(struct AnnotationEditPermissionEvent* evt, void* custom_data);
306
311 struct EventHandlers
312 {
313 MouseEventHandler mouse_move;
314 MouseEventHandler mouse_enter;
315 MouseEventHandler mouse_leave;
316 MouseEventHandler mouse_left_down;
317 MouseEventHandler mouse_left_up;
318 MouseEventHandler mouse_left_dclick;
319 MouseEventHandler mouse_right_down;
320 MouseEventHandler mouse_right_up;
321 MouseEventHandler mouse_right_dclick;
322 MouseEventHandler mouse_middle_down;
323 MouseEventHandler mouse_middle_up;
324 MouseEventHandler mouse_middle_dclick;
325 MouseEventHandler on_mousewheel;
326 MouseEventHandler on_context_menu;
327 KeyEventHandler key_down;
328 KeyEventHandler key_up;
329 KeyEventHandler character_entered;
330 PaintEventHandler on_paint;
331 SizeEventHandler on_size;
332 WindowEventHandler on_window_event;
333 TextFindDoneHandler on_find_text_done;
334 AnnotationEditPermissionHandler on_edit_annotation;
335
336 void* custom_data;
337
338 EventHandlers();
339 };
340
345 void SetCustomEventHandlers( EventHandlers* handlers );
346
354 typedef UInt8 (*ActionHandler) ( TRN_Action action, void* custom_data );
355
360 void SetActionHandler( ActionHandler action_callback, void* custom_data );
361
367 void ExecuteAction(ActionParameter action_param );
368
377 typedef void (*CurrentPageHandler) (int current_page, int num_pages, void* data);
378
387 void SetCurrentPageHandler(CurrentPageHandler curr_pagenum_proc, void* data);
388
396 typedef void (*CurrentZoomHandler) (double current_zoom, void* data);
397
406 void SetCurrentZoomHandler(CurrentZoomHandler curr_zoom_proc, void* data);
407
408 typedef void (*ErrorReportHandler) (const char* message, void* data);
409
417 void SetErrorReportHandler(ErrorReportHandler error_proc, void* data);
418
429 void OnSize(int x, int y, int width, int height);
430
435 void Find();
436
440 void Copy();
441
445 void SelectAll();
446
458 void SetProgressiveRendering(bool progressive=true);
459
464 void ShowNavPanel(bool show);
465
469 bool IsNavPanelVisible() const;
470
475 void EnableScrollbar( bool show );
476
481 void ShowToolbar( bool show);
482
487 void ShowStatusBar( bool show);
488
493 void ShowNavToolbar( bool show);
494
499 void ShowMenuBar( bool show );
500
505 void EnableInteractiveForms(bool on);
506
512 void ShowDialogs(bool show);
513
514 static const UInt32 e_none=0x00;
515 static const UInt32 e_bookmarks=0x01;
516 static const UInt32 e_layers=0x02;
517 static const UInt32 e_thumbview=0x04;
518 static const UInt32 e_all=0x07;
519 typedef UInt32 PanelType;
520
525 void SetEnabledPanels(UInt32 panels);
526
532 UInt32 GetEnabledPanels() const ;
533
538 void SetSelectedPanel(PanelType panel);
539
544 PanelType GetSelectedPanel() const ;
545
550 void SetSplitPosition(int pos);
551
556 int GetSplitPosition() const ;
557
563 void Print();
564
576 void Print(int first_page, int last_page, Page::Rotate rotation,
577 int copies, const char* printer_name);
578
579
591 void Print(int first_page, int last_page, Page::Rotate rotation,
592 int copies, const UString& printer_name);
593
594
598 void Refresh();
599
600
612 void RequestRendering();
613
614
618 void CaptureMouse();
619
623 void ReleaseMouse();
624
628 bool HasCapture() const;
629
634 void EnableLinkActivation(bool enable);
635
641 void LoadCurrentConfiguration( const UString & path );
642
648 void SaveCurrentConfiguration( const UString & path, Common::ProgressMonitor* progress = 0 );
649
662 Annot GetDefaultAnnotation( const char* type );
663
667 void SetWindowBackgroundColor( WindowID winid, const ColorPt& color );
668 #ifdef WIN32
669 void SetWindowCursor( PDFViewCtrl::WindowID winid, HCURSOR cursor );
670 #endif
671
675 void SetFocus();
676
677 /* dialogs creation API */
678
683 void DocProperties();
684
689 void DeletePages();
690
695 void InsertPages(const UString& src_name);
696
701 void InsertBlankPages();
702
708 void ReplacePages(const UString& src_name = UString());
709
714 void RotatePages();
715
719 void ExtractPages();
720
726 void CropPages();
727
732 void AddWatermark();
733
734 /* end of dialogs creation API */
735
748 enum PageViewMode
749 {
750 e_fit_page = 0,
751 e_fit_width,
752 e_fit_height,
753 e_zoom
754 };
755
762 void SetPageViewMode(PageViewMode mode);
763
767 PageViewMode GetPageViewMode() const ;
768
772 enum PagePresentationMode
773 {
774 e_single_page = 1, //<<< Display one page at a time.
775 e_single_continuous, //<<< Display the pages in one column.
776 e_facing, //<<< Display the pages two at a time, with odd-numbered pages on the left.
777 e_facing_continuous, //<<< Display the pages in two columns, with odd-numbered pages on the left.
778 e_facing_cover, //<<< Display the pages two at a time, with odd-numbered pages on the right.
779 e_facing_continuous_cover //<<< Display the pages in two columns, with odd-numbered pages on the right.
780 };
781
788 void SetPagePresentationMode(PagePresentationMode mode);
789
793 PagePresentationMode GetPagePresentationMode() const ;
794
804 void SetColorPostProcessMode(PDFRasterizer::ColorPostProcessMode mode);
805
809 PDFRasterizer::ColorPostProcessMode GetColorPostProcessMode() const;
810
814 int GetCurrentPage() const ;
815
819 int GetPageCount() const ;
820
826 std::vector<int> GetVisiblePages() const ;
827
833 bool GotoFirstPage();
834
840 bool GotoLastPage();
841
847 bool GotoNextPage();
848
854 bool GotoPreviousPage();
855
861 bool SetCurrentPage(int page_num);
862
870 bool ShowRect( int page_num, const Rect& rect );
871
877 double GetZoom() const ;
878
886 bool SetZoom(double zoom);
887
915 bool SetZoom(int x, int y, double zoom);
916
933 bool SmartZoom(int x, int y);
934
938 void RotateClockwise();
939
943 void RotateCounterClockwise();
944
948 Page::Rotate GetRotation() const ;
949
954 int GetPageNumberFromScreenPt(double x, double y) const ;
955
959 void ConvScreenPtToCanvasPt(double& x, double& y) const ;
960
964 void ConvCanvasPtToScreenPt(double& x, double& y) const;
965
973 void ConvCanvasPtToPagePt(double& x, double& y, int page_num = -1) const;
974
982 void ConvPagePtToCanvasPt(double& x, double& y, int page_num = -1) const;
983
991 void ConvScreenPtToPagePt(double& x, double& y, int page_num = -1) const;
992
1000 void ConvPagePtToScreenPt(double& x, double& y, int page_num = -1) const;
1001
1006 void SnapToNearestInDoc(double& screen_x, double& screen_y);
1007
1014 void SetSnappingMode(UInt32 mode_flags);
1015
1031 Common::Matrix2D GetDeviceTransform(int page_num = -1) const;
1032
1036 double GetCanvasWidth() const;
1037
1041 double GetCanvasHeight() const;
1042
1046 double GetHScrollPos() const;
1047
1051 double GetVScrollPos() const;
1052
1053
1060 void OnScroll(int pix_dx, int pix_dy);
1061
1068 void SetHScrollPos(double pos);
1069
1092 void SetVScrollPos(double pos);
1093
1105 bool IsFinishedRendering(bool visible_region_only) const;
1106
1111 void CancelRendering();
1112
1118 void Update(bool all = false);
1119
1124 void Update(const Rect& update);
1125
1131 void Update(const Annot& annot, int page_num);
1132
1137 void Update(const Field& field);
1138
1145 void UpdatePageLayout();
1146
1151 void HideAnnotation(const Annot& annot);
1152
1157 void ShowAnnotation(const Annot& annot);
1158
1163 int GetViewWidth() const;
1164
1169 int GetViewHeight() const;
1170
1171
1178 void SetDrawAnnotations(bool render_annots);
1179
1192 void SetUrlExtraction(bool enabled);
1193
1206 LinkInfo GetLinkAt(int x, int y);
1207
1213 void SetHighlightFields(bool highlight_fields);
1214
1223 void SetRequiredFieldBorderColor(const ColorPt& new_border_color);
1224
1234 void SetAntiAliasing(bool enable_aa);
1235
1244 void SetPathHinting(bool enable_hinting);
1245
1256 void SetThinLineAdjustment(bool pixel_grid_fit, bool stroke_adjust);
1257
1271 void SetImageSmoothing(bool smoothing_enabled = true);
1272
1280 void SetCaching(bool enabled);
1281
1290 void SetRasterizerType (PDFRasterizer::Type type);
1291
1304 void SetGamma(double exp);
1305
1315 void SetOverprint(PDFRasterizer::OverprintPreviewMode op);
1316
1332 void SetOCGContext(const OCG::Context& ctx);
1333
1341 OCG::Context GetOCGContext();
1342
1347 enum ToolMode
1348 {
1349 e_custom, // Custom tool
1350 e_pan, // Pan tool
1351 e_text_rect_select, // Rectangular text selection tool
1352 e_text_struct_select, // HTML Style text selection tool
1353 e_zoom_in, // Zoom in tool
1354 e_zoom_out, // Zoom out tool
1355 e_annot_edit, // Annotation editing tool
1356 e_line_create, // Line creation tool
1357 e_arrow_create, // Arrow creation tool
1358 e_rect_create, // Rectangle creation tool
1359 e_oval_create, // Oval/Ellipse creation tool
1360 e_ink_create, // Freehand drawing tool
1361 e_text_annot_create, // Text annotation creation tool
1362 e_stamp_create, // Stamp Annotation creation tool
1363 e_highlight_create, // highlight text tool
1364 e_underline_create, // underline text tool
1365 e_strikeout_create, // cross out text tool
1366 e_squiggly_create, // squiggly underline tool
1367 e_text_box_create, // free text creation tool
1368 e_calloutbox_create, // free text with a callout tool
1369 e_polygon_create, // polygon creation tool
1370 e_polyline_create, // polyline creation tool
1371 e_file_attachment, // file attachment creation
1372 e_sound_attachment, // sound annotation creation
1373 e_movie_attachment, // movie annotation creation
1374 e_caret_create, // caret placement tool
1375 e_redaction_create, // redaction placement tool
1376 e_text_field_create, // interactive text field creation
1377 e_check_box_create, // interactive check box creation tool
1378 e_radio_button_create, // interactive radio button tool
1379 e_list_box_create, // interactive list box creation tool
1380 e_combo_box_create, // interactive combo box creation tool
1381 e_button_create, // interactive button creation tool
1382 e_link_create, // create a link annotation
1383 e_tool_mode_end
1384 };
1385
1390 void SetToolMode(ToolMode mode);
1391
1395 ToolMode GetToolMode() const;
1396
1404 enum TextSelectionMode {
1405 e_structural,
1406 e_rectangular,
1407 e_structural_algorithm_2
1408 };
1409
1414 void SetTextSelectionMode(TextSelectionMode tm);
1415
1421 void SetRightToLeftLanguage(bool flag);
1422
1428 bool GetRightToLeftLanguage() const;
1429
1437 bool Select(double x1, double y1, double x2, double y2);
1438
1447 bool SelectWithSnapping(double x1, double y1, double x2, double y2, bool snap_to_start, bool snap_to_end);
1448
1456 bool SelectWithSmartSnapping(double x1, double y1, double x2, double y2);
1457
1465 bool Select(double x1, double y1, int page1, double x2, double y2, int page2);
1466
1475 bool SelectWithSnapping(double x1, double y1, int page1, double x2, double y2, int page2, bool snap_to_start, bool snap_to_end);
1476
1484 bool SelectWithSmartSnapping(double x1, double y1, int page1, double x2, double y2, int page2);
1485
1492 bool Select(const Highlights& highlights);
1493
1494
1501 bool Select(const Selection& select);
1502
1506 bool HasSelection() const;
1507
1511 void ClearSelection();
1512
1518 Selection GetSelection( int page = -1 ) const;
1519
1524 int GetSelectionBeginPage() const ;
1525
1530 int GetSelectionEndPage() const;
1531
1536 bool HasSelectionOnPage( int ipage ) const;
1537
1544 void PrepareWords(int page_num);
1545
1550 bool WereWordsPrepared(int page_num) const;
1551
1556 bool IsThereTextInRect(double x1, double y1, double x2, double y2) const;
1557
1568 void PrepareAnnotsForMouse(int page_num, double distance_threshold, double minimum_line_weight);
1569
1574 bool WereAnnotsForMousePrepared(int page_num) const;
1575
1581 Annot::Type GetAnnotTypeUnder(double x, double y);
1582
1587 void SetPageBorderVisibility(bool border_visible);
1588
1594 void SetPageTransparencyGrid(bool trans_grid_visible);
1595
1600 void SetDefaultPageColor(UInt8 r, UInt8 g, UInt8 b);
1601
1606 void SetBackgroundColor(UInt8 r, UInt8 g, UInt8 b);
1607
1617 void SetHorizontalAlign(int align);
1618
1628 void SetVerticalAlign(int align);
1629
1643 void SetPageSpacing(int horiz_col_space, int vert_col_space, int horiz_pad, int vert_pad);
1644
1653 Rect GetScreenRectForAnnot(Annot annot, int page_num = -1);
1654
1663 Annot GetAnnotationAt(int x, int y);
1664
1672 void SetDownloadReportHandler(DownloadReportHandler download_proc, void* data);
1673
1693 void OpenURLAsync(const char* url, UString cache_pdf="", const char* password = 0, const class HTTPRequestOptions* options = 0);
1694
1700 void UpdateCustomHeaders(const class HTTPRequestOptions& options);
1701
1712 void SetupThumbnails(bool use_embedded, bool generate_at_runtime, bool use_disk_cache, int thumb_max_side_length, size_t max_abs_cache_size, double max_perc_cache_size);
1713
1717 void ClearThumbCache();
1718
1730 typedef void (*ThumbAsyncHandler) (int page_num, bool was_thumb_found, const char* thumb_buf, int thumb_width, int thumb_height, void* custom_data);
1731
1740 void GetThumbAsync(int page_num, ThumbAsyncHandler proc, void* custom_data);
1741
1742 /*
1743 * Cancel all pending GetThumbAsync requests. Your callback function will still be called
1744 * for each canceled request, but 'was_thumb_found' will be set to 'false'.
1745 */
1746 void CancelAllThumbRequests();
1747
1753 typedef void (*RequestRenderInWorkerThreadProc) (void* custom_data);
1754
1763 #ifdef SWIG
1764 void SetRequestRenderInWorkerThreadProc(Callback* instance);
1765 #else
1766 void SetRequestRenderInWorkerThreadProc(RequestRenderInWorkerThreadProc proc, void* custom_data);
1767 #endif
1768
1769 #ifdef SWIG
1770
1776 void SetFindTextHandler(Callback * instance);
1777 #else
1778
1783 typedef void (*FindTextAsyncHandler) (bool success, Selection& select, void * custom_data);
1784
1792 void SetFindTextHandler(FindTextAsyncHandler proc, void * custom_data);
1793 #endif
1794
1804 void FindTextAsync(const UString& search_str, bool match_case, bool match_whole_word,
1805 bool search_up, bool reg_exp);
1806
1807
1808 // @cond PRIVATE_DOC
1809 private:
1810 TRN_PDFViewCtrl mp_view;
1811 TRN_PDFDoc temp_doc;
1812
1813 // PDFViewCtrl should not be copied
1814 PDFViewCtrl(const PDFViewCtrl& other);
1815 PDFViewCtrl& operator= (const PDFViewCtrl&);
1816
1817 //For FindTextAsync callback landing pad
1818 FindTextAsyncHandler m_findtext_proc;
1819 void * m_findtext_data;
1820 static void NativeFindTextHandler(unsigned char success, TRN_PDFViewSelection select, void * custom_data);
1821 // @endcond
1822 };
1823
1827 class HTTPRequestOptions
1828 {
1829 public:
1833 HTTPRequestOptions();
1839 void AddHeader(const UString& header, const UString& val);
1840 protected:
1841 TRN_Obj m_obj;
1842 friend class PDF::PDFViewCtrl;
1843 SDF::ObjSet m_objset;
1844 };
1845
1846 #include <Impl/PDFViewCtrl.inl>
1847
1848 } // namespace PDF
1849 } // namespace pdftron
1850
1851 #endif // PDFTRON_H_CPPPDFPDFViewCtrl
pdftron::PDF::PDFViewCtrl::EventHandlers::mouse_middle_down
MouseEventHandler mouse_middle_down
Definition: PDFViewCtrl.h:322
pdftron::PDF::PDFViewCtrl::SetFindTextHandler
void SetFindTextHandler(FindTextAsyncHandler proc, void *custom_data)
pdftron::PDF::PDFViewCtrl::Refresh
void Refresh()
pdftron::PDF::PDFViewCtrl::GotoPreviousPage
bool GotoPreviousPage()
pdftron::PDF::PDFViewCtrl::ShowAnnotation
void ShowAnnotation(const Annot &annot)
pdftron::PDF::PDFViewCtrl::SetThinLineAdjustment
void SetThinLineAdjustment(bool pixel_grid_fit, bool stroke_adjust)
pdftron::PDF::PDFViewCtrl::SelectWithSnapping
bool SelectWithSnapping(double x1, double y1, double x2, double y2, bool snap_to_start, bool snap_to_end)
pdftron::PDF::PDFViewCtrl::Copy
void Copy()
pdftron::PDF::PDFViewCtrl::Find
void Find()
pdftron::PDF::PDFViewCtrl::WereAnnotsForMousePrepared
bool WereAnnotsForMousePrepared(int page_num) const
pdftron::PDF::PDFViewCtrl::SetWindowBackgroundColor
void SetWindowBackgroundColor(WindowID winid, const ColorPt &color)
pdftron::PDF::PDFViewCtrl::CaptureMouse
void CaptureMouse()
pdftron::PDF::PDFViewCtrl::e_squiggly_create
Definition: PDFViewCtrl.h:1366
pdftron::PDF::PDFViewCtrl::SetCurrentPageHandler
void SetCurrentPageHandler(CurrentPageHandler curr_pagenum_proc, void *data)
pdftron::PDF::PDFViewCtrl::HasSelectionOnPage
bool HasSelectionOnPage(int ipage) const
pdftron::PDF::PDFViewCtrl::e_zoom_out
Definition: PDFViewCtrl.h:1354
pdftron::PDF::PDFViewCtrl::SetPagePresentationMode
void SetPagePresentationMode(PagePresentationMode mode)
pdftron::PDF::PDFViewCtrl::MouseEvent::m_metaDown
UInt8 m_metaDown
Definition: PDFViewCtrl.h:203
pdftron::PDF::PDFViewCtrl::EventHandlers::mouse_middle_dclick
MouseEventHandler mouse_middle_dclick
Definition: PDFViewCtrl.h:324
pdftron::PDF::PDFViewCtrl::EventHandlers::on_window_event
WindowEventHandler on_window_event
Definition: PDFViewCtrl.h:332
pdftron::PDF::Annot::Type
Type
Definition: Annot.h:41
pdftron::PDF::PDFViewCtrl::SetDownloadReportHandler
void SetDownloadReportHandler(DownloadReportHandler download_proc, void *data)
Selection.h
pdftron::PDF::PDFViewCtrl::e_mouse_middle_dclick
Definition: PDFViewCtrl.h:175
pdftron::PDF::PDFViewCtrl::SetHorizontalAlign
void SetHorizontalAlign(int align)
pdftron::PDF::PDFViewCtrl::GetRotation
Page::Rotate GetRotation() const
pdftron::PDF::PDFViewCtrl::ConvPagePtToCanvasPt
void ConvPagePtToCanvasPt(double &x, double &y, int page_num=-1) const
pdftron::PDF::PDFViewCtrl::GetRightToLeftLanguage
bool GetRightToLeftLanguage() const
pdftron::PDF::PDFViewCtrl::EventHandlers::key_down
KeyEventHandler key_down
Definition: PDFViewCtrl.h:327
pdftron::PDF::PDFViewCtrl::e_list_box_create
Definition: PDFViewCtrl.h:1379
pdftron::SDF::ObjSet
Definition: ObjSet.h:17
pdftron::PDF::PDFViewCtrl::GetPagePresentationMode
PagePresentationMode GetPagePresentationMode() const
pdftron::PDF::PDFViewCtrl::ShowMenuBar
void ShowMenuBar(bool show)
pdftron::PDF::PDFViewCtrl::TextFindDoneEvent::m_event_window
enum WindowID m_event_window
Definition: PDFViewCtrl.h:271
pdftron::PDF::PDFViewCtrl::SetSnappingMode
void SetSnappingMode(UInt32 mode_flags)
pdftron::PDF::PDFViewCtrl::e_polygon_create
Definition: PDFViewCtrl.h:1369
pdftron::PDF::PDFViewCtrl::PaintEvent::m_pdfviewctrl_processed
TRN_Bool m_pdfviewctrl_processed
Definition: PDFViewCtrl.h:242
pdftron::PDF::PDFViewCtrl::ReplacePages
void ReplacePages(const UString &src_name=UString())
pdftron::PDF::PDFViewCtrl::e_pan
Definition: PDFViewCtrl.h:1350
pdftron::PDF::PDFViewCtrl::GetSelectionBeginPage
int GetSelectionBeginPage() const
pdftron::PDF::PDFViewCtrl::ShowNavPanel
void ShowNavPanel(bool show)
pdftron::PDF::PDFViewCtrl::e_movie_attachment
Definition: PDFViewCtrl.h:1373
pdftron::PDF::PDFViewCtrl::GetVisiblePages
std::vector< int > GetVisiblePages() const
pdftron::PDF::PDFViewCtrl::InsertPages
void InsertPages(const UString &src_name)
pdftron::PDF::OCG::Context
Definition: Context.h:41
pdftron::PDF::PDFViewCtrl::PrepareAnnotsForMouse
void PrepareAnnotsForMouse(int page_num, double distance_threshold, double minimum_line_weight)
pdftron::PDF::PDFViewCtrl::e_check_box_create
Definition: PDFViewCtrl.h:1377
pdftron::PDF::PDFViewCtrl::e_combo_box_create
Definition: PDFViewCtrl.h:1380
pdftron::PDF::PDFViewCtrl::SelectAll
void SelectAll()
pdftron::PDF::PDFViewCtrl::e_mouse_middle_up
Definition: PDFViewCtrl.h:174
pdftron::PDF::ColorPt
Definition: ColorSpace.h:20
pdftron::PDF::PDFViewCtrl::MouseEvent::m_pdfviewctrl_processed
UInt8 m_pdfviewctrl_processed
Definition: PDFViewCtrl.h:210
pdftron::PDF::PDFViewCtrl::MouseEvent::m_event_type
enum ControlEventType m_event_type
Definition: PDFViewCtrl.h:206
pdftron::PDF::PDFViewCtrl::SetOverprint
void SetOverprint(PDFRasterizer::OverprintPreviewMode op)
pdftron::PDF::PDFViewCtrl::WindowEvent::m_event_type
enum ControlEventType m_event_type
Definition: PDFViewCtrl.h:260
pdftron::PDF::PDFViewCtrl::IsThereTextInRect
bool IsThereTextInRect(double x1, double y1, double x2, double y2) const
pdftron::PDF::PDFViewCtrl::PagePresentationMode
PagePresentationMode
Definition: PDFViewCtrl.h:772
pdftron::PDF::PDFViewCtrl::GetCanvasHeight
double GetCanvasHeight() const
pdftron::PDF::PDFViewCtrl::TextFindDoneHandler
UInt8(* TextFindDoneHandler)(struct TextFindDoneEvent *evt, void *custom_data)
Definition: PDFViewCtrl.h:304
pdftron::PDF::PDFViewCtrl::DocTryLock
bool DocTryLock(int milliseconds=0)
pdftron::PDF::PDFViewCtrl::e_dialog_modeless
Definition: PDFViewCtrl.h:160
pdftron::PDF::PDFViewCtrl::CurrentZoomHandler
void(* CurrentZoomHandler)(double current_zoom, void *data)
Definition: PDFViewCtrl.h:396
pdftron::PDF::PDFViewCtrl::e_status_bar
Definition: PDFViewCtrl.h:158
pdftron::PDF::PDFViewCtrl::EventHandlers::key_up
KeyEventHandler key_up
Definition: PDFViewCtrl.h:328
pdftron::PDF::PDFViewCtrl::ShowRect
bool ShowRect(int page_num, const Rect &rect)
pdftron::UInt8
TRN_UInt8 UInt8
Definition: BasicTypes.h:15
pdftron::PDF::PDFViewCtrl::ShowToolbar
void ShowToolbar(bool show)
pdftron::PDF::PDFViewCtrl::ToolMode
ToolMode
Definition: PDFViewCtrl.h:1347
pdftron::PDF::PDFViewCtrl::GetPageCount
int GetPageCount() const
pdftron::PDF::PDFViewCtrl::e_fit_width
Definition: PDFViewCtrl.h:751
pdftron::PDF::PDFRasterizer::ColorPostProcessMode
ColorPostProcessMode
Definition: PDFRasterizer.h:461
pdftron::PDF::PDFViewCtrl::EventHandlers::mouse_right_up
MouseEventHandler mouse_right_up
Definition: PDFViewCtrl.h:320
pdftron::PDF::PDFViewCtrl::WereWordsPrepared
bool WereWordsPrepared(int page_num) const
pdftron::PDF::Highlights
Definition: Highlights.h:70
pdftron::PDF::PDFViewCtrl::e_structural_algorithm_2
Definition: PDFViewCtrl.h:1407
pdftron::PDF::PDFViewCtrl::e_mouse_left_down
Definition: PDFViewCtrl.h:167
pdftron::PDF::PDFViewCtrl::HasCapture
bool HasCapture() const
pdftron::PDF::PDFViewCtrl::EventHandlers::mouse_right_down
MouseEventHandler mouse_right_down
Definition: PDFViewCtrl.h:319
pdftron::PDF::PDFViewCtrl::e_toolbar
Definition: PDFViewCtrl.h:157
pdftron::PDF::PDFViewCtrl::AnnotationEditPermissionEvent::m_annot
TRN_Annot m_annot
Definition: PDFViewCtrl.h:284
pdftron::PDF::PDFViewCtrl::WindowID
WindowID
Definition: PDFViewCtrl.h:150
pdftron::PDF::PDFViewCtrl::e_text_field_create
Definition: PDFViewCtrl.h:1376
pdftron::PDF::PDFViewCtrl::PanelType
UInt32 PanelType
Definition: PDFViewCtrl.h:519
pdftron::PDF::PDFViewCtrl::ExtractPages
void ExtractPages()
pdftron::PDF::PDFViewCtrl::e_main_view
Definition: PDFViewCtrl.h:151
pdftron::PDF::PDFViewCtrl::e_facing_cover
Definition: PDFViewCtrl.h:778
pdftron::PDF::PDFViewCtrl::CloseDoc
void CloseDoc()
pdftron::PDF::PDFViewCtrl::ThumbAsyncHandler
void(* ThumbAsyncHandler)(int page_num, bool was_thumb_found, const char *thumb_buf, int thumb_width, int thumb_height, void *custom_data)
Definition: PDFViewCtrl.h:1730
pdftron::PDF::PDFViewCtrl::GetToolMode
ToolMode GetToolMode() const
pdftron::PDF::PDFViewCtrl::SetHScrollPos
void SetHScrollPos(double pos)
pdftron::PDF::PDFViewCtrl::e_single_page
Definition: PDFViewCtrl.h:774
pdftron::PDF::PDFViewCtrl::KeyEvent::m_unicode
Unicode m_unicode
Definition: PDFViewCtrl.h:221
pdftron::PDF::PDFViewCtrl::GetPageNumberFromScreenPt
int GetPageNumberFromScreenPt(double x, double y) const
pdftron::PDF::PDFViewCtrl::SetPageBorderVisibility
void SetPageBorderVisibility(bool border_visible)
pdftron::PDF::PDFViewCtrl::SetCaching
void SetCaching(bool enabled)
pdftron::PDF::PDFViewCtrl::SetCurrentPage
bool SetCurrentPage(int page_num)
pdftron::PDF::PDFViewCtrl::SetRequiredFieldBorderColor
void SetRequiredFieldBorderColor(const ColorPt &new_border_color)
pdftron::PDF::PDFViewCtrl::KeyEvent::m_altDown
UInt8 m_altDown
Definition: PDFViewCtrl.h:224
pdftron::PDF::PDFViewCtrl::e_dialog_modal
Definition: PDFViewCtrl.h:159
pdftron::PDF::PDFViewCtrl::PrepareWords
void PrepareWords(int page_num)
pdftron::PDF::PDFViewCtrl::GotoNextPage
bool GotoNextPage()
pdftron::PDF::PDFViewCtrl::SetPathHinting
void SetPathHinting(bool enable_hinting)
pdftron::PDF::PDFViewCtrl::RequestRenderInWorkerThreadProc
void(* RequestRenderInWorkerThreadProc)(void *custom_data)
Definition: PDFViewCtrl.h:1753
pdftron::PDF::PDFViewCtrl::SetFocus
void SetFocus()
pdftron::PDF::PDFViewCtrl::e_mouse_left_dclick
Definition: PDFViewCtrl.h:169
pdftron::PDF::PDFViewCtrl::EventHandlers::on_find_text_done
TextFindDoneHandler on_find_text_done
Definition: PDFViewCtrl.h:333
pdftron::PDF::PDFViewCtrl::MouseEvent::m_shiftDown
UInt8 m_shiftDown
Definition: PDFViewCtrl.h:201
pdftron::PDF::PDFViewCtrl::UpdatePageLayout
void UpdatePageLayout()
pdftron::PDF::PDFViewCtrl::GetThumbAsync
void GetThumbAsync(int page_num, ThumbAsyncHandler proc, void *custom_data)
pdftron::PDF::PDFViewCtrl::e_calloutbox_create
Definition: PDFViewCtrl.h:1368
pdftron::PDF::PDFViewCtrl::WindowEvent::m_event_window
enum WindowID m_event_window
Definition: PDFViewCtrl.h:262
pdftron::PDF::PDFViewCtrl::EnableScrollbar
void EnableScrollbar(bool show)
pdftron::PDF::PDFViewCtrl::GetAnnotationAt
Annot GetAnnotationAt(int x, int y)
pdftron::PDF::PDFViewCtrl::SetImageSmoothing
void SetImageSmoothing(bool smoothing_enabled=true)
pdftron::PDF::PDFViewCtrl::SetDoc
bool SetDoc(PDFDoc &doc, const char *password=0)
pdftron::PDF::PDFViewCtrl::ExecuteAction
void ExecuteAction(ActionParameter action_param)
pdftron::PDF::PDFViewCtrl::GetLinkAt
LinkInfo GetLinkAt(int x, int y)
pdftron::PDF::PDFViewCtrl::e_stamp_create
Definition: PDFViewCtrl.h:1362
pdftron::PDF::PDFViewCtrl::e_highlight_create
Definition: PDFViewCtrl.h:1363
pdftron::PDF::PDFViewCtrl::SizeEvent::m_x_position
int m_x_position
Definition: PDFViewCtrl.h:248
pdftron::PDF::PDFViewCtrl::GetCurrentPage
int GetCurrentPage() const
pdftron::PDF::PDFViewCtrl::KeyEvent::m_pdfviewctrl_processed
UInt8 m_pdfviewctrl_processed
Definition: PDFViewCtrl.h:231
pdftron::PDF::PDFViewCtrl::KeyEvent::m_event_type
enum ControlEventType m_event_type
Definition: PDFViewCtrl.h:227
pdftron::PDF::PDFViewCtrl::SetToolMode
void SetToolMode(ToolMode mode)
pdftron::PDF::PDFViewCtrl::e_radio_button_create
Definition: PDFViewCtrl.h:1378
pdftron::PDF::PDFViewCtrl::AnnotationEditPermissionHandler
UInt8(* AnnotationEditPermissionHandler)(struct AnnotationEditPermissionEvent *evt, void *custom_data)
Definition: PDFViewCtrl.h:305
pdftron::PDF::PDFViewCtrl::GetAnnotTypeUnder
Annot::Type GetAnnotTypeUnder(double x, double y)
pdftron::PDF::PDFViewCtrl::e_fit_height
Definition: PDFViewCtrl.h:752
pdftron::PDF::PDFViewCtrl::KeyEventHandler
UInt8(* KeyEventHandler)(struct KeyEvent *evt, void *custom_data)
Definition: PDFViewCtrl.h:300
pdftron::PDF::PDFViewCtrl::SetGamma
void SetGamma(double exp)
pdftron::PDF::PDFViewCtrl::TextFindDoneEvent::m_event_type
enum ControlEventType m_event_type
Definition: PDFViewCtrl.h:270
pdftron::PDF::PDFViewCtrl::e_text_struct_select
Definition: PDFViewCtrl.h:1352
pdftron::PDF::PDFViewCtrl::e_navigation_toolbar
Definition: PDFViewCtrl.h:156
pdftron::PDF::PDFViewCtrl::GotoFirstPage
bool GotoFirstPage()
pdftron::PDF::PDFViewCtrl::SizeEvent::m_width
int m_width
Definition: PDFViewCtrl.h:246
pdftron::PDF::PDFViewCtrl::GetSelection
Selection GetSelection(int page=-1) const
pdftron::PDF::PDFViewCtrl::SetProgressiveRendering
void SetProgressiveRendering(bool progressive=true)
pdftron::PDF::PDFViewCtrl::GetSelectionEndPage
int GetSelectionEndPage() const
pdftron::PDF::PDFViewCtrl::GetCanvasWidth
double GetCanvasWidth() const
pdftron::PDF::PDFViewCtrl::e_button_create
Definition: PDFViewCtrl.h:1381
pdftron::PDF::PDFViewCtrl::SizeEvent::m_event_window
enum WindowID m_event_window
Definition: PDFViewCtrl.h:251
pdftron::PDF::PDFViewCtrl::e_mouse_enter
Definition: PDFViewCtrl.h:165
pdftron::PDF::Rect
Definition: Rect.h:28
pdftron::PDF::PDFViewCtrl::IsNavPanelVisible
bool IsNavPanelVisible() const
pdftron::PDF::PDFViewCtrl::e_line_create
Definition: PDFViewCtrl.h:1356
pdftron::PDF::PDFViewCtrl::MouseEvent::m_rightDown
UInt8 m_rightDown
Definition: PDFViewCtrl.h:199
pdftron::Unicode
TRN_Unicode Unicode
Definition: BasicTypes.h:22
pdftron::PDF::PDFViewCtrl::MouseEvent::m_x
int m_x
Definition: PDFViewCtrl.h:192
pdftron::PDF::PDFViewCtrl::DeletePages
void DeletePages()
pdftron::PDF::PDFViewCtrl::CropPages
void CropPages()
pdftron::PDF::PDFViewCtrl::RequestRendering
void RequestRendering()
pdftron::PDF::PDFViewCtrl::e_navigation_pane
Definition: PDFViewCtrl.h:155
pdftron::PDF::PDFViewCtrl::e_custom
Definition: PDFViewCtrl.h:1349
pdftron::PDF::PDFViewCtrl
Definition: PDFViewCtrl.h:65
pdftron::PDF::PDFViewCtrl::e_text_box_create
Definition: PDFViewCtrl.h:1367
pdftron::PDF::PDFViewCtrl::KeyEvent::m_controlDown
UInt8 m_controlDown
Definition: PDFViewCtrl.h:222
pdftron::PDF::PDFViewCtrl::e_context_menu
Definition: PDFViewCtrl.h:177
pdftron::PDF::PDFViewCtrl::GetVScrollPos
double GetVScrollPos() const
pdftron::PDF::PDFViewCtrl::SmartZoom
bool SmartZoom(int x, int y)
pdftron::PDF::PDFViewCtrl::e_rect_create
Definition: PDFViewCtrl.h:1358
pdftron::PDF::PDFViewCtrl::KeyEvent
Definition: PDFViewCtrl.h:217
pdftron::PDF::PDFViewCtrl::e_paint
Definition: PDFViewCtrl.h:181
pdftron::PDF::PDFViewCtrl::e_thumb_view
Definition: PDFViewCtrl.h:152
pdftron::PDF::PDFViewCtrl::SetRasterizerType
void SetRasterizerType(PDFRasterizer::Type type)
pdftron::PDF::PDFViewCtrl::MouseEvent
Definition: PDFViewCtrl.h:191
pdftron::PDF::PDFViewCtrl::SetRightToLeftLanguage
void SetRightToLeftLanguage(bool flag)
pdftron::PDF::PDFViewCtrl::DocLockRead
void DocLockRead()
pdftron::PDF::PDFViewCtrl::SetDrawAnnotations
void SetDrawAnnotations(bool render_annots)
pdftron::PDF::PDFViewCtrl::e_text_annot_create
Definition: PDFViewCtrl.h:1361
pdftron::PDF::PDFViewCtrl::e_fit_page
Definition: PDFViewCtrl.h:750
pdftron::PDF::PDFViewCtrl::e_thumbview
static const UInt32 e_thumbview
Definition: PDFViewCtrl.h:517
pdftron::PDF::PDFViewCtrl::SetZoom
bool SetZoom(double zoom)
pdftron::PDF::PDFViewCtrl::GotoLastPage
bool GotoLastPage()
pdftron::PDF::PDFViewCtrl::LoadCurrentConfiguration
void LoadCurrentConfiguration(const UString &path)
pdftron::PDF::PDFViewCtrl::KeyEvent::m_metaDown
UInt8 m_metaDown
Definition: PDFViewCtrl.h:225
pdftron::PDF::PDFViewCtrl::SizeEventHandler
UInt8(* SizeEventHandler)(struct SizeEvent *evt, void *custom_data)
Definition: PDFViewCtrl.h:302
pdftron::PDF::Page::Rotate
Rotate
Definition: Page.h:190
pdftron::PDF::PDFViewCtrl::EnableInteractiveForms
void EnableInteractiveForms(bool on)
pdftron::PDF::PDFViewCtrl::EventHandlers
Definition: PDFViewCtrl.h:311
pdftron::PDF::PDFViewCtrl::ActionHandler
UInt8(* ActionHandler)(TRN_Action action, void *custom_data)
Definition: PDFViewCtrl.h:354
pdftron::PDF::PDFViewCtrl::EventHandlers::mouse_move
MouseEventHandler mouse_move
Definition: PDFViewCtrl.h:313
pdftron::PDF::PDFViewCtrl::SetupThumbnails
void SetupThumbnails(bool use_embedded, bool generate_at_runtime, bool use_disk_cache, int thumb_max_side_length, size_t max_abs_cache_size, double max_perc_cache_size)
pdftron::PDF::PDFViewCtrl::AnnotationEditPermissionEvent
Definition: PDFViewCtrl.h:283
pdftron::PDF::PDFViewCtrl::e_mouse_left_up
Definition: PDFViewCtrl.h:168
pdftron::PDF::PDFViewCtrl::AnnotationEditPermissionEvent::m_event_type
enum ControlEventType m_event_type
Definition: PDFViewCtrl.h:286
pdftron::PDF::PDFViewCtrl::SetDefaultPageColor
void SetDefaultPageColor(UInt8 r, UInt8 g, UInt8 b)
pdftron::PDF::PDFViewCtrl::EventHandlers::on_paint
PaintEventHandler on_paint
Definition: PDFViewCtrl.h:330
Highlights.h
pdftron::PDF::PDFViewCtrl::SelectWithSmartSnapping
bool SelectWithSmartSnapping(double x1, double y1, double x2, double y2)
pdftron::PDF::PDFViewCtrl::KeyEvent::m_shiftDown
UInt8 m_shiftDown
Definition: PDFViewCtrl.h:223
pdftron::PDF::PDFViewCtrl::MouseEvent::m_controlDown
UInt8 m_controlDown
Definition: PDFViewCtrl.h:200
pdftron::PDF::PDFDoc
Definition: PDFDoc.h:71
pdftron::PDF::PDFViewCtrl::OnSize
void OnSize(int x, int y, int width, int height)
pdftron::PDF::PDFViewCtrl::EventHandlers::mouse_enter
MouseEventHandler mouse_enter
Definition: PDFViewCtrl.h:314
pdftron::UInt32
TRN_UInt32 UInt32
Definition: BasicTypes.h:13
pdftron::PDF::PDFViewCtrl::PaintEventHandler
UInt8(* PaintEventHandler)(struct PaintEvent *evt, void *custom_data)
Definition: PDFViewCtrl.h:301
pdftron::PDF::PDFViewCtrl::GetViewHeight
int GetViewHeight() const
pdftron::PDF::PDFViewCtrl::DocUnlockRead
void DocUnlockRead()
pdftron::PDF::PDFViewCtrl::ConvScreenPtToPagePt
void ConvScreenPtToPagePt(double &x, double &y, int page_num=-1) const
pdftron::PDF::PDFViewCtrl::MouseEvent::m_event_window
enum WindowID m_event_window
Definition: PDFViewCtrl.h:208
pdftron::PDF::PDFViewCtrl::PageViewMode
PageViewMode
Definition: PDFViewCtrl.h:748
pdftron::PDF::PDFViewCtrl::e_window_close
Definition: PDFViewCtrl.h:183
pdftron::PDF::PDFViewCtrl::RotatePages
void RotatePages()
pdftron::Common::Matrix2D
Definition: Matrix2D.h:103
pdftron::PDF::PDFViewCtrl::RotateClockwise
void RotateClockwise()
pdftron::PDF::PDFViewCtrl::AnnotationEditPermissionEvent::m_event_window
enum WindowID m_event_window
Definition: PDFViewCtrl.h:288
pdftron::PDF::PDFViewCtrl::EventHandlers::character_entered
KeyEventHandler character_entered
Definition: PDFViewCtrl.h:329
pdftron::PDF::LinkInfo
Definition: LinkInfo.h:18
pdftron::PDF::PDFViewCtrl::SetCurrentZoomHandler
void SetCurrentZoomHandler(CurrentZoomHandler curr_zoom_proc, void *data)
pdftron::PDF::PDFViewCtrl::Update
void Update(bool all=false)
pdftron::PDF::PDFRasterizer::OverprintPreviewMode
OverprintPreviewMode
Definition: PDFRasterizer.h:114
pdftron::PDF::PDFViewCtrl::e_link_create
Definition: PDFViewCtrl.h:1382
pdftron::PDF::PDFViewCtrl::SetColorPostProcessMode
void SetColorPostProcessMode(PDFRasterizer::ColorPostProcessMode mode)
pdftron::PDF::PDFViewCtrl::PaintEvent
Definition: PDFViewCtrl.h:238
pdftron::PDF::PDFViewCtrl::GetSelectedPanel
PanelType GetSelectedPanel() const
LinkInfo.h
pdftron::PDF::PDFViewCtrl::EventHandlers::mouse_left_down
MouseEventHandler mouse_left_down
Definition: PDFViewCtrl.h:316
pdftron::PDF::PDFViewCtrl::SetPageTransparencyGrid
void SetPageTransparencyGrid(bool trans_grid_visible)
pdftron::PDF::PDFViewCtrl::e_key_up
Definition: PDFViewCtrl.h:179
pdftron::PDF::PDFViewCtrl::e_arrow_create
Definition: PDFViewCtrl.h:1357
pdftron::PDF::PDFViewCtrl::HideAnnotation
void HideAnnotation(const Annot &annot)
pdftron::PDF::PDFViewCtrl::MouseEvent::m_y
int m_y
Definition: PDFViewCtrl.h:193
pdftron::PDF::PDFViewCtrl::MouseEvent::m_wheelDelta
int m_wheelDelta
Definition: PDFViewCtrl.h:195
pdftron::PDF::PDFViewCtrl::CancelRendering
void CancelRendering()
PDFDoc.h
pdftron::PDF::PDFViewCtrl::ErrorReportHandler
void(* ErrorReportHandler)(const char *message, void *data)
Definition: PDFViewCtrl.h:408
pdftron::PDF::PDFViewCtrl::KeyEvent::m_event_window
enum WindowID m_event_window
Definition: PDFViewCtrl.h:229
pdftron::PDF::PDFViewCtrl::e_key_press
Definition: PDFViewCtrl.h:180
pdftron::PDF::PDFViewCtrl::ConvCanvasPtToPagePt
void ConvCanvasPtToPagePt(double &x, double &y, int page_num=-1) const
pdftron::PDF::PDFViewCtrl::EventHandlers::on_context_menu
MouseEventHandler on_context_menu
Definition: PDFViewCtrl.h:326
pdftron::PDF::PDFViewCtrl::e_text_rect_select
Definition: PDFViewCtrl.h:1351
pdftron::PDF::PDFViewCtrl::e_tool_mode_end
Definition: PDFViewCtrl.h:1383
pdftron::PDF::HTTPRequestOptions::m_objset
SDF::ObjSet m_objset
Definition: PDFViewCtrl.h:1843
pdftron::PDF::PDFViewCtrl::TextFindDoneEvent
Definition: PDFViewCtrl.h:268
pdftron::PDF::PDFViewCtrl::SetVScrollPos
void SetVScrollPos(double pos)
pdftron::PDF::PDFViewCtrl::SetErrorReportHandler
void SetErrorReportHandler(ErrorReportHandler error_proc, void *data)
pdftron::PDF::PDFViewCtrl::SetSplitPosition
void SetSplitPosition(int pos)
pdftron::PDF::PDFViewCtrl::SetUrlExtraction
void SetUrlExtraction(bool enabled)
pdftron::PDF::PDFViewCtrl::~PDFViewCtrl
~PDFViewCtrl()
pdftron::PDF::PDFViewCtrl::GetDefaultAnnotation
Annot GetDefaultAnnotation(const char *type)
pdftron::PDF::PDFViewCtrl::TextSelectionMode
TextSelectionMode
Definition: PDFViewCtrl.h:1404
pdftron::PDF::PDFViewCtrl::e_bookmark_view
Definition: PDFViewCtrl.h:154
pdftron::PDF::PDFViewCtrl::e_mouse_move
Definition: PDFViewCtrl.h:164
pdftron::PDF::PDFViewCtrl::MouseEvent::m_leftDown
UInt8 m_leftDown
Definition: PDFViewCtrl.h:197
pdftron::PDF::PDFViewCtrl::e_mouse_right_up
Definition: PDFViewCtrl.h:171
pdftron::PDF::PDFViewCtrl::e_rectangular
Definition: PDFViewCtrl.h:1406
pdftron::PDF::PDFViewCtrl::ClearSelection
void ClearSelection()
pdftron::PDF::PDFViewCtrl::KeyEvent::m_x
int m_x
Definition: PDFViewCtrl.h:218
pdftron::PDF::PDFViewCtrl::Select
bool Select(double x1, double y1, double x2, double y2)
pdftron::PDF::PDFViewCtrl::EnableLinkActivation
void EnableLinkActivation(bool enable)
pdftron::PDF::PDFViewCtrl::IsFinishedRendering
bool IsFinishedRendering(bool visible_region_only) const
pdftron::PDF::PDFViewCtrl::EventHandlers::on_edit_annotation
AnnotationEditPermissionHandler on_edit_annotation
Definition: PDFViewCtrl.h:334
pdftron::PDF::PDFViewCtrl::HasSelection
bool HasSelection() const
pdftron::PDF::PDFViewCtrl::ClearThumbCache
void ClearThumbCache()
pdftron::PDF::PDFViewCtrl::CurrentPageHandler
void(* CurrentPageHandler)(int current_page, int num_pages, void *data)
Definition: PDFViewCtrl.h:377
pdftron::PDF::PDFViewCtrl::SetPageSpacing
void SetPageSpacing(int horiz_col_space, int vert_col_space, int horiz_pad, int vert_pad)
pdftron::PDF::PDFViewCtrl::EventHandlers::mouse_right_dclick
MouseEventHandler mouse_right_dclick
Definition: PDFViewCtrl.h:321
pdftron::PDF::PDFViewCtrl::SetBackgroundColor
void SetBackgroundColor(UInt8 r, UInt8 g, UInt8 b)
pdftron::PDF::PDFViewCtrl::SetHighlightFields
void SetHighlightFields(bool highlight_fields)
pdftron::PDF::ActionParameter
Definition: ActionParameter.h:22
pdftron::PDF::DownloadReportHandler
void(* DownloadReportHandler)(DownloadedType type, PDFDoc *doc, int page_num, int obj_num, const char *message, void *data)
Definition: PDFRasterizer.h:44
pdftron::PDF::PDFViewCtrl::FindTextAsyncHandler
void(* FindTextAsyncHandler)(bool success, Selection &select, void *custom_data)
Definition: PDFViewCtrl.h:1783
pdftron::PDF::PDFViewCtrl::SetEnabledPanels
void SetEnabledPanels(UInt32 panels)
pdftron::PDF::PDFViewCtrl::e_redaction_create
Definition: PDFViewCtrl.h:1375
pdftron::PDF::PDFViewCtrl::ShowDialogs
void ShowDialogs(bool show)
pdftron::PDF::PDFViewCtrl::SizeEvent
Definition: PDFViewCtrl.h:245
pdftron::PDF::PDFViewCtrl::e_underline_create
Definition: PDFViewCtrl.h:1364
pdftron::PDF::PDFViewCtrl::RotateCounterClockwise
void RotateCounterClockwise()
pdftron::PDF::PDFViewCtrl::EventHandlers::mouse_leave
MouseEventHandler mouse_leave
Definition: PDFViewCtrl.h:315
pdftron::PDF::PDFViewCtrl::GetScreenRectForAnnot
Rect GetScreenRectForAnnot(Annot annot, int page_num=-1)
pdftron::PDF::PDFViewCtrl::WindowEvent
Definition: PDFViewCtrl.h:258
pdftron::PDF::PDFViewCtrl::OnScroll
void OnScroll(int pix_dx, int pix_dy)
pdftron::PDF::PDFViewCtrl::e_single_continuous
Definition: PDFViewCtrl.h:775
pdftron::PDF::PDFViewCtrl::SetActionHandler
void SetActionHandler(ActionHandler action_callback, void *custom_data)
pdftron::PDF::PDFViewCtrl::e_oval_create
Definition: PDFViewCtrl.h:1359
pdftron::PDF::PDFViewCtrl::SizeEvent::m_y_position
int m_y_position
Definition: PDFViewCtrl.h:249
pdftron::PDF::PDFViewCtrl::e_mouse_wheel
Definition: PDFViewCtrl.h:176
pdftron::PDF::PDFViewCtrl::e_bookmarks
static const UInt32 e_bookmarks
Definition: PDFViewCtrl.h:515
pdftron::PDF::PDFViewCtrl::GetPageViewMode
PageViewMode GetPageViewMode() const
pdftron::PDF::PDFViewCtrl::MouseEvent::m_altDown
UInt8 m_altDown
Definition: PDFViewCtrl.h:202
pdftron::PDF::PDFViewCtrl::e_mouse_middle_down
Definition: PDFViewCtrl.h:173
pdftron::PDF::PDFViewCtrl::GetViewWidth
int GetViewWidth() const
pdftron::PDF::PDFViewCtrl::e_annot_edit
Definition: PDFViewCtrl.h:1355
pdftron::PDF::PDFViewCtrl::DocUnlock
void DocUnlock()
pdftron::PDF::PDFViewCtrl::DocProperties
void DocProperties()
pdftron::PDF::PDFViewCtrl::MouseEvent::m_middleDown
UInt8 m_middleDown
Definition: PDFViewCtrl.h:198
pdftron::PDF::PDFViewCtrl::MouseEventHandler
UInt8(* MouseEventHandler)(struct MouseEvent *evt, void *custom_data)
Definition: PDFViewCtrl.h:299
pdftron::PDF::Annot
Definition: Annot.h:33
pdftron::PDF::PDFViewCtrl::TextFindDoneEvent::m_found
bool m_found
Definition: PDFViewCtrl.h:269
pdftron::PDF::PDFViewCtrl::PaintEvent::m_hdc
void * m_hdc
Definition: PDFViewCtrl.h:240
pdftron::PDF::PDFViewCtrl::MouseEvent::m_wheelRotation
int m_wheelRotation
Definition: PDFViewCtrl.h:194
pdftron::PDF::PDFViewCtrl::ConvScreenPtToCanvasPt
void ConvScreenPtToCanvasPt(double &x, double &y) const
pdftron::PDF::PDFViewCtrl::InsertBlankPages
void InsertBlankPages()
pdftron::PDF::PDFViewCtrl::e_key_down
Definition: PDFViewCtrl.h:178
ActionParameter.h
pdftron::PDF::PDFViewCtrl::GetDeviceTransform
Common::Matrix2D GetDeviceTransform(int page_num=-1) const
pdftron::PDF::PDFViewCtrl::ControlEventType
ControlEventType
Definition: PDFViewCtrl.h:163
pdftron::PDF::Selection
Definition: Selection.h:15
pdftron::PDF::PDFViewCtrl::e_layers
static const UInt32 e_layers
Definition: PDFViewCtrl.h:516
pdftron::PDF::PDFViewCtrl::e_mouse_right_dclick
Definition: PDFViewCtrl.h:172
pdftron::PDF::PDFViewCtrl::GetDoc
PDFDoc * GetDoc()
pdftron::PDF::PDFViewCtrl::MouseEvent::m_linesPerAction
int m_linesPerAction
Definition: PDFViewCtrl.h:196
pdftron::PDF::Field
Definition: Field.h:69
pdftron::PDF::PDFViewCtrl::PaintEvent::m_event_window
enum TRN_PDFViewCtrlWindowID m_event_window
Definition: PDFViewCtrl.h:241
pdftron::PDF::PDFViewCtrl::DocTryLockRead
bool DocTryLockRead(int milliseconds=0)
pdftron::PDF::PDFViewCtrl::KeyEvent::m_keyCode
long int m_keyCode
Definition: PDFViewCtrl.h:220
pdftron::PDF::PDFViewCtrl::SnapToNearestInDoc
void SnapToNearestInDoc(double &screen_x, double &screen_y)
pdftron::PDF::PDFViewCtrl::e_facing
Definition: PDFViewCtrl.h:776
pdftron::PDF::PDFViewCtrl::SetOCGContext
void SetOCGContext(const OCG::Context &ctx)
pdftron::PDF::PDFViewCtrl::WindowEventHandler
UInt8(* WindowEventHandler)(struct WindowEvent *evt, void *custom_data)
Definition: PDFViewCtrl.h:303
pdftron::PDF::PDFViewCtrl::e_caret_create
Definition: PDFViewCtrl.h:1374
pdftron::PDF::PDFViewCtrl::SetTextSelectionMode
void SetTextSelectionMode(TextSelectionMode tm)
ObjSet.h
pdftron::PDF::PDFViewCtrl::ShowStatusBar
void ShowStatusBar(bool show)
pdftron::PDF::PDFViewCtrl::e_file_attachment
Definition: PDFViewCtrl.h:1371
pdftron::PDF::PDFViewCtrl::e_layers_view
Definition: PDFViewCtrl.h:153
pdftron::PDF::PDFViewCtrl::TextFindDoneEvent::TextFindDoneEvent
TextFindDoneEvent(PDFViewCtrl::WindowID id, ControlEventType tp, bool found)
Definition: PDFViewCtrl.h:273
pdftron::PDF::PDFViewCtrl::GetHScrollPos
double GetHScrollPos() const
pdftron::PDF::PDFViewCtrl::EventHandlers::on_mousewheel
MouseEventHandler on_mousewheel
Definition: PDFViewCtrl.h:325
pdftron::PDF::PDFViewCtrl::e_ink_create
Definition: PDFViewCtrl.h:1360
pdftron::PDF::PDFViewCtrl::e_facing_continuous_cover
Definition: PDFViewCtrl.h:779
pdftron::PDF::HTTPRequestOptions
Definition: PDFViewCtrl.h:1827
pdftron::PDF::PDFViewCtrl::e_zoom
Definition: PDFViewCtrl.h:753
pdftron::PDF::HTTPRequestOptions::m_obj
TRN_Obj m_obj
Definition: PDFViewCtrl.h:1841
pdftron::PDF::PDFViewCtrl::GetSplitPosition
int GetSplitPosition() const
pdftron::PDF::PDFViewCtrl::EventHandlers::custom_data
void * custom_data
Definition: PDFViewCtrl.h:336
pdftron::PDF::PDFViewCtrl::e_zoom_in
Definition: PDFViewCtrl.h:1353
pdftron::PDF::PDFViewCtrl::e_none
static const UInt32 e_none
Definition: PDFViewCtrl.h:514
pdftron::PDF::PDFViewCtrl::EventHandlers::on_size
SizeEventHandler on_size
Definition: PDFViewCtrl.h:331
pdftron::PDF::PDFViewCtrl::Print
void Print()
pdftron::PDF::PDFViewCtrl::GetEnabledPanels
UInt32 GetEnabledPanels() const
pdftron::PDF::PDFViewCtrl::ShowNavToolbar
void ShowNavToolbar(bool show)
pdftron::PDF::PDFViewCtrl::AddWatermark
void AddWatermark()
pdftron::PDF::PDFRasterizer::Type
Type
Definition: PDFRasterizer.h:103
pdftron::PDF::PDFViewCtrl::SetRequestRenderInWorkerThreadProc
void SetRequestRenderInWorkerThreadProc(RequestRenderInWorkerThreadProc proc, void *custom_data)
pdftron::PDF::PDFViewCtrl::GetColorPostProcessMode
PDFRasterizer::ColorPostProcessMode GetColorPostProcessMode() const
pdftron::PDF::PDFViewCtrl::e_sound_attachment
Definition: PDFViewCtrl.h:1372
pdftron::PDF::PDFViewCtrl::EventHandlers::mouse_middle_up
MouseEventHandler mouse_middle_up
Definition: PDFViewCtrl.h:323
pdftron::PDF::PDFViewCtrl::SetCustomEventHandlers
void SetCustomEventHandlers(EventHandlers *handlers)
pdftron::PDF::PDFViewCtrl::SaveCurrentConfiguration
void SaveCurrentConfiguration(const UString &path, Common::ProgressMonitor *progress=0)
pdftron::PDF::PDFViewCtrl::SizeEvent::m_height
int m_height
Definition: PDFViewCtrl.h:247
pdftron::PDF::PDFViewCtrl::e_mouse_right_down
Definition: PDFViewCtrl.h:170
pdftron::PDF::PDFViewCtrl::e_strikeout_create
Definition: PDFViewCtrl.h:1365
pdftron::PDF::PDFViewCtrl::DocLock
void DocLock(bool cancel_threads)
pdftron::PDF::PDFViewCtrl::SetVerticalAlign
void SetVerticalAlign(int align)
pdftron::PDF::PDFViewCtrl::SetAntiAliasing
void SetAntiAliasing(bool enable_aa)
pdftron::PDF::PDFViewCtrl::AnnotationEditPermissionEvent::AnnotationEditPermissionEvent
AnnotationEditPermissionEvent(PDFViewCtrl::WindowID id, ControlEventType tp, TRN_Annot annot)
Definition: PDFViewCtrl.h:290
PDFRasterizer.h
pdftron::PDF::HTTPRequestOptions::HTTPRequestOptions
HTTPRequestOptions()
pdftron::PDF::PDFViewCtrl::CancelAllThumbRequests
void CancelAllThumbRequests()
pdftron::PDF::HTTPRequestOptions::AddHeader
void AddHeader(const UString &header, const UString &val)
pdftron::PDF::PDFViewCtrl::KeyEvent::m_y
int m_y
Definition: PDFViewCtrl.h:219
pdftron::UString
Definition: UString.h:27
pdftron::PDF::PDFViewCtrl::e_all
static const UInt32 e_all
Definition: PDFViewCtrl.h:518
pdftron::PDF::PDFViewCtrl::ConvPagePtToScreenPt
void ConvPagePtToScreenPt(double &x, double &y, int page_num=-1) const
pdftron::PDF::PDFViewCtrl::GetOCGContext
OCG::Context GetOCGContext()
pdftron::PDF::PDFViewCtrl::e_mouse_leave
Definition: PDFViewCtrl.h:166
pdftron::PDF::PDFViewCtrl::ReleaseMouse
void ReleaseMouse()
pdftron::PDF::PDFViewCtrl::EventHandlers::EventHandlers
EventHandlers()
pdftron::PDF::PDFViewCtrl::PDFViewCtrl
PDFViewCtrl(void *parent_hwnd, void *hinstance, bool compatibility=false)
pdftron::PDF::PDFViewCtrl::e_facing_continuous
Definition: PDFViewCtrl.h:777
pdftron::PDF::PDFViewCtrl::UpdateCustomHeaders
void UpdateCustomHeaders(const class HTTPRequestOptions &options)
pdftron::PDF::PDFViewCtrl::ConvCanvasPtToScreenPt
void ConvCanvasPtToScreenPt(double &x, double &y) const
pdftron::PDF::PDFViewCtrl::e_polyline_create
Definition: PDFViewCtrl.h:1370
pdftron::PDF::PDFViewCtrl::e_window_open
Definition: PDFViewCtrl.h:182
pdftron::PDF::PDFViewCtrl::FindTextAsync
void FindTextAsync(const UString &search_str, bool match_case, bool match_whole_word, bool search_up, bool reg_exp)
pdftron::PDF::PDFViewCtrl::SetSelectedPanel
void SetSelectedPanel(PanelType panel)
pdftron::PDF::PDFViewCtrl::EventHandlers::mouse_left_up
MouseEventHandler mouse_left_up
Definition: PDFViewCtrl.h:317
pdftron::PDF::PDFViewCtrl::e_structural
Definition: PDFViewCtrl.h:1405
Context.h
pdftron::PDF::PDFViewCtrl::GetZoom
double GetZoom() const
pdftron::PDF::PDFViewCtrl::SetPageViewMode
void SetPageViewMode(PageViewMode mode)
pdftron::PDF::PDFViewCtrl::OpenURLAsync
void OpenURLAsync(const char *url, UString cache_pdf="", const char *password=0, const class HTTPRequestOptions *options=0)
pdftron::PDF::PDFViewCtrl::EventHandlers::mouse_left_dclick
MouseEventHandler mouse_left_dclick
Definition: PDFViewCtrl.h:318