summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_margindata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_margindata.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_margindata.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/xfa/fxfa/parser/cxfa_margindata.cpp b/xfa/fxfa/parser/cxfa_margindata.cpp
index 2c5689cfa0..4eedaeb7e7 100644
--- a/xfa/fxfa/parser/cxfa_margindata.cpp
+++ b/xfa/fxfa/parser/cxfa_margindata.cpp
@@ -8,6 +8,30 @@
CXFA_MarginData::CXFA_MarginData(CXFA_Node* pNode) : CXFA_DataData(pNode) {}
+float CXFA_MarginData::GetLeftInset() const {
+ float left = 0;
+ TryLeftInset(left);
+ return left;
+}
+
+float CXFA_MarginData::GetTopInset() const {
+ float top = 0;
+ TryTopInset(top);
+ return top;
+}
+
+float CXFA_MarginData::GetRightInset() const {
+ float right = 0;
+ TryRightInset(right);
+ return right;
+}
+
+float CXFA_MarginData::GetBottomInset() const {
+ float bottom = 0;
+ TryBottomInset(bottom);
+ return bottom;
+}
+
bool CXFA_MarginData::TryLeftInset(float& fInset) const {
return TryMeasure(XFA_Attribute::LeftInset, fInset);
}