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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfTableAttributesDictionary_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__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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698