blob: 11a9d18c26469cc3dbf1556826f6fc1b76a61185 [file] [log] [blame]
kumarashishg826308d2023-06-23 13:21:22 +00001// Copyright 2016 The PDFium Authors
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -07002// 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_BOOKMARK_H_
8#define CORE_FPDFDOC_CPDF_BOOKMARK_H_
9
10#include "core/fpdfdoc/cpdf_action.h"
11#include "core/fpdfdoc/cpdf_dest.h"
Haibo Huang49cc9302020-04-27 16:14:24 -070012#include "core/fxcrt/retain_ptr.h"
kumarashishg826308d2023-06-23 13:21:22 +000013#include "core/fxcrt/widestring.h"
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070014
15class CPDF_Dictionary;
16class CPDF_Document;
17
18class CPDF_Bookmark {
19 public:
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070020 CPDF_Bookmark();
21 CPDF_Bookmark(const CPDF_Bookmark& that);
kumarashishg826308d2023-06-23 13:21:22 +000022 explicit CPDF_Bookmark(RetainPtr<const CPDF_Dictionary> pDict);
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070023 ~CPDF_Bookmark();
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070024
Haibo Huang49cc9302020-04-27 16:14:24 -070025 const CPDF_Dictionary* GetDict() const { return m_pDict.Get(); }
26
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070027 WideString GetTitle() const;
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070028 CPDF_Dest GetDest(CPDF_Document* pDocument) const;
29 CPDF_Action GetAction() const;
kumarashishg826308d2023-06-23 13:21:22 +000030 int GetCount() const;
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070031
32 private:
Haibo Huang49cc9302020-04-27 16:14:24 -070033 RetainPtr<const CPDF_Dictionary> m_pDict;
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070034};
35
36#endif // CORE_FPDFDOC_CPDF_BOOKMARK_H_