Loading...
Searching...
No Matches
TextRange.h
Go to the documentation of this file.
1//---------------------------------------------------------------------------------------
2// Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3// Consult legal.txt regarding legal and license information.
4//---------------------------------------------------------------------------------------
5#ifndef PDFTRON_H_CPPTextRange
6#define PDFTRON_H_CPPTextRange
7
8#include <Common/UString.h>
9#include <C/PDF/TRN_TextRange.h>
10
11 namespace pdftron {
12 namespace PDF {
13
28 class TextRange
29{
30 public:
31
35 TextRange();
36 ~TextRange();
40 TextRange(const TextRange& tr);
41
45 TextRange& operator = (const TextRange& tr);
46
50 int GetPageNumber() const;
51
63 std::vector<QuadPoint> GetQuads() const;
64
65#ifndef SWIG
66 int GetQuads(const double* &quads) const;
67#endif
68
73 UString GetText() const;
74
80 UString GetTextBefore(int count) const;
81
87 UString GetTextAfter(int count) const;
88
92 void Destroy();
93
94
95 //for xamarin use only
96 static TextRange* CreateInternal(ptrdiff_t impl);
97 ptrdiff_t GetHandleInternal();
98
99#ifndef SWIGHIDDEN
100
101//private:
102 TRN_TextRange mp_textrange;
103 //for xamarin use only
104 TextRange(TRN_TextRange impl) : mp_textrange(impl) {}
105#endif
106};
107
108
109#include <Impl/TextRange.inl>
110
111 } // namespace PDF
112} // namespace pdftron
113
114#endif // PDFTRON_H_CPPTextRange
UString.h
pdftron::PDF::TextRange::GetQuads
int GetQuads(const double *&quads) const
pdftron::PDF::TextRange::~TextRange
~TextRange()
pdftron::PDF::TextRange::TextRange
TextRange(const TextRange &tr)
pdftron::PDF::TextRange::TextRange
TextRange(TRN_TextRange impl)
Definition TextRange.h:104
pdftron::PDF::TextRange::GetTextAfter
UString GetTextAfter(int count) const
pdftron::PDF::TextRange::GetQuads
std::vector< QuadPoint > GetQuads() const
pdftron::PDF::TextRange::mp_textrange
TRN_TextRange mp_textrange
Definition TextRange.h:102
pdftron::PDF::TextRange::GetPageNumber
int GetPageNumber() const
pdftron::PDF::TextRange::CreateInternal
static TextRange * CreateInternal(ptrdiff_t impl)
pdftron::PDF::TextRange::Destroy
void Destroy()
pdftron::PDF::TextRange::TextRange
TextRange()
pdftron::PDF::TextRange::GetHandleInternal
ptrdiff_t GetHandleInternal()
pdftron::PDF::TextRange::operator=
TextRange & operator=(const TextRange &tr)
pdftron::PDF::TextRange::GetText
UString GetText() const
pdftron::PDF::TextRange::GetTextBefore
UString GetTextBefore(int count) const
pdftron::UString
Definition UString.h:28
pdftron::PDF
Definition Action.h:15
pdftron
Definition BasicTypes.h:10