diff options
Diffstat (limited to 'chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfType1FontDictionary_autogen.h')
-rw-r--r-- | chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfType1FontDictionary_autogen.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfType1FontDictionary_autogen.h b/chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfType1FontDictionary_autogen.h new file mode 100644 index 00000000000..6a4cb209d20 --- /dev/null +++ b/chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfType1FontDictionary_autogen.h @@ -0,0 +1,53 @@ +/* + * Copyright 2013 Google Inc. + + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef SkPdfType1FontDictionary_DEFINED +#define SkPdfType1FontDictionary_DEFINED + +#include "SkPdfFontDictionary_autogen.h" + +// Entries in a Type 1 font dictionary +class SkPdfType1FontDictionary : public SkPdfFontDictionary { +public: +public: + SkPdfType1FontDictionary* asType1FontDictionary() {return this;} + const SkPdfType1FontDictionary* asType1FontDictionary() const {return this;} + +private: + SkPdfType0FontDictionary* asType0FontDictionary() {return (SkPdfType0FontDictionary*)this;} + const SkPdfType0FontDictionary* asType0FontDictionary() const {return (const SkPdfType0FontDictionary*)this;} + +public: + bool valid() const {return true;} + SkString Type(SkPdfNativeDoc* doc); + bool has_Type() const; + SkString Subtype(SkPdfNativeDoc* doc); + bool has_Subtype() const; + SkString Name(SkPdfNativeDoc* doc); + bool has_Name() const; + SkString BaseFont(SkPdfNativeDoc* doc); + bool has_BaseFont() const; + int64_t FirstChar(SkPdfNativeDoc* doc); + bool has_FirstChar() const; + int64_t LastChar(SkPdfNativeDoc* doc); + bool has_LastChar() const; + SkPdfArray* Widths(SkPdfNativeDoc* doc); + bool has_Widths() const; + SkPdfFontDescriptorDictionary* FontDescriptor(SkPdfNativeDoc* doc); + bool has_FontDescriptor() const; + + bool isEncodingAName(SkPdfNativeDoc* doc); + SkString getEncodingAsName(SkPdfNativeDoc* doc); + + bool isEncodingADictionary(SkPdfNativeDoc* doc); + SkPdfDictionary* getEncodingAsDictionary(SkPdfNativeDoc* doc); + bool has_Encoding() const; + SkPdfStream* ToUnicode(SkPdfNativeDoc* doc); + bool has_ToUnicode() const; +}; + +#endif // SkPdfType1FontDictionary_DEFINED |