| OLD | NEW |
| 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 CORE_FPDFAPI_PAGE_CPDF_PAGEOBJECT_H_ | 7 #ifndef CORE_FPDFAPI_PAGE_CPDF_PAGEOBJECT_H_ |
| 8 #define CORE_FPDFAPI_PAGE_CPDF_PAGEOBJECT_H_ | 8 #define CORE_FPDFAPI_PAGE_CPDF_PAGEOBJECT_H_ |
| 9 | 9 |
| 10 #include "core/fpdfapi/page/cpdf_contentmark.h" | 10 #include "core/fpdfapi/page/cpdf_contentmark.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 TEXT = 1, | 24 TEXT = 1, |
| 25 PATH, | 25 PATH, |
| 26 IMAGE, | 26 IMAGE, |
| 27 SHADING, | 27 SHADING, |
| 28 FORM, | 28 FORM, |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 CPDF_PageObject(); | 31 CPDF_PageObject(); |
| 32 ~CPDF_PageObject() override; | 32 ~CPDF_PageObject() override; |
| 33 | 33 |
| 34 virtual CPDF_PageObject* Clone() const = 0; | |
| 35 virtual Type GetType() const = 0; | 34 virtual Type GetType() const = 0; |
| 36 virtual void Transform(const CFX_Matrix& matrix) = 0; | 35 virtual void Transform(const CFX_Matrix& matrix) = 0; |
| 37 virtual bool IsText() const; | 36 virtual bool IsText() const; |
| 38 virtual bool IsPath() const; | 37 virtual bool IsPath() const; |
| 39 virtual bool IsImage() const; | 38 virtual bool IsImage() const; |
| 40 virtual bool IsShading() const; | 39 virtual bool IsShading() const; |
| 41 virtual bool IsForm() const; | 40 virtual bool IsForm() const; |
| 42 virtual CPDF_TextObject* AsText(); | 41 virtual CPDF_TextObject* AsText(); |
| 43 virtual const CPDF_TextObject* AsText() const; | 42 virtual const CPDF_TextObject* AsText() const; |
| 44 virtual CPDF_PathObject* AsPath(); | 43 virtual CPDF_PathObject* AsPath(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 62 | 61 |
| 63 protected: | 62 protected: |
| 64 void CopyData(const CPDF_PageObject* pSrcObject); | 63 void CopyData(const CPDF_PageObject* pSrcObject); |
| 65 | 64 |
| 66 private: | 65 private: |
| 67 CPDF_PageObject(const CPDF_PageObject& src) = delete; | 66 CPDF_PageObject(const CPDF_PageObject& src) = delete; |
| 68 void operator=(const CPDF_PageObject& src) = delete; | 67 void operator=(const CPDF_PageObject& src) = delete; |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 #endif // CORE_FPDFAPI_PAGE_CPDF_PAGEOBJECT_H_ | 70 #endif // CORE_FPDFAPI_PAGE_CPDF_PAGEOBJECT_H_ |
| OLD | NEW |