summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_txtedttextset.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-05-18 11:09:47 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-18 11:09:47 -0700
commit653951828cf934afb48b57989089a99b38620d02 (patch)
tree8a91b6f3ffac3d992e47e5d6fd4da31245597ff9 /xfa/fde/cfde_txtedttextset.h
parent3b093630d55ad97807bcc710227b03819944605b (diff)
downloadpdfium-653951828cf934afb48b57989089a99b38620d02.tar.xz
Split xfa/fee files into individual class files.
This CL splits the xfa/fee files into individual class files and moves them into the xfa/fde directory where they belong. Review-Url: https://codereview.chromium.org/1994693002
Diffstat (limited to 'xfa/fde/cfde_txtedttextset.h')
-rw-r--r--xfa/fde/cfde_txtedttextset.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/xfa/fde/cfde_txtedttextset.h b/xfa/fde/cfde_txtedttextset.h
new file mode 100644
index 0000000000..efd0a18604
--- /dev/null
+++ b/xfa/fde/cfde_txtedttextset.h
@@ -0,0 +1,41 @@
+// Copyright 2016 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 XFA_FDE_CFDE_TXTEDTTEXTSET_H_
+#define XFA_FDE_CFDE_TXTEDTTEXTSET_H_
+
+#include "xfa/fde/fde_visualset.h"
+
+class CFDE_TxtEdtPage;
+
+class CFDE_TxtEdtTextSet : public IFDE_TextSet {
+ public:
+ explicit CFDE_TxtEdtTextSet(CFDE_TxtEdtPage* pPage);
+ ~CFDE_TxtEdtTextSet() override;
+
+ FDE_VISUALOBJTYPE GetType() override;
+ FX_BOOL GetBBox(FDE_HVISUALOBJ hVisualObj, CFX_RectF& bbox) override;
+ FX_BOOL GetMatrix(FDE_HVISUALOBJ hVisualObj, CFX_Matrix& matrix) override;
+ FX_BOOL GetRect(FDE_HVISUALOBJ hVisualObj, CFX_RectF& rt) override;
+ FX_BOOL GetClip(FDE_HVISUALOBJ hVisualObj, CFX_RectF& rt) override;
+ int32_t GetString(FDE_HVISUALOBJ hText, CFX_WideString& wsText) override;
+ IFX_Font* GetFont(FDE_HVISUALOBJ hText) override;
+ FX_FLOAT GetFontSize(FDE_HVISUALOBJ hText) override;
+ FX_ARGB GetFontColor(FDE_HVISUALOBJ hText) override;
+ int32_t GetDisplayPos(FDE_HVISUALOBJ hText,
+ FXTEXT_CHARPOS* pCharPos,
+ FX_BOOL bCharCode = FALSE,
+ CFX_WideString* pWSForms = NULL) override;
+ int32_t GetCharRects(FDE_HVISUALOBJ hText, CFX_RectFArray& rtArray) override;
+ int32_t GetCharRects_Impl(FDE_HVISUALOBJ hText,
+ CFX_RectFArray& rtArray,
+ FX_BOOL bBBox = FALSE);
+
+ private:
+ CFDE_TxtEdtPage* const m_pPage;
+};
+
+#endif // XFA_FDE_CFDE_TXTEDTTEXTSET_H_