1cf2cfa174ca878c144e17e9fc60ca8e9070d7dededisonn@google.com/* 2cf2cfa174ca878c144e17e9fc60ca8e9070d7dededisonn@google.com * Copyright 2013 Google Inc. 3cf2cfa174ca878c144e17e9fc60ca8e9070d7dededisonn@google.com 4cf2cfa174ca878c144e17e9fc60ca8e9070d7dededisonn@google.com * Use of this source code is governed by a BSD-style license that can be 5cf2cfa174ca878c144e17e9fc60ca8e9070d7dededisonn@google.com * found in the LICENSE file. 6cf2cfa174ca878c144e17e9fc60ca8e9070d7dededisonn@google.com */ 7cf2cfa174ca878c144e17e9fc60ca8e9070d7dededisonn@google.com 8cf2cfa174ca878c144e17e9fc60ca8e9070d7dededisonn@google.com#ifndef SkPdfType1FormDictionary_DEFINED 9cf2cfa174ca878c144e17e9fc60ca8e9070d7dededisonn@google.com#define SkPdfType1FormDictionary_DEFINED 108cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com 118cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com#include "SkPdfXObjectDictionary_autogen.h" 128cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com 138cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com// Additional entries specific to a type 1 form dictionary 148cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.comclass SkPdfType1FormDictionary : public SkPdfXObjectDictionary { 158cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.compublic: 168cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.compublic: 178cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com SkPdfType1FormDictionary* asType1FormDictionary() {return this;} 188cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com const SkPdfType1FormDictionary* asType1FormDictionary() const {return this;} 198cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com 208cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.comprivate: 218cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com SkPdfImageDictionary* asImageDictionary() {return (SkPdfImageDictionary*)this;} 228cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com const SkPdfImageDictionary* asImageDictionary() const {return (const SkPdfImageDictionary*)this;} 238cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com 248cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return (SkPdfSoftMaskImageDictionary*)this;} 258cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return (const SkPdfSoftMaskImageDictionary*)this;} 268cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com 278cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.compublic: 288cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool valid() const {return true;} 298cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com SkString Type(SkPdfNativeDoc* doc); 308cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool has_Type() const; 318cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com SkString Subtype(SkPdfNativeDoc* doc); 328cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool has_Subtype() const; 338cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com int64_t FormType(SkPdfNativeDoc* doc); 348cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool has_FormType() const; 358cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com SkString Name(SkPdfNativeDoc* doc); 368cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool has_Name() const; 378cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com SkPdfDate LastModified(SkPdfNativeDoc* doc); 388cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool has_LastModified() const; 398cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com SkRect BBox(SkPdfNativeDoc* doc); 408cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool has_BBox() const; 418cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com SkMatrix Matrix(SkPdfNativeDoc* doc); 428cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool has_Matrix() const; 438cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com SkPdfResourceDictionary* Resources(SkPdfNativeDoc* doc); 448cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool has_Resources() const; 458cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com SkPdfTransparencyGroupDictionary* Group(SkPdfNativeDoc* doc); 468cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool has_Group() const; 478cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com SkPdfDictionary* Ref(SkPdfNativeDoc* doc); 488cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool has_Ref() const; 498cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com SkPdfStream* Metadata(SkPdfNativeDoc* doc); 508cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool has_Metadata() const; 518cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com SkPdfDictionary* PieceInfo(SkPdfNativeDoc* doc); 528cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool has_PieceInfo() const; 538cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com int64_t StructParent(SkPdfNativeDoc* doc); 548cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool has_StructParent() const; 558cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com int64_t StructParents(SkPdfNativeDoc* doc); 568cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool has_StructParents() const; 578cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com SkPdfDictionary* OPI(SkPdfNativeDoc* doc); 588cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com bool has_OPI() const; 598cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com}; 608cee797901763ab0922eb9ef484cfdcbc94bee54edisonn@google.com 61cf2cfa174ca878c144e17e9fc60ca8e9070d7dededisonn@google.com#endif // SkPdfType1FormDictionary_DEFINED 62