summaryrefslogtreecommitdiff
path: root/core/fpdfapi/edit/editint.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-05-08 17:08:08 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-05-09 13:06:29 +0000
commitf82efcc72fa16b145f101b38ea55d674278e32a1 (patch)
tree439e306aa39997fda46bf6252645f7ac1ab79b9f /core/fpdfapi/edit/editint.h
parent3ba6010b63a97271f23ed921a58dc9298d2e74ef (diff)
downloadpdfium-f82efcc72fa16b145f101b38ea55d674278e32a1.tar.xz
Remove editint.h and create individual headerschromium/3095
This Cl creates a cpdf_objectstream and cpdf_xrefstream headers from the editint header. Change-Id: I857981fa055ee9296cbd344860e55c67acf200ce Reviewed-on: https://pdfium-review.googlesource.com/5113 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core/fpdfapi/edit/editint.h')
-rw-r--r--core/fpdfapi/edit/editint.h77
1 files changed, 0 insertions, 77 deletions
diff --git a/core/fpdfapi/edit/editint.h b/core/fpdfapi/edit/editint.h
deleted file mode 100644
index 881c2cca36..0000000000
--- a/core/fpdfapi/edit/editint.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// 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 CORE_FPDFAPI_EDIT_EDITINT_H_
-#define CORE_FPDFAPI_EDIT_EDITINT_H_
-
-#include <vector>
-
-#include "core/fxcrt/fx_basic.h"
-#include "core/fxcrt/fx_stream.h"
-#include "core/fxcrt/fx_system.h"
-
-class CPDF_Creator;
-class CPDF_Object;
-
-class CPDF_ObjectStream {
- public:
- struct Item {
- uint32_t objnum;
- FX_STRSIZE offset;
- };
-
- CPDF_ObjectStream();
- ~CPDF_ObjectStream();
-
- void Start();
- FX_FILESIZE End(CPDF_Creator* pCreator);
- void CompressIndirectObject(uint32_t dwObjNum, const CPDF_Object* pObj);
- void CompressIndirectObject(uint32_t dwObjNum,
- const uint8_t* pBuffer,
- uint32_t dwSize);
-
- std::vector<Item> m_Items;
- CFX_ByteTextBuf m_Buffer;
- uint32_t m_dwObjNum;
- int32_t m_index;
-};
-
-class CPDF_XRefStream {
- public:
- struct Index {
- uint32_t objnum;
- uint32_t count;
- };
-
- CPDF_XRefStream();
- ~CPDF_XRefStream();
-
- bool Start();
- int32_t CompressIndirectObject(uint32_t dwObjNum,
- const CPDF_Object* pObj,
- CPDF_Creator* pCreator);
- int32_t CompressIndirectObject(uint32_t dwObjNum,
- const uint8_t* pBuffer,
- uint32_t dwSize,
- CPDF_Creator* pCreator);
- bool End(CPDF_Creator* pCreator, bool bEOF = false);
- void AddObjectNumberToIndexArray(uint32_t objnum);
- bool EndXRefStream(CPDF_Creator* pCreator);
-
- std::vector<Index> m_IndexArray;
- FX_FILESIZE m_PrevOffset;
- uint32_t m_dwTempObjNum;
-
- protected:
- int32_t EndObjectStream(CPDF_Creator* pCreator, bool bEOF = true);
- bool GenerateXRefStream(CPDF_Creator* pCreator, bool bEOF);
-
- size_t m_iSeg;
- CPDF_ObjectStream m_ObjStream;
- CFX_ByteTextBuf m_Buffer;
-};
-
-#endif // CORE_FPDFAPI_EDIT_EDITINT_H_