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 SkPDFDocument_DEFINED | 10 #ifndef SkPDFDocument_DEFINED |
11 #define SkPDFDocument_DEFINED | 11 #define SkPDFDocument_DEFINED |
12 | 12 |
13 #include "SkAdvancedTypefaceMetrics.h" | 13 #include "SkAdvancedTypefaceMetrics.h" |
14 #include "SkRefCnt.h" | 14 #include "SkRefCnt.h" |
15 #include "SkTDArray.h" | 15 #include "SkTDArray.h" |
16 #include "SkTScopedPtr.h" | 16 #include "SkTScopedPtr.h" |
17 | 17 |
18 class SkPDFCatalog; | 18 class SkPDFCatalog; |
19 class SkPDFDevice; | 19 class SkPDFDevice; |
20 class SkPDFDict; | 20 class SkPDFDict; |
21 class SkPDFPage; | 21 class SkPDFPage; |
22 class SkPDFObject; | 22 class SkPDFObject; |
23 class SkWStream; | 23 class SkWStream; |
24 #ifndef SkTSet_DEFINED | |
24 template <typename T> class SK_API SkTSet; | 25 template <typename T> class SK_API SkTSet; |
25 | 26 #endif |
djsollen
2013/05/30 20:35:29
remove
Zach Reizner
2013/05/31 13:16:38
Turns out this is needed to prevent the following
| |
26 /** \class SkPDFDocument | 27 /** \class SkPDFDocument |
27 | 28 |
28 A SkPDFDocument assembles pages together and generates the final PDF file. | 29 A SkPDFDocument assembles pages together and generates the final PDF file. |
29 */ | 30 */ |
30 class SkPDFDocument { | 31 class SkPDFDocument { |
31 public: | 32 public: |
32 enum Flags { | 33 enum Flags { |
33 kNoCompression_Flags = 0x01, //!< DEPRECATED. | 34 kNoCompression_Flags = 0x01, //!< DEPRECATED. |
34 kFavorSpeedOverSize_Flags = 0x01, //!< Don't compress the stream, but | 35 kFavorSpeedOverSize_Flags = 0x01, //!< Don't compress the stream, but |
35 // if it is already compressed return | 36 // if it is already compressed return |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
96 size_t headerSize(); | 97 size_t headerSize(); |
97 | 98 |
98 /** Output the PDF footer to the passed stream. | 99 /** Output the PDF footer to the passed stream. |
99 * @param stream The writable output stream to send the footer to. | 100 * @param stream The writable output stream to send the footer to. |
100 * @param objCount The number of objects in the PDF. | 101 * @param objCount The number of objects in the PDF. |
101 */ | 102 */ |
102 void emitFooter(SkWStream* stream, int64_t objCount); | 103 void emitFooter(SkWStream* stream, int64_t objCount); |
103 }; | 104 }; |
104 | 105 |
105 #endif | 106 #endif |
OLD | NEW |