diff options
Diffstat (limited to 'experimental/PdfViewer/pdfparser/podofo/autogen/SkPdfViewerPreferencesDictionary_autogen.cpp')
-rw-r--r-- | experimental/PdfViewer/pdfparser/podofo/autogen/SkPdfViewerPreferencesDictionary_autogen.cpp | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/experimental/PdfViewer/pdfparser/podofo/autogen/SkPdfViewerPreferencesDictionary_autogen.cpp b/experimental/PdfViewer/pdfparser/podofo/autogen/SkPdfViewerPreferencesDictionary_autogen.cpp new file mode 100644 index 0000000000..33a35c5807 --- /dev/null +++ b/experimental/PdfViewer/pdfparser/podofo/autogen/SkPdfViewerPreferencesDictionary_autogen.cpp @@ -0,0 +1,85 @@ +#include "SkPdfViewerPreferencesDictionary_autogen.h" + +bool SkPdfViewerPreferencesDictionary::HideToolbar() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideToolbar", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; +} + +bool SkPdfViewerPreferencesDictionary::HideMenubar() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideMenubar", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; +} + +bool SkPdfViewerPreferencesDictionary::HideWindowUI() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideWindowUI", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; +} + +bool SkPdfViewerPreferencesDictionary::FitWindow() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FitWindow", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; +} + +bool SkPdfViewerPreferencesDictionary::CenterWindow() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CenterWindow", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; +} + +bool SkPdfViewerPreferencesDictionary::DisplayDocTitle() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DisplayDocTitle", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; +} + +std::string SkPdfViewerPreferencesDictionary::NonFullScreenPageMode() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "NonFullScreenPageMode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; +} + +std::string SkPdfViewerPreferencesDictionary::Direction() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Direction", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; +} + +std::string SkPdfViewerPreferencesDictionary::ViewArea() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ViewArea", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; +} + +std::string SkPdfViewerPreferencesDictionary::ViewClip() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ViewClip", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; +} + +std::string SkPdfViewerPreferencesDictionary::PrintArea() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PrintArea", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; +} + +std::string SkPdfViewerPreferencesDictionary::PrintClip() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PrintClip", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; +} |