All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Sound.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2018 by PDFTron Systems Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPPDFAnnotsSound
6 #define PDFTRON_H_CPPPDFAnnotsSound
7 
8 #include <PDF/Annots/Markup.h>
9 
10 namespace pdftron {
11  namespace PDF {
12  namespace Annots {
20 class Sound : public Markup
21 {
22  public:
26  enum Icon
27  {
31  };
32 
39  Sound(SDF::Obj d = 0);
40 
47  Sound(const Annot& ann) : Markup(ann.GetSDFObj()) {}
48 
57  static Sound Create(SDF::SDFDoc& doc, const Rect& pos, Icon icon = e_Speaker );
58 
67  static Sound Create(SDF::SDFDoc& doc, const Point& pos, Icon icon = e_Speaker );
68 
76  SDF::Obj GetSoundStream() const;
77 
85  void SetSoundStream(SDF::Obj icon);
86 
96  Icon GetIcon() const;
97 
108  void SetIcon(Icon type=e_Speaker);
109 
124  const char* GetIconName() const;
125 
141  void SetIcon(const char* type);
142 
144 #ifndef SWIGHIDDEN
145 Sound(TRN_Annot sound);
146 #endif
147 
149 }; //class Sound
150  }; //namespace Annot
151  }; //namespace PDF
152 }; //namespace pdftron
153 #include <Impl/Page.inl>
154 
155 #endif // PDFTRON_H_CPPPDFAnnotsSound
SDF::Obj GetSDFObj() const
Sound(const Annot &ann)
Definition: Sound.h:47
const char * GetIconName() const
Invalid or non-standard.
Definition: Sound.h:30
SDF::Obj GetSoundStream() const
static Sound Create(SDF::SDFDoc &doc, const Rect &pos, Icon icon=e_Speaker)
void SetSoundStream(SDF::Obj icon)
void SetIcon(Icon type=e_Speaker)

© 2002-2014 PDFTron Systems Inc.