aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfStandardStructureDictionary_autogen.cpp
blob: 44ae0111929880c33efc88eb6fc084a031f04384 (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
#include "SkPdfStandardStructureDictionary_autogen.h"


#include "SkPdfNativeDoc.h"
SkString SkPdfStandardStructureDictionary::Placement(SkPdfNativeDoc* doc) {
  SkPdfNativeObject* ret = get("Placement", "");
  if (doc) {ret = doc->resolveReference(ret);}
  if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->nameValue2();
  // TODO(edisonn): warn about missing default value for optional fields
  return SkString();
}

bool SkPdfStandardStructureDictionary::has_Placement() const {
  return get("Placement", "") != NULL;
}

SkString SkPdfStandardStructureDictionary::WritingMode(SkPdfNativeDoc* doc) {
  SkPdfNativeObject* ret = get("WritingMode", "");
  if (doc) {ret = doc->resolveReference(ret);}
  if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->nameValue2();
  // TODO(edisonn): warn about missing default value for optional fields
  return SkString();
}

bool SkPdfStandardStructureDictionary::has_WritingMode() const {
  return get("WritingMode", "") != NULL;
}