summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_fill.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-03 16:39:18 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-03 22:11:40 +0000
commit45da0f2d84c97a9856492265a1fc706d04bdfccd (patch)
tree94f0e37415c91fdd7b91d22037e2d7a421e30986 /xfa/fxfa/parser/cxfa_fill.h
parent8afa22d5701a6c47b3f34267a2c52948efc3d301 (diff)
downloadpdfium-45da0f2d84c97a9856492265a1fc706d04bdfccd.tar.xz
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 <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_fill.h')
-rw-r--r--xfa/fxfa/parser/cxfa_fill.h30
1 files changed, 30 insertions, 0 deletions
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_