source: trunk/poppler/mypoppler/poppler/PageLabelInfo.h @ 2

Last change on this file since 2 was 2, checked in by Eugene Romanenko, 15 years ago

First import

File size: 749 bytes
Line 
1#include <limits.h>
2#include <stdlib.h>
3#include <stdio.h>
4#include <ctype.h>
5#include <assert.h>
6
7#include <goo/gtypes.h>
8#include <goo/GooList.h>
9#include <goo/GooString.h>
10#include <Object.h>
11
12class PageLabelInfo {
13public:
14  PageLabelInfo(Object *tree, int numPages);
15  ~PageLabelInfo();
16  GBool labelToIndex(GooString *label, int *index);
17  GBool indexToLabel(int index, GooString *label);
18
19private:
20  void parse(Object *tree);
21
22private:
23  struct Interval {
24    Interval(Object *dict, int baseA);
25    ~Interval();
26    GooString *prefix;
27    enum NumberStyle {
28      None,
29      Arabic,
30      LowercaseRoman,
31      UppercaseRoman,
32      UppercaseLatin,
33      LowercaseLatin
34    } style;
35    int first, base, length;
36  };
37
38  GooList intervals;
39};
Note: See TracBrowser for help on using the repository browser.