![]() |
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_CPPPDFStructSElement 00007 #define H_CPPPDFStructSElement 00008 00009 00010 namespace pdftron { 00011 namespace PDF { 00012 namespace Struct { 00013 00022 class SElement 00023 { 00024 public: 00025 00034 SElement (SDF::Obj dict = SDF::Obj(0)); 00035 00036 SElement (const SElement&); 00037 SElement& operator= (const SElement&); 00038 00042 bool IsValid() const; 00043 00051 const char* GetType() const; 00052 00056 int GetNumKids() const; 00057 00066 bool IsContentItem(int index) const; 00067 00074 class ContentItem GetAsContentItem(int index) const; 00075 00082 SElement GetAsStructElem(int index) const; 00083 00092 SElement GetParent() const; 00093 00098 class STree GetStructTreeRoot() const; 00099 00106 bool HasTitle() const; 00107 00111 UString GetTitle() const; 00112 00116 SDF::Obj GetID() const; 00117 00125 bool HasActualText() const; 00126 00134 UString GetActualText() const; 00135 00143 bool HasAlt() const; 00144 00152 UString GetAlt() const; 00153 00157 SDF::Obj GetSDFObj() const; 00158 00159 00161 SElement(TRN_SElement impl); 00162 TRN_SElement mp_elem; 00164 }; 00165 00166 00167 00168 }; // namespace Struct 00169 }; // namespace PDF 00170 }; // namespace pdftron 00171 00172 #include <Impl/STree.inl> 00173 #endif 00174