#include "core/fpdfdoc/cpdf_dest.h"
#include <algorithm>
#include <iterator>
#include <utility>
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_document.h"
#include "core/fpdfapi/parser/cpdf_name.h"
#include "core/fpdfapi/parser/cpdf_number.h"
#include "core/fpdfdoc/cpdf_nametree.h"
#include "core/fxcrt/stl_util.h"
namespace {
constexpr auto kZoomModes = …;
constexpr auto kZoomModeMaxParamCount = …;
}
CPDF_Dest::CPDF_Dest(RetainPtr<const CPDF_Array> pArray)
: … { … }
CPDF_Dest::CPDF_Dest(const CPDF_Dest& that) = default;
CPDF_Dest::~CPDF_Dest() = default;
CPDF_Dest CPDF_Dest::Create(CPDF_Document* pDoc,
RetainPtr<const CPDF_Object> pDest) { … }
int CPDF_Dest::GetDestPageIndex(CPDF_Document* pDoc) const { … }
std::vector<float> CPDF_Dest::GetScrollPositionArray() const { … }
int CPDF_Dest::GetZoomMode() const { … }
bool CPDF_Dest::GetXYZ(bool* pHasX,
bool* pHasY,
bool* pHasZoom,
float* pX,
float* pY,
float* pZoom) const { … }
size_t CPDF_Dest::GetNumParams() const { … }
float CPDF_Dest::GetParam(size_t index) const { … }