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_OBJECTS_ | 7 #ifndef _FPDF_OBJECTS_ |
8 #define _FPDF_OBJECTS_ | 8 #define _FPDF_OBJECTS_ |
9 #ifndef _FXCRT_EXTENSION_ | 9 #ifndef _FXCRT_EXTENSION_ |
10 #include "../fxcrt/fx_ext.h" | 10 #include "../fxcrt/fx_ext.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
159 { | 159 { |
160 return FX_NEW CPDF_Number(str); | 160 return FX_NEW CPDF_Number(str); |
161 } | 161 } |
162 | 162 |
163 static CPDF_Number* Create(FX_BOOL bInteger, void* pData) | 163 static CPDF_Number* Create(FX_BOOL bInteger, void* pData) |
164 { | 164 { |
165 return FX_NEW CPDF_Number(bInteger, pData); | 165 return FX_NEW CPDF_Number(bInteger, pData); |
166 } | 166 } |
167 | 167 |
168 CPDF_Number() | 168 CPDF_Number() |
169 { | 169 { |
Tom Sepez
2015/02/10 23:17:04
nit: prefer initializer list.
| |
170 m_Type = PDFOBJ_NUMBER; | 170 m_Type = PDFOBJ_NUMBER; |
171 m_Integer = 0; | |
171 } | 172 } |
172 | 173 |
173 CPDF_Number(FX_BOOL bInteger, void* pData); | 174 CPDF_Number(FX_BOOL bInteger, void* pData); |
174 | 175 |
175 CPDF_Number(int value); | 176 CPDF_Number(int value); |
176 | 177 |
177 CPDF_Number(FX_FLOAT value); | 178 CPDF_Number(FX_FLOAT value); |
178 | 179 |
179 CPDF_Number(FX_BSTR str); | 180 CPDF_Number(FX_BSTR str); |
180 | 181 |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
783 } | 784 } |
784 protected: | 785 protected: |
785 | 786 |
786 CFX_MapPtrToPtr m_IndirectObjs; | 787 CFX_MapPtrToPtr m_IndirectObjs; |
787 | 788 |
788 IPDF_DocParser* m_pParser; | 789 IPDF_DocParser* m_pParser; |
789 | 790 |
790 FX_DWORD m_LastObjNum; | 791 FX_DWORD m_LastObjNum; |
791 }; | 792 }; |
792 #endif | 793 #endif |
OLD | NEW |