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 #ifndef _FSDK_BASEFORM_H_ | 7 #ifndef _FSDK_BASEFORM_H_ |
8 #define _FSDK_BASEFORM_H_ | 8 #define _FSDK_BASEFORM_H_ |
9 | 9 |
10 #if _FX_OS_ == _FX_ANDROID_ | 10 #if _FX_OS_ == _FX_ANDROID_ |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 FX_BYTE m_iHighlightAlpha; | 254 FX_BYTE m_iHighlightAlpha; |
255 FX_BOOL m_bNeedHightlight[6]; | 255 FX_BOOL m_bNeedHightlight[6]; |
256 }; | 256 }; |
257 | 257 |
258 #define BAI_STRUCTURE 0 | 258 #define BAI_STRUCTURE 0 |
259 #define BAI_ROW 1 | 259 #define BAI_ROW 1 |
260 #define BAI_COLUMN 2 | 260 #define BAI_COLUMN 2 |
261 | 261 |
262 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot*
> | 262 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot*
> |
263 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot*
> | 263 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot*
> |
264 class CBA_AnnotIterator | 264 class CBA_AnnotIterator |
265 { | 265 { |
266 public: | 266 public: |
267 CBA_AnnotIterator(CPDFSDK_PageView* pPageView, const CFX_ByteString& sTy
pe, const CFX_ByteString& sSubType); | 267 CBA_AnnotIterator(CPDFSDK_PageView* pPageView, const CFX_ByteString& sTy
pe, const CFX_ByteString& sSubType); |
268 » virtual ~CBA_AnnotIterator(); | 268 » ~CBA_AnnotIterator(); |
269 » | 269 |
270 » virtual CPDFSDK_Annot*» » » » GetFirstAnnot(); | 270 » CPDFSDK_Annot*» » » » GetFirstAnnot(); |
271 » virtual CPDFSDK_Annot*» » » » GetLastAnnot(); | 271 » CPDFSDK_Annot*» » » » GetLastAnnot(); |
272 » virtual CPDFSDK_Annot*» » » » GetNextAnnot(CPDFSDK_Ann
ot* pAnnot); | 272 » CPDFSDK_Annot*» » » » GetNextAnnot(CPDFSDK_Annot* pAnn
ot); |
273 » virtual CPDFSDK_Annot*» » » » GetPrevAnnot(CPDFSDK_Ann
ot* pAnnot); | 273 » CPDFSDK_Annot*» » » » GetPrevAnnot(CPDFSDK_Annot* pAnn
ot); |
274 » | 274 |
275 » virtual void» » » » » » Release(){delete
this;} | |
276 » | |
277 private: | 275 private: |
278 void Generate
Results(); | 276 void Generate
Results(); |
279 static int CompareB
yLeft(CPDFSDK_Annot* p1, CPDFSDK_Annot* p2); | 277 static int CompareB
yLeft(CPDFSDK_Annot* p1, CPDFSDK_Annot* p2); |
280 static int CompareB
yTop(CPDFSDK_Annot* p1, CPDFSDK_Annot* p2); | 278 static int CompareB
yTop(CPDFSDK_Annot* p1, CPDFSDK_Annot* p2); |
281 | |
282 static CPDF_Rect GetAnnotRect(CPD
FSDK_Annot* pAnnot); | 279 static CPDF_Rect GetAnnotRect(CPD
FSDK_Annot* pAnnot); |
283 » | 280 |
284 private: | |
285 CPDFSDK_PageView* m_pPageView; | 281 CPDFSDK_PageView* m_pPageView; |
286 CFX_ByteString m_sType; | 282 CFX_ByteString m_sType; |
287 CFX_ByteString m_sSubType; | 283 CFX_ByteString m_sSubType; |
288 int
m_nTabs; | 284 int
m_nTabs; |
289 | |
290 CPDFSDK_Annots m_Annots; | 285 CPDFSDK_Annots m_Annots; |
291 }; | 286 }; |
292 | 287 |
293 #endif //#define _FSDK_BASEFORM_H_ | 288 #endif //#define _FSDK_BASEFORM_H_ |
294 | 289 |
OLD | NEW |