OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 The Android Open Source Project | 3 * Copyright 2010 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkPDFCatalog_DEFINED | 10 #ifndef SkPDFCatalog_DEFINED |
11 #define SkPDFCatalog_DEFINED | 11 #define SkPDFCatalog_DEFINED |
12 | 12 |
13 #include <sys/types.h> | 13 #include <sys/types.h> |
14 | 14 |
15 #include "SkPDFDocument.h" | |
16 #include "SkPDFTypes.h" | 15 #include "SkPDFTypes.h" |
17 #include "SkRefCnt.h" | |
18 #include "SkTDArray.h" | 16 #include "SkTDArray.h" |
19 | 17 |
20 /** \class SkPDFCatalog | 18 /** \class SkPDFCatalog |
21 | 19 |
22 The PDF catalog manages object numbers and file offsets. It is used | 20 The PDF catalog manages object numbers and file offsets. It is used |
23 to create the PDF cross reference table. | 21 to create the PDF cross reference table. |
24 */ | 22 */ |
25 class SkPDFCatalog { | 23 class SkPDFCatalog { |
26 public: | 24 public: |
27 /** Create a PDF catalog. | 25 /** Create a PDF catalog. |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 uint32_t fNextObjNum; | 99 uint32_t fNextObjNum; |
102 // Next object number to assign on the first page. | 100 // Next object number to assign on the first page. |
103 uint32_t fNextFirstPageObjNum; | 101 uint32_t fNextFirstPageObjNum; |
104 | 102 |
105 int findObjectIndex(SkPDFObject* obj); | 103 int findObjectIndex(SkPDFObject* obj); |
106 | 104 |
107 int assignObjNum(SkPDFObject* obj); | 105 int assignObjNum(SkPDFObject* obj); |
108 }; | 106 }; |
109 | 107 |
110 #endif | 108 #endif |
OLD | NEW |