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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfCIDSystemInfoDictionary_autogen.h

Issue 17856004: refactoring for pdf viewer lib (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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__SkPdfCIDSystemInfoDictionary 1 #ifndef __DEFINED__SkPdfCIDSystemInfoDictionary
2 #define __DEFINED__SkPdfCIDSystemInfoDictionary 2 #define __DEFINED__SkPdfCIDSystemInfoDictionary
3 3
4 #include "SkPdfUtils.h" 4 #include "SkPdfUtils.h"
5 #include "SkPdfEnums_autogen.h" 5 #include "SkPdfEnums_autogen.h"
6 #include "SkPdfArray_autogen.h" 6 #include "SkPdfArray_autogen.h"
7 #include "SkPdfDictionary_autogen.h" 7 #include "SkPdfDictionary_autogen.h"
8 8
9 // Entries in a CIDSystemInfo dictionary 9 // Entries in a CIDSystemInfo dictionary
10 class SkPdfCIDSystemInfoDictionary : public SkPdfDictionary { 10 class SkPdfCIDSystemInfoDictionary : public SkPdfDictionary {
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 527
528 /** (Required) A string identifying the issuer of the character collection-for e xam- 528 /** (Required) A string identifying the issuer of the character collection-for e xam-
529 * ple, Adobe. For information about assigning a registry identifier, consult t he ASN 529 * ple, Adobe. For information about assigning a registry identifier, consult t he ASN
530 * Developer Program Web site or contact the Adobe Solutions Network (see the 530 * Developer Program Web site or contact the Adobe Solutions Network (see the
531 * Bibliography). 531 * Bibliography).
532 **/ 532 **/
533 bool has_Registry() const { 533 bool has_Registry() const {
534 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Regis try", "", NULL)); 534 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Regis try", "", NULL));
535 } 535 }
536 536
537 std::string Registry() const { 537 std::string Registry() const;
538 std::string ret;
539 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Registry" , "", &ret)) return ret;
540 // TODO(edisonn): warn about missing required field, assert for known good p dfs
541 return "";
542 }
543
544 /** (Required) A string that uniquely names the character collection within the speci- 538 /** (Required) A string that uniquely names the character collection within the speci-
545 * fied registry-for example, Japan1. 539 * fied registry-for example, Japan1.
546 **/ 540 **/
547 bool has_Ordering() const { 541 bool has_Ordering() const {
548 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Order ing", "", NULL)); 542 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Order ing", "", NULL));
549 } 543 }
550 544
551 std::string Ordering() const { 545 std::string Ordering() const;
552 std::string ret;
553 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ordering" , "", &ret)) return ret;
554 // TODO(edisonn): warn about missing required field, assert for known good p dfs
555 return "";
556 }
557
558 /** (Required) The supplement number of the character collection. An original ch arac- 546 /** (Required) The supplement number of the character collection. An original ch arac-
559 * ter collection has a supplement number of 0. Whenever additional CIDs are 547 * ter collection has a supplement number of 0. Whenever additional CIDs are
560 * assigned in a character collection, the supplement number is increased. Supp le- 548 * assigned in a character collection, the supplement number is increased. Supp le-
561 * ments do not alter the ordering of existing CIDs in the character collection . This 549 * ments do not alter the ordering of existing CIDs in the character collection . This
562 * value is not used in determining compatibility between character collections . 550 * value is not used in determining compatibility between character collections .
563 **/ 551 **/
564 bool has_Supplement() const { 552 bool has_Supplement() const {
565 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Suppl ement", "", NULL)); 553 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Suppl ement", "", NULL));
566 } 554 }
567 555
568 long Supplement() const { 556 long Supplement() const;
569 long ret;
570 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Supplement" , "", &ret)) return ret;
571 // TODO(edisonn): warn about missing required field, assert for known good p dfs
572 return 0;
573 }
574
575 }; 557 };
576 558
577 #endif // __DEFINED__SkPdfCIDSystemInfoDictionary 559 #endif // __DEFINED__SkPdfCIDSystemInfoDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698