All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Destination.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2020 by PDFTron Systems Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPPDFDestination
6 #define PDFTRON_H_CPPPDFDestination
7 
8 #include <C/PDF/TRN_Destination.h>
9 #include <SDF/Obj.h>
10 
11 namespace pdftron {
12  namespace PDF {
13 
14 class Page; // Forward declaration
15 
16 
31 {
32 public:
33 
46  enum FitType
47  {
56  };
57 
73  static Destination CreateXYZ(Page page, double left, double top, double zoom);
74 
85  static Destination CreateFit(Page page);
86 
97  static Destination CreateFitH(Page page, double top);
98 
109  static Destination CreateFitV(Page page, double left);
110 
127  static Destination CreateFitR(Page page,
128  double left, double bottom, double right, double top);
129 
141  static Destination CreateFitB(Page page);
142 
153  static Destination CreateFitBH(Page page, double top);
154 
165  static Destination CreateFitBV(Page page, double left);
166 
182  Destination (SDF::Obj dest);
183 
187  Destination (const Destination& d);
188 
192  Destination& operator=(const Destination& d);
193 
200  bool IsValid() const;
201 
207 
212  Page GetPage();
213 
220  void SetPage(Page page);
221 
230  SDF::Obj GetSDFObj () const;
231 
239 
240  Destination(TRN_Destination impl);
241 
242  // added default constructor for swig;
243  Destination();
244 
245 // @cond PRIVATE_DOC
246 #ifndef SWIGHIDDEN
247  TRN_Destination mp_dest;
248 #endif
249 // @endcond
250 };
251 
252 
253  }; // namespace PDF
254 }; // namespace pdftron
255 
256 #include <Impl/Page.inl>
257 
258 #endif // PDFTRON_H_CPPPDFDestination
static Destination CreateFitBH(Page page, double top)
static Destination CreateXYZ(Page page, double left, double top, double zoom)
SDF::Obj GetSDFObj() const
void SetPage(Page page)
static Destination CreateFitH(Page page, double top)
static Destination CreateFitV(Page page, double left)
static Destination CreateFitBV(Page page, double left)
static Destination CreateFit(Page page)
Destination & operator=(const Destination &d)
static Destination CreateFitB(Page page)
static Destination CreateFitR(Page page, double left, double bottom, double right, double top)