1 // Copyright 2017 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef XFA_FXFA_PARSER_CXFA_OCCUR_H_ 8 #define XFA_FXFA_PARSER_CXFA_OCCUR_H_ 9 10 #include <tuple> 11 12 #include "xfa/fxfa/parser/cxfa_node.h" 13 14 class CXFA_Occur final : public CXFA_Node { 15 public: 16 static constexpr int32_t kDefaultMax = 1; 17 static constexpr int32_t kDefaultMin = 1; 18 19 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED; 20 ~CXFA_Occur() override; 21 22 int32_t GetMax(); 23 void SetMax(int32_t iMax); 24 25 int32_t GetMin(); 26 void SetMin(int32_t iMin); 27 28 std::tuple<int32_t, int32_t, int32_t> GetOccurInfo(); 29 30 private: 31 CXFA_Occur(CXFA_Document* doc, XFA_PacketType packet); 32 }; 33 34 #endif // XFA_FXFA_PARSER_CXFA_OCCUR_H_ 35