fs_pdfpagelabel.h
Go to the documentation of this file.
1 
15 #ifndef FS_PDFPAGELABEL_H_
16 #define FS_PDFPAGELABEL_H_
17 
18 #include "common/fs_common.h"
19 #include "pdf/fs_pdfdoc.h"
22 
28 namespace foxit {
32 namespace pdf {
53 class PageLabels FS_FINAL : public Base {
54  public:
60  typedef enum _Style {
66  e_None = 0,
87  } Style;
88 
99  explicit PageLabels(const PDFDoc& document);
101  ~PageLabels();
102  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
103  explicit PageLabels(FS_HANDLE handle);
109  PageLabels(const PageLabels& other);
117  PageLabels& operator= (const PageLabels& other);
125  bool operator == (const PageLabels& other) const;
133  bool operator != (const PageLabels& other) const;
134 
142  bool IsEmpty() const;
143 
157  WString GetPageLabelTitle(int page_index) const;
158 
171  bool HasPageLabel(int page_index);
172 
190  Style GetPageLabelStyle(int page_index) const;
207  WString GetPageLabelPrefix(int page_index) const;
228  int GetPageLabelStart(int page_index) const;
229 
265  void SetPageLabel(int page_index, Style label_style, int first_label_number, const WString& prefix_string = WString());
266 
283  void RemovePageLabel(int page_index);
284 
290  void RemoveAll();
291 
298 
299 };
300 } // namespace pdf
301 } // namespace foxit
302 #endif // FS_PDFPAGELABEL_H_
303 
Style
Enumeration for page label style.
Definition: fs_pdfpagelabel.h:60
int GetPageLabelStart(int page_index) const
Get the value of the numeric portion for the first page label in the page label (as numbering format)...
Page label style: lowercase roman numerals.
Definition: fs_pdfpagelabel.h:72
Page label style: lowercase letters.
Definition: fs_pdfpagelabel.h:86
Header file for PDF document related definitions and classes.
bool HasPageLabel(int page_index)
Check if there is a page label (as numbering format) defined with specified page index.
WIDE STRING CLASS.
Definition: fx_string.h:1463
CFX_WideString WString
Wide string.
Definition: fs_basictypes.h:218
Header file for PDF number tree related definitions and classes.
Definition: fs_pdfdoc.h:338
bool IsEmpty() const
Check whether current object is empty or not.
bool operator==(const PageLabels &other) const
Equal operator.
Style GetPageLabelStyle(int page_index) const
Get the numbering style to be used for the numeric portion in the page label (as numbering format) of...
PageLabels & operator=(const PageLabels &other)
Assign operator.
bool operator!=(const PageLabels &other) const
Not equal operator.
Definition: fs_pdfpagelabel.h:53
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:213
Header file for common definitions and classes.
objects::PDFNumberTree GetNumberTree()
Get the PageLabels number tree.
Header file for PDF object related definitions and classes.
Definition: fs_basictypes.h:333
void SetPageLabel(int page_index, Style label_style, int first_label_number, const WString &prefix_string=WString())
Set a page label (as numbering format) defined with a page index which is the starting page index of ...
void RemovePageLabel(int page_index)
Remove a page label (as numbering format) defined with a specified page index.
Foxit namespace.
Definition: fs_connectedpdf.h:26
WString GetPageLabelPrefix(int page_index) const
Get the label prefix string in the page label (as numbering format) of a specified page index...
~PageLabels()
Destructor.
WString GetPageLabelTitle(int page_index) const
Get the full page label title for a page specified by page index.
Page label style: uppercase roman numerals.
Definition: fs_pdfpagelabel.h:70
PageLabels(const PDFDoc &document)
Constructor, from a PDF document object.
Page label style: decimal Arabic numerals.
Definition: fs_pdfpagelabel.h:68
void RemoveAll()
Remove all page labels.
Definition: fs_pdfnumbertree.h:57
Page label style: uppercase letters.
Definition: fs_pdfpagelabel.h:79
Page label style: no numbering style.
Definition: fs_pdfpagelabel.h:66

Foxit Software Corporation Logo
@2018 Foxit Software Incorporated. All rights reserved.