1 // Copyright 2016 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 CORE_FPDFDOC_CPDF_PAGELABEL_H_ 8 #define CORE_FPDFDOC_CPDF_PAGELABEL_H_ 9 10 #include "core/fxcrt/unowned_ptr.h" 11 #include "core/fxcrt/widestring.h" 12 #include "third_party/abseil-cpp/absl/types/optional.h" 13 14 class CPDF_Document; 15 16 class CPDF_PageLabel { 17 public: 18 explicit CPDF_PageLabel(CPDF_Document* pDocument); 19 ~CPDF_PageLabel(); 20 21 absl::optional<WideString> GetLabel(int nPage) const; 22 23 private: 24 UnownedPtr<CPDF_Document> const m_pDocument; 25 }; 26 27 #endif // CORE_FPDFDOC_CPDF_PAGELABEL_H_ 28