aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfImageDictionary_autogen.h
blob: 322ca018fead32a25283ba7133239a8915f08471 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
 * 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 SkPdfImageDictionary_DEFINED
#define SkPdfImageDictionary_DEFINED

#include "SkPdfXObjectDictionary_autogen.h"

// Additional entries specific to an image dictionary
class SkPdfImageDictionary : public SkPdfXObjectDictionary {
public:
public:
   SkPdfImageDictionary* asImageDictionary() {return this;}
   const SkPdfImageDictionary* asImageDictionary() const {return this;}

private:
   SkPdfType1FormDictionary* asType1FormDictionary() {return (SkPdfType1FormDictionary*)this;}
   const SkPdfType1FormDictionary* asType1FormDictionary() const {return (const SkPdfType1FormDictionary*)this;}

public:
   bool valid() const {return true;}
  SkString Type(SkPdfNativeDoc* doc);
  bool has_Type() const;
  SkString Subtype(SkPdfNativeDoc* doc);
  bool has_Subtype() const;
  int64_t Width(SkPdfNativeDoc* doc);
  bool has_Width() const;
  int64_t Height(SkPdfNativeDoc* doc);
  bool has_Height() const;

  bool isColorSpaceAName(SkPdfNativeDoc* doc);
  SkString getColorSpaceAsName(SkPdfNativeDoc* doc);

  bool isColorSpaceAArray(SkPdfNativeDoc* doc);
  SkPdfArray* getColorSpaceAsArray(SkPdfNativeDoc* doc);
  bool has_ColorSpace() const;
  int64_t BitsPerComponent(SkPdfNativeDoc* doc);
  bool has_BitsPerComponent() const;
  SkString Intent(SkPdfNativeDoc* doc);
  bool has_Intent() const;
  bool ImageMask(SkPdfNativeDoc* doc);
  bool has_ImageMask() const;

  bool isMaskAStream(SkPdfNativeDoc* doc);
  SkPdfStream* getMaskAsStream(SkPdfNativeDoc* doc);

  bool isMaskAArray(SkPdfNativeDoc* doc);
  SkPdfArray* getMaskAsArray(SkPdfNativeDoc* doc);
  bool has_Mask() const;
  SkPdfImageDictionary* SMask(SkPdfNativeDoc* doc);
  bool has_SMask() const;
  SkPdfArray* Decode(SkPdfNativeDoc* doc);
  bool has_Decode() const;
  bool Interpolate(SkPdfNativeDoc* doc);
  bool has_Interpolate() const;
  SkPdfArray* Alternates(SkPdfNativeDoc* doc);
  bool has_Alternates() const;
  SkString Name(SkPdfNativeDoc* doc);
  bool has_Name() const;
  int64_t StructParent(SkPdfNativeDoc* doc);
  bool has_StructParent() const;
  SkString ID(SkPdfNativeDoc* doc);
  bool has_ID() const;
  SkPdfDictionary* OPI(SkPdfNativeDoc* doc);
  bool has_OPI() const;
  SkPdfStream* Metadata(SkPdfNativeDoc* doc);
  bool has_Metadata() const;
};

#endif  // SkPdfImageDictionary_DEFINED