Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: xfa/fde/cfde_txtedtpage.h

Issue 2467203003: Remove FX_BOOL from xfa. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fde/cfde_txtedtengine.cpp ('k') | xfa/fde/cfde_txtedtpage.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef XFA_FDE_CFDE_TXTEDTPAGE_H_ 7 #ifndef XFA_FDE_CFDE_TXTEDTPAGE_H_
8 #define XFA_FDE_CFDE_TXTEDTPAGE_H_ 8 #define XFA_FDE_CFDE_TXTEDTPAGE_H_
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #include "xfa/fde/ifde_txtedtpage.h" 13 #include "xfa/fde/ifde_txtedtpage.h"
14 #include "xfa/fde/ifx_chariter.h" 14 #include "xfa/fde/ifx_chariter.h"
15 15
16 class CFDE_TxtEdtEngine; 16 class CFDE_TxtEdtEngine;
17 class CFDE_TxtEdtParag; 17 class CFDE_TxtEdtParag;
18 class CFDE_TxtEdtTextSet; 18 class CFDE_TxtEdtTextSet;
19 19
20 class CFDE_TxtEdtPage : public IFDE_TxtEdtPage { 20 class CFDE_TxtEdtPage : public IFDE_TxtEdtPage {
21 public: 21 public:
22 CFDE_TxtEdtPage(CFDE_TxtEdtEngine* pEngine, int32_t nLineIndex); 22 CFDE_TxtEdtPage(CFDE_TxtEdtEngine* pEngine, int32_t nLineIndex);
23 ~CFDE_TxtEdtPage() override; 23 ~CFDE_TxtEdtPage() override;
24 24
25 // IFDE_TxtEditPage: 25 // IFDE_TxtEditPage:
26 CFDE_TxtEdtEngine* GetEngine() const override; 26 CFDE_TxtEdtEngine* GetEngine() const override;
27 int32_t GetCharRect(int32_t nIndex, 27 int32_t GetCharRect(int32_t nIndex,
28 CFX_RectF& rect, 28 CFX_RectF& rect,
29 FX_BOOL bBBox = FALSE) const override; 29 bool bBBox = false) const override;
30 int32_t GetCharIndex(const CFX_PointF& fPoint, FX_BOOL& bBefore) override; 30 int32_t GetCharIndex(const CFX_PointF& fPoint, bool& bBefore) override;
31 void CalcRangeRectArray(int32_t nStart, 31 void CalcRangeRectArray(int32_t nStart,
32 int32_t nCount, 32 int32_t nCount,
33 CFX_RectFArray& RectFArr) const override; 33 CFX_RectFArray& RectFArr) const override;
34 int32_t SelectWord(const CFX_PointF& fPoint, int32_t& nCount) override; 34 int32_t SelectWord(const CFX_PointF& fPoint, int32_t& nCount) override;
35 int32_t GetCharStart() const override; 35 int32_t GetCharStart() const override;
36 int32_t GetCharCount() const override; 36 int32_t GetCharCount() const override;
37 int32_t GetDisplayPos(const CFX_RectF& rtClip, 37 int32_t GetDisplayPos(const CFX_RectF& rtClip,
38 FXTEXT_CHARPOS*& pCharPos, 38 FXTEXT_CHARPOS*& pCharPos,
39 CFX_RectF* pBBox) const override; 39 CFX_RectF* pBBox) const override;
40 FX_BOOL IsLoaded(const CFX_RectF* pClipBox) override; 40 bool IsLoaded(const CFX_RectF* pClipBox) override;
41 int32_t LoadPage(const CFX_RectF* pClipBox, IFX_Pause* pPause) override; 41 int32_t LoadPage(const CFX_RectF* pClipBox, IFX_Pause* pPause) override;
42 void UnloadPage(const CFX_RectF* pClipBox) override; 42 void UnloadPage(const CFX_RectF* pClipBox) override;
43 const CFX_RectF& GetContentsBox() override; 43 const CFX_RectF& GetContentsBox() override;
44 44
45 // IFDE_VisualSet: 45 // IFDE_VisualSet:
46 FDE_VISUALOBJTYPE GetType() override; 46 FDE_VISUALOBJTYPE GetType() override;
47 void GetRect(FDE_TEXTEDITPIECE* pPiece, CFX_RectF& rt) override; 47 void GetRect(FDE_TEXTEDITPIECE* pPiece, CFX_RectF& rt) override;
48 48
49 // IFDE_CanvasSet: 49 // IFDE_CanvasSet:
50 FX_POSITION GetFirstPosition() override; 50 FX_POSITION GetFirstPosition() override;
(...skipping 14 matching lines...) Expand all
65 std::unique_ptr<IFX_CharIter> m_pIter; 65 std::unique_ptr<IFX_CharIter> m_pIter;
66 std::unique_ptr<CFDE_TxtEdtTextSet> m_pTextSet; 66 std::unique_ptr<CFDE_TxtEdtTextSet> m_pTextSet;
67 CFDE_TxtEdtEngine* const m_pEditEngine; 67 CFDE_TxtEdtEngine* const m_pEditEngine;
68 CFX_MassArrayTemplate<FDE_TEXTEDITPIECE> m_PieceMassArr; 68 CFX_MassArrayTemplate<FDE_TEXTEDITPIECE> m_PieceMassArr;
69 CFDE_TxtEdtParag* m_pBgnParag; 69 CFDE_TxtEdtParag* m_pBgnParag;
70 CFDE_TxtEdtParag* m_pEndParag; 70 CFDE_TxtEdtParag* m_pEndParag;
71 int32_t m_nRefCount; 71 int32_t m_nRefCount;
72 int32_t m_nPageStart; 72 int32_t m_nPageStart;
73 int32_t m_nCharCount; 73 int32_t m_nCharCount;
74 int32_t m_nPageIndex; 74 int32_t m_nPageIndex;
75 FX_BOOL m_bLoaded; 75 bool m_bLoaded;
76 CFX_RectF m_rtPage; 76 CFX_RectF m_rtPage;
77 CFX_RectF m_rtPageMargin; 77 CFX_RectF m_rtPageMargin;
78 CFX_RectF m_rtPageContents; 78 CFX_RectF m_rtPageContents;
79 CFX_RectF m_rtPageCanvas; 79 CFX_RectF m_rtPageCanvas;
80 std::vector<int32_t> m_CharWidths; 80 std::vector<int32_t> m_CharWidths;
81 }; 81 };
82 82
83 #endif // XFA_FDE_CFDE_TXTEDTPAGE_H_ 83 #endif // XFA_FDE_CFDE_TXTEDTPAGE_H_
OLDNEW
« no previous file with comments | « xfa/fde/cfde_txtedtengine.cpp ('k') | xfa/fde/cfde_txtedtpage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698