7#include "xfa/fxfa/cxfa_fftext.h"
9#include "xfa/fgas/graphics/cfgas_gegraphics.h"
10#include "xfa/fgas/layout/cfgas_linkuserdata.h"
11#include "xfa/fwl/fwl_widgethit.h"
12#include "xfa/fxfa/cxfa_ffapp.h"
13#include "xfa/fxfa/cxfa_ffdoc.h"
14#include "xfa/fxfa/cxfa_ffpageview.h"
15#include "xfa/fxfa/cxfa_ffwidget.h"
16#include "xfa/fxfa/cxfa_textlayout.h"
17#include "xfa/fxfa/parser/cxfa_margin.h"
34 CXFA_TextLayout* pTextLayout = m_pNode->GetTextLayout();
40 CXFA_Margin* margin = m_pNode->GetMarginIfExists();
47 float fBottomInset = 0;
61 pTextLayout->DrawString(pRenderDevice, mt, rtClip,
66 CXFA_TextLayout* pTextLayout = m_pNode->GetTextLayout();
72 CXFA_TextLayout* pTextLayout = m_pNode->GetTextLayout();
86 CXFA_Margin* margin = m_pNode->GetMarginIfExists();
93 pTextLayout->ItemBlocks(rtText, pItem->GetIndex());
102 const CFX_PointF& point,
110 const CFX_PointF& point) {
116 const CFX_PointF& point) {
122 const CFX_PointF& point) {
127 WideString wsURLContent = GetLinkURLAtPoint(point);
131 GetDoc()->GotoURL(wsURLContent);
143WideString CXFA_FFText::GetLinkURLAtPoint(
const CFX_PointF& point) {
144 CXFA_TextLayout* pTextLayout = m_pNode->GetTextLayout();
CFX_RenderDevice * GetRenderDevice()
CFX_Matrix(float a1, float b1, float c1, float d1, float e1, float f1)
CFX_RectF TransformRect(const CFX_RectF &rect) const
void Concat(const CFX_Matrix &right)
void Deflate(float off_left, float off_top, float off_right, float off_bottom)
CXFA_ContentLayoutItem * GetPrev() const
CXFA_ContentLayoutItem * GetNext() const
CFX_RectF GetAbsoluteRect() const
CXFA_ContentLayoutItem * GetFirst()
bool OnMouseMove(Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point) override
FWL_WidgetHit HitTest(const CFX_PointF &point) override
bool OnLButtonUp(Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point) override
void RenderWidget(CFGAS_GEGraphics *pGS, const CFX_Matrix &matrix, HighlightOption highlight) override
bool PerformLayout() override
bool AcceptsFocusOnButtonDown(Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point, CFWL_MessageMouse::MouseCommand command) override
bool OnLButtonDown(Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point) override
float GetBottomInset() const
float GetLeftInset() const
float GetTopInset() const
float GetRightInset() const
WideString GetLinkURLAtPoint(const CFX_PointF &point)