Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: experimental/PdfViewer/SkPdfAppearanceCharacteristicsDictionary_autogen.h

Issue 17294008: load font manually, for now Type0 (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #ifndef __DEFINED__SkPdfAppearanceCharacteristicsDictionary 1 #ifndef __DEFINED__SkPdfAppearanceCharacteristicsDictionary
2 #define __DEFINED__SkPdfAppearanceCharacteristicsDictionary 2 #define __DEFINED__SkPdfAppearanceCharacteristicsDictionary
3 3
4 #include "SkPdfEnums_autogen.h" 4 #include "SkPdfEnums_autogen.h"
5 #include "SkPdfArray_autogen.h" 5 #include "SkPdfArray_autogen.h"
6 #include "SkPdfDictionary_autogen.h" 6 #include "SkPdfDictionary_autogen.h"
7 7
8 // Entries in an appearance characteristics dictionary 8 // Entries in an appearance characteristics dictionary
9 class SkPdfAppearanceCharacteristicsDictionary : public SkPdfDictionary { 9 class SkPdfAppearanceCharacteristicsDictionary : public SkPdfDictionary {
10 public: 10 public:
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NU LL;} 156 virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NU LL;}
157 virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() cons t {return NULL;} 157 virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() cons t {return NULL;}
158 158
159 virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} 159 virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
160 virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} 160 virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
161 161
162 virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} 162 virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
163 virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL ;} 163 virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL ;}
164 164
165 virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
166 virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {r eturn NULL;}
167
168 virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} 165 virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
169 virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} 166 virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
170 167
168 virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
169 virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
170
171 virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} 171 virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
172 virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} 172 virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
173 173
174 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} 174 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
175 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co nst {return NULL;} 175 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co nst {return NULL;}
176 176
177 virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} 177 virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
178 virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} 178 virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {r eturn NULL;}
179 179
180 virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {retur n NULL;} 180 virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {retur n NULL;}
181 virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} 181 virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
182 182
183 virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {r eturn NULL;} 183 virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {r eturn NULL;}
184 virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionar y() const {return NULL;} 184 virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionar y() const {return NULL;}
185 185
186 virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NU LL;} 186 virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NU LL;}
187 virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() cons t {return NULL;} 187 virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() cons t {return NULL;}
188 188
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 } 619 }
620 620
621 /** (Optional; pushbutton fields only; must be an indirect reference) A form XOb ject 621 /** (Optional; pushbutton fields only; must be an indirect reference) A form XOb ject
622 * defining the widget annotation's normal icon, displayed when it is not inter - 622 * defining the widget annotation's normal icon, displayed when it is not inter -
623 * acting with the user. 623 * acting with the user.
624 **/ 624 **/
625 bool has_I() const { 625 bool has_I() const {
626 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", " ", NULL)); 626 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", " ", NULL));
627 } 627 }
628 628
629 SkPdfStream I() const { 629 SkPdfStream* I() const {
630 SkPdfStream ret; 630 SkPdfStream* ret;
631 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "", & ret)) return ret; 631 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "", & ret)) return ret;
632 // TODO(edisonn): warn about missing required field, assert for known good p dfs 632 // TODO(edisonn): warn about missing required field, assert for known good p dfs
633 return SkPdfStream(); 633 return NULL;
634 } 634 }
635 635
636 /** (Optional; pushbutton fields only; must be an indirect reference) A form XOb ject 636 /** (Optional; pushbutton fields only; must be an indirect reference) A form XOb ject
637 * defining the widget annotation's rollover icon, displayed when the user roll s the 637 * defining the widget annotation's rollover icon, displayed when the user roll s the
638 * cursor into its active area without pressing the mouse button. 638 * cursor into its active area without pressing the mouse button.
639 **/ 639 **/
640 bool has_RI() const { 640 bool has_RI() const {
641 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI", "", NULL)); 641 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI", "", NULL));
642 } 642 }
643 643
644 SkPdfStream RI() const { 644 SkPdfStream* RI() const {
645 SkPdfStream ret; 645 SkPdfStream* ret;
646 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI", "", &ret)) return ret; 646 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI", "", &ret)) return ret;
647 // TODO(edisonn): warn about missing required field, assert for known good p dfs 647 // TODO(edisonn): warn about missing required field, assert for known good p dfs
648 return SkPdfStream(); 648 return NULL;
649 } 649 }
650 650
651 /** (Optional; pushbutton fields only; must be an indirect reference) A form XOb ject 651 /** (Optional; pushbutton fields only; must be an indirect reference) A form XOb ject
652 * defining the widget annotation's alternate (down) icon, displayed when the 652 * defining the widget annotation's alternate (down) icon, displayed when the
653 * mouse button is pressed within its active area. 653 * mouse button is pressed within its active area.
654 **/ 654 **/
655 bool has_IX() const { 655 bool has_IX() const {
656 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IX", "", NULL)); 656 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IX", "", NULL));
657 } 657 }
658 658
659 SkPdfStream IX() const { 659 SkPdfStream* IX() const {
660 SkPdfStream ret; 660 SkPdfStream* ret;
661 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IX", "", &ret)) return ret; 661 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IX", "", &ret)) return ret;
662 // TODO(edisonn): warn about missing required field, assert for known good p dfs 662 // TODO(edisonn): warn about missing required field, assert for known good p dfs
663 return SkPdfStream(); 663 return NULL;
664 } 664 }
665 665
666 /** (Optional; pushbutton fields only) An icon fit dictionary (see Table 8.73 on page 666 /** (Optional; pushbutton fields only) An icon fit dictionary (see Table 8.73 on page
667 * 566) specifying how to display the widget annotation's icon within its 667 * 566) specifying how to display the widget annotation's icon within its
668 * annotation rectangle. If present, the icon fit dictionary applies to all of the anno- 668 * annotation rectangle. If present, the icon fit dictionary applies to all of the anno-
669 * tation's icons (normal, rollover, and alternate). 669 * tation's icons (normal, rollover, and alternate).
670 **/ 670 **/
671 bool has_IF() const { 671 bool has_IF() const {
672 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IF", "", NULL)); 672 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IF", "", NULL));
673 } 673 }
(...skipping 23 matching lines...) Expand all
697 long TP() const { 697 long TP() const {
698 long ret; 698 long ret;
699 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TP", "", &r et)) return ret; 699 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TP", "", &r et)) return ret;
700 // TODO(edisonn): warn about missing required field, assert for known good p dfs 700 // TODO(edisonn): warn about missing required field, assert for known good p dfs
701 return 0; 701 return 0;
702 } 702 }
703 703
704 }; 704 };
705 705
706 #endif // __DEFINED__SkPdfAppearanceCharacteristicsDictionary 706 #endif // __DEFINED__SkPdfAppearanceCharacteristicsDictionary
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfAnnotationDictionary_autogen.h ('k') | experimental/PdfViewer/SkPdfAppearanceDictionary_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698