| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #define _PDF_VT_H_ | 7 #define _PDF_VT_H_ |
| 8 class CPVT_Size; | 8 class CPVT_Size; |
| 9 class CPVT_FloatRect; | 9 class CPVT_FloatRect; |
| 10 struct CPVT_SectionInfo; | 10 struct CPVT_SectionInfo; |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 FX_INT32 m_nLimit
Char; | 596 FX_INT32 m_nLimit
Char; |
| 597 FX_INT32 m_nCharA
rray; | 597 FX_INT32 m_nCharA
rray; |
| 598 FX_BOOL
m_bMultiLine; | 598 FX_BOOL
m_bMultiLine; |
| 599 FX_BOOL
m_bLimitWidth; | 599 FX_BOOL
m_bLimitWidth; |
| 600 FX_BOOL
m_bAutoFontSize; | 600 FX_BOOL
m_bAutoFontSize; |
| 601 FX_INT32 m_nAlign
ment; | 601 FX_INT32 m_nAlign
ment; |
| 602 FX_FLOAT m_fLineL
eading; | 602 FX_FLOAT m_fLineL
eading; |
| 603 FX_FLOAT m_fCharS
pace; | 603 FX_FLOAT m_fCharS
pace; |
| 604 FX_INT32 m_nHorzS
cale; | 604 FX_INT32 m_nHorzS
cale; |
| 605 FX_WORD
m_wSubWord; | 605 FX_WORD
m_wSubWord; |
| 606 FX_FLOAT m_fWordS
pace; | |
| 607 FX_FLOAT m_fFontS
ize; | 606 FX_FLOAT m_fFontS
ize; |
| 608 | 607 |
| 609 private: | 608 private: |
| 610 FX_BOOL
m_bInitial; | 609 FX_BOOL
m_bInitial; |
| 611 FX_BOOL
m_bRichText; | 610 FX_BOOL
m_bRichText; |
| 612 FX_FLOAT m_fCaret
OriginX; | |
| 613 FX_INT32 m_nCurFo
ntIndex; | |
| 614 IPDF_VariableText_Provider * m_pVTProvider; | 611 IPDF_VariableText_Provider * m_pVTProvider; |
| 615 CPDF_VariableText_Iterator * m_pVTIterator; | 612 CPDF_VariableText_Iterator * m_pVTIterator; |
| 616 }; | 613 }; |
| 617 class CPDF_VariableText_Iterator : public IPDF_VariableText_Iterator, public CFX
_Object | 614 class CPDF_VariableText_Iterator : public IPDF_VariableText_Iterator, public CFX
_Object |
| 618 { | 615 { |
| 619 public: | 616 public: |
| 620 CPDF_VariableText_Iterator(CPDF_VariableText * pVT); | 617 CPDF_VariableText_Iterator(CPDF_VariableText * pVT); |
| 621 virtual ~CPDF_VariableText_Iterator(); | 618 virtual ~CPDF_VariableText_Iterator(); |
| 622 FX_BOOL
NextWord(); | 619 FX_BOOL
NextWord(); |
| 623 FX_BOOL
PrevWord(); | 620 FX_BOOL
PrevWord(); |
| 624 FX_BOOL
NextLine(); | 621 FX_BOOL
NextLine(); |
| 625 FX_BOOL
PrevLine(); | 622 FX_BOOL
PrevLine(); |
| 626 FX_BOOL
NextSection(); | 623 FX_BOOL
NextSection(); |
| 627 FX_BOOL
PrevSection(); | 624 FX_BOOL
PrevSection(); |
| 628 FX_BOOL
SetWord(const CPVT_Word & word); | 625 FX_BOOL
SetWord(const CPVT_Word & word); |
| 629 FX_BOOL
GetWord(CPVT_Word & word) const; | 626 FX_BOOL
GetWord(CPVT_Word & word) const; |
| 630 FX_BOOL
GetLine(CPVT_Line & line) const; | 627 FX_BOOL
GetLine(CPVT_Line & line) const; |
| 631 FX_BOOL
GetSection(CPVT_Section & section) const; | 628 FX_BOOL
GetSection(CPVT_Section & section) const; |
| 632 FX_BOOL
SetSection(const CPVT_Section & section); | 629 FX_BOOL
SetSection(const CPVT_Section & section); |
| 633 void
SetAt(FX_INT32 nWordIndex); | 630 void
SetAt(FX_INT32 nWordIndex); |
| 634 void
SetAt(const CPVT_WordPlace & place); | 631 void
SetAt(const CPVT_WordPlace & place); |
| 635 const CPVT_WordPlace & GetAt() const | 632 const CPVT_WordPlace & GetAt() const |
| 636 { | 633 { |
| 637 return m_CurPos; | 634 return m_CurPos; |
| 638 }; | 635 }; |
| 639 private: | 636 private: |
| 640 CPVT_WordPlace m_CurPos
; | 637 CPVT_WordPlace m_CurPos
; |
| 641 CPDF_VariableText * m_pVT; | 638 CPDF_VariableText * m_pVT; |
| 642 }; | 639 }; |
| OLD | NEW |