Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cpdf_pagelabel.h
Go to the documentation of this file.
1// Copyright 2016 The PDFium Authors
2// 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_PAGELABEL_H_
8#define CORE_FPDFDOC_CPDF_PAGELABEL_H_
9
10#include "core/fxcrt/unowned_ptr.h"
11#include "core/fxcrt/widestring.h"
12#include "third_party/abseil-cpp/absl/types/optional.h"
13
14class CPDF_Document;
15
17 public:
18 explicit CPDF_PageLabel(CPDF_Document* pDocument);
20
21 absl::optional<WideString> GetLabel(int nPage) const;
22
23 private:
24 UnownedPtr<CPDF_Document> const m_pDocument;
25};
26
27#endif // CORE_FPDFDOC_CPDF_PAGELABEL_H_
bool KeyExist(const ByteString &key) const
ByteString GetByteStringFor(const ByteString &key, const ByteString &default_str) const
WideString GetUnicodeTextFor(const ByteString &key) const
int GetIntegerFor(const ByteString &key, int default_int) const
RetainPtr< const CPDF_Object > LookupValue(int num) const
absl::optional< WideString > GetLabel(int nPage) const
CPDF_PageLabel(CPDF_Document *pDocument)
bool operator==(const char *ptr) const
bool IsEmpty() const
Definition bytestring.h:119
WideString & operator+=(const WideString &str)
WideString & operator+=(wchar_t ch)
static WideString FormatInteger(int i)