Index: experimental/PdfViewer/autogen/SkPdfCatalogDictionary_autogen.cpp |
=================================================================== |
--- experimental/PdfViewer/autogen/SkPdfCatalogDictionary_autogen.cpp (revision 9812) |
+++ experimental/PdfViewer/autogen/SkPdfCatalogDictionary_autogen.cpp (working copy) |
@@ -1,162 +0,0 @@ |
-#include "SkPdfCatalogDictionary_autogen.h" |
- |
-std::string SkPdfCatalogDictionary::Type() const { |
- std::string ret; |
- if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return ""; |
-} |
- |
-std::string SkPdfCatalogDictionary::Version() const { |
- std::string ret; |
- if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Version", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return ""; |
-} |
- |
-SkPdfDictionary* SkPdfCatalogDictionary::Pages() const { |
- SkPdfDictionary* ret; |
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-double SkPdfCatalogDictionary::getPageLabelsAsNumber() const { |
- double ret = 0; |
- if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLabels", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
-} |
- |
-SkPdfTree* SkPdfCatalogDictionary::getPageLabelsAsTree() const { |
- SkPdfTree* ret = NULL; |
- if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLabels", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-SkPdfDictionary* SkPdfCatalogDictionary::Names() const { |
- SkPdfDictionary* ret; |
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Names", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-SkPdfDictionary* SkPdfCatalogDictionary::Dests() const { |
- SkPdfDictionary* ret; |
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dests", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-SkPdfDictionary* SkPdfCatalogDictionary::ViewerPreferences() const { |
- SkPdfDictionary* ret; |
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ViewerPreferences", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-std::string SkPdfCatalogDictionary::PageLayout() const { |
- std::string ret; |
- if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLayout", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return ""; |
-} |
- |
-std::string SkPdfCatalogDictionary::PageMode() const { |
- std::string ret; |
- if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageMode", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return ""; |
-} |
- |
-SkPdfDictionary* SkPdfCatalogDictionary::Outlines() const { |
- SkPdfDictionary* ret; |
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Outlines", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-SkPdfArray* SkPdfCatalogDictionary::Threads() const { |
- SkPdfArray* ret; |
- if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Threads", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-SkPdfArray* SkPdfCatalogDictionary::getOpenActionAsArray() const { |
- SkPdfArray* ret = NULL; |
- if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OpenAction", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-SkPdfDictionary* SkPdfCatalogDictionary::getOpenActionAsDictionary() const { |
- SkPdfDictionary* ret = NULL; |
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OpenAction", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-SkPdfDictionary* SkPdfCatalogDictionary::AA() const { |
- SkPdfDictionary* ret; |
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-SkPdfDictionary* SkPdfCatalogDictionary::URI() const { |
- SkPdfDictionary* ret; |
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URI", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-SkPdfDictionary* SkPdfCatalogDictionary::AcroForm() const { |
- SkPdfDictionary* ret; |
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AcroForm", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-SkPdfStream* SkPdfCatalogDictionary::Metadata() const { |
- SkPdfStream* ret; |
- if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-SkPdfDictionary* SkPdfCatalogDictionary::StructTreeRoot() const { |
- SkPdfDictionary* ret; |
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructTreeRoot", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-SkPdfDictionary* SkPdfCatalogDictionary::MarkInfo() const { |
- SkPdfDictionary* ret; |
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MarkInfo", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-std::string SkPdfCatalogDictionary::Lang() const { |
- std::string ret; |
- if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Lang", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return ""; |
-} |
- |
-SkPdfDictionary* SkPdfCatalogDictionary::SpiderInfo() const { |
- SkPdfDictionary* ret; |
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpiderInfo", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-SkPdfArray* SkPdfCatalogDictionary::OutputIntents() const { |
- SkPdfArray* ret; |
- if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OutputIntents", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |