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 _FPDF_PAGEOBJ_H_ | 7 #ifndef _FPDF_PAGEOBJ_H_ |
8 #define _FPDF_PAGEOBJ_H_ | 8 #define _FPDF_PAGEOBJ_H_ |
9 #ifndef _FPDF_RESOURCE_ | 9 #ifndef _FPDF_RESOURCE_ |
10 #include "fpdf_resource.h" | 10 #include "fpdf_resource.h" |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 | 448 |
449 CPDF_ColorState m_ColorState; | 449 CPDF_ColorState m_ColorState; |
450 | 450 |
451 CPDF_TextState m_TextState; | 451 CPDF_TextState m_TextState; |
452 | 452 |
453 CPDF_GeneralState m_GeneralState; | 453 CPDF_GeneralState m_GeneralState; |
454 }; | 454 }; |
455 class CPDF_PageObject : public CPDF_GraphicStates | 455 class CPDF_PageObject : public CPDF_GraphicStates |
456 { | 456 { |
457 public: | 457 public: |
458 | |
459 static CPDF_PageObject* Create(int type); | 458 static CPDF_PageObject* Create(int type); |
460 | 459 virtual ~CPDF_PageObject(); |
461 void» » » » Release(); | |
462 | 460 |
463 CPDF_PageObject* Clone() const; | 461 CPDF_PageObject* Clone() const; |
464 | 462 |
465 void Copy(const CPDF_PageObject* pSrcObject); | 463 void Copy(const CPDF_PageObject* pSrcObject); |
466 | 464 |
467 virtual void Transform(const CFX_AffineMatrix& matrix) = 0; | 465 virtual void Transform(const CFX_AffineMatrix& matrix) = 0; |
468 | 466 |
469 | 467 |
470 | 468 |
471 void RemoveClipPath(); | 469 void RemoveClipPath(); |
(...skipping 26 matching lines...) Expand all Loading... |
498 | 496 |
499 CPDF_ContentMark m_ContentMark; | 497 CPDF_ContentMark m_ContentMark; |
500 protected: | 498 protected: |
501 | 499 |
502 virtual void CopyData(const CPDF_PageObject* pSrcObject) {} | 500 virtual void CopyData(const CPDF_PageObject* pSrcObject) {} |
503 | 501 |
504 void RecalcBBox(); | 502 void RecalcBBox(); |
505 | 503 |
506 CPDF_PageObject() {} | 504 CPDF_PageObject() {} |
507 | 505 |
508 virtual ~CPDF_PageObject() {} | |
509 }; | 506 }; |
510 struct CPDF_TextObjectItem { | 507 struct CPDF_TextObjectItem { |
511 | 508 |
512 FX_DWORD m_CharCode; | 509 FX_DWORD m_CharCode; |
513 | 510 |
514 FX_FLOAT m_OriginX; | 511 FX_FLOAT m_OriginX; |
515 | 512 |
516 FX_FLOAT m_OriginY; | 513 FX_FLOAT m_OriginY; |
517 }; | 514 }; |
518 class CPDF_TextObject : public CPDF_PageObject | 515 class CPDF_TextObject : public CPDF_PageObject |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 CFX_DIBitmap* m_pBitmap; | 711 CFX_DIBitmap* m_pBitmap; |
715 | 712 |
716 CFX_ArrayTemplate<CFX_AffineMatrix> m_Matrices; | 713 CFX_ArrayTemplate<CFX_AffineMatrix> m_Matrices; |
717 | 714 |
718 void AddMatrix(CFX_AffineMatrix& matrix); | 715 void AddMatrix(CFX_AffineMatrix& matrix); |
719 protected: | 716 protected: |
720 virtual void Transform(const CFX_AffineMatrix& matrix) {} | 717 virtual void Transform(const CFX_AffineMatrix& matrix) {} |
721 virtual void CopyData(const CPDF_PageObject* pSrcObjet) {} | 718 virtual void CopyData(const CPDF_PageObject* pSrcObjet) {} |
722 }; | 719 }; |
723 #endif | 720 #endif |
OLD | NEW |