All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PDFDocViewPrefs.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPPDFPDFDocViewPrefs
6 #define PDFTRON_H_CPPPDFPDFDocViewPrefs
7 
8 #include <C/PDF/TRN_PDFDocViewPrefs.h>
9 #include <PDF/Page.h>
10 #include <PDF/Destination.h>
11 
12 namespace pdftron {
13  namespace PDF {
14 
26 {
27 public:
28 
47  void SetInitialPage(Destination& dest);
48 
61  enum PageMode
62  {
69  };
70 
77  void SetPageMode(PageMode mode);
78 
83 
111  {
119  };
120 
128  void SetLayoutMode(PageLayout layout);
129 
134 
167  {
174  };
175 
182  void SetPref(ViewerPref pref, bool value);
183 
188  bool GetPref(ViewerPref pref);
189 
201 
208 
223  void SetDirection(bool left_to_right);
224 
230  bool GetDirection();
231 
240  void SetViewArea(Page::Box box);
241 
247 
255  void SetViewClip(Page::Box box);
256 
262 
270  void SetPrintArea(Page::Box box);
271 
277 
285  void SetPrintClip(Page::Box box);
286 
292 
298 
307 
308  //added default constructor for swig
309  PDFDocViewPrefs ();
310 
311 // @cond PRIVATE_DOC
312 #ifndef SWIGHIDDEN
313  TRN_PDFDocViewPrefs mp_prefs;
314  PDFDocViewPrefs(TRN_PDFDocViewPrefs impl);
315 #endif
316 // @endcond
317 };
318 
319 
320 
321 #include <Impl/PDFDocViewPrefs.inl>
322 
323 
324  }; // namespace PDF
325 }; // namespace pdftron
326 
327 #endif // PDFTRON_H_CPPPDFPDFDocViewPrefs
void SetLayoutMode(PageLayout layout)
bool GetPref(ViewerPref pref)
void SetDirection(bool left_to_right)
void SetNonFullScreenPageMode(PageMode mode)
void SetViewArea(Page::Box box)
void SetPageMode(PageMode mode)
void SetViewClip(Page::Box box)
void SetPrintClip(Page::Box box)
void SetPref(ViewerPref pref, bool value)
void SetInitialPage(Destination &dest)
void SetPrintArea(Page::Box box)
PDFDocViewPrefs & operator=(const PDFDocViewPrefs &)