diff options
Diffstat (limited to 'xfa/fxfa/parser/cxfa_line.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_line.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/xfa/fxfa/parser/cxfa_line.cpp b/xfa/fxfa/parser/cxfa_line.cpp index cc7b6ee071..d4159c3f72 100644 --- a/xfa/fxfa/parser/cxfa_line.cpp +++ b/xfa/fxfa/parser/cxfa_line.cpp @@ -8,6 +8,8 @@ #include "fxjs/xfa/cjx_line.h" #include "third_party/base/ptr_util.h" +#include "xfa/fxfa/parser/cxfa_edge.h" +#include "xfa/fxfa/parser/cxfa_node.h" namespace { @@ -39,3 +41,15 @@ CXFA_Line::CXFA_Line(CXFA_Document* doc, XFA_PacketType packet) pdfium::MakeUnique<CJX_Line>(this)) {} CXFA_Line::~CXFA_Line() {} + +XFA_AttributeEnum CXFA_Line::GetHand() { + return JSObject()->GetEnum(XFA_Attribute::Hand); +} + +bool CXFA_Line::GetSlope() { + return JSObject()->GetEnum(XFA_Attribute::Slope) == XFA_AttributeEnum::Slash; +} + +CXFA_Edge* CXFA_Line::GetEdge() { + return GetChild<CXFA_Edge>(0, XFA_Element::Edge, false); +} |