7#ifndef CORE_FPDFDOC_CPDF_NAMETREE_H_
8#define CORE_FPDFDOC_CPDF_NAMETREE_H_
14#include "core/fxcrt/fx_string.h"
15#include "core/fxcrt/retain_ptr.h"
29 const ByteString& category);
36 const ByteString& category);
39 CPDF_Dictionary* pRoot);
42 const ByteString& name);
48 WideString* csName)
const;
55 explicit CPDF_NameTree(
RetainPtr<CPDF_Dictionary> pRoot);
57 RetainPtr<
const CPDF_Array> LookupNewStyleNamedDest(
const ByteString& name);
bool GetXYZ(bool *pHasX, bool *pHasY, bool *pHasZoom, float *pX, float *pY, float *pZoom) const
size_t GetNumParams() const
static CPDF_Dest Create(CPDF_Document *pDoc, RetainPtr< const CPDF_Object > pDest)
CPDF_Dest(const CPDF_Dest &that)
int GetDestPageIndex(CPDF_Document *pDoc) const
float GetParam(size_t index) const
std::vector< float > GetScrollPositionArray() const
CPDF_Dest(RetainPtr< const CPDF_Array > pArray)
int GetPageIndex(uint32_t objnum)
bool AddValueAndName(RetainPtr< CPDF_Object > pObj, const WideString &name)
CPDF_NameTree & operator=(const CPDF_NameTree &)=delete
static RetainPtr< const CPDF_Array > LookupNamedDest(CPDF_Document *doc, const ByteString &name)
CPDF_Dictionary * GetRootForTesting() const
RetainPtr< const CPDF_Object > LookupValue(const WideString &csName) const
static std::unique_ptr< CPDF_NameTree > Create(CPDF_Document *pDoc, const ByteString &category)
CPDF_NameTree(const CPDF_NameTree &)=delete
RetainPtr< CPDF_Object > LookupValueAndName(size_t nIndex, WideString *csName) const
bool DeleteValueAndName(size_t nIndex)
static std::unique_ptr< CPDF_NameTree > CreateWithRootNameArray(CPDF_Document *pDoc, const ByteString &category)
static std::unique_ptr< CPDF_NameTree > CreateForTesting(CPDF_Dictionary *pRoot)
bool operator==(const char *ptr) const