1/*
2 * Copyright 2013 Google Inc.
3
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "SkPdfDocumentCatalogActionsDictionary_autogen.h"
9#include "SkPdfNativeDoc.h"
10
11SkPdfDictionary* SkPdfDocumentCatalogActionsDictionary::DC(SkPdfNativeDoc* doc) {
12  SkPdfNativeObject* ret = get("DC", "");
13  if (doc) {ret = doc->resolveReference(ret);}
14  if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfDictionary*)ret;
15  // TODO(edisonn): warn about missing default value for optional fields
16  return NULL;
17}
18
19bool SkPdfDocumentCatalogActionsDictionary::has_DC() const {
20  return get("DC", "") != NULL;
21}
22
23SkPdfDictionary* SkPdfDocumentCatalogActionsDictionary::WS(SkPdfNativeDoc* doc) {
24  SkPdfNativeObject* ret = get("WS", "");
25  if (doc) {ret = doc->resolveReference(ret);}
26  if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfDictionary*)ret;
27  // TODO(edisonn): warn about missing default value for optional fields
28  return NULL;
29}
30
31bool SkPdfDocumentCatalogActionsDictionary::has_WS() const {
32  return get("WS", "") != NULL;
33}
34
35SkPdfDictionary* SkPdfDocumentCatalogActionsDictionary::DS(SkPdfNativeDoc* doc) {
36  SkPdfNativeObject* ret = get("DS", "");
37  if (doc) {ret = doc->resolveReference(ret);}
38  if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfDictionary*)ret;
39  // TODO(edisonn): warn about missing default value for optional fields
40  return NULL;
41}
42
43bool SkPdfDocumentCatalogActionsDictionary::has_DS() const {
44  return get("DS", "") != NULL;
45}
46
47SkPdfDictionary* SkPdfDocumentCatalogActionsDictionary::WP(SkPdfNativeDoc* doc) {
48  SkPdfNativeObject* ret = get("WP", "");
49  if (doc) {ret = doc->resolveReference(ret);}
50  if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfDictionary*)ret;
51  // TODO(edisonn): warn about missing default value for optional fields
52  return NULL;
53}
54
55bool SkPdfDocumentCatalogActionsDictionary::has_WP() const {
56  return get("WP", "") != NULL;
57}
58
59SkPdfDictionary* SkPdfDocumentCatalogActionsDictionary::DP(SkPdfNativeDoc* doc) {
60  SkPdfNativeObject* ret = get("DP", "");
61  if (doc) {ret = doc->resolveReference(ret);}
62  if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfDictionary*)ret;
63  // TODO(edisonn): warn about missing default value for optional fields
64  return NULL;
65}
66
67bool SkPdfDocumentCatalogActionsDictionary::has_DP() const {
68  return get("DP", "") != NULL;
69}
70