| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfTableAttributesDictionary | 1 #ifndef __DEFINED__SkPdfTableAttributesDictionary |
| 2 #define __DEFINED__SkPdfTableAttributesDictionary | 2 #define __DEFINED__SkPdfTableAttributesDictionary |
| 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 // Standard table attributes | 9 // Standard table attributes |
| 10 class SkPdfTableAttributesDictionary : public SkPdfDictionary { | 10 class SkPdfTableAttributesDictionary : public SkPdfDictionary { |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 SkPdfTableAttributesDictionary& operator=(const SkPdfTableAttributesDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} | 526 SkPdfTableAttributesDictionary& operator=(const SkPdfTableAttributesDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} |
| 527 | 527 |
| 528 /** (Optional) The number of rows in the enclosing table that are spanned by the | 528 /** (Optional) The number of rows in the enclosing table that are spanned by the |
| 529 * cell. The cell expands by adding rows in the block-progression direction spe
ci- | 529 * cell. The cell expands by adding rows in the block-progression direction spe
ci- |
| 530 * fied by the table's WritingMode attribute. Default value: 1. | 530 * fied by the table's WritingMode attribute. Default value: 1. |
| 531 **/ | 531 **/ |
| 532 bool has_RowSpan() const { | 532 bool has_RowSpan() const { |
| 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RowSp
an", "", NULL)); | 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RowSp
an", "", NULL)); |
| 534 } | 534 } |
| 535 | 535 |
| 536 long RowSpan() const { | 536 long RowSpan() const; |
| 537 long ret; | |
| 538 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RowSpan", "
", &ret)) return ret; | |
| 539 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 540 return 0; | |
| 541 } | |
| 542 | |
| 543 /** (Optional) The number of columns in the enclosing table that are spanned by | 537 /** (Optional) The number of columns in the enclosing table that are spanned by |
| 544 * the cell. The cell expands by adding columns in the inline-progression direc
tion | 538 * the cell. The cell expands by adding columns in the inline-progression direc
tion |
| 545 * specified by the table's WritingMode attribute. Default value: 1. | 539 * specified by the table's WritingMode attribute. Default value: 1. |
| 546 **/ | 540 **/ |
| 547 bool has_ColSpan() const { | 541 bool has_ColSpan() const { |
| 548 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColSp
an", "", NULL)); | 542 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColSp
an", "", NULL)); |
| 549 } | 543 } |
| 550 | 544 |
| 551 long ColSpan() const { | 545 long ColSpan() const; |
| 552 long ret; | |
| 553 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColSpan", "
", &ret)) return ret; | |
| 554 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 555 return 0; | |
| 556 } | |
| 557 | |
| 558 }; | 546 }; |
| 559 | 547 |
| 560 #endif // __DEFINED__SkPdfTableAttributesDictionary | 548 #endif // __DEFINED__SkPdfTableAttributesDictionary |
| OLD | NEW |