summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_nametree.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfdoc/cpdf_nametree.h')
-rw-r--r--core/fpdfdoc/cpdf_nametree.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/fpdfdoc/cpdf_nametree.h b/core/fpdfdoc/cpdf_nametree.h
index a56f511783..28239233ea 100644
--- a/core/fpdfdoc/cpdf_nametree.h
+++ b/core/fpdfdoc/cpdf_nametree.h
@@ -7,6 +7,8 @@
#ifndef CORE_FPDFDOC_CPDF_NAMETREE_H_
#define CORE_FPDFDOC_CPDF_NAMETREE_H_
+#include <memory>
+
#include "core/fxcrt/cfx_unowned_ptr.h"
#include "core/fxcrt/fx_string.h"
@@ -21,6 +23,9 @@ class CPDF_NameTree {
CPDF_NameTree(CPDF_Document* pDoc, const CFX_ByteString& category);
~CPDF_NameTree();
+ bool AddValueAndName(std::unique_ptr<CPDF_Object> pObj,
+ const CFX_WideString& name);
+
CPDF_Object* LookupValueAndName(int nIndex, CFX_WideString* csName) const;
CPDF_Object* LookupValue(const CFX_WideString& csName) const;
CPDF_Array* LookupNamedDest(CPDF_Document* pDoc, const CFX_WideString& sName);