Acacia
ia_hyperlink.h
1 #ifndef LIB_IA2_IA_HYPERLINK_H_
2 #define LIB_IA2_IA_HYPERLINK_H_
3 
4 #include <string>
5 
6 #include <wrl/client.h>
7 
8 #include "acacia/export.h"
9 #include "third_party/ia2/include/ia2/ia2_api_all.h"
10 
11 namespace acacia {
12 
20 class ACACIA_EXPORT IAHyperlink {
21  public:
22  IAHyperlink(Microsoft::WRL::ComPtr<IAccessibleHyperlink> iface)
23  : iface_(iface) {}
24  ~IAHyperlink(){};
25 
31  bool isNull() { return !iface_; }
32 
38  std::string toString();
39 
45  long getStartIndex();
46 
52  long getEndIndex();
53 
61  std::string getAnchorTarget(long index);
62 
63  private:
64  Microsoft::WRL::ComPtr<IAccessibleHyperlink> iface_;
65 };
66 
67 } // namespace acacia
68 
69 #endif // LIB_IA2_IA_HYPERLINK_H_
bool isNull()
Definition: ia_hyperlink.h:31
std::string getAnchorTarget(long index)
std::string toString()