From 45da0f2d84c97a9856492265a1fc706d04bdfccd Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 3 Jan 2018 16:39:18 -0500 Subject: Fold CXFA_FillData into CXFA_Fill This CL removes the CXFA_FillData wrapper and puts the code directly in CXFA_Fill. Change-Id: I44ae8b53978b659480a4bb32719d086c7b91b49b Reviewed-on: https://pdfium-review.googlesource.com/22210 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_fill.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'xfa/fxfa/parser/cxfa_fill.h') diff --git a/xfa/fxfa/parser/cxfa_fill.h b/xfa/fxfa/parser/cxfa_fill.h index ba18b91b72..a5ee7609ee 100644 --- a/xfa/fxfa/parser/cxfa_fill.h +++ b/xfa/fxfa/parser/cxfa_fill.h @@ -9,10 +9,40 @@ #include "xfa/fxfa/parser/cxfa_node.h" +class CXFA_Linear; +class CXFA_Pattern; +class CXFA_Radial; +class CXFA_Stipple; + class CXFA_Fill : public CXFA_Node { public: CXFA_Fill(CXFA_Document* doc, XFA_PacketType packet); ~CXFA_Fill() override; + + bool IsVisible(); + + FX_ARGB GetColor(bool bText); + void SetColor(FX_ARGB color); + + XFA_Element GetFillType() const; + + XFA_AttributeEnum GetPatternType(); + FX_ARGB GetPatternColor(); + + XFA_AttributeEnum GetLinearType(); + FX_ARGB GetLinearColor(); + + int32_t GetStippleRate(); + FX_ARGB GetStippleColor(); + + bool IsRadialToEdge(); + FX_ARGB GetRadialColor(); + + private: + CXFA_Stipple* GetStipple(); + CXFA_Radial* GetRadial(); + CXFA_Linear* GetLinear(); + CXFA_Pattern* GetPattern(); }; #endif // XFA_FXFA_PARSER_CXFA_FILL_H_ -- cgit v1.2.3