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-2018 by PDFTron Systems 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 
11 namespace pdftron {
12  namespace PDF {
13 
25 {
26 public:
27 
46  void SetInitialPage(Destination& dest);
47 
60  enum PageMode
61  {
68  };
69 
76  void SetPageMode(PageMode mode);
77 
82 
110  {
118  };
119 
127  void SetLayoutMode(PageLayout layout);
128 
133 
166  {
173  };
174 
181  void SetPref(ViewerPref pref, bool value);
182 
187  bool GetPref(ViewerPref pref);
188 
200 
207 
222  void SetDirection(bool left_to_right);
223 
229  bool GetDirection();
230 
239  void SetViewArea(Page::Box box);
240 
246 
254  void SetViewClip(Page::Box box);
255 
261 
269  void SetPrintArea(Page::Box box);
270 
276 
284  void SetPrintClip(Page::Box box);
285 
291 
297 
306 
307  //added default constructor for swig
308  PDFDocViewPrefs ();
309 
311 #ifndef SWIGHIDDEN
312  TRN_PDFDocViewPrefs mp_prefs;
313  PDFDocViewPrefs(TRN_PDFDocViewPrefs impl);
314 #endif
315 };
317 
318 
319 
320 #include <Impl/PDFDocViewPrefs.inl>
321 
322 
323  }; // namespace PDF
324 }; // namespace pdftron
325 
326 #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 &)

© 2002-2014 PDFTron Systems Inc.