diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-30 22:06:40 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-30 22:06:40 +0000 |
commit | d02c4d8b1199799340833ebfc79d7092f9b2d043 (patch) | |
tree | 46c5ad3489153bf600529314fdbcf8c772622a24 /xfa/fxfa/parser/cxfa_layoutpagemgr.h | |
parent | f65f1d398804ec4702a3de691398902a0347461c (diff) | |
download | pdfium-d02c4d8b1199799340833ebfc79d7092f9b2d043.tar.xz |
Rename XFA_ATTRIBUTEENUM to XFA_AttributeEnum enum class
This CL changes the enum XFA_ATTRIBUTEENUM to an enum class
XFA_AttributeEnum. Methods expecting an int32 have been updated to take
or return the XFA_AttrbuteEnum type.
Change-Id: I268453949545fe2dd3eae707be4d9cc7edeff763
Reviewed-on: https://pdfium-review.googlesource.com/20070
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_layoutpagemgr.h')
-rw-r--r-- | xfa/fxfa/parser/cxfa_layoutpagemgr.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/parser/cxfa_layoutpagemgr.h b/xfa/fxfa/parser/cxfa_layoutpagemgr.h index 7ab1d4f82c..42fa4e6cd9 100644 --- a/xfa/fxfa/parser/cxfa_layoutpagemgr.h +++ b/xfa/fxfa/parser/cxfa_layoutpagemgr.h @@ -72,7 +72,7 @@ class CXFA_LayoutPageMgr { void AddContentAreaLayoutItem(CXFA_ContainerRecord* pNewRecord, CXFA_Node* pContentArea); bool RunBreak(XFA_Element eBreakType, - XFA_ATTRIBUTEENUM eTargetType, + XFA_AttributeEnum eTargetType, CXFA_Node* pTarget, bool bStartNew); CXFA_Node* BreakOverflow(CXFA_Node* pOverflowNode, @@ -111,7 +111,7 @@ class CXFA_LayoutPageMgr { CXFA_Node* pTargetContentArea = nullptr, bool bNewPage = false, bool bQuery = false, - XFA_ATTRIBUTEENUM ePreferredPosition = XFA_ATTRIBUTEENUM_First); + XFA_AttributeEnum ePreferredPosition = XFA_AttributeEnum::First); bool MatchPageAreaOddOrEven(CXFA_Node* pPageArea); CXFA_Node* GetNextAvailPageArea(CXFA_Node* pTargetPageArea, CXFA_Node* pTargetContentArea = nullptr, @@ -121,7 +121,7 @@ class CXFA_LayoutPageMgr { void InitPageSetMap(); void ProcessLastPageSet(); bool IsPageSetRootOrderedOccurrence() const { - return m_ePageSetMode == XFA_ATTRIBUTEENUM_OrderedOccurrence; + return m_ePageSetMode == XFA_AttributeEnum::OrderedOccurrence; } void ClearData(); void MergePageSetContents(); @@ -138,7 +138,7 @@ class CXFA_LayoutPageMgr { CXFA_Node* m_pCurPageArea; int32_t m_nAvailPages; int32_t m_nCurPageCount; - XFA_ATTRIBUTEENUM m_ePageSetMode; + XFA_AttributeEnum m_ePageSetMode; bool m_bCreateOverFlowPage; std::map<CXFA_Node*, int32_t> m_pPageSetMap; std::vector<CXFA_ContainerLayoutItem*> m_PageArray; |