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

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

Issue 17748002: Basic support for Type3 Fonts in Pdf + various refactorings (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
(Empty)
1 #ifndef __DEFINED__SkPdfHexString
2 #define __DEFINED__SkPdfHexString
3
4 #include "SkPdfUtils.h"
5 #include "SkPdfEnums_autogen.h"
6 #include "SkPdfArray_autogen.h"
7 #include "SkPdfString_autogen.h"
8
9 class SkPdfHexString : public SkPdfString {
10 public:
11 virtual SkPdfObjectType getType() const { return kHexString_SkPdfObjectType;}
12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kHexStri ng_SkPdfObjectType + 1);}
13 public:
14 virtual SkPdfHexString* asHexString() {return this;}
15 virtual const SkPdfHexString* asHexString() const {return this;}
16
17 private:
18 public:
19 const std::string& value() const {return fPodofoObj->GetString().GetStringUtf8 ();}
20 private:
21 public:
22 SkPdfHexString(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofo Obj = NULL) : SkPdfString(podofoDoc, podofoObj) {}
23
24 SkPdfHexString(const SkPdfHexString& from) : SkPdfString(from.fPodofoDoc, from .fPodofoObj) {}
25
26 virtual bool valid() const {return true;}
27
28 SkPdfHexString& operator=(const SkPdfHexString& from) {this->fPodofoDoc = from .fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
29
30 };
31
32 #endif // __DEFINED__SkPdfHexString
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698