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

Side by Side Diff: fpdfsdk/include/cba_annotiterator.h

Issue 2287703002: Rename CPDFSDK_Annot::GetType to CPDFSDK_Annot::GetAnnotSubtype. (Closed)
Patch Set: Rename CPDFSDK_Annot::GetType to CPDFSDK_Annot::GetAnnotSubtype. Created 4 years, 3 months 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 | « fpdfsdk/fsdk_mgr.cpp ('k') | fpdfsdk/include/cpdfsdk_annot.h » ('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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 FPDFSDK_INCLUDE_CBA_ANNOTITERATOR_H_ 7 #ifndef FPDFSDK_INCLUDE_CBA_ANNOTITERATOR_H_
8 #define FPDFSDK_INCLUDE_CBA_ANNOTITERATOR_H_ 8 #define FPDFSDK_INCLUDE_CBA_ANNOTITERATOR_H_
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "core/fxcrt/include/fx_coordinates.h" 12 #include "core/fxcrt/include/fx_coordinates.h"
13 #include "core/fxcrt/include/fx_string.h" 13 #include "core/fxcrt/include/fx_string.h"
14 14
15 class CPDFSDK_Annot; 15 class CPDFSDK_Annot;
16 class CPDFSDK_PageView; 16 class CPDFSDK_PageView;
17 17
18 class CBA_AnnotIterator { 18 class CBA_AnnotIterator {
19 public: 19 public:
20 enum TabOrder { STRUCTURE = 0, ROW, COLUMN }; 20 enum TabOrder { STRUCTURE = 0, ROW, COLUMN };
21 21
22 CBA_AnnotIterator(CPDFSDK_PageView* pPageView, 22 CBA_AnnotIterator(CPDFSDK_PageView* pPageView,
23 const CFX_ByteString& sType, 23 const CFX_ByteString& sAnnotSubtype);
24 const CFX_ByteString& sSubType);
25 ~CBA_AnnotIterator(); 24 ~CBA_AnnotIterator();
26 25
27 CPDFSDK_Annot* GetFirstAnnot(); 26 CPDFSDK_Annot* GetFirstAnnot();
28 CPDFSDK_Annot* GetLastAnnot(); 27 CPDFSDK_Annot* GetLastAnnot();
29 CPDFSDK_Annot* GetNextAnnot(CPDFSDK_Annot* pAnnot); 28 CPDFSDK_Annot* GetNextAnnot(CPDFSDK_Annot* pAnnot);
30 CPDFSDK_Annot* GetPrevAnnot(CPDFSDK_Annot* pAnnot); 29 CPDFSDK_Annot* GetPrevAnnot(CPDFSDK_Annot* pAnnot);
31 30
32 private: 31 private:
33 void GenerateResults(); 32 void GenerateResults();
34 static CFX_FloatRect GetAnnotRect(const CPDFSDK_Annot* pAnnot); 33 static CFX_FloatRect GetAnnotRect(const CPDFSDK_Annot* pAnnot);
35 34
36 // Function signature compatible with std::sort(). 35 // Function signature compatible with std::sort().
37 static bool CompareByLeftAscending(const CPDFSDK_Annot* p1, 36 static bool CompareByLeftAscending(const CPDFSDK_Annot* p1,
38 const CPDFSDK_Annot* p2); 37 const CPDFSDK_Annot* p2);
39 static bool CompareByTopDescending(const CPDFSDK_Annot* p1, 38 static bool CompareByTopDescending(const CPDFSDK_Annot* p1,
40 const CPDFSDK_Annot* p2); 39 const CPDFSDK_Annot* p2);
41 40
42 TabOrder m_eTabOrder; 41 TabOrder m_eTabOrder;
43 CPDFSDK_PageView* m_pPageView; 42 CPDFSDK_PageView* m_pPageView;
44 CFX_ByteString m_sType; 43 CFX_ByteString m_sAnnotSubtype;
45 CFX_ByteString m_sSubType;
46 std::vector<CPDFSDK_Annot*> m_Annots; 44 std::vector<CPDFSDK_Annot*> m_Annots;
47 }; 45 };
48 46
49 #endif // FPDFSDK_INCLUDE_CBA_ANNOTITERATOR_H_ 47 #endif // FPDFSDK_INCLUDE_CBA_ANNOTITERATOR_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_mgr.cpp ('k') | fpdfsdk/include/cpdfsdk_annot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698