1// Copyright 2014 PDFium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef _FXFA_FORMFILLER_DRAWTEXT_IMP_H
8#define _FXFA_FORMFILLER_DRAWTEXT_IMP_H
9class CXFA_TextLayout;
10class CXFA_FFText : public CXFA_FFDraw {
11 public:
12  CXFA_FFText(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
13  virtual ~CXFA_FFText();
14  virtual FX_BOOL OnLButtonDown(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);
15  virtual FX_BOOL OnLButtonUp(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);
16  virtual FX_BOOL OnMouseMove(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);
17  virtual FX_DWORD OnHitTest(FX_FLOAT fx, FX_FLOAT fy);
18  virtual void RenderWidget(CFX_Graphics* pGS,
19                            CFX_Matrix* pMatrix = NULL,
20                            FX_DWORD dwStatus = 0,
21                            int32_t iRotate = 0);
22  virtual FX_BOOL IsLoaded();
23  virtual FX_BOOL PerformLayout();
24
25 private:
26  virtual const FX_WCHAR* GetLinkURLAtPoint(FX_FLOAT fx, FX_FLOAT fy);
27  void FWLToClient(FX_FLOAT& fx, FX_FLOAT& fy);
28};
29#endif
30