![]() |
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_SOUND 00007 #define H_PDFTRON_PDF_CPPWRAP_SOUND 00008 00009 #include <PDF/Annots/Markup.h> 00010 00011 namespace pdftron { 00012 namespace PDF { 00013 namespace Annots { 00021 class Sound : public Markup 00022 { 00023 public: 00027 enum Icon 00028 { 00029 e_Speaker, 00030 e_Mic, 00031 e_Unknown 00032 }; 00033 00039 Sound(SDF::Obj d = 0); 00040 00046 Sound(const Annot& ann) : Markup(ann.GetSDFObj()) {} 00047 00056 static Sound Create(SDF::SDFDoc& doc, const Rect& pos, Icon icon = e_Speaker ); 00057 00066 static Sound Create(SDF::SDFDoc& doc, const Point& pos, Icon icon = e_Speaker ); 00067 00075 SDF::Obj GetSoundStream() const; 00076 00084 void SetSoundStream(SDF::Obj sound_stream); 00085 00095 Icon GetIcon() const; 00096 00107 void SetIcon(Icon type=e_Speaker); 00108 00123 const char* GetIconName() const; 00124 00140 void SetIcon(const char* type); 00141 00143 Sound(TRN_Annot sound); 00145 00146 }; //class Sound 00147 }; //namespace Annot 00148 }; //namespace PDF 00149 }; //namespace pdftron 00150 #include <Impl/Page.inl> 00151 #endif