summaryrefslogtreecommitdiff
path: root/core/src/fpdftext/txtproc.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-02-11 09:06:11 -0800
committerTom Sepez <tsepez@chromium.org>2016-02-11 09:06:11 -0800
commit6b90e983a9e3e7aee0c637a7b0c3c51f0dfc1faf (patch)
tree4a7ee0b7d6f381b7e3b4270bf74746db45715a76 /core/src/fpdftext/txtproc.h
parente238549d212e97fe01dba3740949a98172c21454 (diff)
downloadpdfium-6b90e983a9e3e7aee0c637a7b0c3c51f0dfc1faf.tar.xz
Remove unused NormalizeString()
- NormalizeString() has 1 caller: - CTextBaseLine::WriteOutput(), which has only 1 caller: - CTextPage::WriteOutput(), which has only 1 caller: - PDF_GetPageText_Unicode(), which has only 1 caller: - PDF_GetPageText(), which has no callers. Removing this also makes CheckRotate(), NormalizeCompositeChar(), and CTextPage unused. Removing those makes CTextBaseline() unused. Removing that makes txtproc.h unused. PDF_GetTextStream_Unicode also unused. ... and so on until entire files can be removed. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1689843002 .
Diffstat (limited to 'core/src/fpdftext/txtproc.h')
-rw-r--r--core/src/fpdftext/txtproc.h84
1 files changed, 0 insertions, 84 deletions
diff --git a/core/src/fpdftext/txtproc.h b/core/src/fpdftext/txtproc.h
deleted file mode 100644
index 27cec5d0a6..0000000000
--- a/core/src/fpdftext/txtproc.h
+++ /dev/null
@@ -1,84 +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_FPDFTEXT_TXTPROC_H_
-#define CORE_SRC_FPDFTEXT_TXTPROC_H_
-
-class CTextColumn {
- public:
- FX_FLOAT m_AvgPos;
- int m_Count;
- int m_TextPos;
-};
-class CTextBox {
- public:
- CFX_WideString m_Text;
- FX_FLOAT m_Left;
- FX_FLOAT m_Right;
- FX_FLOAT m_SpaceWidth;
- FX_FLOAT m_Top;
- FX_FLOAT m_Bottom;
- FX_FLOAT m_FontSizeV;
- CTextColumn* m_pColumn;
-};
-class CTextBaseLine {
- public:
- CTextBaseLine();
- ~CTextBaseLine();
- void InsertTextBox(FX_FLOAT leftx,
- FX_FLOAT rightx,
- FX_FLOAT topy,
- FX_FLOAT bottomy,
- FX_FLOAT spacew,
- FX_FLOAT fontsize_v,
- const CFX_WideString& str);
- FX_BOOL GetWidth(FX_FLOAT& leftx, FX_FLOAT& rightx);
- FX_BOOL CanMerge(CTextBaseLine* pOther);
- void Merge(CTextBaseLine* pOther);
- void MergeBoxes();
- void CountChars(int& count, FX_FLOAT& width, int& minchars);
- void WriteOutput(CFX_WideString& str,
- FX_FLOAT leftx,
- FX_FLOAT width,
- int iWidth);
- FX_FLOAT m_BaseLine;
- FX_FLOAT m_Top;
- FX_FLOAT m_Bottom;
- FX_FLOAT m_MaxFontSizeV;
- CFX_ArrayTemplate<CTextBox*> m_TextList;
-};
-class CPDF_PageObject;
-class CPDF_TextObject;
-class CTextPage {
- public:
- CTextPage();
- ~CTextPage();
- void ProcessObject(CPDF_PageObject* pObj);
- CTextBaseLine* InsertTextBox(CTextBaseLine* pBaseLine,
- FX_FLOAT basey,
- FX_FLOAT leftx,
- FX_FLOAT rightx,
- FX_FLOAT topy,
- FX_FLOAT bottomy,
- FX_FLOAT spacew,
- FX_FLOAT fontsize_v,
- CFX_ByteString& str,
- CPDF_Font* pFont);
- void WriteOutput(CFX_WideStringArray& lines, int iMinWidth);
- FX_BOOL m_bAutoWidth;
- FX_BOOL m_bKeepColumn;
- FX_BOOL m_bBreakSpace;
-
- private:
- void FindColumns();
- CTextColumn* FindColumn(FX_FLOAT xpos);
- void BreakSpace(CPDF_TextObject* pTextObj);
-
- CFX_ArrayTemplate<CTextBaseLine*> m_BaseLines;
- CFX_ArrayTemplate<CTextColumn*> m_TextColumns;
-};
-
-#endif // CORE_SRC_FPDFTEXT_TXTPROC_H_