00001
00002
00003
00004
00005
00006 #ifndef H_CPPPDFDocViewPrefs
00007 #define H_CPPPDFDocViewPrefs
00008
00009 #include <C/PDF/TRN_PDFDocViewPrefs.h>
00010 #include <PDF/Page.h>
00011
00012 namespace pdftron {
00013 namespace PDF {
00014
00025 class PDFDocViewPrefs
00026 {
00027 public:
00028
00047 void SetInitialPage(Destination& dest);
00048
00061 enum PageMode
00062 {
00063 e_UseNone,
00064 e_UseThumbs,
00065 e_UseBookmarks,
00066 e_FullScreen,
00067 e_UseOC,
00068 e_UseAttachments
00069 };
00070
00077 void SetPageMode(PageMode mode);
00078
00082 PageMode GetPageMode();
00083
00110 enum PageLayout
00111 {
00112 e_Default,
00113 e_SinglePage,
00114 e_OneColumn,
00115 e_TwoColumnLeft,
00116 e_TwoColumnRight,
00117 e_TwoPageLeft,
00118 e_TwoPageRight
00119 };
00120
00128 void SetLayoutMode(PageLayout layout);
00129
00133 PageLayout GetLayoutMode();
00134
00166 enum ViewerPref
00167 {
00168 e_HideToolbar,
00169 e_HideMenubar,
00170 e_HideWindowUI,
00171 e_FitWindow,
00172 e_CenterWindow,
00173 e_DisplayDocTitle,
00174 };
00175
00182 void SetPref(ViewerPref pref, bool value);
00183
00188 bool GetPref(ViewerPref pref);
00189
00200 void SetNonFullScreenPageMode(PageMode mode);
00201
00207 PageMode GetNonFullScreenPageMode();
00208
00223 void SetDirection(bool left_to_right);
00224
00230 bool GetDirection();
00231
00240 void SetViewArea(Page::Box box);
00241
00246 Page::Box GetViewArea();
00247
00255 void SetViewClip(Page::Box box);
00256
00261 Page::Box GetViewClip();
00262
00270 void SetPrintArea(Page::Box box);
00271
00276 Page::Box GetPrintArea();
00277
00285 void SetPrintClip(Page::Box box);
00286
00291 Page::Box GetPrintClip();
00292
00297 SDF::Obj GetSDFObj();
00298
00304 PDFDocViewPrefs (SDF::Obj tr);
00305 PDFDocViewPrefs (const PDFDocViewPrefs&);
00306 PDFDocViewPrefs& operator= (const PDFDocViewPrefs&);
00307
00309 TRN_PDFDocViewPrefs mp_prefs;
00310 PDFDocViewPrefs(TRN_PDFDocViewPrefs impl);
00312 };
00313
00314
00315
00316 #include <Impl/PDFDocViewPrefs.inl>
00317
00318
00319 };
00320 };
00321
00322 #endif
00323