// Copyright 2018 The PDFium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef CORE_FPDFAPI_PAGE_IPDF_PAGE_H_ #define CORE_FPDFAPI_PAGE_IPDF_PAGE_H_ #include <optional> #include "core/fxcrt/fx_coordinates.h" #include "core/fxcrt/retain_ptr.h" class CPDF_Document; class CPDF_Page; // Small layering violation, incomplete type and always null if non-XFA. class CPDFXFA_Page; // Interface implemented by both page types (CPDF_Page and CPDFXFA_Page). class IPDF_Page : public Retainable { … }; inline CPDF_Page* ToPDFPage(IPDF_Page* pBase) { … } inline CPDFXFA_Page* ToXFAPage(IPDF_Page* pBase) { … } #endif // CORE_FPDFAPI_PAGE_IPDF_PAGE_H_