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 CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
8 #define CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 const FX_FLOAT* GetType3Data() const { return m_Type3Data; } | 117 const FX_FLOAT* GetType3Data() const { return m_Type3Data; } |
118 | 118 |
119 void AddNumberParam(const FX_CHAR* str, int len); | 119 void AddNumberParam(const FX_CHAR* str, int len); |
120 void AddObjectParam(CPDF_Object* pObj); | 120 void AddObjectParam(CPDF_Object* pObj); |
121 void AddNameParam(const FX_CHAR* name, int size); | 121 void AddNameParam(const FX_CHAR* name, int size); |
122 int GetNextParamPos(); | 122 int GetNextParamPos(); |
123 void ClearAllParams(); | 123 void ClearAllParams(); |
124 CPDF_Object* GetObject(uint32_t index); | 124 CPDF_Object* GetObject(uint32_t index); |
125 CFX_ByteString GetString(uint32_t index); | 125 CFX_ByteString GetString(uint32_t index); |
126 FX_FLOAT GetNumber(uint32_t index); | 126 FX_FLOAT GetNumber(uint32_t index); |
127 FX_FLOAT GetNumber16(uint32_t index); | |
128 int GetInteger(uint32_t index) { return (int32_t)(GetNumber(index)); } | 127 int GetInteger(uint32_t index) { return (int32_t)(GetNumber(index)); } |
129 void OnOperator(const FX_CHAR* op); | 128 void OnOperator(const FX_CHAR* op); |
130 void BigCaseCaller(int index); | 129 void BigCaseCaller(int index); |
131 uint32_t GetParsePos() { return m_pSyntax->GetPos(); } | 130 uint32_t GetParsePos() { return m_pSyntax->GetPos(); } |
132 void AddTextObject(CFX_ByteString* pText, | 131 void AddTextObject(CFX_ByteString* pText, |
133 FX_FLOAT fInitKerning, | 132 FX_FLOAT fInitKerning, |
134 FX_FLOAT* pKerning, | 133 FX_FLOAT* pKerning, |
135 int count); | 134 int count); |
136 | 135 |
137 void ConvertUserSpace(FX_FLOAT& x, FX_FLOAT& y); | 136 void ConvertUserSpace(FX_FLOAT& x, FX_FLOAT& y); |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 }; | 523 }; |
525 | 524 |
526 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr); | 525 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr); |
527 CFX_ByteStringC PDF_FindValueAbbreviationForTesting( | 526 CFX_ByteStringC PDF_FindValueAbbreviationForTesting( |
528 const CFX_ByteStringC& abbr); | 527 const CFX_ByteStringC& abbr); |
529 | 528 |
530 void PDF_ReplaceAbbr(CPDF_Object* pObj); | 529 void PDF_ReplaceAbbr(CPDF_Object* pObj); |
531 bool IsPathOperator(const uint8_t* buf, size_t len); | 530 bool IsPathOperator(const uint8_t* buf, size_t len); |
532 | 531 |
533 #endif // CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 532 #endif // CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
OLD | NEW |