![]() |
00001 //--------------------------------------------------------------------------------------- 00002 // Copyright (c) 2001-2010 by PDFTron Systems Inc. All Rights Reserved. 00003 // Consult legal.txt regarding legal and license information. 00004 //--------------------------------------------------------------------------------------- 00005 00006 #ifndef H_PDFTRON_PDF_CPPWRAP_CARET 00007 #define H_PDFTRON_PDF_CPPWRAP_CARET 00008 00009 #include <PDF/Annots/Markup.h> 00010 00011 namespace pdftron { 00012 namespace PDF { 00013 namespace Annots { 00018 class Caret : public Markup 00019 { 00020 public: 00021 00027 Caret(SDF::Obj d = 0); 00028 00034 Caret(const Annot& ann) : Markup(ann.GetSDFObj()) {} 00035 00044 static Caret Create(SDF::SDFDoc& doc, const Rect& pos); 00045 00059 static Caret Create(SDF::SDFDoc& doc, const Rect& pos, Rect padding); 00060 00068 const char* GetSymbol() const; 00069 00076 void SetSymbol(const char* symbol); 00077 00079 Caret(TRN_Annot caret); 00081 }; 00082 00083 00084 };//namespace Annot 00085 };//namespace PDF 00086 };//namespace pdftron 00087 00088 #include <Impl/Page.inl> 00089 #endif