summaryrefslogtreecommitdiff
path: root/core/src/reflow/autoreflow.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-06-13 00:44:09 -0700
committerLei Zhang <thestig@chromium.org>2015-06-13 00:44:09 -0700
commitbef3c6d1fe83c0d1a84ace5c501932ed39651a74 (patch)
treef86b0e93eb19de0d79f4562cc3b1d032cd909bae /core/src/reflow/autoreflow.h
parent60f507ba36893edccb53aa13d7282144a1dd2499 (diff)
downloadpdfium-bef3c6d1fe83c0d1a84ace5c501932ed39651a74.tar.xz
Merge to XFA: Remove unused reflow code.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1181803002. (cherry picked from commit f25db681003f0247e97bfef22be56a8aa02b7595) Review URL: https://codereview.chromium.org/1182993002.
Diffstat (limited to 'core/src/reflow/autoreflow.h')
-rw-r--r--core/src/reflow/autoreflow.h125
1 files changed, 0 insertions, 125 deletions
diff --git a/core/src/reflow/autoreflow.h b/core/src/reflow/autoreflow.h
deleted file mode 100644
index 20babd72da..0000000000
--- a/core/src/reflow/autoreflow.h
+++ /dev/null
@@ -1,125 +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_SRC_REFLOW_AUTOREFLOW_H_
-#define CORE_SRC_REFLOW_AUTOREFLOW_H_
-
-#include "../../include/reflow/reflowengine.h"
-#include "reflowedpage.h"
-
-class CPDF_AutoReflowElement;
-class CPDF_AutoReflowLayoutProvider;
-typedef CFX_ArrayTemplate<CPDF_AutoReflowElement*> CAR_ElmPtrArray;
-typedef CFX_ArrayTemplate<CPDF_PageObject*> CAR_ObjPtrArray;
-class CRF_CELL
-{
-public:
- CRF_CELL() { };
- ~CRF_CELL() { };
- CFX_PtrList m_ObjList;
- int m_CellWritingMode;
- FX_RECT m_BBox;
-};
-class CPDF_AutoReflowElement : public IPDF_LayoutElement
-{
-public:
- CPDF_AutoReflowElement(LayoutType layoutType = LayoutUnknown , CPDF_AutoReflowElement* pParent = NULL) ;
- ~CPDF_AutoReflowElement();
- LayoutType GetType()
- {
- return m_ElmType;
- }
- void GetRect(CFX_FloatRect& rcRect) {};
-
- int CountAttrValues(LayoutAttr attr_type);
- LayoutEnum GetEnumAttr(LayoutAttr attr_type, int index);
- FX_FLOAT GetNumberAttr(LayoutAttr attr_type, int index);
- FX_COLORREF GetColorAttr(LayoutAttr attr_type, int index);
-
- int CountChildren()
- {
- return m_ChildArray.GetSize();
- }
- IPDF_LayoutElement* GetChild(int index)
- {
- return m_ChildArray.GetAt(index);
- }
-
- IPDF_LayoutElement* GetParent()
- {
- return m_pParentElm;
- }
- int CountObjects()
- {
- return m_ObjArray.GetSize();
- }
- CPDF_PageObject* GetObject(int index)
- {
- return m_ObjArray.GetAt(index);
- }
- CPDF_AutoReflowElement* m_pParentElm;
- LayoutType m_ElmType;
- CAR_ElmPtrArray m_ChildArray;
- CAR_ObjPtrArray m_ObjArray;
- FX_FLOAT m_SpaceBefore;
-};
-#define AUTOREFLOW_STEP_GENERATELINE 1
-#define AUTOREFLOW_STEP_GENERATEParagraph 2
-#define AUTOREFLOW_STEP_CREATEELEMENT 3
-#define AUTOREFLOW_STEP_REMOVEDATA 4
-class CPDF_AutoReflowLayoutProvider : public IPDF_LayoutProvider
-{
-public:
- CPDF_AutoReflowLayoutProvider(CPDF_PageObjects* pPage, FX_BOOL bReadOrder);
- ~CPDF_AutoReflowLayoutProvider();
- void SetLayoutProviderStyle(LAYOUTPROVIDER_STYLE Style)
- {
- m_Style = Style;
- }
- LayoutStatus StartLoad(IFX_Pause* pPause = NULL);
- LayoutStatus Continue();
- int GetPosition();
- IPDF_LayoutElement* GetRoot()
- {
- return m_pRoot;
- }
- FX_FLOAT GetObjMinCell(CPDF_PageObject* pObj);
- void Conver2AppreceOrder(const CPDF_PageObjects* pStreamOrderObjs, CPDF_PageObjects* pAppraceOrderObjs);
- void ReleaseElm(CPDF_AutoReflowElement*& pElm, FX_BOOL bReleaseChildren = TRUE);
- void GenerateCell();
- void GenerateStructTree();
- void GenerateLine(CFX_PtrArray& cellArray);
- void GenerateParagraph(CFX_PtrArray& cellArray);
- void CreateElement();
- void AddObjectArray(CPDF_AutoReflowElement* pElm, CFX_PtrList& ObjList);
- FX_FLOAT GetLayoutOrderHeight(CPDF_PageObject* pCurObj);
- FX_FLOAT GetLayoutOrderWidth(CPDF_PageObject* pCurObj);
- int GetWritingMode(CPDF_PageObject* pPreObj, CPDF_PageObject* pCurObj);
- int GetRectStart(FX_RECT rect);
- int GetRectEnd(FX_RECT rect);
- int GetRectTop(FX_RECT rect);
- int GetRectBottom(FX_RECT rect);
- int GetRectHeight(FX_RECT rect);
- int GetRectWidth(FX_RECT rect);
- void ProcessObj(CFX_PtrArray& cellArray, CPDF_PageObject* pObj, CFX_AffineMatrix matrix);
- int32_t LogicPreObj(CPDF_PageObject* pObj);
-
- CPDF_AutoReflowElement* m_pRoot;
- CPDF_AutoReflowElement* m_pCurrElm;
- CPDF_Page* m_pPDFPage;
- IFX_Pause* m_pPause;
- CFX_AffineMatrix m_PDFDisplayMatrix;
- CPDF_PageObject* m_pPreObj;
- LayoutStatus m_Status;
- int m_WritingMode;
- CFX_PtrArray m_CellArray;
- FX_BOOL m_bReadOrder;
- LAYOUTPROVIDER_STYLE m_Style;
- CFX_PtrArray m_cellArray;
- int m_Step;
-};
-
-#endif // CORE_SRC_REFLOW_AUTOREFLOW_H_