![]() |
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_CPPPDFStructContentItem 00007 #define H_CPPPDFStructContentItem 00008 00009 #include <PDF/Page.h> 00010 00011 namespace pdftron { 00012 namespace PDF { 00013 namespace Struct { 00014 00021 class ContentItem 00022 { 00023 public: 00027 ContentItem(const ContentItem&); 00028 ContentItem& operator= (const ContentItem&); 00029 00030 enum Type 00031 { 00032 e_MCR, 00033 e_MCID, 00034 e_OBJR, 00035 e_Unknown 00036 }; 00037 00041 Type GetType() const; 00042 00046 class SElement GetParent(); 00047 00053 Page GetPage(); 00054 00058 SDF::Obj GetSDFObj () const; 00059 00060 // Type specific methods ----------------------------- 00061 00067 int GetMCID() const; 00068 00077 SDF::Obj GetContainingStm() const; 00078 00086 SDF::Obj GetStmOwner() const; 00087 00092 SDF::Obj GetRefObj() const; 00093 00095 ContentItem(TRN_ContentItem impl); 00096 TRN_ContentItem mp_item; 00098 }; 00099 00100 00101 }; // namespace Struct 00102 }; // namespace PDF 00103 }; // namespace pdftron 00104 00105 00106 #include <Impl/STree.inl> 00107 #endif 00108