summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser')
-rw-r--r--xfa/fxfa/parser/cxfa_boxdata.cpp6
-rw-r--r--xfa/fxfa/parser/cxfa_boxdata.h4
-rw-r--r--xfa/fxfa/parser/cxfa_filldata.cpp (renamed from xfa/fxfa/parser/cxfa_fill.cpp)22
-rw-r--r--xfa/fxfa/parser/cxfa_filldata.h (renamed from xfa/fxfa/parser/cxfa_fill.h)12
-rw-r--r--xfa/fxfa/parser/cxfa_font.cpp10
5 files changed, 27 insertions, 27 deletions
diff --git a/xfa/fxfa/parser/cxfa_boxdata.cpp b/xfa/fxfa/parser/cxfa_boxdata.cpp
index 607a1571dc..d0c264e3b2 100644
--- a/xfa/fxfa/parser/cxfa_boxdata.cpp
+++ b/xfa/fxfa/parser/cxfa_boxdata.cpp
@@ -137,13 +137,13 @@ bool CXFA_BoxData::GetSweepAngle(float& fSweepAngle) const {
return bRet;
}
-CXFA_Fill CXFA_BoxData::GetFill(bool bModified) const {
+CXFA_FillData CXFA_BoxData::GetFillData(bool bModified) const {
if (!m_pNode)
- return CXFA_Fill(nullptr);
+ return CXFA_FillData(nullptr);
CXFA_Node* pFillNode =
m_pNode->JSNode()->GetProperty(0, XFA_Element::Fill, bModified);
- return CXFA_Fill(pFillNode);
+ return CXFA_FillData(pFillNode);
}
CXFA_Margin CXFA_BoxData::GetMargin() const {
diff --git a/xfa/fxfa/parser/cxfa_boxdata.h b/xfa/fxfa/parser/cxfa_boxdata.h
index 384d4c1e00..80a39222e2 100644
--- a/xfa/fxfa/parser/cxfa_boxdata.h
+++ b/xfa/fxfa/parser/cxfa_boxdata.h
@@ -12,7 +12,7 @@
#include "core/fxcrt/fx_system.h"
#include "xfa/fxfa/parser/cxfa_data.h"
#include "xfa/fxfa/parser/cxfa_edgedata.h"
-#include "xfa/fxfa/parser/cxfa_fill.h"
+#include "xfa/fxfa/parser/cxfa_filldata.h"
#include "xfa/fxfa/parser/cxfa_margin.h"
class CXFA_Node;
@@ -46,7 +46,7 @@ class CXFA_BoxData : public CXFA_Data {
return fSweepAngle;
}
- CXFA_Fill GetFill(bool bModified = false) const;
+ CXFA_FillData GetFillData(bool bModified = false) const;
CXFA_Margin GetMargin() const;
int32_t Get3DStyle(bool& bVisible, float& fThickness) const;
};
diff --git a/xfa/fxfa/parser/cxfa_fill.cpp b/xfa/fxfa/parser/cxfa_filldata.cpp
index 8430b254a8..772b1151c3 100644
--- a/xfa/fxfa/parser/cxfa_fill.cpp
+++ b/xfa/fxfa/parser/cxfa_filldata.cpp
@@ -4,19 +4,19 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "xfa/fxfa/parser/cxfa_fill.h"
+#include "xfa/fxfa/parser/cxfa_filldata.h"
#include "xfa/fxfa/parser/cxfa_node.h"
-CXFA_Fill::CXFA_Fill(CXFA_Node* pNode) : CXFA_Data(pNode) {}
+CXFA_FillData::CXFA_FillData(CXFA_Node* pNode) : CXFA_Data(pNode) {}
-CXFA_Fill::~CXFA_Fill() {}
+CXFA_FillData::~CXFA_FillData() {}
-int32_t CXFA_Fill::GetPresence() {
+int32_t CXFA_FillData::GetPresence() {
return m_pNode->JSNode()->GetEnum(XFA_ATTRIBUTE_Presence);
}
-void CXFA_Fill::SetColor(FX_ARGB color) {
+void CXFA_FillData::SetColor(FX_ARGB color) {
CXFA_Node* pNode =
m_pNode->JSNode()->GetProperty(0, XFA_Element::Color, true);
WideString wsColor;
@@ -29,7 +29,7 @@ void CXFA_Fill::SetColor(FX_ARGB color) {
pNode->JSNode()->SetCData(XFA_ATTRIBUTE_Value, wsColor, false, false);
}
-FX_ARGB CXFA_Fill::GetColor(bool bText) {
+FX_ARGB CXFA_FillData::GetColor(bool bText) {
if (CXFA_Node* pNode = m_pNode->GetChild(0, XFA_Element::Color, false)) {
WideStringView wsColor;
if (pNode->JSNode()->TryCData(XFA_ATTRIBUTE_Value, wsColor, false))
@@ -40,7 +40,7 @@ FX_ARGB CXFA_Fill::GetColor(bool bText) {
return 0xFFFFFFFF;
}
-XFA_Element CXFA_Fill::GetFillType() {
+XFA_Element CXFA_FillData::GetFillType() {
CXFA_Node* pChild = m_pNode->GetNodeItem(XFA_NODEITEM_FirstChild);
while (pChild) {
XFA_Element eType = pChild->GetElementType();
@@ -52,7 +52,7 @@ XFA_Element CXFA_Fill::GetFillType() {
return XFA_Element::Solid;
}
-int32_t CXFA_Fill::GetPattern(FX_ARGB& foreColor) {
+int32_t CXFA_FillData::GetPattern(FX_ARGB& foreColor) {
CXFA_Node* pNode =
m_pNode->JSNode()->GetProperty(0, XFA_Element::Pattern, true);
if (CXFA_Node* pColor = pNode->GetChild(0, XFA_Element::Color, false)) {
@@ -65,7 +65,7 @@ int32_t CXFA_Fill::GetPattern(FX_ARGB& foreColor) {
return pNode->JSNode()->GetEnum(XFA_ATTRIBUTE_Type);
}
-int32_t CXFA_Fill::GetStipple(FX_ARGB& stippleColor) {
+int32_t CXFA_FillData::GetStipple(FX_ARGB& stippleColor) {
CXFA_Node* pNode =
m_pNode->JSNode()->GetProperty(0, XFA_Element::Stipple, true);
int32_t eAttr = 50;
@@ -80,7 +80,7 @@ int32_t CXFA_Fill::GetStipple(FX_ARGB& stippleColor) {
return eAttr;
}
-int32_t CXFA_Fill::GetLinear(FX_ARGB& endColor) {
+int32_t CXFA_FillData::GetLinear(FX_ARGB& endColor) {
CXFA_Node* pNode =
m_pNode->JSNode()->GetProperty(0, XFA_Element::Linear, true);
XFA_ATTRIBUTEENUM eAttr = XFA_ATTRIBUTEENUM_ToRight;
@@ -95,7 +95,7 @@ int32_t CXFA_Fill::GetLinear(FX_ARGB& endColor) {
return eAttr;
}
-int32_t CXFA_Fill::GetRadial(FX_ARGB& endColor) {
+int32_t CXFA_FillData::GetRadial(FX_ARGB& endColor) {
CXFA_Node* pNode =
m_pNode->JSNode()->GetProperty(0, XFA_Element::Radial, true);
XFA_ATTRIBUTEENUM eAttr = XFA_ATTRIBUTEENUM_ToEdge;
diff --git a/xfa/fxfa/parser/cxfa_fill.h b/xfa/fxfa/parser/cxfa_filldata.h
index 4b13565765..d47fb5d86a 100644
--- a/xfa/fxfa/parser/cxfa_fill.h
+++ b/xfa/fxfa/parser/cxfa_filldata.h
@@ -4,8 +4,8 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef XFA_FXFA_PARSER_CXFA_FILL_H_
-#define XFA_FXFA_PARSER_CXFA_FILL_H_
+#ifndef XFA_FXFA_PARSER_CXFA_FILLDATA_H_
+#define XFA_FXFA_PARSER_CXFA_FILLDATA_H_
#include "core/fxcrt/fx_system.h"
#include "core/fxge/fx_dib.h"
@@ -13,10 +13,10 @@
class CXFA_Node;
-class CXFA_Fill : public CXFA_Data {
+class CXFA_FillData : public CXFA_Data {
public:
- explicit CXFA_Fill(CXFA_Node* pNode);
- ~CXFA_Fill();
+ explicit CXFA_FillData(CXFA_Node* pNode);
+ ~CXFA_FillData();
int32_t GetPresence();
FX_ARGB GetColor(bool bText = false);
@@ -28,4 +28,4 @@ class CXFA_Fill : public CXFA_Data {
void SetColor(FX_ARGB color);
};
-#endif // XFA_FXFA_PARSER_CXFA_FILL_H_
+#endif // XFA_FXFA_PARSER_CXFA_FILLDATA_H_
diff --git a/xfa/fxfa/parser/cxfa_font.cpp b/xfa/fxfa/parser/cxfa_font.cpp
index ab0825fbe6..9de43535b5 100644
--- a/xfa/fxfa/parser/cxfa_font.cpp
+++ b/xfa/fxfa/parser/cxfa_font.cpp
@@ -7,7 +7,7 @@
#include "xfa/fxfa/parser/cxfa_font.h"
#include "core/fxge/fx_dib.h"
-#include "xfa/fxfa/parser/cxfa_fill.h"
+#include "xfa/fxfa/parser/cxfa_filldata.h"
#include "xfa/fxfa/parser/cxfa_measurement.h"
#include "xfa/fxfa/parser/cxfa_node.h"
@@ -85,11 +85,11 @@ bool CXFA_Font::IsItalic() {
}
void CXFA_Font::SetColor(FX_ARGB color) {
- CXFA_Fill fill(m_pNode->JSNode()->GetProperty(0, XFA_Element::Fill, true));
- fill.SetColor(color);
+ CXFA_FillData(m_pNode->JSNode()->GetProperty(0, XFA_Element::Fill, true))
+ .SetColor(color);
}
FX_ARGB CXFA_Font::GetColor() {
- CXFA_Fill fill(m_pNode->GetChild(0, XFA_Element::Fill, false));
- return fill ? fill.GetColor(true) : 0xFF000000;
+ CXFA_FillData fillData(m_pNode->GetChild(0, XFA_Element::Fill, false));
+ return fillData ? fillData.GetColor(true) : 0xFF000000;
}