| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfURIDictionary | 1 #ifndef __DEFINED__SkPdfURIDictionary |
| 2 #define __DEFINED__SkPdfURIDictionary | 2 #define __DEFINED__SkPdfURIDictionary |
| 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 // Entry in a URI dictionary | 9 // Entry in a URI dictionary |
| 10 class SkPdfURIDictionary : public SkPdfDictionary { | 10 class SkPdfURIDictionary : public SkPdfDictionary { |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 * within the document may specify URIs in partial form, to be interpreted rela
tive to | 529 * within the document may specify URIs in partial form, to be interpreted rela
tive to |
| 530 * this base address. If no base URI is specified, such partial URIs will be in
terpreted rel- | 530 * this base address. If no base URI is specified, such partial URIs will be in
terpreted rel- |
| 531 * ative to the location of the document itself. The use of this entry is paral
lel to that of | 531 * ative to the location of the document itself. The use of this entry is paral
lel to that of |
| 532 * the body element <BASE>, as described in section 2.7.2 of Internet RFC 1866,
Hyper- | 532 * the body element <BASE>, as described in section 2.7.2 of Internet RFC 1866,
Hyper- |
| 533 * text Markup Language 2.0 Proposed Standard (see the Bibliography). | 533 * text Markup Language 2.0 Proposed Standard (see the Bibliography). |
| 534 **/ | 534 **/ |
| 535 bool has_Base() const { | 535 bool has_Base() const { |
| 536 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Base"
, "", NULL)); | 536 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Base"
, "", NULL)); |
| 537 } | 537 } |
| 538 | 538 |
| 539 std::string Base() const { | 539 std::string Base() const; |
| 540 std::string ret; | |
| 541 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Base", ""
, &ret)) return ret; | |
| 542 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 543 return ""; | |
| 544 } | |
| 545 | |
| 546 }; | 540 }; |
| 547 | 541 |
| 548 #endif // __DEFINED__SkPdfURIDictionary | 542 #endif // __DEFINED__SkPdfURIDictionary |
| OLD | NEW |