Cleanup: Get rid of CPDF_Reference::Create().
[pdfium.git] / core / src / fpdfapi / fpdf_edit / editint.h
index 73b28e3..4aec32a 100644 (file)
@@ -1,20 +1,21 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
-#ifndef _FPDF_EDITINT_
-#define _FPDF_EDITINT_
-class CPDF_ObjectStream 
+#ifndef CORE_SRC_FPDFAPI_FPDF_EDIT_EDITINT_H_
+#define CORE_SRC_FPDFAPI_FPDF_EDIT_EDITINT_H_
+
+class CPDF_ObjectStream
 {
 public:
     CPDF_ObjectStream();
 
     FX_BOOL                            Start();
 
-    FX_INT32                   CompressIndirectObject(FX_DWORD dwObjNum, const CPDF_Object *pObj);
-    FX_INT32                   CompressIndirectObject(FX_DWORD dwObjNum, FX_LPCBYTE pBuffer, FX_DWORD dwSize);
+    int32_t                    CompressIndirectObject(FX_DWORD dwObjNum, const CPDF_Object *pObj);
+    int32_t                    CompressIndirectObject(FX_DWORD dwObjNum, const uint8_t* pBuffer, FX_DWORD dwSize);
 
     FX_FILESIZE                        End(CPDF_Creator* pCreator);
 
@@ -22,12 +23,12 @@ public:
 
     CFX_ByteTextBuf            m_Buffer;
     FX_DWORD                   m_dwObjNum;
-    FX_INT32                   m_index;
+    int32_t                    m_index;
 protected:
 
     CFX_DWordArray             m_OffsetArray;
 };
-class CPDF_XRefStream 
+class CPDF_XRefStream
 {
 public:
 
@@ -35,9 +36,9 @@ public:
 
     FX_BOOL                            Start();
 
-    FX_INT32                   CompressIndirectObject(FX_DWORD dwObjNum, const CPDF_Object *pObj, CPDF_Creator *pCreator);
+    int32_t                    CompressIndirectObject(FX_DWORD dwObjNum, const CPDF_Object *pObj, CPDF_Creator *pCreator);
 
-    FX_INT32                   CompressIndirectObject(FX_DWORD dwObjNum, FX_LPCBYTE pBuffer, FX_DWORD dwSize, CPDF_Creator *pCreator);
+    int32_t                    CompressIndirectObject(FX_DWORD dwObjNum, const uint8_t* pBuffer, FX_DWORD dwSize, CPDF_Creator *pCreator);
 
     FX_BOOL                            End(CPDF_Creator *pCreator, FX_BOOL bEOF = FALSE);
     FX_BOOL                            AddObjectNumberToIndexArray(FX_DWORD objnum);
@@ -50,10 +51,11 @@ public:
     FX_DWORD                   m_dwTempObjNum;
 
 protected:
-    FX_INT32                   EndObjectStream(CPDF_Creator *pCreator, FX_BOOL bEOF = TRUE);
+    int32_t                    EndObjectStream(CPDF_Creator *pCreator, FX_BOOL bEOF = TRUE);
     FX_BOOL                            GenerateXRefStream(CPDF_Creator* pCreator, FX_BOOL bEOF);
-    FX_INT32                   m_iSeg;
+    int32_t                    m_iSeg;
     CPDF_ObjectStream  m_ObjStream;
     CFX_ByteTextBuf            m_Buffer;
 };
-#endif
+
+#endif  // CORE_SRC_FPDFAPI_FPDF_EDIT_EDITINT_H_