OLD | NEW |
1 #ifndef __DEFINED__SkPdfTableAttributesDictionary | 1 #ifndef __DEFINED__SkPdfTableAttributesDictionary |
2 #define __DEFINED__SkPdfTableAttributesDictionary | 2 #define __DEFINED__SkPdfTableAttributesDictionary |
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 // Standard table attributes |
8 class SkPdfTableAttributesDictionary : public SkPdfDictionary { | 9 class SkPdfTableAttributesDictionary : public SkPdfDictionary { |
9 public: | 10 public: |
10 virtual SkPdfObjectType getType() const { return kTableAttributesDictionary_Sk
PdfObjectType;} | 11 virtual SkPdfObjectType getType() const { return kTableAttributesDictionary_Sk
PdfObjectType;} |
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kTableAt
tributesDictionary_SkPdfObjectType + 1);} | 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kTableAt
tributesDictionary_SkPdfObjectType + 1);} |
12 public: | 13 public: |
13 virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return
this;} | 14 virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return
this;} |
14 virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() co
nst {return this;} | 15 virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() co
nst {return this;} |
15 | 16 |
16 private: | 17 private: |
17 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return
NULL;} | 18 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return
NULL;} |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 | 515 |
515 public: | 516 public: |
516 private: | 517 private: |
517 public: | 518 public: |
518 SkPdfTableAttributesDictionary(const PdfMemDocument* podofoDoc = NULL, const P
dfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} | 519 SkPdfTableAttributesDictionary(const PdfMemDocument* podofoDoc = NULL, const P
dfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} |
519 | 520 |
520 virtual bool valid() const {return true;} | 521 virtual bool valid() const {return true;} |
521 | 522 |
522 SkPdfTableAttributesDictionary& operator=(const SkPdfTableAttributesDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} | 523 SkPdfTableAttributesDictionary& operator=(const SkPdfTableAttributesDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} |
523 | 524 |
| 525 /** (Optional) The number of rows in the enclosing table that are spanned by the |
| 526 * cell. The cell expands by adding rows in the block-progression direction spe
ci- |
| 527 * fied by the table's WritingMode attribute. Default value: 1. |
| 528 **/ |
| 529 bool has_RowSpan() const { |
| 530 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RowSp
an", "", NULL)); |
| 531 } |
| 532 |
524 long RowSpan() const { | 533 long RowSpan() const { |
525 long ret; | 534 long ret; |
526 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RowSpan", "
", &ret)) return ret; | 535 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RowSpan", "
", &ret)) return ret; |
527 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 536 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
528 return 0; | 537 return 0; |
529 } | 538 } |
530 | 539 |
| 540 /** (Optional) The number of columns in the enclosing table that are spanned by |
| 541 * the cell. The cell expands by adding columns in the inline-progression direc
tion |
| 542 * specified by the table's WritingMode attribute. Default value: 1. |
| 543 **/ |
| 544 bool has_ColSpan() const { |
| 545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColSp
an", "", NULL)); |
| 546 } |
| 547 |
531 long ColSpan() const { | 548 long ColSpan() const { |
532 long ret; | 549 long ret; |
533 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColSpan", "
", &ret)) return ret; | 550 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColSpan", "
", &ret)) return ret; |
534 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 551 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
535 return 0; | 552 return 0; |
536 } | 553 } |
537 | 554 |
538 }; | 555 }; |
539 | 556 |
540 #endif // __DEFINED__SkPdfTableAttributesDictionary | 557 #endif // __DEFINED__SkPdfTableAttributesDictionary |
OLD | NEW |